1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3213,1124],{89214:function(){},85568:function(){},45990:function(t,e,n){"use strict";n.d(e,{D:function(){return i}});var r=n(49218),o=n(92401),a=n(59602);let[i,s]=(0,r.initializeConnector)(t=>new o.CoinbaseWallet({actions:t,options:{url:a.ns[1][0],appName:"web3-react"}}))},75349:function(t,e,n){"use strict";n.d(e,{hooks:function(){return c},walletConnectV2:function(){return s}});var r=n(49218),o=n(47279),a=n(49337);let[i]=Object.keys(n(59602).ZY).map(Number),[s,c]=(0,r.initializeConnector)(t=>new o.WalletConnect({actions:t,options:{projectId:a.l0,chains:[i],showQrModal:!0}}))},59602:function(t,e,n){"use strict";let r;n.d(e,{ZY:function(){return c},ns:function(){return l}});var o=n(49337),a=n(40257);let i={name:"Ether",symbol:"ETH",decimals:18},s=t=>a.env.infuraKey?"https://".concat(t,".infura.io/v3/").concat(o.Pn):"",c={1:{urls:[s("mainnet"),(r="eth-mainnet",a.env.alchemyKey?"https://".concat(r,".alchemyapi.io/v2/").concat(o.QI):""),"https://cloudflare-eth.com","https://rpc.ankr.com/eth","https://eth-mainnet.public.blastapi.io","https://eth-rpc.gateway.pokt.network","https://main-rpc.linkpool.io"].filter(
1Boolean),name:"Mainnet",nativeCurrency:i,blockExplorerUrls:["https://etherscan.io"]},56:{urls:["https://bsc-dataseed1.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed4.binance.org","https://bsc-dataseed.binance.org","https://rpc.ankr.com/bsc","https://bscrpc.com"].filter(Boolean),name:"Binance Coin",nativeCurrency:{name:"Binance Coin",symbol:"BNB",decimals:18},blockExplorerUrls:["https://bscscan.com"]},43114:{urls:["https://api.avax.network/ext/bc/C/rpc","https://rpc.ankr.com/avalanche","https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc"].filter(Boolean),name:"Avalanche",nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},blockExplorerUrls:["https://snowtrace.io"]},8453:{urls:["https://mainnet.base.org","https://base-mainnet.public.blastapi.io"],name:"Base",nativeCurrency:i,blockExplorerUrls:["https://basescan.org"]},10:{urls:[s("optimism-mainnet"),"https://mainnet.optimism.io","https://optimism-mainnet.public.blastapi.io"].filter(Boolean),name:"Optimism",nativeCurrency:{name:"Optimism",symbol:"ETH",decimals:18},blockExplorerUrls:["https://optimistic.etherscan.io"]},42161:{urls:[s("arbitrum-mainnet"),"https://arb1.arbitrum.io/rpc","https://rpc.ankr.com/arbitrum"].filter(Boolean),name:"Arbitrum One",nativeCurrency:{name:"Arbitrum",symbol:"ARB",decimals:18},blockExplorerUrls:["https://arbiscan.io"]},1030:{urls:["https://evm.confluxrpc.com","https://conflux-espace-public.unifra.io"],name:"Conflux eSpace",nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},blockExplorerUrls:["https://evm.confluxscan.net"]},137:{urls:[s("polygon-mainnet"),"https://polygon-rpc.com","https://rpc-mainnet.matic.network","https://rpc-mainnet.matic.quiknode.pro","https://rpc.ankr.com/polygon","https://polygon-mainnet.public.blastapi.io"].filter(
1Boolean),name:"Polygon Mainnet",nativeCurrency:{name:"Matic",symbol:"MATIC",decimals:18},blockExplorerUrls:["https://polygonscan.com"]},250:{urls:["https://rpc.ftm.tools","https://rpc.ankr.com/fantom"].filter(Boolean),name:"Fantom",nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},blockExplorerUrls:["https://ftmscan.com"]},42220:{urls:["https://forno.celo.org"],name:"Celo",nativeCurrency:{name:"Celo",symbol:"CELO",decimals:18},blockExplorerUrls:["https://explorer.celo.org"]},59144:{urls:["https://linea-mainnet.infura.io/v3"],name:"Linea",nativeCurrency:i,blockExplorerUrls:["https://explorer.linea.build"]},1313161554:{urls:["https://mainnet.aurora.dev/"],name:"Aurora",nativeCurrency:{name:"NEAR",symbol:"NEAR",decimals:18},blockExplorerUrls:["https://aurorascan.dev"]}};[s("goerli")].filter(Boolean),[s("optimism-goerli"),"https://goerli.optimism.io"].filter(Boolean),[s("arbitrum-goerli"),"https://goerli-rollup.arbitrum.io/rpc"].filter(Boolean),[s("polygon-mumbai"),"https://rpc-mumbai.maticvigil.com"].filter(Boolean);let u={...c},l=Object.keys(u).reduce((t,e)=>{let n=u[Number(e)].urls;return n.length&&(t[Number(e)]=n),t},{})},54116:function(t,e,n){"use strict";n.d(e,{O:function(){return c}});var r=n(2265),o=n(43161),a=n(14086),i=n(66274),s=n(20418);let c=()=>{let t=(0,i.tv)(),{getLink:e}=(0,o.m)(),n=(0,i.jD)(),{initialize:c}=(0,s.E)(),[u,l]=(0,r.useState)(!1);return{signUp:async(r,o,i,s)=>{try{if("success"!==r.code)return l(!1),o(r.error.message),i(!0),r.error.message;{if(r.data.loginCode)return;let{token:o,two_factor_enabled:u,getStreamToken:m,expiresIn:p}=r.data;if(u&&s){s(!0),l(!1);return}(0,a.KY)(o,m,p),i(!1),l(!1),await c(!0),t.replace(n),t.push(e())}i(!0)}catch(e){let t="errors.anErrorOccurred";return e instanceof Error&&(t=e.message),l(!1),i(!0),o("string"==typeof e?e:t),"string"==typeof e?e:t}},linkedAccount:async(t,e,n)=>{try{"success"===t.code?(n(!1),await c(!0)):(e(t.error.message),n(!0))}catch(r){let t="errors.anErrorOccurred";r instanceof Error&&(t=r.message),l(!1),n(!0),e("string"==typeof r?r:t)}},pending:u}}},17034:function(t,e,n){"use strict";n.d(e,{k1:function(){return b},Su:function(){return y},_d:function(){return h},IN:function(){return c},cS:function(){return l},Ou:function(){return g}});var r=n(21770),o=n(18229),a=n(31162),i=n(61746),s=n(54116);let c=t=>{let{setErrorMessage:e,setOpenMessage:n,setIs2FARequired:c,onGoogleSignUpSuccess:u,language:l,promotionCode:m}=t,p=(0,r.D)({mutationKey:["sign-up-google"],mutationFn:a.G4}),{signUp:d,pending:g}=(0,s.O)(),h=(0,o.Nq)({onSuccess:async t=>{try{let r="function"==typeof m?m():void 0,o=await p.mutateAsync({credential:t.access_token,language:l,promotionCode:r});"success"===o.code&&o.data.two_factor_enabled&&u&&t.access_token&&u({clientId:"",credential:t.access_token,twoFactorCode:"",promotionCode:r}),d(o,e,n,c)}catch(t){e("errors.anErrorOccurred")}},onError(t){e(t.error_description||"errors.anErrorOccurred")}});return{signUpWithGoogle:()=>{if((0,i.UV)()){try{(0,i.ju)({mode:"sign-up",language:l,promotionCode:"function"==typeof m?m():void 0})}catch(t){e(t instanceof Error?t.message:"errors.anErrorOccurred"),n(!0)}return}h()},connectingToGoogle:p.isPending||g}};
1n(82957).Buffer,n(2265),n(49218),n(55447),n(66274),n(45990);var u=n(7604);let l=t=>{let{setErrorMessage:e,setOpenMessage:n,language:o,promotionCode:i}=t,c=(0,r.D)({mutationKey:["sign-up-metamask"],mutationFn:a.Q2}),l=(0,r.D)({mutationKey:["sign-metamask-step-2"],mutationFn:a.sh}),{signUp:m,pending:p}=(0,s.O)();return{signUpWithMetamask:async()=>{let t;let r=new u.cR,o=0;do await r.init(),t=r.getProvider(),o+=1;while(!t&&o<=3);if(!t){e("Metamask is not installed on your browser");return}try{let r=await t.request({method:"eth_requestAccounts"});if(!r||!Array.isArray(r)||"string"!=typeof r[0])throw Error("Failed to retrieve accounts from MetaMask");let o=r[0],a="function"==typeof i?i():void 0,s=await c.mutateAsync({publicAddress:o,promotionCode:a});if("success"===s.code){let{messageToSign:r}=s.data,a=await t.request({method:"personal_sign",params:[r,o]}),i={publicAddress:o,messageToSign:r,signature:"string"==typeof a?a:""};if(!i.signature)throw Error("Invalid signature received from MetaMask");let c=await l.mutateAsync(i);m(c,e,n)}else e(s.error.message)}catch(t){n(!0),e("string"==typeof t?t:t.message)}},connectedToMetamask:c.isSuccess,connectingToMetamask:c.isPending||l.isPending||p}};var m=n(45355),p=n(79987);let d=(0,p.k3)(),g=t=>{let{setErrorMessage:e,setOpenMessage:n,language:o,promotionCode:i}=t,c=(0,r.D)({mutationKey:["sign-up-telegram"],mutationFn:a.jv}),{signUp:u}=(0,s.O)(),{onAuth:l,isLoading:g}=(0,m.Z)(d,{windowFeatures:{width:500,height:800,popup:!0}},{onSuccess:async t=>{let r={telegramId:t.id?t.id.toString():"",telegramUser:t.username,name:t.first_name,lastname:t.last_name,language:o,promotionCode:"function"==typeof i?i():void 0},a=await c.mutateAsync(r);await u(a,e,n)},onError:t=>{n(!0),e("string"==typeof t?t:t.message)}});return{signUpWithTelegram:()=>{if((0,p.T4)()){(0,p.Q2)({mode:"sign-up",language:o,promotionCode:"function"==typeof i?i():void 0});return}l()},connectingToTelegram:g}},h=t=>{let{setErrorMessage:e,setOpenMessage:n}=t,o=(0,r.D)({mutationKey:["sign-up-email-password"],mutationFn:a.wH}),{signUp:i,pending:c}=(0,s.O)();return{signUpWithEmailAndPassword:async t=>i(await o.mutateAsync(t),e,n),connectingWithEmailAndPassword:o.isPending||c}};var f=n(36067);let v=(0,p.k3)(),y=t=>{let{setErrorMessage:e,setOpenMessage:n}=t,o=(0,r.D)({mutationKey:["linked-telegram-account"],mutationFn:a.aj}),{linkedAccount:i}=(0,s.O)(),{showMessage:c}=(0,f.useSnackbar)(),{onAuth:u,isLoading:l}=(0,m.Z)(v,{windowFeatures:{width:500,height:800,popup:!0}},{onSuccess:async t=>{let r={telegramId:t.id?t.id.toString():"",telegramUser:t.username,name:t.first_name,lastname:t.last_name},a=await o.mutateAsync(r);await i(a,e,n)},onError:t=>{let r="string"==typeof t?t:t.message;n(!0),e(r),c(r,"error")}});return{linkedAccountWithTelegram:u,connectingToTelegram:l}},b=t=>{let{setErrorMessage:e,setOpenMessage:n}=t,o=(0,r.D)({mutationKey:["activate-phone-user"],mutationFn:a.vy}),{signUp:i,pending:c}=(0,s.O)();return{activateUser:async t=>{i(await o.mutateAsync(t),e,n)},connectingWithEmailAndPassword:o.isPending||c}};n(27371),n(20418),n(43161),n(14086),n(75349)},31162:function(t,e,n){"use strict";n.d(e,{ED:function(){return l},G4:function(){return d},Jx:function(){return h},Q2:function(){return f},YH:function(){return u},aL:function(){return y},aj:function(){return c},jv:function(){return s},nS:function(){return g},sh:function(){return v},vy:function(){return p},wH:function(){return m}});var r=n(820),o=n(55447),a=n(86358);let i=(t,e)=>{let n=new r.Z,o=n.get("referrer"),i=n.get("referrer_timestamp"),s={"referrer-info":o&&i?JSON.stringify({referrer:o,timestamp:i}):null};return(0,a.Mx)("".concat("https://api.xyes.com/api/v1").concat(t),e,s)},s=t=>i("".concat(o.Hv.auth.telegramSignUp),t),c=t=>(0,a.Bu)("".concat(o.Hv.auth.telegramLinkedStatus),t),u=t=>{let{telegramId:e,telegramUser:n,name:r,lastname:a,promotionCode:s}=t;return i("".concat(o.Hv.auth.telegramSignIn),{telegramId:e,telegramUser:n,name:r,lastname:a,promotionCode:s})},l=t=>"phone"in t?i("".concat(o.Hv.auth.phoneLogin),t):i("".concat(o.Hv.auth.login),t),m=t=>i("".concat(o.Hv.auth.register),t),p=t=>i("".concat(o.Hv.auth.phoneActiveUser),t),d=t=>{let{credential:e,language:n,promotionCode:r}=t;return i("".concat(o.Hv.auth.googleSignUp),{credential:e,clientId:"846123756025-o8d46i5ua9h57t65aqt9h1sb0vdemrsf.apps.googleusercontent.com",language:n,promotionCode:r})},g=(t,e,n)=>i("".concat(o.Hv.auth.googleSignIn),{credential:t,clientId:"846123756025-o8d46i5ua9h57t65aqt9h1sb0vdemrsf.apps.googleusercontent.com",twoFactorCode:e,promotionCode:n}),h=t=>{let{publicAddress:e,promotionCode:n}=t;return i("".concat(o.Hv.auth.metamaskSignIn),{publicAddress:e,promotionCode:n})},f=t=>{let{publicAddress:e,language:n,promotionCode:r}=t;return i("".concat(o.Hv.auth.metamaskSignUp),{publicAddress:e,language:n,promotionCode:r})},v=t=>i("".concat(o.Hv.auth.metamaskSignUpStep2),t),y=t=>i("".concat(o.Hv.auth.walletConnectSignIn),{publicAddress:t})},86358:function(t,e,n){"use strict";n.d(e,{Bu:function(){return s},Mx:function(){return i},gc:function(){return a}});var r=n(55447);let o=async t=>{try{let e=await t();return{code:"success",data:e.data}}catch(c){let t,s="errors.anErrorOccurred";if("string"==typeof c)s=c;else if("object"==typeof c){var e,n,r,o,a,i;s=null!==(a=null!==(o=null==c?void 0:null===(n=c.response)||void 0===n?void 0:null===(e=n.data)||void 0===e?void 0:e.message)&&void 0!==o?o:null==c?void 0:c.message)&&void 0!==a?a:"errors.anErrorOccurred",t=null!==(i=null==c?void 0:null===(r=c.response)||void 0===r?void 0:r.status)&&void 0!==i?i:500}return{code:"error",error:{message:s,responseErrorCode:t}}}},a=async t=>o(()=>r.ZP.get(t)),i=async(t,e,n)=>o(()=>r.ZP.post(t,e,{headers:n})),s=async(t,e)=>o(()=>r.ZP.patch(t,e))},61746:function(t,e,n){"use strict";n.d(e,{A2:function(){return s},UV:function(){return a},i5:function(){return u},ju:function(){return m},uv:function(){return l},xb:function(){return c}});var r=n(79987);let o="google_auth_pending",a=()=>(0,r.T4)(),i=t=>{sessionStorage.setItem(o,JSON.stringify({...t,createdAt:Date.now()}))},s=()=>{try{let t=sessionStorage.getItem(o);if(!t)return null;return JSON.parse(t)}catch(t){return null}},c=()=>{sessionStorage.removeItem(o)},u=()=>{let t=window.location.hash.replace(/^#/,"")||"";return t?new URLSearchParams(t).get("access_token"):null},l=()=>{let t=window.location.hash.replace(/^#/,"")||"";if(!t)return null;let e=new URLSearchParams(t);return e.get("error_description")||e.get("error")},m=t=>{let e="846123756025-o8d46i5ua9h57t65aqt9h1sb0vdemrsf.apps.googleusercontent.com";if(!e)throw Error("NEXT_PUBLIC_GOOGLE_CLIENT_ID is not configured");i(t);let n=new URLSearchParams({client_id:e,redirect_uri:"".concat(window.location.origin,"/auth/google/callback"),response_type:"token",scope:"openid profile email",include_granted_scopes:"true",prompt:"select_account"});window.location.assign("https://accounts.google.com/o/oauth2/v2/auth?".concat(n.toString()))}},79987:function(t,e,n){"use strict";n.d(e,{Ke:function(){return l},Q2:function(){return m},T4:function(){return a},YT:function(){return c},e4:function(){return s},k3:function(){return o}});let r="telegram_auth_pending",o=()=>{let t=String("7853726358").trim();return/^\d+$/.test(t)?t:""},a=()=>{var t,e;if("undefined"==typeof navigator)return!1;let n=navigator.userAgent||"",r=window;return/Telegram/i.test(n)||/Nicegram/i.test(n)||!!r.TelegramWebviewProxy||!!r.TelegramWebview||!!(null===(t=r.Telegram)||void 0===t?void 0:t.WebView)||!!(null===(e=r.Telegram)||void 0===e?void 0:e.WebApp)},i=t=>{sessionStorage.setItem(r,JSON.stringify({...t,createdAt:Date.now()}))},s=()=>{try{let t=sessionStorage.getItem(r);if(!t)return null;return JSON.parse(t)}catch(t){return null}},c=()=>{sessionStorage.removeItem(r)},u=t=>{let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 2:e+="==";break;case 3:e+="="}return atob(e)},l=()=>{let t=window.location.hash.replace(/^#/,"")||"";if(t.startsWith("tgAuthResult="))try{let e=t.slice(13),n=JSON.parse(u(decodeURIComponent(e)));if(null!=n.id)return n}catch(e){try{let e=t.slice(13),n=JSON.parse(u(e));if(null!=n.id)return n}catch(t){return null}}let e=new URLSearchParams(window.location.search),n=e.get("id");return n?{id:n,first_name:e.get("first_name")||void 0,last_name:e.get("last_name")||void 0,username:e.get("username")||void 0,photo_url:e.get("photo_url")||void 0,auth_date:e.get("auth_date")?Number(e.get("auth_date")):void 0,hash:e.get("hash")||void 0}:null},m=t=>{let e=o(),{origin:n}=window.location,r="".concat(n,"/auth/telegram/callback");i(t);let a=new URLSearchParams({bot_id:e,origin:n,request_access:"write",return_to:r});window.location.assign("https://oauth.telegram.org/auth?".concat(a.toString()))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.