@dcl/explorer-website 2.6.1-25865517797.commit-b7a7cba → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ConstantsUtil-ByjAYmvC.js → ConstantsUtil-BYRHWuZV.js} +1 -1
- package/assets/{ExchangeController-Bp8ztJrX.js → ExchangeController-N42lbf3C.js} +1 -1
- package/assets/{HelpersUtil-Dp4e1zvd.js → HelpersUtil-DFmhrbIH.js} +1 -1
- package/assets/{NetworkUtil-DqGcuBfF.js → NetworkUtil-DM5H1DOt.js} +1 -1
- package/assets/{SwapController-DUCq2f7d.js → SwapController-SgAc8zJM.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-9eitOT0j.js → W3MFrameProviderSingleton-dGwr0u32.js} +3 -3
- package/assets/{basic-C7tUDecp.js → basic-CDUVa7W3.js} +1 -1
- package/assets/{biconomy-plHCR2Qq.js → biconomy-Dj37CYYZ.js} +1 -1
- package/assets/{browser-VYI7gorG.js → browser-h4rN6CV4.js} +1 -1
- package/assets/browser-ponyfill-LG9Rjmfj.js +1 -0
- package/assets/{ccip-Bldffu31.js → ccip-Cv_5kGJ0.js} +1 -1
- package/assets/{ccip-CrAifiNa.js → ccip-TlIoUAte.js} +1 -1
- package/assets/{chains-DTVDhUwv.js → chains-CsuV2rnE.js} +1 -1
- package/assets/{common-BEf2T7Hi.js → common-C9wbti_7.js} +1 -1
- package/assets/{controller-B8Iy-6V9.js → controller-DpEeOSLx.js} +2 -2
- package/assets/{core-XFvzSI58.js → core-BGvtiIgG.js} +4 -4
- package/assets/{custom-cPmISGcH.js → custom-BbQhcg55.js} +1 -1
- package/assets/{data-capture-DnvAEYWK.js → data-capture-C5UoNnMk.js} +1 -1
- package/assets/decimals-DA8L6Gte.js +1 -0
- package/assets/{decimals-8g2-fBFa.js → decimals-mBEEumco.js} +1 -1
- package/assets/{detectExtension-yvI5WWZb.js → detectExtension-oDT7CrDk.js} +1 -1
- package/assets/{email-C8DRQjTT.js → email-CUatRSQC.js} +1 -1
- package/assets/{embedded-wallet-BxgtT1uV.js → embedded-wallet-DZAeJhJN.js} +1 -1
- package/assets/{engine-BERe87yT.js → engine-AXDB-0h6.js} +1 -1
- package/assets/{estimate-l1-fee-BTeKvFv5.js → estimate-l1-fee-Bxwscz8f.js} +1 -1
- package/assets/eth_estimateGas-DFXalA2X.js +1 -0
- package/assets/{eth_getStorageAt-SbVMAQY-.js → eth_getStorageAt-Dr4zmiJF.js} +1 -1
- package/assets/{eth_getTransactionCount-qv0oO1Md.js → eth_getTransactionCount-cZacEETx.js} +1 -1
- package/assets/{ethereum-BP59xYBe.js → ethereum-CIBzGnJl.js} +1 -1
- package/assets/{extractIPFS-BOFlZk7U.js → extractIPFS-Czsz8-sO.js} +1 -1
- package/assets/{features-DVWd8_kC.js → features-fx-atM_l.js} +1 -1
- package/assets/{fetchTokenMetadata-BaJXN6RH.js → fetchTokenMetadata-uG4nb_Kh.js} +2 -2
- package/assets/{fortmatic-DARkeYTE.js → fortmatic-boxtmFta.js} +1 -1
- package/assets/get-ecosystem-wallet-info-BI2Fd0Vd.js +1 -0
- package/assets/{getBalance-D6wpo61w.js → getBalance-CC2S0qtL.js} +2 -2
- package/assets/{getInstalledModules-Dkj379ys.js → getInstalledModules-53n5UYt2.js} +1 -1
- package/assets/{getNFT-HMkoXD7L.js → getNFT-C3FPakLN.js} +2 -2
- package/assets/{getNFT-Drn4rxrk.js → getNFT-CnaK4j2q.js} +1 -1
- package/assets/{hashTypedData-CMDSWYgs.js → hashTypedData-C4JiqOxU.js} +1 -1
- package/assets/{hashTypedData-B5shS-rs.js → hashTypedData-D1Ievn97.js} +1 -1
- package/assets/{in-app-wallet-calls-l9-2W_Em.js → in-app-wallet-calls-khLeeKNu.js} +1 -1
- package/assets/{index-BIPd_vR5.js → index-0P32tQWj.js} +1 -1
- package/assets/{index-DIlwNfpB.js → index-1quVm3wk.js} +1 -1
- package/assets/{index-DbAu4Peg.js → index-B2PoGJRP.js} +3 -3
- package/assets/{index-BaGjqMte.js → index-B5w_jZpc.js} +2 -2
- package/assets/{index-CE5G6IEJ.js → index-B6j-Tckn.js} +1 -1
- package/assets/{index-CjiwjbqL.js → index-BCiKer83.js} +1 -1
- package/assets/{index-C8NSq3HK.js → index-BCqrDgyR.js} +1 -1
- package/assets/{index-BXAxcybX.js → index-BE5nQY53.js} +1 -1
- package/assets/{index-C51HwlD0.js → index-BF9Yx_yV.js} +1 -1
- package/assets/{index-CWGeCZBJ.js → index-BJCYEGPg.js} +1 -1
- package/assets/{index-Cy1X3n_C.js → index-BT0xQ-Xd.js} +1 -1
- package/assets/{index-0ShVRzxt.js → index-BVi4iI8y.js} +1 -1
- package/assets/{index-BDgZ3gDE.js → index-BVvMg9ZB.js} +1 -1
- package/assets/{index-DFE6t65x.js → index-BpxeqYFx.js} +1 -1
- package/assets/{index-B5ECjSS9.js → index-Bv6LvzLS.js} +1 -1
- package/assets/{index-i4VBSYqA.js → index-BvCGPTHO.js} +1 -1
- package/assets/index-Bzi38pjx.css +1 -0
- package/assets/{index-CH0zI801.js → index-C5oPclal.js} +1 -1
- package/assets/{index-D2ZBQG8w.js → index-C6-AvlPm.js} +1 -1
- package/assets/{index-CWnFK_-0.js → index-C9EMW8qD.js} +1 -1
- package/assets/{index-C-uqursN.js → index-C9vcJp9T.js} +1 -1
- package/assets/{index-DK-ZMNLh.js → index-CO3lXLzl.js} +1 -1
- package/assets/{index-DS2Lm9tG.js → index-CYBDya_s.js} +1 -1
- package/assets/{index-okvlQSs2.js → index-Coj3uG35.js} +1 -1
- package/assets/{index-Cu4ZjLNb.js → index-CqbvjyBi.js} +5 -5
- package/assets/{index-wds8TuUm.js → index-CwfOYq8B.js} +1 -1
- package/assets/{index-aoxVkzFE.js → index-Cz0JdeQb.js} +1 -1
- package/assets/{index-C5ciuua_.js → index-D-YuFp2i.js} +1 -1
- package/assets/{index-I68folnJ.js → index-D4NLrlUn.js} +1 -1
- package/assets/{index-B7Jt3b4d.js → index-D8PaxcsI.js} +1 -1
- package/assets/{index-r_1z0VI_.js → index-D9ey6cqT.js} +1 -1
- package/assets/{index-B-vyBZw9.js → index-DRYOQXZX.js} +1 -1
- package/assets/{index-DOnRCLNP.js → index-DT1PkdGa.js} +2 -2
- package/assets/{index-DWRq2SN_.js → index-DXCSroqX.js} +1 -1
- package/assets/{index-mZa0UiRt.js → index-DXs78xw9.js} +1 -1
- package/assets/{index-kXKMGszW.js → index-DZ0punK7.js} +1 -1
- package/assets/{index-B9U0GcYk.js → index-D_m5AL3D.js} +1 -1
- package/assets/{index-BxdNwV86.js → index-Dc148hav.js} +1 -1
- package/assets/{index-DP1DuCnR.js → index-DgDxBH9m.js} +1 -1
- package/assets/{index-DfWsAOhN.js → index-Dm7tCcMc.js} +3 -3
- package/assets/{index-D0LvjNIX.js → index-DmIGOG39.js} +1 -1
- package/assets/{index-JfVynEph.js → index-DmK5ktNw.js} +1 -1
- package/assets/{index-Cp7mdTuR.js → index-Eyans5--.js} +1 -1
- package/assets/{index-DPxCDCvr.js → index-KK8ZylE4.js} +1 -1
- package/assets/{index-DvJmANzU.js → index-TUD0QlWP.js} +1 -1
- package/assets/{index-TBthDmkl.js → index-ak5cSl-l.js} +1 -1
- package/assets/{index-8M7OkBFm.js → index-bVr8-SEv.js} +1 -1
- package/assets/{index-BlykZ8Gp.js → index-prLj8b2x.js} +1 -1
- package/assets/{index-BKL7nv1p.js → index-vajj2FBo.js} +1 -1
- package/assets/{index.es-YpI01v2I.js → index.es-C85F8NOj.js} +1 -1
- package/assets/{index.es-CkxUaFYS.js → index.es-DYgSAVrd.js} +1 -1
- package/assets/{index.es-cEGj7JU0.js → index.es-XXBqJXMm.js} +4 -4
- package/assets/{localBatchGatewayRequest-CNIOIq-Z.js → localBatchGatewayRequest-DbQn1s0J.js} +1 -1
- package/assets/{networks-DJ72puSk.js → networks-DMqekeph.js} +1 -1
- package/assets/{onramp--l5ZLxWE.js → onramp-qvbxoSMm.js} +1 -1
- package/assets/{openzeppelin-CqtRqxtF.js → openzeppelin-B6Und3LJ.js} +1 -1
- package/assets/{ownerOf-cWkgEtd8.js → ownerOf-CUoSe2c5.js} +1 -1
- package/assets/{parseEventLogs-D1xiFnCH.js → parseEventLogs-BxtEI7tW.js} +3 -3
- package/assets/{parseNft-DH5KlHPI.js → parseNft-DB_pGzOu.js} +2 -2
- package/assets/{parseSignature-HAlgOHnm.js → parseSignature-Csyua1uA.js} +3 -3
- package/assets/{parseSignature-BYhcrVdX.js → parseSignature-O0fAqZoB.js} +1 -1
- package/assets/{pay-with-exchange-CiXPJJ6-.js → pay-with-exchange-1MlV9x6H.js} +1 -1
- package/assets/{qr-overlay-CmFgwJBd.js → qr-overlay-DA6htUdY.js} +3 -3
- package/assets/{receive-t2TxUItI.js → receive-JnpfZY7d.js} +1 -1
- package/assets/{resolveImplementation-iG9WRRnW.js → resolveImplementation-B8d2Q-Ro.js} +1 -1
- package/assets/{rpc-sIdV4wiJ.js → rpc-DkFFCBh9.js} +1 -1
- package/assets/{secp256k1-Rk5k9i7o.js → secp256k1-BCPsQ5nJ.js} +1 -1
- package/assets/{secp256k1-Co_Jve4c.js → secp256k1-BZmrY8e3.js} +1 -1
- package/assets/{secp256k1-Bg2aUJRs.js → secp256k1-TIizaas9.js} +1 -1
- package/assets/{send-ByB5fOtm.js → send-DsnDja5n.js} +1 -1
- package/assets/{send-batch-transaction-D79MC_wr.js → send-batch-transaction-jNcvidMH.js} +1 -1
- package/assets/{send-eip712-transaction-CB6qLgks.js → send-eip712-transaction-DDJVOUpU.js} +2 -2
- package/assets/{send-gasless-transaction-Dt1qtUR8.js → send-gasless-transaction-DXjarWmh.js} +2 -2
- package/assets/{session-proposal-CY0k9Jnm.js → session-proposal-xJguSOgr.js} +1 -1
- package/assets/{session-request-B_2glC9e.js → session-request-BhD4eDPG.js} +2 -2
- package/assets/{sha256-Dy8KQE_5.js → sha256-CbjS9vFa.js} +1 -1
- package/assets/{signing-gNn6SJWz.js → signing-tKzVzr3v.js} +5 -5
- package/assets/{socials-Dx84-PrV.js → socials-CER945jA.js} +1 -1
- package/assets/{swaps-CK9Sfcew.js → swaps-Dy4hNTFm.js} +1 -1
- package/assets/{thirdweb-Bx5V_C1s.js → thirdweb-CNCkvOQU.js} +3 -3
- package/assets/{totalSupply-O-VFDoRO.js → totalSupply-BQvZy7Uc.js} +1 -1
- package/assets/{transactionReceipt-BqEjx5q-.js → transactionReceipt-DA1xo-2g.js} +1 -1
- package/assets/{transactions-BLOC2qYE.js → transactions-CwEfhngY.js} +1 -1
- package/assets/{utils-h8VUSGPW.js → utils-BUWGRgBa.js} +1 -1
- package/assets/{verifyHash-CNJ6t8Wp.js → verifyHash-CX9Livyx.js} +1 -1
- package/assets/{w3m-modal-nzPxg0Fr.js → w3m-modal-B1spewtI.js} +1 -1
- package/assets/{w3m-modal-CCQuGDus.js → w3m-modal-B6M729n4.js} +1 -1
- package/assets/{wait-for-tx-receipt-5pSBMNe2.js → wait-for-tx-receipt-BLruoSfj.js} +1 -1
- package/assets/{wallets-Bz03-Btm.js → wallets-vCTTbbau.js} +6 -6
- package/assets/{web-connector-CAOe_uvv.js → web-connector-h9SB5qXs.js} +3 -3
- package/assets/{writeContract-CCar3Ocq.js → writeContract-C9KDDivM.js} +1 -1
- package/assets/{zora-sepolia-D6mjhB5j.js → zora-sepolia-pCyxGzqm.js} +1 -1
- package/assets/{zoraTestnet-WLSFziQl.js → zoraTestnet-ChmlUfs6.js} +1 -1
- package/index.html +4 -4
- package/package.json +3 -3
- package/assets/browser-ponyfill-BmgQyNz0.js +0 -1
- package/assets/decimals-DR6jraOc.js +0 -1
- package/assets/eth_estimateGas-DKKwG-Ue.js +0 -1
- package/assets/get-ecosystem-wallet-info-Cvjz8DFX.js +0 -1
- package/assets/index-829Uxa3Y.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as zt,_ as ja,h as X,y as Xe,T as Ra}from"./hooks.module-CpBu4GjP.js";import{u as D,s as Be,t as Fe,g as Ma,a as Ua,b as Na,c as La,f as Pn}from"./WebCryptoP256-BkRKBE89.js";import{i as _e,g as Ba}from"./index-Cu4ZjLNb.js";import{d as Fa,s as Ze,c as An,w as Cn,p as Ga,f as Ka}from"./parseSignature-BYhcrVdX.js";import{h as $e}from"./W3MFrameProviderSingleton-9eitOT0j.js";import{o as Ha,h as za,c as Va,p as jt}from"./custom-cPmISGcH.js";import{bg as me,b9 as G,ba as Rt,co as qa,aQ as Mt,ak as _,ax as pe,aR as V,aU as Wa,ct as Za,ao as Ja,z as Ya,y as Qa,x as Xa,az as B,cs as _a,cm as $a,aD as er,aF as tr,aP as Pe,a$ as nr,an as En,aI as H,ap as ar}from"./parseEventLogs-D1xiFnCH.js";import{A as Ge}from"./writeContract-CCar3Ocq.js";import{af as F,ae as E,ai as In,B as T,a2 as Vt,a6 as fe,al as rr,ab as re,an as $,aj as qt,a8 as et,ao as Wt,ak as sr,aa as Zt,a9 as he,a3 as tt}from"./NetworkUtil-DqGcuBfF.js";import{a as ir,b as or,c as cr,d as ur,e as dr,f as lr,g as pr,h as mr,i as fr,j as yr,k as hr,l as gr,m as br,n as wr,o as vr,p as Tr,q as kr,r as Sr,s as xr,t as Pr,u as On,v as Ar,w as Cr,x as Er,y as Ir,z as Or,A as Dr,B as jr,C as Rr,D as Mr,E as Ur,F as Nr,G as Lr,H as Br,I as Fr,J as Gr,K as Kr,L as Hr,M as zr,N as Vr,O as qr,P as Wr,Q as Dn,R as Zr,S as Jr,T as Yr,U as Qr,V as jn,W as Xr,X as _r,Y as Rn,Z as $r,_ as es,$ as ts,a0 as ns,a1 as as,a2 as rs,a3 as ss,a4 as is,a5 as os,a6 as cs,a7 as us,a8 as ds,a9 as ls,aa as ps,ab as ms,ac as fs,ad as ys,ae as hs,af as gs,ag as bs,ah as ws,ai as vs,aj as Ts,ak as ks,al as Ss,am as xs,an as Ps,ao as As,ap as Cs,aq as Es,ar as Is,as as Os,at as Ds,au as js,av as Rs,aw as Mn,ax as Ms,ay as Us,az as Ns,aA as Ls,aB as Bs,aC as Fs,aD as Gs,aE as Ks,aF as Hs,aG as zs,aH as Vs,aI as qs,aJ as Ws,aK as Zs,aL as Js,aM as Ys,aN as Qs,aO as Xs,aP as _s,aQ as $s,aR as ei,aS as ti,aT as ni,aU as ai,aV as ri,aW as si,aX as ii,aY as oi,aZ as ci,a_ as ui,a$ as di,b0 as li,b1 as pi,b2 as mi,b3 as fi,b4 as yi,b5 as hi,b6 as gi,b7 as bi,b8 as wi,b9 as vi,ba as Ti,bb as ki,bc as Si,bd as xi,be as Pi,bf as Ai,bg as Ci,bh as Ei,bi as Ii,bj as Oi,bk as Di,bl as ji,bm as Ri,bn as Mi,bo as Ui,bp as Ni,bq as Li,br as Bi,bs as Fi,bt as Gi,bu as Ki,bv as Hi,bw as zi,bx as Vi,by as qi,bz as Wi,bA as Zi,bB as Ji,bC as Yi,bD as Qi,bE as Xi,bF as _i,bG as $i,bH as eo,bI as to,bJ as no,bK as ao,bL as ro,bM as so,bN as io,bO as oo,bP as co,bQ as uo,bR as lo,bS as po,bT as mo,bU as fo,bV as yo,bW as ho,bX as go,bY as bo,bZ as wo,b_ as vo,b$ as To,c0 as ko,c1 as So,c2 as xo,c3 as Po,c4 as Ao,c5 as Co,c6 as Eo,c7 as Io,c8 as Oo,c9 as Do,ca as jo,cb as Ro,cc as Mo,cd as Uo,ce as No,cf as Lo,cg as Bo,ch as Fo,ci as Go,cj as Ko,ck as Ho,cl as zo,cm as Vo,cn as qo,co as Wo,cp as Zo,cq as Jo,cr as Yo,cs as Qo,ct as Xo,cu as _o,cv as $o,cw as ec,cx as tc,cy as nc,cz as ac,cA as rc,cB as sc,cC as ic,cD as oc,cE as cc,cF as uc,cG as dc,cH as lc,cI as pc,cJ as mc,cK as fc,cL as yc,cM as hc,cN as gc,cO as bc,cP as wc,cQ as vc,cR as Tc,cS as kc,cT as Sc,cU as xc,cV as Pc,cW as Ac,cX as Cc,cY as Ec,cZ as Ic,c_ as Oc,c$ as Dc,d0 as jc,d1 as Rc,d2 as Mc,d3 as Uc,d4 as Nc,d5 as Lc,d6 as Bc,d7 as Fc,d8 as Gc,d9 as Kc,da as Hc,db as zc,dc as Vc,dd as qc,de as Wc,df as Zc,dg as Jc,dh as Yc,di as Qc,dj as Xc,dk as _c,dl as $c,dm as eu,dn as tu,dp as nu,dq as au,dr as ru,ds as su,dt as iu,du as Jt,dv as ou,dw as cu,dx as uu,dy as du,dz as lu,dA as pu,dB as mu,dC as fu,dD as yu,dE as hu,dF as gu,dG as bu,dH as wu,dI as vu,dJ as Tu,dK as ku,dL as Su,dM as xu,dN as Pu,dO as Au,dP as Cu,dQ as Eu,dR as Iu,dS as Ou,dT as Du,dU as ju,dV as Ru,dW as Mu,dX as Uu,dY as Nu,dZ as Lu,d_ as Bu,d$ as Fu,e0 as Gu,e1 as Ku,e2 as Hu,e3 as zu,e4 as Vu,e5 as qu,e6 as Wu,e7 as Zu,e8 as Ju,e9 as Yu,ea as Qu,eb as Xu,ec as _u,ed as $u,ee as ed,ef as td,eg as nd,eh as ad,ei as rd,ej as sd,ek as id,el as od,em as cd,en as ud,eo as dd,ep as ld,eq as pd,er as md,es as fd,et as yd,eu as hd,ev as gd,ew as bd,ex as wd,ey as vd,ez as Td,eA as kd,eB as Sd,eC as xd,eD as Pd,eE as Ad,eF as Cd,eG as Ed,eH as Id,eI as Od,eJ as Dd,eK as jd,eL as Rd,eM as Md,eN as Ud,eO as Nd,eP as Un,eQ as Ld,eR as Bd,eS as Fd,eT as Gd,eU as Kd,eV as Hd,eW as zd,eX as Vd,eY as qd,eZ as Wd,e_ as Zd,e$ as Jd,f0 as Yd,f1 as Qd,f2 as Xd,f3 as _d,f4 as $d,f5 as el,f6 as tl,f7 as nl,f8 as al,f9 as rl,fa as sl,fb as il,fc as ol,fd as cl,fe as ul,ff as dl,fg as ll,fh as pl,fi as ml,fj as fl,fk as yl,fl as hl,fm as gl,fn as bl,fo as wl,fp as vl,fq as Tl,fr as kl,fs as Sl,ft as xl,fu as Pl,fv as Al,fw as Cl,fx as El,fy as Il,fz as Ol,fA as Dl,fB as jl,fC as Rl,fD as Ml,fE as Ul,fF as Nl,fG as Ll,fH as Bl,fI as Fl,fJ as Gl,fK as Kl,fL as Hl,fM as zl,fN as Vl,fO as ql,fP as Wl,fQ as Zl,fR as Jl,fS as Yl,fT as Ql,fU as Xl,fV as _l,fW as $l,fX as ep,fY as tp,fZ as Nn,f_ as np,f$ as Ln,g0 as ap,g1 as rp,g2 as sp,g3 as ip,g4 as op,g5 as cp,g6 as up,g7 as dp,g8 as lp,g9 as pp,ga as mp,gb as fp,gc as yp,gd as hp,ge as gp,gf as bp,gg as wp,gh as vp,gi as Tp,gj as kp,gk as Sp,gl as xp,gm as Pp,gn as Ap,go as Bn,gp as Cp,gq as Ep,gr as Ip,gs as Op,gt as Dp,gu as jp,gv as Rp,gw as Mp,gx as Up,gy as Np,gz as Lp,gA as Bp,gB as Fp,gC as Gp,gD as Kp,gE as Hp,gF as zp,gG as Vp,gH as qp,gI as Wp,gJ as Zp,gK as Jp,gL as Yp,gM as Qp,gN as Xp,gO as _p,gP as $p,gQ as em,gR as tm,gS as nm,gT as am,gU as rm,gV as sm,gW as im,gX as om,gY as cm,gZ as um,g_ as dm,g$ as lm,h0 as pm,h1 as mm,h2 as fm,h3 as ym,h4 as hm,h5 as gm,h6 as bm,h7 as wm,h8 as vm,h9 as Tm,ha as km,hb as Sm,hc as xm,hd as Pm,he as Am,hf as Cm,hg as Fn,hh as Em,hi as Im,hj as Om,hk as Dm,hl as jm,hm as Rm,hn as Mm,ho as Um,hp as Nm,hq as Lm,hr as Bm,hs as Fm,ht as Gm,hu as Km,hv as Hm,hw as zm,hx as Vm,hy as qm,hz as Wm,hA as Zm,hB as Jm,hC as Ym,hD as Qm,hE as Xm,hF as _m,hG as $m,hH as ef,hI as tf,hJ as nf,hK as af,hL as rf,hM as sf,hN as of,hO as cf,hP as uf,hQ as df,hR as lf,hS as pf,hT as mf,hU as ff,hV as yf,hW as hf,hX as gf,hY as bf,hZ as wf,h_ as vf,h$ as Tf,i0 as kf,i1 as Sf,i2 as Yt,i3 as xf,i4 as Pf,i5 as Af,i6 as Cf,i7 as Ef,i8 as If,i9 as Of,ia as Df,ib as jf,ic as Rf,id as Mf,ie as Uf,ig as Nf,ih as Lf,ii as Bf,ij as Ff,ik as Gf,il as Kf,im as Hf,io as zf,ip as Vf,iq as qf,ir as Wf,is as Zf,it as Jf,iu as Yf,iv as Qf,iw as Xf,ix as _f,iy as $f,iz as ey,iA as ty,iB as ny,iC as ay,iD as Qt,iE as ry,iF as sy,iG as Xt,iH as iy,iI as oy,iJ as cy,iK as uy,iL as dy,iM as ly,iN as py,iO as my,iP as fy,iQ as yy,iR as hy,iS as gy,iT as by,iU as wy,iV as vy,iW as Ty,iX as ky,iY as Sy,iZ as xy,i_ as Py,i$ as Ay,j0 as Cy,j1 as Ey,j2 as Iy,j3 as Oy,j4 as Dy,j5 as jy,j6 as Ry,j7 as My,j8 as Uy,j9 as Ny,ja as Ly,jb as By,jc as Fy,jd as Gy,je as Ky,jf as Hy,jg as zy,jh as Vy,ji as qy,jj as Wy,jk as Zy,jl as Jy,jm as Yy,jn as Qy,jo as Xy,jp as _y,jq as _t,jr as $y,js as eh,jt as th,ju as nh,jv as ah,jw as rh,jx as sh,jy as ih,jz as oh,jA as ch,jB as uh,jC as dh,jD as lh,jE as ph,jF as mh,jG as fh,jH as yh,jI as hh,jJ as gh,jK as bh,jL as wh,jM as vh,jN as Th,jO as kh,jP as Sh,jQ as xh,jR as Ph,jS as Ah,jT as Ch,jU as Eh,jV as Ih,jW as Oh,jX as Dh,jY as jh,jZ as Rh,j_ as Mh,j$ as $t,k0 as en,k1 as tn,k2 as nn,k3 as Uh,k4 as Nh,k5 as Lh,k6 as Bh,k7 as Fh,k8 as Gn,k9 as Gh,ka as Kh}from"./zoraTestnet-WLSFziQl.js";import{i as Kn,r as ee,d as Hh}from"./verifyHash-CNJ6t8Wp.js";import{c as zh,s as Vh,d as qh,g as Wh}from"./index-nibyPLVP.js";import{e as Ke,c as Hn}from"./hashTypedData-B5shS-rs.js";import{d as zn}from"./localBatchGatewayRequest-CNIOIq-Z.js";import"./sha256-D33fGSQc.js";import"./sha2-D3ryOfi3.js";import"./hmac-BMnSt9Ou.js";import"./secp256k1-Bg2aUJRs.js";import"./index-DS2Lm9tG.js";import"./browser-ponyfill-BmgQyNz0.js";const Zh=Object.freeze(Object.defineProperty({__proto__:null,abey:ir,abstract:or,abstractTestnet:cr,acala:ur,acria:dr,adf:lr,adi:pr,agungTestnet:mr,aioz:fr,alephZero:yr,alephZeroTestnet:hr,alienx:gr,alienxHalTestnet:br,alpenTestnet:wr,ancient8:vr,ancient8Sepolia:Tr,anvil:kr,apeChain:Sr,apexTestnet:xr,apollo:Pr,arbitrum:On,arbitrumGoerli:Ar,arbitrumNova:Cr,arbitrumSepolia:Er,arcTestnet:Ir,arenaz:Or,areonNetwork:Dr,areonNetworkTestnet:jr,areum:Rr,artelaTestnet:Mr,arthera:Ur,artheraTestnet:Nr,assetChain:Lr,assetChainTestnet:Br,astar:Fr,astarZkEVM:Gr,astarZkyoto:Kr,atletaOlympia:Hr,aurora:zr,auroraTestnet:Vr,auroria:qr,autheoTestnet:Wr,avalanche:Dn,avalancheFuji:Zr,b3:Jr,b3Sepolia:Yr,bahamut:Qr,base:jn,baseGoerli:Xr,basePreconf:_r,baseSepolia:Rn,baseSepoliaPreconf:$r,basecampTestnet:es,battlechainTestnet:ts,beam:ns,beamTestnet:as,bearNetworkChainMainnet:rs,bearNetworkChainTestnet:ss,berachain:is,berachainBepolia:os,berachainTestnet:cs,berachainTestnetbArtio:us,bevmMainnet:ds,bifrost:ls,birdlayer:ps,bitTorrent:ms,bitTorrentTestnet:fs,bitgert:ys,bitkub:hs,bitkubTestnet:gs,bitlayer:bs,bitlayerTestnet:ws,bitrock:vs,blast:Ts,blastSepolia:ks,bob:Ss,bobSepolia:xs,boba:Ps,bobaSepolia:As,boolBetaMainnet:Cs,botanix:Es,botanixTestnet:Is,bounceBit:Os,bounceBitTestnet:Ds,bronos:js,bronosTestnet:Rs,bsc:Mn,bscGreenfield:Ms,bscTestnet:Us,bsquared:Ns,bsquaredTestnet:Ls,btr:Bs,btrTestnet:Fs,bxn:Gs,bxnTestnet:Ks,cannon:Hs,canto:zs,celo:Vs,celoAlfajores:qs,celoSepolia:Ws,chang:Zs,chiliz:Js,chips:Ys,citrea:Qs,citreaTestnet:Xs,classic:_s,codex:$s,codexTestnet:ei,coinbit:ti,coinex:ni,confluxESpace:ai,confluxESpaceTestnet:ri,coreDao:si,coreTestnet1:ii,coreTestnet2:oi,corn:ci,cornTestnet:ui,cpchain:di,crab:li,creatorTestnet:pi,creditCoin3Devnet:mi,creditCoin3Mainnet:fi,creditCoin3Testnet:yi,cronos:hi,cronosTestnet:gi,cronoszkEVM:bi,cronoszkEVMTestnet:wi,crossbell:vi,crossfi:Ti,curtis:ki,cyber:Si,cyberTestnet:xi,dailyNetwork:Pi,dailyNetworkTestnet:Ai,darwinia:Ci,datahavenTestnet:Ei,dbkchain:Ii,dchain:Oi,dchainTestnet:Di,defichainEvm:ji,defichainEvmTestnet:Ri,degen:Mi,dfk:Ui,diode:Ni,disChain:Li,dodochainTestnet:Bi,dogechain:Fi,domaTestnet:Gi,donatuz:Ki,dosChain:Hi,dosChainTestnet:zi,dreyerxMainnet:Vi,dreyerxTestnet:qi,dustboyIoT:Wi,dymension:Zi,eden:Ji,edexa:Yi,edexaTestnet:Qi,edgeless:Xi,edgelessTestnet:_i,edgeware:$i,edgewareTestnet:eo,eduChain:to,eduChainTestnet:no,elastos:ao,elastosTestnet:ro,electroneum:so,electroneumTestnet:io,elysiumTestnet:oo,energy:co,eni:uo,eniTestnet:lo,enuls:po,eon:mo,eos:fo,eosTestnet:yo,eteria:ho,etherlink:go,etherlinkShadownetTestnet:bo,etherlinkTestnet:wo,ethernity:vo,etp:To,evmos:ko,evmosTestnet:So,excelonMainnet:xo,expanse:Po,exsat:Ao,exsatTestnet:Co,fantom:Eo,fantomSonicTestnet:Io,fantomTestnet:Oo,fibo:Do,filecoin:jo,filecoinCalibration:Ro,filecoinHyperspace:Mo,fireChain:Uo,flame:No,flare:Lo,flareTestnet:Bo,flowMainnet:Fo,flowPreviewnet:Go,flowTestnet:Ko,fluence:Ho,fluenceStage:zo,fluenceTestnet:Vo,fluent:qo,fluentDevnet:Wo,fluentTestnet:Zo,form:Jo,formTestnet:Yo,forma:Qo,formicarium:Xo,forta:_o,foundry:$o,fraxtal:ec,fraxtalTestnet:tc,funkiMainnet:nc,funkiSepolia:ac,fuse:rc,fuseSparknet:sc,fusion:ic,fusionTestnet:oc,garnet:cc,gatechain:uc,geist:dc,genesys:lc,gensyn:pc,giwaSepolia:mc,giwaSepoliaPreconf:fc,glideL1Protocol:yc,glideL2Protocol:hc,gnosis:gc,gnosisChiado:bc,goChain:wc,goat:vc,gobi:Tc,godwoken:kc,goerli:Sc,graphite:xc,graphiteTestnet:Pc,gravity:Ac,gunz:Cc,guruNetwork:Ec,guruTestnet:Ic,ham:Oc,happychainTestnet:Dc,haqqMainnet:jc,haqqTestedge2:Rc,hardhat:Mc,harmonyOne:Uc,hashkey:Nc,hashkeyTestnet:Lc,haustTestnet:Bc,hedera:Fc,hederaPreviewnet:Gc,hederaTestnet:Kc,hela:Hc,heliosTestnet:zc,hemi:Vc,hemiSepolia:qc,henesys:Wc,holesky:Zc,hoodi:Jc,horizenTestnet:Yc,hpb:Qc,hpp:Xc,hppSepolia:_c,huddle01Mainnet:$c,huddle01Testnet:eu,humanity:tu,humanityTestnet:nu,humanode:au,humanodeTestnet5:ru,hychain:su,hychainTestnet:iu,hyperEvm:Jt,hyperliquid:Jt,hyperliquidEvmTestnet:ou,iSunCoin:cu,icbNetwork:uu,idchain:du,igra:lu,immutableZkEvm:pu,immutableZkEvmTestnet:mu,inEVM:fu,initVerse:yu,initVerseGenesis:hu,injective:gu,injectiveTestnet:bu,ink:wu,inkSepolia:vu,iota:Tu,iotaTestnet:ku,iotex:Su,iotexTestnet:xu,jasmyChain:Pu,jasmyChainTestnet:Au,jbc:Cu,jbcTestnet:Eu,jocMainnet:Iu,jocTestnet:Ou,jovay:Du,jovaySepolia:ju,juneo:Ru,juneoBCH1Chain:Mu,juneoDAI1Chain:Uu,juneoDOGE1Chain:Nu,juneoEUR1Chain:Lu,juneoGLD1Chain:Bu,juneoLINK1Chain:Fu,juneoLTC1Chain:Gu,juneoSGD1Chain:Ku,juneoSocotraTestnet:Hu,juneoUSD1Chain:zu,juneoUSDT1Chain:Vu,juneomBTC1Chain:qu,kaia:Wu,kairos:Zu,kakarotSepolia:Ju,kakarotStarknetSepolia:Yu,kardiaChain:Qu,karura:Xu,katana:_u,kava:$u,kavaTestnet:ed,kcc:td,kii:nd,kiiTestnetOro:ad,kinto:rd,klaytn:sd,klaytnBaobab:id,koi:od,kroma:cd,kromaSepolia:ud,krown:dd,l3x:ld,l3xTestnet:pd,lavita:md,lens:fd,lensTestnet:yd,lestnet:hd,lightlinkPegasus:gd,lightlinkPhoenix:bd,linea:wd,lineaGoerli:vd,lineaSepolia:Td,lineaTestnet:kd,lisk:Sd,liskSepolia:xd,loadAlphanet:Pd,localhost:Ad,loop:Cd,lukso:Ed,luksoTestnet:Id,lumiaMainnet:Od,lumiaTestnet:Dd,lumoz:jd,lumozTestnet:Rd,luxeports:Md,lycan:Ud,lyra:Nd,mainnet:Un,mandala:Ld,manta:Bd,mantaSepoliaTestnet:Fd,mantaTestnet:Gd,mantle:Kd,mantleSepoliaTestnet:Hd,mantleTestnet:zd,mantraDuKongEVMTestnet:Vd,mantraEVM:qd,mapProtocol:Wd,matchain:Zd,matchainTestnet:Jd,mchVerse:Yd,megaeth:Qd,megaethTestnet:Xd,mekong:_d,meld:$d,memecore:el,merlin:tl,merlinErigonTestnet:nl,metachain:al,metachainIstanbul:rl,metadium:sl,metalL2:il,meter:ol,meterTestnet:cl,metis:ul,metisGoerli:dl,metisSepolia:ll,mev:pl,mevTestnet:ml,mezo:fl,mezoTestnet:yl,mint:hl,mintSepoliaTestnet:gl,mitosisTestnet:bl,mode:wl,modeTestnet:vl,monad:Tl,monadTestnet:kl,moonbaseAlpha:Sl,moonbeam:xl,moonbeamDev:Pl,moonriver:Al,morph:Cl,morphHolesky:El,morphSepolia:Il,nahmii:Ol,nautilus:Dl,near:jl,nearTestnet:Rl,neonDevnet:Ml,neonMainnet:Ul,neoxMainnet:Nl,neoxT4:Ll,newton:Bl,nexi:Fl,nexilix:Gl,nibiru:Kl,nitrographTestnet:Hl,nomina:zl,oasisTestnet:Vl,oasys:ql,odysseyTestnet:Wl,okc:Zl,omax:Jl,omni:Yl,omniOmega:Ql,oneWorld:Xl,oortMainnetDev:_l,opBNB:$l,opBNBTestnet:ep,openledger:tp,optimism:Nn,optimismGoerli:np,optimismSepolia:Ln,optopia:ap,optopiaTestnet:rp,orderly:sp,orderlySepolia:ip,otimDevnet:op,palm:cp,palmTestnet:up,paseoPassetHub:dp,peaq:lp,pgn:pp,pgnTestnet:mp,phoenix:fp,planq:yp,plasma:hp,plasmaDevnet:gp,plasmaTestnet:bp,playfiAlbireo:wp,plinga:vp,plume:Tp,plumeDevnet:kp,plumeMainnet:Sp,plumeSepolia:xp,plumeTestnet:Pp,polterTestnet:Ap,polygon:Bn,polygonAmoy:Cp,polygonMumbai:Ep,polygonZkEvm:Ip,polygonZkEvmCardona:Op,polygonZkEvmTestnet:Dp,polynomial:jp,polynomialSepolia:Rp,potos:Mp,potosTestnet:Up,premiumBlockTestnet:Np,pulsechain:Lp,pulsechainV4:Bp,pumpfiTestnet:Fp,pyrope:Gp,qMainnet:Kp,qTestnet:Hp,ql1:zp,quai:Vp,quaiTestnet:qp,radius:Wp,radiusTestnet:Zp,reactiveTestnet:Jp,real:Yp,redbellyMainnet:Qp,redbellyTestnet:Xp,reddio:_p,reddioSepolia:$p,redstone:em,rei:tm,reyaNetwork:nm,rise:am,riseTestnet:rm,rivalz:sm,rollux:im,rolluxTestnet:om,ronin:cm,root:um,rootPorcini:dm,rootstock:lm,rootstockTestnet:pm,rss3:mm,rss3Sepolia:fm,saakuru:ym,saga:hm,saigon:gm,sanko:bm,sapphire:wm,sapphireTestnet:vm,satoshiVM:Tm,satoshiVMTestnet:km,scroll:Sm,scrollSepolia:xm,sei:Pm,seiTestnet:Am,seismicDevnet:Cm,sepolia:Fn,shape:Em,shapeSepolia:Im,shardeum:Om,shardeumSphinx:Dm,shibarium:jm,shibariumTestnet:Rm,shiden:Mm,shimmer:Um,shimmerTestnet:Nm,sidraChain:Lm,silentData:Bm,silicon:Fm,siliconSepolia:Gm,sixProtocol:Km,skaleBase:Hm,skaleBaseSepoliaTestnet:zm,skaleBlockBrawlers:Vm,skaleCalypso:qm,skaleCalypsoTestnet:Wm,skaleCryptoBlades:Zm,skaleCryptoColosseum:Jm,skaleEuropa:Ym,skaleEuropaTestnet:Qm,skaleExorde:Xm,skaleHumanProtocol:_m,skaleNebula:$m,skaleNebulaTestnet:ef,skaleRazor:tf,skaleTitan:nf,skaleTitanTestnet:af,sketchpad:rf,snax:sf,snaxTestnet:of,somnia:cf,somniaTestnet:uf,soneium:df,soneiumMinato:lf,songbird:pf,songbirdTestnet:mf,sonic:ff,sonicBlazeTestnet:yf,sonicTestnet:hf,sophon:gf,sophonTestnet:bf,sova:wf,sovaSepolia:vf,spicy:Tf,stable:kf,stableTestnet:Sf,statusNetworkSepolia:Yt,statusSepolia:Yt,step:xf,story:Pf,storyAeneid:Af,storyOdyssey:Cf,storyTestnet:Ef,stratis:If,subtensorEvm:Of,superlumio:Df,superposition:jf,superseed:Rf,superseedSepolia:Mf,surgeTestnet:Uf,swan:Nf,swanProximaTestnet:Lf,swanSaturnTestnet:Bf,swellchain:Ff,swellchainTestnet:Gf,swissdlt:Kf,syscoin:Hf,syscoinTestnet:zf,tac:Vf,tacSPB:qf,taiko:Wf,taikoHekla:Zf,taikoHoodi:Jf,taikoJolnir:Yf,taikoKatla:Qf,taikoTestnetSepolia:Xf,taraxa:_f,taraxaTestnet:$f,teaSepolia:ey,telcoinTestnet:ty,telos:ny,telosTestnet:ay,tempo:Qt,tempoDevnet:ry,tempoLocalnet:sy,tempoMainnet:Qt,tempoModerato:Xt,tempoTestnet:Xt,tenet:iy,ternoa:oy,thaiChain:cy,that:uy,theta:dy,thetaTestnet:ly,thunderCore:py,thunderTestnet:my,tiktrixTestnet:fy,tomb:yy,treasure:hy,treasureTopaz:gy,tron:by,tronNile:wy,tronShasta:vy,ubiq:Ty,ultra:ky,ultraTestnet:Sy,ultron:xy,ultronTestnet:Py,unichain:Ay,unichainSepolia:Cy,unique:Ey,uniqueOpal:Iy,uniqueQuartz:Oy,unreal:Dy,vana:jy,vanaMoksha:Ry,vanar:My,vechain:Uy,velas:Ny,viction:Ly,victionTestnet:By,vision:Fy,visionTestnet:Gy,wanchain:Ky,wanchainTestnet:Hy,weaveVMAlphanet:zy,wemix:Vy,wemixTestnet:qy,westendAssetHub:Wy,whitechain:Zy,whitechainTestnet:Jy,wmcTestnet:Yy,worldLand:Qy,worldchain:Xy,worldchainSepolia:_y,x1Testnet:_t,xLayer:$y,xLayerTestnet:_t,xai:eh,xaiTestnet:th,xdc:nh,xdcTestnet:ah,xgr:rh,xoneMainnet:sh,xoneTestnet:ih,xphereMainnet:oh,xphereTestnet:ch,xpla:uh,xrOne:dh,xrSepolia:lh,xrplevm:ph,xrplevmDevnet:mh,xrplevmTestnet:fh,yooldoVerse:yh,yooldoVerseTestnet:hh,zenchainTestnet:gh,zeniq:bh,zeroG:wh,zeroGGalileoTestnet:vh,zeroGMainnet:Th,zeroGTestnet:kh,zeroNetwork:Sh,zetachain:xh,zetachainAthensTestnet:Ph,zhejiang:Ah,zilliqa:Ch,zilliqaTestnet:Eh,zircuit:Ih,zircuitGarfieldTestnet:Oh,zkFair:Dh,zkFairTestnet:jh,zkLinkNova:Rh,zkLinkNovaSepoliaTestnet:Mh,zkSync:$t,zkSyncInMemoryNode:en,zkSyncLocalNode:tn,zkSyncSepoliaTestnet:nn,zkXPLA:Uh,zkXPLATestnet:Nh,zksync:$t,zksyncInMemoryNode:en,zksyncLocalCustomHyperchain:Lh,zksyncLocalHyperchain:Bh,zksyncLocalHyperchainL1:Fh,zksyncLocalNode:tn,zksyncSepoliaTestnet:nn,zora:Gn,zoraSepolia:Gh,zoraTestnet:Kh},Symbol.toStringTag,{value:"Module"}));async function Jh(e,t){const{account:n=e.account,chainId:a,nonce:r}=t;if(!n)throw new Ge({docsPath:"/docs/eip7702/prepareAuthorization"});const s=me(n),c=(()=>{if(t.executor)return t.executor==="self"?t.executor:me(t.executor)})(),o={address:t.contractAddress??t.address,chainId:a,nonce:r};return typeof o.chainId>"u"&&(o.chainId=e.chain?.id??await G(e,Rt,"getChainId")({})),typeof o.nonce>"u"&&(o.nonce=await G(e,qa,"getTransactionCount")({address:s.address,blockTag:"pending"}),(c==="self"||c?.address&&Mt(c.address,s.address))&&(o.nonce+=1)),o}const Yh="@base-org/account",Qh="2.4.0",Vn={name:Yh,version:Qh},Xh="https://keys.coinbase.com/connect",Ae="https://rpc.wallet.coinbase.com",He=Vn.name,ce=Vn.version;function qn(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var s;const c=i=>i===null?null:JSON.parse(i,void 0),o=(s=n.getItem(r))!=null?s:null;return o instanceof Promise?o.then(c):c(o)},setItem:(r,s)=>n.setItem(r,JSON.stringify(s,void 0)),removeItem:r=>n.removeItem(r)}}const nt=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(a){return nt(a)(n)},catch(a){return this}}}catch(n){return{then(a){return this},catch(a){return nt(a)(n)}}}},_h=(e,t)=>(n,a,r)=>{let s={storage:qn(()=>localStorage),partialize:y=>y,version:0,merge:(y,h)=>({...h,...y}),...t},c=!1;const o=new Set,i=new Set;let u=s.storage;if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...y)},a,r);const d=()=>{const y=s.partialize({...a()});return u.setItem(s.name,{state:y,version:s.version})},m=r.setState;r.setState=(y,h)=>{m(y,h),d()};const l=e((...y)=>{n(...y),d()},a,r);r.getInitialState=()=>l;let f;const p=()=>{var y,h;if(!u)return;c=!1,o.forEach(v=>{var w;return v((w=a())!=null?w:l)});const k=((h=s.onRehydrateStorage)==null?void 0:h.call(s,(y=a())!=null?y:l))||void 0;return nt(u.getItem.bind(u))(s.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==s.version){if(s.migrate){const w=s.migrate(v.state,v.version);return w instanceof Promise?w.then(O=>[!0,O]):[!0,w]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var w;const[O,M]=v;if(f=s.merge(M,(w=a())!=null?w:l),n(f,!0),O)return d()}).then(()=>{k?.(f,void 0),f=a(),c=!0,i.forEach(v=>v(f))}).catch(v=>{k?.(void 0,v)})};return r.persist={setOptions:y=>{s={...s,...y},y.storage&&(u=y.storage)},clearStorage:()=>{u?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>c,onHydrate:y=>(o.add(y),()=>{o.delete(y)}),onFinishHydration:y=>(i.add(y),()=>{i.delete(y)})},s.skipHydration||p(),f||l},$h=_h,an=e=>{let t;const n=new Set,a=(u,d)=>{const m=typeof u=="function"?u(t):u;if(!Object.is(m,t)){const l=t;t=d??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(f=>f(t,l))}},r=()=>t,o={setState:a,getState:r,getInitialState:()=>i,subscribe:u=>(n.add(u),()=>n.delete(u))},i=t=e(a,r,o);return o},Ut=e=>e?an(e):an,eg=()=>({chains:[]}),tg=()=>({keys:{}}),ng=()=>({account:{}}),ag=()=>({subAccount:void 0}),rg=()=>({subAccountConfig:{}}),sg=()=>({spendPermissions:[]}),ig=()=>({config:{version:ce}}),R=Ut($h((...e)=>({...eg(...e),...tg(...e),...ng(...e),...ag(...e),...sg(...e),...ig(...e),...rg(...e)}),{name:"base-acc-sdk.store",storage:qn(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})})),og={get:()=>R.getState().subAccountConfig,set:e=>{R.setState(t=>({subAccountConfig:{...t.subAccountConfig,...e}}))},clear:()=>{R.setState({subAccountConfig:{}})}},cg={get:()=>R.getState().subAccount,set:e=>{R.setState(t=>({subAccount:t.subAccount?{...t.subAccount,...e}:{address:e.address,...e}}))},clear:()=>{R.setState({subAccount:void 0})}},Nt={get:()=>R.getState().spendPermissions,set:e=>{R.setState({spendPermissions:e})},clear:()=>{R.setState({spendPermissions:[]})}},ug={get:()=>R.getState().account,set:e=>{R.setState(t=>({account:{...t.account,...e}}))},clear:()=>{R.setState({account:{}})}},dg={get:()=>R.getState().chains,set:e=>{R.setState({chains:e})},clear:()=>{R.setState({chains:[]})}},lg={get:e=>R.getState().keys[e],set:(e,t)=>{R.setState(n=>({keys:{...n.keys,[e]:t}}))},clear:()=>{R.setState({keys:{}})}},Wn={get:()=>R.getState().config,set:e=>{R.setState(t=>({config:{...t.config,...e}}))}},pg={subAccounts:cg,subAccountsConfig:og,spendPermissions:Nt,account:ug,chains:dg,keys:lg,config:Wn},g={...R,...pg},mg='!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClientAnalytics=t():e.ClientAnalytics=t()}(this,(function(){return(()=>{var e={792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},562:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\\/]/gi,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},335:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},762:(e,t,n)=>{var r,i,a,o,s;r=n(562),i=n(792).utf8,a=n(335),o=n(792).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,d=-1732584194,p=271733878,m=0;m<n.length;m++)n[m]=16711935&(n[m]<<8|n[m]>>>24)|4278255360&(n[m]<<24|n[m]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var f=s._ff,v=s._gg,g=s._hh,b=s._ii;for(m=0;m<n.length;m+=16){var h=u,w=l,y=d,T=p;u=f(u,l,d,p,n[m+0],7,-680876936),p=f(p,u,l,d,n[m+1],12,-389564586),d=f(d,p,u,l,n[m+2],17,606105819),l=f(l,d,p,u,n[m+3],22,-1044525330),u=f(u,l,d,p,n[m+4],7,-176418897),p=f(p,u,l,d,n[m+5],12,1200080426),d=f(d,p,u,l,n[m+6],17,-1473231341),l=f(l,d,p,u,n[m+7],22,-45705983),u=f(u,l,d,p,n[m+8],7,1770035416),p=f(p,u,l,d,n[m+9],12,-1958414417),d=f(d,p,u,l,n[m+10],17,-42063),l=f(l,d,p,u,n[m+11],22,-1990404162),u=f(u,l,d,p,n[m+12],7,1804603682),p=f(p,u,l,d,n[m+13],12,-40341101),d=f(d,p,u,l,n[m+14],17,-1502002290),u=v(u,l=f(l,d,p,u,n[m+15],22,1236535329),d,p,n[m+1],5,-165796510),p=v(p,u,l,d,n[m+6],9,-1069501632),d=v(d,p,u,l,n[m+11],14,643717713),l=v(l,d,p,u,n[m+0],20,-373897302),u=v(u,l,d,p,n[m+5],5,-701558691),p=v(p,u,l,d,n[m+10],9,38016083),d=v(d,p,u,l,n[m+15],14,-660478335),l=v(l,d,p,u,n[m+4],20,-405537848),u=v(u,l,d,p,n[m+9],5,568446438),p=v(p,u,l,d,n[m+14],9,-1019803690),d=v(d,p,u,l,n[m+3],14,-187363961),l=v(l,d,p,u,n[m+8],20,1163531501),u=v(u,l,d,p,n[m+13],5,-1444681467),p=v(p,u,l,d,n[m+2],9,-51403784),d=v(d,p,u,l,n[m+7],14,1735328473),u=g(u,l=v(l,d,p,u,n[m+12],20,-1926607734),d,p,n[m+5],4,-378558),p=g(p,u,l,d,n[m+8],11,-2022574463),d=g(d,p,u,l,n[m+11],16,1839030562),l=g(l,d,p,u,n[m+14],23,-35309556),u=g(u,l,d,p,n[m+1],4,-1530992060),p=g(p,u,l,d,n[m+4],11,1272893353),d=g(d,p,u,l,n[m+7],16,-155497632),l=g(l,d,p,u,n[m+10],23,-1094730640),u=g(u,l,d,p,n[m+13],4,681279174),p=g(p,u,l,d,n[m+0],11,-358537222),d=g(d,p,u,l,n[m+3],16,-722521979),l=g(l,d,p,u,n[m+6],23,76029189),u=g(u,l,d,p,n[m+9],4,-640364487),p=g(p,u,l,d,n[m+12],11,-421815835),d=g(d,p,u,l,n[m+15],16,530742520),u=b(u,l=g(l,d,p,u,n[m+2],23,-995338651),d,p,n[m+0],6,-198630844),p=b(p,u,l,d,n[m+7],10,1126891415),d=b(d,p,u,l,n[m+14],15,-1416354905),l=b(l,d,p,u,n[m+5],21,-57434055),u=b(u,l,d,p,n[m+12],6,1700485571),p=b(p,u,l,d,n[m+3],10,-1894986606),d=b(d,p,u,l,n[m+10],15,-1051523),l=b(l,d,p,u,n[m+1],21,-2054922799),u=b(u,l,d,p,n[m+8],6,1873313359),p=b(p,u,l,d,n[m+15],10,-30611744),d=b(d,p,u,l,n[m+6],15,-1560198380),l=b(l,d,p,u,n[m+13],21,1309151649),u=b(u,l,d,p,n[m+4],6,-145523070),p=b(p,u,l,d,n[m+11],10,-1120210379),d=b(d,p,u,l,n[m+2],15,718787259),l=b(l,d,p,u,n[m+9],21,-343485551),u=u+h>>>0,l=l+w>>>0,d=d+y>>>0,p=p+T>>>0}return r.endian([u,l,d,p])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Perfume:()=>ze,incrementUjNavigation:()=>Le,markStep:()=>Re,markStepOnce:()=>qe});var r,i,a={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{},enableNavigationTracking:!0},o=window,s=o.console,c=o.navigator,u=o.performance,l=function(){return c.deviceMemory},d=function(){return c.hardwareConcurrency},p="mark.",m=function(){return u&&!!u.getEntriesByType&&!!u.now&&!!u.mark},f="4g",v=!1,g={},b={value:0},h={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},w={value:0},y={value:0},T={},k={isHidden:!1,didChange:!1},_=function(){k.isHidden=!1,document.hidden&&(k.isHidden=document.hidden,k.didChange=!0)},S=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){s.warn("Perfume.js:",e)}return null},E=function(){return!!(d()&&d()<=4)||!!(l()&&l()<=4)},x=function(e,t){switch(e){case"slow-2g":case"2g":case"3g":return!0;default:return E()||t}},O=function(e){return parseFloat(e.toFixed(4))},j=function(e){return"number"!=typeof e?null:O(e/Math.pow(1024,2))},N=function(e,t,n,r,i){var s,u=function(){a.analyticsTracker&&(k.isHidden&&!["CLS","INP"].includes(e)||a.analyticsTracker({attribution:r,metricName:e,data:t,navigatorInformation:c?{deviceMemory:l()||0,hardwareConcurrency:d()||0,serviceWorkerStatus:"serviceWorker"in c?c.serviceWorker.controller?"controlled":"supported":"unsupported",isLowEndDevice:E(),isLowEndExperience:x(f,v)}:{},rating:n,navigationType:i}))};["CLS","INP"].includes(e)?u():(s=u,"requestIdleCallback"in o?o.requestIdleCallback(s,{timeout:3e3}):s())},I=function(e){e.forEach((function(e){if(!("self"!==e.name||e.startTime<b.value)){var t=e.duration-50;t>0&&(w.value+=t,y.value+=t)}}))};!function(e){e.instant="instant",e.quick="quick",e.moderate="moderate",e.slow="slow",e.unavoidable="unavoidable"}(r||(r={}));var P,M,B,C,D,A=((i={})[r.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},i[r.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},i[r.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},i[r.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},i[r.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4},i),L={RT:[100,200],TBT:[200,600],NTBT:[200,600]},U=function(e,t){return L[e]?t<=L[e][0]?"good":t<=L[e][1]?"needsImprovement":"poor":null},R=function(e,t,n){Object.keys(t).forEach((function(e){"number"==typeof t[e]&&(t[e]=O(t[e]))})),N(e,t,null,n||{})},q=function(e){var t=e.attribution,n=e.name,r=e.rating,i=e.value,o=e.navigationType;"FCP"===n&&(b.value=i),["FCP","LCP"].includes(n)&&!T[0]&&(T[0]=S("longtask",I)),"FID"===n&&setTimeout((function(){k.didChange||(q({attribution:t,name:"TBT",rating:U("TBT",w.value),value:w.value,navigationType:o}),R("dataConsumption",h.value))}),1e4);var s=O(i);s<=a.maxTime&&s>=0&&N(n,s,r,t,o)},F=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},z=function(e){if("loading"===document.readyState)return"loading";var t=F();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},$=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:K(r)+(r.className&&r.className.length?"."+r.className.replace(/\\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},Q=-1,W=function(){return Q},H=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Q=t.timeStamp,e(t))}),!0)},V=function(){var e=F();return e&&e.activationStart||0},J=function(e,t){var n=F(),r="navigate";return W()>=0?r="back-forward-cache":n&&(r=document.prerendering||V()>0?"prerender":document.wasDiscarded?"restore":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},X=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},G=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Z=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},Y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ee=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},te=-1,ne=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){"hidden"===document.visibilityState&&te>-1&&(te="visibilitychange"===e.type?e.timeStamp:0,ae())},ie=function(){addEventListener("visibilitychange",re,!0),addEventListener("prerenderingchange",re,!0)},ae=function(){removeEventListener("visibilitychange",re,!0),removeEventListener("prerenderingchange",re,!0)},oe=function(){return te<0&&(te=ne(),ie(),H((function(){setTimeout((function(){te=ne(),ie()}),0)}))),{get firstHiddenTime(){return te}}},se=function(e,t){t=t||{},ee((function(){var n,r=[1800,3e3],i=oe(),a=J("FCP"),o=X("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=Z(e,a,r,t.reportAllChanges),H((function(i){a=J("FCP"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},ce={passive:!0,capture:!0},ue=new Date,le=function(e,t){P||(P=t,M=e,B=new Date,me(removeEventListener),de())},de=function(){if(M>=0&&M<B-ue){var e={entryType:"first-input",name:P.type,target:P.target,cancelable:P.cancelable,startTime:P.timeStamp,processingStart:P.timeStamp+M};C.forEach((function(t){t(e)})),C=[]}},pe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){le(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,ce),removeEventListener("pointercancel",r,ce)};addEventListener("pointerup",n,ce),addEventListener("pointercancel",r,ce)}(t,e):le(t,e)}},me=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,pe,ce)}))},fe=0,ve=1/0,ge=0,be=function(e){e.forEach((function(e){e.interactionId&&(ve=Math.min(ve,e.interactionId),ge=Math.max(ge,e.interactionId),fe=ge?(ge-ve)/7+1:0)}))},he=function(){return D?fe:performance.interactionCount||0},we=0,ye=function(){return he()-we},Te=[],ke={},_e=function(e){var t=Te[Te.length-1],n=ke[e.interactionId];if(n||Te.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ke[r.id]=r,Te.push(r)}Te.sort((function(e,t){return t.latency-e.latency})),Te.splice(10).forEach((function(e){delete ke[e.id]}))}},Se={},Ee=function e(t){document.prerendering?ee((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},xe=function(e,t){t=t||{};var n=[800,1800],r=J("TTFB"),i=Z(e,r,n,t.reportAllChanges);Ee((function(){var a=F();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-V(),0),r.entries=[a],i(!0),H((function(){r=J("TTFB",0),(i=Z(e,r,n,t.reportAllChanges))(!0)}))}}))},Oe=function(e){e.forEach((function(e){e.identifier&&q({attribution:{identifier:e.identifier},name:"ET",rating:null,value:e.startTime})}))},je=function(e){e.forEach((function(e){if(a.isResourceTiming&&R("resourceTiming",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;h.value[e.initiatorType]+=t,h.value.total+=t}}))},Ne=function(){!function(e,t){xe((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&q(e)}(e)}),t)}(0,a.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},ee((function(){var e,n=[.1,.25],r=J("CLS"),i=-1,a=0,o=[],s=function(e){i>-1&&function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:$(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:z(t.startTime)})}}var r;e.attribution={}}(e),function(e){q(e)}(e)}(e)},c=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=o[0],i=o[o.length-1];a&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(a+=t.value,o.push(t)):(a=t.value,o=[t]),a>r.value&&(r.value=a,r.entries=o,e())}}))},u=X("layout-shift",c);u&&(e=Z(s,r,n,t.reportAllChanges),se((function(t){i=t.value,r.value<0&&(r.value=0,e())})),G((function(){c(u.takeRecords()),e(!0)})),H((function(){a=0,i=-1,r=J("CLS",0),e=Z(s,r,n,t.reportAllChanges),Y((function(){return e()}))})))}))}(0,t)}(0,a.reportOptions.cls),function(e,t){se((function(e){!function(e){if(e.entries.length){var t=F(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:z(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:z(W())}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[100,300],i=oe(),a=J("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},s=function(e){e.forEach(o)},c=X("first-input",s);n=Z(e,a,r,t.reportAllChanges),c&&G((function(){s(c.takeRecords()),c.disconnect()}),!0),c&&H((function(){var i;a=J("FID"),n=Z(e,a,r,t.reportAllChanges),C=[],M=-1,P=null,me(addEventListener),i=o,C.push(i),de()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fid),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[2500,4e3],i=oe(),a=J("LCP"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-V(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},s=X("largest-contentful-paint",o);if(s){n=Z(e,a,r,t.reportAllChanges);var c=function(){Se[a.id]||(o(s.takeRecords()),s.disconnect(),Se[a.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),G(c,!0),H((function(i){a=J("LCP"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,Se[a.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=F();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===r.url}))[0],a=Math.max(0,t.responseStart-n),o=Math.max(a,i?(i.requestStart||i.startTime)-n:0),s=Math.max(o,i?i.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:$(r.element),timeToFirstByte:a,resourceLoadDelay:o-a,resourceLoadTime:s-o,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),i&&(u.lcpResourceEntry=i),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n=[200,500];"interactionCount"in performance||D||(D=X("event",be,{type:"event",buffered:!0,durationThreshold:0}));var r,i=J("INP"),a=function(e){e.forEach((function(e){e.interactionId&&_e(e),"first-input"===e.entryType&&!Te.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&_e(e)}));var t,n=(t=Math.min(Te.length-1,Math.floor(ye()/50)),Te[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=X("event",a,{durationThreshold:t.durationThreshold||40});r=Z(e,i,n,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),G((function(){a(o.takeRecords()),i.value<0&&ye()>0&&(i.value=0,i.entries=[]),r(!0)})),H((function(){Te=[],we=he(),i=J("INP"),r=Z(e,i,n,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return q(e)}),a.reportOptions.inp),a.isResourceTiming&&S("resource",je),a.isElementTiming&&S("element",Oe)},Ie=function(e){var t="usageDetails"in e?e.usageDetails:{};R("storageEstimate",{quota:j(e.quota),usage:j(e.usage),caches:j(t.caches),indexedDB:j(t.indexedDB),serviceWorker:j(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}},Me=function(e){delete Pe.active[e]},Be=function(){return Pe.navigationSteps},Ce=function(e){var t;return null!==(t=Be()[e])&&void 0!==t?t:{}},De=function(e,t,n){var r="step."+e,i=u.getEntriesByName(p+t).length>0;if(u.getEntriesByName(p+n).length>0&&a.steps){var o=A[a.steps[e].threshold],s=o.maxOutlierThreshold,c=o.vitalsThresholds;if(i){var l=u.measure(r,p+t,p+n),d=l.duration;if(d<=s){var m=function(e,t){return e<=t[0]?"good":e<=t[1]?"needsImprovement":"poor"}(d,c);d>=0&&(N("userJourneyStep",d,m,{stepName:e},void 0),u.measure("step.".concat(e,"_vitals_").concat(m),{start:l.startTime+l.duration,end:l.startTime+l.duration,detail:{type:"stepVital",duration:d}}))}}}},Ae=function(){var e=Be(),t=Pe.startMarkToStepsMap,n=Object.keys(e).length;if(0===n)return{};var r={},i=n-1,a=Ce(i);if(Object.keys(a).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))})),n>1){var o=Ce(i-1);Object.keys(o).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))}))}return r},Le=function(){var e,t=Object.keys(Pe.navigationSteps).length;Pe.navigationSteps[t]={};var n=Ae();null===(e=a.onMarkStep)||void 0===e||e.call(a,"",Object.keys(n))},Ue=function(e){var t,n,r,i,o,s,c;if(Pe.finalMarkToStepsMap[e]){!function(e){var t=Pe.navigationSteps,n=Pe.finalMarkToStepsMap,r=Object.keys(t).length;if(0!==r){var i=r-1,a=Ce(i);if(a&&n[e]){var o=n[e];o&&Object.keys(o).forEach((function(e){if(a[e]){var n=Ce(i)||{};n[e]=!1,t[i]=n}if(r>1){var o=i-1,s=Ce(o);s[e]&&(s[e]=!1,t[o]=s)}}))}}}(e);var u=Pe.finalMarkToStepsMap[e];Object.keys(u).forEach((function(t){var n=u[t];n.forEach(Me),Promise.all(n.map((function(n){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{o(r.next(e))}catch(e){t(e)}}function a(e){try{o(r.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}o((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){switch(r.label){case 0:return[4,De(n,t,e)];case 1:return r.sent(),[2]}}))}))}))).catch((function(){}))}))}else r=e,i=Pe.navigationSteps,o=Object.keys(i).length,(c=Ce(s=(o>0?o:1)-1)||[])[r]=!0,i[s]=c,function(e){var t,n=null!==(t=Pe.startMarkToStepsMap[e])&&void 0!==t?t:[];Object.keys(n).forEach((function(e){Pe.active[e]||(Pe.active[e]=!0)}))}(e);if(a.enableNavigationTracking){var l=Ae();null===(t=a.onMarkStep)||void 0===t||t.call(a,e,Object.keys(l))}else null===(n=a.onMarkStep)||void 0===n||n.call(a,e,Object.keys(Pe.active))},Re=function(e){u.mark(p+e),Ue(e)},qe=function(e){0===u.getEntriesByName(p+e).length&&(u.mark(p+e),Ue(e))},Fe=0,ze=function(){function e(e){if(void 0===e&&(e={}),this.v="9.0.0-rc.3",a.analyticsTracker=e.analyticsTracker,a.isResourceTiming=!!e.resourceTiming,a.isElementTiming=!!e.elementTiming,a.maxTime=e.maxMeasureTime||a.maxTime,a.reportOptions=e.reportOptions||a.reportOptions,a.steps=e.steps,a.onMarkStep=e.onMarkStep,a.enableNavigationTracking=e.enableNavigationTracking,m()){"PerformanceObserver"in o&&Ne(),void 0!==document.hidden&&document.addEventListener("visibilitychange",_);var t=function(){if(!m())return{};var e=u.getEntriesByType("navigation")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();R("navigationTiming",t),t.redirectTime&&q({attribution:{},name:"RT",rating:U("RT",t.redirectTime),value:t.redirectTime}),R("networkInformation",function(){if("connection"in c){var e=c.connection;return"object"!=typeof e?{}:(f=e.effectiveType,v=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),c&&c.storage&&"function"==typeof c.storage.estimate&&c.storage.estimate().then(Ie),a.steps&&a.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(a.steps).forEach((function(e){var t,n,r=e[0],i=e[1].marks,a=i[0],o=i[1],s=null!==(n=Pe.startMarkToStepsMap[a])&&void 0!==n?n:{};if(s[r]=!0,Pe.startMarkToStepsMap[a]=s,Pe.finalMarkToStepsMap[o]){var c=Pe.finalMarkToStepsMap[o][a]||[];c.push(r),Pe.finalMarkToStepsMap[o][a]=c}else Pe.finalMarkToStepsMap[o]=((t={})[a]=[r],t)})))}}return e.prototype.start=function(e){m()&&!g[e]&&(g[e]=!0,u.mark("mark_".concat(e,"_start")))},e.prototype.end=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),m()&&g[e]){u.mark("mark_".concat(e,"_end")),delete g[e];var r=function(e){u.measure(e,"mark_".concat(e,"_start"),"mark_".concat(e,"_end"));var t=u.getEntriesByName(e).pop();return t&&"measure"===t.entryType?t.duration:-1}(e);n&&R(e,O(r),t)}},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete g[e],u.clearMarks&&(u.clearMarks("mark_".concat(e,"_start")),u.clearMarks("mark_".concat(e,"_end")))},e.prototype.markNTBT=function(){var e=this;this.start("ntbt"),y.value=0,clearTimeout(Fe),Fe=setTimeout((function(){e.end("ntbt",{},!1),q({attribution:{},name:"NTBT",rating:U("NTBT",y.value),value:y.value}),y.value=0}),2e3)},e}()},426:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=a.prototype;var c=s.prototype=new o;c.constructor=s,r(c,a.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;var u={current:null};t.useCallback=function(e,t){return u.current.useCallback(e,t)},t.useEffect=function(e,t){return u.current.useEffect(e,t)},t.useRef=function(e){return u.current.useRef(e)}},784:(e,t,n)=>{"use strict";e.exports=n(426)},353:function(e,t,n){var r;!function(i,a){"use strict";var o="function",s="undefined",c="object",u="string",l="major",d="model",p="name",m="type",f="vendor",v="version",g="architecture",b="console",h="mobile",w="tablet",y="smarttv",T="wearable",k="embedded",_="Amazon",S="Apple",E="ASUS",x="BlackBerry",O="Browser",j="Chrome",N="Firefox",I="Google",P="Huawei",M="LG",B="Microsoft",C="Motorola",D="Opera",A="Samsung",L="Sharp",U="Sony",R="Xiaomi",q="Zebra",F="Facebook",z="Chromium OS",K="Mac OS",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\\s\\s*/,""),typeof t===s?e:e.substring(0,350)},V=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<m.length;i++)l=u[++r],typeof(s=m[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return"?"===n?a:n}else if(Q(t[n],e))return"?"===n?a:n;return e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[v,[p,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[v,[p,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[p,v],[/opios[\\/ ]+([\\w\\.]+)/i],[v,[p,D+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[v,[p,D]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(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,/(heytap|ovi)browser\\/([\\d\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[p,v],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[v,[p,"UC"+O]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[v,[p,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[v,[p,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[v,[p,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[v,[p,"IE"]],[/ya(?:search)?browser\\/([\\w\\.]+)/i],[v,[p,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[p,/(.+)/,"$1 Secure "+O],v],[/\\bfocus\\/([\\w\\.]+)/i],[v,[p,N+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[v,[p,D+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[v,[p,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[v,[p,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[v,[p,D+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[v,[p,"MIUI "+O]],[/fxios\\/([-\\w\\.]+)/i],[v,[p,N]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[p,/(.+)/,"$1 "+O],v],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[p,/_/g," "],v],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[p,v],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[p],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[p,F],v],[/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[p,v],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[v,[p,"GSA"]],[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],[v,[p,"TikTok"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[v,[p,j+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[p,j+" WebView"],v],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[v,[p,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[p,v],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[v,[p,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[p,[v,J,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[p,v],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[p,"Netscape"],v],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[v,[p,N+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\\/([\\w\\.]+)/i],[p,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\\)]/i],[[g,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[g,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[g,/ower/,"",W]],[/(sun4\\w)[;\\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[g,W]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,A],[m,w]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[d,[f,A],[m,h]],[/(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i],[d,[f,S],[m,h]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[d,[f,S],[m,w]],[/(macintosh);/i],[d,[f,S]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[d,[f,L],[m,h]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[d,[f,P],[m,w]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[d,[f,P],[m,h]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[d,/_/g," "],[f,R],[m,h]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[d,/_/g," "],[f,R],[m,w]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[d,[f,"OPPO"],[m,h]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[d,[f,"Vivo"],[m,h]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[d,[f,"Realme"],[m,h]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[d,[f,C],[m,h]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[d,[f,C],[m,w]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,M],[m,w]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[d,[f,M],[m,h]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[d,[f,"Lenovo"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[d,/_/g," "],[f,"Nokia"],[m,h]],[/(pixel c)\\b/i],[d,[f,I],[m,w]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[d,[f,I],[m,h]],[/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],[d,[f,U],[m,h]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[d,"Xperia Tablet"],[f,U],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[d,[f,"OnePlus"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[d,[f,_],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[d,/(.+)/g,"Fire Phone $1"],[f,_],[m,h]],[/(playbook);[-\\w\\),; ]+(rim)/i],[d,f,[m,w]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[d,[f,x],[m,h]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[d,[f,E],[m,h]],[/(nexus 9)/i],[d,[f,"HTC"],[m,w]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i],[f,[d,/_/g," "],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[d,[f,"Acer"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[d,[f,"Meizu"],[m,h]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[f,d,[m,h]],[/(kobo)\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[f,d,[m,w]],[/(surface duo)/i],[d,[f,B],[m,w]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[d,[f,"Fairphone"],[m,h]],[/(u304aa)/i],[d,[f,"AT&T"],[m,h]],[/\\bsie-(\\w*)/i],[d,[f,"Siemens"],[m,h]],[/\\b(rct\\w+) b/i],[d,[f,"RCA"],[m,w]],[/\\b(venue[\\d ]{2,7}) b/i],[d,[f,"Dell"],[m,w]],[/\\b(q(?:mv|ta)\\w+) b/i],[d,[f,"Verizon"],[m,w]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[d,[f,"Barnes & Noble"],[m,w]],[/\\b(tm\\d{3}\\w+) b/i],[d,[f,"NuVision"],[m,w]],[/\\b(k88) b/i],[d,[f,"ZTE"],[m,w]],[/\\b(nx\\d{3}j) b/i],[d,[f,"ZTE"],[m,h]],[/\\b(gen\\d{3}) b.+49h/i],[d,[f,"Swiss"],[m,h]],[/\\b(zur\\d{3}) b/i],[d,[f,"Swiss"],[m,w]],[/\\b((zeki)?tb.*\\b) b/i],[d,[f,"Zeki"],[m,w]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[f,"Dragon Touch"],d,[m,w]],[/\\b(ns-?\\w{0,9}) b/i],[d,[f,"Insignia"],[m,w]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[d,[f,"NextBook"],[m,w]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],d,[m,h]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[f,"LvTel"],d,[m,h]],[/\\b(ph-1) /i],[d,[f,"Essential"],[m,h]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[d,[f,"Envizen"],[m,w]],[/\\b(trio[-\\w\\. ]+) b/i],[d,[f,"MachSpeed"],[m,w]],[/\\btu_(1491) b/i],[d,[f,"Rotor"],[m,w]],[/(shield[\\w ]+) b/i],[d,[f,"Nvidia"],[m,w]],[/(sprint) (\\w+)/i],[f,d,[m,h]],[/(kin\\.[onetw]{3})/i],[[d,/\\./g," "],[f,B],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[d,[f,q],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[d,[f,q],[m,h]],[/smart-tv.+(samsung)/i],[f,[m,y]],[/hbbtv.+maple;(\\d+)/i],[[d,/^/,"SmartTV"],[f,A],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[f,M],[m,y]],[/(apple) ?tv/i],[f,[d,S+" TV"],[m,y]],[/crkey/i],[[d,j+"cast"],[f,I],[m,y]],[/droid.+aft(\\w)( bui|\\))/i],[d,[f,_],[m,y]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[d,[f,L],[m,y]],[/(bravia[\\w ]+)( bui|\\))/i],[d,[f,U],[m,y]],[/(mitv-\\w{5}) bui/i],[d,[f,R],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[m,y]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i],[[f,H],[d,H],[m,y]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[m,b]],[/droid.+; (shield) bui/i],[d,[f,"Nvidia"],[m,b]],[/(playstation [345portablevi]+)/i],[d,[f,U],[m,b]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[d,[f,B],[m,b]],[/((pebble))app/i],[f,d,[m,T]],[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],[d,[f,S],[m,T]],[/droid.+; (glass) \\d/i],[d,[f,I],[m,T]],[/droid.+; (wt63?0{2,3})\\)/i],[d,[f,q],[m,T]],[/(quest( 2| pro)?)/i],[d,[f,F],[m,T]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[f,[m,k]],[/(aeobc)\\b/i],[d,[f,_],[m,k]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[d,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[d,[m,w]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\\w\\. ]{0,9});.+buil/i],[d,[f,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[v,[p,"EdgeHTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[v,[p,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,/\\b(libweb)/i],[p,v],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[p,[v,J,X]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[p,"Windows"],[v,J,X]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/ios;fbsv\\/([\\d\\.]+)/i,/cfnetwork\\/.+darwin/i],[[v,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[p,K],[v,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[p,v],[/\\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[v,[p,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[v,[p,N+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[v,[p,"webOS"]],[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],[v,[p,"watchOS"]],[/crkey\\/([\\d\\.]+)/i],[v,[p,j+"cast"]],[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],[[p,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[p,v],[/(sunos) ?([\\w\\.\\d]*)/i],[[p,"Solaris"],v],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\w\\.]*)/i],[p,v]]},Z=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:""),b=n&&n.userAgentData?n.userAgentData:a,y=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,T=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,V.call(t,r,y.browser),t[l]=typeof(e=t[v])===u?e.replace(/[^\\d\\.]/g,"").split(".")[0]:a,T&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[g]=a,V.call(e,r,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[m]=a,V.call(e,r,y.device),T&&!e[m]&&b&&b.mobile&&(e[m]=h),T&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[m]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.os),T&&!e[p]&&b&&"Unknown"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,z).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Z.VERSION="1.0.35",Z.BROWSER=$([p,v,l]),Z.CPU=$([g]),Z.DEVICE=$([d,f,m,b,h,y,w,T,k]),Z.ENGINE=Z.OS=$([p,v]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{ActionType:()=>f,AmplitudePlatformName:()=>g,AnalyticsEventImportance:()=>l,AnalyticsQueries:()=>e,AuthStatus:()=>b,ComponentType:()=>m,IThresholdTier:()=>Jt,MetricType:()=>d,PlatformName:()=>v,SessionActions:()=>h,SessionAutomatedEvents:()=>w,SessionRank:()=>y,SubjectType:()=>p,UserTypeCommerce:()=>c,UserTypeInsto:()=>i,UserTypeRetail:()=>t,UserTypeRetailBusinessBanking:()=>s,UserTypeRetailEmployeeInternal:()=>a,UserTypeRetailEmployeePersonal:()=>o,UserTypeWallet:()=>u,automatedEvents:()=>xn,automatedMappingConfig:()=>In,clearMarkEntry:()=>Vn,clearPerformanceMarkEntries:()=>Xn,config:()=>A,createEventConfig:()=>On,createNewSpan:()=>Ln,createNewTrace:()=>Un,device:()=>W,endPerfMark:()=>Jn,exposeExperiment:()=>wn,flushQueue:()=>or,generateUUID:()=>V,getAnalyticsHeaders:()=>sr,getReferrerData:()=>le,getTracingHeaders:()=>An,getTracingId:()=>Dn,getUrlHostname:()=>pe,getUrlParams:()=>me,getUrlPathname:()=>fe,getUserContext:()=>ar,identify:()=>Tn,identifyFlow:()=>xe,identity:()=>H,identityFlow:()=>Se,incrementUjNavigation:()=>an,init:()=>yn,initNextJsTrackPageview:()=>_n,initTrackPageview:()=>kn,isEventKeyFormatValid:()=>we,isSessionEnded:()=>pt,location:()=>re,logEvent:()=>$t,logMetric:()=>Ht,logPageView:()=>on,logTrace:()=>Rn,markNTBT:()=>tn,markStep:()=>nn,markStepOnce:()=>rn,onVisibilityChange:()=>ln,optIn:()=>En,optOut:()=>Sn,perfMark:()=>Wn,persistentData:()=>oe,postMessage:()=>K,recordSessionDuration:()=>pn,removeFromIdentifyFlow:()=>Ee,savePersistentData:()=>st,sendScheduledEvents:()=>Bt,setBreadcrumbs:()=>ie,setConfig:()=>U,setLocation:()=>ae,setPagePath:()=>ve,setPageview:()=>Kt,setPersistentData:()=>se,setSessionStart:()=>dt,setTime:()=>Ue,startPerfMark:()=>Hn,timeStone:()=>Le,useEventLogger:()=>Yn,useLogEventOnMount:()=>tr,usePerformanceMarks:()=>rr});let e=function(e){return e.fbclid="fbclid",e.gclid="gclid",e.msclkid="msclkid",e.ptclid="ptclid",e.ttclid="ttclid",e.utm_source="utm_source",e.utm_medium="utm_medium",e.utm_campaign="utm_campaign",e.utm_term="utm_term",e.utm_content="utm_content",e}({});const t=0,i=1,a=2,o=3,s=4,c=5,u=6;let l=function(e){return e.low="low",e.high="high",e}({}),d=function(e){return e.count="count",e.rate="rate",e.gauge="gauge",e.distribution="distribution",e.histogram="histogram",e}({}),p=function(e){return e.commerce_merchant="commerce_merchant",e.device="device",e.edp_fingerprint_id="edp_fingerprint_id",e.nft_user="nft_user",e.user="user",e.wallet_user="wallet_user",e.uuid="user_uuid",e}({}),m=function(e){return e.unknown="unknown",e.banner="banner",e.button="button",e.card="card",e.chart="chart",e.content_script="content_script",e.dropdown="dropdown",e.link="link",e.page="page",e.modal="modal",e.table="table",e.search_bar="search_bar",e.service_worker="service_worker",e.text="text",e.text_input="text_input",e.tray="tray",e.checkbox="checkbox",e.icon="icon",e}({}),f=function(e){return e.unknown="unknown",e.blur="blur",e.click="click",e.change="change",e.dismiss="dismiss",e.focus="focus",e.hover="hover",e.select="select",e.measurement="measurement",e.move="move",e.process="process",e.render="render",e.scroll="scroll",e.view="view",e.search="search",e.keyPress="keyPress",e}({}),v=function(e){return e.unknown="unknown",e.web="web",e.android="android",e.ios="ios",e.mobile_web="mobile_web",e.tablet_web="tablet_web",e.server="server",e.windows="windows",e.macos="macos",e.extension="extension",e}({}),g=function(e){return e.web="Web",e.ios="iOS",e.android="Android",e}({}),b=function(e){return e[e.notLoggedIn=0]="notLoggedIn",e[e.loggedIn=1]="loggedIn",e}({}),h=function(e){return e.ac="ac",e.af="af",e.ah="ah",e.al="al",e.am="am",e.ar="ar",e.as="as",e}({}),w=function(e){return e.pv="pv",e}({}),y=function(e){return e.xs="xs",e.s="s",e.m="m",e.l="l",e.xl="xl",e.xxl="xxl",e}({});const T="https://analytics-service-dev.cbhq.net",k=3e5,_=5e3,S="analytics-db",E="experiment-exposure-db",x="Analytics SDK:",O=Object.values(e),j="pageview",N="session_duration",I={navigationTiming:{eventName:"perf_navigation_timing"},redirectTime:{eventName:"perf_redirect_time"},RT:{eventName:"perf_redirect_time"},TTFB:{eventName:"perf_time_to_first_byte"},networkInformation:{eventName:"perf_network_information"},storageEstimate:{eventName:"perf_storage_estimate"},FCP:{eventName:"perf_first_contentful_paint"},FID:{eventName:"perf_first_input_delay"},LCP:{eventName:"perf_largest_contentful_paint"},CLS:{eventName:"perf_cumulative_layout_shift"},TBT:{eventName:"perf_total_blocking_time"},NTBT:{eventName:"perf_navigation_total_blocking_time"},INP:{eventName:"perf_interact_to_next_paint"},ET:{eventName:"perf_element_timing"},userJourneyStep:{eventName:"perf_user_journey_step"}},P="1",M="web";function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const C=/^(https?:\\/\\/)/;function D(e){return{eventsEndpoint:e+"/amp",metricsEndPoint:e+"/metrics",exposureEndpoint:e+"/track-exposures",tracesEndpoint:e+"/traces"}}const A=B({authCookie:"logged_in",amplitudeApiKey:"",batchEventsPeriod:_,batchEventsThreshold:30,batchMetricsPeriod:_,batchMetricsThreshold:30,batchTracesPeriod:_,batchTracesThreshold:30,headers:{},interactionManager:null,isAlwaysAuthed:!1,isProd:!1,isInternalApplication:!1,onError:(e,t)=>{console.error(x,e,t)},platform:v.unknown,projectName:"",ricTimeoutScheduleEvent:1e3,ricTimeoutSetDevice:500,showDebugLogging:!1,trackUserId:!1,version:null,apiEndpoint:T},D(T),{steps:{}}),L=[].reduce(((e,t)=>n=>e(t(n))),(e=>{if(!e.isProd)return e.isInternalApplication?(e.apiEndpoint="https://analytics-service-internal-dev.cbhq.net",B({},e,D(e.apiEndpoint))):e;const t=(e=>e.apiEndpoint?C.test(e.apiEndpoint)?e.apiEndpoint:`https://${e.apiEndpoint}`:e.isInternalApplication?"https://analytics-service-internal.cbhq.net":"https://as.coinbase.com")(e);return B({},e,{apiEndpoint:t},D(t))})),U=e=>{const{batchEventsThreshold:t,batchMetricsThreshold:n,batchTracesThreshold:r}=e,i=[t,n,r];for(const e of i)if((e||0)>30){console.warn("You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.");break}Object.assign(A,L(e))},R=[v.web,v.mobile_web,v.tablet_web];function q(){return"android"===A.platform}function F(){return"ios"===A.platform}function z(){return R.includes(A.platform)}function K(e){if(z()&&navigator&&"serviceWorker"in navigator&&navigator.serviceWorker.controller)try{navigator.serviceWorker.controller.postMessage(e)}catch(e){e instanceof Error&&A.onError(e)}}var $=n(353),Q=n.n($);const W={amplitudeOSName:null,amplitudeOSVersion:null,amplitudeDeviceModel:null,amplitudePlatform:null,browserName:null,browserMajor:null,osName:null,userAgent:null,width:null,height:null},H={countryCode:null,deviceId:null,device_os:null,isOptOut:!1,languageCode:null,locale:null,jwt:null,session_lcc_id:null,userAgent:null,userId:null},V=e=>e?(e^16*Math.random()>>e/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,V),J=()=>A.isAlwaysAuthed||!!H.userId,X=()=>{const e={};return H.countryCode&&(e.country_code=H.countryCode),e},G=()=>{const{platform:e}=A;if(e===v.web)switch(!0){case window.matchMedia("(max-width: 560px)").matches:return v.mobile_web;case window.matchMedia("(max-width: 1024px, min-width: 561px)").matches:return v.tablet_web}return e},Z=()=>{var e,t,n,r,i;z()?("requestIdleCallback"in window?window.requestIdleCallback(ne,{timeout:A.ricTimeoutSetDevice}):ne(),W.amplitudePlatform=g.web,W.userAgent=(null==(e=window)||null==(e=e.navigator)?void 0:e.userAgent)||null,ee({height:null!=(t=null==(n=window)?void 0:n.innerHeight)?t:null,width:null!=(r=null==(i=window)?void 0:i.innerWidth)?r:null})):F()?(W.amplitudePlatform=g.ios,W.userAgent=H.userAgent,W.userAgent&&ne()):q()&&(W.userAgent=H.userAgent,W.amplitudePlatform=g.android,W.userAgent&&ne())},Y=e=>{Object.assign(H,e),z()&&K({identity:{isAuthed:!!H.userId,locale:H.locale||null}})},ee=e=>{W.height=e.height,W.width=e.width},te=()=>{U({platform:G()}),z()&&K({config:{platform:A.platform}})},ne=()=>{var e;performance.mark&&performance.mark("ua_parser_start");const t=new(Q())(null!=(e=W.userAgent)?e:"").getResult();W.browserName=t.browser.name||null,W.browserMajor=t.browser.major||null,W.osName=t.os.name||null,W.amplitudeOSName=W.browserName,W.amplitudeOSVersion=W.browserMajor,W.amplitudeDeviceModel=W.osName,K({device:{browserName:W.browserName,osName:W.osName}}),performance.mark&&(performance.mark("ua_parser_end"),performance.measure("ua_parser","ua_parser_start","ua_parser_end"))},re={breadcrumbs:[],initialUAAData:{},pageKey:"",pageKeyRegex:{},pagePath:"",prevPageKey:"",prevPagePath:""};function ie(e){Object.assign(re,{breadcrumbs:e})}function ae(e){Object.assign(re,e)}const oe={eventId:0,sequenceNumber:0,sessionId:0,lastEventTime:0,sessionStart:0,sessionUUID:null,userId:null,ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0};function se(e){Object.assign(oe,e)}function ce(){var e,t;return null!=(e=null==(t=document)?void 0:t.referrer)?e:""}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}const le=()=>{const e=ce();if(!e)return{};const t=new URL(e);return t.hostname===pe()?{}:{referrer:e,referring_domain:t.hostname}},de=()=>{const e=new URLSearchParams(me()),t={};return O.forEach((n=>{e.has(n)&&(t[n]=(e.get(n)||"").toLowerCase())})),t},pe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.hostname)||""},me=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.search)||""},fe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.pathname)||""},ve=()=>{const e=A.overrideWindowLocation?re.pagePath:fe()+me();e&&e!==re.pagePath&&(e!==re.pagePath&&ge(),re.pagePath=e,re.pageKeyRegex&&Object.keys(re.pageKeyRegex).some((e=>{if(re.pageKeyRegex[e].test(re.pagePath))return re.pageKey=e,!0})))},ge=()=>{if(z()){const e=ce();if(!re.prevPagePath&&e){const t=new URL(e);if(t.hostname===pe())return void(re.prevPagePath=t.pathname)}}re.prevPagePath=re.pagePath,re.prevPageKey=re.pageKey},be=e=>{z()&&Object.assign(e,z()?(Object.keys(re.initialUAAData).length>0||(new URLSearchParams(me()),re.initialUAAData=ue({},(()=>{const e={};return O.forEach((t=>{oe[t]&&(e[t]=oe[t])})),e})(),de(),le())),re.initialUAAData):re.initialUAAData)},he=/^[a-zd]+(_[a-zd]+)*$/;function we(e){return he.test(e)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const Te=["action","component_type","component_name","context","logging_id"],ke=["num_non_hardware_accounts","ujs"],_e="ujs_",Se={};function Ee(e){e.forEach((e=>{ke.includes(e)&&delete Se[e]}))}function xe(e){var t;const n=Object.entries(e).reduce(((e,t)=>{const[n,r]=t;return!Te.includes(n)&&ke.includes(n)?we(n)?ye({},e,{[n]:r}):(A.onError(new Error("IdentityFlow property names must have snake case format"),{[n]:r}),e):e}),{});null!=(t=n.ujs)&&t.length&&(n.ujs=n.ujs.map((e=>`${_e}${e}`))),Object.assign(Se,n)}function Oe(){return A.platform!==v.unknown||(A.onError(new Error("SDK platform not initialized")),!1)}const je={eventsQueue:[],eventsScheduled:!1,metricsQueue:[],metricsScheduled:!1,tracesQueue:[],tracesScheduled:!1};function Ne(e){Object.assign(je,e)}const Ie={ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0},Pe={ac:20,af:5,ah:1,al:1,am:0,ar:10,as:20},Me={pv:25},Be={xs:0,s:1,m:1,l:2,xl:2,xxl:2},Ce=e=>e<15?y.xs:e<60?y.s:e<240?y.m:e<960?y.l:e<3840?y.xl:y.xxl,De=e=>{Object.assign(Ie,e)};function Ae(){return(new Date).getTime()}const Le={timeStart:Ae(),timeOnPagePath:0,timeOnPageKey:0,prevTimeOnPagePath:0,prevTimeOnPageKey:0,sessionDuration:0,sessionEnd:0,sessionStart:0,prevSessionDuration:0};function Ue(e){Object.assign(Le,e)}const Re=(e,t)=>t.some((t=>e instanceof t));let qe,Fe;const ze=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap,We=new WeakMap;let He={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Ke.get(e);if("objectStoreNames"===t)return e.objectStoreNames||$e.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Ve(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Fe||(Fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Xe(this),e),Je(ze.get(this))}:function(...e){return Je(t.apply(Xe(this),e))}:function(e,...n){const r=t.call(Xe(this),e,...n);return $e.set(r,e.sort?e.sort():[e]),Je(r)}:(e instanceof IDBTransaction&&function(e){if(Ke.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));Ke.set(e,t)}(e),Re(e,qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,He):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(Je(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((t=>{t instanceof IDBCursor&&ze.set(t,e)})).catch((()=>{})),We.set(t,e),t}(e);if(Qe.has(e))return Qe.get(e);const t=Ve(e);return t!==e&&(Qe.set(e,t),We.set(t,e)),t}const Xe=e=>We.get(e),Ge=["get","getKey","getAll","getAllKeys","count"],Ze=["put","add","delete","clear"],Ye=new Map;function et(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Ye.get(t))return Ye.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Ze.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ge.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?"readwrite":"readonly");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return Ye.set(t,a),a}var tt;tt=He,He={...tt,get:(e,t,n)=>et(e,t)||tt.get(e,t,n),has:(e,t)=>!!et(e,t)||tt.has(e,t)};const nt={isReady:!1,idbKeyval:null};function rt(e){Object.assign(nt,e)}const it={},at=async e=>{if(!nt.idbKeyval)return Promise.resolve(null);try{return await nt.idbKeyval.get(e)}catch(e){return A.onError(new Error("IndexedDB:Get:InternalError")),Promise.resolve(null)}},ot=async(e,t)=>{if(nt.idbKeyval)try{await nt.idbKeyval.set(e,t)}catch(e){A.onError(new Error("IndexedDB:Set:InternalError"))}},st=()=>{"server"!==A.platform&&(se({sessionStart:Le.sessionStart,ac:Ie.ac,af:Ie.af,ah:Ie.ah,al:Ie.al,am:Ie.am,ar:Ie.ar,as:Ie.as,pv:Ie.pv}),H.userId&&se({userId:H.userId}),ot(S,oe))},ct="rgb(5,177,105)",ut=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`%c ${x}`,a=`color:${ct};font-size:11px;`,o=`Importance: ${r}`;console.group(i,a,t,o),n.forEach((e=>{e.event_type?console.log(e.event_type,e):console.log(e)})),console.groupEnd()},lt=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`color:${ct};font-size:11px;`,a=`%c ${x}`,o=`Importance: ${r}`;console.log(a,i,t,n,o)},dt=()=>{const e=Ae();oe.sessionId&&oe.lastEventTime&&oe.sessionUUID&&!pt(e)||(oe.sessionId=e,oe.sessionUUID=V(),Ue({sessionStart:e}),lt({metricName:"Started new session:",data:{persistentData:oe,timeStone:Le}})),oe.lastEventTime=e},pt=e=>e-oe.lastEventTime>18e5;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(this,arguments)}const ft=e=>{var t;(e=>{switch(e.action){case f.click:Ie.ac+=1;break;case f.focus:Ie.af+=1;break;case f.hover:Ie.ah+=1;break;case f.move:Ie.am+=1;break;case f.scroll:Ie.al+=1;break;case f.search:Ie.ar+=1;break;case f.select:Ie.as+=1}})(t=e),t.event_type!==j?t.event_type===N&&((e=>{if(!e.session_rank)return;const t=e.session_rank;Object.values(h).forEach((e=>{Ie.sqs+=Ie[e]*Pe[e]})),Object.values(w).forEach((e=>{Ie.sqs+=Ie[e]*Me[e]})),Ie.sqs*=Be[t]})(t),Object.assign(t,Ie),De({ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0})):Ie.pv+=1;const n=e.event_type;delete e.event_type;const r=e.deviceId?e.deviceId:null,i=e.timestamp;return delete e.timestamp,se({eventId:oe.eventId+1}),se({sequenceNumber:oe.sequenceNumber+1}),dt(),st(),{device_id:H.deviceId||r||null,user_id:H.userId,timestamp:i,event_id:oe.eventId,session_id:oe.sessionId||-1,event_type:n,version_name:A.version||null,platform:W.amplitudePlatform,os_name:W.amplitudeOSName,os_version:W.amplitudeOSVersion,device_model:W.amplitudeDeviceModel,language:H.languageCode,event_properties:mt({},e,{session_uuid:oe.sessionUUID,height:W.height,width:W.width}),user_properties:X(),uuid:V(),library:{name:"@cbhq/client-analytics",version:"10.6.0"},sequence_number:oe.sequenceNumber,user_agent:W.userAgent||H.userAgent}},vt=e=>e.map((e=>ft(e)));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}const bt=e=>e.map((e=>(e=>{const t=e.tags||{},n=gt({authed:J()?"true":"false",platform:A.platform},t,{project_name:A.projectName,version_name:A.version||null});return{metric_name:e.metricName,page_path:e.pagePath||null,value:e.value,tags:n,type:e.metricType}})(e))),ht=e=>0!==je.metricsQueue.length&&(je.metricsQueue.length>=A.batchMetricsThreshold||(je.metricsScheduled||(je.metricsScheduled=!0,setTimeout((()=>{je.metricsScheduled=!1,e(bt(je.metricsQueue)),je.metricsQueue=[]}),A.batchMetricsPeriod)),!1)),wt=e=>0!==je.tracesQueue.length&&(je.tracesQueue.length>=A.batchTracesThreshold||(je.tracesScheduled||(je.tracesScheduled=!0,setTimeout((()=>{je.tracesScheduled=!1,e(je.tracesQueue),je.tracesQueue=[]}),A.batchTracesPeriod)),!1)),yt=e=>{var t;z()&&null!=(t=window)&&t.requestIdleCallback?window.requestIdleCallback(e,{timeout:A.ricTimeoutScheduleEvent}):(q()||F())&&A.interactionManager?A.interactionManager.runAfterInteractions(e):e()};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}const kt="application/x-www-form-urlencoded; charset=UTF-8",_t=e=>{const{data:t,importance:n,isJSON:r,onError:i,url:a}=e,o=r?"application/json":kt,s=n||l.low,c=r?JSON.stringify(t):new URLSearchParams(t).toString();function u(){const e=new XMLHttpRequest;e.open("POST",a,!0),Object.keys(A.headers||{}).forEach((t=>{e.setRequestHeader(t,A.headers[t])})),e.setRequestHeader("Content-Type",kt),H.jwt&&e.setRequestHeader("authorization",`Bearer ${H.jwt}`),e.send(c)}if(!z()||r||!("sendBeacon"in navigator)||s!==l.low||A.headers&&0!==Object.keys(A.headers).length)if(z()&&!r)u();else{const e=Tt({},A.headers,{"Content-Type":o});H.jwt&&(e.Authorization=`Bearer ${H.jwt}`),fetch(a,{method:"POST",mode:"no-cors",headers:e,body:c}).catch((e=>{i(e,{context:"AnalyticsSDKApiError"})}))}else{const e=new Blob([c],{type:kt});try{navigator.sendBeacon.bind(navigator)(a,e)||u()}catch(e){console.error(e),u()}}};var St=n(762),Et=n.n(St);const xt=(e,t,n)=>{const r=e||"";return Et()("2"+r+t+n)};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}class jt extends Error{constructor(e){super(e),this.name="CircularJsonReference",this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class Nt extends jt{constructor(...e){super(...e),this.name="DomReferenceInAnalyticsEvent"}}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pt=(e,t=l.low)=>{var n;e&&je.eventsQueue.push(e),nt.isReady&&(!A.trackUserId||H.userId?(t===l.high||(n=Mt,0!==je.eventsQueue.length&&(je.eventsQueue.length>=A.batchEventsThreshold||(je.eventsScheduled||(je.eventsScheduled=!0,setTimeout((()=>{je.eventsScheduled=!1,n(vt(je.eventsQueue)),je.eventsQueue=[]}),A.batchEventsPeriod)),0))))&&Bt():je.eventsQueue.length>10&&(A.trackUserId=!1,A.onError(new Error("userId not set in Logged-in"))))},Mt=(e,t=l.low)=>{if(H.isOptOut||0===e.length)return;let n;try{n=JSON.stringify(e)}catch(t){const r=e.map((e=>e.event_type)).join(", "),[i,a]=(e=>{try{const n=[];for(const r of e){const e=Ot({},r);r.event_properties&&(e.event_properties=Ot({},e.event_properties,{currentTarget:null,target:null,relatedTarget:null,_dispatchInstances:null,_targetInst:null,view:(t=r.event_properties.view,["string","number","boolean"].includes(typeof t)?r.event_properties.view:null)})),n.push(e)}return[!0,JSON.stringify(n)]}catch(e){return[!1,""]}var t})(e);if(!i)return void A.onError(new jt(t instanceof Error?t.message:"unknown"),{listEventType:r});n=a,A.onError(new Nt("Found DOM element reference"),{listEventType:r,stringifiedEventData:n})}const r=Ae().toString(),i=It({},{e:n,v:"2",upload_time:r},{client:A.amplitudeApiKey,checksum:xt(A.amplitudeApiKey,n,r)});_t({url:A.eventsEndpoint,data:i,importance:t,onError:A.onError}),ut({metricName:"Batch Events",data:e,importance:t})},Bt=()=>{Mt(vt(je.eventsQueue)),Ne({eventsQueue:[]})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}const Dt=Object.values(f),At=Object.values(m),Lt=e=>Dt.includes(e)?e:f.unknown,Ut=e=>At.includes(e)?e:m.unknown,Rt=(e,t,n)=>{const r={auth:J()?b.loggedIn:b.notLoggedIn,action:Lt(e),component_type:Ut(t),logging_id:n,platform:A.platform,project_name:A.projectName};return"number"==typeof H.userTypeEnum&&(r.user_type_enum=H.userTypeEnum),r},qt=e=>{const t=Ae();if(!e)return A.onError(new Error("missing logData")),Ct({},Rt(f.unknown,m.unknown),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});const n=Ct({},e,Rt(e.action,e.componentType,e.loggingId),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});return delete n.componentType,delete n.loggingId,n},Ft={blacklistRegex:[],isEnabled:!1};function zt(){return{page_key:re.pageKey,page_path:re.pagePath,prev_page_key:re.prevPageKey,prev_page_path:re.prevPagePath}}function Kt(e){Object.assign(Ft,e)}function $t(e,t,n=l.low){if(H.isOptOut)return;if(!Oe())return;const r=qt(t);!function(e){Ft.isEnabled&&(ve(),Object.assign(e,zt()))}(r),be(r),function(e){Object.keys(Se).length>0&&Object.assign(e,Se)}(r),r.has_double_fired=!1,r.event_type=e,n===l.high?Pt(r,n):yt((()=>{Pt(r)}))}function Qt(e,t=!1){t?_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError})})),ut({metricName:"Batch Metrics",data:e})}function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function Ht(e){if(!Oe())return;v.server!==A.platform&&!e.pagePath&&re.pagePath&&(e.pagePath=re.pagePath);const t=Object.keys(Se).length?Wt({},e.tags,Se):e.tags;t&&Object.assign(e,{tags:t}),je.metricsQueue.push(e),ht(Qt)&&(Qt(bt(je.metricsQueue)),je.metricsQueue=[])}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}let Jt=function(e){return e.instant="instant",e.quick="quick",e.moderate="moderate",e.slow="slow",e.unavoidable="unavoidable",e}({});function Xt(e){return e.toLowerCase()}let Gt={};const Zt=(e,t)=>{null!=A&&A.onMarkStep&&A.onMarkStep(e,t),xe({ujs:t})};let Yt;const en={Perfume:()=>{},markStep:e=>{},markStepOnce:e=>{},incrementUjNavigation:()=>{}},tn=()=>{z()&&Yt&&Yt.markNTBT&&Yt.markNTBT()},nn=e=>{z()&&Yt&&en.markStep&&en.markStep(e)},rn=e=>{z()&&Yt&&en.markStepOnce&&en.markStepOnce(e)},an=()=>{z()&&Yt&&en.incrementUjNavigation&&en.incrementUjNavigation()};function on(e={callMarkNTBT:!0}){"unknown"!==A.platform&&(Ft.blacklistRegex.some((e=>e.test(fe())))||($t(j,{action:f.render,componentType:m.page}),e.callMarkNTBT&&tn()))}let sn=!1,cn=!1;const un=e=>{sn=!e.persisted},ln=(e,t="hidden",n=!1)=>{cn||(addEventListener("pagehide",un),addEventListener("beforeunload",(()=>{})),cn=!0),addEventListener("visibilitychange",(({timeStamp:n})=>{document.visibilityState===t&&e({timeStamp:n,isUnloading:sn})}),{capture:!0,once:n})},dn=36e3;function pn(){const e=pt(Ae());if(e&&(O.forEach((e=>{oe[e]&&delete oe[e]})),st()),!oe.lastEventTime||!Le.sessionStart||!e)return;const t=Math.round((oe.lastEventTime-Le.sessionStart)/1e3);if(t<1||t>dn)return;const n=Ce(t);$t(N,{action:f.measurement,componentType:m.page,session_duration:t,session_end:oe.lastEventTime,session_start:Le.sessionStart,session_rank:n})}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const fn=[],vn=[],gn=()=>{const e=fn.shift();e&&e()},bn=()=>{const e=vn.shift();e&&e()};let hn={};function wn(e){const t=function(e){return{test_name:e.testName,group_name:e.group,subject_id:e.subjectId,exposed_at:Ae(),subject_type:e.subjectType,platform:A.platform}}(e);hn[e.testName]=hn[e.testName]||0,hn[e.testName]+k>Ae()?lt({metricName:`Event: exposeExperiment ${e.testName} not sent`,data:t}):(hn[e.testName]=Ae(),ot(E,hn),lt({metricName:`Event: exposeExperiment ${e.testName} sent`,data:t}),_t({url:A.exposureEndpoint,data:[t],onError:(t,n)=>{hn[e.testName]=0,ot(E,hn),A.onError(t,n)},isJSON:!0,importance:l.high}))}const yn=e=>{var t,r,i;U(e),z()&&(H.languageCode=(null==(t=navigator)?void 0:t.languages[0])||(null==(r=navigator)?void 0:r.language)||""),te(),(()=>{var e;if(z()&&null!=(e=window)&&e.indexedDB){const e=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Je(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(Je(o.result),e.oldVersion,e.newVersion,Je(o.transaction),e)})),n&&o.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener("close",(()=>a())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}("keyval-store",1,{upgrade(e){e.createObjectStore("keyval")}});rt({idbKeyval:{get:async t=>(await e).get("keyval",t),set:async(t,n)=>(await e).put("keyval",n,t),delete:async t=>(await e).delete("keyval",t),keys:async()=>(await e).getAllKeys("keyval")}})}else rt({idbKeyval:{get:async e=>new Promise((t=>{t(it[e])})),set:async(e,t)=>new Promise((n=>{it[e]=t,n(e)})),delete:async e=>new Promise((()=>{delete it[e]})),keys:async()=>new Promise((e=>{e(Object.keys(it))}))}})})(),lt({metricName:"Initialized Analytics:",data:{deviceId:H.deviceId}}),fn.push((()=>{Pt()})),(async()=>{const e=await at(S);rt({isReady:!0}),gn(),e&&(bn(),se({eventId:e.eventId||oe.eventId,sequenceNumber:e.sequenceNumber||oe.sequenceNumber,sessionId:e.sessionId||oe.sessionId,lastEventTime:e.lastEventTime||oe.lastEventTime,sessionUUID:e.sessionUUID||oe.sessionUUID}),function(e){se(mn({},function(e){const t={};return O.forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e),de()))}(e),Ue({sessionStart:e.sessionStart||oe.sessionStart}),De({ac:e.ac||Ie.ac,af:e.af||Ie.af,ah:e.ah||Ie.ah,al:e.al||Ie.al,am:e.am||Ie.am,ar:e.ar||Ie.ar,as:e.as||Ie.as,pv:e.pv||Ie.pv}),A.trackUserId&&Y({userId:e.userId||H.userId}),pn(),lt({metricName:"Initialized Analytics IndexedDB:",data:e}))})(),async function(){at(E).then((e=>{hn=null!=e?e:{}})).catch((e=>{e instanceof Error&&A.onError(e)}))}(),Z(),z()&&(ln((()=>{se({lastEventTime:Ae()}),st(),Bt()}),"hidden"),ln((()=>{pn()}),"visible")),z()&&(i=()=>{var e,t,n,r;te(),ee({width:null!=(e=null==(t=window)?void 0:t.innerWidth)?e:null,height:null!=(n=null==(r=window)?void 0:r.innerHeight)?n:null})},addEventListener("resize",(()=>{requestAnimationFrame((()=>{i()}))}))),(()=>{if(z())try{const e=n(2);en.markStep=e.markStep,en.markStepOnce=e.markStepOnce,en.incrementUjNavigation=e.incrementUjNavigation,Yt=new e.Perfume({analyticsTracker:e=>{const{data:t,attribution:n,metricName:r,navigatorInformation:i,rating:a}=e,o=I[r],s=(null==n?void 0:n.category)||null;if(!o&&!s)return;const c=(null==i?void 0:i.deviceMemory)||0,u=(null==i?void 0:i.hardwareConcurrency)||0,l=(null==i?void 0:i.isLowEndDevice)||!1,p=(null==i?void 0:i.isLowEndExperience)||!1,v=(null==i?void 0:i.serviceWorkerStatus)||"unsupported",g=Vt({deviceMemory:c,hardwareConcurrency:u,isLowEndDevice:l,isLowEndExperience:p,serviceWorkerStatus:v},Gt),b={is_low_end_device:l,is_low_end_experience:p,page_key:re.pageKey||"",save_data:t.saveData||!1,service_worker:v,is_perf_metric:!0};if("navigationTiming"===r)t&&"number"==typeof t.redirectTime&&Ht({metricName:I.redirectTime.eventName,metricType:d.histogram,tags:b,value:t.redirectTime||0});else if("TTFB"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),Ht({metricName:I.TTFB.eventName,metricType:d.histogram,tags:Vt({},b),value:t}),a&&Ht({metricName:`perf_web_vitals_ttfb_${a}`,metricType:d.count,tags:b,value:1});else if("networkInformation"===r)null!=t&&t.effectiveType&&(Gt=t,$t(o.eventName,{action:f.measurement,componentType:m.page,networkInformationDownlink:t.downlink,networkInformationEffectiveType:t.effectiveType,networkInformationRtt:t.rtt,networkInformationSaveData:t.saveData,navigatorDeviceMemory:c,navigatorHardwareConcurrency:u}));else if("storageEstimate"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page},t,g)),Ht({metricName:"perf_storage_estimate_caches",metricType:d.histogram,tags:b,value:t.caches}),Ht({metricName:"perf_storage_estimate_indexed_db",metricType:d.histogram,tags:b,value:t.indexedDB});else if("CLS"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,score:100*t||null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_cls_${a}`,metricType:d.count,tags:b,value:1});else if("FID"===r){const e=(null==n?void 0:n.performanceEntry)||null,r=parseInt((null==e?void 0:e.processingStart)||"");$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,processingStart:null!=e&&e.processingStart?r:null,startTime:null!=e&&e.startTime?parseInt(e.startTime):null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_fidVitals_${a}`,metricType:d.count,tags:b,value:1})}else"userJourneyStep"===r?($t("perf_user_journey_step",Vt({action:f.measurement,componentType:m.page,duration:t||null,rating:null!=a?a:null,step_name:(null==n?void 0:n.stepName)||""},g)),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||""}_vitals_${a}`,metricType:d.count,tags:b,value:1}),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||""}`,metricType:d.distribution,tags:b,value:t||null})):I[r]&&t&&($t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),a&&(Ht({metricName:`perf_web_vitals_${Xt(r)}_${a}`,metricType:d.count,tags:b,value:1}),"LCP"===r&&Ht({metricName:`perf_web_vitals_${Xt(r)}`,metricType:d.distribution,tags:b,value:t})))},maxMeasureTime:3e4,steps:A.steps,onMarkStep:Zt})}catch(e){e instanceof Error&&A.onError(e)}})()},Tn=e=>{Y(e),e.userAgent&&Z(),lt({metricName:"Identify:",data:{countryCode:H.countryCode,deviceId:H.deviceId,userId:H.userId}})},kn=({blacklistRegex:e,pageKeyRegex:t,browserHistory:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.listen((()=>{on()}))},_n=({blacklistRegex:e,pageKeyRegex:t,nextJsRouter:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.events.on("routeChangeComplete",(()=>{on()}))},Sn=()=>{Y({isOptOut:!0}),ot(S,{})},En=()=>{Y({isOptOut:!1})},xn={Button:{label:"cb_button",uuid:"e921a074-40e6-4371-8700-134d5cd633e6",componentType:m.button}};function On(e,t,n){return{componentName:e,actions:t,data:n}}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Nn(e,t,n){const{componentName:r,data:i}=n;$t(e.label,jn({componentType:e.componentType,action:t,loggingId:e.uuid,component_name:r},i))}const In={actionMapping:{onPress:f.click,onHover:f.hover},handlers:{Button:{[f.click]:e=>Nn(xn.Button,f.click,e),[f.hover]:e=>Nn(xn.Button,f.hover,e)}}};function Pn(e,t=!1){t?_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError})})),ut({metricName:"Batch Traces",data:e})}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}const Bn=1e6;function Cn(e){return e*Bn}function Dn(e=function(){var e;return null==(e=window)?void 0:e.crypto}()){const t=new Uint32Array(2);return null==e||e.getRandomValues(t),((BigInt(t[0])<<BigInt(32))+BigInt(t[1])).toString()}function An(e,t){return{"x-datadog-origin":"rum","x-datadog-parent-id":t,"x-datadog-sampling-priority":"1","x-datadog-trace-id":e}}function Ln(e){var t;const{name:n,traceId:r,spanId:i,start:a,duration:o,resource:s,meta:c}=e;return{duration:o?Cn(o):0,name:n,resource:s,service:A.projectName,span_id:null!=i?i:Dn(),start:a?Cn(a):0,trace_id:null!=r?r:Dn(),parent_id:P,type:M,meta:Mn({platform:A.platform},re.pageKey?{page_key:re.pageKey}:{},null!=(t=Se.ujs)&&t.length?{last_ujs:Se.ujs[Se.ujs.length-1]}:{},null!=c?c:{})}}function Un(e){return[Ln(e)]}function Rn(e,t){Oe()&&function(e){return e.length>0}(e)&&(t&&function(e,t){e.forEach((e=>function(e,t){const n=Mn({},e.meta,t.meta),r={start:t.start?Cn(t.start):e.start,duration:t.duration?Cn(t.duration):e.duration};Object.assign(e,t,Mn({meta:n},r))}(e,t)))}(e,t),je.tracesQueue.push(e),wt(Pn)&&(Pn(je.tracesQueue),je.tracesQueue=[]))}function qn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function zn(){return void 0!==typeof window&&"performance"in window&&"mark"in performance&&"getEntriesByName"in performance}function Kn(e,t){return`perf_${e}${null!=t&&t.label?`_${t.label}`:""}`}function $n(e,t,n){return`${Kn(e,n)}__${t}`}let Qn={};function Wn(e,t,n){if(!zn())return;const r=$n(e,t,n);if(performance.mark(r),"end"===t){const t=Kn(e,n);!function(e,t,n){try{performance.measure(e,t,n)}catch(e){A.onError(e)}}(t,$n(e,"start",n),r);const i=performance.getEntriesByName(t).pop();i&&Ht(Fn({metricName:e,metricType:d.distribution,value:i.duration},null!=n&&n.tags?{tags:n.tags}:{}))}}function Hn(e,t){if(!zn())return;const n=$n(e,"start",t);Qn[n]||(Wn(e,"start",t),Qn[n]=!0)}function Vn(e,t){const n=$n(e,"start",t),r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Qn,[n].map(qn));Qn=r}function Jn(e,t){if(!zn())return;const n=$n(e,"start",t);Qn[n]&&(Wn(e,"end",t),Vn(e,t))}function Xn(){zn()&&(performance.clearMarks(),Qn={})}var Gn=n(784);function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Yn(e,t,n=l.low){const r=(0,Gn.useRef)(t);return(0,Gn.useEffect)((()=>{r.current=t}),[t]),(0,Gn.useCallback)((t=>{$t(e,Zn({},r.current,t),n)}),[e,n])}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t,n=l.low){(0,Gn.useEffect)((()=>{const r=er({},t,{action:f.render});$t(e,r,n)}),[])}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}const rr=function(e,t){return{markStartPerf:(0,Gn.useCallback)((()=>Hn(e,t)),[e,t]),markEndPerf:(0,Gn.useCallback)((n=>Jn(e,nr({},t,n))),[e,t])}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(){return Object.entries(ir({},Se,zt(),{sessionUUID:oe.sessionUUID,userId:oe.userId})).reduce(((e,t)=>{return null!=(n=t[1])&&""!==n?ir({},e,{[t[0]]:t[1]}):e;var n}),{})}async function or(){return new Promise((e=>{Mt(vt(je.eventsQueue)),Qt(bt(je.metricsQueue),!0),Pn(je.tracesQueue,!0),Ne({eventsQueue:[],metricsQueue:[],tracesQueue:[]}),e()}))}function sr(){return{"X-CB-Device-ID":H.deviceId||"unknown","X-CB-Is-Logged-In":H.userId?"true":"false","X-CB-Pagekey":re.pageKey||"unknown","X-CB-UJS":(e=Se.ujs,void 0===e||0===e.length?"":e.join(",")),"X-CB-Platform":A.platform||"unknown","X-CB-Project-Name":A.projectName||"unknown","X-CB-Session-UUID":oe.sessionUUID||"unknown","X-CB-Version-Name":A.version?String(A.version):"unknown"};var e}})(),r})()}));',fg=()=>new Promise((e,t)=>{if(typeof window>"u"){t(new Error("Telemetry is not supported in non-browser environments"));return}if(window.ClientAnalytics)return e();try{const n=document.createElement("script");n.textContent=mg,n.type="text/javascript",document.head.appendChild(n),yg(),document.head.removeChild(n),e()}catch{console.error("Failed to execute inlined telemetry script"),t()}}),yg=()=>{if(typeof window<"u"){const e=g.config.get().deviceId??crypto?.randomUUID()??"";if(window.ClientAnalytics){const{init:t,identify:n,PlatformName:a}=window.ClientAnalytics;t({isProd:!0,amplitudeApiKey:"c66737ad47ec354ced777935b0af822e",platform:a.web,projectName:"base_account_sdk",showDebugLogging:!1,version:"1.0.0",apiEndpoint:"https://cca-lite.coinbase.com"}),n({deviceId:e}),g.config.set({deviceId:e})}}},hg="0xba5ed110efdba3d005bfc882d75358acbbb85842",J="0xf85210B21cC50302F477BA56686d2019dC9b67Ad",K=[{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"}],Zn=[{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"}],ie=[{type:"constructor",inputs:[{name:"publicERC6492Validator",type:"address",internalType:"contract PublicERC6492Validator"},{name:"magicSpend",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"MAGIC_SPEND",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"NATIVE_TOKEN",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"PERMISSION_DETAILS_TYPEHASH",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"PUBLIC_ERC6492_VALIDATOR",inputs:[],outputs:[{name:"",type:"address",internalType:"contract PublicERC6492Validator"}],stateMutability:"view"},{type:"function",name:"SPEND_PERMISSION_BATCH_TYPEHASH",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"SPEND_PERMISSION_TYPEHASH",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"approve",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"nonpayable"},{type:"function",name:"approveBatchWithSignature",inputs:[{name:"spendPermissionBatch",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermissionBatch",components:[{name:"account",type:"address",internalType:"address"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"permissions",type:"tuple[]",internalType:"struct SpendPermissionManager.PermissionDetails[]",components:[{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"nonpayable"},{type:"function",name:"approveWithRevoke",inputs:[{name:"permissionToApprove",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"permissionToRevoke",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"expectedLastUpdatedPeriod",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"nonpayable"},{type:"function",name:"approveWithSignature",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"getBatchHash",inputs:[{name:"spendPermissionBatch",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermissionBatch",components:[{name:"account",type:"address",internalType:"address"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"permissions",type:"tuple[]",internalType:"struct SpendPermissionManager.PermissionDetails[]",components:[{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}]}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getCurrentPeriod",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getLastUpdatedPeriod",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}],stateMutability:"view"},{type:"function",name:"isApproved",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isRevoked",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isValid",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"revoke",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"revokeAsSpender",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"spend",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"value",type:"uint160",internalType:"uint160"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"spendWithWithdraw",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"value",type:"uint160",internalType:"uint160"},{name:"withdrawRequest",type:"tuple",internalType:"struct MagicSpend.WithdrawRequest",components:[{name:"signature",type:"bytes",internalType:"bytes"},{name:"asset",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"},{name:"nonce",type:"uint256",internalType:"uint256"},{name:"expiry",type:"uint48",internalType:"uint48"}]}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"SpendPermissionApproved",inputs:[{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"spendPermission",type:"tuple",indexed:!1,internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],anonymous:!1},{type:"event",name:"SpendPermissionRevoked",inputs:[{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"spendPermission",type:"tuple",indexed:!1,internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],anonymous:!1},{type:"event",name:"SpendPermissionUsed",inputs:[{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"account",type:"address",indexed:!0,internalType:"address"},{name:"spender",type:"address",indexed:!0,internalType:"address"},{name:"token",type:"address",indexed:!1,internalType:"address"},{name:"periodSpend",type:"tuple",indexed:!1,internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}],anonymous:!1},{type:"error",name:"AfterSpendPermissionEnd",inputs:[{name:"currentTimestamp",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"}]},{type:"error",name:"BeforeSpendPermissionStart",inputs:[{name:"currentTimestamp",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"}]},{type:"error",name:"ERC721TokenNotSupported",inputs:[{name:"token",type:"address",internalType:"address"}]},{type:"error",name:"EmptySpendPermissionBatch",inputs:[]},{type:"error",name:"ExceededSpendPermission",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"allowance",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidLastUpdatedPeriod",inputs:[{name:"actualLastUpdatedPeriod",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]},{name:"expectedLastUpdatedPeriod",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}]},{type:"error",name:"InvalidSender",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expected",type:"address",internalType:"address"}]},{type:"error",name:"InvalidSignature",inputs:[]},{type:"error",name:"InvalidStartEnd",inputs:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"}]},{type:"error",name:"InvalidWithdrawRequestNonce",inputs:[{name:"noncePostfix",type:"uint128",internalType:"uint128"},{name:"permissionHashPostfix",type:"uint128",internalType:"uint128"}]},{type:"error",name:"MismatchedAccounts",inputs:[{name:"firstAccount",type:"address",internalType:"address"},{name:"secondAccount",type:"address",internalType:"address"}]},{type:"error",name:"SafeERC20FailedOperation",inputs:[{name:"token",type:"address",internalType:"address"}]},{type:"error",name:"SpendTokenWithdrawAssetMismatch",inputs:[{name:"spendToken",type:"address",internalType:"address"},{name:"withdrawAsset",type:"address",internalType:"address"}]},{type:"error",name:"SpendValueOverflow",inputs:[{name:"value",type:"uint256",internalType:"uint256"}]},{type:"error",name:"SpendValueWithdrawAmountMismatch",inputs:[{name:"spendValue",type:"uint256",internalType:"uint256"},{name:"withdrawAmount",type:"uint256",internalType:"uint256"}]},{type:"error",name:"UnauthorizedSpendPermission",inputs:[]},{type:"error",name:"UnexpectedReceiveAmount",inputs:[{name:"received",type:"uint256",internalType:"uint256"},{name:"expected",type:"uint256",internalType:"uint256"}]},{type:"error",name:"ZeroAllowance",inputs:[]},{type:"error",name:"ZeroPeriod",inputs:[]},{type:"error",name:"ZeroSpender",inputs:[]},{type:"error",name:"ZeroToken",inputs:[]},{type:"error",name:"ZeroValue",inputs:[]}],j={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},at={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},Jn="Unspecified error message.",gg="Unspecified server error.";function Lt(e,t=Jn){if(e&&Number.isInteger(e)){const n=e.toString();if(rt(at,n))return at[n].message;if(Yn(e))return gg}return t}function bg(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!(at[t]||Yn(e))}function wg(e,{shouldIncludeStack:t=!1}={}){const n={};if(e&&typeof e=="object"&&!Array.isArray(e)&&rt(e,"code")&&bg(e.code)){const a=e;n.code=a.code,a.message&&typeof a.message=="string"?(n.message=a.message,rt(a,"data")&&(n.data=a.data)):(n.message=Lt(n.code),n.data={originalError:rn(e)})}else n.code=j.rpc.internal,n.message=sn(e,"message")?e.message:Jn,n.data={originalError:rn(e)};return t&&(n.stack=sn(e,"stack")?e.stack:void 0),n}function Yn(e){return e>=-32099&&e<=-32e3}function rn(e){return e&&typeof e=="object"&&!Array.isArray(e)?Object.assign({},e):e}function rt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sn(e,t){return typeof e=="object"&&e!==null&&t in e&&typeof e[t]=="string"}const b={rpc:{parse:e=>U(j.rpc.parse,e),invalidRequest:e=>U(j.rpc.invalidRequest,e),invalidParams:e=>U(j.rpc.invalidParams,e),methodNotFound:e=>U(j.rpc.methodNotFound,e),internal:e=>U(j.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return U(t,e)},invalidInput:e=>U(j.rpc.invalidInput,e),resourceNotFound:e=>U(j.rpc.resourceNotFound,e),resourceUnavailable:e=>U(j.rpc.resourceUnavailable,e),transactionRejected:e=>U(j.rpc.transactionRejected,e),methodNotSupported:e=>U(j.rpc.methodNotSupported,e),limitExceeded:e=>U(j.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ae(j.provider.userRejectedRequest,e),unauthorized:e=>ae(j.provider.unauthorized,e),unsupportedMethod:e=>ae(j.provider.unsupportedMethod,e),disconnected:e=>ae(j.provider.disconnected,e),chainDisconnected:e=>ae(j.provider.chainDisconnected,e),unsupportedChain:e=>ae(j.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:a}=e;if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string');return new Xn(t,n,a)}}};function U(e,t){const[n,a]=Qn(t);return new Bt(e,n||Lt(e),a)}function ae(e,t){const[n,a]=Qn(t);return new Xn(e,n||Lt(e),a)}function Qn(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}class Bt extends Error{code;data;constructor(t,n,a){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string.');super(n),this.code=t,a!==void 0&&(this.data=a)}}class Xn extends Bt{constructor(t,n,a){if(!vg(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,n,a)}}function vg(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function on(e){return typeof e=="object"&&e!==null&&"code"in e&&"data"in e&&e.code===-32090&&typeof e.data=="object"&&e.data!==null&&"type"in e.data&&e.data.type==="INSUFFICIENT_FUNDS"}function _n(e){return typeof e=="object"&&e!==null&&"details"in e}function Tg(e){try{const t=JSON.parse(e.details);return new Bt(t.code,t.message,t.data)}catch{return null}}function N(e,t,n){if(e==null)throw t??b.rpc.invalidParams({message:"value must be present",data:e})}function W(e,t){if(!Array.isArray(e))throw b.rpc.invalidParams({message:t??"value must be an array",data:e})}const kg=`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.
|
|
1
|
+
import{B as zt,_ as ja,h as X,y as Xe,T as Ra}from"./hooks.module-CpBu4GjP.js";import{u as D,s as Be,t as Fe,g as Ma,a as Ua,b as Na,c as La,f as Pn}from"./WebCryptoP256-BkRKBE89.js";import{i as _e,g as Ba}from"./index-CqbvjyBi.js";import{d as Fa,s as Ze,c as An,w as Cn,p as Ga,f as Ka}from"./parseSignature-O0fAqZoB.js";import{h as $e}from"./W3MFrameProviderSingleton-dGwr0u32.js";import{o as Ha,h as za,c as Va,p as jt}from"./custom-BbQhcg55.js";import{bg as me,b9 as G,ba as Rt,co as qa,aQ as Mt,ak as _,ax as pe,aR as V,aU as Wa,ct as Za,ao as Ja,z as Ya,y as Qa,x as Xa,az as B,cs as _a,cm as $a,aD as er,aF as tr,aP as Pe,a$ as nr,an as En,aI as H,ap as ar}from"./parseEventLogs-BxtEI7tW.js";import{A as Ge}from"./writeContract-C9KDDivM.js";import{af as F,ae as E,ai as In,B as T,a2 as Vt,a6 as fe,al as rr,ab as re,an as $,aj as qt,a8 as et,ao as Wt,ak as sr,aa as Zt,a9 as he,a3 as tt}from"./NetworkUtil-DM5H1DOt.js";import{a as ir,b as or,c as cr,d as ur,e as dr,f as lr,g as pr,h as mr,i as fr,j as yr,k as hr,l as gr,m as br,n as wr,o as vr,p as Tr,q as kr,r as Sr,s as xr,t as Pr,u as On,v as Ar,w as Cr,x as Er,y as Ir,z as Or,A as Dr,B as jr,C as Rr,D as Mr,E as Ur,F as Nr,G as Lr,H as Br,I as Fr,J as Gr,K as Kr,L as Hr,M as zr,N as Vr,O as qr,P as Wr,Q as Dn,R as Zr,S as Jr,T as Yr,U as Qr,V as jn,W as Xr,X as _r,Y as Rn,Z as $r,_ as es,$ as ts,a0 as ns,a1 as as,a2 as rs,a3 as ss,a4 as is,a5 as os,a6 as cs,a7 as us,a8 as ds,a9 as ls,aa as ps,ab as ms,ac as fs,ad as ys,ae as hs,af as gs,ag as bs,ah as ws,ai as vs,aj as Ts,ak as ks,al as Ss,am as xs,an as Ps,ao as As,ap as Cs,aq as Es,ar as Is,as as Os,at as Ds,au as js,av as Rs,aw as Mn,ax as Ms,ay as Us,az as Ns,aA as Ls,aB as Bs,aC as Fs,aD as Gs,aE as Ks,aF as Hs,aG as zs,aH as Vs,aI as qs,aJ as Ws,aK as Zs,aL as Js,aM as Ys,aN as Qs,aO as Xs,aP as _s,aQ as $s,aR as ei,aS as ti,aT as ni,aU as ai,aV as ri,aW as si,aX as ii,aY as oi,aZ as ci,a_ as ui,a$ as di,b0 as li,b1 as pi,b2 as mi,b3 as fi,b4 as yi,b5 as hi,b6 as gi,b7 as bi,b8 as wi,b9 as vi,ba as Ti,bb as ki,bc as Si,bd as xi,be as Pi,bf as Ai,bg as Ci,bh as Ei,bi as Ii,bj as Oi,bk as Di,bl as ji,bm as Ri,bn as Mi,bo as Ui,bp as Ni,bq as Li,br as Bi,bs as Fi,bt as Gi,bu as Ki,bv as Hi,bw as zi,bx as Vi,by as qi,bz as Wi,bA as Zi,bB as Ji,bC as Yi,bD as Qi,bE as Xi,bF as _i,bG as $i,bH as eo,bI as to,bJ as no,bK as ao,bL as ro,bM as so,bN as io,bO as oo,bP as co,bQ as uo,bR as lo,bS as po,bT as mo,bU as fo,bV as yo,bW as ho,bX as go,bY as bo,bZ as wo,b_ as vo,b$ as To,c0 as ko,c1 as So,c2 as xo,c3 as Po,c4 as Ao,c5 as Co,c6 as Eo,c7 as Io,c8 as Oo,c9 as Do,ca as jo,cb as Ro,cc as Mo,cd as Uo,ce as No,cf as Lo,cg as Bo,ch as Fo,ci as Go,cj as Ko,ck as Ho,cl as zo,cm as Vo,cn as qo,co as Wo,cp as Zo,cq as Jo,cr as Yo,cs as Qo,ct as Xo,cu as _o,cv as $o,cw as ec,cx as tc,cy as nc,cz as ac,cA as rc,cB as sc,cC as ic,cD as oc,cE as cc,cF as uc,cG as dc,cH as lc,cI as pc,cJ as mc,cK as fc,cL as yc,cM as hc,cN as gc,cO as bc,cP as wc,cQ as vc,cR as Tc,cS as kc,cT as Sc,cU as xc,cV as Pc,cW as Ac,cX as Cc,cY as Ec,cZ as Ic,c_ as Oc,c$ as Dc,d0 as jc,d1 as Rc,d2 as Mc,d3 as Uc,d4 as Nc,d5 as Lc,d6 as Bc,d7 as Fc,d8 as Gc,d9 as Kc,da as Hc,db as zc,dc as Vc,dd as qc,de as Wc,df as Zc,dg as Jc,dh as Yc,di as Qc,dj as Xc,dk as _c,dl as $c,dm as eu,dn as tu,dp as nu,dq as au,dr as ru,ds as su,dt as iu,du as Jt,dv as ou,dw as cu,dx as uu,dy as du,dz as lu,dA as pu,dB as mu,dC as fu,dD as yu,dE as hu,dF as gu,dG as bu,dH as wu,dI as vu,dJ as Tu,dK as ku,dL as Su,dM as xu,dN as Pu,dO as Au,dP as Cu,dQ as Eu,dR as Iu,dS as Ou,dT as Du,dU as ju,dV as Ru,dW as Mu,dX as Uu,dY as Nu,dZ as Lu,d_ as Bu,d$ as Fu,e0 as Gu,e1 as Ku,e2 as Hu,e3 as zu,e4 as Vu,e5 as qu,e6 as Wu,e7 as Zu,e8 as Ju,e9 as Yu,ea as Qu,eb as Xu,ec as _u,ed as $u,ee as ed,ef as td,eg as nd,eh as ad,ei as rd,ej as sd,ek as id,el as od,em as cd,en as ud,eo as dd,ep as ld,eq as pd,er as md,es as fd,et as yd,eu as hd,ev as gd,ew as bd,ex as wd,ey as vd,ez as Td,eA as kd,eB as Sd,eC as xd,eD as Pd,eE as Ad,eF as Cd,eG as Ed,eH as Id,eI as Od,eJ as Dd,eK as jd,eL as Rd,eM as Md,eN as Ud,eO as Nd,eP as Un,eQ as Ld,eR as Bd,eS as Fd,eT as Gd,eU as Kd,eV as Hd,eW as zd,eX as Vd,eY as qd,eZ as Wd,e_ as Zd,e$ as Jd,f0 as Yd,f1 as Qd,f2 as Xd,f3 as _d,f4 as $d,f5 as el,f6 as tl,f7 as nl,f8 as al,f9 as rl,fa as sl,fb as il,fc as ol,fd as cl,fe as ul,ff as dl,fg as ll,fh as pl,fi as ml,fj as fl,fk as yl,fl as hl,fm as gl,fn as bl,fo as wl,fp as vl,fq as Tl,fr as kl,fs as Sl,ft as xl,fu as Pl,fv as Al,fw as Cl,fx as El,fy as Il,fz as Ol,fA as Dl,fB as jl,fC as Rl,fD as Ml,fE as Ul,fF as Nl,fG as Ll,fH as Bl,fI as Fl,fJ as Gl,fK as Kl,fL as Hl,fM as zl,fN as Vl,fO as ql,fP as Wl,fQ as Zl,fR as Jl,fS as Yl,fT as Ql,fU as Xl,fV as _l,fW as $l,fX as ep,fY as tp,fZ as Nn,f_ as np,f$ as Ln,g0 as ap,g1 as rp,g2 as sp,g3 as ip,g4 as op,g5 as cp,g6 as up,g7 as dp,g8 as lp,g9 as pp,ga as mp,gb as fp,gc as yp,gd as hp,ge as gp,gf as bp,gg as wp,gh as vp,gi as Tp,gj as kp,gk as Sp,gl as xp,gm as Pp,gn as Ap,go as Bn,gp as Cp,gq as Ep,gr as Ip,gs as Op,gt as Dp,gu as jp,gv as Rp,gw as Mp,gx as Up,gy as Np,gz as Lp,gA as Bp,gB as Fp,gC as Gp,gD as Kp,gE as Hp,gF as zp,gG as Vp,gH as qp,gI as Wp,gJ as Zp,gK as Jp,gL as Yp,gM as Qp,gN as Xp,gO as _p,gP as $p,gQ as em,gR as tm,gS as nm,gT as am,gU as rm,gV as sm,gW as im,gX as om,gY as cm,gZ as um,g_ as dm,g$ as lm,h0 as pm,h1 as mm,h2 as fm,h3 as ym,h4 as hm,h5 as gm,h6 as bm,h7 as wm,h8 as vm,h9 as Tm,ha as km,hb as Sm,hc as xm,hd as Pm,he as Am,hf as Cm,hg as Fn,hh as Em,hi as Im,hj as Om,hk as Dm,hl as jm,hm as Rm,hn as Mm,ho as Um,hp as Nm,hq as Lm,hr as Bm,hs as Fm,ht as Gm,hu as Km,hv as Hm,hw as zm,hx as Vm,hy as qm,hz as Wm,hA as Zm,hB as Jm,hC as Ym,hD as Qm,hE as Xm,hF as _m,hG as $m,hH as ef,hI as tf,hJ as nf,hK as af,hL as rf,hM as sf,hN as of,hO as cf,hP as uf,hQ as df,hR as lf,hS as pf,hT as mf,hU as ff,hV as yf,hW as hf,hX as gf,hY as bf,hZ as wf,h_ as vf,h$ as Tf,i0 as kf,i1 as Sf,i2 as Yt,i3 as xf,i4 as Pf,i5 as Af,i6 as Cf,i7 as Ef,i8 as If,i9 as Of,ia as Df,ib as jf,ic as Rf,id as Mf,ie as Uf,ig as Nf,ih as Lf,ii as Bf,ij as Ff,ik as Gf,il as Kf,im as Hf,io as zf,ip as Vf,iq as qf,ir as Wf,is as Zf,it as Jf,iu as Yf,iv as Qf,iw as Xf,ix as _f,iy as $f,iz as ey,iA as ty,iB as ny,iC as ay,iD as Qt,iE as ry,iF as sy,iG as Xt,iH as iy,iI as oy,iJ as cy,iK as uy,iL as dy,iM as ly,iN as py,iO as my,iP as fy,iQ as yy,iR as hy,iS as gy,iT as by,iU as wy,iV as vy,iW as Ty,iX as ky,iY as Sy,iZ as xy,i_ as Py,i$ as Ay,j0 as Cy,j1 as Ey,j2 as Iy,j3 as Oy,j4 as Dy,j5 as jy,j6 as Ry,j7 as My,j8 as Uy,j9 as Ny,ja as Ly,jb as By,jc as Fy,jd as Gy,je as Ky,jf as Hy,jg as zy,jh as Vy,ji as qy,jj as Wy,jk as Zy,jl as Jy,jm as Yy,jn as Qy,jo as Xy,jp as _y,jq as _t,jr as $y,js as eh,jt as th,ju as nh,jv as ah,jw as rh,jx as sh,jy as ih,jz as oh,jA as ch,jB as uh,jC as dh,jD as lh,jE as ph,jF as mh,jG as fh,jH as yh,jI as hh,jJ as gh,jK as bh,jL as wh,jM as vh,jN as Th,jO as kh,jP as Sh,jQ as xh,jR as Ph,jS as Ah,jT as Ch,jU as Eh,jV as Ih,jW as Oh,jX as Dh,jY as jh,jZ as Rh,j_ as Mh,j$ as $t,k0 as en,k1 as tn,k2 as nn,k3 as Uh,k4 as Nh,k5 as Lh,k6 as Bh,k7 as Fh,k8 as Gn,k9 as Gh,ka as Kh}from"./zoraTestnet-ChmlUfs6.js";import{i as Kn,r as ee,d as Hh}from"./verifyHash-CX9Livyx.js";import{c as zh,s as Vh,d as qh,g as Wh}from"./index-nibyPLVP.js";import{e as Ke,c as Hn}from"./hashTypedData-D1Ievn97.js";import{d as zn}from"./localBatchGatewayRequest-DbQn1s0J.js";import"./sha256-D33fGSQc.js";import"./sha2-D3ryOfi3.js";import"./hmac-BMnSt9Ou.js";import"./secp256k1-TIizaas9.js";import"./index-CYBDya_s.js";import"./browser-ponyfill-LG9Rjmfj.js";const Zh=Object.freeze(Object.defineProperty({__proto__:null,abey:ir,abstract:or,abstractTestnet:cr,acala:ur,acria:dr,adf:lr,adi:pr,agungTestnet:mr,aioz:fr,alephZero:yr,alephZeroTestnet:hr,alienx:gr,alienxHalTestnet:br,alpenTestnet:wr,ancient8:vr,ancient8Sepolia:Tr,anvil:kr,apeChain:Sr,apexTestnet:xr,apollo:Pr,arbitrum:On,arbitrumGoerli:Ar,arbitrumNova:Cr,arbitrumSepolia:Er,arcTestnet:Ir,arenaz:Or,areonNetwork:Dr,areonNetworkTestnet:jr,areum:Rr,artelaTestnet:Mr,arthera:Ur,artheraTestnet:Nr,assetChain:Lr,assetChainTestnet:Br,astar:Fr,astarZkEVM:Gr,astarZkyoto:Kr,atletaOlympia:Hr,aurora:zr,auroraTestnet:Vr,auroria:qr,autheoTestnet:Wr,avalanche:Dn,avalancheFuji:Zr,b3:Jr,b3Sepolia:Yr,bahamut:Qr,base:jn,baseGoerli:Xr,basePreconf:_r,baseSepolia:Rn,baseSepoliaPreconf:$r,basecampTestnet:es,battlechainTestnet:ts,beam:ns,beamTestnet:as,bearNetworkChainMainnet:rs,bearNetworkChainTestnet:ss,berachain:is,berachainBepolia:os,berachainTestnet:cs,berachainTestnetbArtio:us,bevmMainnet:ds,bifrost:ls,birdlayer:ps,bitTorrent:ms,bitTorrentTestnet:fs,bitgert:ys,bitkub:hs,bitkubTestnet:gs,bitlayer:bs,bitlayerTestnet:ws,bitrock:vs,blast:Ts,blastSepolia:ks,bob:Ss,bobSepolia:xs,boba:Ps,bobaSepolia:As,boolBetaMainnet:Cs,botanix:Es,botanixTestnet:Is,bounceBit:Os,bounceBitTestnet:Ds,bronos:js,bronosTestnet:Rs,bsc:Mn,bscGreenfield:Ms,bscTestnet:Us,bsquared:Ns,bsquaredTestnet:Ls,btr:Bs,btrTestnet:Fs,bxn:Gs,bxnTestnet:Ks,cannon:Hs,canto:zs,celo:Vs,celoAlfajores:qs,celoSepolia:Ws,chang:Zs,chiliz:Js,chips:Ys,citrea:Qs,citreaTestnet:Xs,classic:_s,codex:$s,codexTestnet:ei,coinbit:ti,coinex:ni,confluxESpace:ai,confluxESpaceTestnet:ri,coreDao:si,coreTestnet1:ii,coreTestnet2:oi,corn:ci,cornTestnet:ui,cpchain:di,crab:li,creatorTestnet:pi,creditCoin3Devnet:mi,creditCoin3Mainnet:fi,creditCoin3Testnet:yi,cronos:hi,cronosTestnet:gi,cronoszkEVM:bi,cronoszkEVMTestnet:wi,crossbell:vi,crossfi:Ti,curtis:ki,cyber:Si,cyberTestnet:xi,dailyNetwork:Pi,dailyNetworkTestnet:Ai,darwinia:Ci,datahavenTestnet:Ei,dbkchain:Ii,dchain:Oi,dchainTestnet:Di,defichainEvm:ji,defichainEvmTestnet:Ri,degen:Mi,dfk:Ui,diode:Ni,disChain:Li,dodochainTestnet:Bi,dogechain:Fi,domaTestnet:Gi,donatuz:Ki,dosChain:Hi,dosChainTestnet:zi,dreyerxMainnet:Vi,dreyerxTestnet:qi,dustboyIoT:Wi,dymension:Zi,eden:Ji,edexa:Yi,edexaTestnet:Qi,edgeless:Xi,edgelessTestnet:_i,edgeware:$i,edgewareTestnet:eo,eduChain:to,eduChainTestnet:no,elastos:ao,elastosTestnet:ro,electroneum:so,electroneumTestnet:io,elysiumTestnet:oo,energy:co,eni:uo,eniTestnet:lo,enuls:po,eon:mo,eos:fo,eosTestnet:yo,eteria:ho,etherlink:go,etherlinkShadownetTestnet:bo,etherlinkTestnet:wo,ethernity:vo,etp:To,evmos:ko,evmosTestnet:So,excelonMainnet:xo,expanse:Po,exsat:Ao,exsatTestnet:Co,fantom:Eo,fantomSonicTestnet:Io,fantomTestnet:Oo,fibo:Do,filecoin:jo,filecoinCalibration:Ro,filecoinHyperspace:Mo,fireChain:Uo,flame:No,flare:Lo,flareTestnet:Bo,flowMainnet:Fo,flowPreviewnet:Go,flowTestnet:Ko,fluence:Ho,fluenceStage:zo,fluenceTestnet:Vo,fluent:qo,fluentDevnet:Wo,fluentTestnet:Zo,form:Jo,formTestnet:Yo,forma:Qo,formicarium:Xo,forta:_o,foundry:$o,fraxtal:ec,fraxtalTestnet:tc,funkiMainnet:nc,funkiSepolia:ac,fuse:rc,fuseSparknet:sc,fusion:ic,fusionTestnet:oc,garnet:cc,gatechain:uc,geist:dc,genesys:lc,gensyn:pc,giwaSepolia:mc,giwaSepoliaPreconf:fc,glideL1Protocol:yc,glideL2Protocol:hc,gnosis:gc,gnosisChiado:bc,goChain:wc,goat:vc,gobi:Tc,godwoken:kc,goerli:Sc,graphite:xc,graphiteTestnet:Pc,gravity:Ac,gunz:Cc,guruNetwork:Ec,guruTestnet:Ic,ham:Oc,happychainTestnet:Dc,haqqMainnet:jc,haqqTestedge2:Rc,hardhat:Mc,harmonyOne:Uc,hashkey:Nc,hashkeyTestnet:Lc,haustTestnet:Bc,hedera:Fc,hederaPreviewnet:Gc,hederaTestnet:Kc,hela:Hc,heliosTestnet:zc,hemi:Vc,hemiSepolia:qc,henesys:Wc,holesky:Zc,hoodi:Jc,horizenTestnet:Yc,hpb:Qc,hpp:Xc,hppSepolia:_c,huddle01Mainnet:$c,huddle01Testnet:eu,humanity:tu,humanityTestnet:nu,humanode:au,humanodeTestnet5:ru,hychain:su,hychainTestnet:iu,hyperEvm:Jt,hyperliquid:Jt,hyperliquidEvmTestnet:ou,iSunCoin:cu,icbNetwork:uu,idchain:du,igra:lu,immutableZkEvm:pu,immutableZkEvmTestnet:mu,inEVM:fu,initVerse:yu,initVerseGenesis:hu,injective:gu,injectiveTestnet:bu,ink:wu,inkSepolia:vu,iota:Tu,iotaTestnet:ku,iotex:Su,iotexTestnet:xu,jasmyChain:Pu,jasmyChainTestnet:Au,jbc:Cu,jbcTestnet:Eu,jocMainnet:Iu,jocTestnet:Ou,jovay:Du,jovaySepolia:ju,juneo:Ru,juneoBCH1Chain:Mu,juneoDAI1Chain:Uu,juneoDOGE1Chain:Nu,juneoEUR1Chain:Lu,juneoGLD1Chain:Bu,juneoLINK1Chain:Fu,juneoLTC1Chain:Gu,juneoSGD1Chain:Ku,juneoSocotraTestnet:Hu,juneoUSD1Chain:zu,juneoUSDT1Chain:Vu,juneomBTC1Chain:qu,kaia:Wu,kairos:Zu,kakarotSepolia:Ju,kakarotStarknetSepolia:Yu,kardiaChain:Qu,karura:Xu,katana:_u,kava:$u,kavaTestnet:ed,kcc:td,kii:nd,kiiTestnetOro:ad,kinto:rd,klaytn:sd,klaytnBaobab:id,koi:od,kroma:cd,kromaSepolia:ud,krown:dd,l3x:ld,l3xTestnet:pd,lavita:md,lens:fd,lensTestnet:yd,lestnet:hd,lightlinkPegasus:gd,lightlinkPhoenix:bd,linea:wd,lineaGoerli:vd,lineaSepolia:Td,lineaTestnet:kd,lisk:Sd,liskSepolia:xd,loadAlphanet:Pd,localhost:Ad,loop:Cd,lukso:Ed,luksoTestnet:Id,lumiaMainnet:Od,lumiaTestnet:Dd,lumoz:jd,lumozTestnet:Rd,luxeports:Md,lycan:Ud,lyra:Nd,mainnet:Un,mandala:Ld,manta:Bd,mantaSepoliaTestnet:Fd,mantaTestnet:Gd,mantle:Kd,mantleSepoliaTestnet:Hd,mantleTestnet:zd,mantraDuKongEVMTestnet:Vd,mantraEVM:qd,mapProtocol:Wd,matchain:Zd,matchainTestnet:Jd,mchVerse:Yd,megaeth:Qd,megaethTestnet:Xd,mekong:_d,meld:$d,memecore:el,merlin:tl,merlinErigonTestnet:nl,metachain:al,metachainIstanbul:rl,metadium:sl,metalL2:il,meter:ol,meterTestnet:cl,metis:ul,metisGoerli:dl,metisSepolia:ll,mev:pl,mevTestnet:ml,mezo:fl,mezoTestnet:yl,mint:hl,mintSepoliaTestnet:gl,mitosisTestnet:bl,mode:wl,modeTestnet:vl,monad:Tl,monadTestnet:kl,moonbaseAlpha:Sl,moonbeam:xl,moonbeamDev:Pl,moonriver:Al,morph:Cl,morphHolesky:El,morphSepolia:Il,nahmii:Ol,nautilus:Dl,near:jl,nearTestnet:Rl,neonDevnet:Ml,neonMainnet:Ul,neoxMainnet:Nl,neoxT4:Ll,newton:Bl,nexi:Fl,nexilix:Gl,nibiru:Kl,nitrographTestnet:Hl,nomina:zl,oasisTestnet:Vl,oasys:ql,odysseyTestnet:Wl,okc:Zl,omax:Jl,omni:Yl,omniOmega:Ql,oneWorld:Xl,oortMainnetDev:_l,opBNB:$l,opBNBTestnet:ep,openledger:tp,optimism:Nn,optimismGoerli:np,optimismSepolia:Ln,optopia:ap,optopiaTestnet:rp,orderly:sp,orderlySepolia:ip,otimDevnet:op,palm:cp,palmTestnet:up,paseoPassetHub:dp,peaq:lp,pgn:pp,pgnTestnet:mp,phoenix:fp,planq:yp,plasma:hp,plasmaDevnet:gp,plasmaTestnet:bp,playfiAlbireo:wp,plinga:vp,plume:Tp,plumeDevnet:kp,plumeMainnet:Sp,plumeSepolia:xp,plumeTestnet:Pp,polterTestnet:Ap,polygon:Bn,polygonAmoy:Cp,polygonMumbai:Ep,polygonZkEvm:Ip,polygonZkEvmCardona:Op,polygonZkEvmTestnet:Dp,polynomial:jp,polynomialSepolia:Rp,potos:Mp,potosTestnet:Up,premiumBlockTestnet:Np,pulsechain:Lp,pulsechainV4:Bp,pumpfiTestnet:Fp,pyrope:Gp,qMainnet:Kp,qTestnet:Hp,ql1:zp,quai:Vp,quaiTestnet:qp,radius:Wp,radiusTestnet:Zp,reactiveTestnet:Jp,real:Yp,redbellyMainnet:Qp,redbellyTestnet:Xp,reddio:_p,reddioSepolia:$p,redstone:em,rei:tm,reyaNetwork:nm,rise:am,riseTestnet:rm,rivalz:sm,rollux:im,rolluxTestnet:om,ronin:cm,root:um,rootPorcini:dm,rootstock:lm,rootstockTestnet:pm,rss3:mm,rss3Sepolia:fm,saakuru:ym,saga:hm,saigon:gm,sanko:bm,sapphire:wm,sapphireTestnet:vm,satoshiVM:Tm,satoshiVMTestnet:km,scroll:Sm,scrollSepolia:xm,sei:Pm,seiTestnet:Am,seismicDevnet:Cm,sepolia:Fn,shape:Em,shapeSepolia:Im,shardeum:Om,shardeumSphinx:Dm,shibarium:jm,shibariumTestnet:Rm,shiden:Mm,shimmer:Um,shimmerTestnet:Nm,sidraChain:Lm,silentData:Bm,silicon:Fm,siliconSepolia:Gm,sixProtocol:Km,skaleBase:Hm,skaleBaseSepoliaTestnet:zm,skaleBlockBrawlers:Vm,skaleCalypso:qm,skaleCalypsoTestnet:Wm,skaleCryptoBlades:Zm,skaleCryptoColosseum:Jm,skaleEuropa:Ym,skaleEuropaTestnet:Qm,skaleExorde:Xm,skaleHumanProtocol:_m,skaleNebula:$m,skaleNebulaTestnet:ef,skaleRazor:tf,skaleTitan:nf,skaleTitanTestnet:af,sketchpad:rf,snax:sf,snaxTestnet:of,somnia:cf,somniaTestnet:uf,soneium:df,soneiumMinato:lf,songbird:pf,songbirdTestnet:mf,sonic:ff,sonicBlazeTestnet:yf,sonicTestnet:hf,sophon:gf,sophonTestnet:bf,sova:wf,sovaSepolia:vf,spicy:Tf,stable:kf,stableTestnet:Sf,statusNetworkSepolia:Yt,statusSepolia:Yt,step:xf,story:Pf,storyAeneid:Af,storyOdyssey:Cf,storyTestnet:Ef,stratis:If,subtensorEvm:Of,superlumio:Df,superposition:jf,superseed:Rf,superseedSepolia:Mf,surgeTestnet:Uf,swan:Nf,swanProximaTestnet:Lf,swanSaturnTestnet:Bf,swellchain:Ff,swellchainTestnet:Gf,swissdlt:Kf,syscoin:Hf,syscoinTestnet:zf,tac:Vf,tacSPB:qf,taiko:Wf,taikoHekla:Zf,taikoHoodi:Jf,taikoJolnir:Yf,taikoKatla:Qf,taikoTestnetSepolia:Xf,taraxa:_f,taraxaTestnet:$f,teaSepolia:ey,telcoinTestnet:ty,telos:ny,telosTestnet:ay,tempo:Qt,tempoDevnet:ry,tempoLocalnet:sy,tempoMainnet:Qt,tempoModerato:Xt,tempoTestnet:Xt,tenet:iy,ternoa:oy,thaiChain:cy,that:uy,theta:dy,thetaTestnet:ly,thunderCore:py,thunderTestnet:my,tiktrixTestnet:fy,tomb:yy,treasure:hy,treasureTopaz:gy,tron:by,tronNile:wy,tronShasta:vy,ubiq:Ty,ultra:ky,ultraTestnet:Sy,ultron:xy,ultronTestnet:Py,unichain:Ay,unichainSepolia:Cy,unique:Ey,uniqueOpal:Iy,uniqueQuartz:Oy,unreal:Dy,vana:jy,vanaMoksha:Ry,vanar:My,vechain:Uy,velas:Ny,viction:Ly,victionTestnet:By,vision:Fy,visionTestnet:Gy,wanchain:Ky,wanchainTestnet:Hy,weaveVMAlphanet:zy,wemix:Vy,wemixTestnet:qy,westendAssetHub:Wy,whitechain:Zy,whitechainTestnet:Jy,wmcTestnet:Yy,worldLand:Qy,worldchain:Xy,worldchainSepolia:_y,x1Testnet:_t,xLayer:$y,xLayerTestnet:_t,xai:eh,xaiTestnet:th,xdc:nh,xdcTestnet:ah,xgr:rh,xoneMainnet:sh,xoneTestnet:ih,xphereMainnet:oh,xphereTestnet:ch,xpla:uh,xrOne:dh,xrSepolia:lh,xrplevm:ph,xrplevmDevnet:mh,xrplevmTestnet:fh,yooldoVerse:yh,yooldoVerseTestnet:hh,zenchainTestnet:gh,zeniq:bh,zeroG:wh,zeroGGalileoTestnet:vh,zeroGMainnet:Th,zeroGTestnet:kh,zeroNetwork:Sh,zetachain:xh,zetachainAthensTestnet:Ph,zhejiang:Ah,zilliqa:Ch,zilliqaTestnet:Eh,zircuit:Ih,zircuitGarfieldTestnet:Oh,zkFair:Dh,zkFairTestnet:jh,zkLinkNova:Rh,zkLinkNovaSepoliaTestnet:Mh,zkSync:$t,zkSyncInMemoryNode:en,zkSyncLocalNode:tn,zkSyncSepoliaTestnet:nn,zkXPLA:Uh,zkXPLATestnet:Nh,zksync:$t,zksyncInMemoryNode:en,zksyncLocalCustomHyperchain:Lh,zksyncLocalHyperchain:Bh,zksyncLocalHyperchainL1:Fh,zksyncLocalNode:tn,zksyncSepoliaTestnet:nn,zora:Gn,zoraSepolia:Gh,zoraTestnet:Kh},Symbol.toStringTag,{value:"Module"}));async function Jh(e,t){const{account:n=e.account,chainId:a,nonce:r}=t;if(!n)throw new Ge({docsPath:"/docs/eip7702/prepareAuthorization"});const s=me(n),c=(()=>{if(t.executor)return t.executor==="self"?t.executor:me(t.executor)})(),o={address:t.contractAddress??t.address,chainId:a,nonce:r};return typeof o.chainId>"u"&&(o.chainId=e.chain?.id??await G(e,Rt,"getChainId")({})),typeof o.nonce>"u"&&(o.nonce=await G(e,qa,"getTransactionCount")({address:s.address,blockTag:"pending"}),(c==="self"||c?.address&&Mt(c.address,s.address))&&(o.nonce+=1)),o}const Yh="@base-org/account",Qh="2.4.0",Vn={name:Yh,version:Qh},Xh="https://keys.coinbase.com/connect",Ae="https://rpc.wallet.coinbase.com",He=Vn.name,ce=Vn.version;function qn(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var s;const c=i=>i===null?null:JSON.parse(i,void 0),o=(s=n.getItem(r))!=null?s:null;return o instanceof Promise?o.then(c):c(o)},setItem:(r,s)=>n.setItem(r,JSON.stringify(s,void 0)),removeItem:r=>n.removeItem(r)}}const nt=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(a){return nt(a)(n)},catch(a){return this}}}catch(n){return{then(a){return this},catch(a){return nt(a)(n)}}}},_h=(e,t)=>(n,a,r)=>{let s={storage:qn(()=>localStorage),partialize:y=>y,version:0,merge:(y,h)=>({...h,...y}),...t},c=!1;const o=new Set,i=new Set;let u=s.storage;if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...y)},a,r);const d=()=>{const y=s.partialize({...a()});return u.setItem(s.name,{state:y,version:s.version})},m=r.setState;r.setState=(y,h)=>{m(y,h),d()};const l=e((...y)=>{n(...y),d()},a,r);r.getInitialState=()=>l;let f;const p=()=>{var y,h;if(!u)return;c=!1,o.forEach(v=>{var w;return v((w=a())!=null?w:l)});const k=((h=s.onRehydrateStorage)==null?void 0:h.call(s,(y=a())!=null?y:l))||void 0;return nt(u.getItem.bind(u))(s.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==s.version){if(s.migrate){const w=s.migrate(v.state,v.version);return w instanceof Promise?w.then(O=>[!0,O]):[!0,w]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var w;const[O,M]=v;if(f=s.merge(M,(w=a())!=null?w:l),n(f,!0),O)return d()}).then(()=>{k?.(f,void 0),f=a(),c=!0,i.forEach(v=>v(f))}).catch(v=>{k?.(void 0,v)})};return r.persist={setOptions:y=>{s={...s,...y},y.storage&&(u=y.storage)},clearStorage:()=>{u?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>c,onHydrate:y=>(o.add(y),()=>{o.delete(y)}),onFinishHydration:y=>(i.add(y),()=>{i.delete(y)})},s.skipHydration||p(),f||l},$h=_h,an=e=>{let t;const n=new Set,a=(u,d)=>{const m=typeof u=="function"?u(t):u;if(!Object.is(m,t)){const l=t;t=d??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(f=>f(t,l))}},r=()=>t,o={setState:a,getState:r,getInitialState:()=>i,subscribe:u=>(n.add(u),()=>n.delete(u))},i=t=e(a,r,o);return o},Ut=e=>e?an(e):an,eg=()=>({chains:[]}),tg=()=>({keys:{}}),ng=()=>({account:{}}),ag=()=>({subAccount:void 0}),rg=()=>({subAccountConfig:{}}),sg=()=>({spendPermissions:[]}),ig=()=>({config:{version:ce}}),R=Ut($h((...e)=>({...eg(...e),...tg(...e),...ng(...e),...ag(...e),...sg(...e),...ig(...e),...rg(...e)}),{name:"base-acc-sdk.store",storage:qn(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})})),og={get:()=>R.getState().subAccountConfig,set:e=>{R.setState(t=>({subAccountConfig:{...t.subAccountConfig,...e}}))},clear:()=>{R.setState({subAccountConfig:{}})}},cg={get:()=>R.getState().subAccount,set:e=>{R.setState(t=>({subAccount:t.subAccount?{...t.subAccount,...e}:{address:e.address,...e}}))},clear:()=>{R.setState({subAccount:void 0})}},Nt={get:()=>R.getState().spendPermissions,set:e=>{R.setState({spendPermissions:e})},clear:()=>{R.setState({spendPermissions:[]})}},ug={get:()=>R.getState().account,set:e=>{R.setState(t=>({account:{...t.account,...e}}))},clear:()=>{R.setState({account:{}})}},dg={get:()=>R.getState().chains,set:e=>{R.setState({chains:e})},clear:()=>{R.setState({chains:[]})}},lg={get:e=>R.getState().keys[e],set:(e,t)=>{R.setState(n=>({keys:{...n.keys,[e]:t}}))},clear:()=>{R.setState({keys:{}})}},Wn={get:()=>R.getState().config,set:e=>{R.setState(t=>({config:{...t.config,...e}}))}},pg={subAccounts:cg,subAccountsConfig:og,spendPermissions:Nt,account:ug,chains:dg,keys:lg,config:Wn},g={...R,...pg},mg='!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClientAnalytics=t():e.ClientAnalytics=t()}(this,(function(){return(()=>{var e={792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},562:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\\/]/gi,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},335:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},762:(e,t,n)=>{var r,i,a,o,s;r=n(562),i=n(792).utf8,a=n(335),o=n(792).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,d=-1732584194,p=271733878,m=0;m<n.length;m++)n[m]=16711935&(n[m]<<8|n[m]>>>24)|4278255360&(n[m]<<24|n[m]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var f=s._ff,v=s._gg,g=s._hh,b=s._ii;for(m=0;m<n.length;m+=16){var h=u,w=l,y=d,T=p;u=f(u,l,d,p,n[m+0],7,-680876936),p=f(p,u,l,d,n[m+1],12,-389564586),d=f(d,p,u,l,n[m+2],17,606105819),l=f(l,d,p,u,n[m+3],22,-1044525330),u=f(u,l,d,p,n[m+4],7,-176418897),p=f(p,u,l,d,n[m+5],12,1200080426),d=f(d,p,u,l,n[m+6],17,-1473231341),l=f(l,d,p,u,n[m+7],22,-45705983),u=f(u,l,d,p,n[m+8],7,1770035416),p=f(p,u,l,d,n[m+9],12,-1958414417),d=f(d,p,u,l,n[m+10],17,-42063),l=f(l,d,p,u,n[m+11],22,-1990404162),u=f(u,l,d,p,n[m+12],7,1804603682),p=f(p,u,l,d,n[m+13],12,-40341101),d=f(d,p,u,l,n[m+14],17,-1502002290),u=v(u,l=f(l,d,p,u,n[m+15],22,1236535329),d,p,n[m+1],5,-165796510),p=v(p,u,l,d,n[m+6],9,-1069501632),d=v(d,p,u,l,n[m+11],14,643717713),l=v(l,d,p,u,n[m+0],20,-373897302),u=v(u,l,d,p,n[m+5],5,-701558691),p=v(p,u,l,d,n[m+10],9,38016083),d=v(d,p,u,l,n[m+15],14,-660478335),l=v(l,d,p,u,n[m+4],20,-405537848),u=v(u,l,d,p,n[m+9],5,568446438),p=v(p,u,l,d,n[m+14],9,-1019803690),d=v(d,p,u,l,n[m+3],14,-187363961),l=v(l,d,p,u,n[m+8],20,1163531501),u=v(u,l,d,p,n[m+13],5,-1444681467),p=v(p,u,l,d,n[m+2],9,-51403784),d=v(d,p,u,l,n[m+7],14,1735328473),u=g(u,l=v(l,d,p,u,n[m+12],20,-1926607734),d,p,n[m+5],4,-378558),p=g(p,u,l,d,n[m+8],11,-2022574463),d=g(d,p,u,l,n[m+11],16,1839030562),l=g(l,d,p,u,n[m+14],23,-35309556),u=g(u,l,d,p,n[m+1],4,-1530992060),p=g(p,u,l,d,n[m+4],11,1272893353),d=g(d,p,u,l,n[m+7],16,-155497632),l=g(l,d,p,u,n[m+10],23,-1094730640),u=g(u,l,d,p,n[m+13],4,681279174),p=g(p,u,l,d,n[m+0],11,-358537222),d=g(d,p,u,l,n[m+3],16,-722521979),l=g(l,d,p,u,n[m+6],23,76029189),u=g(u,l,d,p,n[m+9],4,-640364487),p=g(p,u,l,d,n[m+12],11,-421815835),d=g(d,p,u,l,n[m+15],16,530742520),u=b(u,l=g(l,d,p,u,n[m+2],23,-995338651),d,p,n[m+0],6,-198630844),p=b(p,u,l,d,n[m+7],10,1126891415),d=b(d,p,u,l,n[m+14],15,-1416354905),l=b(l,d,p,u,n[m+5],21,-57434055),u=b(u,l,d,p,n[m+12],6,1700485571),p=b(p,u,l,d,n[m+3],10,-1894986606),d=b(d,p,u,l,n[m+10],15,-1051523),l=b(l,d,p,u,n[m+1],21,-2054922799),u=b(u,l,d,p,n[m+8],6,1873313359),p=b(p,u,l,d,n[m+15],10,-30611744),d=b(d,p,u,l,n[m+6],15,-1560198380),l=b(l,d,p,u,n[m+13],21,1309151649),u=b(u,l,d,p,n[m+4],6,-145523070),p=b(p,u,l,d,n[m+11],10,-1120210379),d=b(d,p,u,l,n[m+2],15,718787259),l=b(l,d,p,u,n[m+9],21,-343485551),u=u+h>>>0,l=l+w>>>0,d=d+y>>>0,p=p+T>>>0}return r.endian([u,l,d,p])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Perfume:()=>ze,incrementUjNavigation:()=>Le,markStep:()=>Re,markStepOnce:()=>qe});var r,i,a={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{},enableNavigationTracking:!0},o=window,s=o.console,c=o.navigator,u=o.performance,l=function(){return c.deviceMemory},d=function(){return c.hardwareConcurrency},p="mark.",m=function(){return u&&!!u.getEntriesByType&&!!u.now&&!!u.mark},f="4g",v=!1,g={},b={value:0},h={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},w={value:0},y={value:0},T={},k={isHidden:!1,didChange:!1},_=function(){k.isHidden=!1,document.hidden&&(k.isHidden=document.hidden,k.didChange=!0)},S=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){s.warn("Perfume.js:",e)}return null},E=function(){return!!(d()&&d()<=4)||!!(l()&&l()<=4)},x=function(e,t){switch(e){case"slow-2g":case"2g":case"3g":return!0;default:return E()||t}},O=function(e){return parseFloat(e.toFixed(4))},j=function(e){return"number"!=typeof e?null:O(e/Math.pow(1024,2))},N=function(e,t,n,r,i){var s,u=function(){a.analyticsTracker&&(k.isHidden&&!["CLS","INP"].includes(e)||a.analyticsTracker({attribution:r,metricName:e,data:t,navigatorInformation:c?{deviceMemory:l()||0,hardwareConcurrency:d()||0,serviceWorkerStatus:"serviceWorker"in c?c.serviceWorker.controller?"controlled":"supported":"unsupported",isLowEndDevice:E(),isLowEndExperience:x(f,v)}:{},rating:n,navigationType:i}))};["CLS","INP"].includes(e)?u():(s=u,"requestIdleCallback"in o?o.requestIdleCallback(s,{timeout:3e3}):s())},I=function(e){e.forEach((function(e){if(!("self"!==e.name||e.startTime<b.value)){var t=e.duration-50;t>0&&(w.value+=t,y.value+=t)}}))};!function(e){e.instant="instant",e.quick="quick",e.moderate="moderate",e.slow="slow",e.unavoidable="unavoidable"}(r||(r={}));var P,M,B,C,D,A=((i={})[r.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},i[r.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},i[r.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},i[r.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},i[r.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4},i),L={RT:[100,200],TBT:[200,600],NTBT:[200,600]},U=function(e,t){return L[e]?t<=L[e][0]?"good":t<=L[e][1]?"needsImprovement":"poor":null},R=function(e,t,n){Object.keys(t).forEach((function(e){"number"==typeof t[e]&&(t[e]=O(t[e]))})),N(e,t,null,n||{})},q=function(e){var t=e.attribution,n=e.name,r=e.rating,i=e.value,o=e.navigationType;"FCP"===n&&(b.value=i),["FCP","LCP"].includes(n)&&!T[0]&&(T[0]=S("longtask",I)),"FID"===n&&setTimeout((function(){k.didChange||(q({attribution:t,name:"TBT",rating:U("TBT",w.value),value:w.value,navigationType:o}),R("dataConsumption",h.value))}),1e4);var s=O(i);s<=a.maxTime&&s>=0&&N(n,s,r,t,o)},F=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},z=function(e){if("loading"===document.readyState)return"loading";var t=F();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},$=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:K(r)+(r.className&&r.className.length?"."+r.className.replace(/\\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},Q=-1,W=function(){return Q},H=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Q=t.timeStamp,e(t))}),!0)},V=function(){var e=F();return e&&e.activationStart||0},J=function(e,t){var n=F(),r="navigate";return W()>=0?r="back-forward-cache":n&&(r=document.prerendering||V()>0?"prerender":document.wasDiscarded?"restore":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},X=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},G=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Z=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},Y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ee=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},te=-1,ne=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){"hidden"===document.visibilityState&&te>-1&&(te="visibilitychange"===e.type?e.timeStamp:0,ae())},ie=function(){addEventListener("visibilitychange",re,!0),addEventListener("prerenderingchange",re,!0)},ae=function(){removeEventListener("visibilitychange",re,!0),removeEventListener("prerenderingchange",re,!0)},oe=function(){return te<0&&(te=ne(),ie(),H((function(){setTimeout((function(){te=ne(),ie()}),0)}))),{get firstHiddenTime(){return te}}},se=function(e,t){t=t||{},ee((function(){var n,r=[1800,3e3],i=oe(),a=J("FCP"),o=X("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=Z(e,a,r,t.reportAllChanges),H((function(i){a=J("FCP"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},ce={passive:!0,capture:!0},ue=new Date,le=function(e,t){P||(P=t,M=e,B=new Date,me(removeEventListener),de())},de=function(){if(M>=0&&M<B-ue){var e={entryType:"first-input",name:P.type,target:P.target,cancelable:P.cancelable,startTime:P.timeStamp,processingStart:P.timeStamp+M};C.forEach((function(t){t(e)})),C=[]}},pe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){le(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,ce),removeEventListener("pointercancel",r,ce)};addEventListener("pointerup",n,ce),addEventListener("pointercancel",r,ce)}(t,e):le(t,e)}},me=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,pe,ce)}))},fe=0,ve=1/0,ge=0,be=function(e){e.forEach((function(e){e.interactionId&&(ve=Math.min(ve,e.interactionId),ge=Math.max(ge,e.interactionId),fe=ge?(ge-ve)/7+1:0)}))},he=function(){return D?fe:performance.interactionCount||0},we=0,ye=function(){return he()-we},Te=[],ke={},_e=function(e){var t=Te[Te.length-1],n=ke[e.interactionId];if(n||Te.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ke[r.id]=r,Te.push(r)}Te.sort((function(e,t){return t.latency-e.latency})),Te.splice(10).forEach((function(e){delete ke[e.id]}))}},Se={},Ee=function e(t){document.prerendering?ee((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},xe=function(e,t){t=t||{};var n=[800,1800],r=J("TTFB"),i=Z(e,r,n,t.reportAllChanges);Ee((function(){var a=F();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-V(),0),r.entries=[a],i(!0),H((function(){r=J("TTFB",0),(i=Z(e,r,n,t.reportAllChanges))(!0)}))}}))},Oe=function(e){e.forEach((function(e){e.identifier&&q({attribution:{identifier:e.identifier},name:"ET",rating:null,value:e.startTime})}))},je=function(e){e.forEach((function(e){if(a.isResourceTiming&&R("resourceTiming",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;h.value[e.initiatorType]+=t,h.value.total+=t}}))},Ne=function(){!function(e,t){xe((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&q(e)}(e)}),t)}(0,a.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},ee((function(){var e,n=[.1,.25],r=J("CLS"),i=-1,a=0,o=[],s=function(e){i>-1&&function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:$(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:z(t.startTime)})}}var r;e.attribution={}}(e),function(e){q(e)}(e)}(e)},c=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=o[0],i=o[o.length-1];a&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(a+=t.value,o.push(t)):(a=t.value,o=[t]),a>r.value&&(r.value=a,r.entries=o,e())}}))},u=X("layout-shift",c);u&&(e=Z(s,r,n,t.reportAllChanges),se((function(t){i=t.value,r.value<0&&(r.value=0,e())})),G((function(){c(u.takeRecords()),e(!0)})),H((function(){a=0,i=-1,r=J("CLS",0),e=Z(s,r,n,t.reportAllChanges),Y((function(){return e()}))})))}))}(0,t)}(0,a.reportOptions.cls),function(e,t){se((function(e){!function(e){if(e.entries.length){var t=F(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:z(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:z(W())}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[100,300],i=oe(),a=J("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},s=function(e){e.forEach(o)},c=X("first-input",s);n=Z(e,a,r,t.reportAllChanges),c&&G((function(){s(c.takeRecords()),c.disconnect()}),!0),c&&H((function(){var i;a=J("FID"),n=Z(e,a,r,t.reportAllChanges),C=[],M=-1,P=null,me(addEventListener),i=o,C.push(i),de()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fid),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[2500,4e3],i=oe(),a=J("LCP"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-V(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},s=X("largest-contentful-paint",o);if(s){n=Z(e,a,r,t.reportAllChanges);var c=function(){Se[a.id]||(o(s.takeRecords()),s.disconnect(),Se[a.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),G(c,!0),H((function(i){a=J("LCP"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,Se[a.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=F();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===r.url}))[0],a=Math.max(0,t.responseStart-n),o=Math.max(a,i?(i.requestStart||i.startTime)-n:0),s=Math.max(o,i?i.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:$(r.element),timeToFirstByte:a,resourceLoadDelay:o-a,resourceLoadTime:s-o,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),i&&(u.lcpResourceEntry=i),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n=[200,500];"interactionCount"in performance||D||(D=X("event",be,{type:"event",buffered:!0,durationThreshold:0}));var r,i=J("INP"),a=function(e){e.forEach((function(e){e.interactionId&&_e(e),"first-input"===e.entryType&&!Te.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&_e(e)}));var t,n=(t=Math.min(Te.length-1,Math.floor(ye()/50)),Te[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=X("event",a,{durationThreshold:t.durationThreshold||40});r=Z(e,i,n,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),G((function(){a(o.takeRecords()),i.value<0&&ye()>0&&(i.value=0,i.entries=[]),r(!0)})),H((function(){Te=[],we=he(),i=J("INP"),r=Z(e,i,n,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return q(e)}),a.reportOptions.inp),a.isResourceTiming&&S("resource",je),a.isElementTiming&&S("element",Oe)},Ie=function(e){var t="usageDetails"in e?e.usageDetails:{};R("storageEstimate",{quota:j(e.quota),usage:j(e.usage),caches:j(t.caches),indexedDB:j(t.indexedDB),serviceWorker:j(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}},Me=function(e){delete Pe.active[e]},Be=function(){return Pe.navigationSteps},Ce=function(e){var t;return null!==(t=Be()[e])&&void 0!==t?t:{}},De=function(e,t,n){var r="step."+e,i=u.getEntriesByName(p+t).length>0;if(u.getEntriesByName(p+n).length>0&&a.steps){var o=A[a.steps[e].threshold],s=o.maxOutlierThreshold,c=o.vitalsThresholds;if(i){var l=u.measure(r,p+t,p+n),d=l.duration;if(d<=s){var m=function(e,t){return e<=t[0]?"good":e<=t[1]?"needsImprovement":"poor"}(d,c);d>=0&&(N("userJourneyStep",d,m,{stepName:e},void 0),u.measure("step.".concat(e,"_vitals_").concat(m),{start:l.startTime+l.duration,end:l.startTime+l.duration,detail:{type:"stepVital",duration:d}}))}}}},Ae=function(){var e=Be(),t=Pe.startMarkToStepsMap,n=Object.keys(e).length;if(0===n)return{};var r={},i=n-1,a=Ce(i);if(Object.keys(a).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))})),n>1){var o=Ce(i-1);Object.keys(o).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))}))}return r},Le=function(){var e,t=Object.keys(Pe.navigationSteps).length;Pe.navigationSteps[t]={};var n=Ae();null===(e=a.onMarkStep)||void 0===e||e.call(a,"",Object.keys(n))},Ue=function(e){var t,n,r,i,o,s,c;if(Pe.finalMarkToStepsMap[e]){!function(e){var t=Pe.navigationSteps,n=Pe.finalMarkToStepsMap,r=Object.keys(t).length;if(0!==r){var i=r-1,a=Ce(i);if(a&&n[e]){var o=n[e];o&&Object.keys(o).forEach((function(e){if(a[e]){var n=Ce(i)||{};n[e]=!1,t[i]=n}if(r>1){var o=i-1,s=Ce(o);s[e]&&(s[e]=!1,t[o]=s)}}))}}}(e);var u=Pe.finalMarkToStepsMap[e];Object.keys(u).forEach((function(t){var n=u[t];n.forEach(Me),Promise.all(n.map((function(n){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{o(r.next(e))}catch(e){t(e)}}function a(e){try{o(r.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}o((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){switch(r.label){case 0:return[4,De(n,t,e)];case 1:return r.sent(),[2]}}))}))}))).catch((function(){}))}))}else r=e,i=Pe.navigationSteps,o=Object.keys(i).length,(c=Ce(s=(o>0?o:1)-1)||[])[r]=!0,i[s]=c,function(e){var t,n=null!==(t=Pe.startMarkToStepsMap[e])&&void 0!==t?t:[];Object.keys(n).forEach((function(e){Pe.active[e]||(Pe.active[e]=!0)}))}(e);if(a.enableNavigationTracking){var l=Ae();null===(t=a.onMarkStep)||void 0===t||t.call(a,e,Object.keys(l))}else null===(n=a.onMarkStep)||void 0===n||n.call(a,e,Object.keys(Pe.active))},Re=function(e){u.mark(p+e),Ue(e)},qe=function(e){0===u.getEntriesByName(p+e).length&&(u.mark(p+e),Ue(e))},Fe=0,ze=function(){function e(e){if(void 0===e&&(e={}),this.v="9.0.0-rc.3",a.analyticsTracker=e.analyticsTracker,a.isResourceTiming=!!e.resourceTiming,a.isElementTiming=!!e.elementTiming,a.maxTime=e.maxMeasureTime||a.maxTime,a.reportOptions=e.reportOptions||a.reportOptions,a.steps=e.steps,a.onMarkStep=e.onMarkStep,a.enableNavigationTracking=e.enableNavigationTracking,m()){"PerformanceObserver"in o&&Ne(),void 0!==document.hidden&&document.addEventListener("visibilitychange",_);var t=function(){if(!m())return{};var e=u.getEntriesByType("navigation")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();R("navigationTiming",t),t.redirectTime&&q({attribution:{},name:"RT",rating:U("RT",t.redirectTime),value:t.redirectTime}),R("networkInformation",function(){if("connection"in c){var e=c.connection;return"object"!=typeof e?{}:(f=e.effectiveType,v=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),c&&c.storage&&"function"==typeof c.storage.estimate&&c.storage.estimate().then(Ie),a.steps&&a.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(a.steps).forEach((function(e){var t,n,r=e[0],i=e[1].marks,a=i[0],o=i[1],s=null!==(n=Pe.startMarkToStepsMap[a])&&void 0!==n?n:{};if(s[r]=!0,Pe.startMarkToStepsMap[a]=s,Pe.finalMarkToStepsMap[o]){var c=Pe.finalMarkToStepsMap[o][a]||[];c.push(r),Pe.finalMarkToStepsMap[o][a]=c}else Pe.finalMarkToStepsMap[o]=((t={})[a]=[r],t)})))}}return e.prototype.start=function(e){m()&&!g[e]&&(g[e]=!0,u.mark("mark_".concat(e,"_start")))},e.prototype.end=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),m()&&g[e]){u.mark("mark_".concat(e,"_end")),delete g[e];var r=function(e){u.measure(e,"mark_".concat(e,"_start"),"mark_".concat(e,"_end"));var t=u.getEntriesByName(e).pop();return t&&"measure"===t.entryType?t.duration:-1}(e);n&&R(e,O(r),t)}},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete g[e],u.clearMarks&&(u.clearMarks("mark_".concat(e,"_start")),u.clearMarks("mark_".concat(e,"_end")))},e.prototype.markNTBT=function(){var e=this;this.start("ntbt"),y.value=0,clearTimeout(Fe),Fe=setTimeout((function(){e.end("ntbt",{},!1),q({attribution:{},name:"NTBT",rating:U("NTBT",y.value),value:y.value}),y.value=0}),2e3)},e}()},426:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=a.prototype;var c=s.prototype=new o;c.constructor=s,r(c,a.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;var u={current:null};t.useCallback=function(e,t){return u.current.useCallback(e,t)},t.useEffect=function(e,t){return u.current.useEffect(e,t)},t.useRef=function(e){return u.current.useRef(e)}},784:(e,t,n)=>{"use strict";e.exports=n(426)},353:function(e,t,n){var r;!function(i,a){"use strict";var o="function",s="undefined",c="object",u="string",l="major",d="model",p="name",m="type",f="vendor",v="version",g="architecture",b="console",h="mobile",w="tablet",y="smarttv",T="wearable",k="embedded",_="Amazon",S="Apple",E="ASUS",x="BlackBerry",O="Browser",j="Chrome",N="Firefox",I="Google",P="Huawei",M="LG",B="Microsoft",C="Motorola",D="Opera",A="Samsung",L="Sharp",U="Sony",R="Xiaomi",q="Zebra",F="Facebook",z="Chromium OS",K="Mac OS",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\\s\\s*/,""),typeof t===s?e:e.substring(0,350)},V=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<m.length;i++)l=u[++r],typeof(s=m[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return"?"===n?a:n}else if(Q(t[n],e))return"?"===n?a:n;return e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},G={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[v,[p,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[v,[p,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[p,v],[/opios[\\/ ]+([\\w\\.]+)/i],[v,[p,D+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[v,[p,D]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(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,/(heytap|ovi)browser\\/([\\d\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[p,v],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[v,[p,"UC"+O]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[v,[p,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[v,[p,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[v,[p,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[v,[p,"IE"]],[/ya(?:search)?browser\\/([\\w\\.]+)/i],[v,[p,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[p,/(.+)/,"$1 Secure "+O],v],[/\\bfocus\\/([\\w\\.]+)/i],[v,[p,N+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[v,[p,D+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[v,[p,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[v,[p,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[v,[p,D+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[v,[p,"MIUI "+O]],[/fxios\\/([-\\w\\.]+)/i],[v,[p,N]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[p,/(.+)/,"$1 "+O],v],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[p,/_/g," "],v],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[p,v],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[p],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[p,F],v],[/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[p,v],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[v,[p,"GSA"]],[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],[v,[p,"TikTok"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[v,[p,j+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[p,j+" WebView"],v],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[v,[p,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[p,v],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[v,[p,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[p,[v,J,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[p,v],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[p,"Netscape"],v],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[v,[p,N+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\\/([\\w\\.]+)/i],[p,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\\)]/i],[[g,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[g,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[g,/ower/,"",W]],[/(sun4\\w)[;\\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[g,W]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,A],[m,w]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[d,[f,A],[m,h]],[/(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i],[d,[f,S],[m,h]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[d,[f,S],[m,w]],[/(macintosh);/i],[d,[f,S]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[d,[f,L],[m,h]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[d,[f,P],[m,w]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[d,[f,P],[m,h]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[d,/_/g," "],[f,R],[m,h]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[d,/_/g," "],[f,R],[m,w]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[d,[f,"OPPO"],[m,h]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[d,[f,"Vivo"],[m,h]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[d,[f,"Realme"],[m,h]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[d,[f,C],[m,h]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[d,[f,C],[m,w]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,M],[m,w]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[d,[f,M],[m,h]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[d,[f,"Lenovo"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[d,/_/g," "],[f,"Nokia"],[m,h]],[/(pixel c)\\b/i],[d,[f,I],[m,w]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[d,[f,I],[m,h]],[/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],[d,[f,U],[m,h]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[d,"Xperia Tablet"],[f,U],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[d,[f,"OnePlus"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[d,[f,_],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[d,/(.+)/g,"Fire Phone $1"],[f,_],[m,h]],[/(playbook);[-\\w\\),; ]+(rim)/i],[d,f,[m,w]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[d,[f,x],[m,h]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[d,[f,E],[m,h]],[/(nexus 9)/i],[d,[f,"HTC"],[m,w]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i],[f,[d,/_/g," "],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[d,[f,"Acer"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[d,[f,"Meizu"],[m,h]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[f,d,[m,h]],[/(kobo)\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[f,d,[m,w]],[/(surface duo)/i],[d,[f,B],[m,w]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[d,[f,"Fairphone"],[m,h]],[/(u304aa)/i],[d,[f,"AT&T"],[m,h]],[/\\bsie-(\\w*)/i],[d,[f,"Siemens"],[m,h]],[/\\b(rct\\w+) b/i],[d,[f,"RCA"],[m,w]],[/\\b(venue[\\d ]{2,7}) b/i],[d,[f,"Dell"],[m,w]],[/\\b(q(?:mv|ta)\\w+) b/i],[d,[f,"Verizon"],[m,w]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[d,[f,"Barnes & Noble"],[m,w]],[/\\b(tm\\d{3}\\w+) b/i],[d,[f,"NuVision"],[m,w]],[/\\b(k88) b/i],[d,[f,"ZTE"],[m,w]],[/\\b(nx\\d{3}j) b/i],[d,[f,"ZTE"],[m,h]],[/\\b(gen\\d{3}) b.+49h/i],[d,[f,"Swiss"],[m,h]],[/\\b(zur\\d{3}) b/i],[d,[f,"Swiss"],[m,w]],[/\\b((zeki)?tb.*\\b) b/i],[d,[f,"Zeki"],[m,w]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[f,"Dragon Touch"],d,[m,w]],[/\\b(ns-?\\w{0,9}) b/i],[d,[f,"Insignia"],[m,w]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[d,[f,"NextBook"],[m,w]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],d,[m,h]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[f,"LvTel"],d,[m,h]],[/\\b(ph-1) /i],[d,[f,"Essential"],[m,h]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[d,[f,"Envizen"],[m,w]],[/\\b(trio[-\\w\\. ]+) b/i],[d,[f,"MachSpeed"],[m,w]],[/\\btu_(1491) b/i],[d,[f,"Rotor"],[m,w]],[/(shield[\\w ]+) b/i],[d,[f,"Nvidia"],[m,w]],[/(sprint) (\\w+)/i],[f,d,[m,h]],[/(kin\\.[onetw]{3})/i],[[d,/\\./g," "],[f,B],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[d,[f,q],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[d,[f,q],[m,h]],[/smart-tv.+(samsung)/i],[f,[m,y]],[/hbbtv.+maple;(\\d+)/i],[[d,/^/,"SmartTV"],[f,A],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[f,M],[m,y]],[/(apple) ?tv/i],[f,[d,S+" TV"],[m,y]],[/crkey/i],[[d,j+"cast"],[f,I],[m,y]],[/droid.+aft(\\w)( bui|\\))/i],[d,[f,_],[m,y]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[d,[f,L],[m,y]],[/(bravia[\\w ]+)( bui|\\))/i],[d,[f,U],[m,y]],[/(mitv-\\w{5}) bui/i],[d,[f,R],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[m,y]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i],[[f,H],[d,H],[m,y]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[m,b]],[/droid.+; (shield) bui/i],[d,[f,"Nvidia"],[m,b]],[/(playstation [345portablevi]+)/i],[d,[f,U],[m,b]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[d,[f,B],[m,b]],[/((pebble))app/i],[f,d,[m,T]],[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],[d,[f,S],[m,T]],[/droid.+; (glass) \\d/i],[d,[f,I],[m,T]],[/droid.+; (wt63?0{2,3})\\)/i],[d,[f,q],[m,T]],[/(quest( 2| pro)?)/i],[d,[f,F],[m,T]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[f,[m,k]],[/(aeobc)\\b/i],[d,[f,_],[m,k]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[d,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[d,[m,w]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\\w\\. ]{0,9});.+buil/i],[d,[f,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[v,[p,"EdgeHTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[v,[p,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,/\\b(libweb)/i],[p,v],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[p,[v,J,X]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[p,"Windows"],[v,J,X]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/ios;fbsv\\/([\\d\\.]+)/i,/cfnetwork\\/.+darwin/i],[[v,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[p,K],[v,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[p,v],[/\\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[v,[p,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[v,[p,N+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[v,[p,"webOS"]],[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],[v,[p,"watchOS"]],[/crkey\\/([\\d\\.]+)/i],[v,[p,j+"cast"]],[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],[[p,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[p,v],[/(sunos) ?([\\w\\.\\d]*)/i],[[p,"Solaris"],v],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\w\\.]*)/i],[p,v]]},Z=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:""),b=n&&n.userAgentData?n.userAgentData:a,y=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,T=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,V.call(t,r,y.browser),t[l]=typeof(e=t[v])===u?e.replace(/[^\\d\\.]/g,"").split(".")[0]:a,T&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[g]=a,V.call(e,r,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[m]=a,V.call(e,r,y.device),T&&!e[m]&&b&&b.mobile&&(e[m]=h),T&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[m]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.os),T&&!e[p]&&b&&"Unknown"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,z).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Z.VERSION="1.0.35",Z.BROWSER=$([p,v,l]),Z.CPU=$([g]),Z.DEVICE=$([d,f,m,b,h,y,w,T,k]),Z.ENGINE=Z.OS=$([p,v]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{ActionType:()=>f,AmplitudePlatformName:()=>g,AnalyticsEventImportance:()=>l,AnalyticsQueries:()=>e,AuthStatus:()=>b,ComponentType:()=>m,IThresholdTier:()=>Jt,MetricType:()=>d,PlatformName:()=>v,SessionActions:()=>h,SessionAutomatedEvents:()=>w,SessionRank:()=>y,SubjectType:()=>p,UserTypeCommerce:()=>c,UserTypeInsto:()=>i,UserTypeRetail:()=>t,UserTypeRetailBusinessBanking:()=>s,UserTypeRetailEmployeeInternal:()=>a,UserTypeRetailEmployeePersonal:()=>o,UserTypeWallet:()=>u,automatedEvents:()=>xn,automatedMappingConfig:()=>In,clearMarkEntry:()=>Vn,clearPerformanceMarkEntries:()=>Xn,config:()=>A,createEventConfig:()=>On,createNewSpan:()=>Ln,createNewTrace:()=>Un,device:()=>W,endPerfMark:()=>Jn,exposeExperiment:()=>wn,flushQueue:()=>or,generateUUID:()=>V,getAnalyticsHeaders:()=>sr,getReferrerData:()=>le,getTracingHeaders:()=>An,getTracingId:()=>Dn,getUrlHostname:()=>pe,getUrlParams:()=>me,getUrlPathname:()=>fe,getUserContext:()=>ar,identify:()=>Tn,identifyFlow:()=>xe,identity:()=>H,identityFlow:()=>Se,incrementUjNavigation:()=>an,init:()=>yn,initNextJsTrackPageview:()=>_n,initTrackPageview:()=>kn,isEventKeyFormatValid:()=>we,isSessionEnded:()=>pt,location:()=>re,logEvent:()=>$t,logMetric:()=>Ht,logPageView:()=>on,logTrace:()=>Rn,markNTBT:()=>tn,markStep:()=>nn,markStepOnce:()=>rn,onVisibilityChange:()=>ln,optIn:()=>En,optOut:()=>Sn,perfMark:()=>Wn,persistentData:()=>oe,postMessage:()=>K,recordSessionDuration:()=>pn,removeFromIdentifyFlow:()=>Ee,savePersistentData:()=>st,sendScheduledEvents:()=>Bt,setBreadcrumbs:()=>ie,setConfig:()=>U,setLocation:()=>ae,setPagePath:()=>ve,setPageview:()=>Kt,setPersistentData:()=>se,setSessionStart:()=>dt,setTime:()=>Ue,startPerfMark:()=>Hn,timeStone:()=>Le,useEventLogger:()=>Yn,useLogEventOnMount:()=>tr,usePerformanceMarks:()=>rr});let e=function(e){return e.fbclid="fbclid",e.gclid="gclid",e.msclkid="msclkid",e.ptclid="ptclid",e.ttclid="ttclid",e.utm_source="utm_source",e.utm_medium="utm_medium",e.utm_campaign="utm_campaign",e.utm_term="utm_term",e.utm_content="utm_content",e}({});const t=0,i=1,a=2,o=3,s=4,c=5,u=6;let l=function(e){return e.low="low",e.high="high",e}({}),d=function(e){return e.count="count",e.rate="rate",e.gauge="gauge",e.distribution="distribution",e.histogram="histogram",e}({}),p=function(e){return e.commerce_merchant="commerce_merchant",e.device="device",e.edp_fingerprint_id="edp_fingerprint_id",e.nft_user="nft_user",e.user="user",e.wallet_user="wallet_user",e.uuid="user_uuid",e}({}),m=function(e){return e.unknown="unknown",e.banner="banner",e.button="button",e.card="card",e.chart="chart",e.content_script="content_script",e.dropdown="dropdown",e.link="link",e.page="page",e.modal="modal",e.table="table",e.search_bar="search_bar",e.service_worker="service_worker",e.text="text",e.text_input="text_input",e.tray="tray",e.checkbox="checkbox",e.icon="icon",e}({}),f=function(e){return e.unknown="unknown",e.blur="blur",e.click="click",e.change="change",e.dismiss="dismiss",e.focus="focus",e.hover="hover",e.select="select",e.measurement="measurement",e.move="move",e.process="process",e.render="render",e.scroll="scroll",e.view="view",e.search="search",e.keyPress="keyPress",e}({}),v=function(e){return e.unknown="unknown",e.web="web",e.android="android",e.ios="ios",e.mobile_web="mobile_web",e.tablet_web="tablet_web",e.server="server",e.windows="windows",e.macos="macos",e.extension="extension",e}({}),g=function(e){return e.web="Web",e.ios="iOS",e.android="Android",e}({}),b=function(e){return e[e.notLoggedIn=0]="notLoggedIn",e[e.loggedIn=1]="loggedIn",e}({}),h=function(e){return e.ac="ac",e.af="af",e.ah="ah",e.al="al",e.am="am",e.ar="ar",e.as="as",e}({}),w=function(e){return e.pv="pv",e}({}),y=function(e){return e.xs="xs",e.s="s",e.m="m",e.l="l",e.xl="xl",e.xxl="xxl",e}({});const T="https://analytics-service-dev.cbhq.net",k=3e5,_=5e3,S="analytics-db",E="experiment-exposure-db",x="Analytics SDK:",O=Object.values(e),j="pageview",N="session_duration",I={navigationTiming:{eventName:"perf_navigation_timing"},redirectTime:{eventName:"perf_redirect_time"},RT:{eventName:"perf_redirect_time"},TTFB:{eventName:"perf_time_to_first_byte"},networkInformation:{eventName:"perf_network_information"},storageEstimate:{eventName:"perf_storage_estimate"},FCP:{eventName:"perf_first_contentful_paint"},FID:{eventName:"perf_first_input_delay"},LCP:{eventName:"perf_largest_contentful_paint"},CLS:{eventName:"perf_cumulative_layout_shift"},TBT:{eventName:"perf_total_blocking_time"},NTBT:{eventName:"perf_navigation_total_blocking_time"},INP:{eventName:"perf_interact_to_next_paint"},ET:{eventName:"perf_element_timing"},userJourneyStep:{eventName:"perf_user_journey_step"}},P="1",M="web";function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const C=/^(https?:\\/\\/)/;function D(e){return{eventsEndpoint:e+"/amp",metricsEndPoint:e+"/metrics",exposureEndpoint:e+"/track-exposures",tracesEndpoint:e+"/traces"}}const A=B({authCookie:"logged_in",amplitudeApiKey:"",batchEventsPeriod:_,batchEventsThreshold:30,batchMetricsPeriod:_,batchMetricsThreshold:30,batchTracesPeriod:_,batchTracesThreshold:30,headers:{},interactionManager:null,isAlwaysAuthed:!1,isProd:!1,isInternalApplication:!1,onError:(e,t)=>{console.error(x,e,t)},platform:v.unknown,projectName:"",ricTimeoutScheduleEvent:1e3,ricTimeoutSetDevice:500,showDebugLogging:!1,trackUserId:!1,version:null,apiEndpoint:T},D(T),{steps:{}}),L=[].reduce(((e,t)=>n=>e(t(n))),(e=>{if(!e.isProd)return e.isInternalApplication?(e.apiEndpoint="https://analytics-service-internal-dev.cbhq.net",B({},e,D(e.apiEndpoint))):e;const t=(e=>e.apiEndpoint?C.test(e.apiEndpoint)?e.apiEndpoint:`https://${e.apiEndpoint}`:e.isInternalApplication?"https://analytics-service-internal.cbhq.net":"https://as.coinbase.com")(e);return B({},e,{apiEndpoint:t},D(t))})),U=e=>{const{batchEventsThreshold:t,batchMetricsThreshold:n,batchTracesThreshold:r}=e,i=[t,n,r];for(const e of i)if((e||0)>30){console.warn("You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.");break}Object.assign(A,L(e))},R=[v.web,v.mobile_web,v.tablet_web];function q(){return"android"===A.platform}function F(){return"ios"===A.platform}function z(){return R.includes(A.platform)}function K(e){if(z()&&navigator&&"serviceWorker"in navigator&&navigator.serviceWorker.controller)try{navigator.serviceWorker.controller.postMessage(e)}catch(e){e instanceof Error&&A.onError(e)}}var $=n(353),Q=n.n($);const W={amplitudeOSName:null,amplitudeOSVersion:null,amplitudeDeviceModel:null,amplitudePlatform:null,browserName:null,browserMajor:null,osName:null,userAgent:null,width:null,height:null},H={countryCode:null,deviceId:null,device_os:null,isOptOut:!1,languageCode:null,locale:null,jwt:null,session_lcc_id:null,userAgent:null,userId:null},V=e=>e?(e^16*Math.random()>>e/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,V),J=()=>A.isAlwaysAuthed||!!H.userId,X=()=>{const e={};return H.countryCode&&(e.country_code=H.countryCode),e},G=()=>{const{platform:e}=A;if(e===v.web)switch(!0){case window.matchMedia("(max-width: 560px)").matches:return v.mobile_web;case window.matchMedia("(max-width: 1024px, min-width: 561px)").matches:return v.tablet_web}return e},Z=()=>{var e,t,n,r,i;z()?("requestIdleCallback"in window?window.requestIdleCallback(ne,{timeout:A.ricTimeoutSetDevice}):ne(),W.amplitudePlatform=g.web,W.userAgent=(null==(e=window)||null==(e=e.navigator)?void 0:e.userAgent)||null,ee({height:null!=(t=null==(n=window)?void 0:n.innerHeight)?t:null,width:null!=(r=null==(i=window)?void 0:i.innerWidth)?r:null})):F()?(W.amplitudePlatform=g.ios,W.userAgent=H.userAgent,W.userAgent&&ne()):q()&&(W.userAgent=H.userAgent,W.amplitudePlatform=g.android,W.userAgent&&ne())},Y=e=>{Object.assign(H,e),z()&&K({identity:{isAuthed:!!H.userId,locale:H.locale||null}})},ee=e=>{W.height=e.height,W.width=e.width},te=()=>{U({platform:G()}),z()&&K({config:{platform:A.platform}})},ne=()=>{var e;performance.mark&&performance.mark("ua_parser_start");const t=new(Q())(null!=(e=W.userAgent)?e:"").getResult();W.browserName=t.browser.name||null,W.browserMajor=t.browser.major||null,W.osName=t.os.name||null,W.amplitudeOSName=W.browserName,W.amplitudeOSVersion=W.browserMajor,W.amplitudeDeviceModel=W.osName,K({device:{browserName:W.browserName,osName:W.osName}}),performance.mark&&(performance.mark("ua_parser_end"),performance.measure("ua_parser","ua_parser_start","ua_parser_end"))},re={breadcrumbs:[],initialUAAData:{},pageKey:"",pageKeyRegex:{},pagePath:"",prevPageKey:"",prevPagePath:""};function ie(e){Object.assign(re,{breadcrumbs:e})}function ae(e){Object.assign(re,e)}const oe={eventId:0,sequenceNumber:0,sessionId:0,lastEventTime:0,sessionStart:0,sessionUUID:null,userId:null,ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0};function se(e){Object.assign(oe,e)}function ce(){var e,t;return null!=(e=null==(t=document)?void 0:t.referrer)?e:""}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}const le=()=>{const e=ce();if(!e)return{};const t=new URL(e);return t.hostname===pe()?{}:{referrer:e,referring_domain:t.hostname}},de=()=>{const e=new URLSearchParams(me()),t={};return O.forEach((n=>{e.has(n)&&(t[n]=(e.get(n)||"").toLowerCase())})),t},pe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.hostname)||""},me=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.search)||""},fe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.pathname)||""},ve=()=>{const e=A.overrideWindowLocation?re.pagePath:fe()+me();e&&e!==re.pagePath&&(e!==re.pagePath&&ge(),re.pagePath=e,re.pageKeyRegex&&Object.keys(re.pageKeyRegex).some((e=>{if(re.pageKeyRegex[e].test(re.pagePath))return re.pageKey=e,!0})))},ge=()=>{if(z()){const e=ce();if(!re.prevPagePath&&e){const t=new URL(e);if(t.hostname===pe())return void(re.prevPagePath=t.pathname)}}re.prevPagePath=re.pagePath,re.prevPageKey=re.pageKey},be=e=>{z()&&Object.assign(e,z()?(Object.keys(re.initialUAAData).length>0||(new URLSearchParams(me()),re.initialUAAData=ue({},(()=>{const e={};return O.forEach((t=>{oe[t]&&(e[t]=oe[t])})),e})(),de(),le())),re.initialUAAData):re.initialUAAData)},he=/^[a-zd]+(_[a-zd]+)*$/;function we(e){return he.test(e)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const Te=["action","component_type","component_name","context","logging_id"],ke=["num_non_hardware_accounts","ujs"],_e="ujs_",Se={};function Ee(e){e.forEach((e=>{ke.includes(e)&&delete Se[e]}))}function xe(e){var t;const n=Object.entries(e).reduce(((e,t)=>{const[n,r]=t;return!Te.includes(n)&&ke.includes(n)?we(n)?ye({},e,{[n]:r}):(A.onError(new Error("IdentityFlow property names must have snake case format"),{[n]:r}),e):e}),{});null!=(t=n.ujs)&&t.length&&(n.ujs=n.ujs.map((e=>`${_e}${e}`))),Object.assign(Se,n)}function Oe(){return A.platform!==v.unknown||(A.onError(new Error("SDK platform not initialized")),!1)}const je={eventsQueue:[],eventsScheduled:!1,metricsQueue:[],metricsScheduled:!1,tracesQueue:[],tracesScheduled:!1};function Ne(e){Object.assign(je,e)}const Ie={ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0},Pe={ac:20,af:5,ah:1,al:1,am:0,ar:10,as:20},Me={pv:25},Be={xs:0,s:1,m:1,l:2,xl:2,xxl:2},Ce=e=>e<15?y.xs:e<60?y.s:e<240?y.m:e<960?y.l:e<3840?y.xl:y.xxl,De=e=>{Object.assign(Ie,e)};function Ae(){return(new Date).getTime()}const Le={timeStart:Ae(),timeOnPagePath:0,timeOnPageKey:0,prevTimeOnPagePath:0,prevTimeOnPageKey:0,sessionDuration:0,sessionEnd:0,sessionStart:0,prevSessionDuration:0};function Ue(e){Object.assign(Le,e)}const Re=(e,t)=>t.some((t=>e instanceof t));let qe,Fe;const ze=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap,We=new WeakMap;let He={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Ke.get(e);if("objectStoreNames"===t)return e.objectStoreNames||$e.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Ve(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Fe||(Fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Xe(this),e),Je(ze.get(this))}:function(...e){return Je(t.apply(Xe(this),e))}:function(e,...n){const r=t.call(Xe(this),e,...n);return $e.set(r,e.sort?e.sort():[e]),Je(r)}:(e instanceof IDBTransaction&&function(e){if(Ke.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));Ke.set(e,t)}(e),Re(e,qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,He):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(Je(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((t=>{t instanceof IDBCursor&&ze.set(t,e)})).catch((()=>{})),We.set(t,e),t}(e);if(Qe.has(e))return Qe.get(e);const t=Ve(e);return t!==e&&(Qe.set(e,t),We.set(t,e)),t}const Xe=e=>We.get(e),Ge=["get","getKey","getAll","getAllKeys","count"],Ze=["put","add","delete","clear"],Ye=new Map;function et(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Ye.get(t))return Ye.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Ze.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ge.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?"readwrite":"readonly");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return Ye.set(t,a),a}var tt;tt=He,He={...tt,get:(e,t,n)=>et(e,t)||tt.get(e,t,n),has:(e,t)=>!!et(e,t)||tt.has(e,t)};const nt={isReady:!1,idbKeyval:null};function rt(e){Object.assign(nt,e)}const it={},at=async e=>{if(!nt.idbKeyval)return Promise.resolve(null);try{return await nt.idbKeyval.get(e)}catch(e){return A.onError(new Error("IndexedDB:Get:InternalError")),Promise.resolve(null)}},ot=async(e,t)=>{if(nt.idbKeyval)try{await nt.idbKeyval.set(e,t)}catch(e){A.onError(new Error("IndexedDB:Set:InternalError"))}},st=()=>{"server"!==A.platform&&(se({sessionStart:Le.sessionStart,ac:Ie.ac,af:Ie.af,ah:Ie.ah,al:Ie.al,am:Ie.am,ar:Ie.ar,as:Ie.as,pv:Ie.pv}),H.userId&&se({userId:H.userId}),ot(S,oe))},ct="rgb(5,177,105)",ut=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`%c ${x}`,a=`color:${ct};font-size:11px;`,o=`Importance: ${r}`;console.group(i,a,t,o),n.forEach((e=>{e.event_type?console.log(e.event_type,e):console.log(e)})),console.groupEnd()},lt=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`color:${ct};font-size:11px;`,a=`%c ${x}`,o=`Importance: ${r}`;console.log(a,i,t,n,o)},dt=()=>{const e=Ae();oe.sessionId&&oe.lastEventTime&&oe.sessionUUID&&!pt(e)||(oe.sessionId=e,oe.sessionUUID=V(),Ue({sessionStart:e}),lt({metricName:"Started new session:",data:{persistentData:oe,timeStone:Le}})),oe.lastEventTime=e},pt=e=>e-oe.lastEventTime>18e5;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(this,arguments)}const ft=e=>{var t;(e=>{switch(e.action){case f.click:Ie.ac+=1;break;case f.focus:Ie.af+=1;break;case f.hover:Ie.ah+=1;break;case f.move:Ie.am+=1;break;case f.scroll:Ie.al+=1;break;case f.search:Ie.ar+=1;break;case f.select:Ie.as+=1}})(t=e),t.event_type!==j?t.event_type===N&&((e=>{if(!e.session_rank)return;const t=e.session_rank;Object.values(h).forEach((e=>{Ie.sqs+=Ie[e]*Pe[e]})),Object.values(w).forEach((e=>{Ie.sqs+=Ie[e]*Me[e]})),Ie.sqs*=Be[t]})(t),Object.assign(t,Ie),De({ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0})):Ie.pv+=1;const n=e.event_type;delete e.event_type;const r=e.deviceId?e.deviceId:null,i=e.timestamp;return delete e.timestamp,se({eventId:oe.eventId+1}),se({sequenceNumber:oe.sequenceNumber+1}),dt(),st(),{device_id:H.deviceId||r||null,user_id:H.userId,timestamp:i,event_id:oe.eventId,session_id:oe.sessionId||-1,event_type:n,version_name:A.version||null,platform:W.amplitudePlatform,os_name:W.amplitudeOSName,os_version:W.amplitudeOSVersion,device_model:W.amplitudeDeviceModel,language:H.languageCode,event_properties:mt({},e,{session_uuid:oe.sessionUUID,height:W.height,width:W.width}),user_properties:X(),uuid:V(),library:{name:"@cbhq/client-analytics",version:"10.6.0"},sequence_number:oe.sequenceNumber,user_agent:W.userAgent||H.userAgent}},vt=e=>e.map((e=>ft(e)));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}const bt=e=>e.map((e=>(e=>{const t=e.tags||{},n=gt({authed:J()?"true":"false",platform:A.platform},t,{project_name:A.projectName,version_name:A.version||null});return{metric_name:e.metricName,page_path:e.pagePath||null,value:e.value,tags:n,type:e.metricType}})(e))),ht=e=>0!==je.metricsQueue.length&&(je.metricsQueue.length>=A.batchMetricsThreshold||(je.metricsScheduled||(je.metricsScheduled=!0,setTimeout((()=>{je.metricsScheduled=!1,e(bt(je.metricsQueue)),je.metricsQueue=[]}),A.batchMetricsPeriod)),!1)),wt=e=>0!==je.tracesQueue.length&&(je.tracesQueue.length>=A.batchTracesThreshold||(je.tracesScheduled||(je.tracesScheduled=!0,setTimeout((()=>{je.tracesScheduled=!1,e(je.tracesQueue),je.tracesQueue=[]}),A.batchTracesPeriod)),!1)),yt=e=>{var t;z()&&null!=(t=window)&&t.requestIdleCallback?window.requestIdleCallback(e,{timeout:A.ricTimeoutScheduleEvent}):(q()||F())&&A.interactionManager?A.interactionManager.runAfterInteractions(e):e()};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}const kt="application/x-www-form-urlencoded; charset=UTF-8",_t=e=>{const{data:t,importance:n,isJSON:r,onError:i,url:a}=e,o=r?"application/json":kt,s=n||l.low,c=r?JSON.stringify(t):new URLSearchParams(t).toString();function u(){const e=new XMLHttpRequest;e.open("POST",a,!0),Object.keys(A.headers||{}).forEach((t=>{e.setRequestHeader(t,A.headers[t])})),e.setRequestHeader("Content-Type",kt),H.jwt&&e.setRequestHeader("authorization",`Bearer ${H.jwt}`),e.send(c)}if(!z()||r||!("sendBeacon"in navigator)||s!==l.low||A.headers&&0!==Object.keys(A.headers).length)if(z()&&!r)u();else{const e=Tt({},A.headers,{"Content-Type":o});H.jwt&&(e.Authorization=`Bearer ${H.jwt}`),fetch(a,{method:"POST",mode:"no-cors",headers:e,body:c}).catch((e=>{i(e,{context:"AnalyticsSDKApiError"})}))}else{const e=new Blob([c],{type:kt});try{navigator.sendBeacon.bind(navigator)(a,e)||u()}catch(e){console.error(e),u()}}};var St=n(762),Et=n.n(St);const xt=(e,t,n)=>{const r=e||"";return Et()("2"+r+t+n)};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}class jt extends Error{constructor(e){super(e),this.name="CircularJsonReference",this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class Nt extends jt{constructor(...e){super(...e),this.name="DomReferenceInAnalyticsEvent"}}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pt=(e,t=l.low)=>{var n;e&&je.eventsQueue.push(e),nt.isReady&&(!A.trackUserId||H.userId?(t===l.high||(n=Mt,0!==je.eventsQueue.length&&(je.eventsQueue.length>=A.batchEventsThreshold||(je.eventsScheduled||(je.eventsScheduled=!0,setTimeout((()=>{je.eventsScheduled=!1,n(vt(je.eventsQueue)),je.eventsQueue=[]}),A.batchEventsPeriod)),0))))&&Bt():je.eventsQueue.length>10&&(A.trackUserId=!1,A.onError(new Error("userId not set in Logged-in"))))},Mt=(e,t=l.low)=>{if(H.isOptOut||0===e.length)return;let n;try{n=JSON.stringify(e)}catch(t){const r=e.map((e=>e.event_type)).join(", "),[i,a]=(e=>{try{const n=[];for(const r of e){const e=Ot({},r);r.event_properties&&(e.event_properties=Ot({},e.event_properties,{currentTarget:null,target:null,relatedTarget:null,_dispatchInstances:null,_targetInst:null,view:(t=r.event_properties.view,["string","number","boolean"].includes(typeof t)?r.event_properties.view:null)})),n.push(e)}return[!0,JSON.stringify(n)]}catch(e){return[!1,""]}var t})(e);if(!i)return void A.onError(new jt(t instanceof Error?t.message:"unknown"),{listEventType:r});n=a,A.onError(new Nt("Found DOM element reference"),{listEventType:r,stringifiedEventData:n})}const r=Ae().toString(),i=It({},{e:n,v:"2",upload_time:r},{client:A.amplitudeApiKey,checksum:xt(A.amplitudeApiKey,n,r)});_t({url:A.eventsEndpoint,data:i,importance:t,onError:A.onError}),ut({metricName:"Batch Events",data:e,importance:t})},Bt=()=>{Mt(vt(je.eventsQueue)),Ne({eventsQueue:[]})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}const Dt=Object.values(f),At=Object.values(m),Lt=e=>Dt.includes(e)?e:f.unknown,Ut=e=>At.includes(e)?e:m.unknown,Rt=(e,t,n)=>{const r={auth:J()?b.loggedIn:b.notLoggedIn,action:Lt(e),component_type:Ut(t),logging_id:n,platform:A.platform,project_name:A.projectName};return"number"==typeof H.userTypeEnum&&(r.user_type_enum=H.userTypeEnum),r},qt=e=>{const t=Ae();if(!e)return A.onError(new Error("missing logData")),Ct({},Rt(f.unknown,m.unknown),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});const n=Ct({},e,Rt(e.action,e.componentType,e.loggingId),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});return delete n.componentType,delete n.loggingId,n},Ft={blacklistRegex:[],isEnabled:!1};function zt(){return{page_key:re.pageKey,page_path:re.pagePath,prev_page_key:re.prevPageKey,prev_page_path:re.prevPagePath}}function Kt(e){Object.assign(Ft,e)}function $t(e,t,n=l.low){if(H.isOptOut)return;if(!Oe())return;const r=qt(t);!function(e){Ft.isEnabled&&(ve(),Object.assign(e,zt()))}(r),be(r),function(e){Object.keys(Se).length>0&&Object.assign(e,Se)}(r),r.has_double_fired=!1,r.event_type=e,n===l.high?Pt(r,n):yt((()=>{Pt(r)}))}function Qt(e,t=!1){t?_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError})})),ut({metricName:"Batch Metrics",data:e})}function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function Ht(e){if(!Oe())return;v.server!==A.platform&&!e.pagePath&&re.pagePath&&(e.pagePath=re.pagePath);const t=Object.keys(Se).length?Wt({},e.tags,Se):e.tags;t&&Object.assign(e,{tags:t}),je.metricsQueue.push(e),ht(Qt)&&(Qt(bt(je.metricsQueue)),je.metricsQueue=[])}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}let Jt=function(e){return e.instant="instant",e.quick="quick",e.moderate="moderate",e.slow="slow",e.unavoidable="unavoidable",e}({});function Xt(e){return e.toLowerCase()}let Gt={};const Zt=(e,t)=>{null!=A&&A.onMarkStep&&A.onMarkStep(e,t),xe({ujs:t})};let Yt;const en={Perfume:()=>{},markStep:e=>{},markStepOnce:e=>{},incrementUjNavigation:()=>{}},tn=()=>{z()&&Yt&&Yt.markNTBT&&Yt.markNTBT()},nn=e=>{z()&&Yt&&en.markStep&&en.markStep(e)},rn=e=>{z()&&Yt&&en.markStepOnce&&en.markStepOnce(e)},an=()=>{z()&&Yt&&en.incrementUjNavigation&&en.incrementUjNavigation()};function on(e={callMarkNTBT:!0}){"unknown"!==A.platform&&(Ft.blacklistRegex.some((e=>e.test(fe())))||($t(j,{action:f.render,componentType:m.page}),e.callMarkNTBT&&tn()))}let sn=!1,cn=!1;const un=e=>{sn=!e.persisted},ln=(e,t="hidden",n=!1)=>{cn||(addEventListener("pagehide",un),addEventListener("beforeunload",(()=>{})),cn=!0),addEventListener("visibilitychange",(({timeStamp:n})=>{document.visibilityState===t&&e({timeStamp:n,isUnloading:sn})}),{capture:!0,once:n})},dn=36e3;function pn(){const e=pt(Ae());if(e&&(O.forEach((e=>{oe[e]&&delete oe[e]})),st()),!oe.lastEventTime||!Le.sessionStart||!e)return;const t=Math.round((oe.lastEventTime-Le.sessionStart)/1e3);if(t<1||t>dn)return;const n=Ce(t);$t(N,{action:f.measurement,componentType:m.page,session_duration:t,session_end:oe.lastEventTime,session_start:Le.sessionStart,session_rank:n})}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const fn=[],vn=[],gn=()=>{const e=fn.shift();e&&e()},bn=()=>{const e=vn.shift();e&&e()};let hn={};function wn(e){const t=function(e){return{test_name:e.testName,group_name:e.group,subject_id:e.subjectId,exposed_at:Ae(),subject_type:e.subjectType,platform:A.platform}}(e);hn[e.testName]=hn[e.testName]||0,hn[e.testName]+k>Ae()?lt({metricName:`Event: exposeExperiment ${e.testName} not sent`,data:t}):(hn[e.testName]=Ae(),ot(E,hn),lt({metricName:`Event: exposeExperiment ${e.testName} sent`,data:t}),_t({url:A.exposureEndpoint,data:[t],onError:(t,n)=>{hn[e.testName]=0,ot(E,hn),A.onError(t,n)},isJSON:!0,importance:l.high}))}const yn=e=>{var t,r,i;U(e),z()&&(H.languageCode=(null==(t=navigator)?void 0:t.languages[0])||(null==(r=navigator)?void 0:r.language)||""),te(),(()=>{var e;if(z()&&null!=(e=window)&&e.indexedDB){const e=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Je(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(Je(o.result),e.oldVersion,e.newVersion,Je(o.transaction),e)})),n&&o.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener("close",(()=>a())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}("keyval-store",1,{upgrade(e){e.createObjectStore("keyval")}});rt({idbKeyval:{get:async t=>(await e).get("keyval",t),set:async(t,n)=>(await e).put("keyval",n,t),delete:async t=>(await e).delete("keyval",t),keys:async()=>(await e).getAllKeys("keyval")}})}else rt({idbKeyval:{get:async e=>new Promise((t=>{t(it[e])})),set:async(e,t)=>new Promise((n=>{it[e]=t,n(e)})),delete:async e=>new Promise((()=>{delete it[e]})),keys:async()=>new Promise((e=>{e(Object.keys(it))}))}})})(),lt({metricName:"Initialized Analytics:",data:{deviceId:H.deviceId}}),fn.push((()=>{Pt()})),(async()=>{const e=await at(S);rt({isReady:!0}),gn(),e&&(bn(),se({eventId:e.eventId||oe.eventId,sequenceNumber:e.sequenceNumber||oe.sequenceNumber,sessionId:e.sessionId||oe.sessionId,lastEventTime:e.lastEventTime||oe.lastEventTime,sessionUUID:e.sessionUUID||oe.sessionUUID}),function(e){se(mn({},function(e){const t={};return O.forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e),de()))}(e),Ue({sessionStart:e.sessionStart||oe.sessionStart}),De({ac:e.ac||Ie.ac,af:e.af||Ie.af,ah:e.ah||Ie.ah,al:e.al||Ie.al,am:e.am||Ie.am,ar:e.ar||Ie.ar,as:e.as||Ie.as,pv:e.pv||Ie.pv}),A.trackUserId&&Y({userId:e.userId||H.userId}),pn(),lt({metricName:"Initialized Analytics IndexedDB:",data:e}))})(),async function(){at(E).then((e=>{hn=null!=e?e:{}})).catch((e=>{e instanceof Error&&A.onError(e)}))}(),Z(),z()&&(ln((()=>{se({lastEventTime:Ae()}),st(),Bt()}),"hidden"),ln((()=>{pn()}),"visible")),z()&&(i=()=>{var e,t,n,r;te(),ee({width:null!=(e=null==(t=window)?void 0:t.innerWidth)?e:null,height:null!=(n=null==(r=window)?void 0:r.innerHeight)?n:null})},addEventListener("resize",(()=>{requestAnimationFrame((()=>{i()}))}))),(()=>{if(z())try{const e=n(2);en.markStep=e.markStep,en.markStepOnce=e.markStepOnce,en.incrementUjNavigation=e.incrementUjNavigation,Yt=new e.Perfume({analyticsTracker:e=>{const{data:t,attribution:n,metricName:r,navigatorInformation:i,rating:a}=e,o=I[r],s=(null==n?void 0:n.category)||null;if(!o&&!s)return;const c=(null==i?void 0:i.deviceMemory)||0,u=(null==i?void 0:i.hardwareConcurrency)||0,l=(null==i?void 0:i.isLowEndDevice)||!1,p=(null==i?void 0:i.isLowEndExperience)||!1,v=(null==i?void 0:i.serviceWorkerStatus)||"unsupported",g=Vt({deviceMemory:c,hardwareConcurrency:u,isLowEndDevice:l,isLowEndExperience:p,serviceWorkerStatus:v},Gt),b={is_low_end_device:l,is_low_end_experience:p,page_key:re.pageKey||"",save_data:t.saveData||!1,service_worker:v,is_perf_metric:!0};if("navigationTiming"===r)t&&"number"==typeof t.redirectTime&&Ht({metricName:I.redirectTime.eventName,metricType:d.histogram,tags:b,value:t.redirectTime||0});else if("TTFB"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),Ht({metricName:I.TTFB.eventName,metricType:d.histogram,tags:Vt({},b),value:t}),a&&Ht({metricName:`perf_web_vitals_ttfb_${a}`,metricType:d.count,tags:b,value:1});else if("networkInformation"===r)null!=t&&t.effectiveType&&(Gt=t,$t(o.eventName,{action:f.measurement,componentType:m.page,networkInformationDownlink:t.downlink,networkInformationEffectiveType:t.effectiveType,networkInformationRtt:t.rtt,networkInformationSaveData:t.saveData,navigatorDeviceMemory:c,navigatorHardwareConcurrency:u}));else if("storageEstimate"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page},t,g)),Ht({metricName:"perf_storage_estimate_caches",metricType:d.histogram,tags:b,value:t.caches}),Ht({metricName:"perf_storage_estimate_indexed_db",metricType:d.histogram,tags:b,value:t.indexedDB});else if("CLS"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,score:100*t||null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_cls_${a}`,metricType:d.count,tags:b,value:1});else if("FID"===r){const e=(null==n?void 0:n.performanceEntry)||null,r=parseInt((null==e?void 0:e.processingStart)||"");$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,processingStart:null!=e&&e.processingStart?r:null,startTime:null!=e&&e.startTime?parseInt(e.startTime):null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_fidVitals_${a}`,metricType:d.count,tags:b,value:1})}else"userJourneyStep"===r?($t("perf_user_journey_step",Vt({action:f.measurement,componentType:m.page,duration:t||null,rating:null!=a?a:null,step_name:(null==n?void 0:n.stepName)||""},g)),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||""}_vitals_${a}`,metricType:d.count,tags:b,value:1}),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||""}`,metricType:d.distribution,tags:b,value:t||null})):I[r]&&t&&($t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),a&&(Ht({metricName:`perf_web_vitals_${Xt(r)}_${a}`,metricType:d.count,tags:b,value:1}),"LCP"===r&&Ht({metricName:`perf_web_vitals_${Xt(r)}`,metricType:d.distribution,tags:b,value:t})))},maxMeasureTime:3e4,steps:A.steps,onMarkStep:Zt})}catch(e){e instanceof Error&&A.onError(e)}})()},Tn=e=>{Y(e),e.userAgent&&Z(),lt({metricName:"Identify:",data:{countryCode:H.countryCode,deviceId:H.deviceId,userId:H.userId}})},kn=({blacklistRegex:e,pageKeyRegex:t,browserHistory:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.listen((()=>{on()}))},_n=({blacklistRegex:e,pageKeyRegex:t,nextJsRouter:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.events.on("routeChangeComplete",(()=>{on()}))},Sn=()=>{Y({isOptOut:!0}),ot(S,{})},En=()=>{Y({isOptOut:!1})},xn={Button:{label:"cb_button",uuid:"e921a074-40e6-4371-8700-134d5cd633e6",componentType:m.button}};function On(e,t,n){return{componentName:e,actions:t,data:n}}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Nn(e,t,n){const{componentName:r,data:i}=n;$t(e.label,jn({componentType:e.componentType,action:t,loggingId:e.uuid,component_name:r},i))}const In={actionMapping:{onPress:f.click,onHover:f.hover},handlers:{Button:{[f.click]:e=>Nn(xn.Button,f.click,e),[f.hover]:e=>Nn(xn.Button,f.hover,e)}}};function Pn(e,t=!1){t?_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError})})),ut({metricName:"Batch Traces",data:e})}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}const Bn=1e6;function Cn(e){return e*Bn}function Dn(e=function(){var e;return null==(e=window)?void 0:e.crypto}()){const t=new Uint32Array(2);return null==e||e.getRandomValues(t),((BigInt(t[0])<<BigInt(32))+BigInt(t[1])).toString()}function An(e,t){return{"x-datadog-origin":"rum","x-datadog-parent-id":t,"x-datadog-sampling-priority":"1","x-datadog-trace-id":e}}function Ln(e){var t;const{name:n,traceId:r,spanId:i,start:a,duration:o,resource:s,meta:c}=e;return{duration:o?Cn(o):0,name:n,resource:s,service:A.projectName,span_id:null!=i?i:Dn(),start:a?Cn(a):0,trace_id:null!=r?r:Dn(),parent_id:P,type:M,meta:Mn({platform:A.platform},re.pageKey?{page_key:re.pageKey}:{},null!=(t=Se.ujs)&&t.length?{last_ujs:Se.ujs[Se.ujs.length-1]}:{},null!=c?c:{})}}function Un(e){return[Ln(e)]}function Rn(e,t){Oe()&&function(e){return e.length>0}(e)&&(t&&function(e,t){e.forEach((e=>function(e,t){const n=Mn({},e.meta,t.meta),r={start:t.start?Cn(t.start):e.start,duration:t.duration?Cn(t.duration):e.duration};Object.assign(e,t,Mn({meta:n},r))}(e,t)))}(e,t),je.tracesQueue.push(e),wt(Pn)&&(Pn(je.tracesQueue),je.tracesQueue=[]))}function qn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function zn(){return void 0!==typeof window&&"performance"in window&&"mark"in performance&&"getEntriesByName"in performance}function Kn(e,t){return`perf_${e}${null!=t&&t.label?`_${t.label}`:""}`}function $n(e,t,n){return`${Kn(e,n)}__${t}`}let Qn={};function Wn(e,t,n){if(!zn())return;const r=$n(e,t,n);if(performance.mark(r),"end"===t){const t=Kn(e,n);!function(e,t,n){try{performance.measure(e,t,n)}catch(e){A.onError(e)}}(t,$n(e,"start",n),r);const i=performance.getEntriesByName(t).pop();i&&Ht(Fn({metricName:e,metricType:d.distribution,value:i.duration},null!=n&&n.tags?{tags:n.tags}:{}))}}function Hn(e,t){if(!zn())return;const n=$n(e,"start",t);Qn[n]||(Wn(e,"start",t),Qn[n]=!0)}function Vn(e,t){const n=$n(e,"start",t),r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Qn,[n].map(qn));Qn=r}function Jn(e,t){if(!zn())return;const n=$n(e,"start",t);Qn[n]&&(Wn(e,"end",t),Vn(e,t))}function Xn(){zn()&&(performance.clearMarks(),Qn={})}var Gn=n(784);function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Yn(e,t,n=l.low){const r=(0,Gn.useRef)(t);return(0,Gn.useEffect)((()=>{r.current=t}),[t]),(0,Gn.useCallback)((t=>{$t(e,Zn({},r.current,t),n)}),[e,n])}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t,n=l.low){(0,Gn.useEffect)((()=>{const r=er({},t,{action:f.render});$t(e,r,n)}),[])}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}const rr=function(e,t){return{markStartPerf:(0,Gn.useCallback)((()=>Hn(e,t)),[e,t]),markEndPerf:(0,Gn.useCallback)((n=>Jn(e,nr({},t,n))),[e,t])}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(){return Object.entries(ir({},Se,zt(),{sessionUUID:oe.sessionUUID,userId:oe.userId})).reduce(((e,t)=>{return null!=(n=t[1])&&""!==n?ir({},e,{[t[0]]:t[1]}):e;var n}),{})}async function or(){return new Promise((e=>{Mt(vt(je.eventsQueue)),Qt(bt(je.metricsQueue),!0),Pn(je.tracesQueue,!0),Ne({eventsQueue:[],metricsQueue:[],tracesQueue:[]}),e()}))}function sr(){return{"X-CB-Device-ID":H.deviceId||"unknown","X-CB-Is-Logged-In":H.userId?"true":"false","X-CB-Pagekey":re.pageKey||"unknown","X-CB-UJS":(e=Se.ujs,void 0===e||0===e.length?"":e.join(",")),"X-CB-Platform":A.platform||"unknown","X-CB-Project-Name":A.projectName||"unknown","X-CB-Session-UUID":oe.sessionUUID||"unknown","X-CB-Version-Name":A.version?String(A.version):"unknown"};var e}})(),r})()}));',fg=()=>new Promise((e,t)=>{if(typeof window>"u"){t(new Error("Telemetry is not supported in non-browser environments"));return}if(window.ClientAnalytics)return e();try{const n=document.createElement("script");n.textContent=mg,n.type="text/javascript",document.head.appendChild(n),yg(),document.head.removeChild(n),e()}catch{console.error("Failed to execute inlined telemetry script"),t()}}),yg=()=>{if(typeof window<"u"){const e=g.config.get().deviceId??crypto?.randomUUID()??"";if(window.ClientAnalytics){const{init:t,identify:n,PlatformName:a}=window.ClientAnalytics;t({isProd:!0,amplitudeApiKey:"c66737ad47ec354ced777935b0af822e",platform:a.web,projectName:"base_account_sdk",showDebugLogging:!1,version:"1.0.0",apiEndpoint:"https://cca-lite.coinbase.com"}),n({deviceId:e}),g.config.set({deviceId:e})}}},hg="0xba5ed110efdba3d005bfc882d75358acbbb85842",J="0xf85210B21cC50302F477BA56686d2019dC9b67Ad",K=[{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"}],Zn=[{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"}],ie=[{type:"constructor",inputs:[{name:"publicERC6492Validator",type:"address",internalType:"contract PublicERC6492Validator"},{name:"magicSpend",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"MAGIC_SPEND",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"NATIVE_TOKEN",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"PERMISSION_DETAILS_TYPEHASH",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"PUBLIC_ERC6492_VALIDATOR",inputs:[],outputs:[{name:"",type:"address",internalType:"contract PublicERC6492Validator"}],stateMutability:"view"},{type:"function",name:"SPEND_PERMISSION_BATCH_TYPEHASH",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"SPEND_PERMISSION_TYPEHASH",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"approve",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"nonpayable"},{type:"function",name:"approveBatchWithSignature",inputs:[{name:"spendPermissionBatch",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermissionBatch",components:[{name:"account",type:"address",internalType:"address"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"permissions",type:"tuple[]",internalType:"struct SpendPermissionManager.PermissionDetails[]",components:[{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"nonpayable"},{type:"function",name:"approveWithRevoke",inputs:[{name:"permissionToApprove",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"permissionToRevoke",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"expectedLastUpdatedPeriod",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"nonpayable"},{type:"function",name:"approveWithSignature",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"getBatchHash",inputs:[{name:"spendPermissionBatch",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermissionBatch",components:[{name:"account",type:"address",internalType:"address"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"permissions",type:"tuple[]",internalType:"struct SpendPermissionManager.PermissionDetails[]",components:[{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}]}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getCurrentPeriod",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getLastUpdatedPeriod",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}],stateMutability:"view"},{type:"function",name:"isApproved",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isRevoked",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isValid",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"revoke",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"revokeAsSpender",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"spend",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"value",type:"uint160",internalType:"uint160"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"spendWithWithdraw",inputs:[{name:"spendPermission",type:"tuple",internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]},{name:"value",type:"uint160",internalType:"uint160"},{name:"withdrawRequest",type:"tuple",internalType:"struct MagicSpend.WithdrawRequest",components:[{name:"signature",type:"bytes",internalType:"bytes"},{name:"asset",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"},{name:"nonce",type:"uint256",internalType:"uint256"},{name:"expiry",type:"uint48",internalType:"uint48"}]}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"SpendPermissionApproved",inputs:[{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"spendPermission",type:"tuple",indexed:!1,internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],anonymous:!1},{type:"event",name:"SpendPermissionRevoked",inputs:[{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"spendPermission",type:"tuple",indexed:!1,internalType:"struct SpendPermissionManager.SpendPermission",components:[{name:"account",type:"address",internalType:"address"},{name:"spender",type:"address",internalType:"address"},{name:"token",type:"address",internalType:"address"},{name:"allowance",type:"uint160",internalType:"uint160"},{name:"period",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"salt",type:"uint256",internalType:"uint256"},{name:"extraData",type:"bytes",internalType:"bytes"}]}],anonymous:!1},{type:"event",name:"SpendPermissionUsed",inputs:[{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"},{name:"account",type:"address",indexed:!0,internalType:"address"},{name:"spender",type:"address",indexed:!0,internalType:"address"},{name:"token",type:"address",indexed:!1,internalType:"address"},{name:"periodSpend",type:"tuple",indexed:!1,internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}],anonymous:!1},{type:"error",name:"AfterSpendPermissionEnd",inputs:[{name:"currentTimestamp",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"}]},{type:"error",name:"BeforeSpendPermissionStart",inputs:[{name:"currentTimestamp",type:"uint48",internalType:"uint48"},{name:"start",type:"uint48",internalType:"uint48"}]},{type:"error",name:"ERC721TokenNotSupported",inputs:[{name:"token",type:"address",internalType:"address"}]},{type:"error",name:"EmptySpendPermissionBatch",inputs:[]},{type:"error",name:"ExceededSpendPermission",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"allowance",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidLastUpdatedPeriod",inputs:[{name:"actualLastUpdatedPeriod",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]},{name:"expectedLastUpdatedPeriod",type:"tuple",internalType:"struct SpendPermissionManager.PeriodSpend",components:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"},{name:"spend",type:"uint160",internalType:"uint160"}]}]},{type:"error",name:"InvalidSender",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expected",type:"address",internalType:"address"}]},{type:"error",name:"InvalidSignature",inputs:[]},{type:"error",name:"InvalidStartEnd",inputs:[{name:"start",type:"uint48",internalType:"uint48"},{name:"end",type:"uint48",internalType:"uint48"}]},{type:"error",name:"InvalidWithdrawRequestNonce",inputs:[{name:"noncePostfix",type:"uint128",internalType:"uint128"},{name:"permissionHashPostfix",type:"uint128",internalType:"uint128"}]},{type:"error",name:"MismatchedAccounts",inputs:[{name:"firstAccount",type:"address",internalType:"address"},{name:"secondAccount",type:"address",internalType:"address"}]},{type:"error",name:"SafeERC20FailedOperation",inputs:[{name:"token",type:"address",internalType:"address"}]},{type:"error",name:"SpendTokenWithdrawAssetMismatch",inputs:[{name:"spendToken",type:"address",internalType:"address"},{name:"withdrawAsset",type:"address",internalType:"address"}]},{type:"error",name:"SpendValueOverflow",inputs:[{name:"value",type:"uint256",internalType:"uint256"}]},{type:"error",name:"SpendValueWithdrawAmountMismatch",inputs:[{name:"spendValue",type:"uint256",internalType:"uint256"},{name:"withdrawAmount",type:"uint256",internalType:"uint256"}]},{type:"error",name:"UnauthorizedSpendPermission",inputs:[]},{type:"error",name:"UnexpectedReceiveAmount",inputs:[{name:"received",type:"uint256",internalType:"uint256"},{name:"expected",type:"uint256",internalType:"uint256"}]},{type:"error",name:"ZeroAllowance",inputs:[]},{type:"error",name:"ZeroPeriod",inputs:[]},{type:"error",name:"ZeroSpender",inputs:[]},{type:"error",name:"ZeroToken",inputs:[]},{type:"error",name:"ZeroValue",inputs:[]}],j={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},at={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},Jn="Unspecified error message.",gg="Unspecified server error.";function Lt(e,t=Jn){if(e&&Number.isInteger(e)){const n=e.toString();if(rt(at,n))return at[n].message;if(Yn(e))return gg}return t}function bg(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!(at[t]||Yn(e))}function wg(e,{shouldIncludeStack:t=!1}={}){const n={};if(e&&typeof e=="object"&&!Array.isArray(e)&&rt(e,"code")&&bg(e.code)){const a=e;n.code=a.code,a.message&&typeof a.message=="string"?(n.message=a.message,rt(a,"data")&&(n.data=a.data)):(n.message=Lt(n.code),n.data={originalError:rn(e)})}else n.code=j.rpc.internal,n.message=sn(e,"message")?e.message:Jn,n.data={originalError:rn(e)};return t&&(n.stack=sn(e,"stack")?e.stack:void 0),n}function Yn(e){return e>=-32099&&e<=-32e3}function rn(e){return e&&typeof e=="object"&&!Array.isArray(e)?Object.assign({},e):e}function rt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sn(e,t){return typeof e=="object"&&e!==null&&t in e&&typeof e[t]=="string"}const b={rpc:{parse:e=>U(j.rpc.parse,e),invalidRequest:e=>U(j.rpc.invalidRequest,e),invalidParams:e=>U(j.rpc.invalidParams,e),methodNotFound:e=>U(j.rpc.methodNotFound,e),internal:e=>U(j.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return U(t,e)},invalidInput:e=>U(j.rpc.invalidInput,e),resourceNotFound:e=>U(j.rpc.resourceNotFound,e),resourceUnavailable:e=>U(j.rpc.resourceUnavailable,e),transactionRejected:e=>U(j.rpc.transactionRejected,e),methodNotSupported:e=>U(j.rpc.methodNotSupported,e),limitExceeded:e=>U(j.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ae(j.provider.userRejectedRequest,e),unauthorized:e=>ae(j.provider.unauthorized,e),unsupportedMethod:e=>ae(j.provider.unsupportedMethod,e),disconnected:e=>ae(j.provider.disconnected,e),chainDisconnected:e=>ae(j.provider.chainDisconnected,e),unsupportedChain:e=>ae(j.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:a}=e;if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string');return new Xn(t,n,a)}}};function U(e,t){const[n,a]=Qn(t);return new Bt(e,n||Lt(e),a)}function ae(e,t){const[n,a]=Qn(t);return new Xn(e,n||Lt(e),a)}function Qn(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}class Bt extends Error{code;data;constructor(t,n,a){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!n||typeof n!="string")throw new Error('"message" must be a nonempty string.');super(n),this.code=t,a!==void 0&&(this.data=a)}}class Xn extends Bt{constructor(t,n,a){if(!vg(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,n,a)}}function vg(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function on(e){return typeof e=="object"&&e!==null&&"code"in e&&"data"in e&&e.code===-32090&&typeof e.data=="object"&&e.data!==null&&"type"in e.data&&e.data.type==="INSUFFICIENT_FUNDS"}function _n(e){return typeof e=="object"&&e!==null&&"details"in e}function Tg(e){try{const t=JSON.parse(e.details);return new Bt(t.code,t.message,t.data)}catch{return null}}function N(e,t,n){if(e==null)throw t??b.rpc.invalidParams({message:"value must be present",data:e})}function W(e,t){if(!Array.isArray(e))throw b.rpc.invalidParams({message:t??"value must be an array",data:e})}const kg=`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.
|
|
2
2
|
|
|
3
3
|
Please see https://docs.base.org/smart-wallet/quickstart#cross-origin-opener-policy for more information.`,Sg=()=>{let e;return{getCrossOriginOpenerPolicy:()=>e===void 0?"undefined":e,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>"u"){e="non-browser-env";return}try{const t=`${window.location.origin}${window.location.pathname}`,n=await fetch(t,{method:"HEAD"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);e=n.headers.get("Cross-Origin-Opener-Policy")??"null",e==="same-origin"&&console.error(kg)}catch(t){console.error("Error checking Cross-Origin-Opener-Policy:",t.message),e="error"}}}},{checkCrossOriginOpenerPolicy:xg,getCrossOriginOpenerPolicy:Pg}=Sg();function Ag(e){if(e){if(e.attribution&&e.attribution.auto!==void 0&&e.attribution.dataSuffix!==void 0)throw new Error("Attribution cannot contain both auto and dataSuffix properties");if(e.telemetry&&typeof e.telemetry!="boolean")throw new Error("Telemetry must be a boolean")}}function cn(e){if(typeof e!="function")throw new Error("toAccount is not a function")}var x;(function(e){e.unknown="unknown",e.banner="banner",e.button="button",e.card="card",e.chart="chart",e.content_script="content_script",e.dropdown="dropdown",e.link="link",e.page="page",e.modal="modal",e.table="table",e.search_bar="search_bar",e.service_worker="service_worker",e.text="text",e.text_input="text_input",e.tray="tray",e.checkbox="checkbox",e.icon="icon"})(x||(x={}));var P;(function(e){e.unknown="unknown",e.blur="blur",e.click="click",e.change="change",e.dismiss="dismiss",e.focus="focus",e.hover="hover",e.select="select",e.measurement="measurement",e.move="move",e.process="process",e.render="render",e.scroll="scroll",e.view="view",e.search="search",e.keyPress="keyPress",e.error="error"})(P||(P={}));var A;(function(e){e.low="low",e.high="high"})(A||(A={}));function C(e,t,n){typeof window<"u"&&window.ClientAnalytics&&window.ClientAnalytics?.logEvent(e,{...t,sdkVersion:ce,sdkName:He,appName:g.config.get().metadata?.appName??"",appOrigin:window.location.origin},n)}const Cg=()=>{C("communicator.popup_setup.started",{action:P.unknown,componentType:x.unknown},A.high)},Eg=()=>{C("communicator.popup_setup.completed",{action:P.unknown,componentType:x.unknown},A.high)},Ig=()=>{C("communicator.popup_unload.received",{action:P.unknown,componentType:x.unknown},A.high)},Ft=({dialogContext:e})=>{C(`dialog.${e}.shown`,{action:P.render,componentType:x.modal,dialogContext:e},A.high)},$n=({dialogContext:e})=>{C(`dialog.${e}.dismissed`,{action:P.dismiss,componentType:x.modal,dialogContext:e},A.high)},te=({dialogContext:e,dialogAction:t})=>{C(`dialog.${e}.action_clicked`,{action:P.click,componentType:x.button,dialogContext:e,dialogAction:t},A.high)},Og=`
|
|
4
4
|
@font-face {
|