@tempoxyz/id 0.0.0-pr-428.sha-9d53a68 → 0.0.0-pr-429.sha-e4574a9

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.
Files changed (39) hide show
  1. package/dist/app/client/assets/{Account-ASt_jKy7.js → Account-C26UBG4x.js} +1 -1
  2. package/dist/app/client/assets/{Approval-yy6rgxz5.js → Approval-CssiOkHk.js} +1 -1
  3. package/dist/app/client/assets/{Deposit-dpfD71HD.js → Deposit-DaoO9KzA.js} +1 -1
  4. package/dist/app/client/assets/{DeviceApproval-BlLTUlOg.js → DeviceApproval-DonT6Grr.js} +1 -1
  5. package/dist/app/client/assets/{Grant-DD3fzrZo.js → Grant-rhsU0ABA.js} +1 -1
  6. package/dist/app/client/assets/{Permissions-PVqUrHCN.js → Permissions-BAb6cRjR.js} +1 -1
  7. package/dist/app/client/assets/{SignIn-ohkFlmQV.js → SignIn-D7x02FSh.js} +1 -1
  8. package/dist/app/client/assets/{WalletUpgrade-Ct-qVWnu.js → WalletUpgrade-eh4VSPVN.js} +1 -1
  9. package/dist/app/client/assets/{___.flows-DiUG6gWR.js → ___.flows-B_QHVvJF.js} +1 -1
  10. package/dist/app/client/assets/{authorize-CLUIDfey.js → authorize-h9Nj1BBr.js} +1 -1
  11. package/dist/app/client/assets/{call-B5Jd8IZw.js → call-Dx95mpAF.js} +2 -2
  12. package/dist/app/client/assets/{ccip-B6w_XEiM.js → ccip-z-y7AQj_.js} +1 -1
  13. package/dist/app/client/assets/{choose-account-DVGg-3dN.js → choose-account-CVDkREVs.js} +1 -1
  14. package/dist/app/client/assets/{deposit-D8db0AdK.js → deposit-COT2eieV.js} +3 -3
  15. package/dist/app/client/assets/{device-CwdIl6la.js → device-Ba2YnoZg.js} +1 -1
  16. package/dist/app/client/assets/{devices-YHuzHNEl.js → devices-4VVXiHnM.js} +1 -1
  17. package/dist/app/client/assets/{error-B9QTjIgK.js → error-DEHATa0i.js} +1 -1
  18. package/dist/app/client/assets/{index-DHHmdOEu.js → index-DdbcUaHb.js} +2 -2
  19. package/dist/app/client/assets/{login-BzRmgZbZ.js → login-Wx4kfF_e.js} +1 -1
  20. package/dist/app/client/assets/{permissions-B7Yume3y.js → permissions-C26ka8QT.js} +1 -1
  21. package/dist/app/client/assets/{resolveError-JkyQP4vZ.js → resolveError-C9KUAnFR.js} +1 -1
  22. package/dist/app/client/assets/{routes-BCVZV2xa.js → routes-9lxmP4of.js} +1 -1
  23. package/dist/app/client/assets/{sign-out-everywhere-CPwRsIok.js → sign-out-everywhere-CX-9qim-.js} +1 -1
  24. package/dist/app/server/.vite/manifest.json +8 -8
  25. package/dist/app/server/assets/Grant-BHsUfCDj.js.map +1 -1
  26. package/dist/app/server/assets/{_tanstack-start-manifest_v-CkLyZrtH.js → _tanstack-start-manifest_v-DcDBFlqQ.js} +1 -1
  27. package/dist/app/server/assets/deposit-C0XrOBKz.js +2 -0
  28. package/dist/app/server/assets/deposit-C0XrOBKz.js.map +1 -0
  29. package/dist/app/server/assets/{deposit-C3guPi3I.js → deposit-gpGUK1qw.js} +2 -2
  30. package/dist/app/server/assets/{deposit-C3guPi3I.js.map → deposit-gpGUK1qw.js.map} +1 -1
  31. package/dist/app/server/assets/{router-DK0tiON6.js → router-588dcJWj.js} +2 -2
  32. package/dist/app/server/assets/{router-DK0tiON6.js.map → router-588dcJWj.js.map} +1 -1
  33. package/dist/app/server/assets/{server-SWixgo9f.js → server-C4vaKHMy.js} +2 -2
  34. package/dist/app/server/assets/{server-SWixgo9f.js.map → server-C4vaKHMy.js.map} +1 -1
  35. package/dist/app/server/index.js +1 -1
  36. package/package.json +1 -1
  37. package/src/app/routes/deposit.tsx +5 -12
  38. package/dist/app/server/assets/deposit-Cc8d2nXl.js +0 -2
  39. package/dist/app/server/assets/deposit-Cc8d2nXl.js.map +0 -1
@@ -1 +1 @@
1
- import{n as e,r as t,tt as n}from"./zyzz.config-Dg1ZU-Ph.js";import{n as r,t as i}from"./Stack-ClVHbhR2.js";import{n as a}from"./Hex-BwYW3WFP.js";import{t as o}from"./Alert-B7YPFnuz.js";import{t as s}from"./Tooltip-DU7SJF-3.js";import{n as c,t as l}from"./ListGroup-9__glSci.js";import{n as u,t as d}from"./Key-CH1mTM0j.js";import{t as f}from"./IconTile-BfvEs6xV.js";import{r as p}from"./SignIn-ohkFlmQV.js";import{t as m}from"./Fingerprint-tnq6MqVN.js";import{t as h}from"./Cloud-C_CdgeuV.js";import{t as g}from"./Laptop-Cm3DWcNX.js";import{t as _}from"./LogOut-B-Ne9Afi.js";var v=n();function y(e){return(0,v.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,v.jsx)(`path`,{d:`M13.5 9.33398C13.7761 9.33398 14 9.55784 14 9.83398V12.834C13.9997 13.4781 13.4772 14.001 12.833 14.001H3.16699C2.52283 14.001 2.00026 13.4781 2 12.834V9.83398C2 9.55784 2.22386 9.33398 2.5 9.33398C2.77614 9.33398 3 9.55784 3 9.83398V12.834C3.00026 12.9258 3.0751 13.001 3.16699 13.001H12.833C12.9249 13.001 12.9997 12.9258 13 12.834V9.83398C13 9.55784 13.2239 9.33398 13.5 9.33398Z`,fill:`currentColor`}),(0,v.jsx)(`path`,{d:`M8 2C8.27614 2 8.5 2.22386 8.5 2.5V8.79199L9.98047 7.3125C10.1757 7.11779 10.4924 7.1175 10.6875 7.3125C10.8824 7.5076 10.8822 7.82428 10.6875 8.01953L8.35352 10.3525C8.15825 10.5478 7.84175 10.5478 7.64648 10.3525L5.31348 8.01953C5.1183 7.82426 5.11824 7.50773 5.31348 7.3125C5.50874 7.11763 5.82536 7.11744 6.02051 7.3125L7.5 8.79199V2.5C7.5 2.22386 7.72386 2 8 2Z`,fill:`currentColor`})]})}function b(e){let{accounts:n}=e,a=n?.length===1?n[0]:void 0,s=e.heading??`h1`,y=e.heading===`h4`?`h5`:`h2`;return(0,v.jsxs)(i,{className:D.column?`z_tempo_2d_id-J3oRTbz z_tempo_2d_id-J3oRTb10`:D.column().className,gap:`32`,children:[(0,v.jsxs)(i,{align:`center`,gap:`12`,render:(0,v.jsx)(`header`,{}),children:[(0,v.jsx)(u,{className:D.avatar?`z_tempo_2d_id-J3oRTbc z_tempo_2d_id-J3oRTbd z_tempo_2d_id-J3oRTbe z_tempo_2d_id-J3oRTbf z_tempo_2d_id-J3oRTbg z_tempo_2d_id-J3oRTbh z_tempo_2d_id-J3oRTbi`:D.avatar().className,"aria-hidden":!0,size:`40`,children:(0,v.jsx)(u.Fallback,{children:(e.name||e.email).charAt(0)})}),(0,v.jsxs)(i,{className:D.identity?`z_tempo_2d_id-J3oRTb1h z_tempo_2d_id-J3oRTb1e`:D.identity().className,gap:`4`,children:[(0,v.jsx)(s,{...D.name({compact:a!==void 0}),children:e.name||e.email}),e.name?(0,v.jsx)(`p`,{className:D.email?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTb14 z_tempo_2d_id-J3oRTb15 z_tempo_2d_id-J3oRTb16 z_tempo_2d_id-J3oRTb17 z_tempo_2d_id-J3oRTb18`:D.email().className,children:e.email}):null]})]}),n?n.length?a?(0,v.jsxs)(i,{className:D.hero?`z_tempo_2d_id-J3oRTb1d z_tempo_2d_id-J3oRTb1e`:D.hero().className,align:`center`,"aria-label":`Wallet`,gap:`16`,render:(0,v.jsx)(`section`,{}),children:[(0,v.jsxs)(i,{align:`center`,gap:`4`,children:[(0,v.jsx)(`span`,{className:D.caption?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-J3oRTbs z_tempo_2d_id-J3oRTbt z_tempo_2d_id-J3oRTbu`:D.caption().className,children:`Balance`}),a.balance?(0,v.jsx)(c,{className:D.balance?`z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTbk z_tempo_2d_id-J3oRTbl z_tempo_2d_id-J3oRTbm z_tempo_2d_id-J3oRTbn z_tempo_2d_id-J3oRTbo`:D.balance().className,align:`center`,currency:a.balance.currency,"data-testid":`balance`,value:a.balance.amount}):(0,v.jsx)(`span`,{className:D.unavailable?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTb25 z_tempo_2d_id-J3oRTb26 z_tempo_2d_id-J3oRTb27 z_tempo_2d_id-J3oRTb28 z_tempo_2d_id-J3oRTb29`:D.unavailable().className,"data-testid":`balance`,children:`Balance unavailable`})]}),(0,v.jsx)(x,{entry:a,funding:e.funding,large:!0,onFund:e.onFund})]}):(0,v.jsxs)(i,{gap:`8`,render:(0,v.jsx)(`section`,{}),children:[(0,v.jsx)(y,{className:D.label?`z_tempo_2d_id-J3oRTb1i z_tempo_2d_id-J3oRTb1j z_tempo_2d_id-J3oRTb1k z_tempo_2d_id-J3oRTb1l z_tempo_2d_id-J3oRTb1m z_tempo_2d_id-J3oRTb1n z_tempo_2d_id-J3oRTb1o`:D.label().className,children:`Wallets`}),(0,v.jsx)(l,{className:D.list?`z_tempo_2d_id-J3oRTb19 z_tempo_2d_id-J3oRTb1a z_tempo_2d_id-J3oRTb1p z_tempo_2d_id-J3oRTb1q z_tempo_2d_id-J3oRTb1b z_tempo_2d_id-J3oRTb1r z_tempo_2d_id-J3oRTb1s`:D.list().className,"aria-label":`Wallets`,dividers:!1,role:`list`,children:n.map(t=>(0,v.jsxs)(l.Row,{render:(0,v.jsx)(`li`,{}),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:t.owner===`webAuthn`?(0,v.jsx)(m,{}):(0,v.jsx)(h,{})}),(0,v.jsx)(l.Info,{children:(0,v.jsx)(l.Title,{children:T(t)})}),t.balance?(0,v.jsx)(c,{className:D.amount?`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb1 z_tempo_2d_id-J3oRTb2 z_tempo_2d_id-J3oRTb3 z_tempo_2d_id-J3oRTb4 z_tempo_2d_id-J3oRTb5`:D.amount().className,currency:t.balance.currency,"data-testid":`balance`,value:t.balance.amount}):(0,v.jsx)(`span`,{className:D.missing?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTb1t z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-J3oRTbs z_tempo_2d_id-J3oRTbt z_tempo_2d_id-J3oRTbu`:D.missing().className,"aria-label":`Balance unavailable`,"data-testid":`balance`,role:`img`,title:`Balance unavailable`,children:`–`}),(0,v.jsx)(S,{account:e,entry:t}),(0,v.jsx)(x,{entry:t,funding:e.funding,onFund:e.onFund})]},t.address))})]}):(0,v.jsx)(`p`,{className:D.hint?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTb1f z_tempo_2d_id-J3oRTb1g z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-J3oRTbs z_tempo_2d_id-J3oRTbt z_tempo_2d_id-J3oRTbu`:D.hint().className,children:e.onAddPasskey?`You have no wallets yet. Create one with a passkey.`:`You have no wallets yet, and this account cannot create one. Contact Tempo support.`}):e.accountError?(0,v.jsxs)(o,{intent:`negative`,children:[(0,v.jsx)(o.Icon,{}),(0,v.jsx)(o.Content,{children:e.accountError})]}):null,(0,v.jsxs)(l,{className:D.group?`z_tempo_2d_id-J3oRTb19 z_tempo_2d_id-J3oRTb1a z_tempo_2d_id-J3oRTb1b z_tempo_2d_id-J3oRTb1c`:D.group().className,"aria-label":`Settings`,dividers:!1,children:[(()=>{let r=a?C(e,a):void 0;return a&&(r===`upgrade`||r===`cloudWallet`)?(0,v.jsxs)(l.Row,{disabled:w(e,a)||e.upgrading===a.address||e.preparing?.includes(a.address),onClick:()=>e.onUpgrade?.(a.address),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:r===`cloudWallet`?(0,v.jsx)(h,{}):(0,v.jsx)(p,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:r===`cloudWallet`?`Use without your passkey`:`Upgrade wallet`}),(0,v.jsx)(l.Description,{children:r===`cloudWallet`?`Approve apps after an email sign-in`:`Keep its address, and add owners later`})]}),e.upgrading===a.address||e.preparing?.includes(a.address)?(0,v.jsx)(t,{}):null]}):n?.length===0&&e.onAddPasskey?(0,v.jsxs)(l.Row,{disabled:e.signingOut||e.addingPasskey,onClick:e.onAddPasskey,children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(m,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:e.onAddOwner?`Add passkey`:`Create wallet with passkey`}),(0,v.jsx)(l.Description,{children:`Sign for it with this device`})]}),e.addingPasskey?(0,v.jsx)(t,{}):null]}):null})(),a&&C(e,a)===`owner`?(0,v.jsxs)(l.Row,{disabled:w(e,a),onClick:()=>e.onAddOwner?.(a.address),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(m,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:`Add passkey`}),(0,v.jsx)(l.Description,{children:`Sign for this wallet with a passkey`})]}),e.addingPasskey?(0,v.jsx)(t,{}):null]}):e.onAddPasskey&&n?.length!==0&&!(e.onAddOwner&&n?.length)?(0,v.jsxs)(l.Row,{disabled:e.signingOut||e.addingPasskey,onClick:e.onAddPasskey,children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(m,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:`Add passkey`}),(0,v.jsx)(l.Description,{children:`Sign in without an emailed code`})]}),e.addingPasskey?(0,v.jsx)(t,{}):null]}):null,(0,v.jsxs)(l.Row,{action:`navigation`,render:(0,v.jsx)(r,{to:`/devices`}),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(g,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:`Devices`}),(0,v.jsx)(l.Description,{children:`Where you are signed in`})]})]}),(0,v.jsxs)(l.Row,{action:`navigation`,render:(0,v.jsx)(r,{to:`/permissions`}),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(d,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:`Permissions`}),(0,v.jsx)(l.Description,{children:`What apps can spend from your wallet`})]})]})]}),(0,v.jsx)(l,{className:D.group?`z_tempo_2d_id-J3oRTb19 z_tempo_2d_id-J3oRTb1a z_tempo_2d_id-J3oRTb1b z_tempo_2d_id-J3oRTb1c`:D.group().className,"aria-label":`Session`,dividers:!1,children:(0,v.jsxs)(l.Row,{className:D.signOut?`z_tempo_2d_id-J3oRTb24`:D.signOut().className,disabled:e.signingOut||e.addingPasskey||e.upgrading!==void 0,onClick:e.onSignOut,children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(_,{})}),(0,v.jsx)(l.Info,{children:(0,v.jsx)(l.Title,{children:`Sign out`})}),e.signingOut?(0,v.jsx)(t,{}):null]})}),e.error?(0,v.jsxs)(o,{intent:`negative`,children:[(0,v.jsx)(o.Icon,{}),(0,v.jsx)(o.Content,{children:e.error})]}):null,(0,v.jsx)(`p`,{className:D.announcement?`z_tempo_2d_id-J3oRTb6 z_tempo_2d_id-J3oRTb7 z_tempo_2d_id-J3oRTb8 z_tempo_2d_id-J3oRTb9 z_tempo_2d_id-J3oRTba z_tempo_2d_id-J3oRTbb`:D.announcement().className,"aria-live":`polite`,role:`status`,children:(()=>{if(e.signingOut)return`Signing out.`;if(e.funding)return`Funding the wallet from the faucet.`;if(e.addingPasskey)return`Adding a passkey.`;if(e.upgrading)return`Upgrading the wallet.`;if(e.ownerAdded===`passkey`)return`Passkey added. It signs you in, and signs for the wallet beside its cloud wallet.`;if(e.passkeyAdded)return`Passkey added. It signs you in, and holds the new passkey wallet.`})()})]})}function x(t){let{address:n}=t.entry,{onFund:i}=t,o=(0,v.jsx)(y,{...t.large?D.depositIcon?{className:`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`}:D.depositIcon():D.icon?{className:`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`}:D.icon()});return t.large&&i?(0,v.jsxs)(e,{"aria-label":`Fund ${T(t.entry)} wallet ${a(n)} from the faucet`,disabled:t.funding!==void 0&&t.funding!==n,loading:t.funding===n,onClick:()=>i(n),variant:`secondary`,children:[o,`Fund`]}):t.large?(0,v.jsxs)(e.Link,{"aria-label":`Deposit to ${T(t.entry)} wallet ${a(n)}`,render:(0,v.jsx)(r,{search:{address:n},to:`/deposit`}),variant:`secondary`,children:[o,`Deposit`]}):i?(0,v.jsxs)(s.Root,{children:[(0,v.jsx)(s.Trigger,{delay:150,render:(0,v.jsx)(e,{className:D.deposit?`z_tempo_2d_id-J3oRTb11`:D.deposit().className,"aria-label":`Fund ${T(t.entry)} wallet ${a(n)} from the faucet`,disabled:t.funding!==void 0&&t.funding!==n,loading:t.funding===n,onClick:()=>i(n),shape:`icon`,size:t.large?`large`:`small`,variant:`tertiary`,children:o})}),(0,v.jsx)(s.Popup,{children:`Fund from faucet`})]}):(0,v.jsxs)(s.Root,{children:[(0,v.jsx)(s.Trigger,{delay:150,render:(0,v.jsx)(e.Link,{className:D.deposit?`z_tempo_2d_id-J3oRTb11`:D.deposit().className,"aria-label":`Deposit to ${T(t.entry)} wallet ${a(n)}`,render:(0,v.jsx)(r,{search:{address:n},to:`/deposit`}),shape:`icon`,size:t.large?`large`:`small`,variant:`tertiary`,children:o})}),(0,v.jsx)(s.Popup,{children:`Deposit`})]})}function S(t){let{account:n,entry:r}=t,i=C(n,r);if(!i)return null;let o=`${T(r)} wallet ${a(r.address)}`,c=i!==`owner`,l={cloudWallet:{aria:`Use ${o} without your passkey`,tip:`Use without your passkey`},owner:{aria:`Add passkey to ${o}`,tip:`Add passkey`},upgrade:{aria:`Upgrade ${o}`,tip:`Upgrade wallet`}}[i];return(0,v.jsxs)(s.Root,{children:[(0,v.jsx)(s.Trigger,{delay:150,render:(0,v.jsx)(e,{className:D.deposit?`z_tempo_2d_id-J3oRTb11`:D.deposit().className,"aria-label":l.aria,disabled:w(n,r),loading:c?n.upgrading===r.address||n.preparing?.includes(r.address):n.addingPasskey,onClick:()=>c?n.onUpgrade?.(r.address):n.onAddOwner?.(r.address),shape:`icon`,size:`small`,variant:`tertiary`,children:i===`cloudWallet`?(0,v.jsx)(h,{className:D.icon?`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`:D.icon().className}):c?(0,v.jsx)(p,{className:D.icon?`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`:D.icon().className}):(0,v.jsx)(m,{className:D.icon?`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`:D.icon().className})})}),(0,v.jsx)(s.Popup,{children:l.tip})]})}function C(e,t){if(!t.configurable&&t.owner===`webAuthn`)return e.onUpgrade?`upgrade`:void 0;if(t.joinable)return e.onUpgrade?`cloudWallet`:void 0;if(t.configurable&&e.onAddOwner&&e.passkeys&&!E(t).includes(`webAuthn`))return`owner`}function w(e,t){return e.signingOut||e.addingPasskey||e.upgrading!==void 0&&e.upgrading!==t.address}function T(e){let t=E(e),n=t.includes(`webAuthn`),r=t.some(e=>e!==`webAuthn`);return n&&r?`Passkey and cloud`:n?`Passkey`:`Cloud`}function E(e){return e.owners??[e.owner]}var D;(function(e){e.amount=1,e.announcement=1,e.avatar=1,e.balance=1,e.caption=1,e.chip=1,e.column=1,e.deposit=1,e.depositIcon=1,e.email=1,e.group=1,e.hero=1,e.hint=1,e.icon=1,e.identity=1,e.label=1,e.list=1,e.missing=1,e.name=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTb1u z_tempo_2d_id-J3oRTb1v z_tempo_2d_id-J3oRTb1w z_tempo_2d_id-J3oRTb1x z_tempo_2d_id-J3oRTb1y z_tempo_2d_id-J3oRTb1z z_tempo_2d_id-J3oRTb20 z_tempo_2d_id-J3oRTb21 z_tempo_2d_id-J3oRTb22 z_tempo_2d_id-J3oRTb23 `+t:`z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTb1u z_tempo_2d_id-J3oRTb1v z_tempo_2d_id-J3oRTb1w z_tempo_2d_id-J3oRTb1x z_tempo_2d_id-J3oRTb1y z_tempo_2d_id-J3oRTb1z z_tempo_2d_id-J3oRTb20 z_tempo_2d_id-J3oRTb21 z_tempo_2d_id-J3oRTb22 z_tempo_2d_id-J3oRTb23`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`compact`)?e.compact:void 0,s!=null&&(o[`data-compact`]=String(s)),o}),e.signOut=1,e.unavailable=1})(D||={});export{b as t};
1
+ import{n as e,r as t,tt as n}from"./zyzz.config-Dg1ZU-Ph.js";import{n as r,t as i}from"./Stack-ClVHbhR2.js";import{n as a}from"./Hex-BwYW3WFP.js";import{t as o}from"./Alert-B7YPFnuz.js";import{t as s}from"./Tooltip-DU7SJF-3.js";import{n as c,t as l}from"./ListGroup-9__glSci.js";import{n as u,t as d}from"./Key-CH1mTM0j.js";import{t as f}from"./IconTile-BfvEs6xV.js";import{r as p}from"./SignIn-D7x02FSh.js";import{t as m}from"./Fingerprint-tnq6MqVN.js";import{t as h}from"./Cloud-C_CdgeuV.js";import{t as g}from"./Laptop-Cm3DWcNX.js";import{t as _}from"./LogOut-B-Ne9Afi.js";var v=n();function y(e){return(0,v.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,v.jsx)(`path`,{d:`M13.5 9.33398C13.7761 9.33398 14 9.55784 14 9.83398V12.834C13.9997 13.4781 13.4772 14.001 12.833 14.001H3.16699C2.52283 14.001 2.00026 13.4781 2 12.834V9.83398C2 9.55784 2.22386 9.33398 2.5 9.33398C2.77614 9.33398 3 9.55784 3 9.83398V12.834C3.00026 12.9258 3.0751 13.001 3.16699 13.001H12.833C12.9249 13.001 12.9997 12.9258 13 12.834V9.83398C13 9.55784 13.2239 9.33398 13.5 9.33398Z`,fill:`currentColor`}),(0,v.jsx)(`path`,{d:`M8 2C8.27614 2 8.5 2.22386 8.5 2.5V8.79199L9.98047 7.3125C10.1757 7.11779 10.4924 7.1175 10.6875 7.3125C10.8824 7.5076 10.8822 7.82428 10.6875 8.01953L8.35352 10.3525C8.15825 10.5478 7.84175 10.5478 7.64648 10.3525L5.31348 8.01953C5.1183 7.82426 5.11824 7.50773 5.31348 7.3125C5.50874 7.11763 5.82536 7.11744 6.02051 7.3125L7.5 8.79199V2.5C7.5 2.22386 7.72386 2 8 2Z`,fill:`currentColor`})]})}function b(e){let{accounts:n}=e,a=n?.length===1?n[0]:void 0,s=e.heading??`h1`,y=e.heading===`h4`?`h5`:`h2`;return(0,v.jsxs)(i,{className:D.column?`z_tempo_2d_id-J3oRTbz z_tempo_2d_id-J3oRTb10`:D.column().className,gap:`32`,children:[(0,v.jsxs)(i,{align:`center`,gap:`12`,render:(0,v.jsx)(`header`,{}),children:[(0,v.jsx)(u,{className:D.avatar?`z_tempo_2d_id-J3oRTbc z_tempo_2d_id-J3oRTbd z_tempo_2d_id-J3oRTbe z_tempo_2d_id-J3oRTbf z_tempo_2d_id-J3oRTbg z_tempo_2d_id-J3oRTbh z_tempo_2d_id-J3oRTbi`:D.avatar().className,"aria-hidden":!0,size:`40`,children:(0,v.jsx)(u.Fallback,{children:(e.name||e.email).charAt(0)})}),(0,v.jsxs)(i,{className:D.identity?`z_tempo_2d_id-J3oRTb1h z_tempo_2d_id-J3oRTb1e`:D.identity().className,gap:`4`,children:[(0,v.jsx)(s,{...D.name({compact:a!==void 0}),children:e.name||e.email}),e.name?(0,v.jsx)(`p`,{className:D.email?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTb14 z_tempo_2d_id-J3oRTb15 z_tempo_2d_id-J3oRTb16 z_tempo_2d_id-J3oRTb17 z_tempo_2d_id-J3oRTb18`:D.email().className,children:e.email}):null]})]}),n?n.length?a?(0,v.jsxs)(i,{className:D.hero?`z_tempo_2d_id-J3oRTb1d z_tempo_2d_id-J3oRTb1e`:D.hero().className,align:`center`,"aria-label":`Wallet`,gap:`16`,render:(0,v.jsx)(`section`,{}),children:[(0,v.jsxs)(i,{align:`center`,gap:`4`,children:[(0,v.jsx)(`span`,{className:D.caption?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-J3oRTbs z_tempo_2d_id-J3oRTbt z_tempo_2d_id-J3oRTbu`:D.caption().className,children:`Balance`}),a.balance?(0,v.jsx)(c,{className:D.balance?`z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTbk z_tempo_2d_id-J3oRTbl z_tempo_2d_id-J3oRTbm z_tempo_2d_id-J3oRTbn z_tempo_2d_id-J3oRTbo`:D.balance().className,align:`center`,currency:a.balance.currency,"data-testid":`balance`,value:a.balance.amount}):(0,v.jsx)(`span`,{className:D.unavailable?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTb25 z_tempo_2d_id-J3oRTb26 z_tempo_2d_id-J3oRTb27 z_tempo_2d_id-J3oRTb28 z_tempo_2d_id-J3oRTb29`:D.unavailable().className,"data-testid":`balance`,children:`Balance unavailable`})]}),(0,v.jsx)(x,{entry:a,funding:e.funding,large:!0,onFund:e.onFund})]}):(0,v.jsxs)(i,{gap:`8`,render:(0,v.jsx)(`section`,{}),children:[(0,v.jsx)(y,{className:D.label?`z_tempo_2d_id-J3oRTb1i z_tempo_2d_id-J3oRTb1j z_tempo_2d_id-J3oRTb1k z_tempo_2d_id-J3oRTb1l z_tempo_2d_id-J3oRTb1m z_tempo_2d_id-J3oRTb1n z_tempo_2d_id-J3oRTb1o`:D.label().className,children:`Wallets`}),(0,v.jsx)(l,{className:D.list?`z_tempo_2d_id-J3oRTb19 z_tempo_2d_id-J3oRTb1a z_tempo_2d_id-J3oRTb1p z_tempo_2d_id-J3oRTb1q z_tempo_2d_id-J3oRTb1b z_tempo_2d_id-J3oRTb1r z_tempo_2d_id-J3oRTb1s`:D.list().className,"aria-label":`Wallets`,dividers:!1,role:`list`,children:n.map(t=>(0,v.jsxs)(l.Row,{render:(0,v.jsx)(`li`,{}),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:t.owner===`webAuthn`?(0,v.jsx)(m,{}):(0,v.jsx)(h,{})}),(0,v.jsx)(l.Info,{children:(0,v.jsx)(l.Title,{children:T(t)})}),t.balance?(0,v.jsx)(c,{className:D.amount?`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb1 z_tempo_2d_id-J3oRTb2 z_tempo_2d_id-J3oRTb3 z_tempo_2d_id-J3oRTb4 z_tempo_2d_id-J3oRTb5`:D.amount().className,currency:t.balance.currency,"data-testid":`balance`,value:t.balance.amount}):(0,v.jsx)(`span`,{className:D.missing?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTb1t z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-J3oRTbs z_tempo_2d_id-J3oRTbt z_tempo_2d_id-J3oRTbu`:D.missing().className,"aria-label":`Balance unavailable`,"data-testid":`balance`,role:`img`,title:`Balance unavailable`,children:`–`}),(0,v.jsx)(S,{account:e,entry:t}),(0,v.jsx)(x,{entry:t,funding:e.funding,onFund:e.onFund})]},t.address))})]}):(0,v.jsx)(`p`,{className:D.hint?`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTb1f z_tempo_2d_id-J3oRTb1g z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-J3oRTbs z_tempo_2d_id-J3oRTbt z_tempo_2d_id-J3oRTbu`:D.hint().className,children:e.onAddPasskey?`You have no wallets yet. Create one with a passkey.`:`You have no wallets yet, and this account cannot create one. Contact Tempo support.`}):e.accountError?(0,v.jsxs)(o,{intent:`negative`,children:[(0,v.jsx)(o.Icon,{}),(0,v.jsx)(o.Content,{children:e.accountError})]}):null,(0,v.jsxs)(l,{className:D.group?`z_tempo_2d_id-J3oRTb19 z_tempo_2d_id-J3oRTb1a z_tempo_2d_id-J3oRTb1b z_tempo_2d_id-J3oRTb1c`:D.group().className,"aria-label":`Settings`,dividers:!1,children:[(()=>{let r=a?C(e,a):void 0;return a&&(r===`upgrade`||r===`cloudWallet`)?(0,v.jsxs)(l.Row,{disabled:w(e,a)||e.upgrading===a.address||e.preparing?.includes(a.address),onClick:()=>e.onUpgrade?.(a.address),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:r===`cloudWallet`?(0,v.jsx)(h,{}):(0,v.jsx)(p,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:r===`cloudWallet`?`Use without your passkey`:`Upgrade wallet`}),(0,v.jsx)(l.Description,{children:r===`cloudWallet`?`Approve apps after an email sign-in`:`Keep its address, and add owners later`})]}),e.upgrading===a.address||e.preparing?.includes(a.address)?(0,v.jsx)(t,{}):null]}):n?.length===0&&e.onAddPasskey?(0,v.jsxs)(l.Row,{disabled:e.signingOut||e.addingPasskey,onClick:e.onAddPasskey,children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(m,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:e.onAddOwner?`Add passkey`:`Create wallet with passkey`}),(0,v.jsx)(l.Description,{children:`Sign for it with this device`})]}),e.addingPasskey?(0,v.jsx)(t,{}):null]}):null})(),a&&C(e,a)===`owner`?(0,v.jsxs)(l.Row,{disabled:w(e,a),onClick:()=>e.onAddOwner?.(a.address),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(m,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:`Add passkey`}),(0,v.jsx)(l.Description,{children:`Sign for this wallet with a passkey`})]}),e.addingPasskey?(0,v.jsx)(t,{}):null]}):e.onAddPasskey&&n?.length!==0&&!(e.onAddOwner&&n?.length)?(0,v.jsxs)(l.Row,{disabled:e.signingOut||e.addingPasskey,onClick:e.onAddPasskey,children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(m,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:`Add passkey`}),(0,v.jsx)(l.Description,{children:`Sign in without an emailed code`})]}),e.addingPasskey?(0,v.jsx)(t,{}):null]}):null,(0,v.jsxs)(l.Row,{action:`navigation`,render:(0,v.jsx)(r,{to:`/devices`}),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(g,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:`Devices`}),(0,v.jsx)(l.Description,{children:`Where you are signed in`})]})]}),(0,v.jsxs)(l.Row,{action:`navigation`,render:(0,v.jsx)(r,{to:`/permissions`}),children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(d,{})}),(0,v.jsxs)(l.Info,{children:[(0,v.jsx)(l.Title,{children:`Permissions`}),(0,v.jsx)(l.Description,{children:`What apps can spend from your wallet`})]})]})]}),(0,v.jsx)(l,{className:D.group?`z_tempo_2d_id-J3oRTb19 z_tempo_2d_id-J3oRTb1a z_tempo_2d_id-J3oRTb1b z_tempo_2d_id-J3oRTb1c`:D.group().className,"aria-label":`Session`,dividers:!1,children:(0,v.jsxs)(l.Row,{className:D.signOut?`z_tempo_2d_id-J3oRTb24`:D.signOut().className,disabled:e.signingOut||e.addingPasskey||e.upgrading!==void 0,onClick:e.onSignOut,children:[(0,v.jsx)(f,{className:D.chip?`z_tempo_2d_id-J3oRTbv z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby`:D.chip().className,"aria-hidden":!0,children:(0,v.jsx)(_,{})}),(0,v.jsx)(l.Info,{children:(0,v.jsx)(l.Title,{children:`Sign out`})}),e.signingOut?(0,v.jsx)(t,{}):null]})}),e.error?(0,v.jsxs)(o,{intent:`negative`,children:[(0,v.jsx)(o.Icon,{}),(0,v.jsx)(o.Content,{children:e.error})]}):null,(0,v.jsx)(`p`,{className:D.announcement?`z_tempo_2d_id-J3oRTb6 z_tempo_2d_id-J3oRTb7 z_tempo_2d_id-J3oRTb8 z_tempo_2d_id-J3oRTb9 z_tempo_2d_id-J3oRTba z_tempo_2d_id-J3oRTbb`:D.announcement().className,"aria-live":`polite`,role:`status`,children:(()=>{if(e.signingOut)return`Signing out.`;if(e.funding)return`Funding the wallet from the faucet.`;if(e.addingPasskey)return`Adding a passkey.`;if(e.upgrading)return`Upgrading the wallet.`;if(e.ownerAdded===`passkey`)return`Passkey added. It signs you in, and signs for the wallet beside its cloud wallet.`;if(e.passkeyAdded)return`Passkey added. It signs you in, and holds the new passkey wallet.`})()})]})}function x(t){let{address:n}=t.entry,{onFund:i}=t,o=(0,v.jsx)(y,{...t.large?D.depositIcon?{className:`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`}:D.depositIcon():D.icon?{className:`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`}:D.icon()});return t.large&&i?(0,v.jsxs)(e,{"aria-label":`Fund ${T(t.entry)} wallet ${a(n)} from the faucet`,disabled:t.funding!==void 0&&t.funding!==n,loading:t.funding===n,onClick:()=>i(n),variant:`secondary`,children:[o,`Fund`]}):t.large?(0,v.jsxs)(e.Link,{"aria-label":`Deposit to ${T(t.entry)} wallet ${a(n)}`,render:(0,v.jsx)(r,{search:{address:n},to:`/deposit`}),variant:`secondary`,children:[o,`Deposit`]}):i?(0,v.jsxs)(s.Root,{children:[(0,v.jsx)(s.Trigger,{delay:150,render:(0,v.jsx)(e,{className:D.deposit?`z_tempo_2d_id-J3oRTb11`:D.deposit().className,"aria-label":`Fund ${T(t.entry)} wallet ${a(n)} from the faucet`,disabled:t.funding!==void 0&&t.funding!==n,loading:t.funding===n,onClick:()=>i(n),shape:`icon`,size:t.large?`large`:`small`,variant:`tertiary`,children:o})}),(0,v.jsx)(s.Popup,{children:`Fund from faucet`})]}):(0,v.jsxs)(s.Root,{children:[(0,v.jsx)(s.Trigger,{delay:150,render:(0,v.jsx)(e.Link,{className:D.deposit?`z_tempo_2d_id-J3oRTb11`:D.deposit().className,"aria-label":`Deposit to ${T(t.entry)} wallet ${a(n)}`,render:(0,v.jsx)(r,{search:{address:n},to:`/deposit`}),shape:`icon`,size:t.large?`large`:`small`,variant:`tertiary`,children:o})}),(0,v.jsx)(s.Popup,{children:`Deposit`})]})}function S(t){let{account:n,entry:r}=t,i=C(n,r);if(!i)return null;let o=`${T(r)} wallet ${a(r.address)}`,c=i!==`owner`,l={cloudWallet:{aria:`Use ${o} without your passkey`,tip:`Use without your passkey`},owner:{aria:`Add passkey to ${o}`,tip:`Add passkey`},upgrade:{aria:`Upgrade ${o}`,tip:`Upgrade wallet`}}[i];return(0,v.jsxs)(s.Root,{children:[(0,v.jsx)(s.Trigger,{delay:150,render:(0,v.jsx)(e,{className:D.deposit?`z_tempo_2d_id-J3oRTb11`:D.deposit().className,"aria-label":l.aria,disabled:w(n,r),loading:c?n.upgrading===r.address||n.preparing?.includes(r.address):n.addingPasskey,onClick:()=>c?n.onUpgrade?.(r.address):n.onAddOwner?.(r.address),shape:`icon`,size:`small`,variant:`tertiary`,children:i===`cloudWallet`?(0,v.jsx)(h,{className:D.icon?`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`:D.icon().className}):c?(0,v.jsx)(p,{className:D.icon?`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`:D.icon().className}):(0,v.jsx)(m,{className:D.icon?`z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13`:D.icon().className})})}),(0,v.jsx)(s.Popup,{children:l.tip})]})}function C(e,t){if(!t.configurable&&t.owner===`webAuthn`)return e.onUpgrade?`upgrade`:void 0;if(t.joinable)return e.onUpgrade?`cloudWallet`:void 0;if(t.configurable&&e.onAddOwner&&e.passkeys&&!E(t).includes(`webAuthn`))return`owner`}function w(e,t){return e.signingOut||e.addingPasskey||e.upgrading!==void 0&&e.upgrading!==t.address}function T(e){let t=E(e),n=t.includes(`webAuthn`),r=t.some(e=>e!==`webAuthn`);return n&&r?`Passkey and cloud`:n?`Passkey`:`Cloud`}function E(e){return e.owners??[e.owner]}var D;(function(e){e.amount=1,e.announcement=1,e.avatar=1,e.balance=1,e.caption=1,e.chip=1,e.column=1,e.deposit=1,e.depositIcon=1,e.email=1,e.group=1,e.hero=1,e.hint=1,e.icon=1,e.identity=1,e.label=1,e.list=1,e.missing=1,e.name=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTb1u z_tempo_2d_id-J3oRTb1v z_tempo_2d_id-J3oRTb1w z_tempo_2d_id-J3oRTb1x z_tempo_2d_id-J3oRTb1y z_tempo_2d_id-J3oRTb1z z_tempo_2d_id-J3oRTb20 z_tempo_2d_id-J3oRTb21 z_tempo_2d_id-J3oRTb22 z_tempo_2d_id-J3oRTb23 `+t:`z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTb1u z_tempo_2d_id-J3oRTb1v z_tempo_2d_id-J3oRTb1w z_tempo_2d_id-J3oRTb1x z_tempo_2d_id-J3oRTb1y z_tempo_2d_id-J3oRTb1z z_tempo_2d_id-J3oRTb20 z_tempo_2d_id-J3oRTb21 z_tempo_2d_id-J3oRTb22 z_tempo_2d_id-J3oRTb23`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`compact`)?e.compact:void 0,s!=null&&(o[`data-compact`]=String(s)),o}),e.signOut=1,e.unavailable=1})(D||={});export{b as t};
@@ -1 +1 @@
1
- import{n as e,tt as t}from"./zyzz.config-Dg1ZU-Ph.js";import{t as n}from"./Stack-ClVHbhR2.js";import{n as r}from"./Hex-BwYW3WFP.js";import{t as i}from"./Alert-B7YPFnuz.js";import{t as a}from"./Tooltip-DU7SJF-3.js";import{n as o}from"./Grant-DD3fzrZo.js";import{t as s}from"./IconTile-BfvEs6xV.js";import{n as c}from"./StatusChip-DKSWhEtD.js";import{n as l,t as u}from"./Fingerprint-tnq6MqVN.js";import{t as d}from"./Cloud-C_CdgeuV.js";import{t as f}from"./Globe-nuIWzjTw.js";import{x as p}from"./index-DHHmdOEu.js";var m=t();function h(t){let p=t.heading??`h1`,h=t.approving||t.denying,g=t.refusal??t.keyAuthorization?.refusal,_=t.keyAuthorization?.chain;return(0,m.jsxs)(n,{className:x.column?`z_tempo_2d_id-kV7-rJ12 z_tempo_2d_id-kV7-rJ13`:x.column().className,gap:`32`,children:[(0,m.jsxs)(n,{className:x.header?`z_tempo_2d_id-kV7-rJ1h`:x.header().className,align:`center`,gap:`8`,render:(0,m.jsx)(`header`,{}),children:[(0,m.jsx)(s,{className:x.avatar?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJd z_tempo_2d_id-kV7-rJe z_tempo_2d_id-kV7-rJf z_tempo_2d_id-kV7-rJg`:x.avatar().className,children:t.logo?(0,m.jsx)(`img`,{className:x.logo?`z_tempo_2d_id-kV7-rJ1i z_tempo_2d_id-kV7-rJ1j z_tempo_2d_id-kV7-rJ1k z_tempo_2d_id-kV7-rJ1l`:x.logo().className,alt:``,src:t.logo}):(0,m.jsx)(f,{})}),(0,m.jsx)(p,{className:x.title?`z_tempo_2d_id-kV7-rJ28 z_tempo_2d_id-kV7-rJ29 z_tempo_2d_id-kV7-rJ2a z_tempo_2d_id-kV7-rJ2b z_tempo_2d_id-kV7-rJ2c z_tempo_2d_id-kV7-rJ2d`:x.title().className,children:`Authorize this app`}),(0,m.jsxs)(`p`,{className:x.description?`z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18 z_tempo_2d_id-kV7-rJ19 z_tempo_2d_id-kV7-rJ1a z_tempo_2d_id-kV7-rJ1b z_tempo_2d_id-kV7-rJ1c z_tempo_2d_id-kV7-rJ1d z_tempo_2d_id-kV7-rJ1e z_tempo_2d_id-kV7-rJ1f z_tempo_2d_id-kV7-rJ1g`:x.description().className,children:[`Approve to let`,` `,(0,m.jsxs)(`span`,{className:x.app?`z_tempo_2d_id-kV7-rJb`:x.app().className,children:[t.verified?(0,m.jsx)(`strong`,{children:t.app}):(0,m.jsx)(`bdi`,{children:t.app}),t.verified?(0,m.jsxs)(m.Fragment,{children:[` `,(0,m.jsxs)(a.Root,{children:[(0,m.jsx)(a.Trigger,{delay:150,render:(0,m.jsx)(l,{className:x.badge?`z_tempo_2d_id-kV7-rJh z_tempo_2d_id-kV7-rJi z_tempo_2d_id-kV7-rJj z_tempo_2d_id-kV7-rJk z_tempo_2d_id-kV7-rJl z_tempo_2d_id-kV7-rJm z_tempo_2d_id-kV7-rJn z_tempo_2d_id-kV7-rJo`:x.badge().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,m.jsx)(a.Popup,{children:`Verified app`})]})]}):null]}),!t.verified&&t.app!==t.destination?` (${t.destination})`:null,` `,`use your Tempo Account.`]})]}),(0,m.jsxs)(n,{gap:`16`,children:[t.account?(0,m.jsxs)(c,{className:x.account?`z_tempo_2d_id-kV7-rJ0 z_tempo_2d_id-kV7-rJ1 z_tempo_2d_id-kV7-rJ2 z_tempo_2d_id-kV7-rJ3 z_tempo_2d_id-kV7-rJ4`:x.account().className,"aria-label":`Tempo Account`,gap:`12`,role:`group`,children:[(0,m.jsx)(s,{className:x.chip?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJ10 z_tempo_2d_id-kV7-rJ11`:x.chip().className,"aria-hidden":!0,children:t.account.owner===`webAuthn`?(0,m.jsx)(u,{}):(0,m.jsx)(d,{})}),(0,m.jsxs)(n,{className:x.text?`z_tempo_2d_id-kV7-rJ27`:x.text().className,gap:`4`,render:(0,m.jsx)(`span`,{}),children:[(0,m.jsx)(`span`,{className:x.kind?`z_tempo_2d_id-kV7-rJq z_tempo_2d_id-kV7-rJr z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu`:x.kind().className,children:t.account.owner===`webAuthn`?`Passkey`:`Cloud`}),(0,m.jsx)(`span`,{className:x.address?`z_tempo_2d_id-kV7-rJ5 z_tempo_2d_id-kV7-rJ6 z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-kV7-rJ8 z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa`:x.address().className,children:r(t.account.address)})]})]}):null,t.keyAuthorization?(0,m.jsx)(o,{chain:_&&_.id!==y?b(_):void 0,heading:t.heading===`h4`?`h5`:`h2`,keyAuthorization:t.keyAuthorization}):null,t.keyAuthorization?.challenge?(0,m.jsxs)(i,{intent:`warning`,role:`note`,children:[(0,m.jsx)(i.Icon,{}),(0,m.jsx)(i.Content,{children:(0,m.jsxs)(n,{gap:`8`,children:[(0,m.jsx)(`p`,{className:x.challengeTitle?`z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x z_tempo_2d_id-nr-Vm71y`:x.challengeTitle().className,children:`This sign-in also signs a message`}),(0,m.jsx)(`p`,{className:x.challengeText?`z_tempo_2d_id-nr-Vm71z z_tempo_2d_id-kV7-rJq z_tempo_2d_id-kV7-rJr z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu`:x.challengeText().className,children:`Approve only if you started this sign-in and expect this message.`}),(0,m.jsx)(`pre`,{className:x.message?`z_tempo_2d_id-nr-Vm71z z_tempo_2d_id-kV7-rJ1m z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-kV7-rJ6 z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-kV7-rJ8 z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa z_tempo_2d_id-kV7-rJ1o`:x.message().className,children:t.keyAuthorization.challenge})]})})]}):null,(0,m.jsx)(e,{disabled:t.checking||t.denying||!!g,loading:t.approving||t.checking,onClick:t.onApprove,children:`Approve`}),(0,m.jsx)(e,{disabled:t.approving,loading:t.denying,onClick:t.onDeny,variant:`tertiary`,children:`Deny`}),(0,m.jsxs)(`p`,{className:x.note?`z_tempo_2d_id-kV7-rJ1p z_tempo_2d_id-kV7-rJ1q z_tempo_2d_id-kV7-rJ1r z_tempo_2d_id-kV7-rJ1s z_tempo_2d_id-kV7-rJ1t z_tempo_2d_id-kV7-rJ1u z_tempo_2d_id-kV7-rJ1v z_tempo_2d_id-kV7-rJ1w z_tempo_2d_id-kV7-rJ1x z_tempo_2d_id-kV7-rJ1y z_tempo_2d_id-kV7-rJ1z z_tempo_2d_id-kV7-rJ20 z_tempo_2d_id-kV7-rJ21`:x.note().className,children:[`Signed in as `,(0,m.jsx)(`strong`,{children:t.email}),`.`]}),(0,m.jsx)(`p`,{className:x.status?`z_tempo_2d_id-kV7-rJ22 z_tempo_2d_id-kV7-rJ23 z_tempo_2d_id-kV7-rJ24 z_tempo_2d_id-kV7-rJ25 z_tempo_2d_id-kV7-rJb z_tempo_2d_id-kV7-rJ26`:x.status().className,"aria-live":`polite`,role:`status`,children:(()=>{if(h)return`Returning to ${t.destination}.`;if(t.checking)return`Checking your account…`})()})]}),(()=>{let e=t.error??(g?v[g]:void 0);return e?(0,m.jsxs)(i,{intent:`negative`,children:[(0,m.jsx)(i.Icon,{}),(0,m.jsx)(i.Content,{children:e})]}):null})()]})}function g(e){let t=e.heading??`h1`,r=_[e.reason??`request`];return(0,m.jsx)(n,{className:x.column?`z_tempo_2d_id-kV7-rJ12 z_tempo_2d_id-kV7-rJ13`:x.column().className,gap:`32`,children:(0,m.jsxs)(n,{className:x.header?`z_tempo_2d_id-kV7-rJ1h`:x.header().className,align:`center`,gap:`8`,render:(0,m.jsx)(`header`,{}),children:[(0,m.jsx)(s,{className:x.warning?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJ2e z_tempo_2d_id-kV7-rJ2f z_tempo_2d_id-kV7-rJf z_tempo_2d_id-kV7-rJ2g`:x.warning().className,"aria-hidden":!0,intent:`warning`,children:(0,m.jsx)(p,{})}),(0,m.jsx)(t,{className:x.title?`z_tempo_2d_id-kV7-rJ28 z_tempo_2d_id-kV7-rJ29 z_tempo_2d_id-kV7-rJ2a z_tempo_2d_id-kV7-rJ2b z_tempo_2d_id-kV7-rJ2c z_tempo_2d_id-kV7-rJ2d`:x.title().className,children:r.title}),(0,m.jsx)(`p`,{className:x.description?`z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18 z_tempo_2d_id-kV7-rJ19 z_tempo_2d_id-kV7-rJ1a z_tempo_2d_id-kV7-rJ1b z_tempo_2d_id-kV7-rJ1c z_tempo_2d_id-kV7-rJ1d z_tempo_2d_id-kV7-rJ1e z_tempo_2d_id-kV7-rJ1f z_tempo_2d_id-kV7-rJ1g`:x.description().className,children:r.description})]})})}var _={client:{description:`The app that sent you here is not registered with Tempo ID, or it is turned off. Return to the app, and contact its developer if the problem continues.`,title:`This app is not recognized`},redirect:{description:`The app asked to return you to an address that it has not registered, so Tempo ID stopped the sign-in. Return to the app, and contact its developer if the problem continues.`,title:`This app’s return address is not registered`},request:{description:`The app sent a request Tempo ID cannot complete. Return to the app and try again.`,title:`This sign-in request is invalid`}},v={foreign_account:`The app requests a key for a Tempo Account that you do not hold. Deny the request, and sign in to the app again as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account in the app, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the app.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`},y=4217;function b(e){return e.name===`mainnet`?`Mainnet`:e.name===`testnet`?`Testnet`:e.name??`Chain ${e.id}`}var x;(function(e){e.account=1,e.address=1,e.app=1,e.avatar=1,e.badge=1,e.challengeText=1,e.challengeTitle=1,e.chip=1,e.column=1,e.description=1,e.header=1,e.kind=1,e.logo=1,e.message=1,e.note=1,e.status=1,e.text=1,e.title=1,e.warning=1})(x||={});export{g as n,h as t};
1
+ import{n as e,tt as t}from"./zyzz.config-Dg1ZU-Ph.js";import{t as n}from"./Stack-ClVHbhR2.js";import{n as r}from"./Hex-BwYW3WFP.js";import{t as i}from"./Alert-B7YPFnuz.js";import{t as a}from"./Tooltip-DU7SJF-3.js";import{n as o}from"./Grant-rhsU0ABA.js";import{t as s}from"./IconTile-BfvEs6xV.js";import{n as c}from"./StatusChip-DKSWhEtD.js";import{n as l,t as u}from"./Fingerprint-tnq6MqVN.js";import{t as d}from"./Cloud-C_CdgeuV.js";import{t as f}from"./Globe-nuIWzjTw.js";import{x as p}from"./index-DdbcUaHb.js";var m=t();function h(t){let p=t.heading??`h1`,h=t.approving||t.denying,g=t.refusal??t.keyAuthorization?.refusal,_=t.keyAuthorization?.chain;return(0,m.jsxs)(n,{className:x.column?`z_tempo_2d_id-kV7-rJ12 z_tempo_2d_id-kV7-rJ13`:x.column().className,gap:`32`,children:[(0,m.jsxs)(n,{className:x.header?`z_tempo_2d_id-kV7-rJ1h`:x.header().className,align:`center`,gap:`8`,render:(0,m.jsx)(`header`,{}),children:[(0,m.jsx)(s,{className:x.avatar?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJd z_tempo_2d_id-kV7-rJe z_tempo_2d_id-kV7-rJf z_tempo_2d_id-kV7-rJg`:x.avatar().className,children:t.logo?(0,m.jsx)(`img`,{className:x.logo?`z_tempo_2d_id-kV7-rJ1i z_tempo_2d_id-kV7-rJ1j z_tempo_2d_id-kV7-rJ1k z_tempo_2d_id-kV7-rJ1l`:x.logo().className,alt:``,src:t.logo}):(0,m.jsx)(f,{})}),(0,m.jsx)(p,{className:x.title?`z_tempo_2d_id-kV7-rJ28 z_tempo_2d_id-kV7-rJ29 z_tempo_2d_id-kV7-rJ2a z_tempo_2d_id-kV7-rJ2b z_tempo_2d_id-kV7-rJ2c z_tempo_2d_id-kV7-rJ2d`:x.title().className,children:`Authorize this app`}),(0,m.jsxs)(`p`,{className:x.description?`z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18 z_tempo_2d_id-kV7-rJ19 z_tempo_2d_id-kV7-rJ1a z_tempo_2d_id-kV7-rJ1b z_tempo_2d_id-kV7-rJ1c z_tempo_2d_id-kV7-rJ1d z_tempo_2d_id-kV7-rJ1e z_tempo_2d_id-kV7-rJ1f z_tempo_2d_id-kV7-rJ1g`:x.description().className,children:[`Approve to let`,` `,(0,m.jsxs)(`span`,{className:x.app?`z_tempo_2d_id-kV7-rJb`:x.app().className,children:[t.verified?(0,m.jsx)(`strong`,{children:t.app}):(0,m.jsx)(`bdi`,{children:t.app}),t.verified?(0,m.jsxs)(m.Fragment,{children:[` `,(0,m.jsxs)(a.Root,{children:[(0,m.jsx)(a.Trigger,{delay:150,render:(0,m.jsx)(l,{className:x.badge?`z_tempo_2d_id-kV7-rJh z_tempo_2d_id-kV7-rJi z_tempo_2d_id-kV7-rJj z_tempo_2d_id-kV7-rJk z_tempo_2d_id-kV7-rJl z_tempo_2d_id-kV7-rJm z_tempo_2d_id-kV7-rJn z_tempo_2d_id-kV7-rJo`:x.badge().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,m.jsx)(a.Popup,{children:`Verified app`})]})]}):null]}),!t.verified&&t.app!==t.destination?` (${t.destination})`:null,` `,`use your Tempo Account.`]})]}),(0,m.jsxs)(n,{gap:`16`,children:[t.account?(0,m.jsxs)(c,{className:x.account?`z_tempo_2d_id-kV7-rJ0 z_tempo_2d_id-kV7-rJ1 z_tempo_2d_id-kV7-rJ2 z_tempo_2d_id-kV7-rJ3 z_tempo_2d_id-kV7-rJ4`:x.account().className,"aria-label":`Tempo Account`,gap:`12`,role:`group`,children:[(0,m.jsx)(s,{className:x.chip?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJ10 z_tempo_2d_id-kV7-rJ11`:x.chip().className,"aria-hidden":!0,children:t.account.owner===`webAuthn`?(0,m.jsx)(u,{}):(0,m.jsx)(d,{})}),(0,m.jsxs)(n,{className:x.text?`z_tempo_2d_id-kV7-rJ27`:x.text().className,gap:`4`,render:(0,m.jsx)(`span`,{}),children:[(0,m.jsx)(`span`,{className:x.kind?`z_tempo_2d_id-kV7-rJq z_tempo_2d_id-kV7-rJr z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu`:x.kind().className,children:t.account.owner===`webAuthn`?`Passkey`:`Cloud`}),(0,m.jsx)(`span`,{className:x.address?`z_tempo_2d_id-kV7-rJ5 z_tempo_2d_id-kV7-rJ6 z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-kV7-rJ8 z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa`:x.address().className,children:r(t.account.address)})]})]}):null,t.keyAuthorization?(0,m.jsx)(o,{chain:_&&_.id!==y?b(_):void 0,heading:t.heading===`h4`?`h5`:`h2`,keyAuthorization:t.keyAuthorization}):null,t.keyAuthorization?.challenge?(0,m.jsxs)(i,{intent:`warning`,role:`note`,children:[(0,m.jsx)(i.Icon,{}),(0,m.jsx)(i.Content,{children:(0,m.jsxs)(n,{gap:`8`,children:[(0,m.jsx)(`p`,{className:x.challengeTitle?`z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x z_tempo_2d_id-nr-Vm71y`:x.challengeTitle().className,children:`This sign-in also signs a message`}),(0,m.jsx)(`p`,{className:x.challengeText?`z_tempo_2d_id-nr-Vm71z z_tempo_2d_id-kV7-rJq z_tempo_2d_id-kV7-rJr z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu`:x.challengeText().className,children:`Approve only if you started this sign-in and expect this message.`}),(0,m.jsx)(`pre`,{className:x.message?`z_tempo_2d_id-nr-Vm71z z_tempo_2d_id-kV7-rJ1m z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-kV7-rJ6 z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-kV7-rJ8 z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa z_tempo_2d_id-kV7-rJ1o`:x.message().className,children:t.keyAuthorization.challenge})]})})]}):null,(0,m.jsx)(e,{disabled:t.checking||t.denying||!!g,loading:t.approving||t.checking,onClick:t.onApprove,children:`Approve`}),(0,m.jsx)(e,{disabled:t.approving,loading:t.denying,onClick:t.onDeny,variant:`tertiary`,children:`Deny`}),(0,m.jsxs)(`p`,{className:x.note?`z_tempo_2d_id-kV7-rJ1p z_tempo_2d_id-kV7-rJ1q z_tempo_2d_id-kV7-rJ1r z_tempo_2d_id-kV7-rJ1s z_tempo_2d_id-kV7-rJ1t z_tempo_2d_id-kV7-rJ1u z_tempo_2d_id-kV7-rJ1v z_tempo_2d_id-kV7-rJ1w z_tempo_2d_id-kV7-rJ1x z_tempo_2d_id-kV7-rJ1y z_tempo_2d_id-kV7-rJ1z z_tempo_2d_id-kV7-rJ20 z_tempo_2d_id-kV7-rJ21`:x.note().className,children:[`Signed in as `,(0,m.jsx)(`strong`,{children:t.email}),`.`]}),(0,m.jsx)(`p`,{className:x.status?`z_tempo_2d_id-kV7-rJ22 z_tempo_2d_id-kV7-rJ23 z_tempo_2d_id-kV7-rJ24 z_tempo_2d_id-kV7-rJ25 z_tempo_2d_id-kV7-rJb z_tempo_2d_id-kV7-rJ26`:x.status().className,"aria-live":`polite`,role:`status`,children:(()=>{if(h)return`Returning to ${t.destination}.`;if(t.checking)return`Checking your account…`})()})]}),(()=>{let e=t.error??(g?v[g]:void 0);return e?(0,m.jsxs)(i,{intent:`negative`,children:[(0,m.jsx)(i.Icon,{}),(0,m.jsx)(i.Content,{children:e})]}):null})()]})}function g(e){let t=e.heading??`h1`,r=_[e.reason??`request`];return(0,m.jsx)(n,{className:x.column?`z_tempo_2d_id-kV7-rJ12 z_tempo_2d_id-kV7-rJ13`:x.column().className,gap:`32`,children:(0,m.jsxs)(n,{className:x.header?`z_tempo_2d_id-kV7-rJ1h`:x.header().className,align:`center`,gap:`8`,render:(0,m.jsx)(`header`,{}),children:[(0,m.jsx)(s,{className:x.warning?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJ2e z_tempo_2d_id-kV7-rJ2f z_tempo_2d_id-kV7-rJf z_tempo_2d_id-kV7-rJ2g`:x.warning().className,"aria-hidden":!0,intent:`warning`,children:(0,m.jsx)(p,{})}),(0,m.jsx)(t,{className:x.title?`z_tempo_2d_id-kV7-rJ28 z_tempo_2d_id-kV7-rJ29 z_tempo_2d_id-kV7-rJ2a z_tempo_2d_id-kV7-rJ2b z_tempo_2d_id-kV7-rJ2c z_tempo_2d_id-kV7-rJ2d`:x.title().className,children:r.title}),(0,m.jsx)(`p`,{className:x.description?`z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18 z_tempo_2d_id-kV7-rJ19 z_tempo_2d_id-kV7-rJ1a z_tempo_2d_id-kV7-rJ1b z_tempo_2d_id-kV7-rJ1c z_tempo_2d_id-kV7-rJ1d z_tempo_2d_id-kV7-rJ1e z_tempo_2d_id-kV7-rJ1f z_tempo_2d_id-kV7-rJ1g`:x.description().className,children:r.description})]})})}var _={client:{description:`The app that sent you here is not registered with Tempo ID, or it is turned off. Return to the app, and contact its developer if the problem continues.`,title:`This app is not recognized`},redirect:{description:`The app asked to return you to an address that it has not registered, so Tempo ID stopped the sign-in. Return to the app, and contact its developer if the problem continues.`,title:`This app’s return address is not registered`},request:{description:`The app sent a request Tempo ID cannot complete. Return to the app and try again.`,title:`This sign-in request is invalid`}},v={foreign_account:`The app requests a key for a Tempo Account that you do not hold. Deny the request, and sign in to the app again as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account in the app, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the app.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`},y=4217;function b(e){return e.name===`mainnet`?`Mainnet`:e.name===`testnet`?`Testnet`:e.name??`Chain ${e.id}`}var x;(function(e){e.account=1,e.address=1,e.app=1,e.avatar=1,e.badge=1,e.challengeText=1,e.challengeTitle=1,e.chip=1,e.column=1,e.description=1,e.header=1,e.kind=1,e.logo=1,e.message=1,e.note=1,e.status=1,e.text=1,e.title=1,e.warning=1})(x||={});export{g as n,h as t};
@@ -1,4 +1,4 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{A as t,E as n,F as r,G as i,K as a,V as o,Y as s,n as c,r as l,tt as u,u as d,yt as f}from"./zyzz.config-Dg1ZU-Ph.js";import{Y as p,ct as m,lt as h,nt as g,q as _}from"./FloatingPortalLite-Bk_cHbee.js";import{n as v,t as y}from"./Stack-ClVHbhR2.js";import{c as b,d as x,f as S,l as C,o as w,s as T,u as ee}from"./CompositeItem-bm548KUI.js";import{$ as E,Q as te}from"./useValueChanged-oW36OdF9.js";import{t as D}from"./Hex-BwYW3WFP.js";import{t as O}from"./Alert-B7YPFnuz.js";import{t as ne}from"./Tooltip-DU7SJF-3.js";import{n as k,t as A}from"./ButtonGroup-yw65MS6T.js";import{n as j,t as M}from"./ListGroup-9__glSci.js";import{a as re,c as ie,l as ae,o as oe,u as se}from"./RadioGroup-BdXALL64.js";import{n as ce,t as N}from"./TextInput-BLEHEk_T.js";import{t as le}from"./Choicebox-BElJSmS4.js";import{t as ue}from"./Checkbox-B4MVIsk3.js";import{n as P,t as de}from"./StatusChip-DKSWhEtD.js";import{I as fe,a as pe}from"./sha3-CrUt-9EE.js";import{a as me,o as he}from"./PublicKey-u7oCiF8Y.js";import{b as ge}from"./index-DHHmdOEu.js";var F=e(f(),1),I=u();function L(e){return(0,I.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,I.jsx)(`path`,{d:`M11.9804 6.1464C12.1757 5.9514 12.4923 5.95122 12.6875 6.1464C12.8823 6.3416 12.8823 6.65827 12.6875 6.85343L8.82516 10.7157C8.36974 11.1709 7.63132 11.1707 7.17574 10.7157L3.31344 6.85343C3.11818 6.65816 3.11818 6.34166 3.31344 6.1464C3.50871 5.95124 3.82524 5.95117 4.02047 6.1464L7.88277 10.0087C7.94782 10.0731 8.05324 10.0734 8.11813 10.0087L11.9804 6.1464Z`,fill:`currentColor`})})}function _e(e,t){let n=E(e);return o(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}var R=`M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z`,ve={base:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`g`,{clipPath:`url(#clip0_201_1280-${e})`,children:(0,I.jsx)(`path`,{d:`M4 6.27467C4 5.49467 4 5.10533 4.14667 4.80667C4.288 4.52 4.52 4.28667 4.808 4.14667C5.10667 4 5.496 4 6.27467 4H25.7253C26.5053 4 26.8933 4 27.1933 4.14667C27.48 4.28667 27.712 4.52 27.852 4.80667C28 5.10667 28 5.496 28 6.27467V25.7253C28 26.5053 28 26.8933 27.8533 27.1933C27.712 27.48 27.48 27.712 27.1933 27.852C26.8933 28 26.504 28 25.7253 28H6.27467C5.49467 28 5.10667 28 4.80667 27.8533C4.51999 27.7125 4.28828 27.4803 4.148 27.1933C4 26.8933 4 26.504 4 25.7253V6.27467Z`,fill:`#0000FF`})}),(0,I.jsx)(`defs`,{children:(0,I.jsx)(`clipPath`,{id:`clip0_201_1280-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})})]}),ethereum:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{clipPath:`url(#clip0_201_1292-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`#627EEA`}),(0,I.jsx)(`path`,{d:`M16.498 4V12.87L23.995 16.22L16.498 4Z`,fill:`white`,fillOpacity:`0.602`}),(0,I.jsx)(`path`,{d:`M16.498 4L9 16.22L16.498 12.87V4Z`,fill:`white`}),(0,I.jsx)(`path`,{d:`M16.498 21.968V27.995L24 17.616L16.498 21.968Z`,fill:`white`,fillOpacity:`0.602`}),(0,I.jsx)(`path`,{d:`M16.498 27.995V21.967L9 17.616L16.498 27.995Z`,fill:`white`}),(0,I.jsx)(`path`,{d:`M16.498 20.5731L23.995 16.2201L16.498 12.8721V20.5731Z`,fill:`white`,fillOpacity:`0.2`}),(0,I.jsx)(`path`,{d:`M9 16.2201L16.498 20.5731V12.8721L9 16.2201Z`,fill:`white`,fillOpacity:`0.602`})]}),(0,I.jsx)(`defs`,{children:(0,I.jsx)(`clipPath`,{id:`clip0_201_1292-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})})]}),hyperevm:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`g`,{clipPath:`url(#clip0_201_1310-${e})`,children:(0,I.jsxs)(`g`,{clipPath:`url(#clip1_201_1310-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`#072723`}),(0,I.jsxs)(`g`,{clipPath:`url(#clip2_201_1310-${e})`,children:[(0,I.jsx)(`mask`,{id:`mask0_201_1310-${e}`,style:{maskType:`luminance`},maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`32`,height:`32`,children:(0,I.jsx)(`path`,{d:`M0 0H32V32H0V0Z`,fill:`white`})}),(0,I.jsxs)(`g`,{mask:`url(#mask0_201_1310-${e})`,children:[(0,I.jsx)(`path`,{d:`M32 0H0V32H32V0Z`,fill:`#072723`}),(0,I.jsx)(`path`,{d:`M26.6667 15.9227C26.6831 17.6668 26.3191 19.3936 25.6 20.9827C24.5707 23.276 22.1067 25.152 19.8547 23.156C18.0187 21.5293 17.6787 18.2253 14.928 17.7427C11.2894 17.2987 11.2014 21.548 8.82404 22.028C6.17471 22.5707 5.29604 18.0813 5.33471 16.044C5.37471 14.0053 5.91204 11.14 8.21471 11.14C10.864 11.14 11.0427 15.1813 14.4067 14.9627C17.7374 14.7333 17.796 10.5293 19.972 8.72934C21.8494 7.17468 24.0587 8.31468 25.164 10.1867C26.1894 11.9173 26.64 13.9493 26.6627 15.9227H26.6667Z`,fill:`#50D2C1`})]})]})]})}),(0,I.jsxs)(`defs`,{children:[(0,I.jsx)(`clipPath`,{id:`clip0_201_1310-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})}),(0,I.jsx)(`clipPath`,{id:`clip1_201_1310-${e}`,children:(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`white`})}),(0,I.jsx)(`clipPath`,{id:`clip2_201_1310-${e}`,children:(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`white`})})]})]}),polygon:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{clipPath:`url(#clip0_201_1322-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`url(#paint0_linear_201_1322-${e})`}),(0,I.jsx)(`path`,{d:`M10.9062 12.4996C11.0974 12.3866 11.3146 12.327 11.5356 12.327C11.7566 12.327 11.9737 12.3866 12.165 12.4996L15.0415 14.252L16.9947 15.3912L19.8767 17.1436C20.2411 17.3714 20.7233 17.3714 21.1288 17.1436L23.4176 15.7754C23.7875 15.5487 24.2353 15.1271 24.2353 14.6714V11.9714C24.2353 11.5157 23.8231 11.0952 23.412 10.8674L21.1644 9.53437C20.9739 9.42258 20.758 9.36375 20.5383 9.36375C20.3186 9.36375 20.1027 9.42258 19.9122 9.53437L17.6591 10.8674C17.2946 11.0941 17.1769 11.5157 17.1769 11.9714V13.717L15.4114 12.5427V10.7835C15.4114 10.3267 15.2937 9.90729 15.7048 9.67946L19.8778 7.16989C20.0683 7.0581 20.2841 6.99927 20.5039 6.99927C20.7236 6.99927 20.9395 7.0581 21.1299 7.16989L25.3708 9.67832C25.5652 9.78677 25.7268 9.94759 25.8379 10.1433C25.949 10.3389 26.0053 10.5619 26.0007 10.788V15.8525C26.0031 16.0774 25.9458 16.2987 25.8349 16.4931C25.724 16.6874 25.5636 16.8476 25.3708 16.9565L21.1299 19.465C20.9395 19.5767 20.7236 19.6356 20.5039 19.6356C20.2841 19.6356 20.0683 19.5767 19.8778 19.465L16.9958 17.7545L15.0426 16.5734L12.1606 14.8618C11.97 14.7498 11.7539 14.6909 11.5339 14.6909C11.314 14.6909 11.0979 14.7498 10.9073 14.8618L8.66079 16.1948C8.28971 16.4226 7.76641 16.8432 7.76641 17.2988V19.9988C7.76641 20.4556 8.25527 20.875 8.66079 21.1029L10.9073 22.471C11.2784 22.7 11.7606 22.7 12.1661 22.471L14.4126 21.1391C14.7837 20.9113 15.4126 20.4908 15.4126 20.0351V18.2895L17.178 19.465V21.2173C17.178 21.673 16.778 22.0935 16.3725 22.3214L12.1194 24.8241C11.755 25.0576 11.2717 25.0576 10.8662 24.8241L6.62538 22.3157C6.43972 22.2006 6.2853 22.0399 6.17622 21.8482C6.06715 21.6565 6.0069 21.44 6.00098 21.2185V16.154C6.00098 15.6972 6.22429 15.2778 6.62982 15.05L10.9062 12.4996Z`,fill:`white`})]}),(0,I.jsxs)(`defs`,{children:[(0,I.jsxs)(`linearGradient`,{id:`paint0_linear_201_1322-${e}`,x1:`3.27976e-08`,y1:`0.00106153`,x2:`32.0014`,y2:`31.9975`,gradientUnits:`userSpaceOnUse`,children:[(0,I.jsx)(`stop`,{stopColor:`#8F34C2`}),(0,I.jsx)(`stop`,{offset:`1`,stopColor:`#7442DB`})]}),(0,I.jsx)(`clipPath`,{id:`clip0_201_1322-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})]})]}),solana:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{clipPath:`url(#clip0_201_1328-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`black`}),(0,I.jsx)(`path`,{d:`M23.482 11.2376C23.3512 11.3577 23.1804 11.4255 23.0025 11.4282H6.17619C5.57883 11.4282 5.27782 10.7485 5.69083 10.35L8.45361 7.69635C8.58203 7.57247 8.75318 7.50222 8.93196 7.5H25.8248C26.428 7.5 26.7231 8.18548 26.3031 8.58515L23.482 11.2376ZM23.482 24.3164C23.3513 24.4359 23.1799 24.5015 23.0025 24.5H6.17619C5.57883 24.5 5.27782 23.8261 5.69083 23.4276L8.45361 20.7682C8.58312 20.6468 8.75414 20.5791 8.93196 20.5788H25.8248C26.428 20.5788 26.7231 21.2585 26.3031 21.657L23.482 24.3164ZM23.482 14.2259C23.3511 14.1068 23.1798 14.0416 23.0025 14.0435H6.17619C5.57883 14.0435 5.27782 14.7173 5.69083 15.1147L8.45361 17.7753C8.58435 17.8947 8.75458 17.9621 8.93196 17.9647H25.8248C26.428 17.9647 26.7231 17.285 26.3031 16.8865L23.482 14.2259Z`,fill:`white`})]}),(0,I.jsx)(`defs`,{children:(0,I.jsx)(`clipPath`,{id:`clip0_201_1328-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})})]}),tempo:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{clipPath:`url(#clip0_201_1334-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`black`}),(0,I.jsx)(`path`,{d:`M14.8242 23.5H11.1342L14.5542 13.06H10.1802L11.1342 10H23.3202L22.3662 13.06H18.2262L14.8242 23.5Z`,fill:`white`})]}),(0,I.jsx)(`defs`,{children:(0,I.jsx)(`clipPath`,{id:`clip0_201_1334-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})})]})};function ye(e){let{className:t,network:n,size:r,vars:i,...a}=e,o=(0,F.useId)(),s=e[`aria-label`]||e[`aria-labelledby`];return(0,I.jsx)(`svg`,{"aria-hidden":!s||void 0,fill:`none`,role:s?`img`:void 0,viewBox:`0 0 32 32`,xmlns:`http://www.w3.org/2000/svg`,...a,...be.logo({className:t,size:r,style:e.style,vars:i}),children:ve[n](o)})}var be;(function(e){e.logo=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-Es5pwA0 z_tds_2f_web-Es5pwA1 z_tds_2f_web-Es5pwA2 z_tds_2f_web-Es5pwA3 z_tds_2f_web-Es5pwA4 z_tds_2f_web-Es5pwA5 z_tds_2f_web-Es5pwA6 `+t:`z_tds_2f_web-Es5pwA0 z_tds_2f_web-Es5pwA1 z_tds_2f_web-Es5pwA2 z_tds_2f_web-Es5pwA3 z_tds_2f_web-Es5pwA4 z_tds_2f_web-Es5pwA5 z_tds_2f_web-Es5pwA6`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o})})(be||={});var z={newline:10,reset:27};function xe(e){if(!Number.isSafeInteger(e))throw Error(`integer expected: ${e}`)}function Se(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw Error(`Invalid version=${e}. Expected number [1..40]`)}function B(e,t){return e.toString(2).padStart(t,`0`)}function Ce(e,t){let n=e%t;return n>=0?n:t+n}function V(e,t){return Array(e).fill(t)}function we(e){return e-=e>>>1&1431655765,e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}function Te(e){let t=0,n=0;for(let r of e)t=Math.max(t,r.length),n+=r.length;let r=new Uint8Array(n),i=0;for(let n=0;n<t;n++)for(let t of e)n<t.length&&(r[i++]=t[n]);return r}function Ee(){let e,t=1/0;return{add(n,r){n>=t||(e=r,t=n)},get:()=>e,score:()=>t}}function De(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=`string`)throw Error(`alphabet.decode input should be array of strings`);return t.map(t=>{if(typeof t!=`string`)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(n===-1)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})},encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=`number`)throw Error(`alphabet.encode input should be an array of numbers`);return t.map(t=>{if(xe(t),t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})}}}function Oe(e){if(e.length!==32)throw Error(`expects 32 element matrix`);let t=[1431655765,858993459,252645135,16711935,65535];for(let n=0;n<5;n++){let r=t[n]>>>0,i=1<<n,a=i<<1;for(let t=0;t<32;t+=a)for(let n=0;n<i;n++){let a=t+n,o=a+i,s=e[a]>>>0,c=e[o]>>>0,l=(s>>>i^c)&r;e[a]=(s^l<<i)>>>0,e[o]=(c^l)>>>0}}}var ke=e=>1<<(e&31)>>>0,H=(e,t)=>t===0?0:t===32?4294967295:(1<<t)-1<<e>>>0,Ae=class e{static size(e,t){if(typeof e==`number`&&(e={height:e,width:e}),!Number.isSafeInteger(e.height)&&e.height!==1/0)throw Error(`Bitmap: invalid height=${e.height} (${typeof e.height})`);if(!Number.isSafeInteger(e.width)&&e.width!==1/0)throw Error(`Bitmap: invalid width=${e.width} (${typeof e.width})`);return t!==void 0&&(e={width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}),e}static fromString(t){t=t.replace(/^\n+/g,``).replace(/\n+$/g,``);let n=t.split(String.fromCharCode(z.newline)),r=n.length,i,a=[];for(let e of n){let t=e.split(``).map(e=>{if(e===`X`)return!0;if(e===` `)return!1;if(e!==`?`)throw Error(`Bitmap.fromString: unknown symbol=${e}`)});if(i!==void 0&&t.length!==i)throw Error(`Bitmap.fromString different row sizes: width=${i} cur=${t.length}`);i=t.length,a.push(t)}return i===void 0&&(i=0),new e({height:r,width:i},a)}defined;value;tailMask;words;fullWords;height;width;constructor(t,n){let{height:r,width:i}=e.size(t);if(this.height=r,this.width=i,this.tailMask=H(0,i&31||32),this.words=Math.ceil(i/32)|0,this.fullWords=Math.floor(i/32)|0,this.value=new Uint32Array(this.words*r),this.defined=new Uint32Array(this.value.length),n){if(n.length!==r)throw Error(`Bitmap: data height mismatch: exp=${r} got=${n.length}`);for(let e=0;e<r;e++){let t=n[e];if(!t||t.length!==i)throw Error(`Bitmap: data width mismatch at y=${e}: exp=${i} got=${t?.length}`);for(let n=0;n<i;n++)this.set(n,e,t[n])}}}point(e){return this.get(e.x,e.y)}isInside(e){return 0<=e.x&&e.x<this.width&&0<=e.y&&e.y<this.height}size(e){if(!e)return{height:this.height,width:this.width};let{x:t,y:n}=this.xy(e);return{height:this.height-n,width:this.width-t}}xy(e){if(typeof e==`number`&&(e={x:e,y:e}),!Number.isSafeInteger(e.x))throw Error(`Bitmap: invalid x=${e.x}`);if(!Number.isSafeInteger(e.y))throw Error(`Bitmap: invalid y=${e.y}`);return e.x=Ce(e.x,this.width),e.y=Ce(e.y,this.height),e}wordIndex(e,t){return t*this.words+(e>>>5)}bitIndex(e,t){return{word:this.wordIndex(e,t),bit:e&31}}isDefined(e,t){let n=this.wordIndex(e,t),r=ke(e);return(this.defined[n]&r)!==0}get(e,t){let n=this.wordIndex(e,t),r=ke(e);return(this.value[n]&r)!==0}maskWord(e,t,n){let{defined:r,value:i}=this;r[e]|=t,i[e]=i[e]&~t|-n&t}set(e,t,n){n!==void 0&&this.maskWord(this.wordIndex(e,t),ke(e),n)}fillRectConst(e,t,n,r,i){if(n<=0||r<=0||i===void 0)return;let{value:a,defined:o,words:s}=this,c=e>>>5,l=e+n-1>>>5,u=e&31,d=e+n-1&31;for(let e=0;e<r;e++){let n=(t+e)*s;if(c===l){let e=H(u,d-u+1);this.maskWord(n+c,e,i)}else{this.maskWord(n+c,H(u,32-u),i);for(let e=c+1;e<l;e++)o[n+e]=4294967295,a[n+e]=i?4294967295:0;this.maskWord(n+l,H(0,d+1),i)}}}rectWords(e,t,n,r,i){for(let a=0;a<r;a++){let r=t+a;for(let t=0;t<n;){let o=e+t,{bit:s,word:c}=this.bitIndex(o,r),l=Math.min(32-s,n-t);i(c,o,t,a,l),t+=l}}}rect(t,n,r){let{x:i,y:a}=this.xy(t),{height:o,width:s}=e.size(n,this.size({x:i,y:a}));if(typeof r!=`function`)return this.fillRectConst(i,a,s,o,r),this;let{defined:c,value:l}=this;return this.rectWords(i,a,s,o,(e,t,n,i,a)=>{let o=0,s=l[e];for(let e=0;e<a;e++){let a=ke(t+e),c=r({x:n+e,y:i},(s&a)!==0);c!==void 0&&(o|=a,s=s&~a|-c&a)}c[e]|=o,l[e]=s}),this}rectRead(t,n,r){let{x:i,y:a}=this.xy(t),{height:o,width:s}=e.size(n,this.size({x:i,y:a})),{value:c}=this;return this.rectWords(i,a,s,o,(e,t,n,i,a)=>{let o=c[e];for(let e=0;e<a;e++){let a=ke(t+e);r({x:n+e,y:i},(o&a)!==0)}}),this}hLine(e,t,n){return this.rect(e,{width:t,height:1},n)}vLine(e,t,n){return this.rect(e,{width:1,height:t},n)}border(t=2,n){let r=this.height+2*t,i=this.width+2*t,a=new e({height:r,width:i});return a.rect(0,1/0,n),a.embed({x:t,y:t},this),a}embed(t,n){let{x:r,y:i}=this.xy(t),{height:a,width:o}=e.size(n.size(),this.size({x:r,y:i}));if(o<=0||a<=0)return this;let{value:s,defined:c}=this,{words:l,value:u}=n;for(let e=0;e<a;e++){let t=e*l;for(let a=0;a<o;){let d=r+a,{word:f,bit:p}=this.bitIndex(d,i+e),{word:m,bit:h}=n.bitIndex(a,e),g=Math.min(32-p,o-a),_=u[m],v=h&&m+1<t+l?u[m+1]:0,y=h?(_>>>h|v<<32-h)>>>0:_,b=H(p,g),x=(y&H(0,g))<<p>>>0;c[f]|=b,s[f]=s[f]&~b|x,a+=g}}return this}rectSlice(t,n=this.size()){let{x:r,y:i}=this.xy(t),{height:a,width:o}=e.size(n,this.size({x:r,y:i})),s=new e({height:a,width:o});return this.rectRead({x:r,y:i},{height:a,width:o},(e,t)=>{this.isDefined(r+e.x,i+e.y)&&s.set(e.x,e.y,t)}),s}transpose(){let{height:t,width:n,value:r,defined:i,words:a}=this,o=new e({height:n,width:t}),{words:s,value:c,defined:l,tailMask:u}=o,d=new Uint32Array(32),f=new Uint32Array(32);for(let e=0;e<t;e+=32)for(let p=0;p<a;p++){let a=Math.min(32,t-e);for(let t=0;t<a;t++){let n=this.wordIndex(32*p,e+t);d[t]=r[n],f[t]=i[n]}d.fill(0,a),f.fill(0,a),Oe(d),Oe(f);for(let t=0;t<32;t++){let r=p*32+t;if(r>=n)break;let i=o.wordIndex(e,r),a=e>>>5==s-1?u:4294967295;c[i]=d[t]&a,l[i]=f[t]&a}}return o}negate(){let e=this.defined.length;for(let t=0;t<e;t++)this.value[t]=~this.value[t],this.defined[t]=4294967295;return this}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw Error(`invalid scale factor: ${t}`);let{height:n,width:r}=this;return new e({height:t*n,width:t*r}).rect({x:0,y:0},1/0,({x:e,y:n})=>this.get(e/t|0,n/t|0))}clone(){let t=new e(this.size());return t.defined.set(this.defined),t.value.set(this.value),t}assertDrawn(){let{height:e,width:t,defined:n,tailMask:r,fullWords:i,words:a}=this;if(e&&t)for(let t=0;t<e;t++){let e=t*a;for(let t=0;t<i;t++)if(n[e+t]!==4294967295)throw Error(`Invalid color type=undefined`);if(a!==i&&(n[e+i]&r)!==r)throw Error(`Invalid color type=undefined`)}}countPatternInRow(e,t,...n){if(t<=0||t>=32)throw Error(`wrong patternLen`);let r=(1<<t)-1,{width:i,value:a,words:o}=this,s=0,c=this.wordIndex(0,e);for(let e=0,l=0;e<o;e++){let u=a[c+e],d=e===o-1&&i&31||32;for(let i=0;i<d;i++)if(l=(l<<1|u>>>i&1)&r,!(e*32+i+1<t)){for(let e of n)if(l===e){s++;break}}}return s}getRuns(e,t){let{width:n,value:r,words:i}=this;if(n===0)return;let a=0,o,s=this.wordIndex(0,e);for(let e=0;e<i;e++){let c=r[s+e],l=e===i-1&&n&31||32;for(let e=0;e<l;e++){let n=!!(c&1<<e);n===o?a++:(o!==void 0&&t(a,o),o=n,a=1)}}o!==void 0&&t(a,o)}popcnt(){let{height:e,width:t,words:n,fullWords:r,tailMask:i}=this;if(!e||!t)return 0;let a=0;for(let t=0;t<e;t++){let e=t*n;for(let t=0;t<r;t++)a+=we(this.value[e+t]);n!==r&&(a+=we(this.value[e+r]&i))}return a}countBoxes2x2(e){let{width:t,words:n}=this;if(t<2||(e|0)<0||e+1>=this.height)return 0;let r=this.wordIndex(0,e)|0,i=this.wordIndex(0,e+1)|0,a=t&31?H(0,t-1&31):2147483647,o=0;for(let e=0;e<n;e++){let t=this.value[r+e],s=this.value[i+e],c=~(t^s)>>>0,l=e+1<n?this.value[r+e+1]>>>0:0,u=~(t^(t>>>1|(l&1)<<31)>>>0)>>>0,d=e+1<n?this.value[i+e+1]>>>0:0,f=~(s^(s>>>1|(d&1)<<31)>>>0)>>>0,p=(c&u&f)>>>0;e===n-1&&(p&=a),o+=we(p)}return o}toString(){let e=String.fromCharCode(z.newline),t=``;for(let n=0;n<this.height;n++){let r=``;for(let e=0;e<this.width;e++){let t=this.get(e,n);r+=this.isDefined(e,n)?t?`X`:` `:`?`}t+=r+(n+1===this.height?``:e)}return t}toRaw(){let e=Array.from({length:this.height},()=>Array(this.width));for(let t=0;t<this.height;t++){let n=e[t];for(let e=0;e<this.width;e++)n[e]=this.get(e,t)}return e}toASCII(){let{height:e,width:t}=this,n=``;for(let r=0;r<e;r+=2){for(let i=0;i<t;i++){let t=this.get(i,r),a=r+1>=e||this.get(i,r+1);!t&&!a?n+=`█`:!t&&a?n+=`▀`:t&&!a?n+=`▄`:t&&a&&(n+=` `)}n+=String.fromCharCode(z.newline)}return n}toTerm(){let e=String.fromCharCode(z.reset),t=e+`[0m`,n=e+`[1;47m `+t,r=e+`[40m `+t,i=String.fromCharCode(z.newline),a=``;for(let e=0;e<this.height;e++){for(let t=0;t<this.width;t++){let i=this.get(t,e);a+=i?r:n}a+=i}return a}toSVG(e=!0){let t=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,n=``,r;return this.rectRead(0,1/0,(i,a)=>{if(!a)return;let{x:o,y:s}=i;if(!e){t+=`<rect x="${o}" y="${s}" width="1" height="1" />`;return}let c=`M${o} ${s}`;if(r){let e=`m${o-r.x} ${s-r.y}`;e.length<=c.length&&(c=e)}let l=o<10?`H${o}`:`h-1`;n+=`${c}h1v1${l}Z`,r=i}),e&&(t+=`<path d="${n}"/>`),t+=`</svg>`,t}toGIF(){let e=e=>[e&255,e>>>8&255],t=[...e(this.width),...e(this.height)],n=[];this.rectRead(0,1/0,(e,t)=>n.push(+(t===!0)));let r=[71,73,70,56,55,97,...t,246,0,0,255,255,255,...V(381,0),44,0,0,0,0,...t,0,7],i=Math.floor(n.length/126);for(let e=0;e<i;e++)r.push(127,128,...n.slice(126*e,126*(e+1)).map(e=>+e));return r.push(n.length%126+1,128,...n.slice(i*126).map(e=>+e)),r.push(1,129,0,59),new Uint8Array(r)}toImage(e=!1){let{height:t,width:n}=this.size(),r=new Uint8Array(t*n*(e?3:4)),i=0;for(let a=0;a<t;a++)for(let t=0;t<n;t++){let n=this.get(t,a)?0:255;r[i++]=n,r[i++]=n,r[i++]=n,e||(r[i++]=255)}return{height:t,width:n,data:r}}},je=[`low`,`medium`,`quartile`,`high`],Me=[`numeric`,`alphanumeric`,`byte`,`kanji`,`eci`],Ne=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],Pe={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},Fe={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},U={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(e===1)return[];let t=U.size.encode(e)-6-1,n=t-6,r=Math.ceil(n/28),i=Math.floor(n/r);i%2?i+=1:n%r*2>=r&&(i+=2);let a=[6];for(let e=1;e<r;e++)a.push(t-(r-e)*i);return a.push(t),a},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){let n=U.ECCode[e]<<3|t,r=n;for(let e=0;e<10;e++)r=r<<1^(r>>9)*1335;return(n<<10|r)^U.formatMask},versionBits(e){let t=e;for(let e=0;e<12;e++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:De(`0123456789`),alphanumerc:De(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`)},lengthBits(e,t){return{numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]}[t][U.sizeType(e)]},modeBits:{numeric:`0001`,alphanumeric:`0010`,byte:`0100`,kanji:`1000`,eci:`0111`},capacity(e,t){let n=Ne[e-1],r=Pe[t][e-1],i=Fe[t][e-1],a=Math.floor(n/i)-r,o=i-n%i;return{words:r,numBlocks:i,shortBlocks:o,blockLen:a,capacity:(n-r*i)*8,total:(r+a)*i+i-o}}},Ie=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],W={tables:(e=>{let t=V(256,0),n=V(256,0);for(let r=0,i=1;r<256;r++)t[r]=i,n[i]=r,i<<=1,i&256&&(i^=e);return{exp:t,log:n}})(285),exp:e=>W.tables.exp[e],log(e){if(e===0)throw Error(`GF.log: invalid arg=${e}`);return W.tables.log[e]%255},mul(e,t){return e===0||t===0?0:W.tables.exp[(W.tables.log[e]+W.tables.log[t])%255]},add:(e,t)=>e^t,pow:(e,t)=>W.tables.exp[W.tables.log[e]*t%255],inv(e){if(e===0)throw Error(`GF.inverse: invalid arg=${e}`);return W.tables.exp[255-W.tables.log[e]]},polynomial(e){if(e.length==0)throw Error(`GF.polymomial: invalid length`);if(e[0]!==0)return e;let t=0;for(;t<e.length-1&&e[t]==0;t++);return e.slice(t)},monomial(e,t){if(e<0)throw Error(`GF.monomial: invalid degree=${e}`);if(t==0)return[0];let n=V(e+1,0);return n[0]=t,W.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[W.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];let n=V(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]=W.add(n[r+i],W.mul(e[r],t[i]));return W.polynomial(n)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;let n=V(e.length,0);for(let r=0;r<e.length;r++)n[r]=W.mul(e[r],t);return W.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw Error(`GF.mulPolyMonomial: invalid degree`);if(n==0)return[0];let r=V(e.length+t,0);for(let t=0;t<e.length;t++)r[t]=W.mul(e[t],n);return W.polynomial(r)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let i=V(r.length,0),a=r.length-n.length,o=r.slice(0,a);for(let e=0;e<o.length;e++)i[e]=o[e];for(let e=a;e<r.length;e++)i[e]=W.add(n[e-a],r[e]);return W.polynomial(i)},remainderPoly(e,t){let n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){let e=n[r];if(e!==0)for(let i=1;i<t.length;i++)t[i]!==0&&(n[r+i]=W.add(n[r+i],W.mul(t[i],e)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=W.mulPoly(t,[1,W.pow(2,n)]);return t},evalPoly(e,t){if(t==0)return W.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=W.add(W.mul(t,n),e[r]);return n},euclidian(e,t,n){W.degree(e)<W.degree(t)&&([e,t]=[t,e]);let r=e,i=t,a=[0],o=[1];for(;2*W.degree(i)>=n;){let e=r,t=a;if(r=i,a=o,r[0]===0)throw Error(`rLast[0] === 0`);i=e;let n=[0],s=W.inv(r[0]);for(;W.degree(i)>=W.degree(r)&&i[0]!==0;){let e=W.degree(i)-W.degree(r),t=W.mul(i[0],s);n=W.addPoly(n,W.monomial(e,t)),i=W.addPoly(i,W.mulPolyMonomial(r,e,t))}if(n=W.mulPoly(n,a),o=W.addPoly(n,t),W.degree(i)>=W.degree(r))throw Error(`Division failed r: ${i}, rLast: ${r}`)}let s=W.coefficient(o,0);if(s==0)throw Error(`sigmaTilde(0) was zero`);let c=W.inv(s);return[W.mulPolyScalar(o,c),W.mulPolyScalar(i,c)]}};function Le(e){return{encode(t){let n=W.divisorPoly(e),r=Array.from(t);return r.push(...n.slice(0,-1).fill(0)),Uint8Array.from(W.remainderPoly(r,n))},decode(t){let n=t.slice(),r=W.polynomial(Array.from(t)),i=V(e,0),a=!1;for(let t=0;t<e;t++){let e=W.evalPoly(r,W.exp(t));i[i.length-1-t]=e,e!==0&&(a=!0)}if(!a)return n;i=W.polynomial(i);let o=W.monomial(e,1),[s,c]=W.euclidian(o,i,e),l=V(W.degree(s),0),u=0;for(let e=1;e<256&&u<l.length;e++)W.evalPoly(s,e)===0&&(l[u++]=W.inv(e));if(u!==l.length)throw Error(`RS.decode: invalid errors number`);for(let e=0;e<l.length;e++){let t=n.length-1-W.log(l[e]);if(t<0)throw Error(`RS.decode: invalid error location`);let r=W.inv(l[e]),i=1;for(let t=0;t<l.length;t++)e!==t&&(i=W.mul(i,W.add(1,W.mul(l[t],r))));n[t]=W.add(n[t],W.mul(W.evalPoly(c,r),W.inv(i)))}return n}}}function Re(e,t){let{words:n,shortBlocks:r,numBlocks:i,blockLen:a,total:o}=U.capacity(e,t),s=Le(n);return{encode(e){let t=[],n=[];for(let o=0;o<i;o++){let i=a+(o<r?0:1);t.push(e.subarray(0,i)),n.push(s.encode(e.subarray(0,i))),e=e.subarray(i)}let o=Te(t),c=Te(n),l=new Uint8Array(o.length+c.length);return l.set(o),l.set(c,o.length),l},decode(e){if(e.length!==o)throw Error(`interleave.decode: len(data)=${e.length}, total=${o}`);let t=[];for(let e=0;e<i;e++){let i=e<r;t.push(new Uint8Array(n+a+ +!i))}let c=0;for(let n=0;n<a;n++)for(let r=0;r<i;r++)t[r][n]=e[c++];for(let n=r;n<i;n++)t[n][a]=e[c++];for(let o=a;o<a+n;o++)for(let n=0;n<i;n++){let i=n<r;t[n][o+ +!i]=e[c++]}let l=[];for(let e of t)l.push(...Array.from(s.decode(e)).slice(0,-n));return Uint8Array.from(l)}}}function ze(e,t,n,r=!1){let i=U.size.encode(e),a=new Ae(i+2),o=new Ae(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);a=a.embed(0,o).embed({x:-o.width,y:0},o).embed({x:0,y:-o.height},o),a=a.rectSlice(1,i);let s=new Ae(1).rect(0,1,!0).border(1,!1).border(1,!0),c=U.alignmentPatterns(e);for(let e of c)for(let t of c)a.isDefined(t,e)||a.embed({x:t-2,y:e-2},s);a=a.hLine({x:0,y:6},1/0,({x:e})=>a.isDefined(e,6)?void 0:e%2==0).vLine({x:6,y:0},1/0,({y:e})=>a.isDefined(6,e)?void 0:e%2==0);{let e=U.formatBits(t,n),o=t=>!r&&(e>>t&1)==1;for(let e=0;e<6;e++)a.set(8,e,o(e));for(let e=6;e<8;e++)a.set(8,e+1,o(e));for(let e=8;e<15;e++)a.set(8,i-15+e,o(e));for(let e=0;e<8;e++)a.set(i-e-1,8,o(e));for(let e=8;e<9;e++)a.set(15-e-1+1,8,o(e));for(let e=9;e<15;e++)a.set(15-e-1,8,o(e));a.set(8,i-8,!r)}if(e>=7){let t=U.versionBits(e);for(let e=0;e<18;e+=1){let n=!r&&(t>>e&1)==1,o=Math.floor(e/3),s=e%3+i-8-3;a.set(s,o,n),a.set(o,s,n)}}return a}function Be(e,t,n){let r=e.height,i=Ie[t],a=-1,o=r-1;for(let t=r-1;t>0;t-=2){for(t==6&&(t=5);;o+=a){for(let r=0;r<2;r+=1){let a=t-r;e.isDefined(a,o)||n(a,o,i(a,o))}if(o+a<0||o+a>=r)break}a=-a}}function Ve(e){let t=`numeric`;for(let n of e)if(!U.alphabet.numeric.has(n)&&(t=`alphanumeric`,!U.alphabet.alphanumerc.has(n)))return`byte`;return t}function He(e){if(typeof e!=`string`)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Ue(e,t,n,r,i=He){let a=``,o=n.length;if(r===`numeric`){let e=U.alphabet.numeric.decode(n.split(``)),t=e.length;for(let n=0;n<t-2;n+=3)a+=B(e[n]*100+e[n+1]*10+e[n+2],10);t%3==1?a+=B(e[t-1],4):t%3==2&&(a+=B(e[t-2]*10+e[t-1],7))}else if(r===`alphanumeric`){let e=U.alphabet.alphanumerc.decode(n.split(``)),t=e.length;for(let n=0;n<t-1;n+=2)a+=B(e[n]*45+e[n+1],11);t%2==1&&(a+=B(e[t-1],6))}else if(r===`byte`){let e=i(n);o=e.length,a=Array.from(e).map(e=>B(e,8)).join(``)}else throw Error(`encode: unsupported type`);let{capacity:s}=U.capacity(e,t),c=B(o,U.lengthBits(e,r)),l=U.modeBits[r]+c+a;if(l.length>s)throw Error(`Capacity overflow`);l+=`0`.repeat(Math.min(4,Math.max(0,s-l.length))),l.length%8&&(l+=`0`.repeat(8-l.length%8));for(let e=0;l.length!==s;e++)l+=`1110110000010001`[e%16];let u=Uint8Array.from(l.match(/(.{8})/g).map(e=>Number(`0b${e}`)));return Re(e,t).encode(u)}function We(e,t,n,r,i=!1){let a=ze(e,t,r,i),o=0,s=8*n.length;if(Be(a,r,(e,t,r)=>{let i=!1;o<s&&(i=!!(n[o>>>3]>>(7-o&7)&1),o++),a.set(e,t,i!==r)}),o!==s)throw Error(`QR: bytes left after draw`);return a}var Ge=e=>{let t=e.map(e=>e?`1`:`0`).join(``);return{len:t.length,n:Number(`0b${t}`)}},Ke=[!0,!1,!0,!0,!0,!1,!0],qe=[!1,!1,!1,!1],Je=Ge([...Ke,...qe]),Ye=Ge([...qe,...Ke]);function Xe(e){let{width:t,height:n}=e,r=e.transpose(),i=0;for(let t=0;t<n;t++)e.getRuns(t,e=>{e>=5&&(i+=3+(e-5))});for(let e=0;e<t;e++)r.getRuns(e,e=>{e>=5&&(i+=3+(e-5))});let a=0;for(let t=0;t<n-1;t++)a+=3*e.countBoxes2x2(t);let o=0;for(let t=0;t<n;t++)o+=40*e.countPatternInRow(t,Je.len,Je.n,Ye.n);for(let e=0;e<t;e++)o+=40*r.countPatternInRow(e,Je.len,Je.n,Ye.n);let s=0;s=e.popcnt();let c=s/(n*t)*100,l=10*Math.floor(Math.abs(c-50)/5);return i+a+o+l}function Ze(e,t,n,r){if(r===void 0){let i=Ee();for(let r=0;r<Ie.length;r++)i.add(Xe(We(e,t,n,r,!0)),r);r=i.get()}if(r===void 0)throw Error(`Cannot find mask`);return We(e,t,n,r)}function Qe(e){if(!je.includes(e))throw Error(`Invalid error correction mode=${e}. Expected: ${je}`)}function $e(e){if(!Me.includes(e))throw Error(`Encoding: invalid mode=${e}. Expected: ${Me}`);if(e===`kanji`||e===`eci`)throw Error(`Encoding: ${e} is not supported (yet?).`)}function et(e){if(![0,1,2,3,4,5,6,7].includes(e)||!Ie[e])throw Error(`Invalid mask=${e}. Expected number [0..7]`)}function tt(e,t=`raw`,n={}){let r=n.ecc===void 0?`medium`:n.ecc;Qe(r);let i=n.encoding===void 0?Ve(e):n.encoding;$e(i),n.mask!==void 0&&et(n.mask);let a=n.version,o,s=Error(`Unknown error`);if(a!==void 0)Se(a),o=Ue(a,r,e,i,n.textEncoder);else for(let t=1;t<=40;t++)try{o=Ue(t,r,e,i,n.textEncoder),a=t;break}catch(e){s=e}if(!a||!o)throw s;let c=Ze(a,r,o,n.mask);c.assertDrawn();let l=n.border===void 0?2:n.border;if(!Number.isSafeInteger(l))throw Error(`invalid border type=${typeof l}`);if(c=c.border(l,!1),n.scale!==void 0&&(c=c.scale(n.scale)),t===`raw`)return c.toRaw();if(t===`ascii`)return c.toASCII();if(t===`svg`)return c.toSVG(n.optimize);if(t===`gif`)return c.toGIF();if(t===`term`)return c.toTerm();throw Error(`Unknown output: ${t}`)}function nt(e,t={}){let{errorCorrection:n,version:r}=t,i=tt(e,`raw`,{border:0,ecc:n,scale:1,version:r});return{edgeLength:i.length,finderLength:7,grid:i,value:e}}function rt(e){let{arena:t,...n}=e;return(0,I.jsxs)(rt.Root,{...n,children:[(0,I.jsx)(rt.Finder,{}),(0,I.jsx)(rt.Cells,{}),t&&(0,I.jsx)(rt.Arena,{children:typeof t==`string`?(0,I.jsx)(`img`,{alt:`Arena`,src:t,style:{borderRadius:1,height:`100%`,objectFit:`cover`,width:`100%`}}):t})]})}(function(e){e.Context=F.createContext(null);function t(t){let{children:n,size:r=`100%`,value:i,version:a,errorCorrection:o,...s}=t,c=F.useMemo(()=>(F.Children.map(n,e=>!F.isValidElement(e)||typeof e.type==`string`?null:`displayName`in e.type&&e.type.displayName===`Arena`||null)??[]).some(Boolean),[n]),l=F.useMemo(()=>{let e=o;return c&&o===`low`&&(e=`medium`),nt(i,{errorCorrection:e,version:a})},[i,c,o,a]),u=l.edgeLength*1,d=l.finderLength*1/2,f=c?Math.floor(u/4):0,p=F.useMemo(()=>({arenaSize:f,cellSize:1,edgeSize:u,qrcode:l,finderSize:d}),[f,u,l,d]);return(0,I.jsx)(e.Context.Provider,{value:p,children:(0,I.jsxs)(`svg`,{...s,width:r,height:r,viewBox:`0 0 ${u} ${u}`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,I.jsx)(`title`,{children:`QR Code`}),n]})})}e.Root=t,(function(e){e.displayName=`Root`})(t=e.Root||={});function n(t){let{className:n,fill:r,innerClassName:i,radius:a=.25}=t,{cellSize:o,edgeSize:s,finderSize:c}=F.useContext(e.Context);function l({position:e}){let t=c-(c-o)-o/2;e===`top-right`&&(t=s-c-(c-o)-o/2);let l=c-(c-o)-o/2;e===`bottom-left`&&(l=s-c-(c-o)-o/2);let u=c-o*1.5;e===`top-right`&&(u=s-c-o*1.5);let d=c-o*1.5;return e===`bottom-left`&&(d=s-c-o*1.5),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`rect`,{className:n,stroke:r??`currentColor`,fill:`transparent`,x:t,y:l,width:o+(c-o)*2,height:o+(c-o)*2,rx:2*a*(c-o),ry:2*a*(c-o),strokeWidth:o}),(0,I.jsx)(`rect`,{className:i,fill:r??`currentColor`,x:u,y:d,width:o*3,height:o*3,rx:2*a*o,ry:2*a*o})]})}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{position:`top-left`}),(0,I.jsx)(l,{position:`top-right`}),(0,I.jsx)(l,{position:`bottom-left`})]})}e.Finder=n,(function(e){e.displayName=`Finder`})(n=e.Finder||={});function r(t){let{className:n,fill:r=`currentColor`,inset:i=!0,radius:a=1}=t,{arenaSize:o,cellSize:s,qrcode:c}=F.useContext(e.Context),{edgeLength:l,finderLength:u}=c,d=F.useMemo(()=>{let e=``;for(let t=0;t<c.grid.length;t++){let n=c.grid[t];if(n)for(let r=0;r<n.length;r++){if(!n[r])continue;let c=l/2-o/2,d=c+o;if(t>=c&&t<=d&&r>=c&&r<=d)continue;let f=t<u&&r<u,p=t<u&&r>=l-u,m=t>=l-u&&r<u;if(f||p||m)continue;let h=i?s*.1:0,g=(s-h*2)/2,_=r*s+s/2,v=t*s+s/2,y=_-g,b=_+g,x=v-g,S=v+g,C=a*g;e+=[`M ${y+C},${x}`,`L ${b-C},${x}`,`A ${C},${C} 0 0,1 ${b},${x+C}`,`L ${b},${S-C}`,`A ${C},${C} 0 0,1 ${b-C},${S}`,`L ${y+C},${S}`,`A ${C},${C} 0 0,1 ${y},${S-C}`,`L ${y},${x+C}`,`A ${C},${C} 0 0,1 ${y+C},${x}`,`z`].join(` `)}}return e},[o,s,l,u,c.grid,i,a]);return(0,I.jsx)(`path`,{className:n,d,fill:r})}e.Cells=r,(function(e){e.displayName=`Cells`})(r=e.Cells||={});function i(t){let{children:n}=t,{arenaSize:r,cellSize:i,edgeSize:a}=F.useContext(e.Context),o=Math.ceil(a/2-r/2),s=r+r%2,c=i/2;return(0,I.jsx)(`foreignObject`,{x:o,y:o,width:s,height:s,children:(0,I.jsx)(`div`,{style:{alignItems:`center`,display:`flex`,fontSize:1,justifyContent:`center`,height:`100%`,overflow:`hidden`,width:`100%`,padding:c,boxSizing:`border-box`},children:n})})}e.Arena=i,(function(e){e.displayName=`Arena`})(i=e.Arena||={})})(rt||={});function it(e){let{className:t,size:n,value:r,vars:i,...a}=e;return(0,I.jsx)(rt,{"aria-label":`QR code for ${r}`,role:`img`,value:r,...a,...at.qr({className:t,size:n,style:e.style,vars:i})})}var at;(function(e){e.qr=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-NkOkVO0 z_tds_2f_web-NkOkVO1 z_tds_2f_web-NkOkVO2 z_tds_2f_web-NkOkVO3 z_tds_2f_web-NkOkVO4 z_tds_2f_web-NkOkVO5 z_tds_2f_web-NkOkVO6 z_tds_2f_web-NkOkVO7 z_tds_2f_web-NkOkVO8 `+t:`z_tds_2f_web-NkOkVO0 z_tds_2f_web-NkOkVO1 z_tds_2f_web-NkOkVO2 z_tds_2f_web-NkOkVO3 z_tds_2f_web-NkOkVO4 z_tds_2f_web-NkOkVO5 z_tds_2f_web-NkOkVO6 z_tds_2f_web-NkOkVO7 z_tds_2f_web-NkOkVO8`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o})})(at||={});var ot={locale:`en`,duration:400,ease:`cubic-bezier(0.19, 1, 0.22, 1)`,disabled:!1,respectReducedMotion:!0};function st(e,t,n){if(n<1){let r=t*Math.sqrt(1-n*n);return 1-Math.exp(-n*t*e)*(Math.cos(r*e)+n*t/r*Math.sin(r*e))}let r=Math.sqrt(n*n-1),i=-t*(n+r),a=-t*(n-r),o=-i/(a-i);return 1-(1-o)*Math.exp(i*e)-o*Math.exp(a*e)}function ct(e,t,n){let r=0;for(let i=0;i<10;i+=.001)if(Math.abs(st(i,e,t)-1)>n)r=0;else if(r+=.001,r>.1)return Math.ceil((i-r+.001)*1e3);return 1e4}function lt(e,t){if(typeof e==`object`){let t=dt(e);return{ease:t.easing,duration:t.duration}}return{ease:e,duration:t}}var ut=new Map;function dt(e){let{stiffness:t=100,damping:n=10,mass:r=1,precision:i=.001}=e??{},a=`${t}:${n}:${r}:${i}`,o=ut.get(a);if(o)return o;let s=Math.sqrt(t/r),c=n/(2*Math.sqrt(t*r)),l=ct(s,c,i),u=Math.min(100,Math.max(32,Math.round(l/15))),d=[];for(let e=0;e<u;e++){let t=e/(u-1)*(l/1e3),n=e===u-1?1:st(t,s,c);d.push(Math.round(n*1e4)/1e4+``)}for(;d.length>2&&d[d.length-2]===`1`;)d.splice(d.length-2,1);let f={easing:`linear(${d.join(`, `)})`,duration:l};return ut.set(a,f),f}function ft(e,t){let n=e.length,r=t.length,i=Array.from({length:n+1},()=>Array(r+1).fill(0));for(let a=n-1;a>=0;a--)for(let n=r-1;n>=0;n--)i[a][n]=e[a]===t[n]?i[a+1][n+1]+1:Math.max(i[a+1][n],i[a][n+1]);let a=[],o=[],s=0,c=0;for(;s<n&&c<r;)e[s]===t[c]?(a.push(s),o.push(c),s++,c++):i[s+1][c]>=i[s][c+1]?s++:c++;return[a,o]}var pt=`\0n`,mt=0;function ht(){return`${pt}${mt++}`}function G(e){return e>=`0`&&e<=`9`}function gt(e){for(let t of e)if(G(t))return!0;return!1}function _t(e){let t=``;for(let n of e)!G(n)&&!vt.includes(n)&&(t+=n);return t}var vt=`.,'\xA0   `,yt=`+-−(#`,bt=`%.,!?:;)"'”’`,xt=/\p{Sc}/u;function St(e,t){return t.includes(e)||xt.test(e)}function Ct(e){let t=0,n=e.length;for(;t<n&&St(e[t],yt);)t++;for(;n>t&&St(e[n-1],bt);)n--;if(t>=n||!G(e[t])||!G(e[n-1]))return!1;for(let r=t;r<n;r++){let t=e[r];if(!G(t)&&!vt.includes(t))return!1}return!0}function wt(e){return G(e)?`digit`:`symbol`}var Tt=new Map;function Et(e){let t=String(e),n=Tt.get(t);if(n)return n;let r=`.`;try{r=new Intl.NumberFormat(e).formatToParts(1.1).find(e=>e.type===`decimal`)?.value??`.`}catch{}return Tt.set(t,r),r}function Dt(e,t,n,r=`.`){let i=e.split(``);if(!t||t.length===0)return Ot(i);let a=t.map(e=>e.string===`\xA0`?` `:e.string),o=n==null?Nt(a,i,r):kt(a,i,n,r),s=new Set;for(let[,e]of o)s.add(t[e].id);let c=[];for(let e=0;e<i.length;e++){let n=i[e],r=wt(n),a=n===` `?`\xA0`:n;if(o.has(e)){let n=o.get(e);c.push({id:t[n].id,string:a,kind:r})}else{let e=ht();for(;s.has(e);)e=ht();s.add(e),c.push({id:e,string:a,kind:r})}}return c}function Ot(e){return e.map(e=>({id:ht(),string:e===` `?`\xA0`:e,kind:wt(e)}))}function kt(e,t,n,r){let i=new Map,a=jt(e,r),o=jt(t,r),s=(e,t)=>i.set(o[e],a[t]),c=0;for(;c<o.length&&o[c]<n;)c++;let l=o.length-a.length;if(l>0){let e=c-l;for(let t=0;t<e&&t<a.length;t++)s(t,t);for(let e=c;e<o.length;e++){let t=e-l;t>=0&&t<a.length&&s(e,t)}}else if(l<0){for(let e=0;e<c&&e<o.length;e++)s(e,e);for(let e=c;e<o.length;e++){let t=e-l;t>=0&&t<a.length&&s(e,t)}}else for(let n=0;n<o.length;n++)t[o[n]]===e[a[n]]&&s(n,n);let u=Mt(e,r),d=Mt(t,r);for(let n=1;n<=u.length&&n<=d.length;n++){let r=u[u.length-n],a=d[d.length-n];e[r]===t[a]&&i.set(a,r)}return i}function At(e,t){return e!==t&&vt.includes(e)}function jt(e,t){let n=[];for(let r=0;r<e.length;r++)At(e[r],t)||n.push(r);return n}function Mt(e,t){let n=[];for(let r=0;r<e.length;r++)At(e[r],t)&&n.push(r);return n}function Nt(e,t,n){let r=new Map,i=0;for(;i<e.length&&i<t.length&&e[i]===t[i]&&!G(e[i]);)r.set(i,i),i++;let a=e.length,o=t.length;for(;a>i&&o>i&&e[a-1]===t[o-1]&&!G(e[a-1]);)r.set(o-1,a-1),a--,o--;let s=Lt(e,i,a,n),c=Lt(t,i,o,n),l=It(e,i,s),u=It(t,i,c);if(l>0&&u>0&&Math.abs(l-u)>=Ft)return r;if(!f(i,s,i,c,!0))for(let e=1;s-e>=i&&c-e>=i;e++)d(s-e,c-e);if(s<a&&c<o){r.set(c,s);for(let e=1;s+e<a&&c+e<o;e++)d(s+e,c+e);f(s+1,a,c+1,o,!1)}function d(n,i){let a=e[n];G(a)||a===t[i]&&r.set(i,n)}function f(n,i,a,o,s){let c=Pt(e,n,i),l=Pt(t,a,o);if(c.length===l.length||!s){let n=Math.min(c.length,l.length);for(let i=0;i<n;i++){let n=c[i],a=l[i];e[n]===t[a]&&r.set(a,n)}return!1}let[u,d]=ft(c.map(t=>e[t]).reverse(),l.map(e=>t[e]).reverse());for(let e=0;e<u.length;e++){let t=c[c.length-1-u[e]],n=l[l.length-1-d[e]];r.set(n,t)}return u.length>0}return r}function Pt(e,t,n){let r=[];for(let i=t;i<n;i++)G(e[i])&&r.push(i);return r}var Ft=3;function It(e,t,n){let r=0;for(let i=t;i<n;i++)G(e[i])&&r++;return r}function Lt(e,t,n,r){for(let i=n-1;i>=t;i--)if(e[i]===r)return i;return n}function Rt(){let e=new Set;return{reserve(t){e.add(t)},has(t){return e.has(t)},take(t){if(!e.has(t))return e.add(t),t;let n=1;for(;e.has(`${t}~${n}`);)n++;let r=`${t}~${n}`;return e.add(r),r}}}function zt(e){let t=[],n=[],r=()=>{n.length!==0&&(t.push({word:n.map(e=>e.string).join(``),segments:n}),n=[])};for(let t of e)t.string===`\xA0`||t.string===`
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{A as t,E as n,F as r,G as i,K as a,V as o,Y as s,n as c,r as l,tt as u,u as d,yt as f}from"./zyzz.config-Dg1ZU-Ph.js";import{Y as p,ct as m,lt as h,nt as g,q as _}from"./FloatingPortalLite-Bk_cHbee.js";import{n as v,t as y}from"./Stack-ClVHbhR2.js";import{c as b,d as x,f as S,l as C,o as w,s as T,u as ee}from"./CompositeItem-bm548KUI.js";import{$ as E,Q as te}from"./useValueChanged-oW36OdF9.js";import{t as D}from"./Hex-BwYW3WFP.js";import{t as O}from"./Alert-B7YPFnuz.js";import{t as ne}from"./Tooltip-DU7SJF-3.js";import{n as k,t as A}from"./ButtonGroup-yw65MS6T.js";import{n as j,t as M}from"./ListGroup-9__glSci.js";import{a as re,c as ie,l as ae,o as oe,u as se}from"./RadioGroup-BdXALL64.js";import{n as ce,t as N}from"./TextInput-BLEHEk_T.js";import{t as le}from"./Choicebox-BElJSmS4.js";import{t as ue}from"./Checkbox-B4MVIsk3.js";import{n as P,t as de}from"./StatusChip-DKSWhEtD.js";import{I as fe,a as pe}from"./sha3-CrUt-9EE.js";import{a as me,o as he}from"./PublicKey-u7oCiF8Y.js";import{b as ge}from"./index-DdbcUaHb.js";var F=e(f(),1),I=u();function L(e){return(0,I.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,I.jsx)(`path`,{d:`M11.9804 6.1464C12.1757 5.9514 12.4923 5.95122 12.6875 6.1464C12.8823 6.3416 12.8823 6.65827 12.6875 6.85343L8.82516 10.7157C8.36974 11.1709 7.63132 11.1707 7.17574 10.7157L3.31344 6.85343C3.11818 6.65816 3.11818 6.34166 3.31344 6.1464C3.50871 5.95124 3.82524 5.95117 4.02047 6.1464L7.88277 10.0087C7.94782 10.0731 8.05324 10.0734 8.11813 10.0087L11.9804 6.1464Z`,fill:`currentColor`})})}function _e(e,t){let n=E(e);return o(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}var R=`M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z`,ve={base:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`g`,{clipPath:`url(#clip0_201_1280-${e})`,children:(0,I.jsx)(`path`,{d:`M4 6.27467C4 5.49467 4 5.10533 4.14667 4.80667C4.288 4.52 4.52 4.28667 4.808 4.14667C5.10667 4 5.496 4 6.27467 4H25.7253C26.5053 4 26.8933 4 27.1933 4.14667C27.48 4.28667 27.712 4.52 27.852 4.80667C28 5.10667 28 5.496 28 6.27467V25.7253C28 26.5053 28 26.8933 27.8533 27.1933C27.712 27.48 27.48 27.712 27.1933 27.852C26.8933 28 26.504 28 25.7253 28H6.27467C5.49467 28 5.10667 28 4.80667 27.8533C4.51999 27.7125 4.28828 27.4803 4.148 27.1933C4 26.8933 4 26.504 4 25.7253V6.27467Z`,fill:`#0000FF`})}),(0,I.jsx)(`defs`,{children:(0,I.jsx)(`clipPath`,{id:`clip0_201_1280-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})})]}),ethereum:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{clipPath:`url(#clip0_201_1292-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`#627EEA`}),(0,I.jsx)(`path`,{d:`M16.498 4V12.87L23.995 16.22L16.498 4Z`,fill:`white`,fillOpacity:`0.602`}),(0,I.jsx)(`path`,{d:`M16.498 4L9 16.22L16.498 12.87V4Z`,fill:`white`}),(0,I.jsx)(`path`,{d:`M16.498 21.968V27.995L24 17.616L16.498 21.968Z`,fill:`white`,fillOpacity:`0.602`}),(0,I.jsx)(`path`,{d:`M16.498 27.995V21.967L9 17.616L16.498 27.995Z`,fill:`white`}),(0,I.jsx)(`path`,{d:`M16.498 20.5731L23.995 16.2201L16.498 12.8721V20.5731Z`,fill:`white`,fillOpacity:`0.2`}),(0,I.jsx)(`path`,{d:`M9 16.2201L16.498 20.5731V12.8721L9 16.2201Z`,fill:`white`,fillOpacity:`0.602`})]}),(0,I.jsx)(`defs`,{children:(0,I.jsx)(`clipPath`,{id:`clip0_201_1292-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})})]}),hyperevm:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`g`,{clipPath:`url(#clip0_201_1310-${e})`,children:(0,I.jsxs)(`g`,{clipPath:`url(#clip1_201_1310-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`#072723`}),(0,I.jsxs)(`g`,{clipPath:`url(#clip2_201_1310-${e})`,children:[(0,I.jsx)(`mask`,{id:`mask0_201_1310-${e}`,style:{maskType:`luminance`},maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`32`,height:`32`,children:(0,I.jsx)(`path`,{d:`M0 0H32V32H0V0Z`,fill:`white`})}),(0,I.jsxs)(`g`,{mask:`url(#mask0_201_1310-${e})`,children:[(0,I.jsx)(`path`,{d:`M32 0H0V32H32V0Z`,fill:`#072723`}),(0,I.jsx)(`path`,{d:`M26.6667 15.9227C26.6831 17.6668 26.3191 19.3936 25.6 20.9827C24.5707 23.276 22.1067 25.152 19.8547 23.156C18.0187 21.5293 17.6787 18.2253 14.928 17.7427C11.2894 17.2987 11.2014 21.548 8.82404 22.028C6.17471 22.5707 5.29604 18.0813 5.33471 16.044C5.37471 14.0053 5.91204 11.14 8.21471 11.14C10.864 11.14 11.0427 15.1813 14.4067 14.9627C17.7374 14.7333 17.796 10.5293 19.972 8.72934C21.8494 7.17468 24.0587 8.31468 25.164 10.1867C26.1894 11.9173 26.64 13.9493 26.6627 15.9227H26.6667Z`,fill:`#50D2C1`})]})]})]})}),(0,I.jsxs)(`defs`,{children:[(0,I.jsx)(`clipPath`,{id:`clip0_201_1310-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})}),(0,I.jsx)(`clipPath`,{id:`clip1_201_1310-${e}`,children:(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`white`})}),(0,I.jsx)(`clipPath`,{id:`clip2_201_1310-${e}`,children:(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`white`})})]})]}),polygon:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{clipPath:`url(#clip0_201_1322-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`url(#paint0_linear_201_1322-${e})`}),(0,I.jsx)(`path`,{d:`M10.9062 12.4996C11.0974 12.3866 11.3146 12.327 11.5356 12.327C11.7566 12.327 11.9737 12.3866 12.165 12.4996L15.0415 14.252L16.9947 15.3912L19.8767 17.1436C20.2411 17.3714 20.7233 17.3714 21.1288 17.1436L23.4176 15.7754C23.7875 15.5487 24.2353 15.1271 24.2353 14.6714V11.9714C24.2353 11.5157 23.8231 11.0952 23.412 10.8674L21.1644 9.53437C20.9739 9.42258 20.758 9.36375 20.5383 9.36375C20.3186 9.36375 20.1027 9.42258 19.9122 9.53437L17.6591 10.8674C17.2946 11.0941 17.1769 11.5157 17.1769 11.9714V13.717L15.4114 12.5427V10.7835C15.4114 10.3267 15.2937 9.90729 15.7048 9.67946L19.8778 7.16989C20.0683 7.0581 20.2841 6.99927 20.5039 6.99927C20.7236 6.99927 20.9395 7.0581 21.1299 7.16989L25.3708 9.67832C25.5652 9.78677 25.7268 9.94759 25.8379 10.1433C25.949 10.3389 26.0053 10.5619 26.0007 10.788V15.8525C26.0031 16.0774 25.9458 16.2987 25.8349 16.4931C25.724 16.6874 25.5636 16.8476 25.3708 16.9565L21.1299 19.465C20.9395 19.5767 20.7236 19.6356 20.5039 19.6356C20.2841 19.6356 20.0683 19.5767 19.8778 19.465L16.9958 17.7545L15.0426 16.5734L12.1606 14.8618C11.97 14.7498 11.7539 14.6909 11.5339 14.6909C11.314 14.6909 11.0979 14.7498 10.9073 14.8618L8.66079 16.1948C8.28971 16.4226 7.76641 16.8432 7.76641 17.2988V19.9988C7.76641 20.4556 8.25527 20.875 8.66079 21.1029L10.9073 22.471C11.2784 22.7 11.7606 22.7 12.1661 22.471L14.4126 21.1391C14.7837 20.9113 15.4126 20.4908 15.4126 20.0351V18.2895L17.178 19.465V21.2173C17.178 21.673 16.778 22.0935 16.3725 22.3214L12.1194 24.8241C11.755 25.0576 11.2717 25.0576 10.8662 24.8241L6.62538 22.3157C6.43972 22.2006 6.2853 22.0399 6.17622 21.8482C6.06715 21.6565 6.0069 21.44 6.00098 21.2185V16.154C6.00098 15.6972 6.22429 15.2778 6.62982 15.05L10.9062 12.4996Z`,fill:`white`})]}),(0,I.jsxs)(`defs`,{children:[(0,I.jsxs)(`linearGradient`,{id:`paint0_linear_201_1322-${e}`,x1:`3.27976e-08`,y1:`0.00106153`,x2:`32.0014`,y2:`31.9975`,gradientUnits:`userSpaceOnUse`,children:[(0,I.jsx)(`stop`,{stopColor:`#8F34C2`}),(0,I.jsx)(`stop`,{offset:`1`,stopColor:`#7442DB`})]}),(0,I.jsx)(`clipPath`,{id:`clip0_201_1322-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})]})]}),solana:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{clipPath:`url(#clip0_201_1328-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`black`}),(0,I.jsx)(`path`,{d:`M23.482 11.2376C23.3512 11.3577 23.1804 11.4255 23.0025 11.4282H6.17619C5.57883 11.4282 5.27782 10.7485 5.69083 10.35L8.45361 7.69635C8.58203 7.57247 8.75318 7.50222 8.93196 7.5H25.8248C26.428 7.5 26.7231 8.18548 26.3031 8.58515L23.482 11.2376ZM23.482 24.3164C23.3513 24.4359 23.1799 24.5015 23.0025 24.5H6.17619C5.57883 24.5 5.27782 23.8261 5.69083 23.4276L8.45361 20.7682C8.58312 20.6468 8.75414 20.5791 8.93196 20.5788H25.8248C26.428 20.5788 26.7231 21.2585 26.3031 21.657L23.482 24.3164ZM23.482 14.2259C23.3511 14.1068 23.1798 14.0416 23.0025 14.0435H6.17619C5.57883 14.0435 5.27782 14.7173 5.69083 15.1147L8.45361 17.7753C8.58435 17.8947 8.75458 17.9621 8.93196 17.9647H25.8248C26.428 17.9647 26.7231 17.285 26.3031 16.8865L23.482 14.2259Z`,fill:`white`})]}),(0,I.jsx)(`defs`,{children:(0,I.jsx)(`clipPath`,{id:`clip0_201_1328-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})})]}),tempo:e=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`g`,{clipPath:`url(#clip0_201_1334-${e})`,children:[(0,I.jsx)(`rect`,{width:`32`,height:`32`,fill:`black`}),(0,I.jsx)(`path`,{d:`M14.8242 23.5H11.1342L14.5542 13.06H10.1802L11.1342 10H23.3202L22.3662 13.06H18.2262L14.8242 23.5Z`,fill:`white`})]}),(0,I.jsx)(`defs`,{children:(0,I.jsx)(`clipPath`,{id:`clip0_201_1334-${e}`,children:(0,I.jsx)(`path`,{d:R,fill:`white`})})})]})};function ye(e){let{className:t,network:n,size:r,vars:i,...a}=e,o=(0,F.useId)(),s=e[`aria-label`]||e[`aria-labelledby`];return(0,I.jsx)(`svg`,{"aria-hidden":!s||void 0,fill:`none`,role:s?`img`:void 0,viewBox:`0 0 32 32`,xmlns:`http://www.w3.org/2000/svg`,...a,...be.logo({className:t,size:r,style:e.style,vars:i}),children:ve[n](o)})}var be;(function(e){e.logo=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-Es5pwA0 z_tds_2f_web-Es5pwA1 z_tds_2f_web-Es5pwA2 z_tds_2f_web-Es5pwA3 z_tds_2f_web-Es5pwA4 z_tds_2f_web-Es5pwA5 z_tds_2f_web-Es5pwA6 `+t:`z_tds_2f_web-Es5pwA0 z_tds_2f_web-Es5pwA1 z_tds_2f_web-Es5pwA2 z_tds_2f_web-Es5pwA3 z_tds_2f_web-Es5pwA4 z_tds_2f_web-Es5pwA5 z_tds_2f_web-Es5pwA6`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o})})(be||={});var z={newline:10,reset:27};function xe(e){if(!Number.isSafeInteger(e))throw Error(`integer expected: ${e}`)}function Se(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw Error(`Invalid version=${e}. Expected number [1..40]`)}function B(e,t){return e.toString(2).padStart(t,`0`)}function Ce(e,t){let n=e%t;return n>=0?n:t+n}function V(e,t){return Array(e).fill(t)}function we(e){return e-=e>>>1&1431655765,e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}function Te(e){let t=0,n=0;for(let r of e)t=Math.max(t,r.length),n+=r.length;let r=new Uint8Array(n),i=0;for(let n=0;n<t;n++)for(let t of e)n<t.length&&(r[i++]=t[n]);return r}function Ee(){let e,t=1/0;return{add(n,r){n>=t||(e=r,t=n)},get:()=>e,score:()=>t}}function De(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=`string`)throw Error(`alphabet.decode input should be array of strings`);return t.map(t=>{if(typeof t!=`string`)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(n===-1)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})},encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=`number`)throw Error(`alphabet.encode input should be an array of numbers`);return t.map(t=>{if(xe(t),t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})}}}function Oe(e){if(e.length!==32)throw Error(`expects 32 element matrix`);let t=[1431655765,858993459,252645135,16711935,65535];for(let n=0;n<5;n++){let r=t[n]>>>0,i=1<<n,a=i<<1;for(let t=0;t<32;t+=a)for(let n=0;n<i;n++){let a=t+n,o=a+i,s=e[a]>>>0,c=e[o]>>>0,l=(s>>>i^c)&r;e[a]=(s^l<<i)>>>0,e[o]=(c^l)>>>0}}}var ke=e=>1<<(e&31)>>>0,H=(e,t)=>t===0?0:t===32?4294967295:(1<<t)-1<<e>>>0,Ae=class e{static size(e,t){if(typeof e==`number`&&(e={height:e,width:e}),!Number.isSafeInteger(e.height)&&e.height!==1/0)throw Error(`Bitmap: invalid height=${e.height} (${typeof e.height})`);if(!Number.isSafeInteger(e.width)&&e.width!==1/0)throw Error(`Bitmap: invalid width=${e.width} (${typeof e.width})`);return t!==void 0&&(e={width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}),e}static fromString(t){t=t.replace(/^\n+/g,``).replace(/\n+$/g,``);let n=t.split(String.fromCharCode(z.newline)),r=n.length,i,a=[];for(let e of n){let t=e.split(``).map(e=>{if(e===`X`)return!0;if(e===` `)return!1;if(e!==`?`)throw Error(`Bitmap.fromString: unknown symbol=${e}`)});if(i!==void 0&&t.length!==i)throw Error(`Bitmap.fromString different row sizes: width=${i} cur=${t.length}`);i=t.length,a.push(t)}return i===void 0&&(i=0),new e({height:r,width:i},a)}defined;value;tailMask;words;fullWords;height;width;constructor(t,n){let{height:r,width:i}=e.size(t);if(this.height=r,this.width=i,this.tailMask=H(0,i&31||32),this.words=Math.ceil(i/32)|0,this.fullWords=Math.floor(i/32)|0,this.value=new Uint32Array(this.words*r),this.defined=new Uint32Array(this.value.length),n){if(n.length!==r)throw Error(`Bitmap: data height mismatch: exp=${r} got=${n.length}`);for(let e=0;e<r;e++){let t=n[e];if(!t||t.length!==i)throw Error(`Bitmap: data width mismatch at y=${e}: exp=${i} got=${t?.length}`);for(let n=0;n<i;n++)this.set(n,e,t[n])}}}point(e){return this.get(e.x,e.y)}isInside(e){return 0<=e.x&&e.x<this.width&&0<=e.y&&e.y<this.height}size(e){if(!e)return{height:this.height,width:this.width};let{x:t,y:n}=this.xy(e);return{height:this.height-n,width:this.width-t}}xy(e){if(typeof e==`number`&&(e={x:e,y:e}),!Number.isSafeInteger(e.x))throw Error(`Bitmap: invalid x=${e.x}`);if(!Number.isSafeInteger(e.y))throw Error(`Bitmap: invalid y=${e.y}`);return e.x=Ce(e.x,this.width),e.y=Ce(e.y,this.height),e}wordIndex(e,t){return t*this.words+(e>>>5)}bitIndex(e,t){return{word:this.wordIndex(e,t),bit:e&31}}isDefined(e,t){let n=this.wordIndex(e,t),r=ke(e);return(this.defined[n]&r)!==0}get(e,t){let n=this.wordIndex(e,t),r=ke(e);return(this.value[n]&r)!==0}maskWord(e,t,n){let{defined:r,value:i}=this;r[e]|=t,i[e]=i[e]&~t|-n&t}set(e,t,n){n!==void 0&&this.maskWord(this.wordIndex(e,t),ke(e),n)}fillRectConst(e,t,n,r,i){if(n<=0||r<=0||i===void 0)return;let{value:a,defined:o,words:s}=this,c=e>>>5,l=e+n-1>>>5,u=e&31,d=e+n-1&31;for(let e=0;e<r;e++){let n=(t+e)*s;if(c===l){let e=H(u,d-u+1);this.maskWord(n+c,e,i)}else{this.maskWord(n+c,H(u,32-u),i);for(let e=c+1;e<l;e++)o[n+e]=4294967295,a[n+e]=i?4294967295:0;this.maskWord(n+l,H(0,d+1),i)}}}rectWords(e,t,n,r,i){for(let a=0;a<r;a++){let r=t+a;for(let t=0;t<n;){let o=e+t,{bit:s,word:c}=this.bitIndex(o,r),l=Math.min(32-s,n-t);i(c,o,t,a,l),t+=l}}}rect(t,n,r){let{x:i,y:a}=this.xy(t),{height:o,width:s}=e.size(n,this.size({x:i,y:a}));if(typeof r!=`function`)return this.fillRectConst(i,a,s,o,r),this;let{defined:c,value:l}=this;return this.rectWords(i,a,s,o,(e,t,n,i,a)=>{let o=0,s=l[e];for(let e=0;e<a;e++){let a=ke(t+e),c=r({x:n+e,y:i},(s&a)!==0);c!==void 0&&(o|=a,s=s&~a|-c&a)}c[e]|=o,l[e]=s}),this}rectRead(t,n,r){let{x:i,y:a}=this.xy(t),{height:o,width:s}=e.size(n,this.size({x:i,y:a})),{value:c}=this;return this.rectWords(i,a,s,o,(e,t,n,i,a)=>{let o=c[e];for(let e=0;e<a;e++){let a=ke(t+e);r({x:n+e,y:i},(o&a)!==0)}}),this}hLine(e,t,n){return this.rect(e,{width:t,height:1},n)}vLine(e,t,n){return this.rect(e,{width:1,height:t},n)}border(t=2,n){let r=this.height+2*t,i=this.width+2*t,a=new e({height:r,width:i});return a.rect(0,1/0,n),a.embed({x:t,y:t},this),a}embed(t,n){let{x:r,y:i}=this.xy(t),{height:a,width:o}=e.size(n.size(),this.size({x:r,y:i}));if(o<=0||a<=0)return this;let{value:s,defined:c}=this,{words:l,value:u}=n;for(let e=0;e<a;e++){let t=e*l;for(let a=0;a<o;){let d=r+a,{word:f,bit:p}=this.bitIndex(d,i+e),{word:m,bit:h}=n.bitIndex(a,e),g=Math.min(32-p,o-a),_=u[m],v=h&&m+1<t+l?u[m+1]:0,y=h?(_>>>h|v<<32-h)>>>0:_,b=H(p,g),x=(y&H(0,g))<<p>>>0;c[f]|=b,s[f]=s[f]&~b|x,a+=g}}return this}rectSlice(t,n=this.size()){let{x:r,y:i}=this.xy(t),{height:a,width:o}=e.size(n,this.size({x:r,y:i})),s=new e({height:a,width:o});return this.rectRead({x:r,y:i},{height:a,width:o},(e,t)=>{this.isDefined(r+e.x,i+e.y)&&s.set(e.x,e.y,t)}),s}transpose(){let{height:t,width:n,value:r,defined:i,words:a}=this,o=new e({height:n,width:t}),{words:s,value:c,defined:l,tailMask:u}=o,d=new Uint32Array(32),f=new Uint32Array(32);for(let e=0;e<t;e+=32)for(let p=0;p<a;p++){let a=Math.min(32,t-e);for(let t=0;t<a;t++){let n=this.wordIndex(32*p,e+t);d[t]=r[n],f[t]=i[n]}d.fill(0,a),f.fill(0,a),Oe(d),Oe(f);for(let t=0;t<32;t++){let r=p*32+t;if(r>=n)break;let i=o.wordIndex(e,r),a=e>>>5==s-1?u:4294967295;c[i]=d[t]&a,l[i]=f[t]&a}}return o}negate(){let e=this.defined.length;for(let t=0;t<e;t++)this.value[t]=~this.value[t],this.defined[t]=4294967295;return this}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw Error(`invalid scale factor: ${t}`);let{height:n,width:r}=this;return new e({height:t*n,width:t*r}).rect({x:0,y:0},1/0,({x:e,y:n})=>this.get(e/t|0,n/t|0))}clone(){let t=new e(this.size());return t.defined.set(this.defined),t.value.set(this.value),t}assertDrawn(){let{height:e,width:t,defined:n,tailMask:r,fullWords:i,words:a}=this;if(e&&t)for(let t=0;t<e;t++){let e=t*a;for(let t=0;t<i;t++)if(n[e+t]!==4294967295)throw Error(`Invalid color type=undefined`);if(a!==i&&(n[e+i]&r)!==r)throw Error(`Invalid color type=undefined`)}}countPatternInRow(e,t,...n){if(t<=0||t>=32)throw Error(`wrong patternLen`);let r=(1<<t)-1,{width:i,value:a,words:o}=this,s=0,c=this.wordIndex(0,e);for(let e=0,l=0;e<o;e++){let u=a[c+e],d=e===o-1&&i&31||32;for(let i=0;i<d;i++)if(l=(l<<1|u>>>i&1)&r,!(e*32+i+1<t)){for(let e of n)if(l===e){s++;break}}}return s}getRuns(e,t){let{width:n,value:r,words:i}=this;if(n===0)return;let a=0,o,s=this.wordIndex(0,e);for(let e=0;e<i;e++){let c=r[s+e],l=e===i-1&&n&31||32;for(let e=0;e<l;e++){let n=!!(c&1<<e);n===o?a++:(o!==void 0&&t(a,o),o=n,a=1)}}o!==void 0&&t(a,o)}popcnt(){let{height:e,width:t,words:n,fullWords:r,tailMask:i}=this;if(!e||!t)return 0;let a=0;for(let t=0;t<e;t++){let e=t*n;for(let t=0;t<r;t++)a+=we(this.value[e+t]);n!==r&&(a+=we(this.value[e+r]&i))}return a}countBoxes2x2(e){let{width:t,words:n}=this;if(t<2||(e|0)<0||e+1>=this.height)return 0;let r=this.wordIndex(0,e)|0,i=this.wordIndex(0,e+1)|0,a=t&31?H(0,t-1&31):2147483647,o=0;for(let e=0;e<n;e++){let t=this.value[r+e],s=this.value[i+e],c=~(t^s)>>>0,l=e+1<n?this.value[r+e+1]>>>0:0,u=~(t^(t>>>1|(l&1)<<31)>>>0)>>>0,d=e+1<n?this.value[i+e+1]>>>0:0,f=~(s^(s>>>1|(d&1)<<31)>>>0)>>>0,p=(c&u&f)>>>0;e===n-1&&(p&=a),o+=we(p)}return o}toString(){let e=String.fromCharCode(z.newline),t=``;for(let n=0;n<this.height;n++){let r=``;for(let e=0;e<this.width;e++){let t=this.get(e,n);r+=this.isDefined(e,n)?t?`X`:` `:`?`}t+=r+(n+1===this.height?``:e)}return t}toRaw(){let e=Array.from({length:this.height},()=>Array(this.width));for(let t=0;t<this.height;t++){let n=e[t];for(let e=0;e<this.width;e++)n[e]=this.get(e,t)}return e}toASCII(){let{height:e,width:t}=this,n=``;for(let r=0;r<e;r+=2){for(let i=0;i<t;i++){let t=this.get(i,r),a=r+1>=e||this.get(i,r+1);!t&&!a?n+=`█`:!t&&a?n+=`▀`:t&&!a?n+=`▄`:t&&a&&(n+=` `)}n+=String.fromCharCode(z.newline)}return n}toTerm(){let e=String.fromCharCode(z.reset),t=e+`[0m`,n=e+`[1;47m `+t,r=e+`[40m `+t,i=String.fromCharCode(z.newline),a=``;for(let e=0;e<this.height;e++){for(let t=0;t<this.width;t++){let i=this.get(t,e);a+=i?r:n}a+=i}return a}toSVG(e=!0){let t=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,n=``,r;return this.rectRead(0,1/0,(i,a)=>{if(!a)return;let{x:o,y:s}=i;if(!e){t+=`<rect x="${o}" y="${s}" width="1" height="1" />`;return}let c=`M${o} ${s}`;if(r){let e=`m${o-r.x} ${s-r.y}`;e.length<=c.length&&(c=e)}let l=o<10?`H${o}`:`h-1`;n+=`${c}h1v1${l}Z`,r=i}),e&&(t+=`<path d="${n}"/>`),t+=`</svg>`,t}toGIF(){let e=e=>[e&255,e>>>8&255],t=[...e(this.width),...e(this.height)],n=[];this.rectRead(0,1/0,(e,t)=>n.push(+(t===!0)));let r=[71,73,70,56,55,97,...t,246,0,0,255,255,255,...V(381,0),44,0,0,0,0,...t,0,7],i=Math.floor(n.length/126);for(let e=0;e<i;e++)r.push(127,128,...n.slice(126*e,126*(e+1)).map(e=>+e));return r.push(n.length%126+1,128,...n.slice(i*126).map(e=>+e)),r.push(1,129,0,59),new Uint8Array(r)}toImage(e=!1){let{height:t,width:n}=this.size(),r=new Uint8Array(t*n*(e?3:4)),i=0;for(let a=0;a<t;a++)for(let t=0;t<n;t++){let n=this.get(t,a)?0:255;r[i++]=n,r[i++]=n,r[i++]=n,e||(r[i++]=255)}return{height:t,width:n,data:r}}},je=[`low`,`medium`,`quartile`,`high`],Me=[`numeric`,`alphanumeric`,`byte`,`kanji`,`eci`],Ne=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],Pe={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},Fe={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},U={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(e===1)return[];let t=U.size.encode(e)-6-1,n=t-6,r=Math.ceil(n/28),i=Math.floor(n/r);i%2?i+=1:n%r*2>=r&&(i+=2);let a=[6];for(let e=1;e<r;e++)a.push(t-(r-e)*i);return a.push(t),a},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){let n=U.ECCode[e]<<3|t,r=n;for(let e=0;e<10;e++)r=r<<1^(r>>9)*1335;return(n<<10|r)^U.formatMask},versionBits(e){let t=e;for(let e=0;e<12;e++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:De(`0123456789`),alphanumerc:De(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`)},lengthBits(e,t){return{numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]}[t][U.sizeType(e)]},modeBits:{numeric:`0001`,alphanumeric:`0010`,byte:`0100`,kanji:`1000`,eci:`0111`},capacity(e,t){let n=Ne[e-1],r=Pe[t][e-1],i=Fe[t][e-1],a=Math.floor(n/i)-r,o=i-n%i;return{words:r,numBlocks:i,shortBlocks:o,blockLen:a,capacity:(n-r*i)*8,total:(r+a)*i+i-o}}},Ie=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],W={tables:(e=>{let t=V(256,0),n=V(256,0);for(let r=0,i=1;r<256;r++)t[r]=i,n[i]=r,i<<=1,i&256&&(i^=e);return{exp:t,log:n}})(285),exp:e=>W.tables.exp[e],log(e){if(e===0)throw Error(`GF.log: invalid arg=${e}`);return W.tables.log[e]%255},mul(e,t){return e===0||t===0?0:W.tables.exp[(W.tables.log[e]+W.tables.log[t])%255]},add:(e,t)=>e^t,pow:(e,t)=>W.tables.exp[W.tables.log[e]*t%255],inv(e){if(e===0)throw Error(`GF.inverse: invalid arg=${e}`);return W.tables.exp[255-W.tables.log[e]]},polynomial(e){if(e.length==0)throw Error(`GF.polymomial: invalid length`);if(e[0]!==0)return e;let t=0;for(;t<e.length-1&&e[t]==0;t++);return e.slice(t)},monomial(e,t){if(e<0)throw Error(`GF.monomial: invalid degree=${e}`);if(t==0)return[0];let n=V(e+1,0);return n[0]=t,W.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[W.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];let n=V(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]=W.add(n[r+i],W.mul(e[r],t[i]));return W.polynomial(n)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;let n=V(e.length,0);for(let r=0;r<e.length;r++)n[r]=W.mul(e[r],t);return W.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw Error(`GF.mulPolyMonomial: invalid degree`);if(n==0)return[0];let r=V(e.length+t,0);for(let t=0;t<e.length;t++)r[t]=W.mul(e[t],n);return W.polynomial(r)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let i=V(r.length,0),a=r.length-n.length,o=r.slice(0,a);for(let e=0;e<o.length;e++)i[e]=o[e];for(let e=a;e<r.length;e++)i[e]=W.add(n[e-a],r[e]);return W.polynomial(i)},remainderPoly(e,t){let n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){let e=n[r];if(e!==0)for(let i=1;i<t.length;i++)t[i]!==0&&(n[r+i]=W.add(n[r+i],W.mul(t[i],e)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=W.mulPoly(t,[1,W.pow(2,n)]);return t},evalPoly(e,t){if(t==0)return W.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=W.add(W.mul(t,n),e[r]);return n},euclidian(e,t,n){W.degree(e)<W.degree(t)&&([e,t]=[t,e]);let r=e,i=t,a=[0],o=[1];for(;2*W.degree(i)>=n;){let e=r,t=a;if(r=i,a=o,r[0]===0)throw Error(`rLast[0] === 0`);i=e;let n=[0],s=W.inv(r[0]);for(;W.degree(i)>=W.degree(r)&&i[0]!==0;){let e=W.degree(i)-W.degree(r),t=W.mul(i[0],s);n=W.addPoly(n,W.monomial(e,t)),i=W.addPoly(i,W.mulPolyMonomial(r,e,t))}if(n=W.mulPoly(n,a),o=W.addPoly(n,t),W.degree(i)>=W.degree(r))throw Error(`Division failed r: ${i}, rLast: ${r}`)}let s=W.coefficient(o,0);if(s==0)throw Error(`sigmaTilde(0) was zero`);let c=W.inv(s);return[W.mulPolyScalar(o,c),W.mulPolyScalar(i,c)]}};function Le(e){return{encode(t){let n=W.divisorPoly(e),r=Array.from(t);return r.push(...n.slice(0,-1).fill(0)),Uint8Array.from(W.remainderPoly(r,n))},decode(t){let n=t.slice(),r=W.polynomial(Array.from(t)),i=V(e,0),a=!1;for(let t=0;t<e;t++){let e=W.evalPoly(r,W.exp(t));i[i.length-1-t]=e,e!==0&&(a=!0)}if(!a)return n;i=W.polynomial(i);let o=W.monomial(e,1),[s,c]=W.euclidian(o,i,e),l=V(W.degree(s),0),u=0;for(let e=1;e<256&&u<l.length;e++)W.evalPoly(s,e)===0&&(l[u++]=W.inv(e));if(u!==l.length)throw Error(`RS.decode: invalid errors number`);for(let e=0;e<l.length;e++){let t=n.length-1-W.log(l[e]);if(t<0)throw Error(`RS.decode: invalid error location`);let r=W.inv(l[e]),i=1;for(let t=0;t<l.length;t++)e!==t&&(i=W.mul(i,W.add(1,W.mul(l[t],r))));n[t]=W.add(n[t],W.mul(W.evalPoly(c,r),W.inv(i)))}return n}}}function Re(e,t){let{words:n,shortBlocks:r,numBlocks:i,blockLen:a,total:o}=U.capacity(e,t),s=Le(n);return{encode(e){let t=[],n=[];for(let o=0;o<i;o++){let i=a+(o<r?0:1);t.push(e.subarray(0,i)),n.push(s.encode(e.subarray(0,i))),e=e.subarray(i)}let o=Te(t),c=Te(n),l=new Uint8Array(o.length+c.length);return l.set(o),l.set(c,o.length),l},decode(e){if(e.length!==o)throw Error(`interleave.decode: len(data)=${e.length}, total=${o}`);let t=[];for(let e=0;e<i;e++){let i=e<r;t.push(new Uint8Array(n+a+ +!i))}let c=0;for(let n=0;n<a;n++)for(let r=0;r<i;r++)t[r][n]=e[c++];for(let n=r;n<i;n++)t[n][a]=e[c++];for(let o=a;o<a+n;o++)for(let n=0;n<i;n++){let i=n<r;t[n][o+ +!i]=e[c++]}let l=[];for(let e of t)l.push(...Array.from(s.decode(e)).slice(0,-n));return Uint8Array.from(l)}}}function ze(e,t,n,r=!1){let i=U.size.encode(e),a=new Ae(i+2),o=new Ae(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);a=a.embed(0,o).embed({x:-o.width,y:0},o).embed({x:0,y:-o.height},o),a=a.rectSlice(1,i);let s=new Ae(1).rect(0,1,!0).border(1,!1).border(1,!0),c=U.alignmentPatterns(e);for(let e of c)for(let t of c)a.isDefined(t,e)||a.embed({x:t-2,y:e-2},s);a=a.hLine({x:0,y:6},1/0,({x:e})=>a.isDefined(e,6)?void 0:e%2==0).vLine({x:6,y:0},1/0,({y:e})=>a.isDefined(6,e)?void 0:e%2==0);{let e=U.formatBits(t,n),o=t=>!r&&(e>>t&1)==1;for(let e=0;e<6;e++)a.set(8,e,o(e));for(let e=6;e<8;e++)a.set(8,e+1,o(e));for(let e=8;e<15;e++)a.set(8,i-15+e,o(e));for(let e=0;e<8;e++)a.set(i-e-1,8,o(e));for(let e=8;e<9;e++)a.set(15-e-1+1,8,o(e));for(let e=9;e<15;e++)a.set(15-e-1,8,o(e));a.set(8,i-8,!r)}if(e>=7){let t=U.versionBits(e);for(let e=0;e<18;e+=1){let n=!r&&(t>>e&1)==1,o=Math.floor(e/3),s=e%3+i-8-3;a.set(s,o,n),a.set(o,s,n)}}return a}function Be(e,t,n){let r=e.height,i=Ie[t],a=-1,o=r-1;for(let t=r-1;t>0;t-=2){for(t==6&&(t=5);;o+=a){for(let r=0;r<2;r+=1){let a=t-r;e.isDefined(a,o)||n(a,o,i(a,o))}if(o+a<0||o+a>=r)break}a=-a}}function Ve(e){let t=`numeric`;for(let n of e)if(!U.alphabet.numeric.has(n)&&(t=`alphanumeric`,!U.alphabet.alphanumerc.has(n)))return`byte`;return t}function He(e){if(typeof e!=`string`)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Ue(e,t,n,r,i=He){let a=``,o=n.length;if(r===`numeric`){let e=U.alphabet.numeric.decode(n.split(``)),t=e.length;for(let n=0;n<t-2;n+=3)a+=B(e[n]*100+e[n+1]*10+e[n+2],10);t%3==1?a+=B(e[t-1],4):t%3==2&&(a+=B(e[t-2]*10+e[t-1],7))}else if(r===`alphanumeric`){let e=U.alphabet.alphanumerc.decode(n.split(``)),t=e.length;for(let n=0;n<t-1;n+=2)a+=B(e[n]*45+e[n+1],11);t%2==1&&(a+=B(e[t-1],6))}else if(r===`byte`){let e=i(n);o=e.length,a=Array.from(e).map(e=>B(e,8)).join(``)}else throw Error(`encode: unsupported type`);let{capacity:s}=U.capacity(e,t),c=B(o,U.lengthBits(e,r)),l=U.modeBits[r]+c+a;if(l.length>s)throw Error(`Capacity overflow`);l+=`0`.repeat(Math.min(4,Math.max(0,s-l.length))),l.length%8&&(l+=`0`.repeat(8-l.length%8));for(let e=0;l.length!==s;e++)l+=`1110110000010001`[e%16];let u=Uint8Array.from(l.match(/(.{8})/g).map(e=>Number(`0b${e}`)));return Re(e,t).encode(u)}function We(e,t,n,r,i=!1){let a=ze(e,t,r,i),o=0,s=8*n.length;if(Be(a,r,(e,t,r)=>{let i=!1;o<s&&(i=!!(n[o>>>3]>>(7-o&7)&1),o++),a.set(e,t,i!==r)}),o!==s)throw Error(`QR: bytes left after draw`);return a}var Ge=e=>{let t=e.map(e=>e?`1`:`0`).join(``);return{len:t.length,n:Number(`0b${t}`)}},Ke=[!0,!1,!0,!0,!0,!1,!0],qe=[!1,!1,!1,!1],Je=Ge([...Ke,...qe]),Ye=Ge([...qe,...Ke]);function Xe(e){let{width:t,height:n}=e,r=e.transpose(),i=0;for(let t=0;t<n;t++)e.getRuns(t,e=>{e>=5&&(i+=3+(e-5))});for(let e=0;e<t;e++)r.getRuns(e,e=>{e>=5&&(i+=3+(e-5))});let a=0;for(let t=0;t<n-1;t++)a+=3*e.countBoxes2x2(t);let o=0;for(let t=0;t<n;t++)o+=40*e.countPatternInRow(t,Je.len,Je.n,Ye.n);for(let e=0;e<t;e++)o+=40*r.countPatternInRow(e,Je.len,Je.n,Ye.n);let s=0;s=e.popcnt();let c=s/(n*t)*100,l=10*Math.floor(Math.abs(c-50)/5);return i+a+o+l}function Ze(e,t,n,r){if(r===void 0){let i=Ee();for(let r=0;r<Ie.length;r++)i.add(Xe(We(e,t,n,r,!0)),r);r=i.get()}if(r===void 0)throw Error(`Cannot find mask`);return We(e,t,n,r)}function Qe(e){if(!je.includes(e))throw Error(`Invalid error correction mode=${e}. Expected: ${je}`)}function $e(e){if(!Me.includes(e))throw Error(`Encoding: invalid mode=${e}. Expected: ${Me}`);if(e===`kanji`||e===`eci`)throw Error(`Encoding: ${e} is not supported (yet?).`)}function et(e){if(![0,1,2,3,4,5,6,7].includes(e)||!Ie[e])throw Error(`Invalid mask=${e}. Expected number [0..7]`)}function tt(e,t=`raw`,n={}){let r=n.ecc===void 0?`medium`:n.ecc;Qe(r);let i=n.encoding===void 0?Ve(e):n.encoding;$e(i),n.mask!==void 0&&et(n.mask);let a=n.version,o,s=Error(`Unknown error`);if(a!==void 0)Se(a),o=Ue(a,r,e,i,n.textEncoder);else for(let t=1;t<=40;t++)try{o=Ue(t,r,e,i,n.textEncoder),a=t;break}catch(e){s=e}if(!a||!o)throw s;let c=Ze(a,r,o,n.mask);c.assertDrawn();let l=n.border===void 0?2:n.border;if(!Number.isSafeInteger(l))throw Error(`invalid border type=${typeof l}`);if(c=c.border(l,!1),n.scale!==void 0&&(c=c.scale(n.scale)),t===`raw`)return c.toRaw();if(t===`ascii`)return c.toASCII();if(t===`svg`)return c.toSVG(n.optimize);if(t===`gif`)return c.toGIF();if(t===`term`)return c.toTerm();throw Error(`Unknown output: ${t}`)}function nt(e,t={}){let{errorCorrection:n,version:r}=t,i=tt(e,`raw`,{border:0,ecc:n,scale:1,version:r});return{edgeLength:i.length,finderLength:7,grid:i,value:e}}function rt(e){let{arena:t,...n}=e;return(0,I.jsxs)(rt.Root,{...n,children:[(0,I.jsx)(rt.Finder,{}),(0,I.jsx)(rt.Cells,{}),t&&(0,I.jsx)(rt.Arena,{children:typeof t==`string`?(0,I.jsx)(`img`,{alt:`Arena`,src:t,style:{borderRadius:1,height:`100%`,objectFit:`cover`,width:`100%`}}):t})]})}(function(e){e.Context=F.createContext(null);function t(t){let{children:n,size:r=`100%`,value:i,version:a,errorCorrection:o,...s}=t,c=F.useMemo(()=>(F.Children.map(n,e=>!F.isValidElement(e)||typeof e.type==`string`?null:`displayName`in e.type&&e.type.displayName===`Arena`||null)??[]).some(Boolean),[n]),l=F.useMemo(()=>{let e=o;return c&&o===`low`&&(e=`medium`),nt(i,{errorCorrection:e,version:a})},[i,c,o,a]),u=l.edgeLength*1,d=l.finderLength*1/2,f=c?Math.floor(u/4):0,p=F.useMemo(()=>({arenaSize:f,cellSize:1,edgeSize:u,qrcode:l,finderSize:d}),[f,u,l,d]);return(0,I.jsx)(e.Context.Provider,{value:p,children:(0,I.jsxs)(`svg`,{...s,width:r,height:r,viewBox:`0 0 ${u} ${u}`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,I.jsx)(`title`,{children:`QR Code`}),n]})})}e.Root=t,(function(e){e.displayName=`Root`})(t=e.Root||={});function n(t){let{className:n,fill:r,innerClassName:i,radius:a=.25}=t,{cellSize:o,edgeSize:s,finderSize:c}=F.useContext(e.Context);function l({position:e}){let t=c-(c-o)-o/2;e===`top-right`&&(t=s-c-(c-o)-o/2);let l=c-(c-o)-o/2;e===`bottom-left`&&(l=s-c-(c-o)-o/2);let u=c-o*1.5;e===`top-right`&&(u=s-c-o*1.5);let d=c-o*1.5;return e===`bottom-left`&&(d=s-c-o*1.5),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`rect`,{className:n,stroke:r??`currentColor`,fill:`transparent`,x:t,y:l,width:o+(c-o)*2,height:o+(c-o)*2,rx:2*a*(c-o),ry:2*a*(c-o),strokeWidth:o}),(0,I.jsx)(`rect`,{className:i,fill:r??`currentColor`,x:u,y:d,width:o*3,height:o*3,rx:2*a*o,ry:2*a*o})]})}return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l,{position:`top-left`}),(0,I.jsx)(l,{position:`top-right`}),(0,I.jsx)(l,{position:`bottom-left`})]})}e.Finder=n,(function(e){e.displayName=`Finder`})(n=e.Finder||={});function r(t){let{className:n,fill:r=`currentColor`,inset:i=!0,radius:a=1}=t,{arenaSize:o,cellSize:s,qrcode:c}=F.useContext(e.Context),{edgeLength:l,finderLength:u}=c,d=F.useMemo(()=>{let e=``;for(let t=0;t<c.grid.length;t++){let n=c.grid[t];if(n)for(let r=0;r<n.length;r++){if(!n[r])continue;let c=l/2-o/2,d=c+o;if(t>=c&&t<=d&&r>=c&&r<=d)continue;let f=t<u&&r<u,p=t<u&&r>=l-u,m=t>=l-u&&r<u;if(f||p||m)continue;let h=i?s*.1:0,g=(s-h*2)/2,_=r*s+s/2,v=t*s+s/2,y=_-g,b=_+g,x=v-g,S=v+g,C=a*g;e+=[`M ${y+C},${x}`,`L ${b-C},${x}`,`A ${C},${C} 0 0,1 ${b},${x+C}`,`L ${b},${S-C}`,`A ${C},${C} 0 0,1 ${b-C},${S}`,`L ${y+C},${S}`,`A ${C},${C} 0 0,1 ${y},${S-C}`,`L ${y},${x+C}`,`A ${C},${C} 0 0,1 ${y+C},${x}`,`z`].join(` `)}}return e},[o,s,l,u,c.grid,i,a]);return(0,I.jsx)(`path`,{className:n,d,fill:r})}e.Cells=r,(function(e){e.displayName=`Cells`})(r=e.Cells||={});function i(t){let{children:n}=t,{arenaSize:r,cellSize:i,edgeSize:a}=F.useContext(e.Context),o=Math.ceil(a/2-r/2),s=r+r%2,c=i/2;return(0,I.jsx)(`foreignObject`,{x:o,y:o,width:s,height:s,children:(0,I.jsx)(`div`,{style:{alignItems:`center`,display:`flex`,fontSize:1,justifyContent:`center`,height:`100%`,overflow:`hidden`,width:`100%`,padding:c,boxSizing:`border-box`},children:n})})}e.Arena=i,(function(e){e.displayName=`Arena`})(i=e.Arena||={})})(rt||={});function it(e){let{className:t,size:n,value:r,vars:i,...a}=e;return(0,I.jsx)(rt,{"aria-label":`QR code for ${r}`,role:`img`,value:r,...a,...at.qr({className:t,size:n,style:e.style,vars:i})})}var at;(function(e){e.qr=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-NkOkVO0 z_tds_2f_web-NkOkVO1 z_tds_2f_web-NkOkVO2 z_tds_2f_web-NkOkVO3 z_tds_2f_web-NkOkVO4 z_tds_2f_web-NkOkVO5 z_tds_2f_web-NkOkVO6 z_tds_2f_web-NkOkVO7 z_tds_2f_web-NkOkVO8 `+t:`z_tds_2f_web-NkOkVO0 z_tds_2f_web-NkOkVO1 z_tds_2f_web-NkOkVO2 z_tds_2f_web-NkOkVO3 z_tds_2f_web-NkOkVO4 z_tds_2f_web-NkOkVO5 z_tds_2f_web-NkOkVO6 z_tds_2f_web-NkOkVO7 z_tds_2f_web-NkOkVO8`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o})})(at||={});var ot={locale:`en`,duration:400,ease:`cubic-bezier(0.19, 1, 0.22, 1)`,disabled:!1,respectReducedMotion:!0};function st(e,t,n){if(n<1){let r=t*Math.sqrt(1-n*n);return 1-Math.exp(-n*t*e)*(Math.cos(r*e)+n*t/r*Math.sin(r*e))}let r=Math.sqrt(n*n-1),i=-t*(n+r),a=-t*(n-r),o=-i/(a-i);return 1-(1-o)*Math.exp(i*e)-o*Math.exp(a*e)}function ct(e,t,n){let r=0;for(let i=0;i<10;i+=.001)if(Math.abs(st(i,e,t)-1)>n)r=0;else if(r+=.001,r>.1)return Math.ceil((i-r+.001)*1e3);return 1e4}function lt(e,t){if(typeof e==`object`){let t=dt(e);return{ease:t.easing,duration:t.duration}}return{ease:e,duration:t}}var ut=new Map;function dt(e){let{stiffness:t=100,damping:n=10,mass:r=1,precision:i=.001}=e??{},a=`${t}:${n}:${r}:${i}`,o=ut.get(a);if(o)return o;let s=Math.sqrt(t/r),c=n/(2*Math.sqrt(t*r)),l=ct(s,c,i),u=Math.min(100,Math.max(32,Math.round(l/15))),d=[];for(let e=0;e<u;e++){let t=e/(u-1)*(l/1e3),n=e===u-1?1:st(t,s,c);d.push(Math.round(n*1e4)/1e4+``)}for(;d.length>2&&d[d.length-2]===`1`;)d.splice(d.length-2,1);let f={easing:`linear(${d.join(`, `)})`,duration:l};return ut.set(a,f),f}function ft(e,t){let n=e.length,r=t.length,i=Array.from({length:n+1},()=>Array(r+1).fill(0));for(let a=n-1;a>=0;a--)for(let n=r-1;n>=0;n--)i[a][n]=e[a]===t[n]?i[a+1][n+1]+1:Math.max(i[a+1][n],i[a][n+1]);let a=[],o=[],s=0,c=0;for(;s<n&&c<r;)e[s]===t[c]?(a.push(s),o.push(c),s++,c++):i[s+1][c]>=i[s][c+1]?s++:c++;return[a,o]}var pt=`\0n`,mt=0;function ht(){return`${pt}${mt++}`}function G(e){return e>=`0`&&e<=`9`}function gt(e){for(let t of e)if(G(t))return!0;return!1}function _t(e){let t=``;for(let n of e)!G(n)&&!vt.includes(n)&&(t+=n);return t}var vt=`.,'\xA0   `,yt=`+-−(#`,bt=`%.,!?:;)"'”’`,xt=/\p{Sc}/u;function St(e,t){return t.includes(e)||xt.test(e)}function Ct(e){let t=0,n=e.length;for(;t<n&&St(e[t],yt);)t++;for(;n>t&&St(e[n-1],bt);)n--;if(t>=n||!G(e[t])||!G(e[n-1]))return!1;for(let r=t;r<n;r++){let t=e[r];if(!G(t)&&!vt.includes(t))return!1}return!0}function wt(e){return G(e)?`digit`:`symbol`}var Tt=new Map;function Et(e){let t=String(e),n=Tt.get(t);if(n)return n;let r=`.`;try{r=new Intl.NumberFormat(e).formatToParts(1.1).find(e=>e.type===`decimal`)?.value??`.`}catch{}return Tt.set(t,r),r}function Dt(e,t,n,r=`.`){let i=e.split(``);if(!t||t.length===0)return Ot(i);let a=t.map(e=>e.string===`\xA0`?` `:e.string),o=n==null?Nt(a,i,r):kt(a,i,n,r),s=new Set;for(let[,e]of o)s.add(t[e].id);let c=[];for(let e=0;e<i.length;e++){let n=i[e],r=wt(n),a=n===` `?`\xA0`:n;if(o.has(e)){let n=o.get(e);c.push({id:t[n].id,string:a,kind:r})}else{let e=ht();for(;s.has(e);)e=ht();s.add(e),c.push({id:e,string:a,kind:r})}}return c}function Ot(e){return e.map(e=>({id:ht(),string:e===` `?`\xA0`:e,kind:wt(e)}))}function kt(e,t,n,r){let i=new Map,a=jt(e,r),o=jt(t,r),s=(e,t)=>i.set(o[e],a[t]),c=0;for(;c<o.length&&o[c]<n;)c++;let l=o.length-a.length;if(l>0){let e=c-l;for(let t=0;t<e&&t<a.length;t++)s(t,t);for(let e=c;e<o.length;e++){let t=e-l;t>=0&&t<a.length&&s(e,t)}}else if(l<0){for(let e=0;e<c&&e<o.length;e++)s(e,e);for(let e=c;e<o.length;e++){let t=e-l;t>=0&&t<a.length&&s(e,t)}}else for(let n=0;n<o.length;n++)t[o[n]]===e[a[n]]&&s(n,n);let u=Mt(e,r),d=Mt(t,r);for(let n=1;n<=u.length&&n<=d.length;n++){let r=u[u.length-n],a=d[d.length-n];e[r]===t[a]&&i.set(a,r)}return i}function At(e,t){return e!==t&&vt.includes(e)}function jt(e,t){let n=[];for(let r=0;r<e.length;r++)At(e[r],t)||n.push(r);return n}function Mt(e,t){let n=[];for(let r=0;r<e.length;r++)At(e[r],t)&&n.push(r);return n}function Nt(e,t,n){let r=new Map,i=0;for(;i<e.length&&i<t.length&&e[i]===t[i]&&!G(e[i]);)r.set(i,i),i++;let a=e.length,o=t.length;for(;a>i&&o>i&&e[a-1]===t[o-1]&&!G(e[a-1]);)r.set(o-1,a-1),a--,o--;let s=Lt(e,i,a,n),c=Lt(t,i,o,n),l=It(e,i,s),u=It(t,i,c);if(l>0&&u>0&&Math.abs(l-u)>=Ft)return r;if(!f(i,s,i,c,!0))for(let e=1;s-e>=i&&c-e>=i;e++)d(s-e,c-e);if(s<a&&c<o){r.set(c,s);for(let e=1;s+e<a&&c+e<o;e++)d(s+e,c+e);f(s+1,a,c+1,o,!1)}function d(n,i){let a=e[n];G(a)||a===t[i]&&r.set(i,n)}function f(n,i,a,o,s){let c=Pt(e,n,i),l=Pt(t,a,o);if(c.length===l.length||!s){let n=Math.min(c.length,l.length);for(let i=0;i<n;i++){let n=c[i],a=l[i];e[n]===t[a]&&r.set(a,n)}return!1}let[u,d]=ft(c.map(t=>e[t]).reverse(),l.map(e=>t[e]).reverse());for(let e=0;e<u.length;e++){let t=c[c.length-1-u[e]],n=l[l.length-1-d[e]];r.set(n,t)}return u.length>0}return r}function Pt(e,t,n){let r=[];for(let i=t;i<n;i++)G(e[i])&&r.push(i);return r}var Ft=3;function It(e,t,n){let r=0;for(let i=t;i<n;i++)G(e[i])&&r++;return r}function Lt(e,t,n,r){for(let i=n-1;i>=t;i--)if(e[i]===r)return i;return n}function Rt(){let e=new Set;return{reserve(t){e.add(t)},has(t){return e.has(t)},take(t){if(!e.has(t))return e.add(t),t;let n=1;for(;e.has(`${t}~${n}`);)n++;let r=`${t}~${n}`;return e.add(r),r}}}function zt(e){let t=[],n=[],r=()=>{n.length!==0&&(t.push({word:n.map(e=>e.string).join(``),segments:n}),n=[])};for(let t of e)t.string===`\xA0`||t.string===`
2
2
  `?r():n.push(t);return r(),t}function Bt(e){let t=[],n=[],r=()=>{if(n.length===0)return;let e=n.map(e=>e.string).join(``);Ct(e)?t.push(...Dt(e)):t.push(...n),n=[]};for(let i of e)i.string===`\xA0`||i.string===`
3
3
  `?(r(),t.push(i)):n.push(i);return r(),t}function Vt(e,t,n=!0){let r=e.includes(`
4
4
  `),i=e.includes(` `)||r,a=Rt();if(r){let r=e.split(`
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,tt as n,yt as r}from"./zyzz.config-Dg1ZU-Ph.js";import{t as i}from"./Stack-ClVHbhR2.js";import{t as a}from"./Check-yu_uhUCh.js";import{t as o}from"./Alert-B7YPFnuz.js";import{t as s}from"./Tooltip-DU7SJF-3.js";import{t as c}from"./Checkbox-B4MVIsk3.js";import{n as l}from"./Grant-DD3fzrZo.js";import{t as u}from"./IconTile-BfvEs6xV.js";import{n as d}from"./StatusChip-DKSWhEtD.js";import{t as f}from"./CodeInput-DRxh5XP1.js";import{n as p}from"./Fingerprint-tnq6MqVN.js";import{t as m}from"./Laptop-Cm3DWcNX.js";import{x as h}from"./index-DHHmdOEu.js";var g=n();function _(e){return(0,g.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,g.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,g.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function v(e){return(0,g.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,g.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,g.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}var y=e(r(),1);function b(e){let n=e.heading??`h1`,r=(0,y.useId)(),[b,C]=(0,y.useState)(!1),E=e.request?.app,D=e.refusal??e.request?.key_authorization?.refusal,O=!!e.request?.country_mismatch,k=!O||b,A=e.status===`denied`?`Denied. The device was not signed in.`:e.request?E?(0,g.jsxs)(g.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant `,(0,g.jsx)(`strong`,{children:E.name}),` `,(0,g.jsxs)(s.Root,{children:[(0,g.jsx)(s.Trigger,{delay:150,render:(0,g.jsx)(p,{className:T.verified?`z_tempo_2d_id-tpVtLR2y z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR2z z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR31 z_tempo_2d_id-tpVtLR32 z_tempo_2d_id-tpVtLR33`:T.verified().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,g.jsx)(s.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,g.jsxs)(g.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant`,` `,(0,g.jsxs)(s.Root,{children:[(0,g.jsx)(s.Trigger,{delay:150,render:(0,g.jsxs)(`span`,{className:T.unverified?`z_tempo_2d_id-tpVtLR2n z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLR2o z_tempo_2d_id-tpVtLR2p z_tempo_2d_id-tpVtLR2q z_tempo_2d_id-tpVtLR2r z_tempo_2d_id-tpVtLR2s z_tempo_2d_id-tpVtLR2t z_tempo_2d_id-tpVtLR2u z_tempo_2d_id-tpVtLR2v z_tempo_2d_id-tpVtLR2w z_tempo_2d_id-3w2jki4`:T.unverified().className,tabIndex:0,children:[(0,g.jsx)(h,{className:T.warning?`z_tempo_2d_id-tpVtLR2y z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR34 z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR1o`:T.warning().className}),`an unverified app`]})}),(0,g.jsx)(s.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,g.jsx)(i,{className:T.column?`z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr`:T.column().className,gap:`32`,children:(0,g.jsxs)(i,{className:T.header?`z_tempo_2d_id-tpVtLR1j`:T.header().className,align:`center`,gap:`8`,render:(0,g.jsx)(`header`,{}),children:[(0,g.jsx)(u,{className:T.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`:T.avatar().className,"aria-hidden":!0,children:(0,g.jsx)(a,{})}),(0,g.jsx)(n,{className:T.title?`z_tempo_2d_id-tpVtLR2h z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m`:T.title().className,children:`Authorization successful`}),(0,g.jsxs)(d,{className:T.success?`z_tempo_2d_id-tpVtLR2c z_tempo_2d_id-tpVtLR2d z_tempo_2d_id-tpVtLR2e z_tempo_2d_id-tpVtLR2f z_tempo_2d_id-tpVtLR2g`:T.success().className,"aria-live":`polite`,gap:`8`,justify:`center`,render:(0,g.jsx)(`p`,{}),role:`status`,children:[(0,g.jsx)(`span`,{className:T.check?`z_tempo_2d_id-tpVtLRh z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLRj z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-3w2jki9 z_tempo_2d_id-tpVtLRn z_tempo_2d_id-tpVtLRo z_tempo_2d_id-tpVtLRp`:T.check().className,children:(0,g.jsx)(a,{})}),`You can close this tab.`]})]})}):(0,g.jsxs)(i,{className:T.column?`z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr`:T.column().className,gap:`32`,children:[(0,g.jsxs)(i,{className:T.header?`z_tempo_2d_id-tpVtLR1j`:T.header().className,align:`center`,gap:`8`,render:(0,g.jsx)(`header`,{}),children:[(0,g.jsx)(u,{className:T.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`:T.avatar().className,intent:!e.request||E?`neutral`:`warning`,children:!e.request||E?(0,g.jsx)(m,{}):(0,g.jsx)(h,{})}),(0,g.jsx)(n,{className:T.title?`z_tempo_2d_id-tpVtLR2h z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m`:T.title().className,children:`Authorize a device`}),(0,g.jsx)(`p`,{className:T.description?`z_tempo_2d_id-tpVtLRy z_tempo_2d_id-tpVtLRz z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13 z_tempo_2d_id-tpVtLR14 z_tempo_2d_id-tpVtLR15 z_tempo_2d_id-tpVtLR16 z_tempo_2d_id-tpVtLR17 z_tempo_2d_id-tpVtLR18 z_tempo_2d_id-tpVtLR19 z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b`:T.description().className,children:A})]}),e.status===`denied`?null:e.request?(0,g.jsxs)(i,{gap:`16`,children:[(0,g.jsx)(f,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4},e.request.user_code),e.request.key_authorization?(0,g.jsx)(l,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,g.jsxs)(`div`,{className:T.challenge?`z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9`:T.challenge().className,role:`note`,children:[(0,g.jsx)(`p`,{className:T.challengeTitle?`z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:T.challengeTitle().className,children:`This sign-in also signs a message`}),(0,g.jsx)(`p`,{className:T.challengeText?`z_tempo_2d_id-nr-Vm71z z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:T.challengeText().className,children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,g.jsx)(`pre`,{className:T.message?`z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-tpVtLR1q z_tempo_2d_id-tpVtLR1r z_tempo_2d_id-tpVtLR1s z_tempo_2d_id-tpVtLR1t z_tempo_2d_id-tpVtLR1u z_tempo_2d_id-tpVtLR1v`:T.message().className,children:e.request.challenge})]}):null,(0,g.jsxs)(`dl`,{className:T.details?`z_tempo_2d_id-tpVtLR1h z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:T.details().className,children:[e.request.device?(0,g.jsxs)(d,{className:T.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:T.row().className,gap:`12`,children:[(0,g.jsx)(`dt`,{children:(0,g.jsx)(m,{className:T.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:T.icon().className,"aria-label":`Device name`,role:`img`})}),(0,g.jsxs)(`dd`,{children:[(0,g.jsx)(`bdi`,{className:T.device?`z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x z_tempo_2d_id-nr-Vm71y`:T.device().className,children:e.request.device.slice(0,64)}),` `,(0,g.jsx)(`span`,{className:T.source?`z_tempo_2d_id-tpVtLR2b`:T.source().className,children:`(as the device reports it)`})]})]}):null,(0,g.jsxs)(d,{className:T.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:T.row().className,gap:`12`,children:[(0,g.jsx)(`dt`,{children:(0,g.jsx)(v,{className:T.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:T.icon().className,"aria-label":`Location`,role:`img`})}),(0,g.jsxs)(`dd`,{children:[`Requested from`,` `,e.request.location??`an unknown location`]})]}),(0,g.jsxs)(d,{className:T.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:T.row().className,gap:`12`,children:[(0,g.jsx)(`dt`,{children:(0,g.jsx)(_,{className:T.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:T.icon().className,"aria-label":`Requested`,role:`img`})}),(0,g.jsxs)(`dd`,{children:[S(e.now/1e3-e.request.created_at),` (`,w.format(e.request.created_at*1e3),` UTC)`]})]})]}),O?(0,g.jsxs)(o,{intent:`negative`,children:[(0,g.jsx)(o.Icon,{}),(0,g.jsx)(o.Content,{children:e.request.country?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(o.Title,{children:`Requested from another country`}),`This code was requested from `,e.request.location,`, not from where you are now. If you did not start it on your own device, deny it.`]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(o.Title,{children:`Requested from an unknown location`}),`The device that requested this code hides its location, such as through Tor. If you did not start it on your own device, deny it.`]})})]}):null,O?(0,g.jsxs)(d,{className:T.confirmation?`z_tempo_2d_id-tpVtLRs z_tempo_2d_id-tpVtLRt z_tempo_2d_id-tpVtLRu z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw z_tempo_2d_id-tpVtLRx`:T.confirmation().className,gap:`12`,render:(0,g.jsx)(`label`,{}),children:[(0,g.jsx)(c,{checked:b,onCheckedChange:C}),`I started this sign-in on my own device`]}):null,(0,g.jsx)(t,{disabled:e.denying||!!D||!k,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,g.jsx)(t,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`tertiary`,children:`Deny`}),e.email?(0,g.jsxs)(`p`,{className:T.note?`z_tempo_2d_id-tpVtLR1w z_tempo_2d_id-tpVtLR1x z_tempo_2d_id-tpVtLR1y z_tempo_2d_id-tpVtLR1z z_tempo_2d_id-tpVtLR20 z_tempo_2d_id-tpVtLR21 z_tempo_2d_id-tpVtLR22 z_tempo_2d_id-tpVtLR23 z_tempo_2d_id-tpVtLR24 z_tempo_2d_id-tpVtLR25 z_tempo_2d_id-tpVtLR26 z_tempo_2d_id-tpVtLR27 z_tempo_2d_id-tpVtLR28`:T.note().className,children:[`Signed in as `,(0,g.jsx)(`strong`,{children:e.email}),`.`]}):null]}):(0,g.jsxs)(i,{gap:`32`,render:(0,g.jsx)(`form`,{onSubmit:e.onSubmitCode}),children:[(0,g.jsx)(f,{"aria-describedby":`${r}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4}),(0,g.jsx)(t,{loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(D?x[D]:void 0);return t?(0,g.jsxs)(o,{id:`${r}-error`,intent:`negative`,children:[(0,g.jsx)(o.Icon,{}),(0,g.jsx)(o.Content,{children:t})]}):null})()]})}var x={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`};function S(e){if(e<60)return`Less than a minute ago`;let t=Math.floor(e/60);return t<60?C.format(-t,`minute`):C.format(-Math.floor(t/60),`hour`)}var C=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),w=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),T;(function(e){e.avatar=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.confirmation=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.note=1,e.row=1,e.source=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(T||={});export{b as t};
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,tt as n,yt as r}from"./zyzz.config-Dg1ZU-Ph.js";import{t as i}from"./Stack-ClVHbhR2.js";import{t as a}from"./Check-yu_uhUCh.js";import{t as o}from"./Alert-B7YPFnuz.js";import{t as s}from"./Tooltip-DU7SJF-3.js";import{t as c}from"./Checkbox-B4MVIsk3.js";import{n as l}from"./Grant-rhsU0ABA.js";import{t as u}from"./IconTile-BfvEs6xV.js";import{n as d}from"./StatusChip-DKSWhEtD.js";import{t as f}from"./CodeInput-DRxh5XP1.js";import{n as p}from"./Fingerprint-tnq6MqVN.js";import{t as m}from"./Laptop-Cm3DWcNX.js";import{x as h}from"./index-DdbcUaHb.js";var g=n();function _(e){return(0,g.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,g.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,g.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function v(e){return(0,g.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,g.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,g.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}var y=e(r(),1);function b(e){let n=e.heading??`h1`,r=(0,y.useId)(),[b,C]=(0,y.useState)(!1),E=e.request?.app,D=e.refusal??e.request?.key_authorization?.refusal,O=!!e.request?.country_mismatch,k=!O||b,A=e.status===`denied`?`Denied. The device was not signed in.`:e.request?E?(0,g.jsxs)(g.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant `,(0,g.jsx)(`strong`,{children:E.name}),` `,(0,g.jsxs)(s.Root,{children:[(0,g.jsx)(s.Trigger,{delay:150,render:(0,g.jsx)(p,{className:T.verified?`z_tempo_2d_id-tpVtLR2y z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR2z z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR31 z_tempo_2d_id-tpVtLR32 z_tempo_2d_id-tpVtLR33`:T.verified().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,g.jsx)(s.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,g.jsxs)(g.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant`,` `,(0,g.jsxs)(s.Root,{children:[(0,g.jsx)(s.Trigger,{delay:150,render:(0,g.jsxs)(`span`,{className:T.unverified?`z_tempo_2d_id-tpVtLR2n z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLR2o z_tempo_2d_id-tpVtLR2p z_tempo_2d_id-tpVtLR2q z_tempo_2d_id-tpVtLR2r z_tempo_2d_id-tpVtLR2s z_tempo_2d_id-tpVtLR2t z_tempo_2d_id-tpVtLR2u z_tempo_2d_id-tpVtLR2v z_tempo_2d_id-tpVtLR2w z_tempo_2d_id-3w2jki4`:T.unverified().className,tabIndex:0,children:[(0,g.jsx)(h,{className:T.warning?`z_tempo_2d_id-tpVtLR2y z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR34 z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR1o`:T.warning().className}),`an unverified app`]})}),(0,g.jsx)(s.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,g.jsx)(i,{className:T.column?`z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr`:T.column().className,gap:`32`,children:(0,g.jsxs)(i,{className:T.header?`z_tempo_2d_id-tpVtLR1j`:T.header().className,align:`center`,gap:`8`,render:(0,g.jsx)(`header`,{}),children:[(0,g.jsx)(u,{className:T.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`:T.avatar().className,"aria-hidden":!0,children:(0,g.jsx)(a,{})}),(0,g.jsx)(n,{className:T.title?`z_tempo_2d_id-tpVtLR2h z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m`:T.title().className,children:`Authorization successful`}),(0,g.jsxs)(d,{className:T.success?`z_tempo_2d_id-tpVtLR2c z_tempo_2d_id-tpVtLR2d z_tempo_2d_id-tpVtLR2e z_tempo_2d_id-tpVtLR2f z_tempo_2d_id-tpVtLR2g`:T.success().className,"aria-live":`polite`,gap:`8`,justify:`center`,render:(0,g.jsx)(`p`,{}),role:`status`,children:[(0,g.jsx)(`span`,{className:T.check?`z_tempo_2d_id-tpVtLRh z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLRj z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-3w2jki9 z_tempo_2d_id-tpVtLRn z_tempo_2d_id-tpVtLRo z_tempo_2d_id-tpVtLRp`:T.check().className,children:(0,g.jsx)(a,{})}),`You can close this tab.`]})]})}):(0,g.jsxs)(i,{className:T.column?`z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr`:T.column().className,gap:`32`,children:[(0,g.jsxs)(i,{className:T.header?`z_tempo_2d_id-tpVtLR1j`:T.header().className,align:`center`,gap:`8`,render:(0,g.jsx)(`header`,{}),children:[(0,g.jsx)(u,{className:T.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`:T.avatar().className,intent:!e.request||E?`neutral`:`warning`,children:!e.request||E?(0,g.jsx)(m,{}):(0,g.jsx)(h,{})}),(0,g.jsx)(n,{className:T.title?`z_tempo_2d_id-tpVtLR2h z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m`:T.title().className,children:`Authorize a device`}),(0,g.jsx)(`p`,{className:T.description?`z_tempo_2d_id-tpVtLRy z_tempo_2d_id-tpVtLRz z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13 z_tempo_2d_id-tpVtLR14 z_tempo_2d_id-tpVtLR15 z_tempo_2d_id-tpVtLR16 z_tempo_2d_id-tpVtLR17 z_tempo_2d_id-tpVtLR18 z_tempo_2d_id-tpVtLR19 z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b`:T.description().className,children:A})]}),e.status===`denied`?null:e.request?(0,g.jsxs)(i,{gap:`16`,children:[(0,g.jsx)(f,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4},e.request.user_code),e.request.key_authorization?(0,g.jsx)(l,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,g.jsxs)(`div`,{className:T.challenge?`z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9`:T.challenge().className,role:`note`,children:[(0,g.jsx)(`p`,{className:T.challengeTitle?`z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:T.challengeTitle().className,children:`This sign-in also signs a message`}),(0,g.jsx)(`p`,{className:T.challengeText?`z_tempo_2d_id-nr-Vm71z z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:T.challengeText().className,children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,g.jsx)(`pre`,{className:T.message?`z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-tpVtLR1q z_tempo_2d_id-tpVtLR1r z_tempo_2d_id-tpVtLR1s z_tempo_2d_id-tpVtLR1t z_tempo_2d_id-tpVtLR1u z_tempo_2d_id-tpVtLR1v`:T.message().className,children:e.request.challenge})]}):null,(0,g.jsxs)(`dl`,{className:T.details?`z_tempo_2d_id-tpVtLR1h z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:T.details().className,children:[e.request.device?(0,g.jsxs)(d,{className:T.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:T.row().className,gap:`12`,children:[(0,g.jsx)(`dt`,{children:(0,g.jsx)(m,{className:T.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:T.icon().className,"aria-label":`Device name`,role:`img`})}),(0,g.jsxs)(`dd`,{children:[(0,g.jsx)(`bdi`,{className:T.device?`z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x z_tempo_2d_id-nr-Vm71y`:T.device().className,children:e.request.device.slice(0,64)}),` `,(0,g.jsx)(`span`,{className:T.source?`z_tempo_2d_id-tpVtLR2b`:T.source().className,children:`(as the device reports it)`})]})]}):null,(0,g.jsxs)(d,{className:T.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:T.row().className,gap:`12`,children:[(0,g.jsx)(`dt`,{children:(0,g.jsx)(v,{className:T.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:T.icon().className,"aria-label":`Location`,role:`img`})}),(0,g.jsxs)(`dd`,{children:[`Requested from`,` `,e.request.location??`an unknown location`]})]}),(0,g.jsxs)(d,{className:T.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:T.row().className,gap:`12`,children:[(0,g.jsx)(`dt`,{children:(0,g.jsx)(_,{className:T.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:T.icon().className,"aria-label":`Requested`,role:`img`})}),(0,g.jsxs)(`dd`,{children:[S(e.now/1e3-e.request.created_at),` (`,w.format(e.request.created_at*1e3),` UTC)`]})]})]}),O?(0,g.jsxs)(o,{intent:`negative`,children:[(0,g.jsx)(o.Icon,{}),(0,g.jsx)(o.Content,{children:e.request.country?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(o.Title,{children:`Requested from another country`}),`This code was requested from `,e.request.location,`, not from where you are now. If you did not start it on your own device, deny it.`]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(o.Title,{children:`Requested from an unknown location`}),`The device that requested this code hides its location, such as through Tor. If you did not start it on your own device, deny it.`]})})]}):null,O?(0,g.jsxs)(d,{className:T.confirmation?`z_tempo_2d_id-tpVtLRs z_tempo_2d_id-tpVtLRt z_tempo_2d_id-tpVtLRu z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw z_tempo_2d_id-tpVtLRx`:T.confirmation().className,gap:`12`,render:(0,g.jsx)(`label`,{}),children:[(0,g.jsx)(c,{checked:b,onCheckedChange:C}),`I started this sign-in on my own device`]}):null,(0,g.jsx)(t,{disabled:e.denying||!!D||!k,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,g.jsx)(t,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`tertiary`,children:`Deny`}),e.email?(0,g.jsxs)(`p`,{className:T.note?`z_tempo_2d_id-tpVtLR1w z_tempo_2d_id-tpVtLR1x z_tempo_2d_id-tpVtLR1y z_tempo_2d_id-tpVtLR1z z_tempo_2d_id-tpVtLR20 z_tempo_2d_id-tpVtLR21 z_tempo_2d_id-tpVtLR22 z_tempo_2d_id-tpVtLR23 z_tempo_2d_id-tpVtLR24 z_tempo_2d_id-tpVtLR25 z_tempo_2d_id-tpVtLR26 z_tempo_2d_id-tpVtLR27 z_tempo_2d_id-tpVtLR28`:T.note().className,children:[`Signed in as `,(0,g.jsx)(`strong`,{children:e.email}),`.`]}):null]}):(0,g.jsxs)(i,{gap:`32`,render:(0,g.jsx)(`form`,{onSubmit:e.onSubmitCode}),children:[(0,g.jsx)(f,{"aria-describedby":`${r}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4}),(0,g.jsx)(t,{loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(D?x[D]:void 0);return t?(0,g.jsxs)(o,{id:`${r}-error`,intent:`negative`,children:[(0,g.jsx)(o.Icon,{}),(0,g.jsx)(o.Content,{children:t})]}):null})()]})}var x={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`};function S(e){if(e<60)return`Less than a minute ago`;let t=Math.floor(e/60);return t<60?C.format(-t,`minute`):C.format(-Math.floor(t/60),`hour`)}var C=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),w=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),T;(function(e){e.avatar=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.confirmation=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.note=1,e.row=1,e.source=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(T||={});export{b as t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{F as t,Y as n,d as r,tt as i,yt as a}from"./zyzz.config-Dg1ZU-Ph.js";import{Pt as o,gt as s}from"./FloatingPortalLite-Bk_cHbee.js";import{t as c}from"./Stack-ClVHbhR2.js";import{$ as l,z as u}from"./useValueChanged-oW36OdF9.js";import{t as d}from"./Alert-B7YPFnuz.js";import{t as f}from"./Tooltip-DU7SJF-3.js";import{c as p,d as m,i as h,n as g,o as ee,s as te,t as ne,u as _}from"./PopoverPopup-C1y_hx2Z.js";import{n as v,t as y}from"./StatusChip-DKSWhEtD.js";import{b,y as x}from"./index-DHHmdOEu.js";var S=e(a(),1),re=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=m().useState(`open`),{arrowRef:c,side:l,align:d,arrowUncentered:f,arrowStyles:p}=ee();return t(`div`,e,{state:{open:s,side:l,align:d,uncentered:f},ref:[n,c],props:[{style:p,"aria-hidden":!0},o],stateAttributesMapping:u})}),ie=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=m(),c=l(o.id);return s.useSyncedValueWithCleanup(`titleElementId`,c),t(`h2`,e,{ref:n,props:[{id:c},o]})}),ae=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=m(),c=l(o.id);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),t(`p`,e,{ref:n,props:[{id:c},o]})}),oe=S.forwardRef(function(e,n){let{render:i,className:a,style:c,disabled:l=!1,nativeButton:u=!0,...d}=e,{buttonRef:f,getButtonProps:p}=r({disabled:l,focusableWhenDisabled:!1,native:u}),h=m();return g(),t(`button`,e,{ref:[n,f],props:[{onClick(e){h.setOpen(!1,o(s,e.nativeEvent))}},d,p]})}),C=i(),w;(function(e){e.Close=oe,e.Root=_,e.Trigger=p;function t(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(re,{...r,...T.arrow({className:t,style:e.style,vars:n}),children:(0,C.jsx)(`svg`,{"aria-hidden":`true`,fill:`currentColor`,height:`10`,viewBox:`0 0 20 10`,width:`20`,children:(0,C.jsx)(`path`,{d:`M0 10C4 10 7 7 8.6 4.6a2 2 0 0 1 2.8 0C13 7 16 10 20 10Z`})})})}e.Arrow=t;function n(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(ae,{...r,...T.description({className:t,style:e.style,vars:n})})}e.Description=n;function r(e){let{align:t,alignOffset:n,anchor:r,className:i,collisionPadding:a,side:o,sideOffset:s=8,vars:c,...l}=e;return(0,C.jsx)(te,{children:(0,C.jsx)(h,{...T.positioner(),align:t,alignOffset:n,anchor:r,collisionPadding:a,side:o,sideOffset:s,children:(0,C.jsx)(ne,{...l,...T.popup({className:i,style:e.style,vars:c})})})})}e.Popup=r;function i(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(ie,{...r,...T.title({className:t,style:e.style,vars:n})})}e.Title=i})(w||={});var T;(function(e){e.arrow=n({className:`z_tds_2f_web-WYxykg0 z_tds_2f_web-WYxykg1 z_tds_2f_web-WYxykg2 z_tds_2f_web-WYxykg3 z_tds_2f_web-WYxykg4 z_tds_2f_web-WYxykg5 z_tds_2f_web-WYxykg6 z_tds_2f_web-WYxykg7 z_tds_2f_web-WYxykg8`}),e.description=n({className:`z_tds_2f_web-WYxykg9 z_tds_2f_web-WYxykga z_tds_2f_web-WYxykgb z_tds_2f_web-WYxykgc z_tds_2f_web-WYxykgd z_tds_2f_web-WYxykge z_tds_2f_web-WYxykgf`}),e.popup=n({className:`z_tds_2f_web-WYxykgg z_tds_2f_web-WYxykgh z_tds_2f_web-WYxykgi z_tds_2f_web-WYxykgj z_tds_2f_web-WYxykgk z_tds_2f_web-WYxykgl z_tds_2f_web-WYxykgm z_tds_2f_web-WYxykgn z_tds_2f_web-WYxykgo z_tds_2f_web-WYxykgp z_tds_2f_web-WYxykgq z_tds_2f_web-WYxykgr z_tds_2f_web-WYxykgb z_tds_2f_web-WYxykgc z_tds_2f_web-WYxykgd z_tds_2f_web-WYxykge z_tds_2f_web-WYxykgf z_tds_2f_web-WYxykgs z_tds_2f_web-WYxykgt z_tds_2f_web-WYxykgu z_tds_2f_web-WYxykgv z_tds_2f_web-WYxykgw z_tds_2f_web-WYxykgx z_tds_2f_web-WYxykgy z_tds_2f_web-WYxykgz`}),e.positioner=n({className:`z_tds_2f_web-WYxykg10`}),e.title=n({className:`z_tds_2f_web-WYxykg11 z_tds_2f_web-WYxykg12 z_tds_2f_web-WYxykg13 z_tds_2f_web-WYxykg14 z_tds_2f_web-WYxykg15 z_tds_2f_web-WYxykg16 z_tds_2f_web-WYxykg17`})})(T||={});function E(e){return(0,C.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,C.jsx)(`path`,{d:`M9.64648 5.64648C9.84175 5.45122 10.1583 5.45122 10.3535 5.64648C10.5487 5.84175 10.5488 6.15827 10.3535 6.35352L8.70703 8L10.3535 9.64648C10.5487 9.84175 10.5488 10.1583 10.3535 10.3535C10.1583 10.5488 9.84175 10.5487 9.64648 10.3535L8 8.70703L6.35352 10.3535C6.15827 10.5488 5.84175 10.5487 5.64648 10.3535C5.45122 10.1583 5.45122 9.84175 5.64648 9.64648L7.29297 8L5.64648 6.35352C5.45122 6.15825 5.45122 5.84175 5.64648 5.64648C5.84175 5.45122 6.15825 5.45122 6.35352 5.64648L8 7.29297L9.64648 5.64648Z`,fill:`currentColor`}),(0,C.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 1.33301C11.6817 1.33318 14.666 4.31919 14.666 8.00098C14.6656 11.6824 11.6815 14.6668 8 14.667C4.31837 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.3181 1.33301 8 1.33301ZM8 2.33398C4.87039 2.33398 2.33301 4.87137 2.33301 8.00098C2.33345 11.1302 4.87066 13.667 8 13.667C11.1292 13.6668 13.6656 11.1301 13.666 8.00098C13.666 4.87147 11.1294 2.33416 8 2.33398Z`,fill:`currentColor`})]})}var D=`/assets/BRLA-CZvVDNYr.png`,O=`/assets/BRZ-Cn3jEi9t.svg`,k=`/assets/CHFAU-DCedc4aH.png`,A=`/assets/DLUSD-BnRXm3EI.png`,j=`/assets/EURAU-sjieTTB9.svg`,M=`/assets/EURC.e-CxYiiwkz.svg`,N=`/assets/GBPA-DI_25xSG.svg`,P=`/assets/GUSD-BDEP2Qb-.svg`,F=`/assets/MACH-sK0r79kQ.svg`,I=`/assets/OUSD-BFXgVo-Z.svg`,L=`/assets/PRIME-CiFp2-3e.svg`,R=`/assets/SBC-BTYkbkiD.svg`,z=`/assets/SEKAU-CB5Fc6o8.svg`,B=`/assets/USD1-COVcO_PB.svg`,V=`/assets/USDB-Ckwb6UQw.svg`,H=`/assets/USDC.e-3nMsKAMC.svg`,U=`/assets/USDT0-ia60Dw0e.svg`,W=`/assets/USDY-CB4iet2q.svg`,G=`/assets/USDe-BXHQCd92.svg`,K=`/assets/YLDS-CRh8Zw0g.svg`,se=`/assets/alphaUSD-CpCFoVuh.svg`,ce=`/assets/betaUSD-9A8AjgYg.svg`,le=`/assets/cUSD-WsQfa-iC.svg`,ue=`/assets/cbBTC-DvUDqrDi.svg`,de=`/assets/frxUSD-n9pTpinR.svg`,fe=`/assets/goUSD-D9kUvHsF.svg`,pe=`/assets/iUSD-CWCJAq9X.svg`,me=`/assets/pathUSD-BvaO6ooS.svg`,he=`/assets/rUSD-B-xuFS7T.svg`,ge=`/assets/reUSD-CkIUs0Lx.svg`,_e=`/assets/sUSDe-j9GOnH7I.svg`,ve=`/assets/siUSD-C10QUNYS.svg`,ye=`/assets/stcUSD-DIntDJeh.svg`,be=`/assets/syrupUSDC-DhYwZqdM.svg`,xe=`/assets/thetaUSD-Dgmksf6G.svg`,Se=`/assets/wYLDS-CaCKDrO-.svg`,Ce=`/assets/wsrUSD-B2Ey0bDQ.svg`,we=`/assets/OUSD.dark-BbbjMvA1.svg`,Te=`/assets/OUSD.light-B_zpSz_c.svg`,Ee=Object.fromEntries(Object.entries(Object.assign({"./icons/BRLA.png":D,"./icons/BRZ.svg":O,"./icons/CHFAU.png":k,"./icons/DLUSD.png":A,"./icons/EURAU.svg":j,"./icons/EURC.e.svg":M,"./icons/GBPA.svg":N,"./icons/GUSD.svg":P,"./icons/MACH.svg":F,"./icons/OUSD.svg":I,"./icons/PRIME.svg":L,"./icons/SBC.svg":R,"./icons/SEKAU.svg":z,"./icons/USD1.svg":B,"./icons/USDB.svg":V,"./icons/USDC.e.svg":H,"./icons/USDT0.svg":U,"./icons/USDY.svg":W,"./icons/USDe.svg":G,"./icons/YLDS.svg":K,"./icons/alphaUSD.svg":se,"./icons/betaUSD.svg":ce,"./icons/cUSD.svg":le,"./icons/cbBTC.svg":ue,"./icons/frxUSD.svg":de,"./icons/goUSD.svg":fe,"./icons/iUSD.svg":pe,"./icons/pathUSD.svg":me,"./icons/rUSD.svg":he,"./icons/reUSD.svg":ge,"./icons/sUSDe.svg":_e,"./icons/siUSD.svg":ve,"./icons/stcUSD.svg":ye,"./icons/syrupUSDC.svg":be,"./icons/thetaUSD.svg":xe,"./icons/wYLDS.svg":Se,"./icons/wsrUSD.svg":Ce})).map(([e,t])=>[e.slice(8,e.lastIndexOf(`.`)),t])),q=Object.entries(Object.assign({"./logos/OUSD.dark.svg":we,"./logos/OUSD.light.svg":Te})).reduce((e,[t,n])=>{let[,r,i]=t.match(/^\.\/logos\/(.+)\.(light|dark)\.\w+$/);return e[r]={...e[r],[i]:n},e},{});function J(e){let{calls:t,limits:n}=e.keyAuthorization,r=(()=>{let e=t.some(e=>e.call===`open`),n=t.some(e=>e.call===`topUp`);if(e)return`Hold funds for services`;if(n)return`Add to funds it holds for services`})();return(0,C.jsxs)(c,{className:$.list?`z_tempo_2d_id-nr-Vm7x z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7y z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-nr-Vm710 z_tempo_2d_id-nr-Vm711 z_tempo_2d_id-nr-Vm712 z_tempo_2d_id-nr-Vm713`:$.list().className,"aria-labelledby":e[`aria-labelledby`],gap:`8`,render:(0,C.jsx)(`ul`,{}),children:[(0,C.jsxs)(v,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(b,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsx)(`span`,{children:`View your balance and activity`})]}),n.map(e=>(0,C.jsxs)(v,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(b,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsxs)(`span`,{children:[`Spend`,` `,e.period?`${Q(e)} ${ke(e.period)}`:Q(e)]}),(0,C.jsx)(`span`,{className:$.icons?`z_tempo_2d_id-nr-Vm7j z_tempo_2d_id-nr-Vm7k z_tempo_2d_id-nr-Vm7l z_tempo_2d_id-nr-Vm7m z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7o`:$.icons().className,children:e.tokens.map(t=>{let n=`${t.symbol}: ${Q({amount:t.amount,currency:e.currency})}`,r=q[t.symbol],i=r?.light??Ee[t.symbol];return(0,C.jsxs)(f.Root,{children:[(0,C.jsx)(f.Trigger,{delay:150,render:(0,C.jsx)(`span`,{className:$.token?`z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm71l z_tempo_2d_id-nr-Vm71m z_tempo_2d_id-nr-Vm71n z_tempo_2d_id-nr-Vm71o z_tempo_2d_id-nr-Vm71p z_tempo_2d_id-nr-Vm71q z_tempo_2d_id-nr-Vm71r`:$.token().className,tabIndex:0,children:i?(0,C.jsxs)(`picture`,{children:[r?.dark?(0,C.jsx)(`source`,{media:`(prefers-color-scheme: dark)`,srcSet:r.dark}):null,(0,C.jsx)(`img`,{className:$.icon?`z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-nr-Vm7i`:$.icon().className,alt:n,height:20,src:i,width:20})]}):(0,C.jsx)(`span`,{className:$.placeholder?`z_tempo_2d_id-nr-Vm715 z_tempo_2d_id-nr-Vm716 z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm717 z_tempo_2d_id-nr-Vm7j z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-nr-Vm718 z_tempo_2d_id-nr-Vm719 z_tempo_2d_id-nr-Vm71a z_tempo_2d_id-nr-Vm71b z_tempo_2d_id-nr-Vm71c z_tempo_2d_id-nr-Vm71d z_tempo_2d_id-nr-Vm7i`:$.placeholder().className,"aria-label":n,role:`img`,children:t.symbol[0]})})}),(0,C.jsx)(f.Popup,{children:n})]},t.symbol)})})]},`${e.currency}:${e.period??0}`)),r?(0,C.jsxs)(v,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(b,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsxs)(`span`,{children:[r.slice(0,r.lastIndexOf(` `)+1),(0,C.jsxs)(`span`,{className:$.nowrap?`z_tempo_2d_id-nr-Vm714`:$.nowrap().className,children:[r.slice(r.lastIndexOf(` `)+1),` `,(0,C.jsxs)(w.Root,{children:[(0,C.jsx)(w.Trigger,{"aria-label":`About funds for services`,nativeButton:!1,openOnHover:!0,render:(0,C.jsx)(x,{className:$.info?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v z_tempo_2d_id-nr-Vm7w`:$.info().className,tabIndex:0})}),(0,C.jsx)(w.Popup,{className:$.popup?`z_tempo_2d_id-nr-Vm71e`:$.popup().className,"aria-label":`Funds for services`,children:(0,C.jsxs)(w.Description,{children:[`Set aside for pay-as-you-go services that use`,` `,(0,C.jsx)(`a`,{className:$.popupLink?`z_tempo_2d_id-nr-Vm71f`:$.popupLink().className,href:`https://mpp.dev`,rel:`noreferrer`,target:`_blank`,children:`MPP`}),`. They take only what you use, and you get the rest back.`]})})]})]})]})]}):null,e.children]})}function De(e){let t=(0,S.useId)(),n=(0,S.useId)(),r=(0,S.useId)(),[i,a]=(0,S.useState)(!1),{expiry:o,unrecognized:s}=e.keyAuthorization,l=e.heading??`h2`;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(c,{className:$.section?`z_tempo_2d_id-nr-Vm71g z_tempo_2d_id-nr-Vm71h z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm71i z_tempo_2d_id-nr-Vm71j`:$.section().className,"aria-labelledby":t,gap:`24`,render:(0,C.jsx)(`section`,{}),children:[e.chain?(0,C.jsx)(y,{className:$.chain?`z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76`:$.chain().className,"aria-label":`Chain: ${e.chain}`,network:!0,size:`small`,children:e.chain}):null,(0,C.jsxs)(c,{gap:`12`,children:[(0,C.jsx)(l,{className:$.heading?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d`:$.heading().className,id:t,children:`This app will be able to:`}),(0,C.jsx)(J,{"aria-labelledby":t,keyAuthorization:e.keyAuthorization})]}),(0,C.jsxs)(c,{gap:`12`,children:[(0,C.jsx)(l,{className:$.heading?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d`:$.heading().className,id:n,children:`This app won’t be able to:`}),(0,C.jsx)(c,{className:$.list?`z_tempo_2d_id-nr-Vm7x z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7y z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-nr-Vm710 z_tempo_2d_id-nr-Vm711 z_tempo_2d_id-nr-Vm712 z_tempo_2d_id-nr-Vm713`:$.list().className,"aria-labelledby":n,gap:`8`,render:(0,C.jsx)(`ul`,{}),children:(0,C.jsxs)(v,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(E,{className:$.denied?`z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.denied().className}),(0,C.jsx)(`span`,{children:`Spend more than you approve`})]})})]}),(0,C.jsx)(c,{className:$.details?`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d`:$.details().className,gap:`8`,render:(0,C.jsx)(`dl`,{}),children:(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`dt`,{className:$.term?`z_tempo_2d_id-nr-Vm717 z_tempo_2d_id-nr-Vm71k`:$.term().className,children:`Expires`}),` `,(0,C.jsxs)(`dd`,{className:$.value?`z_tempo_2d_id-nr-Vm71k z_tempo_2d_id-nr-Vm71s z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x z_tempo_2d_id-nr-Vm71y`:$.value().className,children:[Ae(o),` `,(0,C.jsxs)(f.Root,{children:[(0,C.jsx)(f.Trigger,{delay:150,render:(0,C.jsx)(x,{className:$.info?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v z_tempo_2d_id-nr-Vm7w`:$.info().className,"aria-label":`Expiry date`,role:`img`,tabIndex:0})}),(0,C.jsx)(f.Popup,{children:new Date(o*1e3).toLocaleString(void 0,{day:`numeric`,hour:`numeric`,minute:`2-digit`,month:`short`,timeZoneName:`short`,year:`numeric`})})]})]})]})})]}),s.length?(0,C.jsxs)(d,{intent:`warning`,role:`note`,children:[(0,C.jsx)(d.Icon,{}),(0,C.jsx)(d.Content,{children:(0,C.jsxs)(c,{gap:`8`,children:[(0,C.jsx)(`p`,{className:$.warningTitle?`z_tempo_2d_id-nr-Vm720 z_tempo_2d_id-nr-Vm721 z_tempo_2d_id-nr-Vm722 z_tempo_2d_id-nr-Vm723 z_tempo_2d_id-nr-Vm724`:$.warningTitle().className,children:`This app can take other actions`}),i?(0,C.jsx)(c,{gap:`8`,id:r,children:(0,C.jsx)(`p`,{className:$.warningText?`z_tempo_2d_id-nr-Vm71z`:$.warningText().className,children:`Tempo ID can’t tell you what these actions do. Approve only if you trust this app.`})}):null]})}),(0,C.jsx)(d.Action,{"aria-controls":r,"aria-expanded":i,onClick:()=>a(e=>!e),children:i?`Hide`:`Show`})]}):null]})}var Y,X,Z=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],Oe=[[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function ke(e){let[t,n]=Oe.find(t=>e%t[1]===0),r=e/n;return r===1?`per ${t}`:`every ${r} ${t}s`}function Q(e){let t=e.amount;try{return new Intl.NumberFormat(`en-US`,{currency:e.currency,maximumFractionDigits:6,style:`currency`,trailingZeroDisplay:`stripIfInteger`}).format(t)}catch{return Y??=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:20}),`${Y.format(t)} ${e.currency}`}}function Ae(e){let t=e-Date.now()/1e3,[n,r]=Z.find(e=>t+60>=e[1])??Z.at(-1);return X??=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),X.format(Math.max(1,Math.round(t/r)),n)}var $;(function(e){e.allowed=1,e.chain=1,e.denied=1,e.details=1,e.heading=1,e.icon=1,e.icons=1,e.info=1,e.list=1,e.nowrap=1,e.placeholder=1,e.popup=1,e.popupLink=1,e.section=1,e.term=1,e.token=1,e.value=1,e.warningText=1,e.warningTitle=1})($||={});export{De as n,w as r,J as t};
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{F as t,Y as n,d as r,tt as i,yt as a}from"./zyzz.config-Dg1ZU-Ph.js";import{Pt as o,gt as s}from"./FloatingPortalLite-Bk_cHbee.js";import{t as c}from"./Stack-ClVHbhR2.js";import{$ as l,z as u}from"./useValueChanged-oW36OdF9.js";import{t as d}from"./Alert-B7YPFnuz.js";import{t as f}from"./Tooltip-DU7SJF-3.js";import{c as p,d as m,i as h,n as g,o as ee,s as te,t as ne,u as _}from"./PopoverPopup-C1y_hx2Z.js";import{n as v,t as y}from"./StatusChip-DKSWhEtD.js";import{b,y as x}from"./index-DdbcUaHb.js";var S=e(a(),1),re=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=m().useState(`open`),{arrowRef:c,side:l,align:d,arrowUncentered:f,arrowStyles:p}=ee();return t(`div`,e,{state:{open:s,side:l,align:d,uncentered:f},ref:[n,c],props:[{style:p,"aria-hidden":!0},o],stateAttributesMapping:u})}),ie=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=m(),c=l(o.id);return s.useSyncedValueWithCleanup(`titleElementId`,c),t(`h2`,e,{ref:n,props:[{id:c},o]})}),ae=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=m(),c=l(o.id);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),t(`p`,e,{ref:n,props:[{id:c},o]})}),oe=S.forwardRef(function(e,n){let{render:i,className:a,style:c,disabled:l=!1,nativeButton:u=!0,...d}=e,{buttonRef:f,getButtonProps:p}=r({disabled:l,focusableWhenDisabled:!1,native:u}),h=m();return g(),t(`button`,e,{ref:[n,f],props:[{onClick(e){h.setOpen(!1,o(s,e.nativeEvent))}},d,p]})}),C=i(),w;(function(e){e.Close=oe,e.Root=_,e.Trigger=p;function t(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(re,{...r,...T.arrow({className:t,style:e.style,vars:n}),children:(0,C.jsx)(`svg`,{"aria-hidden":`true`,fill:`currentColor`,height:`10`,viewBox:`0 0 20 10`,width:`20`,children:(0,C.jsx)(`path`,{d:`M0 10C4 10 7 7 8.6 4.6a2 2 0 0 1 2.8 0C13 7 16 10 20 10Z`})})})}e.Arrow=t;function n(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(ae,{...r,...T.description({className:t,style:e.style,vars:n})})}e.Description=n;function r(e){let{align:t,alignOffset:n,anchor:r,className:i,collisionPadding:a,side:o,sideOffset:s=8,vars:c,...l}=e;return(0,C.jsx)(te,{children:(0,C.jsx)(h,{...T.positioner(),align:t,alignOffset:n,anchor:r,collisionPadding:a,side:o,sideOffset:s,children:(0,C.jsx)(ne,{...l,...T.popup({className:i,style:e.style,vars:c})})})})}e.Popup=r;function i(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(ie,{...r,...T.title({className:t,style:e.style,vars:n})})}e.Title=i})(w||={});var T;(function(e){e.arrow=n({className:`z_tds_2f_web-WYxykg0 z_tds_2f_web-WYxykg1 z_tds_2f_web-WYxykg2 z_tds_2f_web-WYxykg3 z_tds_2f_web-WYxykg4 z_tds_2f_web-WYxykg5 z_tds_2f_web-WYxykg6 z_tds_2f_web-WYxykg7 z_tds_2f_web-WYxykg8`}),e.description=n({className:`z_tds_2f_web-WYxykg9 z_tds_2f_web-WYxykga z_tds_2f_web-WYxykgb z_tds_2f_web-WYxykgc z_tds_2f_web-WYxykgd z_tds_2f_web-WYxykge z_tds_2f_web-WYxykgf`}),e.popup=n({className:`z_tds_2f_web-WYxykgg z_tds_2f_web-WYxykgh z_tds_2f_web-WYxykgi z_tds_2f_web-WYxykgj z_tds_2f_web-WYxykgk z_tds_2f_web-WYxykgl z_tds_2f_web-WYxykgm z_tds_2f_web-WYxykgn z_tds_2f_web-WYxykgo z_tds_2f_web-WYxykgp z_tds_2f_web-WYxykgq z_tds_2f_web-WYxykgr z_tds_2f_web-WYxykgb z_tds_2f_web-WYxykgc z_tds_2f_web-WYxykgd z_tds_2f_web-WYxykge z_tds_2f_web-WYxykgf z_tds_2f_web-WYxykgs z_tds_2f_web-WYxykgt z_tds_2f_web-WYxykgu z_tds_2f_web-WYxykgv z_tds_2f_web-WYxykgw z_tds_2f_web-WYxykgx z_tds_2f_web-WYxykgy z_tds_2f_web-WYxykgz`}),e.positioner=n({className:`z_tds_2f_web-WYxykg10`}),e.title=n({className:`z_tds_2f_web-WYxykg11 z_tds_2f_web-WYxykg12 z_tds_2f_web-WYxykg13 z_tds_2f_web-WYxykg14 z_tds_2f_web-WYxykg15 z_tds_2f_web-WYxykg16 z_tds_2f_web-WYxykg17`})})(T||={});function E(e){return(0,C.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,C.jsx)(`path`,{d:`M9.64648 5.64648C9.84175 5.45122 10.1583 5.45122 10.3535 5.64648C10.5487 5.84175 10.5488 6.15827 10.3535 6.35352L8.70703 8L10.3535 9.64648C10.5487 9.84175 10.5488 10.1583 10.3535 10.3535C10.1583 10.5488 9.84175 10.5487 9.64648 10.3535L8 8.70703L6.35352 10.3535C6.15827 10.5488 5.84175 10.5487 5.64648 10.3535C5.45122 10.1583 5.45122 9.84175 5.64648 9.64648L7.29297 8L5.64648 6.35352C5.45122 6.15825 5.45122 5.84175 5.64648 5.64648C5.84175 5.45122 6.15825 5.45122 6.35352 5.64648L8 7.29297L9.64648 5.64648Z`,fill:`currentColor`}),(0,C.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 1.33301C11.6817 1.33318 14.666 4.31919 14.666 8.00098C14.6656 11.6824 11.6815 14.6668 8 14.667C4.31837 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.3181 1.33301 8 1.33301ZM8 2.33398C4.87039 2.33398 2.33301 4.87137 2.33301 8.00098C2.33345 11.1302 4.87066 13.667 8 13.667C11.1292 13.6668 13.6656 11.1301 13.666 8.00098C13.666 4.87147 11.1294 2.33416 8 2.33398Z`,fill:`currentColor`})]})}var D=`/assets/BRLA-CZvVDNYr.png`,O=`/assets/BRZ-Cn3jEi9t.svg`,k=`/assets/CHFAU-DCedc4aH.png`,A=`/assets/DLUSD-BnRXm3EI.png`,j=`/assets/EURAU-sjieTTB9.svg`,M=`/assets/EURC.e-CxYiiwkz.svg`,N=`/assets/GBPA-DI_25xSG.svg`,P=`/assets/GUSD-BDEP2Qb-.svg`,F=`/assets/MACH-sK0r79kQ.svg`,I=`/assets/OUSD-BFXgVo-Z.svg`,L=`/assets/PRIME-CiFp2-3e.svg`,R=`/assets/SBC-BTYkbkiD.svg`,z=`/assets/SEKAU-CB5Fc6o8.svg`,B=`/assets/USD1-COVcO_PB.svg`,V=`/assets/USDB-Ckwb6UQw.svg`,H=`/assets/USDC.e-3nMsKAMC.svg`,U=`/assets/USDT0-ia60Dw0e.svg`,W=`/assets/USDY-CB4iet2q.svg`,G=`/assets/USDe-BXHQCd92.svg`,K=`/assets/YLDS-CRh8Zw0g.svg`,se=`/assets/alphaUSD-CpCFoVuh.svg`,ce=`/assets/betaUSD-9A8AjgYg.svg`,le=`/assets/cUSD-WsQfa-iC.svg`,ue=`/assets/cbBTC-DvUDqrDi.svg`,de=`/assets/frxUSD-n9pTpinR.svg`,fe=`/assets/goUSD-D9kUvHsF.svg`,pe=`/assets/iUSD-CWCJAq9X.svg`,me=`/assets/pathUSD-BvaO6ooS.svg`,he=`/assets/rUSD-B-xuFS7T.svg`,ge=`/assets/reUSD-CkIUs0Lx.svg`,_e=`/assets/sUSDe-j9GOnH7I.svg`,ve=`/assets/siUSD-C10QUNYS.svg`,ye=`/assets/stcUSD-DIntDJeh.svg`,be=`/assets/syrupUSDC-DhYwZqdM.svg`,xe=`/assets/thetaUSD-Dgmksf6G.svg`,Se=`/assets/wYLDS-CaCKDrO-.svg`,Ce=`/assets/wsrUSD-B2Ey0bDQ.svg`,we=`/assets/OUSD.dark-BbbjMvA1.svg`,Te=`/assets/OUSD.light-B_zpSz_c.svg`,Ee=Object.fromEntries(Object.entries(Object.assign({"./icons/BRLA.png":D,"./icons/BRZ.svg":O,"./icons/CHFAU.png":k,"./icons/DLUSD.png":A,"./icons/EURAU.svg":j,"./icons/EURC.e.svg":M,"./icons/GBPA.svg":N,"./icons/GUSD.svg":P,"./icons/MACH.svg":F,"./icons/OUSD.svg":I,"./icons/PRIME.svg":L,"./icons/SBC.svg":R,"./icons/SEKAU.svg":z,"./icons/USD1.svg":B,"./icons/USDB.svg":V,"./icons/USDC.e.svg":H,"./icons/USDT0.svg":U,"./icons/USDY.svg":W,"./icons/USDe.svg":G,"./icons/YLDS.svg":K,"./icons/alphaUSD.svg":se,"./icons/betaUSD.svg":ce,"./icons/cUSD.svg":le,"./icons/cbBTC.svg":ue,"./icons/frxUSD.svg":de,"./icons/goUSD.svg":fe,"./icons/iUSD.svg":pe,"./icons/pathUSD.svg":me,"./icons/rUSD.svg":he,"./icons/reUSD.svg":ge,"./icons/sUSDe.svg":_e,"./icons/siUSD.svg":ve,"./icons/stcUSD.svg":ye,"./icons/syrupUSDC.svg":be,"./icons/thetaUSD.svg":xe,"./icons/wYLDS.svg":Se,"./icons/wsrUSD.svg":Ce})).map(([e,t])=>[e.slice(8,e.lastIndexOf(`.`)),t])),q=Object.entries(Object.assign({"./logos/OUSD.dark.svg":we,"./logos/OUSD.light.svg":Te})).reduce((e,[t,n])=>{let[,r,i]=t.match(/^\.\/logos\/(.+)\.(light|dark)\.\w+$/);return e[r]={...e[r],[i]:n},e},{});function J(e){let{calls:t,limits:n}=e.keyAuthorization,r=(()=>{let e=t.some(e=>e.call===`open`),n=t.some(e=>e.call===`topUp`);if(e)return`Hold funds for services`;if(n)return`Add to funds it holds for services`})();return(0,C.jsxs)(c,{className:$.list?`z_tempo_2d_id-nr-Vm7x z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7y z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-nr-Vm710 z_tempo_2d_id-nr-Vm711 z_tempo_2d_id-nr-Vm712 z_tempo_2d_id-nr-Vm713`:$.list().className,"aria-labelledby":e[`aria-labelledby`],gap:`8`,render:(0,C.jsx)(`ul`,{}),children:[(0,C.jsxs)(v,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(b,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsx)(`span`,{children:`View your balance and activity`})]}),n.map(e=>(0,C.jsxs)(v,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(b,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsxs)(`span`,{children:[`Spend`,` `,e.period?`${Q(e)} ${ke(e.period)}`:Q(e)]}),(0,C.jsx)(`span`,{className:$.icons?`z_tempo_2d_id-nr-Vm7j z_tempo_2d_id-nr-Vm7k z_tempo_2d_id-nr-Vm7l z_tempo_2d_id-nr-Vm7m z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7o`:$.icons().className,children:e.tokens.map(t=>{let n=`${t.symbol}: ${Q({amount:t.amount,currency:e.currency})}`,r=q[t.symbol],i=r?.light??Ee[t.symbol];return(0,C.jsxs)(f.Root,{children:[(0,C.jsx)(f.Trigger,{delay:150,render:(0,C.jsx)(`span`,{className:$.token?`z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm71l z_tempo_2d_id-nr-Vm71m z_tempo_2d_id-nr-Vm71n z_tempo_2d_id-nr-Vm71o z_tempo_2d_id-nr-Vm71p z_tempo_2d_id-nr-Vm71q z_tempo_2d_id-nr-Vm71r`:$.token().className,tabIndex:0,children:i?(0,C.jsxs)(`picture`,{children:[r?.dark?(0,C.jsx)(`source`,{media:`(prefers-color-scheme: dark)`,srcSet:r.dark}):null,(0,C.jsx)(`img`,{className:$.icon?`z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-nr-Vm7i`:$.icon().className,alt:n,height:20,src:i,width:20})]}):(0,C.jsx)(`span`,{className:$.placeholder?`z_tempo_2d_id-nr-Vm715 z_tempo_2d_id-nr-Vm716 z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm717 z_tempo_2d_id-nr-Vm7j z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-nr-Vm718 z_tempo_2d_id-nr-Vm719 z_tempo_2d_id-nr-Vm71a z_tempo_2d_id-nr-Vm71b z_tempo_2d_id-nr-Vm71c z_tempo_2d_id-nr-Vm71d z_tempo_2d_id-nr-Vm7i`:$.placeholder().className,"aria-label":n,role:`img`,children:t.symbol[0]})})}),(0,C.jsx)(f.Popup,{children:n})]},t.symbol)})})]},`${e.currency}:${e.period??0}`)),r?(0,C.jsxs)(v,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(b,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsxs)(`span`,{children:[r.slice(0,r.lastIndexOf(` `)+1),(0,C.jsxs)(`span`,{className:$.nowrap?`z_tempo_2d_id-nr-Vm714`:$.nowrap().className,children:[r.slice(r.lastIndexOf(` `)+1),` `,(0,C.jsxs)(w.Root,{children:[(0,C.jsx)(w.Trigger,{"aria-label":`About funds for services`,nativeButton:!1,openOnHover:!0,render:(0,C.jsx)(x,{className:$.info?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v z_tempo_2d_id-nr-Vm7w`:$.info().className,tabIndex:0})}),(0,C.jsx)(w.Popup,{className:$.popup?`z_tempo_2d_id-nr-Vm71e`:$.popup().className,"aria-label":`Funds for services`,children:(0,C.jsxs)(w.Description,{children:[`Set aside for pay-as-you-go services that use`,` `,(0,C.jsx)(`a`,{className:$.popupLink?`z_tempo_2d_id-nr-Vm71f`:$.popupLink().className,href:`https://mpp.dev`,rel:`noreferrer`,target:`_blank`,children:`MPP`}),`. They take only what you use, and you get the rest back.`]})})]})]})]})]}):null,e.children]})}function De(e){let t=(0,S.useId)(),n=(0,S.useId)(),r=(0,S.useId)(),[i,a]=(0,S.useState)(!1),{expiry:o,unrecognized:s}=e.keyAuthorization,l=e.heading??`h2`;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(c,{className:$.section?`z_tempo_2d_id-nr-Vm71g z_tempo_2d_id-nr-Vm71h z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm71i z_tempo_2d_id-nr-Vm71j`:$.section().className,"aria-labelledby":t,gap:`24`,render:(0,C.jsx)(`section`,{}),children:[e.chain?(0,C.jsx)(y,{className:$.chain?`z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76`:$.chain().className,"aria-label":`Chain: ${e.chain}`,network:!0,size:`small`,children:e.chain}):null,(0,C.jsxs)(c,{gap:`12`,children:[(0,C.jsx)(l,{className:$.heading?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d`:$.heading().className,id:t,children:`This app will be able to:`}),(0,C.jsx)(J,{"aria-labelledby":t,keyAuthorization:e.keyAuthorization})]}),(0,C.jsxs)(c,{gap:`12`,children:[(0,C.jsx)(l,{className:$.heading?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d`:$.heading().className,id:n,children:`This app won’t be able to:`}),(0,C.jsx)(c,{className:$.list?`z_tempo_2d_id-nr-Vm7x z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7y z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-nr-Vm710 z_tempo_2d_id-nr-Vm711 z_tempo_2d_id-nr-Vm712 z_tempo_2d_id-nr-Vm713`:$.list().className,"aria-labelledby":n,gap:`8`,render:(0,C.jsx)(`ul`,{}),children:(0,C.jsxs)(v,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(E,{className:$.denied?`z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.denied().className}),(0,C.jsx)(`span`,{children:`Spend more than you approve`})]})})]}),(0,C.jsx)(c,{className:$.details?`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d`:$.details().className,gap:`8`,render:(0,C.jsx)(`dl`,{}),children:(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`dt`,{className:$.term?`z_tempo_2d_id-nr-Vm717 z_tempo_2d_id-nr-Vm71k`:$.term().className,children:`Expires`}),` `,(0,C.jsxs)(`dd`,{className:$.value?`z_tempo_2d_id-nr-Vm71k z_tempo_2d_id-nr-Vm71s z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x z_tempo_2d_id-nr-Vm71y`:$.value().className,children:[Ae(o),` `,(0,C.jsxs)(f.Root,{children:[(0,C.jsx)(f.Trigger,{delay:150,render:(0,C.jsx)(x,{className:$.info?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v z_tempo_2d_id-nr-Vm7w`:$.info().className,"aria-label":`Expiry date`,role:`img`,tabIndex:0})}),(0,C.jsx)(f.Popup,{children:new Date(o*1e3).toLocaleString(void 0,{day:`numeric`,hour:`numeric`,minute:`2-digit`,month:`short`,timeZoneName:`short`,year:`numeric`})})]})]})]})})]}),s.length?(0,C.jsxs)(d,{intent:`warning`,role:`note`,children:[(0,C.jsx)(d.Icon,{}),(0,C.jsx)(d.Content,{children:(0,C.jsxs)(c,{gap:`8`,children:[(0,C.jsx)(`p`,{className:$.warningTitle?`z_tempo_2d_id-nr-Vm720 z_tempo_2d_id-nr-Vm721 z_tempo_2d_id-nr-Vm722 z_tempo_2d_id-nr-Vm723 z_tempo_2d_id-nr-Vm724`:$.warningTitle().className,children:`This app can take other actions`}),i?(0,C.jsx)(c,{gap:`8`,id:r,children:(0,C.jsx)(`p`,{className:$.warningText?`z_tempo_2d_id-nr-Vm71z`:$.warningText().className,children:`Tempo ID can’t tell you what these actions do. Approve only if you trust this app.`})}):null]})}),(0,C.jsx)(d.Action,{"aria-controls":r,"aria-expanded":i,onClick:()=>a(e=>!e),children:i?`Hide`:`Show`})]}):null]})}var Y,X,Z=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],Oe=[[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function ke(e){let[t,n]=Oe.find(t=>e%t[1]===0),r=e/n;return r===1?`per ${t}`:`every ${r} ${t}s`}function Q(e){let t=e.amount;try{return new Intl.NumberFormat(`en-US`,{currency:e.currency,maximumFractionDigits:6,style:`currency`,trailingZeroDisplay:`stripIfInteger`}).format(t)}catch{return Y??=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:20}),`${Y.format(t)} ${e.currency}`}}function Ae(e){let t=e-Date.now()/1e3,[n,r]=Z.find(e=>t+60>=e[1])??Z.at(-1);return X??=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),X.format(Math.max(1,Math.round(t/r)),n)}var $;(function(e){e.allowed=1,e.chain=1,e.denied=1,e.details=1,e.heading=1,e.icon=1,e.icons=1,e.info=1,e.list=1,e.nowrap=1,e.placeholder=1,e.popup=1,e.popupLink=1,e.section=1,e.term=1,e.token=1,e.value=1,e.warningText=1,e.warningTitle=1})($||={});export{De as n,w as r,J as t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Y as t,n,tt as r,yt as i}from"./zyzz.config-Dg1ZU-Ph.js";import{n as a,t as o}from"./Stack-ClVHbhR2.js";import{n as s,t as c}from"./Hex-BwYW3WFP.js";import{t as l}from"./Alert-B7YPFnuz.js";import{t as u}from"./AlertDialog-Ddm5wjWR.js";import{n as d,t as f}from"./ButtonGroup-yw65MS6T.js";import{n as p,t as m}from"./Key-CH1mTM0j.js";import{r as h,t as g}from"./Grant-DD3fzrZo.js";import{n as _}from"./StatusChip-DKSWhEtD.js";import{S as v,y}from"./index-DHHmdOEu.js";var b=r(),x;(function(e){function t(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{...r,...S.actions({className:t,style:e.style,vars:n})})}e.Actions=t;function n(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`p`,{...r,...S.description({className:t,style:e.style,vars:n})})}e.Description=n;function r(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{"aria-hidden":`true`,...r,...S.icon({className:t,style:e.style,vars:n})})}e.Icon=r;function i(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{...r,...S.root({className:t,style:e.style,vars:n})})}e.Root=i;function a(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`h3`,{...r,...S.title({className:t,style:e.style,vars:n})})}e.Title=a})(x||={});var S;(function(e){e.actions=t({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R41 z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R43 z_tds_2f_web-agS1R44 z_tds_2f_web-agS1R45`}),e.description=t({className:`z_tds_2f_web-agS1R46 z_tds_2f_web-agS1R47 z_tds_2f_web-agS1R48 z_tds_2f_web-agS1R49 z_tds_2f_web-agS1R4a z_tds_2f_web-agS1R4b z_tds_2f_web-agS1R4c z_tds_2f_web-agS1R4d`}),e.icon=t({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R4e z_tds_2f_web-agS1R4f z_tds_2f_web-agS1R46 z_tds_2f_web-agS1R4g z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R4h z_tds_2f_web-agS1R4i z_tds_2f_web-agS1R44 z_tds_2f_web-agS1R4j z_tds_2f_web-agS1R4k`}),e.root=t({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R4l z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R4m z_tds_2f_web-agS1R4n z_tds_2f_web-agS1R4o z_tds_2f_web-agS1R4p z_tds_2f_web-agS1R4q z_tds_2f_web-agS1R4r`}),e.title=t({className:`z_tds_2f_web-agS1R4s z_tds_2f_web-agS1R4t z_tds_2f_web-agS1R4u z_tds_2f_web-agS1R4v z_tds_2f_web-agS1R4w z_tds_2f_web-agS1R4x z_tds_2f_web-agS1R4y`})})(S||={});var C=e(i(),1);function w(e){let t=e.heading??`h1`,r=e.heading===`h4`?`h5`:`h2`,i=A(e.keys??[]);return(0,b.jsxs)(o,{className:N.column?`z_tempo_2d_id-yOQXdil z_tempo_2d_id-yOQXdim`:N.column().className,gap:`24`,children:[(0,b.jsxs)(o,{gap:`8`,children:[(0,b.jsxs)(`header`,{className:N.header?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi11 z_tempo_2d_id-yOQXdi12`:N.header().className,children:[(0,b.jsx)(`span`,{className:N.back?`z_tempo_2d_id-yOQXdid z_tempo_2d_id-yOQXdie z_tempo_2d_id-yOQXdif z_tempo_2d_id-yOQXdig z_tempo_2d_id-yOQXdih z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi3`:N.back().className,children:(0,b.jsx)(n.Link,{"aria-label":`Back`,render:(0,b.jsx)(a,{to:`/`}),shape:`icon`,variant:`tertiary`,children:(0,b.jsx)(d,{className:N.backIcon?`z_tempo_2d_id-yOQXdij z_tempo_2d_id-yOQXdik`:N.backIcon().className})})}),(0,b.jsx)(t,{className:N.title?`z_tempo_2d_id-yOQXdi1j z_tempo_2d_id-yOQXdi1k z_tempo_2d_id-yOQXdi1l z_tempo_2d_id-yOQXdi1m z_tempo_2d_id-yOQXdi1n z_tempo_2d_id-yOQXdi1o`:N.title().className,children:`Permissions`})]}),(0,b.jsx)(`p`,{className:N.description?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdio z_tempo_2d_id-yOQXdip z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.description().className,children:`Apps you approved can spend from your wallet within these limits. Revoke a key to stop an app at once.`})]}),e.stale?(0,b.jsxs)(l,{intent:`warning`,children:[(0,b.jsx)(l.Icon,{}),(0,b.jsx)(l.Content,{children:`To revoke a key, sign in again. Revoking needs a sign-in within the last 10 minutes.`}),e.onSignIn?(0,b.jsx)(l.Action,{onClick:e.onSignIn,children:`Sign in again`}):null]}):e.error?(0,b.jsxs)(l,{intent:`negative`,children:[(0,b.jsx)(l.Icon,{}),(0,b.jsx)(l.Content,{children:e.error})]}):null,e.keys?i.length?i.map(t=>(0,b.jsxs)(o,{"aria-label":O(t.app),gap:`8`,render:(0,b.jsx)(`section`,{}),children:[(0,b.jsxs)(_,{align:`center`,gap:`8`,children:[(0,b.jsxs)(p,{className:N.logo?`z_tempo_2d_id-yOQXdi1c`:N.logo().className,"aria-hidden":!0,size:`24`,children:[t.app.logo?(0,b.jsx)(p.Image,{src:t.app.logo}):null,(0,b.jsx)(p.Fallback,{children:O(t.app).charAt(0)})]}),(0,b.jsx)(r,{className:N.appName?`z_tempo_2d_id-yOQXdi6 z_tempo_2d_id-yOQXdi7 z_tempo_2d_id-yOQXdi8 z_tempo_2d_id-yOQXdi9 z_tempo_2d_id-yOQXdia z_tempo_2d_id-yOQXdib z_tempo_2d_id-yOQXdic`:N.appName().className,children:O(t.app)})]}),(0,b.jsx)(`ul`,{className:N.list?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiy z_tempo_2d_id-yOQXdi18 z_tempo_2d_id-yOQXdi19 z_tempo_2d_id-yOQXdi1a z_tempo_2d_id-yOQXdi1b`:N.list().className,"aria-label":`Keys of ${O(t.app)}`,children:t.keys.map(t=>(0,b.jsx)(T,{entry:t,holds:e.revoking!==void 0&&e.revoking!==t.address,onRevoke:e.onRevoke,revoking:e.revoking===t.address},`${t.chainId}:${t.account}:${t.address}`))})]},t.app.clientId)):(0,b.jsxs)(x.Root,{children:[(0,b.jsx)(x.Icon,{children:(0,b.jsx)(m,{})}),(0,b.jsx)(x.Title,{children:`No app permissions`}),(0,b.jsx)(x.Description,{children:`Apps that you approve to spend from your wallet appear here.`})]}):null,(0,b.jsx)(`p`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,"aria-live":`polite`,role:`status`,children:e.revoking?`Revoking the key.`:void 0})]})}function T(e){let{entry:t}=e,[r,i]=(0,C.useState)(!1),a=O(t.app),c=s(t.address);return(0,b.jsxs)(`li`,{className:N.row?`z_tempo_2d_id-yOQXdi1f z_tempo_2d_id-yOQXdi1g z_tempo_2d_id-yOQXdi1h z_tempo_2d_id-yOQXdi12`:N.row().className,children:[(0,b.jsxs)(o,{gap:`24`,children:[(0,b.jsxs)(g,{keyAuthorization:t.description,children:[t.unrestricted.includes(`limits`)?(0,b.jsxs)(_,{gap:`8`,render:(0,b.jsx)(`li`,{}),children:[(0,b.jsx)(v,{className:N.warning?`z_tempo_2d_id-yOQXdi1t z_tempo_2d_id-yOQXdi1c z_tempo_2d_id-yOQXdi1u z_tempo_2d_id-yOQXdi1v`:N.warning().className}),(0,b.jsx)(`span`,{children:`Spend any amount`})]}):null,(()=>{let e=(()=>{if(t.unrestricted.includes(`calls`))return`Take any action`;if(t.description.unrecognized.length)return`Take other actions`})();return e?(0,b.jsxs)(_,{gap:`8`,render:(0,b.jsx)(`li`,{}),children:[(0,b.jsx)(v,{className:N.warning?`z_tempo_2d_id-yOQXdi1t z_tempo_2d_id-yOQXdi1c z_tempo_2d_id-yOQXdi1u z_tempo_2d_id-yOQXdi1v`:N.warning().className}),(0,b.jsx)(`span`,{children:e})]}):null})()]}),(0,b.jsxs)(_,{align:`center`,gap:`8`,justify:`between`,children:[(0,b.jsxs)(`span`,{className:N.secondary?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.secondary().className,children:[t.unrestricted.includes(`expiry`)?`Never expires`:`Expires ${M(t.description.expiry)}`,t.chain===null?`. Its network is unavailable.`:null]}),(0,b.jsxs)(u.Root,{onOpenChange:i,open:r,children:[(0,b.jsx)(u.Trigger,{render:(0,b.jsx)(n,{"aria-label":`Revoke ${a} key ${c}`,disabled:e.holds||t.chain===null,loading:e.revoking,size:`small`,variant:`secondary`}),children:`Revoke`}),(0,b.jsxs)(u.Popup,{children:[(0,b.jsxs)(u.Header,{children:[(0,b.jsx)(u.Title,{children:`Revoke this key?`}),(0,b.jsxs)(u.Description,{children:[a,` can no longer spend from your wallet with this key. The app asks you again before it can spend.`]})]}),(0,b.jsxs)(f,{children:[(0,b.jsx)(u.Close,{render:(0,b.jsx)(n,{size:`large`,variant:`secondary`}),children:`Cancel`}),(0,b.jsx)(n,{onClick:()=>{i(!1),e.onRevoke(t)},size:`large`,variant:`danger`,children:`Revoke key`})]})]})]})]})]}),(0,b.jsx)(`span`,{className:N.info?`z_tempo_2d_id-yOQXdi15 z_tempo_2d_id-yOQXdi3`:N.info().className,children:(0,b.jsx)(E,{entry:t})})]})}function E(e){let{entry:t}=e,r=t.remaining.map(e=>`${e.amount} ${e.symbol}`),i=[[`Key`,(0,b.jsxs)(c.Root,{className:N.hex?`z_tempo_2d_id-yOQXdi13 z_tempo_2d_id-yOQXdi14`:N.hex().className,value:t.address,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,children:s(t.address)}),(0,b.jsx)(`span`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,children:t.address}),(0,b.jsx)(c.Copy,{"aria-label":`Copy key address`})]})],[`Wallet`,(0,b.jsxs)(c.Root,{className:N.hex?`z_tempo_2d_id-yOQXdi13 z_tempo_2d_id-yOQXdi14`:N.hex().className,value:t.account,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,children:s(t.account)}),(0,b.jsx)(`span`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,children:t.account}),(0,b.jsx)(c.Copy,{"aria-label":`Copy wallet address`})]})],[`Network`,t.chain??`Chain ${t.chainId}`],[`Created`,k(t.createdAt)],[`Expires`,t.unrestricted.includes(`expiry`)?`Never`:k(t.description.expiry)],[`Status`,j(t.status)],...r.length?[[`Left to spend`,r.join(`, `)]]:[]];return(0,b.jsxs)(h.Root,{children:[(0,b.jsx)(h.Trigger,{"aria-label":`Details of key ${s(t.address)}`,openOnHover:!0,render:(0,b.jsx)(n,{shape:`icon`,size:`small`,variant:`text`}),children:(0,b.jsx)(y,{className:N.infoIcon?`z_tempo_2d_id-yOQXdi16 z_tempo_2d_id-yOQXdi17`:N.infoIcon().className})}),(0,b.jsxs)(h.Popup,{className:N.popup?`z_tempo_2d_id-yOQXdi1d z_tempo_2d_id-yOQXdi1e`:N.popup().className,children:[(0,b.jsx)(h.Title,{children:`Key details`}),(0,b.jsx)(`dl`,{className:N.details?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiy z_tempo_2d_id-yOQXdiz z_tempo_2d_id-yOQXdi10 z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.details().className,children:i.map(e=>(0,b.jsxs)(`div`,{className:N.detail?`z_tempo_2d_id-yOQXdid z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiv z_tempo_2d_id-yOQXdiw z_tempo_2d_id-yOQXdix`:N.detail().className,children:[(0,b.jsx)(`dt`,{className:N.term?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdi1i`:N.term().className,children:e[0]}),(0,b.jsx)(`dd`,{className:N.value?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi1p z_tempo_2d_id-yOQXdi1q z_tempo_2d_id-yOQXdi1a z_tempo_2d_id-yOQXdi1r z_tempo_2d_id-yOQXdi1s`:N.value().className,children:e[1]})]},e[0]))})]})]})}var D=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]];function O(e){return e.name||e.clientId}function k(e){return new Date(e*1e3).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`})}function A(e){let t=new Map;for(let n of e){let e=t.get(n.app.clientId);e?e.keys.push(n):t.set(n.app.clientId,{app:n.app,keys:[n]})}return[...t.values()]}function j(e){return e===`active`?`In use`:e===`pending`?`Not used yet`:`Unknown`}function M(e){let t=e-Date.now()/1e3,[n,r]=D.find(e=>t+60>=e[1])??D.at(-1);return new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}).format(Math.max(1,Math.round(t/r)),n)}var N;(function(e){e.announcement=1,e.appName=1,e.back=1,e.backIcon=1,e.column=1,e.description=1,e.detail=1,e.details=1,e.header=1,e.hex=1,e.info=1,e.infoIcon=1,e.list=1,e.logo=1,e.popup=1,e.row=1,e.secondary=1,e.term=1,e.title=1,e.value=1,e.warning=1})(N||={});export{w as t};
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Y as t,n,tt as r,yt as i}from"./zyzz.config-Dg1ZU-Ph.js";import{n as a,t as o}from"./Stack-ClVHbhR2.js";import{n as s,t as c}from"./Hex-BwYW3WFP.js";import{t as l}from"./Alert-B7YPFnuz.js";import{t as u}from"./AlertDialog-Ddm5wjWR.js";import{n as d,t as f}from"./ButtonGroup-yw65MS6T.js";import{n as p,t as m}from"./Key-CH1mTM0j.js";import{r as h,t as g}from"./Grant-rhsU0ABA.js";import{n as _}from"./StatusChip-DKSWhEtD.js";import{S as v,y}from"./index-DdbcUaHb.js";var b=r(),x;(function(e){function t(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{...r,...S.actions({className:t,style:e.style,vars:n})})}e.Actions=t;function n(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`p`,{...r,...S.description({className:t,style:e.style,vars:n})})}e.Description=n;function r(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{"aria-hidden":`true`,...r,...S.icon({className:t,style:e.style,vars:n})})}e.Icon=r;function i(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{...r,...S.root({className:t,style:e.style,vars:n})})}e.Root=i;function a(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`h3`,{...r,...S.title({className:t,style:e.style,vars:n})})}e.Title=a})(x||={});var S;(function(e){e.actions=t({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R41 z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R43 z_tds_2f_web-agS1R44 z_tds_2f_web-agS1R45`}),e.description=t({className:`z_tds_2f_web-agS1R46 z_tds_2f_web-agS1R47 z_tds_2f_web-agS1R48 z_tds_2f_web-agS1R49 z_tds_2f_web-agS1R4a z_tds_2f_web-agS1R4b z_tds_2f_web-agS1R4c z_tds_2f_web-agS1R4d`}),e.icon=t({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R4e z_tds_2f_web-agS1R4f z_tds_2f_web-agS1R46 z_tds_2f_web-agS1R4g z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R4h z_tds_2f_web-agS1R4i z_tds_2f_web-agS1R44 z_tds_2f_web-agS1R4j z_tds_2f_web-agS1R4k`}),e.root=t({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R4l z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R4m z_tds_2f_web-agS1R4n z_tds_2f_web-agS1R4o z_tds_2f_web-agS1R4p z_tds_2f_web-agS1R4q z_tds_2f_web-agS1R4r`}),e.title=t({className:`z_tds_2f_web-agS1R4s z_tds_2f_web-agS1R4t z_tds_2f_web-agS1R4u z_tds_2f_web-agS1R4v z_tds_2f_web-agS1R4w z_tds_2f_web-agS1R4x z_tds_2f_web-agS1R4y`})})(S||={});var C=e(i(),1);function w(e){let t=e.heading??`h1`,r=e.heading===`h4`?`h5`:`h2`,i=A(e.keys??[]);return(0,b.jsxs)(o,{className:N.column?`z_tempo_2d_id-yOQXdil z_tempo_2d_id-yOQXdim`:N.column().className,gap:`24`,children:[(0,b.jsxs)(o,{gap:`8`,children:[(0,b.jsxs)(`header`,{className:N.header?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi11 z_tempo_2d_id-yOQXdi12`:N.header().className,children:[(0,b.jsx)(`span`,{className:N.back?`z_tempo_2d_id-yOQXdid z_tempo_2d_id-yOQXdie z_tempo_2d_id-yOQXdif z_tempo_2d_id-yOQXdig z_tempo_2d_id-yOQXdih z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi3`:N.back().className,children:(0,b.jsx)(n.Link,{"aria-label":`Back`,render:(0,b.jsx)(a,{to:`/`}),shape:`icon`,variant:`tertiary`,children:(0,b.jsx)(d,{className:N.backIcon?`z_tempo_2d_id-yOQXdij z_tempo_2d_id-yOQXdik`:N.backIcon().className})})}),(0,b.jsx)(t,{className:N.title?`z_tempo_2d_id-yOQXdi1j z_tempo_2d_id-yOQXdi1k z_tempo_2d_id-yOQXdi1l z_tempo_2d_id-yOQXdi1m z_tempo_2d_id-yOQXdi1n z_tempo_2d_id-yOQXdi1o`:N.title().className,children:`Permissions`})]}),(0,b.jsx)(`p`,{className:N.description?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdio z_tempo_2d_id-yOQXdip z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.description().className,children:`Apps you approved can spend from your wallet within these limits. Revoke a key to stop an app at once.`})]}),e.stale?(0,b.jsxs)(l,{intent:`warning`,children:[(0,b.jsx)(l.Icon,{}),(0,b.jsx)(l.Content,{children:`To revoke a key, sign in again. Revoking needs a sign-in within the last 10 minutes.`}),e.onSignIn?(0,b.jsx)(l.Action,{onClick:e.onSignIn,children:`Sign in again`}):null]}):e.error?(0,b.jsxs)(l,{intent:`negative`,children:[(0,b.jsx)(l.Icon,{}),(0,b.jsx)(l.Content,{children:e.error})]}):null,e.keys?i.length?i.map(t=>(0,b.jsxs)(o,{"aria-label":O(t.app),gap:`8`,render:(0,b.jsx)(`section`,{}),children:[(0,b.jsxs)(_,{align:`center`,gap:`8`,children:[(0,b.jsxs)(p,{className:N.logo?`z_tempo_2d_id-yOQXdi1c`:N.logo().className,"aria-hidden":!0,size:`24`,children:[t.app.logo?(0,b.jsx)(p.Image,{src:t.app.logo}):null,(0,b.jsx)(p.Fallback,{children:O(t.app).charAt(0)})]}),(0,b.jsx)(r,{className:N.appName?`z_tempo_2d_id-yOQXdi6 z_tempo_2d_id-yOQXdi7 z_tempo_2d_id-yOQXdi8 z_tempo_2d_id-yOQXdi9 z_tempo_2d_id-yOQXdia z_tempo_2d_id-yOQXdib z_tempo_2d_id-yOQXdic`:N.appName().className,children:O(t.app)})]}),(0,b.jsx)(`ul`,{className:N.list?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiy z_tempo_2d_id-yOQXdi18 z_tempo_2d_id-yOQXdi19 z_tempo_2d_id-yOQXdi1a z_tempo_2d_id-yOQXdi1b`:N.list().className,"aria-label":`Keys of ${O(t.app)}`,children:t.keys.map(t=>(0,b.jsx)(T,{entry:t,holds:e.revoking!==void 0&&e.revoking!==t.address,onRevoke:e.onRevoke,revoking:e.revoking===t.address},`${t.chainId}:${t.account}:${t.address}`))})]},t.app.clientId)):(0,b.jsxs)(x.Root,{children:[(0,b.jsx)(x.Icon,{children:(0,b.jsx)(m,{})}),(0,b.jsx)(x.Title,{children:`No app permissions`}),(0,b.jsx)(x.Description,{children:`Apps that you approve to spend from your wallet appear here.`})]}):null,(0,b.jsx)(`p`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,"aria-live":`polite`,role:`status`,children:e.revoking?`Revoking the key.`:void 0})]})}function T(e){let{entry:t}=e,[r,i]=(0,C.useState)(!1),a=O(t.app),c=s(t.address);return(0,b.jsxs)(`li`,{className:N.row?`z_tempo_2d_id-yOQXdi1f z_tempo_2d_id-yOQXdi1g z_tempo_2d_id-yOQXdi1h z_tempo_2d_id-yOQXdi12`:N.row().className,children:[(0,b.jsxs)(o,{gap:`24`,children:[(0,b.jsxs)(g,{keyAuthorization:t.description,children:[t.unrestricted.includes(`limits`)?(0,b.jsxs)(_,{gap:`8`,render:(0,b.jsx)(`li`,{}),children:[(0,b.jsx)(v,{className:N.warning?`z_tempo_2d_id-yOQXdi1t z_tempo_2d_id-yOQXdi1c z_tempo_2d_id-yOQXdi1u z_tempo_2d_id-yOQXdi1v`:N.warning().className}),(0,b.jsx)(`span`,{children:`Spend any amount`})]}):null,(()=>{let e=(()=>{if(t.unrestricted.includes(`calls`))return`Take any action`;if(t.description.unrecognized.length)return`Take other actions`})();return e?(0,b.jsxs)(_,{gap:`8`,render:(0,b.jsx)(`li`,{}),children:[(0,b.jsx)(v,{className:N.warning?`z_tempo_2d_id-yOQXdi1t z_tempo_2d_id-yOQXdi1c z_tempo_2d_id-yOQXdi1u z_tempo_2d_id-yOQXdi1v`:N.warning().className}),(0,b.jsx)(`span`,{children:e})]}):null})()]}),(0,b.jsxs)(_,{align:`center`,gap:`8`,justify:`between`,children:[(0,b.jsxs)(`span`,{className:N.secondary?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.secondary().className,children:[t.unrestricted.includes(`expiry`)?`Never expires`:`Expires ${M(t.description.expiry)}`,t.chain===null?`. Its network is unavailable.`:null]}),(0,b.jsxs)(u.Root,{onOpenChange:i,open:r,children:[(0,b.jsx)(u.Trigger,{render:(0,b.jsx)(n,{"aria-label":`Revoke ${a} key ${c}`,disabled:e.holds||t.chain===null,loading:e.revoking,size:`small`,variant:`secondary`}),children:`Revoke`}),(0,b.jsxs)(u.Popup,{children:[(0,b.jsxs)(u.Header,{children:[(0,b.jsx)(u.Title,{children:`Revoke this key?`}),(0,b.jsxs)(u.Description,{children:[a,` can no longer spend from your wallet with this key. The app asks you again before it can spend.`]})]}),(0,b.jsxs)(f,{children:[(0,b.jsx)(u.Close,{render:(0,b.jsx)(n,{size:`large`,variant:`secondary`}),children:`Cancel`}),(0,b.jsx)(n,{onClick:()=>{i(!1),e.onRevoke(t)},size:`large`,variant:`danger`,children:`Revoke key`})]})]})]})]})]}),(0,b.jsx)(`span`,{className:N.info?`z_tempo_2d_id-yOQXdi15 z_tempo_2d_id-yOQXdi3`:N.info().className,children:(0,b.jsx)(E,{entry:t})})]})}function E(e){let{entry:t}=e,r=t.remaining.map(e=>`${e.amount} ${e.symbol}`),i=[[`Key`,(0,b.jsxs)(c.Root,{className:N.hex?`z_tempo_2d_id-yOQXdi13 z_tempo_2d_id-yOQXdi14`:N.hex().className,value:t.address,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,children:s(t.address)}),(0,b.jsx)(`span`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,children:t.address}),(0,b.jsx)(c.Copy,{"aria-label":`Copy key address`})]})],[`Wallet`,(0,b.jsxs)(c.Root,{className:N.hex?`z_tempo_2d_id-yOQXdi13 z_tempo_2d_id-yOQXdi14`:N.hex().className,value:t.account,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,children:s(t.account)}),(0,b.jsx)(`span`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,children:t.account}),(0,b.jsx)(c.Copy,{"aria-label":`Copy wallet address`})]})],[`Network`,t.chain??`Chain ${t.chainId}`],[`Created`,k(t.createdAt)],[`Expires`,t.unrestricted.includes(`expiry`)?`Never`:k(t.description.expiry)],[`Status`,j(t.status)],...r.length?[[`Left to spend`,r.join(`, `)]]:[]];return(0,b.jsxs)(h.Root,{children:[(0,b.jsx)(h.Trigger,{"aria-label":`Details of key ${s(t.address)}`,openOnHover:!0,render:(0,b.jsx)(n,{shape:`icon`,size:`small`,variant:`text`}),children:(0,b.jsx)(y,{className:N.infoIcon?`z_tempo_2d_id-yOQXdi16 z_tempo_2d_id-yOQXdi17`:N.infoIcon().className})}),(0,b.jsxs)(h.Popup,{className:N.popup?`z_tempo_2d_id-yOQXdi1d z_tempo_2d_id-yOQXdi1e`:N.popup().className,children:[(0,b.jsx)(h.Title,{children:`Key details`}),(0,b.jsx)(`dl`,{className:N.details?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiy z_tempo_2d_id-yOQXdiz z_tempo_2d_id-yOQXdi10 z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.details().className,children:i.map(e=>(0,b.jsxs)(`div`,{className:N.detail?`z_tempo_2d_id-yOQXdid z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiv z_tempo_2d_id-yOQXdiw z_tempo_2d_id-yOQXdix`:N.detail().className,children:[(0,b.jsx)(`dt`,{className:N.term?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdi1i`:N.term().className,children:e[0]}),(0,b.jsx)(`dd`,{className:N.value?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi1p z_tempo_2d_id-yOQXdi1q z_tempo_2d_id-yOQXdi1a z_tempo_2d_id-yOQXdi1r z_tempo_2d_id-yOQXdi1s`:N.value().className,children:e[1]})]},e[0]))})]})]})}var D=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]];function O(e){return e.name||e.clientId}function k(e){return new Date(e*1e3).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`})}function A(e){let t=new Map;for(let n of e){let e=t.get(n.app.clientId);e?e.keys.push(n):t.set(n.app.clientId,{app:n.app,keys:[n]})}return[...t.values()]}function j(e){return e===`active`?`In use`:e===`pending`?`Not used yet`:`Unknown`}function M(e){let t=e-Date.now()/1e3,[n,r]=D.find(e=>t+60>=e[1])??D.at(-1);return new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}).format(Math.max(1,Math.round(t/r)),n)}var N;(function(e){e.announcement=1,e.appName=1,e.back=1,e.backIcon=1,e.column=1,e.description=1,e.detail=1,e.details=1,e.header=1,e.hex=1,e.info=1,e.infoIcon=1,e.list=1,e.logo=1,e.popup=1,e.row=1,e.secondary=1,e.term=1,e.title=1,e.value=1,e.warning=1})(N||={});export{w as t};