@startale/app-sdk 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-sdk.js +6 -10
- package/dist/app-sdk.js.map +1 -1
- package/dist/app-sdk.min.js +1 -1
- package/dist/app-sdk.min.js.map +1 -1
- package/dist/ui/Dialog/Dialog.js +3 -3
- package/dist/ui/Dialog/Dialog.js.map +1 -1
- package/dist/ui/assets/StartaleLogo.d.ts +2 -0
- package/dist/ui/assets/StartaleLogo.d.ts.map +1 -0
- package/dist/ui/assets/StartaleLogo.js +5 -0
- package/dist/ui/assets/StartaleLogo.js.map +1 -0
- package/dist/ui/assets/index.d.ts +1 -1
- package/dist/ui/assets/index.d.ts.map +1 -1
- package/dist/ui/assets/index.js +1 -1
- package/dist/ui/assets/index.js.map +1 -1
- package/dist/util/web.js +1 -1
- package/package.json +3 -3
- package/dist/ui/assets/BaseLogo.d.ts +0 -4
- package/dist/ui/assets/BaseLogo.d.ts.map +0 -1
- package/dist/ui/assets/BaseLogo.js +0 -7
- package/dist/ui/assets/BaseLogo.js.map +0 -1
package/dist/app-sdk.min.js
CHANGED
|
@@ -27,7 +27,7 @@ function Vo(t){void 0!==t.lowS&&cr("lowS",t.lowS),void 0!==t.prehash&&cr("prehas
|
|
|
27
27
|
* Copyright 2019 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: Apache-2.0
|
|
29
29
|
*/
|
|
30
|
-
const yd=Symbol("Comlink.proxy"),gd=Symbol("Comlink.endpoint"),bd=Symbol("Comlink.releaseProxy"),vd=Symbol("Comlink.finalizer"),wd=Symbol("Comlink.thrown"),xd=t=>"object"==typeof t&&null!==t||"function"==typeof t,kd=new Map([["proxy",{canHandle:t=>xd(t)&&t[yd],serialize(t){const{port1:e,port2:n}=new MessageChannel;return Ad(t,e),[n,[n]]},deserialize:t=>(t.start(),Ed(t))}],["throw",{canHandle:t=>xd(t)&&wd in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function Ad(t,e=globalThis,n=["*"]){e.addEventListener("message",function r(a){if(!a||!a.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:i,type:s,path:o}=Object.assign({path:[]},a.data),c=(a.data.argumentList||[]).map(Nd);let u;try{const e=o.slice(0,-1).reduce((t,e)=>t[e],t),n=o.reduce((t,e)=>t[e],t);switch(s){case"GET":u=n;break;case"SET":e[o.slice(-1)[0]]=Nd(a.data.value),u=!0;break;case"APPLY":u=n.apply(e,c);break;case"CONSTRUCT":u=function(t){return Object.assign(t,{[yd]:!0})}(new n(...c));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;Ad(t,n),u=function(t,e){return Md.set(t,e),t}(e,[e])}break;case"RELEASE":u=void 0;break;default:return}}catch(t){u={value:t,[wd]:0}}Promise.resolve(u).catch(t=>({value:t,[wd]:0})).then(n=>{const[a,o]=Cd(n);e.postMessage(Object.assign(Object.assign({},a),{id:i}),o),"RELEASE"===s&&(e.removeEventListener("message",r),Id(e),vd in t&&"function"==typeof t[vd]&&t[vd]())}).catch(t=>{const[n,r]=Cd({value:new TypeError("Unserializable return value"),[wd]:0});e.postMessage(Object.assign(Object.assign({},n),{id:i}),r)})}),e.start&&e.start()}function Id(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function Ed(t,e){const n=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const r=n.get(e.id);if(r)try{r(e)}finally{n.delete(e.id)}}),Td(t,n,[],e)}function Pd(t){if(t)throw new Error("Proxy has been released and is not useable")}function Sd(t){return jd(t,new Map,{type:"RELEASE"}).then(()=>{Id(t)})}const _d=new WeakMap,Od="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(_d.get(t)||0)-1;_d.set(t,e),0===e&&Sd(t)});function Td(t,e,n=[],r=function(){}){let a=!1;const i=new Proxy(r,{get(r,s){if(Pd(a),s===bd)return()=>{!function(t){Od&&Od.unregister(t)}(i),Sd(t),e.clear(),a=!0};if("then"===s){if(0===n.length)return{then:()=>i};const r=jd(t,e,{type:"GET",path:n.map(t=>t.toString())}).then(Nd);return r.then.bind(r)}return Td(t,e,[...n,s])},set(r,i,s){Pd(a);const[o,c]=Cd(s);return jd(t,e,{type:"SET",path:[...n,i].map(t=>t.toString()),value:o},c).then(Nd)},apply(r,i,s){Pd(a);const o=n[n.length-1];if(o===gd)return jd(t,e,{type:"ENDPOINT"}).then(Nd);if("bind"===o)return Td(t,e,n.slice(0,-1));const[c,u]=Bd(s);return jd(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:c},u).then(Nd)},construct(r,i){Pd(a);const[s,o]=Bd(i);return jd(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},o).then(Nd)}});return function(t,e){const n=(_d.get(e)||0)+1;_d.set(e,n),Od&&Od.register(t,e,t)}(i,t),i}function Bd(t){const e=t.map(Cd);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))];var n}const Md=new WeakMap;function Cd(t){for(const[e,n]of kd)if(n.canHandle(t)){const[r,a]=n.serialize(t);return[{type:"HANDLER",name:e,value:r},a]}return[{type:"RAW",value:t},Md.get(t)||[]]}function Nd(t){switch(t.type){case"HANDLER":return kd.get(t.name).deserialize(t.value);case"RAW":return t.value}}function jd(t,e,n,r){return new Promise(a=>{const i=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(i,a),t.start&&t.start(),t.postMessage(Object.assign({id:i},n),r)})}const Rd={postMessage:t=>{window.ReactNativeWebView.postMessage(JSON.stringify(t))},addEventListener:(t,e,...n)=>{document.addEventListener("FarcasterFrameCallback",e,...n)},removeEventListener:(t,e)=>{document.removeEventListener("FarcasterFrameCallback",e)}},Ud="undefined"==typeof window?{postMessage(){},addEventListener:()=>{},removeEventListener:()=>{}}:window?.ReactNativeWebView?Rd:function(t,e=globalThis,n="*"){return{postMessage:(e,r)=>t.postMessage(e,n,r),addEventListener:e.addEventListener.bind(e),removeEventListener:e.removeEventListener.bind(e)}}(window?.parent??window),Ld=Ed(Ud),zd=function(){const t=new I;return{get eventNames(){return t.eventNames.bind(t)},get listenerCount(){return t.listenerCount.bind(t)},get listeners(){return t.listeners.bind(t)},addListener:t.addListener.bind(t),emit:t.emit.bind(t),off:t.off.bind(t),on:t.on.bind(t),once:t.once.bind(t),removeAllListeners:t.removeAllListeners.bind(t),removeListener:t.removeListener.bind(t)}}(),Fd=function(t={}){let e=t.id??0;return{prepare:t=>function(t){return{...t,jsonrpc:"2.0"}}({id:e++,...t}),get id(){return e}}}();const Dd=function(t){if(!t)throw new md;return{...t,async request(e){try{const n=await t.request(e);return n&&"object"==typeof n&&"jsonrpc"in n?Fu(n):n}catch(t){throw function(t){const e=Du(t);if(e instanceof Xu){if(!e.data)return e;const{code:t}=e.data;if(t===id.code)return new id(e);if(t===sd.code)return new sd(e);if(t===nd.code)return new nd(e);if(t===rd.code)return new rd(e);if(t===ad.code)return new ad(e);if(t===od.code)return new od(e);if(t===hd.code)return new hd(e);if(t===pd.code)return new pd(e);if(t===fd.code)return new fd(e);if(t===ld.code)return new ld(e);if(t===dd.code)return new dd(e);if(t===ud.code)return new ud(e);if(t===cd.code)return new cd(e)}return e}(t)}}}}({...zd,async request(t){const e=Fd.prepare(t);try{const t=await Ld.ethProviderRequestV2(e).then(t=>Fu(t,{request:e,raw:!0}));if(t.error)throw function({code:t,details:e}){switch(t){case 4001:return new nd;case 4100:return new rd;case 4200:return new ad;case 4900:return new id;case 4901:return new sd;default:return new ed(t,e??"Unknown provider RPC error")}}(t.error);return t.result}catch(t){if(t instanceof Error&&t.message.match(/cannot read property 'apply'/i))return await Ld.ethProviderRequest(e);if(t instanceof ed||t instanceof qu)throw t;throw new Xu({message:t instanceof Error?t.message:void 0})}}});function qd(t){const e=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(t)});window.dispatchEvent(e);const n=()=>window.dispatchEvent(e);return window.addEventListener("eip6963:requestProvider",n),()=>window.removeEventListener("eip6963:requestProvider",n)}"undefined"!=typeof document&&(document.addEventListener("eip6963:requestProvider",()=>{Ld.eip6963RequestProvider()}),document.addEventListener("FarcasterFrameEthProviderEvent",t=>{if(t instanceof MessageEvent){const e=t.data;zd.emit(e.event,...e.params)}}),document.addEventListener("FarcasterFrameEvent",t=>{if(t instanceof MessageEvent){const e=t.data;"eip6963:announceProvider"===e.event&&qd({info:e.info,provider:Dd})}})),"undefined"!=typeof window&&(window.addEventListener("eip6963:requestProvider",()=>{Ld.eip6963RequestProvider()}),window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEthProviderEvent"===t.data.type){const e=t.data;zd.emit(e.event,...e.params)}}),window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEvent"===t.data.type){const e=t.data.event;"eip6963:announceProvider"===e.event&&qd({info:e.info,provider:Dd})}})),new TextEncoder;const Gd=new TextDecoder,Kd=t=>{let e=t;e instanceof Uint8Array&&(e=Gd.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(t=>{const e=atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n})(e)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Vd extends Error{constructor(t,e){super(t,e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}Vd.code="ERR_JOSE_GENERIC";(class extends Vd{constructor(t,e,n="unspecified",r="unspecified"){super(t,{cause:{claim:n,reason:r,payload:e}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=e}}).code="ERR_JWT_CLAIM_VALIDATION_FAILED";(class extends Vd{constructor(t,e,n="unspecified",r="unspecified"){super(t,{cause:{claim:n,reason:r,payload:e}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=e}}).code="ERR_JWT_EXPIRED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}).code="ERR_JOSE_ALG_NOT_ALLOWED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}).code="ERR_JOSE_NOT_SUPPORTED";(class extends Vd{constructor(t="decryption operation failed",e){super(t,e),this.code="ERR_JWE_DECRYPTION_FAILED"}}).code="ERR_JWE_DECRYPTION_FAILED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}).code="ERR_JWE_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}).code="ERR_JWS_INVALID";class Zd extends Vd{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}Zd.code="ERR_JWT_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}).code="ERR_JWK_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}).code="ERR_JWKS_INVALID";(class extends Vd{constructor(t="no applicable key found in the JSON Web Key Set",e){super(t,e),this.code="ERR_JWKS_NO_MATCHING_KEY"}}).code="ERR_JWKS_NO_MATCHING_KEY";(class extends Vd{constructor(t="multiple matching keys found in the JSON Web Key Set",e){super(t,e),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}).code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";(class extends Vd{constructor(t="request timed out",e){super(t,e),this.code="ERR_JWKS_TIMEOUT"}}).code="ERR_JWKS_TIMEOUT";function Hd(t){if("string"!=typeof t)throw new Zd("JWTs must use Compact JWS serialization, JWT must be a string");const{1:e,length:n}=t.split(".");if(5===n)throw new Zd("Only JWTs using Compact JWS serialization can be decoded");if(3!==n)throw new Zd("Invalid JWT");if(!e)throw new Zd("JWTs must contain a payload");let r,a;try{r=Kd(e)}catch{throw new Zd("Failed to base64url decode the payload")}try{a=JSON.parse(Gd.decode(r))}catch{throw new Zd("Failed to parse the decoded payload as JSON")}if(!function(t){if("object"!=typeof(e=t)||null===e||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e;if(null===Object.getPrototypeOf(t))return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}(a))throw new Zd("Invalid JWT Claims Set");return a}(class extends Vd{constructor(t="signature verification failed",e){super(t,e),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}).code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";let Wd=class t extends Error{constructor(e,n={}){const r=(()=>{if(n.cause instanceof t){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&"string"==typeof n.cause.details?n.cause.details:n.cause?.message?n.cause.message:n.details})(),a=[e||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r?["",r?`Details: ${r}`:void 0]:[]].filter(t=>"string"==typeof t).join("\n");super(a,n.cause?{cause:n.cause}:void 0),this.name="BaseError",this.cause=n.cause,this.details=r,this.shortMessage=e}};class Jd extends Wd{constructor({status:t}){super(`Request failed with status ${t}`),this.name="RequestFailedError"}}class Yd extends Wd{constructor(t){super(t),this.name="InvalidToken"}}function $d(t={}){const e=function(t={}){return{origin:t.origin??"https://auth.farcaster.xyz"}}(t);return{generateNonce:()=>async function({origin:t}){const e=await fetch(`${t}/nonce`,{method:"POST"});if(!e.ok)throw new Jd({status:e.status});return await e.json()}(e),verifySiwf:t=>async function({origin:t},e){const n=await fetch(`${t}/verify-siwf`,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)});if(!n.ok)throw new Jd({status:n.status});const r=await n.json();if(!1===r.valid)throw new Yd(r.message??"unknown");return{token:r.token}}(e,t)}}function Qd(t,e){if(Ul(t)>e)throw new Hl({givenSize:Ul(t),maxSize:e})}const Xd=48,tl=57,el=65,nl=70,rl=97,al=102;function il(t){return t>=Xd&&t<=tl?t-Xd:t>=el&&t<=nl?t-(el-10):t>=rl&&t<=al?t-(rl-10):void 0}function sl(t,e={}){const{dir:n="left"}=e;let r=t,a=0;for(let t=0;t<r.length-1&&"0"===r["left"===n?t:r.length-t-1].toString();t++)a++;return r="left"===n?r.slice(a):r.slice(0,r.length-a),r}function ol(t,e){if(xl(t)>e)throw new _l({givenSize:xl(t),maxSize:e})}function cl(t,e={}){const{dir:n,size:r=32}=e;if(0===r)return t;const a=t.replace("0x","");if(a.length>2*r)throw new Tl({size:Math.ceil(a.length/2),targetSize:r,type:"Hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*r,"0")}`}function ul(t,e,n){return JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString()+"#__bigint":e,n)}const dl=new TextEncoder,ll=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function fl(...t){return`0x${t.reduce((t,e)=>t+e.replace("0x",""),"")}`}function hl(t){return t instanceof Uint8Array?ml(t):Array.isArray(t)?ml(new Uint8Array(t)):t}function pl(t,e={}){const n=`0x${Number(t)}`;return"number"==typeof e.size?(ol(n,e.size),bl(n,e.size)):n}function ml(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=ll[t[e]];const r=`0x${n}`;return"number"==typeof e.size?(ol(r,e.size),vl(r,e.size)):r}function yl(t,e={}){const{signed:n,size:r}=e,a=BigInt(t);let i;r?i=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof t&&(i=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof i&&n?-i-1n:0;if(i&&a>i||a<s){const e="bigint"==typeof t?"n":"";throw new El({max:i?`${i}${e}`:void 0,min:`${s}${e}`,signed:n,size:r,value:`${t}${e}`})}const o=`0x${(n&&a<0?BigInt.asUintN(8*r,BigInt(a)):a).toString(16)}`;return r?bl(o,r):o}function gl(t,e={}){return ml(dl.encode(t),e)}function bl(t,e){return cl(t,{dir:"left",size:e})}function vl(t,e){return cl(t,{dir:"right",size:e})}function wl(t,e,n,r={}){const{strict:a}=r;!function(t,e){if("number"==typeof e&&e>0&&e>xl(t)-1)throw new Ol({offset:e,position:"start",size:xl(t)})}(t,e);const i=`0x${t.replace("0x","").slice(2*(e??0),2*(n??t.length))}`;return a&&function(t,e,n){if("number"==typeof e&&"number"==typeof n&&xl(t)!==n-e)throw new Ol({offset:n,position:"end",size:xl(t)})}(i,e,n),i}function xl(t){return Math.ceil((t.length-2)/2)}function kl(t,e={}){const{signed:n}=e;e.size&&ol(t,e.size);const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2,i=(1n<<8n*BigInt(a))-1n;return r<=i>>1n?r:r-i-1n}function Al(t,e={}){const{signed:n,size:r}=e;return Number(n||r?kl(t,e):t)}function Il(t,e={}){const{strict:n=!1}=e;try{return function(t,e={}){const{strict:n=!1}=e;if(!t)throw new Pl(t);if("string"!=typeof t)throw new Pl(t);if(n&&!/^0x[0-9a-fA-F]*$/.test(t))throw new Sl(t);if(!t.startsWith("0x"))throw new Sl(t)}(t,{strict:n}),!0}catch{return!1}}let El=class extends Lu{constructor({max:t,min:e,signed:n,size:r,value:a}){super(`Number \`${a}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${t?`(\`${e}\` to \`${t}\`)`:`(above \`${e}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}};class Pl extends Lu{constructor(t){super(`Value \`${"object"==typeof t?ul(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class Sl extends Lu{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}let _l=class extends Lu{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed \`${e}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},Ol=class extends Lu{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}},Tl=class extends Lu{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}};const Bl=new TextDecoder,Ml=new TextEncoder;function Cl(t){return t instanceof Uint8Array?t:"string"==typeof t?jl(t):Nl(t)}function Nl(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function jl(t,e={}){const{size:n}=e;let r=t;n&&(ol(t,n),r=vl(t,n));let a=r.slice(2);a.length%2&&(a=`0${a}`);const i=a.length/2,s=new Uint8Array(i);for(let t=0,e=0;t<i;t++){const n=il(a.charCodeAt(e++)),r=il(a.charCodeAt(e++));if(void 0===n||void 0===r)throw new Lu(`Invalid byte sequence ("${a[e-2]}${a[e-1]}" in "${a}").`);s[t]=n<<4|r}return s}function Rl(t,e={}){const{size:n}=e,r=Ml.encode(t);return"number"==typeof n?(Qd(r,n),function(t,e){return function(t,e={}){const{dir:n,size:r=32}=e;if(0===r)return t;if(t.length>r)throw new Jl({size:t.length,targetSize:r,type:"Bytes"});const a=new Uint8Array(r);for(let e=0;e<r;e++){const i="right"===n;a[i?e:r-e-1]=t[i?e:t.length-e-1]}return a}(t,{dir:"right",size:e})}(r,n)):r}function Ul(t){return t.length}function Ll(t,e,n,r={}){const{strict:a}=r;!function(t,e){if("number"==typeof e&&e>0&&e>Ul(t)-1)throw new Wl({offset:e,position:"start",size:Ul(t)})}(t,e);const i=t.slice(e,n);return a&&function(t,e,n){if("number"==typeof e&&"number"==typeof n&&Ul(t)!==n-e)throw new Wl({offset:n,position:"end",size:Ul(t)})}(i,e,n),i}function zl(t,e={}){const{size:n}=e;void 0!==n&&Qd(t,n);return kl(ml(t,e),e)}function Fl(t,e={}){const{size:n}=e;let r=t;if(void 0!==n&&(Qd(r,n),r=Gl(r)),r.length>1||r[0]>1)throw new Vl(r);return Boolean(r[0])}function Dl(t,e={}){const{size:n}=e;void 0!==n&&Qd(t,n);return Al(ml(t,e),e)}function ql(t,e={}){const{size:n}=e;let r=t;return void 0!==n&&(Qd(r,n),r=sl(r,{dir:"right"})),Bl.decode(r)}function Gl(t){return sl(t,{dir:"left"})}function Kl(t){try{return function(t){if(!(t instanceof Uint8Array)){if(!t)throw new Zl(t);if("object"!=typeof t)throw new Zl(t);if(!("BYTES_PER_ELEMENT"in t))throw new Zl(t);if(1!==t.BYTES_PER_ELEMENT||"Uint8Array"!==t.constructor.name)throw new Zl(t)}}(t),!0}catch{return!1}}let Vl=class extends Lu{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}};class Zl extends Lu{constructor(t){super(`Value \`${"object"==typeof t?ul(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let Hl=class extends Lu{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed \`${e}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},Wl=class extends Lu{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}},Jl=class extends Lu{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}},Yl=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}};const $l={checksum:new Yl(8192)}.checksum,Ql=BigInt(0),Xl=BigInt(1),tf=BigInt(2),ef=BigInt(7),nf=BigInt(256),rf=BigInt(113),af=[],sf=[],of=[];for(let t=0,e=Xl,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],af.push(2*(5*r+n)),sf.push((t+1)*(t+2)/2%64);let a=Ql;for(let t=0;t<7;t++)e=(e<<Xl^(e>>ef)*rf)%nf,e&tf&&(a^=Xl<<(Xl<<BigInt(t))-Xl);of.push(a)}const cf=Bn(of,!0),uf=cf[0],df=cf[1],lf=(t,e,n)=>n>32?((t,e,n)=>e<<n-32|t>>>64-n)(t,e,n):((t,e,n)=>t<<n|e>>>32-n)(t,e,n),ff=(t,e,n)=>n>32?((t,e,n)=>t<<n-32|e>>>64-n)(t,e,n):((t,e,n)=>e<<n|t>>>32-n)(t,e,n);class hf extends vn{constructor(t,e,n,r=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=a,un(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");var i;this.state=new Uint8Array(200),this.state32=(i=this.state,new Uint32Array(i.buffer,i.byteOffset,Math.floor(i.byteLength/4)))}clone(){return this._cloneInto()}keccak(){gn(this.state32),function(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,a=(e+2)%10,i=n[a],s=n[a+1],o=lf(i,s,1)^n[r],c=ff(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=o,t[e+n+1]^=c}let e=t[2],a=t[3];for(let n=0;n<24;n++){const r=sf[n],i=lf(e,a,r),s=ff(e,a,r),o=af[n];e=t[o],a=t[o+1],t[o]=i,t[o+1]=s}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=uf[r],t[1]^=df[r]}hn(n)}(this.state32,this.rounds),gn(this.state32),this.posOut=0,this.pos=0}update(t){ln(this),dn(t=bn(t));const{blockLen:e,state:n}=this,r=t.length;for(let a=0;a<r;){const i=Math.min(e-this.pos,r-a);for(let e=0;e<i;e++)n[this.pos++]^=t[a++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,128&e&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){ln(this,!1),dn(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,a=t.length;r<a;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,a-r);t.set(e.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return un(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(fn(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,hn(this.state)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:a,enableXOF:i}=this;return t||(t=new hf(e,n,r,i,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=n,t.outputLen=r,t.enableXOF=i,t.destroyed=this.destroyed,t}}const pf=(()=>{return t=1,e=136,n=32,wn(()=>new hf(e,t,n));var t,e,n})(),mf=er;function yf(t,e={}){const{as:n=("string"==typeof t?"Hex":"Bytes")}=e,r=pf(Cl(t));return"Bytes"===n?r:ml(r)}function gf(t,e={}){const{as:n=("string"==typeof t?"Hex":"Bytes")}=e,r=mf(Cl(t));return"Bytes"===n?r:ml(r)}function bf(t,e={}){const{compressed:n}=e,{prefix:r,x:a,y:i}=t;if(!1===n||"bigint"==typeof a&&"bigint"==typeof i){if(4!==r)throw new Af({prefix:r,cause:new Ef})}else{if(!0!==n&&("bigint"!=typeof a||void 0!==i))throw new kf({publicKey:t});if(3!==r&&2!==r)throw new Af({prefix:r,cause:new If})}}function vf(t){const e=(()=>{if(Il(t))return wf(t);if(Kl(t))return function(t){return wf(ml(t))}(t);const{prefix:e,x:n,y:r}=t;return"bigint"==typeof n&&"bigint"==typeof r?{prefix:e??4,x:n,y:r}:{prefix:e,x:n}})();return bf(e),e}function wf(t){if(132!==t.length&&130!==t.length&&68!==t.length)throw new Pf({publicKey:t});if(130===t.length){return{prefix:4,x:BigInt(wl(t,0,32)),y:BigInt(wl(t,32,64))}}if(132===t.length){return{prefix:Number(wl(t,0,1)),x:BigInt(wl(t,1,33)),y:BigInt(wl(t,33,65))}}return{prefix:Number(wl(t,0,1)),x:BigInt(wl(t,1,33))}}function xf(t,e={}){bf(t);const{prefix:n,x:r,y:a}=t,{includePrefix:i=!0}=e;return fl(i?yl(n,{size:1}):"0x",yl(r,{size:32}),"bigint"==typeof a?yl(a,{size:32}):"0x")}class kf extends Lu{constructor({publicKey:t}){super(`Value \`${ul(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class Af extends Lu{constructor({prefix:t,cause:e}){super(`Prefix "${t}" is invalid.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class If extends Lu{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class Ef extends Lu{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let Pf=class extends Lu{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${xl(hl(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Sf=/^0x[a-fA-F0-9]{40}$/;function _f(t,e={}){const{strict:n=!0}=e;if(!Sf.test(t))throw new Bf({address:t,cause:new Mf});if(n){if(t.toLowerCase()===t)return;if(Of(t)!==t)throw new Bf({address:t,cause:new Cf})}}function Of(t){if($l.has(t))return $l.get(t);_f(t,{strict:!1});const e=t.substring(2).toLowerCase(),n=yf(Rl(e),{as:"Bytes"}),r=e.split("");for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&r[t]&&(r[t]=r[t].toUpperCase()),(15&n[t>>1])>=8&&r[t+1]&&(r[t+1]=r[t+1].toUpperCase());const a=`0x${r.join("")}`;return $l.set(t,a),a}function Tf(t,e={}){const{strict:n=!0}=e??{};try{return _f(t,{strict:n}),!0}catch{return!1}}let Bf=class extends Lu{constructor({address:t,cause:e}){super(`Address "${t}" is invalid.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}};class Mf extends Lu{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Cf extends Lu{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const Nf=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,jf=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;const Rf=(()=>{let t,e;async function n(e){const n=$d({origin:e.quickAuthServerOrigin}),{nonce:r}=await n.generateNonce(),a=await Ld.signIn({nonce:r,acceptAuthAddress:!0});if(a.result){const e=function(t){const{scheme:e,statement:n,...r}=t.match(Nf)?.groups??{},{chainId:a,expirationTime:i,issuedAt:s,notBefore:o,requestId:c,...u}=t.match(jf)?.groups??{},d=t.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...a?{chainId:Number(a)}:{},...i?{expirationTime:new Date(i)}:{},...s?{issuedAt:new Date(s)}:{},...o?{notBefore:new Date(o)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...e?{scheme:e}:{},...n?{statement:n}:{}}}(a.result.message);if(!e.domain)throw new Error("Missing domain on SIWE message");const r=await n.verifySiwf({domain:e.domain,message:a.result.message,signature:a.result.signature});return t={token:r.token,payload:(i=r.token,Hd(i))},r}var i;if("rejected_by_user"===a.error.type)throw new O;throw new Error("Unreachable")}return{get token(){if(t&&new Date(1e3*t.payload.exp)>new Date(Date.now()+15e3))return t.token},async getToken(r={}){const a=r.force??!1;return t&&!a&&new Date(1e3*t.payload.exp)>new Date(Date.now()+15e3)?{token:t.token}:(e||(e=n(r)),e.finally(()=>{e=void 0}),e)},async fetch(t,e){const{token:n}=await this.getToken(),r=new Headers(e?.headers);return r.set("Authorization",`Bearer ${n}`),fetch(t,{...e,headers:r})}}})();const Uf=function(){const t=new I;return{get eventNames(){return t.eventNames.bind(t)},get listenerCount(){return t.listenerCount.bind(t)},get listeners(){return t.listeners.bind(t)},addListener:t.addListener.bind(t),emit:t.emit.bind(t),off:t.off.bind(t),on:t.on.bind(t),once:t.once.bind(t),removeAllListeners:t.removeAllListeners.bind(t),removeListener:t.removeListener.bind(t)}}(),{solanaProviderRequest:Lf}=Ld;let zf;var Ff,Df;async function qf(){let t;try{t=await Ld.getCapabilities()}catch{}if(t?.includes("wallet.getSolanaProvider"))return zf}Lf&&(Df=Lf,zf={request:Ff=async t=>{if("connect"===t.method)return await Df(t);if("signMessage"===t.method)return await Df(t);if("signAndSendTransaction"===t.method){const{transaction:e}=t.params,n={transaction:Ru(e)};return await Df({method:"signAndSendTransaction",params:n})}if("signTransaction"===t.method){const{transaction:e}=t.params,n={transaction:Ru(e)},{signedTransaction:r}=await Df({method:"signTransaction",params:n});return{signedTransaction:Uu(r)}}},signMessage:t=>Ff({method:"signMessage",params:{message:t}}),signTransaction:t=>Ff({method:"signTransaction",params:{transaction:t}}),signAndSendTransaction:t=>Ff({method:"signAndSendTransaction",params:t})});let Gf=null;const Kf=async()=>{const t=await Ld.addFrame();if(t.result)return t.result;if("invalid_domain_manifest"===t.error.type)throw new S;if("rejected_by_user"===t.error.type)throw new _;throw new Error("Unreachable")},Vf={...Uf,getCapabilities:Ld.getCapabilities,getChains:Ld.getChains,isInMiniApp:async function(t=1e3){if(!0===Gf)return!0;if("undefined"==typeof window)return!1;if(!window.ReactNativeWebView&&window===window.parent)return!1;const e=await Promise.race([Ld.context.then(t=>!!t),new Promise(e=>{setTimeout(()=>e(!1),t)})]).catch(()=>!1);return e&&(Gf=!0),e},context:Ld.context,back:(({miniAppHost:t,emitter:e})=>{let n,r=null;return{visible:!1,get onback(){return r},set onback(t){r&&e.removeListener("backNavigationTriggered",r),r=t,t&&e.addListener("backNavigationTriggered",t)},async show(){await t.updateBackState({visible:!0}),this.visible=!0},async hide(){await t.updateBackState({visible:!1}),this.visible=!1},async enableWebNavigation(){n=function({emitter:t,back:e}){const n=function(){if("undefined"!=typeof window&&void 0!==window.navigation)return window.navigation}();if(n)return function({emitter:t,back:e,navigation:n}){function r(){n.canGoBack?e.show():e.hide()}function a(){e.visible&&n.canGoBack&&n.back()}return n.addEventListener("navigatesuccess",r),t.addListener("backNavigationTriggered",a),()=>{n.removeEventListener("navigatesuccess",r),t.removeListener("backNavigationTriggered",a)}}({emitter:t,back:e,navigation:n});if("undefined"!=typeof window)return function({emitter:t,back:e,window:n}){function r(){e.visible&&n.history.back()}return e.show(),t.addListener("backNavigationTriggered",r),()=>{t.removeListener("backNavigationTriggered",r)}}({emitter:t,back:e,window:window})}({back:this,emitter:e})},async disableWebNavigation(){n?.(),n=void 0}}})({miniAppHost:Ld,emitter:Uf}),quickAuth:Rf,actions:{setPrimaryButton:Ld.setPrimaryButton.bind(Ld),ready:async(t={})=>await Ld.ready(t),close:Ld.close.bind(Ld),viewCast:Ld.viewCast.bind(Ld),viewProfile:Ld.viewProfile.bind(Ld),openMiniApp:Ld.openMiniApp.bind(Ld),signIn:async t=>{const e=await Ld.signIn({...t,acceptAuthAddress:t.acceptAuthAddress??!0});if(e.result)return e.result;if("rejected_by_user"===e.error.type)throw new O;throw new Error("Unreachable")},openUrl:t=>{const e="string"==typeof t?t:t.url;return Ld.openUrl(e.trim())},addFrame:Kf,addMiniApp:Kf,composeCast:(t={})=>Ld.composeCast(t),viewToken:Ld.viewToken.bind(Ld),sendToken:Ld.sendToken.bind(Ld),swapToken:Ld.swapToken.bind(Ld),requestCameraAndMicrophoneAccess:Ld.requestCameraAndMicrophoneAccess.bind(Ld)},experimental:{getSolanaProvider:qf,signManifest:async t=>{const e=await Ld.signManifest(t);if(e.result)return e.result;if("rejected_by_user"===e.error.type)throw new T;if("invalid_domain"===e.error.type)throw new B;if("generic_error"===e.error.type)throw new M(e.error.message);throw new Error("Unreachable")},quickAuth:t=>Rf.getToken(t)},wallet:{ethProvider:Dd,getEthereumProvider:async function(){try{const t=await Ld.getCapabilities();if(!t.includes("wallet.getEthereumProvider")&&!t.includes("wallet.getEvmProvider"))return;return Dd}catch{return Dd}},getSolanaProvider:qf},haptics:{impactOccurred:Ld.impactOccurred.bind(Ld),notificationOccurred:Ld.notificationOccurred.bind(Ld),selectionChanged:Ld.selectionChanged.bind(Ld)}};"undefined"!=typeof document&&document.addEventListener("FarcasterFrameEvent",t=>{if(t instanceof MessageEvent){const e=t.data;"primary_button_clicked"===e.event?Uf.emit("primaryButtonClicked"):"miniapp_added"===e.event?Uf.emit("miniAppAdded",{notificationDetails:e.notificationDetails}):"miniapp_add_rejected"===e.event?Uf.emit("miniAppAddRejected",{reason:e.reason}):"miniapp_removed"===e.event?Uf.emit("miniAppRemoved"):"notifications_enabled"===e.event?Uf.emit("notificationsEnabled",{notificationDetails:e.notificationDetails}):"notifications_disabled"===e.event?Uf.emit("notificationsDisabled"):"back_navigation_triggered"===e.event&&Uf.emit("backNavigationTriggered")}}),"undefined"!=typeof window&&window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEvent"===t.data.type){const e=t.data.event;"primary_button_clicked"===e.event?Uf.emit("primaryButtonClicked"):"miniapp_added"===e.event?Uf.emit("miniAppAdded",{notificationDetails:e.notificationDetails}):"miniapp_add_rejected"===e.event?Uf.emit("miniAppAddRejected",{reason:e.reason}):"miniapp_removed"===e.event?Uf.emit("miniAppRemoved"):"notifications_enabled"===e.event?Uf.emit("notificationsEnabled",{notificationDetails:e.notificationDetails}):"notifications_disabled"===e.event?Uf.emit("notificationsDisabled"):"back_navigation_triggered"===e.event&&Uf.emit("backNavigationTriggered")}});const Zf=["accountsChanged","chainChanged","connect","disconnect"];class Hf extends E{constructor(){super(...arguments),this.farcasterProvider=null,this.initPromise=null,this.eventForwarders=new Map}async init(){if(!this.farcasterProvider)return this.initPromise||(this.initPromise=(async()=>{try{Vf.actions.ready();const r=await(t=Vf.wallet.getEthereumProvider(),e=5e3,n="FarcasterProvider init timed out — host may not be ready",new Promise((r,a)=>{const i=setTimeout(()=>a(new Error(n)),e);t.then(t=>{clearTimeout(i),r(t)},t=>{clearTimeout(i),a(t)})}));this.farcasterProvider=r;for(const t of Zf){const e=(...e)=>{this.emit(t,...e)};this.eventForwarders.set(t,e),this.farcasterProvider.on(t,e)}}catch(t){throw this.initPromise=null,t}var t,e,n})()),this.initPromise}async request(t){return await this.init(),"wallet_connect"===t.method?this.handleWalletConnect(t):this.farcasterProvider.request(t)}async handleWalletConnect(t){var e;const n=await this.farcasterProvider.request({method:"eth_requestAccounts"}),r=await this.farcasterProvider.request({method:"eth_chainId"}),a=t.params,i=null===(e=null==a?void 0:a[0])||void 0===e?void 0:e.chainIds;return{accounts:n.map(t=>({address:t})),chainIds:[r,...(null!=i?i:[]).filter(t=>t!==String(r))]}}async disconnect(){if(this.farcasterProvider){for(const[t,e]of this.eventForwarders)this.farcasterProvider.removeListener(t,e);this.eventForwarders.clear()}this.farcasterProvider=null,this.initPromise=null,this.emit("disconnect",f.disconnected("User initiated disconnection"))}async close(){Vf.actions.close()}}function Wf(){return"undefined"!=typeof window&&window.parent!==window}const Jf="https://rpc.wallet.coinbase.com",Yf="@startale/app-sdk",$f="1.3.0";function Qf(t,e){let n;try{n=t()}catch(t){return}const r={getItem:t=>{var e;const r=t=>null===t?null:JSON.parse(t,void 0),a=null!=(e=n.getItem(t))?e:null;return a instanceof Promise?a.then(r):r(a)},setItem:(t,e)=>n.setItem(t,JSON.stringify(e,void 0)),removeItem:t=>n.removeItem(t)};return r}const Xf=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then:t=>Xf(t)(n),catch(t){return this}}}catch(t){return{then(t){return this},catch:e=>Xf(e)(t)}}},th=(t,e)=>(n,r,a)=>{let i={storage:Qf(()=>localStorage),partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},s=!1;const o=new Set,c=new Set;let u=i.storage;if(!u)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...t)},r,a);const d=()=>{const t=i.partialize({...r()});return u.setItem(i.name,{state:t,version:i.version})},l=a.setState;a.setState=(t,e)=>{l(t,e),d()};const f=t((...t)=>{n(...t),d()},r,a);let h;a.getInitialState=()=>f;const p=()=>{var t,e;if(!u)return;s=!1,o.forEach(t=>{var e;return t(null!=(e=r())?e:f)});const a=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,null!=(t=r())?t:f))||void 0;return Xf(u.getItem.bind(u))(i.name).then(t=>{if(t){if("number"!=typeof t.version||t.version===i.version)return[!1,t.state];if(i.migrate){const e=i.migrate(t.state,t.version);return e instanceof Promise?e.then(t=>[!0,t]):[!0,e]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var e;const[a,s]=t;if(h=i.merge(s,null!=(e=r())?e:f),n(h,!0),a)return d()}).then(()=>{null==a||a(h,void 0),h=r(),s=!0,c.forEach(t=>t(h))}).catch(t=>{null==a||a(void 0,t)})};return a.persist={setOptions:t=>{i={...i,...t},t.storage&&(u=t.storage)},clearStorage:()=>{null==u||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:t=>(o.add(t),()=>{o.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},i.skipHydration||p(),h||f},eh=t=>{let e;const n=new Set,r=(t,r)=>{const a="function"==typeof t?t(e):t;if(!Object.is(a,e)){const t=e;e=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},e,a),n.forEach(n=>n(e,t))}},a=()=>e,i={setState:r,getState:a,getInitialState:()=>s,subscribe:t=>(n.add(t),()=>n.delete(t))},s=e=t(r,a,i);return i},nh=t=>t?eh(t):eh,rh=nh(th((...t)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},{chains:[]}),{keys:{}}),{account:{}}),{subAccount:void 0}),{spendPermissions:[]}),(()=>({config:{version:$f}}))(...t)),{subAccountConfig:{}}),{userInfo:{}}),{name:"startale-app-sdk.store",storage:Qf(()=>localStorage),partialize:t=>({chains:t.chains,keys:t.keys,account:t.account,subAccount:t.subAccount,spendPermissions:t.spendPermissions,config:t.config,userInfo:t.userInfo})})),ah={get:()=>rh.getState().spendPermissions,set:t=>{rh.setState({spendPermissions:t})},clear:()=>{rh.setState({spendPermissions:[]})}},ih={get:()=>rh.getState().config,set:t=>{rh.setState(e=>({config:Object.assign(Object.assign({},e.config),t)}))}},sh={subAccounts:{get:()=>rh.getState().subAccount,set:t=>{rh.setState(e=>({subAccount:e.subAccount?Object.assign(Object.assign({},e.subAccount),t):Object.assign({address:t.address},t)}))},clear:()=>{rh.setState({subAccount:void 0})}},subAccountsConfig:{get:()=>rh.getState().subAccountConfig,set:t=>{rh.setState(e=>({subAccountConfig:Object.assign(Object.assign({},e.subAccountConfig),t)}))},clear:()=>{rh.setState({subAccountConfig:{}})}},spendPermissions:ah,account:{get:()=>rh.getState().account,set:t=>{rh.setState(e=>({account:Object.assign(Object.assign({},e.account),t)}))},clear:()=>{rh.setState({account:{}})}},chains:{get:()=>rh.getState().chains,set:t=>{rh.setState({chains:t})},clear:()=>{rh.setState({chains:[]})}},keys:{get:t=>rh.getState().keys[t],set:(t,e)=>{rh.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[t]:e})}))},clear:()=>{rh.setState({keys:{}})}},config:ih,userInfo:{get:()=>rh.getState().userInfo,set:t=>{rh.setState(e=>({userInfo:t}))},clear:()=>{rh.setState({userInfo:{}})}}},oh=Object.assign(Object.assign({},rh),sh),ch=()=>{var t,e,n;if("undefined"!=typeof window){const r=null!==(n=null!==(t=oh.config.get().deviceId)&&void 0!==t?t:null===(e=window.crypto)||void 0===e?void 0:e.randomUUID())&&void 0!==n?n:"";if(window.ClientAnalytics){const{init:t,identify:e,PlatformName:n}=window.ClientAnalytics;t({isProd:!0,amplitudeApiKey:"c66737ad47ec354ced777935b0af822e",platform:n.web,projectName:"base_account_sdk",showDebugLogging:!1,version:"1.0.0",apiEndpoint:"https://cca-lite.coinbase.com"}),e({deviceId:r}),oh.config.set({deviceId:r})}}},uh=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"owner",type:"bytes"}],name:"AlreadyOwner",type:"error"},{inputs:[],name:"Initialized",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidEthereumAddressOwner",type:"error"},{inputs:[{name:"key",type:"uint256"}],name:"InvalidNonceKey",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidOwnerBytesLength",type:"error"},{inputs:[],name:"LastOwner",type:"error"},{inputs:[{name:"index",type:"uint256"}],name:"NoOwnerAtIndex",type:"error"},{inputs:[{name:"ownersRemaining",type:"uint256"}],name:"NotLastOwner",type:"error"},{inputs:[{name:"selector",type:"bytes4"}],name:"SelectorNotAllowed",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"UnauthorizedCallContext",type:"error"},{inputs:[],name:"UpgradeFailed",type:"error"},{inputs:[{name:"index",type:"uint256"},{name:"expectedOwner",type:"bytes"},{name:"actualOwner",type:"bytes"}],name:"WrongOwnerAtIndex",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"AddOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"RemoveOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"REPLAYABLE_NONCE_KEY",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"addOwnerAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"addOwnerPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"functionSelector",type:"bytes4"}],name:"canSkipChainIdValidation",outputs:[{name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"executeBatch",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"calls",type:"bytes[]"}],name:"executeWithoutChainIdValidation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHashWithoutChainId",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"$",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"owners",type:"bytes[]"}],name:"initialize",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"isOwnerAddress",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"bytes"}],name:"isOwnerBytes",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"isOwnerPublicKey",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"result",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextOwnerIndex",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"}],name:"ownerAtIndex",outputs:[{name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"ownerCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeLastOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeOwnerAtIndex",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"removedOwnersCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"}],name:"replaySafeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"newImplementation",type:"address"},{name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],dh=[{inputs:[{name:"implementation_",type:"address"}],stateMutability:"payable",type:"constructor"},{inputs:[],name:"OwnerRequired",type:"error"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"createAccount",outputs:[{name:"account",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"getAddress",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"initCodeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"}];function lh(t,e,n){if(null==t)throw null!=e?e:l.invalidParams({message:"value must be present",data:t})}function fh(t,e){if(!Array.isArray(t))throw l.invalidParams({message:null!=e?e:"value must be an array",data:t})}const{checkCrossOriginOpenerPolicy:hh,getCrossOriginOpenerPolicy:ph}=(()=>{let t;return{getCrossOriginOpenerPolicy:()=>void 0===t?"undefined":t,checkCrossOriginOpenerPolicy:async()=>{if("undefined"!=typeof window)try{const e=`${window.location.origin}${window.location.pathname}`,n=await fetch(e,{method:"HEAD"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const r=n.headers.get("Cross-Origin-Opener-Policy");t=null!=r?r:"null","same-origin"===t&&console.error("Base Account SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Base Account app.\n\nPlease see https://docs.base.org/smart-wallet/quickstart#cross-origin-opener-policy for more information.")}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),t="error"}else t="non-browser-env"}}})();function mh(t){if("function"!=typeof t)throw new Error("toAccount is not a function")}let yh=class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.1.0"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=e}};function gh(t,e){const n=t.exec(e);return n?.groups}const bh=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,vh=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,wh=/^\(.+?\).*?$/,xh=/^tuple(?<array>(\[(\d*)\])*)$/;function kh(t){let e=t.type;if(xh.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let r=0;r<n;r++){e+=kh(t.components[r]),r<n-1&&(e+=", ")}const r=gh(xh,t.type);return e+=`)${r?.array??""}`,kh({...t,type:e})}return"indexed"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}function Ah(t){let e="";const n=t.length;for(let r=0;r<n;r++){e+=kh(t[r]),r!==n-1&&(e+=", ")}return e}const Ih=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Eh=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Ph=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;const Sh=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function _h(t){return Sh.test(t)}function Oh(t){return gh(Sh,t)}const Th=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;const Bh=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;const Mh=/^receive\(\) external payable$/;const Ch=new Set(["indexed"]),Nh=new Set(["calldata","memory","storage"]);let jh=class extends yh{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}},Rh=class extends yh{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}},Uh=class extends yh{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},Lh=class extends yh{constructor({param:t,name:e}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${e}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}},zh=class extends yh{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},Fh=class extends yh{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},Dh=class extends yh{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}},qh=class extends yh{constructor({signature:t,type:e}){super(`Invalid ${e} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},Gh=class extends yh{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},Kh=class extends yh{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}},Vh=class extends yh{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}},Zh=class extends yh{constructor({current:t,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};const Hh=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Wh(t,e={}){if(function(t){return Ph.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Ph,t)}(t);if(!n)throw new qh({signature:t,type:"function"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{modifiers:Nh,structs:e,type:"function"}));const s=[];if(n.returns){const t=Xh(n.returns),r=t.length;for(let n=0;n<r;n++)s.push(Qh(t[n],{modifiers:Nh,structs:e,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}(t,e);if(function(t){return Eh.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Eh,t)}(t);if(!n)throw new qh({signature:t,type:"event"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{modifiers:Ch,structs:e,type:"event"}));return{name:n.name,type:"event",inputs:a}}(t,e);if(function(t){return Ih.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Ih,t)}(t);if(!n)throw new qh({signature:t,type:"error"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{structs:e,type:"error"}));return{name:n.name,type:"error",inputs:a}}(t,e);if(function(t){return Th.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Th,t)}(t);if(!n)throw new qh({signature:t,type:"constructor"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{structs:e,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(t,e);if(function(t){return Bh.test(t)}(t))return function(t){const e=function(t){return gh(Bh,t)}(t);if(!e)throw new qh({signature:t,type:"fallback"});return{type:"fallback",stateMutability:e.stateMutability??"nonpayable"}}(t);if(function(t){return Mh.test(t)}(t))return{type:"receive",stateMutability:"payable"};throw new Gh({signature:t})}const Jh=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Yh=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,$h=/^u?int$/;function Qh(t,e){const n=function(t,e,n){let r="";if(n)for(const t of Object.entries(n)){if(!t)continue;let e="";for(const n of t[1])e+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${t[0]}{${e}})`}return e?`${e}:${t}${r}`:t}(t,e?.type,e?.structs);if(Hh.has(n))return Hh.get(n);const r=wh.test(t),a=gh(r?Yh:Jh,t);if(!a)throw new Uh({param:t});if(a.name&&function(t){return"address"===t||"bool"===t||"function"===t||"string"===t||"tuple"===t||bh.test(t)||vh.test(t)||ep.test(t)}(a.name))throw new Lh({param:t,name:a.name});const i=a.name?{name:a.name}:{},s="indexed"===a.modifier?{indexed:!0}:{},o=e?.structs??{};let c,u={};if(r){c="tuple";const t=Xh(a.type),e=[],n=t.length;for(let r=0;r<n;r++)e.push(Qh(t[r],{structs:o}));u={components:e}}else if(a.type in o)c="tuple",u={components:o[a.type]};else if($h.test(a.type))c=`${a.type}256`;else if("address payable"===a.type)c="address";else if(c=a.type,"struct"!==e?.type&&!tp(c))throw new Rh({type:c});if(a.modifier){if(!e?.modifiers?.has?.(a.modifier))throw new zh({param:t,type:e?.type,modifier:a.modifier});if(Nh.has(a.modifier)&&!function(t,e){return e||"bytes"===t||"string"===t||"tuple"===t}(c,!!a.array))throw new Fh({param:t,type:e?.type,modifier:a.modifier})}const d={type:`${c}${a.array??""}`,...i,...s,...u};return Hh.set(n,d),d}function Xh(t,e=[],n="",r=0){const a=t.trim().length;for(let i=0;i<a;i++){const a=t[i],s=t.slice(i+1);switch(a){case",":return 0===r?Xh(s,[...e,n.trim()]):Xh(s,e,`${n}${a}`,r);case"(":return Xh(s,e,`${n}${a}`,r+1);case")":return Xh(s,e,`${n}${a}`,r-1);default:return Xh(s,e,`${n}${a}`,r)}}if(""===n)return e;if(0!==r)throw new Zh({current:n,depth:r});return e.push(n.trim()),e}function tp(t){return"address"===t||"bool"===t||"function"===t||"string"===t||bh.test(t)||vh.test(t)}const ep=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;const np=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function rp(t,e,n=new Set){const r=[],a=t.length;for(let i=0;i<a;i++){const a=t[i];if(wh.test(a.type))r.push(a);else{const t=gh(np,a.type);if(!t?.type)throw new Dh({abiParameter:a});const{array:i,type:s}=t;if(s in e){if(n.has(s))throw new Vh({type:s});r.push({...a,type:`tuple${i??""}`,components:rp(e[s]??[],e,new Set([...n,s]))})}else{if(!tp(s))throw new jh({type:s});r.push(a)}}}return r}function ap(t){const e=function(t){const e={},n=t.length;for(let r=0;r<n;r++){const n=t[r];if(!_h(n))continue;const a=Oh(n);if(!a)throw new qh({signature:n,type:"struct"});const i=a.properties.split(";"),s=[],o=i.length;for(let t=0;t<o;t++){const e=i[t].trim();if(!e)continue;const n=Qh(e,{type:"struct"});s.push(n)}if(!s.length)throw new Kh({signature:n});e[a.name]=s}const r={},a=Object.entries(e),i=a.length;for(let t=0;t<i;t++){const[n,i]=a[t];r[n]=rp(i,e)}return r}(t),n=[],r=t.length;for(let a=0;a<r;a++){const r=t[a];_h(r)||n.push(Wh(r,e))}return n}function ip(t,e,n){const r=t[e.name];if("function"==typeof r)return r;const a=t[n];return"function"==typeof a?a:n=>e(t,n)}function sp(t,{includeName:e=!1}={}){if("function"!==t.type&&"event"!==t.type&&"error"!==t.type)throw new Lp(t.type);return`${t.name}(${op(t.inputs,{includeName:e})})`}function op(t,{includeName:e=!1}={}){return t?t.map(t=>function(t,{includeName:e}){if(t.type.startsWith("tuple"))return`(${op(t.components,{includeName:e})})${t.type.slice(5)}`;return t.type+(e&&t.name?` ${t.name}`:"")}(t,{includeName:e})).join(e?", ":","):""}function cp(t,{strict:e=!0}={}){return!!t&&("string"==typeof t&&(e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")))}function up(t){return cp(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}const dp="2.38.4";let lp=({docsBaseUrl:t,docsPath:e="",docsSlug:n})=>e?`${t??"https://viem.sh"}${e}${n?`#${n}`:""}`:void 0,fp=`viem@${dp}`,hp=class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath,i=lp?.({...n,docsPath:a});super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...fp?[`Version: ${fp}`]:[]].join("\n"),n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=dp}walk(t){return pp(this,t)}};function pp(t,e){return e?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?pp(t.cause,e):e?null:t}class mp extends hp{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class yp extends hp{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class gp extends hp{constructor({data:t,params:e,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${op(e,{includeName:!0})})`,`Data: ${t} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=e,this.size=n}}class bp extends hp{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class vp extends hp{constructor({expectedLength:t,givenLength:e,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${t}`,`Given length: ${e}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class wp extends hp{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${up(e)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class xp extends hp{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${e}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class kp extends hp{constructor(t,{docsPath:e}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:e,name:"AbiErrorInputsNotFoundError"})}}class Ap extends hp{constructor(t,{docsPath:e}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:e,name:"AbiErrorNotFoundError"})}}class Ip extends hp{constructor(t,{docsPath:e}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Ep extends hp{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class Pp extends hp{constructor(t,{docsPath:e}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiEventSignatureNotFoundError"})}}class Sp extends hp{constructor(t,{docsPath:e}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:e,name:"AbiEventNotFoundError"})}}class _p extends hp{constructor(t,{docsPath:e}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e,name:"AbiFunctionNotFoundError"})}}class Op extends hp{constructor(t,{docsPath:e}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e,name:"AbiFunctionOutputsNotFoundError"})}}class Tp extends hp{constructor(t,{docsPath:e}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiFunctionSignatureNotFoundError"})}}class Bp extends hp{constructor(t,e){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${sp(t.abiItem)}\`, and`,`\`${e.type}\` in \`${sp(e.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let Mp=class extends hp{constructor({expectedSize:t,givenSize:e}){super(`Expected bytes${t}, got bytes${e}.`,{name:"BytesSizeMismatchError"})}};class Cp extends hp{constructor({abiItem:t,data:e,params:n,size:r}){super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${op(n,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=e,this.params=n,this.size=r}}class Np extends hp{constructor({abiItem:t,param:e}){super([`Expected a topic for indexed event parameter${e.name?` "${e.name}"`:""} on event "${sp(t,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class jp extends hp{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e,name:"InvalidAbiEncodingType"})}}class Rp extends hp{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e,name:"InvalidAbiDecodingType"})}}let Up=class extends hp{constructor(t){super([`Value "${t}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}};class Lp extends hp{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class zp extends hp{constructor(t){super(`Type "${t}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}class Fp extends hp{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}class Dp extends hp{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class qp extends hp{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`,{name:"SizeExceedsPaddingSizeError"})}}class Gp extends hp{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${e} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}function Kp(t,{dir:e,size:n=32}={}){return"string"==typeof t?Vp(t,{dir:e,size:n}):function(t,{dir:e,size:n=32}={}){if(null===n)return t;if(t.length>n)throw new qp({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let a=0;a<n;a++){const i="right"===e;r[i?a:n-a-1]=t[i?a:t.length-a-1]}return r}(t,{dir:e,size:n})}function Vp(t,{dir:e,size:n=32}={}){if(null===n)return t;const r=t.replace("0x","");if(r.length>2*n)throw new qp({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r["right"===e?"padEnd":"padStart"](2*n,"0")}`}class Zp extends hp{constructor({max:t,min:e,signed:n,size:r,value:a}){super(`Number "${a}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${e} to ${t})`:`(above ${e})`}`,{name:"IntegerOutOfRangeError"})}}class Hp extends hp{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class Wp extends hp{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class Jp extends hp{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function Yp(t,{dir:e="left"}={}){let n="string"==typeof t?t.replace("0x",""):t,r=0;for(let t=0;t<n.length-1&&"0"===n["left"===e?t:n.length-t-1].toString();t++)r++;return n="left"===e?n.slice(r):n.slice(0,n.length-r),"string"==typeof t?(1===n.length&&"right"===e&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}function $p(t,{size:e}){if(up(t)>e)throw new Jp({givenSize:up(t),maxSize:e})}function Qp(t,e={}){const{signed:n}=e;e.size&&$p(t,{size:e.size});const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2;return r<=(1n<<8n*BigInt(a)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function Xp(t,e={}){return Number(Qp(t,e))}function tm(t,e={}){let n=fm(t);return e.size&&($p(n,{size:e.size}),n=Yp(n,{dir:"right"})),(new TextDecoder).decode(n)}const em=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function nm(t,e={}){return"number"==typeof t||"bigint"==typeof t?im(t,e):"string"==typeof t?om(t,e):"boolean"==typeof t?rm(t,e):am(t,e)}function rm(t,e={}){const n=`0x${Number(t)}`;return"number"==typeof e.size?($p(n,{size:e.size}),Kp(n,{size:e.size})):n}function am(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=em[t[e]];const r=`0x${n}`;return"number"==typeof e.size?($p(r,{size:e.size}),Kp(r,{dir:"right",size:e.size})):r}function im(t,e={}){const{signed:n,size:r}=e,a=BigInt(t);let i;r?i=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof t&&(i=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof i&&n?-i-1n:0;if(i&&a>i||a<s){const e="bigint"==typeof t?"n":"";throw new Zp({max:i?`${i}${e}`:void 0,min:`${s}${e}`,signed:n,size:r,value:`${t}${e}`})}const o=`0x${(n&&a<0?(1n<<BigInt(8*r))+BigInt(a):a).toString(16)}`;return r?Kp(o,{size:r}):o}const sm=new TextEncoder;function om(t,e={}){return am(sm.encode(t),e)}const cm=new TextEncoder;function um(t,e={}){return"number"==typeof t||"bigint"==typeof t?function(t,e){const n=im(t,e);return fm(n)}(t,e):"boolean"==typeof t?function(t,e={}){const n=new Uint8Array(1);if(n[0]=Number(t),"number"==typeof e.size)return $p(n,{size:e.size}),Kp(n,{size:e.size});return n}(t,e):cp(t)?fm(t,e):hm(t,e)}const dm={zero:48,nine:57,A:65,F:70,a:97,f:102};function lm(t){return t>=dm.zero&&t<=dm.nine?t-dm.zero:t>=dm.A&&t<=dm.F?t-(dm.A-10):t>=dm.a&&t<=dm.f?t-(dm.a-10):void 0}function fm(t,e={}){let n=t;e.size&&($p(n,{size:e.size}),n=Kp(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const a=r.length/2,i=new Uint8Array(a);for(let t=0,e=0;t<a;t++){const n=lm(r.charCodeAt(e++)),a=lm(r.charCodeAt(e++));if(void 0===n||void 0===a)throw new hp(`Invalid byte sequence ("${r[e-2]}${r[e-1]}" in "${r}").`);i[t]=16*n+a}return i}function hm(t,e={}){const n=cm.encode(t);return"number"==typeof e.size?($p(n,{size:e.size}),Kp(n,{dir:"right",size:e.size})):n}function pm(t,e){const n=e||"hex",r=pf(cp(t,{strict:!1})?um(t):t);return"bytes"===n?r:nm(r)}function mm(t){return pm(um(t))}const ym=t=>{var e;return function(t){let e=!0,n="",r=0,a="",i=!1;for(let s=0;s<t.length;s++){const o=t[s];if(["(",")",","].includes(o)&&(e=!0),"("===o&&r++,")"===o&&r--,e)if(0!==r)" "!==o?(a+=o,n+=o):","!==t[s-1]&&","!==n&&",("!==n&&(n="",e=!1);else if(" "===o&&["event","function",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}}if(!i)throw new hp("Unable to normalize signature.");return a}("string"==typeof t?t:"function"===(e=t).type?`function ${e.name}(${Ah(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${Ah(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${Ah(e.inputs)})`:"error"===e.type?`error ${e.name}(${Ah(e.inputs)})`:"constructor"===e.type?`constructor(${Ah(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback() external"+("payable"===e.stateMutability?" payable":""):"receive() external payable")};function gm(t){return mm(ym(t))}const bm=gm;class vm extends hp{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class wm extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}}const xm=new wm(8192);function km(t,e){if(xm.has(`${t}.${e}`))return xm.get(`${t}.${e}`);const n=t.substring(2).toLowerCase(),r=pm(hm(n),"bytes"),a=n.split("");for(let t=0;t<40;t+=2)r[t>>1]>>4>=8&&a[t]&&(a[t]=a[t].toUpperCase()),(15&r[t>>1])>=8&&a[t+1]&&(a[t+1]=a[t+1].toUpperCase());const i=`0x${a.join("")}`;return xm.set(`${t}.${e}`,i),i}function Am(t,e){if(!Pm(t,{strict:!1}))throw new vm({address:t});return km(t,e)}const Im=/^0x[a-fA-F0-9]{40}$/,Em=new wm(8192);function Pm(t,e){const{strict:n=!0}=e??{},r=`${t}.${n}`;if(Em.has(r))return Em.get(r);const a=!(!Im.test(t)||t.toLowerCase()!==t&&n&&km(t)!==t);return Em.set(r,a),a}function Sm(t){return"string"==typeof t[0]?_m(t):function(t){let e=0;for(const n of t)e+=n.length;const n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(t)}function _m(t){return`0x${t.reduce((t,e)=>t+e.replace("0x",""),"")}`}function Om(t,e,n,{strict:r}={}){return cp(t,{strict:!1})?Cm(t,e,n,{strict:r}):Mm(t,e,n,{strict:r})}function Tm(t,e){if("number"==typeof e&&e>0&&e>up(t)-1)throw new Dp({offset:e,position:"start",size:up(t)})}function Bm(t,e,n){if("number"==typeof e&&"number"==typeof n&&up(t)!==n-e)throw new Dp({offset:n,position:"end",size:up(t)})}function Mm(t,e,n,{strict:r}={}){Tm(t,e);const a=t.slice(e,n);return r&&Bm(a,e,n),a}function Cm(t,e,n,{strict:r}={}){Tm(t,e);const a=`0x${t.replace("0x","").slice(2*(e??0),2*(n??t.length))}`;return r&&Bm(a,e,n),a}const Nm=/^(.*)\[([0-9]*)\]$/,jm=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Rm=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Um(t,e){if(t.length!==e.length)throw new xp({expectedLength:t.length,givenLength:e.length});const n=function({params:t,values:e}){const n=[];for(let r=0;r<t.length;r++)n.push(Lm({param:t[r],value:e[r]}));return n}({params:t,values:e}),r=zm(n);return 0===r.length?"0x":r}function Lm({param:t,value:e}){const n=Fm(t.type);if(n){const[r,a]=n;return function(t,{length:e,param:n}){const r=null===e;if(!Array.isArray(t))throw new Up(t);if(!r&&t.length!==e)throw new vp({expectedLength:e,givenLength:t.length,type:`${n.type}[${e}]`});let a=!1;const i=[];for(let e=0;e<t.length;e++){const r=Lm({param:n,value:t[e]});r.dynamic&&(a=!0),i.push(r)}if(r||a){const t=zm(i);if(r){const e=im(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?Sm([e,t]):e}}if(a)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:Sm(i.map(({encoded:t})=>t))}}(e,{length:r,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:e}){let n=!1;const r=[];for(let a=0;a<e.components.length;a++){const i=e.components[a],s=Lm({param:i,value:t[Array.isArray(t)?a:i.name]});r.push(s),s.dynamic&&(n=!0)}return{dynamic:n,encoded:n?zm(r):Sm(r.map(({encoded:t})=>t))}}(e,{param:t});if("address"===t.type)return function(t){if(!Pm(t))throw new vm({address:t});return{dynamic:!1,encoded:Vp(t.toLowerCase())}}(e);if("bool"===t.type)return function(t){if("boolean"!=typeof t)throw new hp(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Vp(rm(t))}}(e);if(t.type.startsWith("uint")||t.type.startsWith("int")){const n=t.type.startsWith("int"),[,,r="256"]=Rm.exec(t.type)??[];return function(t,{signed:e,size:n=256}){if("number"==typeof n){const r=2n**(BigInt(n)-(e?1n:0n))-1n,a=e?-r-1n:0n;if(t>r||t<a)throw new Zp({max:r.toString(),min:a.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:im(t,{size:32,signed:e})}}(e,{signed:n,size:Number(r)})}if(t.type.startsWith("bytes"))return function(t,{param:e}){const[,n]=e.type.split("bytes"),r=up(t);if(!n){let e=t;return r%32!=0&&(e=Vp(e,{dir:"right",size:32*Math.ceil((t.length-2)/2/32)})),{dynamic:!0,encoded:Sm([Vp(im(r,{size:32})),e])}}if(r!==Number.parseInt(n,10))throw new wp({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:Vp(t,{dir:"right"})}}(e,{param:t});if("string"===t.type)return function(t){const e=om(t),n=Math.ceil(up(e)/32),r=[];for(let t=0;t<n;t++)r.push(Vp(Om(e,32*t,32*(t+1)),{dir:"right"}));return{dynamic:!0,encoded:Sm([Vp(im(up(e),{size:32})),...r])}}(e);throw new jp(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function zm(t){let e=0;for(let n=0;n<t.length;n++){const{dynamic:r,encoded:a}=t[n];e+=r?32:up(a)}const n=[],r=[];let a=0;for(let i=0;i<t.length;i++){const{dynamic:s,encoded:o}=t[i];s?(n.push(im(e+a,{size:32})),r.push(o),a+=up(o)):n.push(o)}return Sm([...n,...r])}function Fm(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const Dm=t=>Om(gm(t),0,4);function qm(t){const{abi:e,args:n=[],name:r}=t,a=cp(r,{strict:!1}),i=e.filter(t=>a?"function"===t.type?Dm(t)===r:"event"===t.type&&bm(t)===r:"name"in t&&t.name===r);if(0===i.length)return;if(1===i.length)return i[0];let s;for(const t of i){if(!("inputs"in t))continue;if(!n||0===n.length){if(!t.inputs||0===t.inputs.length)return t;continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==n.length)continue;const e=n.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&Gm(e,r)});if(e){if(s&&"inputs"in s&&s.inputs){const e=Km(t.inputs,s.inputs,n);if(e)throw new Bp({abiItem:t,type:e[0]},{abiItem:s,type:e[1]})}s=t}}return s||i[0]}function Gm(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Pm(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in e?Object.values(e.components).every((e,n)=>Gm(Object.values(t)[n],e)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(t)&&t.every(t=>Gm(t,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function Km(t,e,n){for(const r in t){const a=t[r],i=e[r];if("tuple"===a.type&&"tuple"===i.type&&"components"in a&&"components"in i)return Km(a.components,i.components,n[r]);const s=[a.type,i.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&Pm(n[r],{strict:!1}))())return s}}const Vm="/docs/contract/encodeEventTopics";function Zm(t){const{abi:e,eventName:n,args:r}=t;let a=e[0];if(n){const t=qm({abi:e,name:n});if(!t)throw new Sp(n,{docsPath:Vm});a=t}if("event"!==a.type)throw new Sp(void 0,{docsPath:Vm});const i=sp(a),s=bm(i);let o=[];if(r&&"inputs"in a){const t=a.inputs?.filter(t=>"indexed"in t&&t.indexed),e=Array.isArray(r)?r:Object.values(r).length>0?t?.map(t=>r[t.name])??[]:[];e.length>0&&(o=t?.map((t,n)=>Array.isArray(e[n])?e[n].map((r,a)=>Hm({param:t,value:e[n][a]})):void 0!==e[n]&&null!==e[n]?Hm({param:t,value:e[n]}):null)??[])}return[s,...o]}function Hm({param:t,value:e}){if("string"===t.type||"bytes"===t.type)return pm(um(e));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new Fp(t.type);return Um([t],[e])}function Wm(t,{method:e}){const n={};return"fallback"===t.transport.type&&t.transport.onResponse?.(({method:t,response:r,status:a,transport:i})=>{"success"===a&&e===t&&(n[r]=i.request)}),e=>n[e]||t.request}async function Jm(t,e){const{address:n,abi:r,args:a,eventName:i,fromBlock:s,strict:o,toBlock:c}=e,u=Wm(t,{method:"eth_newFilter"}),d=i?Zm({abi:r,args:a,eventName:i}):void 0,l=await t.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof s?im(s):s,toBlock:"bigint"==typeof c?im(c):c,topics:d}]});return{abi:r,args:a,eventName:i,id:l,request:u(l),strict:Boolean(o),type:"event"}}function Ym(t){return"string"==typeof t?{address:t,type:"json-rpc"}:t}const $m="/docs/contract/encodeFunctionData";function Qm(t){const{args:e}=t,{abi:n,functionName:r}=1===t.abi.length&&t.functionName?.startsWith("0x")?t:function(t){const{abi:e,args:n,functionName:r}=t;let a=e[0];if(r){const t=qm({abi:e,args:n,name:r});if(!t)throw new _p(r,{docsPath:$m});a=t}if("function"!==a.type)throw new _p(void 0,{docsPath:$m});return{abi:[a],functionName:Dm(sp(a))}}(t),a=n[0];return _m([r,("inputs"in a&&a.inputs?Um(a.inputs,e??[]):void 0)??"0x"])}const Xm={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},ty={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},ey={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};let ny=class extends hp{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},ry=class extends hp{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},ay=class extends hp{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const iy={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ay({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new ry({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new ny({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new ny({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function sy(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(iy);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}function oy(t,e={}){void 0!==e.size&&$p(t,{size:e.size});return Qp(am(t,e),e)}function cy(t,e={}){let n=t;if(void 0!==e.size&&($p(n,{size:e.size}),n=Yp(n)),n.length>1||n[0]>1)throw new Hp(n);return Boolean(n[0])}function uy(t,e={}){void 0!==e.size&&$p(t,{size:e.size});return Xp(am(t,e),e)}function dy(t,e){const n="string"==typeof e?fm(e):e,r=sy(n);if(0===up(n)&&t.length>0)throw new bp;if(up(e)&&up(e)<32)throw new gp({data:"string"==typeof e?e:am(e),params:t,size:up(e)});let a=0;const i=[];for(let e=0;e<t.length;++e){const n=t[e];r.setPosition(a);const[s,o]=ly(r,n,{staticPosition:0});a+=o,i.push(s)}return i}function ly(t,e,{staticPosition:n}){const r=Fm(e.type);if(r){const[a,i]=r;return function(t,e,{length:n,staticPosition:r}){if(!n){const n=r+uy(t.readBytes(hy)),a=n+fy;t.setPosition(n);const i=uy(t.readBytes(fy)),s=py(e);let o=0;const c=[];for(let n=0;n<i;++n){t.setPosition(a+(s?32*n:o));const[r,i]=ly(t,e,{staticPosition:a});o+=i,c.push(r)}return t.setPosition(r+32),[c,32]}if(py(e)){const a=r+uy(t.readBytes(hy)),i=[];for(let r=0;r<n;++r){t.setPosition(a+32*r);const[n]=ly(t,e,{staticPosition:a});i.push(n)}return t.setPosition(r+32),[i,32]}let a=0;const i=[];for(let s=0;s<n;++s){const[n,s]=ly(t,e,{staticPosition:r+a});a+=s,i.push(n)}return[i,a]}(t,{...e,type:i},{length:a,staticPosition:n})}if("tuple"===e.type)return function(t,e,{staticPosition:n}){const r=0===e.components.length||e.components.some(({name:t})=>!t),a=r?[]:{};let i=0;if(py(e)){const s=n+uy(t.readBytes(hy));for(let n=0;n<e.components.length;++n){const o=e.components[n];t.setPosition(s+i);const[c,u]=ly(t,o,{staticPosition:s});i+=u,a[r?n:o?.name]=c}return t.setPosition(n+32),[a,32]}for(let s=0;s<e.components.length;++s){const o=e.components[s],[c,u]=ly(t,o,{staticPosition:n});a[r?s:o?.name]=c,i+=u}return[a,i]}(t,e,{staticPosition:n});if("address"===e.type)return function(t){const e=t.readBytes(32);return[km(am(Mm(e,-20))),32]}(t);if("bool"===e.type)return function(t){return[cy(t.readBytes(32),{size:32}),32]}(t);if(e.type.startsWith("bytes"))return function(t,e,{staticPosition:n}){const[r,a]=e.type.split("bytes");if(!a){const e=uy(t.readBytes(32));t.setPosition(n+e);const r=uy(t.readBytes(32));if(0===r)return t.setPosition(n+32),["0x",32];const a=t.readBytes(r);return t.setPosition(n+32),[am(a),32]}const i=am(t.readBytes(Number.parseInt(a,10),32));return[i,32]}(t,e,{staticPosition:n});if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(t,e){const n=e.type.startsWith("int"),r=Number.parseInt(e.type.split("int")[1]||"256",10),a=t.readBytes(32);return[r>48?oy(a,{signed:n}):uy(a,{signed:n}),32]}(t,e);if("string"===e.type)return function(t,{staticPosition:e}){const n=uy(t.readBytes(32)),r=e+n;t.setPosition(r);const a=uy(t.readBytes(32));if(0===a)return t.setPosition(e+32),["",32];const i=t.readBytes(a,32),s=function(t,e={}){let n=t;return void 0!==e.size&&($p(n,{size:e.size}),n=Yp(n,{dir:"right"})),(new TextDecoder).decode(n)}(Yp(i));return t.setPosition(e+32),[s,32]}(t,{staticPosition:n});throw new Rp(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const fy=32,hy=32;function py(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(py);const n=Fm(t.type);return!(!n||!py({...t,type:n[1]}))}function my(t){const{abi:e,data:n}=t,r=Om(n,0,4);if("0x"===r)throw new bp;const a=[...e||[],ty,ey].find(t=>"error"===t.type&&r===Dm(sp(t)));if(!a)throw new Ip(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:a,args:"inputs"in a&&a.inputs&&a.inputs.length>0?dy(a.inputs,Om(n,4)):void 0,errorName:a.name}}const yy=(t,e,n)=>JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString():e,n);function gy({abiItem:t,args:e,includeFunctionName:n=!0,includeName:r=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${n?t.name:""}(${t.inputs.map((t,n)=>`${r&&t.name?`${t.name}: `:""}${"object"==typeof e[n]?yy(e[n]):e[n]}`).join(", ")})`}const by={gwei:9,wei:18},vy={ether:-9,wei:9};function wy(t,e){let n=t.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(e,"0");let[a,i]=[n.slice(0,n.length-e),n.slice(n.length-e)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${i?`.${i}`:""}`}function xy(t,e="wei"){return wy(t,by[e])}function ky(t,e="wei"){return wy(t,vy[e])}class Ay extends hp{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class Iy extends hp{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function Ey(t){return t.reduce((t,{slot:e,value:n})=>`${t} ${e}: ${n}\n`,"")}function Py(t){const e=Object.entries(t).map(([t,e])=>void 0===e||!1===e?null:[t,e]).filter(Boolean),n=e.reduce((t,[e])=>Math.max(t,e.length),0);return e.map(([t,e])=>` ${`${t}:`.padEnd(n+1)} ${e}`).join("\n")}class Sy extends hp{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}class _y extends hp{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Oy extends hp{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Py(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Ty extends hp{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class By extends hp{constructor({blockHash:t,blockNumber:e,blockTag:n,hash:r,index:a}){let i="Transaction";n&&void 0!==a&&(i=`Transaction at block time "${n}" at index "${a}"`),t&&void 0!==a&&(i=`Transaction at block hash "${t}" at index "${a}"`),e&&void 0!==a&&(i=`Transaction at block number "${e}" at index "${a}"`),r&&(i=`Transaction with hash "${r}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class My extends hp{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Cy extends hp{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class Ny extends hp{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}class jy extends hp{constructor(t,{account:e,docsPath:n,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:d,value:l,stateOverride:f}){const h=e?Ym(e):void 0;let p=Py({from:h?.address,to:d,value:void 0!==l&&`${xy(l)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:i,gasPrice:void 0!==s&&`${ky(s)} gwei`,maxFeePerGas:void 0!==o&&`${ky(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ky(c)} gwei`,nonce:u});f&&(p+=`\n${function(t){return t.reduce((t,{address:e,...n})=>{let r=`${t} ${e}:\n`;return n.nonce&&(r+=` nonce: ${n.nonce}\n`),n.balance&&(r+=` balance: ${n.balance}\n`),n.code&&(r+=` code: ${n.code}\n`),n.state&&(r+=" state:\n",r+=Ey(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=Ey(n.stateDiff)),r}," State Override:\n").slice(0,-1)}(f)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Ry extends hp{constructor(t,{abi:e,args:n,contractAddress:r,docsPath:a,functionName:i,sender:s}){const o=qm({abi:e,args:n,name:i}),c=o?gy({abiItem:o,args:n,includeFunctionName:!1,includeName:!1}):void 0,u=Py({address:r&&r,function:o?sp(o,{includeName:!0}):void 0,args:c&&"()"!==c&&`${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${c}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],u&&"Contract Call:",u].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=e,this.args=n,this.cause=t,this.contractAddress=r,this.functionName=i,this.sender=s}}class Uy extends hp{constructor({abi:t,data:e,functionName:n,message:r}){let a,i,s,o,c;if(e&&"0x"!==e)try{i=my({abi:t,data:e});const{abiItem:n,errorName:r,args:a}=i;if("Error"===r)o=a[0];else if("Panic"===r){const[t]=a;o=Xm[t]}else{const t=n?sp(n,{includeName:!0}):void 0,e=n&&a?gy({abiItem:n,args:a,includeFunctionName:!1,includeName:!1}):void 0;s=[t?`Error: ${t}`:"",e&&"()"!==e?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${e}`:""]}}catch(t){a=t}else r&&(o=r);a instanceof Ip&&(c=a.signature,s=[`Unable to decode signature "${c}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${c}.`]),super(o&&"execution reverted"!==o||c?[`The contract function "${n}" reverted with the following ${c?"signature":"reason"}:`,o||c].join("\n"):`The contract function "${n}" reverted.`,{cause:a,metaMessages:s,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i,this.raw=e,this.reason=o,this.signature=c}}class Ly extends hp{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class zy extends hp{constructor({factory:t}){super("Deployment for counterfactual contract call failed"+(t?` for factory "${t}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class Fy extends hp{constructor({data:t,message:e}){super(e||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}class Dy extends hp{constructor({body:t,cause:e,details:n,headers:r,status:a,url:i}){super("HTTP request failed.",{cause:e,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${i}`,t&&`Request body: ${yy(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=r,this.status=a,this.url=i}}class qy extends hp{constructor({body:t,error:e,url:n}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${n}`,`Request body: ${yy(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data}}class Gy extends hp{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${e}`,`Request body: ${yy(t)}`],name:"TimeoutError"})}}class Ky extends hp{constructor(t,{code:e,docsPath:n,metaMessages:r,name:a,shortMessage:i}){super(i,{cause:t,docsPath:n,metaMessages:r||t?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof qy?t.code:e??-1}}class Vy extends Ky{constructor(t,e){super(t,e),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e.data}}class Zy extends Ky{constructor(t){super(t,{code:Zy.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Zy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Hy extends Ky{constructor(t){super(t,{code:Hy.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Hy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Wy extends Ky{constructor(t,{method:e}={}){super(t,{code:Wy.code,name:"MethodNotFoundRpcError",shortMessage:`The method${e?` "${e}"`:""} does not exist / is not available.`})}}Object.defineProperty(Wy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Jy extends Ky{constructor(t){super(t,{code:Jy.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(Jy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Yy extends Ky{constructor(t){super(t,{code:Yy.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Yy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class $y extends Ky{constructor(t){super(t,{code:$y.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty($y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Qy extends Ky{constructor(t){super(t,{code:Qy.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Qy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Xy extends Ky{constructor(t){super(t,{code:Xy.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Xy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class tg extends Ky{constructor(t){super(t,{code:tg.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(tg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class eg extends Ky{constructor(t,{method:e}={}){super(t,{code:eg.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${e?` "${e}"`:""} is not supported.`})}}Object.defineProperty(eg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class ng extends Ky{constructor(t){super(t,{code:ng.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(ng,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class rg extends Ky{constructor(t){super(t,{code:rg.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(rg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class ag extends Vy{constructor(t){super(t,{code:ag.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(ag,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class ig extends Vy{constructor(t){super(t,{code:ig.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(ig,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class sg extends Vy{constructor(t,{method:e}={}){super(t,{code:sg.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${e?` " ${e}"`:""}.`})}}Object.defineProperty(sg,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class og extends Vy{constructor(t){super(t,{code:og.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(og,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class cg extends Vy{constructor(t){super(t,{code:cg.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(cg,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class ug extends Vy{constructor(t){super(t,{code:ug.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(ug,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class dg extends Vy{constructor(t){super(t,{code:dg.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(dg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class lg extends Vy{constructor(t){super(t,{code:lg.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(lg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class fg extends Vy{constructor(t){super(t,{code:fg.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(fg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class hg extends Vy{constructor(t){super(t,{code:hg.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(hg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class pg extends Vy{constructor(t){super(t,{code:pg.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(pg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class mg extends Vy{constructor(t){super(t,{code:mg.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(mg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class yg extends Vy{constructor(t){super(t,{code:yg.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(yg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class gg extends Ky{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const bg=3;function vg(t,{abi:e,address:n,args:r,docsPath:a,functionName:i,sender:s}){const o=t instanceof Fy?t:t instanceof hp?t.walk(t=>"data"in t)||t.walk():{},{code:c,data:u,details:d,message:l,shortMessage:f}=o,h=t instanceof bp?new Ly({functionName:i}):[bg,Yy.code].includes(c)&&(u||d||l||f)?new Uy({abi:e,data:"object"==typeof u?u.data:u,functionName:i,message:o instanceof qy?d:f??l}):t;return new Ry(h,{abi:e,args:r,contractAddress:n,docsPath:a,functionName:i,sender:s})}function wg(t){if(0===t||1===t)return t;if(27===t)return 0;if(28===t)return 1;throw new Error("Invalid yParityOrV value")}async function xg({hash:t,signature:e}){return function(t){return km(`0x${pm(`0x${t.substring(4)}`).substring(26)}`)}(await async function({hash:t,signature:e}){const n=cp(t)?t:nm(t),{secp256k1:r}=await Promise.resolve().then(function(){return lc}),a=(()=>{if("object"==typeof e&&"r"in e&&"s"in e){const{r:t,s:n,v:a,yParity:i}=e,s=wg(Number(i??a));return new r.Signature(Qp(t),Qp(n)).addRecoveryBit(s)}const t=cp(e)?e:nm(e);if(65!==up(t))throw new Error("invalid signature length");const n=wg(Xp(`0x${t.slice(130)}`));return r.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(n)})();return`0x${a.recoverPublicKey(n.substring(2)).toHex(!1)}`}({hash:t,signature:e}))}function kg(t,e="hex"){const n=Ag(t),r=sy(new Uint8Array(n.length));return n.encode(r),"hex"===e?am(r.bytes):r.bytes}function Ag(t){return Array.isArray(t)?function(t){const e=t.reduce((t,e)=>t+e.length,0),n=Ig(e);return{length:e<=55?1+e:1+n+e,encode(r){e<=55?r.pushByte(192+e):(r.pushByte(247+n),1===n?r.pushUint8(e):2===n?r.pushUint16(e):3===n?r.pushUint24(e):r.pushUint32(e));for(const{encode:e}of t)e(r)}}}(t.map(t=>Ag(t))):function(t){const e="string"==typeof t?fm(t):t,n=Ig(e.length),r=1===e.length&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length;return{length:r,encode(t){1===e.length&&e[0]<128?t.pushBytes(e):e.length<=55?(t.pushByte(128+e.length),t.pushBytes(e)):(t.pushByte(183+n),1===n?t.pushUint8(e.length):2===n?t.pushUint16(e.length):3===n?t.pushUint24(e.length):t.pushUint32(e.length),t.pushBytes(e))}}}(t)}function Ig(t){if(t<256)return 1;if(t<65536)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new hp("Length is too large.")}function Eg(t){const{chainId:e,nonce:n,to:r}=t,a=t.contractAddress??t.address,i=pm(_m(["0x05",kg([e?im(e):"0x",a,n?im(n):"0x"])]));return"bytes"===r?fm(i):i}async function Pg(t){const{authorization:e,signature:n}=t;return xg({hash:Eg(e),signature:n??e})}class Sg extends hp{constructor(t,{account:e,docsPath:n,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:d,value:l}){const f=Py({from:e?.address,to:d,value:void 0!==l&&`${xy(l)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:i,gasPrice:void 0!==s&&`${ky(s)} gwei`,maxFeePerGas:void 0!==o&&`${ky(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ky(c)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}let _g=class extends hp{constructor({cause:t,message:e}={}){const n=e?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}};Object.defineProperty(_g,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(_g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Og extends hp{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${ky(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Og,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Tg extends hp{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${ky(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Tg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Bg extends hp{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Bg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Mg extends hp{constructor({cause:t,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Mg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Cg extends hp{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Cg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ng extends hp{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Ng,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class jg extends hp{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(jg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Rg extends hp{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Rg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Ug extends hp{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Ug,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Lg extends hp{constructor({cause:t,maxPriorityFeePerGas:e,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${ky(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${ky(n)} gwei`:""}).`].join("\n"),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Lg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class zg extends hp{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Fg(t,e){const n=(t.details||"").toLowerCase(),r=t instanceof hp?t.walk(t=>t?.code===_g.code):t;return r instanceof hp?new _g({cause:t,message:r.details}):_g.nodeMessage.test(n)?new _g({cause:t,message:t.details}):Og.nodeMessage.test(n)?new Og({cause:t,maxFeePerGas:e?.maxFeePerGas}):Tg.nodeMessage.test(n)?new Tg({cause:t,maxFeePerGas:e?.maxFeePerGas}):Bg.nodeMessage.test(n)?new Bg({cause:t,nonce:e?.nonce}):Mg.nodeMessage.test(n)?new Mg({cause:t,nonce:e?.nonce}):Cg.nodeMessage.test(n)?new Cg({cause:t,nonce:e?.nonce}):Ng.nodeMessage.test(n)?new Ng({cause:t}):jg.nodeMessage.test(n)?new jg({cause:t,gas:e?.gas}):Rg.nodeMessage.test(n)?new Rg({cause:t,gas:e?.gas}):Ug.nodeMessage.test(n)?new Ug({cause:t}):Lg.nodeMessage.test(n)?new Lg({cause:t,maxFeePerGas:e?.maxFeePerGas,maxPriorityFeePerGas:e?.maxPriorityFeePerGas}):new zg({cause:t})}function Dg(t,{format:e}){if(!e)return{};const n={};return function e(r){const a=Object.keys(r);for(const i of a)i in t&&(n[i]=t[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&e(r[i])}(e(t||{})),n}function qg(t,e){return({exclude:n,format:r})=>({exclude:n,format:(t,a)=>{const i=e(t,a);if(n)for(const t of n)delete i[t];return{...i,...r(t,a)}},type:t})}const Gg={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Kg(t,e){const n={};return void 0!==t.authorizationList&&(n.authorizationList=t.authorizationList.map(t=>({address:t.address,r:t.r?im(BigInt(t.r)):t.r,s:t.s?im(BigInt(t.s)):t.s,chainId:im(t.chainId),nonce:im(t.nonce),...void 0!==t.yParity?{yParity:im(t.yParity)}:{},...void 0!==t.v&&void 0===t.yParity?{v:im(t.v)}:{}}))),void 0!==t.accessList&&(n.accessList=t.accessList),void 0!==t.blobVersionedHashes&&(n.blobVersionedHashes=t.blobVersionedHashes),void 0!==t.blobs&&("string"!=typeof t.blobs[0]?n.blobs=t.blobs.map(t=>am(t)):n.blobs=t.blobs),void 0!==t.data&&(n.data=t.data),t.account&&(n.from=t.account.address),void 0!==t.from&&(n.from=t.from),void 0!==t.gas&&(n.gas=im(t.gas)),void 0!==t.gasPrice&&(n.gasPrice=im(t.gasPrice)),void 0!==t.maxFeePerBlobGas&&(n.maxFeePerBlobGas=im(t.maxFeePerBlobGas)),void 0!==t.maxFeePerGas&&(n.maxFeePerGas=im(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=im(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(n.nonce=im(t.nonce)),void 0!==t.to&&(n.to=t.to),void 0!==t.type&&(n.type=Gg[t.type]),void 0!==t.value&&(n.value=im(t.value)),n}function Vg(t){if(t&&0!==t.length)return t.reduce((t,{slot:e,value:n})=>{if(66!==e.length)throw new Gp({size:e.length,targetSize:66,type:"hex"});if(66!==n.length)throw new Gp({size:n.length,targetSize:66,type:"hex"});return t[e]=n,t},{})}function Zg(t){const{balance:e,nonce:n,state:r,stateDiff:a,code:i}=t,s={};if(void 0!==i&&(s.code=i),void 0!==e&&(s.balance=im(e)),void 0!==n&&(s.nonce=im(n)),void 0!==r&&(s.state=Vg(r)),void 0!==a){if(s.state)throw new Iy;s.stateDiff=Vg(a)}return s}function Hg(t){if(!t)return;const e={};for(const{address:n,...r}of t){if(!Pm(n,{strict:!1}))throw new vm({address:n});if(e[n])throw new Ay({address:n});e[n]=Zg(r)}return e}const Wg=2n**256n-1n;function Jg(t){const{account:e,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:a,to:i}=t,s=e?Ym(e):void 0;if(s&&!Pm(s.address))throw new vm({address:s.address});if(i&&!Pm(i))throw new vm({address:i});if(void 0!==n&&(void 0!==r||void 0!==a))throw new Sy;if(r&&r>Wg)throw new Og({maxFeePerGas:r});if(a&&r&&a>r)throw new Lg({maxFeePerGas:r,maxPriorityFeePerGas:a})}class Yg extends hp{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class $g extends hp{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Qg extends hp{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${ky(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Xg extends hp{constructor({blockHash:t,blockNumber:e}){let n="Block";t&&(n=`Block at hash "${t}"`),e&&(n=`Block at number "${e}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}const tb={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function eb(t,e){const n={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?Xp(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?Xp(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?tb[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return t.authorizationList&&(n.authorizationList=t.authorizationList.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))),n.yParity=(()=>{if(t.yParity)return Number(t.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const nb=qg("transaction",eb);function rb(t,e){const n=(t.transactions??[]).map(t=>"string"==typeof t?t:eb(t));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:n,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}const ab=qg("block",rb);async function ib(t,{blockHash:e,blockNumber:n,blockTag:r=t.experimental_blockTag??"latest",includeTransactions:a}={}){const i=a??!1,s=void 0!==n?im(n):void 0;let o=null;if(o=e?await t.request({method:"eth_getBlockByHash",params:[e,i]},{dedupe:!0}):await t.request({method:"eth_getBlockByNumber",params:[s||r,i]},{dedupe:Boolean(s)}),!o)throw new Xg({blockHash:e,blockNumber:n});return(t.chain?.formatters?.block?.format||rb)(o,"getBlock")}async function sb(t){const e=await t.request({method:"eth_gasPrice"});return BigInt(e)}async function ob(t,e){const{block:n,chain:r=t.chain,request:a}=e||{};try{const e=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if("function"==typeof e){const r=n||await ip(t,ib,"getBlock")({}),i=await e({block:r,client:t,request:a});if(null===i)throw new Error;return i}if(void 0!==e)return e;return Qp(await t.request({method:"eth_maxPriorityFeePerGas"}))}catch{const[e,r]=await Promise.all([n?Promise.resolve(n):ip(t,ib,"getBlock")({}),ip(t,sb,"getGasPrice")({})]);if("bigint"!=typeof e.baseFeePerGas)throw new $g;const a=r-e.baseFeePerGas;return a<0n?0n:a}}async function cb(t,e){return ub(t,e)}async function ub(t,e){const{block:n,chain:r=t.chain,request:a,type:i="eip1559"}=e||{},s=await(async()=>"function"==typeof r?.fees?.baseFeeMultiplier?r.fees.baseFeeMultiplier({block:n,client:t,request:a}):r?.fees?.baseFeeMultiplier??1.2)();if(s<1)throw new Yg;const o=10**(s.toString().split(".")[1]?.length??0),c=t=>t*BigInt(Math.ceil(s*o))/BigInt(o),u=n||await ip(t,ib,"getBlock")({});if("function"==typeof r?.fees?.estimateFeesPerGas){const e=await r.fees.estimateFeesPerGas({block:n,client:t,multiply:c,request:a,type:i});if(null!==e)return e}if("eip1559"===i){if("bigint"!=typeof u.baseFeePerGas)throw new $g;const e="bigint"==typeof a?.maxPriorityFeePerGas?a.maxPriorityFeePerGas:await ob(t,{block:u,chain:r,request:a}),n=c(u.baseFeePerGas);return{maxFeePerGas:a?.maxFeePerGas??n+e,maxPriorityFeePerGas:e}}return{gasPrice:a?.gasPrice??c(await ip(t,sb,"getGasPrice")({}))}}async function db(t,{address:e,blockTag:n="latest",blockNumber:r}){return Xp(await t.request({method:"eth_getTransactionCount",params:[e,"bigint"==typeof r?im(r):n]},{dedupe:Boolean(r)}))}function lb(t){const{kzg:e}=t,n=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),r="string"==typeof t.blobs[0]?t.blobs.map(t=>fm(t)):t.blobs,a=[];for(const t of r)a.push(Uint8Array.from(e.blobToKzgCommitment(t)));return"bytes"===n?a:a.map(t=>am(t))}function fb(t){const{kzg:e}=t,n=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),r="string"==typeof t.blobs[0]?t.blobs.map(t=>fm(t)):t.blobs,a="string"==typeof t.commitments[0]?t.commitments.map(t=>fm(t)):t.commitments,i=[];for(let t=0;t<r.length;t++){const n=r[t],s=a[t];i.push(Uint8Array.from(e.computeBlobKzgProof(n,s)))}return"bytes"===n?i:i.map(t=>am(t))}function hb(t){const{commitment:e,version:n=1}=t,r=t.to??("string"==typeof e?"hex":"bytes"),a=mf(cp(i=e,{strict:!1})?um(i):i);var i;return a.set([n],0),"bytes"===r?a:am(a)}function pb(t){const{commitments:e,version:n}=t,r=t.to??("string"==typeof e[0]?"hex":"bytes"),a=[];for(const t of e)a.push(hb({commitment:t,to:r,version:n}));return a}const mb=4096,yb=131072,gb=761855;class bb extends hp{constructor({maxSize:t,size:e}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${e} bytes`],name:"BlobSizeTooLargeError"})}}class vb extends hp{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class wb extends hp{constructor({hash:t,size:e}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${e}`],name:"InvalidVersionedHashSizeError"})}}class xb extends hp{constructor({hash:t,version:e}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${e}`],name:"InvalidVersionedHashVersionError"})}}function kb(t){const{data:e,kzg:n,to:r}=t,a=t.blobs??function(t){const e=t.to??("string"==typeof t.data?"hex":"bytes"),n="string"==typeof t.data?fm(t.data):t.data,r=up(n);if(!r)throw new vb;if(r>gb)throw new bb({maxSize:gb,size:r});const a=[];let i=!0,s=0;for(;i;){const t=sy(new Uint8Array(yb));let e=0;for(;e<mb;){const r=n.slice(s,s+31);if(t.pushByte(0),t.pushBytes(r),r.length<31){t.pushByte(128),i=!1;break}e++,s+=31}a.push(t)}return"bytes"===e?a.map(t=>t.bytes):a.map(t=>am(t.bytes))}({data:e,to:r}),i=t.commitments??lb({blobs:a,kzg:n,to:r}),s=t.proofs??fb({blobs:a,commitments:i,kzg:n,to:r}),o=[];for(let t=0;t<a.length;t++)o.push({blob:a[t],commitment:i[t],proof:s[t]});return o}function Ab(t){if(t.type)return t.type;if(void 0!==t.authorizationList)return"eip7702";if(void 0!==t.blobs||void 0!==t.blobVersionedHashes||void 0!==t.maxFeePerBlobGas||void 0!==t.sidecars)return"eip4844";if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)return"eip1559";if(void 0!==t.gasPrice)return void 0!==t.accessList?"eip2930":"legacy";throw new Oy({transaction:t})}async function Ib(t){return Xp(await t.request({method:"eth_chainId"},{dedupe:!0}))}const Eb=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Pb=new Map;async function Sb(t,e){const{account:n=t.account,blobs:r,chain:a,gas:i,kzg:s,nonce:o,nonceManager:c,parameters:u=Eb,type:d}=e,l=n?Ym(n):n,f={...e,...l?{from:l?.address}:{}};let h,p;async function m(){return h||(h=await ip(t,ib,"getBlock")({blockTag:"latest"}),h)}async function y(){if(p)return p;if(a)return a.id;if(void 0!==e.chainId)return e.chainId;const n=await ip(t,Ib,"getChainId")({});return p=n,p}if(u.includes("nonce")&&void 0===o&&l)if(c){const e=await y();f.nonce=await c.consume({address:l.address,chainId:e,client:t})}else f.nonce=await ip(t,db,"getTransactionCount")({address:l.address,blockTag:"pending"});if((u.includes("blobVersionedHashes")||u.includes("sidecars"))&&r&&s){const t=lb({blobs:r,kzg:s});if(u.includes("blobVersionedHashes")){const e=pb({commitments:t,to:"hex"});f.blobVersionedHashes=e}if(u.includes("sidecars")){const e=kb({blobs:r,commitments:t,proofs:fb({blobs:r,commitments:t,kzg:s}),to:"hex"});f.sidecars=e}}if(u.includes("chainId")&&(f.chainId=await y()),(u.includes("fees")||u.includes("type"))&&void 0===d)try{f.type=Ab(f)}catch{let e=Pb.get(t.uid);if(void 0===e){const n=await m();e="bigint"==typeof n?.baseFeePerGas,Pb.set(t.uid,e)}f.type=e?"eip1559":"legacy"}if(u.includes("fees"))if("legacy"!==f.type&&"eip2930"!==f.type){if(void 0===f.maxFeePerGas||void 0===f.maxPriorityFeePerGas){const n=await m(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await ub(t,{block:n,chain:a,request:f});if(void 0===e.maxPriorityFeePerGas&&e.maxFeePerGas&&e.maxFeePerGas<i)throw new Qg({maxPriorityFeePerGas:i});f.maxPriorityFeePerGas=i,f.maxFeePerGas=r}}else{if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)throw new $g;if(void 0===e.gasPrice){const e=await m(),{gasPrice:n}=await ub(t,{block:e,chain:a,request:f,type:"legacy"});f.gasPrice=n}}return u.includes("gas")&&void 0===i&&(f.gas=await ip(t,_b,"estimateGas")({...f,account:l,prepare:"local"===l?.type?[]:["blobVersionedHashes"]})),Jg(f),delete f.parameters,f}async function _b(t,e){const{account:n=t.account,prepare:r=!0}=e,a=n?Ym(n):void 0,i=Array.isArray(r)?r:"local"!==a?.type?["blobVersionedHashes"]:void 0;try{const{accessList:n,authorizationList:s,blobs:o,blobVersionedHashes:c,blockNumber:u,blockTag:d,data:l,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:g,value:b,stateOverride:v,...w}=r?await Sb(t,{...e,parameters:i}):e,x=("bigint"==typeof u?im(u):void 0)||d,k=Hg(v),A=await(async()=>w.to?w.to:s&&s.length>0?await Pg({authorization:s[0]}).catch(()=>{throw new hp("`to` is required. Could not infer from `authorizationList`")}):void 0)();Jg(e);const I=t.chain?.formatters?.transactionRequest?.format,E=(I||Kg)({...Dg(w,{format:I}),account:a,accessList:n,authorizationList:s,blobs:o,blobVersionedHashes:c,data:l,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:g,to:A,value:b},"estimateGas");return BigInt(await t.request({method:"eth_estimateGas",params:k?[E,x??t.experimental_blockTag??"latest",k]:x?[E,x]:[E]}))}catch(n){throw function(t,{docsPath:e,...n}){const r=(()=>{const e=Fg(t,n);return e instanceof zg?t:e})();return new Sg(r,{docsPath:e,...n})}(n,{...e,account:a,chain:t.chain})}}function Ob(t,e){if(!Pm(t,{strict:!1}))throw new vm({address:t});if(!Pm(e,{strict:!1}))throw new vm({address:e});return t.toLowerCase()===e.toLowerCase()}const Tb="/docs/contract/decodeEventLog";function Bb(t){const{abi:e,data:n,strict:r,topics:a}=t,i=r??!0,[s,...o]=a;if(!s)throw new Ep({docsPath:Tb});const c=e.find(t=>"event"===t.type&&s===bm(sp(t)));if(!c||!("name"in c)||"event"!==c.type)throw new Pp(s,{docsPath:Tb});const{name:u,inputs:d}=c,l=d?.some(t=>!("name"in t&&t.name)),f=l?[]:{},h=d.map((t,e)=>[t,e]).filter(([t])=>"indexed"in t&&t.indexed);for(let t=0;t<h.length;t++){const[e,n]=h[t],r=o[t];if(!r)throw new Np({abiItem:c,param:e});f[l?n:e.name||n]=Mb({param:e,value:r})}const p=d.filter(t=>!("indexed"in t&&t.indexed));if(p.length>0)if(n&&"0x"!==n)try{const t=dy(p,n);if(t)if(l)for(let e=0;e<d.length;e++)f[e]=f[e]??t.shift();else for(let e=0;e<p.length;e++)f[p[e].name]=t[e]}catch(t){if(i){if(t instanceof gp||t instanceof ry)throw new Cp({abiItem:c,data:n,params:p,size:up(n)});throw t}}else if(i)throw new Cp({abiItem:c,data:"0x",params:p,size:0});return{eventName:u,args:Object.values(f).length>0?f:void 0}}function Mb({param:t,value:e}){if("string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))return e;return(dy([t],e)||[])[0]}function Cb(t){const{abi:e,args:n,logs:r,strict:a=!0}=t,i=(()=>{if(t.eventName)return Array.isArray(t.eventName)?t.eventName:[t.eventName]})();return r.map(t=>{try{const r=e.find(e=>"event"===e.type&&t.topics[0]===bm(e));if(!r)return null;const s=Bb({...t,abi:[r],strict:a});return i&&!i.includes(s.eventName)?null:function(t){const{args:e,inputs:n,matchArgs:r}=t;if(!r)return!0;if(!e)return!1;function a(t,e,n){try{return"address"===t.type?Ob(e,n):"string"===t.type||"bytes"===t.type?pm(um(e))===n:e===n}catch{return!1}}if(Array.isArray(e)&&Array.isArray(r))return r.every((t,r)=>{if(null==t)return!0;const i=n[r];if(!i)return!1;return(Array.isArray(t)?t:[t]).some(t=>a(i,t,e[r]))});return"object"==typeof e&&!Array.isArray(e)&&"object"==typeof r&&!Array.isArray(r)&&Object.entries(r).every(([t,r])=>{if(null==r)return!0;const i=n.find(e=>e.name===t);if(!i)return!1;return(Array.isArray(r)?r:[r]).some(n=>a(i,n,e[t]))})}({args:s.args,inputs:r.inputs,matchArgs:n})?{...s,...t}:null}catch(e){let n,r;if(e instanceof Pp)return null;if(e instanceof Cp||e instanceof Np){if(a)return null;n=e.abiItem.name,r=e.abiItem.inputs?.some(t=>!("name"in t&&t.name))}return{...t,args:r?[]:{},eventName:n}}}).filter(Boolean)}function Nb(t,{args:e,eventName:n}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...n?{args:e,eventName:n}:{}}}async function jb(t,{address:e,blockHash:n,fromBlock:r,toBlock:a,event:i,events:s,args:o,strict:c}={}){const u=c??!1,d=s??(i?[i]:void 0);let l,f=[];if(d){const t=d.flatMap(t=>Zm({abi:[t],eventName:t.name,args:s?void 0:o}));f=[t],i&&(f=f[0])}l=n?await t.request({method:"eth_getLogs",params:[{address:e,topics:f,blockHash:n}]}):await t.request({method:"eth_getLogs",params:[{address:e,topics:f,fromBlock:"bigint"==typeof r?im(r):r,toBlock:"bigint"==typeof a?im(a):a}]});const h=l.map(t=>Nb(t));return d?Cb({abi:d,args:o,logs:h,strict:u}):h}async function Rb(t,e){const{abi:n,address:r,args:a,blockHash:i,eventName:s,fromBlock:o,toBlock:c,strict:u}=e,d=s?qm({abi:n,name:s}):void 0,l=d?void 0:n.filter(t=>"event"===t.type);return ip(t,jb,"getLogs")({address:r,args:a,blockHash:i,event:d,events:l,fromBlock:o,toBlock:c,strict:u})}const Ub="/docs/contract/decodeFunctionResult";function Lb(t){const{abi:e,args:n,functionName:r,data:a}=t;let i=e[0];if(r){const t=qm({abi:e,args:n,name:r});if(!t)throw new _p(r,{docsPath:Ub});i=t}if("function"!==i.type)throw new _p(void 0,{docsPath:Ub});if(!i.outputs)throw new Op(i.name,{docsPath:Ub});const s=dy(i.outputs,a);return s&&s.length>1?s:s&&1===s.length?s[0]:void 0}function zb(t){return{address:t.address,amount:yl(t.amount),index:yl(t.index),validatorIndex:yl(t.validatorIndex)}}function Fb(t){return{..."bigint"==typeof t.baseFeePerGas&&{baseFeePerGas:yl(t.baseFeePerGas)},..."bigint"==typeof t.blobBaseFee&&{blobBaseFee:yl(t.blobBaseFee)},..."string"==typeof t.feeRecipient&&{feeRecipient:t.feeRecipient},..."bigint"==typeof t.gasLimit&&{gasLimit:yl(t.gasLimit)},..."bigint"==typeof t.number&&{number:yl(t.number)},..."bigint"==typeof t.prevRandao&&{prevRandao:yl(t.prevRandao)},..."bigint"==typeof t.time&&{time:yl(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(zb)}}}const Db=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],qb=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],Gb=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],Kb=[...Gb,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],Vb=[...Gb,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],Zb=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],Hb=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],Wb=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],Jb=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],Yb="0x82ad56cb",$b="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Qb="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Xb="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",tv="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";class ev extends hp{constructor({blockNumber:t,chain:e,contract:n}){super(`Chain "${e.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class nv extends hp{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class rv extends hp{constructor({chainId:t}){super("number"==typeof t?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const av="/docs/contract/encodeDeployData";function iv(t){const{abi:e,args:n,bytecode:r}=t;if(!n||0===n.length)return r;const a=e.find(t=>"type"in t&&"constructor"===t.type);if(!a)throw new mp({docsPath:av});if(!("inputs"in a))throw new yp({docsPath:av});if(!a.inputs||0===a.inputs.length)throw new yp({docsPath:av});return _m([r,Um(a.inputs,n)])}function sv({blockNumber:t,chain:e,contract:n}){const r=e?.contracts?.[n];if(!r)throw new ev({chain:e,contract:{name:n}});if(t&&r.blockCreated&&r.blockCreated>t)throw new ev({blockNumber:t,chain:e,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function ov(t,{docsPath:e,...n}){const r=(()=>{const e=Fg(t,n);return e instanceof zg?t:e})();return new jy(r,{docsPath:e,...n})}function cv(){let t=()=>{},e=()=>{};return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}const uv=new Map;function dv({fn:t,id:e,shouldSplitBatch:n,wait:r=0,sort:a}){const i=async()=>{const e=o();s();const n=e.map(({args:t})=>t);0!==n.length&&t(n).then(t=>{a&&Array.isArray(t)&&t.sort(a);for(let n=0;n<e.length;n++){const{resolve:r}=e[n];r?.([t[n],t])}}).catch(t=>{for(let n=0;n<e.length;n++){const{reject:r}=e[n];r?.(t)}})},s=()=>uv.delete(e),o=()=>uv.get(e)||[],c=t=>uv.set(e,[...o(),t]);return{flush:s,async schedule(t){const{promise:e,resolve:a,reject:s}=cv(),u=n?.([...o().map(({args:t})=>t),t]);u&&i();return o().length>0?(c({args:t,resolve:a,reject:s}),e):(c({args:t,resolve:a,reject:s}),setTimeout(i,r),e)}}}async function lv(t,e){const{account:n=t.account,authorizationList:r,batch:a=Boolean(t.batch?.multicall),blockNumber:i,blockTag:s=t.experimental_blockTag??"latest",accessList:o,blobs:c,blockOverrides:u,code:d,data:l,factory:f,factoryData:h,gas:p,gasPrice:m,maxFeePerBlobGas:y,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:v,to:w,value:x,stateOverride:k,...A}=e,I=n?Ym(n):void 0;if(d&&(f||h))throw new hp("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(d&&w)throw new hp("Cannot provide both `code` & `to` as parameters.");const E=d&&l,P=f&&h&&w&&l,S=E||P,_=E?fv({code:d,data:l}):P?function(t){const{data:e,factory:n,factoryData:r,to:a}=t;return iv({abi:ap(["constructor(address, bytes, address, bytes)"]),bytecode:Qb,args:[a,e,n,r]})}({data:l,factory:f,factoryData:h,to:w}):l;try{Jg(e);const n=("bigint"==typeof i?im(i):void 0)||s,d=u?Fb(u):void 0,l=Hg(k),f=t.chain?.formatters?.transactionRequest?.format,h=(f||Kg)({...Dg(A,{format:f}),accessList:o,account:I,authorizationList:r,blobs:c,data:_,gas:p,gasPrice:m,maxFeePerBlobGas:y,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:v,to:S?void 0:w,value:x},"call");if(a&&function({request:t}){const{data:e,to:n,...r}=t;return!!e&&(!e.startsWith(Yb)&&(!!n&&!(Object.values(r).filter(t=>void 0!==t).length>0)))}({request:h})&&!l&&!d)try{return await async function(t,e){const{batchSize:n=1024,deployless:r=!1,wait:a=0}="object"==typeof t.batch?.multicall?t.batch.multicall:{},{blockNumber:i,blockTag:s=t.experimental_blockTag??"latest",data:o,to:c}=e,u=(()=>{if(r)return null;if(e.multicallAddress)return e.multicallAddress;if(t.chain)return sv({blockNumber:i,chain:t.chain,contract:"multicall3"});throw new nv})(),d="bigint"==typeof i?im(i):void 0,l=d||s,{schedule:f}=dv({id:`${t.uid}.${l}`,wait:a,shouldSplitBatch(t){const e=t.reduce((t,{data:e})=>t+(e.length-2),0);return e>2*n},fn:async e=>{const n=e.map(t=>({allowFailure:!0,callData:t.data,target:t.to})),r=Qm({abi:Db,args:[n],functionName:"aggregate3"}),a=await t.request({method:"eth_call",params:[{...null===u?{data:fv({code:tv,data:r})}:{to:u,data:r}},l]});return Lb({abi:Db,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:h,success:p}]=await f({data:o,to:c});if(!p)throw new Fy({data:h});return"0x"===h?{data:void 0}:{data:h}}(t,{...h,blockNumber:i,blockTag:s})}catch(t){if(!(t instanceof nv||t instanceof ev))throw t}const E=(()=>{const t=[h,n];return l&&d?[...t,l,d]:l?[...t,l]:d?[...t,{},d]:t})(),P=await t.request({method:"eth_call",params:E});return"0x"===P?{data:void 0}:{data:P}}catch(n){const r=function(t){if(!(t instanceof hp))return;const e=t.walk();return"object"==typeof e?.data?e.data?.data:e.data}(n),{offchainLookup:a,offchainLookupSignature:i}=await Promise.resolve().then(function(){return Bw});if(!1!==t.ccipRead&&r?.slice(0,10)===i&&w)return{data:await a(t,{data:r,to:w})};if(S&&"0x101bb98d"===r?.slice(0,10))throw new zy({factory:f});throw ov(n,{...e,account:I,chain:t.chain})}}function fv(t){const{code:e,data:n}=t;return iv({abi:ap(["constructor(bytes, bytes)"]),bytecode:$b,args:[e,n]})}async function hv(t,e){const{abi:n,address:r,args:a,functionName:i,...s}=e,o=Qm({abi:n,args:a,functionName:i});try{const{data:e}=await ip(t,lv,"call")({...s,data:o,to:r});return Lb({abi:n,args:a,functionName:i,data:e||"0x"})}catch(t){throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/readContract",functionName:i})}}const pv=new Map,mv=new Map;let yv=0;function gv(t,e,n){const r=++yv,a=()=>pv.get(t)||[],i=()=>{const e=a();if(!e.some(t=>t.id===r))return;const n=mv.get(t);if(1===e.length&&n){const t=n();t instanceof Promise&&t.catch(()=>{})}(()=>{const e=a();pv.set(t,e.filter(t=>t.id!==r))})()},s=a();if(pv.set(t,[...s,{id:r,fns:e}]),s&&s.length>0)return i;const o={};for(const t in e)o[t]=(...e)=>{const n=a();if(0!==n.length)for(const r of n)r.fns[t]?.(...e)};const c=n(o);return"function"==typeof c&&mv.set(t,c),i}async function bv(t){return new Promise(e=>setTimeout(e,t))}function vv(t,{emitOnBegin:e,initialWaitTime:n,interval:r}){let a=!0;const i=()=>a=!1;return(async()=>{let s;e&&(s=await t({unpoll:i}));const o=await(n?.(s))??r;await bv(o);const c=async()=>{a&&(await t({unpoll:i}),await bv(r),c())};c()})(),i}const wv=new Map,xv=new Map;async function kv(t,{cacheKey:e,cacheTime:n=Number.POSITIVE_INFINITY}){const r=function(t){const e=(t,e)=>({clear:()=>e.delete(t),get:()=>e.get(t),set:n=>e.set(t,n)}),n=e(t,wv),r=e(t,xv);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(e),a=r.response.get();if(a&&n>0){if(Date.now()-a.created.getTime()<n)return a.data}let i=r.promise.get();i||(i=t(),r.promise.set(i));try{const t=await i;return r.response.set({created:new Date,data:t}),t}finally{r.promise.clear()}}async function Av(t,{cacheTime:e=t.cacheTime}={}){const n=await kv(()=>t.request({method:"eth_blockNumber"}),{cacheKey:(r=t.uid,`blockNumber.${r}`),cacheTime:e});var r;return BigInt(n)}async function Iv(t,{filter:e}){const n="strict"in e&&e.strict,r=await e.request({method:"eth_getFilterChanges",params:[e.id]});if("string"==typeof r[0])return r;const a=r.map(t=>Nb(t));return"abi"in e&&e.abi?Cb({abi:e.abi,logs:a,strict:n}):a}async function Ev(t,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}class Pv extends hp{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Sv extends hp{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function _v(t,{delay:e=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((a,i)=>{const s=async({count:o=0}={})=>{try{const e=await t();a(e)}catch(t){if(o<n&&await r({count:o,error:t}))return(async({error:t})=>{const n="function"==typeof e?e({count:o,error:t}):e;n&&await bv(n),s({count:o+1})})({error:t});i(t)}};s()})}const Ov={"0x0":"reverted","0x1":"success"};function Tv(t,e){const n={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(t=>Nb(t)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Xp(t.transactionIndex):null,status:t.status?Ov[t.status]:null,type:t.type?tb[t.type]||t.type:null};return t.blobGasPrice&&(n.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(n.blobGasUsed=BigInt(t.blobGasUsed)),n}const Bv=qg("transactionReceipt",Tv),Mv=im(0,{size:32});async function Cv(t,e){const{atomic:n=!1,chainId:r,receipts:a,version:i="2.0.0",...s}=await async function(e){if(e.endsWith("0x5792579257925792579257925792579257925792579257925792579257925792".slice(2))){const n=Yp(Cm(e,-64,-32)),r=Cm(e,0,-64).slice(2).match(/.{1,64}/g),a=await Promise.all(r.map(e=>Mv.slice(2)!==e?t.request({method:"eth_getTransactionReceipt",params:[`0x${e}`]},{dedupe:!0}):void 0)),i=a.some(t=>null===t)?100:a.every(t=>"0x1"===t?.status)?200:a.every(t=>"0x0"===t?.status)?500:600;return{atomic:!1,chainId:Xp(n),receipts:a.filter(Boolean),status:i,version:"2.0.0"}}return t.request({method:"wallet_getCallsStatus",params:[e]})}(e.id),[o,c]=(()=>{const t=s.status;return t>=100&&t<200?["pending",t]:t>=200&&t<300?["success",t]:t>=300&&t<700?["failure",t]:"CONFIRMED"===t?["success",200]:"PENDING"===t?["pending",100]:[void 0,t]})();return{...s,atomic:n,chainId:r?Xp(r):void 0,receipts:a?.map(t=>({...t,blockNumber:Qp(t.blockNumber),gasUsed:Qp(t.gasUsed),status:Ov[t.status]}))??[],statusCode:c,status:o,version:i}}async function Nv(t,e){const{id:n,pollingInterval:r=t.pollingInterval,status:a=({statusCode:t})=>200===t||t>=300,retryCount:i=4,retryDelay:s=({count:t})=>200*(1<<t),timeout:o=6e4,throwOnFailure:c=!1}=e,u=yy(["waitForCallsStatus",t.uid,n]),{promise:d,resolve:l,reject:f}=cv();let h;const p=gv(u,{resolve:l,reject:f},e=>{const o=vv(async()=>{const r=t=>{clearTimeout(h),o(),t(),p()};try{const o=await _v(async()=>{const e=await ip(t,Cv,"getCallsStatus")({id:n});if(c&&"failure"===e.status)throw new Sv(e);return e},{retryCount:i,delay:s});if(!a(o))return;r(()=>e.resolve(o))}catch(t){r(()=>e.reject(t))}},{interval:r,emitOnBegin:!0});return o});return h=o?setTimeout(()=>{p(),clearTimeout(h),f(new jv({id:n}))},o):void 0,await d}class jv extends hp{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}let Rv,Uv=256;function Lv(t=11){if(!Rv||Uv+t>512){Rv="",Uv=0;for(let t=0;t<256;t++)Rv+=(256+256*Math.random()|0).toString(16).substring(1)}return Rv.substring(Uv,Uv+++t)}function zv(t){const{batch:e,chain:n,ccipRead:r,key:a="base",name:i="Base Client",type:s="base"}=t,o=t.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),c=n?.blockTime??12e3,u=Math.min(Math.max(Math.floor(c/2),500),4e3),d=t.pollingInterval??u,l=t.cacheTime??d,f=t.account?Ym(t.account):void 0,{config:h,request:p,value:m}=t.transport({chain:n,pollingInterval:d}),y={account:f,batch:e,cacheTime:l,ccipRead:r,chain:n,key:a,name:i,pollingInterval:d,request:p,transport:{...h,...m},type:s,uid:Lv(),...o?{experimental_blockTag:o}:{}};return Object.assign(y,{extend:function t(e){return n=>{const r=n(e);for(const t in y)delete r[t];const a={...e,...r};return Object.assign(a,{extend:t(a)})}}(y)})}function Fv(t){if(!(t instanceof hp))return!1;const e=t.walk(t=>t instanceof Uy);return e instanceof Uy&&("HttpError"===e.data?.errorName||("ResolverError"===e.data?.errorName||("ResolverNotContract"===e.data?.errorName||("ResolverNotFound"===e.data?.errorName||("ReverseAddressMismatch"===e.data?.errorName||"UnsupportedResolverProfile"===e.data?.errorName)))))}function Dv(t){const{abi:e,data:n}=t,r=Om(n,0,4),a=e.find(t=>"function"===t.type&&r===Dm(sp(t)));if(!a)throw new Tp(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:a.name,args:"inputs"in a&&a.inputs&&a.inputs.length>0?dy(a.inputs,Om(n,4)):void 0}}const qv="/docs/contract/encodeErrorResult";function Gv(t){const{abi:e,errorName:n,args:r}=t;let a=e[0];if(n){const t=qm({abi:e,args:r,name:n});if(!t)throw new Ap(n,{docsPath:qv});a=t}if("error"!==a.type)throw new Ap(void 0,{docsPath:qv});const i=sp(a),s=Dm(i);let o="0x";if(r&&r.length>0){if(!a.inputs)throw new kp(a.name,{docsPath:qv});o=Um(a.inputs,r)}return _m([s,o])}const Kv="/docs/contract/encodeFunctionResult";const Vv="x-batch-gateway:true";async function Zv(t){const{data:e,ccipRequest:n}=t,{args:[r]}=Dv({abi:qb,data:e}),a=[],i=[];return await Promise.all(r.map(async(t,e)=>{try{i[e]=t.urls.includes(Vv)?await Zv({data:t.data,ccipRequest:n}):await n(t),a[e]=!1}catch(t){a[e]=!0,i[e]="HttpRequestError"===(r=t).name&&r.status?Gv({abi:qb,errorName:"HttpError",args:[r.status,r.shortMessage]}):Gv({abi:[ty],errorName:"Error",args:["shortMessage"in r?r.shortMessage:r.message]})}var r})),function(t){const{abi:e,functionName:n,result:r}=t;let a=e[0];if(n){const t=qm({abi:e,name:n});if(!t)throw new _p(n,{docsPath:Kv});a=t}if("function"!==a.type)throw new _p(void 0,{docsPath:Kv});if(!a.outputs)throw new Op(a.name,{docsPath:Kv});const i=(()=>{if(0===a.outputs.length)return[];if(1===a.outputs.length)return[r];if(Array.isArray(r))return r;throw new Up(r)})();return Um(a.outputs,i)}({abi:qb,functionName:"query",result:[a,i]})}function Hv(t){if(66!==t.length)return null;if(0!==t.indexOf("["))return null;if(65!==t.indexOf("]"))return null;const e=`0x${t.slice(1,65)}`;return cp(e)?e:null}function Wv(t){let e=new Uint8Array(32).fill(0);if(!t)return am(e);const n=t.split(".");for(let t=n.length-1;t>=0;t-=1){const r=Hv(n[t]),a=r?um(r):pm(hm(n[t]),"bytes");e=pm(Sm([e,a]),"bytes")}return am(e)}function Jv(t){return`[${t.slice(2)}]`}function Yv(t){const e=new Uint8Array(32).fill(0);return t?Hv(t)||pm(hm(t)):am(e)}function $v(t){const e=t.replace(/^\.|\.$/gm,"");if(0===e.length)return new Uint8Array(1);const n=new Uint8Array(hm(e).byteLength+2);let r=0;const a=e.split(".");for(let t=0;t<a.length;t++){let e=hm(a[t]);e.byteLength>255&&(e=hm(Jv(Yv(a[t])))),n[r]=e.length,n.set(e,r+1),r+=e.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}class Qv extends hp{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Xv extends hp{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class tw extends hp{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class ew extends hp{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const nw=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,rw=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,aw=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,iw=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function sw(t,e){return t?t.endsWith("/")?t.slice(0,-1):t:e}function ow({uri:t,gatewayUrls:e}){const n=aw.test(t);if(n)return{uri:t,isOnChain:!0,isEncoded:n};const r=sw(e?.ipfs,"https://ipfs.io"),a=sw(e?.arweave,"https://arweave.net"),i=t.match(nw),{protocol:s,subpath:o,target:c,subtarget:u=""}=i?.groups||{},d="ipns:/"===s||"ipns/"===o,l="ipfs:/"===s||"ipfs/"===o||rw.test(t);if(t.startsWith("http")&&!d&&!l){let n=t;return e?.arweave&&(n=t.replace(/https:\/\/arweave.net/g,e?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((d||l)&&c)return{uri:`${r}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&c)return{uri:`${a}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=t.replace(iw,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new tw({uri:t})}function cw(t){if("object"!=typeof t||!("image"in t)&&!("image_url"in t)&&!("image_data"in t))throw new Qv({data:t});return t.image||t.image_url||t.image_data}async function uw({gatewayUrls:t,uri:e}){const{uri:n,isOnChain:r}=ow({uri:e,gatewayUrls:t});if(r)return n;const a=await async function(t){try{const e=await fetch(t,{method:"HEAD"});if(200===e.status){const t=e.headers.get("content-type");return t?.startsWith("image/")}return!1}catch(e){return("object"!=typeof e||void 0===e.response)&&!!Object.hasOwn(globalThis,"Image")&&new Promise(e=>{const n=new Image;n.onload=()=>{e(!0)},n.onerror=()=>{e(!1)},n.src=t})}}(n);if(a)return n;throw new tw({uri:e})}async function dw(t,{gatewayUrls:e,record:n}){return/eip155:/i.test(n)?async function(t,{gatewayUrls:e,record:n}){const r=function(t){let e=t;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[n,r,a]=e.split("/"),[i,s]=n.split(":"),[o,c]=r.split(":");if(!i||"eip155"!==i.toLowerCase())throw new Xv({reason:"Only EIP-155 supported"});if(!s)throw new Xv({reason:"Chain ID not found"});if(!c)throw new Xv({reason:"Contract address not found"});if(!a)throw new Xv({reason:"Token ID not found"});if(!o)throw new Xv({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:o.toLowerCase(),contractAddress:c,tokenID:a}}(n),a=await async function(t,{nft:e}){if("erc721"===e.namespace)return hv(t,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if("erc1155"===e.namespace)return hv(t,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new ew({namespace:e.namespace})}(t,{nft:r}),{uri:i,isOnChain:s,isEncoded:o}=ow({uri:a,gatewayUrls:e});if(s&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const t=o?atob(i.replace("data:application/json;base64,","")):i;return uw({uri:cw(JSON.parse(t)),gatewayUrls:e})}let c=r.tokenID;"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0"));return async function({gatewayUrls:t,uri:e}){try{const n=await fetch(e).then(t=>t.json());return await uw({gatewayUrls:t,uri:cw(n)})}catch{throw new tw({uri:e})}}({gatewayUrls:e,uri:i.replace(/(?:0x)?{id}/,c)})}(t,{gatewayUrls:e,record:n}):uw({uri:n,gatewayUrls:e})}async function lw(t,e){const{blockNumber:n,blockTag:r,key:a,name:i,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c?.ensTlds;if(d&&!d.some(t=>i.endsWith(t)))return null;try{const e={address:u,abi:Kb,args:[nm($v(i)),Qm({abi:Zb,functionName:"text",args:[Wv(i),a]}),s??[Vv]],functionName:"resolveWithGateways",blockNumber:n,blockTag:r},o=ip(t,hv,"readContract"),c=await o(e);if("0x"===c[0])return null;const d=Lb({abi:Zb,functionName:"text",data:c[0]});return""===d?null:d}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}async function fw(t,e){const{account:n=t.account,blockNumber:r,blockTag:a="latest",blobs:i,data:s,gas:o,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:l,to:f,value:h,...p}=e,m=n?Ym(n):void 0;try{Jg(e);const n=("bigint"==typeof r?im(r):void 0)||a,y=t.chain?.formatters?.transactionRequest?.format,g=(y||Kg)({...Dg(p,{format:y}),account:m,blobs:i,data:s,gas:o,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:l,to:f,value:h},"createAccessList"),b=await t.request({method:"eth_createAccessList",params:[g,n]});return{accessList:b.accessList,gasUsed:BigInt(b.gasUsed)}}catch(n){throw ov(n,{...e,account:m,chain:t.chain})}}async function hw(t,{address:e,args:n,event:r,events:a,fromBlock:i,strict:s,toBlock:o}={}){const c=a??(r?[r]:void 0),u=Wm(t,{method:"eth_newFilter"});let d=[];if(c){const t=c.flatMap(t=>Zm({abi:[t],eventName:t.name,args:n}));d=[t],r&&(d=d[0])}const l=await t.request({method:"eth_newFilter",params:[{address:e,fromBlock:"bigint"==typeof i?im(i):i,toBlock:"bigint"==typeof o?im(o):o,...d.length?{topics:d}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:i,id:l,request:u(l),strict:Boolean(s),toBlock:o,type:"event"}}async function pw(t){const e=Wm(t,{method:"eth_newPendingTransactionFilter"}),n=await t.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:e(n),type:"transaction"}}async function mw(t,{address:e,blockNumber:n,blockTag:r="latest"}){const a=void 0!==n?im(n):void 0,i=await t.request({method:"eth_getCode",params:[e,a||r]},{dedupe:Boolean(a)});if("0x"!==i)return i}class yw extends hp{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}const gw=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function bw(t,{blockCount:e,blockNumber:n,blockTag:r="latest",rewardPercentiles:a}){const i="bigint"==typeof n?im(n):void 0;return function(t){return{baseFeePerGas:t.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:t.gasUsedRatio,oldestBlock:BigInt(t.oldestBlock),reward:t.reward?.map(t=>t.map(t=>BigInt(t)))}}(await t.request({method:"eth_feeHistory",params:[im(e),i||r,a]},{dedupe:Boolean(i)}))}function vw(t,e,n=!1){if("address"===t){const t=e;if(!Pm(t))throw new vm({address:t});return Kp(t.toLowerCase(),{size:n?32:null})}if("string"===t)return om(e);if("bytes"===t)return e;if("bool"===t)return Kp(rm(e),{size:n?32:1});const r=t.match(Rm);if(r){const[t,a,i="256"]=r,s=Number.parseInt(i,10)/8;return im(e,{size:n?32:s,signed:"int"===a})}const a=t.match(jm);if(a){const[t,r]=a;if(Number.parseInt(r,10)!==(e.length-2)/2)throw new Mp({expectedSize:Number.parseInt(r,10),givenSize:(e.length-2)/2});return Kp(e,{dir:"right",size:n?32:null})}const i=t.match(Nm);if(i&&Array.isArray(e)){const[t,n]=i,r=[];for(let t=0;t<e.length;t++)r.push(vw(n,e[t],!0));return 0===r.length?"0x":_m(r)}throw new zp(t)}function ww(t){const{chainId:e,maxPriorityFeePerGas:n,maxFeePerGas:r,to:a}=t;if(e<=0)throw new rv({chainId:e});if(a&&!Pm(a))throw new vm({address:a});if(r&&r>Wg)throw new Og({maxFeePerGas:r});if(n&&r&&n>r)throw new Lg({maxFeePerGas:r,maxPriorityFeePerGas:n})}function xw(t){if(!t||0===t.length)return[];const e=[];for(let n=0;n<t.length;n++){const{address:r,storageKeys:a}=t[n];for(let t=0;t<a.length;t++)if(a[t].length-2!=64)throw new Ty({storageKey:a[t]});if(!Pm(r,{strict:!1}))throw new vm({address:r});e.push([r,a])}return e}function kw(t,e){const n=Ab(t);return"eip1559"===n?function(t,e){const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,accessList:u,data:d}=t;ww(t);const l=xw(u),f=[im(n),a?im(a):"0x",c?im(c):"0x",o?im(o):"0x",r?im(r):"0x",i??"0x",s?im(s):"0x",d??"0x",l,...Aw(t,e)];return _m(["0x02",kg(f)])}(t,e):"eip2930"===n?function(t,e){const{chainId:n,gas:r,data:a,nonce:i,to:s,value:o,accessList:c,gasPrice:u}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(e<=0)throw new rv({chainId:e});if(i&&!Pm(i))throw new vm({address:i});if(n||a)throw new hp("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Wg)throw new Og({maxFeePerGas:r})}(t);const d=xw(c),l=[im(n),i?im(i):"0x",u?im(u):"0x",r?im(r):"0x",s??"0x",o?im(o):"0x",a??"0x",d,...Aw(t,e)];return _m(["0x01",kg(l)])}(t,e):"eip4844"===n?function(t,e){const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerBlobGas:o,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:l}=t;!function(t){const{blobVersionedHashes:e}=t;if(e){if(0===e.length)throw new vb;for(const t of e){const e=up(t),n=Xp(Om(t,0,1));if(32!==e)throw new wb({hash:t,size:e});if(1!==n)throw new xb({hash:t,version:n})}}ww(t)}(t);let f=t.blobVersionedHashes,h=t.sidecars;if(t.blobs&&(void 0===f||void 0===h)){const e="string"==typeof t.blobs[0]?t.blobs:t.blobs.map(t=>am(t)),n=t.kzg,r=lb({blobs:e,kzg:n});if(void 0===f&&(f=pb({commitments:r})),void 0===h){h=kb({blobs:e,commitments:r,proofs:fb({blobs:e,commitments:r,kzg:n})})}}const p=xw(d),m=[im(n),a?im(a):"0x",u?im(u):"0x",c?im(c):"0x",r?im(r):"0x",i??"0x",s?im(s):"0x",l??"0x",p,o?im(o):"0x",f??[],...Aw(t,e)],y=[],g=[],b=[];if(h)for(let t=0;t<h.length;t++){const{blob:e,commitment:n,proof:r}=h[t];y.push(e),g.push(n),b.push(r)}return _m(["0x03",kg(h?[m,y,g,b]:m)])}(t,e):"eip7702"===n?function(t,e){const{authorizationList:n,chainId:r,gas:a,nonce:i,to:s,value:o,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:l}=t;!function(t){const{authorizationList:e}=t;if(e)for(const t of e){const{chainId:e}=t,n=t.address;if(!Pm(n))throw new vm({address:n});if(e<0)throw new rv({chainId:e})}ww(t)}(t);const f=xw(d),h=function(t){if(!t||0===t.length)return[];const e=[];for(const n of t){const{chainId:t,nonce:r,...a}=n,i=n.address;e.push([t?nm(t):"0x",i,r?nm(r):"0x",...Aw({},a)])}return e}(n);return _m(["0x04",kg([im(r),i?im(i):"0x",u?im(u):"0x",c?im(c):"0x",a?im(a):"0x",s??"0x",o?im(o):"0x",l??"0x",f,h,...Aw(t,e)])])}(t,e):function(t,e){const{chainId:n=0,gas:r,data:a,nonce:i,to:s,value:o,gasPrice:c}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(i&&!Pm(i))throw new vm({address:i});if(void 0!==e&&e<=0)throw new rv({chainId:e});if(n||a)throw new hp("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Wg)throw new Og({maxFeePerGas:r})}(t);let u=[i?im(i):"0x",c?im(c):"0x",r?im(r):"0x",s??"0x",o?im(o):"0x",a??"0x"];if(e){const t=(()=>{if(e.v>=35n){return(e.v-35n)/2n>0?e.v:27n+(35n===e.v?0n:1n)}if(n>0)return BigInt(2*n)+BigInt(35n+e.v-27n);const t=27n+(27n===e.v?0n:1n);if(e.v!==t)throw new _y({v:e.v});return t})(),r=Yp(e.r),a=Yp(e.s);u=[...u,im(t),"0x00"===r?"0x":r,"0x00"===a?"0x":a]}else n>0&&(u=[...u,im(n),"0x","0x"]);return kg(u)}(t,e)}function Aw(t,e){const n=e??t,{v:r,yParity:a}=n;if(void 0===n.r)return[];if(void 0===n.s)return[];if(void 0===r&&void 0===a)return[];const i=Yp(n.r),s=Yp(n.s);return["number"==typeof a?a?im(1):"0x":0n===r?"0x":1n===r?im(1):27n===r?"0x":im(1),"0x00"===i?"0x":i,"0x00"===s?"0x":s]}const Iw=new wm(8192);function Ew(t,e={}){return async(n,r={})=>{const{dedupe:a=!1,methods:i,retryDelay:s=150,retryCount:o=3,uid:c}={...e,...r},{method:u}=n;if(i?.exclude?.includes(u))throw new eg(new Error("method not supported"),{method:u});if(i?.include&&!i.include.includes(u))throw new eg(new Error("method not supported"),{method:u});return function(t,{enabled:e=!0,id:n}){if(!e||!n)return t();if(Iw.get(n))return Iw.get(n);const r=t().finally(()=>Iw.delete(n));return Iw.set(n,r),r}(()=>_v(async()=>{try{return await t(n)}catch(t){const e=t;switch(e.code){case Zy.code:throw new Zy(e);case Hy.code:throw new Hy(e);case Wy.code:throw new Wy(e,{method:n.method});case Jy.code:throw new Jy(e);case Yy.code:throw new Yy(e);case $y.code:throw new $y(e);case Qy.code:throw new Qy(e);case Xy.code:throw new Xy(e);case tg.code:throw new tg(e);case eg.code:throw new eg(e,{method:n.method});case ng.code:throw new ng(e);case rg.code:throw new rg(e);case ag.code:throw new ag(e);case ig.code:throw new ig(e);case sg.code:throw new sg(e);case og.code:throw new og(e);case cg.code:throw new cg(e);case ug.code:throw new ug(e);case dg.code:throw new dg(e);case lg.code:throw new lg(e);case fg.code:throw new fg(e);case hg.code:throw new hg(e);case pg.code:throw new pg(e);case mg.code:throw new mg(e);case yg.code:throw new yg(e);case 5e3:throw new ag(e);default:if(t instanceof hp)throw t;throw new gg(e)}}},{delay:({count:t,error:e})=>{if(e&&e instanceof Dy){const t=e?.headers?.get("Retry-After");if(t?.match(/\d/))return 1e3*Number.parseInt(t,10)}return(1<<t)*s},retryCount:o,shouldRetry:({error:t})=>function(t){if("code"in t&&"number"==typeof t.code)return-1===t.code||(t.code===ng.code||t.code===Yy.code);if(t instanceof Dy&&t.status)return 403===t.status||(408===t.status||(413===t.status||(429===t.status||(500===t.status||(502===t.status||(503===t.status||504===t.status))))));return!0}(t)}),{enabled:a,id:a?om(`${c}.${yy(n)}`):void 0})}}class Pw extends hp{constructor({callbackSelector:t,cause:e,data:n,extraData:r,sender:a,urls:i}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(t=>` ${t}`)],` Sender: ${a}`,` Data: ${n}`,` Callback selector: ${t}`,` Extra data: ${r}`].flat(),name:"OffchainLookupError"})}}class Sw extends hp{constructor({result:t,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${e}`,`Response: ${yy(t)}`],name:"OffchainLookupResponseMalformedError"})}}class _w extends hp{constructor({sender:t,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}const Ow={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function Tw({data:t,sender:e,urls:n}){let r=new Error("An unknown error occurred.");for(let a=0;a<n.length;a++){const i=n[a],s=i.includes("{data}")?"GET":"POST",o="POST"===s?{data:t,sender:e}:void 0,c="POST"===s?{"Content-Type":"application/json"}:{};try{const n=await fetch(i.replace("{sender}",e.toLowerCase()).replace("{data}",t),{body:JSON.stringify(o),headers:c,method:s});let a;if(a=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){r=new Dy({body:o,details:a?.error?yy(a.error):n.statusText,headers:n.headers,status:n.status,url:i});continue}if(!cp(a)){r=new Sw({result:a,url:i});continue}return a}catch(t){r=new Dy({body:o,details:t.message,url:i})}}throw r}var Bw=Object.freeze({__proto__:null,ccipRequest:Tw,offchainLookup:async function(t,{blockNumber:e,blockTag:n,data:r,to:a}){const{args:i}=my({data:r,abi:[Ow]}),[s,o,c,u,d]=i,{ccipRead:l}=t,f=l&&"function"==typeof l?.request?l.request:Tw;try{if(!Ob(a,s))throw new _w({sender:s,to:a});const r=o.includes(Vv)?await Zv({data:c,ccipRequest:f}):await f({data:c,sender:s,urls:o}),{data:i}=await lv(t,{blockNumber:e,blockTag:n,data:Sm([u,Um([{type:"bytes"},{type:"bytes"}],[r,d])]),to:a});return i}catch(t){throw new Pw({callbackSelector:u,cause:t,data:r,extraData:d,sender:s,urls:o})}},offchainLookupAbiItem:Ow,offchainLookupSignature:"0x556f1830"});function Mw(t){return{formatters:void 0,fees:void 0,serializers:void 0,...t}}function Cw(t){const{source:e}=t,n=new Map,r=new wm(8192),a=new Map,i=({address:t,chainId:e})=>`${t}.${e}`;return{async consume({address:t,chainId:n,client:a}){const s=i({address:t,chainId:n}),o=this.get({address:t,chainId:n,client:a});this.increment({address:t,chainId:n});const c=await o;return await e.set({address:t,chainId:n},c),r.set(s,c),c},async increment({address:t,chainId:e}){const r=i({address:t,chainId:e}),a=n.get(r)??0;n.set(r,a+1)},async get({address:t,chainId:s,client:o}){const c=i({address:t,chainId:s});let u=a.get(c);u||(u=(async()=>{try{const n=await e.get({address:t,chainId:s,client:o}),a=r.get(c)??0;return a>0&&n<=a?a+1:(r.delete(c),n)}finally{this.reset({address:t,chainId:s})}})(),a.set(c,u));return(n.get(c)??0)+await u},reset({address:t,chainId:e}){const r=i({address:t,chainId:e});n.delete(r),a.delete(r)}}}function Nw(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const jw=Nw();function Rw(t,e={}){return{async request(n){const{body:r,fetchFn:a=e.fetchFn??fetch,onRequest:i=e.onRequest,onResponse:s=e.onResponse,timeout:o=e.timeout??1e4}=n,c={...e.fetchOptions??{},...n.fetchOptions??{}},{headers:u,method:d,signal:l}=c;try{const e=await function(t,{errorInstance:e=new Error("timed out"),timeout:n,signal:r}){return new Promise((a,i)=>{(async()=>{let s;try{const e=new AbortController;n>0&&(s=setTimeout(()=>{r&&e.abort()},n)),a(await t({signal:e?.signal||null}))}catch(t){"AbortError"===t?.name&&i(e),i(t)}finally{clearTimeout(s)}})()})}(async({signal:e})=>{const n={...c,body:Array.isArray(r)?yy(r.map(t=>({jsonrpc:"2.0",id:t.id??jw.take(),...t}))):yy({jsonrpc:"2.0",id:r.id??jw.take(),...r}),headers:{"Content-Type":"application/json",...u},method:d||"POST",signal:l||(o>0?e:null)},s=new Request(t,n),f=await(i?.(s,n))??{...n,url:t};return await a(f.url??t,f)},{errorInstance:new Gy({body:r,url:t}),timeout:o,signal:!0});let n;if(s&&await s(e),e.headers.get("Content-Type")?.startsWith("application/json"))n=await e.json();else{n=await e.text();try{n=JSON.parse(n||"{}")}catch(t){if(e.ok)throw t;n={error:n}}}if(!e.ok)throw new Dy({body:r,details:yy(n.error)||e.statusText,headers:e.headers,status:e.status,url:t});return n}catch(e){if(e instanceof Dy)throw e;if(e instanceof Gy)throw e;throw new Dy({body:r,cause:e,url:t})}}}}function Uw(t,e){return pm(function(t){const e="string"==typeof t?om(t):"string"==typeof t.raw?t.raw:am(t.raw);return Sm([om(`Ethereum Signed Message:\n${up(e)}`),e])}(t),e)}class Lw extends hp{constructor({domain:t}){super(`Invalid domain "${yy(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class zw extends hp{constructor({primaryType:t,types:e}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(e))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class Fw extends hp{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function Dw({domain:t}){return["string"==typeof t?.name&&{name:"name",type:"string"},t?.version&&{name:"version",type:"string"},("number"==typeof t?.chainId||"bigint"==typeof t?.chainId)&&{name:"chainId",type:"uint256"},t?.verifyingContract&&{name:"verifyingContract",type:"address"},t?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function qw(t){if("address"===t||"bool"===t||"string"===t||t.startsWith("bytes")||t.startsWith("uint")||t.startsWith("int"))throw new Fw({type:t})}function Gw(t){const{domain:e={},message:n,primaryType:r}=t,a={EIP712Domain:Dw({domain:e}),...t.types};!function(t){const{domain:e,message:n,primaryType:r,types:a}=t,i=(t,e)=>{for(const n of t){const{name:t,type:r}=n,s=e[t],o=r.match(Rm);if(o&&("number"==typeof s||"bigint"==typeof s)){const[t,e,n]=o;im(s,{signed:"int"===e,size:Number.parseInt(n,10)/8})}if("address"===r&&"string"==typeof s&&!Pm(s))throw new vm({address:s});const c=r.match(jm);if(c){const[t,e]=c;if(e&&up(s)!==Number.parseInt(e,10))throw new Mp({expectedSize:Number.parseInt(e,10),givenSize:up(s)})}const u=a[r];u&&(qw(r),i(u,s))}};if(a.EIP712Domain&&e){if("object"!=typeof e)throw new Lw({domain:e});i(a.EIP712Domain,e)}if("EIP712Domain"!==r){if(!a[r])throw new zw({primaryType:r,types:a});i(a[r],n)}}({domain:e,message:n,primaryType:r,types:a});const i=["0x1901"];return e&&i.push(function({domain:t,types:e}){return Kw({data:t,primaryType:"EIP712Domain",types:e})}({domain:e,types:a})),"EIP712Domain"!==r&&i.push(Kw({data:n,primaryType:r,types:a})),pm(Sm(i))}function Kw({data:t,primaryType:e,types:n}){return pm(Vw({data:t,primaryType:e,types:n}))}function Vw({data:t,primaryType:e,types:n}){const r=[{type:"bytes32"}],a=[Zw({primaryType:e,types:n})];for(const i of n[e]){const[e,s]=Ww({types:n,name:i.name,type:i.type,value:t[i.name]});r.push(e),a.push(s)}return Um(r,a)}function Zw({primaryType:t,types:e}){const n=nm(function({primaryType:t,types:e}){let n="";const r=Hw({primaryType:t,types:e});r.delete(t);const a=[t,...Array.from(r).sort()];for(const t of a)n+=`${t}(${e[t].map(({name:t,type:e})=>`${e} ${t}`).join(",")})`;return n}({primaryType:t,types:e}));return pm(n)}function Hw({primaryType:t,types:e},n=new Set){const r=t.match(/^\w*/u),a=r?.[0];if(n.has(a)||void 0===e[a])return n;n.add(a);for(const t of e[a])Hw({primaryType:t.type,types:e},n);return n}function Ww({types:t,name:e,type:n,value:r}){if(void 0!==t[n])return[{type:"bytes32"},pm(Vw({data:r,primaryType:n,types:t}))];if("bytes"===n){return[{type:"bytes32"},pm(r=`0x${(r.length%2?"0":"")+r.slice(2)}`)]}if("string"===n)return[{type:"bytes32"},pm(nm(r))];if(n.lastIndexOf("]")===n.length-1){const a=n.slice(0,n.lastIndexOf("[")),i=r.map(n=>Ww({name:e,type:a,types:t,value:n}));return[{type:"bytes32"},pm(Um(i.map(([t])=>t),i.map(([,t])=>t)))]}return[{type:n},r]}class Jw extends Error{constructor(t,e={}){const n=e.cause instanceof Jw?e.cause.details:e.cause?.message?e.cause.message:e.details,r=e.cause instanceof Jw&&e.cause.docsPath||e.docsPath;super([t||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.1.1"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),e.cause&&(this.cause=e.cause),this.details=n,this.docsPath=r,this.metaMessages=e.metaMessages,this.shortMessage=t}}function Yw(t,e){const n=t.exec(e);return n?.groups}const $w=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Qw=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Xw=/^\(.+?\).*?$/,tx=/^tuple(?<array>(\[(\d*)\])*)$/;function ex(t){let e=t.type;if(tx.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let r=0;r<n;r++){e+=ex(t.components[r]),r<n-1&&(e+=", ")}const r=Yw(tx,t.type);return e+=`)${r?.array??""}`,ex({...t,type:e})}return"indexed"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}function nx(t){let e="";const n=t.length;for(let r=0;r<n;r++){e+=ex(t[r]),r!==n-1&&(e+=", ")}return e}function rx(t){return"function"===t.type?`function ${t.name}(${nx(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs?.length?` returns (${nx(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${nx(t.inputs)})`:"error"===t.type?`error ${t.name}(${nx(t.inputs)})`:"constructor"===t.type?`constructor(${nx(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback() external"+("payable"===t.stateMutability?" payable":""):"receive() external payable"}const ax=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const ix=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const sx=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;const ox=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function cx(t){return ox.test(t)}function ux(t){return Yw(ox,t)}const dx=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;const lx=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;const fx=/^receive\(\) external payable$/;const hx=new Set(["memory","indexed","storage","calldata"]),px=new Set(["indexed"]),mx=new Set(["calldata","memory","storage"]);class yx extends Jw{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class gx extends Jw{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class bx extends Jw{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class vx extends Jw{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class wx extends Jw{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class xx extends Jw{constructor({param:t,name:e}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${e}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class kx extends Jw{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class Ax extends Jw{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class Ix extends Jw{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Ex extends Jw{constructor({signature:t,type:e}){super(`Invalid ${e} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Px extends Jw{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Sx extends Jw{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class _x extends Jw{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class Ox extends Jw{constructor({current:t,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const Tx=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Bx(t,e={}){if(function(t){return sx.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(sx,t)}(t);if(!n)throw new Ex({signature:t,type:"function"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{modifiers:mx,structs:e,type:"function"}));const s=[];if(n.returns){const t=Rx(n.returns),r=t.length;for(let n=0;n<r;n++)s.push(jx(t[n],{modifiers:mx,structs:e,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}(t,e);if(function(t){return ix.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(ix,t)}(t);if(!n)throw new Ex({signature:t,type:"event"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{modifiers:px,structs:e,type:"event"}));return{name:n.name,type:"event",inputs:a}}(t,e);if(function(t){return ax.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(ax,t)}(t);if(!n)throw new Ex({signature:t,type:"error"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{structs:e,type:"error"}));return{name:n.name,type:"error",inputs:a}}(t,e);if(function(t){return dx.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(dx,t)}(t);if(!n)throw new Ex({signature:t,type:"constructor"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{structs:e,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(t,e);if(function(t){return lx.test(t)}(t))return function(t){const e=function(t){return Yw(lx,t)}(t);if(!e)throw new Ex({signature:t,type:"fallback"});return{type:"fallback",stateMutability:e.stateMutability??"nonpayable"}}(t);if(function(t){return fx.test(t)}(t))return{type:"receive",stateMutability:"payable"};throw new Px({signature:t})}const Mx=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Cx=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Nx=/^u?int$/;function jx(t,e){const n=function(t,e,n){let r="";if(n)for(const t of Object.entries(n)){if(!t)continue;let e="";for(const n of t[1])e+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${t[0]}{${e}})`}return e?`${e}:${t}${r}`:t}(t,e?.type,e?.structs);if(Tx.has(n))return Tx.get(n);const r=Xw.test(t),a=Yw(r?Cx:Mx,t);if(!a)throw new wx({param:t});if(a.name&&function(t){return"address"===t||"bool"===t||"function"===t||"string"===t||"tuple"===t||$w.test(t)||Qw.test(t)||Lx.test(t)}(a.name))throw new xx({param:t,name:a.name});const i=a.name?{name:a.name}:{},s="indexed"===a.modifier?{indexed:!0}:{},o=e?.structs??{};let c,u={};if(r){c="tuple";const t=Rx(a.type),e=[],n=t.length;for(let r=0;r<n;r++)e.push(jx(t[r],{structs:o}));u={components:e}}else if(a.type in o)c="tuple",u={components:o[a.type]};else if(Nx.test(a.type))c=`${a.type}256`;else if("address payable"===a.type)c="address";else if(c=a.type,"struct"!==e?.type&&!Ux(c))throw new bx({type:c});if(a.modifier){if(!e?.modifiers?.has?.(a.modifier))throw new kx({param:t,type:e?.type,modifier:a.modifier});if(mx.has(a.modifier)&&!function(t,e){return e||"bytes"===t||"string"===t||"tuple"===t}(c,!!a.array))throw new Ax({param:t,type:e?.type,modifier:a.modifier})}const d={type:`${c}${a.array??""}`,...i,...s,...u};return Tx.set(n,d),d}function Rx(t,e=[],n="",r=0){const a=t.trim().length;for(let i=0;i<a;i++){const a=t[i],s=t.slice(i+1);switch(a){case",":return 0===r?Rx(s,[...e,n.trim()]):Rx(s,e,`${n}${a}`,r);case"(":return Rx(s,e,`${n}${a}`,r+1);case")":return Rx(s,e,`${n}${a}`,r-1);default:return Rx(s,e,`${n}${a}`,r)}}if(""===n)return e;if(0!==r)throw new Ox({current:n,depth:r});return e.push(n.trim()),e}function Ux(t){return"address"===t||"bool"===t||"function"===t||"string"===t||$w.test(t)||Qw.test(t)}const Lx=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function zx(t){const e={},n=t.length;for(let r=0;r<n;r++){const n=t[r];if(!cx(n))continue;const a=ux(n);if(!a)throw new Ex({signature:n,type:"struct"});const i=a.properties.split(";"),s=[],o=i.length;for(let t=0;t<o;t++){const e=i[t].trim();if(!e)continue;const n=jx(e,{type:"struct"});s.push(n)}if(!s.length)throw new Sx({signature:n});e[a.name]=s}const r={},a=Object.entries(e),i=a.length;for(let t=0;t<i;t++){const[n,i]=a[t];r[n]=Dx(i,e)}return r}const Fx=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Dx(t,e,n=new Set){const r=[],a=t.length;for(let i=0;i<a;i++){const a=t[i];if(Xw.test(a.type))r.push(a);else{const t=Yw(Fx,a.type);if(!t?.type)throw new Ix({abiParameter:a});const{array:i,type:s}=t;if(s in e){if(n.has(s))throw new _x({type:s});r.push({...a,type:`tuple${i??""}`,components:Dx(e[s]??[],e,new Set([...n,s]))})}else{if(!Ux(s))throw new gx({type:s});r.push(a)}}}return r}function qx(t){let e;if("string"==typeof t)e=Bx(t);else{const n=zx(t),r=t.length;for(let a=0;a<r;a++){const r=t[a];if(!cx(r)){e=Bx(r,n);break}}}if(!e)throw new yx({signature:t});return e}function Gx(t){const e=[];if("string"==typeof t){const n=Rx(t),r=n.length;for(let t=0;t<r;t++)e.push(jx(n[t],{modifiers:hx}))}else{const n=zx(t),r=t.length;for(let a=0;a<r;a++){const r=t[a];if(cx(r))continue;const i=Rx(r),s=i.length;for(let t=0;t<s;t++)e.push(jx(i[t],{modifiers:hx,structs:n}))}}if(0===e.length)throw new vx({params:t});return e}const Kx=/^(.*)\[([0-9]*)\]$/,Vx=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Zx=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Hx=2n**256n-1n;function Wx(t,e,n){const{checksumAddress:r,staticPosition:a}=n,i=Xx(e.type);if(i){const[n,s]=i;return function(t,e,n){const{checksumAddress:r,length:a,staticPosition:i}=n;if(!a){const n=i+Dl(t.readBytes(Yx)),a=n+Jx;t.setPosition(n);const s=Dl(t.readBytes(Jx)),o=tk(e);let c=0;const u=[];for(let n=0;n<s;++n){t.setPosition(a+(o?32*n:c));const[i,s]=Wx(t,e,{checksumAddress:r,staticPosition:a});c+=s,u.push(i)}return t.setPosition(i+32),[u,32]}if(tk(e)){const n=i+Dl(t.readBytes(Yx)),s=[];for(let i=0;i<a;++i){t.setPosition(n+32*i);const[a]=Wx(t,e,{checksumAddress:r,staticPosition:n});s.push(a)}return t.setPosition(i+32),[s,32]}let s=0;const o=[];for(let n=0;n<a;++n){const[n,a]=Wx(t,e,{checksumAddress:r,staticPosition:i+s});s+=a,o.push(n)}return[o,s]}(t,{...e,type:s},{checksumAddress:r,length:n,staticPosition:a})}if("tuple"===e.type)return function(t,e,n){const{checksumAddress:r,staticPosition:a}=n,i=0===e.components.length||e.components.some(({name:t})=>!t),s=i?[]:{};let o=0;if(tk(e)){const n=a+Dl(t.readBytes(Yx));for(let a=0;a<e.components.length;++a){const c=e.components[a];t.setPosition(n+o);const[u,d]=Wx(t,c,{checksumAddress:r,staticPosition:n});o+=d,s[i?a:c?.name]=u}return t.setPosition(a+32),[s,32]}for(let n=0;n<e.components.length;++n){const c=e.components[n],[u,d]=Wx(t,c,{checksumAddress:r,staticPosition:a});s[i?n:c?.name]=u,o+=d}return[s,o]}(t,e,{checksumAddress:r,staticPosition:a});if("address"===e.type)return function(t,e={}){const{checksum:n=!1}=e,r=t.readBytes(32),a=t=>n?Of(t):t;return[a(ml(Ll(r,-20))),32]}(t,{checksum:r});if("bool"===e.type)return function(t){return[Fl(t.readBytes(32),{size:32}),32]}(t);if(e.type.startsWith("bytes"))return function(t,e,{staticPosition:n}){const[r,a]=e.type.split("bytes");if(!a){const e=Dl(t.readBytes(32));t.setPosition(n+e);const r=Dl(t.readBytes(32));if(0===r)return t.setPosition(n+32),["0x",32];const a=t.readBytes(r);return t.setPosition(n+32),[ml(a),32]}const i=ml(t.readBytes(Number.parseInt(a,10),32));return[i,32]}(t,e,{staticPosition:a});if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(t,e){const n=e.type.startsWith("int"),r=Number.parseInt(e.type.split("int")[1]||"256",10),a=t.readBytes(32);return[r>48?zl(a,{signed:n}):Dl(a,{signed:n}),32]}(t,e);if("string"===e.type)return function(t,{staticPosition:e}){const n=Dl(t.readBytes(32)),r=e+n;t.setPosition(r);const a=Dl(t.readBytes(32));if(0===a)return t.setPosition(e+32),["",32];const i=t.readBytes(a,32),s=ql(Gl(i));return t.setPosition(e+32),[s,32]}(t,{staticPosition:a});throw new mk(e.type)}const Jx=32,Yx=32;function $x({checksumAddress:t=!1,parameter:e,value:n}){const r=e,a=Xx(r.type);if(a){const[e,i]=a;return function(t,e){const{checksumAddress:n,length:r,parameter:a}=e,i=null===r;if(!Array.isArray(t))throw new pk(t);if(!i&&t.length!==r)throw new lk({expectedLength:r,givenLength:t.length,type:`${a.type}[${r}]`});let s=!1;const o=[];for(let e=0;e<t.length;e++){const r=$x({checksumAddress:n,parameter:a,value:t[e]});r.dynamic&&(s=!0),o.push(r)}if(i||s){const t=Qx(o);if(i){const e=yl(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?fl(e,t):e}}if(s)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:fl(...o.map(({encoded:t})=>t))}}(n,{checksumAddress:t,length:e,parameter:{...r,type:i}})}if("tuple"===r.type)return function(t,e){const{checksumAddress:n,parameter:r}=e;let a=!1;const i=[];for(let e=0;e<r.components.length;e++){const s=r.components[e],o=$x({checksumAddress:n,parameter:s,value:t[Array.isArray(t)?e:s.name]});i.push(o),o.dynamic&&(a=!0)}return{dynamic:a,encoded:a?Qx(i):fl(...i.map(({encoded:t})=>t))}}(n,{checksumAddress:t,parameter:r});if("address"===r.type)return function(t,e){const{checksum:n=!1}=e;return _f(t,{strict:n}),{dynamic:!1,encoded:bl(t.toLowerCase())}}(n,{checksum:t});if("bool"===r.type)return function(t){if("boolean"!=typeof t)throw new Lu(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:bl(pl(t))}}(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const t=r.type.startsWith("int"),[,,e="256"]=Zx.exec(r.type)??[];return function(t,{signed:e,size:n}){if("number"==typeof n){const r=2n**(BigInt(n)-(e?1n:0n))-1n,a=e?-r-1n:0n;if(t>r||t<a)throw new El({max:r.toString(),min:a.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:yl(t,{size:32,signed:e})}}(n,{signed:t,size:Number(e)})}if(r.type.startsWith("bytes"))return function(t,{type:e}){const[,n]=e.split("bytes"),r=xl(t);if(!n){let e=t;return r%32!=0&&(e=vl(e,32*Math.ceil((t.length-2)/2/32))),{dynamic:!0,encoded:fl(bl(yl(r,{size:32})),e)}}if(r!==Number.parseInt(n,10))throw new fk({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:vl(t)}}(n,{type:r.type});if("string"===r.type)return function(t){const e=gl(t),n=Math.ceil(xl(e)/32),r=[];for(let t=0;t<n;t++)r.push(vl(wl(e,32*t,32*(t+1))));return{dynamic:!0,encoded:fl(vl(yl(xl(e),{size:32})),...r)}}(n);throw new mk(r.type)}function Qx(t){let e=0;for(let n=0;n<t.length;n++){const{dynamic:r,encoded:a}=t[n];e+=r?32:xl(a)}const n=[],r=[];let a=0;for(let i=0;i<t.length;i++){const{dynamic:s,encoded:o}=t[i];s?(n.push(yl(e+a,{size:32})),r.push(o),a+=xl(o)):n.push(o)}return fl(...n,...r)}function Xx(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}function tk(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(tk);const n=Xx(t.type);return!(!n||!tk({...t,type:n[1]}))}const ek={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ak({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new rk({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new nk({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new nk({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};class nk extends Lu{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class rk extends Lu{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class ak extends Lu{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function ik(t,e,n={}){const{as:r="Array",checksumAddress:a=!1}=n,i="string"==typeof e?jl(e):e,s=function(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(ek);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}(i);if(0===Ul(i)&&t.length>0)throw new dk;if(Ul(i)&&Ul(i)<32)throw new uk({data:"string"==typeof e?e:ml(e),parameters:t,size:Ul(i)});let o=0;const c="Array"===r?[]:{};for(let e=0;e<t.length;++e){const n=t[e];s.setPosition(o);const[i,u]=Wx(s,n,{checksumAddress:a,staticPosition:0});o+=u,"Array"===r?c.push(i):c[n.name??e]=i}return c}function sk(t,e,n){const{checksumAddress:r=!1}={};if(t.length!==e.length)throw new hk({expectedLength:t.length,givenLength:e.length});const a=function({checksumAddress:t,parameters:e,values:n}){const r=[];for(let a=0;a<e.length;a++)r.push($x({checksumAddress:t,parameter:e[a],value:n[a]}));return r}({checksumAddress:r,parameters:t,values:e}),i=Qx(a);return 0===i.length?"0x":i}function ok(t,e){if(t.length!==e.length)throw new hk({expectedLength:t.length,givenLength:e.length});const n=[];for(let r=0;r<t.length;r++){const a=t[r],i=e[r];n.push(ok.encode(a,i))}return fl(...n)}function ck(t){return Array.isArray(t)&&"string"==typeof t[0]||"string"==typeof t?Gx(t):t}!function(t){t.encode=function t(e,n,r=!1){if("address"===e){const t=n;return _f(t),bl(t.toLowerCase(),r?32:0)}if("string"===e)return gl(n);if("bytes"===e)return n;if("bool"===e)return bl(pl(n),r?32:1);const a=e.match(Zx);if(a){const[t,e,i="256"]=a,s=Number.parseInt(i,10)/8;return yl(n,{size:r?32:s,signed:"int"===e})}const i=e.match(Vx);if(i){const[t,e]=i;if(Number.parseInt(e,10)!==(n.length-2)/2)throw new fk({expectedSize:Number.parseInt(e,10),value:n});return vl(n,r?32:0)}const s=e.match(Kx);if(s&&Array.isArray(n)){const[e,r]=s,a=[];for(let e=0;e<n.length;e++)a.push(t(r,n[e],!0));return 0===a.length?"0x":fl(...a)}throw new mk(e)}}(ok||(ok={}));class uk extends Lu{constructor({data:t,parameters:e,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${nx(e)})`,`Data: ${t} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class dk extends Lu{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class lk extends Lu{constructor({expectedLength:t,givenLength:e,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${t}\`. Given: \`${e}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class fk extends Lu{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${xl(e)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class hk extends Lu{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${e}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class pk extends Lu{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class mk extends Lu{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function yk(t,e={}){const{recovered:n}=e;if(void 0===t.r)throw new kk({signature:t});if(void 0===t.s)throw new kk({signature:t});if(n&&void 0===t.yParity)throw new kk({signature:t});if(t.r<0n||t.r>Hx)throw new Ak({value:t.r});if(t.s<0n||t.s>Hx)throw new Ik({value:t.s});if("number"==typeof t.yParity&&0!==t.yParity&&1!==t.yParity)throw new Ek({value:t.yParity})}function gk(t){if(130!==t.length&&132!==t.length)throw new xk({signature:t});const e=BigInt(wl(t,0,32)),n=BigInt(wl(t,32,64)),r=(()=>{const e=Number(`0x${t.slice(130)}`);if(!Number.isNaN(e))try{return wk(e)}catch{throw new Ek({value:e})}})();return void 0===r?{r:e,s:n}:{r:e,s:n,yParity:r}}function bk(t){if(void 0!==t.r&&void 0!==t.s)return function(t){const e="string"==typeof t?gk(t):t instanceof Uint8Array?function(t){return gk(ml(t))}(t):"string"==typeof t.r?function(t){const e=(()=>{const e=t.v?Number(t.v):void 0;let n=t.yParity?Number(t.yParity):void 0;if("number"==typeof e&&"number"!=typeof n&&(n=wk(e)),"number"!=typeof n)throw new Ek({value:t.yParity});return n})();return{r:BigInt(t.r),s:BigInt(t.s),yParity:e}}(t):t.v?function(t){return{r:t.r,s:t.s,yParity:wk(t.v)}}(t):{r:t.r,s:t.s,...void 0!==t.yParity?{yParity:t.yParity}:{}};return yk(e),e}(t)}function vk(t){yk(t);const e=t.r,n=t.s;return fl(yl(e,{size:32}),yl(n,{size:32}),"number"==typeof t.yParity?yl(function(t){if(0===t)return 27;if(1===t)return 28;throw new Ek({value:t})}(t.yParity),{size:1}):"0x")}function wk(t){if(0===t||27===t)return 0;if(1===t||28===t)return 1;if(t>=35)return t%2==0?1:0;throw new Pk({value:t})}class xk extends Lu{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${xl(hl(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class kk extends Lu{constructor({signature:t}){super(`Signature \`${ul(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Ak extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class Ik extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class Ek extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Pk extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function Sk(t,e={}){return"string"==typeof t.chainId?function(t){const{address:e,chainId:n,nonce:r}=t,a=bk(t);return{address:e,chainId:Number(n),nonce:BigInt(r),...a}}(t):{...t,...e.signature}}const _k=ck("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function Ok(t){if("string"==typeof t){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==wl(t,-32))throw new Tk(t)}else yk(t.authorization)}let Tk=class extends Lu{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};function Bk(t){const{address:e,data:n,signature:r,to:a="hex"}=t,i=_m([Um([{type:"address"},{type:"bytes"},{type:"bytes"}],[e,n,r]),"0x6492649264926492649264926492649264926492649264926492649264926492"]);return"hex"===a?i:fm(i)}class Mk extends hp{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}async function Ck(t,{address:e,blockNumber:n,blockTag:r,storageKeys:a}){const i=r??"latest",s=void 0!==n?im(n):void 0;return function(t){return{...t,balance:t.balance?BigInt(t.balance):void 0,nonce:t.nonce?Xp(t.nonce):void 0,storageProof:t.storageProof?(e=t.storageProof,e.map(t=>({...t,value:BigInt(t.value)}))):void 0};var e}(await t.request({method:"eth_getProof",params:[e,a,s||i]}))}async function Nk(t,{blockHash:e,blockNumber:n,blockTag:r,hash:a,index:i}){const s=r||"latest",o=void 0!==n?im(n):void 0;let c=null;if(c=a?await t.request({method:"eth_getTransactionByHash",params:[a]},{dedupe:!0}):e?await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,im(i)]},{dedupe:!0}):await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||s,im(i)]},{dedupe:Boolean(o)}),!c)throw new By({blockHash:e,blockNumber:n,blockTag:s,hash:a,index:i});return(t.chain?.formatters?.transaction?.format||eb)(c,"getTransaction")}async function jk(t,{hash:e}){const n=await t.request({method:"eth_getTransactionReceipt",params:[e]},{dedupe:!0});if(!n)throw new My({hash:e});return(t.chain?.formatters?.transactionReceipt?.format||Tv)(n,"getTransactionReceipt")}async function Rk(t,e){const{blockNumber:n,blockTag:r=t.experimental_blockTag??"latest",blocks:a,returnFullTransactions:i,traceTransfers:s,validation:o}=e;try{const e=[];for(const t of a){const n=t.blockOverrides?Fb(t.blockOverrides):void 0,r=t.calls.map(t=>{const e=t,n=e.account?Ym(e.account):void 0,r=e.abi?Qm(e):e.data,a={...e,account:n,data:e.dataSuffix?Sm([r||"0x",e.dataSuffix]):r,from:e.from??n?.address};return Jg(a),Kg(a)}),a=t.stateOverrides?Hg(t.stateOverrides):void 0;e.push({blockOverrides:n,calls:r,stateOverrides:a})}const c=("bigint"==typeof n?im(n):void 0)||r;return(await t.request({method:"eth_simulateV1",params:[{blockStateCalls:e,returnFullTransactions:i,traceTransfers:s,validation:o},c]})).map((t,e)=>({...rb(t),calls:t.calls.map((t,n)=>{const{abi:r,args:i,functionName:s,to:o}=a[e].calls[n],c=t.error?.data??t.returnData,u=BigInt(t.gasUsed),d=t.logs?.map(t=>Nb(t)),l="0x1"===t.status?"success":"failure",f=r&&"success"===l&&"0x"!==c?Lb({abi:r,data:c,functionName:s}):null,h=(()=>{if("success"===l)return;let e;return"0x"===t.error?.data?e=new bp:t.error&&(e=new Fy(t.error)),e?vg(e,{abi:r??[],address:o??"0x",args:i,functionName:s??"<unknown>"}):void 0})();return{data:c,gasUsed:u,logs:d,status:l,..."success"===l?{result:f}:{error:h}}})}))}catch(t){const e=t,n=Fg(e,{});if(n instanceof zg)throw e;throw n}}function Uk(t){let e=!0,n="",r=0,a="",i=!1;for(let s=0;s<t.length;s++){const o=t[s];if(["(",")",","].includes(o)&&(e=!0),"("===o&&r++,")"===o&&r--,e)if(0!==r)" "!==o?(a+=o,n+=o):","!==t[s-1]&&","!==n&&",("!==n&&(n="",e=!1);else if(" "===o&&["event","function","error",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}}if(!i)throw new Lu("Unable to normalize signature.");return a}function Lk(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Tf(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in e?Object.values(e.components).every((e,n)=>Lk(Object.values(t)[n],e)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(t)&&t.every(t=>Lk(t,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function zk(t,e,n){for(const r in t){const a=t[r],i=e[r];if("tuple"===a.type&&"tuple"===i.type&&"components"in a&&"components"in i)return zk(a.components,i.components,n[r]);const s=[a.type,i.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&Tf(n[r],{strict:!1}))())return s}}function Fk(t,e={}){const{prepare:n=!0}=e,r=Array.isArray(t)||"string"==typeof t?qx(t):t;return{...r,...n?{hash:Gk(r)}:{}}}function Dk(t,e,n){const{args:r=[],prepare:a=!0}=n??{},i=Il(e,{strict:!1}),s=t.filter(t=>i?"function"===t.type||"error"===t.type?qk(t)===wl(e,0,4):"event"===t.type&&Gk(t)===e:"name"in t&&t.name===e);if(0===s.length)throw new Vk({name:e});if(1===s.length)return{...s[0],...a?{hash:Gk(s[0])}:{}};let o;for(const t of s){if(!("inputs"in t))continue;if(!r||0===r.length){if(!t.inputs||0===t.inputs.length)return{...t,...a?{hash:Gk(t)}:{}};continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==r.length)continue;const e=r.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&Lk(e,r)});if(e){if(o&&"inputs"in o&&o.inputs){const e=zk(t.inputs,o.inputs,r);if(e)throw new Kk({abiItem:t,type:e[0]},{abiItem:o,type:e[1]})}o=t}}const c=(()=>{if(o)return o;const[t,...e]=s;return{...t,overloads:e}})();if(!c)throw new Vk({name:e});return{...c,...a?{hash:Gk(c)}:{}}}function qk(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return wl(Gk(e),0,4)}function Gk(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:yf(gl(function(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return Uk("string"==typeof e?e:rx(e))}(e)))}class Kk extends Lu{constructor(t,e){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${Uk(rx(t.abiItem))}\`, and`,`\`${e.type}\` in \`${Uk(rx(e.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Vk extends Lu{constructor({name:t,data:e,type:n="item"}){super(`ABI ${n}${t?` with name "${t}"`:e?` with data "${e}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function Zk(t){const e=t.find(t=>"constructor"===t.type);if(!e)throw new Vk({name:"constructor"});return e}function Hk(...t){const[e,n=[]]=(()=>{if(Array.isArray(t[0])){const[e,n,r]=t;return[Jk(e,n,{args:r}),r]}const[e,n]=t;return[e,n]})(),{overloads:r}=e,a=r?Jk([e,...r],e.name,{args:n}):e,i=qk(a);const s=n.length>0?sk(a.inputs,n):void 0;return s?fl(i,s):i}function Wk(t,e={}){return Fk(t,e)}function Jk(t,e,n){const r=Dk(t,e,n);if("function"!==r.type)throw new Vk({name:e,type:"function"});return r}const Yk="0x0000000000000000000000000000000000000000";async function $k(t,e){const{blockNumber:n,blockTag:r,calls:a,stateOverrides:i,traceAssetChanges:s,traceTransfers:o,validation:c}=e,u=e.account?Ym(e.account):void 0;if(s&&!u)throw new hp("`account` is required when `traceAssetChanges` is true");const d=u?function(...t){const[e,n]=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return[Zk(e),n]}return t})(),{bytecode:r,args:a}=n;return fl(r,e.inputs?.length&&a?.length?sk(e.inputs,a):"0x")}(Fk("constructor(bytes, bytes)"),{bytecode:$b,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",Hk(Wk("function getBalance(address)"),[u.address])]}):void 0;const l=s?await Promise.all(e.calls.map(async e=>{if(!e.data&&!e.abi)return;const{accessList:n}=await fw(t,{account:u.address,...e,data:e.abi?Qm(e):e.data});return n.map(({address:t,storageKeys:e})=>e.length>0?t:null)})).then(t=>t.flat().filter(Boolean)):[],f=await Rk(t,{blockNumber:n,blockTag:r,blocks:[...s?[{calls:[{data:d}],stateOverrides:i},{calls:l.map((t,e)=>({abi:[Wk("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:t,from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]}]:[],{calls:[...a,{}].map(t=>({...t,from:u?.address})),stateOverrides:i},...s?[{calls:[{data:d}]},{calls:l.map((t,e)=>({abi:[Wk("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:t,from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function decimals() returns (uint256)")],functionName:"decimals",from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function symbol() returns (string)")],functionName:"symbol",from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]}]:[]],traceTransfers:o,validation:c}),h=s?f[2]:f[0],[p,m,,y,g,b,v,w]=s?f:[],{calls:x,...k}=h,A=x.slice(0,-1)??[],I=[...p?.calls??[],...m?.calls??[]].map(t=>"success"===t.status?Qp(t.data):null),E=[...y?.calls??[],...g?.calls??[]].map(t=>"success"===t.status?Qp(t.data):null),P=(b?.calls??[]).map(t=>"success"===t.status?t.result:null),S=(w?.calls??[]).map(t=>"success"===t.status?t.result:null),_=(v?.calls??[]).map(t=>"success"===t.status?t.result:null),O=[];for(const[t,e]of E.entries()){const n=I[t];if("bigint"!=typeof e)continue;if("bigint"!=typeof n)continue;const r=P[t-1],a=S[t-1],i=_[t-1],s=(()=>0===t?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:l[t-1],decimals:i||r?Number(r??1):void 0,symbol:a??void 0})();O.some(t=>t.token.address===s.address)||O.push({token:s,value:{pre:n,post:e,diff:e-n}})}return{assetChanges:O,block:k,results:A}}const Qk="0x6492649264926492649264926492649264926492649264926492649264926492";function Xk(t){try{return function(t){if(wl(t,-32)!==Qk)throw new tA(t)}(t),!0}catch{return!1}}class tA extends Lu{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}async function eA(t,e){const{address:n,hash:r,erc6492VerifierAddress:a=e.universalSignatureVerifierAddress??t.chain?.contracts?.erc6492Verifier?.address,multicallAddress:i=e.multicallAddress??t.chain?.contracts?.multicall3?.address}=e,s=(()=>{const t=e.signature;return cp(t)?t:"object"==typeof t&&"r"in t&&"s"in t?function({r:t,s:e,to:n="hex",v:r,yParity:a}){const i=(()=>{if(0===a||1===a)return a;if(r&&(27n===r||28n===r||r>=35n))return r%2n==0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),s=`0x${new dc.Signature(Qp(t),Qp(e)).toCompactHex()}${0===i?"1b":"1c"}`;return"hex"===n?s:fm(s)}(t):am(t)})();try{return function(t){try{return Ok(t),!0}catch{return!1}}(s)?await async function(t,e){const{address:n,blockNumber:r,blockTag:a,hash:i,multicallAddress:s}=e,{authorization:o,data:c,signature:u,to:d}=function(t){Ok(t);const e=Al(wl(t,-64,-32)),n=wl(t,-e-64,-64),r=wl(t,0,-e-64),[a,i,s]=ik(_k,n);return{authorization:Sk({address:a.delegation,chainId:Number(a.chainId),nonce:a.nonce,yParity:a.yParity,r:a.r,s:a.s}),signature:r,...s&&"0x"!==s?{data:s,to:i}:{}}}(e.signature),l=await mw(t,{address:n,blockNumber:r,blockTag:a});if(l===_m(["0xef0100",o.address]))return await async function(t,e){const{address:n,blockNumber:r,blockTag:a,hash:i,signature:s}=e,o=await ip(t,hv,"readContract")({address:n,abi:Wb,args:[i,s],blockNumber:r,blockTag:a,functionName:"isValidSignature"}).catch(t=>{if(t instanceof Ry)throw new nA;throw t});if(o.startsWith("0x1626ba7e"))return!0;throw new nA}(t,{address:n,blockNumber:r,blockTag:a,hash:i,signature:u});const f={address:o.address,chainId:Number(o.chainId),nonce:Number(o.nonce),r:im(o.r,{size:32}),s:im(o.s,{size:32}),yParity:o.yParity},h=await async function({address:t,authorization:e,signature:n}){return Ob(Am(t),await Pg({authorization:e,signature:n}))}({address:n,authorization:f});if(!h)throw new nA;const p=await ip(t,hv,"readContract")({...s?{address:s}:{code:tv},authorizationList:[f],abi:Db,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...c?[{allowFailure:!0,target:d??n,callData:c}]:[],{allowFailure:!0,target:n,callData:Qm({abi:Wb,functionName:"isValidSignature",args:[i,u]})}]]}),m=p[p.length-1]?.returnData;if(m?.startsWith("0x1626ba7e"))return!0;throw new nA}(t,{...e,multicallAddress:i,signature:s}):await async function(t,e){const{address:n,factory:r,factoryData:a,hash:i,signature:s,verifierAddress:o,...c}=e,u=await(async()=>r||a?Xk(s)?s:function(t){const{data:e,signature:n,to:r}=t;return fl(sk(ck("address, bytes, bytes"),[r,e,n]),Qk)}({data:a,signature:s,to:r}):s)(),d=o?{to:o,data:Qm({abi:Jb,functionName:"isValidSig",args:[n,i,u]}),...c}:{data:iv({abi:Jb,args:[n,i,u],bytecode:Xb}),...c},{data:l}=await ip(t,lv,"call")(d).catch(t=>{if(t instanceof jy)throw new nA;throw t});if(function(t,e={}){let n=t;if(e.size&&($p(n,{size:e.size}),n=Yp(n)),"0x00"===Yp(n))return!1;if("0x01"===Yp(n))return!0;throw new Wp(n)}(l??"0x0"))return!0;throw new nA}(t,{...e,verifierAddress:a,signature:s})}catch(t){try{if(Ob(Am(n),await xg({hash:r,signature:s})))return!0}catch{}if(t instanceof nA)return!1;throw t}}class nA extends Error{}function rA(t,{emitOnBegin:e=!1,emitMissed:n=!1,onBlockNumber:r,onError:a,poll:i,pollingInterval:s=t.pollingInterval}){let o;return(void 0!==i?i:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type))?gv(yy(["watchBlockNumber",t.uid,e,n,s]),{onBlockNumber:r,onError:a},r=>vv(async()=>{try{const e=await ip(t,Av,"getBlockNumber")({cacheTime:0});if(void 0!==o){if(e===o)return;if(e-o>1&&n)for(let t=o+1n;t<e;t++)r.onBlockNumber(t,o),o=t}(void 0===o||e>o)&&(r.onBlockNumber(e,o),o=e)}catch(t){r.onError?.(t)}},{emitOnBegin:e,interval:s})):gv(yy(["watchBlockNumber",t.uid,e,n]),{onBlockNumber:r,onError:a},e=>{let n=!0,r=()=>n=!1;return(async()=>{try{const a=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),{unsubscribe:i}=await a.subscribe({params:["newHeads"],onData(t){if(!n)return;const r=Qp(t.result?.number);e.onBlockNumber(r,o),o=r},onError(t){e.onError?.(t)}});r=i,n||r()}catch(t){a?.(t)}})(),()=>r()})}const aA=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,iA=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;async function sA(t,e){const{address:n,domain:r,message:a,nonce:i,scheme:s,signature:o,time:c=new Date,...u}=e,d=function(t){const{scheme:e,statement:n,...r}=t.match(aA)?.groups??{},{chainId:a,expirationTime:i,issuedAt:s,notBefore:o,requestId:c,...u}=t.match(iA)?.groups??{},d=t.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...a?{chainId:Number(a)}:{},...i?{expirationTime:new Date(i)}:{},...s?{issuedAt:new Date(s)}:{},...o?{notBefore:new Date(o)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...e?{scheme:e}:{},...n?{statement:n}:{}}}(a);if(!d.address)return!1;const l=function(t){const{address:e,domain:n,message:r,nonce:a,scheme:i,time:s=new Date}=t;if(n&&r.domain!==n)return!1;if(a&&r.nonce!==a)return!1;if(i&&r.scheme!==i)return!1;if(r.expirationTime&&s>=r.expirationTime)return!1;if(r.notBefore&&s<r.notBefore)return!1;try{if(!r.address)return!1;if(!Pm(r.address,{strict:!1}))return!1;if(e&&!Ob(r.address,e))return!1}catch{return!1}return!0}({address:n,domain:r,message:d,nonce:i,scheme:s,time:c});if(!l)return!1;const f=Uw(a);return eA(t,{address:d.address,hash:f,signature:o,...u})}function oA(t){return{call:e=>lv(t,e),createAccessList:e=>fw(t,e),createBlockFilter:()=>async function(t){const e=Wm(t,{method:"eth_newBlockFilter"}),n=await t.request({method:"eth_newBlockFilter"});return{id:n,request:e(n),type:"block"}}(t),createContractEventFilter:e=>Jm(t,e),createEventFilter:e=>hw(t,e),createPendingTransactionFilter:()=>pw(t),estimateContractGas:e=>async function(t,e){const{abi:n,address:r,args:a,functionName:i,dataSuffix:s,...o}=e,c=Qm({abi:n,args:a,functionName:i});try{return await ip(t,_b,"estimateGas")({data:`${c}${s?s.replace("0x",""):""}`,to:r,...o})}catch(t){const e=o.account?Ym(o.account):void 0;throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:e?.address})}}(t,e),estimateGas:e=>_b(t,e),getBalance:e=>async function(t,{address:e,blockNumber:n,blockTag:r=t.experimental_blockTag??"latest"}){const a="bigint"==typeof n?im(n):void 0,i=await t.request({method:"eth_getBalance",params:[e,a||r]});return BigInt(i)}(t,e),getBlobBaseFee:()=>async function(t){const e=await t.request({method:"eth_blobBaseFee"});return BigInt(e)}(t),getBlock:e=>ib(t,e),getBlockNumber:e=>Av(t,e),getBlockTransactionCount:e=>async function(t,{blockHash:e,blockNumber:n,blockTag:r="latest"}={}){const a=void 0!==n?im(n):void 0;let i;return i=e?await t.request({method:"eth_getBlockTransactionCountByHash",params:[e]},{dedupe:!0}):await t.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]},{dedupe:Boolean(a)}),Xp(i)}(t,e),getBytecode:e=>mw(t,e),getChainId:()=>Ib(t),getCode:e=>mw(t,e),getContractEvents:e=>Rb(t,e),getEip712Domain:e=>async function(t,e){const{address:n,factory:r,factoryData:a}=e;try{const[e,i,s,o,c,u,d]=await ip(t,hv,"readContract")({abi:gw,address:n,functionName:"eip712Domain",factory:r,factoryData:a});return{domain:{name:i,version:s,chainId:Number(o),verifyingContract:c,salt:u},extensions:d,fields:e}}catch(t){const e=t;if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new yw({address:n});throw e}}(t,e),getEnsAddress:e=>async function(t,e){const{blockNumber:n,blockTag:r,coinType:a,name:i,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c?.ensTlds;if(d&&!d.some(t=>i.endsWith(t)))return null;const l=null!=a?[Wv(i),BigInt(a)]:[Wv(i)];try{const e=Qm({abi:Hb,functionName:"addr",args:l}),a={address:u,abi:Kb,functionName:"resolveWithGateways",args:[nm($v(i)),e,s??[Vv]],blockNumber:n,blockTag:r},o=ip(t,hv,"readContract"),c=await o(a);if("0x"===c[0])return null;const d=Lb({abi:Hb,args:l,functionName:"addr",data:c[0]});return"0x"===d||"0x00"===Yp(d)?null:d}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}(t,e),getEnsAvatar:e=>async function(t,{blockNumber:e,blockTag:n,assetGatewayUrls:r,name:a,gatewayUrls:i,strict:s,universalResolverAddress:o}){const c=await ip(t,lw,"getEnsText")({blockNumber:e,blockTag:n,key:"avatar",name:a,universalResolverAddress:o,gatewayUrls:i,strict:s});if(!c)return null;try{return await dw(t,{record:c,gatewayUrls:r})}catch{return null}}(t,e),getEnsName:e=>async function(t,e){const{address:n,blockNumber:r,blockTag:a,coinType:i=60n,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})();try{const e={address:u,abi:Vb,args:[n,i,s??[Vv]],functionName:"reverseWithGateways",blockNumber:r,blockTag:a},o=ip(t,hv,"readContract"),[c]=await o(e);return c||null}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}(t,e),getEnsResolver:e=>async function(t,e){const{blockNumber:n,blockTag:r,name:a}=e,{chain:i}=t,s=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!i)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:i,contract:"ensUniversalResolver"})})(),o=i?.ensTlds;if(o&&!o.some(t=>a.endsWith(t)))throw new Error(`${a} is not a valid ENS TLD (${o?.join(", ")}) for chain "${i.name}" (id: ${i.id}).`);const[c]=await ip(t,hv,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[nm($v(a))],blockNumber:n,blockTag:r});return c}(t,e),getEnsText:e=>lw(t,e),getFeeHistory:e=>bw(t,e),estimateFeesPerGas:e=>cb(t,e),getFilterChanges:t=>Iv(0,t),getFilterLogs:t=>async function(t,{filter:e}){const n=e.strict??!1,r=(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map(t=>Nb(t));return e.abi?Cb({abi:e.abi,logs:r,strict:n}):r}(0,t),getGasPrice:()=>sb(t),getLogs:e=>jb(t,e),getProof:e=>Ck(t,e),estimateMaxPriorityFeePerGas:e=>async function(t,e){return ob(t,e)}(t,e),getStorageAt:e=>async function(t,{address:e,blockNumber:n,blockTag:r="latest",slot:a}){const i=void 0!==n?im(n):void 0;return await t.request({method:"eth_getStorageAt",params:[e,a,i||r]})}(t,e),getTransaction:e=>Nk(t,e),getTransactionConfirmations:e=>async function(t,{hash:e,transactionReceipt:n}){const[r,a]=await Promise.all([ip(t,Av,"getBlockNumber")({}),e?ip(t,Nk,"getTransaction")({hash:e}):void 0]),i=n?.blockNumber||a?.blockNumber;return i?r-i+1n:0n}(t,e),getTransactionCount:e=>db(t,e),getTransactionReceipt:e=>jk(t,e),multicall:e=>async function(t,e){const{account:n,authorizationList:r,allowFailure:a=!0,blockNumber:i,blockOverrides:s,blockTag:o,stateOverride:c}=e,u=e.contracts,{batchSize:d=e.batchSize??1024,deployless:l=e.deployless??!1}="object"==typeof t.batch?.multicall?t.batch.multicall:{},f=(()=>{if(e.multicallAddress)return e.multicallAddress;if(l)return null;if(t.chain)return sv({blockNumber:i,chain:t.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),h=[[]];let p=0,m=0;for(let t=0;t<u.length;t++){const{abi:e,address:r,args:i,functionName:s}=u[t];try{const t=Qm({abi:e,args:i,functionName:s});m+=(t.length-2)/2,d>0&&m>d&&h[p].length>0&&(p++,m=(t.length-2)/2,h[p]=[]),h[p]=[...h[p],{allowFailure:!0,callData:t,target:r}]}catch(t){const o=vg(t,{abi:e,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:s,sender:n});if(!a)throw o;h[p]=[...h[p],{allowFailure:!0,callData:"0x",target:r}]}}const y=await Promise.allSettled(h.map(e=>ip(t,hv,"readContract")({...null===f?{code:tv}:{address:f},abi:Db,account:n,args:[e],authorizationList:r,blockNumber:i,blockOverrides:s,blockTag:o,functionName:"aggregate3",stateOverride:c}))),g=[];for(let t=0;t<y.length;t++){const e=y[t];if("rejected"===e.status){if(!a)throw e.reason;for(let n=0;n<h[t].length;n++)g.push({status:"failure",error:e.reason,result:void 0});continue}const n=e.value;for(let e=0;e<n.length;e++){const{returnData:r,success:i}=n[e],{callData:s}=h[t][e],{abi:o,address:c,functionName:d,args:l}=u[g.length];try{if("0x"===s)throw new bp;if(!i)throw new Fy({data:r});const t=Lb({abi:o,args:l,data:r,functionName:d});g.push(a?{result:t,status:"success"}:t)}catch(t){const e=vg(t,{abi:o,address:c,args:l,docsPath:"/docs/contract/multicall",functionName:d});if(!a)throw e;g.push({error:e,result:void 0,status:"failure"})}}}if(g.length!==u.length)throw new hp("multicall results mismatch");return g}(t,e),prepareTransactionRequest:e=>Sb(t,e),readContract:e=>hv(t,e),sendRawTransaction:e=>async function(t,{serializedTransaction:e}){return t.request({method:"eth_sendRawTransaction",params:[e]},{retryCount:0})}(t,e),sendRawTransactionSync:e=>async function(t,{serializedTransaction:e,throwOnReceiptRevert:n,timeout:r}){const a=await t.request({method:"eth_sendRawTransactionSync",params:r?[e,im(r)]:[e]},{retryCount:0}),i=(t.chain?.formatters?.transactionReceipt?.format||Tv)(a);if("reverted"===i.status&&n)throw new Cy({receipt:i});return i}(t,e),simulate:e=>Rk(t,e),simulateBlocks:e=>Rk(t,e),simulateCalls:e=>$k(t,e),simulateContract:e=>async function(t,e){const{abi:n,address:r,args:a,dataSuffix:i,functionName:s,...o}=e,c=o.account?Ym(o.account):t.account,u=Qm({abi:n,args:a,functionName:s});try{const{data:d}=await ip(t,lv,"call")({batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:r,...o,account:c});return{result:Lb({abi:n,args:a,functionName:s,data:d||"0x"}),request:{abi:n.filter(t=>"name"in t&&t.name===e.functionName),address:r,args:a,dataSuffix:i,functionName:s,...o,account:c}}}catch(t){throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/simulateContract",functionName:s,sender:c?.address})}}(t,e),verifyHash:e=>eA(t,e),verifyMessage:e=>async function(t,{address:e,message:n,factory:r,factoryData:a,signature:i,...s}){return eA(t,{address:e,factory:r,factoryData:a,hash:Uw(n),signature:i,...s})}(t,e),verifySiweMessage:e=>sA(t,e),verifyTypedData:e=>async function(t,e){const{address:n,factory:r,factoryData:a,signature:i,message:s,primaryType:o,types:c,domain:u,...d}=e;return eA(t,{address:n,factory:r,factoryData:a,hash:Gw({message:s,primaryType:o,types:c,domain:u}),signature:i,...d})}(t,e),uninstallFilter:t=>Ev(0,t),waitForTransactionReceipt:e=>async function(t,e){const{checkReplacement:n=!0,confirmations:r=1,hash:a,onReplaced:i,retryCount:s=6,retryDelay:o=({count:t})=>200*(1<<t),timeout:c=18e4}=e,u=yy(["waitForTransactionReceipt",t.uid,a]),d=e.pollingInterval?e.pollingInterval:t.chain?.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval;let l,f,h,p,m,y=!1;const{promise:g,resolve:b,reject:v}=cv(),w=c?setTimeout(()=>{m?.(),p?.(),v(new Ny({hash:a}))},c):void 0;return p=gv(u,{onReplaced:i,resolve:b,reject:v},async e=>{if(h=await ip(t,jk,"getTransactionReceipt")({hash:a}).catch(()=>{}),h&&r<=1)return clearTimeout(w),e.resolve(h),void p?.();m=ip(t,rA,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:d,async onBlockNumber(i){const c=t=>{clearTimeout(w),m?.(),t(),p?.()};let u=i;if(!y)try{if(h){if(r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;return void c(()=>e.resolve(h))}if(n&&!l&&(y=!0,await _v(async()=>{l=await ip(t,Nk,"getTransaction")({hash:a}),l.blockNumber&&(u=l.blockNumber)},{delay:o,retryCount:s}),y=!1),h=await ip(t,jk,"getTransactionReceipt")({hash:a}),r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;c(()=>e.resolve(h))}catch(n){if(n instanceof By||n instanceof My){if(!l)return void(y=!1);try{f=l,y=!0;const n=await _v(()=>ip(t,ib,"getBlock")({blockNumber:u,includeTransactions:!0}),{delay:o,retryCount:s,shouldRetry:({error:t})=>t instanceof Xg});y=!1;const a=n.transactions.find(({from:t,nonce:e})=>t===f.from&&e===f.nonce);if(!a)return;if(h=await ip(t,jk,"getTransactionReceipt")({hash:a.hash}),r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;let i="replaced";a.to===f.to&&a.value===f.value&&a.input===f.input?i="repriced":a.from===a.to&&0n===a.value&&(i="cancelled"),c(()=>{e.onReplaced?.({reason:i,replacedTransaction:f,transaction:a,transactionReceipt:h}),e.resolve(h)})}catch(t){c(()=>e.reject(t))}}else c(()=>e.reject(n))}}})}),g}(t,e),watchBlocks:e=>function(t,{blockTag:e=t.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:a,onError:i,includeTransactions:s,poll:o,pollingInterval:c=t.pollingInterval}){const u=void 0!==o?o:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type),d=s??!1;let l;return u?gv(yy(["watchBlocks",t.uid,e,n,r,d,c]),{onBlock:a,onError:i},a=>vv(async()=>{try{const r=await ip(t,ib,"getBlock")({blockTag:e,includeTransactions:d});if(null!==r.number&&null!=l?.number){if(r.number===l.number)return;if(r.number-l.number>1&&n)for(let e=l?.number+1n;e<r.number;e++){const n=await ip(t,ib,"getBlock")({blockNumber:e,includeTransactions:d});a.onBlock(n,l),l=n}}(null==l?.number||"pending"===e&&null==r?.number||null!==r.number&&r.number>l.number)&&(a.onBlock(r,l),l=r)}catch(t){a.onError?.(t)}},{emitOnBegin:r,interval:c})):(()=>{let n=!0,s=!0,o=()=>n=!1;return(async()=>{try{r&&ip(t,ib,"getBlock")({blockTag:e,includeTransactions:d}).then(t=>{n&&s&&(a(t,void 0),s=!1)}).catch(i);const c=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),{unsubscribe:u}=await c.subscribe({params:["newHeads"],async onData(e){if(!n)return;const r=await ip(t,ib,"getBlock")({blockNumber:e.result?.number,includeTransactions:d}).catch(()=>{});n&&(a(r,l),s=!1,l=r)},onError(t){i?.(t)}});o=u,n||o()}catch(t){i?.(t)}})(),()=>o()})()}(t,e),watchBlockNumber:e=>rA(t,e),watchContractEvent:e=>function(t,e){const{abi:n,address:r,args:a,batch:i=!0,eventName:s,fromBlock:o,onError:c,onLogs:u,poll:d,pollingInterval:l=t.pollingInterval,strict:f}=e;return(void 0!==d?d:"bigint"==typeof o||"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type))?(()=>{const e=f??!1;return gv(yy(["watchContractEvent",r,a,i,t.uid,s,l,e,o]),{onLogs:u,onError:c},c=>{let u,d;void 0!==o&&(u=o-1n);let f=!1;const h=vv(async()=>{if(f)try{let o;if(d)o=await ip(t,Iv,"getFilterChanges")({filter:d});else{const i=await ip(t,Av,"getBlockNumber")({});o=u&&u<i?await ip(t,Rb,"getContractEvents")({abi:n,address:r,args:a,eventName:s,fromBlock:u+1n,toBlock:i,strict:e}):[],u=i}if(0===o.length)return;if(i)c.onLogs(o);else for(const t of o)c.onLogs([t])}catch(t){d&&t instanceof $y&&(f=!1),c.onError?.(t)}else{try{d=await ip(t,Jm,"createContractEventFilter")({abi:n,address:r,args:a,eventName:s,strict:e,fromBlock:o})}catch{}f=!0}},{emitOnBegin:!0,interval:l});return async()=>{d&&await ip(t,Ev,"uninstallFilter")({filter:d}),h()}})})():(()=>{const e=f??!1,o=yy(["watchContractEvent",r,a,i,t.uid,s,l,e]);let d=!0,h=()=>d=!1;return gv(o,{onLogs:u,onError:c},e=>((async()=>{try{const i=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),o=s?Zm({abi:n,eventName:s,args:a}):[],{unsubscribe:c}=await i.subscribe({params:["logs",{address:r,topics:o}],onData(t){if(!d)return;const r=t.result;try{const{eventName:t,args:a}=Bb({abi:n,data:r.data,topics:r.topics,strict:f}),i=Nb(r,{args:a,eventName:t});e.onLogs([i])}catch(t){let n,a;if(t instanceof Cp||t instanceof Np){if(f)return;n=t.abiItem.name,a=t.abiItem.inputs?.some(t=>!("name"in t&&t.name))}const i=Nb(r,{args:a?[]:{},eventName:n});e.onLogs([i])}},onError(t){e.onError?.(t)}});h=c,d||h()}catch(t){c?.(t)}})(),()=>h()))})()}(t,e),watchEvent:e=>function(t,{address:e,args:n,batch:r=!0,event:a,events:i,fromBlock:s,onError:o,onLogs:c,poll:u,pollingInterval:d=t.pollingInterval,strict:l}){const f=void 0!==u?u:"bigint"==typeof s||"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type),h=l??!1;return f?gv(yy(["watchEvent",e,n,r,t.uid,a,d,s]),{onLogs:c,onError:o},o=>{let c,u;void 0!==s&&(c=s-1n);let l=!1;const f=vv(async()=>{if(l)try{let s;if(u)s=await ip(t,Iv,"getFilterChanges")({filter:u});else{const r=await ip(t,Av,"getBlockNumber")({});s=c&&c!==r?await ip(t,jb,"getLogs")({address:e,args:n,event:a,events:i,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===s.length)return;if(r)o.onLogs(s);else for(const t of s)o.onLogs([t])}catch(t){u&&t instanceof $y&&(l=!1),o.onError?.(t)}else{try{u=await ip(t,hw,"createEventFilter")({address:e,args:n,event:a,events:i,strict:h,fromBlock:s})}catch{}l=!0}},{emitOnBegin:!0,interval:d});return async()=>{u&&await ip(t,Ev,"uninstallFilter")({filter:u}),f()}}):(()=>{let r=!0,s=()=>r=!1;return(async()=>{try{const u=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),d=i??(a?[a]:void 0);let f=[];if(d){const t=d.flatMap(t=>Zm({abi:[t],eventName:t.name,args:n}));f=[t],a&&(f=f[0])}const{unsubscribe:p}=await u.subscribe({params:["logs",{address:e,topics:f}],onData(t){if(!r)return;const e=t.result;try{const{eventName:t,args:n}=Bb({abi:d??[],data:e.data,topics:e.topics,strict:h}),r=Nb(e,{args:n,eventName:t});c([r])}catch(t){let n,r;if(t instanceof Cp||t instanceof Np){if(l)return;n=t.abiItem.name,r=t.abiItem.inputs?.some(t=>!("name"in t&&t.name))}const a=Nb(e,{args:r?[]:{},eventName:n});c([a])}},onError(t){o?.(t)}});s=p,r||s()}catch(t){o?.(t)}})(),()=>s()})()}(t,e),watchPendingTransactions:e=>function(t,{batch:e=!0,onError:n,onTransactions:r,poll:a,pollingInterval:i=t.pollingInterval}){return(void 0!==a?a:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type)?gv(yy(["watchPendingTransactions",t.uid,e,i]),{onTransactions:r,onError:n},n=>{let r;const a=vv(async()=>{try{if(!r)try{return void(r=await ip(t,pw,"createPendingTransactionFilter")({}))}catch(t){throw a(),t}const i=await ip(t,Iv,"getFilterChanges")({filter:r});if(0===i.length)return;if(e)n.onTransactions(i);else for(const t of i)n.onTransactions([t])}catch(t){n.onError?.(t)}},{emitOnBegin:!0,interval:i});return async()=>{r&&await ip(t,Ev,"uninstallFilter")({filter:r}),a()}}):(()=>{let e=!0,a=()=>e=!1;return(async()=>{try{const{unsubscribe:i}=await t.transport.subscribe({params:["newPendingTransactions"],onData(t){if(!e)return;const n=t.result;r([n])},onError(t){n?.(t)}});a=i,e||a()}catch(t){n?.(t)}})(),()=>a()})()}(t,e)}}class cA extends hp{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function uA(t,e={}){const{batch:n,fetchFn:r,fetchOptions:a,key:i="http",methods:s,name:o="HTTP JSON-RPC",onFetchRequest:c,onFetchResponse:u,retryDelay:d,raw:l}=e;return({chain:f,retryCount:h,timeout:p})=>{const{batchSize:m=1e3,wait:y=0}="object"==typeof n?n:{},g=e.retryCount??h,b=p??e.timeout??1e4,v=t||f?.rpcUrls.default.http[0];if(!v)throw new cA;const w=Rw(v,{fetchFn:r,fetchOptions:a,onRequest:c,onResponse:u,timeout:b});return function({key:t,methods:e,name:n,request:r,retryCount:a=3,retryDelay:i=150,timeout:s,type:o},c){return{config:{key:t,methods:e,name:n,request:r,retryCount:a,retryDelay:i,timeout:s,type:o},request:Ew(r,{methods:e,retryCount:a,retryDelay:i,uid:Lv()}),value:c}}({key:i,methods:s,name:o,async request({method:t,params:e}){const r={method:t,params:e},{schedule:a}=dv({id:v,wait:y,shouldSplitBatch:t=>t.length>m,fn:t=>w.request({body:t}),sort:(t,e)=>t.id-e.id}),[{error:i,result:s}]=await(async t=>n?a(t):[await w.request({body:t})])(r);if(l)return{error:i,result:s};if(i)throw new qy({body:r,error:i,url:v});return s},retryCount:g,retryDelay:d,timeout:b,type:"http"},{fetchOptions:a,url:v})}}function dA(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n}var lA,fA,hA;function pA(t,e,n){var r,a,i;window.ClientAnalytics&&(null===(r=window.ClientAnalytics)||void 0===r||r.logEvent(t,Object.assign(Object.assign({},e),{sdkVersion:$f,sdkName:Yf,appName:null!==(i=null===(a=oh.config.get().metadata)||void 0===a?void 0:a.appName)&&void 0!==i?i:"",appOrigin:window.location.origin}),n))}"function"==typeof SuppressedError&&SuppressedError,function(t){t.unknown="unknown",t.banner="banner",t.button="button",t.card="card",t.chart="chart",t.content_script="content_script",t.dropdown="dropdown",t.link="link",t.page="page",t.modal="modal",t.table="table",t.search_bar="search_bar",t.service_worker="service_worker",t.text="text",t.text_input="text_input",t.tray="tray",t.checkbox="checkbox",t.icon="icon"}(lA||(lA={})),function(t){t.unknown="unknown",t.blur="blur",t.click="click",t.change="change",t.dismiss="dismiss",t.focus="focus",t.hover="hover",t.select="select",t.measurement="measurement",t.move="move",t.process="process",t.render="render",t.scroll="scroll",t.view="view",t.search="search",t.keyPress="keyPress",t.error="error"}(fA||(fA={})),function(t){t.low="low",t.high="high"}(hA||(hA={}));const mA=({dialogContext:t})=>{pA(`dialog.${t}.shown`,{action:fA.render,componentType:lA.modal,dialogContext:t},hA.high)},yA=({dialogContext:t})=>{pA(`dialog.${t}.dismissed`,{action:fA.dismiss,componentType:lA.modal,dialogContext:t},hA.high)},gA=({dialogContext:t,dialogAction:e})=>{pA(`dialog.${t}.action_clicked`,{action:fA.click,componentType:lA.button,dialogContext:t,dialogAction:e},hA.high)},bA="BaseSans-Regular";var vA,wA,xA,kA,AA,IA,EA,PA,SA,_A,OA={},TA=[],BA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,MA=Array.isArray;function CA(t,e){for(var n in e)t[n]=e[n];return t}function NA(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function jA(t,e,n){var r,a,i,s={};for(i in e)"key"==i?r=e[i]:"ref"==i?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?vA.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===s[i]&&(s[i]=t.defaultProps[i]);return RA(t,s,r,a,null)}function RA(t,e,n,r,a){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++xA:a,__i:-1,__u:0};return null==a&&null!=wA.vnode&&wA.vnode(i),i}function UA(t){return t.children}function LA(t,e){this.props=t,this.context=e}function zA(t,e){if(null==e)return t.__?zA(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?zA(t):null}function FA(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return FA(t)}}function DA(t){(!t.__d&&(t.__d=!0)&&kA.push(t)&&!qA.__r++||AA!==wA.debounceRendering)&&((AA=wA.debounceRendering)||IA)(qA)}function qA(){var t,e,n,r,a,i,s,o;for(kA.sort(EA);t=kA.shift();)t.__d&&(e=kA.length,r=void 0,i=(a=(n=t).__v).__e,s=[],o=[],n.__P&&((r=CA({},a)).__v=a.__v+1,wA.vnode&&wA.vnode(r),YA(n.__P,r,a,n.__n,n.__P.namespaceURI,32&a.__u?[i]:null,s,null==i?zA(a):i,!!(32&a.__u),o),r.__v=a.__v,r.__.__k[r.__i]=r,$A(s,r,o),r.__e!=i&&FA(r)),kA.length>e&&kA.sort(EA));qA.__r=0}function GA(t,e,n,r,a,i,s,o,c,u,d){var l,f,h,p,m,y=r&&r.__k||TA,g=e.length;for(n.__d=c,KA(n,e,y),c=n.__d,l=0;l<g;l++)null!=(h=n.__k[l])&&(f=-1===h.__i?OA:y[h.__i]||OA,h.__i=l,YA(t,h,f,a,i,s,o,c,u,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&XA(f.ref,null,h),d.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||f.__k===h.__k?c=VA(h,c,t):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:p&&(c=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function KA(t,e,n){var r,a,i,s,o,c=e.length,u=n.length,d=u,l=0;for(t.__k=[],r=0;r<c;r++)null!=(a=e[r])&&"boolean"!=typeof a&&"function"!=typeof a?(s=r+l,(a=t.__k[r]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?RA(null,a,null,null,null):MA(a)?RA(UA,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?RA(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,i=null,-1!==(o=a.__i=ZA(a,n,s,d))&&(d--,(i=n[o])&&(i.__u|=131072)),null==i||null===i.__v?(-1==o&&l--,"function"!=typeof a.type&&(a.__u|=65536)):o!==s&&(o==s-1?l--:o==s+1?l++:(o>s?l--:l++,a.__u|=65536))):a=t.__k[r]=null;if(d)for(r=0;r<u;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=zA(i)),tI(i,i))}function VA(t,e,n){var r,a;if("function"==typeof t.type){for(r=t.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=t,e=VA(r[a],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=zA(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function ZA(t,e,n,r){var a=t.key,i=t.type,s=n-1,o=n+1,c=e[n];if(null===c||c&&a==c.key&&i===c.type&&!(131072&c.__u))return n;if(r>(null==c||131072&c.__u?0:1))for(;s>=0||o<e.length;){if(s>=0){if((c=e[s])&&!(131072&c.__u)&&a==c.key&&i===c.type)return s;s--}if(o<e.length){if((c=e[o])&&!(131072&c.__u)&&a==c.key&&i===c.type)return o;o++}}return-1}function HA(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||BA.test(e)?n:n+"px"}function WA(t,e,n,r,a){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||HA(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||HA(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=PA,t.addEventListener(e,i?_A:SA,i)):t.removeEventListener(e,i?_A:SA,i);else{if("http://www.w3.org/2000/svg"==a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function JA(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=PA++;else if(e.t<n.u)return;return n(wA.event?wA.event(e):e)}}}function YA(t,e,n,r,a,i,s,o,c,u){var d,l,f,h,p,m,y,g,b,v,w,x,k,A,I,E,P=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[o=e.__e=n.__e]),(d=wA.__b)&&d(e);t:if("function"==typeof P)try{if(g=e.props,b="prototype"in P&&P.prototype.render,v=(d=P.contextType)&&r[d.__c],w=d?v?v.props.value:d.__:r,n.__c?y=(l=e.__c=n.__c).__=l.__E:(b?e.__c=l=new P(g,w):(e.__c=l=new LA(g,w),l.constructor=P,l.render=eI),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=w,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),b&&null==l.__s&&(l.__s=l.state),b&&null!=P.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=CA({},l.__s)),CA(l.__s,P.getDerivedStateFromProps(g,l.__s))),h=l.props,p=l.state,l.__v=e,f)b&&null==P.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),b&&null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(b&&null==P.getDerivedStateFromProps&&g!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,w),!l.__e&&(null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&s.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,w),b&&null!=l.componentDidUpdate&&l.__h.push(function(){l.componentDidUpdate(h,p,m)})}if(l.context=w,l.props=g,l.__P=t,l.__e=!1,k=wA.__r,A=0,b){for(l.state=l.__s,l.__d=!1,k&&k(e),d=l.render(l.props,l.state,l.context),I=0;I<l._sb.length;I++)l.__h.push(l._sb[I]);l._sb=[]}else do{l.__d=!1,k&&k(e),d=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++A<25);l.state=l.__s,null!=l.getChildContext&&(r=CA(CA({},r),l.getChildContext())),b&&!f&&null!=l.getSnapshotBeforeUpdate&&(m=l.getSnapshotBeforeUpdate(h,p)),GA(t,MA(E=null!=d&&d.type===UA&&null==d.key?d.props.children:d)?E:[E],e,n,r,a,i,s,o,c,u),l.base=e.__e,e.__u&=-161,l.__h.length&&s.push(l),y&&(l.__E=l.__=null)}catch(t){if(e.__v=null,c||null!=i){for(e.__u|=c?160:32;o&&8===o.nodeType&&o.nextSibling;)o=o.nextSibling;i[i.indexOf(o)]=null,e.__e=o}else e.__e=n.__e,e.__k=n.__k;wA.__e(t,e,n)}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=QA(n.__e,e,n,r,a,i,s,c,u);(d=wA.diffed)&&d(e)}function $A(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)XA(n[r],n[++r],n[++r]);wA.__c&&wA.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){wA.__e(t,e.__v)}})}function QA(t,e,n,r,a,i,s,o,c){var u,d,l,f,h,p,m,y=n.props,g=e.props,b=e.type;if("svg"===b?a="http://www.w3.org/2000/svg":"math"===b?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!b&&(b?h.localName===b:3===h.nodeType)){t=h,i[u]=null;break}if(null==t){if(null===b)return document.createTextNode(g);t=document.createElementNS(a,b,g.is&&g),o&&(wA.__m&&wA.__m(e,i),o=!1),i=null}if(null===b)y===g||o&&t.data===g||(t.data=g);else{if(i=i&&vA.call(t.childNodes),y=n.props||OA,!o&&null!=i)for(y={},u=0;u<t.attributes.length;u++)y[(h=t.attributes[u]).name]=h.value;for(u in y)if(h=y[u],"children"==u);else if("dangerouslySetInnerHTML"==u)l=h;else if(!(u in g)){if("value"==u&&"defaultValue"in g||"checked"==u&&"defaultChecked"in g)continue;WA(t,u,null,h,a)}for(u in g)h=g[u],"children"==u?f=h:"dangerouslySetInnerHTML"==u?d=h:"value"==u?p=h:"checked"==u?m=h:o&&"function"!=typeof h||y[u]===h||WA(t,u,h,y[u],a);if(d)o||l&&(d.__html===l.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(l&&(t.innerHTML=""),GA(t,MA(f)?f:[f],e,n,r,"foreignObject"===b?"http://www.w3.org/1999/xhtml":a,i,s,i?i[0]:n.__k&&zA(n,0),o,c),null!=i)for(u=i.length;u--;)NA(i[u]);o||(u="value","progress"===b&&null==p?t.removeAttribute("value"):void 0!==p&&(p!==t[u]||"progress"===b&&!p||"option"===b&&p!==y[u])&&WA(t,u,p,y[u],a),u="checked",void 0!==m&&m!==t[u]&&WA(t,u,m,y[u],a))}return t}function XA(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(t){wA.__e(t,n)}}function tI(t,e,n){var r,a;if(wA.unmount&&wA.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||XA(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){wA.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(a=0;a<r.length;a++)r[a]&&tI(r[a],e,n||"function"!=typeof t.type);n||NA(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function eI(t,e,n){return this.constructor(t,n)}function nI(t,e,n){var r,a,i;wA.__&&wA.__(t,e),r=!1?null:e.__k,a=[],i=[],YA(e,t=e.__k=jA(UA,null,[t]),r||OA,OA,e.namespaceURI,r?null:e.firstChild?vA.call(e.childNodes):null,a,r?r.__e:e.firstChild,false,i),$A(a,t,i)}vA=TA.slice,wA={__e:function(t,e,n,r){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(t)),s=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(t,r||{}),s=a.__d),s)return a.__E=a}catch(e){t=e}throw t}},xA=0,LA.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=CA({},this.state),"function"==typeof t&&(t=t(CA({},n),this.props)),t&&CA(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),DA(this))},LA.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),DA(this))},LA.prototype.render=UA,kA=[],IA="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,EA=function(t,e){return t.__v.__b-e.__v.__b},qA.__r=0,PA=0,SA=JA(!1),_A=JA(!0);var rI=0;function aI(t,e,n,r,a,i){e||(e={});var s,o,c=e;"ref"in e&&(s=e.ref,delete e.ref);var u={type:t,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--rI,__i:-1,__u:0,__source:a,__self:i};if("function"==typeof t&&(s=t.defaultProps))for(o in s)void 0===c[o]&&(c[o]=s[o]);return wA.vnode&&wA.vnode(u),u}function iI(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=iI(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function sI(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=iI(t))&&(r&&(r+=" "),r+=e);return r}const oI=({fill:t})=>aI("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:aI("path",{d:"M0 2.014C0 1.58105 0 1.36457 0.0815779 1.19805C0.159686 1.03861 0.288611 0.909686 0.448049 0.831578C0.61457 0.75 0.831047 0.75 1.264 0.75H14.736C15.169 0.75 15.3854 0.75 15.552 0.831578C15.7114 0.909686 15.8403 1.03861 15.9184 1.19805C16 1.36457 16 1.58105 16 2.014V15.486C16 15.919 16 16.1354 15.9184 16.302C15.8403 16.4614 15.7114 16.5903 15.552 16.6684C15.3854 16.75 15.169 16.75 14.736 16.75H1.264C0.831047 16.75 0.61457 16.75 0.448049 16.6684C0.288611 16.5903 0.159686 16.4614 0.0815779 16.302C0 16.1354 0 15.919 0 15.486V2.014Z",fill:"blue"===t?"#0000FF":"#FFF"})});var cI,uI,dI,lI,fI=0,hI=[],pI=wA,mI=pI.__b,yI=pI.__r,gI=pI.diffed,bI=pI.__c,vI=pI.unmount,wI=pI.__;function xI(t,e){pI.__h&&pI.__h(uI,t,fI||e),fI=0;var n=uI.__H||(uI.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function kI(t){return fI=1,function(t,e){var n=xI(cI++,2);if(n.t=t,!n.__c&&(n.__=[TI(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=uI,!uI.u)){var r=function(t,e,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(t){return!!t.__c});if(i.every(function(t){return!t.__N}))return!a||a.call(this,t,e,r);var s=!1;return i.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}}),!(!s&&n.__c.props===t)&&(!a||a.call(this,t,e,r))};uI.u=!0;var a=uI.shouldComponentUpdate,i=uI.componentWillUpdate;uI.componentWillUpdate=function(t,e,n){if(this.__e){var s=a;a=void 0,r(t,e,n),a=s}i&&i.call(this,t,e,n)},uI.shouldComponentUpdate=r}return n.__N||n.__}(TI,t)}function AI(t,e){var n=xI(cI++,3);!pI.__s&&OI(n.__H,e)&&(n.__=t,n.i=e,uI.__H.__h.push(n))}function II(){for(var t;t=hI.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(SI),t.__H.__h.forEach(_I),t.__H.__h=[]}catch(e){t.__H.__h=[],pI.__e(e,t.__v)}}pI.__b=function(t){uI=null,mI&&mI(t)},pI.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),wI&&wI(t,e)},pI.__r=function(t){yI&&yI(t),cI=0;var e=(uI=t.__c).__H;e&&(dI===uI?(e.__h=[],uI.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0})):(e.__h.forEach(SI),e.__h.forEach(_I),e.__h=[],cI=0)),dI=uI},pI.diffed=function(t){gI&&gI(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==hI.push(e)&&lI===pI.requestAnimationFrame||((lI=pI.requestAnimationFrame)||PI)(II)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.i=void 0})),dI=uI=null},pI.__c=function(t,e){e.some(function(t){try{t.__h.forEach(SI),t.__h=t.__h.filter(function(t){return!t.__||_I(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],pI.__e(n,t.__v)}}),bI&&bI(t,e)},pI.unmount=function(t){vI&&vI(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(t){try{SI(t)}catch(t){e=t}}),n.__H=void 0,e&&pI.__e(e,n.__v))};var EI="function"==typeof requestAnimationFrame;function PI(t){var e,n=function(){clearTimeout(r),EI&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);EI&&(e=requestAnimationFrame(n))}function SI(t){var e=uI,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),uI=e}function _I(t){var e=uI;t.__c=t.__(),uI=e}function OI(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function TI(t,e){return"function"==typeof e?e(t):e}function BI(){return window.innerWidth<=600&&window.innerHeight>window.innerWidth}const MI=()=>{const[t,e]=kI(!1);return AI(()=>{const t=()=>{e(BI())};return t(),window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]),t?aI("div",{class:"-base-acc-sdk-dialog-handle-bar"}):null};class CI{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null}attach(t){this.root=document.createElement("div"),this.root.className="-base-acc-sdk-dialog-root",t.appendChild(this.root),this.render()}presentItem(t){const e=this.nextItemKey++;this.items.set(e,t),this.render()}clear(){this.items.clear(),this.root&&nI(null,this.root)}render(){this.root&&nI(aI("div",{children:aI(NI,{children:Array.from(this.items.entries()).map(([t,e])=>jA(jI,Object.assign({},e,{key:t,handleClose:()=>{var t;this.clear(),null===(t=e.onClose)||void 0===t||t.call(e)}})))})}),this.root)}}const NI=t=>{const[e,n]=kI(0),[r,a]=kI(!1),[i,s]=kI(0);return aI("div",{class:sI("-base-acc-sdk-dialog-container"),children:[aI("style",{children:'.-base-acc-sdk-css-reset{-webkit-font-smoothing:antialiased;pointer-events:auto !important}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container *{user-select:none;box-sizing:border-box}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{align-items:flex-end;justify-content:stretch;padding:0}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{position:relative;z-index:2147483648}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{width:100%}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);width:380px;max-height:90vh;overflow:hidden;transform:scale(0.95);opacity:0;transition:all .2s ease-in-out}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{touch-action:pan-y;user-select:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:scale(0.9);opacity:0}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%)}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:scale(1);opacity:1}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0)}}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{width:100%;max-width:100%;border-radius:20px 20px 0 0;box-shadow:0 -10px 25px rgba(0,0,0,.15);max-height:80vh;transform:translateY(0)}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%);opacity:1}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0);opacity:1}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0 20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{padding:16px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title{display:flex;align-items:center;gap:8px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title-title{font-family:"BaseSans-Regular",sans-serif;font-size:14px;font-weight:400;color:#5b616e}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-cblogo{width:32px;height:32px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer;border-radius:6px;transition:background-color .2s}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close:hover{background-color:#f5f7f8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{width:14px;height:14px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{display:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:20px 20px 16px 20px;font-family:"BaseSans-Regular",sans-serif}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:8px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-title{font-size:20px;font-weight:600;line-height:28px;color:#0a0b0d;margin-bottom:10px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-message{font-size:16px;font-weight:400;line-height:24px;color:#5b616e;margin-bottom:0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{display:flex;padding:16px 20px 20px 20px;flex-direction:column}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{padding:16px 20px calc(20px + env(safe-area-inset-bottom)) 20px;gap:6px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button{font-family:"BaseSans-Regular",sans-serif;font-size:16px;font-weight:500;line-height:24px;border:none;border-radius:12px;padding:16px 24px;cursor:pointer;transition:all .2s ease-in-out;width:100%;margin:4px 0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button:disabled{opacity:.5;cursor:not-allowed}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary{background-color:#0a0b0d;color:#fff}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:hover:not(:disabled){background-color:#1c1e20}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:active:not(:disabled){background-color:#2a2d31}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary{background-color:#eef0f3;color:#0a0b0d}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:hover:not(:disabled){background-color:#e1e4e8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:active:not(:disabled){background-color:#d4d8dd}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-handle-bar{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:64px;height:4px;background-color:#d1d5db;border-radius:2px;opacity:0;animation:handleBarFadeIn .2s ease-in-out .2s forwards}@keyframes handleBarFadeIn{from{opacity:0}to{opacity:1}}'}),aI("div",{class:"-base-acc-sdk-dialog-backdrop",onTouchStart:t=>{if(!BI())return;const e=t.touches[0];s(e.clientY),a(!0)},onTouchMove:t=>{if(!r)return;const e=t.touches[0].clientY-i;e>0&&(n(e),t.preventDefault())},onTouchEnd:()=>{if(r)if(a(!1),e>100){const t=document.querySelector(".-base-acc-sdk-dialog-instance-header-close");t&&t.click()}else n(0)},children:aI("div",{class:"-base-acc-sdk-dialog",style:{transform:`translateY(${e}px)`,transition:r?"none":"transform 0.2s ease-out"},children:[aI(MI,{}),t.children]})})]})},jI=({title:t,message:e,actionItems:n,handleClose:r})=>{const[a,i]=kI(!0),[s,o]=kI(!0),[c,u]=kI(null);AI(()=>{const t=window.setTimeout(()=>{i(!1)},1);return()=>{window.clearTimeout(t)}},[]),AI(()=>{(async()=>{var t;const e=null===(t=oh.account.get().accounts)||void 0===t?void 0:t[0];if(e){const t=await async function(t){return function(t,e=4){return`${t.slice(0,2+e)}...${t.slice(-e)}`}(t)}(e);u(t)}o(!1)})()},[]);const d=function(t,e){var n=xI(cI++,7);return OI(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}(()=>c?`Signed in as ${c}`:"Base Account",[c]),l=!s;return aI("div",{class:sI("-base-acc-sdk-dialog-instance",a&&"-base-acc-sdk-dialog-instance-hidden"),children:[aI("div",{class:"-base-acc-sdk-dialog-instance-header",children:[aI("div",{class:"-base-acc-sdk-dialog-instance-header-icon-and-title",children:[aI(oI,{fill:"blue"}),l&&aI("div",{class:"-base-acc-sdk-dialog-instance-header-icon-and-title-title",children:d})]}),aI("div",{class:"-base-acc-sdk-dialog-instance-header-close",onClick:r,children:aI("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzIDFMMSAxM20wLTEyTDEzIDEzIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+",class:"-base-acc-sdk-dialog-instance-header-close-icon"})})]}),aI("div",{class:"-base-acc-sdk-dialog-instance-content",children:[aI("div",{class:"-base-acc-sdk-dialog-instance-content-title",children:t}),aI("div",{class:"-base-acc-sdk-dialog-instance-content-message",children:e})]}),n&&n.length>0&&aI("div",{class:"-base-acc-sdk-dialog-instance-actions",children:n.map((t,e)=>aI("button",{class:sI("-base-acc-sdk-dialog-instance-button","primary"===t.variant&&"-base-acc-sdk-dialog-instance-button-primary","secondary"===t.variant&&"-base-acc-sdk-dialog-instance-button-secondary"),onClick:t.onClick,children:t.text},e))})]})};let RI=null;function UI(){if(!RI){const t=document.createElement("div");t.className="-base-acc-sdk-css-reset",document.body.appendChild(t),RI=new CI,RI.attach(t)}return function(){if(document.head.querySelector(`style[base-sdk-font="${bA}"]`))return;const t=document.createElement("style");t.setAttribute("base-sdk-font",bA),t.textContent='\n@font-face {\n font-family: "BaseSans-Regular";\n src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAJigAA8AAAACCywAAJg8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGoIuG4L7BhzCdAZgAJIGEQgKg+k0gv4NC4p0AAE2AiQDlWQEIAWGfgeublsIz5EGVeP2TiXfSAJ0G0LBr7Zlqf6pcAA3dwBbquuITJr6o7y2YrpNHoSyAwBKe/rZ//////+/IlmMMf8PuQcEUUitMtva1oSQhGamQkxJxpSLWVScq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-weight: normal;\n font-style: normal;\n font-display: swap;\n}\n',document.head.appendChild(t)}(),RI}const LI="{app} wants to continue in Base Account",zI="This action requires your permission to open a new window.";function FI(t){const e=(window.innerWidth-420)/2+window.screenX,n=(window.innerHeight-700)/2+window.screenY;function r(){const r=`wallet_${crypto.randomUUID()}`,a=window.open(t,r,`width=420, height=700, left=${e}, top=${n}`);return null==a||a.focus(),a||null}!function(t){const e={sdkName:Yf,sdkVersion:$f,origin:window.location.origin,coop:ph()};for(const[n,r]of Object.entries(e))t.searchParams.has(n)||t.searchParams.append(n,r.toString())}(t);const a=r();return a?Promise.resolve(a):function(t){var e,n;const r=null!==(n=null===(e=oh.config.get().metadata)||void 0===e?void 0:e.appName)&&void 0!==n?n:"App",a=UI();return new Promise((e,n)=>{mA({dialogContext:"popup_blocked"}),a.presentItem({title:LI.replace("{app}",r),message:zI,onClose:()=>{gA({dialogContext:"popup_blocked",dialogAction:"cancel"}),n(l.internal("Popup window was blocked"))},actionItems:[{text:"Try again",variant:"primary",onClick:()=>{gA({dialogContext:"popup_blocked",dialogAction:"confirm"});const r=t();r?e(r):n(l.internal("Popup window was blocked")),a.clear()}},{text:"Cancel",variant:"secondary",onClick:()=>{gA({dialogContext:"popup_blocked",dialogAction:"cancel"}),n(l.internal("Popup window was blocked")),a.clear()}}]})})}(r)}class DI{constructor({url:t="https://app.startale.com",metadata:e,preference:n}){this.popup=null,this.listeners=new Map,this.postMessage=async t=>{(await this.waitForPopupLoaded()).postMessage(t,this.url.origin)},this.postRequestAndWaitForResponse=async t=>{const e=this.onMessage(({requestId:e})=>e===t.id);return this.postMessage(t),await e},this.onMessage=async t=>new Promise((e,n)=>{const r=n=>{if(n.origin!==this.url.origin)return;const a=n.data;t(a)&&(e(a),window.removeEventListener("message",r),this.listeners.delete(r))};window.addEventListener("message",r),this.listeners.set(r,{reject:n})}),this.disconnect=()=>{var t;(t=this.popup)&&!t.closed&&t.close(),this.popup=null,this.listeners.forEach(({reject:t},e)=>{t(f.userRejectedRequest("Request rejected")),window.removeEventListener("message",e)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(pA("communicator.popup_setup.started",{action:fA.unknown,componentType:lA.unknown},hA.high),this.popup=await FI(this.url),this.onMessage(({event:t})=>"PopupUnload"===t).then(()=>{this.disconnect(),pA("communicator.popup_unload.received",{action:fA.unknown,componentType:lA.unknown},hA.high)}).catch(()=>{}),this.onMessage(({event:t})=>"PopupLoaded"===t).then(t=>{this.postMessage({requestId:t.id,data:{version:$f,sdkName:Yf,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw l.internal();return pA("communicator.popup_setup.completed",{action:fA.unknown,componentType:lA.unknown},hA.high),this.popup})),this.url=new URL(t),this.metadata=e,this.preference=n}}function qI(t){const r=s(function(t){var r;if("string"==typeof t)return{message:t,code:e.internal};if(a=t,void 0!==a.errorMessage){const e=t.errorMessage,a=null!==(r=t.errorCode)&&void 0!==r?r:e.match(/(denied|rejected)/i)?n.userRejectedRequest:void 0;return Object.assign(Object.assign({},t),{message:e,code:a,data:{method:t.method}})}var a;return t}(t),{shouldIncludeStack:!0}),a=new URL("https://docs.startale.com/");return a.searchParams.set("version",$f),a.searchParams.set("code",r.code.toString()),a.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:""})}const GI=t=>"message"in t&&"string"==typeof t.message?t.message:"";const KI=t=>t;function VI(t){return Math.floor(t)}const ZI=/^[0-9]*$/,HI=/^[a-f0-9]*$/;function WI(t){return KI(`0x${BigInt(t).toString(16)}`)}function JI(t){return(e=t).startsWith("0x")||e.startsWith("0X")?t.slice(2):t;var e}function YI(t,e=!1){if("string"==typeof t){const n=JI(t).toLowerCase();if(HI.test(n))return KI(e?`0x${n}`:n)}throw l.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function $I(t){if("number"==typeof t&&Number.isInteger(t))return VI(t);if("string"==typeof t){if(ZI.test(t))return VI(Number(t));if(function(t){if("string"!=typeof t)return!1;const e=JI(t).toLowerCase();return HI.test(e)}(t))return VI(Number(BigInt(function(t,e=!1){let n=YI(t,!1);return n.length%2==1&&(n=KI(`0${n}`)),e?KI(`0x${n}`):n}(t,!0))))}throw l.invalidParams(`Not an integer: ${String(t)}`)}const QI=new TextDecoder,XI=Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((t,e)=>[e,t.charCodeAt(0)]));function tE(t,e={}){return function(t,e={}){const{pad:n=!0,url:r=!1}=e,a=new Uint8Array(4*Math.ceil(t.length/3));for(let e=0,n=0;n<t.length;e+=4,n+=3){const r=(t[n]<<16)+(t[n+1]<<8)+(0|t[n+2]);a[e]=XI[r>>18],a[e+1]=XI[r>>12&63],a[e+2]=XI[r>>6&63],a[e+3]=XI[63&r]}const i=t.length%3,s=4*Math.floor(t.length/3)+(i&&i+1);let o=QI.decode(new Uint8Array(a.buffer,0,s));return n&&1===i&&(o+="=="),n&&2===i&&(o+="="),r&&(o=o.replaceAll("+","-").replaceAll("/","_")),o}(jl(t),e)}
|
|
30
|
+
const yd=Symbol("Comlink.proxy"),gd=Symbol("Comlink.endpoint"),bd=Symbol("Comlink.releaseProxy"),vd=Symbol("Comlink.finalizer"),wd=Symbol("Comlink.thrown"),xd=t=>"object"==typeof t&&null!==t||"function"==typeof t,kd=new Map([["proxy",{canHandle:t=>xd(t)&&t[yd],serialize(t){const{port1:e,port2:n}=new MessageChannel;return Ad(t,e),[n,[n]]},deserialize:t=>(t.start(),Ed(t))}],["throw",{canHandle:t=>xd(t)&&wd in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function Ad(t,e=globalThis,n=["*"]){e.addEventListener("message",function r(a){if(!a||!a.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:i,type:s,path:o}=Object.assign({path:[]},a.data),c=(a.data.argumentList||[]).map(Nd);let u;try{const e=o.slice(0,-1).reduce((t,e)=>t[e],t),n=o.reduce((t,e)=>t[e],t);switch(s){case"GET":u=n;break;case"SET":e[o.slice(-1)[0]]=Nd(a.data.value),u=!0;break;case"APPLY":u=n.apply(e,c);break;case"CONSTRUCT":u=function(t){return Object.assign(t,{[yd]:!0})}(new n(...c));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;Ad(t,n),u=function(t,e){return Md.set(t,e),t}(e,[e])}break;case"RELEASE":u=void 0;break;default:return}}catch(t){u={value:t,[wd]:0}}Promise.resolve(u).catch(t=>({value:t,[wd]:0})).then(n=>{const[a,o]=Cd(n);e.postMessage(Object.assign(Object.assign({},a),{id:i}),o),"RELEASE"===s&&(e.removeEventListener("message",r),Id(e),vd in t&&"function"==typeof t[vd]&&t[vd]())}).catch(t=>{const[n,r]=Cd({value:new TypeError("Unserializable return value"),[wd]:0});e.postMessage(Object.assign(Object.assign({},n),{id:i}),r)})}),e.start&&e.start()}function Id(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function Ed(t,e){const n=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const r=n.get(e.id);if(r)try{r(e)}finally{n.delete(e.id)}}),Td(t,n,[],e)}function Pd(t){if(t)throw new Error("Proxy has been released and is not useable")}function Sd(t){return jd(t,new Map,{type:"RELEASE"}).then(()=>{Id(t)})}const _d=new WeakMap,Od="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(_d.get(t)||0)-1;_d.set(t,e),0===e&&Sd(t)});function Td(t,e,n=[],r=function(){}){let a=!1;const i=new Proxy(r,{get(r,s){if(Pd(a),s===bd)return()=>{!function(t){Od&&Od.unregister(t)}(i),Sd(t),e.clear(),a=!0};if("then"===s){if(0===n.length)return{then:()=>i};const r=jd(t,e,{type:"GET",path:n.map(t=>t.toString())}).then(Nd);return r.then.bind(r)}return Td(t,e,[...n,s])},set(r,i,s){Pd(a);const[o,c]=Cd(s);return jd(t,e,{type:"SET",path:[...n,i].map(t=>t.toString()),value:o},c).then(Nd)},apply(r,i,s){Pd(a);const o=n[n.length-1];if(o===gd)return jd(t,e,{type:"ENDPOINT"}).then(Nd);if("bind"===o)return Td(t,e,n.slice(0,-1));const[c,u]=Bd(s);return jd(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:c},u).then(Nd)},construct(r,i){Pd(a);const[s,o]=Bd(i);return jd(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},o).then(Nd)}});return function(t,e){const n=(_d.get(e)||0)+1;_d.set(e,n),Od&&Od.register(t,e,t)}(i,t),i}function Bd(t){const e=t.map(Cd);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))];var n}const Md=new WeakMap;function Cd(t){for(const[e,n]of kd)if(n.canHandle(t)){const[r,a]=n.serialize(t);return[{type:"HANDLER",name:e,value:r},a]}return[{type:"RAW",value:t},Md.get(t)||[]]}function Nd(t){switch(t.type){case"HANDLER":return kd.get(t.name).deserialize(t.value);case"RAW":return t.value}}function jd(t,e,n,r){return new Promise(a=>{const i=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(i,a),t.start&&t.start(),t.postMessage(Object.assign({id:i},n),r)})}const Rd={postMessage:t=>{window.ReactNativeWebView.postMessage(JSON.stringify(t))},addEventListener:(t,e,...n)=>{document.addEventListener("FarcasterFrameCallback",e,...n)},removeEventListener:(t,e)=>{document.removeEventListener("FarcasterFrameCallback",e)}},Ud="undefined"==typeof window?{postMessage(){},addEventListener:()=>{},removeEventListener:()=>{}}:window?.ReactNativeWebView?Rd:function(t,e=globalThis,n="*"){return{postMessage:(e,r)=>t.postMessage(e,n,r),addEventListener:e.addEventListener.bind(e),removeEventListener:e.removeEventListener.bind(e)}}(window?.parent??window),Ld=Ed(Ud),zd=function(){const t=new I;return{get eventNames(){return t.eventNames.bind(t)},get listenerCount(){return t.listenerCount.bind(t)},get listeners(){return t.listeners.bind(t)},addListener:t.addListener.bind(t),emit:t.emit.bind(t),off:t.off.bind(t),on:t.on.bind(t),once:t.once.bind(t),removeAllListeners:t.removeAllListeners.bind(t),removeListener:t.removeListener.bind(t)}}(),Fd=function(t={}){let e=t.id??0;return{prepare:t=>function(t){return{...t,jsonrpc:"2.0"}}({id:e++,...t}),get id(){return e}}}();const Dd=function(t){if(!t)throw new md;return{...t,async request(e){try{const n=await t.request(e);return n&&"object"==typeof n&&"jsonrpc"in n?Fu(n):n}catch(t){throw function(t){const e=Du(t);if(e instanceof Xu){if(!e.data)return e;const{code:t}=e.data;if(t===id.code)return new id(e);if(t===sd.code)return new sd(e);if(t===nd.code)return new nd(e);if(t===rd.code)return new rd(e);if(t===ad.code)return new ad(e);if(t===od.code)return new od(e);if(t===hd.code)return new hd(e);if(t===pd.code)return new pd(e);if(t===fd.code)return new fd(e);if(t===ld.code)return new ld(e);if(t===dd.code)return new dd(e);if(t===ud.code)return new ud(e);if(t===cd.code)return new cd(e)}return e}(t)}}}}({...zd,async request(t){const e=Fd.prepare(t);try{const t=await Ld.ethProviderRequestV2(e).then(t=>Fu(t,{request:e,raw:!0}));if(t.error)throw function({code:t,details:e}){switch(t){case 4001:return new nd;case 4100:return new rd;case 4200:return new ad;case 4900:return new id;case 4901:return new sd;default:return new ed(t,e??"Unknown provider RPC error")}}(t.error);return t.result}catch(t){if(t instanceof Error&&t.message.match(/cannot read property 'apply'/i))return await Ld.ethProviderRequest(e);if(t instanceof ed||t instanceof qu)throw t;throw new Xu({message:t instanceof Error?t.message:void 0})}}});function qd(t){const e=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(t)});window.dispatchEvent(e);const n=()=>window.dispatchEvent(e);return window.addEventListener("eip6963:requestProvider",n),()=>window.removeEventListener("eip6963:requestProvider",n)}"undefined"!=typeof document&&(document.addEventListener("eip6963:requestProvider",()=>{Ld.eip6963RequestProvider()}),document.addEventListener("FarcasterFrameEthProviderEvent",t=>{if(t instanceof MessageEvent){const e=t.data;zd.emit(e.event,...e.params)}}),document.addEventListener("FarcasterFrameEvent",t=>{if(t instanceof MessageEvent){const e=t.data;"eip6963:announceProvider"===e.event&&qd({info:e.info,provider:Dd})}})),"undefined"!=typeof window&&(window.addEventListener("eip6963:requestProvider",()=>{Ld.eip6963RequestProvider()}),window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEthProviderEvent"===t.data.type){const e=t.data;zd.emit(e.event,...e.params)}}),window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEvent"===t.data.type){const e=t.data.event;"eip6963:announceProvider"===e.event&&qd({info:e.info,provider:Dd})}})),new TextEncoder;const Gd=new TextDecoder,Kd=t=>{let e=t;e instanceof Uint8Array&&(e=Gd.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(t=>{const e=atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n})(e)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Vd extends Error{constructor(t,e){super(t,e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}Vd.code="ERR_JOSE_GENERIC";(class extends Vd{constructor(t,e,n="unspecified",r="unspecified"){super(t,{cause:{claim:n,reason:r,payload:e}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=e}}).code="ERR_JWT_CLAIM_VALIDATION_FAILED";(class extends Vd{constructor(t,e,n="unspecified",r="unspecified"){super(t,{cause:{claim:n,reason:r,payload:e}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=e}}).code="ERR_JWT_EXPIRED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}).code="ERR_JOSE_ALG_NOT_ALLOWED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}).code="ERR_JOSE_NOT_SUPPORTED";(class extends Vd{constructor(t="decryption operation failed",e){super(t,e),this.code="ERR_JWE_DECRYPTION_FAILED"}}).code="ERR_JWE_DECRYPTION_FAILED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}).code="ERR_JWE_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}).code="ERR_JWS_INVALID";class Zd extends Vd{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}Zd.code="ERR_JWT_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}).code="ERR_JWK_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}).code="ERR_JWKS_INVALID";(class extends Vd{constructor(t="no applicable key found in the JSON Web Key Set",e){super(t,e),this.code="ERR_JWKS_NO_MATCHING_KEY"}}).code="ERR_JWKS_NO_MATCHING_KEY";(class extends Vd{constructor(t="multiple matching keys found in the JSON Web Key Set",e){super(t,e),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}).code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";(class extends Vd{constructor(t="request timed out",e){super(t,e),this.code="ERR_JWKS_TIMEOUT"}}).code="ERR_JWKS_TIMEOUT";function Hd(t){if("string"!=typeof t)throw new Zd("JWTs must use Compact JWS serialization, JWT must be a string");const{1:e,length:n}=t.split(".");if(5===n)throw new Zd("Only JWTs using Compact JWS serialization can be decoded");if(3!==n)throw new Zd("Invalid JWT");if(!e)throw new Zd("JWTs must contain a payload");let r,a;try{r=Kd(e)}catch{throw new Zd("Failed to base64url decode the payload")}try{a=JSON.parse(Gd.decode(r))}catch{throw new Zd("Failed to parse the decoded payload as JSON")}if(!function(t){if("object"!=typeof(e=t)||null===e||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e;if(null===Object.getPrototypeOf(t))return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}(a))throw new Zd("Invalid JWT Claims Set");return a}(class extends Vd{constructor(t="signature verification failed",e){super(t,e),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}).code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";let Wd=class t extends Error{constructor(e,n={}){const r=(()=>{if(n.cause instanceof t){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&"string"==typeof n.cause.details?n.cause.details:n.cause?.message?n.cause.message:n.details})(),a=[e||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r?["",r?`Details: ${r}`:void 0]:[]].filter(t=>"string"==typeof t).join("\n");super(a,n.cause?{cause:n.cause}:void 0),this.name="BaseError",this.cause=n.cause,this.details=r,this.shortMessage=e}};class Jd extends Wd{constructor({status:t}){super(`Request failed with status ${t}`),this.name="RequestFailedError"}}class Yd extends Wd{constructor(t){super(t),this.name="InvalidToken"}}function $d(t={}){const e=function(t={}){return{origin:t.origin??"https://auth.farcaster.xyz"}}(t);return{generateNonce:()=>async function({origin:t}){const e=await fetch(`${t}/nonce`,{method:"POST"});if(!e.ok)throw new Jd({status:e.status});return await e.json()}(e),verifySiwf:t=>async function({origin:t},e){const n=await fetch(`${t}/verify-siwf`,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)});if(!n.ok)throw new Jd({status:n.status});const r=await n.json();if(!1===r.valid)throw new Yd(r.message??"unknown");return{token:r.token}}(e,t)}}function Qd(t,e){if(Ul(t)>e)throw new Hl({givenSize:Ul(t),maxSize:e})}const Xd=48,tl=57,el=65,nl=70,rl=97,al=102;function il(t){return t>=Xd&&t<=tl?t-Xd:t>=el&&t<=nl?t-(el-10):t>=rl&&t<=al?t-(rl-10):void 0}function sl(t,e={}){const{dir:n="left"}=e;let r=t,a=0;for(let t=0;t<r.length-1&&"0"===r["left"===n?t:r.length-t-1].toString();t++)a++;return r="left"===n?r.slice(a):r.slice(0,r.length-a),r}function ol(t,e){if(xl(t)>e)throw new _l({givenSize:xl(t),maxSize:e})}function cl(t,e={}){const{dir:n,size:r=32}=e;if(0===r)return t;const a=t.replace("0x","");if(a.length>2*r)throw new Tl({size:Math.ceil(a.length/2),targetSize:r,type:"Hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*r,"0")}`}function ul(t,e,n){return JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString()+"#__bigint":e,n)}const dl=new TextEncoder,ll=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function fl(...t){return`0x${t.reduce((t,e)=>t+e.replace("0x",""),"")}`}function hl(t){return t instanceof Uint8Array?ml(t):Array.isArray(t)?ml(new Uint8Array(t)):t}function pl(t,e={}){const n=`0x${Number(t)}`;return"number"==typeof e.size?(ol(n,e.size),bl(n,e.size)):n}function ml(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=ll[t[e]];const r=`0x${n}`;return"number"==typeof e.size?(ol(r,e.size),vl(r,e.size)):r}function yl(t,e={}){const{signed:n,size:r}=e,a=BigInt(t);let i;r?i=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof t&&(i=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof i&&n?-i-1n:0;if(i&&a>i||a<s){const e="bigint"==typeof t?"n":"";throw new El({max:i?`${i}${e}`:void 0,min:`${s}${e}`,signed:n,size:r,value:`${t}${e}`})}const o=`0x${(n&&a<0?BigInt.asUintN(8*r,BigInt(a)):a).toString(16)}`;return r?bl(o,r):o}function gl(t,e={}){return ml(dl.encode(t),e)}function bl(t,e){return cl(t,{dir:"left",size:e})}function vl(t,e){return cl(t,{dir:"right",size:e})}function wl(t,e,n,r={}){const{strict:a}=r;!function(t,e){if("number"==typeof e&&e>0&&e>xl(t)-1)throw new Ol({offset:e,position:"start",size:xl(t)})}(t,e);const i=`0x${t.replace("0x","").slice(2*(e??0),2*(n??t.length))}`;return a&&function(t,e,n){if("number"==typeof e&&"number"==typeof n&&xl(t)!==n-e)throw new Ol({offset:n,position:"end",size:xl(t)})}(i,e,n),i}function xl(t){return Math.ceil((t.length-2)/2)}function kl(t,e={}){const{signed:n}=e;e.size&&ol(t,e.size);const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2,i=(1n<<8n*BigInt(a))-1n;return r<=i>>1n?r:r-i-1n}function Al(t,e={}){const{signed:n,size:r}=e;return Number(n||r?kl(t,e):t)}function Il(t,e={}){const{strict:n=!1}=e;try{return function(t,e={}){const{strict:n=!1}=e;if(!t)throw new Pl(t);if("string"!=typeof t)throw new Pl(t);if(n&&!/^0x[0-9a-fA-F]*$/.test(t))throw new Sl(t);if(!t.startsWith("0x"))throw new Sl(t)}(t,{strict:n}),!0}catch{return!1}}let El=class extends Lu{constructor({max:t,min:e,signed:n,size:r,value:a}){super(`Number \`${a}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${t?`(\`${e}\` to \`${t}\`)`:`(above \`${e}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}};class Pl extends Lu{constructor(t){super(`Value \`${"object"==typeof t?ul(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class Sl extends Lu{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}let _l=class extends Lu{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed \`${e}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},Ol=class extends Lu{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}},Tl=class extends Lu{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}};const Bl=new TextDecoder,Ml=new TextEncoder;function Cl(t){return t instanceof Uint8Array?t:"string"==typeof t?jl(t):Nl(t)}function Nl(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function jl(t,e={}){const{size:n}=e;let r=t;n&&(ol(t,n),r=vl(t,n));let a=r.slice(2);a.length%2&&(a=`0${a}`);const i=a.length/2,s=new Uint8Array(i);for(let t=0,e=0;t<i;t++){const n=il(a.charCodeAt(e++)),r=il(a.charCodeAt(e++));if(void 0===n||void 0===r)throw new Lu(`Invalid byte sequence ("${a[e-2]}${a[e-1]}" in "${a}").`);s[t]=n<<4|r}return s}function Rl(t,e={}){const{size:n}=e,r=Ml.encode(t);return"number"==typeof n?(Qd(r,n),function(t,e){return function(t,e={}){const{dir:n,size:r=32}=e;if(0===r)return t;if(t.length>r)throw new Jl({size:t.length,targetSize:r,type:"Bytes"});const a=new Uint8Array(r);for(let e=0;e<r;e++){const i="right"===n;a[i?e:r-e-1]=t[i?e:t.length-e-1]}return a}(t,{dir:"right",size:e})}(r,n)):r}function Ul(t){return t.length}function Ll(t,e,n,r={}){const{strict:a}=r;!function(t,e){if("number"==typeof e&&e>0&&e>Ul(t)-1)throw new Wl({offset:e,position:"start",size:Ul(t)})}(t,e);const i=t.slice(e,n);return a&&function(t,e,n){if("number"==typeof e&&"number"==typeof n&&Ul(t)!==n-e)throw new Wl({offset:n,position:"end",size:Ul(t)})}(i,e,n),i}function zl(t,e={}){const{size:n}=e;void 0!==n&&Qd(t,n);return kl(ml(t,e),e)}function Fl(t,e={}){const{size:n}=e;let r=t;if(void 0!==n&&(Qd(r,n),r=Gl(r)),r.length>1||r[0]>1)throw new Vl(r);return Boolean(r[0])}function Dl(t,e={}){const{size:n}=e;void 0!==n&&Qd(t,n);return Al(ml(t,e),e)}function ql(t,e={}){const{size:n}=e;let r=t;return void 0!==n&&(Qd(r,n),r=sl(r,{dir:"right"})),Bl.decode(r)}function Gl(t){return sl(t,{dir:"left"})}function Kl(t){try{return function(t){if(!(t instanceof Uint8Array)){if(!t)throw new Zl(t);if("object"!=typeof t)throw new Zl(t);if(!("BYTES_PER_ELEMENT"in t))throw new Zl(t);if(1!==t.BYTES_PER_ELEMENT||"Uint8Array"!==t.constructor.name)throw new Zl(t)}}(t),!0}catch{return!1}}let Vl=class extends Lu{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}};class Zl extends Lu{constructor(t){super(`Value \`${"object"==typeof t?ul(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let Hl=class extends Lu{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed \`${e}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},Wl=class extends Lu{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}},Jl=class extends Lu{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}},Yl=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}};const $l={checksum:new Yl(8192)}.checksum,Ql=BigInt(0),Xl=BigInt(1),tf=BigInt(2),ef=BigInt(7),nf=BigInt(256),rf=BigInt(113),af=[],sf=[],of=[];for(let t=0,e=Xl,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],af.push(2*(5*r+n)),sf.push((t+1)*(t+2)/2%64);let a=Ql;for(let t=0;t<7;t++)e=(e<<Xl^(e>>ef)*rf)%nf,e&tf&&(a^=Xl<<(Xl<<BigInt(t))-Xl);of.push(a)}const cf=Bn(of,!0),uf=cf[0],df=cf[1],lf=(t,e,n)=>n>32?((t,e,n)=>e<<n-32|t>>>64-n)(t,e,n):((t,e,n)=>t<<n|e>>>32-n)(t,e,n),ff=(t,e,n)=>n>32?((t,e,n)=>t<<n-32|e>>>64-n)(t,e,n):((t,e,n)=>e<<n|t>>>32-n)(t,e,n);class hf extends vn{constructor(t,e,n,r=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=a,un(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");var i;this.state=new Uint8Array(200),this.state32=(i=this.state,new Uint32Array(i.buffer,i.byteOffset,Math.floor(i.byteLength/4)))}clone(){return this._cloneInto()}keccak(){gn(this.state32),function(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,a=(e+2)%10,i=n[a],s=n[a+1],o=lf(i,s,1)^n[r],c=ff(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=o,t[e+n+1]^=c}let e=t[2],a=t[3];for(let n=0;n<24;n++){const r=sf[n],i=lf(e,a,r),s=ff(e,a,r),o=af[n];e=t[o],a=t[o+1],t[o]=i,t[o+1]=s}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=uf[r],t[1]^=df[r]}hn(n)}(this.state32,this.rounds),gn(this.state32),this.posOut=0,this.pos=0}update(t){ln(this),dn(t=bn(t));const{blockLen:e,state:n}=this,r=t.length;for(let a=0;a<r;){const i=Math.min(e-this.pos,r-a);for(let e=0;e<i;e++)n[this.pos++]^=t[a++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,128&e&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){ln(this,!1),dn(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,a=t.length;r<a;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,a-r);t.set(e.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return un(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(fn(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,hn(this.state)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:a,enableXOF:i}=this;return t||(t=new hf(e,n,r,i,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=n,t.outputLen=r,t.enableXOF=i,t.destroyed=this.destroyed,t}}const pf=(()=>{return t=1,e=136,n=32,wn(()=>new hf(e,t,n));var t,e,n})(),mf=er;function yf(t,e={}){const{as:n=("string"==typeof t?"Hex":"Bytes")}=e,r=pf(Cl(t));return"Bytes"===n?r:ml(r)}function gf(t,e={}){const{as:n=("string"==typeof t?"Hex":"Bytes")}=e,r=mf(Cl(t));return"Bytes"===n?r:ml(r)}function bf(t,e={}){const{compressed:n}=e,{prefix:r,x:a,y:i}=t;if(!1===n||"bigint"==typeof a&&"bigint"==typeof i){if(4!==r)throw new Af({prefix:r,cause:new Ef})}else{if(!0!==n&&("bigint"!=typeof a||void 0!==i))throw new kf({publicKey:t});if(3!==r&&2!==r)throw new Af({prefix:r,cause:new If})}}function vf(t){const e=(()=>{if(Il(t))return wf(t);if(Kl(t))return function(t){return wf(ml(t))}(t);const{prefix:e,x:n,y:r}=t;return"bigint"==typeof n&&"bigint"==typeof r?{prefix:e??4,x:n,y:r}:{prefix:e,x:n}})();return bf(e),e}function wf(t){if(132!==t.length&&130!==t.length&&68!==t.length)throw new Pf({publicKey:t});if(130===t.length){return{prefix:4,x:BigInt(wl(t,0,32)),y:BigInt(wl(t,32,64))}}if(132===t.length){return{prefix:Number(wl(t,0,1)),x:BigInt(wl(t,1,33)),y:BigInt(wl(t,33,65))}}return{prefix:Number(wl(t,0,1)),x:BigInt(wl(t,1,33))}}function xf(t,e={}){bf(t);const{prefix:n,x:r,y:a}=t,{includePrefix:i=!0}=e;return fl(i?yl(n,{size:1}):"0x",yl(r,{size:32}),"bigint"==typeof a?yl(a,{size:32}):"0x")}class kf extends Lu{constructor({publicKey:t}){super(`Value \`${ul(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class Af extends Lu{constructor({prefix:t,cause:e}){super(`Prefix "${t}" is invalid.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class If extends Lu{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class Ef extends Lu{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let Pf=class extends Lu{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${xl(hl(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Sf=/^0x[a-fA-F0-9]{40}$/;function _f(t,e={}){const{strict:n=!0}=e;if(!Sf.test(t))throw new Bf({address:t,cause:new Mf});if(n){if(t.toLowerCase()===t)return;if(Of(t)!==t)throw new Bf({address:t,cause:new Cf})}}function Of(t){if($l.has(t))return $l.get(t);_f(t,{strict:!1});const e=t.substring(2).toLowerCase(),n=yf(Rl(e),{as:"Bytes"}),r=e.split("");for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&r[t]&&(r[t]=r[t].toUpperCase()),(15&n[t>>1])>=8&&r[t+1]&&(r[t+1]=r[t+1].toUpperCase());const a=`0x${r.join("")}`;return $l.set(t,a),a}function Tf(t,e={}){const{strict:n=!0}=e??{};try{return _f(t,{strict:n}),!0}catch{return!1}}let Bf=class extends Lu{constructor({address:t,cause:e}){super(`Address "${t}" is invalid.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}};class Mf extends Lu{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Cf extends Lu{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const Nf=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,jf=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;const Rf=(()=>{let t,e;async function n(e){const n=$d({origin:e.quickAuthServerOrigin}),{nonce:r}=await n.generateNonce(),a=await Ld.signIn({nonce:r,acceptAuthAddress:!0});if(a.result){const e=function(t){const{scheme:e,statement:n,...r}=t.match(Nf)?.groups??{},{chainId:a,expirationTime:i,issuedAt:s,notBefore:o,requestId:c,...u}=t.match(jf)?.groups??{},d=t.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...a?{chainId:Number(a)}:{},...i?{expirationTime:new Date(i)}:{},...s?{issuedAt:new Date(s)}:{},...o?{notBefore:new Date(o)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...e?{scheme:e}:{},...n?{statement:n}:{}}}(a.result.message);if(!e.domain)throw new Error("Missing domain on SIWE message");const r=await n.verifySiwf({domain:e.domain,message:a.result.message,signature:a.result.signature});return t={token:r.token,payload:(i=r.token,Hd(i))},r}var i;if("rejected_by_user"===a.error.type)throw new O;throw new Error("Unreachable")}return{get token(){if(t&&new Date(1e3*t.payload.exp)>new Date(Date.now()+15e3))return t.token},async getToken(r={}){const a=r.force??!1;return t&&!a&&new Date(1e3*t.payload.exp)>new Date(Date.now()+15e3)?{token:t.token}:(e||(e=n(r)),e.finally(()=>{e=void 0}),e)},async fetch(t,e){const{token:n}=await this.getToken(),r=new Headers(e?.headers);return r.set("Authorization",`Bearer ${n}`),fetch(t,{...e,headers:r})}}})();const Uf=function(){const t=new I;return{get eventNames(){return t.eventNames.bind(t)},get listenerCount(){return t.listenerCount.bind(t)},get listeners(){return t.listeners.bind(t)},addListener:t.addListener.bind(t),emit:t.emit.bind(t),off:t.off.bind(t),on:t.on.bind(t),once:t.once.bind(t),removeAllListeners:t.removeAllListeners.bind(t),removeListener:t.removeListener.bind(t)}}(),{solanaProviderRequest:Lf}=Ld;let zf;var Ff,Df;async function qf(){let t;try{t=await Ld.getCapabilities()}catch{}if(t?.includes("wallet.getSolanaProvider"))return zf}Lf&&(Df=Lf,zf={request:Ff=async t=>{if("connect"===t.method)return await Df(t);if("signMessage"===t.method)return await Df(t);if("signAndSendTransaction"===t.method){const{transaction:e}=t.params,n={transaction:Ru(e)};return await Df({method:"signAndSendTransaction",params:n})}if("signTransaction"===t.method){const{transaction:e}=t.params,n={transaction:Ru(e)},{signedTransaction:r}=await Df({method:"signTransaction",params:n});return{signedTransaction:Uu(r)}}},signMessage:t=>Ff({method:"signMessage",params:{message:t}}),signTransaction:t=>Ff({method:"signTransaction",params:{transaction:t}}),signAndSendTransaction:t=>Ff({method:"signAndSendTransaction",params:t})});let Gf=null;const Kf=async()=>{const t=await Ld.addFrame();if(t.result)return t.result;if("invalid_domain_manifest"===t.error.type)throw new S;if("rejected_by_user"===t.error.type)throw new _;throw new Error("Unreachable")},Vf={...Uf,getCapabilities:Ld.getCapabilities,getChains:Ld.getChains,isInMiniApp:async function(t=1e3){if(!0===Gf)return!0;if("undefined"==typeof window)return!1;if(!window.ReactNativeWebView&&window===window.parent)return!1;const e=await Promise.race([Ld.context.then(t=>!!t),new Promise(e=>{setTimeout(()=>e(!1),t)})]).catch(()=>!1);return e&&(Gf=!0),e},context:Ld.context,back:(({miniAppHost:t,emitter:e})=>{let n,r=null;return{visible:!1,get onback(){return r},set onback(t){r&&e.removeListener("backNavigationTriggered",r),r=t,t&&e.addListener("backNavigationTriggered",t)},async show(){await t.updateBackState({visible:!0}),this.visible=!0},async hide(){await t.updateBackState({visible:!1}),this.visible=!1},async enableWebNavigation(){n=function({emitter:t,back:e}){const n=function(){if("undefined"!=typeof window&&void 0!==window.navigation)return window.navigation}();if(n)return function({emitter:t,back:e,navigation:n}){function r(){n.canGoBack?e.show():e.hide()}function a(){e.visible&&n.canGoBack&&n.back()}return n.addEventListener("navigatesuccess",r),t.addListener("backNavigationTriggered",a),()=>{n.removeEventListener("navigatesuccess",r),t.removeListener("backNavigationTriggered",a)}}({emitter:t,back:e,navigation:n});if("undefined"!=typeof window)return function({emitter:t,back:e,window:n}){function r(){e.visible&&n.history.back()}return e.show(),t.addListener("backNavigationTriggered",r),()=>{t.removeListener("backNavigationTriggered",r)}}({emitter:t,back:e,window:window})}({back:this,emitter:e})},async disableWebNavigation(){n?.(),n=void 0}}})({miniAppHost:Ld,emitter:Uf}),quickAuth:Rf,actions:{setPrimaryButton:Ld.setPrimaryButton.bind(Ld),ready:async(t={})=>await Ld.ready(t),close:Ld.close.bind(Ld),viewCast:Ld.viewCast.bind(Ld),viewProfile:Ld.viewProfile.bind(Ld),openMiniApp:Ld.openMiniApp.bind(Ld),signIn:async t=>{const e=await Ld.signIn({...t,acceptAuthAddress:t.acceptAuthAddress??!0});if(e.result)return e.result;if("rejected_by_user"===e.error.type)throw new O;throw new Error("Unreachable")},openUrl:t=>{const e="string"==typeof t?t:t.url;return Ld.openUrl(e.trim())},addFrame:Kf,addMiniApp:Kf,composeCast:(t={})=>Ld.composeCast(t),viewToken:Ld.viewToken.bind(Ld),sendToken:Ld.sendToken.bind(Ld),swapToken:Ld.swapToken.bind(Ld),requestCameraAndMicrophoneAccess:Ld.requestCameraAndMicrophoneAccess.bind(Ld)},experimental:{getSolanaProvider:qf,signManifest:async t=>{const e=await Ld.signManifest(t);if(e.result)return e.result;if("rejected_by_user"===e.error.type)throw new T;if("invalid_domain"===e.error.type)throw new B;if("generic_error"===e.error.type)throw new M(e.error.message);throw new Error("Unreachable")},quickAuth:t=>Rf.getToken(t)},wallet:{ethProvider:Dd,getEthereumProvider:async function(){try{const t=await Ld.getCapabilities();if(!t.includes("wallet.getEthereumProvider")&&!t.includes("wallet.getEvmProvider"))return;return Dd}catch{return Dd}},getSolanaProvider:qf},haptics:{impactOccurred:Ld.impactOccurred.bind(Ld),notificationOccurred:Ld.notificationOccurred.bind(Ld),selectionChanged:Ld.selectionChanged.bind(Ld)}};"undefined"!=typeof document&&document.addEventListener("FarcasterFrameEvent",t=>{if(t instanceof MessageEvent){const e=t.data;"primary_button_clicked"===e.event?Uf.emit("primaryButtonClicked"):"miniapp_added"===e.event?Uf.emit("miniAppAdded",{notificationDetails:e.notificationDetails}):"miniapp_add_rejected"===e.event?Uf.emit("miniAppAddRejected",{reason:e.reason}):"miniapp_removed"===e.event?Uf.emit("miniAppRemoved"):"notifications_enabled"===e.event?Uf.emit("notificationsEnabled",{notificationDetails:e.notificationDetails}):"notifications_disabled"===e.event?Uf.emit("notificationsDisabled"):"back_navigation_triggered"===e.event&&Uf.emit("backNavigationTriggered")}}),"undefined"!=typeof window&&window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEvent"===t.data.type){const e=t.data.event;"primary_button_clicked"===e.event?Uf.emit("primaryButtonClicked"):"miniapp_added"===e.event?Uf.emit("miniAppAdded",{notificationDetails:e.notificationDetails}):"miniapp_add_rejected"===e.event?Uf.emit("miniAppAddRejected",{reason:e.reason}):"miniapp_removed"===e.event?Uf.emit("miniAppRemoved"):"notifications_enabled"===e.event?Uf.emit("notificationsEnabled",{notificationDetails:e.notificationDetails}):"notifications_disabled"===e.event?Uf.emit("notificationsDisabled"):"back_navigation_triggered"===e.event&&Uf.emit("backNavigationTriggered")}});const Zf=["accountsChanged","chainChanged","connect","disconnect"];class Hf extends E{constructor(){super(...arguments),this.farcasterProvider=null,this.initPromise=null,this.eventForwarders=new Map}async init(){if(!this.farcasterProvider)return this.initPromise||(this.initPromise=(async()=>{try{Vf.actions.ready();const r=await(t=Vf.wallet.getEthereumProvider(),e=5e3,n="FarcasterProvider init timed out — host may not be ready",new Promise((r,a)=>{const i=setTimeout(()=>a(new Error(n)),e);t.then(t=>{clearTimeout(i),r(t)},t=>{clearTimeout(i),a(t)})}));this.farcasterProvider=r;for(const t of Zf){const e=(...e)=>{this.emit(t,...e)};this.eventForwarders.set(t,e),this.farcasterProvider.on(t,e)}}catch(t){throw this.initPromise=null,t}var t,e,n})()),this.initPromise}async request(t){return await this.init(),"wallet_connect"===t.method?this.handleWalletConnect(t):this.farcasterProvider.request(t)}async handleWalletConnect(t){var e;const n=await this.farcasterProvider.request({method:"eth_requestAccounts"}),r=await this.farcasterProvider.request({method:"eth_chainId"}),a=t.params,i=null===(e=null==a?void 0:a[0])||void 0===e?void 0:e.chainIds;return{accounts:n.map(t=>({address:t})),chainIds:[r,...(null!=i?i:[]).filter(t=>t!==String(r))]}}async disconnect(){if(this.farcasterProvider){for(const[t,e]of this.eventForwarders)this.farcasterProvider.removeListener(t,e);this.eventForwarders.clear()}this.farcasterProvider=null,this.initPromise=null,this.emit("disconnect",f.disconnected("User initiated disconnection"))}async close(){Vf.actions.close()}}function Wf(){return"undefined"!=typeof window&&window.parent!==window}const Jf="https://rpc.wallet.coinbase.com",Yf="@startale/app-sdk",$f="1.3.1";function Qf(t,e){let n;try{n=t()}catch(t){return}const r={getItem:t=>{var e;const r=t=>null===t?null:JSON.parse(t,void 0),a=null!=(e=n.getItem(t))?e:null;return a instanceof Promise?a.then(r):r(a)},setItem:(t,e)=>n.setItem(t,JSON.stringify(e,void 0)),removeItem:t=>n.removeItem(t)};return r}const Xf=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then:t=>Xf(t)(n),catch(t){return this}}}catch(t){return{then(t){return this},catch:e=>Xf(e)(t)}}},th=(t,e)=>(n,r,a)=>{let i={storage:Qf(()=>localStorage),partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},s=!1;const o=new Set,c=new Set;let u=i.storage;if(!u)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...t)},r,a);const d=()=>{const t=i.partialize({...r()});return u.setItem(i.name,{state:t,version:i.version})},l=a.setState;a.setState=(t,e)=>{l(t,e),d()};const f=t((...t)=>{n(...t),d()},r,a);let h;a.getInitialState=()=>f;const p=()=>{var t,e;if(!u)return;s=!1,o.forEach(t=>{var e;return t(null!=(e=r())?e:f)});const a=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,null!=(t=r())?t:f))||void 0;return Xf(u.getItem.bind(u))(i.name).then(t=>{if(t){if("number"!=typeof t.version||t.version===i.version)return[!1,t.state];if(i.migrate){const e=i.migrate(t.state,t.version);return e instanceof Promise?e.then(t=>[!0,t]):[!0,e]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var e;const[a,s]=t;if(h=i.merge(s,null!=(e=r())?e:f),n(h,!0),a)return d()}).then(()=>{null==a||a(h,void 0),h=r(),s=!0,c.forEach(t=>t(h))}).catch(t=>{null==a||a(void 0,t)})};return a.persist={setOptions:t=>{i={...i,...t},t.storage&&(u=t.storage)},clearStorage:()=>{null==u||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:t=>(o.add(t),()=>{o.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},i.skipHydration||p(),h||f},eh=t=>{let e;const n=new Set,r=(t,r)=>{const a="function"==typeof t?t(e):t;if(!Object.is(a,e)){const t=e;e=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},e,a),n.forEach(n=>n(e,t))}},a=()=>e,i={setState:r,getState:a,getInitialState:()=>s,subscribe:t=>(n.add(t),()=>n.delete(t))},s=e=t(r,a,i);return i},nh=t=>t?eh(t):eh,rh=nh(th((...t)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},{chains:[]}),{keys:{}}),{account:{}}),{subAccount:void 0}),{spendPermissions:[]}),(()=>({config:{version:$f}}))(...t)),{subAccountConfig:{}}),{userInfo:{}}),{name:"startale-app-sdk.store",storage:Qf(()=>localStorage),partialize:t=>({chains:t.chains,keys:t.keys,account:t.account,subAccount:t.subAccount,spendPermissions:t.spendPermissions,config:t.config,userInfo:t.userInfo})})),ah={get:()=>rh.getState().spendPermissions,set:t=>{rh.setState({spendPermissions:t})},clear:()=>{rh.setState({spendPermissions:[]})}},ih={get:()=>rh.getState().config,set:t=>{rh.setState(e=>({config:Object.assign(Object.assign({},e.config),t)}))}},sh={subAccounts:{get:()=>rh.getState().subAccount,set:t=>{rh.setState(e=>({subAccount:e.subAccount?Object.assign(Object.assign({},e.subAccount),t):Object.assign({address:t.address},t)}))},clear:()=>{rh.setState({subAccount:void 0})}},subAccountsConfig:{get:()=>rh.getState().subAccountConfig,set:t=>{rh.setState(e=>({subAccountConfig:Object.assign(Object.assign({},e.subAccountConfig),t)}))},clear:()=>{rh.setState({subAccountConfig:{}})}},spendPermissions:ah,account:{get:()=>rh.getState().account,set:t=>{rh.setState(e=>({account:Object.assign(Object.assign({},e.account),t)}))},clear:()=>{rh.setState({account:{}})}},chains:{get:()=>rh.getState().chains,set:t=>{rh.setState({chains:t})},clear:()=>{rh.setState({chains:[]})}},keys:{get:t=>rh.getState().keys[t],set:(t,e)=>{rh.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[t]:e})}))},clear:()=>{rh.setState({keys:{}})}},config:ih,userInfo:{get:()=>rh.getState().userInfo,set:t=>{rh.setState(e=>({userInfo:t}))},clear:()=>{rh.setState({userInfo:{}})}}},oh=Object.assign(Object.assign({},rh),sh),ch=()=>{var t,e,n;if("undefined"!=typeof window){const r=null!==(n=null!==(t=oh.config.get().deviceId)&&void 0!==t?t:null===(e=window.crypto)||void 0===e?void 0:e.randomUUID())&&void 0!==n?n:"";if(window.ClientAnalytics){const{init:t,identify:e,PlatformName:n}=window.ClientAnalytics;t({isProd:!0,amplitudeApiKey:"c66737ad47ec354ced777935b0af822e",platform:n.web,projectName:"base_account_sdk",showDebugLogging:!1,version:"1.0.0",apiEndpoint:"https://cca-lite.coinbase.com"}),e({deviceId:r}),oh.config.set({deviceId:r})}}},uh=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"owner",type:"bytes"}],name:"AlreadyOwner",type:"error"},{inputs:[],name:"Initialized",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidEthereumAddressOwner",type:"error"},{inputs:[{name:"key",type:"uint256"}],name:"InvalidNonceKey",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidOwnerBytesLength",type:"error"},{inputs:[],name:"LastOwner",type:"error"},{inputs:[{name:"index",type:"uint256"}],name:"NoOwnerAtIndex",type:"error"},{inputs:[{name:"ownersRemaining",type:"uint256"}],name:"NotLastOwner",type:"error"},{inputs:[{name:"selector",type:"bytes4"}],name:"SelectorNotAllowed",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"UnauthorizedCallContext",type:"error"},{inputs:[],name:"UpgradeFailed",type:"error"},{inputs:[{name:"index",type:"uint256"},{name:"expectedOwner",type:"bytes"},{name:"actualOwner",type:"bytes"}],name:"WrongOwnerAtIndex",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"AddOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"RemoveOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"REPLAYABLE_NONCE_KEY",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"addOwnerAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"addOwnerPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"functionSelector",type:"bytes4"}],name:"canSkipChainIdValidation",outputs:[{name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"executeBatch",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"calls",type:"bytes[]"}],name:"executeWithoutChainIdValidation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHashWithoutChainId",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"$",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"owners",type:"bytes[]"}],name:"initialize",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"isOwnerAddress",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"bytes"}],name:"isOwnerBytes",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"isOwnerPublicKey",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"result",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextOwnerIndex",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"}],name:"ownerAtIndex",outputs:[{name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"ownerCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeLastOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeOwnerAtIndex",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"removedOwnersCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"}],name:"replaySafeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"newImplementation",type:"address"},{name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],dh=[{inputs:[{name:"implementation_",type:"address"}],stateMutability:"payable",type:"constructor"},{inputs:[],name:"OwnerRequired",type:"error"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"createAccount",outputs:[{name:"account",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"getAddress",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"initCodeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"}];function lh(t,e,n){if(null==t)throw null!=e?e:l.invalidParams({message:"value must be present",data:t})}function fh(t,e){if(!Array.isArray(t))throw l.invalidParams({message:null!=e?e:"value must be an array",data:t})}const{checkCrossOriginOpenerPolicy:hh,getCrossOriginOpenerPolicy:ph}=(()=>{let t;return{getCrossOriginOpenerPolicy:()=>void 0===t?"undefined":t,checkCrossOriginOpenerPolicy:async()=>{if("undefined"!=typeof window)try{const e=`${window.location.origin}${window.location.pathname}`,n=await fetch(e,{method:"HEAD"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const r=n.headers.get("Cross-Origin-Opener-Policy");t=null!=r?r:"null","same-origin"===t&&console.error("Base Account SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Base Account app.\n\nPlease see https://docs.base.org/smart-wallet/quickstart#cross-origin-opener-policy for more information.")}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),t="error"}else t="non-browser-env"}}})();function mh(t){if("function"!=typeof t)throw new Error("toAccount is not a function")}let yh=class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.1.0"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=e}};function gh(t,e){const n=t.exec(e);return n?.groups}const bh=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,vh=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,wh=/^\(.+?\).*?$/,xh=/^tuple(?<array>(\[(\d*)\])*)$/;function kh(t){let e=t.type;if(xh.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let r=0;r<n;r++){e+=kh(t.components[r]),r<n-1&&(e+=", ")}const r=gh(xh,t.type);return e+=`)${r?.array??""}`,kh({...t,type:e})}return"indexed"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}function Ah(t){let e="";const n=t.length;for(let r=0;r<n;r++){e+=kh(t[r]),r!==n-1&&(e+=", ")}return e}const Ih=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Eh=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Ph=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;const Sh=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function _h(t){return Sh.test(t)}function Oh(t){return gh(Sh,t)}const Th=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;const Bh=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;const Mh=/^receive\(\) external payable$/;const Ch=new Set(["indexed"]),Nh=new Set(["calldata","memory","storage"]);let jh=class extends yh{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}},Rh=class extends yh{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}},Uh=class extends yh{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},Lh=class extends yh{constructor({param:t,name:e}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${e}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}},zh=class extends yh{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},Fh=class extends yh{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},Dh=class extends yh{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}},qh=class extends yh{constructor({signature:t,type:e}){super(`Invalid ${e} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},Gh=class extends yh{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},Kh=class extends yh{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}},Vh=class extends yh{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}},Zh=class extends yh{constructor({current:t,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};const Hh=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Wh(t,e={}){if(function(t){return Ph.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Ph,t)}(t);if(!n)throw new qh({signature:t,type:"function"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{modifiers:Nh,structs:e,type:"function"}));const s=[];if(n.returns){const t=Xh(n.returns),r=t.length;for(let n=0;n<r;n++)s.push(Qh(t[n],{modifiers:Nh,structs:e,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}(t,e);if(function(t){return Eh.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Eh,t)}(t);if(!n)throw new qh({signature:t,type:"event"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{modifiers:Ch,structs:e,type:"event"}));return{name:n.name,type:"event",inputs:a}}(t,e);if(function(t){return Ih.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Ih,t)}(t);if(!n)throw new qh({signature:t,type:"error"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{structs:e,type:"error"}));return{name:n.name,type:"error",inputs:a}}(t,e);if(function(t){return Th.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Th,t)}(t);if(!n)throw new qh({signature:t,type:"constructor"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{structs:e,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(t,e);if(function(t){return Bh.test(t)}(t))return function(t){const e=function(t){return gh(Bh,t)}(t);if(!e)throw new qh({signature:t,type:"fallback"});return{type:"fallback",stateMutability:e.stateMutability??"nonpayable"}}(t);if(function(t){return Mh.test(t)}(t))return{type:"receive",stateMutability:"payable"};throw new Gh({signature:t})}const Jh=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Yh=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,$h=/^u?int$/;function Qh(t,e){const n=function(t,e,n){let r="";if(n)for(const t of Object.entries(n)){if(!t)continue;let e="";for(const n of t[1])e+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${t[0]}{${e}})`}return e?`${e}:${t}${r}`:t}(t,e?.type,e?.structs);if(Hh.has(n))return Hh.get(n);const r=wh.test(t),a=gh(r?Yh:Jh,t);if(!a)throw new Uh({param:t});if(a.name&&function(t){return"address"===t||"bool"===t||"function"===t||"string"===t||"tuple"===t||bh.test(t)||vh.test(t)||ep.test(t)}(a.name))throw new Lh({param:t,name:a.name});const i=a.name?{name:a.name}:{},s="indexed"===a.modifier?{indexed:!0}:{},o=e?.structs??{};let c,u={};if(r){c="tuple";const t=Xh(a.type),e=[],n=t.length;for(let r=0;r<n;r++)e.push(Qh(t[r],{structs:o}));u={components:e}}else if(a.type in o)c="tuple",u={components:o[a.type]};else if($h.test(a.type))c=`${a.type}256`;else if("address payable"===a.type)c="address";else if(c=a.type,"struct"!==e?.type&&!tp(c))throw new Rh({type:c});if(a.modifier){if(!e?.modifiers?.has?.(a.modifier))throw new zh({param:t,type:e?.type,modifier:a.modifier});if(Nh.has(a.modifier)&&!function(t,e){return e||"bytes"===t||"string"===t||"tuple"===t}(c,!!a.array))throw new Fh({param:t,type:e?.type,modifier:a.modifier})}const d={type:`${c}${a.array??""}`,...i,...s,...u};return Hh.set(n,d),d}function Xh(t,e=[],n="",r=0){const a=t.trim().length;for(let i=0;i<a;i++){const a=t[i],s=t.slice(i+1);switch(a){case",":return 0===r?Xh(s,[...e,n.trim()]):Xh(s,e,`${n}${a}`,r);case"(":return Xh(s,e,`${n}${a}`,r+1);case")":return Xh(s,e,`${n}${a}`,r-1);default:return Xh(s,e,`${n}${a}`,r)}}if(""===n)return e;if(0!==r)throw new Zh({current:n,depth:r});return e.push(n.trim()),e}function tp(t){return"address"===t||"bool"===t||"function"===t||"string"===t||bh.test(t)||vh.test(t)}const ep=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;const np=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function rp(t,e,n=new Set){const r=[],a=t.length;for(let i=0;i<a;i++){const a=t[i];if(wh.test(a.type))r.push(a);else{const t=gh(np,a.type);if(!t?.type)throw new Dh({abiParameter:a});const{array:i,type:s}=t;if(s in e){if(n.has(s))throw new Vh({type:s});r.push({...a,type:`tuple${i??""}`,components:rp(e[s]??[],e,new Set([...n,s]))})}else{if(!tp(s))throw new jh({type:s});r.push(a)}}}return r}function ap(t){const e=function(t){const e={},n=t.length;for(let r=0;r<n;r++){const n=t[r];if(!_h(n))continue;const a=Oh(n);if(!a)throw new qh({signature:n,type:"struct"});const i=a.properties.split(";"),s=[],o=i.length;for(let t=0;t<o;t++){const e=i[t].trim();if(!e)continue;const n=Qh(e,{type:"struct"});s.push(n)}if(!s.length)throw new Kh({signature:n});e[a.name]=s}const r={},a=Object.entries(e),i=a.length;for(let t=0;t<i;t++){const[n,i]=a[t];r[n]=rp(i,e)}return r}(t),n=[],r=t.length;for(let a=0;a<r;a++){const r=t[a];_h(r)||n.push(Wh(r,e))}return n}function ip(t,e,n){const r=t[e.name];if("function"==typeof r)return r;const a=t[n];return"function"==typeof a?a:n=>e(t,n)}function sp(t,{includeName:e=!1}={}){if("function"!==t.type&&"event"!==t.type&&"error"!==t.type)throw new Lp(t.type);return`${t.name}(${op(t.inputs,{includeName:e})})`}function op(t,{includeName:e=!1}={}){return t?t.map(t=>function(t,{includeName:e}){if(t.type.startsWith("tuple"))return`(${op(t.components,{includeName:e})})${t.type.slice(5)}`;return t.type+(e&&t.name?` ${t.name}`:"")}(t,{includeName:e})).join(e?", ":","):""}function cp(t,{strict:e=!0}={}){return!!t&&("string"==typeof t&&(e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")))}function up(t){return cp(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}const dp="2.38.4";let lp=({docsBaseUrl:t,docsPath:e="",docsSlug:n})=>e?`${t??"https://viem.sh"}${e}${n?`#${n}`:""}`:void 0,fp=`viem@${dp}`,hp=class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath,i=lp?.({...n,docsPath:a});super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...fp?[`Version: ${fp}`]:[]].join("\n"),n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=dp}walk(t){return pp(this,t)}};function pp(t,e){return e?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?pp(t.cause,e):e?null:t}class mp extends hp{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class yp extends hp{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class gp extends hp{constructor({data:t,params:e,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${op(e,{includeName:!0})})`,`Data: ${t} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=e,this.size=n}}class bp extends hp{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class vp extends hp{constructor({expectedLength:t,givenLength:e,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${t}`,`Given length: ${e}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class wp extends hp{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${up(e)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class xp extends hp{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${e}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class kp extends hp{constructor(t,{docsPath:e}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:e,name:"AbiErrorInputsNotFoundError"})}}class Ap extends hp{constructor(t,{docsPath:e}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:e,name:"AbiErrorNotFoundError"})}}class Ip extends hp{constructor(t,{docsPath:e}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Ep extends hp{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class Pp extends hp{constructor(t,{docsPath:e}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiEventSignatureNotFoundError"})}}class Sp extends hp{constructor(t,{docsPath:e}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:e,name:"AbiEventNotFoundError"})}}class _p extends hp{constructor(t,{docsPath:e}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e,name:"AbiFunctionNotFoundError"})}}class Op extends hp{constructor(t,{docsPath:e}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e,name:"AbiFunctionOutputsNotFoundError"})}}class Tp extends hp{constructor(t,{docsPath:e}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiFunctionSignatureNotFoundError"})}}class Bp extends hp{constructor(t,e){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${sp(t.abiItem)}\`, and`,`\`${e.type}\` in \`${sp(e.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let Mp=class extends hp{constructor({expectedSize:t,givenSize:e}){super(`Expected bytes${t}, got bytes${e}.`,{name:"BytesSizeMismatchError"})}};class Cp extends hp{constructor({abiItem:t,data:e,params:n,size:r}){super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${op(n,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=e,this.params=n,this.size=r}}class Np extends hp{constructor({abiItem:t,param:e}){super([`Expected a topic for indexed event parameter${e.name?` "${e.name}"`:""} on event "${sp(t,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class jp extends hp{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e,name:"InvalidAbiEncodingType"})}}class Rp extends hp{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e,name:"InvalidAbiDecodingType"})}}let Up=class extends hp{constructor(t){super([`Value "${t}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}};class Lp extends hp{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class zp extends hp{constructor(t){super(`Type "${t}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}class Fp extends hp{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}class Dp extends hp{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class qp extends hp{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`,{name:"SizeExceedsPaddingSizeError"})}}class Gp extends hp{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${e} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}function Kp(t,{dir:e,size:n=32}={}){return"string"==typeof t?Vp(t,{dir:e,size:n}):function(t,{dir:e,size:n=32}={}){if(null===n)return t;if(t.length>n)throw new qp({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let a=0;a<n;a++){const i="right"===e;r[i?a:n-a-1]=t[i?a:t.length-a-1]}return r}(t,{dir:e,size:n})}function Vp(t,{dir:e,size:n=32}={}){if(null===n)return t;const r=t.replace("0x","");if(r.length>2*n)throw new qp({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r["right"===e?"padEnd":"padStart"](2*n,"0")}`}class Zp extends hp{constructor({max:t,min:e,signed:n,size:r,value:a}){super(`Number "${a}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${e} to ${t})`:`(above ${e})`}`,{name:"IntegerOutOfRangeError"})}}class Hp extends hp{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class Wp extends hp{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class Jp extends hp{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function Yp(t,{dir:e="left"}={}){let n="string"==typeof t?t.replace("0x",""):t,r=0;for(let t=0;t<n.length-1&&"0"===n["left"===e?t:n.length-t-1].toString();t++)r++;return n="left"===e?n.slice(r):n.slice(0,n.length-r),"string"==typeof t?(1===n.length&&"right"===e&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}function $p(t,{size:e}){if(up(t)>e)throw new Jp({givenSize:up(t),maxSize:e})}function Qp(t,e={}){const{signed:n}=e;e.size&&$p(t,{size:e.size});const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2;return r<=(1n<<8n*BigInt(a)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function Xp(t,e={}){return Number(Qp(t,e))}function tm(t,e={}){let n=fm(t);return e.size&&($p(n,{size:e.size}),n=Yp(n,{dir:"right"})),(new TextDecoder).decode(n)}const em=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function nm(t,e={}){return"number"==typeof t||"bigint"==typeof t?im(t,e):"string"==typeof t?om(t,e):"boolean"==typeof t?rm(t,e):am(t,e)}function rm(t,e={}){const n=`0x${Number(t)}`;return"number"==typeof e.size?($p(n,{size:e.size}),Kp(n,{size:e.size})):n}function am(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=em[t[e]];const r=`0x${n}`;return"number"==typeof e.size?($p(r,{size:e.size}),Kp(r,{dir:"right",size:e.size})):r}function im(t,e={}){const{signed:n,size:r}=e,a=BigInt(t);let i;r?i=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof t&&(i=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof i&&n?-i-1n:0;if(i&&a>i||a<s){const e="bigint"==typeof t?"n":"";throw new Zp({max:i?`${i}${e}`:void 0,min:`${s}${e}`,signed:n,size:r,value:`${t}${e}`})}const o=`0x${(n&&a<0?(1n<<BigInt(8*r))+BigInt(a):a).toString(16)}`;return r?Kp(o,{size:r}):o}const sm=new TextEncoder;function om(t,e={}){return am(sm.encode(t),e)}const cm=new TextEncoder;function um(t,e={}){return"number"==typeof t||"bigint"==typeof t?function(t,e){const n=im(t,e);return fm(n)}(t,e):"boolean"==typeof t?function(t,e={}){const n=new Uint8Array(1);if(n[0]=Number(t),"number"==typeof e.size)return $p(n,{size:e.size}),Kp(n,{size:e.size});return n}(t,e):cp(t)?fm(t,e):hm(t,e)}const dm={zero:48,nine:57,A:65,F:70,a:97,f:102};function lm(t){return t>=dm.zero&&t<=dm.nine?t-dm.zero:t>=dm.A&&t<=dm.F?t-(dm.A-10):t>=dm.a&&t<=dm.f?t-(dm.a-10):void 0}function fm(t,e={}){let n=t;e.size&&($p(n,{size:e.size}),n=Kp(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const a=r.length/2,i=new Uint8Array(a);for(let t=0,e=0;t<a;t++){const n=lm(r.charCodeAt(e++)),a=lm(r.charCodeAt(e++));if(void 0===n||void 0===a)throw new hp(`Invalid byte sequence ("${r[e-2]}${r[e-1]}" in "${r}").`);i[t]=16*n+a}return i}function hm(t,e={}){const n=cm.encode(t);return"number"==typeof e.size?($p(n,{size:e.size}),Kp(n,{dir:"right",size:e.size})):n}function pm(t,e){const n=e||"hex",r=pf(cp(t,{strict:!1})?um(t):t);return"bytes"===n?r:nm(r)}function mm(t){return pm(um(t))}const ym=t=>{var e;return function(t){let e=!0,n="",r=0,a="",i=!1;for(let s=0;s<t.length;s++){const o=t[s];if(["(",")",","].includes(o)&&(e=!0),"("===o&&r++,")"===o&&r--,e)if(0!==r)" "!==o?(a+=o,n+=o):","!==t[s-1]&&","!==n&&",("!==n&&(n="",e=!1);else if(" "===o&&["event","function",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}}if(!i)throw new hp("Unable to normalize signature.");return a}("string"==typeof t?t:"function"===(e=t).type?`function ${e.name}(${Ah(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${Ah(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${Ah(e.inputs)})`:"error"===e.type?`error ${e.name}(${Ah(e.inputs)})`:"constructor"===e.type?`constructor(${Ah(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback() external"+("payable"===e.stateMutability?" payable":""):"receive() external payable")};function gm(t){return mm(ym(t))}const bm=gm;class vm extends hp{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class wm extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}}const xm=new wm(8192);function km(t,e){if(xm.has(`${t}.${e}`))return xm.get(`${t}.${e}`);const n=t.substring(2).toLowerCase(),r=pm(hm(n),"bytes"),a=n.split("");for(let t=0;t<40;t+=2)r[t>>1]>>4>=8&&a[t]&&(a[t]=a[t].toUpperCase()),(15&r[t>>1])>=8&&a[t+1]&&(a[t+1]=a[t+1].toUpperCase());const i=`0x${a.join("")}`;return xm.set(`${t}.${e}`,i),i}function Am(t,e){if(!Pm(t,{strict:!1}))throw new vm({address:t});return km(t,e)}const Im=/^0x[a-fA-F0-9]{40}$/,Em=new wm(8192);function Pm(t,e){const{strict:n=!0}=e??{},r=`${t}.${n}`;if(Em.has(r))return Em.get(r);const a=!(!Im.test(t)||t.toLowerCase()!==t&&n&&km(t)!==t);return Em.set(r,a),a}function Sm(t){return"string"==typeof t[0]?_m(t):function(t){let e=0;for(const n of t)e+=n.length;const n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(t)}function _m(t){return`0x${t.reduce((t,e)=>t+e.replace("0x",""),"")}`}function Om(t,e,n,{strict:r}={}){return cp(t,{strict:!1})?Cm(t,e,n,{strict:r}):Mm(t,e,n,{strict:r})}function Tm(t,e){if("number"==typeof e&&e>0&&e>up(t)-1)throw new Dp({offset:e,position:"start",size:up(t)})}function Bm(t,e,n){if("number"==typeof e&&"number"==typeof n&&up(t)!==n-e)throw new Dp({offset:n,position:"end",size:up(t)})}function Mm(t,e,n,{strict:r}={}){Tm(t,e);const a=t.slice(e,n);return r&&Bm(a,e,n),a}function Cm(t,e,n,{strict:r}={}){Tm(t,e);const a=`0x${t.replace("0x","").slice(2*(e??0),2*(n??t.length))}`;return r&&Bm(a,e,n),a}const Nm=/^(.*)\[([0-9]*)\]$/,jm=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Rm=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Um(t,e){if(t.length!==e.length)throw new xp({expectedLength:t.length,givenLength:e.length});const n=function({params:t,values:e}){const n=[];for(let r=0;r<t.length;r++)n.push(Lm({param:t[r],value:e[r]}));return n}({params:t,values:e}),r=zm(n);return 0===r.length?"0x":r}function Lm({param:t,value:e}){const n=Fm(t.type);if(n){const[r,a]=n;return function(t,{length:e,param:n}){const r=null===e;if(!Array.isArray(t))throw new Up(t);if(!r&&t.length!==e)throw new vp({expectedLength:e,givenLength:t.length,type:`${n.type}[${e}]`});let a=!1;const i=[];for(let e=0;e<t.length;e++){const r=Lm({param:n,value:t[e]});r.dynamic&&(a=!0),i.push(r)}if(r||a){const t=zm(i);if(r){const e=im(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?Sm([e,t]):e}}if(a)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:Sm(i.map(({encoded:t})=>t))}}(e,{length:r,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:e}){let n=!1;const r=[];for(let a=0;a<e.components.length;a++){const i=e.components[a],s=Lm({param:i,value:t[Array.isArray(t)?a:i.name]});r.push(s),s.dynamic&&(n=!0)}return{dynamic:n,encoded:n?zm(r):Sm(r.map(({encoded:t})=>t))}}(e,{param:t});if("address"===t.type)return function(t){if(!Pm(t))throw new vm({address:t});return{dynamic:!1,encoded:Vp(t.toLowerCase())}}(e);if("bool"===t.type)return function(t){if("boolean"!=typeof t)throw new hp(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Vp(rm(t))}}(e);if(t.type.startsWith("uint")||t.type.startsWith("int")){const n=t.type.startsWith("int"),[,,r="256"]=Rm.exec(t.type)??[];return function(t,{signed:e,size:n=256}){if("number"==typeof n){const r=2n**(BigInt(n)-(e?1n:0n))-1n,a=e?-r-1n:0n;if(t>r||t<a)throw new Zp({max:r.toString(),min:a.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:im(t,{size:32,signed:e})}}(e,{signed:n,size:Number(r)})}if(t.type.startsWith("bytes"))return function(t,{param:e}){const[,n]=e.type.split("bytes"),r=up(t);if(!n){let e=t;return r%32!=0&&(e=Vp(e,{dir:"right",size:32*Math.ceil((t.length-2)/2/32)})),{dynamic:!0,encoded:Sm([Vp(im(r,{size:32})),e])}}if(r!==Number.parseInt(n,10))throw new wp({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:Vp(t,{dir:"right"})}}(e,{param:t});if("string"===t.type)return function(t){const e=om(t),n=Math.ceil(up(e)/32),r=[];for(let t=0;t<n;t++)r.push(Vp(Om(e,32*t,32*(t+1)),{dir:"right"}));return{dynamic:!0,encoded:Sm([Vp(im(up(e),{size:32})),...r])}}(e);throw new jp(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function zm(t){let e=0;for(let n=0;n<t.length;n++){const{dynamic:r,encoded:a}=t[n];e+=r?32:up(a)}const n=[],r=[];let a=0;for(let i=0;i<t.length;i++){const{dynamic:s,encoded:o}=t[i];s?(n.push(im(e+a,{size:32})),r.push(o),a+=up(o)):n.push(o)}return Sm([...n,...r])}function Fm(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const Dm=t=>Om(gm(t),0,4);function qm(t){const{abi:e,args:n=[],name:r}=t,a=cp(r,{strict:!1}),i=e.filter(t=>a?"function"===t.type?Dm(t)===r:"event"===t.type&&bm(t)===r:"name"in t&&t.name===r);if(0===i.length)return;if(1===i.length)return i[0];let s;for(const t of i){if(!("inputs"in t))continue;if(!n||0===n.length){if(!t.inputs||0===t.inputs.length)return t;continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==n.length)continue;const e=n.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&Gm(e,r)});if(e){if(s&&"inputs"in s&&s.inputs){const e=Km(t.inputs,s.inputs,n);if(e)throw new Bp({abiItem:t,type:e[0]},{abiItem:s,type:e[1]})}s=t}}return s||i[0]}function Gm(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Pm(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in e?Object.values(e.components).every((e,n)=>Gm(Object.values(t)[n],e)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(t)&&t.every(t=>Gm(t,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function Km(t,e,n){for(const r in t){const a=t[r],i=e[r];if("tuple"===a.type&&"tuple"===i.type&&"components"in a&&"components"in i)return Km(a.components,i.components,n[r]);const s=[a.type,i.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&Pm(n[r],{strict:!1}))())return s}}const Vm="/docs/contract/encodeEventTopics";function Zm(t){const{abi:e,eventName:n,args:r}=t;let a=e[0];if(n){const t=qm({abi:e,name:n});if(!t)throw new Sp(n,{docsPath:Vm});a=t}if("event"!==a.type)throw new Sp(void 0,{docsPath:Vm});const i=sp(a),s=bm(i);let o=[];if(r&&"inputs"in a){const t=a.inputs?.filter(t=>"indexed"in t&&t.indexed),e=Array.isArray(r)?r:Object.values(r).length>0?t?.map(t=>r[t.name])??[]:[];e.length>0&&(o=t?.map((t,n)=>Array.isArray(e[n])?e[n].map((r,a)=>Hm({param:t,value:e[n][a]})):void 0!==e[n]&&null!==e[n]?Hm({param:t,value:e[n]}):null)??[])}return[s,...o]}function Hm({param:t,value:e}){if("string"===t.type||"bytes"===t.type)return pm(um(e));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new Fp(t.type);return Um([t],[e])}function Wm(t,{method:e}){const n={};return"fallback"===t.transport.type&&t.transport.onResponse?.(({method:t,response:r,status:a,transport:i})=>{"success"===a&&e===t&&(n[r]=i.request)}),e=>n[e]||t.request}async function Jm(t,e){const{address:n,abi:r,args:a,eventName:i,fromBlock:s,strict:o,toBlock:c}=e,u=Wm(t,{method:"eth_newFilter"}),d=i?Zm({abi:r,args:a,eventName:i}):void 0,l=await t.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof s?im(s):s,toBlock:"bigint"==typeof c?im(c):c,topics:d}]});return{abi:r,args:a,eventName:i,id:l,request:u(l),strict:Boolean(o),type:"event"}}function Ym(t){return"string"==typeof t?{address:t,type:"json-rpc"}:t}const $m="/docs/contract/encodeFunctionData";function Qm(t){const{args:e}=t,{abi:n,functionName:r}=1===t.abi.length&&t.functionName?.startsWith("0x")?t:function(t){const{abi:e,args:n,functionName:r}=t;let a=e[0];if(r){const t=qm({abi:e,args:n,name:r});if(!t)throw new _p(r,{docsPath:$m});a=t}if("function"!==a.type)throw new _p(void 0,{docsPath:$m});return{abi:[a],functionName:Dm(sp(a))}}(t),a=n[0];return _m([r,("inputs"in a&&a.inputs?Um(a.inputs,e??[]):void 0)??"0x"])}const Xm={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},ty={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},ey={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};let ny=class extends hp{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},ry=class extends hp{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},ay=class extends hp{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const iy={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ay({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new ry({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new ny({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new ny({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function sy(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(iy);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}function oy(t,e={}){void 0!==e.size&&$p(t,{size:e.size});return Qp(am(t,e),e)}function cy(t,e={}){let n=t;if(void 0!==e.size&&($p(n,{size:e.size}),n=Yp(n)),n.length>1||n[0]>1)throw new Hp(n);return Boolean(n[0])}function uy(t,e={}){void 0!==e.size&&$p(t,{size:e.size});return Xp(am(t,e),e)}function dy(t,e){const n="string"==typeof e?fm(e):e,r=sy(n);if(0===up(n)&&t.length>0)throw new bp;if(up(e)&&up(e)<32)throw new gp({data:"string"==typeof e?e:am(e),params:t,size:up(e)});let a=0;const i=[];for(let e=0;e<t.length;++e){const n=t[e];r.setPosition(a);const[s,o]=ly(r,n,{staticPosition:0});a+=o,i.push(s)}return i}function ly(t,e,{staticPosition:n}){const r=Fm(e.type);if(r){const[a,i]=r;return function(t,e,{length:n,staticPosition:r}){if(!n){const n=r+uy(t.readBytes(hy)),a=n+fy;t.setPosition(n);const i=uy(t.readBytes(fy)),s=py(e);let o=0;const c=[];for(let n=0;n<i;++n){t.setPosition(a+(s?32*n:o));const[r,i]=ly(t,e,{staticPosition:a});o+=i,c.push(r)}return t.setPosition(r+32),[c,32]}if(py(e)){const a=r+uy(t.readBytes(hy)),i=[];for(let r=0;r<n;++r){t.setPosition(a+32*r);const[n]=ly(t,e,{staticPosition:a});i.push(n)}return t.setPosition(r+32),[i,32]}let a=0;const i=[];for(let s=0;s<n;++s){const[n,s]=ly(t,e,{staticPosition:r+a});a+=s,i.push(n)}return[i,a]}(t,{...e,type:i},{length:a,staticPosition:n})}if("tuple"===e.type)return function(t,e,{staticPosition:n}){const r=0===e.components.length||e.components.some(({name:t})=>!t),a=r?[]:{};let i=0;if(py(e)){const s=n+uy(t.readBytes(hy));for(let n=0;n<e.components.length;++n){const o=e.components[n];t.setPosition(s+i);const[c,u]=ly(t,o,{staticPosition:s});i+=u,a[r?n:o?.name]=c}return t.setPosition(n+32),[a,32]}for(let s=0;s<e.components.length;++s){const o=e.components[s],[c,u]=ly(t,o,{staticPosition:n});a[r?s:o?.name]=c,i+=u}return[a,i]}(t,e,{staticPosition:n});if("address"===e.type)return function(t){const e=t.readBytes(32);return[km(am(Mm(e,-20))),32]}(t);if("bool"===e.type)return function(t){return[cy(t.readBytes(32),{size:32}),32]}(t);if(e.type.startsWith("bytes"))return function(t,e,{staticPosition:n}){const[r,a]=e.type.split("bytes");if(!a){const e=uy(t.readBytes(32));t.setPosition(n+e);const r=uy(t.readBytes(32));if(0===r)return t.setPosition(n+32),["0x",32];const a=t.readBytes(r);return t.setPosition(n+32),[am(a),32]}const i=am(t.readBytes(Number.parseInt(a,10),32));return[i,32]}(t,e,{staticPosition:n});if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(t,e){const n=e.type.startsWith("int"),r=Number.parseInt(e.type.split("int")[1]||"256",10),a=t.readBytes(32);return[r>48?oy(a,{signed:n}):uy(a,{signed:n}),32]}(t,e);if("string"===e.type)return function(t,{staticPosition:e}){const n=uy(t.readBytes(32)),r=e+n;t.setPosition(r);const a=uy(t.readBytes(32));if(0===a)return t.setPosition(e+32),["",32];const i=t.readBytes(a,32),s=function(t,e={}){let n=t;return void 0!==e.size&&($p(n,{size:e.size}),n=Yp(n,{dir:"right"})),(new TextDecoder).decode(n)}(Yp(i));return t.setPosition(e+32),[s,32]}(t,{staticPosition:n});throw new Rp(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const fy=32,hy=32;function py(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(py);const n=Fm(t.type);return!(!n||!py({...t,type:n[1]}))}function my(t){const{abi:e,data:n}=t,r=Om(n,0,4);if("0x"===r)throw new bp;const a=[...e||[],ty,ey].find(t=>"error"===t.type&&r===Dm(sp(t)));if(!a)throw new Ip(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:a,args:"inputs"in a&&a.inputs&&a.inputs.length>0?dy(a.inputs,Om(n,4)):void 0,errorName:a.name}}const yy=(t,e,n)=>JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString():e,n);function gy({abiItem:t,args:e,includeFunctionName:n=!0,includeName:r=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${n?t.name:""}(${t.inputs.map((t,n)=>`${r&&t.name?`${t.name}: `:""}${"object"==typeof e[n]?yy(e[n]):e[n]}`).join(", ")})`}const by={gwei:9,wei:18},vy={ether:-9,wei:9};function wy(t,e){let n=t.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(e,"0");let[a,i]=[n.slice(0,n.length-e),n.slice(n.length-e)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${i?`.${i}`:""}`}function xy(t,e="wei"){return wy(t,by[e])}function ky(t,e="wei"){return wy(t,vy[e])}class Ay extends hp{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class Iy extends hp{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function Ey(t){return t.reduce((t,{slot:e,value:n})=>`${t} ${e}: ${n}\n`,"")}function Py(t){const e=Object.entries(t).map(([t,e])=>void 0===e||!1===e?null:[t,e]).filter(Boolean),n=e.reduce((t,[e])=>Math.max(t,e.length),0);return e.map(([t,e])=>` ${`${t}:`.padEnd(n+1)} ${e}`).join("\n")}class Sy extends hp{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}class _y extends hp{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Oy extends hp{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Py(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Ty extends hp{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class By extends hp{constructor({blockHash:t,blockNumber:e,blockTag:n,hash:r,index:a}){let i="Transaction";n&&void 0!==a&&(i=`Transaction at block time "${n}" at index "${a}"`),t&&void 0!==a&&(i=`Transaction at block hash "${t}" at index "${a}"`),e&&void 0!==a&&(i=`Transaction at block number "${e}" at index "${a}"`),r&&(i=`Transaction with hash "${r}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class My extends hp{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Cy extends hp{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class Ny extends hp{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}class jy extends hp{constructor(t,{account:e,docsPath:n,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:d,value:l,stateOverride:f}){const h=e?Ym(e):void 0;let p=Py({from:h?.address,to:d,value:void 0!==l&&`${xy(l)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:i,gasPrice:void 0!==s&&`${ky(s)} gwei`,maxFeePerGas:void 0!==o&&`${ky(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ky(c)} gwei`,nonce:u});f&&(p+=`\n${function(t){return t.reduce((t,{address:e,...n})=>{let r=`${t} ${e}:\n`;return n.nonce&&(r+=` nonce: ${n.nonce}\n`),n.balance&&(r+=` balance: ${n.balance}\n`),n.code&&(r+=` code: ${n.code}\n`),n.state&&(r+=" state:\n",r+=Ey(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=Ey(n.stateDiff)),r}," State Override:\n").slice(0,-1)}(f)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Ry extends hp{constructor(t,{abi:e,args:n,contractAddress:r,docsPath:a,functionName:i,sender:s}){const o=qm({abi:e,args:n,name:i}),c=o?gy({abiItem:o,args:n,includeFunctionName:!1,includeName:!1}):void 0,u=Py({address:r&&r,function:o?sp(o,{includeName:!0}):void 0,args:c&&"()"!==c&&`${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${c}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],u&&"Contract Call:",u].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=e,this.args=n,this.cause=t,this.contractAddress=r,this.functionName=i,this.sender=s}}class Uy extends hp{constructor({abi:t,data:e,functionName:n,message:r}){let a,i,s,o,c;if(e&&"0x"!==e)try{i=my({abi:t,data:e});const{abiItem:n,errorName:r,args:a}=i;if("Error"===r)o=a[0];else if("Panic"===r){const[t]=a;o=Xm[t]}else{const t=n?sp(n,{includeName:!0}):void 0,e=n&&a?gy({abiItem:n,args:a,includeFunctionName:!1,includeName:!1}):void 0;s=[t?`Error: ${t}`:"",e&&"()"!==e?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${e}`:""]}}catch(t){a=t}else r&&(o=r);a instanceof Ip&&(c=a.signature,s=[`Unable to decode signature "${c}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${c}.`]),super(o&&"execution reverted"!==o||c?[`The contract function "${n}" reverted with the following ${c?"signature":"reason"}:`,o||c].join("\n"):`The contract function "${n}" reverted.`,{cause:a,metaMessages:s,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i,this.raw=e,this.reason=o,this.signature=c}}class Ly extends hp{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class zy extends hp{constructor({factory:t}){super("Deployment for counterfactual contract call failed"+(t?` for factory "${t}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class Fy extends hp{constructor({data:t,message:e}){super(e||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}class Dy extends hp{constructor({body:t,cause:e,details:n,headers:r,status:a,url:i}){super("HTTP request failed.",{cause:e,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${i}`,t&&`Request body: ${yy(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=r,this.status=a,this.url=i}}class qy extends hp{constructor({body:t,error:e,url:n}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${n}`,`Request body: ${yy(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data}}class Gy extends hp{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${e}`,`Request body: ${yy(t)}`],name:"TimeoutError"})}}class Ky extends hp{constructor(t,{code:e,docsPath:n,metaMessages:r,name:a,shortMessage:i}){super(i,{cause:t,docsPath:n,metaMessages:r||t?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof qy?t.code:e??-1}}class Vy extends Ky{constructor(t,e){super(t,e),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e.data}}class Zy extends Ky{constructor(t){super(t,{code:Zy.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Zy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Hy extends Ky{constructor(t){super(t,{code:Hy.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Hy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Wy extends Ky{constructor(t,{method:e}={}){super(t,{code:Wy.code,name:"MethodNotFoundRpcError",shortMessage:`The method${e?` "${e}"`:""} does not exist / is not available.`})}}Object.defineProperty(Wy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Jy extends Ky{constructor(t){super(t,{code:Jy.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(Jy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Yy extends Ky{constructor(t){super(t,{code:Yy.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Yy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class $y extends Ky{constructor(t){super(t,{code:$y.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty($y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Qy extends Ky{constructor(t){super(t,{code:Qy.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Qy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Xy extends Ky{constructor(t){super(t,{code:Xy.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Xy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class tg extends Ky{constructor(t){super(t,{code:tg.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(tg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class eg extends Ky{constructor(t,{method:e}={}){super(t,{code:eg.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${e?` "${e}"`:""} is not supported.`})}}Object.defineProperty(eg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class ng extends Ky{constructor(t){super(t,{code:ng.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(ng,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class rg extends Ky{constructor(t){super(t,{code:rg.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(rg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class ag extends Vy{constructor(t){super(t,{code:ag.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(ag,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class ig extends Vy{constructor(t){super(t,{code:ig.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(ig,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class sg extends Vy{constructor(t,{method:e}={}){super(t,{code:sg.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${e?` " ${e}"`:""}.`})}}Object.defineProperty(sg,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class og extends Vy{constructor(t){super(t,{code:og.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(og,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class cg extends Vy{constructor(t){super(t,{code:cg.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(cg,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class ug extends Vy{constructor(t){super(t,{code:ug.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(ug,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class dg extends Vy{constructor(t){super(t,{code:dg.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(dg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class lg extends Vy{constructor(t){super(t,{code:lg.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(lg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class fg extends Vy{constructor(t){super(t,{code:fg.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(fg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class hg extends Vy{constructor(t){super(t,{code:hg.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(hg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class pg extends Vy{constructor(t){super(t,{code:pg.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(pg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class mg extends Vy{constructor(t){super(t,{code:mg.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(mg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class yg extends Vy{constructor(t){super(t,{code:yg.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(yg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class gg extends Ky{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const bg=3;function vg(t,{abi:e,address:n,args:r,docsPath:a,functionName:i,sender:s}){const o=t instanceof Fy?t:t instanceof hp?t.walk(t=>"data"in t)||t.walk():{},{code:c,data:u,details:d,message:l,shortMessage:f}=o,h=t instanceof bp?new Ly({functionName:i}):[bg,Yy.code].includes(c)&&(u||d||l||f)?new Uy({abi:e,data:"object"==typeof u?u.data:u,functionName:i,message:o instanceof qy?d:f??l}):t;return new Ry(h,{abi:e,args:r,contractAddress:n,docsPath:a,functionName:i,sender:s})}function wg(t){if(0===t||1===t)return t;if(27===t)return 0;if(28===t)return 1;throw new Error("Invalid yParityOrV value")}async function xg({hash:t,signature:e}){return function(t){return km(`0x${pm(`0x${t.substring(4)}`).substring(26)}`)}(await async function({hash:t,signature:e}){const n=cp(t)?t:nm(t),{secp256k1:r}=await Promise.resolve().then(function(){return lc}),a=(()=>{if("object"==typeof e&&"r"in e&&"s"in e){const{r:t,s:n,v:a,yParity:i}=e,s=wg(Number(i??a));return new r.Signature(Qp(t),Qp(n)).addRecoveryBit(s)}const t=cp(e)?e:nm(e);if(65!==up(t))throw new Error("invalid signature length");const n=wg(Xp(`0x${t.slice(130)}`));return r.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(n)})();return`0x${a.recoverPublicKey(n.substring(2)).toHex(!1)}`}({hash:t,signature:e}))}function kg(t,e="hex"){const n=Ag(t),r=sy(new Uint8Array(n.length));return n.encode(r),"hex"===e?am(r.bytes):r.bytes}function Ag(t){return Array.isArray(t)?function(t){const e=t.reduce((t,e)=>t+e.length,0),n=Ig(e);return{length:e<=55?1+e:1+n+e,encode(r){e<=55?r.pushByte(192+e):(r.pushByte(247+n),1===n?r.pushUint8(e):2===n?r.pushUint16(e):3===n?r.pushUint24(e):r.pushUint32(e));for(const{encode:e}of t)e(r)}}}(t.map(t=>Ag(t))):function(t){const e="string"==typeof t?fm(t):t,n=Ig(e.length),r=1===e.length&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length;return{length:r,encode(t){1===e.length&&e[0]<128?t.pushBytes(e):e.length<=55?(t.pushByte(128+e.length),t.pushBytes(e)):(t.pushByte(183+n),1===n?t.pushUint8(e.length):2===n?t.pushUint16(e.length):3===n?t.pushUint24(e.length):t.pushUint32(e.length),t.pushBytes(e))}}}(t)}function Ig(t){if(t<256)return 1;if(t<65536)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new hp("Length is too large.")}function Eg(t){const{chainId:e,nonce:n,to:r}=t,a=t.contractAddress??t.address,i=pm(_m(["0x05",kg([e?im(e):"0x",a,n?im(n):"0x"])]));return"bytes"===r?fm(i):i}async function Pg(t){const{authorization:e,signature:n}=t;return xg({hash:Eg(e),signature:n??e})}class Sg extends hp{constructor(t,{account:e,docsPath:n,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:d,value:l}){const f=Py({from:e?.address,to:d,value:void 0!==l&&`${xy(l)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:i,gasPrice:void 0!==s&&`${ky(s)} gwei`,maxFeePerGas:void 0!==o&&`${ky(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ky(c)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}let _g=class extends hp{constructor({cause:t,message:e}={}){const n=e?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}};Object.defineProperty(_g,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(_g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Og extends hp{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${ky(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Og,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Tg extends hp{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${ky(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Tg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Bg extends hp{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Bg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Mg extends hp{constructor({cause:t,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Mg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Cg extends hp{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Cg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ng extends hp{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Ng,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class jg extends hp{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(jg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Rg extends hp{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Rg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Ug extends hp{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Ug,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Lg extends hp{constructor({cause:t,maxPriorityFeePerGas:e,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${ky(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${ky(n)} gwei`:""}).`].join("\n"),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Lg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class zg extends hp{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Fg(t,e){const n=(t.details||"").toLowerCase(),r=t instanceof hp?t.walk(t=>t?.code===_g.code):t;return r instanceof hp?new _g({cause:t,message:r.details}):_g.nodeMessage.test(n)?new _g({cause:t,message:t.details}):Og.nodeMessage.test(n)?new Og({cause:t,maxFeePerGas:e?.maxFeePerGas}):Tg.nodeMessage.test(n)?new Tg({cause:t,maxFeePerGas:e?.maxFeePerGas}):Bg.nodeMessage.test(n)?new Bg({cause:t,nonce:e?.nonce}):Mg.nodeMessage.test(n)?new Mg({cause:t,nonce:e?.nonce}):Cg.nodeMessage.test(n)?new Cg({cause:t,nonce:e?.nonce}):Ng.nodeMessage.test(n)?new Ng({cause:t}):jg.nodeMessage.test(n)?new jg({cause:t,gas:e?.gas}):Rg.nodeMessage.test(n)?new Rg({cause:t,gas:e?.gas}):Ug.nodeMessage.test(n)?new Ug({cause:t}):Lg.nodeMessage.test(n)?new Lg({cause:t,maxFeePerGas:e?.maxFeePerGas,maxPriorityFeePerGas:e?.maxPriorityFeePerGas}):new zg({cause:t})}function Dg(t,{format:e}){if(!e)return{};const n={};return function e(r){const a=Object.keys(r);for(const i of a)i in t&&(n[i]=t[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&e(r[i])}(e(t||{})),n}function qg(t,e){return({exclude:n,format:r})=>({exclude:n,format:(t,a)=>{const i=e(t,a);if(n)for(const t of n)delete i[t];return{...i,...r(t,a)}},type:t})}const Gg={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Kg(t,e){const n={};return void 0!==t.authorizationList&&(n.authorizationList=t.authorizationList.map(t=>({address:t.address,r:t.r?im(BigInt(t.r)):t.r,s:t.s?im(BigInt(t.s)):t.s,chainId:im(t.chainId),nonce:im(t.nonce),...void 0!==t.yParity?{yParity:im(t.yParity)}:{},...void 0!==t.v&&void 0===t.yParity?{v:im(t.v)}:{}}))),void 0!==t.accessList&&(n.accessList=t.accessList),void 0!==t.blobVersionedHashes&&(n.blobVersionedHashes=t.blobVersionedHashes),void 0!==t.blobs&&("string"!=typeof t.blobs[0]?n.blobs=t.blobs.map(t=>am(t)):n.blobs=t.blobs),void 0!==t.data&&(n.data=t.data),t.account&&(n.from=t.account.address),void 0!==t.from&&(n.from=t.from),void 0!==t.gas&&(n.gas=im(t.gas)),void 0!==t.gasPrice&&(n.gasPrice=im(t.gasPrice)),void 0!==t.maxFeePerBlobGas&&(n.maxFeePerBlobGas=im(t.maxFeePerBlobGas)),void 0!==t.maxFeePerGas&&(n.maxFeePerGas=im(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=im(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(n.nonce=im(t.nonce)),void 0!==t.to&&(n.to=t.to),void 0!==t.type&&(n.type=Gg[t.type]),void 0!==t.value&&(n.value=im(t.value)),n}function Vg(t){if(t&&0!==t.length)return t.reduce((t,{slot:e,value:n})=>{if(66!==e.length)throw new Gp({size:e.length,targetSize:66,type:"hex"});if(66!==n.length)throw new Gp({size:n.length,targetSize:66,type:"hex"});return t[e]=n,t},{})}function Zg(t){const{balance:e,nonce:n,state:r,stateDiff:a,code:i}=t,s={};if(void 0!==i&&(s.code=i),void 0!==e&&(s.balance=im(e)),void 0!==n&&(s.nonce=im(n)),void 0!==r&&(s.state=Vg(r)),void 0!==a){if(s.state)throw new Iy;s.stateDiff=Vg(a)}return s}function Hg(t){if(!t)return;const e={};for(const{address:n,...r}of t){if(!Pm(n,{strict:!1}))throw new vm({address:n});if(e[n])throw new Ay({address:n});e[n]=Zg(r)}return e}const Wg=2n**256n-1n;function Jg(t){const{account:e,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:a,to:i}=t,s=e?Ym(e):void 0;if(s&&!Pm(s.address))throw new vm({address:s.address});if(i&&!Pm(i))throw new vm({address:i});if(void 0!==n&&(void 0!==r||void 0!==a))throw new Sy;if(r&&r>Wg)throw new Og({maxFeePerGas:r});if(a&&r&&a>r)throw new Lg({maxFeePerGas:r,maxPriorityFeePerGas:a})}class Yg extends hp{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class $g extends hp{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Qg extends hp{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${ky(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Xg extends hp{constructor({blockHash:t,blockNumber:e}){let n="Block";t&&(n=`Block at hash "${t}"`),e&&(n=`Block at number "${e}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}const tb={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function eb(t,e){const n={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?Xp(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?Xp(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?tb[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return t.authorizationList&&(n.authorizationList=t.authorizationList.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))),n.yParity=(()=>{if(t.yParity)return Number(t.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const nb=qg("transaction",eb);function rb(t,e){const n=(t.transactions??[]).map(t=>"string"==typeof t?t:eb(t));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:n,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}const ab=qg("block",rb);async function ib(t,{blockHash:e,blockNumber:n,blockTag:r=t.experimental_blockTag??"latest",includeTransactions:a}={}){const i=a??!1,s=void 0!==n?im(n):void 0;let o=null;if(o=e?await t.request({method:"eth_getBlockByHash",params:[e,i]},{dedupe:!0}):await t.request({method:"eth_getBlockByNumber",params:[s||r,i]},{dedupe:Boolean(s)}),!o)throw new Xg({blockHash:e,blockNumber:n});return(t.chain?.formatters?.block?.format||rb)(o,"getBlock")}async function sb(t){const e=await t.request({method:"eth_gasPrice"});return BigInt(e)}async function ob(t,e){const{block:n,chain:r=t.chain,request:a}=e||{};try{const e=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if("function"==typeof e){const r=n||await ip(t,ib,"getBlock")({}),i=await e({block:r,client:t,request:a});if(null===i)throw new Error;return i}if(void 0!==e)return e;return Qp(await t.request({method:"eth_maxPriorityFeePerGas"}))}catch{const[e,r]=await Promise.all([n?Promise.resolve(n):ip(t,ib,"getBlock")({}),ip(t,sb,"getGasPrice")({})]);if("bigint"!=typeof e.baseFeePerGas)throw new $g;const a=r-e.baseFeePerGas;return a<0n?0n:a}}async function cb(t,e){return ub(t,e)}async function ub(t,e){const{block:n,chain:r=t.chain,request:a,type:i="eip1559"}=e||{},s=await(async()=>"function"==typeof r?.fees?.baseFeeMultiplier?r.fees.baseFeeMultiplier({block:n,client:t,request:a}):r?.fees?.baseFeeMultiplier??1.2)();if(s<1)throw new Yg;const o=10**(s.toString().split(".")[1]?.length??0),c=t=>t*BigInt(Math.ceil(s*o))/BigInt(o),u=n||await ip(t,ib,"getBlock")({});if("function"==typeof r?.fees?.estimateFeesPerGas){const e=await r.fees.estimateFeesPerGas({block:n,client:t,multiply:c,request:a,type:i});if(null!==e)return e}if("eip1559"===i){if("bigint"!=typeof u.baseFeePerGas)throw new $g;const e="bigint"==typeof a?.maxPriorityFeePerGas?a.maxPriorityFeePerGas:await ob(t,{block:u,chain:r,request:a}),n=c(u.baseFeePerGas);return{maxFeePerGas:a?.maxFeePerGas??n+e,maxPriorityFeePerGas:e}}return{gasPrice:a?.gasPrice??c(await ip(t,sb,"getGasPrice")({}))}}async function db(t,{address:e,blockTag:n="latest",blockNumber:r}){return Xp(await t.request({method:"eth_getTransactionCount",params:[e,"bigint"==typeof r?im(r):n]},{dedupe:Boolean(r)}))}function lb(t){const{kzg:e}=t,n=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),r="string"==typeof t.blobs[0]?t.blobs.map(t=>fm(t)):t.blobs,a=[];for(const t of r)a.push(Uint8Array.from(e.blobToKzgCommitment(t)));return"bytes"===n?a:a.map(t=>am(t))}function fb(t){const{kzg:e}=t,n=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),r="string"==typeof t.blobs[0]?t.blobs.map(t=>fm(t)):t.blobs,a="string"==typeof t.commitments[0]?t.commitments.map(t=>fm(t)):t.commitments,i=[];for(let t=0;t<r.length;t++){const n=r[t],s=a[t];i.push(Uint8Array.from(e.computeBlobKzgProof(n,s)))}return"bytes"===n?i:i.map(t=>am(t))}function hb(t){const{commitment:e,version:n=1}=t,r=t.to??("string"==typeof e?"hex":"bytes"),a=mf(cp(i=e,{strict:!1})?um(i):i);var i;return a.set([n],0),"bytes"===r?a:am(a)}function pb(t){const{commitments:e,version:n}=t,r=t.to??("string"==typeof e[0]?"hex":"bytes"),a=[];for(const t of e)a.push(hb({commitment:t,to:r,version:n}));return a}const mb=4096,yb=131072,gb=761855;class bb extends hp{constructor({maxSize:t,size:e}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${e} bytes`],name:"BlobSizeTooLargeError"})}}class vb extends hp{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class wb extends hp{constructor({hash:t,size:e}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${e}`],name:"InvalidVersionedHashSizeError"})}}class xb extends hp{constructor({hash:t,version:e}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${e}`],name:"InvalidVersionedHashVersionError"})}}function kb(t){const{data:e,kzg:n,to:r}=t,a=t.blobs??function(t){const e=t.to??("string"==typeof t.data?"hex":"bytes"),n="string"==typeof t.data?fm(t.data):t.data,r=up(n);if(!r)throw new vb;if(r>gb)throw new bb({maxSize:gb,size:r});const a=[];let i=!0,s=0;for(;i;){const t=sy(new Uint8Array(yb));let e=0;for(;e<mb;){const r=n.slice(s,s+31);if(t.pushByte(0),t.pushBytes(r),r.length<31){t.pushByte(128),i=!1;break}e++,s+=31}a.push(t)}return"bytes"===e?a.map(t=>t.bytes):a.map(t=>am(t.bytes))}({data:e,to:r}),i=t.commitments??lb({blobs:a,kzg:n,to:r}),s=t.proofs??fb({blobs:a,commitments:i,kzg:n,to:r}),o=[];for(let t=0;t<a.length;t++)o.push({blob:a[t],commitment:i[t],proof:s[t]});return o}function Ab(t){if(t.type)return t.type;if(void 0!==t.authorizationList)return"eip7702";if(void 0!==t.blobs||void 0!==t.blobVersionedHashes||void 0!==t.maxFeePerBlobGas||void 0!==t.sidecars)return"eip4844";if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)return"eip1559";if(void 0!==t.gasPrice)return void 0!==t.accessList?"eip2930":"legacy";throw new Oy({transaction:t})}async function Ib(t){return Xp(await t.request({method:"eth_chainId"},{dedupe:!0}))}const Eb=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Pb=new Map;async function Sb(t,e){const{account:n=t.account,blobs:r,chain:a,gas:i,kzg:s,nonce:o,nonceManager:c,parameters:u=Eb,type:d}=e,l=n?Ym(n):n,f={...e,...l?{from:l?.address}:{}};let h,p;async function m(){return h||(h=await ip(t,ib,"getBlock")({blockTag:"latest"}),h)}async function y(){if(p)return p;if(a)return a.id;if(void 0!==e.chainId)return e.chainId;const n=await ip(t,Ib,"getChainId")({});return p=n,p}if(u.includes("nonce")&&void 0===o&&l)if(c){const e=await y();f.nonce=await c.consume({address:l.address,chainId:e,client:t})}else f.nonce=await ip(t,db,"getTransactionCount")({address:l.address,blockTag:"pending"});if((u.includes("blobVersionedHashes")||u.includes("sidecars"))&&r&&s){const t=lb({blobs:r,kzg:s});if(u.includes("blobVersionedHashes")){const e=pb({commitments:t,to:"hex"});f.blobVersionedHashes=e}if(u.includes("sidecars")){const e=kb({blobs:r,commitments:t,proofs:fb({blobs:r,commitments:t,kzg:s}),to:"hex"});f.sidecars=e}}if(u.includes("chainId")&&(f.chainId=await y()),(u.includes("fees")||u.includes("type"))&&void 0===d)try{f.type=Ab(f)}catch{let e=Pb.get(t.uid);if(void 0===e){const n=await m();e="bigint"==typeof n?.baseFeePerGas,Pb.set(t.uid,e)}f.type=e?"eip1559":"legacy"}if(u.includes("fees"))if("legacy"!==f.type&&"eip2930"!==f.type){if(void 0===f.maxFeePerGas||void 0===f.maxPriorityFeePerGas){const n=await m(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await ub(t,{block:n,chain:a,request:f});if(void 0===e.maxPriorityFeePerGas&&e.maxFeePerGas&&e.maxFeePerGas<i)throw new Qg({maxPriorityFeePerGas:i});f.maxPriorityFeePerGas=i,f.maxFeePerGas=r}}else{if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)throw new $g;if(void 0===e.gasPrice){const e=await m(),{gasPrice:n}=await ub(t,{block:e,chain:a,request:f,type:"legacy"});f.gasPrice=n}}return u.includes("gas")&&void 0===i&&(f.gas=await ip(t,_b,"estimateGas")({...f,account:l,prepare:"local"===l?.type?[]:["blobVersionedHashes"]})),Jg(f),delete f.parameters,f}async function _b(t,e){const{account:n=t.account,prepare:r=!0}=e,a=n?Ym(n):void 0,i=Array.isArray(r)?r:"local"!==a?.type?["blobVersionedHashes"]:void 0;try{const{accessList:n,authorizationList:s,blobs:o,blobVersionedHashes:c,blockNumber:u,blockTag:d,data:l,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:g,value:b,stateOverride:v,...w}=r?await Sb(t,{...e,parameters:i}):e,x=("bigint"==typeof u?im(u):void 0)||d,k=Hg(v),A=await(async()=>w.to?w.to:s&&s.length>0?await Pg({authorization:s[0]}).catch(()=>{throw new hp("`to` is required. Could not infer from `authorizationList`")}):void 0)();Jg(e);const I=t.chain?.formatters?.transactionRequest?.format,E=(I||Kg)({...Dg(w,{format:I}),account:a,accessList:n,authorizationList:s,blobs:o,blobVersionedHashes:c,data:l,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:g,to:A,value:b},"estimateGas");return BigInt(await t.request({method:"eth_estimateGas",params:k?[E,x??t.experimental_blockTag??"latest",k]:x?[E,x]:[E]}))}catch(n){throw function(t,{docsPath:e,...n}){const r=(()=>{const e=Fg(t,n);return e instanceof zg?t:e})();return new Sg(r,{docsPath:e,...n})}(n,{...e,account:a,chain:t.chain})}}function Ob(t,e){if(!Pm(t,{strict:!1}))throw new vm({address:t});if(!Pm(e,{strict:!1}))throw new vm({address:e});return t.toLowerCase()===e.toLowerCase()}const Tb="/docs/contract/decodeEventLog";function Bb(t){const{abi:e,data:n,strict:r,topics:a}=t,i=r??!0,[s,...o]=a;if(!s)throw new Ep({docsPath:Tb});const c=e.find(t=>"event"===t.type&&s===bm(sp(t)));if(!c||!("name"in c)||"event"!==c.type)throw new Pp(s,{docsPath:Tb});const{name:u,inputs:d}=c,l=d?.some(t=>!("name"in t&&t.name)),f=l?[]:{},h=d.map((t,e)=>[t,e]).filter(([t])=>"indexed"in t&&t.indexed);for(let t=0;t<h.length;t++){const[e,n]=h[t],r=o[t];if(!r)throw new Np({abiItem:c,param:e});f[l?n:e.name||n]=Mb({param:e,value:r})}const p=d.filter(t=>!("indexed"in t&&t.indexed));if(p.length>0)if(n&&"0x"!==n)try{const t=dy(p,n);if(t)if(l)for(let e=0;e<d.length;e++)f[e]=f[e]??t.shift();else for(let e=0;e<p.length;e++)f[p[e].name]=t[e]}catch(t){if(i){if(t instanceof gp||t instanceof ry)throw new Cp({abiItem:c,data:n,params:p,size:up(n)});throw t}}else if(i)throw new Cp({abiItem:c,data:"0x",params:p,size:0});return{eventName:u,args:Object.values(f).length>0?f:void 0}}function Mb({param:t,value:e}){if("string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))return e;return(dy([t],e)||[])[0]}function Cb(t){const{abi:e,args:n,logs:r,strict:a=!0}=t,i=(()=>{if(t.eventName)return Array.isArray(t.eventName)?t.eventName:[t.eventName]})();return r.map(t=>{try{const r=e.find(e=>"event"===e.type&&t.topics[0]===bm(e));if(!r)return null;const s=Bb({...t,abi:[r],strict:a});return i&&!i.includes(s.eventName)?null:function(t){const{args:e,inputs:n,matchArgs:r}=t;if(!r)return!0;if(!e)return!1;function a(t,e,n){try{return"address"===t.type?Ob(e,n):"string"===t.type||"bytes"===t.type?pm(um(e))===n:e===n}catch{return!1}}if(Array.isArray(e)&&Array.isArray(r))return r.every((t,r)=>{if(null==t)return!0;const i=n[r];if(!i)return!1;return(Array.isArray(t)?t:[t]).some(t=>a(i,t,e[r]))});return"object"==typeof e&&!Array.isArray(e)&&"object"==typeof r&&!Array.isArray(r)&&Object.entries(r).every(([t,r])=>{if(null==r)return!0;const i=n.find(e=>e.name===t);if(!i)return!1;return(Array.isArray(r)?r:[r]).some(n=>a(i,n,e[t]))})}({args:s.args,inputs:r.inputs,matchArgs:n})?{...s,...t}:null}catch(e){let n,r;if(e instanceof Pp)return null;if(e instanceof Cp||e instanceof Np){if(a)return null;n=e.abiItem.name,r=e.abiItem.inputs?.some(t=>!("name"in t&&t.name))}return{...t,args:r?[]:{},eventName:n}}}).filter(Boolean)}function Nb(t,{args:e,eventName:n}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...n?{args:e,eventName:n}:{}}}async function jb(t,{address:e,blockHash:n,fromBlock:r,toBlock:a,event:i,events:s,args:o,strict:c}={}){const u=c??!1,d=s??(i?[i]:void 0);let l,f=[];if(d){const t=d.flatMap(t=>Zm({abi:[t],eventName:t.name,args:s?void 0:o}));f=[t],i&&(f=f[0])}l=n?await t.request({method:"eth_getLogs",params:[{address:e,topics:f,blockHash:n}]}):await t.request({method:"eth_getLogs",params:[{address:e,topics:f,fromBlock:"bigint"==typeof r?im(r):r,toBlock:"bigint"==typeof a?im(a):a}]});const h=l.map(t=>Nb(t));return d?Cb({abi:d,args:o,logs:h,strict:u}):h}async function Rb(t,e){const{abi:n,address:r,args:a,blockHash:i,eventName:s,fromBlock:o,toBlock:c,strict:u}=e,d=s?qm({abi:n,name:s}):void 0,l=d?void 0:n.filter(t=>"event"===t.type);return ip(t,jb,"getLogs")({address:r,args:a,blockHash:i,event:d,events:l,fromBlock:o,toBlock:c,strict:u})}const Ub="/docs/contract/decodeFunctionResult";function Lb(t){const{abi:e,args:n,functionName:r,data:a}=t;let i=e[0];if(r){const t=qm({abi:e,args:n,name:r});if(!t)throw new _p(r,{docsPath:Ub});i=t}if("function"!==i.type)throw new _p(void 0,{docsPath:Ub});if(!i.outputs)throw new Op(i.name,{docsPath:Ub});const s=dy(i.outputs,a);return s&&s.length>1?s:s&&1===s.length?s[0]:void 0}function zb(t){return{address:t.address,amount:yl(t.amount),index:yl(t.index),validatorIndex:yl(t.validatorIndex)}}function Fb(t){return{..."bigint"==typeof t.baseFeePerGas&&{baseFeePerGas:yl(t.baseFeePerGas)},..."bigint"==typeof t.blobBaseFee&&{blobBaseFee:yl(t.blobBaseFee)},..."string"==typeof t.feeRecipient&&{feeRecipient:t.feeRecipient},..."bigint"==typeof t.gasLimit&&{gasLimit:yl(t.gasLimit)},..."bigint"==typeof t.number&&{number:yl(t.number)},..."bigint"==typeof t.prevRandao&&{prevRandao:yl(t.prevRandao)},..."bigint"==typeof t.time&&{time:yl(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(zb)}}}const Db=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],qb=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],Gb=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],Kb=[...Gb,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],Vb=[...Gb,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],Zb=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],Hb=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],Wb=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],Jb=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],Yb="0x82ad56cb",$b="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Qb="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Xb="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",tv="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";class ev extends hp{constructor({blockNumber:t,chain:e,contract:n}){super(`Chain "${e.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class nv extends hp{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class rv extends hp{constructor({chainId:t}){super("number"==typeof t?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const av="/docs/contract/encodeDeployData";function iv(t){const{abi:e,args:n,bytecode:r}=t;if(!n||0===n.length)return r;const a=e.find(t=>"type"in t&&"constructor"===t.type);if(!a)throw new mp({docsPath:av});if(!("inputs"in a))throw new yp({docsPath:av});if(!a.inputs||0===a.inputs.length)throw new yp({docsPath:av});return _m([r,Um(a.inputs,n)])}function sv({blockNumber:t,chain:e,contract:n}){const r=e?.contracts?.[n];if(!r)throw new ev({chain:e,contract:{name:n}});if(t&&r.blockCreated&&r.blockCreated>t)throw new ev({blockNumber:t,chain:e,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function ov(t,{docsPath:e,...n}){const r=(()=>{const e=Fg(t,n);return e instanceof zg?t:e})();return new jy(r,{docsPath:e,...n})}function cv(){let t=()=>{},e=()=>{};return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}const uv=new Map;function dv({fn:t,id:e,shouldSplitBatch:n,wait:r=0,sort:a}){const i=async()=>{const e=o();s();const n=e.map(({args:t})=>t);0!==n.length&&t(n).then(t=>{a&&Array.isArray(t)&&t.sort(a);for(let n=0;n<e.length;n++){const{resolve:r}=e[n];r?.([t[n],t])}}).catch(t=>{for(let n=0;n<e.length;n++){const{reject:r}=e[n];r?.(t)}})},s=()=>uv.delete(e),o=()=>uv.get(e)||[],c=t=>uv.set(e,[...o(),t]);return{flush:s,async schedule(t){const{promise:e,resolve:a,reject:s}=cv(),u=n?.([...o().map(({args:t})=>t),t]);u&&i();return o().length>0?(c({args:t,resolve:a,reject:s}),e):(c({args:t,resolve:a,reject:s}),setTimeout(i,r),e)}}}async function lv(t,e){const{account:n=t.account,authorizationList:r,batch:a=Boolean(t.batch?.multicall),blockNumber:i,blockTag:s=t.experimental_blockTag??"latest",accessList:o,blobs:c,blockOverrides:u,code:d,data:l,factory:f,factoryData:h,gas:p,gasPrice:m,maxFeePerBlobGas:y,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:v,to:w,value:x,stateOverride:k,...A}=e,I=n?Ym(n):void 0;if(d&&(f||h))throw new hp("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(d&&w)throw new hp("Cannot provide both `code` & `to` as parameters.");const E=d&&l,P=f&&h&&w&&l,S=E||P,_=E?fv({code:d,data:l}):P?function(t){const{data:e,factory:n,factoryData:r,to:a}=t;return iv({abi:ap(["constructor(address, bytes, address, bytes)"]),bytecode:Qb,args:[a,e,n,r]})}({data:l,factory:f,factoryData:h,to:w}):l;try{Jg(e);const n=("bigint"==typeof i?im(i):void 0)||s,d=u?Fb(u):void 0,l=Hg(k),f=t.chain?.formatters?.transactionRequest?.format,h=(f||Kg)({...Dg(A,{format:f}),accessList:o,account:I,authorizationList:r,blobs:c,data:_,gas:p,gasPrice:m,maxFeePerBlobGas:y,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:v,to:S?void 0:w,value:x},"call");if(a&&function({request:t}){const{data:e,to:n,...r}=t;return!!e&&(!e.startsWith(Yb)&&(!!n&&!(Object.values(r).filter(t=>void 0!==t).length>0)))}({request:h})&&!l&&!d)try{return await async function(t,e){const{batchSize:n=1024,deployless:r=!1,wait:a=0}="object"==typeof t.batch?.multicall?t.batch.multicall:{},{blockNumber:i,blockTag:s=t.experimental_blockTag??"latest",data:o,to:c}=e,u=(()=>{if(r)return null;if(e.multicallAddress)return e.multicallAddress;if(t.chain)return sv({blockNumber:i,chain:t.chain,contract:"multicall3"});throw new nv})(),d="bigint"==typeof i?im(i):void 0,l=d||s,{schedule:f}=dv({id:`${t.uid}.${l}`,wait:a,shouldSplitBatch(t){const e=t.reduce((t,{data:e})=>t+(e.length-2),0);return e>2*n},fn:async e=>{const n=e.map(t=>({allowFailure:!0,callData:t.data,target:t.to})),r=Qm({abi:Db,args:[n],functionName:"aggregate3"}),a=await t.request({method:"eth_call",params:[{...null===u?{data:fv({code:tv,data:r})}:{to:u,data:r}},l]});return Lb({abi:Db,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:h,success:p}]=await f({data:o,to:c});if(!p)throw new Fy({data:h});return"0x"===h?{data:void 0}:{data:h}}(t,{...h,blockNumber:i,blockTag:s})}catch(t){if(!(t instanceof nv||t instanceof ev))throw t}const E=(()=>{const t=[h,n];return l&&d?[...t,l,d]:l?[...t,l]:d?[...t,{},d]:t})(),P=await t.request({method:"eth_call",params:E});return"0x"===P?{data:void 0}:{data:P}}catch(n){const r=function(t){if(!(t instanceof hp))return;const e=t.walk();return"object"==typeof e?.data?e.data?.data:e.data}(n),{offchainLookup:a,offchainLookupSignature:i}=await Promise.resolve().then(function(){return Bw});if(!1!==t.ccipRead&&r?.slice(0,10)===i&&w)return{data:await a(t,{data:r,to:w})};if(S&&"0x101bb98d"===r?.slice(0,10))throw new zy({factory:f});throw ov(n,{...e,account:I,chain:t.chain})}}function fv(t){const{code:e,data:n}=t;return iv({abi:ap(["constructor(bytes, bytes)"]),bytecode:$b,args:[e,n]})}async function hv(t,e){const{abi:n,address:r,args:a,functionName:i,...s}=e,o=Qm({abi:n,args:a,functionName:i});try{const{data:e}=await ip(t,lv,"call")({...s,data:o,to:r});return Lb({abi:n,args:a,functionName:i,data:e||"0x"})}catch(t){throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/readContract",functionName:i})}}const pv=new Map,mv=new Map;let yv=0;function gv(t,e,n){const r=++yv,a=()=>pv.get(t)||[],i=()=>{const e=a();if(!e.some(t=>t.id===r))return;const n=mv.get(t);if(1===e.length&&n){const t=n();t instanceof Promise&&t.catch(()=>{})}(()=>{const e=a();pv.set(t,e.filter(t=>t.id!==r))})()},s=a();if(pv.set(t,[...s,{id:r,fns:e}]),s&&s.length>0)return i;const o={};for(const t in e)o[t]=(...e)=>{const n=a();if(0!==n.length)for(const r of n)r.fns[t]?.(...e)};const c=n(o);return"function"==typeof c&&mv.set(t,c),i}async function bv(t){return new Promise(e=>setTimeout(e,t))}function vv(t,{emitOnBegin:e,initialWaitTime:n,interval:r}){let a=!0;const i=()=>a=!1;return(async()=>{let s;e&&(s=await t({unpoll:i}));const o=await(n?.(s))??r;await bv(o);const c=async()=>{a&&(await t({unpoll:i}),await bv(r),c())};c()})(),i}const wv=new Map,xv=new Map;async function kv(t,{cacheKey:e,cacheTime:n=Number.POSITIVE_INFINITY}){const r=function(t){const e=(t,e)=>({clear:()=>e.delete(t),get:()=>e.get(t),set:n=>e.set(t,n)}),n=e(t,wv),r=e(t,xv);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(e),a=r.response.get();if(a&&n>0){if(Date.now()-a.created.getTime()<n)return a.data}let i=r.promise.get();i||(i=t(),r.promise.set(i));try{const t=await i;return r.response.set({created:new Date,data:t}),t}finally{r.promise.clear()}}async function Av(t,{cacheTime:e=t.cacheTime}={}){const n=await kv(()=>t.request({method:"eth_blockNumber"}),{cacheKey:(r=t.uid,`blockNumber.${r}`),cacheTime:e});var r;return BigInt(n)}async function Iv(t,{filter:e}){const n="strict"in e&&e.strict,r=await e.request({method:"eth_getFilterChanges",params:[e.id]});if("string"==typeof r[0])return r;const a=r.map(t=>Nb(t));return"abi"in e&&e.abi?Cb({abi:e.abi,logs:a,strict:n}):a}async function Ev(t,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}class Pv extends hp{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Sv extends hp{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function _v(t,{delay:e=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((a,i)=>{const s=async({count:o=0}={})=>{try{const e=await t();a(e)}catch(t){if(o<n&&await r({count:o,error:t}))return(async({error:t})=>{const n="function"==typeof e?e({count:o,error:t}):e;n&&await bv(n),s({count:o+1})})({error:t});i(t)}};s()})}const Ov={"0x0":"reverted","0x1":"success"};function Tv(t,e){const n={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(t=>Nb(t)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Xp(t.transactionIndex):null,status:t.status?Ov[t.status]:null,type:t.type?tb[t.type]||t.type:null};return t.blobGasPrice&&(n.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(n.blobGasUsed=BigInt(t.blobGasUsed)),n}const Bv=qg("transactionReceipt",Tv),Mv=im(0,{size:32});async function Cv(t,e){const{atomic:n=!1,chainId:r,receipts:a,version:i="2.0.0",...s}=await async function(e){if(e.endsWith("0x5792579257925792579257925792579257925792579257925792579257925792".slice(2))){const n=Yp(Cm(e,-64,-32)),r=Cm(e,0,-64).slice(2).match(/.{1,64}/g),a=await Promise.all(r.map(e=>Mv.slice(2)!==e?t.request({method:"eth_getTransactionReceipt",params:[`0x${e}`]},{dedupe:!0}):void 0)),i=a.some(t=>null===t)?100:a.every(t=>"0x1"===t?.status)?200:a.every(t=>"0x0"===t?.status)?500:600;return{atomic:!1,chainId:Xp(n),receipts:a.filter(Boolean),status:i,version:"2.0.0"}}return t.request({method:"wallet_getCallsStatus",params:[e]})}(e.id),[o,c]=(()=>{const t=s.status;return t>=100&&t<200?["pending",t]:t>=200&&t<300?["success",t]:t>=300&&t<700?["failure",t]:"CONFIRMED"===t?["success",200]:"PENDING"===t?["pending",100]:[void 0,t]})();return{...s,atomic:n,chainId:r?Xp(r):void 0,receipts:a?.map(t=>({...t,blockNumber:Qp(t.blockNumber),gasUsed:Qp(t.gasUsed),status:Ov[t.status]}))??[],statusCode:c,status:o,version:i}}async function Nv(t,e){const{id:n,pollingInterval:r=t.pollingInterval,status:a=({statusCode:t})=>200===t||t>=300,retryCount:i=4,retryDelay:s=({count:t})=>200*(1<<t),timeout:o=6e4,throwOnFailure:c=!1}=e,u=yy(["waitForCallsStatus",t.uid,n]),{promise:d,resolve:l,reject:f}=cv();let h;const p=gv(u,{resolve:l,reject:f},e=>{const o=vv(async()=>{const r=t=>{clearTimeout(h),o(),t(),p()};try{const o=await _v(async()=>{const e=await ip(t,Cv,"getCallsStatus")({id:n});if(c&&"failure"===e.status)throw new Sv(e);return e},{retryCount:i,delay:s});if(!a(o))return;r(()=>e.resolve(o))}catch(t){r(()=>e.reject(t))}},{interval:r,emitOnBegin:!0});return o});return h=o?setTimeout(()=>{p(),clearTimeout(h),f(new jv({id:n}))},o):void 0,await d}class jv extends hp{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}let Rv,Uv=256;function Lv(t=11){if(!Rv||Uv+t>512){Rv="",Uv=0;for(let t=0;t<256;t++)Rv+=(256+256*Math.random()|0).toString(16).substring(1)}return Rv.substring(Uv,Uv+++t)}function zv(t){const{batch:e,chain:n,ccipRead:r,key:a="base",name:i="Base Client",type:s="base"}=t,o=t.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),c=n?.blockTime??12e3,u=Math.min(Math.max(Math.floor(c/2),500),4e3),d=t.pollingInterval??u,l=t.cacheTime??d,f=t.account?Ym(t.account):void 0,{config:h,request:p,value:m}=t.transport({chain:n,pollingInterval:d}),y={account:f,batch:e,cacheTime:l,ccipRead:r,chain:n,key:a,name:i,pollingInterval:d,request:p,transport:{...h,...m},type:s,uid:Lv(),...o?{experimental_blockTag:o}:{}};return Object.assign(y,{extend:function t(e){return n=>{const r=n(e);for(const t in y)delete r[t];const a={...e,...r};return Object.assign(a,{extend:t(a)})}}(y)})}function Fv(t){if(!(t instanceof hp))return!1;const e=t.walk(t=>t instanceof Uy);return e instanceof Uy&&("HttpError"===e.data?.errorName||("ResolverError"===e.data?.errorName||("ResolverNotContract"===e.data?.errorName||("ResolverNotFound"===e.data?.errorName||("ReverseAddressMismatch"===e.data?.errorName||"UnsupportedResolverProfile"===e.data?.errorName)))))}function Dv(t){const{abi:e,data:n}=t,r=Om(n,0,4),a=e.find(t=>"function"===t.type&&r===Dm(sp(t)));if(!a)throw new Tp(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:a.name,args:"inputs"in a&&a.inputs&&a.inputs.length>0?dy(a.inputs,Om(n,4)):void 0}}const qv="/docs/contract/encodeErrorResult";function Gv(t){const{abi:e,errorName:n,args:r}=t;let a=e[0];if(n){const t=qm({abi:e,args:r,name:n});if(!t)throw new Ap(n,{docsPath:qv});a=t}if("error"!==a.type)throw new Ap(void 0,{docsPath:qv});const i=sp(a),s=Dm(i);let o="0x";if(r&&r.length>0){if(!a.inputs)throw new kp(a.name,{docsPath:qv});o=Um(a.inputs,r)}return _m([s,o])}const Kv="/docs/contract/encodeFunctionResult";const Vv="x-batch-gateway:true";async function Zv(t){const{data:e,ccipRequest:n}=t,{args:[r]}=Dv({abi:qb,data:e}),a=[],i=[];return await Promise.all(r.map(async(t,e)=>{try{i[e]=t.urls.includes(Vv)?await Zv({data:t.data,ccipRequest:n}):await n(t),a[e]=!1}catch(t){a[e]=!0,i[e]="HttpRequestError"===(r=t).name&&r.status?Gv({abi:qb,errorName:"HttpError",args:[r.status,r.shortMessage]}):Gv({abi:[ty],errorName:"Error",args:["shortMessage"in r?r.shortMessage:r.message]})}var r})),function(t){const{abi:e,functionName:n,result:r}=t;let a=e[0];if(n){const t=qm({abi:e,name:n});if(!t)throw new _p(n,{docsPath:Kv});a=t}if("function"!==a.type)throw new _p(void 0,{docsPath:Kv});if(!a.outputs)throw new Op(a.name,{docsPath:Kv});const i=(()=>{if(0===a.outputs.length)return[];if(1===a.outputs.length)return[r];if(Array.isArray(r))return r;throw new Up(r)})();return Um(a.outputs,i)}({abi:qb,functionName:"query",result:[a,i]})}function Hv(t){if(66!==t.length)return null;if(0!==t.indexOf("["))return null;if(65!==t.indexOf("]"))return null;const e=`0x${t.slice(1,65)}`;return cp(e)?e:null}function Wv(t){let e=new Uint8Array(32).fill(0);if(!t)return am(e);const n=t.split(".");for(let t=n.length-1;t>=0;t-=1){const r=Hv(n[t]),a=r?um(r):pm(hm(n[t]),"bytes");e=pm(Sm([e,a]),"bytes")}return am(e)}function Jv(t){return`[${t.slice(2)}]`}function Yv(t){const e=new Uint8Array(32).fill(0);return t?Hv(t)||pm(hm(t)):am(e)}function $v(t){const e=t.replace(/^\.|\.$/gm,"");if(0===e.length)return new Uint8Array(1);const n=new Uint8Array(hm(e).byteLength+2);let r=0;const a=e.split(".");for(let t=0;t<a.length;t++){let e=hm(a[t]);e.byteLength>255&&(e=hm(Jv(Yv(a[t])))),n[r]=e.length,n.set(e,r+1),r+=e.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}class Qv extends hp{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Xv extends hp{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class tw extends hp{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class ew extends hp{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const nw=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,rw=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,aw=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,iw=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function sw(t,e){return t?t.endsWith("/")?t.slice(0,-1):t:e}function ow({uri:t,gatewayUrls:e}){const n=aw.test(t);if(n)return{uri:t,isOnChain:!0,isEncoded:n};const r=sw(e?.ipfs,"https://ipfs.io"),a=sw(e?.arweave,"https://arweave.net"),i=t.match(nw),{protocol:s,subpath:o,target:c,subtarget:u=""}=i?.groups||{},d="ipns:/"===s||"ipns/"===o,l="ipfs:/"===s||"ipfs/"===o||rw.test(t);if(t.startsWith("http")&&!d&&!l){let n=t;return e?.arweave&&(n=t.replace(/https:\/\/arweave.net/g,e?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((d||l)&&c)return{uri:`${r}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&c)return{uri:`${a}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=t.replace(iw,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new tw({uri:t})}function cw(t){if("object"!=typeof t||!("image"in t)&&!("image_url"in t)&&!("image_data"in t))throw new Qv({data:t});return t.image||t.image_url||t.image_data}async function uw({gatewayUrls:t,uri:e}){const{uri:n,isOnChain:r}=ow({uri:e,gatewayUrls:t});if(r)return n;const a=await async function(t){try{const e=await fetch(t,{method:"HEAD"});if(200===e.status){const t=e.headers.get("content-type");return t?.startsWith("image/")}return!1}catch(e){return("object"!=typeof e||void 0===e.response)&&!!Object.hasOwn(globalThis,"Image")&&new Promise(e=>{const n=new Image;n.onload=()=>{e(!0)},n.onerror=()=>{e(!1)},n.src=t})}}(n);if(a)return n;throw new tw({uri:e})}async function dw(t,{gatewayUrls:e,record:n}){return/eip155:/i.test(n)?async function(t,{gatewayUrls:e,record:n}){const r=function(t){let e=t;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[n,r,a]=e.split("/"),[i,s]=n.split(":"),[o,c]=r.split(":");if(!i||"eip155"!==i.toLowerCase())throw new Xv({reason:"Only EIP-155 supported"});if(!s)throw new Xv({reason:"Chain ID not found"});if(!c)throw new Xv({reason:"Contract address not found"});if(!a)throw new Xv({reason:"Token ID not found"});if(!o)throw new Xv({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:o.toLowerCase(),contractAddress:c,tokenID:a}}(n),a=await async function(t,{nft:e}){if("erc721"===e.namespace)return hv(t,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if("erc1155"===e.namespace)return hv(t,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new ew({namespace:e.namespace})}(t,{nft:r}),{uri:i,isOnChain:s,isEncoded:o}=ow({uri:a,gatewayUrls:e});if(s&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const t=o?atob(i.replace("data:application/json;base64,","")):i;return uw({uri:cw(JSON.parse(t)),gatewayUrls:e})}let c=r.tokenID;"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0"));return async function({gatewayUrls:t,uri:e}){try{const n=await fetch(e).then(t=>t.json());return await uw({gatewayUrls:t,uri:cw(n)})}catch{throw new tw({uri:e})}}({gatewayUrls:e,uri:i.replace(/(?:0x)?{id}/,c)})}(t,{gatewayUrls:e,record:n}):uw({uri:n,gatewayUrls:e})}async function lw(t,e){const{blockNumber:n,blockTag:r,key:a,name:i,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c?.ensTlds;if(d&&!d.some(t=>i.endsWith(t)))return null;try{const e={address:u,abi:Kb,args:[nm($v(i)),Qm({abi:Zb,functionName:"text",args:[Wv(i),a]}),s??[Vv]],functionName:"resolveWithGateways",blockNumber:n,blockTag:r},o=ip(t,hv,"readContract"),c=await o(e);if("0x"===c[0])return null;const d=Lb({abi:Zb,functionName:"text",data:c[0]});return""===d?null:d}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}async function fw(t,e){const{account:n=t.account,blockNumber:r,blockTag:a="latest",blobs:i,data:s,gas:o,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:l,to:f,value:h,...p}=e,m=n?Ym(n):void 0;try{Jg(e);const n=("bigint"==typeof r?im(r):void 0)||a,y=t.chain?.formatters?.transactionRequest?.format,g=(y||Kg)({...Dg(p,{format:y}),account:m,blobs:i,data:s,gas:o,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:l,to:f,value:h},"createAccessList"),b=await t.request({method:"eth_createAccessList",params:[g,n]});return{accessList:b.accessList,gasUsed:BigInt(b.gasUsed)}}catch(n){throw ov(n,{...e,account:m,chain:t.chain})}}async function hw(t,{address:e,args:n,event:r,events:a,fromBlock:i,strict:s,toBlock:o}={}){const c=a??(r?[r]:void 0),u=Wm(t,{method:"eth_newFilter"});let d=[];if(c){const t=c.flatMap(t=>Zm({abi:[t],eventName:t.name,args:n}));d=[t],r&&(d=d[0])}const l=await t.request({method:"eth_newFilter",params:[{address:e,fromBlock:"bigint"==typeof i?im(i):i,toBlock:"bigint"==typeof o?im(o):o,...d.length?{topics:d}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:i,id:l,request:u(l),strict:Boolean(s),toBlock:o,type:"event"}}async function pw(t){const e=Wm(t,{method:"eth_newPendingTransactionFilter"}),n=await t.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:e(n),type:"transaction"}}async function mw(t,{address:e,blockNumber:n,blockTag:r="latest"}){const a=void 0!==n?im(n):void 0,i=await t.request({method:"eth_getCode",params:[e,a||r]},{dedupe:Boolean(a)});if("0x"!==i)return i}class yw extends hp{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}const gw=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function bw(t,{blockCount:e,blockNumber:n,blockTag:r="latest",rewardPercentiles:a}){const i="bigint"==typeof n?im(n):void 0;return function(t){return{baseFeePerGas:t.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:t.gasUsedRatio,oldestBlock:BigInt(t.oldestBlock),reward:t.reward?.map(t=>t.map(t=>BigInt(t)))}}(await t.request({method:"eth_feeHistory",params:[im(e),i||r,a]},{dedupe:Boolean(i)}))}function vw(t,e,n=!1){if("address"===t){const t=e;if(!Pm(t))throw new vm({address:t});return Kp(t.toLowerCase(),{size:n?32:null})}if("string"===t)return om(e);if("bytes"===t)return e;if("bool"===t)return Kp(rm(e),{size:n?32:1});const r=t.match(Rm);if(r){const[t,a,i="256"]=r,s=Number.parseInt(i,10)/8;return im(e,{size:n?32:s,signed:"int"===a})}const a=t.match(jm);if(a){const[t,r]=a;if(Number.parseInt(r,10)!==(e.length-2)/2)throw new Mp({expectedSize:Number.parseInt(r,10),givenSize:(e.length-2)/2});return Kp(e,{dir:"right",size:n?32:null})}const i=t.match(Nm);if(i&&Array.isArray(e)){const[t,n]=i,r=[];for(let t=0;t<e.length;t++)r.push(vw(n,e[t],!0));return 0===r.length?"0x":_m(r)}throw new zp(t)}function ww(t){const{chainId:e,maxPriorityFeePerGas:n,maxFeePerGas:r,to:a}=t;if(e<=0)throw new rv({chainId:e});if(a&&!Pm(a))throw new vm({address:a});if(r&&r>Wg)throw new Og({maxFeePerGas:r});if(n&&r&&n>r)throw new Lg({maxFeePerGas:r,maxPriorityFeePerGas:n})}function xw(t){if(!t||0===t.length)return[];const e=[];for(let n=0;n<t.length;n++){const{address:r,storageKeys:a}=t[n];for(let t=0;t<a.length;t++)if(a[t].length-2!=64)throw new Ty({storageKey:a[t]});if(!Pm(r,{strict:!1}))throw new vm({address:r});e.push([r,a])}return e}function kw(t,e){const n=Ab(t);return"eip1559"===n?function(t,e){const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,accessList:u,data:d}=t;ww(t);const l=xw(u),f=[im(n),a?im(a):"0x",c?im(c):"0x",o?im(o):"0x",r?im(r):"0x",i??"0x",s?im(s):"0x",d??"0x",l,...Aw(t,e)];return _m(["0x02",kg(f)])}(t,e):"eip2930"===n?function(t,e){const{chainId:n,gas:r,data:a,nonce:i,to:s,value:o,accessList:c,gasPrice:u}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(e<=0)throw new rv({chainId:e});if(i&&!Pm(i))throw new vm({address:i});if(n||a)throw new hp("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Wg)throw new Og({maxFeePerGas:r})}(t);const d=xw(c),l=[im(n),i?im(i):"0x",u?im(u):"0x",r?im(r):"0x",s??"0x",o?im(o):"0x",a??"0x",d,...Aw(t,e)];return _m(["0x01",kg(l)])}(t,e):"eip4844"===n?function(t,e){const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerBlobGas:o,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:l}=t;!function(t){const{blobVersionedHashes:e}=t;if(e){if(0===e.length)throw new vb;for(const t of e){const e=up(t),n=Xp(Om(t,0,1));if(32!==e)throw new wb({hash:t,size:e});if(1!==n)throw new xb({hash:t,version:n})}}ww(t)}(t);let f=t.blobVersionedHashes,h=t.sidecars;if(t.blobs&&(void 0===f||void 0===h)){const e="string"==typeof t.blobs[0]?t.blobs:t.blobs.map(t=>am(t)),n=t.kzg,r=lb({blobs:e,kzg:n});if(void 0===f&&(f=pb({commitments:r})),void 0===h){h=kb({blobs:e,commitments:r,proofs:fb({blobs:e,commitments:r,kzg:n})})}}const p=xw(d),m=[im(n),a?im(a):"0x",u?im(u):"0x",c?im(c):"0x",r?im(r):"0x",i??"0x",s?im(s):"0x",l??"0x",p,o?im(o):"0x",f??[],...Aw(t,e)],y=[],g=[],b=[];if(h)for(let t=0;t<h.length;t++){const{blob:e,commitment:n,proof:r}=h[t];y.push(e),g.push(n),b.push(r)}return _m(["0x03",kg(h?[m,y,g,b]:m)])}(t,e):"eip7702"===n?function(t,e){const{authorizationList:n,chainId:r,gas:a,nonce:i,to:s,value:o,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:l}=t;!function(t){const{authorizationList:e}=t;if(e)for(const t of e){const{chainId:e}=t,n=t.address;if(!Pm(n))throw new vm({address:n});if(e<0)throw new rv({chainId:e})}ww(t)}(t);const f=xw(d),h=function(t){if(!t||0===t.length)return[];const e=[];for(const n of t){const{chainId:t,nonce:r,...a}=n,i=n.address;e.push([t?nm(t):"0x",i,r?nm(r):"0x",...Aw({},a)])}return e}(n);return _m(["0x04",kg([im(r),i?im(i):"0x",u?im(u):"0x",c?im(c):"0x",a?im(a):"0x",s??"0x",o?im(o):"0x",l??"0x",f,h,...Aw(t,e)])])}(t,e):function(t,e){const{chainId:n=0,gas:r,data:a,nonce:i,to:s,value:o,gasPrice:c}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(i&&!Pm(i))throw new vm({address:i});if(void 0!==e&&e<=0)throw new rv({chainId:e});if(n||a)throw new hp("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Wg)throw new Og({maxFeePerGas:r})}(t);let u=[i?im(i):"0x",c?im(c):"0x",r?im(r):"0x",s??"0x",o?im(o):"0x",a??"0x"];if(e){const t=(()=>{if(e.v>=35n){return(e.v-35n)/2n>0?e.v:27n+(35n===e.v?0n:1n)}if(n>0)return BigInt(2*n)+BigInt(35n+e.v-27n);const t=27n+(27n===e.v?0n:1n);if(e.v!==t)throw new _y({v:e.v});return t})(),r=Yp(e.r),a=Yp(e.s);u=[...u,im(t),"0x00"===r?"0x":r,"0x00"===a?"0x":a]}else n>0&&(u=[...u,im(n),"0x","0x"]);return kg(u)}(t,e)}function Aw(t,e){const n=e??t,{v:r,yParity:a}=n;if(void 0===n.r)return[];if(void 0===n.s)return[];if(void 0===r&&void 0===a)return[];const i=Yp(n.r),s=Yp(n.s);return["number"==typeof a?a?im(1):"0x":0n===r?"0x":1n===r?im(1):27n===r?"0x":im(1),"0x00"===i?"0x":i,"0x00"===s?"0x":s]}const Iw=new wm(8192);function Ew(t,e={}){return async(n,r={})=>{const{dedupe:a=!1,methods:i,retryDelay:s=150,retryCount:o=3,uid:c}={...e,...r},{method:u}=n;if(i?.exclude?.includes(u))throw new eg(new Error("method not supported"),{method:u});if(i?.include&&!i.include.includes(u))throw new eg(new Error("method not supported"),{method:u});return function(t,{enabled:e=!0,id:n}){if(!e||!n)return t();if(Iw.get(n))return Iw.get(n);const r=t().finally(()=>Iw.delete(n));return Iw.set(n,r),r}(()=>_v(async()=>{try{return await t(n)}catch(t){const e=t;switch(e.code){case Zy.code:throw new Zy(e);case Hy.code:throw new Hy(e);case Wy.code:throw new Wy(e,{method:n.method});case Jy.code:throw new Jy(e);case Yy.code:throw new Yy(e);case $y.code:throw new $y(e);case Qy.code:throw new Qy(e);case Xy.code:throw new Xy(e);case tg.code:throw new tg(e);case eg.code:throw new eg(e,{method:n.method});case ng.code:throw new ng(e);case rg.code:throw new rg(e);case ag.code:throw new ag(e);case ig.code:throw new ig(e);case sg.code:throw new sg(e);case og.code:throw new og(e);case cg.code:throw new cg(e);case ug.code:throw new ug(e);case dg.code:throw new dg(e);case lg.code:throw new lg(e);case fg.code:throw new fg(e);case hg.code:throw new hg(e);case pg.code:throw new pg(e);case mg.code:throw new mg(e);case yg.code:throw new yg(e);case 5e3:throw new ag(e);default:if(t instanceof hp)throw t;throw new gg(e)}}},{delay:({count:t,error:e})=>{if(e&&e instanceof Dy){const t=e?.headers?.get("Retry-After");if(t?.match(/\d/))return 1e3*Number.parseInt(t,10)}return(1<<t)*s},retryCount:o,shouldRetry:({error:t})=>function(t){if("code"in t&&"number"==typeof t.code)return-1===t.code||(t.code===ng.code||t.code===Yy.code);if(t instanceof Dy&&t.status)return 403===t.status||(408===t.status||(413===t.status||(429===t.status||(500===t.status||(502===t.status||(503===t.status||504===t.status))))));return!0}(t)}),{enabled:a,id:a?om(`${c}.${yy(n)}`):void 0})}}class Pw extends hp{constructor({callbackSelector:t,cause:e,data:n,extraData:r,sender:a,urls:i}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(t=>` ${t}`)],` Sender: ${a}`,` Data: ${n}`,` Callback selector: ${t}`,` Extra data: ${r}`].flat(),name:"OffchainLookupError"})}}class Sw extends hp{constructor({result:t,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${e}`,`Response: ${yy(t)}`],name:"OffchainLookupResponseMalformedError"})}}class _w extends hp{constructor({sender:t,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}const Ow={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function Tw({data:t,sender:e,urls:n}){let r=new Error("An unknown error occurred.");for(let a=0;a<n.length;a++){const i=n[a],s=i.includes("{data}")?"GET":"POST",o="POST"===s?{data:t,sender:e}:void 0,c="POST"===s?{"Content-Type":"application/json"}:{};try{const n=await fetch(i.replace("{sender}",e.toLowerCase()).replace("{data}",t),{body:JSON.stringify(o),headers:c,method:s});let a;if(a=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){r=new Dy({body:o,details:a?.error?yy(a.error):n.statusText,headers:n.headers,status:n.status,url:i});continue}if(!cp(a)){r=new Sw({result:a,url:i});continue}return a}catch(t){r=new Dy({body:o,details:t.message,url:i})}}throw r}var Bw=Object.freeze({__proto__:null,ccipRequest:Tw,offchainLookup:async function(t,{blockNumber:e,blockTag:n,data:r,to:a}){const{args:i}=my({data:r,abi:[Ow]}),[s,o,c,u,d]=i,{ccipRead:l}=t,f=l&&"function"==typeof l?.request?l.request:Tw;try{if(!Ob(a,s))throw new _w({sender:s,to:a});const r=o.includes(Vv)?await Zv({data:c,ccipRequest:f}):await f({data:c,sender:s,urls:o}),{data:i}=await lv(t,{blockNumber:e,blockTag:n,data:Sm([u,Um([{type:"bytes"},{type:"bytes"}],[r,d])]),to:a});return i}catch(t){throw new Pw({callbackSelector:u,cause:t,data:r,extraData:d,sender:s,urls:o})}},offchainLookupAbiItem:Ow,offchainLookupSignature:"0x556f1830"});function Mw(t){return{formatters:void 0,fees:void 0,serializers:void 0,...t}}function Cw(t){const{source:e}=t,n=new Map,r=new wm(8192),a=new Map,i=({address:t,chainId:e})=>`${t}.${e}`;return{async consume({address:t,chainId:n,client:a}){const s=i({address:t,chainId:n}),o=this.get({address:t,chainId:n,client:a});this.increment({address:t,chainId:n});const c=await o;return await e.set({address:t,chainId:n},c),r.set(s,c),c},async increment({address:t,chainId:e}){const r=i({address:t,chainId:e}),a=n.get(r)??0;n.set(r,a+1)},async get({address:t,chainId:s,client:o}){const c=i({address:t,chainId:s});let u=a.get(c);u||(u=(async()=>{try{const n=await e.get({address:t,chainId:s,client:o}),a=r.get(c)??0;return a>0&&n<=a?a+1:(r.delete(c),n)}finally{this.reset({address:t,chainId:s})}})(),a.set(c,u));return(n.get(c)??0)+await u},reset({address:t,chainId:e}){const r=i({address:t,chainId:e});n.delete(r),a.delete(r)}}}function Nw(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const jw=Nw();function Rw(t,e={}){return{async request(n){const{body:r,fetchFn:a=e.fetchFn??fetch,onRequest:i=e.onRequest,onResponse:s=e.onResponse,timeout:o=e.timeout??1e4}=n,c={...e.fetchOptions??{},...n.fetchOptions??{}},{headers:u,method:d,signal:l}=c;try{const e=await function(t,{errorInstance:e=new Error("timed out"),timeout:n,signal:r}){return new Promise((a,i)=>{(async()=>{let s;try{const e=new AbortController;n>0&&(s=setTimeout(()=>{r&&e.abort()},n)),a(await t({signal:e?.signal||null}))}catch(t){"AbortError"===t?.name&&i(e),i(t)}finally{clearTimeout(s)}})()})}(async({signal:e})=>{const n={...c,body:Array.isArray(r)?yy(r.map(t=>({jsonrpc:"2.0",id:t.id??jw.take(),...t}))):yy({jsonrpc:"2.0",id:r.id??jw.take(),...r}),headers:{"Content-Type":"application/json",...u},method:d||"POST",signal:l||(o>0?e:null)},s=new Request(t,n),f=await(i?.(s,n))??{...n,url:t};return await a(f.url??t,f)},{errorInstance:new Gy({body:r,url:t}),timeout:o,signal:!0});let n;if(s&&await s(e),e.headers.get("Content-Type")?.startsWith("application/json"))n=await e.json();else{n=await e.text();try{n=JSON.parse(n||"{}")}catch(t){if(e.ok)throw t;n={error:n}}}if(!e.ok)throw new Dy({body:r,details:yy(n.error)||e.statusText,headers:e.headers,status:e.status,url:t});return n}catch(e){if(e instanceof Dy)throw e;if(e instanceof Gy)throw e;throw new Dy({body:r,cause:e,url:t})}}}}function Uw(t,e){return pm(function(t){const e="string"==typeof t?om(t):"string"==typeof t.raw?t.raw:am(t.raw);return Sm([om(`Ethereum Signed Message:\n${up(e)}`),e])}(t),e)}class Lw extends hp{constructor({domain:t}){super(`Invalid domain "${yy(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class zw extends hp{constructor({primaryType:t,types:e}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(e))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class Fw extends hp{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function Dw({domain:t}){return["string"==typeof t?.name&&{name:"name",type:"string"},t?.version&&{name:"version",type:"string"},("number"==typeof t?.chainId||"bigint"==typeof t?.chainId)&&{name:"chainId",type:"uint256"},t?.verifyingContract&&{name:"verifyingContract",type:"address"},t?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function qw(t){if("address"===t||"bool"===t||"string"===t||t.startsWith("bytes")||t.startsWith("uint")||t.startsWith("int"))throw new Fw({type:t})}function Gw(t){const{domain:e={},message:n,primaryType:r}=t,a={EIP712Domain:Dw({domain:e}),...t.types};!function(t){const{domain:e,message:n,primaryType:r,types:a}=t,i=(t,e)=>{for(const n of t){const{name:t,type:r}=n,s=e[t],o=r.match(Rm);if(o&&("number"==typeof s||"bigint"==typeof s)){const[t,e,n]=o;im(s,{signed:"int"===e,size:Number.parseInt(n,10)/8})}if("address"===r&&"string"==typeof s&&!Pm(s))throw new vm({address:s});const c=r.match(jm);if(c){const[t,e]=c;if(e&&up(s)!==Number.parseInt(e,10))throw new Mp({expectedSize:Number.parseInt(e,10),givenSize:up(s)})}const u=a[r];u&&(qw(r),i(u,s))}};if(a.EIP712Domain&&e){if("object"!=typeof e)throw new Lw({domain:e});i(a.EIP712Domain,e)}if("EIP712Domain"!==r){if(!a[r])throw new zw({primaryType:r,types:a});i(a[r],n)}}({domain:e,message:n,primaryType:r,types:a});const i=["0x1901"];return e&&i.push(function({domain:t,types:e}){return Kw({data:t,primaryType:"EIP712Domain",types:e})}({domain:e,types:a})),"EIP712Domain"!==r&&i.push(Kw({data:n,primaryType:r,types:a})),pm(Sm(i))}function Kw({data:t,primaryType:e,types:n}){return pm(Vw({data:t,primaryType:e,types:n}))}function Vw({data:t,primaryType:e,types:n}){const r=[{type:"bytes32"}],a=[Zw({primaryType:e,types:n})];for(const i of n[e]){const[e,s]=Ww({types:n,name:i.name,type:i.type,value:t[i.name]});r.push(e),a.push(s)}return Um(r,a)}function Zw({primaryType:t,types:e}){const n=nm(function({primaryType:t,types:e}){let n="";const r=Hw({primaryType:t,types:e});r.delete(t);const a=[t,...Array.from(r).sort()];for(const t of a)n+=`${t}(${e[t].map(({name:t,type:e})=>`${e} ${t}`).join(",")})`;return n}({primaryType:t,types:e}));return pm(n)}function Hw({primaryType:t,types:e},n=new Set){const r=t.match(/^\w*/u),a=r?.[0];if(n.has(a)||void 0===e[a])return n;n.add(a);for(const t of e[a])Hw({primaryType:t.type,types:e},n);return n}function Ww({types:t,name:e,type:n,value:r}){if(void 0!==t[n])return[{type:"bytes32"},pm(Vw({data:r,primaryType:n,types:t}))];if("bytes"===n){return[{type:"bytes32"},pm(r=`0x${(r.length%2?"0":"")+r.slice(2)}`)]}if("string"===n)return[{type:"bytes32"},pm(nm(r))];if(n.lastIndexOf("]")===n.length-1){const a=n.slice(0,n.lastIndexOf("[")),i=r.map(n=>Ww({name:e,type:a,types:t,value:n}));return[{type:"bytes32"},pm(Um(i.map(([t])=>t),i.map(([,t])=>t)))]}return[{type:n},r]}class Jw extends Error{constructor(t,e={}){const n=e.cause instanceof Jw?e.cause.details:e.cause?.message?e.cause.message:e.details,r=e.cause instanceof Jw&&e.cause.docsPath||e.docsPath;super([t||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.1.1"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),e.cause&&(this.cause=e.cause),this.details=n,this.docsPath=r,this.metaMessages=e.metaMessages,this.shortMessage=t}}function Yw(t,e){const n=t.exec(e);return n?.groups}const $w=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Qw=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Xw=/^\(.+?\).*?$/,tx=/^tuple(?<array>(\[(\d*)\])*)$/;function ex(t){let e=t.type;if(tx.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let r=0;r<n;r++){e+=ex(t.components[r]),r<n-1&&(e+=", ")}const r=Yw(tx,t.type);return e+=`)${r?.array??""}`,ex({...t,type:e})}return"indexed"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}function nx(t){let e="";const n=t.length;for(let r=0;r<n;r++){e+=ex(t[r]),r!==n-1&&(e+=", ")}return e}function rx(t){return"function"===t.type?`function ${t.name}(${nx(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs?.length?` returns (${nx(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${nx(t.inputs)})`:"error"===t.type?`error ${t.name}(${nx(t.inputs)})`:"constructor"===t.type?`constructor(${nx(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback() external"+("payable"===t.stateMutability?" payable":""):"receive() external payable"}const ax=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const ix=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const sx=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;const ox=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function cx(t){return ox.test(t)}function ux(t){return Yw(ox,t)}const dx=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;const lx=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;const fx=/^receive\(\) external payable$/;const hx=new Set(["memory","indexed","storage","calldata"]),px=new Set(["indexed"]),mx=new Set(["calldata","memory","storage"]);class yx extends Jw{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class gx extends Jw{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class bx extends Jw{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class vx extends Jw{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class wx extends Jw{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class xx extends Jw{constructor({param:t,name:e}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${e}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class kx extends Jw{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class Ax extends Jw{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class Ix extends Jw{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Ex extends Jw{constructor({signature:t,type:e}){super(`Invalid ${e} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Px extends Jw{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Sx extends Jw{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class _x extends Jw{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class Ox extends Jw{constructor({current:t,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const Tx=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Bx(t,e={}){if(function(t){return sx.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(sx,t)}(t);if(!n)throw new Ex({signature:t,type:"function"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{modifiers:mx,structs:e,type:"function"}));const s=[];if(n.returns){const t=Rx(n.returns),r=t.length;for(let n=0;n<r;n++)s.push(jx(t[n],{modifiers:mx,structs:e,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}(t,e);if(function(t){return ix.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(ix,t)}(t);if(!n)throw new Ex({signature:t,type:"event"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{modifiers:px,structs:e,type:"event"}));return{name:n.name,type:"event",inputs:a}}(t,e);if(function(t){return ax.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(ax,t)}(t);if(!n)throw new Ex({signature:t,type:"error"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{structs:e,type:"error"}));return{name:n.name,type:"error",inputs:a}}(t,e);if(function(t){return dx.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(dx,t)}(t);if(!n)throw new Ex({signature:t,type:"constructor"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{structs:e,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(t,e);if(function(t){return lx.test(t)}(t))return function(t){const e=function(t){return Yw(lx,t)}(t);if(!e)throw new Ex({signature:t,type:"fallback"});return{type:"fallback",stateMutability:e.stateMutability??"nonpayable"}}(t);if(function(t){return fx.test(t)}(t))return{type:"receive",stateMutability:"payable"};throw new Px({signature:t})}const Mx=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Cx=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Nx=/^u?int$/;function jx(t,e){const n=function(t,e,n){let r="";if(n)for(const t of Object.entries(n)){if(!t)continue;let e="";for(const n of t[1])e+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${t[0]}{${e}})`}return e?`${e}:${t}${r}`:t}(t,e?.type,e?.structs);if(Tx.has(n))return Tx.get(n);const r=Xw.test(t),a=Yw(r?Cx:Mx,t);if(!a)throw new wx({param:t});if(a.name&&function(t){return"address"===t||"bool"===t||"function"===t||"string"===t||"tuple"===t||$w.test(t)||Qw.test(t)||Lx.test(t)}(a.name))throw new xx({param:t,name:a.name});const i=a.name?{name:a.name}:{},s="indexed"===a.modifier?{indexed:!0}:{},o=e?.structs??{};let c,u={};if(r){c="tuple";const t=Rx(a.type),e=[],n=t.length;for(let r=0;r<n;r++)e.push(jx(t[r],{structs:o}));u={components:e}}else if(a.type in o)c="tuple",u={components:o[a.type]};else if(Nx.test(a.type))c=`${a.type}256`;else if("address payable"===a.type)c="address";else if(c=a.type,"struct"!==e?.type&&!Ux(c))throw new bx({type:c});if(a.modifier){if(!e?.modifiers?.has?.(a.modifier))throw new kx({param:t,type:e?.type,modifier:a.modifier});if(mx.has(a.modifier)&&!function(t,e){return e||"bytes"===t||"string"===t||"tuple"===t}(c,!!a.array))throw new Ax({param:t,type:e?.type,modifier:a.modifier})}const d={type:`${c}${a.array??""}`,...i,...s,...u};return Tx.set(n,d),d}function Rx(t,e=[],n="",r=0){const a=t.trim().length;for(let i=0;i<a;i++){const a=t[i],s=t.slice(i+1);switch(a){case",":return 0===r?Rx(s,[...e,n.trim()]):Rx(s,e,`${n}${a}`,r);case"(":return Rx(s,e,`${n}${a}`,r+1);case")":return Rx(s,e,`${n}${a}`,r-1);default:return Rx(s,e,`${n}${a}`,r)}}if(""===n)return e;if(0!==r)throw new Ox({current:n,depth:r});return e.push(n.trim()),e}function Ux(t){return"address"===t||"bool"===t||"function"===t||"string"===t||$w.test(t)||Qw.test(t)}const Lx=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function zx(t){const e={},n=t.length;for(let r=0;r<n;r++){const n=t[r];if(!cx(n))continue;const a=ux(n);if(!a)throw new Ex({signature:n,type:"struct"});const i=a.properties.split(";"),s=[],o=i.length;for(let t=0;t<o;t++){const e=i[t].trim();if(!e)continue;const n=jx(e,{type:"struct"});s.push(n)}if(!s.length)throw new Sx({signature:n});e[a.name]=s}const r={},a=Object.entries(e),i=a.length;for(let t=0;t<i;t++){const[n,i]=a[t];r[n]=Dx(i,e)}return r}const Fx=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Dx(t,e,n=new Set){const r=[],a=t.length;for(let i=0;i<a;i++){const a=t[i];if(Xw.test(a.type))r.push(a);else{const t=Yw(Fx,a.type);if(!t?.type)throw new Ix({abiParameter:a});const{array:i,type:s}=t;if(s in e){if(n.has(s))throw new _x({type:s});r.push({...a,type:`tuple${i??""}`,components:Dx(e[s]??[],e,new Set([...n,s]))})}else{if(!Ux(s))throw new gx({type:s});r.push(a)}}}return r}function qx(t){let e;if("string"==typeof t)e=Bx(t);else{const n=zx(t),r=t.length;for(let a=0;a<r;a++){const r=t[a];if(!cx(r)){e=Bx(r,n);break}}}if(!e)throw new yx({signature:t});return e}function Gx(t){const e=[];if("string"==typeof t){const n=Rx(t),r=n.length;for(let t=0;t<r;t++)e.push(jx(n[t],{modifiers:hx}))}else{const n=zx(t),r=t.length;for(let a=0;a<r;a++){const r=t[a];if(cx(r))continue;const i=Rx(r),s=i.length;for(let t=0;t<s;t++)e.push(jx(i[t],{modifiers:hx,structs:n}))}}if(0===e.length)throw new vx({params:t});return e}const Kx=/^(.*)\[([0-9]*)\]$/,Vx=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Zx=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Hx=2n**256n-1n;function Wx(t,e,n){const{checksumAddress:r,staticPosition:a}=n,i=Xx(e.type);if(i){const[n,s]=i;return function(t,e,n){const{checksumAddress:r,length:a,staticPosition:i}=n;if(!a){const n=i+Dl(t.readBytes(Yx)),a=n+Jx;t.setPosition(n);const s=Dl(t.readBytes(Jx)),o=tk(e);let c=0;const u=[];for(let n=0;n<s;++n){t.setPosition(a+(o?32*n:c));const[i,s]=Wx(t,e,{checksumAddress:r,staticPosition:a});c+=s,u.push(i)}return t.setPosition(i+32),[u,32]}if(tk(e)){const n=i+Dl(t.readBytes(Yx)),s=[];for(let i=0;i<a;++i){t.setPosition(n+32*i);const[a]=Wx(t,e,{checksumAddress:r,staticPosition:n});s.push(a)}return t.setPosition(i+32),[s,32]}let s=0;const o=[];for(let n=0;n<a;++n){const[n,a]=Wx(t,e,{checksumAddress:r,staticPosition:i+s});s+=a,o.push(n)}return[o,s]}(t,{...e,type:s},{checksumAddress:r,length:n,staticPosition:a})}if("tuple"===e.type)return function(t,e,n){const{checksumAddress:r,staticPosition:a}=n,i=0===e.components.length||e.components.some(({name:t})=>!t),s=i?[]:{};let o=0;if(tk(e)){const n=a+Dl(t.readBytes(Yx));for(let a=0;a<e.components.length;++a){const c=e.components[a];t.setPosition(n+o);const[u,d]=Wx(t,c,{checksumAddress:r,staticPosition:n});o+=d,s[i?a:c?.name]=u}return t.setPosition(a+32),[s,32]}for(let n=0;n<e.components.length;++n){const c=e.components[n],[u,d]=Wx(t,c,{checksumAddress:r,staticPosition:a});s[i?n:c?.name]=u,o+=d}return[s,o]}(t,e,{checksumAddress:r,staticPosition:a});if("address"===e.type)return function(t,e={}){const{checksum:n=!1}=e,r=t.readBytes(32),a=t=>n?Of(t):t;return[a(ml(Ll(r,-20))),32]}(t,{checksum:r});if("bool"===e.type)return function(t){return[Fl(t.readBytes(32),{size:32}),32]}(t);if(e.type.startsWith("bytes"))return function(t,e,{staticPosition:n}){const[r,a]=e.type.split("bytes");if(!a){const e=Dl(t.readBytes(32));t.setPosition(n+e);const r=Dl(t.readBytes(32));if(0===r)return t.setPosition(n+32),["0x",32];const a=t.readBytes(r);return t.setPosition(n+32),[ml(a),32]}const i=ml(t.readBytes(Number.parseInt(a,10),32));return[i,32]}(t,e,{staticPosition:a});if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(t,e){const n=e.type.startsWith("int"),r=Number.parseInt(e.type.split("int")[1]||"256",10),a=t.readBytes(32);return[r>48?zl(a,{signed:n}):Dl(a,{signed:n}),32]}(t,e);if("string"===e.type)return function(t,{staticPosition:e}){const n=Dl(t.readBytes(32)),r=e+n;t.setPosition(r);const a=Dl(t.readBytes(32));if(0===a)return t.setPosition(e+32),["",32];const i=t.readBytes(a,32),s=ql(Gl(i));return t.setPosition(e+32),[s,32]}(t,{staticPosition:a});throw new mk(e.type)}const Jx=32,Yx=32;function $x({checksumAddress:t=!1,parameter:e,value:n}){const r=e,a=Xx(r.type);if(a){const[e,i]=a;return function(t,e){const{checksumAddress:n,length:r,parameter:a}=e,i=null===r;if(!Array.isArray(t))throw new pk(t);if(!i&&t.length!==r)throw new lk({expectedLength:r,givenLength:t.length,type:`${a.type}[${r}]`});let s=!1;const o=[];for(let e=0;e<t.length;e++){const r=$x({checksumAddress:n,parameter:a,value:t[e]});r.dynamic&&(s=!0),o.push(r)}if(i||s){const t=Qx(o);if(i){const e=yl(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?fl(e,t):e}}if(s)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:fl(...o.map(({encoded:t})=>t))}}(n,{checksumAddress:t,length:e,parameter:{...r,type:i}})}if("tuple"===r.type)return function(t,e){const{checksumAddress:n,parameter:r}=e;let a=!1;const i=[];for(let e=0;e<r.components.length;e++){const s=r.components[e],o=$x({checksumAddress:n,parameter:s,value:t[Array.isArray(t)?e:s.name]});i.push(o),o.dynamic&&(a=!0)}return{dynamic:a,encoded:a?Qx(i):fl(...i.map(({encoded:t})=>t))}}(n,{checksumAddress:t,parameter:r});if("address"===r.type)return function(t,e){const{checksum:n=!1}=e;return _f(t,{strict:n}),{dynamic:!1,encoded:bl(t.toLowerCase())}}(n,{checksum:t});if("bool"===r.type)return function(t){if("boolean"!=typeof t)throw new Lu(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:bl(pl(t))}}(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const t=r.type.startsWith("int"),[,,e="256"]=Zx.exec(r.type)??[];return function(t,{signed:e,size:n}){if("number"==typeof n){const r=2n**(BigInt(n)-(e?1n:0n))-1n,a=e?-r-1n:0n;if(t>r||t<a)throw new El({max:r.toString(),min:a.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:yl(t,{size:32,signed:e})}}(n,{signed:t,size:Number(e)})}if(r.type.startsWith("bytes"))return function(t,{type:e}){const[,n]=e.split("bytes"),r=xl(t);if(!n){let e=t;return r%32!=0&&(e=vl(e,32*Math.ceil((t.length-2)/2/32))),{dynamic:!0,encoded:fl(bl(yl(r,{size:32})),e)}}if(r!==Number.parseInt(n,10))throw new fk({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:vl(t)}}(n,{type:r.type});if("string"===r.type)return function(t){const e=gl(t),n=Math.ceil(xl(e)/32),r=[];for(let t=0;t<n;t++)r.push(vl(wl(e,32*t,32*(t+1))));return{dynamic:!0,encoded:fl(vl(yl(xl(e),{size:32})),...r)}}(n);throw new mk(r.type)}function Qx(t){let e=0;for(let n=0;n<t.length;n++){const{dynamic:r,encoded:a}=t[n];e+=r?32:xl(a)}const n=[],r=[];let a=0;for(let i=0;i<t.length;i++){const{dynamic:s,encoded:o}=t[i];s?(n.push(yl(e+a,{size:32})),r.push(o),a+=xl(o)):n.push(o)}return fl(...n,...r)}function Xx(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}function tk(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(tk);const n=Xx(t.type);return!(!n||!tk({...t,type:n[1]}))}const ek={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ak({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new rk({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new nk({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new nk({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};class nk extends Lu{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class rk extends Lu{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class ak extends Lu{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function ik(t,e,n={}){const{as:r="Array",checksumAddress:a=!1}=n,i="string"==typeof e?jl(e):e,s=function(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(ek);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}(i);if(0===Ul(i)&&t.length>0)throw new dk;if(Ul(i)&&Ul(i)<32)throw new uk({data:"string"==typeof e?e:ml(e),parameters:t,size:Ul(i)});let o=0;const c="Array"===r?[]:{};for(let e=0;e<t.length;++e){const n=t[e];s.setPosition(o);const[i,u]=Wx(s,n,{checksumAddress:a,staticPosition:0});o+=u,"Array"===r?c.push(i):c[n.name??e]=i}return c}function sk(t,e,n){const{checksumAddress:r=!1}={};if(t.length!==e.length)throw new hk({expectedLength:t.length,givenLength:e.length});const a=function({checksumAddress:t,parameters:e,values:n}){const r=[];for(let a=0;a<e.length;a++)r.push($x({checksumAddress:t,parameter:e[a],value:n[a]}));return r}({checksumAddress:r,parameters:t,values:e}),i=Qx(a);return 0===i.length?"0x":i}function ok(t,e){if(t.length!==e.length)throw new hk({expectedLength:t.length,givenLength:e.length});const n=[];for(let r=0;r<t.length;r++){const a=t[r],i=e[r];n.push(ok.encode(a,i))}return fl(...n)}function ck(t){return Array.isArray(t)&&"string"==typeof t[0]||"string"==typeof t?Gx(t):t}!function(t){t.encode=function t(e,n,r=!1){if("address"===e){const t=n;return _f(t),bl(t.toLowerCase(),r?32:0)}if("string"===e)return gl(n);if("bytes"===e)return n;if("bool"===e)return bl(pl(n),r?32:1);const a=e.match(Zx);if(a){const[t,e,i="256"]=a,s=Number.parseInt(i,10)/8;return yl(n,{size:r?32:s,signed:"int"===e})}const i=e.match(Vx);if(i){const[t,e]=i;if(Number.parseInt(e,10)!==(n.length-2)/2)throw new fk({expectedSize:Number.parseInt(e,10),value:n});return vl(n,r?32:0)}const s=e.match(Kx);if(s&&Array.isArray(n)){const[e,r]=s,a=[];for(let e=0;e<n.length;e++)a.push(t(r,n[e],!0));return 0===a.length?"0x":fl(...a)}throw new mk(e)}}(ok||(ok={}));class uk extends Lu{constructor({data:t,parameters:e,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${nx(e)})`,`Data: ${t} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class dk extends Lu{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class lk extends Lu{constructor({expectedLength:t,givenLength:e,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${t}\`. Given: \`${e}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class fk extends Lu{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${xl(e)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class hk extends Lu{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${e}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class pk extends Lu{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class mk extends Lu{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function yk(t,e={}){const{recovered:n}=e;if(void 0===t.r)throw new kk({signature:t});if(void 0===t.s)throw new kk({signature:t});if(n&&void 0===t.yParity)throw new kk({signature:t});if(t.r<0n||t.r>Hx)throw new Ak({value:t.r});if(t.s<0n||t.s>Hx)throw new Ik({value:t.s});if("number"==typeof t.yParity&&0!==t.yParity&&1!==t.yParity)throw new Ek({value:t.yParity})}function gk(t){if(130!==t.length&&132!==t.length)throw new xk({signature:t});const e=BigInt(wl(t,0,32)),n=BigInt(wl(t,32,64)),r=(()=>{const e=Number(`0x${t.slice(130)}`);if(!Number.isNaN(e))try{return wk(e)}catch{throw new Ek({value:e})}})();return void 0===r?{r:e,s:n}:{r:e,s:n,yParity:r}}function bk(t){if(void 0!==t.r&&void 0!==t.s)return function(t){const e="string"==typeof t?gk(t):t instanceof Uint8Array?function(t){return gk(ml(t))}(t):"string"==typeof t.r?function(t){const e=(()=>{const e=t.v?Number(t.v):void 0;let n=t.yParity?Number(t.yParity):void 0;if("number"==typeof e&&"number"!=typeof n&&(n=wk(e)),"number"!=typeof n)throw new Ek({value:t.yParity});return n})();return{r:BigInt(t.r),s:BigInt(t.s),yParity:e}}(t):t.v?function(t){return{r:t.r,s:t.s,yParity:wk(t.v)}}(t):{r:t.r,s:t.s,...void 0!==t.yParity?{yParity:t.yParity}:{}};return yk(e),e}(t)}function vk(t){yk(t);const e=t.r,n=t.s;return fl(yl(e,{size:32}),yl(n,{size:32}),"number"==typeof t.yParity?yl(function(t){if(0===t)return 27;if(1===t)return 28;throw new Ek({value:t})}(t.yParity),{size:1}):"0x")}function wk(t){if(0===t||27===t)return 0;if(1===t||28===t)return 1;if(t>=35)return t%2==0?1:0;throw new Pk({value:t})}class xk extends Lu{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${xl(hl(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class kk extends Lu{constructor({signature:t}){super(`Signature \`${ul(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Ak extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class Ik extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class Ek extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Pk extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function Sk(t,e={}){return"string"==typeof t.chainId?function(t){const{address:e,chainId:n,nonce:r}=t,a=bk(t);return{address:e,chainId:Number(n),nonce:BigInt(r),...a}}(t):{...t,...e.signature}}const _k=ck("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function Ok(t){if("string"==typeof t){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==wl(t,-32))throw new Tk(t)}else yk(t.authorization)}let Tk=class extends Lu{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};function Bk(t){const{address:e,data:n,signature:r,to:a="hex"}=t,i=_m([Um([{type:"address"},{type:"bytes"},{type:"bytes"}],[e,n,r]),"0x6492649264926492649264926492649264926492649264926492649264926492"]);return"hex"===a?i:fm(i)}class Mk extends hp{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}async function Ck(t,{address:e,blockNumber:n,blockTag:r,storageKeys:a}){const i=r??"latest",s=void 0!==n?im(n):void 0;return function(t){return{...t,balance:t.balance?BigInt(t.balance):void 0,nonce:t.nonce?Xp(t.nonce):void 0,storageProof:t.storageProof?(e=t.storageProof,e.map(t=>({...t,value:BigInt(t.value)}))):void 0};var e}(await t.request({method:"eth_getProof",params:[e,a,s||i]}))}async function Nk(t,{blockHash:e,blockNumber:n,blockTag:r,hash:a,index:i}){const s=r||"latest",o=void 0!==n?im(n):void 0;let c=null;if(c=a?await t.request({method:"eth_getTransactionByHash",params:[a]},{dedupe:!0}):e?await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,im(i)]},{dedupe:!0}):await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||s,im(i)]},{dedupe:Boolean(o)}),!c)throw new By({blockHash:e,blockNumber:n,blockTag:s,hash:a,index:i});return(t.chain?.formatters?.transaction?.format||eb)(c,"getTransaction")}async function jk(t,{hash:e}){const n=await t.request({method:"eth_getTransactionReceipt",params:[e]},{dedupe:!0});if(!n)throw new My({hash:e});return(t.chain?.formatters?.transactionReceipt?.format||Tv)(n,"getTransactionReceipt")}async function Rk(t,e){const{blockNumber:n,blockTag:r=t.experimental_blockTag??"latest",blocks:a,returnFullTransactions:i,traceTransfers:s,validation:o}=e;try{const e=[];for(const t of a){const n=t.blockOverrides?Fb(t.blockOverrides):void 0,r=t.calls.map(t=>{const e=t,n=e.account?Ym(e.account):void 0,r=e.abi?Qm(e):e.data,a={...e,account:n,data:e.dataSuffix?Sm([r||"0x",e.dataSuffix]):r,from:e.from??n?.address};return Jg(a),Kg(a)}),a=t.stateOverrides?Hg(t.stateOverrides):void 0;e.push({blockOverrides:n,calls:r,stateOverrides:a})}const c=("bigint"==typeof n?im(n):void 0)||r;return(await t.request({method:"eth_simulateV1",params:[{blockStateCalls:e,returnFullTransactions:i,traceTransfers:s,validation:o},c]})).map((t,e)=>({...rb(t),calls:t.calls.map((t,n)=>{const{abi:r,args:i,functionName:s,to:o}=a[e].calls[n],c=t.error?.data??t.returnData,u=BigInt(t.gasUsed),d=t.logs?.map(t=>Nb(t)),l="0x1"===t.status?"success":"failure",f=r&&"success"===l&&"0x"!==c?Lb({abi:r,data:c,functionName:s}):null,h=(()=>{if("success"===l)return;let e;return"0x"===t.error?.data?e=new bp:t.error&&(e=new Fy(t.error)),e?vg(e,{abi:r??[],address:o??"0x",args:i,functionName:s??"<unknown>"}):void 0})();return{data:c,gasUsed:u,logs:d,status:l,..."success"===l?{result:f}:{error:h}}})}))}catch(t){const e=t,n=Fg(e,{});if(n instanceof zg)throw e;throw n}}function Uk(t){let e=!0,n="",r=0,a="",i=!1;for(let s=0;s<t.length;s++){const o=t[s];if(["(",")",","].includes(o)&&(e=!0),"("===o&&r++,")"===o&&r--,e)if(0!==r)" "!==o?(a+=o,n+=o):","!==t[s-1]&&","!==n&&",("!==n&&(n="",e=!1);else if(" "===o&&["event","function","error",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}}if(!i)throw new Lu("Unable to normalize signature.");return a}function Lk(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Tf(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in e?Object.values(e.components).every((e,n)=>Lk(Object.values(t)[n],e)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(t)&&t.every(t=>Lk(t,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function zk(t,e,n){for(const r in t){const a=t[r],i=e[r];if("tuple"===a.type&&"tuple"===i.type&&"components"in a&&"components"in i)return zk(a.components,i.components,n[r]);const s=[a.type,i.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&Tf(n[r],{strict:!1}))())return s}}function Fk(t,e={}){const{prepare:n=!0}=e,r=Array.isArray(t)||"string"==typeof t?qx(t):t;return{...r,...n?{hash:Gk(r)}:{}}}function Dk(t,e,n){const{args:r=[],prepare:a=!0}=n??{},i=Il(e,{strict:!1}),s=t.filter(t=>i?"function"===t.type||"error"===t.type?qk(t)===wl(e,0,4):"event"===t.type&&Gk(t)===e:"name"in t&&t.name===e);if(0===s.length)throw new Vk({name:e});if(1===s.length)return{...s[0],...a?{hash:Gk(s[0])}:{}};let o;for(const t of s){if(!("inputs"in t))continue;if(!r||0===r.length){if(!t.inputs||0===t.inputs.length)return{...t,...a?{hash:Gk(t)}:{}};continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==r.length)continue;const e=r.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&Lk(e,r)});if(e){if(o&&"inputs"in o&&o.inputs){const e=zk(t.inputs,o.inputs,r);if(e)throw new Kk({abiItem:t,type:e[0]},{abiItem:o,type:e[1]})}o=t}}const c=(()=>{if(o)return o;const[t,...e]=s;return{...t,overloads:e}})();if(!c)throw new Vk({name:e});return{...c,...a?{hash:Gk(c)}:{}}}function qk(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return wl(Gk(e),0,4)}function Gk(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:yf(gl(function(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return Uk("string"==typeof e?e:rx(e))}(e)))}class Kk extends Lu{constructor(t,e){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${Uk(rx(t.abiItem))}\`, and`,`\`${e.type}\` in \`${Uk(rx(e.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Vk extends Lu{constructor({name:t,data:e,type:n="item"}){super(`ABI ${n}${t?` with name "${t}"`:e?` with data "${e}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function Zk(t){const e=t.find(t=>"constructor"===t.type);if(!e)throw new Vk({name:"constructor"});return e}function Hk(...t){const[e,n=[]]=(()=>{if(Array.isArray(t[0])){const[e,n,r]=t;return[Jk(e,n,{args:r}),r]}const[e,n]=t;return[e,n]})(),{overloads:r}=e,a=r?Jk([e,...r],e.name,{args:n}):e,i=qk(a);const s=n.length>0?sk(a.inputs,n):void 0;return s?fl(i,s):i}function Wk(t,e={}){return Fk(t,e)}function Jk(t,e,n){const r=Dk(t,e,n);if("function"!==r.type)throw new Vk({name:e,type:"function"});return r}const Yk="0x0000000000000000000000000000000000000000";async function $k(t,e){const{blockNumber:n,blockTag:r,calls:a,stateOverrides:i,traceAssetChanges:s,traceTransfers:o,validation:c}=e,u=e.account?Ym(e.account):void 0;if(s&&!u)throw new hp("`account` is required when `traceAssetChanges` is true");const d=u?function(...t){const[e,n]=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return[Zk(e),n]}return t})(),{bytecode:r,args:a}=n;return fl(r,e.inputs?.length&&a?.length?sk(e.inputs,a):"0x")}(Fk("constructor(bytes, bytes)"),{bytecode:$b,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",Hk(Wk("function getBalance(address)"),[u.address])]}):void 0;const l=s?await Promise.all(e.calls.map(async e=>{if(!e.data&&!e.abi)return;const{accessList:n}=await fw(t,{account:u.address,...e,data:e.abi?Qm(e):e.data});return n.map(({address:t,storageKeys:e})=>e.length>0?t:null)})).then(t=>t.flat().filter(Boolean)):[],f=await Rk(t,{blockNumber:n,blockTag:r,blocks:[...s?[{calls:[{data:d}],stateOverrides:i},{calls:l.map((t,e)=>({abi:[Wk("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:t,from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]}]:[],{calls:[...a,{}].map(t=>({...t,from:u?.address})),stateOverrides:i},...s?[{calls:[{data:d}]},{calls:l.map((t,e)=>({abi:[Wk("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:t,from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function decimals() returns (uint256)")],functionName:"decimals",from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function symbol() returns (string)")],functionName:"symbol",from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]}]:[]],traceTransfers:o,validation:c}),h=s?f[2]:f[0],[p,m,,y,g,b,v,w]=s?f:[],{calls:x,...k}=h,A=x.slice(0,-1)??[],I=[...p?.calls??[],...m?.calls??[]].map(t=>"success"===t.status?Qp(t.data):null),E=[...y?.calls??[],...g?.calls??[]].map(t=>"success"===t.status?Qp(t.data):null),P=(b?.calls??[]).map(t=>"success"===t.status?t.result:null),S=(w?.calls??[]).map(t=>"success"===t.status?t.result:null),_=(v?.calls??[]).map(t=>"success"===t.status?t.result:null),O=[];for(const[t,e]of E.entries()){const n=I[t];if("bigint"!=typeof e)continue;if("bigint"!=typeof n)continue;const r=P[t-1],a=S[t-1],i=_[t-1],s=(()=>0===t?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:l[t-1],decimals:i||r?Number(r??1):void 0,symbol:a??void 0})();O.some(t=>t.token.address===s.address)||O.push({token:s,value:{pre:n,post:e,diff:e-n}})}return{assetChanges:O,block:k,results:A}}const Qk="0x6492649264926492649264926492649264926492649264926492649264926492";function Xk(t){try{return function(t){if(wl(t,-32)!==Qk)throw new tA(t)}(t),!0}catch{return!1}}class tA extends Lu{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}async function eA(t,e){const{address:n,hash:r,erc6492VerifierAddress:a=e.universalSignatureVerifierAddress??t.chain?.contracts?.erc6492Verifier?.address,multicallAddress:i=e.multicallAddress??t.chain?.contracts?.multicall3?.address}=e,s=(()=>{const t=e.signature;return cp(t)?t:"object"==typeof t&&"r"in t&&"s"in t?function({r:t,s:e,to:n="hex",v:r,yParity:a}){const i=(()=>{if(0===a||1===a)return a;if(r&&(27n===r||28n===r||r>=35n))return r%2n==0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),s=`0x${new dc.Signature(Qp(t),Qp(e)).toCompactHex()}${0===i?"1b":"1c"}`;return"hex"===n?s:fm(s)}(t):am(t)})();try{return function(t){try{return Ok(t),!0}catch{return!1}}(s)?await async function(t,e){const{address:n,blockNumber:r,blockTag:a,hash:i,multicallAddress:s}=e,{authorization:o,data:c,signature:u,to:d}=function(t){Ok(t);const e=Al(wl(t,-64,-32)),n=wl(t,-e-64,-64),r=wl(t,0,-e-64),[a,i,s]=ik(_k,n);return{authorization:Sk({address:a.delegation,chainId:Number(a.chainId),nonce:a.nonce,yParity:a.yParity,r:a.r,s:a.s}),signature:r,...s&&"0x"!==s?{data:s,to:i}:{}}}(e.signature),l=await mw(t,{address:n,blockNumber:r,blockTag:a});if(l===_m(["0xef0100",o.address]))return await async function(t,e){const{address:n,blockNumber:r,blockTag:a,hash:i,signature:s}=e,o=await ip(t,hv,"readContract")({address:n,abi:Wb,args:[i,s],blockNumber:r,blockTag:a,functionName:"isValidSignature"}).catch(t=>{if(t instanceof Ry)throw new nA;throw t});if(o.startsWith("0x1626ba7e"))return!0;throw new nA}(t,{address:n,blockNumber:r,blockTag:a,hash:i,signature:u});const f={address:o.address,chainId:Number(o.chainId),nonce:Number(o.nonce),r:im(o.r,{size:32}),s:im(o.s,{size:32}),yParity:o.yParity},h=await async function({address:t,authorization:e,signature:n}){return Ob(Am(t),await Pg({authorization:e,signature:n}))}({address:n,authorization:f});if(!h)throw new nA;const p=await ip(t,hv,"readContract")({...s?{address:s}:{code:tv},authorizationList:[f],abi:Db,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...c?[{allowFailure:!0,target:d??n,callData:c}]:[],{allowFailure:!0,target:n,callData:Qm({abi:Wb,functionName:"isValidSignature",args:[i,u]})}]]}),m=p[p.length-1]?.returnData;if(m?.startsWith("0x1626ba7e"))return!0;throw new nA}(t,{...e,multicallAddress:i,signature:s}):await async function(t,e){const{address:n,factory:r,factoryData:a,hash:i,signature:s,verifierAddress:o,...c}=e,u=await(async()=>r||a?Xk(s)?s:function(t){const{data:e,signature:n,to:r}=t;return fl(sk(ck("address, bytes, bytes"),[r,e,n]),Qk)}({data:a,signature:s,to:r}):s)(),d=o?{to:o,data:Qm({abi:Jb,functionName:"isValidSig",args:[n,i,u]}),...c}:{data:iv({abi:Jb,args:[n,i,u],bytecode:Xb}),...c},{data:l}=await ip(t,lv,"call")(d).catch(t=>{if(t instanceof jy)throw new nA;throw t});if(function(t,e={}){let n=t;if(e.size&&($p(n,{size:e.size}),n=Yp(n)),"0x00"===Yp(n))return!1;if("0x01"===Yp(n))return!0;throw new Wp(n)}(l??"0x0"))return!0;throw new nA}(t,{...e,verifierAddress:a,signature:s})}catch(t){try{if(Ob(Am(n),await xg({hash:r,signature:s})))return!0}catch{}if(t instanceof nA)return!1;throw t}}class nA extends Error{}function rA(t,{emitOnBegin:e=!1,emitMissed:n=!1,onBlockNumber:r,onError:a,poll:i,pollingInterval:s=t.pollingInterval}){let o;return(void 0!==i?i:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type))?gv(yy(["watchBlockNumber",t.uid,e,n,s]),{onBlockNumber:r,onError:a},r=>vv(async()=>{try{const e=await ip(t,Av,"getBlockNumber")({cacheTime:0});if(void 0!==o){if(e===o)return;if(e-o>1&&n)for(let t=o+1n;t<e;t++)r.onBlockNumber(t,o),o=t}(void 0===o||e>o)&&(r.onBlockNumber(e,o),o=e)}catch(t){r.onError?.(t)}},{emitOnBegin:e,interval:s})):gv(yy(["watchBlockNumber",t.uid,e,n]),{onBlockNumber:r,onError:a},e=>{let n=!0,r=()=>n=!1;return(async()=>{try{const a=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),{unsubscribe:i}=await a.subscribe({params:["newHeads"],onData(t){if(!n)return;const r=Qp(t.result?.number);e.onBlockNumber(r,o),o=r},onError(t){e.onError?.(t)}});r=i,n||r()}catch(t){a?.(t)}})(),()=>r()})}const aA=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,iA=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;async function sA(t,e){const{address:n,domain:r,message:a,nonce:i,scheme:s,signature:o,time:c=new Date,...u}=e,d=function(t){const{scheme:e,statement:n,...r}=t.match(aA)?.groups??{},{chainId:a,expirationTime:i,issuedAt:s,notBefore:o,requestId:c,...u}=t.match(iA)?.groups??{},d=t.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...a?{chainId:Number(a)}:{},...i?{expirationTime:new Date(i)}:{},...s?{issuedAt:new Date(s)}:{},...o?{notBefore:new Date(o)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...e?{scheme:e}:{},...n?{statement:n}:{}}}(a);if(!d.address)return!1;const l=function(t){const{address:e,domain:n,message:r,nonce:a,scheme:i,time:s=new Date}=t;if(n&&r.domain!==n)return!1;if(a&&r.nonce!==a)return!1;if(i&&r.scheme!==i)return!1;if(r.expirationTime&&s>=r.expirationTime)return!1;if(r.notBefore&&s<r.notBefore)return!1;try{if(!r.address)return!1;if(!Pm(r.address,{strict:!1}))return!1;if(e&&!Ob(r.address,e))return!1}catch{return!1}return!0}({address:n,domain:r,message:d,nonce:i,scheme:s,time:c});if(!l)return!1;const f=Uw(a);return eA(t,{address:d.address,hash:f,signature:o,...u})}function oA(t){return{call:e=>lv(t,e),createAccessList:e=>fw(t,e),createBlockFilter:()=>async function(t){const e=Wm(t,{method:"eth_newBlockFilter"}),n=await t.request({method:"eth_newBlockFilter"});return{id:n,request:e(n),type:"block"}}(t),createContractEventFilter:e=>Jm(t,e),createEventFilter:e=>hw(t,e),createPendingTransactionFilter:()=>pw(t),estimateContractGas:e=>async function(t,e){const{abi:n,address:r,args:a,functionName:i,dataSuffix:s,...o}=e,c=Qm({abi:n,args:a,functionName:i});try{return await ip(t,_b,"estimateGas")({data:`${c}${s?s.replace("0x",""):""}`,to:r,...o})}catch(t){const e=o.account?Ym(o.account):void 0;throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:e?.address})}}(t,e),estimateGas:e=>_b(t,e),getBalance:e=>async function(t,{address:e,blockNumber:n,blockTag:r=t.experimental_blockTag??"latest"}){const a="bigint"==typeof n?im(n):void 0,i=await t.request({method:"eth_getBalance",params:[e,a||r]});return BigInt(i)}(t,e),getBlobBaseFee:()=>async function(t){const e=await t.request({method:"eth_blobBaseFee"});return BigInt(e)}(t),getBlock:e=>ib(t,e),getBlockNumber:e=>Av(t,e),getBlockTransactionCount:e=>async function(t,{blockHash:e,blockNumber:n,blockTag:r="latest"}={}){const a=void 0!==n?im(n):void 0;let i;return i=e?await t.request({method:"eth_getBlockTransactionCountByHash",params:[e]},{dedupe:!0}):await t.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]},{dedupe:Boolean(a)}),Xp(i)}(t,e),getBytecode:e=>mw(t,e),getChainId:()=>Ib(t),getCode:e=>mw(t,e),getContractEvents:e=>Rb(t,e),getEip712Domain:e=>async function(t,e){const{address:n,factory:r,factoryData:a}=e;try{const[e,i,s,o,c,u,d]=await ip(t,hv,"readContract")({abi:gw,address:n,functionName:"eip712Domain",factory:r,factoryData:a});return{domain:{name:i,version:s,chainId:Number(o),verifyingContract:c,salt:u},extensions:d,fields:e}}catch(t){const e=t;if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new yw({address:n});throw e}}(t,e),getEnsAddress:e=>async function(t,e){const{blockNumber:n,blockTag:r,coinType:a,name:i,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c?.ensTlds;if(d&&!d.some(t=>i.endsWith(t)))return null;const l=null!=a?[Wv(i),BigInt(a)]:[Wv(i)];try{const e=Qm({abi:Hb,functionName:"addr",args:l}),a={address:u,abi:Kb,functionName:"resolveWithGateways",args:[nm($v(i)),e,s??[Vv]],blockNumber:n,blockTag:r},o=ip(t,hv,"readContract"),c=await o(a);if("0x"===c[0])return null;const d=Lb({abi:Hb,args:l,functionName:"addr",data:c[0]});return"0x"===d||"0x00"===Yp(d)?null:d}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}(t,e),getEnsAvatar:e=>async function(t,{blockNumber:e,blockTag:n,assetGatewayUrls:r,name:a,gatewayUrls:i,strict:s,universalResolverAddress:o}){const c=await ip(t,lw,"getEnsText")({blockNumber:e,blockTag:n,key:"avatar",name:a,universalResolverAddress:o,gatewayUrls:i,strict:s});if(!c)return null;try{return await dw(t,{record:c,gatewayUrls:r})}catch{return null}}(t,e),getEnsName:e=>async function(t,e){const{address:n,blockNumber:r,blockTag:a,coinType:i=60n,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})();try{const e={address:u,abi:Vb,args:[n,i,s??[Vv]],functionName:"reverseWithGateways",blockNumber:r,blockTag:a},o=ip(t,hv,"readContract"),[c]=await o(e);return c||null}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}(t,e),getEnsResolver:e=>async function(t,e){const{blockNumber:n,blockTag:r,name:a}=e,{chain:i}=t,s=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!i)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:i,contract:"ensUniversalResolver"})})(),o=i?.ensTlds;if(o&&!o.some(t=>a.endsWith(t)))throw new Error(`${a} is not a valid ENS TLD (${o?.join(", ")}) for chain "${i.name}" (id: ${i.id}).`);const[c]=await ip(t,hv,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[nm($v(a))],blockNumber:n,blockTag:r});return c}(t,e),getEnsText:e=>lw(t,e),getFeeHistory:e=>bw(t,e),estimateFeesPerGas:e=>cb(t,e),getFilterChanges:t=>Iv(0,t),getFilterLogs:t=>async function(t,{filter:e}){const n=e.strict??!1,r=(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map(t=>Nb(t));return e.abi?Cb({abi:e.abi,logs:r,strict:n}):r}(0,t),getGasPrice:()=>sb(t),getLogs:e=>jb(t,e),getProof:e=>Ck(t,e),estimateMaxPriorityFeePerGas:e=>async function(t,e){return ob(t,e)}(t,e),getStorageAt:e=>async function(t,{address:e,blockNumber:n,blockTag:r="latest",slot:a}){const i=void 0!==n?im(n):void 0;return await t.request({method:"eth_getStorageAt",params:[e,a,i||r]})}(t,e),getTransaction:e=>Nk(t,e),getTransactionConfirmations:e=>async function(t,{hash:e,transactionReceipt:n}){const[r,a]=await Promise.all([ip(t,Av,"getBlockNumber")({}),e?ip(t,Nk,"getTransaction")({hash:e}):void 0]),i=n?.blockNumber||a?.blockNumber;return i?r-i+1n:0n}(t,e),getTransactionCount:e=>db(t,e),getTransactionReceipt:e=>jk(t,e),multicall:e=>async function(t,e){const{account:n,authorizationList:r,allowFailure:a=!0,blockNumber:i,blockOverrides:s,blockTag:o,stateOverride:c}=e,u=e.contracts,{batchSize:d=e.batchSize??1024,deployless:l=e.deployless??!1}="object"==typeof t.batch?.multicall?t.batch.multicall:{},f=(()=>{if(e.multicallAddress)return e.multicallAddress;if(l)return null;if(t.chain)return sv({blockNumber:i,chain:t.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),h=[[]];let p=0,m=0;for(let t=0;t<u.length;t++){const{abi:e,address:r,args:i,functionName:s}=u[t];try{const t=Qm({abi:e,args:i,functionName:s});m+=(t.length-2)/2,d>0&&m>d&&h[p].length>0&&(p++,m=(t.length-2)/2,h[p]=[]),h[p]=[...h[p],{allowFailure:!0,callData:t,target:r}]}catch(t){const o=vg(t,{abi:e,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:s,sender:n});if(!a)throw o;h[p]=[...h[p],{allowFailure:!0,callData:"0x",target:r}]}}const y=await Promise.allSettled(h.map(e=>ip(t,hv,"readContract")({...null===f?{code:tv}:{address:f},abi:Db,account:n,args:[e],authorizationList:r,blockNumber:i,blockOverrides:s,blockTag:o,functionName:"aggregate3",stateOverride:c}))),g=[];for(let t=0;t<y.length;t++){const e=y[t];if("rejected"===e.status){if(!a)throw e.reason;for(let n=0;n<h[t].length;n++)g.push({status:"failure",error:e.reason,result:void 0});continue}const n=e.value;for(let e=0;e<n.length;e++){const{returnData:r,success:i}=n[e],{callData:s}=h[t][e],{abi:o,address:c,functionName:d,args:l}=u[g.length];try{if("0x"===s)throw new bp;if(!i)throw new Fy({data:r});const t=Lb({abi:o,args:l,data:r,functionName:d});g.push(a?{result:t,status:"success"}:t)}catch(t){const e=vg(t,{abi:o,address:c,args:l,docsPath:"/docs/contract/multicall",functionName:d});if(!a)throw e;g.push({error:e,result:void 0,status:"failure"})}}}if(g.length!==u.length)throw new hp("multicall results mismatch");return g}(t,e),prepareTransactionRequest:e=>Sb(t,e),readContract:e=>hv(t,e),sendRawTransaction:e=>async function(t,{serializedTransaction:e}){return t.request({method:"eth_sendRawTransaction",params:[e]},{retryCount:0})}(t,e),sendRawTransactionSync:e=>async function(t,{serializedTransaction:e,throwOnReceiptRevert:n,timeout:r}){const a=await t.request({method:"eth_sendRawTransactionSync",params:r?[e,im(r)]:[e]},{retryCount:0}),i=(t.chain?.formatters?.transactionReceipt?.format||Tv)(a);if("reverted"===i.status&&n)throw new Cy({receipt:i});return i}(t,e),simulate:e=>Rk(t,e),simulateBlocks:e=>Rk(t,e),simulateCalls:e=>$k(t,e),simulateContract:e=>async function(t,e){const{abi:n,address:r,args:a,dataSuffix:i,functionName:s,...o}=e,c=o.account?Ym(o.account):t.account,u=Qm({abi:n,args:a,functionName:s});try{const{data:d}=await ip(t,lv,"call")({batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:r,...o,account:c});return{result:Lb({abi:n,args:a,functionName:s,data:d||"0x"}),request:{abi:n.filter(t=>"name"in t&&t.name===e.functionName),address:r,args:a,dataSuffix:i,functionName:s,...o,account:c}}}catch(t){throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/simulateContract",functionName:s,sender:c?.address})}}(t,e),verifyHash:e=>eA(t,e),verifyMessage:e=>async function(t,{address:e,message:n,factory:r,factoryData:a,signature:i,...s}){return eA(t,{address:e,factory:r,factoryData:a,hash:Uw(n),signature:i,...s})}(t,e),verifySiweMessage:e=>sA(t,e),verifyTypedData:e=>async function(t,e){const{address:n,factory:r,factoryData:a,signature:i,message:s,primaryType:o,types:c,domain:u,...d}=e;return eA(t,{address:n,factory:r,factoryData:a,hash:Gw({message:s,primaryType:o,types:c,domain:u}),signature:i,...d})}(t,e),uninstallFilter:t=>Ev(0,t),waitForTransactionReceipt:e=>async function(t,e){const{checkReplacement:n=!0,confirmations:r=1,hash:a,onReplaced:i,retryCount:s=6,retryDelay:o=({count:t})=>200*(1<<t),timeout:c=18e4}=e,u=yy(["waitForTransactionReceipt",t.uid,a]),d=e.pollingInterval?e.pollingInterval:t.chain?.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval;let l,f,h,p,m,y=!1;const{promise:g,resolve:b,reject:v}=cv(),w=c?setTimeout(()=>{m?.(),p?.(),v(new Ny({hash:a}))},c):void 0;return p=gv(u,{onReplaced:i,resolve:b,reject:v},async e=>{if(h=await ip(t,jk,"getTransactionReceipt")({hash:a}).catch(()=>{}),h&&r<=1)return clearTimeout(w),e.resolve(h),void p?.();m=ip(t,rA,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:d,async onBlockNumber(i){const c=t=>{clearTimeout(w),m?.(),t(),p?.()};let u=i;if(!y)try{if(h){if(r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;return void c(()=>e.resolve(h))}if(n&&!l&&(y=!0,await _v(async()=>{l=await ip(t,Nk,"getTransaction")({hash:a}),l.blockNumber&&(u=l.blockNumber)},{delay:o,retryCount:s}),y=!1),h=await ip(t,jk,"getTransactionReceipt")({hash:a}),r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;c(()=>e.resolve(h))}catch(n){if(n instanceof By||n instanceof My){if(!l)return void(y=!1);try{f=l,y=!0;const n=await _v(()=>ip(t,ib,"getBlock")({blockNumber:u,includeTransactions:!0}),{delay:o,retryCount:s,shouldRetry:({error:t})=>t instanceof Xg});y=!1;const a=n.transactions.find(({from:t,nonce:e})=>t===f.from&&e===f.nonce);if(!a)return;if(h=await ip(t,jk,"getTransactionReceipt")({hash:a.hash}),r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;let i="replaced";a.to===f.to&&a.value===f.value&&a.input===f.input?i="repriced":a.from===a.to&&0n===a.value&&(i="cancelled"),c(()=>{e.onReplaced?.({reason:i,replacedTransaction:f,transaction:a,transactionReceipt:h}),e.resolve(h)})}catch(t){c(()=>e.reject(t))}}else c(()=>e.reject(n))}}})}),g}(t,e),watchBlocks:e=>function(t,{blockTag:e=t.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:a,onError:i,includeTransactions:s,poll:o,pollingInterval:c=t.pollingInterval}){const u=void 0!==o?o:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type),d=s??!1;let l;return u?gv(yy(["watchBlocks",t.uid,e,n,r,d,c]),{onBlock:a,onError:i},a=>vv(async()=>{try{const r=await ip(t,ib,"getBlock")({blockTag:e,includeTransactions:d});if(null!==r.number&&null!=l?.number){if(r.number===l.number)return;if(r.number-l.number>1&&n)for(let e=l?.number+1n;e<r.number;e++){const n=await ip(t,ib,"getBlock")({blockNumber:e,includeTransactions:d});a.onBlock(n,l),l=n}}(null==l?.number||"pending"===e&&null==r?.number||null!==r.number&&r.number>l.number)&&(a.onBlock(r,l),l=r)}catch(t){a.onError?.(t)}},{emitOnBegin:r,interval:c})):(()=>{let n=!0,s=!0,o=()=>n=!1;return(async()=>{try{r&&ip(t,ib,"getBlock")({blockTag:e,includeTransactions:d}).then(t=>{n&&s&&(a(t,void 0),s=!1)}).catch(i);const c=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),{unsubscribe:u}=await c.subscribe({params:["newHeads"],async onData(e){if(!n)return;const r=await ip(t,ib,"getBlock")({blockNumber:e.result?.number,includeTransactions:d}).catch(()=>{});n&&(a(r,l),s=!1,l=r)},onError(t){i?.(t)}});o=u,n||o()}catch(t){i?.(t)}})(),()=>o()})()}(t,e),watchBlockNumber:e=>rA(t,e),watchContractEvent:e=>function(t,e){const{abi:n,address:r,args:a,batch:i=!0,eventName:s,fromBlock:o,onError:c,onLogs:u,poll:d,pollingInterval:l=t.pollingInterval,strict:f}=e;return(void 0!==d?d:"bigint"==typeof o||"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type))?(()=>{const e=f??!1;return gv(yy(["watchContractEvent",r,a,i,t.uid,s,l,e,o]),{onLogs:u,onError:c},c=>{let u,d;void 0!==o&&(u=o-1n);let f=!1;const h=vv(async()=>{if(f)try{let o;if(d)o=await ip(t,Iv,"getFilterChanges")({filter:d});else{const i=await ip(t,Av,"getBlockNumber")({});o=u&&u<i?await ip(t,Rb,"getContractEvents")({abi:n,address:r,args:a,eventName:s,fromBlock:u+1n,toBlock:i,strict:e}):[],u=i}if(0===o.length)return;if(i)c.onLogs(o);else for(const t of o)c.onLogs([t])}catch(t){d&&t instanceof $y&&(f=!1),c.onError?.(t)}else{try{d=await ip(t,Jm,"createContractEventFilter")({abi:n,address:r,args:a,eventName:s,strict:e,fromBlock:o})}catch{}f=!0}},{emitOnBegin:!0,interval:l});return async()=>{d&&await ip(t,Ev,"uninstallFilter")({filter:d}),h()}})})():(()=>{const e=f??!1,o=yy(["watchContractEvent",r,a,i,t.uid,s,l,e]);let d=!0,h=()=>d=!1;return gv(o,{onLogs:u,onError:c},e=>((async()=>{try{const i=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),o=s?Zm({abi:n,eventName:s,args:a}):[],{unsubscribe:c}=await i.subscribe({params:["logs",{address:r,topics:o}],onData(t){if(!d)return;const r=t.result;try{const{eventName:t,args:a}=Bb({abi:n,data:r.data,topics:r.topics,strict:f}),i=Nb(r,{args:a,eventName:t});e.onLogs([i])}catch(t){let n,a;if(t instanceof Cp||t instanceof Np){if(f)return;n=t.abiItem.name,a=t.abiItem.inputs?.some(t=>!("name"in t&&t.name))}const i=Nb(r,{args:a?[]:{},eventName:n});e.onLogs([i])}},onError(t){e.onError?.(t)}});h=c,d||h()}catch(t){c?.(t)}})(),()=>h()))})()}(t,e),watchEvent:e=>function(t,{address:e,args:n,batch:r=!0,event:a,events:i,fromBlock:s,onError:o,onLogs:c,poll:u,pollingInterval:d=t.pollingInterval,strict:l}){const f=void 0!==u?u:"bigint"==typeof s||"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type),h=l??!1;return f?gv(yy(["watchEvent",e,n,r,t.uid,a,d,s]),{onLogs:c,onError:o},o=>{let c,u;void 0!==s&&(c=s-1n);let l=!1;const f=vv(async()=>{if(l)try{let s;if(u)s=await ip(t,Iv,"getFilterChanges")({filter:u});else{const r=await ip(t,Av,"getBlockNumber")({});s=c&&c!==r?await ip(t,jb,"getLogs")({address:e,args:n,event:a,events:i,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===s.length)return;if(r)o.onLogs(s);else for(const t of s)o.onLogs([t])}catch(t){u&&t instanceof $y&&(l=!1),o.onError?.(t)}else{try{u=await ip(t,hw,"createEventFilter")({address:e,args:n,event:a,events:i,strict:h,fromBlock:s})}catch{}l=!0}},{emitOnBegin:!0,interval:d});return async()=>{u&&await ip(t,Ev,"uninstallFilter")({filter:u}),f()}}):(()=>{let r=!0,s=()=>r=!1;return(async()=>{try{const u=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),d=i??(a?[a]:void 0);let f=[];if(d){const t=d.flatMap(t=>Zm({abi:[t],eventName:t.name,args:n}));f=[t],a&&(f=f[0])}const{unsubscribe:p}=await u.subscribe({params:["logs",{address:e,topics:f}],onData(t){if(!r)return;const e=t.result;try{const{eventName:t,args:n}=Bb({abi:d??[],data:e.data,topics:e.topics,strict:h}),r=Nb(e,{args:n,eventName:t});c([r])}catch(t){let n,r;if(t instanceof Cp||t instanceof Np){if(l)return;n=t.abiItem.name,r=t.abiItem.inputs?.some(t=>!("name"in t&&t.name))}const a=Nb(e,{args:r?[]:{},eventName:n});c([a])}},onError(t){o?.(t)}});s=p,r||s()}catch(t){o?.(t)}})(),()=>s()})()}(t,e),watchPendingTransactions:e=>function(t,{batch:e=!0,onError:n,onTransactions:r,poll:a,pollingInterval:i=t.pollingInterval}){return(void 0!==a?a:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type)?gv(yy(["watchPendingTransactions",t.uid,e,i]),{onTransactions:r,onError:n},n=>{let r;const a=vv(async()=>{try{if(!r)try{return void(r=await ip(t,pw,"createPendingTransactionFilter")({}))}catch(t){throw a(),t}const i=await ip(t,Iv,"getFilterChanges")({filter:r});if(0===i.length)return;if(e)n.onTransactions(i);else for(const t of i)n.onTransactions([t])}catch(t){n.onError?.(t)}},{emitOnBegin:!0,interval:i});return async()=>{r&&await ip(t,Ev,"uninstallFilter")({filter:r}),a()}}):(()=>{let e=!0,a=()=>e=!1;return(async()=>{try{const{unsubscribe:i}=await t.transport.subscribe({params:["newPendingTransactions"],onData(t){if(!e)return;const n=t.result;r([n])},onError(t){n?.(t)}});a=i,e||a()}catch(t){n?.(t)}})(),()=>a()})()}(t,e)}}class cA extends hp{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function uA(t,e={}){const{batch:n,fetchFn:r,fetchOptions:a,key:i="http",methods:s,name:o="HTTP JSON-RPC",onFetchRequest:c,onFetchResponse:u,retryDelay:d,raw:l}=e;return({chain:f,retryCount:h,timeout:p})=>{const{batchSize:m=1e3,wait:y=0}="object"==typeof n?n:{},g=e.retryCount??h,b=p??e.timeout??1e4,v=t||f?.rpcUrls.default.http[0];if(!v)throw new cA;const w=Rw(v,{fetchFn:r,fetchOptions:a,onRequest:c,onResponse:u,timeout:b});return function({key:t,methods:e,name:n,request:r,retryCount:a=3,retryDelay:i=150,timeout:s,type:o},c){return{config:{key:t,methods:e,name:n,request:r,retryCount:a,retryDelay:i,timeout:s,type:o},request:Ew(r,{methods:e,retryCount:a,retryDelay:i,uid:Lv()}),value:c}}({key:i,methods:s,name:o,async request({method:t,params:e}){const r={method:t,params:e},{schedule:a}=dv({id:v,wait:y,shouldSplitBatch:t=>t.length>m,fn:t=>w.request({body:t}),sort:(t,e)=>t.id-e.id}),[{error:i,result:s}]=await(async t=>n?a(t):[await w.request({body:t})])(r);if(l)return{error:i,result:s};if(i)throw new qy({body:r,error:i,url:v});return s},retryCount:g,retryDelay:d,timeout:b,type:"http"},{fetchOptions:a,url:v})}}function dA(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n}var lA,fA,hA;function pA(t,e,n){var r,a,i;window.ClientAnalytics&&(null===(r=window.ClientAnalytics)||void 0===r||r.logEvent(t,Object.assign(Object.assign({},e),{sdkVersion:$f,sdkName:Yf,appName:null!==(i=null===(a=oh.config.get().metadata)||void 0===a?void 0:a.appName)&&void 0!==i?i:"",appOrigin:window.location.origin}),n))}"function"==typeof SuppressedError&&SuppressedError,function(t){t.unknown="unknown",t.banner="banner",t.button="button",t.card="card",t.chart="chart",t.content_script="content_script",t.dropdown="dropdown",t.link="link",t.page="page",t.modal="modal",t.table="table",t.search_bar="search_bar",t.service_worker="service_worker",t.text="text",t.text_input="text_input",t.tray="tray",t.checkbox="checkbox",t.icon="icon"}(lA||(lA={})),function(t){t.unknown="unknown",t.blur="blur",t.click="click",t.change="change",t.dismiss="dismiss",t.focus="focus",t.hover="hover",t.select="select",t.measurement="measurement",t.move="move",t.process="process",t.render="render",t.scroll="scroll",t.view="view",t.search="search",t.keyPress="keyPress",t.error="error"}(fA||(fA={})),function(t){t.low="low",t.high="high"}(hA||(hA={}));const mA=({dialogContext:t})=>{pA(`dialog.${t}.shown`,{action:fA.render,componentType:lA.modal,dialogContext:t},hA.high)},yA=({dialogContext:t})=>{pA(`dialog.${t}.dismissed`,{action:fA.dismiss,componentType:lA.modal,dialogContext:t},hA.high)},gA=({dialogContext:t,dialogAction:e})=>{pA(`dialog.${t}.action_clicked`,{action:fA.click,componentType:lA.button,dialogContext:t,dialogAction:e},hA.high)},bA="BaseSans-Regular";var vA,wA,xA,kA,AA,IA,EA,PA,SA,_A,OA={},TA=[],BA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,MA=Array.isArray;function CA(t,e){for(var n in e)t[n]=e[n];return t}function NA(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function jA(t,e,n){var r,a,i,s={};for(i in e)"key"==i?r=e[i]:"ref"==i?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?vA.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===s[i]&&(s[i]=t.defaultProps[i]);return RA(t,s,r,a,null)}function RA(t,e,n,r,a){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++xA:a,__i:-1,__u:0};return null==a&&null!=wA.vnode&&wA.vnode(i),i}function UA(t){return t.children}function LA(t,e){this.props=t,this.context=e}function zA(t,e){if(null==e)return t.__?zA(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?zA(t):null}function FA(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return FA(t)}}function DA(t){(!t.__d&&(t.__d=!0)&&kA.push(t)&&!qA.__r++||AA!==wA.debounceRendering)&&((AA=wA.debounceRendering)||IA)(qA)}function qA(){var t,e,n,r,a,i,s,o;for(kA.sort(EA);t=kA.shift();)t.__d&&(e=kA.length,r=void 0,i=(a=(n=t).__v).__e,s=[],o=[],n.__P&&((r=CA({},a)).__v=a.__v+1,wA.vnode&&wA.vnode(r),YA(n.__P,r,a,n.__n,n.__P.namespaceURI,32&a.__u?[i]:null,s,null==i?zA(a):i,!!(32&a.__u),o),r.__v=a.__v,r.__.__k[r.__i]=r,$A(s,r,o),r.__e!=i&&FA(r)),kA.length>e&&kA.sort(EA));qA.__r=0}function GA(t,e,n,r,a,i,s,o,c,u,d){var l,f,h,p,m,y=r&&r.__k||TA,g=e.length;for(n.__d=c,KA(n,e,y),c=n.__d,l=0;l<g;l++)null!=(h=n.__k[l])&&(f=-1===h.__i?OA:y[h.__i]||OA,h.__i=l,YA(t,h,f,a,i,s,o,c,u,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&XA(f.ref,null,h),d.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||f.__k===h.__k?c=VA(h,c,t):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:p&&(c=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function KA(t,e,n){var r,a,i,s,o,c=e.length,u=n.length,d=u,l=0;for(t.__k=[],r=0;r<c;r++)null!=(a=e[r])&&"boolean"!=typeof a&&"function"!=typeof a?(s=r+l,(a=t.__k[r]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?RA(null,a,null,null,null):MA(a)?RA(UA,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?RA(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,i=null,-1!==(o=a.__i=ZA(a,n,s,d))&&(d--,(i=n[o])&&(i.__u|=131072)),null==i||null===i.__v?(-1==o&&l--,"function"!=typeof a.type&&(a.__u|=65536)):o!==s&&(o==s-1?l--:o==s+1?l++:(o>s?l--:l++,a.__u|=65536))):a=t.__k[r]=null;if(d)for(r=0;r<u;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=zA(i)),tI(i,i))}function VA(t,e,n){var r,a;if("function"==typeof t.type){for(r=t.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=t,e=VA(r[a],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=zA(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function ZA(t,e,n,r){var a=t.key,i=t.type,s=n-1,o=n+1,c=e[n];if(null===c||c&&a==c.key&&i===c.type&&!(131072&c.__u))return n;if(r>(null==c||131072&c.__u?0:1))for(;s>=0||o<e.length;){if(s>=0){if((c=e[s])&&!(131072&c.__u)&&a==c.key&&i===c.type)return s;s--}if(o<e.length){if((c=e[o])&&!(131072&c.__u)&&a==c.key&&i===c.type)return o;o++}}return-1}function HA(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||BA.test(e)?n:n+"px"}function WA(t,e,n,r,a){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||HA(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||HA(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=PA,t.addEventListener(e,i?_A:SA,i)):t.removeEventListener(e,i?_A:SA,i);else{if("http://www.w3.org/2000/svg"==a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function JA(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=PA++;else if(e.t<n.u)return;return n(wA.event?wA.event(e):e)}}}function YA(t,e,n,r,a,i,s,o,c,u){var d,l,f,h,p,m,y,g,b,v,w,x,k,A,I,E,P=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[o=e.__e=n.__e]),(d=wA.__b)&&d(e);t:if("function"==typeof P)try{if(g=e.props,b="prototype"in P&&P.prototype.render,v=(d=P.contextType)&&r[d.__c],w=d?v?v.props.value:d.__:r,n.__c?y=(l=e.__c=n.__c).__=l.__E:(b?e.__c=l=new P(g,w):(e.__c=l=new LA(g,w),l.constructor=P,l.render=eI),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=w,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),b&&null==l.__s&&(l.__s=l.state),b&&null!=P.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=CA({},l.__s)),CA(l.__s,P.getDerivedStateFromProps(g,l.__s))),h=l.props,p=l.state,l.__v=e,f)b&&null==P.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),b&&null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(b&&null==P.getDerivedStateFromProps&&g!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,w),!l.__e&&(null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&s.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,w),b&&null!=l.componentDidUpdate&&l.__h.push(function(){l.componentDidUpdate(h,p,m)})}if(l.context=w,l.props=g,l.__P=t,l.__e=!1,k=wA.__r,A=0,b){for(l.state=l.__s,l.__d=!1,k&&k(e),d=l.render(l.props,l.state,l.context),I=0;I<l._sb.length;I++)l.__h.push(l._sb[I]);l._sb=[]}else do{l.__d=!1,k&&k(e),d=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++A<25);l.state=l.__s,null!=l.getChildContext&&(r=CA(CA({},r),l.getChildContext())),b&&!f&&null!=l.getSnapshotBeforeUpdate&&(m=l.getSnapshotBeforeUpdate(h,p)),GA(t,MA(E=null!=d&&d.type===UA&&null==d.key?d.props.children:d)?E:[E],e,n,r,a,i,s,o,c,u),l.base=e.__e,e.__u&=-161,l.__h.length&&s.push(l),y&&(l.__E=l.__=null)}catch(t){if(e.__v=null,c||null!=i){for(e.__u|=c?160:32;o&&8===o.nodeType&&o.nextSibling;)o=o.nextSibling;i[i.indexOf(o)]=null,e.__e=o}else e.__e=n.__e,e.__k=n.__k;wA.__e(t,e,n)}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=QA(n.__e,e,n,r,a,i,s,c,u);(d=wA.diffed)&&d(e)}function $A(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)XA(n[r],n[++r],n[++r]);wA.__c&&wA.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){wA.__e(t,e.__v)}})}function QA(t,e,n,r,a,i,s,o,c){var u,d,l,f,h,p,m,y=n.props,g=e.props,b=e.type;if("svg"===b?a="http://www.w3.org/2000/svg":"math"===b?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!b&&(b?h.localName===b:3===h.nodeType)){t=h,i[u]=null;break}if(null==t){if(null===b)return document.createTextNode(g);t=document.createElementNS(a,b,g.is&&g),o&&(wA.__m&&wA.__m(e,i),o=!1),i=null}if(null===b)y===g||o&&t.data===g||(t.data=g);else{if(i=i&&vA.call(t.childNodes),y=n.props||OA,!o&&null!=i)for(y={},u=0;u<t.attributes.length;u++)y[(h=t.attributes[u]).name]=h.value;for(u in y)if(h=y[u],"children"==u);else if("dangerouslySetInnerHTML"==u)l=h;else if(!(u in g)){if("value"==u&&"defaultValue"in g||"checked"==u&&"defaultChecked"in g)continue;WA(t,u,null,h,a)}for(u in g)h=g[u],"children"==u?f=h:"dangerouslySetInnerHTML"==u?d=h:"value"==u?p=h:"checked"==u?m=h:o&&"function"!=typeof h||y[u]===h||WA(t,u,h,y[u],a);if(d)o||l&&(d.__html===l.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(l&&(t.innerHTML=""),GA(t,MA(f)?f:[f],e,n,r,"foreignObject"===b?"http://www.w3.org/1999/xhtml":a,i,s,i?i[0]:n.__k&&zA(n,0),o,c),null!=i)for(u=i.length;u--;)NA(i[u]);o||(u="value","progress"===b&&null==p?t.removeAttribute("value"):void 0!==p&&(p!==t[u]||"progress"===b&&!p||"option"===b&&p!==y[u])&&WA(t,u,p,y[u],a),u="checked",void 0!==m&&m!==t[u]&&WA(t,u,m,y[u],a))}return t}function XA(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(t){wA.__e(t,n)}}function tI(t,e,n){var r,a;if(wA.unmount&&wA.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||XA(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){wA.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(a=0;a<r.length;a++)r[a]&&tI(r[a],e,n||"function"!=typeof t.type);n||NA(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function eI(t,e,n){return this.constructor(t,n)}function nI(t,e,n){var r,a,i;wA.__&&wA.__(t,e),r=!1?null:e.__k,a=[],i=[],YA(e,t=e.__k=jA(UA,null,[t]),r||OA,OA,e.namespaceURI,r?null:e.firstChild?vA.call(e.childNodes):null,a,r?r.__e:e.firstChild,false,i),$A(a,t,i)}vA=TA.slice,wA={__e:function(t,e,n,r){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(t)),s=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(t,r||{}),s=a.__d),s)return a.__E=a}catch(e){t=e}throw t}},xA=0,LA.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=CA({},this.state),"function"==typeof t&&(t=t(CA({},n),this.props)),t&&CA(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),DA(this))},LA.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),DA(this))},LA.prototype.render=UA,kA=[],IA="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,EA=function(t,e){return t.__v.__b-e.__v.__b},qA.__r=0,PA=0,SA=JA(!1),_A=JA(!0);var rI=0;function aI(t,e,n,r,a,i){e||(e={});var s,o,c=e;"ref"in e&&(s=e.ref,delete e.ref);var u={type:t,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--rI,__i:-1,__u:0,__source:a,__self:i};if("function"==typeof t&&(s=t.defaultProps))for(o in s)void 0===c[o]&&(c[o]=s[o]);return wA.vnode&&wA.vnode(u),u}function iI(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=iI(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function sI(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=iI(t))&&(r&&(r+=" "),r+=e);return r}const oI=()=>aI("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 60 60",children:[aI("g",{clipPath:"url(#a)",children:[aI("path",{fill:"#000",d:"M48 0H12C5.373 0 0 5.373 0 12v36c0 6.627 5.373 12 12 12h36c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12"}),aI("path",{fill:"#fff",d:"M37.022 46.957 30 53.978l-7.02-7.02L30 39.935zM22.98 46.93h-9.93V37h9.93zm23.952 0h-9.93V37h9.93zM20.077 29.965l-7.02 7.021-7.022-7.021 7.022-7.02zm33.888 0-7.02 7.021-7.022-7.021 7.021-7.02zM22.98 22.93h-9.93V13h9.93zm14.022-9.928V13h9.93v9.93h-9.93v-9.89L30 20.042l-7.02-7.02L30 6z"})]}),aI("defs",{children:aI("clipPath",{children:aI("path",{fill:"#fff",d:"M0 0h60v60H0z"})})})]});var cI,uI,dI,lI,fI=0,hI=[],pI=wA,mI=pI.__b,yI=pI.__r,gI=pI.diffed,bI=pI.__c,vI=pI.unmount,wI=pI.__;function xI(t,e){pI.__h&&pI.__h(uI,t,fI||e),fI=0;var n=uI.__H||(uI.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function kI(t){return fI=1,function(t,e){var n=xI(cI++,2);if(n.t=t,!n.__c&&(n.__=[TI(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=uI,!uI.u)){var r=function(t,e,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(t){return!!t.__c});if(i.every(function(t){return!t.__N}))return!a||a.call(this,t,e,r);var s=!1;return i.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}}),!(!s&&n.__c.props===t)&&(!a||a.call(this,t,e,r))};uI.u=!0;var a=uI.shouldComponentUpdate,i=uI.componentWillUpdate;uI.componentWillUpdate=function(t,e,n){if(this.__e){var s=a;a=void 0,r(t,e,n),a=s}i&&i.call(this,t,e,n)},uI.shouldComponentUpdate=r}return n.__N||n.__}(TI,t)}function AI(t,e){var n=xI(cI++,3);!pI.__s&&OI(n.__H,e)&&(n.__=t,n.i=e,uI.__H.__h.push(n))}function II(){for(var t;t=hI.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(SI),t.__H.__h.forEach(_I),t.__H.__h=[]}catch(e){t.__H.__h=[],pI.__e(e,t.__v)}}pI.__b=function(t){uI=null,mI&&mI(t)},pI.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),wI&&wI(t,e)},pI.__r=function(t){yI&&yI(t),cI=0;var e=(uI=t.__c).__H;e&&(dI===uI?(e.__h=[],uI.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0})):(e.__h.forEach(SI),e.__h.forEach(_I),e.__h=[],cI=0)),dI=uI},pI.diffed=function(t){gI&&gI(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==hI.push(e)&&lI===pI.requestAnimationFrame||((lI=pI.requestAnimationFrame)||PI)(II)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.i=void 0})),dI=uI=null},pI.__c=function(t,e){e.some(function(t){try{t.__h.forEach(SI),t.__h=t.__h.filter(function(t){return!t.__||_I(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],pI.__e(n,t.__v)}}),bI&&bI(t,e)},pI.unmount=function(t){vI&&vI(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(t){try{SI(t)}catch(t){e=t}}),n.__H=void 0,e&&pI.__e(e,n.__v))};var EI="function"==typeof requestAnimationFrame;function PI(t){var e,n=function(){clearTimeout(r),EI&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);EI&&(e=requestAnimationFrame(n))}function SI(t){var e=uI,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),uI=e}function _I(t){var e=uI;t.__c=t.__(),uI=e}function OI(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function TI(t,e){return"function"==typeof e?e(t):e}function BI(){return window.innerWidth<=600&&window.innerHeight>window.innerWidth}const MI=()=>{const[t,e]=kI(!1);return AI(()=>{const t=()=>{e(BI())};return t(),window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]),t?aI("div",{class:"-base-acc-sdk-dialog-handle-bar"}):null};class CI{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null}attach(t){this.root=document.createElement("div"),this.root.className="-base-acc-sdk-dialog-root",t.appendChild(this.root),this.render()}presentItem(t){const e=this.nextItemKey++;this.items.set(e,t),this.render()}clear(){this.items.clear(),this.root&&nI(null,this.root)}render(){this.root&&nI(aI("div",{children:aI(NI,{children:Array.from(this.items.entries()).map(([t,e])=>jA(jI,Object.assign({},e,{key:t,handleClose:()=>{var t;this.clear(),null===(t=e.onClose)||void 0===t||t.call(e)}})))})}),this.root)}}const NI=t=>{const[e,n]=kI(0),[r,a]=kI(!1),[i,s]=kI(0);return aI("div",{class:sI("-base-acc-sdk-dialog-container"),children:[aI("style",{children:'.-base-acc-sdk-css-reset{-webkit-font-smoothing:antialiased;pointer-events:auto !important}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container *{user-select:none;box-sizing:border-box}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{align-items:flex-end;justify-content:stretch;padding:0}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{position:relative;z-index:2147483648}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{width:100%}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);width:380px;max-height:90vh;overflow:hidden;transform:scale(0.95);opacity:0;transition:all .2s ease-in-out}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{touch-action:pan-y;user-select:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:scale(0.9);opacity:0}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%)}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:scale(1);opacity:1}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0)}}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{width:100%;max-width:100%;border-radius:20px 20px 0 0;box-shadow:0 -10px 25px rgba(0,0,0,.15);max-height:80vh;transform:translateY(0)}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%);opacity:1}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0);opacity:1}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0 20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{padding:16px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title{display:flex;align-items:center;gap:8px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title-title{font-family:"BaseSans-Regular",sans-serif;font-size:14px;font-weight:400;color:#5b616e}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-cblogo{width:32px;height:32px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer;border-radius:6px;transition:background-color .2s}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close:hover{background-color:#f5f7f8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{width:14px;height:14px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{display:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:20px 20px 16px 20px;font-family:"BaseSans-Regular",sans-serif}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:8px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-title{font-size:20px;font-weight:600;line-height:28px;color:#0a0b0d;margin-bottom:10px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-message{font-size:16px;font-weight:400;line-height:24px;color:#5b616e;margin-bottom:0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{display:flex;padding:16px 20px 20px 20px;flex-direction:column}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{padding:16px 20px calc(20px + env(safe-area-inset-bottom)) 20px;gap:6px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button{font-family:"BaseSans-Regular",sans-serif;font-size:16px;font-weight:500;line-height:24px;border:none;border-radius:12px;padding:16px 24px;cursor:pointer;transition:all .2s ease-in-out;width:100%;margin:4px 0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button:disabled{opacity:.5;cursor:not-allowed}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary{background-color:#0a0b0d;color:#fff}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:hover:not(:disabled){background-color:#1c1e20}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:active:not(:disabled){background-color:#2a2d31}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary{background-color:#eef0f3;color:#0a0b0d}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:hover:not(:disabled){background-color:#e1e4e8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:active:not(:disabled){background-color:#d4d8dd}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-handle-bar{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:64px;height:4px;background-color:#d1d5db;border-radius:2px;opacity:0;animation:handleBarFadeIn .2s ease-in-out .2s forwards}@keyframes handleBarFadeIn{from{opacity:0}to{opacity:1}}'}),aI("div",{class:"-base-acc-sdk-dialog-backdrop",onTouchStart:t=>{if(!BI())return;const e=t.touches[0];s(e.clientY),a(!0)},onTouchMove:t=>{if(!r)return;const e=t.touches[0].clientY-i;e>0&&(n(e),t.preventDefault())},onTouchEnd:()=>{if(r)if(a(!1),e>100){const t=document.querySelector(".-base-acc-sdk-dialog-instance-header-close");t&&t.click()}else n(0)},children:aI("div",{class:"-base-acc-sdk-dialog",style:{transform:`translateY(${e}px)`,transition:r?"none":"transform 0.2s ease-out"},children:[aI(MI,{}),t.children]})})]})},jI=({title:t,message:e,actionItems:n,handleClose:r})=>{const[a,i]=kI(!0),[s,o]=kI(!0),[c,u]=kI(null);AI(()=>{const t=window.setTimeout(()=>{i(!1)},1);return()=>{window.clearTimeout(t)}},[]),AI(()=>{(async()=>{var t;const e=null===(t=oh.account.get().accounts)||void 0===t?void 0:t[0];if(e){const t=await async function(t){return function(t,e=4){return`${t.slice(0,2+e)}...${t.slice(-e)}`}(t)}(e);u(t)}o(!1)})()},[]);const d=function(t,e){var n=xI(cI++,7);return OI(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}(()=>c?`Signed in as ${c}`:"Startale App",[c]),l=!s;return aI("div",{class:sI("-base-acc-sdk-dialog-instance",a&&"-base-acc-sdk-dialog-instance-hidden"),children:[aI("div",{class:"-base-acc-sdk-dialog-instance-header",children:[aI("div",{class:"-base-acc-sdk-dialog-instance-header-icon-and-title",children:[aI(oI,{}),l&&aI("div",{class:"-base-acc-sdk-dialog-instance-header-icon-and-title-title",children:d})]}),aI("div",{class:"-base-acc-sdk-dialog-instance-header-close",onClick:r,children:aI("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzIDFMMSAxM20wLTEyTDEzIDEzIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+",class:"-base-acc-sdk-dialog-instance-header-close-icon"})})]}),aI("div",{class:"-base-acc-sdk-dialog-instance-content",children:[aI("div",{class:"-base-acc-sdk-dialog-instance-content-title",children:t}),aI("div",{class:"-base-acc-sdk-dialog-instance-content-message",children:e})]}),n&&n.length>0&&aI("div",{class:"-base-acc-sdk-dialog-instance-actions",children:n.map((t,e)=>aI("button",{class:sI("-base-acc-sdk-dialog-instance-button","primary"===t.variant&&"-base-acc-sdk-dialog-instance-button-primary","secondary"===t.variant&&"-base-acc-sdk-dialog-instance-button-secondary"),onClick:t.onClick,children:t.text},e))})]})};let RI=null;function UI(){if(!RI){const t=document.createElement("div");t.className="-base-acc-sdk-css-reset",document.body.appendChild(t),RI=new CI,RI.attach(t)}return function(){if(document.head.querySelector(`style[base-sdk-font="${bA}"]`))return;const t=document.createElement("style");t.setAttribute("base-sdk-font",bA),t.textContent='\n@font-face {\n font-family: "BaseSans-Regular";\n src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAJigAA8AAAACCywAAJg8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGoIuG4L7BhzCdAZgAJIGEQgKg+k0gv4NC4p0AAE2AiQDlWQEIAWGfgeublsIz5EGVeP2TiXfSAJ0G0LBr7Zlqf6pcAA3dwBbquuITJr6o7y2YrpNHoSyAwBKe/rZ//////+/IlmMMf8PuQcEUUitMtva1oSQhGamQkxJxpSLWVScqgQ1RW16VovNJTZ2uagkVSeuNje11QubnvZpYVB7yUGi4thNqJYBdoegR2V9jiA4dEhCOgf3Va7muEqhcRKz0dDNOVV47+hxPO9qkzFCUg5glpCZxKbOGFxehX5nYwGEBZOQwyRFIY5oljSrLwkSIj35dugPRJKk8G3GwUgw06hpknM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UZ+z10CDBLZrIfpmZ5dV85JSjJ8XtrbLKjfAsXYA2P6dpVSlbwGbajXkuWjhyuFo4TrNKxVsiv7q0LbsIV/68zaUw71X59WXD5jnGZ9/PIGNaHjWNLEsDQC4XjFFIFgwCJB3T3t527K03IHYWlrvsV6U3c3HwLqfxS3JoOBFCM1GUp0bjZnGUIfGARIkqkS8OkzYRZrInSqUjcSzadAtfvW5T8KozAYu2LVH+0IXgc/FDcZc8IAgdAkHeUIKLGlBOpeSbmRiW+qc9coGyIpCZZVkSOyCCstC0wWqVbY0pFfUYVD3f7wTQHgAHpsBBAEBZBODgEQhlQ9M02rp3srA5pxUvYzSOoIlKTVvxlCFQdXmtrIU6M23TVHXnxpybFR2q0n0oGtxUtrZLDQrx9VX8xWL2MQ1TqQ/dLnEbObO+tMox40BUNWblCpOi7bKmbV0AFHbZirNFCzOtBwGZTd32dTB53RcxFFjyCLV2PEsIu915+ZmaNkSyxlHXLzOkKfTNxHHI38JVhtawdFurteI9E7eSVO9nK4gSUgx3msEz1qCOpAhB0ZjbF6w5z7RVvThX0nYhtKQon2eZu1hmrcOB8RrPzrLotXhZc9RU2dTMaVVWSycJnKNhUUqOPNeC2PX6ployg2P53yvWtdRW18JNkgT08wtzVXM2OBXqyg9VnhwPGOw07JshDKrapPfl/JZ9U1UQv8muyogzfjq3zcXfBk5dUaandemo1Lpu+gfxRS0quGhm0MTixgxyGUTXdZZIb8fSeJ5iIbyL6xxlDU1z1Ondoq5WK/TiBmGFViZDOT9TXHjq9J/1n/df9F/2X2XX2eLqMYT6Bda7m7tPU7tesjePu86yzG/3v77fxWK6k+sviyhq2vJhA9bGk3/X5eN/AAAA")\n format("woff2");\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n}\n',document.head.appendChild(t)}(),RI}const LI="{app} wants to continue in Startale App",zI="This action requires your permission to open a new window.";function FI(t){const e=(window.innerWidth-420)/2+window.screenX,n=(window.innerHeight-700)/2+window.screenY;function r(){const r=`wallet_${crypto.randomUUID()}`,a=window.open(t,r,`width=420, height=700, left=${e}, top=${n}`);return null==a||a.focus(),a||null}!function(t){const e={sdkName:Yf,sdkVersion:$f,origin:window.location.origin,coop:ph()};for(const[n,r]of Object.entries(e))t.searchParams.has(n)||t.searchParams.append(n,r.toString())}(t);const a=r();return a?Promise.resolve(a):function(t){var e,n;const r=null!==(n=null===(e=oh.config.get().metadata)||void 0===e?void 0:e.appName)&&void 0!==n?n:"App",a=UI();return new Promise((e,n)=>{mA({dialogContext:"popup_blocked"}),a.presentItem({title:LI.replace("{app}",r),message:zI,onClose:()=>{gA({dialogContext:"popup_blocked",dialogAction:"cancel"}),n(l.internal("Popup window was blocked"))},actionItems:[{text:"Try again",variant:"primary",onClick:()=>{gA({dialogContext:"popup_blocked",dialogAction:"confirm"});const r=t();r?e(r):n(l.internal("Popup window was blocked")),a.clear()}},{text:"Cancel",variant:"secondary",onClick:()=>{gA({dialogContext:"popup_blocked",dialogAction:"cancel"}),n(l.internal("Popup window was blocked")),a.clear()}}]})})}(r)}class DI{constructor({url:t="https://app.startale.com",metadata:e,preference:n}){this.popup=null,this.listeners=new Map,this.postMessage=async t=>{(await this.waitForPopupLoaded()).postMessage(t,this.url.origin)},this.postRequestAndWaitForResponse=async t=>{const e=this.onMessage(({requestId:e})=>e===t.id);return this.postMessage(t),await e},this.onMessage=async t=>new Promise((e,n)=>{const r=n=>{if(n.origin!==this.url.origin)return;const a=n.data;t(a)&&(e(a),window.removeEventListener("message",r),this.listeners.delete(r))};window.addEventListener("message",r),this.listeners.set(r,{reject:n})}),this.disconnect=()=>{var t;(t=this.popup)&&!t.closed&&t.close(),this.popup=null,this.listeners.forEach(({reject:t},e)=>{t(f.userRejectedRequest("Request rejected")),window.removeEventListener("message",e)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(pA("communicator.popup_setup.started",{action:fA.unknown,componentType:lA.unknown},hA.high),this.popup=await FI(this.url),this.onMessage(({event:t})=>"PopupUnload"===t).then(()=>{this.disconnect(),pA("communicator.popup_unload.received",{action:fA.unknown,componentType:lA.unknown},hA.high)}).catch(()=>{}),this.onMessage(({event:t})=>"PopupLoaded"===t).then(t=>{this.postMessage({requestId:t.id,data:{version:$f,sdkName:Yf,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw l.internal();return pA("communicator.popup_setup.completed",{action:fA.unknown,componentType:lA.unknown},hA.high),this.popup})),this.url=new URL(t),this.metadata=e,this.preference=n}}function qI(t){const r=s(function(t){var r;if("string"==typeof t)return{message:t,code:e.internal};if(a=t,void 0!==a.errorMessage){const e=t.errorMessage,a=null!==(r=t.errorCode)&&void 0!==r?r:e.match(/(denied|rejected)/i)?n.userRejectedRequest:void 0;return Object.assign(Object.assign({},t),{message:e,code:a,data:{method:t.method}})}var a;return t}(t),{shouldIncludeStack:!0}),a=new URL("https://docs.startale.com/");return a.searchParams.set("version",$f),a.searchParams.set("code",r.code.toString()),a.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:""})}const GI=t=>"message"in t&&"string"==typeof t.message?t.message:"";const KI=t=>t;function VI(t){return Math.floor(t)}const ZI=/^[0-9]*$/,HI=/^[a-f0-9]*$/;function WI(t){return KI(`0x${BigInt(t).toString(16)}`)}function JI(t){return(e=t).startsWith("0x")||e.startsWith("0X")?t.slice(2):t;var e}function YI(t,e=!1){if("string"==typeof t){const n=JI(t).toLowerCase();if(HI.test(n))return KI(e?`0x${n}`:n)}throw l.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function $I(t){if("number"==typeof t&&Number.isInteger(t))return VI(t);if("string"==typeof t){if(ZI.test(t))return VI(Number(t));if(function(t){if("string"!=typeof t)return!1;const e=JI(t).toLowerCase();return HI.test(e)}(t))return VI(Number(BigInt(function(t,e=!1){let n=YI(t,!1);return n.length%2==1&&(n=KI(`0${n}`)),e?KI(`0x${n}`):n}(t,!0))))}throw l.invalidParams(`Not an integer: ${String(t)}`)}const QI=new TextDecoder,XI=Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((t,e)=>[e,t.charCodeAt(0)]));function tE(t,e={}){return function(t,e={}){const{pad:n=!0,url:r=!1}=e,a=new Uint8Array(4*Math.ceil(t.length/3));for(let e=0,n=0;n<t.length;e+=4,n+=3){const r=(t[n]<<16)+(t[n+1]<<8)+(0|t[n+2]);a[e]=XI[r>>18],a[e+1]=XI[r>>12&63],a[e+2]=XI[r>>6&63],a[e+3]=XI[63&r]}const i=t.length%3,s=4*Math.floor(t.length/3)+(i&&i+1);let o=QI.decode(new Uint8Array(a.buffer,0,s));return n&&1===i&&(o+="=="),n&&2===i&&(o+="="),r&&(o=o.replaceAll("+","-").replaceAll("/","_")),o}(jl(t),e)}
|
|
31
31
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((t,e)=>[t.charCodeAt(0),e]));const eE=ta(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),nE=nc({a:eE.create(BigInt("-3")),b:BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),Fp:eE,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},er),rE=ta(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff"));nc({a:rE.create(BigInt("-3")),b:BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef"),Fp:rE,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},rr);const aE=ta(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));nc({a:aE.create(BigInt("-3")),b:BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00"),Fp:aE,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},nr);
|
|
32
32
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
33
33
|
const iE=nE;function sE(t){const{challenge:e,crossOrigin:n,extraClientData:r,flag:a,origin:i,rpId:s,signCount:o,userVerification:c="required"}=t,u=function(t={}){const{flag:e=5,rpId:n=window.location.hostname,signCount:r=0}=t;return fl(gf(gl(n)),yl(e,{size:1}),yl(r,{size:4}))}({flag:a,rpId:s,signCount:o}),d=function(t){const{challenge:e,crossOrigin:n=!1,extraClientData:r,origin:a=window.location.origin}=t;return JSON.stringify({type:"webauthn.get",challenge:tE(e,{url:!0,pad:!1}),origin:a,crossOrigin:n,...r})}({challenge:e,crossOrigin:n,extraClientData:r,origin:i}),l=gf(gl(d)),f=d.indexOf('"challenge"'),h=d.indexOf('"type"');return{metadata:{authenticatorData:u,clientDataJSON:d,challengeIndex:f,typeIndex:h,userVerificationRequired:"required"===c},payload:fl(u,l)}}Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);const oE=[{inputs:[{name:"preOpGas",type:"uint256"},{name:"paid",type:"uint256"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"targetSuccess",type:"bool"},{name:"targetResult",type:"bytes"}],name:"ExecutionResult",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"}],name:"ValidationResult",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"},{components:[{name:"aggregator",type:"address"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"stakeInfo",type:"tuple"}],name:"aggregatorInfo",type:"tuple"}],name:"ValidationResultWithAggregation",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"SIG_VALIDATION_FAILED",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"},{name:"sender",type:"address"},{name:"paymasterAndData",type:"bytes"}],name:"_validateSenderAndPaymaster",outputs:[],stateMutability:"view",type:"function"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"op",type:"tuple"},{name:"target",type:"address"},{name:"targetCallData",type:"bytes"}],name:"simulateHandleOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"simulateValidation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];function cE(t){const{authorization:e,factory:n,factoryData:r}=t;if("0x7702"===n||"0x7702000000000000000000000000000000000000"===n){if(!e)return"0x7702000000000000000000000000000000000000";return Sm([e.address,r??"0x"])}return n?Sm([n,r??"0x"]):"0x"}function uE(t){const{callGasLimit:e,callData:n,maxPriorityFeePerGas:r,maxFeePerGas:a,paymaster:i,paymasterData:s,paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,sender:u,signature:d="0x",verificationGasLimit:l}=t;return{accountGasLimits:Sm([Kp(im(l||0n),{size:16}),Kp(im(e||0n),{size:16})]),callData:n,initCode:cE(t),gasFees:Sm([Kp(im(r||0n),{size:16}),Kp(im(a||0n),{size:16})]),nonce:t.nonce??0n,paymasterAndData:i?Sm([i,Kp(im(c||0n),{size:16}),Kp(im(o||0n),{size:16}),s||"0x"]):"0x",preVerificationGas:t.preVerificationGas??0n,sender:u,signature:d}}const dE={PackedUserOperation:[{type:"address",name:"sender"},{type:"uint256",name:"nonce"},{type:"bytes",name:"initCode"},{type:"bytes",name:"callData"},{type:"bytes32",name:"accountGasLimits"},{type:"uint256",name:"preVerificationGas"},{type:"bytes32",name:"gasFees"},{type:"bytes",name:"paymasterAndData"}]};function lE(t){const{chainId:e,entryPointAddress:n,entryPointVersion:r}=t,a=t.userOperation,{authorization:i,callData:s="0x",callGasLimit:o,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,paymasterAndData:l="0x",preVerificationGas:f,sender:h,verificationGasLimit:p}=a;if("0.8"===r)return Gw(function(t){const{chainId:e,entryPointAddress:n,userOperation:r}=t,a=uE(r);return{types:dE,primaryType:"PackedUserOperation",domain:{name:"ERC4337",version:"1",chainId:e,verifyingContract:n},message:a}}({chainId:e,entryPointAddress:n,userOperation:a}));const m=(()=>{if("0.6"===r){const t=a.initCode?.slice(0,42),e=a.initCode?.slice(42),n=cE({authorization:i,factory:t,factoryData:e});return Um([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"bytes32"}],[h,d,pm(n),pm(s),o,p,f,c,u,pm(l)])}if("0.7"===r){const t=uE(a);return Um([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"}],[t.sender,t.nonce,pm(t.initCode),pm(t.callData),t.accountGasLimits,t.preVerificationGas,t.gasFees,pm(t.paymasterAndData)])}throw new Error(`entryPointVersion "${r}" not supported.`)})();return pm(Um([{type:"bytes32"},{type:"address"},{type:"uint256"}],[pm(m),n,BigInt(e)]))}class fE extends hp{constructor({cause:t}){super("Smart Account is not deployed.",{cause:t,metaMessages:["This could arise when:","- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.","- An incorrect `sender` address is provided."],name:"AccountNotDeployedError"})}}Object.defineProperty(fE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});class hE extends hp{constructor({cause:t,data:e,message:n}={}){const r=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}Object.defineProperty(hE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32521}),Object.defineProperty(hE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class pE extends hp{constructor({cause:t}){super("Failed to send funds to beneficiary.",{cause:t,name:"FailedToSendToBeneficiaryError"})}}Object.defineProperty(pE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});class mE extends hp{constructor({cause:t}){super("Gas value overflowed.",{cause:t,metaMessages:["This could arise when:","- one of the gas values exceeded 2**120 (uint120)"].filter(Boolean),name:"GasValuesOverflowError"})}}Object.defineProperty(mE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});class yE extends hp{constructor({cause:t}){super("The `handleOps` function was called by the Bundler with a gas limit too low.",{cause:t,name:"HandleOpsOutOfGasError"})}}Object.defineProperty(yE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});class gE extends hp{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Failed to simulate deployment for Smart Account.",{cause:t,metaMessages:["This could arise when:","- Invalid `factory`/`factoryData` or `initCode` properties are present","- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)","- Smart Account deployment execution reverted with an error\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`].filter(Boolean),name:"InitCodeFailedError"})}}Object.defineProperty(gE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});class bE extends hp{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Smart Account initialization implementation did not create an account.",{cause:t,metaMessages:["This could arise when:","- `factory`/`factoryData` or `initCode` properties are invalid","- Smart Account initialization implementation is incorrect\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`].filter(Boolean),name:"InitCodeMustCreateSenderError"})}}Object.defineProperty(bE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});class vE extends hp{constructor({cause:t,factory:e,factoryData:n,initCode:r,sender:a}){super("Smart Account initialization implementation does not return the expected sender.",{cause:t,metaMessages:["This could arise when:","Smart Account initialization implementation does not return a sender address\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`,a&&`sender: ${a}`].filter(Boolean),name:"InitCodeMustReturnSenderError"})}}Object.defineProperty(vE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});class wE extends hp{constructor({cause:t}){super("Smart Account does not have sufficient funds to execute the User Operation.",{cause:t,metaMessages:["This could arise when:","- the Smart Account does not have sufficient funds to cover the required prefund, or","- a Paymaster was not provided"].filter(Boolean),name:"InsufficientPrefundError"})}}Object.defineProperty(wE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});class xE extends hp{constructor({cause:t}){super("Bundler attempted to call an invalid function on the EntryPoint.",{cause:t,name:"InternalCallOnlyError"})}}Object.defineProperty(xE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});class kE extends hp{constructor({cause:t}){super("Bundler used an invalid aggregator for handling aggregated User Operations.",{cause:t,name:"InvalidAggregatorError"})}}Object.defineProperty(kE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});class AE extends hp{constructor({cause:t,nonce:e}){super("Invalid Smart Account nonce used for User Operation.",{cause:t,metaMessages:[e&&`nonce: ${e}`].filter(Boolean),name:"InvalidAccountNonceError"})}}Object.defineProperty(AE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});class IE extends hp{constructor({cause:t}){super("Bundler has not set a beneficiary address.",{cause:t,name:"InvalidBeneficiaryError"})}}Object.defineProperty(IE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});class EE extends hp{constructor({cause:t}){super("Invalid fields set on User Operation.",{cause:t,name:"InvalidFieldsError"})}}Object.defineProperty(EE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class PE extends hp{constructor({cause:t,paymasterAndData:e}){super("Paymaster properties provided are invalid.",{cause:t,metaMessages:["This could arise when:","- the `paymasterAndData` property is of an incorrect length\n",e&&`paymasterAndData: ${e}`].filter(Boolean),name:"InvalidPaymasterAndDataError"})}}Object.defineProperty(PE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});class SE extends hp{constructor({cause:t}){super("Paymaster deposit for the User Operation is too low.",{cause:t,metaMessages:["This could arise when:","- the Paymaster has deposited less than the expected amount via the `deposit` function"].filter(Boolean),name:"PaymasterDepositTooLowError"})}}Object.defineProperty(SE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32508}),Object.defineProperty(SE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});class _E extends hp{constructor({cause:t}){super("The `validatePaymasterUserOp` function on the Paymaster reverted.",{cause:t,name:"PaymasterFunctionRevertedError"})}}Object.defineProperty(_E,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});class OE extends hp{constructor({cause:t}){super("The Paymaster contract has not been deployed.",{cause:t,name:"PaymasterNotDeployedError"})}}Object.defineProperty(OE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});class TE extends hp{constructor({cause:t}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:t,name:"PaymasterRateLimitError"})}}Object.defineProperty(TE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32504});class BE extends hp{constructor({cause:t}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:t,name:"PaymasterStakeTooLowError"})}}Object.defineProperty(BE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32505});class ME extends hp{constructor({cause:t}){super("Paymaster `postOp` function reverted.",{cause:t,name:"PaymasterPostOpFunctionRevertedError"})}}Object.defineProperty(ME,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});class CE extends hp{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Smart Account has already been deployed.",{cause:t,metaMessages:["Remove the following properties and try again:",e&&"`factory`",n&&"`factoryData`",r&&"`initCode`"].filter(Boolean),name:"SenderAlreadyConstructedError"})}}Object.defineProperty(CE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});class NE extends hp{constructor({cause:t}){super("UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).",{cause:t,name:"SignatureCheckFailedError"})}}Object.defineProperty(NE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32507});class jE extends hp{constructor({cause:t}){super("The `validateUserOp` function on the Smart Account reverted.",{cause:t,name:"SmartAccountFunctionRevertedError"})}}Object.defineProperty(jE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});class RE extends hp{constructor({cause:t}){super("UserOperation rejected because account specified unsupported signature aggregator.",{cause:t,name:"UnsupportedSignatureAggregatorError"})}}Object.defineProperty(RE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32506});class UE extends hp{constructor({cause:t}){super("User Operation expired.",{cause:t,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied"].filter(Boolean),name:"UserOperationExpiredError"})}}Object.defineProperty(UE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});class LE extends hp{constructor({cause:t}){super("Paymaster for User Operation expired.",{cause:t,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied"].filter(Boolean),name:"UserOperationPaymasterExpiredError"})}}Object.defineProperty(LE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});class zE extends hp{constructor({cause:t}){super("Signature provided for the User Operation is invalid.",{cause:t,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account"].filter(Boolean),name:"UserOperationSignatureError"})}}Object.defineProperty(zE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});class FE extends hp{constructor({cause:t}){super("Signature provided for the User Operation is invalid.",{cause:t,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster"].filter(Boolean),name:"UserOperationPaymasterSignatureError"})}}Object.defineProperty(FE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});class DE extends hp{constructor({cause:t}){super("User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.",{cause:t,name:"UserOperationRejectedByEntryPointError"})}}Object.defineProperty(DE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32500});class qE extends hp{constructor({cause:t}){super("User Operation rejected by Paymaster's `validatePaymasterUserOp`.",{cause:t,name:"UserOperationRejectedByPaymasterError"})}}Object.defineProperty(qE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32501});class GE extends hp{constructor({cause:t}){super("User Operation rejected with op code validation error.",{cause:t,name:"UserOperationRejectedByOpCodeError"})}}Object.defineProperty(GE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32502});class KE extends hp{constructor({cause:t}){super("UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).",{cause:t,name:"UserOperationOutOfTimeRangeError"})}}Object.defineProperty(KE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32503});class VE extends hp{constructor({cause:t}){super(`An error occurred while executing user operation: ${t?.shortMessage}`,{cause:t,name:"UnknownBundlerError"})}}class ZE extends hp{constructor({cause:t}){super("User Operation verification gas limit exceeded.",{cause:t,metaMessages:["This could arise when:","- the gas used for verification exceeded the `verificationGasLimit`"].filter(Boolean),name:"VerificationGasLimitExceededError"})}}Object.defineProperty(ZE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});class HE extends hp{constructor({cause:t}){super("User Operation verification gas limit is too low.",{cause:t,metaMessages:["This could arise when:","- the `verificationGasLimit` is too low to verify the User Operation"].filter(Boolean),name:"VerificationGasLimitTooLowError"})}}Object.defineProperty(HE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/});class WE extends hp{constructor(t,{callData:e,callGasLimit:n,docsPath:r,factory:a,factoryData:i,initCode:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,paymaster:d,paymasterAndData:l,paymasterData:f,paymasterPostOpGasLimit:h,paymasterVerificationGasLimit:p,preVerificationGas:m,sender:y,signature:g,verificationGasLimit:b}){const v=Py({callData:e,callGasLimit:n,factory:a,factoryData:i,initCode:s,maxFeePerGas:void 0!==o&&`${ky(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ky(c)} gwei`,nonce:u,paymaster:d,paymasterAndData:l,paymasterData:f,paymasterPostOpGasLimit:h,paymasterVerificationGasLimit:p,preVerificationGas:m,sender:y,signature:g,verificationGasLimit:b});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",v].filter(Boolean),name:"UserOperationExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class JE extends hp{constructor({hash:t}){super(`User Operation receipt with hash "${t}" could not be found. The User Operation may not have been processed yet.`,{name:"UserOperationReceiptNotFoundError"})}}class YE extends hp{constructor({hash:t}){super(`User Operation with hash "${t}" could not be found.`,{name:"UserOperationNotFoundError"})}}class $E extends hp{constructor({hash:t}){super(`Timed out while waiting for User Operation with hash "${t}" to be confirmed.`,{name:"WaitForUserOperationReceiptTimeoutError"})}}const QE=[hE,EE,SE,TE,BE,NE,RE,KE,DE,qE,GE];function XE(t,{calls:e,docsPath:n,...r}){const a=(()=>{const n=function(t,e){const n=(t.details||"").toLowerCase();if(fE.message.test(n))return new fE({cause:t});if(pE.message.test(n))return new pE({cause:t});if(mE.message.test(n))return new mE({cause:t});if(yE.message.test(n))return new yE({cause:t});if(gE.message.test(n))return new gE({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(bE.message.test(n))return new bE({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(vE.message.test(n))return new vE({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode,sender:e.sender});if(wE.message.test(n))return new wE({cause:t});if(xE.message.test(n))return new xE({cause:t});if(AE.message.test(n))return new AE({cause:t,nonce:e.nonce});if(kE.message.test(n))return new kE({cause:t});if(IE.message.test(n))return new IE({cause:t});if(PE.message.test(n))return new PE({cause:t});if(SE.message.test(n))return new SE({cause:t});if(_E.message.test(n))return new _E({cause:t});if(OE.message.test(n))return new OE({cause:t});if(ME.message.test(n))return new ME({cause:t});if(jE.message.test(n))return new jE({cause:t});if(CE.message.test(n))return new CE({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(UE.message.test(n))return new UE({cause:t});if(LE.message.test(n))return new LE({cause:t});if(FE.message.test(n))return new FE({cause:t});if(zE.message.test(n))return new zE({cause:t});if(ZE.message.test(n))return new ZE({cause:t});if(HE.message.test(n))return new HE({cause:t});const r=t.walk(t=>QE.some(e=>e.code===t.code));if(r){if(r.code===hE.code)return new hE({cause:t,data:r.data,message:r.details});if(r.code===EE.code)return new EE({cause:t});if(r.code===SE.code)return new SE({cause:t});if(r.code===TE.code)return new TE({cause:t});if(r.code===BE.code)return new BE({cause:t});if(r.code===NE.code)return new NE({cause:t});if(r.code===RE.code)return new RE({cause:t});if(r.code===KE.code)return new KE({cause:t});if(r.code===DE.code)return new DE({cause:t});if(r.code===qE.code)return new qE({cause:t});if(r.code===GE.code)return new GE({cause:t})}return new VE({cause:t})}(t,r);if(e&&n instanceof hE){const t=function(t){let e;return t.walk(t=>{const n=t;if("string"==typeof n.data||"string"==typeof n.data?.revertData||!(n instanceof hp)&&"string"==typeof n.message){const t=(n.data?.revertData||n.data||n.message).match?.(/(0x[A-Za-z0-9]*)/);if(t)return e=t[1],!0}return!1}),e}(n),r=e?.filter(t=>t.abi);if(t&&r.length>0)return function(t){const{calls:e,revertData:n}=t,{abi:r,functionName:a,args:i,to:s}=(()=>{const t=e?.filter(t=>Boolean(t.abi));if(1===t.length)return t[0];const r=t.filter(t=>{try{return Boolean(my({abi:t.abi,data:n}))}catch{return!1}});return 1===r.length?r[0]:{abi:[],functionName:t.reduce((t,e)=>`${t?`${t} | `:""}${e.functionName}`,""),args:void 0,to:void 0}})(),o="0x"===n?new Ly({functionName:a}):new Uy({abi:r,data:n,functionName:a});return new Ry(o,{abi:r,args:i,contractAddress:s,functionName:a})}({calls:r,revertData:t})}return n})();return new WE(a,{docsPath:n,...r})}function tP(t){const e={};var n;return void 0!==t.callData&&(e.callData=t.callData),void 0!==t.callGasLimit&&(e.callGasLimit=im(t.callGasLimit)),void 0!==t.factory&&(e.factory=t.factory),void 0!==t.factoryData&&(e.factoryData=t.factoryData),void 0!==t.initCode&&(e.initCode=t.initCode),void 0!==t.maxFeePerGas&&(e.maxFeePerGas=im(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=im(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(e.nonce=im(t.nonce)),void 0!==t.paymaster&&(e.paymaster=t.paymaster),void 0!==t.paymasterAndData&&(e.paymasterAndData=t.paymasterAndData||"0x"),void 0!==t.paymasterData&&(e.paymasterData=t.paymasterData),void 0!==t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=im(t.paymasterPostOpGasLimit)),void 0!==t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=im(t.paymasterVerificationGasLimit)),void 0!==t.preVerificationGas&&(e.preVerificationGas=im(t.preVerificationGas)),void 0!==t.sender&&(e.sender=t.sender),void 0!==t.signature&&(e.signature=t.signature),void 0!==t.verificationGasLimit&&(e.verificationGasLimit=im(t.verificationGasLimit)),void 0!==t.authorization&&(e.eip7702Auth={address:(n=t.authorization).address,chainId:im(n.chainId),nonce:im(n.nonce),r:n.r?im(BigInt(n.r),{size:32}):Kp("0x",{size:32}),s:n.s?im(BigInt(n.s),{size:32}):Kp("0x",{size:32}),yParity:n.yParity?im(n.yParity,{size:1}):Kp("0x",{size:32})}),e}async function eP(t,e){const{chainId:n,entryPointAddress:r,context:a,...i}=e,s=tP(i),{paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,...u}=await t.request({method:"pm_getPaymasterData",params:[{...s,callGasLimit:s.callGasLimit??"0x0",verificationGasLimit:s.verificationGasLimit??"0x0",preVerificationGas:s.preVerificationGas??"0x0"},r,im(n),a]});return{...u,...o&&{paymasterPostOpGasLimit:Qp(o)},...c&&{paymasterVerificationGasLimit:Qp(c)}}}async function nP(t,e){const{chainId:n,entryPointAddress:r,context:a,...i}=e,s=tP(i),{paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,...u}=await t.request({method:"pm_getPaymasterStubData",params:[{...s,callGasLimit:s.callGasLimit??"0x0",verificationGasLimit:s.verificationGasLimit??"0x0",preVerificationGas:s.preVerificationGas??"0x0"},r,im(n),a]});return{...u,...o&&{paymasterPostOpGasLimit:Qp(o)},...c&&{paymasterVerificationGasLimit:Qp(c)}}}const rP=["factory","fees","gas","paymaster","nonce","signature","authorization"];async function aP(t,e){const n=e,{account:r=t.account,parameters:a=rP,stateOverride:i}=n;if(!r)throw new Pv;const s=Ym(r),o=t,c=n.paymaster??o?.paymaster,u="string"==typeof c?c:void 0,{getPaymasterStubData:d,getPaymasterData:l}=(()=>{if(!0===c)return{getPaymasterStubData:t=>ip(o,nP,"getPaymasterStubData")(t),getPaymasterData:t=>ip(o,eP,"getPaymasterData")(t)};if("object"==typeof c){const{getPaymasterStubData:t,getPaymasterData:e}=c;return{getPaymasterStubData:e&&t?t:e,getPaymasterData:e&&t?e:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),f=n.paymasterContext?n.paymasterContext:o?.paymasterContext;let h={...n,paymaster:u,sender:s.address};const[p,m,y,g,b]=await Promise.all([(async()=>n.calls?s.encodeCalls(n.calls.map(t=>{const e=t;return e.abi?{data:Qm(e),to:e.to,value:e.value}:e})):n.callData)(),(async()=>{if(!a.includes("factory"))return;if(n.initCode)return{initCode:n.initCode};if(n.factory&&n.factoryData)return{factory:n.factory,factoryData:n.factoryData};const{factory:t,factoryData:e}=await s.getFactoryArgs();return"0.6"===s.entryPoint.version?{initCode:t&&e?Sm([t,e]):void 0}:{factory:t,factoryData:e}})(),(async()=>{if(a.includes("fees")){if("bigint"==typeof n.maxFeePerGas&&"bigint"==typeof n.maxPriorityFeePerGas)return h;if(o?.userOperation?.estimateFeesPerGas){const t=await o.userOperation.estimateFeesPerGas({account:s,bundlerClient:o,userOperation:h});return{...h,...t}}try{const e=o.client??t,r=await ip(e,cb,"estimateFeesPerGas")({chain:e.chain,type:"eip1559"});return{maxFeePerGas:"bigint"==typeof n.maxFeePerGas?n.maxFeePerGas:BigInt(2n*r.maxFeePerGas),maxPriorityFeePerGas:"bigint"==typeof n.maxPriorityFeePerGas?n.maxPriorityFeePerGas:BigInt(2n*r.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(a.includes("nonce"))return"bigint"==typeof n.nonce?n.nonce:s.getNonce()})(),(async()=>{if(a.includes("authorization")){if("object"==typeof n.authorization)return n.authorization;if(s.authorization&&!await s.isDeployed()){const t=await async function(t,e){const{account:n=t.account,chainId:r,nonce:a}=e;if(!n)throw new Pv({docsPath:"/docs/eip7702/prepareAuthorization"});const i=Ym(n),s=(()=>{if(e.executor)return"self"===e.executor?e.executor:Ym(e.executor)})(),o={address:e.contractAddress??e.address,chainId:r,nonce:a};return void 0===o.chainId&&(o.chainId=t.chain?.id??await ip(t,Ib,"getChainId")({})),void 0===o.nonce&&(o.nonce=await ip(t,db,"getTransactionCount")({address:i.address,blockTag:"pending"}),("self"===s||s?.address&&Ob(s.address,i.address))&&(o.nonce+=1)),o}(s.client,s.authorization);return{...t,r:"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000",s:"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",yParity:1}}}})()]);let v;async function w(){if(v)return v;if(t.chain)return t.chain.id;const e=await ip(t,Ib,"getChainId")({});return v=e,v}void 0!==p&&(h.callData=p),void 0!==m&&(h={...h,...m}),void 0!==y&&(h={...h,...y}),void 0!==g&&(h.nonce=g),void 0!==b&&(h.authorization=b),a.includes("signature")&&(void 0!==n.signature?h.signature=n.signature:h.signature=await s.getStubSignature(h)),"0.6"!==s.entryPoint.version||h.initCode||(h.initCode="0x");let x=!1;if(a.includes("paymaster")&&d&&!u&&!n.paymasterAndData){const{isFinal:t=!1,sponsor:e,...n}=await d({chainId:await w(),entryPointAddress:s.entryPoint.address,context:f,...h});x=t,h={...h,...n}}if("0.6"!==s.entryPoint.version||h.paymasterAndData||(h.paymasterAndData="0x"),a.includes("gas")){if(s.userOperation?.estimateGas){const t=await s.userOperation.estimateGas(h);h={...h,...t}}if(void 0===h.callGasLimit||void 0===h.preVerificationGas||void 0===h.verificationGasLimit||h.paymaster&&void 0===h.paymasterPostOpGasLimit||h.paymaster&&void 0===h.paymasterVerificationGasLimit){const t=await ip(o,iP,"estimateUserOperationGas")({account:s,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:i,...h.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...h});h={...h,callGasLimit:h.callGasLimit??t.callGasLimit,preVerificationGas:h.preVerificationGas??t.preVerificationGas,verificationGasLimit:h.verificationGasLimit??t.verificationGasLimit,paymasterPostOpGasLimit:h.paymasterPostOpGasLimit??t.paymasterPostOpGasLimit,paymasterVerificationGasLimit:h.paymasterVerificationGasLimit??t.paymasterVerificationGasLimit}}}if(a.includes("paymaster")&&l&&!u&&!n.paymasterAndData&&!x){const t=await l({chainId:await w(),entryPointAddress:s.entryPoint.address,context:f,...h});h={...h,...t}}return delete h.calls,delete h.parameters,delete h.paymasterContext,"string"!=typeof h.paymaster&&delete h.paymaster,h}async function iP(t,e){const{account:n=t.account,entryPointAddress:r,stateOverride:a}=e;if(!n&&!e.sender)throw new Pv;const i=n?Ym(n):void 0,s=Hg(a),o=i?await ip(t,aP,"prepareUserOperation")({...e,parameters:["authorization","factory","nonce","paymaster","signature"]}):e;try{const e=[tP(o),r??i?.entryPoint?.address];return function(t){const e={};return t.callGasLimit&&(e.callGasLimit=BigInt(t.callGasLimit)),t.preVerificationGas&&(e.preVerificationGas=BigInt(t.preVerificationGas)),t.verificationGasLimit&&(e.verificationGasLimit=BigInt(t.verificationGasLimit)),t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=BigInt(t.paymasterPostOpGasLimit)),t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=BigInt(t.paymasterVerificationGasLimit)),e}(await t.request({method:"eth_estimateUserOperationGas",params:s?[...e,s]:[...e]}))}catch(t){const n=e.calls;throw XE(t,{...o,...n?{calls:n}:{}})}}function sP(t){const e={...t};return t.callGasLimit&&(e.callGasLimit=BigInt(t.callGasLimit)),t.maxFeePerGas&&(e.maxFeePerGas=BigInt(t.maxFeePerGas)),t.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=BigInt(t.maxPriorityFeePerGas)),t.nonce&&(e.nonce=BigInt(t.nonce)),t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=BigInt(t.paymasterPostOpGasLimit)),t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=BigInt(t.paymasterVerificationGasLimit)),t.preVerificationGas&&(e.preVerificationGas=BigInt(t.preVerificationGas)),t.verificationGasLimit&&(e.verificationGasLimit=BigInt(t.verificationGasLimit)),e}async function oP(t,{hash:e}){const n=await t.request({method:"eth_getUserOperationReceipt",params:[e]},{dedupe:!0});if(!n)throw new JE({hash:e});return function(t){const e={...t};return t.actualGasCost&&(e.actualGasCost=BigInt(t.actualGasCost)),t.actualGasUsed&&(e.actualGasUsed=BigInt(t.actualGasUsed)),t.logs&&(e.logs=t.logs.map(t=>Nb(t))),t.receipt&&(e.receipt=Tv(e.receipt)),e}(n)}function cP(t){return{estimateUserOperationGas:e=>iP(t,e),getChainId:()=>Ib(t),getSupportedEntryPoints:()=>function(t){return t.request({method:"eth_supportedEntryPoints"})}(t),getUserOperation:e=>async function(t,{hash:e}){const n=await t.request({method:"eth_getUserOperationByHash",params:[e]},{dedupe:!0});if(!n)throw new YE({hash:e});const{blockHash:r,blockNumber:a,entryPoint:i,transactionHash:s,userOperation:o}=n;return{blockHash:r,blockNumber:BigInt(a),entryPoint:i,transactionHash:s,userOperation:sP(o)}}(t,e),getUserOperationReceipt:e=>oP(t,e),prepareUserOperation:e=>aP(t,e),sendUserOperation:e=>async function(t,e){const{account:n=t.account,entryPointAddress:r}=e;if(!n&&!e.sender)throw new Pv;const a=n?Ym(n):void 0,i=a?await ip(t,aP,"prepareUserOperation")(e):e,s=e.signature||await(a?.signUserOperation?.(i)),o=tP({...i,signature:s});try{return await t.request({method:"eth_sendUserOperation",params:[o,r??a?.entryPoint?.address]},{retryCount:0})}catch(t){const n=e.calls;throw XE(t,{...i,...n?{calls:n}:{},signature:s})}}(t,e),waitForUserOperationReceipt:e=>function(t,e){const{hash:n,pollingInterval:r=t.pollingInterval,retryCount:a,timeout:i=12e4}=e;let s=0;const o=yy(["waitForUserOperationReceipt",t.uid,n]);return new Promise((e,c)=>{const u=gv(o,{resolve:e,reject:c},e=>{const o=t=>{c(),t(),u()},c=vv(async()=>{a&&s>=a&&o(()=>e.reject(new $E({hash:n})));try{const r=await ip(t,oP,"getUserOperationReceipt")({hash:n});o(()=>e.resolve(r))}catch(t){const n=t;"UserOperationReceiptNotFoundError"!==n.name&&o(()=>e.reject(n))}s++},{emitOnBegin:!0,interval:r});return i&&setTimeout(()=>o(()=>e.reject(new $E({hash:n}))),i),c})})}(t,e)}}const uP={transaction:function(t,e){return function(t){return"deposit"===t.type||void 0!==t.sourceHash}(t)?function(t){!function(t){const{from:e,to:n}=t;if(e&&!Pm(e))throw new vm({address:e});if(n&&!Pm(n))throw new vm({address:n})}(t);const{sourceHash:e,data:n,from:r,gas:a,isSystemTx:i,mint:s,to:o,value:c}=t,u=[e,r,o??"0x",s?nm(s):"0x",c?nm(c):"0x",a?nm(a):"0x",i?"0x1":"0x",n??"0x"];return _m(["0x7e",kg(u)])}(t):kw(t,e)}};const dP={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:ab({format(t){const e=t.transactions?.map(t=>{if("string"==typeof t)return t;const e=eb(t);return"0x7e"===e.typeHex&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?Qp(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e});return{transactions:e,stateRoot:t.stateRoot}}}),transaction:nb({format(t){const e={};return"0x7e"===t.type&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?Qp(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}}),transactionReceipt:Bv({format:t=>({l1GasPrice:t.l1GasPrice?Qp(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?Qp(t.l1GasUsed):null,l1Fee:t.l1Fee?Qp(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null})})},serializers:uP},lP=1,fP=Mw({...dP,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...dP.contracts,disputeGameFactory:{[lP]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[lP]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[lP]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[lP]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),hP=11155111,pP=Mw({...dP,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...dP.contracts,disputeGameFactory:{[hP]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[hP]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[hP]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[hP]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:hP}),mP=nh(()=>({})),yP=[{id:fP.id,rpcUrl:fP.rpcUrls.default.http[0],nativeCurrency:{name:fP.nativeCurrency.name,symbol:fP.nativeCurrency.symbol,decimal:fP.nativeCurrency.decimals}},{id:pP.id,rpcUrl:pP.rpcUrls.default.http[0],nativeCurrency:{name:pP.nativeCurrency.name,symbol:pP.nativeCurrency.symbol,decimal:pP.nativeCurrency.decimals}}];function gP(t){t.forEach(t=>{var e,n,r,a,i,s,o,c;let u=t.rpcUrl;if(!u){const e=yP.find(e=>e.id===t.id);e&&(u=e.rpcUrl)}if(!u)return;const d=function(t){const{key:e="public",name:n="Public Client"}=t;return zv({...t,key:e,name:n,type:"publicClient"}).extend(oA)}({chain:Mw({id:t.id,rpcUrls:{default:{http:[u]}},name:null!==(n=null===(e=t.nativeCurrency)||void 0===e?void 0:e.name)&&void 0!==n?n:"",nativeCurrency:{name:null!==(a=null===(r=t.nativeCurrency)||void 0===r?void 0:r.name)&&void 0!==a?a:"",symbol:null!==(s=null===(i=t.nativeCurrency)||void 0===i?void 0:i.symbol)&&void 0!==s?s:"",decimals:null!==(c=null===(o=t.nativeCurrency)||void 0===o?void 0:o.decimal)&&void 0!==c?c:18}}),transport:uA(u)}),l=function(t){const{client:e,key:n="bundler",name:r="Bundler Client",paymaster:a,paymasterContext:i,transport:s,userOperation:o}=t;return Object.assign(zv({...t,chain:t.chain??e?.chain,key:n,name:r,transport:s,type:"bundlerClient"}),{client:e,paymaster:a,paymasterContext:i,userOperation:o}).extend(cP)}({client:d,transport:uA(u)});mP.setState(e=>Object.assign(Object.assign({},e),{[t.id]:{client:d,bundlerClient:l}}))})}function bP(t){var e;return null===(e=mP.getState()[t])||void 0===e?void 0:e.client}const vP=nh(()=>({correlationIds:new Map})),wP=t=>vP.getState().correlationIds.get(t),xP=(t,e)=>{vP.setState(n=>{const r=new Map(n.correlationIds);return r.set(t,e),{correlationIds:r}})},kP=t=>{vP.setState(e=>{const n=new Map(e.correlationIds);return n.delete(t),{correlationIds:n}})},AP=()=>{vP.setState({correlationIds:new Map})};function IP(t){if("object"!=typeof t||null===t)throw l.internal("sub account info is not an object");if(!("address"in t))throw l.internal("sub account is invalid");if("address"in t&&"string"==typeof t.address&&!Pm(t.address))throw l.internal("sub account address is invalid");if("factory"in t&&"string"==typeof t.factory&&!Pm(t.factory))throw l.internal("sub account factory address is invalid");if("factoryData"in t&&"string"==typeof t.factoryData&&!cp(t.factoryData))throw l.internal("sub account factory data is invalid")}function EP(t){switch(t){case"public":return"spki";case"private":return"pkcs8"}}async function PP(t,e){const n=EP(t),r=await crypto.subtle.exportKey(n,e);return a=new Uint8Array(r),[...a].map(t=>t.toString(16).padStart(2,"0")).join("");var a}async function SP(t,e){const n=EP(t),r=function(t){return new Uint8Array(t.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}(e).buffer;return await crypto.subtle.importKey(n,r,{name:"ECDH",namedCurve:"P-256"},!0,"private"===t?["deriveKey"]:[])}async function _P(t,e){return async function(t,e){const n=crypto.getRandomValues(new Uint8Array(12));return{iv:n,cipherText:await crypto.subtle.encrypt({name:"AES-GCM",iv:n.buffer},t,(new TextEncoder).encode(e))}}(e,JSON.stringify(t,(t,e)=>{if(!(e instanceof Error))return e;const n=e;return Object.assign(Object.assign({},n.code?{code:n.code}:{}),{message:n.message})}))}async function OP(t,e){return JSON.parse(await async function(t,{iv:e,cipherText:n}){const r=await crypto.subtle.decrypt({name:"AES-GCM",iv:e.buffer},t,n);return(new TextDecoder).decode(r)}(e,t))}async function TP(t,e){const n=Object.assign(Object.assign({},t),{jsonrpc:"2.0",id:crypto.randomUUID()}),r=await window.fetch(e,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":$f,"X-Cbw-Sdk-Platform":Yf}}),{result:a,error:i}=await r.json();if(i)throw i;return a}function BP(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function MP(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=BP(n);return(t,n)=>r.then(r=>n(r.transaction(e,t).objectStore(e)))}let CP;function NP(){return CP||(CP=MP("keyval-store","keyval")),CP}const jP="activeId",RP=function(t,e){const n="undefined"!=typeof indexedDB?MP(t,e):void 0;return{getItem:async t=>{const e=await function(t,e=NP()){return e("readonly",e=>BP(e.get(t)))}(t,n);return e||null},removeItem:async t=>function(t,e=NP()){return e("readwrite",e=>(e.delete(t),BP(e.transaction)))}(t,n),setItem:async(t,e)=>function(t,e,n=NP()){return n("readwrite",n=>(n.put(e,t),BP(n.transaction)))}(t,e,n)}}("base-acc-sdk","keys");async function UP(){const t=await async function(t={}){const{extractable:e=!1}=t,n=await globalThis.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},e,["sign","verify"]),r=await globalThis.crypto.subtle.exportKey("raw",n.publicKey),a=vf(new Uint8Array(r));return{privateKey:n.privateKey,publicKey:a}}({extractable:!1}),e=wl(xf(t.publicKey),1);return await RP.setItem(e,t),await RP.setItem(jP,e),t}async function LP(){const t=await RP.getItem(jP);if(!t)return null;const e=await RP.getItem(t);return e||null}async function zP(){const t=await async function(){const t=await LP();if(!t){const t=await UP(),e=wl(xf(t.publicKey),1);return await RP.setItem(e,t),await RP.setItem(jP,e),t}return t}(),e=wl(xf(t.publicKey),1),n=async e=>{const{payload:n,metadata:r}=sE({challenge:e,origin:"https://app.startale.com",userVerification:"preferred"}),a=await async function(t){const{payload:e,privateKey:n}=t,r=await globalThis.crypto.subtle.sign({name:"ECDSA",hash:"SHA-256"},n,Cl(e)),a=Nl(new Uint8Array(r)),i=zl(Ll(a,0,32));let s=zl(Ll(a,32,64));return s>iE.CURVE.n/2n&&(s=iE.CURVE.n-s),{r:i,s:s}}({payload:n,privateKey:t.privateKey});return{signature:vk(a),raw:{},webauthn:r}};return{id:e,publicKey:e,sign:async({hash:t})=>n(t),signMessage:async({message:t})=>n(Uw(t)),signTypedData:async t=>n(Gw(t)),type:"webAuthn"}}async function FP(){return{account:await zP()}}const DP={storageKey:"ownPrivateKey",keyType:"private"},qP={storageKey:"ownPublicKey",keyType:"public"},GP={storageKey:"peerPublicKey",keyType:"public"};class KP{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(t){this.sharedSecret=null,this.peerPublicKey=t,await this.storeKey(GP,t),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,oh.keys.clear()}async generateKeyPair(){const t=await async function(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(DP,t.privateKey),await this.storeKey(qP,t.publicKey)}async loadKeysIfNeeded(){if(null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(DP)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(qP)),null!==this.ownPrivateKey&&null!==this.ownPublicKey||await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(GP)),null===this.sharedSecret){if(null===this.ownPrivateKey||null===this.peerPublicKey)return;this.sharedSecret=await async function(t,e){return crypto.subtle.deriveKey({name:"ECDH",public:e},t,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){const e=oh.keys.get(t.storageKey);return e?SP(t.keyType,e):null}async storeKey(t,e){const n=await PP(t.keyType,e);oh.keys.set(t.storageKey,n)}}function VP(t,e){if("object"==typeof t&&null!==t)return e.split(/[.[\]]+/).filter(Boolean).reduce((t,e)=>{if("object"==typeof t&&null!==t)return t[e]},t)}function ZP(t){var e;if(!t||!Array.isArray(t)||!(null===(e=t[0])||void 0===e?void 0:e.chainId))throw l.invalidParams();if("string"!=typeof t[0].chainId&&"number"!=typeof t[0].chainId)throw l.invalidParams()}function HP(t,e){const n=Object.assign({},t);if(e&&t.method.startsWith("wallet_")){let t=VP(n,"params.0.capabilities");if(void 0===t&&(t={}),"object"!=typeof t)throw l.invalidParams();t=Object.assign(Object.assign({},e),t),n.params&&Array.isArray(n.params)&&(n.params[0]=Object.assign(Object.assign({},n.params[0]),{capabilities:t}))}return n}async function WP(){var t;const e=null!==(t=oh.subAccountsConfig.get())&&void 0!==t?t:{},n={};if(e.enableAutoSubAccounts){const{account:t}=e.toOwnerAccount?await e.toOwnerAccount():await FP();if(!t)throw f.unauthorized("No owner account found");n.addSubAccount={account:{type:"create",keys:[{type:t.address?"address":"webauthn-p256",publicKey:t.address||t.publicKey}]}}}oh.subAccountsConfig.set({capabilities:n})}async function JP({client:t,id:e}){var n;const r=await Nv(t,{id:e});if("success"===r.status)return null===(n=r.receipts)||void 0===n?void 0:n[0].transactionHash;throw l.internal("failed to send transaction")}function YP({calls:t,from:e,chainId:n,capabilities:r}){const a=ih.get().paymasterOptions;let i={method:"wallet_sendCalls",params:[{version:"1.0",calls:t,chainId:im(n),from:e,atomicRequired:!0,capabilities:r}]};return(null==a?void 0:a[n])&&(i=HP(i,{paymasterService:{url:null==a?void 0:a[n].url,id:null==a?void 0:a[n].id}})),i}function $P({attribution:t,dappOrigin:e}){if(t)return"auto"in t&&t.auto&&e?Om(pm(nm(e)),0,16):"dataSuffix"in t?t.dataSuffix:void 0}function QP(t,e){var n;if(!Array.isArray(null==t?void 0:t.params))return!1;const r=null===(n=t.params[0])||void 0===n?void 0:n.capabilities;return!(!r||"object"!=typeof r)&&e in r}function XP(t,e){const n=t.filter(t=>t!==e);return[e,...n]}function tS(t,e){const n=t.filter(t=>t!==e);return[...n,e]}function eS(t){const e=btoa(String.fromCharCode(...new Uint8Array(t)));return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function nS({webauthn:t,signature:e,id:n}){const r=gk(e);return{id:n,rawId:eS(hm(n)),response:{authenticatorData:eS(fm(t.authenticatorData)),clientDataJSON:eS(hm(t.clientDataJSON)),signature:eS(rS(r.r,r.s))},type:JSON.parse(t.clientDataJSON).type}}function rS(t,e){const n=fm(Yp(im(t))),r=fm(Yp(im(e))),a=n.length,i=r.length,s=a+i+4,o=new Uint8Array(s+2);return o[0]=48,o[1]=s,o[2]=2,o[3]=a,o.set(n,4),o[a+4]=2,o[a+5]=i,o.set(r,a+6),o}async function aS(t){const{owner:e,ownerIndex:n,address:r,client:a,factoryData:i}=t,s={abi:oE,address:"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",version:"0.6"},o={abi:dh,address:"0xba5ed110efdba3d005bfc882d75358acbbb85842"};return async function(t){const{extend:e,nonceKeyManager:n=Cw({source:{get:()=>Date.now(),set(){}}}),...r}=t;let a=!1;const i=await t.getAddress();return{...e,...r,address:i,async getFactoryArgs(){return"isDeployed"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:t.getFactoryArgs()},async getNonce(e){const r=e?.key??BigInt(await n.consume({address:i,chainId:t.client.chain.id,client:t.client}));return t.getNonce?await t.getNonce({...e,key:r}):await hv(t.client,{abi:ap(["function getNonce(address, uint192) pure returns (uint256)"]),address:t.entryPoint.address,functionName:"getNonce",args:[i,r]})},async isDeployed(){if(a)return!0;const e=await ip(t.client,mw,"getCode")({address:i});return a=Boolean(e),a},...t.sign?{async sign(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.sign(e)]);return n&&r?Bk({address:n,data:r,signature:a}):a}}:{},async signMessage(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.signMessage(e)]);return n&&r&&"0x7702"!==n?Bk({address:n,data:r,signature:a}):a},async signTypedData(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.signTypedData(e)]);return n&&r&&"0x7702"!==n?Bk({address:n,data:r,signature:a}):a},type:"smart"}}({client:a,entryPoint:s,extend:{abi:uh,factory:o},async decodeCalls(t){const e=Dv({abi:uh,data:t});if("execute"===e.functionName)return[{to:e.args[0],value:e.args[1],data:e.args[2]}];if("executeBatch"===e.functionName)return e.args[0].map(t=>({to:t.target,value:t.value,data:t.data}));throw new hp(`unable to decode calls for "${e.functionName}"`)},async encodeCalls(t){var e,n;return 1===t.length?Qm({abi:uh,functionName:"execute",args:[t[0].to,null!==(e=t[0].value)&&void 0!==e?e:BigInt(0),null!==(n=t[0].data)&&void 0!==n?n:"0x"]}):Qm({abi:uh,functionName:"executeBatch",args:[t.map(t=>{var e,n;return{data:null!==(e=t.data)&&void 0!==e?e:"0x",target:t.to,value:null!==(n=t.value)&&void 0!==n?n:BigInt(0)}})]})},getAddress:async()=>r,getFactoryArgs:async()=>({factory:o.address,factoryData:i}),getStubSignature:async()=>"webAuthn"===e.type?"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000":oS({ownerIndex:n,signature:"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c"}),async sign(t){const r=sS({address:await this.getAddress(),chainId:a.chain.id,hash:t.hash}),i=await iS({hash:r,owner:e});return oS({ownerIndex:n,signature:i})},async signMessage(t){const{message:r}=t,i=sS({address:await this.getAddress(),chainId:a.chain.id,hash:Uw(r)}),s=await iS({hash:i,owner:e});return oS({ownerIndex:n,signature:s})},async signTypedData(t){const{domain:r,types:i,primaryType:s,message:o}=t,c=sS({address:await this.getAddress(),chainId:a.chain.id,hash:Gw({domain:r,message:o,primaryType:s,types:i})}),u=await iS({hash:c,owner:e});return oS({ownerIndex:n,signature:u})},async signUserOperation(t){const{chainId:r=a.chain.id}=t,i=dA(t,["chainId"]),o=await this.getAddress(),c=lE({chainId:r,entryPointAddress:s.address,entryPointVersion:s.version,userOperation:Object.assign(Object.assign({},i),{sender:o})}),u=await iS({hash:c,owner:e});return oS({ownerIndex:n,signature:u})},userOperation:{async estimateGas(t){var n;if("webAuthn"===e.type)return{verificationGasLimit:BigInt(Math.max(Number(null!==(n=t.verificationGasLimit)&&void 0!==n?n:BigInt(0)),8e5))}}}})}async function iS({hash:t,owner:e}){if("webAuthn"===e.type){const{signature:n,webauthn:r}=await e.sign({hash:t});return function({webauthn:t,signature:e}){const{r:n,s:r}=gk(e);return Um([{components:[{name:"authenticatorData",type:"bytes"},{name:"clientDataJSON",type:"bytes"},{name:"challengeIndex",type:"uint256"},{name:"typeIndex",type:"uint256"},{name:"r",type:"uint256"},{name:"s",type:"uint256"}],type:"tuple"}],[{authenticatorData:t.authenticatorData,clientDataJSON:om(t.clientDataJSON),challengeIndex:BigInt(t.challengeIndex),typeIndex:BigInt(t.typeIndex),r:n,s:r}])}({signature:n,webauthn:r})}if(e.sign)return e.sign({hash:t});throw new hp("`owner` does not support raw sign.")}function sS({address:t,chainId:e,hash:n}){return Gw({domain:{chainId:e,name:"Coinbase Smart Wallet",verifyingContract:t,version:"1"},types:{CoinbaseSmartWalletMessage:[{name:"hash",type:"bytes32"}]},primaryType:"CoinbaseSmartWalletMessage",message:{hash:n}})}function oS(t){const{ownerIndex:e=0}=t,n=(()=>{if(65!==up(t.signature))return t.signature;const e=function(t){const{r:e,s:n}=dc.Signature.fromCompact(t.slice(2,130)),r=Number(`0x${t.slice(130)}`),[a,i]=(()=>{if(0===r||1===r)return[void 0,r];if(27===r)return[BigInt(r),0];if(28===r)return[BigInt(r),1];throw new Error("Invalid yParityOrV value")})();return void 0!==a?{r:im(e,{size:32}),s:im(n,{size:32}),v:a,yParity:i}:{r:im(e,{size:32}),s:im(n,{size:32}),yParity:i}}(t.signature);return function(t,e){if(t.length!==e.length)throw new xp({expectedLength:t.length,givenLength:e.length});const n=[];for(let r=0;r<t.length;r++){const a=t[r],i=e[r];n.push(vw(a,i))}return _m(n)}(["bytes32","bytes32","uint8"],[e.r,e.s,0===e.yParity?27:28])})();return Um([{components:[{name:"ownerIndex",type:"uint8"},{name:"signatureData",type:"bytes"}],type:"tuple"}],[{ownerIndex:e,signatureData:n}])}async function cS({address:t,client:e,factory:n,factoryData:r,owner:a,ownerIndex:i,parentAddress:s,attribution:o}){var c;const u={address:t,factory:n,factoryData:r},d=null===(c=e.chain)||void 0===c?void 0:c.id;if(!d)throw l.internal("chainId not found");const f=await aS({owner:a,ownerIndex:null!=i?i:1,address:t,client:e,factoryData:r}),h=async t=>{var n,r,i,c,p,m;try{switch(t.method){case"wallet_addSubAccount":return u;case"eth_accounts":return[u.address];case"eth_coinbase":return u.address;case"net_version":return d.toString();case"eth_chainId":return im(d);case"eth_sendTransaction":{fh(t.params);const a=t.params[0];lh(a.to,l.invalidParams("to is required"));const s={to:a.to,data:YI(null!==(n=a.data)&&void 0!==n?n:"0x",!0),value:YI(null!==(r=a.value)&&void 0!==r?r:"0x",!0),from:null!==(i=a.from)&&void 0!==i?i:u.address},o=YP({calls:[s],chainId:d,from:s.from}),c=await h(o);return JP({client:e,id:c})}case"wallet_sendCalls":{fh(t.params);const e=VP(t.params[0],"chainId");if(!e)throw l.invalidParams("chainId is required");if(!cp(e))throw l.invalidParams("chainId must be a hex encoded integer");if(!t.params[0])throw l.invalidParams("params are required");if(!("calls"in t.params[0]))throw l.invalidParams("calls are required");let n={method:"wallet_prepareCalls",params:[{version:"1.0",calls:t.params[0].calls,chainId:e,from:u.address,capabilities:"capabilities"in t.params[0]?t.params[0].capabilities:{}}]};s&&(n=HP(n,{funding:[{type:"spendPermission",data:{autoApply:!0,sources:[s],preference:"PREFER_DIRECT_BALANCE"}}]}));let r=await h(n);const i=await(null===(p=(c=a).sign)||void 0===p?void 0:p.call(c,{hash:tm(r.signatureRequest.hash)}));let o;if(!i)throw l.internal("signature not found");o=cp(i)?{type:"secp256k1",data:{address:a.address,signature:i}}:{type:"webauthn",data:{signature:JSON.stringify(nS(Object.assign({id:null!==(m=a.id)&&void 0!==m?m:"1"},i))),publicKey:a.publicKey}};return(await h({method:"wallet_sendPreparedCalls",params:[{version:"1.0",type:r.type,data:r.userOp,chainId:r.chainId,signature:o}]}))[0]}case"wallet_sendPreparedCalls":{fh(t.params);const n=VP(t.params[0],"chainId");if(!n)throw l.invalidParams("chainId is required");if(!cp(n))throw l.invalidParams("chainId must be a hex encoded integer");return await e.request({method:"wallet_sendPreparedCalls",params:t.params})}case"wallet_prepareCalls":{fh(t.params);const n=VP(t.params[0],"chainId");if(!n)throw l.invalidParams("chainId is required");if(!cp(n))throw l.invalidParams("chainId must be a hex encoded integer");if(!t.params[0])throw l.invalidParams("params are required");if(!VP(t.params[0],"calls"))throw l.invalidParams("calls are required");const r=t.params[0];o&&r.capabilities&&!("attribution"in r.capabilities)&&(r.capabilities.attribution=o);return await e.request({method:"wallet_prepareCalls",params:[Object.assign(Object.assign({},t.params[0]),{chainId:n})]})}case"personal_sign":{if(fh(t.params),!cp(t.params[0]))throw l.invalidParams("message must be a hex encoded string");const e=tm(t.params[0]);return f.signMessage({message:e})}case"eth_signTypedData_v4":{fh(t.params);const e="string"==typeof t.params[1]?JSON.parse(t.params[1]):t.params[1];return f.signTypedData(e)}default:throw l.methodNotSupported()}}catch(t){if(v(t)){const e=function(t){try{const e=JSON.parse(t.details);return new y(e.code,e.message,e.data)}catch(t){return null}}(t);if(e)throw e}throw t}};return{request:h}}async function uS({address:t,client:e,publicKey:n,factory:r,factoryData:a}){if(!await mw(e,{address:t})&&r&&a){const t=Dv({abi:dh,data:a});if("createAccount"!==t.functionName)throw l.internal("unknown factory function");const[e]=t.args;return e.findIndex(t=>t.toLowerCase()===dS(n).toLowerCase())}const i=await hv(e,{address:t,abi:uh,functionName:"ownerCount"});for(let r=Number(i)-1;r>=0;r--){const a=await hv(e,{address:t,abi:uh,functionName:"ownerAtIndex",args:[BigInt(r)]}),i=dS(n);if(a.toLowerCase()===i.toLowerCase())return r}return-1}function dS(t){return Pm(t)?Kp(t):t}async function lS({ownerAccount:t,globalAccountRequest:e,chainId:n}){var r,a;const i=oh.account.get(),s=oh.subAccounts.get(),o=null===(r=i.accounts)||void 0===r?void 0:r.find(t=>t.toLowerCase()!==(null==s?void 0:s.address.toLowerCase()));lh(o,f.unauthorized("no global account")),lh(null===(a=i.chain)||void 0===a?void 0:a.id,f.unauthorized("no chain id")),lh(null==s?void 0:s.address,f.unauthorized("no sub account"));const c=[];if("local"===t.type&&t.address&&c.push({to:s.address,data:Qm({abi:uh,functionName:"addOwnerAddress",args:[t.address]}),value:nm(0)}),t.publicKey){const[e,n]=dy([{type:"bytes32"},{type:"bytes32"}],t.publicKey);c.push({to:s.address,data:Qm({abi:uh,functionName:"addOwnerPublicKey",args:[e,n]}),value:nm(0)})}const u={method:"wallet_sendCalls",params:[{version:"1",calls:c,chainId:im(n),from:o}]},d=await async function(){var t,e;const n=null!==(e=null===(t=oh.config.get().metadata)||void 0===t?void 0:t.appName)&&void 0!==e?e:"App",r=UI();return new Promise(t=>{mA({dialogContext:"sub_account_add_owner"}),r.presentItem({title:`Re-authorize ${n}`,message:`${n} has lost access to your account. Please sign at the next step to re-authorize ${n}`,onClose:()=>{yA({dialogContext:"sub_account_add_owner"}),t("cancel")},actionItems:[{text:"Continue",variant:"primary",onClick:()=>{gA({dialogContext:"sub_account_add_owner",dialogAction:"confirm"}),r.clear(),t("authenticate")}},{text:"Not now",variant:"secondary",onClick:()=>{gA({dialogContext:"sub_account_add_owner",dialogAction:"cancel"}),r.clear(),t("cancel")}}]})})}();if("cancel"===d)throw f.unauthorized("user cancelled");const h=await e(u),p=bP(i.chain.id);lh(p,l.internal(`client not found for chainId ${i.chain.id}`));if("success"!==(await Nv(p,{id:h})).status)throw l.internal("add owner call failed");const m=await uS({address:s.address,publicKey:"local"===t.type&&t.address?t.address:t.publicKey,client:p});if(-1===m)throw l.internal("failed to find owner index");return m}async function fS({request:t,globalAccountAddress:e,subAccountAddress:n,client:r,globalAccountRequest:a,chainId:i,prependCalls:s}){var o;let c;if("wallet_sendCalls"===t.method&&("object"==typeof(u=t.params)&&null!==u&&Array.isArray(u)&&u.length>0&&"object"==typeof u[0]&&null!==u[0]&&"calls"in u[0]))c=t.params[0];else{if("eth_sendTransaction"!==t.method||!function(t){return Array.isArray(t)&&1===t.length&&"object"==typeof t[0]&&null!==t[0]&&"to"in t[0]}(t.params))throw new Error(`Could not get original call from ${t.method} request`);c=YP({calls:[t.params[0]],chainId:i,from:t.params[0].from}).params[0]}var u;const d=Qm({abi:uh,functionName:"executeBatch",args:[c.calls.map(t=>{var e,n;return{target:t.to,value:Qp(null!==(e=t.value)&&void 0!==e?e:"0x0"),data:null!==(n=t.data)&&void 0!==n?n:"0x"}})]}),l=[...null!=s?s:[],{data:d,to:n,value:"0x0"}],f=HP({method:"wallet_sendCalls",params:[Object.assign(Object.assign({},c),{calls:l,from:e,version:"2.0.0",atomicRequired:!0})]},{spendPermissions:{request:{spender:n}}}),h=await a(f);let p=h.id;return(null===(o=h.capabilities)||void 0===o?void 0:o.spendPermissions)&&ah.set(h.capabilities.spendPermissions.permissions),"eth_sendTransaction"===t.method?JP({client:r,id:p}):h}async function hS({globalAccountAddress:t,subAccountAddress:e,client:n,request:r,globalAccountRequest:a}){var i;const s=null===(i=n.chain)||void 0===i?void 0:i.id;lh(s,l.internal("invalid chainId"));try{await async function(){const t=UI();return await new Promise((e,n)=>{mA({dialogContext:"sub_account_insufficient_balance"}),t.presentItem({title:"Insufficient spend permission",message:"Your spend permission's remaining balance cannot cover this transaction. Please use your primary account to complete this transaction.",onClose:()=>{yA({dialogContext:"sub_account_insufficient_balance"}),t.clear(),n(new Error("User cancelled funding"))},actionItems:[{text:"Use primary account",variant:"primary",onClick:()=>{gA({dialogContext:"sub_account_insufficient_balance",dialogAction:"continue_in_popup"}),t.clear(),e("continue_popup")}},{text:"Cancel",variant:"secondary",onClick:()=>{gA({dialogContext:"sub_account_insufficient_balance",dialogAction:"cancel"}),t.clear(),n(new Error("User cancelled funding"))}}]})})}()}catch(t){throw f.userRejectedRequest({message:"User cancelled funding"})}return await fS({request:r,globalAccountAddress:t,subAccountAddress:e,client:n,globalAccountRequest:a,chainId:s})}class pS{constructor(t){var e,n,r,a;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new KP;const{account:i,chains:s}=oh.getState();this.accounts=null!==(e=i.accounts)&&void 0!==e?e:[],this.chain=null!==(n=i.chain)&&void 0!==n?n:{id:null!==(a=null===(r=t.metadata.appChainIds)||void 0===r?void 0:r[0])&&void 0!==a?a:1},gP(null!=s?s:yP)}get isConnected(){return this.accounts.length>0}async handshake(t){var e,n,r;const a=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_signer.handshake.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:a});try{await(null===(n=(e=this.communicator).waitForPopupLoaded)||void 0===n?void 0:n.call(e));const i=await this.createRequestMessage({handshake:{method:t.method,params:null!==(r=t.params)&&void 0!==r?r:[]}},a),s=await this.communicator.postRequestAndWaitForResponse(i);if("failure"in s.content)throw s.content.failure;const o=await SP("public",s.sender);await this.keyManager.setPeerPublicKey(o);const c=await this.decryptResponseMessage(s);this.handleResponse(t,c),(({method:t,correlationId:e})=>{var n;pA("scw_signer.handshake.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:a})}catch(e){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_signer.handshake.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:a,errorMessage:GI(e)}),e}}async request(t){const e=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_signer.request.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e});try{const n=await this._request(t);return(({method:t,correlationId:e})=>{var n;pA("scw_signer.request.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_signer.request.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e,errorMessage:GI(n)}),n}}async _request(t){var e,n,r,a,i,s,o,c,u,d;if(0===this.accounts.length)switch(t.method){case"wallet_switchEthereumChain":return ZP(t.params),void(this.chain.id=Number(t.params[0].chainId));case"wallet_connect":{await(null===(n=(e=this.communicator).waitForPopupLoaded)||void 0===n?void 0:n.call(e)),await WP();let i={};QP(t,"addSubAccount")&&(i=null!==(a=null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.capabilities)&&void 0!==a?a:{});const s=HP(t,i);return this.sendRequestToPopup(s)}case"wallet_sendCalls":case"wallet_sign":return this.sendRequestToPopup(t);default:throw f.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){const e=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.request.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e});try{const n=await this.sendRequestToSubAccountSigner(t);return(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.request.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_sub_account.request.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e,errorMessage:GI(n)}),n}}switch(t.method){case"eth_requestAccounts":case"eth_accounts":{const t=oh.subAccounts.get(),e=oh.subAccountsConfig.get();return(null==t?void 0:t.address)&&(this.accounts=(null==e?void 0:e.enableAutoSubAccounts)?XP(this.accounts,t.address):tS(this.accounts,t.address)),null===(i=this.callback)||void 0===i||i.call(this,"connect",{chainId:im(this.chain.id)}),this.accounts}case"eth_coinbase":return this.accounts[0];case"net_version":return this.chain.id;case"eth_chainId":return im(this.chain.id);case"wallet_getCapabilities":return this.handleGetCapabilitiesRequest(t);case"wallet_getUserInfo":return this.handleGetUserInfoRequest(t);case"wallet_switchEthereumChain":return this.handleSwitchChainRequest(t);case"eth_ecRecover":case"personal_sign":case"wallet_sign":case"personal_ecRecover":case"eth_signTransaction":case"eth_sendTransaction":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":case"wallet_addEthereumChain":case"wallet_watchAsset":case"wallet_sendCalls":case"wallet_showCallsStatus":case"wallet_grantPermissions":return this.sendRequestToPopup(t);case"wallet_connect":{if(!QP(t,"signInWithEthereum")){const t=await async function(){const t=oh.spendPermissions.get(),e=oh.subAccounts.get(),n=oh.account.get().accounts;if(!n)return null;const r=null==n?void 0:n.map(n=>({address:n,capabilities:{subAccounts:e?[e]:void 0,spendPermissions:t.length>0?{permissions:t}:void 0}}));return{accounts:r}}();if(t)return t}await(null===(o=(s=this.communicator).waitForPopupLoaded)||void 0===o?void 0:o.call(s)),await WP();const e=oh.subAccountsConfig.get(),n=HP(t,null!==(c=null==e?void 0:e.capabilities)&&void 0!==c?c:{}),r=await this.sendRequestToPopup(n);return null===(u=this.callback)||void 0===u||u.call(this,"connect",{chainId:im(this.chain.id)}),r}case"wallet_getSubAccounts":{const e=oh.subAccounts.get();if(null==e?void 0:e.address)return{subAccounts:[e]};if(!this.chain.rpcUrl)throw l.internal("No RPC URL set for chain");const n=await TP(t,this.chain.rpcUrl);if(fh(n.subAccounts,"subAccounts"),n.subAccounts.length>0){IP(n.subAccounts[0]);const t=n.subAccounts[0];oh.subAccounts.set({address:t.address,factory:t.factory,factoryData:t.factoryData})}return n}case"wallet_addSubAccount":return this.addSubAccount(t);case"coinbase_fetchPermissions":{!function(t){if("coinbase_fetchPermissions"!==t.method||void 0!==t.params){if("coinbase_fetchPermissions"!==t.method||!Array.isArray(t.params)||1!==t.params.length||"object"!=typeof t.params[0])throw l.invalidParams();if("string"!=typeof t.params[0].account||!t.params[0].chainId.startsWith("0x"))throw l.invalidParams("FetchPermissions - Invalid params: params[0].account must be a hex string");if("string"!=typeof t.params[0].chainId||!t.params[0].chainId.startsWith("0x"))throw l.invalidParams("FetchPermissions - Invalid params: params[0].chainId must be a hex string");if("string"!=typeof t.params[0].spender||!t.params[0].spender.startsWith("0x"))throw l.invalidParams("FetchPermissions - Invalid params: params[0].spender must be a hex string")}}(t);const e=function(t){var e,n,r;if(void 0!==t.params)return t;const a=null===(e=oh.getState().account.accounts)||void 0===e?void 0:e[0],i=null===(n=oh.getState().account.chain)||void 0===n?void 0:n.id,s=null===(r=oh.getState().subAccount)||void 0===r?void 0:r.address;if(!a||!s||!i)throw l.invalidParams("FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first");return{method:"coinbase_fetchPermissions",params:[{account:a,chainId:im(i),spender:s}]}}(t),n=await TP(e,Jf),r=Xp(null===(d=e.params)||void 0===d?void 0:d[0].chainId);return oh.spendPermissions.set(n.permissions.map(t=>Object.assign(Object.assign({},t),{chainId:r}))),n}default:if(!this.chain.rpcUrl)throw l.internal("No RPC URL set for chain");return TP(t,this.chain.rpcUrl)}}async sendRequestToPopup(t){var e,n;await(null===(n=(e=this.communicator).waitForPopupLoaded)||void 0===n?void 0:n.call(e));const r=function(t,e){if("wallet_sendCalls"!==t.method)return t;const n=ih.get().paymasterOptions,r=null==n?void 0:n[e];return r?HP(t,{paymasterService:{url:r.url,id:r.id}}):t}(t,this.chain.id),a=await this.sendEncryptedRequest(r),i=await this.decryptResponseMessage(a);return this.handleResponse(r,i)}async handleResponse(t,e){var n,r,a,i,s;const o=e.result;if("error"in o)throw o.error;switch(t.method){case"eth_requestAccounts":{const t=o.value;this.accounts=t,oh.account.set({accounts:t,chain:this.chain}),null===(n=this.callback)||void 0===n||n.call(this,"accountsChanged",t);break}case"wallet_connect":{const t=o.value,e=t.accounts.map(t=>t.address);this.accounts=e,oh.account.set({accounts:e});const n=t.userInfo;oh.userInfo.set(n);const s=t.accounts.at(0),c=null==s?void 0:s.capabilities;if(null==c?void 0:c.subAccounts){const t=null==c?void 0:c.subAccounts;fh(t,"subAccounts"),IP(t[0]),oh.subAccounts.set({address:t[0].address,factory:t[0].factory,factoryData:t[0].factoryData})}let u=[this.accounts[0]];const d=oh.subAccounts.get(),l=oh.subAccountsConfig.get();(null==d?void 0:d.address)&&(this.accounts=(null==l?void 0:l.enableAutoSubAccounts)?XP(this.accounts,d.address):tS(this.accounts,d.address));const f=null===(a=null===(r=null==t?void 0:t.accounts)||void 0===r?void 0:r[0].capabilities)||void 0===a?void 0:a.spendPermissions;f&&"permissions"in f&&oh.spendPermissions.set(null==f?void 0:f.permissions),null===(i=this.callback)||void 0===i||i.call(this,"accountsChanged",u);break}case"wallet_addSubAccount":{IP(o.value);const t=o.value;oh.subAccounts.set(t);const e=oh.subAccountsConfig.get();this.accounts=(null==e?void 0:e.enableAutoSubAccounts)?XP(this.accounts,t.address):tS(this.accounts,t.address),null===(s=this.callback)||void 0===s||s.call(this,"accountsChanged",this.accounts);break}}return o.value}async cleanup(){var t,e;const n=oh.config.get().metadata;await this.keyManager.clear(),oh.account.clear(),oh.subAccounts.clear(),oh.spendPermissions.clear(),oh.chains.clear(),this.accounts=[],this.chain={id:null!==(e=null===(t=null==n?void 0:n.appChainIds)||void 0===t?void 0:t[0])&&void 0!==e?e:1}}async handleSwitchChainRequest(t){ZP(t.params);const e=$I(t.params[0].chainId);if(this.updateChain(e))return null;const n=await this.sendRequestToPopup(t);return null===n&&this.updateChain(e),n}async handleGetCapabilitiesRequest(t){!function(t){if(!t||!Array.isArray(t)||1!==t.length&&2!==t.length)throw l.invalidParams();if("string"!=typeof t[0]||!Pm(t[0]))throw l.invalidParams();if(2===t.length){if(!Array.isArray(t[1]))throw l.invalidParams();for(const e of t[1])if("string"!=typeof e||!e.startsWith("0x"))throw l.invalidParams()}}(t.params);const e=t.params[0],n=t.params[1];if(!this.accounts.some(t=>Ob(t,e)))throw f.unauthorized("no active account found when getting capabilities");const r=oh.getState().account.capabilities;if(!r)return{};if(!n||0===n.length)return r;const a=new Set(n.map(t=>Xp(t)));return Object.fromEntries(Object.entries(r).filter(([t])=>{try{const e=Xp(t);return a.has(e)}catch(t){return!1}}))}async handleGetUserInfoRequest(t){const e=oh.getState().userInfo;if(!e)throw f.unauthorized("No user info found");return e}async sendEncryptedRequest(t){const e=await this.keyManager.getSharedSecret();if(!e)throw f.unauthorized("No shared secret found when encrypting request");const n=await _P({action:t,chainId:this.chain.id},e),r=wP(t),a=await this.createRequestMessage({encrypted:n},r);return this.communicator.postRequestAndWaitForResponse(a)}async createRequestMessage(t,e){const n=await PP("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:e,sender:n,content:t,timestamp:new Date}}async decryptResponseMessage(t){var e,n,r;const a=t.content;if("failure"in a)throw a.failure;const i=await this.keyManager.getSharedSecret();if(!i)throw f.unauthorized("Invalid session: no shared secret found when decrypting response");const s=await OP(a.encrypted,i),o=null===(e=s.data)||void 0===e?void 0:e.chains;if(o){const t=null===(n=s.data)||void 0===n?void 0:n.nativeCurrencies,e=Object.entries(o).map(([e,n])=>{const r=null==t?void 0:t[Number(e)];return Object.assign({id:Number(e),rpcUrl:n},r?{nativeCurrency:r}:{})});oh.chains.set(e),this.updateChain(this.chain.id,e),gP(e)}const c=null===(r=s.data)||void 0===r?void 0:r.capabilities;return c&&oh.account.set({capabilities:c}),s}updateChain(t,e){var n;const r=oh.getState(),a=null!=e?e:r.chains,i=null==a?void 0:a.find(e=>e.id===t);return!!i&&(i!==this.chain&&(this.chain=i,oh.account.set({chain:i}),null===(n=this.callback)||void 0===n||n.call(this,"chainChanged",WI(i.id))),!0)}async addSubAccount(t){var e,n,r,a;const i=oh.getState().subAccount,s=oh.subAccountsConfig.get();if(null==i?void 0:i.address)return this.accounts=(null==s?void 0:s.enableAutoSubAccounts)?XP(this.accounts,i.address):tS(this.accounts,i.address),null===(e=this.callback)||void 0===e||e.call(this,"accountsChanged",this.accounts),i;if(await(null===(r=(n=this.communicator).waitForPopupLoaded)||void 0===r?void 0:r.call(n)),Array.isArray(t.params)&&t.params.length>0&&t.params[0].account&&"create"===t.params[0].account.type){let e;if(t.params[0].account.keys&&t.params[0].account.keys.length>0)e=t.params[0].account.keys;else{const t=null!==(a=oh.subAccountsConfig.get())&&void 0!==a?a:{},{account:n}=t.toOwnerAccount?await t.toOwnerAccount():await FP();if(!n)throw f.unauthorized("could not get subaccount owner account when adding sub account");e=[{type:n.address?"address":"webauthn-p256",publicKey:n.address||n.publicKey}]}t.params[0].account.keys=e}const o=await this.sendRequestToPopup(t);return IP(o),o}shouldRequestUseSubAccountSigner(t){return!1}async sendRequestToSubAccountSigner(t){var e;const n=oh.subAccounts.get(),r=oh.subAccountsConfig.get(),a=oh.config.get();lh(null==n?void 0:n.address,f.unauthorized("no active sub account when sending request to sub account signer"));const i=(null==r?void 0:r.toOwnerAccount)?await r.toOwnerAccount():await FP();lh(null==i?void 0:i.account,f.unauthorized("no active sub account owner when sending request to sub account signer"));const s=function(t){var e;if(!Array.isArray(t.params))return null;switch(t.method){case"personal_sign":return t.params[1];case"eth_signTypedData_v4":return t.params[0];case"eth_signTransaction":case"eth_sendTransaction":case"wallet_sendCalls":return null===(e=t.params[0])||void 0===e?void 0:e.from;default:return null}}(t);void 0===s&&(t=function(t,e){if(!Array.isArray(t.params))throw l.invalidParams();const n=[...t.params];switch(t.method){case"eth_signTransaction":case"eth_sendTransaction":case"wallet_sendCalls":n[0].from=e;break;case"eth_signTypedData_v4":n[0]=e;break;case"personal_sign":n[1]=e}return Object.assign(Object.assign({},t),{params:n})}(t,n.address));const o=bP(this.chain.id);lh(o,l.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));const c=this.accounts.find(t=>t.toLowerCase()!==n.address.toLowerCase());lh(c,f.unauthorized("no global account found when sending request to sub account signer"));const u=$P({attribution:null===(e=a.preference)||void 0===e?void 0:e.attribution,dappOrigin:window.location.origin});if(["eth_sendTransaction","wallet_sendCalls"].includes(t.method)){const e=oh.subAccountsConfig.get();if(!1!==(null==e?void 0:e.unstable_enableAutoSpendPermissions)){if(0===ah.get().length){return await fS({request:t,globalAccountAddress:c,subAccountAddress:n.address,client:o,globalAccountRequest:this.sendRequestToPopup.bind(this),chainId:this.chain.id})}}}const d="local"===i.account.type?i.account.address:i.account.publicKey;let h=await uS({address:n.address,factory:n.factory,factoryData:n.factoryData,publicKey:d,client:o});if(-1===h){const e=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.add_owner.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e});try{h=await lS({ownerAccount:i.account,globalAccountRequest:this.sendRequestToPopup.bind(this),chainId:this.chain.id}),(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.add_owner.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e})}catch(n){return(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_sub_account.add_owner.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e,errorMessage:GI(n)}),f.unauthorized("failed to add sub account owner when sending request to sub account signer")}}const{request:p}=await cS({address:n.address,owner:i.account,client:o,factory:n.factory,factoryData:n.factoryData,parentAddress:c,attribution:u?{suffix:u}:void 0,ownerIndex:h});try{return await p(t)}catch(e){const r=oh.subAccountsConfig.get();if(!1===(null==r?void 0:r.unstable_enableAutoSpendPermissions))throw e;let a;if(v(e))a=JSON.parse(e.details);else{if(!b(e))throw e;a=e}if(!b(a)||!a.data)throw e;if(!a.data)throw e;const i=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.insufficient_balance.error_handling.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:i});try{const e=await hS({errorData:a.data,globalAccountAddress:c,subAccountAddress:n.address,client:o,request:t,globalAccountRequest:this.request.bind(this)});return(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.insufficient_balance.error_handling.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:i}),e}catch(n){throw console.error(n),(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_sub_account.insufficient_balance.error_handling.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:i,errorMessage:GI(n)}),e}}}}class mS extends E{constructor(t,e){var{metadata:n}=t,r=t.preference,{walletUrl:a}=r,i=dA(r,["walletUrl"]);super(),this.isBaseAccount=!0,this.communicator=null!=e?e:new DI({url:a,metadata:n,preference:i}),this.signer=new pS({metadata:n,communicator:this.communicator,callback:this.emit.bind(this)})}async request(t){const e=crypto.randomUUID();xP(t,e),(({method:t,correlationId:e})=>{pA("provider.request.started",{action:fA.unknown,componentType:lA.unknown,method:t,signerType:"app-sdk",correlationId:e},hA.high)})({method:t.method,correlationId:e});try{const n=await this._request(t);return(({method:t,correlationId:e})=>{pA("provider.request.responded",{action:fA.unknown,componentType:lA.unknown,method:t,signerType:"app-sdk",correlationId:e},hA.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{pA("provider.request.error",{action:fA.error,componentType:lA.unknown,method:t,signerType:"app-sdk",correlationId:e,errorMessage:n},hA.high)})({method:t.method,correlationId:e,errorMessage:GI(n)}),n}finally{kP(t)}}async _request(t){var e,r;try{if(function(t){if(!t||"object"!=typeof t||Array.isArray(t))throw l.invalidParams({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:n}=t;if("string"!=typeof e||0===e.length)throw l.invalidParams({message:"'args.method' must be a non-empty string.",data:t});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw l.invalidParams({message:"'args.params' must be an object or array if provided.",data:t});switch(e){case"eth_sign":case"eth_signTypedData_v2":case"eth_subscribe":case"eth_unsubscribe":throw f.unsupportedMethod()}}(t),!this.signer.isConnected)switch(t.method){case"eth_requestAccounts":await this.signer.handshake({method:"handshake"}),await WP(),await this.signer.request({method:"wallet_connect",params:[Object.assign({version:"1",capabilities:Object.assign({},null!==(r=null===(e=oh.subAccountsConfig.get())||void 0===e?void 0:e.capabilities)&&void 0!==r?r:{})},t.params)]});break;case"wallet_connect":await this.signer.handshake({method:"handshake"});return await this.signer.request(t);case"wallet_sendCalls":case"wallet_sign":try{await this.signer.handshake({method:"handshake"});return await this.signer.request(t)}finally{await this.signer.cleanup()}case"wallet_getCallsStatus":return await TP(t,Jf);case"eth_accounts":return[];case"net_version":return 1;case"eth_chainId":return WI(1);default:throw f.unauthorized("Must call 'eth_requestAccounts' before other methods")}return await this.signer.request(t)}catch(t){const{code:e}=t;return e===n.unauthorized&&await this.disconnect(),Promise.reject(qI(t))}}async disconnect(){await this.signer.cleanup(),AP(),this.emit("disconnect",f.disconnected("User initiated disconnection"))}}function yS(t){var e,n,r,a,i,s;const o={metadata:{appName:t.appName||"App",appLogoUrl:t.appLogoUrl||"",appChainIds:t.appChainIds||[]},preference:null!==(e=t.preference)&&void 0!==e?e:{},paymasterOptions:t.paymasterOptions};(null===(n=t.subAccounts)||void 0===n?void 0:n.toOwnerAccount)&&mh(t.subAccounts.toOwnerAccount),oh.subAccountsConfig.set({toOwnerAccount:null===(r=t.subAccounts)||void 0===r?void 0:r.toOwnerAccount,enableAutoSubAccounts:null===(a=t.subAccounts)||void 0===a?void 0:a.enableAutoSubAccounts,unstable_enableAutoSpendPermissions:null===(s=null===(i=t.subAccounts)||void 0===i?void 0:i.unstable_enableAutoSpendPermissions)||void 0===s||s}),oh.config.set(o),oh.persist.rehydrate();const c=Wf();c||hh(),function(t){if(t){if(t.attribution&&void 0!==t.attribution.auto&&void 0!==t.attribution.dataSuffix)throw new Error("Attribution cannot contain both auto and dataSuffix properties");if(t.telemetry&&"boolean"!=typeof t.telemetry)throw new Error("Telemetry must be a boolean")}}(o.preference),!1!==o.preference.telemetry&&new Promise((t,e)=>{if(window.ClientAnalytics)return t();try{const e=document.createElement("script");e.textContent="!(function (e, t) {\n\t'object' == typeof exports && 'object' == typeof module\n\t\t? (module.exports = t())\n\t\t: 'function' == typeof define && define.amd\n\t\t\t? define([], t)\n\t\t\t: 'object' == typeof exports\n\t\t\t\t? (exports.ClientAnalytics = t())\n\t\t\t\t: (e.ClientAnalytics = t())\n})(this, function () {\n\treturn (() => {\n\t\tvar e = {\n\t\t\t\t792: (e) => {\n\t\t\t\t\tvar t = {\n\t\t\t\t\t\tutf8: {\n\t\t\t\t\t\t\tstringToBytes: function (e) {\n\t\t\t\t\t\t\t\treturn t.bin.stringToBytes(\n\t\t\t\t\t\t\t\t\tunescape(encodeURIComponent(e)),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToString: function (e) {\n\t\t\t\t\t\t\t\treturn decodeURIComponent(\n\t\t\t\t\t\t\t\t\tescape(t.bin.bytesToString(e)),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbin: {\n\t\t\t\t\t\t\tstringToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push(255 & e.charCodeAt(n))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToString: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push(String.fromCharCode(e[n]))\n\t\t\t\t\t\t\t\treturn t.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t\te.exports = t\n\t\t\t\t},\n\t\t\t\t562: (e) => {\n\t\t\t\t\tvar t, n\n\t\t\t\t\t;(t =\n\t\t\t\t\t\t'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'),\n\t\t\t\t\t\t(n = {\n\t\t\t\t\t\t\trotl: function (e, t) {\n\t\t\t\t\t\t\t\treturn (e << t) | (e >>> (32 - t))\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trotr: function (e, t) {\n\t\t\t\t\t\t\t\treturn (e << (32 - t)) | (e >>> t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tendian: function (e) {\n\t\t\t\t\t\t\t\tif (e.constructor == Number)\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t(16711935 & n.rotl(e, 8)) |\n\t\t\t\t\t\t\t\t\t\t(4278255360 & n.rotl(e, 24))\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tfor (var t = 0; t < e.length; t++) e[t] = n.endian(e[t])\n\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trandomBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = []; e > 0; e--)\n\t\t\t\t\t\t\t\t\tt.push(Math.floor(256 * Math.random()))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToWords: function (e) {\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar t = [], n = 0, r = 0;\n\t\t\t\t\t\t\t\t\tn < e.length;\n\t\t\t\t\t\t\t\t\tn++, r += 8\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\tt[r >>> 5] |= e[n] << (24 - (r % 32))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\twordsToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < 32 * e.length; n += 8)\n\t\t\t\t\t\t\t\t\tt.push((e[n >>> 5] >>> (24 - (n % 32))) & 255)\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToHex: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push((e[n] >>> 4).toString(16)),\n\t\t\t\t\t\t\t\t\t\tt.push((15 & e[n]).toString(16))\n\t\t\t\t\t\t\t\treturn t.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thexToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n += 2)\n\t\t\t\t\t\t\t\t\tt.push(parseInt(e.substr(n, 2), 16))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToBase64: function (e) {\n\t\t\t\t\t\t\t\tfor (var n = [], r = 0; r < e.length; r += 3)\n\t\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\t\tvar i = (e[r] << 16) | (e[r + 1] << 8) | e[r + 2],\n\t\t\t\t\t\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\t\t\t\t\ta < 4;\n\t\t\t\t\t\t\t\t\t\ta++\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t8 * r + 6 * a <= 8 * e.length\n\t\t\t\t\t\t\t\t\t\t\t? n.push(t.charAt((i >>> (6 * (3 - a))) & 63))\n\t\t\t\t\t\t\t\t\t\t\t: n.push('=')\n\t\t\t\t\t\t\t\treturn n.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbase64ToBytes: function (e) {\n\t\t\t\t\t\t\t\te = e.replace(/[^A-Z0-9+\\/]/gi, '')\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar n = [], r = 0, i = 0;\n\t\t\t\t\t\t\t\t\tr < e.length;\n\t\t\t\t\t\t\t\t\ti = ++r % 4\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t0 != i &&\n\t\t\t\t\t\t\t\t\t\tn.push(\n\t\t\t\t\t\t\t\t\t\t\t((t.indexOf(e.charAt(r - 1)) &\n\t\t\t\t\t\t\t\t\t\t\t\t(Math.pow(2, -2 * i + 8) - 1)) <<\n\t\t\t\t\t\t\t\t\t\t\t\t(2 * i)) |\n\t\t\t\t\t\t\t\t\t\t\t\t(t.indexOf(e.charAt(r)) >>> (6 - 2 * i)),\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(e.exports = n)\n\t\t\t\t},\n\t\t\t\t335: (e) => {\n\t\t\t\t\tfunction t(e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t!!e.constructor &&\n\t\t\t\t\t\t\t'function' == typeof e.constructor.isBuffer &&\n\t\t\t\t\t\t\te.constructor.isBuffer(e)\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\te.exports = function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tnull != e &&\n\t\t\t\t\t\t\t(t(e) ||\n\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t'function' == typeof e.readFloatLE &&\n\t\t\t\t\t\t\t\t\t\t'function' == typeof e.slice &&\n\t\t\t\t\t\t\t\t\t\tt(e.slice(0, 0))\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t})(e) ||\n\t\t\t\t\t\t\t\t!!e._isBuffer)\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t762: (e, t, n) => {\n\t\t\t\t\tvar r, i, a, o, s\n\t\t\t\t\t;(r = n(562)),\n\t\t\t\t\t\t(i = n(792).utf8),\n\t\t\t\t\t\t(a = n(335)),\n\t\t\t\t\t\t(o = n(792).bin),\n\t\t\t\t\t\t((s = function (e, t) {\n\t\t\t\t\t\t\te.constructor == String\n\t\t\t\t\t\t\t\t? (e =\n\t\t\t\t\t\t\t\t\t\tt && 'binary' === t.encoding\n\t\t\t\t\t\t\t\t\t\t\t? o.stringToBytes(e)\n\t\t\t\t\t\t\t\t\t\t\t: i.stringToBytes(e))\n\t\t\t\t\t\t\t\t: a(e)\n\t\t\t\t\t\t\t\t\t? (e = Array.prototype.slice.call(e, 0))\n\t\t\t\t\t\t\t\t\t: Array.isArray(e) ||\n\t\t\t\t\t\t\t\t\t\te.constructor === Uint8Array ||\n\t\t\t\t\t\t\t\t\t\t(e = e.toString())\n\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\tvar n = r.bytesToWords(e),\n\t\t\t\t\t\t\t\t\tc = 8 * e.length,\n\t\t\t\t\t\t\t\t\tu = 1732584193,\n\t\t\t\t\t\t\t\t\tl = -271733879,\n\t\t\t\t\t\t\t\t\td = -1732584194,\n\t\t\t\t\t\t\t\t\tp = 271733878,\n\t\t\t\t\t\t\t\t\tm = 0;\n\t\t\t\t\t\t\t\tm < n.length;\n\t\t\t\t\t\t\t\tm++\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tn[m] =\n\t\t\t\t\t\t\t\t\t(16711935 & ((n[m] << 8) | (n[m] >>> 24))) |\n\t\t\t\t\t\t\t\t\t(4278255360 & ((n[m] << 24) | (n[m] >>> 8)))\n\t\t\t\t\t\t\t;(n[c >>> 5] |= 128 << (c % 32)),\n\t\t\t\t\t\t\t\t(n[14 + (((c + 64) >>> 9) << 4)] = c)\n\t\t\t\t\t\t\tvar f = s._ff,\n\t\t\t\t\t\t\t\tv = s._gg,\n\t\t\t\t\t\t\t\tg = s._hh,\n\t\t\t\t\t\t\t\tb = s._ii\n\t\t\t\t\t\t\tfor (m = 0; m < n.length; m += 16) {\n\t\t\t\t\t\t\t\tvar h = u,\n\t\t\t\t\t\t\t\t\tw = l,\n\t\t\t\t\t\t\t\t\ty = d,\n\t\t\t\t\t\t\t\t\tT = p\n\t\t\t\t\t\t\t\t;(u = f(u, l, d, p, n[m + 0], 7, -680876936)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 1], 12, -389564586)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 2], 17, 606105819)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 3], 22, -1044525330)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 4], 7, -176418897)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 5], 12, 1200080426)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 6], 17, -1473231341)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 7], 22, -45705983)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 8], 7, 1770035416)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 9], 12, -1958414417)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 10], 17, -42063)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 11], 22, -1990404162)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 12], 7, 1804603682)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 13], 12, -40341101)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 14], 17, -1502002290)),\n\t\t\t\t\t\t\t\t\t(u = v(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 15], 22, 1236535329)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 1],\n\t\t\t\t\t\t\t\t\t\t5,\n\t\t\t\t\t\t\t\t\t\t-165796510,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 6], 9, -1069501632)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 11], 14, 643717713)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 0], 20, -373897302)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 5], 5, -701558691)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 10], 9, 38016083)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 15], 14, -660478335)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 4], 20, -405537848)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 9], 5, 568446438)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 14], 9, -1019803690)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 3], 14, -187363961)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 8], 20, 1163531501)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 13], 5, -1444681467)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 2], 9, -51403784)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 7], 14, 1735328473)),\n\t\t\t\t\t\t\t\t\t(u = g(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 12], 20, -1926607734)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 5],\n\t\t\t\t\t\t\t\t\t\t4,\n\t\t\t\t\t\t\t\t\t\t-378558,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 8], 11, -2022574463)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 11], 16, 1839030562)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 14], 23, -35309556)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 1], 4, -1530992060)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 4], 11, 1272893353)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 7], 16, -155497632)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 10], 23, -1094730640)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 13], 4, 681279174)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 0], 11, -358537222)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 3], 16, -722521979)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 6], 23, 76029189)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 9], 4, -640364487)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 12], 11, -421815835)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 15], 16, 530742520)),\n\t\t\t\t\t\t\t\t\t(u = b(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 2], 23, -995338651)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 0],\n\t\t\t\t\t\t\t\t\t\t6,\n\t\t\t\t\t\t\t\t\t\t-198630844,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 7], 10, 1126891415)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 14], 15, -1416354905)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 5], 21, -57434055)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 12], 6, 1700485571)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 3], 10, -1894986606)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 10], 15, -1051523)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 1], 21, -2054922799)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 8], 6, 1873313359)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 15], 10, -30611744)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 6], 15, -1560198380)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 13], 21, 1309151649)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 4], 6, -145523070)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 11], 10, -1120210379)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 2], 15, 718787259)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 9], 21, -343485551)),\n\t\t\t\t\t\t\t\t\t(u = (u + h) >>> 0),\n\t\t\t\t\t\t\t\t\t(l = (l + w) >>> 0),\n\t\t\t\t\t\t\t\t\t(d = (d + y) >>> 0),\n\t\t\t\t\t\t\t\t\t(p = (p + T) >>> 0)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn r.endian([u, l, d, p])\n\t\t\t\t\t\t})._ff = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + ((t & n) | (~t & r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._gg = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + ((t & r) | (n & ~r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._hh = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + (t ^ n ^ r) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._ii = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + (n ^ (t | ~r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._blocksize = 16),\n\t\t\t\t\t\t(s._digestsize = 16),\n\t\t\t\t\t\t(e.exports = function (e, t) {\n\t\t\t\t\t\t\tif (null == e) throw new Error('Illegal argument ' + e)\n\t\t\t\t\t\t\tvar n = r.wordsToBytes(s(e, t))\n\t\t\t\t\t\t\treturn t && t.asBytes\n\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t: t && t.asString\n\t\t\t\t\t\t\t\t\t? o.bytesToString(n)\n\t\t\t\t\t\t\t\t\t: r.bytesToHex(n)\n\t\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\t2: (e, t, n) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\tn.r(t),\n\t\t\t\t\t\tn.d(t, {\n\t\t\t\t\t\t\tPerfume: () => ze,\n\t\t\t\t\t\t\tincrementUjNavigation: () => Le,\n\t\t\t\t\t\t\tmarkStep: () => Re,\n\t\t\t\t\t\t\tmarkStepOnce: () => qe,\n\t\t\t\t\t\t})\n\t\t\t\t\tvar r,\n\t\t\t\t\t\ti,\n\t\t\t\t\t\ta = {\n\t\t\t\t\t\t\tisResourceTiming: !1,\n\t\t\t\t\t\t\tisElementTiming: !1,\n\t\t\t\t\t\t\tmaxTime: 3e4,\n\t\t\t\t\t\t\treportOptions: {},\n\t\t\t\t\t\t\tenableNavigationTracking: !0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\to = window,\n\t\t\t\t\t\ts = o.console,\n\t\t\t\t\t\tc = o.navigator,\n\t\t\t\t\t\tu = o.performance,\n\t\t\t\t\t\tl = function () {\n\t\t\t\t\t\t\treturn c.deviceMemory\n\t\t\t\t\t\t},\n\t\t\t\t\t\td = function () {\n\t\t\t\t\t\t\treturn c.hardwareConcurrency\n\t\t\t\t\t\t},\n\t\t\t\t\t\tp = 'mark.',\n\t\t\t\t\t\tm = function () {\n\t\t\t\t\t\t\treturn u && !!u.getEntriesByType && !!u.now && !!u.mark\n\t\t\t\t\t\t},\n\t\t\t\t\t\tf = '4g',\n\t\t\t\t\t\tv = !1,\n\t\t\t\t\t\tg = {},\n\t\t\t\t\t\tb = { value: 0 },\n\t\t\t\t\t\th = {\n\t\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\t\tbeacon: 0,\n\t\t\t\t\t\t\t\tcss: 0,\n\t\t\t\t\t\t\t\tfetch: 0,\n\t\t\t\t\t\t\t\timg: 0,\n\t\t\t\t\t\t\t\tother: 0,\n\t\t\t\t\t\t\t\tscript: 0,\n\t\t\t\t\t\t\t\ttotal: 0,\n\t\t\t\t\t\t\t\txmlhttprequest: 0,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tw = { value: 0 },\n\t\t\t\t\t\ty = { value: 0 },\n\t\t\t\t\t\tT = {},\n\t\t\t\t\t\tk = { isHidden: !1, didChange: !1 },\n\t\t\t\t\t\t_ = function () {\n\t\t\t\t\t\t\t;(k.isHidden = !1),\n\t\t\t\t\t\t\t\tdocument.hidden &&\n\t\t\t\t\t\t\t\t\t((k.isHidden = document.hidden), (k.didChange = !0))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tS = function (e, t) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tvar n = new PerformanceObserver(function (e) {\n\t\t\t\t\t\t\t\t\tt(e.getEntries())\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\treturn n.observe({ type: e, buffered: !0 }), n\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\ts.warn('Perfume.js:', e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn null\n\t\t\t\t\t\t},\n\t\t\t\t\t\tE = function () {\n\t\t\t\t\t\t\treturn !!(d() && d() <= 4) || !!(l() && l() <= 4)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tx = function (e, t) {\n\t\t\t\t\t\t\tswitch (e) {\n\t\t\t\t\t\t\t\tcase 'slow-2g':\n\t\t\t\t\t\t\t\tcase '2g':\n\t\t\t\t\t\t\t\tcase '3g':\n\t\t\t\t\t\t\t\t\treturn !0\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn E() || t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tO = function (e) {\n\t\t\t\t\t\t\treturn parseFloat(e.toFixed(4))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tj = function (e) {\n\t\t\t\t\t\t\treturn 'number' != typeof e\n\t\t\t\t\t\t\t\t? null\n\t\t\t\t\t\t\t\t: O(e / Math.pow(1024, 2))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tN = function (e, t, n, r, i) {\n\t\t\t\t\t\t\tvar s,\n\t\t\t\t\t\t\t\tu = function () {\n\t\t\t\t\t\t\t\t\ta.analyticsTracker &&\n\t\t\t\t\t\t\t\t\t\t((k.isHidden && !['CLS', 'INP'].includes(e)) ||\n\t\t\t\t\t\t\t\t\t\t\ta.analyticsTracker({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: r,\n\t\t\t\t\t\t\t\t\t\t\t\tmetricName: e,\n\t\t\t\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigatorInformation: c\n\t\t\t\t\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeviceMemory: l() || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thardwareConcurrency: d() || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tserviceWorkerStatus:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'serviceWorker' in c\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? c.serviceWorker.controller\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 'controlled'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'supported'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'unsupported',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndDevice: E(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndExperience: x(f, v),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t: {},\n\t\t\t\t\t\t\t\t\t\t\t\trating: n,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationType: i,\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t;['CLS', 'INP'].includes(e)\n\t\t\t\t\t\t\t\t? u()\n\t\t\t\t\t\t\t\t: ((s = u),\n\t\t\t\t\t\t\t\t\t'requestIdleCallback' in o\n\t\t\t\t\t\t\t\t\t\t? o.requestIdleCallback(s, { timeout: 3e3 })\n\t\t\t\t\t\t\t\t\t\t: s())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tI = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\tif (!('self' !== e.name || e.startTime < b.value)) {\n\t\t\t\t\t\t\t\t\tvar t = e.duration - 50\n\t\t\t\t\t\t\t\t\tt > 0 && ((w.value += t), (y.value += t))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t;(e.instant = 'instant'),\n\t\t\t\t\t\t\t(e.quick = 'quick'),\n\t\t\t\t\t\t\t(e.moderate = 'moderate'),\n\t\t\t\t\t\t\t(e.slow = 'slow'),\n\t\t\t\t\t\t\t(e.unavoidable = 'unavoidable')\n\t\t\t\t\t})(r || (r = {}))\n\t\t\t\t\tvar P,\n\t\t\t\t\t\tM,\n\t\t\t\t\t\tB,\n\t\t\t\t\t\tC,\n\t\t\t\t\t\tD,\n\t\t\t\t\t\tA =\n\t\t\t\t\t\t\t(((i = {})[r.instant] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [100, 200],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.quick] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [200, 500],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.moderate] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [500, 1e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.slow] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [1e3, 2e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.unavoidable] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [2e3, 5e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 2e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\ti),\n\t\t\t\t\t\tL = { RT: [100, 200], TBT: [200, 600], NTBT: [200, 600] },\n\t\t\t\t\t\tU = function (e, t) {\n\t\t\t\t\t\t\treturn L[e]\n\t\t\t\t\t\t\t\t? t <= L[e][0]\n\t\t\t\t\t\t\t\t\t? 'good'\n\t\t\t\t\t\t\t\t\t: t <= L[e][1]\n\t\t\t\t\t\t\t\t\t\t? 'needsImprovement'\n\t\t\t\t\t\t\t\t\t\t: 'poor'\n\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t},\n\t\t\t\t\t\tR = function (e, t, n) {\n\t\t\t\t\t\t\tObject.keys(t).forEach(function (e) {\n\t\t\t\t\t\t\t\t'number' == typeof t[e] && (t[e] = O(t[e]))\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tN(e, t, null, n || {})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tq = function (e) {\n\t\t\t\t\t\t\tvar t = e.attribution,\n\t\t\t\t\t\t\t\tn = e.name,\n\t\t\t\t\t\t\t\tr = e.rating,\n\t\t\t\t\t\t\t\ti = e.value,\n\t\t\t\t\t\t\t\to = e.navigationType\n\t\t\t\t\t\t\t'FCP' === n && (b.value = i),\n\t\t\t\t\t\t\t\t['FCP', 'LCP'].includes(n) &&\n\t\t\t\t\t\t\t\t\t!T[0] &&\n\t\t\t\t\t\t\t\t\t(T[0] = S('longtask', I)),\n\t\t\t\t\t\t\t\t'FID' === n &&\n\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\tk.didChange ||\n\t\t\t\t\t\t\t\t\t\t\t(q({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: t,\n\t\t\t\t\t\t\t\t\t\t\t\tname: 'TBT',\n\t\t\t\t\t\t\t\t\t\t\t\trating: U('TBT', w.value),\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: w.value,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationType: o,\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tR('dataConsumption', h.value))\n\t\t\t\t\t\t\t\t\t}, 1e4)\n\t\t\t\t\t\t\tvar s = O(i)\n\t\t\t\t\t\t\ts <= a.maxTime && s >= 0 && N(n, s, r, t, o)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tF = function () {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\twindow.performance &&\n\t\t\t\t\t\t\t\tperformance.getEntriesByType &&\n\t\t\t\t\t\t\t\tperformance.getEntriesByType('navigation')[0]\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tz = function (e) {\n\t\t\t\t\t\t\tif ('loading' === document.readyState) return 'loading'\n\t\t\t\t\t\t\tvar t = F()\n\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\tif (e < t.domInteractive) return 'loading'\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t0 === t.domContentLoadedEventStart ||\n\t\t\t\t\t\t\t\t\te < t.domContentLoadedEventStart\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\treturn 'dom-interactive'\n\t\t\t\t\t\t\t\tif (0 === t.domComplete || e < t.domComplete)\n\t\t\t\t\t\t\t\t\treturn 'dom-content-loaded'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn 'complete'\n\t\t\t\t\t\t},\n\t\t\t\t\t\tK = function (e) {\n\t\t\t\t\t\t\tvar t = e.nodeName\n\t\t\t\t\t\t\treturn 1 === e.nodeType\n\t\t\t\t\t\t\t\t? t.toLowerCase()\n\t\t\t\t\t\t\t\t: t.toUpperCase().replace(/^#/, '')\n\t\t\t\t\t\t},\n\t\t\t\t\t\t$ = function (e, t) {\n\t\t\t\t\t\t\tvar n = ''\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tfor (; e && 9 !== e.nodeType; ) {\n\t\t\t\t\t\t\t\t\tvar r = e,\n\t\t\t\t\t\t\t\t\t\ti = r.id\n\t\t\t\t\t\t\t\t\t\t\t? '#' + r.id\n\t\t\t\t\t\t\t\t\t\t\t: K(r) +\n\t\t\t\t\t\t\t\t\t\t\t\t(r.className && r.className.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t? '.' + r.className.replace(/\\s+/g, '.')\n\t\t\t\t\t\t\t\t\t\t\t\t\t: '')\n\t\t\t\t\t\t\t\t\tif (n.length + i.length > (t || 100) - 1)\n\t\t\t\t\t\t\t\t\t\treturn n || i\n\t\t\t\t\t\t\t\t\tif (((n = n ? i + '>' + n : i), r.id)) break\n\t\t\t\t\t\t\t\t\te = r.parentNode\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t},\n\t\t\t\t\t\tQ = -1,\n\t\t\t\t\t\tW = function () {\n\t\t\t\t\t\t\treturn Q\n\t\t\t\t\t\t},\n\t\t\t\t\t\tH = function (e) {\n\t\t\t\t\t\t\taddEventListener(\n\t\t\t\t\t\t\t\t'pageshow',\n\t\t\t\t\t\t\t\tfunction (t) {\n\t\t\t\t\t\t\t\t\tt.persisted && ((Q = t.timeStamp), e(t))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tV = function () {\n\t\t\t\t\t\t\tvar e = F()\n\t\t\t\t\t\t\treturn (e && e.activationStart) || 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tJ = function (e, t) {\n\t\t\t\t\t\t\tvar n = F(),\n\t\t\t\t\t\t\t\tr = 'navigate'\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tW() >= 0\n\t\t\t\t\t\t\t\t\t? (r = 'back-forward-cache')\n\t\t\t\t\t\t\t\t\t: n &&\n\t\t\t\t\t\t\t\t\t\t(r =\n\t\t\t\t\t\t\t\t\t\t\tdocument.prerendering || V() > 0\n\t\t\t\t\t\t\t\t\t\t\t\t? 'prerender'\n\t\t\t\t\t\t\t\t\t\t\t\t: document.wasDiscarded\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'restore'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: n.type.replace(/_/g, '-')),\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: e,\n\t\t\t\t\t\t\t\t\tvalue: void 0 === t ? -1 : t,\n\t\t\t\t\t\t\t\t\trating: 'good',\n\t\t\t\t\t\t\t\t\tdelta: 0,\n\t\t\t\t\t\t\t\t\tentries: [],\n\t\t\t\t\t\t\t\t\tid: 'v3-'\n\t\t\t\t\t\t\t\t\t\t.concat(Date.now(), '-')\n\t\t\t\t\t\t\t\t\t\t.concat(\n\t\t\t\t\t\t\t\t\t\t\tMath.floor(8999999999999 * Math.random()) +\n\t\t\t\t\t\t\t\t\t\t\t\t1e12,\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tnavigationType: r,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tX = function (e, t, n) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\tPerformanceObserver.supportedEntryTypes.includes(e)\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar r = new PerformanceObserver(function (e) {\n\t\t\t\t\t\t\t\t\t\tPromise.resolve().then(function () {\n\t\t\t\t\t\t\t\t\t\t\tt(e.getEntries())\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\tr.observe(\n\t\t\t\t\t\t\t\t\t\t\tObject.assign(\n\t\t\t\t\t\t\t\t\t\t\t\t{ type: e, buffered: !0 },\n\t\t\t\t\t\t\t\t\t\t\t\tn || {},\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tr\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tG = function (e, t) {\n\t\t\t\t\t\t\tvar n = function n(r) {\n\t\t\t\t\t\t\t\t;('pagehide' !== r.type &&\n\t\t\t\t\t\t\t\t\t'hidden' !== document.visibilityState) ||\n\t\t\t\t\t\t\t\t\t(e(r),\n\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t(removeEventListener('visibilitychange', n, !0),\n\t\t\t\t\t\t\t\t\t\tremoveEventListener('pagehide', n, !0)))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddEventListener('visibilitychange', n, !0),\n\t\t\t\t\t\t\t\taddEventListener('pagehide', n, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tZ = function (e, t, n, r) {\n\t\t\t\t\t\t\tvar i, a\n\t\t\t\t\t\t\treturn function (o) {\n\t\t\t\t\t\t\t\tt.value >= 0 &&\n\t\t\t\t\t\t\t\t\t(o || r) &&\n\t\t\t\t\t\t\t\t\t((a = t.value - (i || 0)) || void 0 === i) &&\n\t\t\t\t\t\t\t\t\t((i = t.value),\n\t\t\t\t\t\t\t\t\t(t.delta = a),\n\t\t\t\t\t\t\t\t\t(t.rating = (function (e, t) {\n\t\t\t\t\t\t\t\t\t\treturn e > t[1]\n\t\t\t\t\t\t\t\t\t\t\t? 'poor'\n\t\t\t\t\t\t\t\t\t\t\t: e > t[0]\n\t\t\t\t\t\t\t\t\t\t\t\t? 'needs-improvement'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'good'\n\t\t\t\t\t\t\t\t\t})(t.value, n)),\n\t\t\t\t\t\t\t\t\te(t))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tY = function (e) {\n\t\t\t\t\t\t\trequestAnimationFrame(function () {\n\t\t\t\t\t\t\t\treturn requestAnimationFrame(function () {\n\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tee = function (e) {\n\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? addEventListener(\n\t\t\t\t\t\t\t\t\t\t'prerenderingchange',\n\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t: e()\n\t\t\t\t\t\t},\n\t\t\t\t\t\tte = -1,\n\t\t\t\t\t\tne = function () {\n\t\t\t\t\t\t\treturn 'hidden' !== document.visibilityState ||\n\t\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? 1 / 0\n\t\t\t\t\t\t\t\t: 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tre = function (e) {\n\t\t\t\t\t\t\t'hidden' === document.visibilityState &&\n\t\t\t\t\t\t\t\tte > -1 &&\n\t\t\t\t\t\t\t\t((te = 'visibilitychange' === e.type ? e.timeStamp : 0),\n\t\t\t\t\t\t\t\tae())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tie = function () {\n\t\t\t\t\t\t\taddEventListener('visibilitychange', re, !0),\n\t\t\t\t\t\t\t\taddEventListener('prerenderingchange', re, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tae = function () {\n\t\t\t\t\t\t\tremoveEventListener('visibilitychange', re, !0),\n\t\t\t\t\t\t\t\tremoveEventListener('prerenderingchange', re, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\toe = function () {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tte < 0 &&\n\t\t\t\t\t\t\t\t\t((te = ne()),\n\t\t\t\t\t\t\t\t\tie(),\n\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\t\t;(te = ne()), ie()\n\t\t\t\t\t\t\t\t\t\t}, 0)\n\t\t\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tget firstHiddenTime() {\n\t\t\t\t\t\t\t\t\t\treturn te\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tse = function (e, t) {\n\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\tr = [1800, 3e3],\n\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\ta = J('FCP'),\n\t\t\t\t\t\t\t\t\t\to = X('paint', function (e) {\n\t\t\t\t\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t'first-contentful-paint' === e.name &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t(o.disconnect(),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime - V(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ta.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t((n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\tH(function (i) {\n\t\t\t\t\t\t\t\t\t\t\t;(a = J('FCP')),\n\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t;(a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance.now() - i.timeStamp),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tce = { passive: !0, capture: !0 },\n\t\t\t\t\t\tue = new Date(),\n\t\t\t\t\t\tle = function (e, t) {\n\t\t\t\t\t\t\tP ||\n\t\t\t\t\t\t\t\t((P = t),\n\t\t\t\t\t\t\t\t(M = e),\n\t\t\t\t\t\t\t\t(B = new Date()),\n\t\t\t\t\t\t\t\tme(removeEventListener),\n\t\t\t\t\t\t\t\tde())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tde = function () {\n\t\t\t\t\t\t\tif (M >= 0 && M < B - ue) {\n\t\t\t\t\t\t\t\tvar e = {\n\t\t\t\t\t\t\t\t\tentryType: 'first-input',\n\t\t\t\t\t\t\t\t\tname: P.type,\n\t\t\t\t\t\t\t\t\ttarget: P.target,\n\t\t\t\t\t\t\t\t\tcancelable: P.cancelable,\n\t\t\t\t\t\t\t\t\tstartTime: P.timeStamp,\n\t\t\t\t\t\t\t\t\tprocessingStart: P.timeStamp + M,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tC.forEach(function (t) {\n\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(C = [])\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tpe = function (e) {\n\t\t\t\t\t\t\tif (e.cancelable) {\n\t\t\t\t\t\t\t\tvar t =\n\t\t\t\t\t\t\t\t\t(e.timeStamp > 1e12\n\t\t\t\t\t\t\t\t\t\t? new Date()\n\t\t\t\t\t\t\t\t\t\t: performance.now()) - e.timeStamp\n\t\t\t\t\t\t\t\t'pointerdown' == e.type\n\t\t\t\t\t\t\t\t\t? (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\tvar n = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tle(e, t), i()\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tr = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\ti()\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\ti = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tremoveEventListener('pointerup', n, ce),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tremoveEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'pointercancel',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tce,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\taddEventListener('pointerup', n, ce),\n\t\t\t\t\t\t\t\t\t\t\t\taddEventListener('pointercancel', r, ce)\n\t\t\t\t\t\t\t\t\t\t})(t, e)\n\t\t\t\t\t\t\t\t\t: le(t, e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tme = function (e) {\n\t\t\t\t\t\t\t;[\n\t\t\t\t\t\t\t\t'mousedown',\n\t\t\t\t\t\t\t\t'keydown',\n\t\t\t\t\t\t\t\t'touchstart',\n\t\t\t\t\t\t\t\t'pointerdown',\n\t\t\t\t\t\t\t].forEach(function (t) {\n\t\t\t\t\t\t\t\treturn e(t, pe, ce)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfe = 0,\n\t\t\t\t\t\tve = 1 / 0,\n\t\t\t\t\t\tge = 0,\n\t\t\t\t\t\tbe = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\te.interactionId &&\n\t\t\t\t\t\t\t\t\t((ve = Math.min(ve, e.interactionId)),\n\t\t\t\t\t\t\t\t\t(ge = Math.max(ge, e.interactionId)),\n\t\t\t\t\t\t\t\t\t(fe = ge ? (ge - ve) / 7 + 1 : 0))\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\the = function () {\n\t\t\t\t\t\t\treturn D ? fe : performance.interactionCount || 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\twe = 0,\n\t\t\t\t\t\tye = function () {\n\t\t\t\t\t\t\treturn he() - we\n\t\t\t\t\t\t},\n\t\t\t\t\t\tTe = [],\n\t\t\t\t\t\tke = {},\n\t\t\t\t\t\t_e = function (e) {\n\t\t\t\t\t\t\tvar t = Te[Te.length - 1],\n\t\t\t\t\t\t\t\tn = ke[e.interactionId]\n\t\t\t\t\t\t\tif (n || Te.length < 10 || e.duration > t.latency) {\n\t\t\t\t\t\t\t\tif (n)\n\t\t\t\t\t\t\t\t\tn.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t(n.latency = Math.max(n.latency, e.duration))\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tvar r = {\n\t\t\t\t\t\t\t\t\t\tid: e.interactionId,\n\t\t\t\t\t\t\t\t\t\tlatency: e.duration,\n\t\t\t\t\t\t\t\t\t\tentries: [e],\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t;(ke[r.id] = r), Te.push(r)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tTe.sort(function (e, t) {\n\t\t\t\t\t\t\t\t\treturn t.latency - e.latency\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tTe.splice(10).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tdelete ke[e.id]\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tSe = {},\n\t\t\t\t\t\tEe = function e(t) {\n\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? ee(function () {\n\t\t\t\t\t\t\t\t\t\treturn e(t)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t: 'complete' !== document.readyState\n\t\t\t\t\t\t\t\t\t? addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t'load',\n\t\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\t\treturn e(t)\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t: setTimeout(t, 0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\txe = function (e, t) {\n\t\t\t\t\t\t\tt = t || {}\n\t\t\t\t\t\t\tvar n = [800, 1800],\n\t\t\t\t\t\t\t\tr = J('TTFB'),\n\t\t\t\t\t\t\t\ti = Z(e, r, n, t.reportAllChanges)\n\t\t\t\t\t\t\tEe(function () {\n\t\t\t\t\t\t\t\tvar a = F()\n\t\t\t\t\t\t\t\tif (a) {\n\t\t\t\t\t\t\t\t\tvar o = a.responseStart\n\t\t\t\t\t\t\t\t\tif (o <= 0 || o > performance.now()) return\n\t\t\t\t\t\t\t\t\t;(r.value = Math.max(o - V(), 0)),\n\t\t\t\t\t\t\t\t\t\t(r.entries = [a]),\n\t\t\t\t\t\t\t\t\t\ti(!0),\n\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t;(r = J('TTFB', 0)),\n\t\t\t\t\t\t\t\t\t\t\t\t(i = Z(e, r, n, t.reportAllChanges))(!0)\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tOe = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\te.identifier &&\n\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\tattribution: { identifier: e.identifier },\n\t\t\t\t\t\t\t\t\t\tname: 'ET',\n\t\t\t\t\t\t\t\t\t\trating: null,\n\t\t\t\t\t\t\t\t\t\tvalue: e.startTime,\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tje = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(a.isResourceTiming && R('resourceTiming', e),\n\t\t\t\t\t\t\t\t\te.decodedBodySize && e.initiatorType)\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar t = e.decodedBodySize / 1e3\n\t\t\t\t\t\t\t\t\t;(h.value[e.initiatorType] += t),\n\t\t\t\t\t\t\t\t\t\t(h.value.total += t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tNe = function () {\n\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\txe(function (e) {\n\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries[0],\n\t\t\t\t\t\t\t\t\t\t\t\tn = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\tr = Math.max(t.domainLookupStart - n, 0),\n\t\t\t\t\t\t\t\t\t\t\t\ti = Math.max(t.connectStart - n, 0),\n\t\t\t\t\t\t\t\t\t\t\t\ta = Math.max(t.requestStart - n, 0)\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\twaitingTime: r,\n\t\t\t\t\t\t\t\t\t\t\t\tdnsTime: i - r,\n\t\t\t\t\t\t\t\t\t\t\t\tconnectionTime: a - i,\n\t\t\t\t\t\t\t\t\t\t\t\trequestTime: e.value - a,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\twaitingTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tdnsTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tconnectionTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\trequestTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\te.value > 0 && q(e)\n\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t})(0, a.reportOptions.ttfb),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = [0.1, 0.25],\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = J('CLS'),\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = -1,\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\to = [],\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti > -1 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\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t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.attribution = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tc = function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.forEach(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!t.hadRecentInput) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = o[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti = o[o.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - i.startTime <\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1e3 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - n.startTime < 5e3\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? ((a += t.value), o.push(t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((a = t.value), (o = [t])),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta > r.value &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((r.value = a),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r.entries = o),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tu = X('layout-shift', c)\n\t\t\t\t\t\t\t\t\t\t\t\tu &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t((e = Z(s, r, n, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\tse(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(i = t.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.value < 0 && ((r.value = 0), e())\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc(u.takeRecords()), e(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = 0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = -1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = J('CLS', 0)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(0, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.cls),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\tse(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = F(),\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = e.entries[e.entries.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar r = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti = Math.max(0, t.responseStart - r)\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn void (e.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfirstByteToFCP: e.value - i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(e.entries[0].startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfcpEntry: n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tfirstByteToFCP: e.value,\n\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(W()),\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.fcp),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = [100, 300],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = J('FID'),\n\t\t\t\t\t\t\t\t\t\t\t\t\to = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0))\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.forEach(o)\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tc = X('first-input', s)\n\t\t\t\t\t\t\t\t\t\t\t\t;(n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts(c.takeRecords()), c.disconnect()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}, !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = J('FID')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(C = []),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(M = -1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(P = null),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tme(addEventListener),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = o),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tC.push(i),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tde()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries[0]\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\teventTarget: $(t.target),\n\t\t\t\t\t\t\t\t\t\t\t\teventType: t.name,\n\t\t\t\t\t\t\t\t\t\t\t\teventTime: t.startTime,\n\t\t\t\t\t\t\t\t\t\t\t\teventEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(t.startTime),\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.fid),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = [2500, 4e3],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = J('LCP'),\n\t\t\t\t\t\t\t\t\t\t\t\t\to = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar t = e[e.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - V(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value = r),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a.entries = [t]),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = X('largest-contentful-paint', o)\n\t\t\t\t\t\t\t\t\t\t\t\tif (s) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = Z(e, a, r, t.reportAllChanges)\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar c = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSe[a.id] ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(o(s.takeRecords()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts.disconnect(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Se[a.id] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0))\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t;['keydown', 'click'].forEach(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taddEventListener(e, c, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonce: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcapture: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(c, !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function (i) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = J('LCP')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance.now() -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.timeStamp),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Se[a.id] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = F()\n\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tr = e.entries[e.entries.length - 1],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.url &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEntriesByType('resource')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.filter(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn e.name === r.url\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ta = Math.max(0, t.responseStart - n),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\to = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (i.requestStart ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.startTime) - n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti ? i.responseEnd - n : 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr ? r.startTime - n : 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tu = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telement: $(r.element),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadDelay: o - a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadTime: s - o,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telementRenderDelay: c - s,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlcpEntry: r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.url && (u.url = r.url),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti && (u.lcpResourceEntry = i),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvoid (e.attribution = u)\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadDelay: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\telementRenderDelay: e.value,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.lcp),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n = [200, 500]\n\t\t\t\t\t\t\t\t\t\t\t\t'interactionCount' in performance ||\n\t\t\t\t\t\t\t\t\t\t\t\t\tD ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t(D = X('event', be, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'event',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbuffered: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdurationThreshold: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\tvar r,\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = J('INP'),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.interactionId && _e(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'first-input' === e.entryType &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t!Te.some(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn t.entries.some(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.duration ===\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.duration &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime ===\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}) &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t_e(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((t = Math.min(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTe.length - 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMath.floor(ye() / 50),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTe[t])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn.latency !== i.value &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((i.value = n.latency),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i.entries = n.entries),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr())\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\to = X('event', a, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdurationThreshold:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.durationThreshold || 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t;(r = Z(e, i, n, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(o.observe({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'first-input',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbuffered: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta(o.takeRecords()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.value < 0 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tye() > 0 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((i.value = 0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i.entries = [])),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(Te = []),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(we = he()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = J('INP')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (t) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries.sort(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.duration - e.duration ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.processingEnd -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.processingStart -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e.processingEnd -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart)\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})[0]\n\t\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\t\teventTarget: $(t.target),\n\t\t\t\t\t\t\t\t\t\t\t\t\teventType: t.name,\n\t\t\t\t\t\t\t\t\t\t\t\t\teventTime: t.startTime,\n\t\t\t\t\t\t\t\t\t\t\t\t\teventEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(t.startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t} else e.attribution = {}\n\t\t\t\t\t\t\t\t\t\t})(t),\n\t\t\t\t\t\t\t\t\t\t\te(t)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\treturn q(e)\n\t\t\t\t\t\t\t\t}, a.reportOptions.inp),\n\t\t\t\t\t\t\t\ta.isResourceTiming && S('resource', je),\n\t\t\t\t\t\t\t\ta.isElementTiming && S('element', Oe)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tIe = function (e) {\n\t\t\t\t\t\t\tvar t = 'usageDetails' in e ? e.usageDetails : {}\n\t\t\t\t\t\t\tR('storageEstimate', {\n\t\t\t\t\t\t\t\tquota: j(e.quota),\n\t\t\t\t\t\t\t\tusage: j(e.usage),\n\t\t\t\t\t\t\t\tcaches: j(t.caches),\n\t\t\t\t\t\t\t\tindexedDB: j(t.indexedDB),\n\t\t\t\t\t\t\t\tserviceWorker: j(t.serviceWorkerRegistrations),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tPe = {\n\t\t\t\t\t\t\tfinalMarkToStepsMap: {},\n\t\t\t\t\t\t\tstartMarkToStepsMap: {},\n\t\t\t\t\t\t\tactive: {},\n\t\t\t\t\t\t\tnavigationSteps: {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tMe = function (e) {\n\t\t\t\t\t\t\tdelete Pe.active[e]\n\t\t\t\t\t\t},\n\t\t\t\t\t\tBe = function () {\n\t\t\t\t\t\t\treturn Pe.navigationSteps\n\t\t\t\t\t\t},\n\t\t\t\t\t\tCe = function (e) {\n\t\t\t\t\t\t\tvar t\n\t\t\t\t\t\t\treturn null !== (t = Be()[e]) && void 0 !== t ? t : {}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tDe = function (e, t, n) {\n\t\t\t\t\t\t\tvar r = 'step.' + e,\n\t\t\t\t\t\t\t\ti = u.getEntriesByName(p + t).length > 0\n\t\t\t\t\t\t\tif (u.getEntriesByName(p + n).length > 0 && a.steps) {\n\t\t\t\t\t\t\t\tvar o = A[a.steps[e].threshold],\n\t\t\t\t\t\t\t\t\ts = o.maxOutlierThreshold,\n\t\t\t\t\t\t\t\t\tc = o.vitalsThresholds\n\t\t\t\t\t\t\t\tif (i) {\n\t\t\t\t\t\t\t\t\tvar l = u.measure(r, p + t, p + n),\n\t\t\t\t\t\t\t\t\t\td = l.duration\n\t\t\t\t\t\t\t\t\tif (d <= s) {\n\t\t\t\t\t\t\t\t\t\tvar m = (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\treturn e <= t[0]\n\t\t\t\t\t\t\t\t\t\t\t\t? 'good'\n\t\t\t\t\t\t\t\t\t\t\t\t: e <= t[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'needsImprovement'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 'poor'\n\t\t\t\t\t\t\t\t\t\t})(d, c)\n\t\t\t\t\t\t\t\t\t\td >= 0 &&\n\t\t\t\t\t\t\t\t\t\t\t(N(\n\t\t\t\t\t\t\t\t\t\t\t\t'userJourneyStep',\n\t\t\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\t\t\tm,\n\t\t\t\t\t\t\t\t\t\t\t\t{ stepName: e },\n\t\t\t\t\t\t\t\t\t\t\t\tvoid 0,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\tu.measure(\n\t\t\t\t\t\t\t\t\t\t\t\t'step.'.concat(e, '_vitals_').concat(m),\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tstart: l.startTime + l.duration,\n\t\t\t\t\t\t\t\t\t\t\t\t\tend: l.startTime + l.duration,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'stepVital',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: d,\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tAe = function () {\n\t\t\t\t\t\t\tvar e = Be(),\n\t\t\t\t\t\t\t\tt = Pe.startMarkToStepsMap,\n\t\t\t\t\t\t\t\tn = Object.keys(e).length\n\t\t\t\t\t\t\tif (0 === n) return {}\n\t\t\t\t\t\t\tvar r = {},\n\t\t\t\t\t\t\t\ti = n - 1,\n\t\t\t\t\t\t\t\ta = Ce(i)\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t(Object.keys(a).forEach(function (e) {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\ti = null !== (n = t[e]) && void 0 !== n ? n : []\n\t\t\t\t\t\t\t\t\tObject.keys(i).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tr[e] = !0\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tn > 1)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tvar o = Ce(i - 1)\n\t\t\t\t\t\t\t\tObject.keys(o).forEach(function (e) {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\ti = null !== (n = t[e]) && void 0 !== n ? n : []\n\t\t\t\t\t\t\t\t\tObject.keys(i).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tr[e] = !0\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn r\n\t\t\t\t\t\t},\n\t\t\t\t\t\tLe = function () {\n\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\tt = Object.keys(Pe.navigationSteps).length\n\t\t\t\t\t\t\tPe.navigationSteps[t] = {}\n\t\t\t\t\t\t\tvar n = Ae()\n\t\t\t\t\t\t\tnull === (e = a.onMarkStep) ||\n\t\t\t\t\t\t\t\tvoid 0 === e ||\n\t\t\t\t\t\t\t\te.call(a, '', Object.keys(n))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tUe = function (e) {\n\t\t\t\t\t\t\tvar t, n, r, i, o, s, c\n\t\t\t\t\t\t\tif (Pe.finalMarkToStepsMap[e]) {\n\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\tvar t = Pe.navigationSteps,\n\t\t\t\t\t\t\t\t\t\tn = Pe.finalMarkToStepsMap,\n\t\t\t\t\t\t\t\t\t\tr = Object.keys(t).length\n\t\t\t\t\t\t\t\t\tif (0 !== r) {\n\t\t\t\t\t\t\t\t\t\tvar i = r - 1,\n\t\t\t\t\t\t\t\t\t\t\ta = Ce(i)\n\t\t\t\t\t\t\t\t\t\tif (a && n[e]) {\n\t\t\t\t\t\t\t\t\t\t\tvar o = n[e]\n\t\t\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(o).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (a[e]) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = Ce(i) || {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(n[e] = !1), (t[i] = n)\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (r > 1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar o = i - 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts = Ce(o)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[e] && ((s[e] = !1), (t[o] = s))\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\tvar u = Pe.finalMarkToStepsMap[e]\n\t\t\t\t\t\t\t\tObject.keys(u).forEach(function (t) {\n\t\t\t\t\t\t\t\t\tvar n = u[t]\n\t\t\t\t\t\t\t\t\tn.forEach(Me),\n\t\t\t\t\t\t\t\t\t\tPromise.all(\n\t\t\t\t\t\t\t\t\t\t\tn.map(function (n) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn (function (e, t, n, r) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn new (n || (n = Promise))(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction i(e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(r.next(e))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction a(e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(r.throw(e))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction o(t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.done\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? e(t.value)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((r = t.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr instanceof n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new n(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te(r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})).then(i, a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = r.apply(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tundefined,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)).next(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})(0, 0, void 0, function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsent: function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (1 & i[0]) throw i[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn i[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrys: [],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tops: [],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnext: s(0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow: s(1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn: s(2),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'function' == typeof Symbol &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a[Symbol.iterator] =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction s(a) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn function (s) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (function (a) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (n)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new TypeError(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Generator is already executing.',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (; o; )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((n = 1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t2 &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\t\t\t\t\t\t\t\t\t\t\t\treturn r.sent(), [2]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t).catch(function () {})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t(r = e),\n\t\t\t\t\t\t\t\t\t(i = Pe.navigationSteps),\n\t\t\t\t\t\t\t\t\t(o = Object.keys(i).length),\n\t\t\t\t\t\t\t\t\t((c = Ce((s = (o > 0 ? o : 1) - 1)) || [])[r] = !0),\n\t\t\t\t\t\t\t\t\t(i[s] = c),\n\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\tn =\n\t\t\t\t\t\t\t\t\t\t\t\tnull !== (t = Pe.startMarkToStepsMap[e]) &&\n\t\t\t\t\t\t\t\t\t\t\t\tvoid 0 !== t\n\t\t\t\t\t\t\t\t\t\t\t\t\t? t\n\t\t\t\t\t\t\t\t\t\t\t\t\t: []\n\t\t\t\t\t\t\t\t\t\tObject.keys(n).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tPe.active[e] || (Pe.active[e] = !0)\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\tif (a.enableNavigationTracking) {\n\t\t\t\t\t\t\t\tvar l = Ae()\n\t\t\t\t\t\t\t\tnull === (t = a.onMarkStep) ||\n\t\t\t\t\t\t\t\t\tvoid 0 === t ||\n\t\t\t\t\t\t\t\t\tt.call(a, e, Object.keys(l))\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tnull === (n = a.onMarkStep) ||\n\t\t\t\t\t\t\t\t\tvoid 0 === n ||\n\t\t\t\t\t\t\t\t\tn.call(a, e, Object.keys(Pe.active))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tRe = function (e) {\n\t\t\t\t\t\t\tu.mark(p + e), Ue(e)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tqe = function (e) {\n\t\t\t\t\t\t\t0 === u.getEntriesByName(p + e).length &&\n\t\t\t\t\t\t\t\t(u.mark(p + e), Ue(e))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tFe = 0,\n\t\t\t\t\t\tze = (function () {\n\t\t\t\t\t\t\tfunction e(e) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(void 0 === e && (e = {}),\n\t\t\t\t\t\t\t\t\t(this.v = '9.0.0-rc.3'),\n\t\t\t\t\t\t\t\t\t(a.analyticsTracker = e.analyticsTracker),\n\t\t\t\t\t\t\t\t\t(a.isResourceTiming = !!e.resourceTiming),\n\t\t\t\t\t\t\t\t\t(a.isElementTiming = !!e.elementTiming),\n\t\t\t\t\t\t\t\t\t(a.maxTime = e.maxMeasureTime || a.maxTime),\n\t\t\t\t\t\t\t\t\t(a.reportOptions =\n\t\t\t\t\t\t\t\t\t\te.reportOptions || a.reportOptions),\n\t\t\t\t\t\t\t\t\t(a.steps = e.steps),\n\t\t\t\t\t\t\t\t\t(a.onMarkStep = e.onMarkStep),\n\t\t\t\t\t\t\t\t\t(a.enableNavigationTracking =\n\t\t\t\t\t\t\t\t\t\te.enableNavigationTracking),\n\t\t\t\t\t\t\t\t\tm())\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t'PerformanceObserver' in o && Ne(),\n\t\t\t\t\t\t\t\t\t\tvoid 0 !== document.hidden &&\n\t\t\t\t\t\t\t\t\t\t\tdocument.addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t'visibilitychange',\n\t\t\t\t\t\t\t\t\t\t\t\t_,\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\tvar t = (function () {\n\t\t\t\t\t\t\t\t\t\tif (!m()) return {}\n\t\t\t\t\t\t\t\t\t\tvar e = u.getEntriesByType('navigation')[0]\n\t\t\t\t\t\t\t\t\t\tif (!e) return {}\n\t\t\t\t\t\t\t\t\t\tvar t = e.responseStart,\n\t\t\t\t\t\t\t\t\t\t\tn = e.responseEnd\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\tfetchTime: n - e.fetchStart,\n\t\t\t\t\t\t\t\t\t\t\tworkerTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.workerStart > 0 ? n - e.workerStart : 0,\n\t\t\t\t\t\t\t\t\t\t\ttotalTime: n - e.requestStart,\n\t\t\t\t\t\t\t\t\t\t\tdownloadTime: n - t,\n\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: t - e.requestStart,\n\t\t\t\t\t\t\t\t\t\t\theaderSize:\n\t\t\t\t\t\t\t\t\t\t\t\te.transferSize - e.encodedBodySize || 0,\n\t\t\t\t\t\t\t\t\t\t\tdnsLookupTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.domainLookupEnd - e.domainLookupStart,\n\t\t\t\t\t\t\t\t\t\t\tredirectTime: e.redirectEnd - e.redirectStart,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})()\n\t\t\t\t\t\t\t\t\tR('navigationTiming', t),\n\t\t\t\t\t\t\t\t\t\tt.redirectTime &&\n\t\t\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: {},\n\t\t\t\t\t\t\t\t\t\t\t\tname: 'RT',\n\t\t\t\t\t\t\t\t\t\t\t\trating: U('RT', t.redirectTime),\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.redirectTime,\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tR(\n\t\t\t\t\t\t\t\t\t\t\t'networkInformation',\n\t\t\t\t\t\t\t\t\t\t\t(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tif ('connection' in c) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar e = c.connection\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn 'object' != typeof e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((f = e.effectiveType),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(v = !!e.saveData),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdownlink: e.downlink,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teffectiveType: e.effectiveType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trtt: e.rtt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsaveData: !!e.saveData,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\treturn {}\n\t\t\t\t\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\tc.storage &&\n\t\t\t\t\t\t\t\t\t\t\t'function' == typeof c.storage.estimate &&\n\t\t\t\t\t\t\t\t\t\t\tc.storage.estimate().then(Ie),\n\t\t\t\t\t\t\t\t\t\ta.steps &&\n\t\t\t\t\t\t\t\t\t\t\ta.steps &&\n\t\t\t\t\t\t\t\t\t\t\t((Pe.startMarkToStepsMap = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.finalMarkToStepsMap = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.active = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.navigationSteps = {}),\n\t\t\t\t\t\t\t\t\t\t\tObject.entries(a.steps).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = e[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = e[1].marks,\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = i[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\to = i[1],\n\t\t\t\t\t\t\t\t\t\t\t\t\ts =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull !==\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Pe.startMarkToStepsMap[a]) &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvoid 0 !== n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: {}\n\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\t((s[r] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t(Pe.startMarkToStepsMap[a] = s),\n\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o])\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar c =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o][a] || []\n\t\t\t\t\t\t\t\t\t\t\t\t\tc.push(r),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Pe.finalMarkToStepsMap[o][a] = c)\n\t\t\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o] =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(((t = {})[a] = [r]), t)\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t(e.prototype.start = function (e) {\n\t\t\t\t\t\t\t\t\tm() &&\n\t\t\t\t\t\t\t\t\t\t!g[e] &&\n\t\t\t\t\t\t\t\t\t\t((g[e] = !0), u.mark('mark_'.concat(e, '_start')))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.end = function (e, t, n) {\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t(void 0 === t && (t = {}),\n\t\t\t\t\t\t\t\t\t\tvoid 0 === n && (n = !0),\n\t\t\t\t\t\t\t\t\t\tm() && g[e])\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tu.mark('mark_'.concat(e, '_end')), delete g[e]\n\t\t\t\t\t\t\t\t\t\tvar r = (function (e) {\n\t\t\t\t\t\t\t\t\t\t\tu.measure(\n\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t'mark_'.concat(e, '_start'),\n\t\t\t\t\t\t\t\t\t\t\t\t'mark_'.concat(e, '_end'),\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\tvar t = u.getEntriesByName(e).pop()\n\t\t\t\t\t\t\t\t\t\t\treturn t && 'measure' === t.entryType\n\t\t\t\t\t\t\t\t\t\t\t\t? t.duration\n\t\t\t\t\t\t\t\t\t\t\t\t: -1\n\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\tn && R(e, O(r), t)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.endPaint = function (e, t) {\n\t\t\t\t\t\t\t\t\tvar n = this\n\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\tn.end(e, t)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.clear = function (e) {\n\t\t\t\t\t\t\t\t\tdelete g[e],\n\t\t\t\t\t\t\t\t\t\tu.clearMarks &&\n\t\t\t\t\t\t\t\t\t\t\t(u.clearMarks('mark_'.concat(e, '_start')),\n\t\t\t\t\t\t\t\t\t\t\tu.clearMarks('mark_'.concat(e, '_end')))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.markNTBT = function () {\n\t\t\t\t\t\t\t\t\tvar e = this\n\t\t\t\t\t\t\t\t\tthis.start('ntbt'),\n\t\t\t\t\t\t\t\t\t\t(y.value = 0),\n\t\t\t\t\t\t\t\t\t\tclearTimeout(Fe),\n\t\t\t\t\t\t\t\t\t\t(Fe = setTimeout(function () {\n\t\t\t\t\t\t\t\t\t\t\te.end('ntbt', {}, !1),\n\t\t\t\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\t\t\t\tattribution: {},\n\t\t\t\t\t\t\t\t\t\t\t\t\tname: 'NTBT',\n\t\t\t\t\t\t\t\t\t\t\t\t\trating: U('NTBT', y.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: y.value,\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t(y.value = 0)\n\t\t\t\t\t\t\t\t\t\t}, 2e3))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})()\n\t\t\t\t},\n\t\t\t\t426: (e, t) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\tSymbol.for('react.element'),\n\t\t\t\t\t\tSymbol.for('react.portal'),\n\t\t\t\t\t\tSymbol.for('react.fragment'),\n\t\t\t\t\t\tSymbol.for('react.strict_mode'),\n\t\t\t\t\t\tSymbol.for('react.profiler'),\n\t\t\t\t\t\tSymbol.for('react.provider'),\n\t\t\t\t\t\tSymbol.for('react.context'),\n\t\t\t\t\t\tSymbol.for('react.forward_ref'),\n\t\t\t\t\t\tSymbol.for('react.suspense'),\n\t\t\t\t\t\tSymbol.for('react.memo'),\n\t\t\t\t\t\tSymbol.for('react.lazy'),\n\t\t\t\t\t\tSymbol.iterator\n\t\t\t\t\tvar n = {\n\t\t\t\t\t\t\tisMounted: function () {\n\t\t\t\t\t\t\t\treturn !1\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tenqueueForceUpdate: function () {},\n\t\t\t\t\t\t\tenqueueReplaceState: function () {},\n\t\t\t\t\t\t\tenqueueSetState: function () {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tr = Object.assign,\n\t\t\t\t\t\ti = {}\n\t\t\t\t\tfunction a(e, t, r) {\n\t\t\t\t\t\t;(this.props = e),\n\t\t\t\t\t\t\t(this.context = t),\n\t\t\t\t\t\t\t(this.refs = i),\n\t\t\t\t\t\t\t(this.updater = r || n)\n\t\t\t\t\t}\n\t\t\t\t\tfunction o() {}\n\t\t\t\t\tfunction s(e, t, r) {\n\t\t\t\t\t\t;(this.props = e),\n\t\t\t\t\t\t\t(this.context = t),\n\t\t\t\t\t\t\t(this.refs = i),\n\t\t\t\t\t\t\t(this.updater = r || n)\n\t\t\t\t\t}\n\t\t\t\t\t;(a.prototype.isReactComponent = {}),\n\t\t\t\t\t\t(a.prototype.setState = function (e, t) {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t'object' != typeof e &&\n\t\t\t\t\t\t\t\t'function' != typeof e &&\n\t\t\t\t\t\t\t\tnull != e\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tthrow Error(\n\t\t\t\t\t\t\t\t\t'setState(...): takes an object of state variables to update or a function which returns an object of state variables.',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\tthis.updater.enqueueSetState(this, e, t, 'setState')\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(a.prototype.forceUpdate = function (e) {\n\t\t\t\t\t\t\tthis.updater.enqueueForceUpdate(this, e, 'forceUpdate')\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(o.prototype = a.prototype)\n\t\t\t\t\tvar c = (s.prototype = new o())\n\t\t\t\t\t;(c.constructor = s),\n\t\t\t\t\t\tr(c, a.prototype),\n\t\t\t\t\t\t(c.isPureReactComponent = !0)\n\t\t\t\t\tArray.isArray, Object.prototype.hasOwnProperty\n\t\t\t\t\tvar u = { current: null }\n\t\t\t\t\t;(t.useCallback = function (e, t) {\n\t\t\t\t\t\treturn u.current.useCallback(e, t)\n\t\t\t\t\t}),\n\t\t\t\t\t\t(t.useEffect = function (e, t) {\n\t\t\t\t\t\t\treturn u.current.useEffect(e, t)\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(t.useRef = function (e) {\n\t\t\t\t\t\t\treturn u.current.useRef(e)\n\t\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\t784: (e, t, n) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\te.exports = n(426)\n\t\t\t\t},\n\t\t\t\t353: function (e, t, n) {\n\t\t\t\t\tvar r\n\t\t\t\t\t!(function (i, a) {\n\t\t\t\t\t\t'use strict'\n\t\t\t\t\t\tvar o = 'function',\n\t\t\t\t\t\t\ts = 'undefined',\n\t\t\t\t\t\t\tc = 'object',\n\t\t\t\t\t\t\tu = 'string',\n\t\t\t\t\t\t\tl = 'major',\n\t\t\t\t\t\t\td = 'model',\n\t\t\t\t\t\t\tp = 'name',\n\t\t\t\t\t\t\tm = 'type',\n\t\t\t\t\t\t\tf = 'vendor',\n\t\t\t\t\t\t\tv = 'version',\n\t\t\t\t\t\t\tg = 'architecture',\n\t\t\t\t\t\t\tb = 'console',\n\t\t\t\t\t\t\th = 'mobile',\n\t\t\t\t\t\t\tw = 'tablet',\n\t\t\t\t\t\t\ty = 'smarttv',\n\t\t\t\t\t\t\tT = 'wearable',\n\t\t\t\t\t\t\tk = 'embedded',\n\t\t\t\t\t\t\t_ = 'Amazon',\n\t\t\t\t\t\t\tS = 'Apple',\n\t\t\t\t\t\t\tE = 'ASUS',\n\t\t\t\t\t\t\tx = 'BlackBerry',\n\t\t\t\t\t\t\tO = 'Browser',\n\t\t\t\t\t\t\tj = 'Chrome',\n\t\t\t\t\t\t\tN = 'Firefox',\n\t\t\t\t\t\t\tI = 'Google',\n\t\t\t\t\t\t\tP = 'Huawei',\n\t\t\t\t\t\t\tM = 'LG',\n\t\t\t\t\t\t\tB = 'Microsoft',\n\t\t\t\t\t\t\tC = 'Motorola',\n\t\t\t\t\t\t\tD = 'Opera',\n\t\t\t\t\t\t\tA = 'Samsung',\n\t\t\t\t\t\t\tL = 'Sharp',\n\t\t\t\t\t\t\tU = 'Sony',\n\t\t\t\t\t\t\tR = 'Xiaomi',\n\t\t\t\t\t\t\tq = 'Zebra',\n\t\t\t\t\t\t\tF = 'Facebook',\n\t\t\t\t\t\t\tz = 'Chromium OS',\n\t\t\t\t\t\t\tK = 'Mac OS',\n\t\t\t\t\t\t\t$ = function (e) {\n\t\t\t\t\t\t\t\tfor (var t = {}, n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt[e[n].toUpperCase()] = e[n]\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tQ = function (e, t) {\n\t\t\t\t\t\t\t\treturn typeof e === u && -1 !== W(t).indexOf(W(e))\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tW = function (e) {\n\t\t\t\t\t\t\t\treturn e.toLowerCase()\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tH = function (e, t) {\n\t\t\t\t\t\t\t\tif (typeof e === u)\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t(e = e.replace(/^\\s\\s*/, '')),\n\t\t\t\t\t\t\t\t\t\ttypeof t === s ? e : e.substring(0, 350)\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tV = function (e, t) {\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar n, r, i, s, u, l, d = 0;\n\t\t\t\t\t\t\t\t\td < t.length && !u;\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar p = t[d],\n\t\t\t\t\t\t\t\t\t\tm = t[d + 1]\n\t\t\t\t\t\t\t\t\tfor (n = r = 0; n < p.length && !u && p[n]; )\n\t\t\t\t\t\t\t\t\t\tif ((u = p[n++].exec(e)))\n\t\t\t\t\t\t\t\t\t\t\tfor (i = 0; i < m.length; i++)\n\t\t\t\t\t\t\t\t\t\t\t\t(l = u[++r]),\n\t\t\t\t\t\t\t\t\t\t\t\t\ttypeof (s = m[i]) === c && s.length > 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 2 === s.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? typeof s[1] == o\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (this[s[0]] = s[1].call(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (this[s[0]] = s[1])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 3 === s.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? typeof s[1] !== o ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(s[1].exec && s[1].test)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (this[s[0]] = l\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? l.replace(s[1], s[2])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (this[s[0]] = l\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? s[1].call(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 4 === s.length &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(this[s[0]] = l\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? s[3].call(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl.replace(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[1],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (this[s] = l || a)\n\t\t\t\t\t\t\t\t\td += 2\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tJ = function (e, t) {\n\t\t\t\t\t\t\t\tfor (var n in t)\n\t\t\t\t\t\t\t\t\tif (typeof t[n] === c && t[n].length > 0) {\n\t\t\t\t\t\t\t\t\t\tfor (var r = 0; r < t[n].length; r++)\n\t\t\t\t\t\t\t\t\t\t\tif (Q(t[n][r], e)) return '?' === n ? a : n\n\t\t\t\t\t\t\t\t\t} else if (Q(t[n], e)) return '?' === n ? a : n\n\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tX = {\n\t\t\t\t\t\t\t\tME: '4.90',\n\t\t\t\t\t\t\t\t'NT 3.11': 'NT3.51',\n\t\t\t\t\t\t\t\t'NT 4.0': 'NT4.0',\n\t\t\t\t\t\t\t\t2e3: 'NT 5.0',\n\t\t\t\t\t\t\t\tXP: ['NT 5.1', 'NT 5.2'],\n\t\t\t\t\t\t\t\tVista: 'NT 6.0',\n\t\t\t\t\t\t\t\t7: 'NT 6.1',\n\t\t\t\t\t\t\t\t8: 'NT 6.2',\n\t\t\t\t\t\t\t\t8.1: 'NT 6.3',\n\t\t\t\t\t\t\t\t10: ['NT 6.4', 'NT 10.0'],\n\t\t\t\t\t\t\t\tRT: 'ARM',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tG = {\n\t\t\t\t\t\t\t\tbrowser: [\n\t\t\t\t\t\t\t\t\t[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Chrome']],\n\t\t\t\t\t\t\t\t\t[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Edge']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(opera mini)\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/opios[\\/ ]+([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Mini']],\n\t\t\t\t\t\t\t\t\t[/\\bopr\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kindle)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(?:ms|\\()(ie) ([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(heytap|ovi)browser\\/([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(weibo)__([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'UC' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/microm.+\\bqbcore\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\bqbcore\\/([\\w\\.]+).+microm/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'WeChat(Win) Desktop']],\n\t\t\t\t\t\t\t\t\t[/micromessenger\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'WeChat']],\n\t\t\t\t\t\t\t\t\t[/konqueror\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Konqueror']],\n\t\t\t\t\t\t\t\t\t[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'IE']],\n\t\t\t\t\t\t\t\t\t[/ya(?:search)?browser\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Yandex']],\n\t\t\t\t\t\t\t\t\t[/(avast|avg)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, /(.+)/, '$1 Secure ' + O], v],\n\t\t\t\t\t\t\t\t\t[/\\bfocus\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' Focus']],\n\t\t\t\t\t\t\t\t\t[/\\bopt\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Touch']],\n\t\t\t\t\t\t\t\t\t[/coc_coc\\w+\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Coc Coc']],\n\t\t\t\t\t\t\t\t\t[/dolfin\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Dolphin']],\n\t\t\t\t\t\t\t\t\t[/coast\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Coast']],\n\t\t\t\t\t\t\t\t\t[/miuibrowser\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'MIUI ' + O]],\n\t\t\t\t\t\t\t\t\t[/fxios\\/([-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N]],\n\t\t\t\t\t\t\t\t\t[/\\bqihu|(qi?ho?o?|360)browser/i],\n\t\t\t\t\t\t\t\t\t[[p, '360 ' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[p, /(.+)/, '$1 ' + O], v],\n\t\t\t\t\t\t\t\t\t[/(comodo_dragon)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, /_/g, ' '], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(electron)\\/([\\w\\.]+) safari/i,\n\t\t\t\t\t\t\t\t\t\t/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,\n\t\t\t\t\t\t\t\t\t\t/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(metasr)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lbbrowser)/i,\n\t\t\t\t\t\t\t\t\t\t/\\[(linkedin)app\\]/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[p, F], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,\n\t\t\t\t\t\t\t\t\t\t/safari (line)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(line)\\/([\\w\\.]+)\\/iab/i,\n\t\t\t\t\t\t\t\t\t\t/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'GSA']],\n\t\t\t\t\t\t\t\t\t[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'TikTok']],\n\t\t\t\t\t\t\t\t\t[/headlesschrome(?:\\/([\\w\\.]+)| )/i],\n\t\t\t\t\t\t\t\t\t[v, [p, j + ' Headless']],\n\t\t\t\t\t\t\t\t\t[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, j + ' WebView'], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Android ' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Mobile Safari']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t\t[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\tv,\n\t\t\t\t\t\t\t\t\t\t\tJ,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t'1.0': '/8',\n\t\t\t\t\t\t\t\t\t\t\t\t1.2: '/1',\n\t\t\t\t\t\t\t\t\t\t\t\t1.3: '/3',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0': '/412',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.2': '/416',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.3': '/417',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.4': '/419',\n\t\t\t\t\t\t\t\t\t\t\t\t'?': '/',\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(webkit|khtml)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, 'Netscape'], v],\n\t\t\t\t\t\t\t\t\t[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' Reality']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ekiohf.+(flow)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(swiftfox)/i,\n\t\t\t\t\t\t\t\t\t\t/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,\n\t\t\t\t\t\t\t\t\t\t/(firefox)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,\n\t\t\t\t\t\t\t\t\t\t/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(links) \\(([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/panasonic;(viera)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(cobalt)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[p, [v, /master.|lts./, '']],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tcpu: [\n\t\t\t\t\t\t\t\t\t[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'amd64']],\n\t\t\t\t\t\t\t\t\t[/(ia32(?=;))/i],\n\t\t\t\t\t\t\t\t\t[[g, W]],\n\t\t\t\t\t\t\t\t\t[/((?:i[346]|x)86)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'ia32']],\n\t\t\t\t\t\t\t\t\t[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],\n\t\t\t\t\t\t\t\t\t[[g, 'arm64']],\n\t\t\t\t\t\t\t\t\t[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],\n\t\t\t\t\t\t\t\t\t[[g, 'armhf']],\n\t\t\t\t\t\t\t\t\t[/windows (ce|mobile); ppc;/i],\n\t\t\t\t\t\t\t\t\t[[g, 'arm']],\n\t\t\t\t\t\t\t\t\t[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],\n\t\t\t\t\t\t\t\t\t[[g, /ower/, '', W]],\n\t\t\t\t\t\t\t\t\t[/(sun4\\w)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'sparc']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[g, W]],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tdevice: [\n\t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12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'OPPO'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/vivo (\\w+)(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Vivo'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Realme'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,\n\t\t\t\t\t\t\t\t\t\t/\\bmot(?:orola)?[- ](\\w*)/i,\n\t\t\t\t\t\t\t\t\t\t/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, C], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],\n\t\t\t\t\t\t\t\t\t[d, [f, C], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, M], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,\n\t\t\t\t\t\t\t\t\t\t/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\blg-?([\\d\\w]+) bui/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, M], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(ideatab[-\\w ]+)/i,\n\t\t\t\t\t\t\t\t\t\t/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Lenovo'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:maemo|nokia).*(n900|lumia \\d+)/i,\n\t\t\t\t\t\t\t\t\t\t/nokia[-_ ]?([-\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /_/g, ' '],\n\t\t\t\t\t\t\t\t\t\t[f, 'Nokia'],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(pixel c)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/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,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/sony tablet [ps]/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(?:sony)?sgp\\w+(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, 'Xperia Tablet'],\n\t\t\t\t\t\t\t\t\t\t[f, U],\n\t\t\t\t\t\t\t\t\t\t[m, w],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ (kb2005|in20[12]5|be20[12][59])\\b/i,\n\t\t\t\t\t\t\t\t\t\t/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'OnePlus'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(alexa)webm/i,\n\t\t\t\t\t\t\t\t\t\t/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/(kf[a-z]+)( bui|\\)).+silk\\//i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, w]],\n\t\t\t\t\t\t\t\t\t[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /(.+)/g, 'Fire Phone $1'],\n\t\t\t\t\t\t\t\t\t\t[f, _],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(playbook);[-\\w\\),; ]+(rim)/i],\n\t\t\t\t\t\t\t\t\t[d, f, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((?:bb[a-f]|st[hv])100-\\d)/i, /\\(bb10; (\\w+)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, x], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, E], [m, w]],\n\t\t\t\t\t\t\t\t\t[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, E], [m, h]],\n\t\t\t\t\t\t\t\t\t[/(nexus 9)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'HTC'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, [d, /_/g, ' '], [m, h]],\n\t\t\t\t\t\t\t\t\t[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Acer'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (m[1-5] note) bui/i, /\\bmz-([-\\w]{2,})/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Meizu'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(hp) ([\\w ]+\\w)/i,\n\t\t\t\t\t\t\t\t\t\t/(asus)-?(\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(microsoft); (lumia[\\w ]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lenovo)[-_ ]?([-\\w]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(jolla)/i,\n\t\t\t\t\t\t\t\t\t\t/(oppo) ?([\\w ]+) bui/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, d, [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kobo)\\s(ereader|touch)/i,\n\t\t\t\t\t\t\t\t\t\t/(archos) (gamepad2?)/i,\n\t\t\t\t\t\t\t\t\t\t/(hp).+(touchpad(?!.+tablet)|tablet)/i,\n\t\t\t\t\t\t\t\t\t\t/(kindle)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(nook)[\\w ]+build\\/(\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(dell) (strea[kpr\\d ]*[\\dko])/i,\n\t\t\t\t\t\t\t\t\t\t/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(trinity)[- ]*(t\\d{3}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(gigaset)[- ]+(q\\w{1,9}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(vodafone) ([\\w ]+)(?:\\)| bui)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/(surface duo)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, B], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Fairphone'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/(u304aa)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'AT&T'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\bsie-(\\w*)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Siemens'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(rct\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'RCA'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(venue[\\d ]{2,7}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Dell'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(q(?:mv|ta)\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Verizon'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Barnes & Noble'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(tm\\d{3}\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'NuVision'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(k88) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'ZTE'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(nx\\d{3}j) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'ZTE'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(gen\\d{3}) b.+49h/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Swiss'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(zur\\d{3}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Swiss'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((zeki)?tb.*\\b) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Zeki'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b([yr]\\d{2}) b/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[f, 'Dragon Touch'], d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(ns-?\\w{0,9}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Insignia'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((nxa|next)-?\\w{0,9}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'NextBook'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],\n\t\t\t\t\t\t\t\t\t[[f, 'Voice'], d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(lvtel\\-)?(v1[12]) b/i],\n\t\t\t\t\t\t\t\t\t[[f, 'LvTel'], d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(ph-1) /i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Essential'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(v(100md|700na|7011|917g).*\\b) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Envizen'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(trio[-\\w\\. ]+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'MachSpeed'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\btu_(1491) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Rotor'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/(shield[\\w ]+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Nvidia'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/(sprint) (\\w+)/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/(kin\\.[onetw]{3})/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /\\./g, ' '],\n\t\t\t\t\t\t\t\t\t\t[f, B],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, h]],\n\t\t\t\t\t\t\t\t\t[/smart-tv.+(samsung)/i],\n\t\t\t\t\t\t\t\t\t[f, [m, y]],\n\t\t\t\t\t\t\t\t\t[/hbbtv.+maple;(\\d+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /^/, 'SmartTV'],\n\t\t\t\t\t\t\t\t\t\t[f, A],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[f, M],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(apple) ?tv/i],\n\t\t\t\t\t\t\t\t\t[f, [d, S + ' TV'], [m, y]],\n\t\t\t\t\t\t\t\t\t[/crkey/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, j + 'cast'],\n\t\t\t\t\t\t\t\t\t\t[f, I],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/droid.+aft(\\w)( bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, y]],\n\t\t\t\t\t\t\t\t\t[/\\(dtv[\\);].+(aquos)/i, /(aquos-tv[\\w ]+)\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, L], [m, y]],\n\t\t\t\t\t\t\t\t\t[/(bravia[\\w ]+)( bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, y]],\n\t\t\t\t\t\t\t\t\t[/(mitv-\\w{5}) bui/i],\n\t\t\t\t\t\t\t\t\t[d, [f, R], [m, y]],\n\t\t\t\t\t\t\t\t\t[/Hbbtv.*(technisat) (.*);/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, y]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[f, H],\n\t\t\t\t\t\t\t\t\t\t[d, H],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],\n\t\t\t\t\t\t\t\t\t[[m, y]],\n\t\t\t\t\t\t\t\t\t[/(ouya)/i, /(nintendo) ([wids3utch]+)/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, b]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (shield) bui/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Nvidia'], [m, b]],\n\t\t\t\t\t\t\t\t\t[/(playstation [345portablevi]+)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, b]],\n\t\t\t\t\t\t\t\t\t[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],\n\t\t\t\t\t\t\t\t\t[d, [f, B], [m, b]],\n\t\t\t\t\t\t\t\t\t[/((pebble))app/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, T]],\n\t\t\t\t\t\t\t\t\t[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],\n\t\t\t\t\t\t\t\t\t[d, [f, S], [m, T]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (glass) \\d/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, T]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (wt63?0{2,3})\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, T]],\n\t\t\t\t\t\t\t\t\t[/(quest( 2| pro)?)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, F], [m, T]],\n\t\t\t\t\t\t\t\t\t[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[f, [m, k]],\n\t\t\t\t\t\t\t\t\t[/(aeobc)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, k]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],\n\t\t\t\t\t\t\t\t\t[[m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[m, h]],\n\t\t\t\t\t\t\t\t\t[/(android[-\\w\\. ]{0,9});.+buil/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Generic']],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tengine: [\n\t\t\t\t\t\t\t\t\t[/windows.+ edge\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'EdgeHTML']],\n\t\t\t\t\t\t\t\t\t[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Blink']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(presto)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/ekioh(flow)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(libweb)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tos: [\n\t\t\t\t\t\t\t\t\t[/microsoft (windows) (vista|xp)/i],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(windows) nt 6\\.2; (arm)/i,\n\t\t\t\t\t\t\t\t\t\t/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, [v, J, X]],\n\t\t\t\t\t\t\t\t\t[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[p, 'Windows'],\n\t\t\t\t\t\t\t\t\t\t[v, J, X],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,\n\t\t\t\t\t\t\t\t\t\t/ios;fbsv\\/([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/cfnetwork\\/.+darwin/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[v, /_/g, '.'],\n\t\t\t\t\t\t\t\t\t\t[p, 'iOS'],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(mac os x) ?([\\w\\. ]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(macintosh|mac_powerpc\\b)(?!.+haiku)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[p, K],\n\t\t\t\t\t\t\t\t\t\t[v, /_/g, '.'],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(blackberry)\\w*\\/([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\((series40);/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/\\(bb(10);/i],\n\t\t\t\t\t\t\t\t\t[v, [p, x]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Symbian']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' OS']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/web0s;.+rt(tv)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'webOS']],\n\t\t\t\t\t\t\t\t\t[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'watchOS']],\n\t\t\t\t\t\t\t\t\t[/crkey\\/([\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, j + 'cast']],\n\t\t\t\t\t\t\t\t\t[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],\n\t\t\t\t\t\t\t\t\t[[p, z], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/panasonic;(viera)/i,\n\t\t\t\t\t\t\t\t\t\t/(netrange)mmh/i,\n\t\t\t\t\t\t\t\t\t\t/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(nintendo|playstation) ([wids345portablevuch]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(xbox); +xbox ([^\\);]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(mint)[\\/\\(\\) ]?(\\w*)/i,\n\t\t\t\t\t\t\t\t\t\t/(mageia|vectorlinux)[; ]/i,\n\t\t\t\t\t\t\t\t\t\t/([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,\n\t\t\t\t\t\t\t\t\t\t/(hurd|linux) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(gnu) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(haiku) (\\w+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(sunos) ?([\\w\\.\\d]*)/i],\n\t\t\t\t\t\t\t\t\t[[p, 'Solaris'], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,\n\t\t\t\t\t\t\t\t\t\t/(unix) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tZ = function (e, t) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(typeof e === c && ((t = e), (e = a)),\n\t\t\t\t\t\t\t\t\t!(this instanceof Z))\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\treturn new Z(e, t).getResult()\n\t\t\t\t\t\t\t\tvar n = typeof i !== s && i.navigator ? i.navigator : a,\n\t\t\t\t\t\t\t\t\tr = e || (n && n.userAgent ? n.userAgent : ''),\n\t\t\t\t\t\t\t\t\tb = n && n.userAgentData ? n.userAgentData : a,\n\t\t\t\t\t\t\t\t\ty = t\n\t\t\t\t\t\t\t\t\t\t? (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n = {}\n\t\t\t\t\t\t\t\t\t\t\t\tfor (var r in e)\n\t\t\t\t\t\t\t\t\t\t\t\t\tt[r] && t[r].length % 2 == 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (n[r] = t[r].concat(e[r]))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (n[r] = e[r])\n\t\t\t\t\t\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t\t\t\t\t\t})(G, t)\n\t\t\t\t\t\t\t\t\t\t: G,\n\t\t\t\t\t\t\t\t\tT = n && n.userAgent == r\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t(this.getBrowser = function () {\n\t\t\t\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\t\t\t\tt = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(t[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(t[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(t, r, y.browser),\n\t\t\t\t\t\t\t\t\t\t\t(t[l] =\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof (e = t[v]) === u\n\t\t\t\t\t\t\t\t\t\t\t\t\t? e.replace(/[^\\d\\.]/g, '').split('.')[0]\n\t\t\t\t\t\t\t\t\t\t\t\t\t: a),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.brave &&\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof n.brave.isBrave == o &&\n\t\t\t\t\t\t\t\t\t\t\t\t(t[p] = 'Brave'),\n\t\t\t\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getCPU = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (e[g] = a), V.call(e, r, y.cpu), e\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getDevice = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[f] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[d] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[m] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.device),\n\t\t\t\t\t\t\t\t\t\t\tT && !e[m] && b && b.mobile && (e[m] = h),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\t'Macintosh' == e[d] &&\n\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof n.standalone !== s &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.maxTouchPoints &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.maxTouchPoints > 2 &&\n\t\t\t\t\t\t\t\t\t\t\t\t((e[d] = 'iPad'), (e[m] = w)),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getEngine = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.engine),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getOS = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.os),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\t!e[p] &&\n\t\t\t\t\t\t\t\t\t\t\t\tb &&\n\t\t\t\t\t\t\t\t\t\t\t\t'Unknown' != b.platform &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[p] = b.platform\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace(/chrome os/i, z)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace(/macos/i, K)),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getResult = function () {\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\tua: this.getUA(),\n\t\t\t\t\t\t\t\t\t\t\tbrowser: this.getBrowser(),\n\t\t\t\t\t\t\t\t\t\t\tengine: this.getEngine(),\n\t\t\t\t\t\t\t\t\t\t\tos: this.getOS(),\n\t\t\t\t\t\t\t\t\t\t\tdevice: this.getDevice(),\n\t\t\t\t\t\t\t\t\t\t\tcpu: this.getCPU(),\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getUA = function () {\n\t\t\t\t\t\t\t\t\t\treturn r\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.setUA = function (e) {\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(r =\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof e === u && e.length > 350\n\t\t\t\t\t\t\t\t\t\t\t\t\t? H(e, 350)\n\t\t\t\t\t\t\t\t\t\t\t\t\t: e),\n\t\t\t\t\t\t\t\t\t\t\tthis\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tthis.setUA(r),\n\t\t\t\t\t\t\t\t\tthis\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t;(Z.VERSION = '1.0.35'),\n\t\t\t\t\t\t\t(Z.BROWSER = $([p, v, l])),\n\t\t\t\t\t\t\t(Z.CPU = $([g])),\n\t\t\t\t\t\t\t(Z.DEVICE = $([d, f, m, b, h, y, w, T, k])),\n\t\t\t\t\t\t\t(Z.ENGINE = Z.OS = $([p, v])),\n\t\t\t\t\t\t\ttypeof t !== s\n\t\t\t\t\t\t\t\t? (e.exports && (t = e.exports = Z), (t.UAParser = Z))\n\t\t\t\t\t\t\t\t: n.amdO\n\t\t\t\t\t\t\t\t\t? (r = function () {\n\t\t\t\t\t\t\t\t\t\t\treturn Z\n\t\t\t\t\t\t\t\t\t\t}.call(t, n, t, e)) === a || (e.exports = r)\n\t\t\t\t\t\t\t\t\t: typeof i !== s && (i.UAParser = Z)\n\t\t\t\t\t\tvar Y = typeof i !== s && (i.jQuery || i.Zepto)\n\t\t\t\t\t\tif (Y && !Y.ua) {\n\t\t\t\t\t\t\tvar ee = new Z()\n\t\t\t\t\t\t\t;(Y.ua = ee.getResult()),\n\t\t\t\t\t\t\t\t(Y.ua.get = function () {\n\t\t\t\t\t\t\t\t\treturn ee.getUA()\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(Y.ua.set = function (e) {\n\t\t\t\t\t\t\t\t\tee.setUA(e)\n\t\t\t\t\t\t\t\t\tvar t = ee.getResult()\n\t\t\t\t\t\t\t\t\tfor (var n in t) Y.ua[n] = t[n]\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t})('object' == typeof window ? window : this)\n\t\t\t\t},\n\t\t\t},\n\t\t\tt = {}\n\t\tfunction n(r) {\n\t\t\tvar i = t[r]\n\t\t\tif (void 0 !== i) return i.exports\n\t\t\tvar a = (t[r] = { exports: {} })\n\t\t\treturn e[r].call(a.exports, a, a.exports, n), a.exports\n\t\t}\n\t\t;(n.amdO = {}),\n\t\t\t(n.n = (e) => {\n\t\t\t\tvar t = e && e.__esModule ? () => e.default : () => e\n\t\t\t\treturn n.d(t, { a: t }), t\n\t\t\t}),\n\t\t\t(n.d = (e, t) => {\n\t\t\t\tfor (var r in t)\n\t\t\t\t\tn.o(t, r) &&\n\t\t\t\t\t\t!n.o(e, r) &&\n\t\t\t\t\t\tObject.defineProperty(e, r, { enumerable: !0, get: t[r] })\n\t\t\t}),\n\t\t\t(n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)),\n\t\t\t(n.r = (e) => {\n\t\t\t\t'undefined' != typeof Symbol &&\n\t\t\t\t\tSymbol.toStringTag &&\n\t\t\t\t\tObject.defineProperty(e, Symbol.toStringTag, {\n\t\t\t\t\t\tvalue: 'Module',\n\t\t\t\t\t}),\n\t\t\t\t\tObject.defineProperty(e, '__esModule', { value: !0 })\n\t\t\t})\n\t\tvar r = {}\n\t\treturn (\n\t\t\t(() => {\n\t\t\t\t'use strict'\n\t\t\t\tn.r(r),\n\t\t\t\t\tn.d(r, {\n\t\t\t\t\t\tActionType: () => f,\n\t\t\t\t\t\tAmplitudePlatformName: () => g,\n\t\t\t\t\t\tAnalyticsEventImportance: () => l,\n\t\t\t\t\t\tAnalyticsQueries: () => e,\n\t\t\t\t\t\tAuthStatus: () => b,\n\t\t\t\t\t\tComponentType: () => m,\n\t\t\t\t\t\tIThresholdTier: () => Jt,\n\t\t\t\t\t\tMetricType: () => d,\n\t\t\t\t\t\tPlatformName: () => v,\n\t\t\t\t\t\tSessionActions: () => h,\n\t\t\t\t\t\tSessionAutomatedEvents: () => w,\n\t\t\t\t\t\tSessionRank: () => y,\n\t\t\t\t\t\tSubjectType: () => p,\n\t\t\t\t\t\tUserTypeCommerce: () => c,\n\t\t\t\t\t\tUserTypeInsto: () => i,\n\t\t\t\t\t\tUserTypeRetail: () => t,\n\t\t\t\t\t\tUserTypeRetailBusinessBanking: () => s,\n\t\t\t\t\t\tUserTypeRetailEmployeeInternal: () => a,\n\t\t\t\t\t\tUserTypeRetailEmployeePersonal: () => o,\n\t\t\t\t\t\tUserTypeWallet: () => u,\n\t\t\t\t\t\tautomatedEvents: () => xn,\n\t\t\t\t\t\tautomatedMappingConfig: () => In,\n\t\t\t\t\t\tclearMarkEntry: () => Vn,\n\t\t\t\t\t\tclearPerformanceMarkEntries: () => Xn,\n\t\t\t\t\t\tconfig: () => A,\n\t\t\t\t\t\tcreateEventConfig: () => On,\n\t\t\t\t\t\tcreateNewSpan: () => Ln,\n\t\t\t\t\t\tcreateNewTrace: () => Un,\n\t\t\t\t\t\tdevice: () => W,\n\t\t\t\t\t\tendPerfMark: () => Jn,\n\t\t\t\t\t\texposeExperiment: () => wn,\n\t\t\t\t\t\tflushQueue: () => or,\n\t\t\t\t\t\tgenerateUUID: () => V,\n\t\t\t\t\t\tgetAnalyticsHeaders: () => sr,\n\t\t\t\t\t\tgetReferrerData: () => le,\n\t\t\t\t\t\tgetTracingHeaders: () => An,\n\t\t\t\t\t\tgetTracingId: () => Dn,\n\t\t\t\t\t\tgetUrlHostname: () => pe,\n\t\t\t\t\t\tgetUrlParams: () => me,\n\t\t\t\t\t\tgetUrlPathname: () => fe,\n\t\t\t\t\t\tgetUserContext: () => ar,\n\t\t\t\t\t\tidentify: () => Tn,\n\t\t\t\t\t\tidentifyFlow: () => xe,\n\t\t\t\t\t\tidentity: () => H,\n\t\t\t\t\t\tidentityFlow: () => Se,\n\t\t\t\t\t\tincrementUjNavigation: () => an,\n\t\t\t\t\t\tinit: () => yn,\n\t\t\t\t\t\tinitNextJsTrackPageview: () => _n,\n\t\t\t\t\t\tinitTrackPageview: () => kn,\n\t\t\t\t\t\tisEventKeyFormatValid: () => we,\n\t\t\t\t\t\tisSessionEnded: () => pt,\n\t\t\t\t\t\tlocation: () => re,\n\t\t\t\t\t\tlogEvent: () => $t,\n\t\t\t\t\t\tlogMetric: () => Ht,\n\t\t\t\t\t\tlogPageView: () => on,\n\t\t\t\t\t\tlogTrace: () => Rn,\n\t\t\t\t\t\tmarkNTBT: () => tn,\n\t\t\t\t\t\tmarkStep: () => nn,\n\t\t\t\t\t\tmarkStepOnce: () => rn,\n\t\t\t\t\t\tonVisibilityChange: () => ln,\n\t\t\t\t\t\toptIn: () => En,\n\t\t\t\t\t\toptOut: () => Sn,\n\t\t\t\t\t\tperfMark: () => Wn,\n\t\t\t\t\t\tpersistentData: () => oe,\n\t\t\t\t\t\tpostMessage: () => K,\n\t\t\t\t\t\trecordSessionDuration: () => pn,\n\t\t\t\t\t\tremoveFromIdentifyFlow: () => Ee,\n\t\t\t\t\t\tsavePersistentData: () => st,\n\t\t\t\t\t\tsendScheduledEvents: () => Bt,\n\t\t\t\t\t\tsetBreadcrumbs: () => ie,\n\t\t\t\t\t\tsetConfig: () => U,\n\t\t\t\t\t\tsetLocation: () => ae,\n\t\t\t\t\t\tsetPagePath: () => ve,\n\t\t\t\t\t\tsetPageview: () => Kt,\n\t\t\t\t\t\tsetPersistentData: () => se,\n\t\t\t\t\t\tsetSessionStart: () => dt,\n\t\t\t\t\t\tsetTime: () => Ue,\n\t\t\t\t\t\tstartPerfMark: () => Hn,\n\t\t\t\t\t\ttimeStone: () => Le,\n\t\t\t\t\t\tuseEventLogger: () => Yn,\n\t\t\t\t\t\tuseLogEventOnMount: () => tr,\n\t\t\t\t\t\tusePerformanceMarks: () => rr,\n\t\t\t\t\t})\n\t\t\t\tlet e = (function (e) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(e.fbclid = 'fbclid'),\n\t\t\t\t\t\t(e.gclid = 'gclid'),\n\t\t\t\t\t\t(e.msclkid = 'msclkid'),\n\t\t\t\t\t\t(e.ptclid = 'ptclid'),\n\t\t\t\t\t\t(e.ttclid = 'ttclid'),\n\t\t\t\t\t\t(e.utm_source = 'utm_source'),\n\t\t\t\t\t\t(e.utm_medium = 'utm_medium'),\n\t\t\t\t\t\t(e.utm_campaign = 'utm_campaign'),\n\t\t\t\t\t\t(e.utm_term = 'utm_term'),\n\t\t\t\t\t\t(e.utm_content = 'utm_content'),\n\t\t\t\t\t\te\n\t\t\t\t\t)\n\t\t\t\t})({})\n\t\t\t\tconst t = 0,\n\t\t\t\t\ti = 1,\n\t\t\t\t\ta = 2,\n\t\t\t\t\to = 3,\n\t\t\t\t\ts = 4,\n\t\t\t\t\tc = 5,\n\t\t\t\t\tu = 6\n\t\t\t\tlet l = (function (e) {\n\t\t\t\t\t\treturn (e.low = 'low'), (e.high = 'high'), e\n\t\t\t\t\t})({}),\n\t\t\t\t\td = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.count = 'count'),\n\t\t\t\t\t\t\t(e.rate = 'rate'),\n\t\t\t\t\t\t\t(e.gauge = 'gauge'),\n\t\t\t\t\t\t\t(e.distribution = 'distribution'),\n\t\t\t\t\t\t\t(e.histogram = 'histogram'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tp = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.commerce_merchant = 'commerce_merchant'),\n\t\t\t\t\t\t\t(e.device = 'device'),\n\t\t\t\t\t\t\t(e.edp_fingerprint_id = 'edp_fingerprint_id'),\n\t\t\t\t\t\t\t(e.nft_user = 'nft_user'),\n\t\t\t\t\t\t\t(e.user = 'user'),\n\t\t\t\t\t\t\t(e.wallet_user = 'wallet_user'),\n\t\t\t\t\t\t\t(e.uuid = 'user_uuid'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tm = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.banner = 'banner'),\n\t\t\t\t\t\t\t(e.button = 'button'),\n\t\t\t\t\t\t\t(e.card = 'card'),\n\t\t\t\t\t\t\t(e.chart = 'chart'),\n\t\t\t\t\t\t\t(e.content_script = 'content_script'),\n\t\t\t\t\t\t\t(e.dropdown = 'dropdown'),\n\t\t\t\t\t\t\t(e.link = 'link'),\n\t\t\t\t\t\t\t(e.page = 'page'),\n\t\t\t\t\t\t\t(e.modal = 'modal'),\n\t\t\t\t\t\t\t(e.table = 'table'),\n\t\t\t\t\t\t\t(e.search_bar = 'search_bar'),\n\t\t\t\t\t\t\t(e.service_worker = 'service_worker'),\n\t\t\t\t\t\t\t(e.text = 'text'),\n\t\t\t\t\t\t\t(e.text_input = 'text_input'),\n\t\t\t\t\t\t\t(e.tray = 'tray'),\n\t\t\t\t\t\t\t(e.checkbox = 'checkbox'),\n\t\t\t\t\t\t\t(e.icon = 'icon'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tf = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.blur = 'blur'),\n\t\t\t\t\t\t\t(e.click = 'click'),\n\t\t\t\t\t\t\t(e.change = 'change'),\n\t\t\t\t\t\t\t(e.dismiss = 'dismiss'),\n\t\t\t\t\t\t\t(e.focus = 'focus'),\n\t\t\t\t\t\t\t(e.hover = 'hover'),\n\t\t\t\t\t\t\t(e.select = 'select'),\n\t\t\t\t\t\t\t(e.measurement = 'measurement'),\n\t\t\t\t\t\t\t(e.move = 'move'),\n\t\t\t\t\t\t\t(e.process = 'process'),\n\t\t\t\t\t\t\t(e.render = 'render'),\n\t\t\t\t\t\t\t(e.scroll = 'scroll'),\n\t\t\t\t\t\t\t(e.view = 'view'),\n\t\t\t\t\t\t\t(e.search = 'search'),\n\t\t\t\t\t\t\t(e.keyPress = 'keyPress'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tv = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.web = 'web'),\n\t\t\t\t\t\t\t(e.android = 'android'),\n\t\t\t\t\t\t\t(e.ios = 'ios'),\n\t\t\t\t\t\t\t(e.mobile_web = 'mobile_web'),\n\t\t\t\t\t\t\t(e.tablet_web = 'tablet_web'),\n\t\t\t\t\t\t\t(e.server = 'server'),\n\t\t\t\t\t\t\t(e.windows = 'windows'),\n\t\t\t\t\t\t\t(e.macos = 'macos'),\n\t\t\t\t\t\t\t(e.extension = 'extension'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tg = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.web = 'Web'),\n\t\t\t\t\t\t\t(e.ios = 'iOS'),\n\t\t\t\t\t\t\t(e.android = 'Android'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tb = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e[(e.notLoggedIn = 0)] = 'notLoggedIn'),\n\t\t\t\t\t\t\t(e[(e.loggedIn = 1)] = 'loggedIn'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\th = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.ac = 'ac'),\n\t\t\t\t\t\t\t(e.af = 'af'),\n\t\t\t\t\t\t\t(e.ah = 'ah'),\n\t\t\t\t\t\t\t(e.al = 'al'),\n\t\t\t\t\t\t\t(e.am = 'am'),\n\t\t\t\t\t\t\t(e.ar = 'ar'),\n\t\t\t\t\t\t\t(e.as = 'as'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tw = (function (e) {\n\t\t\t\t\t\treturn (e.pv = 'pv'), e\n\t\t\t\t\t})({}),\n\t\t\t\t\ty = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.xs = 'xs'),\n\t\t\t\t\t\t\t(e.s = 's'),\n\t\t\t\t\t\t\t(e.m = 'm'),\n\t\t\t\t\t\t\t(e.l = 'l'),\n\t\t\t\t\t\t\t(e.xl = 'xl'),\n\t\t\t\t\t\t\t(e.xxl = 'xxl'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({})\n\t\t\t\tconst T = 'https://analytics-service-dev.cbhq.net',\n\t\t\t\t\tk = 3e5,\n\t\t\t\t\t_ = 5e3,\n\t\t\t\t\tS = 'analytics-db',\n\t\t\t\t\tE = 'experiment-exposure-db',\n\t\t\t\t\tx = 'Analytics SDK:',\n\t\t\t\t\tO = Object.values(e),\n\t\t\t\t\tj = 'pageview',\n\t\t\t\t\tN = 'session_duration',\n\t\t\t\t\tI = {\n\t\t\t\t\t\tnavigationTiming: { eventName: 'perf_navigation_timing' },\n\t\t\t\t\t\tredirectTime: { eventName: 'perf_redirect_time' },\n\t\t\t\t\t\tRT: { eventName: 'perf_redirect_time' },\n\t\t\t\t\t\tTTFB: { eventName: 'perf_time_to_first_byte' },\n\t\t\t\t\t\tnetworkInformation: { eventName: 'perf_network_information' },\n\t\t\t\t\t\tstorageEstimate: { eventName: 'perf_storage_estimate' },\n\t\t\t\t\t\tFCP: { eventName: 'perf_first_contentful_paint' },\n\t\t\t\t\t\tFID: { eventName: 'perf_first_input_delay' },\n\t\t\t\t\t\tLCP: { eventName: 'perf_largest_contentful_paint' },\n\t\t\t\t\t\tCLS: { eventName: 'perf_cumulative_layout_shift' },\n\t\t\t\t\t\tTBT: { eventName: 'perf_total_blocking_time' },\n\t\t\t\t\t\tNTBT: { eventName: 'perf_navigation_total_blocking_time' },\n\t\t\t\t\t\tINP: { eventName: 'perf_interact_to_next_paint' },\n\t\t\t\t\t\tET: { eventName: 'perf_element_timing' },\n\t\t\t\t\t\tuserJourneyStep: { eventName: 'perf_user_journey_step' },\n\t\t\t\t\t},\n\t\t\t\t\tP = '1',\n\t\t\t\t\tM = 'web'\n\t\t\t\tfunction B() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(B = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tB.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst C = /^(https?:\\/\\/)/\n\t\t\t\tfunction D(e) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\teventsEndpoint: e + '/amp',\n\t\t\t\t\t\tmetricsEndPoint: e + '/metrics',\n\t\t\t\t\t\texposureEndpoint: e + '/track-exposures',\n\t\t\t\t\t\ttracesEndpoint: e + '/traces',\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconst A = B(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tauthCookie: 'logged_in',\n\t\t\t\t\t\t\tamplitudeApiKey: '',\n\t\t\t\t\t\t\tbatchEventsPeriod: _,\n\t\t\t\t\t\t\tbatchEventsThreshold: 30,\n\t\t\t\t\t\t\tbatchMetricsPeriod: _,\n\t\t\t\t\t\t\tbatchMetricsThreshold: 30,\n\t\t\t\t\t\t\tbatchTracesPeriod: _,\n\t\t\t\t\t\t\tbatchTracesThreshold: 30,\n\t\t\t\t\t\t\theaders: {},\n\t\t\t\t\t\t\tinteractionManager: null,\n\t\t\t\t\t\t\tisAlwaysAuthed: !1,\n\t\t\t\t\t\t\tisProd: !1,\n\t\t\t\t\t\t\tisInternalApplication: !1,\n\t\t\t\t\t\t\tonError: (e, t) => {\n\t\t\t\t\t\t\t\tconsole.error(x, e, t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tplatform: v.unknown,\n\t\t\t\t\t\t\tprojectName: '',\n\t\t\t\t\t\t\tricTimeoutScheduleEvent: 1e3,\n\t\t\t\t\t\t\tricTimeoutSetDevice: 500,\n\t\t\t\t\t\t\tshowDebugLogging: !1,\n\t\t\t\t\t\t\ttrackUserId: !1,\n\t\t\t\t\t\t\tversion: null,\n\t\t\t\t\t\t\tapiEndpoint: T,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tD(T),\n\t\t\t\t\t\t{ steps: {} },\n\t\t\t\t\t),\n\t\t\t\t\tL = [].reduce(\n\t\t\t\t\t\t(e, t) => (n) => e(t(n)),\n\t\t\t\t\t\t(e) => {\n\t\t\t\t\t\t\tif (!e.isProd)\n\t\t\t\t\t\t\t\treturn e.isInternalApplication\n\t\t\t\t\t\t\t\t\t? ((e.apiEndpoint =\n\t\t\t\t\t\t\t\t\t\t\t'https://analytics-service-internal-dev.cbhq.net'),\n\t\t\t\t\t\t\t\t\t\tB({}, e, D(e.apiEndpoint)))\n\t\t\t\t\t\t\t\t\t: e\n\t\t\t\t\t\t\tconst t = ((e) =>\n\t\t\t\t\t\t\t\te.apiEndpoint\n\t\t\t\t\t\t\t\t\t? C.test(e.apiEndpoint)\n\t\t\t\t\t\t\t\t\t\t? e.apiEndpoint\n\t\t\t\t\t\t\t\t\t\t: `https://${e.apiEndpoint}`\n\t\t\t\t\t\t\t\t\t: e.isInternalApplication\n\t\t\t\t\t\t\t\t\t\t? 'https://analytics-service-internal.cbhq.net'\n\t\t\t\t\t\t\t\t\t\t: 'https://as.coinbase.com')(e)\n\t\t\t\t\t\t\treturn B({}, e, { apiEndpoint: t }, D(t))\n\t\t\t\t\t\t},\n\t\t\t\t\t),\n\t\t\t\t\tU = (e) => {\n\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\tbatchEventsThreshold: t,\n\t\t\t\t\t\t\t\tbatchMetricsThreshold: n,\n\t\t\t\t\t\t\t\tbatchTracesThreshold: r,\n\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\ti = [t, n, r]\n\t\t\t\t\t\tfor (const e of i)\n\t\t\t\t\t\t\tif ((e || 0) > 30) {\n\t\t\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t\t\t'You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tObject.assign(A, L(e))\n\t\t\t\t\t},\n\t\t\t\t\tR = [v.web, v.mobile_web, v.tablet_web]\n\t\t\t\tfunction q() {\n\t\t\t\t\treturn 'android' === A.platform\n\t\t\t\t}\n\t\t\t\tfunction F() {\n\t\t\t\t\treturn 'ios' === A.platform\n\t\t\t\t}\n\t\t\t\tfunction z() {\n\t\t\t\t\treturn R.includes(A.platform)\n\t\t\t\t}\n\t\t\t\tfunction K(e) {\n\t\t\t\t\tif (\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\tnavigator &&\n\t\t\t\t\t\t'serviceWorker' in navigator &&\n\t\t\t\t\t\tnavigator.serviceWorker.controller\n\t\t\t\t\t)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnavigator.serviceWorker.controller.postMessage(e)\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvar $ = n(353),\n\t\t\t\t\tQ = n.n($)\n\t\t\t\tconst W = {\n\t\t\t\t\t\tamplitudeOSName: null,\n\t\t\t\t\t\tamplitudeOSVersion: null,\n\t\t\t\t\t\tamplitudeDeviceModel: null,\n\t\t\t\t\t\tamplitudePlatform: null,\n\t\t\t\t\t\tbrowserName: null,\n\t\t\t\t\t\tbrowserMajor: null,\n\t\t\t\t\t\tosName: null,\n\t\t\t\t\t\tuserAgent: null,\n\t\t\t\t\t\twidth: null,\n\t\t\t\t\t\theight: null,\n\t\t\t\t\t},\n\t\t\t\t\tH = {\n\t\t\t\t\t\tcountryCode: null,\n\t\t\t\t\t\tdeviceId: null,\n\t\t\t\t\t\tdevice_os: null,\n\t\t\t\t\t\tisOptOut: !1,\n\t\t\t\t\t\tlanguageCode: null,\n\t\t\t\t\t\tlocale: null,\n\t\t\t\t\t\tjwt: null,\n\t\t\t\t\t\tsession_lcc_id: null,\n\t\t\t\t\t\tuserAgent: null,\n\t\t\t\t\t\tuserId: null,\n\t\t\t\t\t},\n\t\t\t\t\tV = (e) =>\n\t\t\t\t\t\te\n\t\t\t\t\t\t\t? (e ^ ((16 * Math.random()) >> (e / 4))).toString(16)\n\t\t\t\t\t\t\t: '10000000-1000-4000-8000-100000000000'.replace(\n\t\t\t\t\t\t\t\t\t/[018]/g,\n\t\t\t\t\t\t\t\t\tV,\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\tJ = () => A.isAlwaysAuthed || !!H.userId,\n\t\t\t\t\tX = () => {\n\t\t\t\t\t\tconst e = {}\n\t\t\t\t\t\treturn H.countryCode && (e.country_code = H.countryCode), e\n\t\t\t\t\t},\n\t\t\t\t\tG = () => {\n\t\t\t\t\t\tconst { platform: e } = A\n\t\t\t\t\t\tif (e === v.web)\n\t\t\t\t\t\t\tswitch (!0) {\n\t\t\t\t\t\t\t\tcase window.matchMedia('(max-width: 560px)').matches:\n\t\t\t\t\t\t\t\t\treturn v.mobile_web\n\t\t\t\t\t\t\t\tcase window.matchMedia(\n\t\t\t\t\t\t\t\t\t'(max-width: 1024px, min-width: 561px)',\n\t\t\t\t\t\t\t\t).matches:\n\t\t\t\t\t\t\t\t\treturn v.tablet_web\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\treturn e\n\t\t\t\t\t},\n\t\t\t\t\tZ = () => {\n\t\t\t\t\t\tvar e, t, n, r, i\n\t\t\t\t\t\tz()\n\t\t\t\t\t\t\t? ('requestIdleCallback' in window\n\t\t\t\t\t\t\t\t\t? window.requestIdleCallback(ne, {\n\t\t\t\t\t\t\t\t\t\t\ttimeout: A.ricTimeoutSetDevice,\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t: ne(),\n\t\t\t\t\t\t\t\t(W.amplitudePlatform = g.web),\n\t\t\t\t\t\t\t\t(W.userAgent =\n\t\t\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.navigator)\n\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t: e.userAgent) || null),\n\t\t\t\t\t\t\t\tee({\n\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t(t =\n\t\t\t\t\t\t\t\t\t\t\tnull == (n = window) ? void 0 : n.innerHeight)\n\t\t\t\t\t\t\t\t\t\t\t? t\n\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t(r = null == (i = window) ? void 0 : i.innerWidth)\n\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t: F()\n\t\t\t\t\t\t\t\t? ((W.amplitudePlatform = g.ios),\n\t\t\t\t\t\t\t\t\t(W.userAgent = H.userAgent),\n\t\t\t\t\t\t\t\t\tW.userAgent && ne())\n\t\t\t\t\t\t\t\t: q() &&\n\t\t\t\t\t\t\t\t\t((W.userAgent = H.userAgent),\n\t\t\t\t\t\t\t\t\t(W.amplitudePlatform = g.android),\n\t\t\t\t\t\t\t\t\tW.userAgent && ne())\n\t\t\t\t\t},\n\t\t\t\t\tY = (e) => {\n\t\t\t\t\t\tObject.assign(H, e),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\tK({\n\t\t\t\t\t\t\t\t\tidentity: {\n\t\t\t\t\t\t\t\t\t\tisAuthed: !!H.userId,\n\t\t\t\t\t\t\t\t\t\tlocale: H.locale || null,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tee = (e) => {\n\t\t\t\t\t\t;(W.height = e.height), (W.width = e.width)\n\t\t\t\t\t},\n\t\t\t\t\tte = () => {\n\t\t\t\t\t\tU({ platform: G() }),\n\t\t\t\t\t\t\tz() && K({ config: { platform: A.platform } })\n\t\t\t\t\t},\n\t\t\t\t\tne = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\tperformance.mark && performance.mark('ua_parser_start')\n\t\t\t\t\t\tconst t = new (Q())(\n\t\t\t\t\t\t\tnull != (e = W.userAgent) ? e : '',\n\t\t\t\t\t\t).getResult()\n\t\t\t\t\t\t;(W.browserName = t.browser.name || null),\n\t\t\t\t\t\t\t(W.browserMajor = t.browser.major || null),\n\t\t\t\t\t\t\t(W.osName = t.os.name || null),\n\t\t\t\t\t\t\t(W.amplitudeOSName = W.browserName),\n\t\t\t\t\t\t\t(W.amplitudeOSVersion = W.browserMajor),\n\t\t\t\t\t\t\t(W.amplitudeDeviceModel = W.osName),\n\t\t\t\t\t\t\tK({\n\t\t\t\t\t\t\t\tdevice: {\n\t\t\t\t\t\t\t\t\tbrowserName: W.browserName,\n\t\t\t\t\t\t\t\t\tosName: W.osName,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tperformance.mark &&\n\t\t\t\t\t\t\t\t(performance.mark('ua_parser_end'),\n\t\t\t\t\t\t\t\tperformance.measure(\n\t\t\t\t\t\t\t\t\t'ua_parser',\n\t\t\t\t\t\t\t\t\t'ua_parser_start',\n\t\t\t\t\t\t\t\t\t'ua_parser_end',\n\t\t\t\t\t\t\t\t))\n\t\t\t\t\t},\n\t\t\t\t\tre = {\n\t\t\t\t\t\tbreadcrumbs: [],\n\t\t\t\t\t\tinitialUAAData: {},\n\t\t\t\t\t\tpageKey: '',\n\t\t\t\t\t\tpageKeyRegex: {},\n\t\t\t\t\t\tpagePath: '',\n\t\t\t\t\t\tprevPageKey: '',\n\t\t\t\t\t\tprevPagePath: '',\n\t\t\t\t\t}\n\t\t\t\tfunction ie(e) {\n\t\t\t\t\tObject.assign(re, { breadcrumbs: e })\n\t\t\t\t}\n\t\t\t\tfunction ae(e) {\n\t\t\t\t\tObject.assign(re, e)\n\t\t\t\t}\n\t\t\t\tconst oe = {\n\t\t\t\t\teventId: 0,\n\t\t\t\t\tsequenceNumber: 0,\n\t\t\t\t\tsessionId: 0,\n\t\t\t\t\tlastEventTime: 0,\n\t\t\t\t\tsessionStart: 0,\n\t\t\t\t\tsessionUUID: null,\n\t\t\t\t\tuserId: null,\n\t\t\t\t\tac: 0,\n\t\t\t\t\taf: 0,\n\t\t\t\t\tah: 0,\n\t\t\t\t\tal: 0,\n\t\t\t\t\tam: 0,\n\t\t\t\t\tar: 0,\n\t\t\t\t\tas: 0,\n\t\t\t\t\tpv: 0,\n\t\t\t\t}\n\t\t\t\tfunction se(e) {\n\t\t\t\t\tObject.assign(oe, e)\n\t\t\t\t}\n\t\t\t\tfunction ce() {\n\t\t\t\t\tvar e, t\n\t\t\t\t\treturn null != (e = null == (t = document) ? void 0 : t.referrer)\n\t\t\t\t\t\t? e\n\t\t\t\t\t\t: ''\n\t\t\t\t}\n\t\t\t\tfunction ue() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ue = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tue.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst le = () => {\n\t\t\t\t\t\tconst e = ce()\n\t\t\t\t\t\tif (!e) return {}\n\t\t\t\t\t\tconst t = new URL(e)\n\t\t\t\t\t\treturn t.hostname === pe()\n\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t: { referrer: e, referring_domain: t.hostname }\n\t\t\t\t\t},\n\t\t\t\t\tde = () => {\n\t\t\t\t\t\tconst e = new URLSearchParams(me()),\n\t\t\t\t\t\t\tt = {}\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tO.forEach((n) => {\n\t\t\t\t\t\t\t\te.has(n) && (t[n] = (e.get(n) || '').toLowerCase())\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tt\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tpe = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.hostname) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tme = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.search) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tfe = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.pathname) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tve = () => {\n\t\t\t\t\t\tconst e = A.overrideWindowLocation ? re.pagePath : fe() + me()\n\t\t\t\t\t\te &&\n\t\t\t\t\t\t\te !== re.pagePath &&\n\t\t\t\t\t\t\t(e !== re.pagePath && ge(),\n\t\t\t\t\t\t\t(re.pagePath = e),\n\t\t\t\t\t\t\tre.pageKeyRegex &&\n\t\t\t\t\t\t\t\tObject.keys(re.pageKeyRegex).some((e) => {\n\t\t\t\t\t\t\t\t\tif (re.pageKeyRegex[e].test(re.pagePath))\n\t\t\t\t\t\t\t\t\t\treturn (re.pageKey = e), !0\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t},\n\t\t\t\t\tge = () => {\n\t\t\t\t\t\tif (z()) {\n\t\t\t\t\t\t\tconst e = ce()\n\t\t\t\t\t\t\tif (!re.prevPagePath && e) {\n\t\t\t\t\t\t\t\tconst t = new URL(e)\n\t\t\t\t\t\t\t\tif (t.hostname === pe())\n\t\t\t\t\t\t\t\t\treturn void (re.prevPagePath = t.pathname)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t;(re.prevPagePath = re.pagePath),\n\t\t\t\t\t\t\t(re.prevPageKey = re.pageKey)\n\t\t\t\t\t},\n\t\t\t\t\tbe = (e) => {\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\tObject.assign(\n\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\tz()\n\t\t\t\t\t\t\t\t\t? (Object.keys(re.initialUAAData).length > 0 ||\n\t\t\t\t\t\t\t\t\t\t\t(new URLSearchParams(me()),\n\t\t\t\t\t\t\t\t\t\t\t(re.initialUAAData = ue(\n\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst e = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tO.forEach((t) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toe[t] && (e[t] = oe[t])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t\t\t\t\t\tde(),\n\t\t\t\t\t\t\t\t\t\t\t\tle(),\n\t\t\t\t\t\t\t\t\t\t\t))),\n\t\t\t\t\t\t\t\t\t\tre.initialUAAData)\n\t\t\t\t\t\t\t\t\t: re.initialUAAData,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\the = /^[a-zd]+(_[a-zd]+)*$/\n\t\t\t\tfunction we(e) {\n\t\t\t\t\treturn he.test(e)\n\t\t\t\t}\n\t\t\t\tfunction ye() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ye = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tye.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Te = [\n\t\t\t\t\t\t'action',\n\t\t\t\t\t\t'component_type',\n\t\t\t\t\t\t'component_name',\n\t\t\t\t\t\t'context',\n\t\t\t\t\t\t'logging_id',\n\t\t\t\t\t],\n\t\t\t\t\tke = ['num_non_hardware_accounts', 'ujs'],\n\t\t\t\t\t_e = 'ujs_',\n\t\t\t\t\tSe = {}\n\t\t\t\tfunction Ee(e) {\n\t\t\t\t\te.forEach((e) => {\n\t\t\t\t\t\tke.includes(e) && delete Se[e]\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction xe(e) {\n\t\t\t\t\tvar t\n\t\t\t\t\tconst n = Object.entries(e).reduce((e, t) => {\n\t\t\t\t\t\tconst [n, r] = t\n\t\t\t\t\t\treturn !Te.includes(n) && ke.includes(n)\n\t\t\t\t\t\t\t? we(n)\n\t\t\t\t\t\t\t\t? ye({}, e, { [n]: r })\n\t\t\t\t\t\t\t\t: (A.onError(\n\t\t\t\t\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\t\t\t\t'IdentityFlow property names must have snake case format',\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t{ [n]: r },\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\te)\n\t\t\t\t\t\t\t: e\n\t\t\t\t\t}, {})\n\t\t\t\t\tnull != (t = n.ujs) &&\n\t\t\t\t\t\tt.length &&\n\t\t\t\t\t\t(n.ujs = n.ujs.map((e) => `${_e}${e}`)),\n\t\t\t\t\t\tObject.assign(Se, n)\n\t\t\t\t}\n\t\t\t\tfunction Oe() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tA.platform !== v.unknown ||\n\t\t\t\t\t\t(A.onError(new Error('SDK platform not initialized')), !1)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst je = {\n\t\t\t\t\teventsQueue: [],\n\t\t\t\t\teventsScheduled: !1,\n\t\t\t\t\tmetricsQueue: [],\n\t\t\t\t\tmetricsScheduled: !1,\n\t\t\t\t\ttracesQueue: [],\n\t\t\t\t\ttracesScheduled: !1,\n\t\t\t\t}\n\t\t\t\tfunction Ne(e) {\n\t\t\t\t\tObject.assign(je, e)\n\t\t\t\t}\n\t\t\t\tconst Ie = {\n\t\t\t\t\t\tac: 0,\n\t\t\t\t\t\taf: 0,\n\t\t\t\t\t\tah: 0,\n\t\t\t\t\t\tal: 0,\n\t\t\t\t\t\tam: 0,\n\t\t\t\t\t\tar: 0,\n\t\t\t\t\t\tas: 0,\n\t\t\t\t\t\tpv: 0,\n\t\t\t\t\t\tsqs: 0,\n\t\t\t\t\t},\n\t\t\t\t\tPe = { ac: 20, af: 5, ah: 1, al: 1, am: 0, ar: 10, as: 20 },\n\t\t\t\t\tMe = { pv: 25 },\n\t\t\t\t\tBe = { xs: 0, s: 1, m: 1, l: 2, xl: 2, xxl: 2 },\n\t\t\t\t\tCe = (e) =>\n\t\t\t\t\t\te < 15\n\t\t\t\t\t\t\t? y.xs\n\t\t\t\t\t\t\t: e < 60\n\t\t\t\t\t\t\t\t? y.s\n\t\t\t\t\t\t\t\t: e < 240\n\t\t\t\t\t\t\t\t\t? y.m\n\t\t\t\t\t\t\t\t\t: e < 960\n\t\t\t\t\t\t\t\t\t\t? y.l\n\t\t\t\t\t\t\t\t\t\t: e < 3840\n\t\t\t\t\t\t\t\t\t\t\t? y.xl\n\t\t\t\t\t\t\t\t\t\t\t: y.xxl,\n\t\t\t\t\tDe = (e) => {\n\t\t\t\t\t\tObject.assign(Ie, e)\n\t\t\t\t\t}\n\t\t\t\tfunction Ae() {\n\t\t\t\t\treturn new Date().getTime()\n\t\t\t\t}\n\t\t\t\tconst Le = {\n\t\t\t\t\ttimeStart: Ae(),\n\t\t\t\t\ttimeOnPagePath: 0,\n\t\t\t\t\ttimeOnPageKey: 0,\n\t\t\t\t\tprevTimeOnPagePath: 0,\n\t\t\t\t\tprevTimeOnPageKey: 0,\n\t\t\t\t\tsessionDuration: 0,\n\t\t\t\t\tsessionEnd: 0,\n\t\t\t\t\tsessionStart: 0,\n\t\t\t\t\tprevSessionDuration: 0,\n\t\t\t\t}\n\t\t\t\tfunction Ue(e) {\n\t\t\t\t\tObject.assign(Le, e)\n\t\t\t\t}\n\t\t\t\tconst Re = (e, t) => t.some((t) => e instanceof t)\n\t\t\t\tlet qe, Fe\n\t\t\t\tconst ze = new WeakMap(),\n\t\t\t\t\tKe = new WeakMap(),\n\t\t\t\t\t$e = new WeakMap(),\n\t\t\t\t\tQe = new WeakMap(),\n\t\t\t\t\tWe = new WeakMap()\n\t\t\t\tlet He = {\n\t\t\t\t\tget(e, t, n) {\n\t\t\t\t\t\tif (e instanceof IDBTransaction) {\n\t\t\t\t\t\t\tif ('done' === t) return Ke.get(e)\n\t\t\t\t\t\t\tif ('objectStoreNames' === t)\n\t\t\t\t\t\t\t\treturn e.objectStoreNames || $e.get(e)\n\t\t\t\t\t\t\tif ('store' === t)\n\t\t\t\t\t\t\t\treturn n.objectStoreNames[1]\n\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t: n.objectStore(n.objectStoreNames[0])\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn Je(e[t])\n\t\t\t\t\t},\n\t\t\t\t\tset: (e, t, n) => ((e[t] = n), !0),\n\t\t\t\t\thas: (e, t) =>\n\t\t\t\t\t\t(e instanceof IDBTransaction &&\n\t\t\t\t\t\t\t('done' === t || 'store' === t)) ||\n\t\t\t\t\t\tt in e,\n\t\t\t\t}\n\t\t\t\tfunction Ve(e) {\n\t\t\t\t\treturn 'function' == typeof e\n\t\t\t\t\t\t? (t = e) !== IDBDatabase.prototype.transaction ||\n\t\t\t\t\t\t\t'objectStoreNames' in IDBTransaction.prototype\n\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\tFe ||\n\t\t\t\t\t\t\t\t\t(Fe = [\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.advance,\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.continue,\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.continuePrimaryKey,\n\t\t\t\t\t\t\t\t\t])\n\t\t\t\t\t\t\t\t).includes(t)\n\t\t\t\t\t\t\t\t? function (...e) {\n\t\t\t\t\t\t\t\t\t\treturn t.apply(Xe(this), e), Je(ze.get(this))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t: function (...e) {\n\t\t\t\t\t\t\t\t\t\treturn Je(t.apply(Xe(this), e))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t: function (e, ...n) {\n\t\t\t\t\t\t\t\t\tconst r = t.call(Xe(this), e, ...n)\n\t\t\t\t\t\t\t\t\treturn $e.set(r, e.sort ? e.sort() : [e]), Je(r)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: (e instanceof IDBTransaction &&\n\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\tif (Ke.has(e)) return\n\t\t\t\t\t\t\t\t\tconst t = new Promise((t, n) => {\n\t\t\t\t\t\t\t\t\t\tconst r = () => {\n\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('complete', i),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('error', a),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('abort', a)\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\ti = () => {\n\t\t\t\t\t\t\t\t\t\t\t\tt(), r()\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\ta = () => {\n\t\t\t\t\t\t\t\t\t\t\t\tn(\n\t\t\t\t\t\t\t\t\t\t\t\t\te.error ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew DOMException(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'AbortError',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'AbortError',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\tr()\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\te.addEventListener('complete', i),\n\t\t\t\t\t\t\t\t\t\t\te.addEventListener('error', a),\n\t\t\t\t\t\t\t\t\t\t\te.addEventListener('abort', a)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tKe.set(e, t)\n\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\tRe(\n\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\tqe ||\n\t\t\t\t\t\t\t\t\t(qe = [\n\t\t\t\t\t\t\t\t\t\tIDBDatabase,\n\t\t\t\t\t\t\t\t\t\tIDBObjectStore,\n\t\t\t\t\t\t\t\t\t\tIDBIndex,\n\t\t\t\t\t\t\t\t\t\tIDBCursor,\n\t\t\t\t\t\t\t\t\t\tIDBTransaction,\n\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t? new Proxy(e, He)\n\t\t\t\t\t\t\t\t: e)\n\t\t\t\t\tvar t\n\t\t\t\t}\n\t\t\t\tfunction Je(e) {\n\t\t\t\t\tif (e instanceof IDBRequest)\n\t\t\t\t\t\treturn (function (e) {\n\t\t\t\t\t\t\tconst t = new Promise((t, n) => {\n\t\t\t\t\t\t\t\tconst r = () => {\n\t\t\t\t\t\t\t\t\t\te.removeEventListener('success', i),\n\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('error', a)\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ti = () => {\n\t\t\t\t\t\t\t\t\t\tt(Je(e.result)), r()\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ta = () => {\n\t\t\t\t\t\t\t\t\t\tn(e.error), r()\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\te.addEventListener('success', i),\n\t\t\t\t\t\t\t\t\te.addEventListener('error', a)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t.then((t) => {\n\t\t\t\t\t\t\t\t\t\tt instanceof IDBCursor && ze.set(t, e)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t.catch(() => {}),\n\t\t\t\t\t\t\t\tWe.set(t, e),\n\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})(e)\n\t\t\t\t\tif (Qe.has(e)) return Qe.get(e)\n\t\t\t\t\tconst t = Ve(e)\n\t\t\t\t\treturn t !== e && (Qe.set(e, t), We.set(t, e)), t\n\t\t\t\t}\n\t\t\t\tconst Xe = (e) => We.get(e),\n\t\t\t\t\tGe = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'],\n\t\t\t\t\tZe = ['put', 'add', 'delete', 'clear'],\n\t\t\t\t\tYe = new Map()\n\t\t\t\tfunction et(e, t) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(e instanceof IDBDatabase) ||\n\t\t\t\t\t\tt in e ||\n\t\t\t\t\t\t'string' != typeof t\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tif (Ye.get(t)) return Ye.get(t)\n\t\t\t\t\tconst n = t.replace(/FromIndex$/, ''),\n\t\t\t\t\t\tr = t !== n,\n\t\t\t\t\t\ti = Ze.includes(n)\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(n in (r ? IDBIndex : IDBObjectStore).prototype) ||\n\t\t\t\t\t\t(!i && !Ge.includes(n))\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tconst a = async function (e, ...t) {\n\t\t\t\t\t\tconst a = this.transaction(e, i ? 'readwrite' : 'readonly')\n\t\t\t\t\t\tlet o = a.store\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tr && (o = o.index(t.shift())),\n\t\t\t\t\t\t\t(await Promise.all([o[n](...t), i && a.done]))[0]\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\treturn Ye.set(t, a), a\n\t\t\t\t}\n\t\t\t\tvar tt\n\t\t\t\t;(tt = He),\n\t\t\t\t\t(He = {\n\t\t\t\t\t\t...tt,\n\t\t\t\t\t\tget: (e, t, n) => et(e, t) || tt.get(e, t, n),\n\t\t\t\t\t\thas: (e, t) => !!et(e, t) || tt.has(e, t),\n\t\t\t\t\t})\n\t\t\t\tconst nt = { isReady: !1, idbKeyval: null }\n\t\t\t\tfunction rt(e) {\n\t\t\t\t\tObject.assign(nt, e)\n\t\t\t\t}\n\t\t\t\tconst it = {},\n\t\t\t\t\tat = async (e) => {\n\t\t\t\t\t\tif (!nt.idbKeyval) return Promise.resolve(null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn await nt.idbKeyval.get(e)\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tA.onError(new Error('IndexedDB:Get:InternalError')),\n\t\t\t\t\t\t\t\tPromise.resolve(null)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tot = async (e, t) => {\n\t\t\t\t\t\tif (nt.idbKeyval)\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tawait nt.idbKeyval.set(e, t)\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tA.onError(new Error('IndexedDB:Set:InternalError'))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tst = () => {\n\t\t\t\t\t\t'server' !== A.platform &&\n\t\t\t\t\t\t\t(se({\n\t\t\t\t\t\t\t\tsessionStart: Le.sessionStart,\n\t\t\t\t\t\t\t\tac: Ie.ac,\n\t\t\t\t\t\t\t\taf: Ie.af,\n\t\t\t\t\t\t\t\tah: Ie.ah,\n\t\t\t\t\t\t\t\tal: Ie.al,\n\t\t\t\t\t\t\t\tam: Ie.am,\n\t\t\t\t\t\t\t\tar: Ie.ar,\n\t\t\t\t\t\t\t\tas: Ie.as,\n\t\t\t\t\t\t\t\tpv: Ie.pv,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tH.userId && se({ userId: H.userId }),\n\t\t\t\t\t\t\tot(S, oe))\n\t\t\t\t\t},\n\t\t\t\t\tct = 'rgb(5,177,105)',\n\t\t\t\t\tut = (e) => {\n\t\t\t\t\t\tconst { metricName: t, data: n } = e,\n\t\t\t\t\t\t\tr = e.importance || l.low\n\t\t\t\t\t\tif (!A.showDebugLogging || !console) return\n\t\t\t\t\t\tconst i = `%c ${x}`,\n\t\t\t\t\t\t\ta = `color:${ct};font-size:11px;`,\n\t\t\t\t\t\t\to = `Importance: ${r}`\n\t\t\t\t\t\tconsole.group(i, a, t, o),\n\t\t\t\t\t\t\tn.forEach((e) => {\n\t\t\t\t\t\t\t\te.event_type\n\t\t\t\t\t\t\t\t\t? console.log(e.event_type, e)\n\t\t\t\t\t\t\t\t\t: console.log(e)\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tconsole.groupEnd()\n\t\t\t\t\t},\n\t\t\t\t\tlt = (e) => {\n\t\t\t\t\t\tconst { metricName: t, data: n } = e,\n\t\t\t\t\t\t\tr = e.importance || l.low\n\t\t\t\t\t\tif (!A.showDebugLogging || !console) return\n\t\t\t\t\t\tconst i = `color:${ct};font-size:11px;`,\n\t\t\t\t\t\t\ta = `%c ${x}`,\n\t\t\t\t\t\t\to = `Importance: ${r}`\n\t\t\t\t\t\tconsole.log(a, i, t, n, o)\n\t\t\t\t\t},\n\t\t\t\t\tdt = () => {\n\t\t\t\t\t\tconst e = Ae()\n\t\t\t\t\t\t;(oe.sessionId &&\n\t\t\t\t\t\t\toe.lastEventTime &&\n\t\t\t\t\t\t\toe.sessionUUID &&\n\t\t\t\t\t\t\t!pt(e)) ||\n\t\t\t\t\t\t\t((oe.sessionId = e),\n\t\t\t\t\t\t\t(oe.sessionUUID = V()),\n\t\t\t\t\t\t\tUe({ sessionStart: e }),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Started new session:',\n\t\t\t\t\t\t\t\tdata: { persistentData: oe, timeStone: Le },\n\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t(oe.lastEventTime = e)\n\t\t\t\t\t},\n\t\t\t\t\tpt = (e) => e - oe.lastEventTime > 18e5\n\t\t\t\tfunction mt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(mt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tmt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst ft = (e) => {\n\t\t\t\t\t\tvar t\n\t\t\t\t\t\t;((e) => {\n\t\t\t\t\t\t\tswitch (e.action) {\n\t\t\t\t\t\t\t\tcase f.click:\n\t\t\t\t\t\t\t\t\tIe.ac += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.focus:\n\t\t\t\t\t\t\t\t\tIe.af += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.hover:\n\t\t\t\t\t\t\t\t\tIe.ah += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.move:\n\t\t\t\t\t\t\t\t\tIe.am += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.scroll:\n\t\t\t\t\t\t\t\t\tIe.al += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.search:\n\t\t\t\t\t\t\t\t\tIe.ar += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.select:\n\t\t\t\t\t\t\t\t\tIe.as += 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})((t = e)),\n\t\t\t\t\t\t\tt.event_type !== j\n\t\t\t\t\t\t\t\t? t.event_type === N &&\n\t\t\t\t\t\t\t\t\t(((e) => {\n\t\t\t\t\t\t\t\t\t\tif (!e.session_rank) return\n\t\t\t\t\t\t\t\t\t\tconst t = e.session_rank\n\t\t\t\t\t\t\t\t\t\tObject.values(h).forEach((e) => {\n\t\t\t\t\t\t\t\t\t\t\tIe.sqs += Ie[e] * Pe[e]\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tObject.values(w).forEach((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\tIe.sqs += Ie[e] * Me[e]\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t(Ie.sqs *= Be[t])\n\t\t\t\t\t\t\t\t\t})(t),\n\t\t\t\t\t\t\t\t\tObject.assign(t, Ie),\n\t\t\t\t\t\t\t\t\tDe({\n\t\t\t\t\t\t\t\t\t\tac: 0,\n\t\t\t\t\t\t\t\t\t\taf: 0,\n\t\t\t\t\t\t\t\t\t\tah: 0,\n\t\t\t\t\t\t\t\t\t\tal: 0,\n\t\t\t\t\t\t\t\t\t\tam: 0,\n\t\t\t\t\t\t\t\t\t\tar: 0,\n\t\t\t\t\t\t\t\t\t\tas: 0,\n\t\t\t\t\t\t\t\t\t\tpv: 0,\n\t\t\t\t\t\t\t\t\t\tsqs: 0,\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t: (Ie.pv += 1)\n\t\t\t\t\t\tconst n = e.event_type\n\t\t\t\t\t\tdelete e.event_type\n\t\t\t\t\t\tconst r = e.deviceId ? e.deviceId : null,\n\t\t\t\t\t\t\ti = e.timestamp\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tdelete e.timestamp,\n\t\t\t\t\t\t\tse({ eventId: oe.eventId + 1 }),\n\t\t\t\t\t\t\tse({ sequenceNumber: oe.sequenceNumber + 1 }),\n\t\t\t\t\t\t\tdt(),\n\t\t\t\t\t\t\tst(),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdevice_id: H.deviceId || r || null,\n\t\t\t\t\t\t\t\tuser_id: H.userId,\n\t\t\t\t\t\t\t\ttimestamp: i,\n\t\t\t\t\t\t\t\tevent_id: oe.eventId,\n\t\t\t\t\t\t\t\tsession_id: oe.sessionId || -1,\n\t\t\t\t\t\t\t\tevent_type: n,\n\t\t\t\t\t\t\t\tversion_name: A.version || null,\n\t\t\t\t\t\t\t\tplatform: W.amplitudePlatform,\n\t\t\t\t\t\t\t\tos_name: W.amplitudeOSName,\n\t\t\t\t\t\t\t\tos_version: W.amplitudeOSVersion,\n\t\t\t\t\t\t\t\tdevice_model: W.amplitudeDeviceModel,\n\t\t\t\t\t\t\t\tlanguage: H.languageCode,\n\t\t\t\t\t\t\t\tevent_properties: mt({}, e, {\n\t\t\t\t\t\t\t\t\tsession_uuid: oe.sessionUUID,\n\t\t\t\t\t\t\t\t\theight: W.height,\n\t\t\t\t\t\t\t\t\twidth: W.width,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tuser_properties: X(),\n\t\t\t\t\t\t\t\tuuid: V(),\n\t\t\t\t\t\t\t\tlibrary: {\n\t\t\t\t\t\t\t\t\tname: '@cbhq/client-analytics',\n\t\t\t\t\t\t\t\t\tversion: '10.6.0',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tsequence_number: oe.sequenceNumber,\n\t\t\t\t\t\t\t\tuser_agent: W.userAgent || H.userAgent,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tvt = (e) => e.map((e) => ft(e))\n\t\t\t\tfunction gt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(gt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tgt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst bt = (e) =>\n\t\t\t\t\t\te.map((e) =>\n\t\t\t\t\t\t\t((e) => {\n\t\t\t\t\t\t\t\tconst t = e.tags || {},\n\t\t\t\t\t\t\t\t\tn = gt(\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tauthed: J() ? 'true' : 'false',\n\t\t\t\t\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tproject_name: A.projectName,\n\t\t\t\t\t\t\t\t\t\t\tversion_name: A.version || null,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tmetric_name: e.metricName,\n\t\t\t\t\t\t\t\t\tpage_path: e.pagePath || null,\n\t\t\t\t\t\t\t\t\tvalue: e.value,\n\t\t\t\t\t\t\t\t\ttags: n,\n\t\t\t\t\t\t\t\t\ttype: e.metricType,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t),\n\t\t\t\t\tht = (e) =>\n\t\t\t\t\t\t0 !== je.metricsQueue.length &&\n\t\t\t\t\t\t(je.metricsQueue.length >= A.batchMetricsThreshold ||\n\t\t\t\t\t\t\t(je.metricsScheduled ||\n\t\t\t\t\t\t\t\t((je.metricsScheduled = !0),\n\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t;(je.metricsScheduled = !1),\n\t\t\t\t\t\t\t\t\t\te(bt(je.metricsQueue)),\n\t\t\t\t\t\t\t\t\t\t(je.metricsQueue = [])\n\t\t\t\t\t\t\t\t}, A.batchMetricsPeriod)),\n\t\t\t\t\t\t\t!1)),\n\t\t\t\t\twt = (e) =>\n\t\t\t\t\t\t0 !== je.tracesQueue.length &&\n\t\t\t\t\t\t(je.tracesQueue.length >= A.batchTracesThreshold ||\n\t\t\t\t\t\t\t(je.tracesScheduled ||\n\t\t\t\t\t\t\t\t((je.tracesScheduled = !0),\n\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t;(je.tracesScheduled = !1),\n\t\t\t\t\t\t\t\t\t\te(je.tracesQueue),\n\t\t\t\t\t\t\t\t\t\t(je.tracesQueue = [])\n\t\t\t\t\t\t\t\t}, A.batchTracesPeriod)),\n\t\t\t\t\t\t\t!1)),\n\t\t\t\t\tyt = (e) => {\n\t\t\t\t\t\tvar t\n\t\t\t\t\t\tz() && null != (t = window) && t.requestIdleCallback\n\t\t\t\t\t\t\t? window.requestIdleCallback(e, {\n\t\t\t\t\t\t\t\t\ttimeout: A.ricTimeoutScheduleEvent,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t: (q() || F()) && A.interactionManager\n\t\t\t\t\t\t\t\t? A.interactionManager.runAfterInteractions(e)\n\t\t\t\t\t\t\t\t: e()\n\t\t\t\t\t}\n\t\t\t\tfunction Tt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Tt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tTt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst kt = 'application/x-www-form-urlencoded; charset=UTF-8',\n\t\t\t\t\t_t = (e) => {\n\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\timportance: n,\n\t\t\t\t\t\t\t\tisJSON: r,\n\t\t\t\t\t\t\t\tonError: i,\n\t\t\t\t\t\t\t\turl: a,\n\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\to = r ? 'application/json' : kt,\n\t\t\t\t\t\t\ts = n || l.low,\n\t\t\t\t\t\t\tc = r\n\t\t\t\t\t\t\t\t? JSON.stringify(t)\n\t\t\t\t\t\t\t\t: new URLSearchParams(t).toString()\n\t\t\t\t\t\tfunction u() {\n\t\t\t\t\t\t\tconst e = new XMLHttpRequest()\n\t\t\t\t\t\t\te.open('POST', a, !0),\n\t\t\t\t\t\t\t\tObject.keys(A.headers || {}).forEach((t) => {\n\t\t\t\t\t\t\t\t\te.setRequestHeader(t, A.headers[t])\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\te.setRequestHeader('Content-Type', kt),\n\t\t\t\t\t\t\t\tH.jwt &&\n\t\t\t\t\t\t\t\t\te.setRequestHeader(\n\t\t\t\t\t\t\t\t\t\t'authorization',\n\t\t\t\t\t\t\t\t\t\t`Bearer ${H.jwt}`,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\te.send(c)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t!z() ||\n\t\t\t\t\t\t\tr ||\n\t\t\t\t\t\t\t!('sendBeacon' in navigator) ||\n\t\t\t\t\t\t\ts !== l.low ||\n\t\t\t\t\t\t\t(A.headers && 0 !== Object.keys(A.headers).length)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\tif (z() && !r) u()\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tconst e = Tt({}, A.headers, { 'Content-Type': o })\n\t\t\t\t\t\t\t\tH.jwt && (e.Authorization = `Bearer ${H.jwt}`),\n\t\t\t\t\t\t\t\t\tfetch(a, {\n\t\t\t\t\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\t\t\t\t\tmode: 'no-cors',\n\t\t\t\t\t\t\t\t\t\theaders: e,\n\t\t\t\t\t\t\t\t\t\tbody: c,\n\t\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\t\ti(e, { context: 'AnalyticsSDKApiError' })\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tconst e = new Blob([c], { type: kt })\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tnavigator.sendBeacon.bind(navigator)(a, e) || u()\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tconsole.error(e), u()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tvar St = n(762),\n\t\t\t\t\tEt = n.n(St)\n\t\t\t\tconst xt = (e, t, n) => {\n\t\t\t\t\tconst r = e || ''\n\t\t\t\t\treturn Et()('2' + r + t + n)\n\t\t\t\t}\n\t\t\t\tfunction Ot() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Ot = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tOt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tclass jt extends Error {\n\t\t\t\t\tconstructor(e) {\n\t\t\t\t\t\tsuper(e),\n\t\t\t\t\t\t\t(this.name = 'CircularJsonReference'),\n\t\t\t\t\t\t\t(this.message = e),\n\t\t\t\t\t\t\t'function' == typeof Error.captureStackTrace\n\t\t\t\t\t\t\t\t? Error.captureStackTrace(this, this.constructor)\n\t\t\t\t\t\t\t\t: (this.stack = new Error(e).stack)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tclass Nt extends jt {\n\t\t\t\t\tconstructor(...e) {\n\t\t\t\t\t\tsuper(...e), (this.name = 'DomReferenceInAnalyticsEvent')\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction It() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(It = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tIt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Pt = (e, t = l.low) => {\n\t\t\t\t\t\tvar n\n\t\t\t\t\t\te && je.eventsQueue.push(e),\n\t\t\t\t\t\t\tnt.isReady &&\n\t\t\t\t\t\t\t\t(!A.trackUserId || H.userId\n\t\t\t\t\t\t\t\t\t? (t === l.high ||\n\t\t\t\t\t\t\t\t\t\t\t((n = Mt),\n\t\t\t\t\t\t\t\t\t\t\t0 !== je.eventsQueue.length &&\n\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsQueue.length >=\n\t\t\t\t\t\t\t\t\t\t\t\t\tA.batchEventsThreshold ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsScheduled ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t((je.eventsScheduled = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(je.eventsScheduled = !1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(vt(je.eventsQueue)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsQueue = [])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}, A.batchEventsPeriod)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t0)))) &&\n\t\t\t\t\t\t\t\t\t\tBt()\n\t\t\t\t\t\t\t\t\t: je.eventsQueue.length > 10 &&\n\t\t\t\t\t\t\t\t\t\t((A.trackUserId = !1),\n\t\t\t\t\t\t\t\t\t\tA.onError(\n\t\t\t\t\t\t\t\t\t\t\tnew Error('userId not set in Logged-in'),\n\t\t\t\t\t\t\t\t\t\t)))\n\t\t\t\t\t},\n\t\t\t\t\tMt = (e, t = l.low) => {\n\t\t\t\t\t\tif (H.isOptOut || 0 === e.length) return\n\t\t\t\t\t\tlet n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tn = JSON.stringify(e)\n\t\t\t\t\t\t} catch (t) {\n\t\t\t\t\t\t\tconst r = e.map((e) => e.event_type).join(', '),\n\t\t\t\t\t\t\t\t[i, a] = ((e) => {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tconst n = []\n\t\t\t\t\t\t\t\t\t\tfor (const r of e) {\n\t\t\t\t\t\t\t\t\t\t\tconst e = Ot({}, r)\n\t\t\t\t\t\t\t\t\t\t\tr.event_properties &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e.event_properties = Ot(\n\t\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t\te.event_properties,\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentTarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trelatedTarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t_dispatchInstances: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t_targetInst: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tview:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((t = r.event_properties.view),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'string',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'number',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'boolean',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t].includes(typeof t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r.event_properties.view\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null),\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\tn.push(e)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn [!0, JSON.stringify(n)]\n\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\treturn [!1, '']\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tvar t\n\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\tif (!i)\n\t\t\t\t\t\t\t\treturn void A.onError(\n\t\t\t\t\t\t\t\t\tnew jt(t instanceof Error ? t.message : 'unknown'),\n\t\t\t\t\t\t\t\t\t{ listEventType: r },\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t;(n = a),\n\t\t\t\t\t\t\t\tA.onError(new Nt('Found DOM element reference'), {\n\t\t\t\t\t\t\t\t\tlistEventType: r,\n\t\t\t\t\t\t\t\t\tstringifiedEventData: n,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst r = Ae().toString(),\n\t\t\t\t\t\t\ti = It(\n\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t{ e: n, v: '2', upload_time: r },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tclient: A.amplitudeApiKey,\n\t\t\t\t\t\t\t\t\tchecksum: xt(A.amplitudeApiKey, n, r),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\turl: A.eventsEndpoint,\n\t\t\t\t\t\t\tdata: i,\n\t\t\t\t\t\t\timportance: t,\n\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tut({ metricName: 'Batch Events', data: e, importance: t })\n\t\t\t\t\t},\n\t\t\t\t\tBt = () => {\n\t\t\t\t\t\tMt(vt(je.eventsQueue)), Ne({ eventsQueue: [] })\n\t\t\t\t\t}\n\t\t\t\tfunction Ct() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Ct = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tCt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Dt = Object.values(f),\n\t\t\t\t\tAt = Object.values(m),\n\t\t\t\t\tLt = (e) => (Dt.includes(e) ? e : f.unknown),\n\t\t\t\t\tUt = (e) => (At.includes(e) ? e : m.unknown),\n\t\t\t\t\tRt = (e, t, n) => {\n\t\t\t\t\t\tconst r = {\n\t\t\t\t\t\t\tauth: J() ? b.loggedIn : b.notLoggedIn,\n\t\t\t\t\t\t\taction: Lt(e),\n\t\t\t\t\t\t\tcomponent_type: Ut(t),\n\t\t\t\t\t\t\tlogging_id: n,\n\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t\tproject_name: A.projectName,\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'number' == typeof H.userTypeEnum &&\n\t\t\t\t\t\t\t\t(r.user_type_enum = H.userTypeEnum),\n\t\t\t\t\t\t\tr\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tqt = (e) => {\n\t\t\t\t\t\tconst t = Ae()\n\t\t\t\t\t\tif (!e)\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tA.onError(new Error('missing logData')),\n\t\t\t\t\t\t\t\tCt({}, Rt(f.unknown, m.unknown), {\n\t\t\t\t\t\t\t\t\tlocale: H.locale,\n\t\t\t\t\t\t\t\t\tsession_lcc_id: H.session_lcc_id,\n\t\t\t\t\t\t\t\t\ttimestamp: t,\n\t\t\t\t\t\t\t\t\ttime_start: Le.timeStart,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\tconst n = Ct(\n\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\tRt(e.action, e.componentType, e.loggingId),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlocale: H.locale,\n\t\t\t\t\t\t\t\tsession_lcc_id: H.session_lcc_id,\n\t\t\t\t\t\t\t\ttimestamp: t,\n\t\t\t\t\t\t\t\ttime_start: Le.timeStart,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t)\n\t\t\t\t\t\treturn delete n.componentType, delete n.loggingId, n\n\t\t\t\t\t},\n\t\t\t\t\tFt = { blacklistRegex: [], isEnabled: !1 }\n\t\t\t\tfunction zt() {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpage_key: re.pageKey,\n\t\t\t\t\t\tpage_path: re.pagePath,\n\t\t\t\t\t\tprev_page_key: re.prevPageKey,\n\t\t\t\t\t\tprev_page_path: re.prevPagePath,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Kt(e) {\n\t\t\t\t\tObject.assign(Ft, e)\n\t\t\t\t}\n\t\t\t\tfunction $t(e, t, n = l.low) {\n\t\t\t\t\tif (H.isOptOut) return\n\t\t\t\t\tif (!Oe()) return\n\t\t\t\t\tconst r = qt(t)\n\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\tFt.isEnabled && (ve(), Object.assign(e, zt()))\n\t\t\t\t\t})(r),\n\t\t\t\t\t\tbe(r),\n\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\tObject.keys(Se).length > 0 && Object.assign(e, Se)\n\t\t\t\t\t\t})(r),\n\t\t\t\t\t\t(r.has_double_fired = !1),\n\t\t\t\t\t\t(r.event_type = e),\n\t\t\t\t\t\tn === l.high\n\t\t\t\t\t\t\t? Pt(r, n)\n\t\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t\tPt(r)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction Qt(e, t = !1) {\n\t\t\t\t\tt\n\t\t\t\t\t\t? _t({\n\t\t\t\t\t\t\t\turl: A.metricsEndPoint,\n\t\t\t\t\t\t\t\tdata: { metrics: e },\n\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.metricsEndPoint,\n\t\t\t\t\t\t\t\t\tdata: { metrics: e },\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tut({ metricName: 'Batch Metrics', data: e })\n\t\t\t\t}\n\t\t\t\tfunction Wt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Wt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tWt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Ht(e) {\n\t\t\t\t\tif (!Oe()) return\n\t\t\t\t\tv.server !== A.platform &&\n\t\t\t\t\t\t!e.pagePath &&\n\t\t\t\t\t\tre.pagePath &&\n\t\t\t\t\t\t(e.pagePath = re.pagePath)\n\t\t\t\t\tconst t = Object.keys(Se).length ? Wt({}, e.tags, Se) : e.tags\n\t\t\t\t\tt && Object.assign(e, { tags: t }),\n\t\t\t\t\t\tje.metricsQueue.push(e),\n\t\t\t\t\t\tht(Qt) && (Qt(bt(je.metricsQueue)), (je.metricsQueue = []))\n\t\t\t\t}\n\t\t\t\tfunction Vt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Vt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tVt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tlet Jt = (function (e) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(e.instant = 'instant'),\n\t\t\t\t\t\t(e.quick = 'quick'),\n\t\t\t\t\t\t(e.moderate = 'moderate'),\n\t\t\t\t\t\t(e.slow = 'slow'),\n\t\t\t\t\t\t(e.unavoidable = 'unavoidable'),\n\t\t\t\t\t\te\n\t\t\t\t\t)\n\t\t\t\t})({})\n\t\t\t\tfunction Xt(e) {\n\t\t\t\t\treturn e.toLowerCase()\n\t\t\t\t}\n\t\t\t\tlet Gt = {}\n\t\t\t\tconst Zt = (e, t) => {\n\t\t\t\t\tnull != A && A.onMarkStep && A.onMarkStep(e, t), xe({ ujs: t })\n\t\t\t\t}\n\t\t\t\tlet Yt\n\t\t\t\tconst en = {\n\t\t\t\t\t\tPerfume: () => {},\n\t\t\t\t\t\tmarkStep: (e) => {},\n\t\t\t\t\t\tmarkStepOnce: (e) => {},\n\t\t\t\t\t\tincrementUjNavigation: () => {},\n\t\t\t\t\t},\n\t\t\t\t\ttn = () => {\n\t\t\t\t\t\tz() && Yt && Yt.markNTBT && Yt.markNTBT()\n\t\t\t\t\t},\n\t\t\t\t\tnn = (e) => {\n\t\t\t\t\t\tz() && Yt && en.markStep && en.markStep(e)\n\t\t\t\t\t},\n\t\t\t\t\trn = (e) => {\n\t\t\t\t\t\tz() && Yt && en.markStepOnce && en.markStepOnce(e)\n\t\t\t\t\t},\n\t\t\t\t\tan = () => {\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\tYt &&\n\t\t\t\t\t\t\ten.incrementUjNavigation &&\n\t\t\t\t\t\t\ten.incrementUjNavigation()\n\t\t\t\t\t}\n\t\t\t\tfunction on(e = { callMarkNTBT: !0 }) {\n\t\t\t\t\t'unknown' !== A.platform &&\n\t\t\t\t\t\t(Ft.blacklistRegex.some((e) => e.test(fe())) ||\n\t\t\t\t\t\t\t($t(j, { action: f.render, componentType: m.page }),\n\t\t\t\t\t\t\te.callMarkNTBT && tn()))\n\t\t\t\t}\n\t\t\t\tlet sn = !1,\n\t\t\t\t\tcn = !1\n\t\t\t\tconst un = (e) => {\n\t\t\t\t\t\tsn = !e.persisted\n\t\t\t\t\t},\n\t\t\t\t\tln = (e, t = 'hidden', n = !1) => {\n\t\t\t\t\t\tcn ||\n\t\t\t\t\t\t\t(addEventListener('pagehide', un),\n\t\t\t\t\t\t\taddEventListener('beforeunload', () => {}),\n\t\t\t\t\t\t\t(cn = !0)),\n\t\t\t\t\t\t\taddEventListener(\n\t\t\t\t\t\t\t\t'visibilitychange',\n\t\t\t\t\t\t\t\t({ timeStamp: n }) => {\n\t\t\t\t\t\t\t\t\tdocument.visibilityState === t &&\n\t\t\t\t\t\t\t\t\t\te({ timeStamp: n, isUnloading: sn })\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{ capture: !0, once: n },\n\t\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tdn = 36e3\n\t\t\t\tfunction pn() {\n\t\t\t\t\tconst e = pt(Ae())\n\t\t\t\t\tif (\n\t\t\t\t\t\t(e &&\n\t\t\t\t\t\t\t(O.forEach((e) => {\n\t\t\t\t\t\t\t\toe[e] && delete oe[e]\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tst()),\n\t\t\t\t\t\t!oe.lastEventTime || !Le.sessionStart || !e)\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tconst t = Math.round((oe.lastEventTime - Le.sessionStart) / 1e3)\n\t\t\t\t\tif (t < 1 || t > dn) return\n\t\t\t\t\tconst n = Ce(t)\n\t\t\t\t\t$t(N, {\n\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\tsession_duration: t,\n\t\t\t\t\t\tsession_end: oe.lastEventTime,\n\t\t\t\t\t\tsession_start: Le.sessionStart,\n\t\t\t\t\t\tsession_rank: n,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction mn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(mn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tmn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst fn = [],\n\t\t\t\t\tvn = [],\n\t\t\t\t\tgn = () => {\n\t\t\t\t\t\tconst e = fn.shift()\n\t\t\t\t\t\te && e()\n\t\t\t\t\t},\n\t\t\t\t\tbn = () => {\n\t\t\t\t\t\tconst e = vn.shift()\n\t\t\t\t\t\te && e()\n\t\t\t\t\t}\n\t\t\t\tlet hn = {}\n\t\t\t\tfunction wn(e) {\n\t\t\t\t\tconst t = (function (e) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\ttest_name: e.testName,\n\t\t\t\t\t\t\tgroup_name: e.group,\n\t\t\t\t\t\t\tsubject_id: e.subjectId,\n\t\t\t\t\t\t\texposed_at: Ae(),\n\t\t\t\t\t\t\tsubject_type: e.subjectType,\n\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t}\n\t\t\t\t\t})(e)\n\t\t\t\t\t;(hn[e.testName] = hn[e.testName] || 0),\n\t\t\t\t\t\thn[e.testName] + k > Ae()\n\t\t\t\t\t\t\t? lt({\n\t\t\t\t\t\t\t\t\tmetricName: `Event: exposeExperiment ${e.testName} not sent`,\n\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t: ((hn[e.testName] = Ae()),\n\t\t\t\t\t\t\t\tot(E, hn),\n\t\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\t\tmetricName: `Event: exposeExperiment ${e.testName} sent`,\n\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.exposureEndpoint,\n\t\t\t\t\t\t\t\t\tdata: [t],\n\t\t\t\t\t\t\t\t\tonError: (t, n) => {\n\t\t\t\t\t\t\t\t\t\t;(hn[e.testName] = 0), ot(E, hn), A.onError(t, n)\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\timportance: l.high,\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t}\n\t\t\t\tconst yn = (e) => {\n\t\t\t\t\t\tvar t, r, i\n\t\t\t\t\t\tU(e),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t(H.languageCode =\n\t\t\t\t\t\t\t\t\t(null == (t = navigator)\n\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t: t.languages[0]) ||\n\t\t\t\t\t\t\t\t\t(null == (r = navigator) ? void 0 : r.language) ||\n\t\t\t\t\t\t\t\t\t''),\n\t\t\t\t\t\t\tte(),\n\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\tvar e\n\t\t\t\t\t\t\t\tif (z() && null != (e = window) && e.indexedDB) {\n\t\t\t\t\t\t\t\t\tconst e = (function (\n\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tblocked: n,\n\t\t\t\t\t\t\t\t\t\t\tupgrade: r,\n\t\t\t\t\t\t\t\t\t\t\tblocking: i,\n\t\t\t\t\t\t\t\t\t\t\tterminated: a,\n\t\t\t\t\t\t\t\t\t\t} = {},\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tconst o = indexedDB.open(e, t),\n\t\t\t\t\t\t\t\t\t\t\ts = Je(o)\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\tr &&\n\t\t\t\t\t\t\t\t\t\t\t\to.addEventListener('upgradeneeded', (e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tr(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJe(o.result),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.oldVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.newVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJe(o.transaction),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\to.addEventListener('blocked', (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\tn(e.oldVersion, e.newVersion, e),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\ts\n\t\t\t\t\t\t\t\t\t\t\t\t.then((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.addEventListener('close', () =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'versionchange',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.oldVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.newVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t.catch(() => {}),\n\t\t\t\t\t\t\t\t\t\t\ts\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t})('keyval-store', 1, {\n\t\t\t\t\t\t\t\t\t\tupgrade(e) {\n\t\t\t\t\t\t\t\t\t\t\te.createObjectStore('keyval')\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\trt({\n\t\t\t\t\t\t\t\t\t\tidbKeyval: {\n\t\t\t\t\t\t\t\t\t\t\tget: async (t) => (await e).get('keyval', t),\n\t\t\t\t\t\t\t\t\t\t\tset: async (t, n) =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).put('keyval', n, t),\n\t\t\t\t\t\t\t\t\t\t\tdelete: async (t) =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).delete('keyval', t),\n\t\t\t\t\t\t\t\t\t\t\tkeys: async () =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).getAllKeys('keyval'),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\trt({\n\t\t\t\t\t\t\t\t\t\tidbKeyval: {\n\t\t\t\t\t\t\t\t\t\t\tget: async (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((t) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tt(it[e])\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tset: async (e, t) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((n) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t;(it[e] = t), n(e)\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tdelete: async (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tdelete it[e]\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tkeys: async () =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\te(Object.keys(it))\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Initialized Analytics:',\n\t\t\t\t\t\t\t\tdata: { deviceId: H.deviceId },\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tfn.push(() => {\n\t\t\t\t\t\t\t\tPt()\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(async () => {\n\t\t\t\t\t\t\t\tconst e = await at(S)\n\t\t\t\t\t\t\t\trt({ isReady: !0 }),\n\t\t\t\t\t\t\t\t\tgn(),\n\t\t\t\t\t\t\t\t\te &&\n\t\t\t\t\t\t\t\t\t\t(bn(),\n\t\t\t\t\t\t\t\t\t\tse({\n\t\t\t\t\t\t\t\t\t\t\teventId: e.eventId || oe.eventId,\n\t\t\t\t\t\t\t\t\t\t\tsequenceNumber:\n\t\t\t\t\t\t\t\t\t\t\t\te.sequenceNumber || oe.sequenceNumber,\n\t\t\t\t\t\t\t\t\t\t\tsessionId: e.sessionId || oe.sessionId,\n\t\t\t\t\t\t\t\t\t\t\tlastEventTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.lastEventTime || oe.lastEventTime,\n\t\t\t\t\t\t\t\t\t\t\tsessionUUID: e.sessionUUID || oe.sessionUUID,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tse(\n\t\t\t\t\t\t\t\t\t\t\t\tmn(\n\t\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst t = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tO.forEach((n) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te[n] && (t[n] = e[n])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\tde(),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\tUe({\n\t\t\t\t\t\t\t\t\t\t\tsessionStart:\n\t\t\t\t\t\t\t\t\t\t\t\te.sessionStart || oe.sessionStart,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tDe({\n\t\t\t\t\t\t\t\t\t\t\tac: e.ac || Ie.ac,\n\t\t\t\t\t\t\t\t\t\t\taf: e.af || Ie.af,\n\t\t\t\t\t\t\t\t\t\t\tah: e.ah || Ie.ah,\n\t\t\t\t\t\t\t\t\t\t\tal: e.al || Ie.al,\n\t\t\t\t\t\t\t\t\t\t\tam: e.am || Ie.am,\n\t\t\t\t\t\t\t\t\t\t\tar: e.ar || Ie.ar,\n\t\t\t\t\t\t\t\t\t\t\tas: e.as || Ie.as,\n\t\t\t\t\t\t\t\t\t\t\tpv: e.pv || Ie.pv,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tA.trackUserId &&\n\t\t\t\t\t\t\t\t\t\t\tY({ userId: e.userId || H.userId }),\n\t\t\t\t\t\t\t\t\t\tpn(),\n\t\t\t\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\t\t\t\tmetricName: 'Initialized Analytics IndexedDB:',\n\t\t\t\t\t\t\t\t\t\t\tdata: e,\n\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t(async function () {\n\t\t\t\t\t\t\t\tat(E)\n\t\t\t\t\t\t\t\t\t.then((e) => {\n\t\t\t\t\t\t\t\t\t\thn = null != e ? e : {}\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t.catch((e) => {\n\t\t\t\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\tZ(),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t(ln(() => {\n\t\t\t\t\t\t\t\t\tse({ lastEventTime: Ae() }), st(), Bt()\n\t\t\t\t\t\t\t\t}, 'hidden'),\n\t\t\t\t\t\t\t\tln(() => {\n\t\t\t\t\t\t\t\t\tpn()\n\t\t\t\t\t\t\t\t}, 'visible')),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t((i = () => {\n\t\t\t\t\t\t\t\t\tvar e, t, n, r\n\t\t\t\t\t\t\t\t\tte(),\n\t\t\t\t\t\t\t\t\t\tee({\n\t\t\t\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t\t\t(e =\n\t\t\t\t\t\t\t\t\t\t\t\t\tnull == (t = window)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: t.innerWidth)\n\t\t\t\t\t\t\t\t\t\t\t\t\t? e\n\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t\t\t(n =\n\t\t\t\t\t\t\t\t\t\t\t\t\tnull == (r = window)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: r.innerHeight)\n\t\t\t\t\t\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\taddEventListener('resize', () => {\n\t\t\t\t\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\t\t\t\t\ti()\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\tif (z())\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tconst e = n(2)\n\t\t\t\t\t\t\t\t\t\t;(en.markStep = e.markStep),\n\t\t\t\t\t\t\t\t\t\t\t(en.markStepOnce = e.markStepOnce),\n\t\t\t\t\t\t\t\t\t\t\t(en.incrementUjNavigation =\n\t\t\t\t\t\t\t\t\t\t\t\te.incrementUjNavigation),\n\t\t\t\t\t\t\t\t\t\t\t(Yt = new e.Perfume({\n\t\t\t\t\t\t\t\t\t\t\t\tanalyticsTracker: (e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tattribution: n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorInformation: i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trating: a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\to = I[r],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.category) || null\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!o && !s) return\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst c =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.deviceMemory) || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tu =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.hardwareConcurrency) || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tl =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.isLowEndDevice) || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tp =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.isLowEndExperience) || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tv =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.serviceWorkerStatus) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'unsupported',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tg = Vt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeviceMemory: c,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thardwareConcurrency: u,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndDevice: l,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndExperience: p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tserviceWorkerStatus: v,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tb = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_low_end_device: l,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_low_end_experience: p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpage_key: re.pageKey || '',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsave_data: t.saveData || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tservice_worker: v,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_perf_metric: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ('navigationTiming' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'number' ==\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttypeof t.redirectTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.redirectTime.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.redirectTime || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('TTFB' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: I.TTFB.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: Vt({}, b),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_ttfb_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('networkInformation' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != t &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.effectiveType &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((Gt = t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(o.eventName, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationDownlink:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.downlink,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationEffectiveType:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.effectiveType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationRtt: t.rtt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationSaveData:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.saveData,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorDeviceMemory: c,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorHardwareConcurrency: u,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('storageEstimate' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_storage_estimate_caches',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.caches,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_storage_estimate_indexed_db',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.indexedDB,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('CLS' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscore: 100 * t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_cls_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('FID' === r) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst e =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.performanceEntry) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr = parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: e.processingStart) || '',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessingStart:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != e &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartTime:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != e && e.startTime\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? parseInt(e.startTime)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_fidVitals_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'userJourneyStep' === r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? ($t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_user_journey_step',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trating:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstep_name:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.stepName) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `user_journey_step.${A.projectName}.${A.platform}.${(null == n ? void 0 : n.stepName) || ''}_vitals_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `user_journey_step.${A.projectName}.${A.platform}.${(null == n ? void 0 : n.stepName) || ''}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.distribution,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: I[r] &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Ht({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_${Xt(r)}_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'LCP' === r &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_${Xt(r)}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td.distribution,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})))\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmaxMeasureTime: 3e4,\n\t\t\t\t\t\t\t\t\t\t\t\tsteps: A.steps,\n\t\t\t\t\t\t\t\t\t\t\t\tonMarkStep: Zt,\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})()\n\t\t\t\t\t},\n\t\t\t\t\tTn = (e) => {\n\t\t\t\t\t\tY(e),\n\t\t\t\t\t\t\te.userAgent && Z(),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Identify:',\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\tcountryCode: H.countryCode,\n\t\t\t\t\t\t\t\t\tdeviceId: H.deviceId,\n\t\t\t\t\t\t\t\t\tuserId: H.userId,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tkn = ({\n\t\t\t\t\t\tblacklistRegex: e,\n\t\t\t\t\t\tpageKeyRegex: t,\n\t\t\t\t\t\tbrowserHistory: n,\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tKt({ blacklistRegex: e || [], isEnabled: !0 }),\n\t\t\t\t\t\t\tae({ pageKeyRegex: t }),\n\t\t\t\t\t\t\ton({ callMarkNTBT: !1 }),\n\t\t\t\t\t\t\tn.listen(() => {\n\t\t\t\t\t\t\t\ton()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\t_n = ({\n\t\t\t\t\t\tblacklistRegex: e,\n\t\t\t\t\t\tpageKeyRegex: t,\n\t\t\t\t\t\tnextJsRouter: n,\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tKt({ blacklistRegex: e || [], isEnabled: !0 }),\n\t\t\t\t\t\t\tae({ pageKeyRegex: t }),\n\t\t\t\t\t\t\ton({ callMarkNTBT: !1 }),\n\t\t\t\t\t\t\tn.events.on('routeChangeComplete', () => {\n\t\t\t\t\t\t\t\ton()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tSn = () => {\n\t\t\t\t\t\tY({ isOptOut: !0 }), ot(S, {})\n\t\t\t\t\t},\n\t\t\t\t\tEn = () => {\n\t\t\t\t\t\tY({ isOptOut: !1 })\n\t\t\t\t\t},\n\t\t\t\t\txn = {\n\t\t\t\t\t\tButton: {\n\t\t\t\t\t\t\tlabel: 'cb_button',\n\t\t\t\t\t\t\tuuid: 'e921a074-40e6-4371-8700-134d5cd633e6',\n\t\t\t\t\t\t\tcomponentType: m.button,\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\tfunction On(e, t, n) {\n\t\t\t\t\treturn { componentName: e, actions: t, data: n }\n\t\t\t\t}\n\t\t\t\tfunction jn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(jn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tjn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Nn(e, t, n) {\n\t\t\t\t\tconst { componentName: r, data: i } = n\n\t\t\t\t\t$t(\n\t\t\t\t\t\te.label,\n\t\t\t\t\t\tjn(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcomponentType: e.componentType,\n\t\t\t\t\t\t\t\taction: t,\n\t\t\t\t\t\t\t\tloggingId: e.uuid,\n\t\t\t\t\t\t\t\tcomponent_name: r,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t),\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst In = {\n\t\t\t\t\tactionMapping: { onPress: f.click, onHover: f.hover },\n\t\t\t\t\thandlers: {\n\t\t\t\t\t\tButton: {\n\t\t\t\t\t\t\t[f.click]: (e) => Nn(xn.Button, f.click, e),\n\t\t\t\t\t\t\t[f.hover]: (e) => Nn(xn.Button, f.hover, e),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\tfunction Pn(e, t = !1) {\n\t\t\t\t\tt\n\t\t\t\t\t\t? _t({\n\t\t\t\t\t\t\t\turl: A.tracesEndpoint,\n\t\t\t\t\t\t\t\tdata: { traces: e },\n\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.tracesEndpoint,\n\t\t\t\t\t\t\t\t\tdata: { traces: e },\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tut({ metricName: 'Batch Traces', data: e })\n\t\t\t\t}\n\t\t\t\tfunction Mn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Mn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tMn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Bn = 1e6\n\t\t\t\tfunction Cn(e) {\n\t\t\t\t\treturn e * Bn\n\t\t\t\t}\n\t\t\t\tfunction Dn(\n\t\t\t\t\te = (function () {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn null == (e = window) ? void 0 : e.crypto\n\t\t\t\t\t})(),\n\t\t\t\t) {\n\t\t\t\t\tconst t = new Uint32Array(2)\n\t\t\t\t\treturn (\n\t\t\t\t\t\tnull == e || e.getRandomValues(t),\n\t\t\t\t\t\t((BigInt(t[0]) << BigInt(32)) + BigInt(t[1])).toString()\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction An(e, t) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t'x-datadog-origin': 'rum',\n\t\t\t\t\t\t'x-datadog-parent-id': t,\n\t\t\t\t\t\t'x-datadog-sampling-priority': '1',\n\t\t\t\t\t\t'x-datadog-trace-id': e,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Ln(e) {\n\t\t\t\t\tvar t\n\t\t\t\t\tconst {\n\t\t\t\t\t\tname: n,\n\t\t\t\t\t\ttraceId: r,\n\t\t\t\t\t\tspanId: i,\n\t\t\t\t\t\tstart: a,\n\t\t\t\t\t\tduration: o,\n\t\t\t\t\t\tresource: s,\n\t\t\t\t\t\tmeta: c,\n\t\t\t\t\t} = e\n\t\t\t\t\treturn {\n\t\t\t\t\t\tduration: o ? Cn(o) : 0,\n\t\t\t\t\t\tname: n,\n\t\t\t\t\t\tresource: s,\n\t\t\t\t\t\tservice: A.projectName,\n\t\t\t\t\t\tspan_id: null != i ? i : Dn(),\n\t\t\t\t\t\tstart: a ? Cn(a) : 0,\n\t\t\t\t\t\ttrace_id: null != r ? r : Dn(),\n\t\t\t\t\t\tparent_id: P,\n\t\t\t\t\t\ttype: M,\n\t\t\t\t\t\tmeta: Mn(\n\t\t\t\t\t\t\t{ platform: A.platform },\n\t\t\t\t\t\t\tre.pageKey ? { page_key: re.pageKey } : {},\n\t\t\t\t\t\t\tnull != (t = Se.ujs) && t.length\n\t\t\t\t\t\t\t\t? { last_ujs: Se.ujs[Se.ujs.length - 1] }\n\t\t\t\t\t\t\t\t: {},\n\t\t\t\t\t\t\tnull != c ? c : {},\n\t\t\t\t\t\t),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Un(e) {\n\t\t\t\t\treturn [Ln(e)]\n\t\t\t\t}\n\t\t\t\tfunction Rn(e, t) {\n\t\t\t\t\tOe() &&\n\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\treturn e.length > 0\n\t\t\t\t\t\t})(e) &&\n\t\t\t\t\t\t(t &&\n\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\te.forEach((e) =>\n\t\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t\tconst n = Mn({}, e.meta, t.meta),\n\t\t\t\t\t\t\t\t\t\t\tr = {\n\t\t\t\t\t\t\t\t\t\t\t\tstart: t.start ? Cn(t.start) : e.start,\n\t\t\t\t\t\t\t\t\t\t\t\tduration: t.duration\n\t\t\t\t\t\t\t\t\t\t\t\t\t? Cn(t.duration)\n\t\t\t\t\t\t\t\t\t\t\t\t\t: e.duration,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tObject.assign(e, t, Mn({ meta: n }, r))\n\t\t\t\t\t\t\t\t\t})(e, t),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t})(e, t),\n\t\t\t\t\t\tje.tracesQueue.push(e),\n\t\t\t\t\t\twt(Pn) && (Pn(je.tracesQueue), (je.tracesQueue = [])))\n\t\t\t\t}\n\t\t\t\tfunction qn(e) {\n\t\t\t\t\tvar t = (function (e, t) {\n\t\t\t\t\t\tif ('object' != typeof e || null === e) return e\n\t\t\t\t\t\tvar n = e[Symbol.toPrimitive]\n\t\t\t\t\t\tif (void 0 !== n) {\n\t\t\t\t\t\t\tvar r = n.call(e, 'string')\n\t\t\t\t\t\t\tif ('object' != typeof r) return r\n\t\t\t\t\t\t\tthrow new TypeError(\n\t\t\t\t\t\t\t\t'@@toPrimitive must return a primitive value.',\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn String(e)\n\t\t\t\t\t})(e)\n\t\t\t\t\treturn 'symbol' == typeof t ? t : String(t)\n\t\t\t\t}\n\t\t\t\tfunction Fn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Fn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tFn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction zn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tvoid 0 !== typeof window &&\n\t\t\t\t\t\t'performance' in window &&\n\t\t\t\t\t\t'mark' in performance &&\n\t\t\t\t\t\t'getEntriesByName' in performance\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Kn(e, t) {\n\t\t\t\t\treturn `perf_${e}${null != t && t.label ? `_${t.label}` : ''}`\n\t\t\t\t}\n\t\t\t\tfunction $n(e, t, n) {\n\t\t\t\t\treturn `${Kn(e, n)}__${t}`\n\t\t\t\t}\n\t\t\t\tlet Qn = {}\n\t\t\t\tfunction Wn(e, t, n) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst r = $n(e, t, n)\n\t\t\t\t\tif ((performance.mark(r), 'end' === t)) {\n\t\t\t\t\t\tconst t = Kn(e, n)\n\t\t\t\t\t\t!(function (e, t, n) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tperformance.measure(e, t, n)\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tA.onError(e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})(t, $n(e, 'start', n), r)\n\t\t\t\t\t\tconst i = performance.getEntriesByName(t).pop()\n\t\t\t\t\t\ti &&\n\t\t\t\t\t\t\tHt(\n\t\t\t\t\t\t\t\tFn(\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tmetricName: e,\n\t\t\t\t\t\t\t\t\t\tmetricType: d.distribution,\n\t\t\t\t\t\t\t\t\t\tvalue: i.duration,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tnull != n && n.tags ? { tags: n.tags } : {},\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Hn(e, t) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst n = $n(e, 'start', t)\n\t\t\t\t\tQn[n] || (Wn(e, 'start', t), (Qn[n] = !0))\n\t\t\t\t}\n\t\t\t\tfunction Vn(e, t) {\n\t\t\t\t\tconst n = $n(e, 'start', t),\n\t\t\t\t\t\tr = (function (e, t) {\n\t\t\t\t\t\t\tif (null == e) return {}\n\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\ti = {},\n\t\t\t\t\t\t\t\ta = Object.keys(e)\n\t\t\t\t\t\t\tfor (r = 0; r < a.length; r++)\n\t\t\t\t\t\t\t\t(n = a[r]), t.indexOf(n) >= 0 || (i[n] = e[n])\n\t\t\t\t\t\t\treturn i\n\t\t\t\t\t\t})(Qn, [n].map(qn))\n\t\t\t\t\tQn = r\n\t\t\t\t}\n\t\t\t\tfunction Jn(e, t) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst n = $n(e, 'start', t)\n\t\t\t\t\tQn[n] && (Wn(e, 'end', t), Vn(e, t))\n\t\t\t\t}\n\t\t\t\tfunction Xn() {\n\t\t\t\t\tzn() && (performance.clearMarks(), (Qn = {}))\n\t\t\t\t}\n\t\t\t\tvar Gn = n(784)\n\t\t\t\tfunction Zn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Zn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tZn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Yn(e, t, n = l.low) {\n\t\t\t\t\tconst r = (0, Gn.useRef)(t)\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(0, Gn.useEffect)(() => {\n\t\t\t\t\t\t\tr.current = t\n\t\t\t\t\t\t}, [t]),\n\t\t\t\t\t\t(0, Gn.useCallback)(\n\t\t\t\t\t\t\t(t) => {\n\t\t\t\t\t\t\t\t$t(e, Zn({}, r.current, t), n)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t[e, n],\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction er() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(er = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\ter.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction tr(e, t, n = l.low) {\n\t\t\t\t\t;(0, Gn.useEffect)(() => {\n\t\t\t\t\t\tconst r = er({}, t, { action: f.render })\n\t\t\t\t\t\t$t(e, r, n)\n\t\t\t\t\t}, [])\n\t\t\t\t}\n\t\t\t\tfunction nr() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(nr = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tnr.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst rr = function (e, t) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tmarkStartPerf: (0, Gn.useCallback)(() => Hn(e, t), [e, t]),\n\t\t\t\t\t\tmarkEndPerf: (0, Gn.useCallback)(\n\t\t\t\t\t\t\t(n) => Jn(e, nr({}, t, n)),\n\t\t\t\t\t\t\t[e, t],\n\t\t\t\t\t\t),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction ir() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ir = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tir.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction ar() {\n\t\t\t\t\treturn Object.entries(\n\t\t\t\t\t\tir({}, Se, zt(), {\n\t\t\t\t\t\t\tsessionUUID: oe.sessionUUID,\n\t\t\t\t\t\t\tuserId: oe.userId,\n\t\t\t\t\t\t}),\n\t\t\t\t\t).reduce((e, t) => {\n\t\t\t\t\t\treturn null != (n = t[1]) && '' !== n\n\t\t\t\t\t\t\t? ir({}, e, { [t[0]]: t[1] })\n\t\t\t\t\t\t\t: e\n\t\t\t\t\t\tvar n\n\t\t\t\t\t}, {})\n\t\t\t\t}\n\t\t\t\tasync function or() {\n\t\t\t\t\treturn new Promise((e) => {\n\t\t\t\t\t\tMt(vt(je.eventsQueue)),\n\t\t\t\t\t\t\tQt(bt(je.metricsQueue), !0),\n\t\t\t\t\t\t\tPn(je.tracesQueue, !0),\n\t\t\t\t\t\t\tNe({ eventsQueue: [], metricsQueue: [], tracesQueue: [] }),\n\t\t\t\t\t\t\te()\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction sr() {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t'X-CB-Device-ID': H.deviceId || 'unknown',\n\t\t\t\t\t\t'X-CB-Is-Logged-In': H.userId ? 'true' : 'false',\n\t\t\t\t\t\t'X-CB-Pagekey': re.pageKey || 'unknown',\n\t\t\t\t\t\t'X-CB-UJS':\n\t\t\t\t\t\t\t((e = Se.ujs),\n\t\t\t\t\t\t\tvoid 0 === e || 0 === e.length ? '' : e.join(',')),\n\t\t\t\t\t\t'X-CB-Platform': A.platform || 'unknown',\n\t\t\t\t\t\t'X-CB-Project-Name': A.projectName || 'unknown',\n\t\t\t\t\t\t'X-CB-Session-UUID': oe.sessionUUID || 'unknown',\n\t\t\t\t\t\t'X-CB-Version-Name': A.version\n\t\t\t\t\t\t\t? String(A.version)\n\t\t\t\t\t\t\t: 'unknown',\n\t\t\t\t\t}\n\t\t\t\t\tvar e\n\t\t\t\t}\n\t\t\t})(),\n\t\t\tr\n\t\t)\n\t})()\n})\n",e.type="text/javascript",document.head.appendChild(e),ch(),document.head.removeChild(e),t()}catch(t){console.error("Failed to execute inlined telemetry script"),e()}});let u=null;const d={getProvider:()=>{var t;return u||(u=c?new Hf:null!==(t=function(){var t,e;const n=null!==(e=null===(t=window.top)||void 0===t?void 0:t.ethereum)&&void 0!==e?e:window.ethereum;return(null==n?void 0:n.isCoinbaseBrowser)?n:null}())&&void 0!==t?t:new mS(o)),u},subAccount:{async create(t){var e;return await(null===(e=d.getProvider())||void 0===e?void 0:e.request({method:"wallet_addSubAccount",params:[{version:"1",account:t}]}))},async get(){var t,e;const n=oh.subAccounts.get();if(null==n?void 0:n.address)return n;const r=null===(e=(await(null===(t=d.getProvider())||void 0===t?void 0:t.request({method:"wallet_connect",params:[{version:"1",capabilities:{}}]}))).accounts[0].capabilities)||void 0===e?void 0:e.subAccounts;return Array.isArray(r)?r[0]:null},addOwner:async({address:t,publicKey:e,chainId:n})=>{var r,a;const i=oh.subAccounts.get(),s=oh.account.get();lh(s,new Error("account does not exist")),lh(null==i?void 0:i.address,new Error("subaccount does not exist"));const o=[];if(e){const[t,n]=dy([{type:"bytes32"},{type:"bytes32"}],e);o.push({to:i.address,data:Qm({abi:uh,functionName:"addOwnerPublicKey",args:[t,n]}),value:nm(0)})}return t&&o.push({to:i.address,data:Qm({abi:uh,functionName:"addOwnerAddress",args:[t]}),value:nm(0)}),await(null===(r=d.getProvider())||void 0===r?void 0:r.request({method:"wallet_sendCalls",params:[{calls:o,chainId:nm(n),from:null===(a=s.accounts)||void 0===a?void 0:a[0],version:"1"}]}))},setToOwnerAccount(t){mh(t),oh.subAccountsConfig.set({toOwnerAccount:t})}}};return d}const gS={USDC:{decimals:6,addresses:{base:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",baseSepolia:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}}},bS={base:8453,baseSepolia:84532},vS=[{name:"transfer",type:"function",stateMutability:"nonpayable",inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"Transfer",type:"event",anonymous:!1,inputs:[{name:"from",type:"address",indexed:!0},{name:"to",type:"address",indexed:!0},{name:"value",type:"uint256",indexed:!1}]}],wS=({testnet:t,status:e,correlationId:n})=>{pA("payment.status_check.completed",{action:fA.process,componentType:lA.unknown,method:"getPaymentStatus",correlationId:n,signerType:"app-sdk",testnet:t,status:e},hA.low)},xS=({testnet:t,correlationId:e,errorMessage:n})=>{pA("payment.status_check.error",{action:fA.error,componentType:lA.unknown,method:"getPaymentStatus",correlationId:e,errorMessage:n,signerType:"app-sdk",testnet:t},hA.low)};async function kS(t){var e;const{id:n,testnet:r=!1,telemetry:a=!0}=t,i=crypto.randomUUID();a&&(({testnet:t,correlationId:e})=>{pA("payment.status_check.started",{action:fA.process,componentType:lA.unknown,method:"getPaymentStatus",correlationId:e,signerType:"app-sdk",testnet:t},hA.low)})({testnet:r,correlationId:i});try{const t=r?"https://api.developer.coinbase.com/rpc/v1/base-sepolia/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O":"https://api.developer.coinbase.com/rpc/v1/base/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O",s=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_getUserOperationReceipt",params:[n]})}).then(t=>t.json());if(s.error){console.error("[getPaymentStatus] RPC error:",s.error);const t=s.error.message||"Network error";throw a&&xS({testnet:r,correlationId:i,errorMessage:t}),new Error(`RPC error: ${t}`)}if(!s.result){const e=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:2,method:"eth_getUserOperationByHash",params:[n]})}).then(t=>t.json());if(e.result){a&&wS({testnet:r,status:"pending",correlationId:i});return{status:"pending",id:n,message:"Your payment is being processed. This usually takes a few seconds.",sender:e.result.sender}}a&&wS({testnet:r,status:"not_found",correlationId:i});return{status:"not_found",id:n,message:"Payment not found. Please check your transaction ID."}}const{success:o,receipt:c,reason:u}=s.result;if(o){let t,o;if(null==c?void 0:c.logs){const n=r?"baseSepolia":"base",a=gS.USDC.addresses[n].toLowerCase(),i=s.result.sender?Am(s.result.sender):void 0,u=[];for(let t=0;t<c.logs.length;t++){const n=c.logs[t],r=null===(e=n.address)||void 0===e?void 0:e.toLowerCase();if(r===a)try{const e=Bb({abi:vS,data:n.data,topics:n.topics});if("Transfer"===e.eventName&&e.args){const n=e.args;if(n.value&&n.to&&n.from){const e=wy(n.value,6);u.push({from:n.from,to:n.to,value:n.value,formattedAmount:e,logIndex:t})}}}catch(t){}}if(u.length>0&&i){const e=u.filter(t=>{try{return Ob(t.from,i)}catch(t){return!1}});if(0===e.length)throw new Error(`Unable to find USDC transfer from sender wallet ${s.result.sender}. Found ${u.length} USDC transfer(s) but none originated from the sender wallet.`);if(e.length>1){const t=e.map(t=>`${t.formattedAmount} USDC to ${t.to}`).join(", ");throw new Error(`Found multiple USDC transfers from sender wallet ${s.result.sender}: ${t}. Expected exactly one transfer.`)}t=e[0].formattedAmount,o=e[0].to}}a&&wS({testnet:r,status:"completed",correlationId:i});return{status:"completed",id:n,message:"Payment completed successfully",sender:s.result.sender,amount:t,recipient:o}}let d="Payment could not be completed";u&&(d=u.toLowerCase().includes("insufficient")?"Insufficient USDC balance":u),a&&wS({testnet:r,status:"failed",correlationId:i});return{status:"failed",id:n,message:"Payment failed",sender:s.result.sender,reason:d}}catch(t){console.error("[getPaymentStatus] Error checking status:",t);const e=t instanceof Error?t.message:"Connection error";throw a&&xS({testnet:r,correlationId:i,errorMessage:e}),t}}async function AS(t,e,n,r=!0){const a=function(t,e,n=!0){return yS({appName:"undefined"!=typeof window?window.location.origin:"Base Pay SDK",appChainIds:[t],preference:{telemetry:n,walletUrl:e}})}(bS[e?"baseSepolia":"base"],n,r),i=a.getProvider();try{const e=await async function(t,e){var n;const r=t.getProvider(),a=await r.request({method:"wallet_sendCalls",params:[e]});let i,s;if("string"==typeof a&&a.length>=66)i=a.slice(0,66);else{if("object"!=typeof a||null===a)throw new Error("Unexpected response format from wallet_sendCalls: expected string with length > 66 or object with id, got "+typeof a);{const t=a;if(!("string"==typeof t.id&&t.id.length>=66))throw new Error(`Could not extract transaction hash from object response. Available fields: ${Object.keys(t).join(", ")}`);i=t.id.slice(0,66),(null===(n=t.capabilities)||void 0===n?void 0:n.dataCallback)&&(s=t.capabilities.dataCallback)}}return{transactionHash:i,payerInfoResponses:s}}(a,t);return e}finally{await i.disconnect()}}function IS(t,e){const n=function(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Mk({value:t});let[n,r="0"]=t.split(".");const a=n.startsWith("-");if(a&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===e)1===Math.round(Number(`.${r}`))&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>e){const[t,a,i]=[r.slice(0,e-1),r.slice(e-1,e),r.slice(e)],s=Math.round(Number(`${a}.${i}`));r=s>9?`${BigInt(t)+BigInt(1)}0`.padStart(t.length+1,"0"):`${t}${s}`,r.length>e&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,e)}else r=r.padEnd(e,"0");return BigInt(`${a?"-":""}${n}${r}`)}(e,gS.USDC.decimals);return Qm({abi:vS,functionName:"transfer",args:[t,n]})}function ES(t,e,n,r){return function(t,e,n){const r=e?"baseSepolia":"base",a=bS[r],i={to:gS.USDC.addresses[r],data:t,value:"0x0"},s={};return n&&n.requests.length>0&&(s.dataCallback=Object.assign({requests:n.requests.map(t=>{var e;return{type:t.type,optional:null!==(e=t.optional)&&void 0!==e&&e}})},n.callbackURL&&{callbackURL:n.callbackURL})),{version:"2.0.0",chainId:a,calls:[i],capabilities:s}}(IS(t,e),n,r)}async function PS(t){var e;const{amount:n,to:r,testnet:a=!1,payerInfo:i,walletUrl:s,telemetry:o=!0}=t,c=crypto.randomUUID();o&&(({amount:t,testnet:e,correlationId:n})=>{pA("payment.pay.started",{action:fA.process,componentType:lA.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e},hA.high)})({amount:n,testnet:a,correlationId:c});try{!function(t,e){if("string"!=typeof t)throw new Error("Invalid amount: must be a string");const n=parseFloat(t);if(isNaN(n))throw new Error("Invalid amount: must be a valid number");if(n<=0)throw new Error("Invalid amount: must be greater than 0");const r=t.indexOf(".");if(-1!==r&&t.length-r-1>e)throw new Error(`Invalid amount: pay only supports up to ${e} decimal places`)}(n,6);const t=function(t){if(!t)throw new Error("Invalid address: address is required");try{return Am(t)}catch(t){throw new Error("Invalid address: must be a valid Ethereum address")}}(r),e=ES(t,n,a,i),u=await AS(e,a,s,o);return o&&(({amount:t,testnet:e,correlationId:n})=>{pA("payment.pay.completed",{action:fA.process,componentType:lA.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e},hA.high)})({amount:n,testnet:a,correlationId:c}),{success:!0,id:u.transactionHash,amount:n,to:t,payerInfoResponses:u.payerInfoResponses}}catch(t){let r="Unknown error occurred";if(t instanceof Error)r=t.message;else if("string"==typeof t)r=t;else if(t&&"object"==typeof t){const n=t;"string"==typeof(null==n?void 0:n.message)?r=n.message:"string"==typeof(null===(e=null==n?void 0:n.error)||void 0===e?void 0:e.message)?r=n.error.message:"string"==typeof(null==n?void 0:n.reason)&&(r=n.reason)}throw o&&(({amount:t,testnet:e,correlationId:n,errorMessage:r})=>{pA("payment.pay.error",{action:fA.error,componentType:lA.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e,errorMessage:r},hA.high)})({amount:n,testnet:a,correlationId:c,errorMessage:r}),t}}const SS={pay:PS,getPaymentStatus:kS,constants:{CHAIN_IDS:bS,TOKENS:gS},types:{}};"undefined"!=typeof window&&(window.base=SS,window.createStartaleAccountSDK=yS),t.CHAIN_IDS=bS,t.TOKENS=gS,t.base=SS,t.createStartaleAccountSDK=yS,t.getCryptoKeyAccount=FP,t.getPaymentStatus=kS,t.pay=PS,t.removeCryptoKey=async function(){const t=await LP();t&&(await RP.removeItem(wl(xf(t.publicKey),1)),await RP.removeItem(jP))}});
|