@privy-io/react-auth 1.88.2 → 1.88.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +16 -16
- package/dist/cjs/ui.js +5 -5
- package/dist/cjs/useFundWallet.js +15 -15
- package/dist/cjs/useWallets.js +1 -1
- package/dist/dts/types.d.mts +20 -8
- package/dist/dts/types.d.ts +20 -8
- package/dist/dts/ui.d.mts +4 -1
- package/dist/dts/ui.d.ts +4 -1
- package/dist/esm/index.mjs +17 -17
- package/dist/esm/privy-context.mjs +1 -1
- package/dist/esm/ui.mjs +9 -9
- package/dist/esm/useFundWallet.mjs +17 -17
- package/dist/esm/useSolanaWallets.mjs +1 -1
- package/dist/esm/useWallets.mjs +1 -1
- package/dist/esm/user.mjs +1 -1
- package/package.json +2 -2
package/dist/cjs/ui.js
CHANGED
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
`,f=i.styled(s.Copy)`
|
|
41
41
|
color: var(--privy-color-foreground-3);
|
|
42
42
|
opactiy: 0.5;
|
|
43
|
-
`;function j({children:t,iconOnly:s,value:r}){let[i,n]=l.useState(!1);return e.jsxs(C,{onClick:()=>{navigator.clipboard.writeText(r||t).catch(console.error),n(!0),setTimeout((()=>n(!1)),1500)},children:[t," ",i?e.jsxs(u,{children:[e.jsx(g,{})," ",!s&&"Copied"]}):e.jsx(f,{})]})}const w=({...t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}),e.jsx("circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]}),v=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}),e.jsx("polyline",{points:"10 17 15 12 10 7"}),e.jsx("line",{x1:"15",x2:"3",y1:"12",y2:"12"})]}),m=({...t})=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M14.6667 4.66669L8.68668 8.46669C8.48086 8.59564 8.24289 8.66403 8.00001 8.66403C7.75713 8.66403 7.51916 8.59564 7.31334 8.46669L1.33334 4.66669M2.66668 2.66669H13.3333C14.0697 2.66669 14.6667 3.26364 14.6667 4.00002V12C14.6667 12.7364 14.0697 13.3334 13.3333 13.3334H2.66668C1.9303 13.3334 1.33334 12.7364 1.33334 12V4.00002C1.33334 3.26364 1.9303 2.66669 2.66668 2.66669Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})}),y=({...t})=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("g",{clipPath:"url(#clip0_57_4648)",children:e.jsx("path",{d:"M14.6667 11.28V13.28C14.6674 13.4657 14.6294 13.6494 14.555 13.8195C14.4806 13.9897 14.3715 14.1424 14.2347 14.2679C14.0979 14.3934 13.9364 14.489 13.7605 14.5485C13.5846 14.6079 13.3983 14.63 13.2133 14.6133C11.1619 14.3904 9.19134 13.6894 7.46001 12.5667C5.84923 11.5431 4.48356 10.1774 3.46001 8.56665C2.33333 6.82745 1.63217 4.84731 1.41334 2.78665C1.39668 2.60229 1.41859 2.41649 1.47767 2.24107C1.53676 2.06564 1.63172 1.90444 1.75652 1.76773C1.88131 1.63102 2.03321 1.52179 2.20253 1.447C2.37186 1.37221 2.5549 1.33349 2.74001 1.33332H4.74001C5.06354 1.33013 5.3772 1.4447 5.62251 1.65567C5.86783 1.86664 6.02806 2.15961 6.07334 2.47998C6.15775 3.12003 6.31431 3.74847 6.54001 4.35332C6.6297 4.59193 6.64911 4.85126 6.59594 5.10057C6.54277 5.34988 6.41925 5.57872 6.24001 5.75998L5.39334 6.60665C6.34238 8.27568 7.72431 9.65761 9.39334 10.6067L10.24 9.75998C10.4213 9.58074 10.6501 9.45722 10.8994 9.40405C11.1487 9.35088 11.4081 9.37029 11.6467 9.45998C12.2515 9.68568 12.88 9.84224 13.52 9.92665C13.8439 9.97234 14.1396 10.1355 14.351 10.385C14.5624 10.6345 14.6748 10.953 14.6667 11.28Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_57_4648",children:e.jsx("rect",{width:"16",height:"16",fill:"white"})})})]});function k(t){return e.jsxs("svg",{width:"71",height:"55",viewBox:"0 0 71 55",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t,children:[e.jsx("g",{clipPath:"url(#clip0)",children:e.jsx("path",{d:"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z",fill:"#5865F2"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0",children:e.jsx("rect",{width:"71",height:"55",fill:"white"})})})]})}function _(t){return e.jsx("svg",{height:"250px",preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 256 250",width:"256px",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t,children:e.jsx("g",{children:e.jsx("path",{d:"M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 96.280588,243.303333 C96.280588,240.251045 96.1618878,230.167899 96.106777,219.472176 C60.4967585,227.215235 52.9826207,204.369712 52.9826207,204.369712 C47.1599584,189.574598 38.770408,185.640538 38.770408,185.640538 C27.1568785,177.696113 39.6458206,177.859325 39.6458206,177.859325 C52.4993419,178.762293 59.267365,191.04987 59.267365,191.04987 C70.6837675,210.618423 89.2115753,204.961093 96.5158685,201.690482 C97.6647155,193.417512 100.981959,187.77078 104.642583,184.574357 C76.211799,181.33766 46.324819,170.362144 46.324819,121.315702 C46.324819,107.340889 51.3250588,95.9223682 59.5132437,86.9583937 C58.1842268,83.7344152 53.8029229,70.715562 60.7532354,53.0843636 C60.7532354,53.0843636 71.5019501,49.6441813 95.9626412,66.2049595 C106.172967,63.368876 117.123047,61.9465949 128.00106,61.8978432 C138.879073,61.9465949 149.837632,63.368876 160.067033,66.2049595 C184.49805,49.6441813 195.231926,53.0843636 195.231926,53.0843636 C202.199197,70.715562 197.815773,83.7344152 196.486756,86.9583937 C204.694018,95.9223682 209.660343,107.340889 209.660343,121.315702 C209.660343,170.478725 179.716133,181.303747 151.213281,184.472614 C155.80443,188.444828 159.895342,196.234518 159.895342,208.176593 C159.895342,225.303317 159.746968,239.087361 159.746968,243.303333 C159.746968,246.709601 162.05102,250.70089 168.53925,249.443941 C219.370432,232.499507 256,184.536204 256,128.00106 C256,57.3066942 198.691187,0 128.00106,0 Z M47.9405593,182.340212 C47.6586465,182.976105 46.6581745,183.166873 45.7467277,182.730227 C44.8183235,182.312656 44.2968914,181.445722 44.5978808,180.80771 C44.8734344,180.152739 45.876026,179.97045 46.8023103,180.409216 C47.7328342,180.826786 48.2627451,181.702199 47.9405593,182.340212 Z M54.2367892,187.958254 C53.6263318,188.524199 52.4329723,188.261363 51.6232682,187.366874 C50.7860088,186.474504 50.6291553,185.281144 51.2480912,184.70672 C51.8776254,184.140775 53.0349512,184.405731 53.8743302,185.298101 C54.7115892,186.201069 54.8748019,187.38595 54.2367892,187.958254 Z M58.5562413,195.146347 C57.7719732,195.691096 56.4895886,195.180261 55.6968417,194.042013 C54.9125733,192.903764 54.9125733,191.538713 55.713799,190.991845 C56.5086651,190.444977 57.7719732,190.936735 58.5753181,192.066505 C59.3574669,193.22383 59.3574669,194.58888 58.5562413,195.146347 Z M65.8613592,203.471174 C65.1597571,204.244846 63.6654083,204.03712 62.5716717,202.981538 C61.4524999,201.94927 61.1409122,200.484596 61.8446341,199.710926 C62.5547146,198.935137 64.0575422,199.15346 65.1597571,200.200564 C66.2704506,201.230712 66.6095936,202.705984 65.8613592,203.471174 Z M75.3025151,206.281542 C74.9930474,207.284134 73.553809,207.739857 72.1039724,207.313809 C70.6562556,206.875043 69.7087748,205.700761 70.0012857,204.687571 C70.302275,203.678621 71.7478721,203.20382 73.2083069,203.659543 C74.6539041,204.09619 75.6035048,205.261994 75.3025151,206.281542 Z M86.046947,207.473627 C86.0829806,208.529209 84.8535871,209.404622 83.3316829,209.4237 C81.8013,209.457614 80.563428,208.603398 80.5464708,207.564772 C80.5464708,206.498591 81.7483088,205.631657 83.2786917,205.606221 C84.8005962,205.576546 86.046947,206.424403 86.046947,207.473627 Z M96.6021471,207.069023 C96.7844366,208.099171 95.7267341,209.156872 94.215428,209.438785 C92.7295577,209.710099 91.3539086,209.074206 91.1652603,208.052538 C90.9808515,206.996955 92.0576306,205.939253 93.5413813,205.66582 C95.054807,205.402984 96.4092596,206.021919 96.6021471,207.069023 Z",fill:"currentColor"})})})}function b(t){return e.jsxs("svg",{height:"250px",preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 24 24",width:"256px",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t,children:[e.jsx("path",{d:"M17.0722 11.6888C17.0471 8.90571 19.3263 7.56847 19.429 7.50274C18.1466 5.60938 16.153 5.35154 15.4417 5.3212C13.7461 5.14678 12.1306 6.32982 11.269 6.32982C10.4074 6.32982 9.08004 5.34648 7.67246 5.37429C5.82158 5.40209 4.11595 6.45874 3.16171 8.13218C1.24068 11.4942 2.6708 16.4817 4.54423 19.2143C5.46091 20.549 6.55041 22.0531 7.98554 21.9975C9.36803 21.9419 9.88905 21.095 11.5571 21.095C13.2251 21.095 13.696 21.9975 15.1537 21.9697C16.6389 21.9393 17.5806 20.6046 18.4897 19.2648C19.5392 17.7153 19.9725 16.2137 19.9975 16.1354C19.965 16.1228 17.1022 15.0155 17.0722 11.6888Z",fill:"#161614"}),e.jsx("path",{d:"M14.3295 3.51373C15.0909 2.58347 15.6043 1.28921 15.4641 0C14.3671 0.0455014 13.0396 0.738135 12.2532 1.66838C11.5494 2.48994 10.9307 3.80695 11.0986 5.07089C12.3183 5.16694 13.5681 4.44145 14.3295 3.51373Z",fill:"#161614"})]})}function M(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",xmlnsXlink:"http://www.w3.org/1999/xlink",...t,children:[e.jsx("path",{fill:"#4285F4",d:"M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z"}),e.jsx("path",{fill:"#34A853",d:"M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z"}),e.jsx("path",{fill:"#FBBC05",d:"M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34A21.991 21.991 0 0 0 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z"}),e.jsx("path",{fill:"#EA4335",d:"M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z"}),e.jsx("path",{fill:"none",d:"M2 2h44v44H2z"})]})}function L(t){return e.jsx("svg",{version:"1.1",id:"Logo",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"-1 -1 26 26",xmlSpace:"preserve",...t,children:e.jsx("g",{id:"Logo_1_",children:e.jsx("path",{id:"white_background",style:{fill:"#000000"},d:"M 14.285156 10.171875 L 23.222656 0 L 21.105469 0 L 13.34375 8.832031 L 7.148438 0 L 0 0 L 9.371094 13.355469 L 0 24.019531 L 2.117188 24.019531 L 10.308594 14.691406 L 16.851562 24.019531 L 24 24.019531 M 2.878906 1.5625 L 6.132812 1.5625 L 21.101562 22.535156 L 17.851562 22.535156 "})})})}function z(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 293768 333327",width:24,height:24,...t,children:[e.jsx("path",{fill:"#26f4ee",d:"M204958 0c5369 45832 32829 78170 77253 81022v43471l-287 27V87593c-44424-2850-69965-30183-75333-76015l-47060-1v192819c6791 86790-60835 89368-86703 56462 30342 18977 79608 6642 73766-68039V0h58365zM78515 319644c-26591-5471-50770-21358-64969-44588-34496-56437-3401-148418 96651-157884v54345l-164 27v-40773C17274 145544 7961 245185 33650 286633c9906 15984 26169 27227 44864 33011z"}),e.jsx("path",{fill:"#fb2c53",d:"M218434 11587c3505 29920 15609 55386 35948 70259-27522-10602-43651-34934-47791-70262l11843 3zm63489 82463c3786 804 7734 1348 11844 1611v51530c-25770 2537-48321-5946-74600-21749l4034 88251c0 28460 106 41467-15166 67648-34260 58734-95927 63376-137628 35401 54529 22502 137077-4810 136916-103049v-96320c26279 15803 48830 24286 74600 21748V94050zm-171890 37247c5390-1122 11048-1985 16998-2548v54345c-21666 3569-35427 10222-41862 22528-20267 38754 5827 69491 35017 74111-33931 5638-73721-28750-49999-74111 6434-12304 18180-18959 39846-22528v-51797zm64479-119719h1808-1808z"}),e.jsx("path",{d:"M206590 11578c5369 45832 30910 73164 75333 76015v51528c-25770 2539-48321-5945-74600-21748v96320c206 125717-135035 135283-173673 72939-25688-41449-16376-141089 76383-155862v52323c-21666 3569-33412 10224-39846 22528-39762 76035 98926 121273 89342-1225V11577l47060 1z",fill:"#000000"})]})}function H(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 20 20",...t,children:[e.jsxs("g",{clipPath:"url(#clip0_1580_632)",children:[e.jsx("path",{d:"M18.5196 0H1.47622C0.661774 0 0 0.645527 0 1.4415V18.5568C0 19.3535 0.661774 20 1.47622 20H18.5196C19.3354 20 20 19.3535 20 18.5568V1.4415C20 0.645527 19.3354 0 18.5196 0Z",fill:"#0977B6"}),e.jsx("path",{d:"M4.44936 2.75342C5.39763 2.75342 6.16829 3.52424 6.16829 4.47286C6.16829 5.42232 5.39763 6.19325 4.44936 6.19325C3.49858 6.19325 2.729 5.42232 2.729 4.47286C2.729 3.52424 3.49858 2.75342 4.44936 2.75342ZM2.96538 7.49805H5.93192V17.0426H2.96538V7.49805Z",fill:"white"}),e.jsx("path",{d:"M7.79199 7.49809H10.6375V8.80214H10.677C11.0728 8.05177 12.0405 7.2605 13.4836 7.2605C16.4875 7.2605 17.042 9.23743 17.042 11.8072V17.0427H14.0776V12.4012C14.0776 11.2938 14.0574 9.87011 12.5362 9.87011C10.9926 9.87011 10.7562 11.076 10.7562 12.321V17.0427H7.79199L7.79199 7.49809Z",fill:"white"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1580_632",children:e.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}function F(t){return e.jsxs("svg",{width:"1000",height:"1000",viewBox:"0 0 1000 1000",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("rect",{width:"1000",height:"1000",rx:"200",fill:"#855DCD"}),e.jsx("path",{d:"M257.778 155.556H742.222V844.444H671.111V528.889H670.414C662.554 441.677 589.258 373.333 500 373.333C410.742 373.333 337.446 441.677 329.586 528.889H328.889V844.444H257.778V155.556Z",fill:"white"}),e.jsx("path",{d:"M128.889 253.333L157.778 351.111H182.222V746.667C169.949 746.667 160 756.616 160 768.889V795.556H155.556C143.283 795.556 133.333 805.505 133.333 817.778V844.444H382.222V817.778C382.222 805.505 372.273 795.556 360 795.556H355.556V768.889C355.556 756.616 345.606 746.667 333.333 746.667H306.667V253.333H128.889Z",fill:"white"}),e.jsx("path",{d:"M675.556 746.667C663.283 746.667 653.333 756.616 653.333 768.889V795.556H648.889C636.616 795.556 626.667 805.505 626.667 817.778V844.444H875.556V817.778C875.556 805.505 865.606 795.556 853.333 795.556H848.889V768.889C848.889 756.616 838.94 746.667 826.667 746.667V351.111H851.111L880 253.333H702.222V746.667H675.556Z",fill:"white"})]})}function V(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 496 512",...t,children:[e.jsx("path",{fill:"#1ed760",d:"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8Z"}),e.jsx("path",{d:"M406.6 231.1c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3zm-31 76.2c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm-26.9 65.6c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4z"})]})}function Z(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:26,height:26,viewBox:"0 0 140 140",x:"0px",y:"0px",fill:"none",...t,children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"b",children:[e.jsx("stop",{offset:"0",stopColor:"#3771c8"}),e.jsx("stop",{stopColor:"#3771c8",offset:".128"}),e.jsx("stop",{offset:"1",stopColor:"#60f",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"a",children:[e.jsx("stop",{offset:"0",stopColor:"#fd5"}),e.jsx("stop",{offset:".1",stopColor:"#fd5"}),e.jsx("stop",{offset:".5",stopColor:"#ff543e"}),e.jsx("stop",{offset:"1",stopColor:"#c837ab"})]}),e.jsx("radialGradient",{id:"c",cx:"158.429",cy:"578.088",r:"65",xlinkHref:"#a",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(0 -1.98198 1.8439 0 -1031.402 454.004)",fx:"158.429",fy:"578.088"}),e.jsx("radialGradient",{id:"d",cx:"147.694",cy:"473.455",r:"65",xlinkHref:"#b",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(.17394 .86872 -3.5818 .71718 1648.348 -458.493)",fx:"147.694",fy:"473.455"})]}),e.jsx("path",{fill:"url(#c)",d:"M65.03 0C37.888 0 29.95.028 28.407.156c-5.57.463-9.036 1.34-12.812 3.22-2.91 1.445-5.205 3.12-7.47 5.468C4 13.126 1.5 18.394.595 24.656c-.44 3.04-.568 3.66-.594 19.188-.01 5.176 0 11.988 0 21.125 0 27.12.03 35.05.16 36.59.45 5.42 1.3 8.83 3.1 12.56 3.44 7.14 10.01 12.5 17.75 14.5 2.68.69 5.64 1.07 9.44 1.25 1.61.07 18.02.12 34.44.12 16.42 0 32.84-.02 34.41-.1 4.4-.207 6.955-.55 9.78-1.28 7.79-2.01 14.24-7.29 17.75-14.53 1.765-3.64 2.66-7.18 3.065-12.317.088-1.12.125-18.977.125-36.81 0-17.836-.04-35.66-.128-36.78-.41-5.22-1.305-8.73-3.127-12.44-1.495-3.037-3.155-5.305-5.565-7.624C116.9 4 111.64 1.5 105.372.596 102.335.157 101.73.027 86.19 0H65.03z",transform:"translate(1.004 1)"}),e.jsx("path",{fill:"url(#d)",d:"M65.03 0C37.888 0 29.95.028 28.407.156c-5.57.463-9.036 1.34-12.812 3.22-2.91 1.445-5.205 3.12-7.47 5.468C4 13.126 1.5 18.394.595 24.656c-.44 3.04-.568 3.66-.594 19.188-.01 5.176 0 11.988 0 21.125 0 27.12.03 35.05.16 36.59.45 5.42 1.3 8.83 3.1 12.56 3.44 7.14 10.01 12.5 17.75 14.5 2.68.69 5.64 1.07 9.44 1.25 1.61.07 18.02.12 34.44.12 16.42 0 32.84-.02 34.41-.1 4.4-.207 6.955-.55 9.78-1.28 7.79-2.01 14.24-7.29 17.75-14.53 1.765-3.64 2.66-7.18 3.065-12.317.088-1.12.125-18.977.125-36.81 0-17.836-.04-35.66-.128-36.78-.41-5.22-1.305-8.73-3.127-12.44-1.495-3.037-3.155-5.305-5.565-7.624C116.9 4 111.64 1.5 105.372.596 102.335.157 101.73.027 86.19 0H65.03z",transform:"translate(1.004 1)"}),e.jsx("path",{fill:"#fff",d:"M66.004 18c-13.036 0-14.672.057-19.792.29-5.11.234-8.598 1.043-11.65 2.23-3.157 1.226-5.835 2.866-8.503 5.535-2.67 2.668-4.31 5.346-5.54 8.502-1.19 3.053-2 6.542-2.23 11.65C18.06 51.327 18 52.964 18 66s.058 14.667.29 19.787c.235 5.11 1.044 8.598 2.23 11.65 1.227 3.157 2.867 5.835 5.536 8.503 2.667 2.67 5.345 4.314 8.5 5.54 3.054 1.187 6.543 1.996 11.652 2.23 5.12.233 6.755.29 19.79.29 13.037 0 14.668-.057 19.788-.29 5.11-.234 8.602-1.043 11.656-2.23 3.156-1.226 5.83-2.87 8.497-5.54 2.67-2.668 4.31-5.346 5.54-8.502 1.18-3.053 1.99-6.542 2.23-11.65.23-5.12.29-6.752.29-19.788 0-13.036-.06-14.672-.29-19.792-.24-5.11-1.05-8.598-2.23-11.65-1.23-3.157-2.87-5.835-5.54-8.503-2.67-2.67-5.34-4.31-8.5-5.535-3.06-1.187-6.55-1.996-11.66-2.23-5.12-.233-6.75-.29-19.79-.29zm-4.306 8.65c1.278-.002 2.704 0 4.306 0 12.816 0 14.335.046 19.396.276 4.68.214 7.22.996 8.912 1.653 2.24.87 3.837 1.91 5.516 3.59 1.68 1.68 2.72 3.28 3.592 5.52.657 1.69 1.44 4.23 1.653 8.91.23 5.06.28 6.58.28 19.39s-.05 14.33-.28 19.39c-.214 4.68-.996 7.22-1.653 8.91-.87 2.24-1.912 3.835-3.592 5.514-1.68 1.68-3.275 2.72-5.516 3.59-1.69.66-4.232 1.44-8.912 1.654-5.06.23-6.58.28-19.396.28-12.817 0-14.336-.05-19.396-.28-4.68-.216-7.22-.998-8.913-1.655-2.24-.87-3.84-1.91-5.52-3.59-1.68-1.68-2.72-3.276-3.592-5.517-.657-1.69-1.44-4.23-1.653-8.91-.23-5.06-.276-6.58-.276-19.398s.046-14.33.276-19.39c.214-4.68.996-7.22 1.653-8.912.87-2.24 1.912-3.84 3.592-5.52 1.68-1.68 3.28-2.72 5.52-3.592 1.692-.66 4.233-1.44 8.913-1.655 4.428-.2 6.144-.26 15.09-.27zm29.928 7.97c-3.18 0-5.76 2.577-5.76 5.758 0 3.18 2.58 5.76 5.76 5.76 3.18 0 5.76-2.58 5.76-5.76 0-3.18-2.58-5.76-5.76-5.76zm-25.622 6.73c-13.613 0-24.65 11.037-24.65 24.65 0 13.613 11.037 24.645 24.65 24.645C79.617 90.645 90.65 79.613 90.65 66S79.616 41.35 66.003 41.35zm0 8.65c8.836 0 16 7.163 16 16 0 8.836-7.164 16-16 16-8.837 0-16-7.164-16-16 0-8.837 7.163-16 16-16z"})]})}function S(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 240 240",...t,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{x1:"120",y1:"240",x2:"120",gradientUnits:"userSpaceOnUse",id:"telegram-linear-gradient",children:[e.jsx("stop",{offset:"0",stopColor:"#1d93d2"}),e.jsx("stop",{offset:"1",stopColor:"#38b0e3"})]})}),e.jsx("title",{children:"Telegram_logo"}),e.jsx("circle",{cx:"120",cy:"120",r:"120",fill:"url(#telegram-linear-gradient)"}),e.jsx("path",{d:"M81.229,128.772l14.237,39.406s1.78,3.687,3.686,3.687,30.255-29.492,30.255-29.492l31.525-60.89L81.737,118.6Z",fill:"#c8daea"}),e.jsx("path",{d:"M100.106,138.878l-2.733,29.046s-1.144,8.9,7.754,0,17.415-15.763,17.415-15.763",fill:"#a9c6d8"}),e.jsx("path",{d:"M81.486,130.178,52.2,120.636s-3.5-1.42-2.373-4.64c.232-.664.7-1.229,2.1-2.2,6.489-4.523,120.106-45.36,120.106-45.36s3.208-1.081,5.1-.362a2.766,2.766,0,0,1,1.885,2.055,9.357,9.357,0,0,1,.254,2.585c-.009.752-.1,1.449-.169,2.542-.692,11.165-21.4,94.493-21.4,94.493s-1.239,4.876-5.678,5.043A8.13,8.13,0,0,1,146.1,172.5c-8.711-7.493-38.819-27.727-45.472-32.177a1.27,1.27,0,0,1-.546-.9c-.093-.469.417-1.05.417-1.05s52.426-46.6,53.821-51.492c.108-.379-.3-.566-.848-.4-3.482,1.281-63.844,39.4-70.506,43.607A3.21,3.21,0,0,1,81.486,130.178Z",fill:"#fff"})]})}const U=({...t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),B=({...t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),e.jsx("path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2"}),e.jsx("path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21"})]}),P=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",x:0,y:0,viewBox:"0 0 318.6 318.6",width:"318.6px",height:"318.6px",...t,children:[e.jsx("style",{children:".s1{stroke-linecap:round;stroke-linejoin:round}.s2{fill:#e4761b;stroke:#e4761b}.s3{fill:#f6851b;stroke:#f6851b}"}),e.jsx("path",{fill:"#e2761b",stroke:"#e2761b",className:"s1",d:"m274.1 35.5-99.5 73.9L193 65.8z"}),e.jsx("path",{d:"m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z",className:"s1 s2"}),e.jsx("path",{d:"m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z",className:"s1 s2"}),e.jsx("path",{fill:"#d7c1b3",stroke:"#d7c1b3",className:"s1",d:"m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"}),e.jsx("path",{fill:"#233447",stroke:"#233447",className:"s1",d:"m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"}),e.jsx("path",{fill:"#cd6116",stroke:"#cd6116",className:"s1",d:"m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"}),e.jsx("path",{fill:"#e4751f",stroke:"#e4751f",className:"s1",d:"m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"}),e.jsx("path",{d:"m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z",className:"s3"}),e.jsx("path",{fill:"#c0ad9e",stroke:"#c0ad9e",className:"s1",d:"m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"}),e.jsx("path",{fill:"#161616",stroke:"#161616",className:"s1",d:"m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"}),e.jsx("path",{fill:"#763d16",stroke:"#763d16",className:"s1",d:"m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"}),e.jsx("path",{d:"m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z",className:"s3"})]}),O=t=>e.jsxs("svg",{width:"120px",height:"120px",viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("g",{clipPath:"url(#clip0_5_32)",children:e.jsxs("g",{clipPath:"url(#clip1_5_32)",children:[e.jsx("mask",{id:"mask0_5_32",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"120",height:"120",children:e.jsx("path",{d:"M78.163 0H41.837C29.79 0 23.767 0 17.283 2.04999C10.203 4.62701 4.627 10.203 2.05 17.283C0 23.767 0 29.791 0 41.837V78.163C0 90.21 0 96.232 2.05 102.717C4.627 109.797 10.203 115.373 17.283 117.949C23.767 120 29.79 120 41.837 120H78.163C90.21 120 96.232 120 102.717 117.949C109.797 115.373 115.373 109.797 117.95 102.717C120 96.232 120 90.21 120 78.163V41.837C120 29.791 120 23.767 117.95 17.283C115.373 10.203 109.797 4.62701 102.717 2.04999C96.232 0 90.21 0 78.163 0Z",fill:"black"})}),e.jsx("g",{mask:"url(#mask0_5_32)",children:e.jsx("rect",{width:"120",height:"120",fill:"url(#paint0_linear_5_32)"})}),e.jsx("path",{d:"M20 38H26C56.9279 38 82 63.0721 82 94V100H94C97.3137 100 100 97.3137 100 94C100 53.1309 66.8691 20 26 20C22.6863 20 20 22.6863 20 26V38Z",fill:"url(#paint1_radial_5_32)"}),e.jsx("path",{d:"M84 94H100C100 97.3137 97.3137 100 94 100H84V94Z",fill:"url(#paint2_linear_5_32)"}),e.jsx("path",{d:"M26 20L26 36H20L20 26C20 22.6863 22.6863 20 26 20Z",fill:"url(#paint3_linear_5_32)"}),e.jsx("path",{d:"M20 36H26C58.0325 36 84 61.9675 84 94V100H66V94C66 71.9086 48.0914 54 26 54H20V36Z",fill:"url(#paint4_radial_5_32)"}),e.jsx("path",{d:"M68 94H84V100H68V94Z",fill:"url(#paint5_linear_5_32)"}),e.jsx("path",{d:"M20 52L20 36L26 36L26 52H20Z",fill:"url(#paint6_linear_5_32)"}),e.jsx("path",{d:"M20 62C20 65.3137 22.6863 68 26 68C40.3594 68 52 79.6406 52 94C52 97.3137 54.6863 100 58 100H68V94C68 70.804 49.196 52 26 52H20V62Z",fill:"url(#paint7_radial_5_32)"}),e.jsx("path",{d:"M52 94H68V100H58C54.6863 100 52 97.3137 52 94Z",fill:"url(#paint8_radial_5_32)"}),e.jsx("path",{d:"M26 68C22.6863 68 20 65.3137 20 62L20 52L26 52L26 68Z",fill:"url(#paint9_radial_5_32)"})]})}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_5_32",x1:"60",y1:"0",x2:"60",y2:"120",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#174299"}),e.jsx("stop",{offset:"1",stopColor:"#001E59"})]}),e.jsxs("radialGradient",{id:"paint1_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26 94) rotate(-90) scale(74)",children:[e.jsx("stop",{offset:"0.770277",stopColor:"#FF4000"}),e.jsx("stop",{offset:"1",stopColor:"#8754C9"})]}),e.jsxs("linearGradient",{id:"paint2_linear_5_32",x1:"83",y1:"97",x2:"100",y2:"97",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF4000"}),e.jsx("stop",{offset:"1",stopColor:"#8754C9"})]}),e.jsxs("linearGradient",{id:"paint3_linear_5_32",x1:"23",y1:"20",x2:"23",y2:"37",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#8754C9"}),e.jsx("stop",{offset:"1",stopColor:"#FF4000"})]}),e.jsxs("radialGradient",{id:"paint4_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26 94) rotate(-90) scale(58)",children:[e.jsx("stop",{offset:"0.723929",stopColor:"#FFF700"}),e.jsx("stop",{offset:"1",stopColor:"#FF9901"})]}),e.jsxs("linearGradient",{id:"paint5_linear_5_32",x1:"68",y1:"97",x2:"84",y2:"97",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FFF700"}),e.jsx("stop",{offset:"1",stopColor:"#FF9901"})]}),e.jsxs("linearGradient",{id:"paint6_linear_5_32",x1:"23",y1:"52",x2:"23",y2:"36",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FFF700"}),e.jsx("stop",{offset:"1",stopColor:"#FF9901"})]}),e.jsxs("radialGradient",{id:"paint7_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26 94) rotate(-90) scale(42)",children:[e.jsx("stop",{offset:"0.59513",stopColor:"#00AAFF"}),e.jsx("stop",{offset:"1",stopColor:"#01DA40"})]}),e.jsxs("radialGradient",{id:"paint8_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(51 97) scale(17 45.3333)",children:[e.jsx("stop",{stopColor:"#00AAFF"}),e.jsx("stop",{offset:"1",stopColor:"#01DA40"})]}),e.jsxs("radialGradient",{id:"paint9_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(23 69) rotate(-90) scale(17 322.37)",children:[e.jsx("stop",{stopColor:"#00AAFF"}),e.jsx("stop",{offset:"1",stopColor:"#01DA40"})]}),e.jsx("clipPath",{id:"clip0_5_32",children:e.jsx("rect",{width:"120",height:"120",fill:"white"})}),e.jsx("clipPath",{id:"clip1_5_32",children:e.jsx("rect",{width:"120",height:"120",fill:"white"})})]})]}),A=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"108px",height:"108px",viewBox:"0 0 108 108",fill:"none",...t,children:[e.jsx("rect",{width:"108",height:"108",rx:"23",fill:"#AB9FF2"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.5267 69.9229C42.0054 76.8509 34.4292 85.6182 24.348 85.6182C19.5824 85.6182 15 83.6563 15 75.1342C15 53.4305 44.6326 19.8327 72.1268 19.8327C87.768 19.8327 94 30.6846 94 43.0079C94 58.8258 83.7355 76.9122 73.5321 76.9122C70.2939 76.9122 68.7053 75.1342 68.7053 72.314C68.7053 71.5783 68.8275 70.7812 69.0719 69.9229C65.5893 75.8699 58.8685 81.3878 52.5754 81.3878C47.993 81.3878 45.6713 78.5063 45.6713 74.4598C45.6713 72.9884 45.9768 71.4556 46.5267 69.9229ZM83.6761 42.5794C83.6761 46.1704 81.5575 47.9658 79.1875 47.9658C76.7816 47.9658 74.6989 46.1704 74.6989 42.5794C74.6989 38.9885 76.7816 37.1931 79.1875 37.1931C81.5575 37.1931 83.6761 38.9885 83.6761 42.5794ZM70.2103 42.5795C70.2103 46.1704 68.0916 47.9658 65.7216 47.9658C63.3157 47.9658 61.233 46.1704 61.233 42.5795C61.233 38.9885 63.3157 37.1931 65.7216 37.1931C68.0916 37.1931 70.2103 38.9885 70.2103 42.5795Z",fill:"#FFFDF8"})]}),W=t=>e.jsxs("svg",{width:"1024px",height:"1024px",viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("rect",{width:"1024",height:"1024",fill:"#0052FF",rx:100,ry:100}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z",fill:"white"})]}),R=t=>e.jsxs("svg",{width:"176",height:"176",viewBox:"0 0 176 176",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsxs("g",{clipPath:"url(#clip0_1704_1423)",children:[e.jsx("path",{d:"M126.233 176H49.7672C22.287 176 0 153.723 0 126.233V49.7673C0 22.287 22.2769 0 49.7672 0H126.233C153.713 0 176 22.277 176 49.7673V126.233C176 153.723 153.713 176 126.233 176Z",fill:"#2461ED"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.667 85.6591C83.4133 76.3353 62.4196 64.2443 46.6192 54.3891C41.9573 51.0306 44.3234 43.9023 49.9578 43.9023H128.138C132.499 43.9023 135.416 48.7648 133.231 52.4442C127.977 61.5174 120.308 73.0368 113.901 82.1702C110.462 87.0727 104.858 87.9149 100.667 85.6591ZM75.5031 88.6867C92.1858 97.5795 115.566 111.104 132.178 121.33C137.311 124.498 135.266 132.098 129.271 132.098C119.46 132.098 103.518 132.1 87.6592 132.103C71.9639 132.105 56.3497 132.108 46.8398 132.108C42.0476 132.108 39.5913 127.135 41.6265 123.666C48.5041 111.946 56.2338 100.116 62.6603 91.2834C65.5176 87.3433 71.3325 86.461 75.5031 88.6867Z",fill:"white"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1704_1423",children:e.jsx("rect",{width:"176",height:"176",fill:"white"})})})]}),T=t=>e.jsxs("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("rect",{width:"52",height:"52",rx:"26",fill:"#7084FF"}),e.jsx("path",{d:"M43.6781 28.2954C45.1053 25.0988 38.0498 16.168 31.3094 12.4472C27.0608 9.56481 22.6337 9.96081 21.737 11.2264C19.7693 14.0039 28.2527 16.3574 33.9263 19.1037C32.7067 19.6348 31.5574 20.5879 30.8816 21.8067C28.7664 19.4915 24.1239 17.4977 18.6765 19.1037C15.0056 20.186 11.9547 22.7374 10.7756 26.5911C10.4891 26.4635 10.1719 26.3925 9.83814 26.3925C8.56192 26.3925 7.52734 27.4298 7.52734 28.7094C7.52734 29.989 8.56192 31.0263 9.83814 31.0263C10.0747 31.0263 10.8143 30.8672 10.8143 30.8672L22.6337 30.953C17.9068 38.4713 14.1713 39.5704 14.1713 40.8729C14.1713 42.1754 17.7455 41.8224 19.0876 41.3369C25.5121 39.0127 32.4123 31.7692 33.5964 29.6841C38.5688 30.3061 42.7476 30.3796 43.6781 28.2954Z",fill:"url(#paint0_linear_81034_11443)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.8741 19.076C33.8926 19.084 33.911 19.092 33.9294 19.1001C34.1923 18.9962 34.1498 18.6068 34.0776 18.301C33.9116 17.5981 31.0479 14.7629 28.3588 13.493C24.6934 11.762 21.9946 11.8518 21.5972 12.65C22.3407 14.1849 25.8031 15.6258 29.4193 17.1308C30.9407 17.7639 32.4893 18.4084 33.8741 19.076Z",fill:"url(#paint1_linear_81034_11443)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.272 34.5374C28.5323 34.2543 27.697 33.9945 26.7477 33.7587C27.7625 31.9382 27.9754 29.2432 27.0171 27.5392C25.6721 25.1478 23.9838 23.875 20.0605 23.875C17.9027 23.875 12.093 24.6037 11.9899 29.4663C11.9791 29.9743 11.9895 30.44 12.026 30.8685L22.6335 30.9456C21.2017 33.2229 19.8609 34.9113 18.6873 36.1947C20.0979 36.5571 21.2615 36.8612 22.3297 37.1404C23.3394 37.4043 24.2638 37.646 25.2309 37.8934C26.6941 36.8249 28.0698 35.6597 29.272 34.5374Z",fill:"url(#paint2_linear_81034_11443)"}),e.jsx("path",{d:"M10.6324 30.3712C11.0658 34.065 13.1596 35.5127 17.4381 35.9411C21.7166 36.3695 24.1708 36.0821 27.4381 36.3801C30.167 36.6291 32.6036 38.0233 33.5075 37.5415C34.321 37.1079 33.8659 35.5412 32.7774 34.5361C31.3663 33.2333 29.4135 32.3274 25.9773 32.006C26.6621 30.1261 26.4702 27.4903 25.4067 26.0562C23.8689 23.9827 21.0305 23.0453 17.4381 23.4549C13.6848 23.8828 10.0885 25.7354 10.6324 30.3712Z",fill:"url(#paint3_linear_81034_11443)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_81034_11443",x1:"18.249",y1:"25.4646",x2:"43.3806",y2:"32.5728",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{"stop-color":"white"}),e.jsx("stop",{offset:"1","stop-color":"white"})]}),e.jsxs("linearGradient",{id:"paint1_linear_81034_11443",x1:"39.1432",y1:"24.9813",x2:"20.9691",y2:"6.81008",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{"stop-color":"#8697FF"}),e.jsx("stop",{offset:"1","stop-color":"#8697FF","stop-opacity":"0"})]}),e.jsxs("linearGradient",{id:"paint2_linear_81034_11443",x1:"29.7761",y1:"35.1727",x2:"12.345",y2:"25.1792",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{"stop-color":"#8697FF"}),e.jsx("stop",{offset:"1","stop-color":"#8697FF","stop-opacity":"0"})]}),e.jsxs("linearGradient",{id:"paint3_linear_81034_11443",x1:"19.7472",y1:"25.2716",x2:"31.5549",y2:"40.2352",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{"stop-color":"white"}),e.jsx("stop",{offset:"0.983895","stop-color":"#D1D8FF"})]})]})]});function G({method:t,size:s=14}){switch(t.toLowerCase()){case"email":return e.jsx(m,{width:s,height:s});case"phone":return e.jsx(y,{width:s,height:s});case"google":return e.jsx(M,{width:s,height:s});case"apple":return e.jsx(b,{width:s,height:s});case"twitter":return e.jsx(L,{width:s,height:s});case"discord":return e.jsx(k,{width:s,height:s});case"github":return e.jsx(_,{width:s,height:s});case"spotify":return e.jsx(V,{width:s,height:s});case"instagram":return e.jsx(Z,{width:s,height:s});case"tiktok":return e.jsx(z,{width:s,height:s});case"linkedin":return e.jsx(H,{width:s,height:s});case"farcaster":return e.jsx(F,{width:s,height:s});case"telegram":return e.jsx(S,{width:s,height:s});case"metamask":return e.jsx(P,{width:s,height:s});case"coinbase":case"coinbase_wallet":return e.jsx(W,{width:s,height:s});case"phantom":return e.jsx(A,{width:s,height:s});case"rabby":case"rabby_wallet":return e.jsx(T,{width:s,height:s});case"rainbow":return e.jsx(O,{width:s,height:s});case"zerion":return e.jsx(R,{width:s,height:s});case"passkey":return e.jsx(w,{width:s,height:s});case"custom_auth":return e.jsx(U,{width:s,height:s});case"wallet":case"cross_app":case"external_wallet":case"embedded_wallet":case"unknown":return e.jsx(B,{width:s,height:s});default:return e.jsx(v,{width:s,height:s})}}function q(e){switch(e.type){case"email":case"phone":case"passkey":case"farcaster":case"telegram":case"custom_auth":return e.type;case"google_oauth":case"apple_oauth":case"twitter_oauth":case"discord_oauth":case"github_oauth":case"spotify_oauth":case"instagram_oauth":case"tiktok_oauth":case"linkedin_oauth":return e.type.replace("_oauth","");case"wallet":switch(e.walletClientType){case"metamask":case"coinbase":case"coinbase_wallet":case"phantom":case"rabby":case"rabby_wallet":case"rainbow":case"zerion":return e.walletClientType;default:return"wallet"}case"cross_app":return"wallet";default:return""}}function I({account:t,isCopyable:s}){return e.jsxs(e.Fragment,{children:[e.jsx(G,{method:q(t)}),D(t,s)]})}function D(t,r){switch(t.type){case"email":return t.address;case"phone":return t.number;case"wallet":return r?e.jsx(j,{value:t.address,children:s.formatWalletAddress(t.address)}):s.formatWalletAddress(t.address);default:return t.email||t.username||t.subject||t.credentialId}}function E({isCopyable:t}){let{wallets:s}=r.useWallets(),i=N();if(i)return e.jsx(I,{isCopyable:t,account:i});let n=s[0];return n?e.jsx(I,{isCopyable:t,account:{type:"wallet",walletClientType:n.walletClientType,address:n.address}}):null}let N=()=>{let{user:e}=t.usePrivy(),{accountType:r,walletClientType:i,chainType:n}=s.useRecentlyUsedLogin();if(e)return e.linkedAccounts.find((e=>"wallet"===r&&"wallet"===e.type?e.walletClientType===i&&e.chainType===n:e.type===r))??e.linkedAccounts[0]};const $=({...t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("path",{d:"m12 19-7-7 7-7"}),e.jsx("path",{d:"M19 12H5"})]});let X=l.createContext({screen:"Account",setScreen:e=>{},history:[],goBack:()=>{},reset:()=>{}});const Y=()=>l.useContext(X);function J({children:t}){let[s,r]=l.useState("Account"),[i,n]=l.useState([]);return e.jsx(X.Provider,{value:{history:i,goBack:()=>{if(0===i.length)return;let e=[...i],t=e.pop();t&&(n(e),r(t))},screen:s,setScreen:e=>{n([...i,s]),r(e)},reset:()=>{r("Account"),n([])}},children:t})}function Q(){let{history:t,goBack:s}=Y();return 0===t.length?null:e.jsx("button",{onClick:()=>s(),children:e.jsx($,{})})}let K=h.createContext(null);const ee=()=>{let e=h.useContext(K);if(null==e)throw Error("Popover components must be wrapped in <Popover />");return e};function te({children:t,modal:s=!1,...r}){let i=function({initialOpen:e=!1,placement:t="bottom",modal:s,onOpenChange:r}={}){let[i,n]=h.useState(e),[l,a]=h.useState(),[d,c]=h.useState(),p=e=>{n(e),r?.(e)},x=o.useFloating({placement:t,open:i,onOpenChange:p,whileElementsMounted:o.autoUpdate,middleware:[o.offset(5),o.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"end",padding:5}),o.shift({padding:5})]}),C=x.context,u=o.useInteractions([o.useClick(C,{enabled:!0}),o.useDismiss(C),o.useRole(C)]);return h.useMemo((()=>({open:i,setOpen:p,...u,...x,modal:s,labelId:l,descriptionId:d,setLabelId:a,setDescriptionId:c})),[i,p,u,x,s,l,d])}({modal:s,...r});return e.jsx(K.Provider,{value:i,children:t})}const se=h.forwardRef((function({children:t,asChild:s=!1,...r},i){let n=ee(),l=t.ref,a=o.useMergeRefs([n.refs.setReference,i,l]);return s&&h.isValidElement(t)?h.cloneElement(t,n.getReferenceProps({ref:a,...r,...t.props,"data-state":n.open?"open":"closed"})):e.jsx("button",{ref:a,type:"button","data-state":n.open?"open":"closed",...n.getReferenceProps(r),children:t})})),re=h.forwardRef((function({style:t,...s},r){let{context:i,...n}=ee(),l=o.useMergeRefs([n.refs.setFloating,r]),{isMounted:a,styles:d}=o.useTransitionStyles(i,{initial:{opacity:0,transform:"scale(0.9)",transformOrigin:"top right"}});return e.jsx(o.FloatingPortal,{children:e.jsx(o.FloatingFocusManager,{context:i,modal:n.modal,children:a?e.jsx("div",{ref:l,style:{...n.floatingStyles,...t},"aria-labelledby":n.labelId,"aria-describedby":n.descriptionId,...n.getFloatingProps(s),children:e.jsx("div",{style:d,children:s.children})}):e.jsx("div",{})})})})),ie=h.forwardRef((function(t,s){let{setOpen:r}=ee();return e.jsx("button",{type:"button",ref:s,...t,onClick:e=>{t.onClick?.(e),r(!1)}})})),ne=({...t})=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M4 12L12 4M4 4L12 12",stroke:"black",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),le=i.styled.div`
|
|
43
|
+
`;function j({children:t,iconOnly:s,value:r}){let[i,n]=l.useState(!1);return e.jsxs(C,{onClick:()=>{navigator.clipboard.writeText(r||t).catch(console.error),n(!0),setTimeout((()=>n(!1)),1500)},children:[t," ",i?e.jsxs(u,{children:[e.jsx(g,{})," ",!s&&"Copied"]}):e.jsx(f,{})]})}const w=({...t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}),e.jsx("circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"})]}),m=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}),e.jsx("polyline",{points:"10 17 15 12 10 7"}),e.jsx("line",{x1:"15",x2:"3",y1:"12",y2:"12"})]}),v=({...t})=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M14.6667 4.66669L8.68668 8.46669C8.48086 8.59564 8.24289 8.66403 8.00001 8.66403C7.75713 8.66403 7.51916 8.59564 7.31334 8.46669L1.33334 4.66669M2.66668 2.66669H13.3333C14.0697 2.66669 14.6667 3.26364 14.6667 4.00002V12C14.6667 12.7364 14.0697 13.3334 13.3333 13.3334H2.66668C1.9303 13.3334 1.33334 12.7364 1.33334 12V4.00002C1.33334 3.26364 1.9303 2.66669 2.66668 2.66669Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})}),y=({...t})=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("g",{clipPath:"url(#clip0_57_4648)",children:e.jsx("path",{d:"M14.6667 11.28V13.28C14.6674 13.4657 14.6294 13.6494 14.555 13.8195C14.4806 13.9897 14.3715 14.1424 14.2347 14.2679C14.0979 14.3934 13.9364 14.489 13.7605 14.5485C13.5846 14.6079 13.3983 14.63 13.2133 14.6133C11.1619 14.3904 9.19134 13.6894 7.46001 12.5667C5.84923 11.5431 4.48356 10.1774 3.46001 8.56665C2.33333 6.82745 1.63217 4.84731 1.41334 2.78665C1.39668 2.60229 1.41859 2.41649 1.47767 2.24107C1.53676 2.06564 1.63172 1.90444 1.75652 1.76773C1.88131 1.63102 2.03321 1.52179 2.20253 1.447C2.37186 1.37221 2.5549 1.33349 2.74001 1.33332H4.74001C5.06354 1.33013 5.3772 1.4447 5.62251 1.65567C5.86783 1.86664 6.02806 2.15961 6.07334 2.47998C6.15775 3.12003 6.31431 3.74847 6.54001 4.35332C6.6297 4.59193 6.64911 4.85126 6.59594 5.10057C6.54277 5.34988 6.41925 5.57872 6.24001 5.75998L5.39334 6.60665C6.34238 8.27568 7.72431 9.65761 9.39334 10.6067L10.24 9.75998C10.4213 9.58074 10.6501 9.45722 10.8994 9.40405C11.1487 9.35088 11.4081 9.37029 11.6467 9.45998C12.2515 9.68568 12.88 9.84224 13.52 9.92665C13.8439 9.97234 14.1396 10.1355 14.351 10.385C14.5624 10.6345 14.6748 10.953 14.6667 11.28Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_57_4648",children:e.jsx("rect",{width:"16",height:"16",fill:"white"})})})]});function k(t){return e.jsxs("svg",{width:"71",height:"55",viewBox:"0 0 71 55",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t,children:[e.jsx("g",{clipPath:"url(#clip0)",children:e.jsx("path",{d:"M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z",fill:"#5865F2"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0",children:e.jsx("rect",{width:"71",height:"55",fill:"white"})})})]})}function _(t){return e.jsx("svg",{height:"250px",preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 256 250",width:"256px",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t,children:e.jsx("g",{children:e.jsx("path",{d:"M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 96.280588,243.303333 C96.280588,240.251045 96.1618878,230.167899 96.106777,219.472176 C60.4967585,227.215235 52.9826207,204.369712 52.9826207,204.369712 C47.1599584,189.574598 38.770408,185.640538 38.770408,185.640538 C27.1568785,177.696113 39.6458206,177.859325 39.6458206,177.859325 C52.4993419,178.762293 59.267365,191.04987 59.267365,191.04987 C70.6837675,210.618423 89.2115753,204.961093 96.5158685,201.690482 C97.6647155,193.417512 100.981959,187.77078 104.642583,184.574357 C76.211799,181.33766 46.324819,170.362144 46.324819,121.315702 C46.324819,107.340889 51.3250588,95.9223682 59.5132437,86.9583937 C58.1842268,83.7344152 53.8029229,70.715562 60.7532354,53.0843636 C60.7532354,53.0843636 71.5019501,49.6441813 95.9626412,66.2049595 C106.172967,63.368876 117.123047,61.9465949 128.00106,61.8978432 C138.879073,61.9465949 149.837632,63.368876 160.067033,66.2049595 C184.49805,49.6441813 195.231926,53.0843636 195.231926,53.0843636 C202.199197,70.715562 197.815773,83.7344152 196.486756,86.9583937 C204.694018,95.9223682 209.660343,107.340889 209.660343,121.315702 C209.660343,170.478725 179.716133,181.303747 151.213281,184.472614 C155.80443,188.444828 159.895342,196.234518 159.895342,208.176593 C159.895342,225.303317 159.746968,239.087361 159.746968,243.303333 C159.746968,246.709601 162.05102,250.70089 168.53925,249.443941 C219.370432,232.499507 256,184.536204 256,128.00106 C256,57.3066942 198.691187,0 128.00106,0 Z M47.9405593,182.340212 C47.6586465,182.976105 46.6581745,183.166873 45.7467277,182.730227 C44.8183235,182.312656 44.2968914,181.445722 44.5978808,180.80771 C44.8734344,180.152739 45.876026,179.97045 46.8023103,180.409216 C47.7328342,180.826786 48.2627451,181.702199 47.9405593,182.340212 Z M54.2367892,187.958254 C53.6263318,188.524199 52.4329723,188.261363 51.6232682,187.366874 C50.7860088,186.474504 50.6291553,185.281144 51.2480912,184.70672 C51.8776254,184.140775 53.0349512,184.405731 53.8743302,185.298101 C54.7115892,186.201069 54.8748019,187.38595 54.2367892,187.958254 Z M58.5562413,195.146347 C57.7719732,195.691096 56.4895886,195.180261 55.6968417,194.042013 C54.9125733,192.903764 54.9125733,191.538713 55.713799,190.991845 C56.5086651,190.444977 57.7719732,190.936735 58.5753181,192.066505 C59.3574669,193.22383 59.3574669,194.58888 58.5562413,195.146347 Z M65.8613592,203.471174 C65.1597571,204.244846 63.6654083,204.03712 62.5716717,202.981538 C61.4524999,201.94927 61.1409122,200.484596 61.8446341,199.710926 C62.5547146,198.935137 64.0575422,199.15346 65.1597571,200.200564 C66.2704506,201.230712 66.6095936,202.705984 65.8613592,203.471174 Z M75.3025151,206.281542 C74.9930474,207.284134 73.553809,207.739857 72.1039724,207.313809 C70.6562556,206.875043 69.7087748,205.700761 70.0012857,204.687571 C70.302275,203.678621 71.7478721,203.20382 73.2083069,203.659543 C74.6539041,204.09619 75.6035048,205.261994 75.3025151,206.281542 Z M86.046947,207.473627 C86.0829806,208.529209 84.8535871,209.404622 83.3316829,209.4237 C81.8013,209.457614 80.563428,208.603398 80.5464708,207.564772 C80.5464708,206.498591 81.7483088,205.631657 83.2786917,205.606221 C84.8005962,205.576546 86.046947,206.424403 86.046947,207.473627 Z M96.6021471,207.069023 C96.7844366,208.099171 95.7267341,209.156872 94.215428,209.438785 C92.7295577,209.710099 91.3539086,209.074206 91.1652603,208.052538 C90.9808515,206.996955 92.0576306,205.939253 93.5413813,205.66582 C95.054807,205.402984 96.4092596,206.021919 96.6021471,207.069023 Z",fill:"currentColor"})})})}function b(t){return e.jsxs("svg",{height:"250px",preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 24 24",width:"256px",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t,children:[e.jsx("path",{d:"M17.0722 11.6888C17.0471 8.90571 19.3263 7.56847 19.429 7.50274C18.1466 5.60938 16.153 5.35154 15.4417 5.3212C13.7461 5.14678 12.1306 6.32982 11.269 6.32982C10.4074 6.32982 9.08004 5.34648 7.67246 5.37429C5.82158 5.40209 4.11595 6.45874 3.16171 8.13218C1.24068 11.4942 2.6708 16.4817 4.54423 19.2143C5.46091 20.549 6.55041 22.0531 7.98554 21.9975C9.36803 21.9419 9.88905 21.095 11.5571 21.095C13.2251 21.095 13.696 21.9975 15.1537 21.9697C16.6389 21.9393 17.5806 20.6046 18.4897 19.2648C19.5392 17.7153 19.9725 16.2137 19.9975 16.1354C19.965 16.1228 17.1022 15.0155 17.0722 11.6888Z",fill:"#161614"}),e.jsx("path",{d:"M14.3295 3.51373C15.0909 2.58347 15.6043 1.28921 15.4641 0C14.3671 0.0455014 13.0396 0.738135 12.2532 1.66838C11.5494 2.48994 10.9307 3.80695 11.0986 5.07089C12.3183 5.16694 13.5681 4.44145 14.3295 3.51373Z",fill:"#161614"})]})}function M(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",xmlnsXlink:"http://www.w3.org/1999/xlink",...t,children:[e.jsx("path",{fill:"#4285F4",d:"M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z"}),e.jsx("path",{fill:"#34A853",d:"M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z"}),e.jsx("path",{fill:"#FBBC05",d:"M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34A21.991 21.991 0 0 0 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z"}),e.jsx("path",{fill:"#EA4335",d:"M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z"}),e.jsx("path",{fill:"none",d:"M2 2h44v44H2z"})]})}function L(t){return e.jsx("svg",{version:"1.1",id:"Logo",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"-1 -1 26 26",xmlSpace:"preserve",...t,children:e.jsx("g",{id:"Logo_1_",children:e.jsx("path",{id:"white_background",style:{fill:"#000000"},d:"M 14.285156 10.171875 L 23.222656 0 L 21.105469 0 L 13.34375 8.832031 L 7.148438 0 L 0 0 L 9.371094 13.355469 L 0 24.019531 L 2.117188 24.019531 L 10.308594 14.691406 L 16.851562 24.019531 L 24 24.019531 M 2.878906 1.5625 L 6.132812 1.5625 L 21.101562 22.535156 L 17.851562 22.535156 "})})})}function z(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 293768 333327",width:24,height:24,...t,children:[e.jsx("path",{fill:"#26f4ee",d:"M204958 0c5369 45832 32829 78170 77253 81022v43471l-287 27V87593c-44424-2850-69965-30183-75333-76015l-47060-1v192819c6791 86790-60835 89368-86703 56462 30342 18977 79608 6642 73766-68039V0h58365zM78515 319644c-26591-5471-50770-21358-64969-44588-34496-56437-3401-148418 96651-157884v54345l-164 27v-40773C17274 145544 7961 245185 33650 286633c9906 15984 26169 27227 44864 33011z"}),e.jsx("path",{fill:"#fb2c53",d:"M218434 11587c3505 29920 15609 55386 35948 70259-27522-10602-43651-34934-47791-70262l11843 3zm63489 82463c3786 804 7734 1348 11844 1611v51530c-25770 2537-48321-5946-74600-21749l4034 88251c0 28460 106 41467-15166 67648-34260 58734-95927 63376-137628 35401 54529 22502 137077-4810 136916-103049v-96320c26279 15803 48830 24286 74600 21748V94050zm-171890 37247c5390-1122 11048-1985 16998-2548v54345c-21666 3569-35427 10222-41862 22528-20267 38754 5827 69491 35017 74111-33931 5638-73721-28750-49999-74111 6434-12304 18180-18959 39846-22528v-51797zm64479-119719h1808-1808z"}),e.jsx("path",{d:"M206590 11578c5369 45832 30910 73164 75333 76015v51528c-25770 2539-48321-5945-74600-21748v96320c206 125717-135035 135283-173673 72939-25688-41449-16376-141089 76383-155862v52323c-21666 3569-33412 10224-39846 22528-39762 76035 98926 121273 89342-1225V11577l47060 1z",fill:"#000000"})]})}function H(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 20 20",...t,children:[e.jsxs("g",{clipPath:"url(#clip0_1580_632)",children:[e.jsx("path",{d:"M18.5196 0H1.47622C0.661774 0 0 0.645527 0 1.4415V18.5568C0 19.3535 0.661774 20 1.47622 20H18.5196C19.3354 20 20 19.3535 20 18.5568V1.4415C20 0.645527 19.3354 0 18.5196 0Z",fill:"#0977B6"}),e.jsx("path",{d:"M4.44936 2.75342C5.39763 2.75342 6.16829 3.52424 6.16829 4.47286C6.16829 5.42232 5.39763 6.19325 4.44936 6.19325C3.49858 6.19325 2.729 5.42232 2.729 4.47286C2.729 3.52424 3.49858 2.75342 4.44936 2.75342ZM2.96538 7.49805H5.93192V17.0426H2.96538V7.49805Z",fill:"white"}),e.jsx("path",{d:"M7.79199 7.49809H10.6375V8.80214H10.677C11.0728 8.05177 12.0405 7.2605 13.4836 7.2605C16.4875 7.2605 17.042 9.23743 17.042 11.8072V17.0427H14.0776V12.4012C14.0776 11.2938 14.0574 9.87011 12.5362 9.87011C10.9926 9.87011 10.7562 11.076 10.7562 12.321V17.0427H7.79199L7.79199 7.49809Z",fill:"white"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1580_632",children:e.jsx("rect",{width:"20",height:"20",fill:"white"})})})]})}function F(t){return e.jsxs("svg",{width:"1000",height:"1000",viewBox:"0 0 1000 1000",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("rect",{width:"1000",height:"1000",rx:"200",fill:"#855DCD"}),e.jsx("path",{d:"M257.778 155.556H742.222V844.444H671.111V528.889H670.414C662.554 441.677 589.258 373.333 500 373.333C410.742 373.333 337.446 441.677 329.586 528.889H328.889V844.444H257.778V155.556Z",fill:"white"}),e.jsx("path",{d:"M128.889 253.333L157.778 351.111H182.222V746.667C169.949 746.667 160 756.616 160 768.889V795.556H155.556C143.283 795.556 133.333 805.505 133.333 817.778V844.444H382.222V817.778C382.222 805.505 372.273 795.556 360 795.556H355.556V768.889C355.556 756.616 345.606 746.667 333.333 746.667H306.667V253.333H128.889Z",fill:"white"}),e.jsx("path",{d:"M675.556 746.667C663.283 746.667 653.333 756.616 653.333 768.889V795.556H648.889C636.616 795.556 626.667 805.505 626.667 817.778V844.444H875.556V817.778C875.556 805.505 865.606 795.556 853.333 795.556H848.889V768.889C848.889 756.616 838.94 746.667 826.667 746.667V351.111H851.111L880 253.333H702.222V746.667H675.556Z",fill:"white"})]})}function V(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 496 512",...t,children:[e.jsx("path",{fill:"#1ed760",d:"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8Z"}),e.jsx("path",{d:"M406.6 231.1c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3zm-31 76.2c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm-26.9 65.6c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4z"})]})}function Z(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:26,height:26,viewBox:"0 0 140 140",x:"0px",y:"0px",fill:"none",...t,children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"b",children:[e.jsx("stop",{offset:"0",stopColor:"#3771c8"}),e.jsx("stop",{stopColor:"#3771c8",offset:".128"}),e.jsx("stop",{offset:"1",stopColor:"#60f",stopOpacity:"0"})]}),e.jsxs("linearGradient",{id:"a",children:[e.jsx("stop",{offset:"0",stopColor:"#fd5"}),e.jsx("stop",{offset:".1",stopColor:"#fd5"}),e.jsx("stop",{offset:".5",stopColor:"#ff543e"}),e.jsx("stop",{offset:"1",stopColor:"#c837ab"})]}),e.jsx("radialGradient",{id:"c",cx:"158.429",cy:"578.088",r:"65",xlinkHref:"#a",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(0 -1.98198 1.8439 0 -1031.402 454.004)",fx:"158.429",fy:"578.088"}),e.jsx("radialGradient",{id:"d",cx:"147.694",cy:"473.455",r:"65",xlinkHref:"#b",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(.17394 .86872 -3.5818 .71718 1648.348 -458.493)",fx:"147.694",fy:"473.455"})]}),e.jsx("path",{fill:"url(#c)",d:"M65.03 0C37.888 0 29.95.028 28.407.156c-5.57.463-9.036 1.34-12.812 3.22-2.91 1.445-5.205 3.12-7.47 5.468C4 13.126 1.5 18.394.595 24.656c-.44 3.04-.568 3.66-.594 19.188-.01 5.176 0 11.988 0 21.125 0 27.12.03 35.05.16 36.59.45 5.42 1.3 8.83 3.1 12.56 3.44 7.14 10.01 12.5 17.75 14.5 2.68.69 5.64 1.07 9.44 1.25 1.61.07 18.02.12 34.44.12 16.42 0 32.84-.02 34.41-.1 4.4-.207 6.955-.55 9.78-1.28 7.79-2.01 14.24-7.29 17.75-14.53 1.765-3.64 2.66-7.18 3.065-12.317.088-1.12.125-18.977.125-36.81 0-17.836-.04-35.66-.128-36.78-.41-5.22-1.305-8.73-3.127-12.44-1.495-3.037-3.155-5.305-5.565-7.624C116.9 4 111.64 1.5 105.372.596 102.335.157 101.73.027 86.19 0H65.03z",transform:"translate(1.004 1)"}),e.jsx("path",{fill:"url(#d)",d:"M65.03 0C37.888 0 29.95.028 28.407.156c-5.57.463-9.036 1.34-12.812 3.22-2.91 1.445-5.205 3.12-7.47 5.468C4 13.126 1.5 18.394.595 24.656c-.44 3.04-.568 3.66-.594 19.188-.01 5.176 0 11.988 0 21.125 0 27.12.03 35.05.16 36.59.45 5.42 1.3 8.83 3.1 12.56 3.44 7.14 10.01 12.5 17.75 14.5 2.68.69 5.64 1.07 9.44 1.25 1.61.07 18.02.12 34.44.12 16.42 0 32.84-.02 34.41-.1 4.4-.207 6.955-.55 9.78-1.28 7.79-2.01 14.24-7.29 17.75-14.53 1.765-3.64 2.66-7.18 3.065-12.317.088-1.12.125-18.977.125-36.81 0-17.836-.04-35.66-.128-36.78-.41-5.22-1.305-8.73-3.127-12.44-1.495-3.037-3.155-5.305-5.565-7.624C116.9 4 111.64 1.5 105.372.596 102.335.157 101.73.027 86.19 0H65.03z",transform:"translate(1.004 1)"}),e.jsx("path",{fill:"#fff",d:"M66.004 18c-13.036 0-14.672.057-19.792.29-5.11.234-8.598 1.043-11.65 2.23-3.157 1.226-5.835 2.866-8.503 5.535-2.67 2.668-4.31 5.346-5.54 8.502-1.19 3.053-2 6.542-2.23 11.65C18.06 51.327 18 52.964 18 66s.058 14.667.29 19.787c.235 5.11 1.044 8.598 2.23 11.65 1.227 3.157 2.867 5.835 5.536 8.503 2.667 2.67 5.345 4.314 8.5 5.54 3.054 1.187 6.543 1.996 11.652 2.23 5.12.233 6.755.29 19.79.29 13.037 0 14.668-.057 19.788-.29 5.11-.234 8.602-1.043 11.656-2.23 3.156-1.226 5.83-2.87 8.497-5.54 2.67-2.668 4.31-5.346 5.54-8.502 1.18-3.053 1.99-6.542 2.23-11.65.23-5.12.29-6.752.29-19.788 0-13.036-.06-14.672-.29-19.792-.24-5.11-1.05-8.598-2.23-11.65-1.23-3.157-2.87-5.835-5.54-8.503-2.67-2.67-5.34-4.31-8.5-5.535-3.06-1.187-6.55-1.996-11.66-2.23-5.12-.233-6.75-.29-19.79-.29zm-4.306 8.65c1.278-.002 2.704 0 4.306 0 12.816 0 14.335.046 19.396.276 4.68.214 7.22.996 8.912 1.653 2.24.87 3.837 1.91 5.516 3.59 1.68 1.68 2.72 3.28 3.592 5.52.657 1.69 1.44 4.23 1.653 8.91.23 5.06.28 6.58.28 19.39s-.05 14.33-.28 19.39c-.214 4.68-.996 7.22-1.653 8.91-.87 2.24-1.912 3.835-3.592 5.514-1.68 1.68-3.275 2.72-5.516 3.59-1.69.66-4.232 1.44-8.912 1.654-5.06.23-6.58.28-19.396.28-12.817 0-14.336-.05-19.396-.28-4.68-.216-7.22-.998-8.913-1.655-2.24-.87-3.84-1.91-5.52-3.59-1.68-1.68-2.72-3.276-3.592-5.517-.657-1.69-1.44-4.23-1.653-8.91-.23-5.06-.276-6.58-.276-19.398s.046-14.33.276-19.39c.214-4.68.996-7.22 1.653-8.912.87-2.24 1.912-3.84 3.592-5.52 1.68-1.68 3.28-2.72 5.52-3.592 1.692-.66 4.233-1.44 8.913-1.655 4.428-.2 6.144-.26 15.09-.27zm29.928 7.97c-3.18 0-5.76 2.577-5.76 5.758 0 3.18 2.58 5.76 5.76 5.76 3.18 0 5.76-2.58 5.76-5.76 0-3.18-2.58-5.76-5.76-5.76zm-25.622 6.73c-13.613 0-24.65 11.037-24.65 24.65 0 13.613 11.037 24.645 24.65 24.645C79.617 90.645 90.65 79.613 90.65 66S79.616 41.35 66.003 41.35zm0 8.65c8.836 0 16 7.163 16 16 0 8.836-7.164 16-16 16-8.837 0-16-7.164-16-16 0-8.837 7.163-16 16-16z"})]})}function S(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 240 240",...t,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{x1:"120",y1:"240",x2:"120",gradientUnits:"userSpaceOnUse",id:"telegram-linear-gradient",children:[e.jsx("stop",{offset:"0",stopColor:"#1d93d2"}),e.jsx("stop",{offset:"1",stopColor:"#38b0e3"})]})}),e.jsx("title",{children:"Telegram_logo"}),e.jsx("circle",{cx:"120",cy:"120",r:"120",fill:"url(#telegram-linear-gradient)"}),e.jsx("path",{d:"M81.229,128.772l14.237,39.406s1.78,3.687,3.686,3.687,30.255-29.492,30.255-29.492l31.525-60.89L81.737,118.6Z",fill:"#c8daea"}),e.jsx("path",{d:"M100.106,138.878l-2.733,29.046s-1.144,8.9,7.754,0,17.415-15.763,17.415-15.763",fill:"#a9c6d8"}),e.jsx("path",{d:"M81.486,130.178,52.2,120.636s-3.5-1.42-2.373-4.64c.232-.664.7-1.229,2.1-2.2,6.489-4.523,120.106-45.36,120.106-45.36s3.208-1.081,5.1-.362a2.766,2.766,0,0,1,1.885,2.055,9.357,9.357,0,0,1,.254,2.585c-.009.752-.1,1.449-.169,2.542-.692,11.165-21.4,94.493-21.4,94.493s-1.239,4.876-5.678,5.043A8.13,8.13,0,0,1,146.1,172.5c-8.711-7.493-38.819-27.727-45.472-32.177a1.27,1.27,0,0,1-.546-.9c-.093-.469.417-1.05.417-1.05s52.426-46.6,53.821-51.492c.108-.379-.3-.566-.848-.4-3.482,1.281-63.844,39.4-70.506,43.607A3.21,3.21,0,0,1,81.486,130.178Z",fill:"#fff"})]})}const U=({...t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),B=({...t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),e.jsx("path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2"}),e.jsx("path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21"})]}),P=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",x:0,y:0,viewBox:"0 0 318.6 318.6",width:"318.6px",height:"318.6px",...t,children:[e.jsx("style",{children:".s1{stroke-linecap:round;stroke-linejoin:round}.s2{fill:#e4761b;stroke:#e4761b}.s3{fill:#f6851b;stroke:#f6851b}"}),e.jsx("path",{fill:"#e2761b",stroke:"#e2761b",className:"s1",d:"m274.1 35.5-99.5 73.9L193 65.8z"}),e.jsx("path",{d:"m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z",className:"s1 s2"}),e.jsx("path",{d:"m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z",className:"s1 s2"}),e.jsx("path",{fill:"#d7c1b3",stroke:"#d7c1b3",className:"s1",d:"m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"}),e.jsx("path",{fill:"#233447",stroke:"#233447",className:"s1",d:"m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"}),e.jsx("path",{fill:"#cd6116",stroke:"#cd6116",className:"s1",d:"m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"}),e.jsx("path",{fill:"#e4751f",stroke:"#e4751f",className:"s1",d:"m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"}),e.jsx("path",{d:"m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z",className:"s3"}),e.jsx("path",{fill:"#c0ad9e",stroke:"#c0ad9e",className:"s1",d:"m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"}),e.jsx("path",{fill:"#161616",stroke:"#161616",className:"s1",d:"m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"}),e.jsx("path",{fill:"#763d16",stroke:"#763d16",className:"s1",d:"m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"}),e.jsx("path",{d:"m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z",className:"s3"})]}),O=t=>e.jsxs("svg",{width:"120px",height:"120px",viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("g",{clipPath:"url(#clip0_5_32)",children:e.jsxs("g",{clipPath:"url(#clip1_5_32)",children:[e.jsx("mask",{id:"mask0_5_32",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"120",height:"120",children:e.jsx("path",{d:"M78.163 0H41.837C29.79 0 23.767 0 17.283 2.04999C10.203 4.62701 4.627 10.203 2.05 17.283C0 23.767 0 29.791 0 41.837V78.163C0 90.21 0 96.232 2.05 102.717C4.627 109.797 10.203 115.373 17.283 117.949C23.767 120 29.79 120 41.837 120H78.163C90.21 120 96.232 120 102.717 117.949C109.797 115.373 115.373 109.797 117.95 102.717C120 96.232 120 90.21 120 78.163V41.837C120 29.791 120 23.767 117.95 17.283C115.373 10.203 109.797 4.62701 102.717 2.04999C96.232 0 90.21 0 78.163 0Z",fill:"black"})}),e.jsx("g",{mask:"url(#mask0_5_32)",children:e.jsx("rect",{width:"120",height:"120",fill:"url(#paint0_linear_5_32)"})}),e.jsx("path",{d:"M20 38H26C56.9279 38 82 63.0721 82 94V100H94C97.3137 100 100 97.3137 100 94C100 53.1309 66.8691 20 26 20C22.6863 20 20 22.6863 20 26V38Z",fill:"url(#paint1_radial_5_32)"}),e.jsx("path",{d:"M84 94H100C100 97.3137 97.3137 100 94 100H84V94Z",fill:"url(#paint2_linear_5_32)"}),e.jsx("path",{d:"M26 20L26 36H20L20 26C20 22.6863 22.6863 20 26 20Z",fill:"url(#paint3_linear_5_32)"}),e.jsx("path",{d:"M20 36H26C58.0325 36 84 61.9675 84 94V100H66V94C66 71.9086 48.0914 54 26 54H20V36Z",fill:"url(#paint4_radial_5_32)"}),e.jsx("path",{d:"M68 94H84V100H68V94Z",fill:"url(#paint5_linear_5_32)"}),e.jsx("path",{d:"M20 52L20 36L26 36L26 52H20Z",fill:"url(#paint6_linear_5_32)"}),e.jsx("path",{d:"M20 62C20 65.3137 22.6863 68 26 68C40.3594 68 52 79.6406 52 94C52 97.3137 54.6863 100 58 100H68V94C68 70.804 49.196 52 26 52H20V62Z",fill:"url(#paint7_radial_5_32)"}),e.jsx("path",{d:"M52 94H68V100H58C54.6863 100 52 97.3137 52 94Z",fill:"url(#paint8_radial_5_32)"}),e.jsx("path",{d:"M26 68C22.6863 68 20 65.3137 20 62L20 52L26 52L26 68Z",fill:"url(#paint9_radial_5_32)"})]})}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_5_32",x1:"60",y1:"0",x2:"60",y2:"120",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#174299"}),e.jsx("stop",{offset:"1",stopColor:"#001E59"})]}),e.jsxs("radialGradient",{id:"paint1_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26 94) rotate(-90) scale(74)",children:[e.jsx("stop",{offset:"0.770277",stopColor:"#FF4000"}),e.jsx("stop",{offset:"1",stopColor:"#8754C9"})]}),e.jsxs("linearGradient",{id:"paint2_linear_5_32",x1:"83",y1:"97",x2:"100",y2:"97",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FF4000"}),e.jsx("stop",{offset:"1",stopColor:"#8754C9"})]}),e.jsxs("linearGradient",{id:"paint3_linear_5_32",x1:"23",y1:"20",x2:"23",y2:"37",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#8754C9"}),e.jsx("stop",{offset:"1",stopColor:"#FF4000"})]}),e.jsxs("radialGradient",{id:"paint4_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26 94) rotate(-90) scale(58)",children:[e.jsx("stop",{offset:"0.723929",stopColor:"#FFF700"}),e.jsx("stop",{offset:"1",stopColor:"#FF9901"})]}),e.jsxs("linearGradient",{id:"paint5_linear_5_32",x1:"68",y1:"97",x2:"84",y2:"97",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FFF700"}),e.jsx("stop",{offset:"1",stopColor:"#FF9901"})]}),e.jsxs("linearGradient",{id:"paint6_linear_5_32",x1:"23",y1:"52",x2:"23",y2:"36",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#FFF700"}),e.jsx("stop",{offset:"1",stopColor:"#FF9901"})]}),e.jsxs("radialGradient",{id:"paint7_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26 94) rotate(-90) scale(42)",children:[e.jsx("stop",{offset:"0.59513",stopColor:"#00AAFF"}),e.jsx("stop",{offset:"1",stopColor:"#01DA40"})]}),e.jsxs("radialGradient",{id:"paint8_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(51 97) scale(17 45.3333)",children:[e.jsx("stop",{stopColor:"#00AAFF"}),e.jsx("stop",{offset:"1",stopColor:"#01DA40"})]}),e.jsxs("radialGradient",{id:"paint9_radial_5_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(23 69) rotate(-90) scale(17 322.37)",children:[e.jsx("stop",{stopColor:"#00AAFF"}),e.jsx("stop",{offset:"1",stopColor:"#01DA40"})]}),e.jsx("clipPath",{id:"clip0_5_32",children:e.jsx("rect",{width:"120",height:"120",fill:"white"})}),e.jsx("clipPath",{id:"clip1_5_32",children:e.jsx("rect",{width:"120",height:"120",fill:"white"})})]})]}),A=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"108px",height:"108px",viewBox:"0 0 108 108",fill:"none",...t,children:[e.jsx("rect",{width:"108",height:"108",rx:"23",fill:"#AB9FF2"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.5267 69.9229C42.0054 76.8509 34.4292 85.6182 24.348 85.6182C19.5824 85.6182 15 83.6563 15 75.1342C15 53.4305 44.6326 19.8327 72.1268 19.8327C87.768 19.8327 94 30.6846 94 43.0079C94 58.8258 83.7355 76.9122 73.5321 76.9122C70.2939 76.9122 68.7053 75.1342 68.7053 72.314C68.7053 71.5783 68.8275 70.7812 69.0719 69.9229C65.5893 75.8699 58.8685 81.3878 52.5754 81.3878C47.993 81.3878 45.6713 78.5063 45.6713 74.4598C45.6713 72.9884 45.9768 71.4556 46.5267 69.9229ZM83.6761 42.5794C83.6761 46.1704 81.5575 47.9658 79.1875 47.9658C76.7816 47.9658 74.6989 46.1704 74.6989 42.5794C74.6989 38.9885 76.7816 37.1931 79.1875 37.1931C81.5575 37.1931 83.6761 38.9885 83.6761 42.5794ZM70.2103 42.5795C70.2103 46.1704 68.0916 47.9658 65.7216 47.9658C63.3157 47.9658 61.233 46.1704 61.233 42.5795C61.233 38.9885 63.3157 37.1931 65.7216 37.1931C68.0916 37.1931 70.2103 38.9885 70.2103 42.5795Z",fill:"#FFFDF8"})]}),W=t=>e.jsxs("svg",{width:"1024px",height:"1024px",viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("rect",{width:"1024",height:"1024",fill:"#0052FF",rx:100,ry:100}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z",fill:"white"})]}),R=t=>e.jsxs("svg",{width:"176",height:"176",viewBox:"0 0 176 176",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsxs("g",{clipPath:"url(#clip0_1704_1423)",children:[e.jsx("path",{d:"M126.233 176H49.7672C22.287 176 0 153.723 0 126.233V49.7673C0 22.287 22.2769 0 49.7672 0H126.233C153.713 0 176 22.277 176 49.7673V126.233C176 153.723 153.713 176 126.233 176Z",fill:"#2461ED"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.667 85.6591C83.4133 76.3353 62.4196 64.2443 46.6192 54.3891C41.9573 51.0306 44.3234 43.9023 49.9578 43.9023H128.138C132.499 43.9023 135.416 48.7648 133.231 52.4442C127.977 61.5174 120.308 73.0368 113.901 82.1702C110.462 87.0727 104.858 87.9149 100.667 85.6591ZM75.5031 88.6867C92.1858 97.5795 115.566 111.104 132.178 121.33C137.311 124.498 135.266 132.098 129.271 132.098C119.46 132.098 103.518 132.1 87.6592 132.103C71.9639 132.105 56.3497 132.108 46.8398 132.108C42.0476 132.108 39.5913 127.135 41.6265 123.666C48.5041 111.946 56.2338 100.116 62.6603 91.2834C65.5176 87.3433 71.3325 86.461 75.5031 88.6867Z",fill:"white"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_1704_1423",children:e.jsx("rect",{width:"176",height:"176",fill:"white"})})})]}),T=t=>e.jsxs("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[e.jsx("rect",{width:"52",height:"52",rx:"26",fill:"#7084FF"}),e.jsx("path",{d:"M43.6781 28.2954C45.1053 25.0988 38.0498 16.168 31.3094 12.4472C27.0608 9.56481 22.6337 9.96081 21.737 11.2264C19.7693 14.0039 28.2527 16.3574 33.9263 19.1037C32.7067 19.6348 31.5574 20.5879 30.8816 21.8067C28.7664 19.4915 24.1239 17.4977 18.6765 19.1037C15.0056 20.186 11.9547 22.7374 10.7756 26.5911C10.4891 26.4635 10.1719 26.3925 9.83814 26.3925C8.56192 26.3925 7.52734 27.4298 7.52734 28.7094C7.52734 29.989 8.56192 31.0263 9.83814 31.0263C10.0747 31.0263 10.8143 30.8672 10.8143 30.8672L22.6337 30.953C17.9068 38.4713 14.1713 39.5704 14.1713 40.8729C14.1713 42.1754 17.7455 41.8224 19.0876 41.3369C25.5121 39.0127 32.4123 31.7692 33.5964 29.6841C38.5688 30.3061 42.7476 30.3796 43.6781 28.2954Z",fill:"url(#paint0_linear_81034_11443)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.8741 19.076C33.8926 19.084 33.911 19.092 33.9294 19.1001C34.1923 18.9962 34.1498 18.6068 34.0776 18.301C33.9116 17.5981 31.0479 14.7629 28.3588 13.493C24.6934 11.762 21.9946 11.8518 21.5972 12.65C22.3407 14.1849 25.8031 15.6258 29.4193 17.1308C30.9407 17.7639 32.4893 18.4084 33.8741 19.076Z",fill:"url(#paint1_linear_81034_11443)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.272 34.5374C28.5323 34.2543 27.697 33.9945 26.7477 33.7587C27.7625 31.9382 27.9754 29.2432 27.0171 27.5392C25.6721 25.1478 23.9838 23.875 20.0605 23.875C17.9027 23.875 12.093 24.6037 11.9899 29.4663C11.9791 29.9743 11.9895 30.44 12.026 30.8685L22.6335 30.9456C21.2017 33.2229 19.8609 34.9113 18.6873 36.1947C20.0979 36.5571 21.2615 36.8612 22.3297 37.1404C23.3394 37.4043 24.2638 37.646 25.2309 37.8934C26.6941 36.8249 28.0698 35.6597 29.272 34.5374Z",fill:"url(#paint2_linear_81034_11443)"}),e.jsx("path",{d:"M10.6324 30.3712C11.0658 34.065 13.1596 35.5127 17.4381 35.9411C21.7166 36.3695 24.1708 36.0821 27.4381 36.3801C30.167 36.6291 32.6036 38.0233 33.5075 37.5415C34.321 37.1079 33.8659 35.5412 32.7774 34.5361C31.3663 33.2333 29.4135 32.3274 25.9773 32.006C26.6621 30.1261 26.4702 27.4903 25.4067 26.0562C23.8689 23.9827 21.0305 23.0453 17.4381 23.4549C13.6848 23.8828 10.0885 25.7354 10.6324 30.3712Z",fill:"url(#paint3_linear_81034_11443)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_81034_11443",x1:"18.249",y1:"25.4646",x2:"43.3806",y2:"32.5728",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{"stop-color":"white"}),e.jsx("stop",{offset:"1","stop-color":"white"})]}),e.jsxs("linearGradient",{id:"paint1_linear_81034_11443",x1:"39.1432",y1:"24.9813",x2:"20.9691",y2:"6.81008",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{"stop-color":"#8697FF"}),e.jsx("stop",{offset:"1","stop-color":"#8697FF","stop-opacity":"0"})]}),e.jsxs("linearGradient",{id:"paint2_linear_81034_11443",x1:"29.7761",y1:"35.1727",x2:"12.345",y2:"25.1792",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{"stop-color":"#8697FF"}),e.jsx("stop",{offset:"1","stop-color":"#8697FF","stop-opacity":"0"})]}),e.jsxs("linearGradient",{id:"paint3_linear_81034_11443",x1:"19.7472",y1:"25.2716",x2:"31.5549",y2:"40.2352",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{"stop-color":"white"}),e.jsx("stop",{offset:"0.983895","stop-color":"#D1D8FF"})]})]})]});function G({method:t,size:s=14}){switch(t.toLowerCase()){case"email":return e.jsx(v,{width:s,height:s});case"phone":return e.jsx(y,{width:s,height:s});case"google":return e.jsx(M,{width:s,height:s});case"apple":return e.jsx(b,{width:s,height:s});case"twitter":return e.jsx(L,{width:s,height:s});case"discord":return e.jsx(k,{width:s,height:s});case"github":return e.jsx(_,{width:s,height:s});case"spotify":return e.jsx(V,{width:s,height:s});case"instagram":return e.jsx(Z,{width:s,height:s});case"tiktok":return e.jsx(z,{width:s,height:s});case"linkedin":return e.jsx(H,{width:s,height:s});case"farcaster":return e.jsx(F,{width:s,height:s});case"telegram":return e.jsx(S,{width:s,height:s});case"metamask":return e.jsx(P,{width:s,height:s});case"coinbase":case"coinbase_wallet":return e.jsx(W,{width:s,height:s});case"phantom":return e.jsx(A,{width:s,height:s});case"rabby":case"rabby_wallet":return e.jsx(T,{width:s,height:s});case"rainbow":return e.jsx(O,{width:s,height:s});case"zerion":return e.jsx(R,{width:s,height:s});case"passkey":return e.jsx(w,{width:s,height:s});case"custom_auth":return e.jsx(U,{width:s,height:s});case"wallet":case"cross_app":case"external_wallet":case"embedded_wallet":case"unknown":return e.jsx(B,{width:s,height:s});default:return e.jsx(m,{width:s,height:s})}}function q(e){switch(e.type){case"email":case"phone":case"passkey":case"farcaster":case"telegram":case"custom_auth":return e.type;case"google_oauth":case"apple_oauth":case"twitter_oauth":case"discord_oauth":case"github_oauth":case"spotify_oauth":case"instagram_oauth":case"tiktok_oauth":case"linkedin_oauth":return e.type.replace("_oauth","");case"wallet":switch(e.walletClientType){case"metamask":case"coinbase":case"coinbase_wallet":case"phantom":case"rabby":case"rabby_wallet":case"rainbow":case"zerion":return e.walletClientType;default:return"wallet"}case"cross_app":return"wallet";default:return""}}function I({account:t,isCopyable:s}){return e.jsxs(e.Fragment,{children:[e.jsx(G,{method:q(t)}),D(t,s)]})}function D(t,r){switch(t.type){case"email":return t.address;case"phone":return t.number;case"wallet":return r?e.jsx(j,{value:t.address,children:s.formatWalletAddress(t.address)}):s.formatWalletAddress(t.address);default:return t.email||t.username||t.subject||t.credentialId}}function E({isCopyable:t}){let{wallets:s}=r.useWallets(),i=N();if(i)return e.jsx(I,{isCopyable:t,account:i});let n=s[0];return n?e.jsx(I,{isCopyable:t,account:{type:"wallet",walletClientType:n.walletClientType,address:n.address}}):null}let N=()=>{let{user:e}=t.usePrivy(),{accountType:r,walletClientType:i,chainType:n}=s.useRecentlyUsedLogin();if(e)return e.linkedAccounts.find((e=>"wallet"===r&&"wallet"===e.type?e.walletClientType===i&&e.chainType===n:e.type===r))??e.linkedAccounts[0]};const $=({...t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[e.jsx("path",{d:"m12 19-7-7 7-7"}),e.jsx("path",{d:"M19 12H5"})]});let X=l.createContext({screen:"Account",setScreen:e=>{},history:[],goBack:()=>{},reset:()=>{}});const Y=()=>l.useContext(X);function J({children:t}){let[s,r]=l.useState("Account"),[i,n]=l.useState([]);return e.jsx(X.Provider,{value:{history:i,goBack:()=>{if(0===i.length)return;let e=[...i],t=e.pop();t&&(n(e),r(t))},screen:s,setScreen:e=>{n([...i,s]),r(e)},reset:()=>{r("Account"),n([])}},children:t})}function Q(){let{history:t,goBack:s}=Y();return 0===t.length?null:e.jsx("button",{onClick:()=>s(),children:e.jsx($,{})})}let K=h.createContext(null);const ee=()=>{let e=h.useContext(K);if(null==e)throw Error("Popover components must be wrapped in <Popover />");return e};function te({children:t,modal:s=!1,...r}){let i=function({initialOpen:e=!1,placement:t="bottom",modal:s,onOpenChange:r}={}){let[i,n]=h.useState(e),[l,a]=h.useState(),[d,c]=h.useState(),p=e=>{n(e),r?.(e)},x=o.useFloating({placement:t,open:i,onOpenChange:p,whileElementsMounted:o.autoUpdate,middleware:[o.offset(5),o.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"end",padding:5}),o.shift({padding:5})]}),C=x.context,u=o.useInteractions([o.useClick(C,{enabled:!0}),o.useDismiss(C),o.useRole(C)]);return h.useMemo((()=>({open:i,setOpen:p,...u,...x,modal:s,labelId:l,descriptionId:d,setLabelId:a,setDescriptionId:c})),[i,p,u,x,s,l,d])}({modal:s,...r});return e.jsx(K.Provider,{value:i,children:t})}const se=h.forwardRef((function({children:t,asChild:s=!1,...r},i){let n=ee(),l=t.ref,a=o.useMergeRefs([n.refs.setReference,i,l]);return s&&h.isValidElement(t)?h.cloneElement(t,n.getReferenceProps({ref:a,...r,...t.props,"data-state":n.open?"open":"closed"})):e.jsx("button",{ref:a,type:"button","data-state":n.open?"open":"closed",...n.getReferenceProps(r),children:t})})),re=h.forwardRef((function({style:t,...s},r){let{context:i,...n}=ee(),l=o.useMergeRefs([n.refs.setFloating,r]),{isMounted:a,styles:d}=o.useTransitionStyles(i,{initial:{opacity:0,transform:"scale(0.9)",transformOrigin:"top right"}});return e.jsx(o.FloatingPortal,{children:e.jsx(o.FloatingFocusManager,{context:i,modal:n.modal,children:a?e.jsx("div",{ref:l,style:{...n.floatingStyles,...t},"aria-labelledby":n.labelId,"aria-describedby":n.descriptionId,...n.getFloatingProps(s),children:e.jsx("div",{style:d,children:s.children})}):e.jsx("div",{})})})})),ie=h.forwardRef((function(t,s){let{setOpen:r}=ee();return e.jsx("button",{type:"button",ref:s,...t,onClick:e=>{t.onClick?.(e),r(!1)}})})),ne=({...t})=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M4 12L12 4M4 4L12 12",stroke:"black",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),le=i.styled.div`
|
|
44
44
|
--background: var(--privy-color-background);
|
|
45
45
|
--foreground: var(--privy-color-foreground);
|
|
46
46
|
|
|
47
47
|
background: var(--background);
|
|
48
|
-
border-radius: var(--privy-border-radius-
|
|
48
|
+
border-radius: var(--privy-border-radius-md);
|
|
49
49
|
box-shadow: 0px 0px 20px -3px rgba(0, 0, 0, 0.1), 0px 4px 10px -3px rgba(0, 0, 0, 0.08);
|
|
50
50
|
color: var(--foreground);
|
|
51
51
|
display: flex;
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
`;function je(){let{user:i}=t.usePrivy(),{wallets:n}=r.useWallets(),{fundWallet:l}=s.useFundWallet();if(!i?.wallet?.address)return null;let o=n.find((e=>e.address===i.wallet.address));return o?e.jsx(fe,{onClick:()=>l(o.address),disabled:!i.wallet,children:"Add Funds"}):null}const we=i.styled.div`
|
|
117
117
|
margin-top: 1rem;
|
|
118
118
|
padding: 0 1rem;
|
|
119
|
-
`;function
|
|
119
|
+
`;function me(){let{user:i}=t.usePrivy(),{rpcConfig:n,appId:o,chains:d}=t.usePrivyInternal(),{wallets:c}=r.useWallets(),h=c.find((e=>e.address===i?.wallet?.address))||c[0],p=d[0],{balance:x}=function(e,r,i,n){let{chains:o}=t.usePrivyInternal(),[d,c]=l.useState(0n),[h,p]=l.useState(!1),x=l.useMemo((()=>{let t=n||o[0];if(t)return a.createPublicClient({chain:n,transport:a.http(s.getJsonRpcEndpointFromChain(t,e,r))})}),[n,e,r]),C=l.useCallback((async()=>{if(!i)return;let e=i.address;if(!e||!x)return;p(!0);let t=await x.getBalance({address:e}).catch(console.error);t&&(c(t),p(!1))}),[x,i,c]);return l.useEffect((()=>{C().catch(console.error)}),[]),{balance:d,isLoading:h,reloadBalance:C}}(n,o,h,p);return h&&p?e.jsx(we,{children:e.jsx(s.WalletInfoCard,{title:"Your wallet",isLoading:void 0===x,errMsg:void 0,showIcon:!0,balance:void 0!==x?s.getNativeCurrencyFromWei(x,p.nativeCurrency.symbol,4,!0):"",address:h.address,statusColor:"gray"})}):null}let ve=i.styled(de)`
|
|
120
120
|
padding-top: 4px;
|
|
121
121
|
padding-bottom: 4px;
|
|
122
|
-
`;function ye(){let{user:
|
|
122
|
+
`;function ye({minimal:i}){let{user:n}=t.usePrivy(),{logout:l}=s.useLogout(),{setScreen:o}=Y(),a=function(){let e=r.useAppConfig();return e.fundingConfig&&e.fundingConfig.methods.length>0}();return e.jsxs(ve,{children:[e.jsx(pe,{children:e.jsx(E,{isCopyable:!0})}),n&&e.jsxs(e.Fragment,{children:[i||e.jsxs(he,{onClick:()=>o("Settings"),children:[e.jsx(ge,{}),"Settings"]}),e.jsxs(he,{onClick:l,children:[e.jsx(ue,{}),"Log out"]})]}),!i&&e.jsx(me,{}),a&&!i&&e.jsx(je,{})]})}let ke=i.styled.div`
|
|
123
123
|
padding: 0px 24px;
|
|
124
124
|
font-size: 14px;
|
|
125
125
|
font-weight: 500;
|
|
@@ -129,4 +129,4 @@
|
|
|
129
129
|
border-top: 1px solid var(--privy-color-foreground-4);
|
|
130
130
|
`;function be(){let{user:s,exportWallet:r}=t.usePrivy(),i=d.getPrivyEthereumWallet(s);return e.jsxs(de,{children:[e.jsx(ke,{children:"Linked accounts"}),s?.linkedAccounts.map(((t,s)=>e.jsx(pe,{children:e.jsx(I,{account:t,isCopyable:!0})},s))),e.jsx(_e,{}),e.jsx(ke,{children:"Wallet settings"}),e.jsxs(he,{disabled:!i,onClick:()=>r({address:i?.address??""}),children:[e.jsx(w,{}),"Export private key"]})]})}let Me=i.styled.div`
|
|
131
131
|
transition: height 0.2s ease;
|
|
132
|
-
`;function Le(){let{screen:
|
|
132
|
+
`;function Le({minimal:t}){let{screen:r}=Y(),i=l.useRef(null),n=s.useElementHeight(i),o=null;switch(r){case"Account":o=e.jsx(ye,{minimal:t});break;case"Settings":o=e.jsx(be,{})}return e.jsx(Me,{style:{height:n},children:e.jsx("div",{ref:i,children:o})})}function ze(t){return e.jsx(J,{children:e.jsx(He,{...t})})}function He({children:t,minimal:r}){let{screen:i,reset:n}=Y();return e.jsxs(te,{placement:"bottom-end",onOpenChange:e=>{e&&n()},children:[e.jsx(se,{asChild:!0,children:t}),e.jsx(re,{children:e.jsxs(le,{children:[e.jsxs(oe,{children:[e.jsx(Ce,{}),r||e.jsxs(ae,{children:[e.jsx(Q,{}),i]})]}),e.jsx(Le,{minimal:r}),r?e.jsx("div",{}):e.jsx(s.BlobbyFooter,{})]})})]})}exports.UserPill=({expanded:i=!1,action:n={type:"login"},label:l=("login"===n.type?"Log in":"Connect wallet"),size:o=44,ui:{minimal:a}={minimal:!1}})=>{let{user:d,ready:c}=t.usePrivy(),{wallets:h}=r.useWallets(),{login:C}=s.useLogin(),{connectWallet:u}=s.useConnectWallet(),g="login"===n.type?()=>C(n.options):()=>u(n.options);return c?d&&!d.isGuest||h[0]&&"connectWallet"===n.type?e.jsx(ze,{minimal:a,children:e.jsx(x,{$variant:i?"default":"rounded",$size:o,children:i?e.jsx(E,{isCopyable:!1}):e.jsx(p,{width:"100%",height:"100%",style:{padding:"4px"}})})}):e.jsx(x,{$size:o,$variant:i?"default":"rounded",onClick:g,children:l}):e.jsx(x,{$size:o,$variant:i?"default":"rounded",disabled:!0,onClick:g,children:l})};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react"),r=require("react/jsx-runtime"),t=require("styled-components"),o=require("./useWallets.js"),n=require("./privy-context.js"),i=require("@heroicons/react/24/outline/Square2StackIcon"),l=require("@ethersproject/bignumber"),s=require("@ethersproject/units"),a=require("@ethersproject/providers");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var C=c(i);let p=e=>l.BigNumber.from(e);class u{get(e){let r=localStorage.getItem(e);return null===r?void 0:JSON.parse(r)}put(e,r){void 0!==r?localStorage.setItem(e,JSON.stringify(r)):this.del(e)}del(e){localStorage.removeItem(e)}getKeys(){return Object.entries(localStorage).map((([e])=>e))}}var d="undefined"!=typeof window&&window.localStorage?new u:new class{get(e){return this._cache[e]}put(e,r){void 0!==r?this._cache[e]=r:this.del(e)}del(e){delete this._cache[e]}getKeys(){return Object.keys(this._cache)}constructor(){this._cache={}}};const f=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isClover?"Clover":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOneKey?"OneKey Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isSafePal?"SafePal Wallet":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally||e.isTaho?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0,v=(e,r)=>{if(!e.isMetaMask)return!1;if(e.isMetaMask&&!r)return!0;if(e.isBraveWallet&&!e._events&&!e._state||"MetaMask"!==f(e))return!1;if(e.providers)for(let r of e.providers)if(!v(r))return!1;return!0},h=(e,r=3,t=4,o="ethereum")=>{if(!e)return"";let n="ethereum"===o?2:0;return r+t+n+3>=e.length?e:`${e.slice(0,n+r)}...${e.slice(e.length-t,e.length)}`},y=e=>new Promise((r=>setTimeout(r,e)));const g=(e,r,t)=>{let o,i=e.id,l=Number(e.id);if(e.rpcUrls.privyWalletOverride&&e.rpcUrls.privyWalletOverride.http[0])o=e.rpcUrls.privyWalletOverride.http[0];else if(r.rpcUrls&&r.rpcUrls[l])o=r.rpcUrls[l];else if(e.rpcUrls.privy?.http[0]){let r=new URL(e.rpcUrls.privy.http[0]);r.searchParams.append("privyAppId",t),o=r.toString()}else o=e.rpcUrls.public?.http[0]?e.rpcUrls.public.http[0]:e.rpcUrls.default?.http[0];if(!o)throw new n.PrivyConnectorError(`No RPC url found for ${i}`);return o};const m=e.createContext(void 0);let L=()=>e.useContext(m);function x(r,t){if(!t)return;let o=L().current[r];return e.useEffect((()=>{for(let[e,n]of Object.entries(t))o.hasOwnProperty(e)||console.warn(`Invalid event type "${e}" for action "${r}"`),o[e]?.push(n);return()=>{for(let[e,n]of Object.entries(t))o.hasOwnProperty(e)||console.warn(`Invalid event type "${e}" for action "${r}"`),o[e]=o[e]?.filter((e=>e!==n))}}),[t])}function w(e,r,t,...o){for(let n of e.current[r][t])n(...o)}function b(e){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 460 40",version:"1.1",...e,children:r.jsxs("g",{id:"surface1",children:[r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 0 15.390625 L 0 30.78125 L 4.644531 30.78125 L 4.644531 19.964844 L 8.21875 19.957031 C 10.6875 19.953125 11.851562 19.945312 11.992188 19.9375 C 12.992188 19.855469 13.480469 19.789062 14.167969 19.640625 C 15.96875 19.253906 17.503906 18.460938 18.769531 17.265625 C 20.429688 15.699219 21.414062 13.402344 21.582031 10.710938 C 21.601562 10.410156 21.601562 9.523438 21.582031 9.222656 C 21.472656 7.453125 21.015625 5.867188 20.222656 4.5 C 19.152344 2.652344 17.328125 1.238281 15.144531 0.566406 C 14.207031 0.277344 13.394531 0.136719 12.050781 0.0273438 C 11.902344 0.015625 10.1875 0.0078125 5.925781 0.00390625 L 0 0 Z M 10.851562 3.996094 C 12.695312 4.054688 13.957031 4.453125 15.011719 5.296875 C 15.230469 5.472656 15.546875 5.785156 15.699219 5.976562 C 16.351562 6.792969 16.746094 7.84375 16.886719 9.113281 C 16.925781 9.460938 16.925781 10.472656 16.886719 10.820312 C 16.8125 11.496094 16.660156 12.128906 16.445312 12.671875 C 16.167969 13.359375 15.839844 13.867188 15.363281 14.347656 C 14.5 15.214844 13.398438 15.730469 11.992188 15.921875 C 11.386719 16.003906 11.585938 16 7.976562 16.007812 L 4.644531 16.011719 L 4.644531 3.980469 L 7.539062 3.980469 C 9.132812 3.980469 10.621094 3.988281 10.851562 3.996094 Z M 10.851562 3.996094 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 187.648438 5.714844 L 187.648438 11.433594 L 187.378906 11.433594 L 187.292969 11.285156 C 187.019531 10.816406 186.402344 9.941406 186.078125 9.5625 C 185.648438 9.066406 185.082031 8.609375 184.378906 8.203125 C 183.839844 7.894531 183.328125 7.703125 182.652344 7.566406 C 182.125 7.460938 181.628906 7.410156 180.957031 7.398438 C 179.804688 7.375 178.789062 7.519531 177.777344 7.851562 C 175.886719 8.472656 174.289062 9.707031 173.148438 11.425781 C 171.96875 13.203125 171.3125 15.28125 171.125 17.820312 C 171.054688 18.800781 171.0625 19.96875 171.140625 20.945312 C 171.34375 23.417969 172.007812 25.476562 173.160156 27.203125 C 173.554688 27.792969 173.917969 28.234375 174.433594 28.738281 C 175.859375 30.140625 177.671875 30.980469 179.703125 31.179688 C 181.007812 31.3125 182.382812 31.1875 183.375 30.847656 C 183.753906 30.71875 183.96875 30.621094 184.347656 30.40625 C 185.09375 29.984375 185.726562 29.46875 186.179688 28.914062 C 186.589844 28.410156 187.015625 27.8125 187.277344 27.367188 L 187.378906 27.195312 L 187.75 27.195312 L 187.75 30.78125 L 192.132812 30.78125 L 192.132812 0 L 187.648438 0 Z M 182.40625 11.25 C 183.707031 11.386719 184.703125 11.851562 185.578125 12.730469 C 186.472656 13.621094 187.078125 14.816406 187.425781 16.367188 C 187.789062 17.976562 187.816406 20.089844 187.492188 21.804688 C 187.222656 23.25 186.695312 24.480469 185.945312 25.417969 C 185.664062 25.769531 185.214844 26.203125 184.867188 26.449219 C 184.042969 27.035156 183.148438 27.328125 182.011719 27.382812 C 181.199219 27.421875 180.375 27.3125 179.703125 27.070312 C 178.242188 26.539062 177.050781 25.289062 176.371094 23.566406 C 175.980469 22.578125 175.75 21.519531 175.648438 20.253906 C 175.621094 19.933594 175.613281 18.902344 175.632812 18.523438 C 175.714844 16.960938 176.03125 15.609375 176.589844 14.46875 C 176.894531 13.839844 177.230469 13.34375 177.652344 12.890625 C 178.617188 11.851562 179.746094 11.332031 181.253906 11.226562 C 181.503906 11.210938 182.148438 11.222656 182.40625 11.25 Z M 182.40625 11.25 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 210.074219 15.386719 L 210.082031 30.773438 L 214.464844 30.773438 L 214.472656 27.195312 L 214.84375 27.195312 L 214.929688 27.351562 C 215.171875 27.785156 215.765625 28.613281 216.140625 29.046875 C 216.753906 29.757812 217.800781 30.476562 218.707031 30.804688 C 219.84375 31.21875 221.445312 31.339844 222.929688 31.128906 C 223.839844 31 224.777344 30.710938 225.570312 30.3125 C 227.277344 29.457031 228.632812 28.09375 229.621094 26.238281 C 230.335938 24.894531 230.796875 23.351562 231.003906 21.609375 C 231.210938 19.878906 231.175781 17.914062 230.910156 16.289062 C 230.730469 15.191406 230.453125 14.199219 230.054688 13.261719 C 229.914062 12.929688 229.601562 12.300781 229.417969 11.984375 C 228.464844 10.355469 227.207031 9.140625 225.65625 8.355469 C 224.316406 7.679688 222.867188 7.363281 221.234375 7.398438 C 220.097656 7.417969 219.195312 7.582031 218.425781 7.90625 C 217.917969 8.117188 217.28125 8.511719 216.777344 8.929688 C 216.550781 9.121094 216.1875 9.484375 216.011719 9.703125 C 215.605469 10.21875 215.1875 10.816406 214.917969 11.285156 L 214.839844 11.425781 L 214.574219 11.433594 L 214.574219 0 L 210.074219 0 Z M 221.195312 11.25 C 222.273438 11.359375 223.140625 11.691406 223.90625 12.289062 C 224.5625 12.800781 225.105469 13.464844 225.535156 14.273438 C 225.972656 15.105469 226.324219 16.265625 226.476562 17.382812 C 226.632812 18.535156 226.640625 19.777344 226.5 20.921875 C 226.304688 22.488281 225.824219 23.886719 225.113281 24.945312 C 224.40625 26 223.480469 26.738281 222.421875 27.097656 C 221.515625 27.402344 220.382812 27.476562 219.363281 27.296875 C 217.949219 27.046875 216.765625 26.234375 215.910156 24.925781 C 215.734375 24.660156 215.625 24.464844 215.460938 24.125 C 214.960938 23.097656 214.660156 21.925781 214.539062 20.550781 C 214.496094 20.0625 214.480469 19.660156 214.488281 19.023438 C 214.5 18.257812 214.535156 17.785156 214.625 17.167969 C 215 14.636719 216.09375 12.789062 217.769531 11.859375 C 218.414062 11.5 219.195312 11.285156 220.0625 11.226562 C 220.308594 11.210938 220.941406 11.222656 221.195312 11.25 Z M 221.195312 11.25 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 69.050781 2.167969 C 69.042969 2.171875 69.039062 3.417969 69.039062 4.9375 L 69.039062 7.699219 L 65.675781 7.699219 L 65.675781 11.300781 L 69.039062 11.300781 L 69.039062 18.105469 C 69.039062 22.296875 69.042969 25.042969 69.054688 25.253906 C 69.113281 26.640625 69.453125 27.691406 70.144531 28.617188 C 70.890625 29.609375 71.839844 30.273438 73.117188 30.691406 C 74.03125 30.992188 74.949219 31.109375 76.023438 31.074219 C 76.652344 31.050781 77.117188 31.003906 77.519531 30.917969 C 78.042969 30.808594 78.679688 30.625 78.679688 30.585938 C 78.679688 30.558594 77.878906 26.898438 77.871094 26.890625 C 77.867188 26.886719 77.703125 26.914062 77.503906 26.953125 C 76.960938 27.054688 76.828125 27.066406 76.347656 27.070312 C 75.796875 27.070312 75.488281 27.027344 75.066406 26.886719 C 74.738281 26.78125 74.511719 26.640625 74.273438 26.402344 C 73.867188 25.988281 73.667969 25.515625 73.570312 24.730469 C 73.550781 24.53125 73.546875 24.109375 73.542969 17.910156 L 73.539062 11.300781 L 78.269531 11.300781 L 78.269531 7.699219 L 73.539062 7.699219 L 73.539062 2.15625 L 71.300781 2.15625 C 70.066406 2.15625 69.054688 2.164062 69.050781 2.167969 Z M 69.050781 2.167969 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 133.339844 2.167969 C 133.335938 2.171875 133.332031 3.417969 133.332031 4.9375 L 133.332031 7.699219 L 129.953125 7.699219 L 129.953125 11.300781 L 133.332031 11.300781 L 133.332031 18.199219 C 133.332031 22.738281 133.335938 25.195312 133.34375 25.371094 C 133.421875 26.769531 133.800781 27.832031 134.5625 28.785156 C 134.851562 29.148438 135.308594 29.574219 135.695312 29.855469 C 136.550781 30.464844 137.730469 30.890625 138.964844 31.03125 C 139.808594 31.125 140.992188 31.082031 141.769531 30.925781 C 142.066406 30.867188 142.523438 30.75 142.769531 30.667969 L 142.972656 30.605469 L 142.964844 30.558594 C 142.9375 30.410156 142.164062 26.894531 142.160156 26.890625 C 142.160156 26.886719 141.992188 26.914062 141.789062 26.953125 C 141.238281 27.054688 141.121094 27.066406 140.625 27.070312 C 140.257812 27.070312 140.167969 27.066406 139.992188 27.035156 C 139.140625 26.90625 138.671875 26.636719 138.289062 26.070312 C 138.101562 25.792969 137.976562 25.453125 137.902344 25.027344 C 137.835938 24.628906 137.839844 25.039062 137.835938 17.9375 L 137.832031 11.300781 L 142.546875 11.300781 L 142.546875 7.699219 L 137.832031 7.699219 L 137.828125 4.929688 L 137.824219 2.164062 L 135.585938 2.160156 C 134.359375 2.160156 133.34375 2.164062 133.339844 2.167969 Z M 133.339844 2.167969 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 293.414062 2.363281 C 290.832031 2.503906 288.324219 3.332031 286.167969 4.761719 C 283.429688 6.574219 281.375 9.265625 280.359375 12.371094 C 279.976562 13.539062 279.765625 14.632812 279.664062 15.953125 C 279.652344 16.105469 279.644531 16.46875 279.644531 16.929688 C 279.644531 17.679688 279.652344 17.863281 279.710938 18.429688 C 279.949219 20.777344 280.746094 23.003906 282.046875 24.972656 C 284.277344 28.34375 287.800781 30.640625 291.773438 31.3125 C 293.144531 31.542969 294.632812 31.574219 296.019531 31.398438 C 297.984375 31.152344 299.871094 30.511719 301.574219 29.507812 C 303.199219 28.550781 304.679688 27.230469 305.816406 25.722656 C 307.4375 23.570312 308.425781 21.054688 308.6875 18.417969 C 308.746094 17.8125 308.753906 17.675781 308.753906 16.929688 C 308.753906 16.183594 308.746094 16.042969 308.6875 15.441406 C 308.464844 13.214844 307.707031 11.019531 306.503906 9.121094 C 305.691406 7.847656 304.671875 6.683594 303.507812 5.710938 C 303.105469 5.375 302.582031 4.988281 302.148438 4.707031 C 299.992188 3.296875 297.53125 2.5 294.941406 2.363281 C 294.613281 2.347656 293.746094 2.347656 293.414062 2.363281 Z M 293.414062 2.363281 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 350.792969 2.363281 C 347.769531 2.574219 345.125 4.042969 343.238281 6.5625 C 343.082031 6.765625 342.792969 7.191406 342.664062 7.394531 L 342.605469 7.496094 L 342.136719 7.496094 L 342.128906 3.128906 L 334.769531 3.121094 L 334.769531 39.53125 L 342.589844 39.53125 L 342.589844 27.265625 L 342.832031 27.265625 L 343.078125 27.269531 L 343.125 27.339844 C 343.261719 27.542969 343.738281 28.0625 344.082031 28.378906 C 345.996094 30.167969 348.269531 31.25 350.613281 31.488281 C 350.921875 31.519531 351.710938 31.535156 352.074219 31.511719 C 354.226562 31.386719 356.121094 30.726562 357.796875 29.507812 C 358.5625 28.953125 359.359375 28.183594 359.992188 27.382812 C 361.660156 25.28125 362.726562 22.492188 363.074219 19.328125 C 363.171875 18.464844 363.199219 17.933594 363.199219 16.957031 C 363.203125 16.152344 363.191406 15.855469 363.132812 15.195312 C 362.847656 11.777344 361.722656 8.75 359.898438 6.480469 C 359.382812 5.84375 358.679688 5.140625 358.054688 4.644531 C 356.613281 3.496094 354.914062 2.75 353.117188 2.472656 C 352.53125 2.382812 352.246094 2.359375 351.566406 2.355469 C 351.246094 2.351562 350.898438 2.355469 350.792969 2.363281 Z M 349.855469 8.40625 C 351.128906 8.5625 352.1875 9.0625 353.0625 9.914062 C 354.039062 10.867188 354.726562 12.222656 355.089844 13.914062 C 355.425781 15.484375 355.472656 17.589844 355.214844 19.296875 C 355.023438 20.539062 354.667969 21.65625 354.167969 22.550781 C 354.03125 22.796875 353.734375 23.238281 353.574219 23.4375 C 352.796875 24.410156 351.800781 25.050781 350.628906 25.339844 C 350.160156 25.457031 349.808594 25.5 349.257812 25.511719 C 348.816406 25.523438 348.566406 25.507812 348.207031 25.460938 C 346.855469 25.269531 345.703125 24.632812 344.84375 23.605469 C 344.324219 22.980469 343.886719 22.175781 343.585938 21.289062 C 343.128906 19.941406 342.917969 18.277344 342.96875 16.457031 C 343.023438 14.480469 343.351562 12.925781 343.992188 11.613281 C 344.59375 10.386719 345.429688 9.5 346.492188 8.960938 C 347.148438 8.625 347.789062 8.453125 348.632812 8.378906 C 348.808594 8.363281 349.667969 8.382812 349.855469 8.40625 Z M 349.855469 8.40625 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 363.625 3.109375 C 363.617188 3.117188 363.617188 4.550781 363.617188 6.292969 L 363.625 9.457031 L 365.050781 9.464844 C 366.308594 9.472656 366.492188 9.476562 366.585938 9.496094 C 367.007812 9.589844 367.253906 9.78125 367.378906 10.121094 C 367.464844 10.351562 367.460938 10.199219 367.460938 13.078125 C 367.460938 14.828125 367.464844 15.71875 367.476562 15.71875 C 367.484375 15.71875 367.488281 18.242188 367.488281 23.257812 L 367.488281 30.796875 L 375.308594 30.796875 L 375.308594 23.40625 C 375.308594 18.929688 375.316406 15.839844 375.324219 15.566406 C 375.351562 14.628906 375.433594 13.941406 375.59375 13.289062 C 376.050781 11.398438 377.128906 10.359375 378.9375 10.0625 C 379.457031 9.976562 379.136719 9.984375 383.941406 9.976562 L 388.34375 9.972656 L 388.34375 3.089844 L 385.246094 3.089844 C 381.761719 3.089844 381.328125 3.101562 380.574219 3.1875 C 378.742188 3.398438 377.527344 3.976562 376.609375 5.074219 C 376.109375 5.671875 375.707031 6.394531 375.351562 7.332031 L 375.289062 7.496094 L 374.828125 7.496094 L 374.828125 3.089844 L 369.230469 3.089844 C 364.765625 3.089844 363.628906 3.09375 363.625 3.109375 Z M 363.625 3.109375 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 390.804688 16.945312 L 390.804688 30.796875 L 394.667969 30.792969 L 398.527344 30.789062 L 398.527344 3.097656 L 394.667969 3.09375 L 390.804688 3.089844 Z M 390.804688 16.945312 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 400.601562 3.101562 C 400.59375 3.105469 400.589844 3.285156 400.589844 3.496094 L 400.589844 3.878906 L 405.253906 17.289062 C 407.824219 24.667969 409.929688 30.722656 409.9375 30.746094 L 409.957031 30.796875 L 420.265625 30.796875 L 420.285156 30.75 C 420.292969 30.722656 422.402344 24.671875 424.964844 17.304688 L 429.625 3.90625 L 429.625 3.089844 L 422.195312 3.097656 L 415.507812 22.347656 L 415.253906 22.351562 L 415 22.351562 L 411.722656 12.84375 C 409.921875 7.613281 408.429688 3.277344 408.40625 3.210938 L 408.359375 3.089844 L 404.484375 3.089844 C 402.351562 3.089844 400.605469 3.09375 400.601562 3.101562 Z M 400.601562 3.101562 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 430.976562 3.101562 C 430.96875 3.105469 430.964844 3.285156 430.964844 3.5 L 430.964844 3.886719 L 436.039062 18.476562 C 438.832031 26.5 441.117188 33.074219 441.125 33.089844 C 441.132812 33.113281 440.898438 33.113281 436.320312 33.113281 L 431.503906 33.113281 L 431.503906 39.53125 L 436.453125 39.53125 C 441.539062 39.53125 441.675781 39.527344 442.316406 39.46875 C 445.46875 39.1875 447.609375 37.84375 448.945312 35.316406 C 449.234375 34.773438 449.394531 34.375 449.816406 33.164062 C 450.339844 31.667969 454.875 18.636719 458.996094 6.78125 L 460.003906 3.890625 L 460.003906 3.089844 L 456.285156 3.09375 L 452.570312 3.097656 L 445.882812 22.347656 L 445.628906 22.351562 L 445.375 22.351562 L 442.113281 12.886719 C 440.320312 7.679688 438.828125 3.34375 438.796875 3.253906 L 438.738281 3.089844 L 434.863281 3.089844 C 432.730469 3.089844 430.980469 3.09375 430.976562 3.101562 Z M 430.976562 3.101562 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 36.566406 7.363281 C 35.210938 7.460938 33.960938 7.960938 32.945312 8.808594 C 32.199219 9.433594 31.601562 10.300781 31.277344 11.226562 L 31.230469 11.359375 L 31.003906 11.359375 L 31.003906 7.699219 L 26.648438 7.699219 L 26.648438 30.78125 L 31.148438 30.78125 L 31.152344 23.480469 C 31.15625 15.488281 31.148438 16.136719 31.234375 15.660156 C 31.414062 14.671875 31.886719 13.777344 32.617188 13.050781 C 32.855469 12.8125 33.03125 12.664062 33.285156 12.484375 C 34.121094 11.902344 35.03125 11.589844 36.15625 11.503906 C 36.445312 11.480469 37.214844 11.496094 37.542969 11.527344 C 37.96875 11.566406 38.753906 11.691406 38.964844 11.746094 L 38.996094 11.753906 L 38.996094 9.601562 C 38.996094 8.417969 38.996094 7.449219 38.992188 7.449219 C 38.988281 7.449219 38.898438 7.441406 38.789062 7.429688 C 38.175781 7.363281 37.050781 7.332031 36.566406 7.363281 Z M 36.566406 7.363281 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 51.078125 7.410156 C 48.75 7.53125 46.777344 8.25 45.125 9.566406 C 44.34375 10.191406 43.679688 10.914062 43.101562 11.765625 C 42.003906 13.386719 41.332031 15.335938 41.101562 17.550781 C 40.980469 18.710938 40.984375 20.035156 41.109375 21.195312 C 41.359375 23.535156 42.121094 25.582031 43.363281 27.246094 C 44.617188 28.933594 46.367188 30.167969 48.355469 30.769531 C 50.472656 31.40625 53.050781 31.40625 55.164062 30.769531 C 57.09375 30.183594 58.800781 29.003906 60.042969 27.402344 C 61.421875 25.621094 62.230469 23.402344 62.449219 20.824219 C 62.574219 19.355469 62.503906 17.757812 62.257812 16.402344 C 61.769531 13.691406 60.515625 11.382812 58.679688 9.796875 C 57.101562 8.441406 55.152344 7.640625 52.933594 7.445312 C 52.371094 7.394531 51.617188 7.378906 51.078125 7.410156 Z M 52.496094 11.191406 C 53.375 11.285156 54.117188 11.53125 54.78125 11.941406 C 55.535156 12.410156 56.265625 13.199219 56.765625 14.085938 C 57.417969 15.234375 57.828125 16.746094 57.941406 18.429688 C 57.953125 18.546875 57.960938 18.84375 57.964844 19.09375 C 57.992188 20.316406 57.847656 21.53125 57.554688 22.601562 C 57.167969 24.011719 56.589844 25.070312 55.738281 25.917969 C 55.128906 26.523438 54.539062 26.902344 53.789062 27.15625 C 53.1875 27.363281 52.554688 27.460938 51.78125 27.460938 C 50.714844 27.460938 49.851562 27.273438 49.066406 26.867188 C 48.59375 26.625 48.199219 26.332031 47.785156 25.921875 C 46.960938 25.097656 46.390625 24.078125 46.003906 22.734375 C 45.429688 20.742188 45.398438 18.273438 45.921875 16.238281 C 46.328125 14.644531 46.972656 13.484375 47.953125 12.5625 C 48.867188 11.703125 49.921875 11.265625 51.304688 11.167969 C 51.558594 11.152344 52.246094 11.164062 52.496094 11.191406 Z M 52.496094 11.191406 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 92.054688 7.402344 C 91.085938 7.460938 90.488281 7.546875 89.757812 7.730469 C 87.601562 8.269531 85.734375 9.519531 84.367188 11.335938 C 84.148438 11.621094 83.851562 12.070312 83.664062 12.386719 C 83.511719 12.652344 83.199219 13.257812 83.078125 13.539062 C 82.507812 14.828125 82.148438 16.253906 82.007812 17.796875 C 81.957031 18.359375 81.949219 18.566406 81.949219 19.394531 C 81.949219 20.21875 81.957031 20.429688 82.007812 20.988281 C 82.167969 22.761719 82.59375 24.308594 83.296875 25.699219 C 84.023438 27.144531 84.96875 28.289062 86.199219 29.210938 C 87.382812 30.097656 88.726562 30.6875 90.277344 31 C 92.117188 31.367188 94.355469 31.320312 96.128906 30.875 C 98.230469 30.347656 99.964844 29.269531 101.148438 27.761719 C 101.625 27.152344 102.019531 26.445312 102.289062 25.710938 C 102.394531 25.429688 102.519531 25.019531 102.507812 25.007812 C 102.5 25 101.550781 24.828125 100.398438 24.621094 C 99.246094 24.414062 98.292969 24.242188 98.285156 24.238281 C 98.277344 24.234375 98.246094 24.292969 98.214844 24.367188 C 97.738281 25.535156 96.953125 26.378906 95.855469 26.917969 C 95.207031 27.234375 94.523438 27.414062 93.628906 27.503906 C 93.34375 27.53125 92.496094 27.527344 92.191406 27.496094 C 90.996094 27.371094 90.039062 27.046875 89.171875 26.460938 C 88.320312 25.886719 87.609375 25.03125 87.148438 24.03125 C 86.722656 23.109375 86.472656 22 86.429688 20.847656 L 86.421875 20.589844 L 102.808594 20.589844 L 102.808594 19.777344 C 102.808594 17.945312 102.746094 17.019531 102.5625 15.914062 C 102.355469 14.691406 102.027344 13.671875 101.511719 12.628906 C 100.847656 11.285156 100.007812 10.257812 98.847656 9.371094 C 97.398438 8.269531 95.589844 7.605469 93.507812 7.429688 C 93.265625 7.40625 92.265625 7.386719 92.054688 7.402344 Z M 93.355469 11.148438 C 94.554688 11.28125 95.539062 11.699219 96.402344 12.449219 C 97.253906 13.183594 97.894531 14.246094 98.183594 15.40625 C 98.3125 15.921875 98.394531 16.578125 98.394531 17.070312 L 98.394531 17.222656 L 86.425781 17.222656 L 86.433594 17.101562 C 86.511719 16.132812 86.730469 15.324219 87.148438 14.488281 C 87.648438 13.488281 88.359375 12.6875 89.289062 12.066406 C 89.941406 11.628906 90.570312 11.375 91.371094 11.222656 C 91.546875 11.1875 91.988281 11.132812 92.183594 11.121094 C 92.390625 11.105469 93.15625 11.125 93.355469 11.148438 Z M 93.355469 11.148438 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 116.789062 7.410156 C 114.78125 7.515625 113.0625 8.0625 111.566406 9.0625 C 109.53125 10.429688 108.070312 12.515625 107.316406 15.121094 C 106.816406 16.855469 106.644531 18.890625 106.828125 20.917969 C 107.027344 23.09375 107.664062 25.050781 108.703125 26.679688 C 109.28125 27.585938 110.015625 28.40625 110.847656 29.074219 C 111.921875 29.9375 113.109375 30.53125 114.449219 30.875 C 115.144531 31.054688 115.816406 31.160156 116.648438 31.222656 C 116.96875 31.246094 118.046875 31.246094 118.367188 31.222656 C 119.882812 31.113281 121.082031 30.8125 122.214844 30.265625 C 124.242188 29.28125 125.714844 27.679688 126.476562 25.632812 C 126.71875 24.980469 126.863281 24.375 126.972656 23.523438 L 126.980469 23.476562 L 122.605469 23.476562 L 122.5625 23.640625 C 122.035156 25.722656 120.457031 27.117188 118.324219 27.390625 C 117.730469 27.464844 117 27.445312 116.394531 27.339844 C 114.988281 27.089844 113.773438 26.308594 112.882812 25.074219 C 112.332031 24.320312 111.890625 23.335938 111.632812 22.28125 C 111.25 20.71875 111.1875 18.707031 111.472656 17.035156 C 111.773438 15.273438 112.515625 13.757812 113.574219 12.734375 C 114.191406 12.140625 114.945312 11.6875 115.71875 11.449219 C 116.941406 11.070312 118.484375 11.105469 119.605469 11.53125 C 120.195312 11.753906 120.644531 12.042969 121.113281 12.503906 C 121.652344 13.035156 122.039062 13.589844 122.316406 14.238281 C 122.398438 14.4375 122.527344 14.816406 122.570312 15.007812 L 122.605469 15.148438 L 126.980469 15.148438 L 126.972656 15.085938 C 126.785156 13.492188 126.273438 12.144531 125.402344 10.988281 C 124.714844 10.074219 123.894531 9.34375 122.882812 8.75 C 122.601562 8.585938 121.972656 8.277344 121.667969 8.152344 C 120.566406 7.714844 119.445312 7.480469 118.113281 7.40625 C 117.792969 7.390625 117.105469 7.390625 116.789062 7.410156 Z M 116.789062 7.410156 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 156.207031 7.410156 C 153.863281 7.535156 151.875 8.292969 150.199219 9.699219 C 148.609375 11.039062 147.421875 12.925781 146.789062 15.132812 C 146.273438 16.910156 146.105469 19.027344 146.308594 21.097656 C 146.480469 22.894531 146.9375 24.484375 147.683594 25.898438 C 148.949219 28.300781 151.023438 30.003906 153.59375 30.757812 C 155.238281 31.242188 157.222656 31.375 159.121094 31.121094 C 162.84375 30.632812 165.671875 28.5 166.675781 25.429688 C 166.800781 25.042969 166.8125 25.007812 166.78125 25 C 166.757812 24.996094 162.652344 24.253906 162.589844 24.246094 C 162.558594 24.242188 162.546875 24.257812 162.484375 24.410156 C 162.3125 24.828125 162.035156 25.300781 161.769531 25.632812 C 161.609375 25.835938 161.28125 26.164062 161.078125 26.324219 C 160.402344 26.867188 159.578125 27.230469 158.640625 27.40625 C 158.15625 27.492188 157.8125 27.523438 157.226562 27.519531 C 156.589844 27.519531 156.160156 27.480469 155.632812 27.367188 C 153.910156 27.003906 152.554688 26.03125 151.703125 24.542969 C 151.089844 23.476562 150.792969 22.339844 150.710938 20.753906 L 150.703125 20.589844 L 167.085938 20.589844 L 167.085938 19.476562 C 167.085938 18.867188 167.078125 18.222656 167.070312 18.050781 C 166.964844 15.800781 166.542969 14.054688 165.71875 12.460938 C 165.253906 11.5625 164.75 10.867188 164.085938 10.207031 C 162.828125 8.949219 161.382812 8.15625 159.535156 7.707031 C 158.5 7.453125 157.332031 7.347656 156.207031 7.410156 Z M 157.648438 11.148438 C 158.792969 11.273438 159.726562 11.65625 160.578125 12.351562 C 160.777344 12.515625 161.152344 12.886719 161.3125 13.085938 C 162.050781 13.992188 162.496094 15.074219 162.636719 16.308594 C 162.660156 16.535156 162.6875 16.929688 162.6875 17.101562 L 162.6875 17.222656 L 150.71875 17.222656 L 150.71875 17.164062 C 150.71875 17.136719 150.726562 17.019531 150.738281 16.90625 C 150.914062 15.191406 151.675781 13.660156 152.886719 12.59375 C 153.902344 11.703125 155.023438 11.230469 156.390625 11.128906 C 156.644531 11.105469 157.398438 11.121094 157.648438 11.148438 Z M 157.648438 11.148438 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 233.578125 7.820312 C 233.714844 8.1875 241.941406 31 241.953125 31.035156 C 241.964844 31.074219 241.929688 31.179688 241.667969 31.90625 C 241.503906 32.359375 241.328125 32.824219 241.28125 32.941406 C 240.933594 33.753906 240.570312 34.328125 240.140625 34.742188 C 239.726562 35.136719 239.324219 35.324219 238.660156 35.429688 C 238.394531 35.46875 237.628906 35.464844 237.3125 35.421875 C 237.019531 35.378906 236.765625 35.332031 236.457031 35.253906 C 236.320312 35.222656 236.207031 35.199219 236.207031 35.203125 C 236.199219 35.210938 235.132812 38.84375 235.132812 38.867188 C 235.132812 38.894531 235.453125 39.007812 235.785156 39.089844 C 236.621094 39.300781 237.355469 39.378906 238.351562 39.367188 C 238.910156 39.355469 239.144531 39.339844 239.589844 39.273438 C 242.300781 38.878906 244.25 37.183594 245.449219 34.1875 C 245.589844 33.824219 255.101562 7.753906 255.09375 7.746094 C 255.082031 7.734375 250.265625 7.691406 250.257812 7.703125 C 250.25 7.707031 248.933594 11.738281 247.332031 16.65625 L 244.417969 25.597656 L 244.296875 25.601562 L 244.179688 25.605469 L 243.964844 24.953125 C 243.847656 24.59375 242.535156 20.566406 241.046875 16.003906 L 238.34375 7.707031 L 235.941406 7.703125 L 233.535156 7.699219 Z M 233.578125 7.820312 "}),r.jsx("path",{stroke:"none",fillRule:"nonzero",fillOpacity:"1",fill:e.color||"var(--privy-color-foreground)",d:"M 293.054688 35.804688 C 291.867188 35.84375 291.125 35.886719 290.253906 35.964844 C 287.730469 36.195312 285.71875 36.648438 284.816406 37.1875 C 284.128906 37.601562 284.058594 38.046875 284.621094 38.46875 C 285.503906 39.125 287.910156 39.660156 290.980469 39.878906 C 291.824219 39.941406 292.347656 39.960938 293.378906 39.984375 C 294.4375 40.003906 295.617188 39.984375 296.730469 39.925781 C 300.195312 39.734375 302.972656 39.144531 303.839844 38.417969 C 304.058594 38.234375 304.148438 38.078125 304.148438 37.886719 C 304.148438 37.796875 304.144531 37.765625 304.097656 37.671875 C 303.753906 36.980469 301.78125 36.363281 298.851562 36.039062 C 297.953125 35.9375 297.148438 35.878906 295.976562 35.824219 C 295.65625 35.8125 293.375 35.796875 293.054688 35.804688 Z M 293.054688 35.804688 "})]})})}let k=t.styled.div`
|
|
1
|
+
"use strict";var e=require("react"),r=require("react/jsx-runtime"),t=require("styled-components"),o=require("./useWallets.js"),n=require("./privy-context.js"),i=require("@heroicons/react/24/outline/Square2StackIcon"),l=require("@ethersproject/bignumber"),a=require("@ethersproject/units"),s=require("@ethersproject/providers");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=c(i);let u=e=>l.BigNumber.from(e);class d{get(e){let r=localStorage.getItem(e);return null===r?void 0:JSON.parse(r)}put(e,r){void 0!==r?localStorage.setItem(e,JSON.stringify(r)):this.del(e)}del(e){localStorage.removeItem(e)}getKeys(){return Object.entries(localStorage).map((([e])=>e))}}var h="undefined"!=typeof window&&window.localStorage?new d:new class{get(e){return this._cache[e]}put(e,r){void 0!==r?this._cache[e]=r:this.del(e)}del(e){delete this._cache[e]}getKeys(){return Object.keys(this._cache)}constructor(){this._cache={}}};const v=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isClover?"Clover":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOneKey?"OneKey Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isSafePal?"SafePal Wallet":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally||e.isTaho?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0,f=(e,r)=>{if(!e.isMetaMask)return!1;if(e.isMetaMask&&!r)return!0;if(e.isBraveWallet&&!e._events&&!e._state||"MetaMask"!==v(e))return!1;if(e.providers)for(let r of e.providers)if(!f(r))return!1;return!0},m=(e,r=3,t=4,o="ethereum")=>{if(!e)return"";let n="ethereum"===o?2:0;return r+t+n+3>=e.length?e:`${e.slice(0,n+r)}...${e.slice(e.length-t,e.length)}`},y=e=>new Promise((r=>setTimeout(r,e)));const g=(e,r,t)=>{let o,i=e.id,l=Number(e.id);if(e.rpcUrls.privyWalletOverride&&e.rpcUrls.privyWalletOverride.http[0])o=e.rpcUrls.privyWalletOverride.http[0];else if(r.rpcUrls&&r.rpcUrls[l])o=r.rpcUrls[l];else if(e.rpcUrls.privy?.http[0]){let r=new URL(e.rpcUrls.privy.http[0]);r.searchParams.append("privyAppId",t),o=r.toString()}else o=e.rpcUrls.public?.http[0]?e.rpcUrls.public.http[0]:e.rpcUrls.default?.http[0];if(!o)throw new n.PrivyConnectorError(`No RPC url found for ${i}`);return o};const x=e.createContext(void 0);let w=()=>e.useContext(x);function b(r,t){if(!t)return;let o=w().current[r];return e.useEffect((()=>{for(let[e,n]of Object.entries(t))o.hasOwnProperty(e)||console.warn(`Invalid event type "${e}" for action "${r}"`),o[e]?.push(n);return()=>{for(let[e,n]of Object.entries(t))o.hasOwnProperty(e)||console.warn(`Invalid event type "${e}" for action "${r}"`),o[e]=o[e]?.filter((e=>e!==n))}}),[t])}function W(e,r,t,...o){for(let n of e.current[r][t])n(...o)}function P(e){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 460 40",...e,children:r.jsx("g",{fill:e.color||"var(--privy-color-foreground)",children:r.jsx("path",{d:"M0 15.4v15.38h4.64V19.96h3.58c2.47 0 3.63-.01 3.77-.02 1-.08 1.49-.15 2.18-.3a9.45 9.45 0 0 0 4.6-2.37c1.66-1.57 2.64-3.87 2.81-6.56.02-.3.02-1.19 0-1.49-.1-1.77-.56-3.35-1.36-4.72A8.84 8.84 0 0 0 15.14.57c-.93-.3-1.75-.43-3.09-.54C11.9.02 10.2 0 5.93 0H0ZM10.85 4c1.85.05 3.1.45 4.16 1.3.22.17.54.49.69.68a5.97 5.97 0 0 1 1.19 3.13c.04.35.04 1.36 0 1.71-.08.68-.23 1.3-.44 1.85a4.8 4.8 0 0 1-1.09 1.68A5.63 5.63 0 0 1 12 15.92c-.6.08-.4.08-4.01.09H4.64V3.98h2.9c1.6 0 3.08 0 3.31.02ZM187.65 5.71v5.72h-.27l-.09-.14a15.9 15.9 0 0 0-1.21-1.73c-.43-.5-1-.95-1.7-1.36-.54-.3-1.05-.5-1.73-.63a8.98 8.98 0 0 0-1.7-.17 8.84 8.84 0 0 0-7.8 4.03 12.95 12.95 0 0 0-2.03 6.39c-.07.98-.06 2.15.02 3.13.2 2.47.87 4.53 2.02 6.25a8.98 8.98 0 0 0 10.22 3.65 6.5 6.5 0 0 0 2.8-1.93c.41-.51.84-1.1 1.1-1.55l.1-.17h.37v3.58h4.38V0h-4.48Zm-5.24 5.54c1.3.14 2.3.6 3.17 1.48.9.9 1.5 2.09 1.85 3.64.36 1.6.39 3.72.06 5.43a8.13 8.13 0 0 1-1.54 3.62 5.1 5.1 0 0 1-3.93 1.96 6.13 6.13 0 0 1-2.32-.31 5.87 5.87 0 0 1-3.33-3.5c-.39-1-.62-2.05-.72-3.32-.03-.32-.04-1.35-.02-1.73.08-1.56.4-2.91.96-4.05a6.2 6.2 0 0 1 1.06-1.58 5.08 5.08 0 0 1 3.6-1.66c.25-.02.9 0 1.16.02ZM210.07 15.39l.01 15.38h4.38l.01-3.57h.37l.09.15c.24.44.84 1.26 1.21 1.7a6.79 6.79 0 0 0 2.57 1.75 9.3 9.3 0 0 0 6.86-.49 9.28 9.28 0 0 0 4.05-4.07A13.05 13.05 0 0 0 231 21.6c.21-1.73.18-3.7-.09-5.32a13.03 13.03 0 0 0-1.5-4.3 9.1 9.1 0 0 0-3.75-3.63 9.15 9.15 0 0 0-4.43-.96 7.46 7.46 0 0 0-2.8.5A7.07 7.07 0 0 0 216 9.7c-.4.52-.82 1.12-1.1 1.59l-.07.14h-.27V0h-4.5Zm11.13-4.14c1.07.1 1.94.44 2.7 1.04a6.1 6.1 0 0 1 1.64 1.98c.43.84.78 2 .94 3.11.15 1.16.16 2.4.02 3.54a9.34 9.34 0 0 1-1.39 4.03 5.33 5.33 0 0 1-2.69 2.15c-.9.3-2.04.38-3.06.2a5.14 5.14 0 0 1-3.45-2.37 6.03 6.03 0 0 1-.45-.8c-.5-1.03-.8-2.2-.92-3.58-.04-.49-.06-.89-.05-1.53.01-.76.05-1.23.13-1.85.38-2.53 1.47-4.38 3.15-5.31a5.46 5.46 0 0 1 2.3-.63 10 10 0 0 1 1.13.02ZM69.05 2.17l-.01 2.77V7.7h-3.36v3.6h3.36v6.8l.01 7.15c.06 1.4.4 2.44 1.1 3.37a5.8 5.8 0 0 0 2.97 2.07c.91.3 1.83.42 2.9.38a8.71 8.71 0 0 0 2.66-.48l-.8-3.7-.38.06a4.96 4.96 0 0 1-2.43-.06c-.33-.1-.56-.25-.8-.49-.4-.41-.6-.88-.7-1.67-.02-.2-.02-.62-.03-6.82v-6.6h4.73V7.7h-4.73V2.16h-4.49ZM133.34 2.17V7.7h-3.39v3.6h3.38v6.9l.01 7.17a5.66 5.66 0 0 0 2.36 4.49c.85.6 2.03 1.03 3.26 1.17.85.1 2.03.05 2.81-.1.3-.06.75-.18 1-.26l.2-.06v-.05l-.81-3.67-.37.06a4.99 4.99 0 0 1-1.8.09c-.85-.13-1.32-.4-1.7-.97a2.63 2.63 0 0 1-.39-1.04c-.06-.4-.06 0-.06-7.1V11.3h4.7V7.7h-4.7l-.01-2.77V2.16h-4.49ZM293.41 2.36a14.56 14.56 0 0 0-13.7 16.07 14.59 14.59 0 0 0 21.86 11.08 14.5 14.5 0 0 0 7.11-14.07 14.61 14.61 0 0 0-6.53-10.73 14.49 14.49 0 0 0-8.74-2.35ZM350.8 2.36a10.17 10.17 0 0 0-7.56 4.2c-.16.2-.45.63-.58.83l-.05.1h-.47l-.01-4.36h-7.36v36.4h7.82V27.27h.49l.05.07a11.3 11.3 0 0 0 7.49 4.15 10.52 10.52 0 0 0 9.38-4.1c1.66-2.1 2.73-4.9 3.07-8.06.1-.87.13-1.4.13-2.37 0-.8 0-1.1-.07-1.76a15.95 15.95 0 0 0-3.23-8.72 12.8 12.8 0 0 0-1.85-1.84 10.49 10.49 0 0 0-7.26-2.28Zm-.94 6.05c1.27.15 2.33.65 3.2 1.5.98.96 1.67 2.31 2.03 4 .34 1.57.38 3.68.12 5.39a9.78 9.78 0 0 1-1.04 3.25c-.14.25-.44.69-.6.89a5.35 5.35 0 0 1-4.31 2.07 5.25 5.25 0 0 1-4.41-1.9 7.35 7.35 0 0 1-1.26-2.32 14.09 14.09 0 0 1-.62-4.83c.05-1.98.38-3.53 1.02-4.85a5.63 5.63 0 0 1 2.5-2.65c.66-.34 1.3-.5 2.14-.58.18-.02 1.04 0 1.23.03ZM363.63 3.1l-.01 3.2v3.16h1.43c1.26.01 1.44.02 1.54.04.42.09.66.28.79.62.08.23.08.08.08 2.96a911.57 911.57 0 0 1 .03 10.18v7.54h7.82v-7.4l.01-7.83c.03-.94.11-1.63.27-2.28.46-1.9 1.54-2.93 3.35-3.23.52-.08.2-.08 5-.08h4.4V3.08h-3.1c-3.48 0-3.91.01-4.67.1-1.83.2-3.04.79-3.96 1.88-.5.6-.9 1.32-1.26 2.26l-.06.17h-.46V3.09h-5.6c-4.46 0-5.6 0-5.6.02ZM390.8 16.95V30.8h3.87l3.86-.01V3.09h-7.73ZM400.6 3.1l-.01.4v.38l4.66 13.4 4.69 13.47.02.05h10.3l.03-.05 4.67-13.45 4.67-13.4V3.1h-7.43l-6.7 19.26h-.5l-3.28-9.5-3.31-9.64-.05-.12h-3.88l-3.88.01ZM430.98 3.1c-.01 0-.02.19-.02.4v.39l5.08 14.59c2.8 8.02 5.08 14.6 5.08 14.61.01.02-.22.02-4.8.02h-4.82v6.42h4.95c5.09 0 5.23 0 5.87-.06 3.15-.28 5.29-1.63 6.63-4.15.28-.55.44-.95.87-2.16L459 6.78l1-2.89v-.8h-7.43l-6.69 19.26h-.5l-3.27-9.46-3.31-9.64-.06-.16h-3.88l-3.88.01ZM36.57 7.36c-1.36.1-2.6.6-3.62 1.45a5.65 5.65 0 0 0-1.67 2.42l-.05.13H31V7.7h-4.35v23.08h4.5v-7.3c0-8 0-7.34.08-7.82a4.89 4.89 0 0 1 2.06-3.18c.83-.58 1.74-.89 2.87-.98a11.87 11.87 0 0 1 2.8.25H39v-4.3l-.21-.02c-.61-.07-1.74-.1-2.22-.07ZM51.08 7.41c-2.33.12-4.3.84-5.95 2.16a9.89 9.89 0 0 0-2.03 2.2 12.5 12.5 0 0 0-2 5.78 18.04 18.04 0 0 0 0 3.65 12.13 12.13 0 0 0 2.26 6.05 9.74 9.74 0 0 0 5 3.52c2.11.64 4.7.64 6.8 0a9.78 9.78 0 0 0 4.88-3.37c1.38-1.78 2.19-4 2.4-6.58.13-1.46.06-3.06-.18-4.42a11.24 11.24 0 0 0-3.58-6.6 10 10 0 0 0-5.75-2.35c-.56-.06-1.31-.07-1.85-.04Zm1.42 3.78c.88.1 1.62.34 2.28.75a6.13 6.13 0 0 1 1.99 2.15 10.31 10.31 0 0 1 1.2 5c.02 1.23-.12 2.44-.42 3.51a7.14 7.14 0 0 1-1.81 3.32c-.61.6-1.2.98-1.95 1.24a6 6 0 0 1-2 .3 5.7 5.7 0 0 1-2.72-.6 5 5 0 0 1-1.28-.94A7.1 7.1 0 0 1 46 22.73c-.57-1.99-.6-4.46-.08-6.5a7.24 7.24 0 0 1 2.03-3.67 5.13 5.13 0 0 1 3.35-1.4 11 11 0 0 1 1.2.03ZM92.05 7.4c-.96.06-1.56.15-2.3.33a9.62 9.62 0 0 0-6.09 4.66 13.5 13.5 0 0 0-1.71 7c0 .83 0 1.04.06 1.6.16 1.77.58 3.32 1.29 4.7A9.72 9.72 0 0 0 90.28 31c1.84.37 4.08.32 5.85-.13a9.07 9.07 0 0 0 5.02-3.1A7.64 7.64 0 0 0 102.5 25l-2.11-.39-2.11-.38-.08.13a4.72 4.72 0 0 1-2.35 2.55 6.3 6.3 0 0 1-2.23.58c-.29.03-1.13.03-1.44 0a6.35 6.35 0 0 1-3.02-1.04 5.93 5.93 0 0 1-2.02-2.43 8.44 8.44 0 0 1-.72-3.18v-.26h16.38v-.81c0-1.83-.06-2.76-.25-3.87-.2-1.22-.53-2.24-1.05-3.28a8.9 8.9 0 0 0-2.66-3.26 10.1 10.1 0 0 0-5.34-1.94 18.3 18.3 0 0 0-1.46-.03Zm1.3 3.75c1.2.13 2.19.55 3.05 1.3a5.8 5.8 0 0 1 1.78 2.96c.13.51.21 1.17.21 1.66v.15H86.43v-.12c.08-.97.3-1.78.72-2.61.5-1 1.2-1.8 2.14-2.42a5.32 5.32 0 0 1 2.9-.95c.2-.01.97 0 1.17.03ZM116.79 7.41c-2 .1-3.73.65-5.22 1.65a10.7 10.7 0 0 0-4.25 6.06 16.1 16.1 0 0 0-.5 5.8c.2 2.17.84 4.13 1.88 5.76.58.9 1.32 1.73 2.15 2.4a9.37 9.37 0 0 0 3.6 1.8 12.06 12.06 0 0 0 3.92.34 10.2 10.2 0 0 0 3.84-.95 8.31 8.31 0 0 0 4.76-6.75l.01-.04h-4.37l-.05.16a4.87 4.87 0 0 1-4.24 3.75c-.59.07-1.32.06-1.93-.05a5.47 5.47 0 0 1-3.5-2.27c-.56-.75-1-1.73-1.26-2.79a13.8 13.8 0 0 1-.16-5.24 7.77 7.77 0 0 1 2.1-4.3 5.48 5.48 0 0 1 2.15-1.3 6.4 6.4 0 0 1 3.89.1c.59.21 1.03.5 1.5.96a5.32 5.32 0 0 1 1.46 2.5l.04.15h4.37v-.06a8.22 8.22 0 0 0-5.31-6.94 10.98 10.98 0 0 0-4.88-.74ZM156.2 7.41a9.87 9.87 0 0 0-6 2.29 11.02 11.02 0 0 0-3.41 5.43c-.52 1.78-.68 3.9-.48 5.97.17 1.8.63 3.38 1.37 4.8a9.68 9.68 0 0 0 5.91 4.86c1.65.48 3.63.61 5.53.36 3.72-.49 6.55-2.62 7.56-5.69.12-.39.13-.42.1-.43-.02 0-4.13-.75-4.19-.75-.03 0-.04 0-.1.16-.18.42-.45.9-.72 1.22-.16.2-.49.53-.7.7-.67.54-1.5.9-2.43 1.08-.48.08-.83.11-1.41.11-.64 0-1.07-.04-1.6-.15a5.76 5.76 0 0 1-3.93-2.83 8 8 0 0 1-.99-3.79v-.16h16.38v-1.11l-.02-1.43c-.1-2.25-.53-4-1.35-5.59a9.24 9.24 0 0 0-6.18-4.75c-1.04-.26-2.2-.36-3.33-.3Zm1.45 3.74a5.35 5.35 0 0 1 3.66 1.94 6.1 6.1 0 0 1 1.38 4.01v.12h-11.97v-.06c0-.02 0-.14.02-.25a6.6 6.6 0 0 1 2.15-4.32 5.73 5.73 0 0 1 3.5-1.46c.25-.02 1 0 1.26.02ZM233.58 7.82l8.37 23.22a49.22 49.22 0 0 1-.67 1.9 5.36 5.36 0 0 1-1.14 1.8c-.41.4-.82.58-1.48.69-.27.04-1.03.03-1.35 0a8.05 8.05 0 0 1-1.1-.23l-1.08 3.67c0 .02.32.14.66.22.83.21 1.57.29 2.56.28.56-.01.8-.03 1.24-.1 2.71-.4 4.66-2.09 5.86-5.08l9.64-26.44c0-.02-4.82-.06-4.83-.05l-2.93 8.96-2.91 8.94h-.24l-.22-.65-2.91-8.95-2.7-8.3H233.53ZM293.05 35.8c-1.18.04-1.93.09-2.8.16-2.52.24-4.53.69-5.43 1.23-.7.41-.76.86-.2 1.28.88.66 3.29 1.19 6.36 1.4a48.55 48.55 0 0 0 5.75.05c3.47-.19 6.24-.78 7.11-1.5.22-.19.3-.34.3-.53 0-.1 0-.12-.04-.22-.35-.69-2.32-1.3-5.25-1.63a41.09 41.09 0 0 0-5.8-.24Zm0 0"})})})}let C=t.styled.div`
|
|
2
2
|
margin-top: 16px;
|
|
3
3
|
font-size: 13px;
|
|
4
4
|
text-align: center;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
&& > a {
|
|
8
8
|
color: var(--privy-color-accent);
|
|
9
9
|
}
|
|
10
|
-
`;const
|
|
10
|
+
`;const k=t.styled.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-content: center;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@media all and (display-mode: standalone) {
|
|
29
29
|
padding-bottom: 30px;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
`,$=({address:e,showCopyIcon:t,url:o,className:n})=>o?r.jsx("a",{title:e,className:n,href:`${o}/address/${e}`,target:"_blank",children:m(e)}):r.jsxs("button",{title:e,className:n,onClick:()=>navigator.clipboard.writeText(e).catch(console.error),children:[m(e),t&&r.jsx(T,{})]});let T=t.styled(p.default)`
|
|
32
32
|
&& {
|
|
33
33
|
display: inline;
|
|
34
34
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
width: 0.875rem;
|
|
38
38
|
margin-left: 0.125rem;
|
|
39
39
|
color: var(--privy-color-foreground-3);
|
|
40
|
-
`,
|
|
40
|
+
`,E=t.keyframes`
|
|
41
41
|
from, to {
|
|
42
42
|
background: var(--privy-color-foreground-4);
|
|
43
43
|
color: var(--privy-color-foreground-4);
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
background: var(--privy-color-foreground-accent);
|
|
48
48
|
color: var(--privy-color-foreground-accent);
|
|
49
49
|
}
|
|
50
|
-
`;const
|
|
50
|
+
`;const S=t.css`
|
|
51
51
|
${e=>e.$isLoading?t.css`
|
|
52
52
|
width: 35%;
|
|
53
|
-
animation: ${
|
|
53
|
+
animation: ${E} 2s linear infinite;
|
|
54
54
|
border-radius: var(--privy-border-radius-sm);
|
|
55
55
|
`:""}
|
|
56
|
-
`,
|
|
56
|
+
`,j=({children:e,color:t,isLoading:o,isPulsing:n,className:i})=>r.jsx(F,{$color:t,$isLoading:o,$isPulsing:n,className:i,children:e});let F=t.styled.span`
|
|
57
57
|
padding: 0.125rem 0.5rem;
|
|
58
58
|
font-size: 0.75rem;
|
|
59
59
|
font-weight: 500;
|
|
@@ -76,23 +76,23 @@
|
|
|
76
76
|
`};
|
|
77
77
|
`}}
|
|
78
78
|
|
|
79
|
-
${
|
|
80
|
-
`,
|
|
79
|
+
${S}
|
|
80
|
+
`,M=e.createContext({});let I=e=>`privy:${e}:recent-login-method`,U=e=>`privy:${e}:recent-login-wallet-client`,A=e=>`privy:${e}:recent-login-chain-type`;const O=t.styled.div`
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
|
-
`,
|
|
83
|
+
`,D=t.styled.span`
|
|
84
84
|
text-align: left;
|
|
85
85
|
font-size: 0.75rem;
|
|
86
86
|
font-weight: 500;
|
|
87
87
|
line-height: 1.125rem; /* 150% */
|
|
88
88
|
|
|
89
89
|
color: var(--privy-color-error);
|
|
90
|
-
`,
|
|
90
|
+
`,Z=t.styled.span`
|
|
91
91
|
color: var(--privy-color-foreground-3);
|
|
92
92
|
font-size: 0.75rem;
|
|
93
93
|
font-weight: 500;
|
|
94
94
|
line-height: 1.125rem; /* 150% */
|
|
95
|
-
`,
|
|
95
|
+
`,L=t.css`
|
|
96
96
|
&& {
|
|
97
97
|
border-width: 1px;
|
|
98
98
|
padding: 0.5rem 1rem;
|
|
@@ -107,6 +107,6 @@
|
|
|
107
107
|
align-items: center;
|
|
108
108
|
|
|
109
109
|
${e=>"error"===e.$state?"border-color: var(--privy-color-error);":""}
|
|
110
|
-
`,
|
|
111
|
-
${
|
|
112
|
-
`;let A=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:2}),_=e=>A.format(e);exports.Address=P,exports.BlobbyFooter=()=>r.jsx(W,{children:r.jsx("a",{href:"https://www.privy.io/",target:"_blank",children:r.jsx(b,{height:13,width:150})})}),exports.Box=Z,exports.BoxStyles=D,exports.Chip=T,exports.Copy=({color:e,...t})=>r.jsx("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",xmlSpace:"preserve",...t,children:r.jsx("g",{children:r.jsx("path",{fill:e||"currentColor",className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})}),exports.ErrorMessage=U,exports.LoadingSkeleton=$,exports.ModalFooter=W,exports.PrivyEventsContext=m,exports.RecentlyUsedAccountProvider=({children:t})=>{let n=o.useAppConfig(),[i,l]=e.useState({});return x("login",{onComplete:(e,r,t,o,i)=>{i&&"passkey"!==i.type&&"cross_app"!==i.type&&("wallet"!==i.type||"privy"!==i.walletClientType)&&(d.put(O(n.id),i.type),"wallet"===i.type?(d.put(F(n.id),i.walletClientType),d.put(I(n.id),i.chainType),l({accountType:i.type,walletClientType:i.walletClientType,chainType:i.chainType})):(d.del(F(n.id)),d.del(I(n.id)),l({accountType:i.type})))}}),e.useEffect((()=>{if(!n.id)return;let e=d.get(O(n.id)),r=d.get(F(n.id)),t=d.get(I(n.id));e&&l("wallet"===e?{accountType:e,walletClientType:r,chainType:t}:{accountType:e})}),[n.id]),r.jsx(S.Provider,{value:i,children:t})},exports.TermsAndConditions=function(e){let{legal:{privacyPolicyUrl:t,termsAndConditionsUrl:o,requireUsersAcceptTerms:n}}=e.app;if(n&&!e.alwaysShowImplicitConsent||!o&&!t)return r.jsx(k,{});let i=!(!t||!o);return r.jsxs(k,{children:["By logging in I agree to the"," ",o&&r.jsx("a",{href:o,target:"_blank",children:i?"Terms":"Terms of Service"}),i&&" & ",t&&r.jsx("a",{href:t,target:"_blank",children:"Privacy Policy"})]})},exports.WalletInfoCard=({errMsg:e,balance:t,address:o,isLoading:n,className:i,title:l,isPulsing:s,showIcon:a,statusColor:c="green"})=>{let C;return C=c||(e?"red":"green"),r.jsxs(r.Fragment,{children:[r.jsxs(Z,{className:i,$state:e?"error":void 0,children:[r.jsxs(R,{children:[r.jsx(z,{children:l||"Pay with"}),r.jsx(P,{address:o,showCopyIcon:a||!!e})]}),void 0!==t&&r.jsx(T,{isLoading:n,isPulsing:s,color:C,children:t})]}),e&&r.jsx(U,{style:{marginTop:"0.25rem"},children:e})]})},exports.clamp=function(e,{min:r,max:t}){return Math.min(Math.max(e,r),t)},exports.constructURL=(e,r,t={},o={})=>{let n=new URL(r,e);for(let[e,r]of Object.entries(t))void 0!==r&&n.searchParams.set(e,r);let i=Object.entries(o);if(i.length>0){let e=new URLSearchParams;for(let[r,t]of i)e.append(r,t);n.hash=e.toString()}return n.href},exports.convert1dTo2dArray=(e,r)=>{let t=e.slice(0),o=[];for(;t.length;)o.push(t.splice(0,r));return o},exports.detectInjectedConnectors=async function(e,r,t,o=3e3){let n=!1,i=window;return new Promise((l=>{function s(){if(n)return;n=!0,window.removeEventListener("ethereum#initialized",s);let o=e.getProviders();console.debug("Detected injected providers:",o.map((e=>e.info)));let i=[];for(let e of o)r.includes("coinbase_wallet")&&"com.coinbase.wallet"===e.info.rdns||i.push({type:e.info.name.toLowerCase().replace(/\s/g,"_"),eip6963InjectedProvider:e});for(let e of function(){let e=window,r=e.ethereum;if(!r)return[];let t=[];if(r.providers?.length)for(let e of r.providers)e&&t.push(e);return t.push(e.ethereum),t}()){let r=f(e);if(!o.some((e=>e.info.name===r))){if(v(e,!0)&&!i.find((e=>"metamask"===e.type))){i.push({type:"metamask",legacyInjectedProvider:e});continue}if("Phantom"===r&&!i.find((e=>"phantom"===e.type))){i.push({type:"phantom",legacyInjectedProvider:e});continue}if("Coinbase Wallet"===r&&!i.find((e=>"coinbase_wallet"===e.type&&"smartWalletOnly"!==t?.coinbaseWallet?.connectionOptions))){i.push({type:"coinbase_wallet",legacyInjectedProvider:e});continue}i.find((e=>"unknown_browser_extension"===e.type))||i.push({type:"unknown_browser_extension",legacyInjectedProvider:e})}}l(i)}i.ethereum?s():(window.addEventListener("ethereum#initialized",s,{once:!0}),setTimeout((()=>{s()}),o))}))},exports.e=function(){try{let e="privy:__session_storage__test",r=new u;return r.put(e,"blobby"),r.del(e),!0}catch(e){return!1}},exports.e5=d,exports.emitPrivyEvent=w,exports.formatChainIdToCAIP2=function(e){return`eip155:${String(Number(e))}`},exports.formatWalletAddress=h,exports.generateTypedDataWithDomainType=e=>{let r={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},t=e.types.EIP712Domain??Object.entries(e.domain).map((([e,t])=>{if(null!=t&&"string"==typeof e&&e in r)return{name:e,type:r[e]}})).filter((e=>void 0!==e));return{...e,types:{...e.types,EIP712Domain:t}}},exports.getBlockExplorerUrlForAddress=(e,r)=>{let{chains:t}=n.usePrivyInternal(),o=`https://etherscan.io/address/${r}`,i=`${((e,r)=>{let t=Number(e),o=r.find((e=>e.id===t));if(!o)throw new n.PrivyConnectorError(`Unsupported chainId ${e}`,4901);return o.blockExplorers?.default.url})(e,t)}/address/${r}`;if(!i)return o;try{new URL(i)}catch{return o}return i},exports.getDollarsFromStringFloat=(e,r)=>{let t=_(r*parseFloat(e));return"$0.00"!==t?t:"<$0.01"},exports.getDollarsFromWei=(e,r)=>{let t=_(r*parseFloat(s.formatEther(e)));return"$0.00"===t?"<$0.01":t},exports.getJsonRpcEndpoint=(e,r,t,o)=>{let i=Number(e),l=r.find((e=>e.id===i));if(!l)throw new n.PrivyConnectorError(`Unsupported chainId ${e}`,4901);return g(l,t,o)},exports.getJsonRpcEndpointFromChain=g,exports.getJsonRpcProvider=(e,r,t,o)=>{let i=Number(e),l=r.find((e=>e.id===i));if(!l)throw new n.PrivyConnectorError(`Unsupported chainId ${e}`,4901);return new a.StaticJsonRpcProvider(l.rpcUrls.privyWalletOverride&&l.rpcUrls.privyWalletOverride.http[0]?l.rpcUrls.privyWalletOverride.http[0]:t.rpcUrls&&t.rpcUrls[i]?t.rpcUrls[i]:l.rpcUrls.privy?.http[0]?{url:l.rpcUrls.privy.http[0],headers:{"privy-app-id":o.appId}}:l.rpcUrls.public?.http[0]?l.rpcUrls.public.http[0]:l.rpcUrls.default?.http[0])},exports.getNativeCurrencyFromWei=(e,r,t=6,o=!1)=>{let n=parseFloat(s.formatEther(e)).toFixed(t).replace(/0+$/,"").replace(/\.$/,"");return o?`${n} ${r}`:`${"0"===n?"<0.001":n} ${r}`},exports.i=p,exports.invokeUntilSettled=(e,r={})=>{let t=r.delayMs||150,o=r.maxAttempts||270;return new Promise((async(n,i)=>{let l=!1,s=0;for(;!l&&s<o;){if(r.abortSignal?.aborted)return;e().then((e=>{l=!0,n(e)}),((...e)=>{l=!0,i(...e)})),s+=1,await y(t)}l||i(Error("Exceeded max attempts before resolving function"))}))},exports.isCoinbaseWalletInstalled=()=>{let e=window;if(!e.ethereum)return!1;if(e.ethereum.isCoinbaseWallet)return!0;if(e.ethereum.providers)for(let r of e.ethereum.providers)if(r&&r.isCoinbaseWallet)return!0;return!1},exports.isPhantomInstalled=()=>{if("phantom"in window){let e=window;if(e?.phantom?.ethereum?.isPhantom)return!0}return!1},exports.pollForResult=function(e,{interval:r=100,timeout:t=5e3}={}){return new Promise(((o,n)=>{let i,l=0,s=()=>{l>=t?n("Max attempts reached without result"):(i=e(),l+=r,null==i?setTimeout(s,r):o(i))};s()}))},exports.privyEventsDefault={login:{onComplete:[],onError:[],onOAuthLoginComplete:[]},logout:{onSuccess:[]},connectWallet:{onSuccess:[],onError:[]},createWallet:{onSuccess:[],onError:[]},linkAccount:{onSuccess:[],onError:[]},configureMfa:{onMfaRequired:[]},setWalletPassword:{onSuccess:[],onError:[]},setWalletRecovery:{onSuccess:[],onError:[]},signMessage:{onSuccess:[],onError:[]},signTypedData:{onSuccess:[],onError:[]},sendTransaction:{onSuccess:[],onError:[]},sendSolanaTransaction:{onSuccess:[],onError:[]},accessToken:{onAccessTokenGranted:[],onAccessTokenRemoved:[]},oAuthAuthorization:{onOAuthTokenGrant:[]},fundWallet:{onUserExited:[]},customAuth:{onAuthenticated:[],onUnauthenticated:[]}},exports.r=function(e){let r={};return void 0!==e.to&&(r.to=e.to),void 0!==e.data&&(r.data=e.data),void 0!==e.chainId&&(r.chainId=e.chainId),void 0!==e.type&&(r.type=e.type),void 0!==e.accessList&&(r.accessList=e.accessList),void 0!==e.nonce&&(r.nonce=p(e.nonce).toNumber()),void 0!==e.gasLimit&&(r.gasLimit=p(e.gasLimit)),void 0!==e.gasPrice&&(r.gasPrice=p(e.gasPrice)),void 0!==e.value&&(r.value=p(e.value)),void 0!==e.maxFeePerGas&&(r.maxFeePerGas=p(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=p(e.maxPriorityFeePerGas)),r},exports.sleep=y,exports.splitAtIndex=(e,r)=>{let t=[],o=[];for(let[n,i]of e.entries())n<r?t.push(i):o.push(i);return[t,o]},exports.stripEmoji=e=>e.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,""),exports.sumWeiQuantitiesToHexString=e=>e.map(p).reduce(((e,r)=>e.add(r)),l.BigNumber.from(0)).toHexString(),exports.t=function(e){if("number"==typeof e||"bigint"==typeof e||"string"==typeof e)return e;if("function"==typeof e.toHexString)return e.toHexString();throw Error(`Expected numeric value but received ${e}`)},exports.toHex=e=>"string"==typeof e?e:"0x"+e.toString(16),exports.useConnectWallet=function(r){let{connectWallet:t}=e.useContext(n.PrivyContext);return x("connectWallet",r),{connectWallet:t}},exports.useElementHeight=r=>{let[t,o]=e.useState("auto");return e.useEffect((()=>{let e=new ResizeObserver((e=>{o(e[0]?.contentRect.height??"auto")}));return r.current&&e.observe(r.current),()=>{r.current&&e.unobserve(r.current)}}),[r.current]),t},exports.useEmitPrivyEvent=function(){let e=L();return(r,t,...o)=>w(e,r,t,...o)},exports.useFundWallet=e=>{x("fundWallet",e);let{fundWallet:r}=n.usePrivy();return{fundWallet:r}},exports.useLogin=function(r){let{login:t}=e.useContext(n.PrivyContext);return x("login",r),{login:t}},exports.useLogout=function(r){let{logout:t}=e.useContext(n.PrivyContext);return x("logout",r),{logout:t}},exports.usePrivyEventSubscription=x,exports.useRecentlyUsedLogin=()=>e.useContext(S),exports.validateEmail=e=>!!String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
110
|
+
`,_=t.styled.div`
|
|
111
|
+
${L}
|
|
112
|
+
`;let V=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:2}),B=e=>V.format(e);exports.Address=$,exports.BlobbyFooter=()=>r.jsx(k,{children:r.jsx("a",{href:"https://www.privy.io/",target:"_blank",children:r.jsx(P,{height:13,width:150})})}),exports.Box=_,exports.BoxStyles=L,exports.Chip=j,exports.Copy=({color:e,...t})=>r.jsx("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",xmlSpace:"preserve",...t,children:r.jsx("g",{children:r.jsx("path",{fill:e||"currentColor",className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})}),exports.ErrorMessage=D,exports.LoadingSkeleton=S,exports.ModalFooter=k,exports.PrivyEventsContext=x,exports.RecentlyUsedAccountProvider=({children:t})=>{let n=o.useAppConfig(),[i,l]=e.useState({});return b("login",{onComplete:(e,r,t,o,i)=>{i&&"passkey"!==i.type&&"cross_app"!==i.type&&("wallet"!==i.type||"privy"!==i.walletClientType)&&(h.put(I(n.id),i.type),"wallet"===i.type?(h.put(U(n.id),i.walletClientType),h.put(A(n.id),i.chainType),l({accountType:i.type,walletClientType:i.walletClientType,chainType:i.chainType})):(h.del(U(n.id)),h.del(A(n.id)),l({accountType:i.type})))}}),e.useEffect((()=>{if(!n.id)return;let e=h.get(I(n.id)),r=h.get(U(n.id)),t=h.get(A(n.id));e&&l("wallet"===e?{accountType:e,walletClientType:r,chainType:t}:{accountType:e})}),[n.id]),r.jsx(M.Provider,{value:i,children:t})},exports.TermsAndConditions=function(e){let{legal:{privacyPolicyUrl:t,termsAndConditionsUrl:o,requireUsersAcceptTerms:n}}=e.app;if(n&&!e.alwaysShowImplicitConsent||!o&&!t)return r.jsx(C,{});let i=!(!t||!o);return r.jsxs(C,{children:["By logging in I agree to the"," ",o&&r.jsx("a",{href:o,target:"_blank",children:i?"Terms":"Terms of Service"}),i&&" & ",t&&r.jsx("a",{href:t,target:"_blank",children:"Privacy Policy"})]})},exports.WalletInfoCard=({errMsg:e,balance:t,address:o,isLoading:n,className:i,title:l,isPulsing:a,showIcon:s,statusColor:c="green"})=>{let p;return p=c||(e?"red":"green"),r.jsxs(r.Fragment,{children:[r.jsxs(_,{className:i,$state:e?"error":void 0,children:[r.jsxs(O,{children:[r.jsx(Z,{children:l||"Pay with"}),r.jsx($,{address:o,showCopyIcon:s||!!e})]}),void 0!==t&&r.jsx(j,{isLoading:n,isPulsing:a,color:p,children:t})]}),e&&r.jsx(D,{style:{marginTop:"0.25rem"},children:e})]})},exports.clamp=function(e,{min:r,max:t}){return Math.min(Math.max(e,r),t)},exports.constructURL=(e,r,t={},o={})=>{let n=new URL(r,e);for(let[e,r]of Object.entries(t))void 0!==r&&n.searchParams.set(e,r);let i=Object.entries(o);if(i.length>0){let e=new URLSearchParams;for(let[r,t]of i)e.append(r,t);n.hash=e.toString()}return n.href},exports.convert1dTo2dArray=(e,r)=>{let t=e.slice(0),o=[];for(;t.length;)o.push(t.splice(0,r));return o},exports.detectInjectedConnectors=async function(e,r,t,o=3e3){let n=!1,i=window;return new Promise((l=>{function a(){if(n)return;n=!0,window.removeEventListener("ethereum#initialized",a);let o=e.getProviders();console.debug("Detected injected providers:",o.map((e=>e.info)));let i=[];for(let e of o)r.includes("coinbase_wallet")&&"com.coinbase.wallet"===e.info.rdns||i.push({type:e.info.name.toLowerCase().replace(/\s/g,"_"),eip6963InjectedProvider:e});for(let e of function(){let e=window,r=e.ethereum;if(!r)return[];let t=[];if(r.providers?.length)for(let e of r.providers)e&&t.push(e);return t.push(e.ethereum),t}()){let r=v(e);if(!o.some((e=>e.info.name===r))){if(f(e,!0)&&!i.find((e=>"metamask"===e.type))){i.push({type:"metamask",legacyInjectedProvider:e});continue}if("Phantom"===r&&!i.find((e=>"phantom"===e.type))){i.push({type:"phantom",legacyInjectedProvider:e});continue}if("Coinbase Wallet"===r&&!i.find((e=>"coinbase_wallet"===e.type&&"smartWalletOnly"!==t?.coinbaseWallet?.connectionOptions))){i.push({type:"coinbase_wallet",legacyInjectedProvider:e});continue}i.find((e=>"unknown_browser_extension"===e.type))||i.push({type:"unknown_browser_extension",legacyInjectedProvider:e})}}l(i)}i.ethereum?a():(window.addEventListener("ethereum#initialized",a,{once:!0}),setTimeout((()=>{a()}),o))}))},exports.e=function(){try{let e="privy:__session_storage__test",r=new d;return r.put(e,"blobby"),r.del(e),!0}catch(e){return!1}},exports.e5=h,exports.emitPrivyEvent=W,exports.formatChainIdToCAIP2=function(e){return`eip155:${String(Number(e))}`},exports.formatWalletAddress=m,exports.generateTypedDataWithDomainType=e=>{let r={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},t=e.types.EIP712Domain??Object.entries(e.domain).map((([e,t])=>{if(null!=t&&"string"==typeof e&&e in r)return{name:e,type:r[e]}})).filter((e=>void 0!==e));return{...e,types:{...e.types,EIP712Domain:t}}},exports.getBlockExplorerUrlForAddress=(e,r)=>{let{chains:t}=n.usePrivyInternal(),o=`https://etherscan.io/address/${r}`,i=`${((e,r)=>{let t=Number(e),o=r.find((e=>e.id===t));if(!o)throw new n.PrivyConnectorError(`Unsupported chainId ${e}`,4901);return o.blockExplorers?.default.url})(e,t)}/address/${r}`;if(!i)return o;try{new URL(i)}catch{return o}return i},exports.getDollarsFromStringFloat=(e,r)=>{let t=B(r*parseFloat(e));return"$0.00"!==t?t:"<$0.01"},exports.getDollarsFromWei=(e,r)=>{let t=B(r*parseFloat(a.formatEther(e)));return"$0.00"===t?"<$0.01":t},exports.getJsonRpcEndpoint=(e,r,t,o)=>{let i=Number(e),l=r.find((e=>e.id===i));if(!l)throw new n.PrivyConnectorError(`Unsupported chainId ${e}`,4901);return g(l,t,o)},exports.getJsonRpcEndpointFromChain=g,exports.getJsonRpcProvider=(e,r,t,o)=>{let i=Number(e),l=r.find((e=>e.id===i));if(!l)throw new n.PrivyConnectorError(`Unsupported chainId ${e}`,4901);return new s.StaticJsonRpcProvider(l.rpcUrls.privyWalletOverride&&l.rpcUrls.privyWalletOverride.http[0]?l.rpcUrls.privyWalletOverride.http[0]:t.rpcUrls&&t.rpcUrls[i]?t.rpcUrls[i]:l.rpcUrls.privy?.http[0]?{url:l.rpcUrls.privy.http[0],headers:{"privy-app-id":o.appId}}:l.rpcUrls.public?.http[0]?l.rpcUrls.public.http[0]:l.rpcUrls.default?.http[0])},exports.getNativeCurrencyFromWei=(e,r,t=6,o=!1)=>{let n=parseFloat(a.formatEther(e)).toFixed(t).replace(/0+$/,"").replace(/\.$/,"");return o?`${n} ${r}`:`${"0"===n?"<0.001":n} ${r}`},exports.i=u,exports.invokeUntilSettled=(e,r={})=>{let t=r.delayMs||150,o=r.maxAttempts||270;return new Promise((async(n,i)=>{let l=!1,a=0;for(;!l&&a<o;){if(r.abortSignal?.aborted)return;e().then((e=>{l=!0,n(e)}),((...e)=>{l=!0,i(...e)})),a+=1,await y(t)}l||i(Error("Exceeded max attempts before resolving function"))}))},exports.isCoinbaseWalletInstalled=()=>{let e=window;if(!e.ethereum)return!1;if(e.ethereum.isCoinbaseWallet)return!0;if(e.ethereum.providers)for(let r of e.ethereum.providers)if(r&&r.isCoinbaseWallet)return!0;return!1},exports.isPhantomInstalled=()=>{if("phantom"in window){let e=window;if(e?.phantom?.ethereum?.isPhantom)return!0}return!1},exports.pollForResult=function(e,{interval:r=100,timeout:t=5e3}={}){return new Promise(((o,n)=>{let i,l=0,a=()=>{l>=t?n("Max attempts reached without result"):(i=e(),l+=r,null==i?setTimeout(a,r):o(i))};a()}))},exports.privyEventsDefault={login:{onComplete:[],onError:[],onOAuthLoginComplete:[]},logout:{onSuccess:[]},connectWallet:{onSuccess:[],onError:[]},createWallet:{onSuccess:[],onError:[]},linkAccount:{onSuccess:[],onError:[]},configureMfa:{onMfaRequired:[]},setWalletPassword:{onSuccess:[],onError:[]},setWalletRecovery:{onSuccess:[],onError:[]},signMessage:{onSuccess:[],onError:[]},signTypedData:{onSuccess:[],onError:[]},sendTransaction:{onSuccess:[],onError:[]},sendSolanaTransaction:{onSuccess:[],onError:[]},accessToken:{onAccessTokenGranted:[],onAccessTokenRemoved:[]},oAuthAuthorization:{onOAuthTokenGrant:[]},fundWallet:{onUserExited:[]},customAuth:{onAuthenticated:[],onUnauthenticated:[]}},exports.r=function(e){let r={};return void 0!==e.to&&(r.to=e.to),void 0!==e.data&&(r.data=e.data),void 0!==e.chainId&&(r.chainId=e.chainId),void 0!==e.type&&(r.type=e.type),void 0!==e.accessList&&(r.accessList=e.accessList),void 0!==e.nonce&&(r.nonce=u(e.nonce).toNumber()),void 0!==e.gasLimit&&(r.gasLimit=u(e.gasLimit)),void 0!==e.gasPrice&&(r.gasPrice=u(e.gasPrice)),void 0!==e.value&&(r.value=u(e.value)),void 0!==e.maxFeePerGas&&(r.maxFeePerGas=u(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=u(e.maxPriorityFeePerGas)),r},exports.sleep=y,exports.splitAtIndex=(e,r)=>{let t=[],o=[];for(let[n,i]of e.entries())n<r?t.push(i):o.push(i);return[t,o]},exports.stripEmoji=e=>e.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,""),exports.sumWeiQuantitiesToHexString=e=>e.map(u).reduce(((e,r)=>e.add(r)),l.BigNumber.from(0)).toHexString(),exports.t=function(e){if("number"==typeof e||"bigint"==typeof e||"string"==typeof e)return e;if("function"==typeof e.toHexString)return e.toHexString();throw Error(`Expected numeric value but received ${e}`)},exports.toHex=e=>"string"==typeof e?e:"0x"+e.toString(16),exports.useConnectWallet=function(r){let{connectWallet:t}=e.useContext(n.PrivyContext);return b("connectWallet",r),{connectWallet:t}},exports.useElementHeight=r=>{let[t,o]=e.useState("auto");return e.useEffect((()=>{let e=new ResizeObserver((e=>{o(e[0]?.contentRect.height??"auto")}));return r.current&&e.observe(r.current),()=>{r.current&&e.unobserve(r.current)}}),[r.current]),t},exports.useEmitPrivyEvent=function(){let e=w();return(r,t,...o)=>W(e,r,t,...o)},exports.useFundWallet=e=>{b("fundWallet",e);let{fundWallet:r}=n.usePrivy();return{fundWallet:r}},exports.useLogin=function(r){let{login:t}=e.useContext(n.PrivyContext);return b("login",r),{login:t}},exports.useLogout=function(r){let{logout:t}=e.useContext(n.PrivyContext);return b("logout",r),{logout:t}},exports.usePrivyEventSubscription=b,exports.useRecentlyUsedLogin=()=>e.useContext(M),exports.validateEmail=e=>!!String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|