PageSourceSearch

https://endemic.app/_next/static/chunks/4363-0e188e76672b0742.js

js endemic.app collected 2026-10-04 02:29:40 UTC 58,933 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4363],{74501:function(e,t,n){"use strict";n.r(t);var i,r=n(94746);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.default=function(e){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 10"},e),i||(i=r.createElement("path",{fill:"inherit",d:"M10.556 9.567a.8.8 0 0 0 1.132.01l4.073-4a.804.804 0 0 0 0-1.142l-4.073-4a.8.8 0 1 0-1.121 1.141l2.676 2.63H.8a.8.8 0 1 0 0 1.6h12.443l-2.676 2.629a.8.8 0 0 0-.01 1.132"})))}},65011:function(e,t,n){"use strict";var i,r,a=n(94746);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,fill:"none"},e),i||(i=a.createElement("rect",{width:20,height:3,y:14.142,rx:1.5,transform:"rotate(-45 0 14.142)"})),r||(r=a.createElement("rect",{width:20,height:3,rx:1.5,transform:"scale(-1 1)rotate(-45 8.94 26.703)"})))}},27941:function(e,t,n){"use strict";var i,r,a=n(94746);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 80"},e),i||(i=a.createElement("path",{fill:"#00A099",d:"M52.247 10.193a21 21 0 0 0-3.197-.19H31.38a21.296 21.296 0 0 0-8.446 40.856c2.093.9 4.467 1.467 6.843 1.657.973.273 1.807 1.14 1.807 2.2v11.667c0 1.816 1.2 3.29 3.016 3.29s3.017-1.474 3.017-3.294v-6.643c0-1.277 1.167-2.31 2.44-2.31 1.277 0 2.36 1.033 2.36 2.31l.03 5.15v1.843c0 1.82 2.1 3.297 3.92 3.297s3.924-1.477 3.924-3.297V54.88c0-1.27.426-2.3 1.7-2.3l-2.387-.006c8.41-.094 15.5-5.06 18.89-12.204 1.313-2.766 1.966-5.833 1.966-9.103 0-10.697-7.946-19.53-18.213-21.073M40.214 46.969a15.267 15.267 0 0 1-15.257-15.26 15.256 15.256 0 1 1 15.257 15.26"})),r||(r=a.createElement("path",{d:"M40.39 39.187a7.367 7.367 0 1 0 0-14.734 7.367 7.367 0 0 0 0 14.734"})))}},15331:function(e,t,n){"use strict";var i,r,a=n(94746);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},e),i||(i=a.createElement("path",{d:"M10.25 6.083a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M6.917 13.166v-1.667h1.25V9.833h-.834V8.166H9c.46 0 .833.373.833.833v2.5h1.25v1.667z"})),r||(r=a.createElement("path",{fillRule:"evenodd",d:"M9 17.333A8.333 8.333 0 1 1 9 .666a8.333 8.333 0 0 1 0 16.667m0-1.667A6.667 6.667 0 1 0 9 2.333a6.667 6.667 0 0 0 0 13.333",clipRule:"evenodd"})))}},24363:function(e,t,n){Promise.resolve().then(n.t.bind(n,65878,23)),Promise.resolve().then(n.bind(n,88412)),Promise.resolve().then(n.bind(n,86133)),Promise.resolve().then(n.bind(n,78724)),Promise.resolve().then(n.bind(n,43699)),Promise.resolve().then(n.bind(n,47604)),Promise.resolve().then(n.bind(n,85476)),Promise.resolve().then(n.bind(n,69169)),Promise.resolve().then(n.bind(n,99492)),Promise.resolve().then(n.bind(n,38030)),Promise.resolve().then(n.bind(n,25510)),Promise.resolve().then(n.bind(n,78715))},99376:function(e,t,n){"use strict";var i=n(35475);n.o(i,"notFound")&&n.d(t,{notFound:function(){return i.notFound}}),n.o(i,"redirect")&&n.d(t,{redirect:function(){return i.redirect}}),n.o(i,"usePathname")&&n.d(t,{usePathname:function(){return i.usePathname}}),n.o(i,"useRouter")&&n.d(t,{useRouter:function(){return i.useRouter}}),n.o(i,"useSearchParams")&&n.d(t,{useSearchParams:function(){return i.useSearchParams}})},62830:function(e,t,n){"use strict";n.d(t,{IU:function(){return s},J4:function(){return d},WX:function(){return c},kS:function(){return l},y2:function(){return u}});var i=n(30427),r=n(22607),a=n(64131),o=n(78062);async function s(e,t,n,i,a){return await fetch("".concat(r.Z.apiUrl,"/auth/sign-up"),{method:"POST",mode:"cors",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t,repeatPassword:n,acceptedTermsAndConditions:i,referralCode:a})})}async function u(e,t){let n=await fetch("".concat(r.Z.apiUrl,"/auth/sign-in"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t})});if(n.status>=400){let e=await n.json();throw Error(null==e?void 0:e.message)}return n.ok}async function l(){a.Z.remove(i.X$);let e=o.Z.stringifyUrl({url:"".concat(r.Z.apiUrl,"/auth/logout")});await fetch(e,{credentials:"include"})}async function c(){let e=await fetch("".concat(r.Z.apiUrl,"/auth/verify-token"),{credentials:"include",method:"GET"});return await e.json()}async function d(){let e=await fetch("".concat(r.Z.apiUrl,"/auth/verify-token-address"),{credentials:"include",method:"GET"});return await e.json()}},90728:function(e,t,n){"use strict";n.d(t,{CO:function(){return s},F2:function(){return o},ZP:function(){return u}});var i=n(51779),r=n.n(i);function a(e,t,n){let i=n[t];if("boolean"==typeof i)return e[t];if("object"==typeof i)return i.addressGetter(e);throw Error("wrong address")}function o(e,t){let n=e.reduce((e,n)=>[...e,...Object.keys(n).filter(e=>!!t[e]).map(e=>a(n,e,t))],[]);return r()(n)}function s(e,t,n,i){return Object.keys(e).reduce((r,o)=>{let s=t[o];if(s){let u=a(e,o,t),l=o;"object"==typeof s&&(l=s.name||o);let c=n.find(e=>i(e)===(null==u?void 0:u.toLowerCase()));return{...r,[o]:e[o],[l]:o===l?c||e[o]:c}}return{...r,[o]:e[o]}},{})}function u(e){let t=new FormData;return t.append("file",e),t}},30833:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var i=n(64131),r=n(22607),a=n(6948);class o extends a.c{async authenticate(){return this.requestInit={...this.requestInit,credentials:"include"},this}async getBlockchain(){return i.Z.get(r.Z.cookies.blockchain)}constructor(e,t){super(e,t)}}},6948:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var i=n(22607),r=n(2265);let a=async(e,t)=>{let n=await fetch(e,t);if(n.status>=400){let{message:e}=await n.json();throw Error(e)}return n};class o{async chainify(){var e;let t=await this.getBlockchain()||i.Z.defaultChain;return this.requestInit={...this.requestInit,headers:{...null===(e=this.requestInit)||void 0===e?void 0:e.headers,"x-chain":t}},this}async call(e,t){let n=t?t(this.requestInit):this.requestInit,i=e||this.url;if(this.callback)return await this.callback(n);if(i){let e=await a(i,n),t=e.headers.get("Content-Type");return(null==t?void 0:t.includes("application/json"))?await e.json():await e.text()}throw Error("Wrong ServerRequestBuilder call")}constructor(e,t){"function"==typeof e?this.callback=(0,r.cache)(e):"string"==typeof e&&(this.url=e),this.requestInit={signal:t}}}},27201:function(e,t,n){"use strict";n.d(t,{I:function(){return o},t:function(){return a}});var i=n(30833);let r=e=>{let t;return e[e.length-1]instanceof AbortSignal&&(t=e.pop()),{signal:t,argsWithoutSignal:e}},a=e=>async function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];let{signal:o,argsWithoutSignal:s}=r(n),u=new i.K(void 0,o);return await u.chainify(),await e(u)(...s)},o=e=>async function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];let{signal:o,argsWithoutSignal:s}=r(n),u=new i.K(void 0,o);return await u.chainify(),await u.authenticate(),await e(u)(...s)}},69628:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(22607),r=n(90728),a=n(27201),o=n(74676),s=n(78062),u=e=>t=>{let n=s.Z.stringifyUrl({url:"".concat(i.Z.apiUrl,"/users/multiple-by-identifier"),query:{identifiers:t}}
1);return e.call(n)};async function l(e,t){let n=(0,r.F2)(e,t),i=await (0,a.t)(u)(n);return e.map(e=>(0,r.CO)(e,t,i,e=>e.address))}var c={getFeaturedArtists:(0,a.t)(e=>t=>e.call("".concat(i.Z.apiUrl,"/users/featured-artists?take=").concat(t))),getArtists:(0,a.t)(e=>function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.L8,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",l=s.Z.stringifyUrl({url:"".concat(i.Z.apiUrl,"/users/artists"),query:{sortType:t,skip:n,take:r,showOpenToWorkOnly:a,searchTerm:u}});return e.call(l)}),getUserByIdentifier:(0,a.t)(e=>t=>e.call("".concat(i.Z.apiUrl,"/users/").concat(t))),getUsersByIdentifiers:(0,a.t)(u),getFollowingById:(0,a.t)(e=>t=>{let{userId:n,page:r=0,pageSize:a=o.L8}=t,u=s.Z.stringifyUrl({url:"".concat(i.Z.apiUrl,"/users/").concat(n,"/following"),query:{skip:r*a,take:a}});return e.call(u)}),getFollowersById:(0,a.t)(e=>t=>{let{userId:n,page:r=0,pageSize:a=o.L8}=t,u=s.Z.stringifyUrl({url:"".concat(i.Z.apiUrl,"/users/").concat(n,"/followers"),query:{skip:r*a,take:a}});return e.call(u)}),me:(0,a.I)(e=>async()=>{try{return await e.call("".concat(i.Z.apiUrl,"/users/me"))}catch(e){return null}}),updateMyProfile:(0,a.I)(e=>t=>e.call("".concat(i.Z.apiUrl,"/users"),e=>({...e,method:"PUT",headers:{...e.headers,"Content-Type":"application/json"},body:JSON.stringify({id:t.id,address:t.address,displayName:t.displayName,fullName:t.fullName,imageUrl:t.imageUrl,imagePlaceholder:t.imagePlaceholder,headerImagePlaceholder:t.headerImagePlaceholder,twitter:t.twitter,telegram:t.telegram,instagram:t.instagram,facebook:t.facebook,website:t.website,discord:t.discord,homeAddress:t.homeAddress,description:t.description,clothingSize:t.clothingSize,headerImageUrl:t.headerImageUrl,email:t.email,hideProfile:t.hideProfile,openToWork:t.openToWork,receiveTradeNotifications:t.receiveTradeNotifications,receiveNftNotifications:t.receiveNftNotifications,receivePostNotifications:t.receivePostNotifications,receiveFollowedNotification:t.receiveFollowedNotification,receiveTipReceivedNotification:t.receiveTipReceivedNotification,receiveNftReadyToMintNotification:t.receiveNftReadyToMintNotification,receiveNftDeniedNotification:t.receiveNftDeniedNotification})}))),sendVerificationEmail:(0,a.I)(e=>t=>e.call("".concat(i.Z.apiUrl,"/users/send-verification/").concat(t),e=>({...e,method:"POST"}))),enrichWithUser:l,disconnectDiscord:(0,a.I)(e=>()=>e.call("".concat(i.Z.apiUrl,"/users/discord/disconnect"),e=>({...e,method:"PUT"}))),disconnectTelegram:(0,a.I)(e=>()=>e.call("".concat(i.Z.apiUrl,"/users/telegram/disconnect"),e=>({...e,method:"PUT"}))),disconnectTwitter:(0,a.I)(e=>()=>e.call("".concat(i.Z.apiUrl,"/users/twitter/disconnect"),e=>({...e,method:"PUT"})))}},88412:function(e,t,n){"use strict";n.d(t,{default:function(){return es}});var i,r,a,o,s,u,l,c,d,p,f,h,m,y,v=n(57437),b=n(57770),g=n(11106),w=n(53335),x=n(74501),k=n(94746);function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var L=function(e){return k.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 80"},e),r||(r=k.createElement("path",{d:"M52.247 10.193a21 21 0 0 0-3.197-.19H31.38a21.296 21.296 0 0 0-8.446 40.856c2.093.9 4.467 1.467 6.843 1.657.973.273 1.807 1.14 1.807 2.2v11.667c0 1.816 1.2 3.29 3.016 3.29s3.017-1.474 3.017-3.294v-6.643c0-1.277 1.167-2.31 2.44-2.31 1.277 0 2.36 1.033 2.36 2.31l.03 5.15v1.843c0 1.82 2.1 3.297 3.92 3.297s3.924-1.477 3.924-3.297V54.88c0-1.27.426-2.3 1.7-2.3l-2.387-.006c8.41-.094 15.5-5.06 18.89-12.204 1.313-2.766 1.966-5.833 1.966-9.103 0-10.697-7.946-19.53-18.213-21.073M40.214 46.969a15.267 15.267 0 0 1-15.257-15.26 15.256 15.256 0 1 1 15.257 15.26"})),a||(a=k.createElement("path",{fill:"#000",d:"M40.39 39.187a7.367 7.367 0 1 0 0-14.734 7.367 7.367 0 0 0 0 14.734"})))};function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var E=function(e){return k.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 48"},e),o||(o=k.createElement("path",{d:"M33.41 27.934c4.194-.46 7.708-2.916 9.444-6.576a11.34 11.34 0 0 0 1.13-4.992c0-5.994-4.426-11.366-10.18-12.23A12 12 0 0 0 32.012 4H15.974C9.37 4 4.016 9.586 4.016 16.19c0 4.922 2.734 9.264 6.982 11.096 1.096.474 2.628.834 3.362.966v4.266l.25 7.86c0 1.054 1.048 1.91 2.102 1.91 1.056 0 1.974-.856 1.974-1.91l-.04-7.86
1a1.924 1.924 0 0 1 3.846 0l-.066 9.376a1.912 1.912 0 0 0 3.824 0l-.072-9.376a1.911 1.911 0 1 1 3.822 0l-.07 7.86c0 1.054 1.068 1.91 2.124 1.91s2.122-.856 2.122-1.912v-12.89zM16.404 22.87a6.254 6.254 0 0 1-5.197-9.724 6.252 6.252 0 1 1 5.197 9.724m15.804 0a6.254 6.254 0 0 1-2.389-12.028 6.252 6.252 0 1 1 2.39 12.028"})),s||(s=k.createElement("path",{fill:"#000",d:"M16.518 19.985a3.02 3.02 0 1 0 0-6.04 3.02 3.02 0 0 0 0 6.04m15.804 0a3.02 3.02 0 1 0 .156-6.036 3.02 3.02 0 0 0-.156 6.036"})))};function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var O=function(e){return k.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 48"},e),u||(u=k.createElement("path",{d:"M35.1 26.934c4.47-.05 8.244-2.536 10.046-6.334.698-1.47 1.048-3.1 1.048-4.836 0-5.686-4.218-10.82-9.674-11.64A11.5 11.5 0 0 0 34.814 4H13.342C7.08 4 2 9.36 2 15.622c0 4.67 2.822 8.82 6.852 10.556 1.112.48 2.404.856 3.668.958.32.088.62.336.804.626l-.092 12.58c0 .878.99 1.594 1.866 1.594.878 0 1.864-.704 1.864-1.58v-4.188l-.354-4.322c0-.876.56-1.592 1.44-1.592.876 0 1.512.71 1.512 1.588l-.096 10.854a1.574 1.574 0 1 0 3.148 0l-.064-10.856a1.586 1.586 0 0 1 3.172 0l-.06 10.854a1.587 1.587 0 1 0 3.174 0l-.06-10.854a1.588 1.588 0 0 1 3.176 0l-.058 8.516c0 .876.904 1.586 1.78 1.586s1.78-.71 1.78-1.586V26.64zm-19.646-4.78a6 6 0 0 1-6-5.998 6 6 0 1 1 6 6zm17.272 0a5.998 5.998 0 0 1-5.54-8.298 5.998 5.998 0 0 1 9.786-1.943 6 6 0 0 1-4.246 10.241"})),l||(l=k.createElement("path",{fill:"#000",d:"M17.23 14.395a2.49 2.49 0 0 0-2.698-.56 2.5 2.5 0 1 0 2.698.56m17.27 0a2.49 2.49 0 0 0-2.696-.56 2.5 2.5 0 1 0 2.696.56"})))};function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var M=function(e){return k.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80 80"},e),c||(c=k.createElement("path",{d:"M52.247 10.193a21 21 0 0 0-3.197-.19H31.38a21.296 21.296 0 0 0-8.446 40.856c2.093.9 4.467 1.467 6.843 1.657.973.273 1.807 1.14 1.807 2.2v11.667c0 1.816 1.2 3.29 3.016 3.29s3.017-1.474 3.017-3.294v-6.643c0-1.277 1.167-2.31 2.44-2.31 1.277 0 2.36 1.033 2.36 2.31l.03 5.15v1.843c0 1.82 2.1 3.297 3.92 3.297s3.924-1.477 3.924-3.297V54.88c0-1.27.426-2.3 1.7-2.3l-2.387-.006c8.41-.094 15.5-5.06 18.89-12.204 1.313-2.766 1.966-5.833 1.966-9.103 0-10.697-7.946-19.53-18.213-21.073M40.214 46.969a15.267 15.267 0 0 1-15.257-15.26 15.256 15.256 0 1 1 15.257 15.26"})),d||(d=k.createElement("path",{d:"M40.39 39.187a7.367 7.367 0 1 0 0-14.734 7.367 7.367 0 0 0 0 14.734"})))};function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var I=function(e){return k.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),p||(p=k.createElement("path",{d:"M33.41 27.934c4.194-.46 7.708-2.916 9.444-6.576a11.34 11.34 0 0 0 1.13-4.992c0-5.994-4.426-11.366-10.18-12.23A12 12 0 0 0 32.012 4H15.974C9.37 4 4.016 9.586 4.016 16.19c0 4.922 2.734 9.264 6.982 11.096 1.096.474 2.628.834 3.362.966v4.266l.25 7.86c0 1.054 1.048 1.91 2.102 1.91 1.056 0 1.974-.856 1.974-1.91l-.04-7.86a1.924 1.924 0 0 1 3.846 0l-.066 9.376a1.912 1.912 0 0 0 3.824 0l-.072-9.376a1.911 1.911 0 1 1 3.822 0l-.07 7.86c0 1.054 1.068 1.91 2.124 1.91s2.122-.856 2.122-1.912v-12.89zM16.404 22.87a6.254 6.254 0 0 1-5.197-9.724 6.252 6.252 0 1 1 5.197 9.724m15.804 0a6.254 6.254 0 0 1-2.389-12.028 6.252 6.252 0 1 1 2.39 12.028"})),f||(f=k.createElement("path",{d:"M16.518 19.985a3.02 3.02 0 1 0 0-6.04 3.02 3.02 0 0 0 0 6.04m15.804 0a3.02 3.02 0 1 0 .156-6.036 3.02 3.02 0 0 0-.156 6.036"})))};function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var R=function(e){return k.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),h||(h=k.createElement("path",{d:"M35.1 26.934c4.47-.05 8.244-2.536 10.046-6.334.698-1.47 1.048-3.1 1.048-4.836 0-5.686-4.218-10.82-9.674-11.64A11.5 11.5 0 0 0 34.814 4H13.342C7.08 4 2 9.36 2 15.622c0 4.67 2.822 8.82 6.852 10.556 1.112.48 2.404.856 3.668.958.32.088.62.336.804.626l-.092 12.58c0 .878.99 1.594 1.866 1.594.878 0 1.864-.704 1.864-1.58v-4.188l-.354-4.322c0-.876.56-1.592 1.44-1.592.876 0 1.512.71 1.512 1.588l-.096 10.854a1.574 1.574 0 1 0 3.148 0l-.064-10.856a1.586 1.586 0 0 1 3.172 0l-.06 10.854a1.587 1.587 0 1 0 3.174 0l-.06-10.854a1.588 1.588 0 0 1 3.176 0l-.058 8.516c0 .876.904 1.586 1.78 1.586s1.78-.71 1.78-1.586V26.64zm-19.646-4.78a6 6 0 0 1-6-5.998 6 6 0 1 1 6 6zm17.272 0a5.998 5.998 0 0 1-5.54-8.298 5.998 5.998 0 0 1 9.786-1.943 6 6 0 0 1-4.246 10.241"})),m||(m=k.createElement("path",{d:"M17.23 14.395a2.49 2.49 0 0 0-2.698-.56 2.5 2.5 0 1 0 2.698.56m17.27 0a2.49 2.49 0 0 0-2.696-.56 2.5 2.5 0 1 0 2.696.56"})))},U=n(2265),Z=n(83034),q=n(44709);(i=y||(y={}))[i.LOCKING=0]="LOCKING";let B={0:Z.x.INACTIVE};var A=n(99376),G=n(61718),F=n(3124),D=n(51547),_=n(40984),V=n(41662),z=n(52884),H=n(83005),W=n(4725),Q=n(44159);function K(e){let{pool:t,amount:n,onSuccess:i,onClose:r}=e,{isOpen:a,setIsOpen:o,phaseState:s,setPhaseState:u,error:l}=(0,G.p)(),[,c]=(0,U.useTransition)(),{refresh:d}=(0,A.useRouter)(),{lockTokens:p}=function(e,t,n){let{onSuccess:i,onError:r}=n,a=(0,_.Z)(),o=(0,D.Z)(a),{me:s}=(0,F.Z)(),{mutateAsync:u,isLoading:l}=(0,z.useMutation)({mutationFn:async()=>
1{if(!o)throw Error("Contract is required!");if(!s)throw Error("User is required!");switch(e){case b.W4.LIQUID:return await o.liquidLock(V.fi(t.toString()));case b.W4.SHORT_PROLONGED_LIQUID:return await o.shortProlongedLiquidLock(V.fi(t.toString()));case b.W4.LONG_PROLONGED_LIQUID:return await o.longProlongedLiquidLock(V.fi(t.toString()))}},onSuccess:i,onError:r});return{lockTokens:u,isLocking:l}}(t,n,{onSuccess:()=>{u(e=>({...e,[y.LOCKING]:Z.x.SUCCESS})),i({title:"Congratulations",text:"Your tokens are locked"}),c(d)},onError:()=>{u(e=>({...e,[y.LOCKING]:Z.x.ERROR})),r()}}),{approve:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{chainId:t}=(0,W.d)(),n=(0,H.NP)(t);return(0,Q.Z)(null==n?void 0:n.endToken,null==n?void 0:n.tokenLockingAddress,e)}({onSuccess:()=>{p()},onError:()=>{u(e=>({...e,[y.LOCKING]:Z.x.ERROR})),r()}});(0,U.useEffect)(()=>{u(B)},[u]);let h=(0,U.useCallback)(async()=>{u(e=>({...e,[y.LOCKING]:Z.x.PENDING})),await f(V.vz(n.toString(),18))},[n,f,u]);return(0,U.useEffect)(()=>{s[y.LOCKING]===Z.x.INACTIVE&&(o(!0),h())},[s,o,h]),(0,v.jsx)(q.C,{text:"Your tokens are being locked.",isOpen:!!a,handleClose:r,phaseState:s,phases:[{id:y.LOCKING,description:"Locking your tokens"}],error:l})}var J=n(76176),$=n(64177),X=n(58586),Y=n(95689),ee=n(61746);let et=(e,t)=>{switch(e){case b.FB.BRONZE:return t?(0,v.jsx)(M,{className:"w-10 fill-white"}):(0,v.jsx)(L,{className:"w-10 fill-[#F8B133]"});case b.FB.SILVER:return t?(0,v.jsx)(I,{className:"w-10 fill-white"}):(0,v.jsx)(E,{className:"w-10 fill-[#b9b9b9]"});case b.FB.GOLD:return t?(0,v.jsx)(R,{className:"w-10 fill-white"}):(0,v.jsx)(O,{className:"w-10 fill-[#F8B133]"})}};var en=e=>{let{tier:t,pool:n,text:i,fields:r,onSuccess:a,userTier:o,highlightText:s}=e,[u,l]=(0,U.useState)(),[c,d]=(0,U.useState)(""),{balanceInCrypto:p}=function(e){let{web3:t,currentAddress:n,chainId:i}=(0,W.d)(),r=(0,H.NP)(i),a=(0,$.Z)(null==r?void 0:r.endToken),o=async()=>{if(!t||!n||!a)return{rounded:0,raw:0};let e=await a.balanceOf(n),i=(0,V.bM)(e,await a.decimals());return{rounded:(0,Y.og)(i),raw:e}},{data:s}=(0,X.useQuery)({queryKey:["account-balance",n],queryFn:o,enabled:!!(t&&n),staleTime:0}),{cryptoInUSD:u}=(0,ee.Z)(null==s?void 0:s.rounded),l=null==s?void 0:s.rounded;return{balanceInCrypto:l||0===l?l:"-",balanceInRaw:null==s?void 0:s.raw,balanceInUSD:u}}(),f=b.WC[t][n],h=(0,J.Z)(()=>{if(Number(p)<f){d("You don't have enough tokens for this tier");return}l(!0)}),{onClose:m}=(0,G.p)();return(0,v.jsxs)("div",{className:(0,w.m6)("relative w-full max-w-[412px] border-2 border-black rounded-2xl px-2 lg:px-4 py-7 lg:py-11 flex flex-col gap-y-3 lg:gap-y-4 items-center",s&&"bg-red text-white"),children:[et(t,s),(0,v.jsx)("h3",{className:"text-h3 font-semibold",children:b.WC[t].title}),(0,v.jsx)("p",{className:"text-body-4 text-center",children:i}),(0,v.jsx)("div",{className:"w-full flex flex-col",children:r.map(e=>(0,v.jsxs)("div",{className:"w-full flex flex-col items-center gap-y-[2px] py-[6px] border-b border-endemicGray-500",children:[(0,v.jsx)("span",{className:(0,w.m6)("text-body-4 font-normal text-endemicGray-700 block xl:hidden",s&&"text-white"),children:e.label}),(0,v.jsx)("span",{className:"text-body-3",children:e.value})]},e.label))}),(0,v.jsx)(g.z,{onClick:h,disabled:(null!=o?o:-1)>=t,className:"mt-4",startIcon:(0,v.jsx)(x.default,{className:"w-4"}),children:"Select level"}),(0,v.jsx)("span",{className:(0,w.m6)("absolute w-full text-center bottom-2 left-1/2 -translate-x-1/2 text-red text-sm font-light",s&&"text-white"),children:c}),s&&(0,v.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 bg-white px-4 py-[6px] rounded-b-2xl",children:(0,v.jsx)("span",{className:"text-red font-semibold",children:s})}),o===t&&(0,v.jsx)("span",{className:"absolute -top-7 text-primary",children:"Current Tier"}),u?(0,v.jsx)(K,{amount:f,pool:n,onSuccess:e=>{a(e),l(!1)},onClose:()=>{l(!1),m()}}):null]})},ei=n(13584),er=n(76218);let ea=["Lower Fees","Entry to Exhibitions","Entry to Live Events","Auction Participation","IAO Participation","Soulbound Token"];var eo=n(15331),es=e=>{let{pool:t,userTier:n}=e,{setOnClose:i,setIsOpen:r}=(0,G.p)(),{setSuccessData:a}=(0,ei.i)(),o=async e=>{await a(e),r(!0)},s=(0,U.useCallback)(()=>{a(null)},[a]);return(0,U.useEffect)(()=>{i((0,er.U5)(s))},[s,i]),(0,v.jsxs)("div",{className:"flex flex-col items-center lg:flex-row gap-x-4 gap-y-10",children:[(0,v.jsxs)("div",{className:"flex-col gap-y-7 items-center hidden xl:flex",children:[(0,v.jsx)("h3",{className:"justify-center max-w-[200px]",children:"Choose your staking level"}),(0,v.jsx)("div",{className:"flex flex-col min-w-[300px] mt-4",children:ea.map(e=>(0,v.jsxs)("div",{className:"text-body-3 font-bold text-endemicGray py-[6px] px-3 border-b border-endemicGray-500 h-8 w-full flex items-center justify-between gap-x-2",children:[e,(0,v.jsx)(eo.Z,{className:"w-[18px] h-[18px] fill-secondary endemic:fill-primary"})]},e))})]}),(0,v.jsx)(en,{tier:b.FB.BRONZE,pool:t,text:"Unlock the foundational benefits of our staking program. Bronze members enjoy introductory perks and access to select exhibitions.",fields:b.WC[t].features,userTier:n,onSuccess:o}),(0,v.jsx)(en,{tier:b.FB.SILVER,pool:t,text:"Step up your experience with enhanced 
1staking benefits. Silver members get more consistent rewards and broader platform access.",fields:b.WC[t].features,userTier:n,onSuccess:o}),(0,v.jsx)(en,{tier:b.FB.GOLD,pool:t,text:"Maximize your benefits with premium access and top-tier rewards. Gold members enjoy the full range of features and priority opportunities.",fields:b.WC[t].features,highlightText:"Best Deal",userTier:n,onSuccess:o})]})}},77291:function(e,t,n){"use strict";var i=n(57437),r=n(53335),a=n(2265),o=n(33474),s=n(76218),u=n(27648);t.default=(0,a.forwardRef)((e,t)=>{let{element:n=o.D.Button,variant:l=o.$.Primary,native:c=!1,fullWidth:d,startIcon:p,endIcon:f,disabled:h,className:m,children:y,onClick:v,disableClick:b,href:g,target:w,startIconClassName:x,disabledClassName:k,...T}=e,L=(0,a.useMemo)(()=>(0,s.IL)(y),[y]),[P,E]=(0,a.useState)(n);(0,a.useEffect)(()=>{g&&E(o.D.Link)},[g]);let N=(0,r.m6)(!c&&"select-none appearance-none inline-flex items-center no-underline border-2 text-[18px] leading-[22px] rounded-full shadow-[0_4px_0_0_transparent] shadow-primary endemic:shadow-invert bg-primary text-primary endemic:text-invert border-primary endemic:border-invert px-4 py-1.5 transition-all -translate-y-1",!h&&["cursor-pointer active:!shadow-transparent active:!translate-y-0"],!c&&!h&&l===o.$.Primary&&["active:bg-yellow md:hover:bg-yellow md:night:hover:bg-red"],!c&&!h&&l===o.$.Secondary&&["active:bg-secondary md:hover:bg-secondary"],d&&"w-full",m,h&&"!text-disabled shadow-secondary border-secondary endemic:shadow-secondary endemic:border-secondary cursor-default pointer-events-none ".concat(k)),O=()=>(0,i.jsxs)(i.Fragment,{children:[p?(0,i.jsx)("span",{className:(0,r.m6)("fill-primary endemic:fill-invert",L?"pr-2":"",h&&"fill-secondary endemic:fill-disabled [&>svg]:fill-disabled",x),children:p}):null,y,f?(0,i.jsx)("span",{className:(0,r.m6)("ml-auto fill-primary endemic:fill-invert",L?"pl-2":"",h&&"fill-secondary endemic:fill-disabled [&>svg]:fill-disabled"),children:f}):null]});return P==o.D.Link?(0,i.jsx)(u.default,{ref:t,className:N,href:h?{}:g||{},target:w,onClick:e=>!h&&!b&&(null==v?void 0:v(e)),...T,children:O()}):a.createElement(P,{disabled:h,ref:t,className:N,...T,onClick:e=>!h&&!b&&(null==v?void 0:v(e))},O())})},33474:function(e,t,n){"use strict";var i,r,a,o;n.d(t,{$:function(){return i},D:function(){return r}}),(a=i||(i={})).Primary="primary",a.Secondary="secondary",(o=r||(r={})).Link="a",o.Text="span",o.Button="button"},11106:function(e,t,n){"use strict";n.d(t,{z:function(){return i.default}});var i=n(77291)},37159:function(e,t,n){"use strict";n.d(t,{u:function(){return u}});var i=n(57437),r=n(65011),a=n(2265),o=function(e){let{handler:t,enabled:n}=e,i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!n)return;let e=e=>{i.current&&!i.current.contains(e.target)&&t()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[t,n]),i},s=n(53335),u=e=>{let{id:t,isOpen:n,onClose:u,hasCloseButton:l=!1,className:c,children:d,disableClose:p=!1,title:f,subtitle:h,smallPadding:m,centeredTitle:y}=e,v=(0,a.useRef)(null);(0,a.useEffect)(()=>{var e,t,i;return n?((null===(e=v.current)||void 0===e?void 0:e.open)||null===(t=v.current)||void 0===t||t.showModal(),document.body.style.overflow="hidden"):p||null===(i=v.current)||void 0===i||i.close(),()=>{document.body.style.overflow="unset"}},[p,n]);let b=e=>{e.preventDefault(),p||u()}
1,g=o({handler:()=>{var e;null===(e=v.current)||void 0===e||e.close(),u()},enabled:n&&!p});return n?(0,i.jsxs)("dialog",{id:t,ref:v,onCancel:b,children:[(0,i.jsx)("div",{className:"z-50 fixed inset-0 bg-black bg-opacity-50 night:bg-opacity-75"}),(0,i.jsx)("div",{className:"z-50 fixed top-0 left-0 right-0 bottom-0 inset-0 flex items-center justify-center",children:(0,i.jsxs)("div",{ref:g,className:(0,s.m6)("bg-primary border-primary endemic:border-invert night:text-primary border-2 relative p-5 lg:p-14 rounded-2xl h-auto max-h-[95%] overflow-auto overflow-x-hidden custom-scroll",c,m&&"lg:p-10"),children:[f&&(0,i.jsx)("div",{className:(0,s.m6)("text-body-2 font-semibold -mt-2",h?"mb-4":"mb-6",y&&"text-center"),children:f}),h&&(0,i.jsx)("div",{className:(0,s.m6)("mb-6 text-body-3",y&&"text-center"),children:h}),l&&(0,i.jsx)("button",{className:"absolute lg:top-9 lg:right-9 top-4 right-4  focus:outline-none",onClick:b,disabled:p,children:(0,i.jsx)(r.Z,{className:"fill-primary endemic:fill-invert"})}),d]})})]}):null}},83034:function(e,t,n){"use strict";var i,r;n.d(t,{v:function(){return a},x:function(){return i}}),(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.INACTIVE=1]="INACTIVE",r[r.SUCCESS=2]="SUCCESS",r[r.ERROR=3]="ERROR";let a={0:"bg-green",2:"bg-green",1:"bg-gray-200",3:"bg-red"}},67739:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(57437),r=n(37159),a=n(2265),o=n(53335),s=n(83034),u=e=>{let{phaseState:t,phases:n}=e,r=(0,a.useMemo)(()=>{let e="",r=n.map((n,r)=>{let a=t[n.id]===s.x.PENDING;return a&&(e=n.description),(0,i.jsx)("div",{className:(0,o.m6)("w-full h-1 \n              ".concat(a?"animate-pulse":""," \n              ").concat(s.v[t[n.id]]))},r)});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"flex flex-row gap-x-2 w-full",children:r}),(0,i.jsx)("p",{className:"text-body-4 mt-2 text-center w-full",children:e})]})},[t,n]);return(0,i.jsx)("div",{className:"w-full",children:r})},l=n(27941);function c(e){let{text:t,isOpen:n,handleClose:a,phaseState:o,phases:s,error:c}=e;return(0,i.jsxs)(r.u,{hasCloseButton:!!c,className:"flex flex-col items-center gap-y-6 w-full max-w-[510px]",isOpen:n,onClose:a,disableClose:!c,children:[(0,i.jsx)(l.Z,{className:"w-15 h-15 night:fill-white fill-black"}),(0,i.jsx)("div",{className:"text-h2-sm",children:"Please wait..."}),(0,i.jsx)("div",{className:"text-body-2",children:t}),(0,i.jsx)(u,{phaseState:o,phases:s})]})}},61718:function(e,t,n){"use strict";n.d(t,{l:function(){return r},p:function(){return a}});var i=n(2265);let r=(0,i.createContext)({}),a=()=>(0,i.useContext)(r)},44709:function(e,t,n){"use strict";n.d(t,{C:function(){return i.Z}});var i=n(67739)},13584:function(e,t,n){"use strict";n.d(t,{c:function(){return r},i:function(){return a}});var i=n(2265);let r=(0,i.createContext)({}),a=()=>(0,i.useContext)(r)},57770:function(e,t,n){"use strict";var i,r,a,o;n.d(t,{FB:function(){return r},W4:function(){return i},WC:function(){return s}}),(a=i||(i={}))[a.LIQUID=0]="LIQUID",a[a.SHORT_PROLONGED_LIQUID=1]="SHORT_PROLONGED_LIQUID",a[a.LONG_PROLONGED_LIQUID=2]="LONG_PROLONGED_LIQUID",(o=r||(r={}))[o.BRONZE=0]="BRONZE",o[o.SILVER=1]="SILVER",o[o.GOLD=2]="GOLD";let s={0:{title:"Bronze",features:[{label:"Lower Fees",value:"5%"},{label:"Entry to Exhibitions",value:"Access to some exhibitions"},{label:"Entry to Live Events",value:"Normal access"},{label:"Auction Participation",value:"Last 60 - 15 minutes"},{label:"IAO Participation",value:"Basic Functionality"},{label:"Soulbound Token",value:"Bronze token"}],0:3333,1:1e3,2:333},1:{title:"Silver",features:[{label:"Lower Fees",value:"1%"},{label:"Entry to Exhibitions",value:"Access to more exhibitions"},{label:"Entry to Live Events",value:"Normal access"},{label:"Auction Participation",value:"Last 14 - 1 minutes"},{label:"IAO Participation",value:"More Functionality"},{label:"Soulbound Token",value:"Silver token"}],0:15e3,1:3333,2:2e3},2:{title:"Gold",features:[{label:"Lower Fees",value:"0.2%"},{label:"Entry to Exhibitions",value:"Priority access to all exhibitions"},{label:"Entry to Live Events",value:"Priority access to all events"},{label:"Auction Participation",value:"Last 1 minute + time extensions"},{label:"IAO Participation",value:"Full Functionality"},{label:"Soulbound Token",value:"Gold token"}],0:5e4,1:15e3,2:1e4}}},83005:function(e,t,n){"use strict";n.d(t,{ME:function(){return l},NP:function(){return a},Q8:function(){return o},VH:function(){return s},dS:function(){return c},w3:function(){return u}});var i=n(22607);let r=e=>{if(!e)return;let t=i.Z.chains;for(let n in t){let i=t[n];if(i.id===+e)return i}},a=e=>{let t=r(e);return null==t?void 0:t.contracts},o=e=>{let t=r(e);return null==t?void 0:t.paymentMethods},s=e=>{let t=u(e);return null==t?void 0:t.paymentMethods},u=e=>{if(!e)return;let t=i.Z.chains[e];if(!t)throw Error("Unsupported chain config!");return t},l=e=>{let t=u(e);if(t)return+(null==t?void 0:t.id)},c=e=>{let t=u(e);if(t)return null==t?void 0:t.rpcUrl}},95689:function(e,t,n){"use strict";n.d(t,{Fh:function(){return p},Pk:function(){return u},d0:function(){return m},jb:function(){return c},kb:function(){return f},li:function(){return d},mx:function(){return h},og:function(){return l},s9:function(){return o},tf:function(){return s}});var i=n(41662),r=n(76218);let a=(e,t)=>e*t/BigInt(1e4),o=(e,t)=>{let n=e*BigInt(t)/BigInt(100);return e+n},s=(e,t,n,i)=>{if(void 0===e||void 0===t||void 0===n||void 0===i)return;let r=BigInt(Math.round(e)),o=a(r,t),s=a(r,n),u=a(r,i);return r-o-s-u},u=(e,t)=>
1{if(void 0===e||void 0===t||"object"==typeof e)return;let n=BigInt(Math.round(+e)),i=a(n,BigInt(t));return n+i},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(void 0!==e)return n&&1e-4>+e?"<0.0001":+parseFloat((+e).toFixed(t)).toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:t})},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e)return;let n=Math.pow(10,t);return Math.ceil(+e*n)/n},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;if(void 0===e)return;let n=Number(e),a=(0,r.WM)(Math.round(n).toString());return+(0,i.bM)(BigInt(a),t)},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;if(void 0!==e&&""!==e)return(0,i.vz)(e.toString(),t).toString()},f=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,r=d(e,n);if(r)return null===(t=l(r,i))||void 0===t?void 0:t.toString()},h=e=>e?e/100:0;function m(e,t){return e&&t?(BigInt(e)*BigInt(t)/BigInt(1e4)).toString():"0"}},70089:function(e,t,n){"use strict";n.d(t,{GR:function(){return r},Tg:function(){return o},Un:function(){return p},Vt:function(){return u},Wc:function(){return a},cS:function(){return i},fm:function(){return s},lH:function(){return d}});let i=()=>{},r=async()=>{};function a(e,t,n){return Object.entries(e).reduce((e,i)=>{let[r,a]=i,o=t[r]||r;return n.includes(o)?{...e,[o]:a}:e},{})}function o(e){return e.slice(0,6)+"..."+e.slice(-4)}function s(e){return e&&"string"==typeof e?e.charAt(0).toUpperCase()+e.slice(1):""}function u(e){let t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}function l(e){return 1===e?1e5:c(e)+l(e-1)}function c(e){return(e>5?5:e)*1e5}function d(e,t){let n=e-1;return(t-(0===n?0:l(n)))/c(e)*100}function p(e,t){return l(e)-t}},61746:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var i=n(74676),r=n(95689),a=n(24843);let o=(e,t)=>e&&t?"<0.0001"==e?"<0.01":(0,r.og)(t*+e,2):null;t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.mJ.ETH,{data:n,isLoading:r}=(0,a.Z)(t);return{cryptoInUSD:e&&(null==n?void 0:n.price)?o(e,n.price):null,isLoading:r}}},24843:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var i=n(74676),r=n(22607);async function a(){let e=await fetch("".concat(r.Z.apiUrl,"/rates/ether"),{method:"GET"});return await e.json()}async function o(){let e=await fetch("".concat(r.Z.apiUrl,"/rates/pol"),{method:"GET"});return await e.json()}async function s(){let e=await fetch("".concat(r.Z.apiUrl,"/rates/wpol"),{method:"GET"});return await e.json()}async function u(){let e=await fetch("".concat(r.Z.apiUrl,"/rates/turbo"),{method:"GET"});return await e.json()}async function l(){let e=await fetch("".concat(r.Z.apiUrl,"/rates/usdt"),{method:"GET"});return await e.json()}var c=n(58586),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.mJ.ETH,t=()=>{switch(e){case i.mJ.ETH:case i.mJ.WETH:return a();case i.mJ.POL:return o();case i.mJ.WPOL:return s();case i.mJ.TURBO:return u();case i.mJ.USDT:return l();default:Error("Invalid currency id!")}};return(0,c.useQuery)({queryKey:["".concat(e,"-rate")],queryFn:()=>t(),staleTime:6e4})}},3124:function(e,t,n){"use strict";var i=n(58586),r=n(69628);t.Z=()=>{let{data:e,isLoading:t}=(0,i.useQuery)({queryKey:["me"],queryFn:()=>r.Z.me()});return{me:e,isLoading:t}}},57878:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});
1var i=n(2265),r=n(58586),a=n(62830),o=n(4725),s=n(3124);function u(e){let{me:t}=(0,s.Z)(),{data:n}=(0,r.useQuery)({queryKey:["token-address-check"],queryFn:a.J4,enabled:!!t}),{currentAddress:u}=(0,o.d)(),{toggleWalletPicker:l}=(0,o.o)();return(0,i.useCallback)(async function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];if(!(null==n?void 0:n.valid)||!u){l();return}return e(...i)},[e,l,u,n])}},76176:function(e,t,n){"use strict";var i=n(4725),r=n(57878),a=n(2265);t.Z=e=>{let{isCorrectChain:t}=(0,i.d)(),{toggleNetworkMismatch:n}=(0,i.o)(),o=(0,a.useCallback)(async i=>{if(!t){n(()=>e(i));return}return await e(i)},[e,t,n]);return(0,r.Z)(o)}},76218:function(e,t,n){"use strict";n.d(t,{EY:function(){return s},IL:function(){return a},PM:function(){return p},R4:function(){return o},TT:function(){return u},U5:function(){return d},WM:function(){return l},XF:function(){return f},hk:function(){return m},ht:function(){return h},uf:function(){return c}});var i=n(2265),r=n(74676);let a=e=>i.Children.toArray(e).some(e=>"string"==typeof e||"number"==typeof e),o=async(e,t)=>{await navigator.clipboard.writeText(e),t(!0),setTimeout(()=>{t(!1)},2500)},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e5;return parseInt(e,16)%t+1},u=e=>"0x".concat(e.toString(16)),l=e=>Number(e).toLocaleString("fullwide",{useGrouping:!1}),c=e=>e.toLocaleString().replace(/,/g,"."),d=e=>()=>function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e(...n)},p=(e,t)=>"".concat(r._z,"?text=").concat(e,"&url=").concat(t);function f(e){return Math.floor(Math.random()*e)}let h=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"...",r=Math.ceil(e/t),a=3,o=3,s=!1;n<=5?a=5:n<=r-3&&(4===n?a=n:n===r-3?o=r-n+1:s=!0),a=Math.min(a,r),o=Math.min(o,r);let u=[];for(let e=1;e<=a;e++)u.push(e);a<r-o&&(u.push(i),s&&(u.push(n),u.push(i)));for(let e=Math.max(r-o+1,a+1);e<=r;e++)u.push(e);return u};function m(e){switch(e){case"green":return"#00A09A";case"red":return"#D60A51";case"yellow":return"#F9B233"}}},30427:function(e,t,n){"use strict";n.d(t,{E3:function(){return s},I3:function(){return u},X$:function(){return o}});var i=n(70089),r=n(22607),a=n(83005);let o="CACHED_CONNECTOR_ID",s={web3:null,currentAddress:null,network:r.Z.defaultChain,chainId:(0,a.ME)(r.Z.defaultChain),signer:null,isCorrectChain:!1,isWalletPickerOpen:!1,isAccountChangedPopupVisible:!1,isNetworkMismatchPopupVisible:!1,readOnlyProvider:null,onSuccessfulNetworkChange:i.cS},u={connectToEthereum:async function(){},disconnect:i.cS,switchChain:i.GR,addChain:i.GR,toggleWalletPicker:i.cS,toggleNetworkMismatch:i.cS,hideAccountChangePopup:i.cS,switchBlockchain:i.cS}},5383:function(e,t,n){"use strict";n.d(t,{G:function(){return o},P:function(){return a}});
1var i=n(2265),r=n(30427);let a=(0,i.createContext)(r.E3),o=(0,i.createContext)(r.I3)},4725:function(e,t,n){"use strict";n.d(t,{d:function(){return a},o:function(){return o}});var i=n(2265),r=n(5383);let a=()=>(0,i.useContext)(r.P),o=()=>(0,i.useContext)(r.G)},40984:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(4725),r=n(45810),a=n(2265),o=n(83005),s=JSON.parse('[{"inputs":[],"name":"InsufficientAmount","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"LockPeriodNotFinished","type":"error"},{"inputs":[],"name":"UnlockPeriodExists","type":"error"},{"inputs":[],"name":"UnlockPeriodFinished","type":"error"},{"inputs":[],"name":"UnlockPeriodNotFinished","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum TokenLockingPoolBase.PoolType","name":"poolType","type":"uint8"},{"indexed":true,"internalType":"enum TokenLockingPoolBase.ActivityType","name":"activityType","type":"uint8"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockPeriodEndTime","type":"uint256"}],"name":"TokenActivity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum TokenLockingPoolBase.PoolType","name":"poolType","type":"uint8"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockPeriodEndTime","type":"uint256"}],"name":"UnlockPeriodStarted","type":"event"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"feeReceiverAddress","type":"address"}],"name":"__EndemicTokenLockingPool_init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLiquidPoolStats","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockPeriodEndTime","type":"uint256"}],"internalType":"struct LiquidTokenLockingPoolBase.LiquidLock","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getPoolStats","outputs":[{"components":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockPeriodEndTime","type":"uint256"}],"internalType":"struct LiquidTokenLockingPoolBase.LiquidLock","name":"liquidLock","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockPeriodEndTime","type":"uint256"}],"internalType":"struct LiquidTokenLockingPoolBase.LiquidLock","name":"liquidLock","type":"tuple"},{"internalType":"uint256","name":"lockPeriodEndTime","type":"uint256"},{"internalType":"bool","name":"isLong","type":"bool"}],"internalType":"struct ProlongedLiquidTokenLockingPool.ProlongedLock","name":"shortProlongedLiquidLock","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockPeriodEndTime","type":"uint256"}],"internalType":"struct LiquidTokenLockingPoolBase.LiquidLock","name":"liquidLock","type":"tuple"},{"internalType":"uint256","name":"lockPeriodEndTime","type":"uint256"},{"internalType":"bool","name":"isLong","type":"bool"}],"internalType":"struct ProlongedLiquidTokenLockingPool.ProlongedLock","name":"longProlongedLiquidLock","type":"tuple"}],"internalType":"struct EndemicTokenLockingPool.PoolStats","name":"","type":"tuple"}],"stateMutability":"view","type":"function"}
1,{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getProlongedLiquidPoolStats","outputs":[{"components":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockPeriodEndTime","type":"uint256"}],"internalType":"struct LiquidTokenLockingPoolBase.LiquidLock","name":"liquidLock","type":"tuple"},{"internalType":"uint256","name":"lockPeriodEndTime","type":"uint256"},{"internalType":"bool","name":"isLong","type":"bool"}],"internalType":"struct ProlongedLiquidTokenLockingPool.ProlongedLock","name":"shortProlongedLiquidLock","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockPeriodEndTime","type":"uint256"}],"internalType":"struct LiquidTokenLockingPoolBase.LiquidLock","name":"liquidLock","type":"tuple"},{"internalType":"uint256","name":"lockPeriodEndTime","type":"uint256"},{"internalType":"bool","name":"isLong","type":"bool"}],"internalType":"struct ProlongedLiquidTokenLockingPool.ProlongedLock","name":"longProlongedLiquidLock","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"liquidLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"longProlongedLiquidLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"shortProlongedLiquidLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startLiquidLockUnlockPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startLongProlongedLiquidLockUnlockPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startShortProlongedLiquidLockUnlockPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeReceiver","type":"address"}],"name":"updateFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLiquidLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLiquidLockImmediately","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLongProlongedLiquidLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLongProlongedLiquidLockImmediately","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawShortProlongedLiquidLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawShortProlongedLiquidLockImmediately","outputs":[],"stateMutability":"nonpayable","type":"function"}]');function u(){let{signer:e,isCorrectChain:t,chainId:n}=(0,i.d)(),u=(0,o.NP)(n);return(0,a.useMemo)(()=>e&&t&&u?new r.CH(u.tokenLockingAddress,s,e):null,[e,t,u])}},2550:function(e,t,n){"use strict";var i=n(74676),r=n(4725),a=n(58586),o=n(64177);t.Z=(e,t,n)=>{let{chainId:s}=(0,r.d)(),u=(0,o.Z)(n),{data:l,isLoading:c}=(0,a.useQuery)({queryKey:["erc20-allowance",n,u,s,e,t],queryFn:async()=>!u||!n||i.sE.includes(n)?BigInt(0):BigInt(await u.allowance(e,t)),enabled:!!(s&&u)});return{allowance:l,isAllowanceLoading:c}}},44159:function(e,t,n){"use strict";var i=n(83005),r=n(4725),a=n(39693),o=n(2265),s=n(64177),u=n(55162),l=n(2550);t.Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{chainId:c,currentAddress:d}=(0,r.d)(),p=(0,i.NP)(c),f=(0,s.Z)(e),h=(0,a.useQueryClient)(),{allowance:m,isAllowanceLoading:y}=(0,l.Z)(d,t,e),{mutateAsync:v,isLoading:b}=(0,u.Z)(async e=>{if(!f||!p)return;let n=await f.approve(t,e);return await n.wait()},{...n,onSuccess:function(){for(var t,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];h.invalidateQueries(["erc20-allowance",e,f,c,d]),null===(t=n.onSuccess)||void 0===t||t.call(n,...r)}});return{approve:(0,o.useCallback)(async e=>!!(m&&!(e>m)||await v(e)),[m,v]),isLoading:b||y}}},64177:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});
1var i=n(2265),r=n(45810),a=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]'),o=n(4725),s=e=>{let{signer:t,isCorrectChain:n}=(0,o.d)();return(0,i.useMemo)(()=>{if(t&&n&&e)return new r.CH(e,a,t)},[t,n,e])}},55162:function(e,t,n){"use strict";var i=n(19188),r=n(52884),a=n(2265);t.Z=function(e,t){let{onSuccess:n,onError:o,rethrowError:s=!1}=t,u=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{mutateAsync:l,...c}=(0,r.useMutation)({mutationFn:e,onSuccess:n,onError:o});return{mutateAsync:(0,a.useCallback)(async function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];try{return await l(...t)}catch(e){if(u&&(0,i.kk)(e),s)throw e}},[l,s,u]),onError:o,...c}}},51547:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(4725),r=n(2265);function a(e){let{signer:t}=(0,i.d)(),n=(0,r.useCallback)((e,n)=>async function(){for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];let o=await e[n].populateTransaction(...r);return{hash:await t.sendUncheckedTransaction(o)}},[t]);return(0,r.useMemo)(()=>e?new Proxy(e,{get:(e,t,i)=>"function"!=typeof e[t]?Reflect.get(e,t,i):n(e,t)}):null,[e,n])}},42585:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});let i=console},76312:function(e,t,n){"use strict";n.d(t,{R:function(){return u},m:function(){return s}});var i=n(42585),r=n(77154),a=n(50851),o=n(60067);class s extends a.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||i._,this.observers=[],this.state=e.state||u(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,i,r,a,s,u,l,c,d,p,f,h,m,y,v,b,g,w;let x="loading"===this.state.status;try{if(!x){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(l=(c=this.mutationCache.config).onMutate)?void 0:l.call(c,this.state.variables,this));let e=await (null==(d=(p=this.options).onMutate)?void 0:d.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}
1let f=await (()=>{var e;return this.retryer=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,f,this.state.variables,this.state.context,this)),await (null==(n=(i=this.options).onSuccess)?void 0:n.call(i,f,this.state.variables,this.state.context)),await (null==(r=(a=this.mutationCache.config).onSettled)?void 0:r.call(a,f,null,this.state.variables,this.state.context,this)),await (null==(s=(u=this.options).onSettled)?void 0:s.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{throw await (null==(f=(h=this.mutationCache.config).onError)?void 0:f.call(h,e,this.state.variables,this.state.context,this)),await (null==(m=(y=this.options).onError)?void 0:m.call(y,e,this.state.variables,this.state.context)),await (null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await (null==(g=(w=this.options).onSettled)?void 0:g.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,o.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),r.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function u(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},50851:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var i=n(20830);class r{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:i.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},52884:function(e,t,n){"use strict";n.d(t,{useMutation:function(){return p}});
1var i=n(2265),r=n(20830),a=n(76312),o=n(77154),s=n(85176);class u extends s.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=this.client.defaultMutationOptions(e),(0,r.VS)(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,a.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){o.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,n,i,r,a,o,s,u;e.onSuccess?(null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(r=this.mutateOptions).onSettled)||i.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(a=(o=this.mutateOptions).onError)||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var l=n(57814),c=n(39693),d=n(72470);function p(e,t,n){let a=(0,r.lV)(e,t,n),s=(0,c.useQueryClient)({context:a.context}),[p]=i.useState(()=>new u(s,a));i.useEffect(()=>{p.setOptions(a)},[p,a]);let h=(0,l.$)(i.useCallback(e=>p.subscribe(o.V.batchCalls(e)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),m=i.useCallback((e,t)=>{p.mutate(e,t).catch(f)},[p]);if(h.error&&(0,d.L)(p.options.useErrorBoundary,[h.error]))throw h.error;return{...h,mutate:m,mutateAsync:h.mutate}}function f(){}}}]);
2//# sourceMappingURL=4363-0e188e76672b0742.js.map

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.