1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6388],{2419:e=>{e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},2630:(e,t,n)=>{"use strict";var a=n(56620);Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var n=function(n){if(n.key===e){var a,i=JSON.parse(null!=(a=n.newValue)?a:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&t(i)}};return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}},post:function(t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(l(l({},t),{},{timestamp:d()})))}catch(e){}}}},t.apiBaseUrl=p,t.fetchData=function(e,t,n){return c.apply(this,arguments)},t.now=d;var i=a(n(81390)),o=a(n(13901)),s=a(n(49165));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,o.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(){return(c=(0,s.default)(i.default.mark(function e(t,n,a){var o,s,u,c,d,y,f,h,m,v=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=(o=v.length>3&&void 0!==v[3]?v[3]:{}).ctx,c=void 0===(u=o.req)?null==s?void 0:s.req:u,d="".concat(p(n),"/").concat(t),e.prev=2,f={headers:l({"Content-Type":"application/json"},null!=c&&null!=(y=c.headers)&&y.cookie?{cookie:c.headers.cookie}:{})},null!=c&&c.body&&(f.body=JSON.stringify(c.body),f.method="POST"),e.next=7,fetch(d,f);case 7:return h=e.sent,e.next=10,h.json();case 10:if(m=e.sent,h.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),a.error("CLIENT_FETCH_ERROR",{error:e.t0,url:d}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function p(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function d(){return Math.floor(Date.now()/1e3)}},12108:(e,t,n)=>{"use strict";var a,i,o,s,u,l=n(49509),c=n(56620),p=n(87382);Object.defineProperty(t,"__esModule",{value:!0});var d={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};t.SessionContext=void 0,t.SessionProvider=function(e){if(!N)throw Error("React Context is unavailable in Server Components");var t,n,a,i,o,s,u=e.children,l=e.basePath,c=e.refetchInterval,p=e.refetchWhenOffline;l&&(A.basePath=l);var d=void 0!==e.session;A._lastSync=d?(0,w.now)():0;var f=v.useState(function(){return d&&(A._session=e.session),e.session}),g=(0,m.default)(f,2),b=g[0],E=g[1],M=v.useState(!d),_=(0,m.default)(M,2),S=_[0],k=_[1];v.useEffect(function(){return A._getSession=(0,h.default)(y.default.mark(function e(){var t,n,a=arguments;return y.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(a.length>0&&void 0!==a[0]?a[0]:{}).event,e.prev=1,!((n="storage"===t)||void 0===A._session)){e.next=10;break}return A._lastSync=(0,w.now)(),e.next=7,L({broadcast:!n});case 7:return A._session=e.sent,E(A._session),e.abrupt("return");case 10:if(!(!t||null===A._session||(0,w.now)()<A._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return A._lastSync=(0,w.now)(),e.next=15,L();case 15:A._session=e.sent,E(A._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),I.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,k(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])})),A._getSession(),function(){A._lastSync=0,A._session=void 0,A._getSession=function(){}}},[]),v.useEffect(function(){var e=O.receive(function(){return A._getSession({event:"storage"})});return function(){return e()}},[]),v.useEffect(function(){var t=e.refetchOnWindowFocus,n=void 0===t||t,a=function(){n&&"visible"===document.visibilityState&&A._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",a,!1),function(){return document.removeEventListener("visibilitychange",a,!1)}},[e.refetchOnWindowFocus]);var j=(t=v.useState("undefined"!=typeof navigator&&navigator.onLine),a=(n=(0,m.default)(t,2))[0],i=n[1],o=function(){return i(!0)},s=function(){return i(!1)},v.useEffect(function(){return window.addEventListener("online",o),window.addEventListener("offline",s),function(){window.removeEventListener("online",o),window.removeEventListener("offline",s)}},[]),a),B=!1!==p||j;v.useEffect(function(){if(c&&B){var e=setInterval(function(){A._session&&A._getSession({event:"poll"})},1e3*c);return function(){return clearInterval(e)}}},[c,B]);var D=v.useMemo(function(){return{data:b,status:S?"loading":b?"authenticated":"unauthenticated",update:function(e){return(0,h.default)(y.default.mark(function t(){var n;return y.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(S||!b)){t.next=2;break}return t.abrupt("return");case 2:return k(!0),t.t0=w.fetchData,t.t1=A,t.t2=I,t.next=8,U();case 8:return t.t3=t.sent,t.t4=e,t.t5={csrfToken:t.t3,data:t.t4},t.t6={body:t.t5},t.t7={req:t.t6},t.next=15,(0,t.t0)("session",t.t1,t.t2,t.t7);case 15:return n=t.sent,k(!1),n&&(E(n),O.post({event:"session",data:{trigger:"getSession"}})),t.abrupt("return",n);case 19:case"end":return t.stop()}},t)}))()}}},[b,S]);return(0,x.jsx)(N.Provider,{value:D,children:u})},t.getCsrfToken=U,t.getProviders=D,t.getSession=L,t.signIn=function(e,t,n){return H.apply(this,arguments)},t.signOut=function(e){return K.apply(this,arguments)},t.useSession=function(e){if(!N)throw Error("React Context is unavailable in Server Components");var t=v.useContext(N),n=null!=e?e:{},a=n.required,i=n.onUnauthenticated,o=a&&"unauthenticated"===t.status;return(v.useEffect(function(){if(o){var e="/api/auth/signin?".concat(new
1URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));i?i():window.location.href=e}},[o,i]),o)?{data:t.data,update:t.update,status:"loading"}:t};var y=c(n(81390)),f=c(n(13901)),h=c(n(49165)),m=c(n(65593)),v=_(n(12115)),g=_(n(35146)),b=c(n(50837)),w=n(2630),x=n(95155),E=n(12477);function M(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(M=function(e){return e?n:t})(e)}function _(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=p(e)&&"function"!=typeof e)return{default:e};var n=M(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){(0,f.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}
1Object.keys(E).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(d,e))&&(e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))});var A={baseUrl:(0,b.default)(null!=(a=l.env.NEXTAUTH_URL)?a:l.env.VERCEL_URL).origin,basePath:(0,b.default)(l.env.NEXTAUTH_URL).path,baseUrlServer:(0,b.default)(null!=(i=null!=(o=l.env.NEXTAUTH_URL_INTERNAL)?o:l.env.NEXTAUTH_URL)?i:l.env.VERCEL_URL).origin,basePathServer:(0,b.default)(null!=(s=l.env.NEXTAUTH_URL_INTERNAL)?s:l.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},O=(0,w.BroadcastChannel)(),I=(0,g.proxyLogger)(g.default,A.basePath),N=t.SessionContext=null==(u=v.createContext)?void 0:u.call(v,void 0);function L(e){return j.apply(this,arguments)}function j(){return(j=(0,h.default)(y.default.mark(function e(t){var n,a;return y.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.fetchData)("session",A,I,t);case 2:return a=e.sent,(null==(n=null==t?void 0:t.broadcast)||n)&&O.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",a);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function U(e){return B.apply(this,arguments)}function B(){return(B=(0,h.default)(y.default.mark(function e(t){var n;return y.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.fetchData)("csrf",A,I,t);case 2:return n=e.sent,e.abrupt("return",null==n?void 0:n.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function D(){return F.apply(this,arguments)}function F(){return(F=(0,h.default)(y.default.mark(function e(){return y.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.fetchData)("providers",A,I);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function H(){return(H=(0,h.default)(y.default.mark(function e(t,n,a){var i,o,s,u,l,c,p,d,f,h,m,v,g,b,x,E,M;return y.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=void 0===(o=(i=null!=n?n:{}).callbackUrl)?window.location.href:o,l=void 0===(u=i.redirect)||u,c=(0,w.apiBaseUrl)(A),e.next=4,D();case 4:if(p=e.sent){e.next=8;break}return window.location.href="".concat(c,"/error"),e.abrupt("return");case 8:if(!(!t||!(t in p))){e.next=11;break}return window.location.href="".concat(c,"/signin?").concat(new URLSearchParams({callbackUrl:s})),e.abrupt("return");case 11:return d="credentials"===p[t].type,f="email"===p[t].type,h=d||f,m="".concat(c,"/").concat(d?"callback":"signin","/").concat(t),v="".concat(m).concat(a?"?".concat(new URLSearchParams(a)):""),e.t0=fetch,e.t1=v,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=k,e.t5=k({},n),e.t6={},e.next=25,U();case 25:return e.t7=e.sent,e.t8=s,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return g=e.sent,e.next=36,g.json();case 36:if(b=e.sent,!(l||!h)){e.next=42;break}return E=null!=(x=b.url)?x:s,window.location.href=E,E.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(M=new URL(b.url).searchParams.get("error"),!g.ok){e.next=46;break}return e.next=46,A._getSession({event:"storage"});case 46:return e.abrupt("return",{error:M,status:g.status,ok:g.ok,url:M?null:b.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function K(){return(K=(0,h.default)(y.default.mark(function e(t){var n,a,i,o,s,u,l,c,p;return y.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=void 0===(a=(null!=t?t:{}).callbackUrl)?window.location.href:a,o=(0,w.apiBaseUrl)(A),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,U();case 6:return e.t2=e.sent,e.t3=i,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),s={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(o,"/signout"),s);case 13:return u=e.sent,e.next=16,u.json();case 16:if(l=e.sent,O.post({event:"session",data:{trigger:"signout"}}),!(null==(n=null==t?void 0:t.redirect)||n)){e.next=23;break}return p=null!=(c=l.url)?c:i,window.location.href=p,p.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,A._getSession({event:"storage"});case 25:return e.abrupt("return",l);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}},12477:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0})},13131:(e,t,n)=>{var a=n(87824),i=n(39828),o=n(35440),s=n(96268);function u(t){var n="function"==typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,a(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,u(t)}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},13901:(e,t,n)=>{var a=n(96346);e.exports=function(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},22977:(e,t,n)=>{var a=n(42402),i=n(70375),o=n(27149),s=n(58977),u=n(45591),l=n(48079),c=n(74801);function p(){"use strict";var t=i(),n=t.m(p),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function y(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(a){t||(t={stop:function(){return n(a.a,2)},catch:function(){return a.v},abrupt:function(e,t){return n(a.a,f[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(a.d,c(e),o)},finish:function(e){return n(a.f,e)}},n=function(e,n,i){a.p=t.prev,a.n=t.next;try{return e(n,i)}finally{t.next=a.n}}),t.resultName&&(t[t.resultName]=a.v,t.resultName=void 0),t.sent=a.v,t.next=a.n;try{return e.call(this,t)}finally{a.p=t.prev,a.n=t.next}}}return(e.exports=p=function(){return{wrap:function(e,n,a,i){return t.w(h(e),n,a,i&&i.reverse())},isGeneratorFunction:y,mark:t.m,awrap:function(e,t){return new a(e,t)},AsyncIterator:u,async:function(e,t,n,a,i){return(y(t)?s:o)(h(e),t,n,a,i)},keys:l,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},23294:e=>{function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!n},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27149:(e,t,n)=>{var a=n(58977);e.exports=function(e,t,n,i,o){var s=a(e,t,n,i,o);return s.next().then(function(e){return e.done?e.value:s.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},27476:e=>{function t(n,a,i,o){var s=Object.defineProperty;try{s({},"",{})}catch(e){s=0}e.exports=t=function(e,n,a,i){if(n)s?s(e,n,{value:a,enumerable:!i,configurable:!i,writable:!i}):e[n]=a;else{var o=function(n,a){t(e,n,function(e){return this._invoke(n,a,e)})};o("next",0),o("throw",1),o("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,a,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},34108:e=>{e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o,s,u=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(u.push(a.value),u.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports},34514:(e,t,n)=>{var a=n(83539);e.exports=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},35146:(e,t,n)=>{"use strict";var a=n(56620);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var n={},a=function(e){var a;n[e]=(a=(0,s.default)(i.default.mark(function n(a,s){var u,d;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(p[e](a,s),"error"===e&&(s=c(s)),s.client=!0,u="".concat(t,"/_log"),d=new URLSearchParams(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(n),!0).forEach(function(t){(0,o.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({level:e,code:a},s)),!navigator.sendBeacon){n.next=8;break}return n.abrupt("return",navigator.sendBeacon(u,d));case 8:return n.next=10,fetch(u,{method:"POST",body:d,keepalive:!0});case 10:return n.abrupt("return",n.sent);case 11:case"end":return n.stop()}},n)})),function(e,t){return a.apply(this,arguments)})};for(var u in e)a(u);return n}catch(e){return p}},t.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(p.debug=function(){}),e.error&&(p.error=e.error),e.warn&&(p.warn=e.warn),e.debug&&(p.debug=e.debug)};var i=a(n(81390)),o=a(n(13901)),s=a(n(49165)),u=n(71883);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function c(e){var t,n;if(e instanceof Error&&!(e instanceof u.UnknownError))return{message:e.message,stack:e.stack,name:e.name};if(null!=(t=e)&&t.error){e.error=c(e.error),e.message=null!=(n=e.message)?n:e.error.message}return e}var p={error:function(e,t){t=c(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=p},35440:e=>{e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},36241:(e,t,n)=>{"use strict";n.d(t,{L:()=>d});var a=n(90557),i=n(7441);class o extends i.C{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var s=n(85569),u=n(78519),l=n(79183);let c={current:0,take(){return this.current++},reset(){this.current=0}};var p=n(54315);function d(e,t={}){let{batch:n,fetchOptions:i,key:y="http",methods:f,name:h="HTTP JSON-RPC",onFetchRequest:m,onFetchResponse:v,retryDelay:g,raw:b}=t;return({chain:d,retryCount:w,timeout:x})=>{let{batchSize:E=1e3,wait:M=0}="object"==typeof n?n:{},_=t.retryCount??w,S=x??t.timeout??1e4,k=e||d?.rpcUrls.default.http[0];if(!k)throw new o;let A=function(e,t={}){return{async request(n){let{body:i,onRequest:o=t.onRequest,onResponse:s=t.onResponse,timeout:p=t.timeout??1e4}=n,d={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:y,method:f,signal:h}=d;try{let t,n=await (0,u.w)(async({signal:t})=>{let n={...d,body:Array.isArray(i)?(0,l.A)(i.map(e=>({jsonrpc:"2.0",id:e.id??c.take(),...e}))):(0,l.A)({jsonrpc:"2.0",id:i.id??c.take(),...i}),headers:{"Content-Type":"application/json",...y},method:f||"POST",signal:h||(p>0?t:null)},a=new Request(e,n),s=await o?.(a,n)??{...n,url:e};return await fetch(s.url??e,s)},{errorInstance:new a.MU({body:i,url:e}),timeout:p,signal:!0});if(s&&await s(n),n.headers.get("Content-Type")?.startsWith("application/json"))t=await n.json();else{t=await n.text();try{t=JSON.parse(t||"{}")}catch(e){if(n.ok)throw e;t={error:t}}}if(!n.ok)throw new a.Ci({body:i,details:(0,l.A)(t.error)||n.statusText,headers:n.headers,status:n.status,url:e});return t}catch(t){if(t instanceof a.Ci||t instanceof a.MU)throw t;throw new a.Ci({body:i,cause:t,url:e})}}}}(k,{fetchOptions:i,onRequest:m,onResponse:v,timeout:S});return(0,p.o)({key:y,methods:f,name:h,async request({method:e,params:t}){let i={method:e,params:t},{schedule:o}=(0,s.u)({id:k,wait:M,shouldSplitBatch:e=>e.length>E,fn:e=>A.request({body:e}),sort:(e,t)=>e.id-t.id}),u=async e=>n?o(e):[await A.request({body:e})],[{error:l,result:c}]=await u(i);if(b)return{error:l,result:c};if(l)throw new a.J8({body:i,error:l,url:k});return c},retryCount:_,retryDelay:g,timeout:S,type:"http"},{fetchOptions:i,url:k})}}},38919:(e,t,n)=>{var a=n(87382).default;e.exports=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=a(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},39828:e=>{function t(n,a){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},42402:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},45591:(e,t,n)=>{var a=n(42402),i=n(27476);e.exports=function e(t,n){var o;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,i,s){function u(){return new n(function(i,o){!function e(i,o,s,u){try{var l=t[i](o),c=l.value;return c instanceof a?n.resolve(c.v).then(function(t){e("next",t,s,u)},function(t){e("throw",t,s,u)}):n.resolve(c).then(function(e){l.value=e,s(l)},function(t){return e("throw",t,s,u)})}catch(e){u(e)}}(e,s,i,o)})}return o=o?o.then(u,u):u()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},46045:(e,t,n)=>{var a=n(96346);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},47182:(e,t,n)=>{"use strict";let a;n.d(t,{eU:()=>eO,xc:()=>no});let i={withStackTrace:!1},o=(e,t,n=i)=>({data:t.isOk()?{type:"Ok",value:t.value}:{type:"Err",value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});
1function s(e,t,n,a){return new(n||(n=Promise))(function(i,o){function s(e){try{l(a.next(e))}catch(e){o(e)}}function u(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,u)}l((a=a.apply(e,t||[])).next())})}function u(e){return this instanceof u?(this.v=e,this):new u(e)}class l{constructor(e){this._promise=e}static fromSafePromise(e){return new l(e.then(e=>new v(e)))}static fromPromise(e,t){return new l(e.then(e=>new v(e)).catch(e=>new g(t(e))))}static fromThrowable(e,t){return(...n)=>new l(s(this,void 0,void 0,function*(){try{return new v((yield e(...n)))}catch(e){return new g(t?t(e):e)}}))}static combine(e){return d(e)}static combineWithAllErrors(e){return f(e)}map(e){return new l(this._promise.then(t=>s(this,void 0,void 0,function*(){return t.isErr()?new g(t.error):new v((yield e(t.value)))})))}mapErr(e){return new l(this._promise.then(t=>s(this,void 0,void 0,function*(){return t.isOk()?new v(t.value):new g((yield e(t.error)))})))}andThen(e){return new l(this._promise.then(t=>{if(t.isErr())return new g(t.error);let n=e(t.value);return n instanceof l?n._promise:n}))}orElse(e){return new l(this._promise.then(t=>s(this,void 0,void 0,function*(){return t.isErr()?e(t.error):new v(t.value)})))}match(e,t){return this._promise.then(n=>n.match(e,t))}unwrapOr(e){return this._promise.then(t=>t.unwrapOr(e))}safeUnwrap(){return function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,i=n.apply(e,t||[]),o=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(e){i[e]&&(a[e]=function(t){return new Promise(function(n,a){o.push([e,t,n,a])>1||l(e,t)})})}function l(e,t){try{var n;(n=i[e](t)).value instanceof u?Promise.resolve(n.value.v).then(c,p):d(o[0][2],n)}catch(e){d(o[0][3],e)}}function c(e){l("next",e)}function p(e){l("throw",e)}function d(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){return yield u((yield u((yield*function(e){var t,n;return t={},a("next"),a("throw",function(e){throw e}),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,i){t[a]=e[a]?function(t){return(n=!n)?{value:u(e[a](t)),done:"return"===a}:i?i(t):t}:i}}(function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise(function(a,i){var o,s,u;o=a,s=i,u=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:u})},s)})}}}((yield u(this._promise.then(e=>e.safeUnwrap())))))))))})}then(e,t){return this._promise.then(e,t)}}let c=e=>new l(Promise.resolve(new g(e)));l.fromPromise,l.fromSafePromise,l.fromThrowable;let p=e=>{let t=h([]);for(let n of e)if(n.isErr()){t=m(n.error);break}else t.map(e=>
1e.push(n.value));return t},d=e=>l.fromSafePromise(Promise.all(e)).andThen(p),y=e=>{let t=h([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=m([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},f=e=>l.fromSafePromise(Promise.all(e)).andThen(y);!function(e){e.fromThrowable=function(e,t){return(...n)=>{try{let t=e(...n);return h(t)}catch(e){return m(t?t(e):e)}}},e.combine=function(e){return p(e)},e.combineWithAllErrors=function(e){return y(e)}}(w||(w={}));let h=e=>new v(e),m=e=>new g(e);class v{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return h(e(this.value))}mapErr(e){return h(this.value)}andThen(e){return e(this.value)}orElse(e){return h(this.value)}asyncAndThen(e){return e(this.value)}asyncMap(e){return l.fromSafePromise(e(this.value))}unwrapOr(e){return this.value}match(e,t){return e(this.value)}safeUnwrap(){let e=this.value;return function*(){return e}()}_unsafeUnwrap(e){return this.value}_unsafeUnwrapErr(e){throw o("Called `_unsafeUnwrapErr` on an Ok",this,e)}}class g{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return m(this.error)}mapErr(e){return m(e(this.error))}andThen(e){return m(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return c(this.error)}asyncMap(e){return c(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return function*(){throw yield m(e),Error("Do not use this generator out of `safeTry`")}()}_unsafeUnwrap(e){throw o("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}}w.fromThrowable;var b,w,x=n(98078),E=n(35025);function M(e){let{key:t="public",name:n="Public Client"}=e;return(0,x.U)({...e,key:t,name:n,type:"publicClient"}).extend(E.$)}var _=n(36241),S=n(79623),k=n(44381),A=n(64216),O=n(78613);let I=(0,n(22732).x)({...O.o,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...O.o.contracts,disputeGameFactory:{1:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{1:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{1:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{1:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1});var N=n(13423),L=Object.defineProperty,j=(e,t,n)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t,n)=>(j(e,"symbol"!=typeof t?t+"":t,n),n),B=class extends Error{constructor(e,t){let n;(n="string"==typeof t?{message:t}:t instanceof Error?{cause:t,message:t.message}:t).message||(n.message=n.cause?.message||""),super(n.message,{cause:n.cause}),U(this,"errCode"),U(this,"presentable",!1),this.name="AuthClientError",this.errCode=e}},D=e=>e.isErr()?{error:e.error,isError:!0}:{...e.value,isError:!1},F={interval:1e3,timeout:1e4,successCode:200,onResponse:()=>{}},H=async(e,t,n)=>l.fromPromise(fetch(z(e,t),{headers:G(n)}),e=>new B("unknown",e)).andThen(e=>l.fromPromise(e.json(),e=>new B("unknown",e)).andThen(t=>h({response:e,data:t}))),K=async(e,t,n,a)=>l.fromPromise(fetch(z(e,t),{method:"POST",body:JSON.stringify(n),headers:G(a)}),e=>new B("unknown",e)).andThen(e=>l.fromPromise(e.json(),e=>new B("unknown",e)).andThen(t=>h({response:e,data:t}))),V=async(e,t,n,a)=>{let{timeout:i,interval:o,successCode:s,onResponse:u}={...F,...n},l=Date.now()+i;for(;Date.now()<l;){let n=await H(e,t,a);if(!n.isOk())return m(n.error);{let{response:e}=n.value;if(u(n.value),e.status===s)return h(n.value);await new Promise(e=>setTimeout(e,o))}}return m(new B("unavailable",`Polling timed out after ${i}ms`))},z=(e,t)=>`${e.config.relay}/${e.config.version}/${t}`,G=e=>{let t={...e?.headers};return e?.authToken&&(t.Authorization=`Bearer ${e.authToken}`),{...t,"Content-Type":"application/json"}},q=async(e,{...t})=>D(await K(e,"channel",t)),Y=async(e,{channelToken:t})=>D(await H(e,"channel/status",{authToken:t})),$="Farcaster Auth",W=/^farcaster:\/\/fid\/([1-9]\d*)\/?$/,X=e=>w.fromThrowable(()=>{let t="string"==typeof e?(0,k.v)(e):e;if((0,A.u)({message:t}))return t;throw Error("Invalid message")},e=>new B("bad_request.validation_failure",e))().andThen(et).andThen(en).andThen(er),Q=e=>{let t=ee(e);
1return t.isErr()?m(t.error):h({fid:t.value})},ee=e=>{let t=(e.resources??[]).find(e=>W.test(e));if(!t)return m(new B("bad_request.validation_failure","No fid resource provided"));let n=Number.parseInt(t.match(W)?.[1]??"");return Number.isNaN(n)?m(new B("bad_request.validation_failure","Invalid fid")):h(n)},et=e=>e.statement!==$&&"Farcaster Connect"!==e.statement?m(new B("bad_request.validation_failure",`Statement must be '${$}'`)):h(e),en=e=>10!==e.chainId?m(new B("bad_request.validation_failure","Chain ID must be 10")):h(e),er=e=>{let t=(e.resources??[]).filter(e=>W.test(e));return 0===t.length?m(new B("bad_request.validation_failure","No fid resource provided")):t.length>1?m(new B("bad_request.validation_failure","Multiple fid resources provided")):h(e)},ea=M({chain:I,transport:(0,_.L)()}),ei=e=>Promise.reject(Error("Not implemented: Must provide an fid verifier")),eo=e=>Promise.reject(Error("Not implemented: Must provide an auth address verifier")),es=async(e,t,n,a,i={acceptAuthAddress:!1,getFid:ei,isValidAuthAddress:eo})=>{let{publicClient:o=ea}=i,s=X(n).andThen(t=>eu(t,e)).andThen(e=>el(e,t));if(s.isErr())return m(s.error);let u=(await ec(n,a,o)).andThen(()=>ed(s.value));if(u.isErr())return m(u.error);let l=await ep(u.value,i);return l.isErr()?m(l.error):h(l.value)},eu=(e,t)=>e.nonce!==t?m(new B("unauthorized","Invalid nonce")):h(e),el=(e,t)=>e.domain!==t?m(new B("unauthorized","Invalid domain")):h(e),ec=async(e,t,n)=>{try{if(await (0,S.H)(n,{message:e,signature:t}))return h(void 0);return m(new B("unauthorized","Failed to verify message"))}catch(e){return m(new B("unknown",e))}},ep=async(e,t)=>{let{getFid:n,isValidAuthAddress:a,acceptAuthAddress:i}=t,o=e.data.address;if(i){let t=await l.fromPromise(a(o,BigInt(e.fid)),e=>new B("unavailable",e));if(t.isErr())return m(t.error);if(t.isOk()&&!0===t.value)return h({...e,authMethod:"authAddress"});let i=await l.fromPromise(n(o),e=>new B("unavailable",e));return i.isErr()?m(i.error):i.isOk()&&i.value!==BigInt(e.fid)?m(new B("unauthorized",`Invalid resource: signer ${o} is not an auth address or owner of fid ${e.fid}.`)):h({...e,authMethod:"custody"})}return l.fromPromise(n(o),e=>new B("unavailable",e)).andThen(t=>t!==BigInt(e.fid)?m(new B("unauthorized",`Invalid resource: signer ${o} does not own fid ${e.fid}.`)):h({...e,authMethod:"custody"}))},ed=e=>Q(e).andThen(t=>h({...t,data:e,success:!0})),ey=async(e,{nonce:t,domain:n,message:a,signature:i,acceptAuthAddress:o},s)=>D(await es(t,n,a,i,{acceptAuthAddress:o??!1,getFid:e.ethereum.getFid,isValidAuthAddress:e.ethereum.isValidAuthAddress,publicClient:s})),ef=()=>{},eh=async(e,t)=>D(await V(e,"channel/status",{timeout:t?.timeout??3e5,interval:t?.interval??1e3,onResponse:t?.onResponse??ef},{authToken:t.channelToken})),em=e=>{let{fid:t,...n}=e,a=n.resources??[];n.version="1",n.statement=$,n.chainId=10,n.issuedAt=new Date,n.resources=[ev(t),...a];let i=X(n);if(i.isErr())return err4(i.error);let o=i.value;return ok4({siweMessage:o,message:createSiweMessage(o)})},ev=e=>`farcaster://fid/${e}`,eg=e=>{let{channelToken:t}=Object.fromEntries(new URL(e).searchParams.entries());return t?ok5({channelToken:t}):err5(eb("No channel token provided"))},eb=e=>new B("bad_request.validation_failure",e),ew={relay:"https://relay.farcaster.xyz",version:"v1"},eT=({ethereum:e,...t})=>({config:{...ew,...t},ethereum:e}),ex=(e,t)=>{let n=eT(e);return{...n,createChannel:e=>q(n,e),status:e=>Y(n,e),watchStatus:e=>eh(n,e),verifySignInMessage:e=>ey(n,e,t)}},eE=[{inputs:[{internalType:"address",name:"_migrator",type:"address"},{internalType:"address",name:"_initialOwner",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AlreadyMigrated",type:"error"},{inputs:[],name:"GatewayFrozen",type:"error"},{inputs:[],name:"HasId",type:"error"},{inputs:[],name:"HasNoId",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"currentNonce",type:"uint256"}],name:"InvalidAccountNonce",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"OnlyGuardian",type:"error"},{inputs:[],name:"OnlyMigrator",type:"error"},{inputs:[],name:"PermissionRevoked",type:"error"},{inputs:[],name:"SignatureExpired",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guardian",type:"address"}],name:"Add",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"fid",type:"uint256"}],name:"AdminReset",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"id",type:"uint256"},{indexed:!0,internalType:"address",name:"recovery",type:"address"}],name:"ChangeRecoveryAddress",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"idGateway",type:"address"}],name:"FreezeIdGateway",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"migratedAt",type:"uint256"}],name:"Migrated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferStarted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"Recover",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"address",name:"recovery",type:"address"}],name:"Register",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guardian",type:"address"}],name:"Remove",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldCounter",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newCounter",type:"uint256"}],name:"SetIdCounter",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldIdGateway",type:"address"},{indexed:!1,internalType:"address",name:"newIdGateway",type:"address"}],name:"SetIdGateway",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldMigrator",type:"address"},{indexed:!1,internalType:"address",name:"newMigrator",type:"address"}],name:"SetMigrator",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"CHANGE_RECOVERY_ADDRESS_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TRANSFER_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guardian",type:"address"}],name:"addGuardian",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint24",name:"fid",type:"uint24"},{internalType:"address",name:"custody",type:"address"},{internalType:"address",name:"recovery",type:"address"}],internalType:"struct IIdRegistry.BulkRegisterData[]",name:"ids",type:"tuple[]"}],name:"bulkRegisterIds",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint24",name:"fid",type:"uint24"},{internalType:"address",name:"custody",type:"address"}],internalType:"struct IIdRegistry.BulkRegisterDefaultRecoveryData[]",name:"ids",type:"tuple[]"},{internalType:"address",name:"recovery",type:"address"}],name:"bulkRegisterIdsWithDefaultRecovery",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24[]",name:"ids",type:"uint24[]"}],name:"bulkResetIds",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recovery",type:"address"}],name:"changeRecoveryAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"recovery",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"changeRecoveryAddressFor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"fid",type:"uint256"}],name:"custodyOf",outputs:[{internalType:"address",name:"custody",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"domainSeparatorV4",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"freezeIdGateway",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"gatewayFrozen",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"gracePeriod",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"guardian",type:"address"}],name:"guardians",outputs:[{internalType:"bool",name:"isGuardian",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"structHash",type:"bytes32"}],name:"hashTypedDataV4",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"idCounter",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"idGateway",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"idOf",outputs:[{internalType:"uint256",name:"fid",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"isMigrated",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"migrate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"migratedAt",outputs:[{internalType:"uint40",name:"",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[],name:"migrator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"recover",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"recoveryDeadline",type:"uint256"},{internalType:"bytes",name:"recoverySig",type:"bytes"},{internalType:"uint256",name:"toDeadline",type:"uint256"},{internalType:"bytes",name:"toSig",type:"bytes"}],name:"recoverFor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"fid",type:"uint256"}],name:"recoveryOf",outputs:[{internalType:"address",name:"recovery",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"recovery",type:"address"}],name:"register",outputs:[{internalType:"uint256",name:"fid",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guardian",type:"address"}],name:"removeGuardian",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_counter",type:"uint256"}],name:"setIdCounter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_idGateway",type:"address"}],name:"setIdGateway",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_migrator",type:"address"}],name:"setMigrator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"transfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"recovery",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"transferAndChangeRecovery",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"recovery",type:"address"},{internalType:"uint256",name:"fromDeadline",type:"uint256"},{internalType:"bytes",name:"fromSig",type:"bytes"},{internalType:"uint256",name:"toDeadline",type:"uint256"},{internalType:"bytes",name:"toSig",type:"bytes"}],name:"transferAndChangeRecoveryFor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"fromDeadline",type:"uint256"},{internalType:"bytes",name:"fromSig",type:"bytes"},{internalType:"uint256",name:"toDeadline",type:"uint256"},{internalType:"bytes",name:"toSig",type:"bytes"}],name:"transferFor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"useNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"custodyAddress",type:"address"},{internalType:"uint256",name:"fid",type:"uint256"},{internalType:"bytes32",name:"digest",type:"bytes32"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"verifyFidSignature",outputs:[{internalType:"bool",name:"isValid",type:"bool"}],st
1ateMutability:"view",type:"function"}],eM=[{inputs:[{internalType:"address",name:"_idRegistry",type:"address"},{internalType:"address",name:"_migrator",type:"address"},{internalType:"address",name:"_initialOwner",type:"address"},{internalType:"uint256",name:"_maxKeysPerFid",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AlreadyMigrated",type:"error"},{inputs:[],name:"ExceedsMaximum",type:"error"},{inputs:[],name:"GatewayFrozen",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"currentNonce",type:"uint256"}],name:"InvalidAccountNonce",type:"error"},{inputs:[],name:"InvalidKeyType",type:"error"},{inputs:[],name:"InvalidMaxKeys",type:"error"},{inputs:[],name:"InvalidMetadata",type:"error"},{inputs:[],name:"InvalidMetadataType",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidState",type:"error"},{inputs:[],name:"OnlyGuardian",type:"error"},{inputs:[],name:"OnlyMigrator",type:"error"},{inputs:[],name:"PermissionRevoked",type:"error"},{inputs:[],name:"SignatureExpired",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[{internalType:"uint32",name:"keyType",type:"uint32"},{internalType:"uint8",name:"metadataType",type:"uint8"}],name:"ValidatorNotFound",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"fid",type:"uint256"},{indexed:!0,internalType:"uint32",name:"keyType",type:"uint32"},{indexed:!0,internalType:"bytes",name:"key",type:"bytes"},{indexed:!1,internalType:"bytes",name:"keyBytes",type:"bytes"},{indexed:!1,internalType:"uint8",name:"metadataType",type:"uint8"},{indexed:!1,internalType:"bytes",name:"metadata",type:"bytes"}],name:"Add",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guardian",type:"address"}],name:"Add",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"fid",type:"uint256"},{indexed:!0,internalType:"bytes",name:"key",type:"bytes"},{indexed:!1,internalType:"bytes",name:"keyBytes",type:"bytes"}],name:"AdminReset",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"keyGateway",type:"address"}],name:"FreezeKeyGateway",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"migratedAt",type:"uint256"}],name:"Migrated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferStarted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"fid",type:"uint256"},{indexed:!0,internalType:"bytes",name:"key",type:"bytes"},{indexed:!1,internalType:"bytes",name:"keyBytes",type:"bytes"}],name:"Remove",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guardian",type:"address"}],name:"Remove",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldIdRegistry",type:"address"},{indexed:!1,internalType:"address",name:"newIdRegistry",type:"address"}],name:"SetIdRegistry",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldKeyGateway",type:"address"},{indexed:!1,internalType:"address",name:"newKeyGateway",type:"address"}],name:"SetKeyGateway",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldMax",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newMax",type:"uint256"}],name:"SetMaxKeysPerFid",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldMigrator",type:"address"},{indexed:!1,internalType:"address",name:"newMigrator",type:"address"}],name:"SetMigrator",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint32",name:"keyType",type:"uint32"},{indexed:!1,internalType:"uint8",name:"metadataType",type:"uint8"},{indexed:!1,internalType:"address",name:"oldValidator",type:"address"},{indexed:!1,internalType:"address",name:"newValidator",type:"address"}],name:"SetValidator",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"REMOVE_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"fidOwner",type:"address"},{internalType:"uint32",name:"keyType",type:"uint32"},{internalType:"bytes",name:"key",type:"bytes"},{internalType:"uint8",name:"metadataType",type:"uint8"},{internalType:"bytes",name:"metadata",type:"bytes"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guardian",type:"address"}],name:"addGuardian",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"fid",type:"uint256"},{components:[{internalType:"bytes",name:"key",type:"bytes"},{internalType:"bytes",name:"metadata",type:"bytes"}],internalType:"struct IKeyRegistry.BulkAddKey[]",name:"keys",type:"tuple[]"}],internalType:"struct IKeyRegistry.BulkAddData[]",name:"items",type:"tuple[]"}],name:"bulkAddKeysForMigration",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"fid",type:"uint256"},{internalType:"bytes[]",name:"keys",type:"bytes[]"}],internalType:"struct IKeyRegistry.BulkResetData[]",name:"items",type:"tuple[]"}],name:"bulkResetKeysForMigration",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparatorV4",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"freezeKeyGateway",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"gatewayFrozen",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"gracePeriod",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"guardian",type:"address"}],name:"guardians",outputs:[{internalType:"bool",name:"isGuardian",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"structHash",type:"bytes32"}],name:"hashTypedDataV4",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"idRegistry",outputs:[{internalType:"contract IdRegistryLike",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"isMigrated",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"fid",type:"uint256"},{internalType:"enum IKeyRegistry.KeyState",name:"state",type:"uint8"},{internalType:"uint256",name:"index",type:"uint256"}],name:"keyAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"fid",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"keyDataOf",outputs:[{components:[{internalType:"enum IKeyRegistry.KeyState",name:"state",type:"uint8"},{internalType:"uint32",name:"keyType",type:"uint32"}],internalType:"struct IKeyRegistry.KeyData",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"keyGateway",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"fid",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"keys",outputs:[{internalType:"enum IKeyRegistry.KeyState",name:"state",type:"uint8"},{internalType:"uint32",name:"keyType",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"fid",type:"uint256"},{internalType:"enum IKeyRegistry.KeyState",name:"state",type:"uint8"}],name:"keysOf",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"fid",type:"uint256"},{internalType:"enum IKeyRegistry.KeyState",name:"state",type:"uint8"},{internalType:"uint256",name:"startIdx",type:"uint256"},{internalType:"uint256",name:"batchSize",type:"uint256"}],name:"keysOf",outputs:[{internalType:"bytes[]",name:"page",type:"bytes[]"},{internalType:"uint256",name:"nextIdx",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxKeysPerFid",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"migrate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"migratedAt",outputs:[{internalType:"uint40",name:"",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[],name:"migrator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"key",type:"bytes"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"fidOwner",type:"address"},{internalType:"bytes",name:"key",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"removeFor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guardian",type:"address"}],name:"removeGuardian",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_idRegistry",type:"address"}],name:"setIdRegistry",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_keyGateway",type:"address"}],name:"setKeyGateway",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxKeysPerFid",type:"uint256"}],name:"setMaxKeysPerFid",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_migrator",type:"address"}],name:"setMigrator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint32",name:"keyType",type:"uint32"},{internalType:"uint8",name:"metadataType",type:"uint8"},{internalType:"contract IMetadataValidator",name:"validator",type:"address"}],name:"setValidator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"fid",type:"uint256"},{internalType:"enum IKeyRegistry.KeyState",name:"state",type:"uint8"}],name:"totalKeys",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"useNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint32",name:"keyType",type:"uint32"},{internalType:"uint8",name:"metadataType",type:"uint8"}],name:"validators",outputs:[{internalType:"contract IMetadataValidator",name:"validator",type:"address"}],stateMutability:"view",type:"function"}],eC=e=>{let t=M({chain:I,transport:(0,_.L)(e?.rpcUrl)});return{getFid:async e=>t.readContract({address:"0x00000000Fc6c5F01Fc30151999387Bb99A9f489b",abi:eE,functionName:"idOf",args:[e]}),isValidAuthAddress:async(e,n)=>{let a=(0,N.h)([{name:"authAddress",type:"address"}],[e]),i=await t.readContract({address:"0x00000000fc1237824fb747abde0ff18990e59b7e",abi:eM,functionName:"keyDataOf",args:[n,a]});return 2===i.keyType&&1===i.state}}},e_=n(95155),eS=n(12115);n(47650);let ek={relay:"https://relay.farcaster.xyz",version:"v1",..."u">typeof window&&null!=window&&window.location?{domain:window.location.host,siweUri:window.location.href}:{}},eA=(0,eS.createContext)({isAuthenticated:!1,config:ek,profile:{},signInMessage:{},onSignIn:()=>{},onSignOut:()=>{}});function eO({config:e,children:t}
1){let[n,a]=(0,eS.useState)(),[i,o]=(0,eS.useState)(!1),[s,u]=(0,eS.useState)({}),[l,c]=(0,eS.useState)({}),p={...ek,...e},{relay:d,rpcUrl:y,version:f,publicClient:h}=p;(0,eS.useEffect)(()=>{a(ex({relay:d,ethereum:y?eC({rpcUrl:y}):eC(),version:f},h))},[d,y,f,h]);let m=(0,eS.useCallback)(e=>{let{message:t,signature:n,fid:a,username:i,bio:s,displayName:l,pfpUrl:p,custody:d,verifications:y}=e;o(!0),u({fid:a,username:i,bio:s,displayName:l,pfpUrl:p,custody:d,verifications:y}),c({message:t,signature:n})},[]);return(0,e_.jsx)(eA.Provider,{value:{appClient:n,isAuthenticated:i,profile:s,signInMessage:l,config:p,onSignIn:m,onSignOut:()=>{o(!1),u({}),c({})}},children:t})}function eP(){return(0,eS.useContext)(eA)}function eR(){let{appClient:e}=eP();return e}let eI={timeout:3e5,interval:1500},eN={timeout:3e5,interval:1500};function eL({height:e,fill:t}){return T("svg",{xmlns:"http://www.w3.org/2000/svg",width:1.1*e,height:e,viewBox:"0 0 22 20",fill:"none",children:[C("title",{children:"Farcaster logo"}),T("g",{fill:ej[t],clipPath:"url(#a)",children:[C("path",{d:"M3.786.05h14.156v2.824h4.025l-.844 2.825h-.714v11.427c.358 0 .65.287.65.642v.77h.13c.358 0 .649.288.649.642v.77h-7.273v-.77c0-.354.29-.642.65-.642h.13v-.77c0-.309.22-.566.512-.628l-.014-6.306c-.23-2.519-2.37-4.493-4.98-4.493-2.608 0-4.75 1.974-4.979 4.494l-.013 6.3c.346.05.772.315.772.633v.77h.13c.358 0 .65.288.65.642v.77H.15v-.77c0-.354.29-.642.649-.642h.13v-.77c0-.355.29-.642.65-.642V5.7H.863L.02 2.874h3.766V.05Z"}),C("path",{d:"M17.942.05h.047V.003h-.047V.05ZM3.786.05V.003H3.74V.05h.047Zm14.156 2.824h-.048v.047h.048v-.047Zm4.025 0 .046.013.018-.06h-.064v.047Zm-.844 2.824v.047h.035l.01-.033-.045-.014Zm-.714 0v-.046h-.047v.046h.047Zm0 11.428h-.047v.047h.047v-.047Zm.65 1.412h-.048v.047h.047v-.047Zm.779 1.412v.047h.046v-.047h-.046Zm-7.273 0h-.048v.047h.048v-.047Zm.78-1.412v.047h.047v-.047h-.048Zm.512-1.398.01.045.038-.007v-.038h-.048Zm-.014-6.306h.048v-.004l-.048.004Zm-9.959 0-.047-.004v.004h.047Zm-.013 6.3h-.048v.041l.04.006.008-.047Zm.772 1.404h-.047v.047h.047v-.047Zm.78 1.412v.047h.047v-.047h-.048Zm-7.273 0H.102v.047H.15v-.047Zm.779-1.412v.047h.047v-.047H.93Zm.65-1.412v.047h.047v-.047h-.047Zm0-11.428h.047v-.046h-.047v.046Zm-.715 0-.045.014.01.033h.035v-.047ZM.02 2.874v-.047h-.063l.018.06.045-.013Zm3.766 0v.047h.048v-.047h-.048ZM17.942.003H3.786v.093h14.156V.003Zm.047 2.87V.05h-.095v2.824h.095Zm3.978-.046h-4.025v.094h4.025v-.094Zm-.798 2.885.844-2.825-.091-.026-.845 2.824.092.027Zm-.76.033h.714v-.093h-.714v.093Zm.048 11.381V5.698h-.095v11.428h.095Zm.649.641a.693.693 0 0 0-.697-.688v.094c.332 0 .602.266.602.595h.095Zm0 .77v-.77h-.095v.77h.095Zm.082-.045h-.13v.093h.13v-.093Zm.697.688a.692.692 0 0 0-.697-.688v.093c.333 0 .602.267.602.595h.095Zm0 .77v-.77h-.095v.77h.095Zm-3.943.047h3.896v-.094h-3.896v.094Zm-2.079 0h2.079v-.094h-2.079v.094Zm-1.298 0h1.298v-.094h-1.298v.094Zm-.048-.817v.77h.095v-.77h-.095Zm.697-.688a.693.693 0 0 0-.697.688h.095c0-.328.27-.595.602-.595v-.093Zm.13 0h-.13v.093h.13v-.093Zm-.047-.725v.77h.095v-.77h-.095Zm.55-.673a.69.69 0 0 0-.55.673h.095c0-.285.203-.524.476-.582l-.02-.09Zm-.051-6.26.014 6.306h.095l-.014-6.306h-.095Zm-4.932-4.447c2.583 0 4.704 1.956 4.932 4.452l.094-.009c-.232-2.543-2.393-4.536-5.026-4.536v.093ZM5.932 10.84c.227-2.496 2.348-4.452 4.932-4.452v-.093c-2.633 0-4.795 1.993-5.027 4.536l.095.008Zm-.014 6.295.014-6.3h-.095l-.014 6.3h.095Zm.773.633c0-.18-.12-.337-.276-.453a1.236 1.236 0 0 0-.538-.226l-.014.093c.166.025.351.1.495.207.145.108.238.241.238.38h.095Zm0 .77v-.77h-.095v.77h.095Zm.082-.045h-.13v.093h.13v-.093Zm.697.688a.693.693 0 0 0-.697-.688v.093c.332 0 .602.267.602.595h.095Zm0 .77v-.77h-.095v.77h.095Zm-1.606.047h1.558v-.094H5.864v.094Zm-.108 0h.108v-.094h-.108v.094Zm-1.97 0h1.97v-.094h-1.97v.094Zm-3.636 0h3.636v-.094H.15v.094Zm-.048-.817v.77h.095v-.77H.102Zm.697-.688a.693.693 0 0 0-.697.688h.095c0-.328.27-.595.602-.595v-.093Zm.13 0h-.13v.093h.13v-.093Zm-.048-.725v.77h.095v-.77H.881Zm.698-.688a.693.693 0 0 0-.698.688h.095c0-.328.27-.594.603-.594v-.094ZM1.53 5.7v11.427h.095V5.698h-.095Zm-.667.046h.715v-.093H.864v.093Zm-.89-2.858L.82 5.712l.09-.027-.844-2.824-.09.026Zm3.812-.06H.02v.094h3.766v-.094ZM3.74.05v2.824h.095V.05h-.095Z"})]}),C("defs",{children:C("clipPath",{id:"a",children:C("path",{fill:ej[t],d:"M0 0h22v20H0z"})})})]})}let ej={purple:"#7C65C1",white:"#FFFFFF"};var eU="_1n3pr302";function eB({kind:e="primary",children:t,className:n,...a}){return C("button",{type:"button",className:eD[e]||n,...a,children:t})}let eD={primary:"_1n3pr301",secondary:eU,tertiary:"_1n3pr303",reset:"_1n3pr300"};function eF({label:e,onClick:t,initializing:n}){return T(eB,{kind:"primary",onClick:t,disabled:n,children:[C(eL,{height:20,fill:"white"}),C("span",{style:{marginLeft:9},children:e})]})}function eZ({signOut:e}){return C("div",{className:"_16wbil70",children:T("button",{type:"button",className:eU,style:{boxShadow:"0px 6px 12px 0 rgba(0,0,0,0.12)"},onClick:e,children:[T("svg",{width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"_16wbil71",children:[C("title",{children:"Sign Out"}),C("path",{d:"M11.75 7V3.25C11.75 2.65326 11.5129 2.08097 11.091 1.65901C10.669 1.2370
15 10.0967 1 9.5 1H3.5C2.90326 1 2.33097 1.23705 1.90901 1.65901C1.48705 2.08097 1.25 2.65326 1.25 3.25V16.75C1.25 17.3467 1.48705 17.919 1.90901 18.341C2.33097 18.7629 2.90326 19 3.5 19H9.5C10.0967 19 10.669 18.7629 11.091 18.341C11.5129 17.919 11.75 17.3467 11.75 16.75V13M14.75 13L17.75 10M17.75 10L14.75 7M17.75 10H5",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"Sign out"]})})}function eH({userData:e,signOut:t,hideSignOut:n}){var a,i;let[o,s]=P(!1),u=Wt(null);Z(()=>{function e(e){a.current&&!a.current.contains(e.target)&&i()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[a=u,i=()=>s(!1)]);let l=(null==e?void 0:e.username)??`!${null==e?void 0:e.fid}`;return C("div",{className:"fc-authkit-profile-button _1rbg3ua1",ref:u,children:T("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[T("button",{type:"button",className:eU,onClick:()=>s(!o),children:[C("img",{className:"_1rbg3ua2",src:(null==e?void 0:e.pfpUrl)??"https://warpcast.com/avatar.png",alt:"avatar"}),C("span",{className:"_1rbg3ua3",children:l}),!n&&T("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("title",{children:"Dropdown"}),C("g",{opacity:"0.5",children:C("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.26418 9.864C6.43293 9.69545 6.66168 9.60079 6.90018 9.60079C7.13869 9.60079 7.36743 9.69545 7.53618 9.864L12.0002 14.328L16.4642 9.864C16.5466 9.77557 16.6459 9.70465 16.7563 9.65546C16.8667 9.60627 16.9859 9.57982 17.1068 9.57769C17.2276 9.57555 17.3476 9.59778 17.4597 9.64305C17.5718 9.68831 17.6736 9.75569 17.759 9.84115C17.8445 9.92661 17.9119 10.0284 17.9571 10.1405C18.0024 10.2525 18.0246 10.3726 18.0225 10.4934C18.0204 10.6143 17.9939 10.7334 17.9447 10.8438C17.8955 10.9542 17.8246 11.0536 17.7362 11.136L12.6362 16.236C12.4674 16.4045 12.2387 16.4992 12.0002 16.4992C11.7617 16.4992 11.5329 16.4045 11.3642 16.236L6.26418 11.136C6.09564 10.9672 6.00098 10.7385 6.00098 10.5C6.00098 10.2615 6.09564 10.0327 6.26418 9.864Z",fill:"black"})})]})]}),o&&!n&&C(eZ,{signOut:t})]})})}var eK=function(){return(eK=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function eV(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)0>t.indexOf(a[i])&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n}var ez="right-scroll-bar-position",eG="width-before-scroll-bar";function eq(e){return e}var eY=function(e){var t=e.sideCar,n=eV(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw Error("Sidecar medium not found");return eS.createElement(a,eK({},n))};eY.isSideCarExport=!0;var eJ=function(e){void 0===e&&(e={});var t,n,a,i=(void 0===t&&(t=eq),n=[],a=!1,{read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,a);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}});return i.options=eK({async:!0,ssr:!1},e),i}(),e$=function(){},eW=eS.forwardRef(function(e,t){var n,a,i,o=eS.useRef(null),s=eS.useState({onScrollCapture:e$,onWheelCapture:e$,onTouchMoveCapture:e$}),u=s[0],l=s[1],c=e.forwardProps,p=e.children,d=e.className,y=e.removeScrollBar,f=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,g=e.inert,b=e.allowPinchZoom,w=e.as,x=e.gapMode,E=eV(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[o,t],a=function(e){return n.forEac
1h(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,eS.useState)(function(){return{value:null,callback:a,facade:{get current(){return i.value},set current(r){var e=i.value;e!==r&&(i.value=r,i.callback(r,e))}}}})[0]).callback=a,i.facade),_=eK(eK({},E),u);return eS.createElement(eS.Fragment,null,f&&eS.createElement(m,{sideCar:eJ,removeScrollBar:y,shards:h,noIsolation:v,inert:g,setCallbacks:l,allowPinchZoom:!!b,lockRef:o,gapMode:x}),c?eS.cloneElement(eS.Children.only(p),eK(eK({},_),{ref:M})):eS.createElement(void 0===w?"div":w,eK({},_,{className:d,ref:M}),p))});eW.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eW.classNames={fullWidth:eG,zeroRight:ez};var eX=function(){var e=0,t=null;return{add:function(a){var i,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&((i=t).styleSheet?i.styleSheet.cssText=a:i.appendChild(document.createTextNode(a)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eQ=function(){var e=eX();return function(t,n){eS.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},e0=function(){var e=eQ();return function(t){return e(t.styles,t.dynamic),null}},e1={left:0,top:0,right:0,gap:0},e2=function(e){return parseInt(e||"",10)||0},e5=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],a=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[e2(n),e2(a),e2(i)]},e6=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return e1;var t=e5(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},e4=e0(),e3=function(e,t,n,a){var i=e.left,o=e.top,s=e.right,u=e.gap;return void 0===n&&(n="margin"),` 2 .`.concat("with-scroll-bars-hidden",` { 3 overflow: hidden `).concat(a,`; 4 padding-right: `).concat(u,"px ").concat(a,`; 5 } 6 body { 7 overflow: hidden `).concat(a,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(a,";"),"margin"===n&&` 10 padding-left: `.concat(i,`px; 11 padding-top: `).concat(o,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(u,"px ").concat(a,`; 16 `),"padding"===n&&"padding-right: ".concat(u,"px ").concat(a,";")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(ez,` { 20 right: `).concat(u,"px ").concat(a,`; 21 } 22 23 .`).concat(eG,` { 24 margin-right: `).concat(u,"px ").concat(a,`; 25 } 26 27 .`).concat(ez," .").concat(ez,` { 28 right: 0 `).concat(a,`; 29 } 30 31 .`).concat(eG," .").concat(eG,` { 32 margin-right: 0 `).concat(a,`; 33 } 34 35 body { 36 `).concat("--removed-body-scroll-bar-size",": ").concat(u,`px; 37 } 38`)},e7=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,i=void 0===a?"margin":a,o=eS.useMemo(function(){return e6(i)},[i]);return eS.createElement(e4,{styles:e3(o,!t,i,n?"":"!important")})},e8=!1;if("u">typeof window)try{var e9=Object.defineProperty({},"passive",{get:function(){return e8=!0,!0}});window.addEventListener("test",e9,e9),window.removeEventListener("test",e9,e9)}catch{e8=!1}var te=!!e8&&{passive:!1},tt=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tn=function(e,t){var n=t.ownerDocument,a=t;do{if("u">typeof ShadowRoot&&a instanceof ShadowRoot&&(a=a.host),tr(e,a)){var i=ta(e,a);if(i[1]>i[2])return!0}a=a.parentNode}while(a&&a!==n.body);return!1},tr=function(e,t){return"v"===e?tt(t,"overflowY"):tt(t,"overflowX")},ta=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ti=function(e,t,n,a,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),u=n.target,l=t.contains(u),c=!1,p=s*a>0,d=0,y=0;do{var f=ta(e,u),h=f[0],m=f[1]-f[2]-s*h;(h||m)&&tr(e,u)&&(d+=m,y+=h),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return(p&&1>Math.abs(d)||!p&&1>Math.abs(y))&&(c=!0),c},to=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ts=function(e){return[e.deltaX,e.deltaY]},tu=function(e){return e&&"current"in e?e.current:e},tl=0,tc=[];let tp=(b=function(e){var t=eS.useRef([]),n=eS.useRef([0,0]),a=eS.useRef(),i=eS.useState(tl++)[0],o=eS.useState(e0)[0],s=eS.useRef(e);eS.useEffect(function(){s.current=e},[e]),eS.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var a,i=0,o=t.length;i<o;i++)!a&&i in t||(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}
38)([e.lockRef.current],(e.shards||[]).map(tu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=eS.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=to(e),u=n.current,l="deltaX"in e?e.deltaX:u[0]-o[0],c="deltaY"in e?e.deltaY:u[1]-o[1],p=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===p.type)return!1;var y=tn(d,p);if(!y)return!0;if(y?i=d:(i="v"===d?"h":"v",y=tn(d,p)),!y)return!1;if(!a.current&&"changedTouches"in e&&(l||c)&&(a.current=i),!i)return!0;var f=a.current||i;return ti(f,t,e,"h"===f?l:c)},[]),l=eS.useCallback(function(e){if(!(!tc.length||tc[tc.length-1]!==o)){var n="deltaY"in e?ts(e):to(e),a=t.current.filter(function(t){var a;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(a=t.delta,a[0]===n[0]&&a[1]===n[1])})[0];if(a&&a.should){e.cancelable&&e.preventDefault();return}if(!a){var i=(s.current.shards||[]).map(tu).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=eS.useCallback(function(e,n,a,i){var o={name:e,delta:n,target:a,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(a)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),p=eS.useCallback(function(e){n.current=to(e),a.current=void 0},[]),d=eS.useCallback(function(t){c(t.type,ts(t),t.target,u(t,e.lockRef.current))},[]),y=eS.useCallback(function(t){c(t.type,to(t),t.target,u(t,e.lockRef.current))},[]);eS.useEffect(function(){return tc.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:y}),document.addEventListener("wheel",l,te),document.addEventListener("touchmove",l,te),document.addEventListener("touchstart",p,te),function(){tc=tc.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,te),document.removeEventListener("touchmove",l,te),document.removeEventListener("touchstart",p,te)}},[]);var f=e.removeScrollBar,h=e.inert;return eS.createElement(eS.Fragment,null,h?eS.createElement(o,{styles:` 39 .block-interactivity-`.concat(i,` {pointer-events: none;} 40 .allow-interactivity-`).concat(i,` {pointer-events: all;} 41`)}):null,f?eS.createElement(e7,{gapMode:e.gapMode}):null)},eJ.useMedium(b),eY);var td=eS.forwardRef(function(e,t){return eS.createElement(eW,eK({},e,{ref:t,sideCar:tp}))});td.classNames=eW.classNames;let ty=(e,t)=>{let n=e.querySelectorAll("button:not(:disabled), a[href]");0!==n.length&&n["end"===t?n.length-1:0].focus()};function tf(e){let t=Wt(null);return Z(()=>{let e=document.activeElement;return()=>{var t;null==(t=e.focus)||t.call(e)}},[]),Z(()=>
41{if(t.current){let e=t.current.querySelector("[data-auto-focus]");e?e.focus():t.current.focus()}},[]),T(J,{children:[C("div",{onFocus:R(()=>t.current&&ty(t.current,"end"),[]),tabIndex:0}),C("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),C("div",{onFocus:R(()=>t.current&&ty(t.current,"start"),[]),tabIndex:0})]})}function th(){return"u">typeof navigator&&/android/i.test(navigator.userAgent)||"u">typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"u">typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}let tm=e=>e.stopPropagation();function tv({children:e,onClose:t,open:n,titleId:a}){Z(()=>{let e=e=>n&&"Escape"===e.key&&t();return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,t]);let[i,o]=P(!0);Z(()=>{o("hidden"!==getComputedStyle(window.document.body).overflow)},[]);let s=R(()=>t(),[t]);return C(J,{children:n?Me(C(td,{enabled:i,children:C("div",{style:{alignItems:th()?"flex-end":"center",position:"fixed"},"aria-labelledby":a,"aria-modal":!0,className:"nao3n42",onClick:s,role:"dialog",children:C(tf,{className:"nao3n43",onClick:tm,role:"document",children:e})})}),document.body):null})}
41var tg="_1sj0tk82",tb="_1sj0tk81",tw={},tT={},tx={};let tE=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];tx.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},tx.getSymbolTotalCodewords=function(e){return tE[e]},tx.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},tx.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');a=e},tx.isKanjiModeEnabled=function(){return"u">typeof a},tx.toSJIS=function(e){return a(e)};var tM={};function tC(){this.buffer=[],this.length=0}function t_(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}!function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&"u">typeof e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw Error("Unknown EC Level: "+t)}}catch{return n}}}(tM),tC.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t_.prototype.set=function(e,t,n,a){let i=e*this.size+t;this.data[i]=n,a&&(this.reservedBit[i]=!0)},t_.prototype.get=function(e,t){return this.data[e*this.size+t]},t_.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t_.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var tS={};!function(e){let t=tx.getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];let n=Math.floor(e/7)+2,a=t(e),i=145===a?26:2*Math.ceil((a-13)/(2*n-2)),o=[a-7];for(let e=1;e<n-1;e++)o[e]=o[e-1]-i;return o.push(6),o.reverse()},e.getPositions=function(t){let n=[],a=e.getRowColCoords(t),i=a.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)0===e&&0===t||0===e&&t===i-1||e===i-1&&0===t||n.push([a[e],a[t]]);return n}}(tS);var tk={};let tA=tx.getSymbolSize;tk.getPositions=function(e){let t=tA(e);return[[0,0],[t-7,0],[0,t-7]]};var tO={};!function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,a=0,i=0,o=0,s=null,u=null;for(let l=0;l<n;l++){i=o=0,s=u=null;for(let c=0;c<n;c++){let n=e.get(l,c);n===s?i++:(i>=5&&(a+=t.N1+(i-5)),s=n,i=1),(n=e.get(c,l))===u?o++:(o>=5&&(a+=t.N1+(o-5)),u=n,o=1)}i>=5&&(a+=t.N1+(i-5)),o>=5&&(a+=t.N1+(o-5))}return a},e.getPenaltyN2=function(e){let n=e.size,a=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(4===n||0===n)&&a++}return a*t.N2},e.getPenaltyN3=function(e){let n=e.size,a=0,i=0,o=0;for(let t=0;t<n;t++){i=o=0;for(let s=0;s<n;s++)i=i<<1&2047|e.get(t,s),s>=10&&(1488===i||93===i)&&a++,o=o<<1&2047|e.get(s,t),s>=10&&(1488===o||93===o)&&a++}return a*t.N3},e.getPenaltyN4=function(e){let n=0,a=e.data.length;for(let t=0;t<a;t++)n+=e.data[t];return Math.abs(Math.ceil(100*n/a/5)-10)*t.N4},e.applyMask=function(t,n){let a=n.size;for(let i=0;i<a;i++)for(let o=0;o<a;o++)n.isReserved(o,i)||n.xor(o,i,function(t,n,a){switch(t){case e.Patterns.PATTERN000:return(n+a)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return a%3==0;case e.Patterns.PATTERN011:return(n+a)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2==0;case e.Patterns.PATTERN101:return n*a%2+n*a%3==0;case e.Patterns.PATTERN110:return(n*a%2+n*a%3)%2==0;case e.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2==0;default:throw Error("bad maskPattern:"+t)}}(t,o,i))},e.getBestMask=function(t,n){let a=Object.keys(e.Patterns).length,i=0,o=1/0;for(let s=0;s<a;s++){n(s),e.applyMask(s,t);let a=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(s,t),a<o&&(o=a,i=s)}return i}}(tO);var tP={};let tR=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],tI=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
41192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];tP.getBlocksCount=function(e,t){switch(t){case tM.L:return tR[(e-1)*4+0];case tM.M:return tR[(e-1)*4+1];case tM.Q:return tR[(e-1)*4+2];case tM.H:return tR[(e-1)*4+3];default:return}},tP.getTotalCodewordsCount=function(e,t){switch(t){case tM.L:return tI[(e-1)*4+0];case tM.M:return tI[(e-1)*4+1];case tM.Q:return tI[(e-1)*4+2];case tM.H:return tI[(e-1)*4+3];default:return}};var tN={},tL={};let tj=new Uint8Array(512),tU=new Uint8Array(256);function tB(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}!function(){let e=1;for(let t=0;t<255;t++)tj[t]=e,tU[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)tj[e]=tj[e-255]}(),tL.log=function(e){if(e<1)throw Error("log("+e+")");return tU[e]},tL.exp=function(e){return tj[e]},tL.mul=function(e,t){return 0===e||0===t?0:tj[tU[e]+tU[t]]},function(e){e.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let a=0;a<e.length;a++)for(let i=0;i<t.length;i++)n[a+i]^=tL.mul(e[a],t[i]);return n},e.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let e=n[0];for(let a=0;a<t.length;a++)n[a]^=tL.mul(t[a],e);let a=0;for(;a<n.length&&0===n[a];)a++;n=n.slice(a)}return n},e.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let a=0;a<t;a++)n=e.mul(n,new Uint8Array([1,tL.exp(a)]));return n}}(tN),tB.prototype.initialize=function(e){this.degree=e,this.genPoly=tN.generateECPolynomial(this.degree)},tB.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=tN.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){let e=new Uint8Array(this.degree);return e.set(n,a),e}return n};var tD={},tF={},tZ={};tZ.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var tH={};let tK="[0-9]+",tV="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",tz="(?:(?![A-Z0-9 $%*+\\-./:]|"+(tV=tV.replace(/u/g,"\\u"))+`)(?:.|[\r 42]))+`;tH.KANJI=RegExp(tV,"g"),tH.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),tH.BYTE=RegExp(tz,"g"),tH.NUMERIC=RegExp(tK,"g"),tH.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let tG=RegExp("^"+tV+"$"),tq=RegExp("^"+tK+"$"),tY=RegExp("^[A-Z0-9 $%*+\\-./:]+$");tH.testKanji=function(e){return tG.test(e)},tH.testNumeric=function(e){return tq.test(e)},tH.testAlphanumeric=function(e){return tY.test(e)},function(e){e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!tZ.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return tH.testNumeric(t)?e.NUMERIC:tH.testAlphanumeric(t)?e.ALPHANUMERIC:tH.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw Error("Unknown mode: "+t)}}catch{return n}}}(tF),function(e){let t=tx.getBCHDigit(7973);function n(e,t){return tF.getCharCountIndicator(e,t)+4}e.from=function(e,t){return tZ.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,t,a){if(!tZ.isValid(e))throw Error("Invalid QR Code version");typeof a>"u"&&(a=tF.BYTE);let i=(tx.getSymbolTotalCodewords(e)-tP.getTotalCodewordsCount(e,t))*8;if(a===tF.MIXED)return i;let o=i-n(a,e);switch(a){case tF.NUMERIC:return Math.floor(o/10*3);case tF.ALPHANUMERIC:return Math.floor(o/11*2);case tF.KANJI:return Math.floor(o/13);case tF.BYTE:default:return Math.floor(o/8)}},e.getBestVersionForData=function(t,a){let i,o=tM.from(a,tM.M);if(Array.isArray(t)){if(t.length>1){for(let a=1;a<=40;a++)if(function(e,t){let a=0;return e.forEach(function(e){let i=n(e.mode,t);a+=i+e.getBitsLength()}),a}(t,a)<=e.getCapacity(a,o,tF.MIXED))return a;return}if(0===t.length)return 1;i=t[0]}else i=t;return function(t,n,a){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,a,t))return i}(i.mode,i.getLength(),o)},e.getEncodedBits=function(e){if(!tZ.isValid(e)||e<7)throw Error("Invalid QR Code version");let n=e<<12;
42for(;tx.getBCHDigit(n)-t>=0;)n^=7973<<tx.getBCHDigit(n)-t;return e<<12|n}}(tD);var tJ={};let t$=tx.getBCHDigit(1335);tJ.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;tx.getBCHDigit(a)-t$>=0;)a^=1335<<tx.getBCHDigit(a)-t$;return(n<<10|a)^21522};var tW={};function tX(e){this.mode=tF.NUMERIC,this.data=e.toString()}tX.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},tX.prototype.getLength=function(){return this.data.length},tX.prototype.getBitsLength=function(){return tX.getBitsLength(this.data.length)},tX.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)a=parseInt(this.data.substr(t,3),10),e.put(a,10);let i=this.data.length-t;i>0&&(a=parseInt(this.data.substr(t),10),e.put(a,3*i+1))};let tQ=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function t0(e){this.mode=tF.ALPHANUMERIC,this.data=e}t0.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},t0.prototype.getLength=function(){return this.data.length},t0.prototype.getBitsLength=function(){return t0.getBitsLength(this.data.length)},t0.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*tQ.indexOf(this.data[t]);n+=tQ.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(tQ.indexOf(this.data[t]),6)};let t1=function(e){for(var t=[],n=e.length,a=0;a<n;a++){var i=e.charCodeAt(a);if(i>=55296&&i<=56319&&n>a+1){var o=e.charCodeAt(a+1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536,a+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(63&i|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};function t2(e){this.mode=tF.BYTE,"string"==typeof e&&(e=t1(e)),this.data=new Uint8Array(e)}function t5(e){this.mode=tF.KANJI,this.data=e}t2.getBitsLength=function(e){return 8*e},t2.prototype.getLength=function(){return this.data.length},t2.prototype.getBitsLength=function(){return t2.getBitsLength(this.data.length)},t2.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t5.getBitsLength=function(e){return 13*e},t5.prototype.getLength=function(){return this.data.length},t5.prototype.getBitsLength=function(){return t5.getBitsLength(this.data.length)},t5.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=tx.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+` 43Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(255&n),e.put(n,13)}};var t6={exports:{}};!function(e){var t={single_source_shortest_paths:function(e,n,a){var i,o,s,u,l,c,p,d={},y={};y[n]=0;var f=t.PriorityQueue.make();for(f.push(n,0);!f.empty();)for(s in o=(i=f.pop()).value,u=i.cost,l=e[o]||{})l.hasOwnProperty(s)&&(c=u+l[s],p=y[s],(typeof y[s]>"u"||p>c)&&(y[s]=c,f.push(s,c),d[s]=o));if("u">typeof a&&typeof y[a]>"u")throw Error(["Could not find a path from ",n," to ",a,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],a=t;a;)n.push(a),e[a],a=e[a];return n.reverse(),n},find_path:function(e,n,a){var i=t.single_source_shortest_paths(e,n,a);return t.extract_shortest_path_from_predecessor_list(i,a)},PriorityQueue:{make:function(e){var n,a=t.PriorityQueue,i={};for(n in e=e||{},a)a.hasOwnProperty(n)&&(i[n]=a[n]);return i.queue=[],i.sorter=e.sorter||a.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t}(t6);var t4=t6.exports;function t3(e,t,n){let a,i,o=e.size,s=tJ.getEncodedBits(t,n);for(a=0;a<15;a++)i=(s>>a&1)==1,a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(o-15+a,8,i,!0),a<8?e.set(8,o-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(o-8,8,1,!0)}!function(e){function t(e){return unescape(encodeURIComponent(e)).length}function n(e,t,n){let a,i=[];for(;null!==(a=e.exec(n));)i.push({data:a[0],index:a.index,mode:t,length:a[0].length});return i}function a(e){let t,a,i=n(tH.NUMERIC,tF.NUMERIC,e),o=n(tH.ALPHANUMERIC,tF.ALPHANUMERIC,e);return tx.isKanjiModeEnabled()?(t=n(tH.BYTE,tF.BYTE,e),a=n(tH.KANJI,tF.KANJI,e)):(t=n(tH.BYTE_KANJI,tF.BYTE,e),a=[]),i.concat(o,t,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function i(e,t){switch(t){case tF.NUMERIC:return tX.getBitsLength(e);case tF.ALPHANUMERIC:return t0.getBitsLength(e);case tF.KANJI:return t5.getBitsLength(e);case tF.BYTE:return t2.getBitsLength(e)}}function o(e,t){let n,a=tF.getBestModeForData(e);if((n=tF.from(t,a))!==tF.BYTE&&n.bit<a.bit)throw Error('"'+e+'" cannot be encoded with mode '+tF.toString(n)+`. 44 Suggested mode is: `+tF.toString(a));switch(n===tF.KANJI&&!tx.isKanjiModeEnabled()&&(n=tF.BYTE),n){case tF.NUMERIC:return new tX(e);case tF.ALPHANUMERIC:return new t0(e);case tF.KANJI:return new t5(e);case tF.BYTE:return new t2(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(o(t,null)):t.data&&e.push(o(t.data,t.mode)),e},[])},e.fromString=function(n,o){let s=function(e,t){let n={},a={start:{}},o=["start"];for(let s=0;s<e.length;s++){let u=e[s],l=[];for(let e=0;e<u.length;e++){let c=u[e],p=""+s+e;l.push(p),n[p]={node:c,lastCount:0},a[p]={};for(let e=0;e<o.length;e++){let s=o[e];n[s]&&n[s].node.mode===c.mode?(a[s][p]=i(n[s].lastCount+c.length,c.mode)-i(n[s].lastCount,c.mode),n[s].lastCount+=c.length):(n[s]&&(n[s].lastCount=c.length),a[s][p]=i(c.length,c.mode)+4+tF.getCharCountIndicator(c.mode,t))}}o=l}for(let e=0;e<o.length;e++)a[o[e]].end=0;return{map:a,table:n}}(function(e){let n=[];for(let a=0;a<e.length;a++){let i=e[a];switch(i.mode){case tF.NUMERIC:n.push([i,{data:i.data,mode:tF.ALPHANUMERIC,length:i.length},{data:i.data,mode:tF.BYTE,length:i.length}]);break;case tF.ALPHANUMERIC:n.push([i,{data:i.data,mode:tF.BYTE,length:i.length}]);break;case tF.KANJI:n.push([i,{data:i.data,mode:tF.BYTE,length:t(i.data)}]);break;case tF.BYTE:n.push([{data:i.data,mode:tF.BYTE,length:t(i.data)}])}}return n}(a(n,tx.isKanjiModeEnabled())),o),u=t4.find_path(s.map,"start","end"),l=[];for(let e=1;e<u.length-1;e++)l.push(s.table[u[e]].node);return e.fromArray(l.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},e.rawSplit=function(t){return e.fromArray(a(t,tx.isKanjiModeEnabled()))}}(tW),tT.create=function(e,t){if(typeof e>"u"||""===e)throw Error("No input text");let n=tM.M,a,i;return"u">typeof t&&(n=tM.from(t.errorCorrectionLevel,tM.M),a=tD.from(t.version),i=tO.from(t.maskPattern),t.toSJISFunc&&tx.setToSJISFunction(t.toSJISFunc)),function(e,t,n,a){let i;if(Array.isArray(e))i=tW.fromArray(e);else if("string"==typeof e){let a=t;if(!a){let t=tW.rawSplit(e);a=tD.getBestVersionForData(t,n)}i=tW.fromString(e,a||40)}else throw Error("Invalid data");let o=tD.getBestVersionForData(i,n);if(!o)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<o)throw Error(` 45The chosen QR Code version cannot contain this amount of data. 46Minimum version required to store current data is: `+o+`. 47`)}else t=o;let s=function(e,t,n){let a=new tC;
47n.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),tF.getCharCountIndicator(t.mode,e)),t.write(a)});let i=(tx.getSymbolTotalCodewords(e)-tP.getTotalCodewordsCount(e,t))*8;for(a.getLengthInBits()+4<=i&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let o=(i-a.getLengthInBits())/8;for(let e=0;e<o;e++)a.put(e%2?17:236,8);return function(e,t,n){let a=tx.getSymbolTotalCodewords(t),i=a-tP.getTotalCodewordsCount(t,n),o=tP.getBlocksCount(t,n),s=a%o,u=o-s,l=Math.floor(a/o),c=Math.floor(i/o),p=c+1,d=l-c,y=new tB(d),f=0,h=Array(o),m=Array(o),v=0,g=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<u?c:p;h[e]=g.slice(f,f+t),m[e]=y.encode(h[e]),f+=t,v=Math.max(v,t)}let b=new Uint8Array(a),w=0,x,E;for(x=0;x<v;x++)for(E=0;E<o;E++)x<h[E].length&&(b[w++]=h[E][x]);for(x=0;x<d;x++)for(E=0;E<o;E++)b[w++]=m[E][x];return b}(a,e,t)}(t,n,i),u=new t_(tx.getSymbolSize(t));return function(e,t){let n=e.size,a=tk.getPositions(t);for(let t=0;t<a.length;t++){let i=a[t][0],o=a[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let a=-1;a<=7;a++)o+a<=-1||n<=o+a||(t>=0&&t<=6&&(0===a||6===a)||a>=0&&a<=6&&(0===t||6===t)||t>=2&&t<=4&&a>=2&&a<=4?e.set(i+t,o+a,!0,!0):e.set(i+t,o+a,!1,!0))}}(u,t),function(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(u),function(e,t){let n=tS.getPositions(t);for(let t=0;t<n.length;t++){let a=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(a+t,i+n,!0,!0):e.set(a+t,i+n,!1,!0)}}(u,t),t3(u,n,0),t>=7&&function(e,t){let n,a,i,o=e.size,s=tD.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),a=t%3+o-8-3,i=(s>>t&1)==1,e.set(n,a,i,!0),e.set(a,n,i,!0)}(u,t),function(e,t){let n=e.size,a=-1,i=n-1,o=7,s=0;for(let u=n-1;u>0;u-=2)for(6===u&&u--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,u-n)){let a=!1;s<t.length&&(a=(t[s]>>>o&1)==1),e.set(i,u-n,a),-1==--o&&(s++,o=7)}if((i+=a)<0||n<=i){i-=a,a=-a;break}}}(u,s),isNaN(a)&&(a=tO.getBestMask(u,t3.bind(null,u,n))),tO.applyM
47ask(a,u),t3(u,n,a),{modules:u,version:t,errorCorrectionLevel:n,maskPattern:a,segments:i}}(e,a,n,i)};var t7={},t8={};!function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});let n=typeof e.margin>"u"||null===e.margin||e.margin<0?4:e.margin,a=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:a,scale:a?4:i,margin:n,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,n){let a=e.getScale(t,n);return Math.floor((t+2*n.margin)*a)},e.qrToImageData=function(t,n,a){let i=n.modules.size,o=n.modules.data,s=e.getScale(i,a),u=Math.floor((i+2*a.margin)*s),l=a.margin*s,c=[a.color.light,a.color.dark];for(let e=0;e<u;e++)for(let n=0;n<u;n++){let p=(e*u+n)*4,d=a.color.light;e>=l&&n>=l&&e<u-l&&n<u-l&&(d=c[+!!o[Math.floor((e-l)/s)*i+Math.floor((n-l)/s)]]),t[p++]=d.r,t[p++]=d.g,t[p++]=d.b,t[p]=d.a}}}(t8),function(e){e.render=function(e,t,n){var a;let i=n,o=t;!(typeof i>"u")||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch{throw Error("You need to specify a canvas element")}}()),i=t8.getOptions(i);let s=t8.getImageWidth(e.modules.size,i),u=o.getContext("2d"),l=u.createImageData(s,s);return t8.qrToImageData(l.data,e,i),a=o,u.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px",u.putImageData(l,0,0),o},e.renderToDataURL=function(t,n,a){let i=a;!(typeof i>"u")||n&&n.getContext||(i=n,n=void 0),i||(i={});let o=e.render(t,n,i),s=i.type||"image/png",u=i.rendererOpts||{};return o.toDataURL(s,u.quality)}}(t7);var t9={};function ne(e,t){let n=e.a/255,a=t+'="'+e.hex+'"';return n<1?a+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':a}function nt(e,t,n){let a=e+t;return"u">typeof n&&(a+=" "+n),a}function nn(e,t,n,a,i){let o=[].slice.call(arguments,1),s=o.length,u="function"==typeof o[s-1];if(!u&&!("function"==typeof Promise&&Promise.prototype&&Promise.prototype.then))throw Error("Callback required as last argument");if(u){if(s<2)throw Error("Too few arguments provided");2===s?(i=n,n=t,t=a=void 0):3===s&&(t.getContext&&typeof i>"u"?(i=a,a=void 0):(i=a,a=n,n=t,t=void 0))}else{if(s<1)throw Error("Too few arguments provided");return 1===s?(n=t,t=a=void 0):2!==s||t.getContext||(a=n,n=t,t=void 0),new Promise(function(i,o){try{let o=tT.create(n,a);i(e(o,t,a))}catch(e){o(e)}})}try{let o=tT.create(n,a);i(null,e(o,t,a))}catch(e){i(e)}}t9.render=function(e,t,n){let a=t8.getOptions(t),i=e.modules.size,o=e.modules.data,s=i+2*a.margin,u=a.color.light.a?"<path "+ne(a.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",l="<path "+ne(a.color.dark,"stroke")+' d="'+function(e,t,n){let a="",i=0,o=!1,s=0;for(let u=0;u<e.length;u++){let l=Math.floor(u%t),c=Math.floor(u/t);l||o||(o=!0),e[u]?(s++,u>0&&l>0&&e[u-1]||(a+=o?nt("M",l+n,.5+c+n):nt("m",i,0),i=0,o=!1),l+1<t&&e[u+1]||(a+=nt("h",s),s=0)):i++}return a}(o,i,a.margin)+'"/>',c='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+s+" ")+s+'" shape-rendering="crispEdges">'+u+l+`</svg> 48`;return"function"==typeof n&&n(null,c),c},tw.create=tT.create,tw.toCanvas=nn.bind(null,t7.render),tw.toDataURL=nn.bind(null,t7.renderToDataURL),tw.toString=nn.bind(null,function(e,t,n){return t9.render(e,n)});let nr=(e,t)=>{let n=Array.prototype.slice.call(tw.create(e,{errorCorrectionLevel:t}).modules.data,0),a=Math.sqrt(n.length);return n.reduce((e,t,n)=>(n%a==0?e.push([t]):e[e.length-1].push(t))&&e,[])};function na({ecl:e="M",size:t=200,uri:n}){let a=t-2*parseInt("20",10),i=Ae(()=>{let t=[],i=nr(n,e),o=a/i.length;return[{x:0,y:0},{x:1,y:0},{x:0,y:1}
48].forEach(({x:e,y:n})=>{let a=(i.length-7)*o*e,s=(i.length-7)*o*n;for(let i=0;i<3;i++)t.push(C("rect",{fill:i%2!=0?"white":"black",height:o*(7-2*i),width:o*(7-2*i),x:a+o*i,y:s+o*i},`${i}-${e}-${n}`))}),i.forEach((e,n)=>{e.forEach((e,a)=>{i[n][a]&&(n<7&&a<7||n>i.length-8&&a<7||n<7&&a>i.length-8||t.push(C("rect",{fill:"black",height:o,width:o,x:n*o,y:a*o},`square-${n}-${a}`)))})}),t},[e,a,n]);return T("div",{className:"_1n3pr304",children:[C("div",{className:"_1n3pr305",style:{width:a}}),T("svg",{height:a,style:{all:"revert"},width:a,children:[C("title",{children:"QR Code"}),C("rect",{fill:"transparent",height:a,width:a}),i]})]})}function ni({open:e,onClose:t,url:n,isError:a,error:i}){return C(tv,{open:e,titleId:"Sign in with Farcaster",onClose:t,children:C("div",{className:"fc-authkit-qrcode-dialog",children:C("div",{className:"_1sj0tk80",children:a?T(J,{children:[C("div",{className:tb,children:"Error"}),C("div",{className:tg,children:(null==i?void 0:i.message)??"Unknown error, please try again."})]}):T(J,{children:[C("div",{className:tb,children:"Sign in with Farcaster"}),C("div",{className:tg,children:"To sign in with Farcaster, scan the code below with your phone's camera."}),C("div",{className:"_1sj0tk85",children:C(na,{uri:n,size:200})}),C("div",{style:{display:"flex",justifyContent:"center"},children:T(eB,{kind:"tertiary",style:{display:"flex",alignItems:"center",fontWeight:500},onClick:()=>{window.open(n,"_blank")},children:[T("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:18,fill:"none",children:[C("title",{children:"Sign in With Farcaster QR Code"}),C("path",{fill:"#7C65C1",fillRule:"evenodd",d:"M0 3a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3Zm4-1.5v.75c0 .414.336.75.75.75h2.5A.75.75 0 0 0 8 2.25V1.5h1A1.5 1.5 0 0 1 10.5 3v12A1.5 1.5 0 0 1 9 16.5H3A1.5 1.5 0 0 1 1.5 15V3A1.5 1.5 0 0 1 3 1.5h1Z",clipRule:"evenodd"})]}),C("span",{style:{marginLeft:9},children:"I'm using my phone â"})]})})]})})})})}function no(){let{isAuthenticated:e,profile:t}=eP();return{isAuthenticated:e,profile:t}}},48079:e=>{e.exports=function(e){var t=Object(e),n=[];for(var a in t)n.unshift(a);return function e(){for(;n.length;)if((a=n.pop())in t)return e.value=a,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},48683:(e,t,n)=>{var a=n(39828);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},49165:e=>{function t(e,t,n,a,i,o,s){try{var u=e[o](s),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(a,i)}e.exports=function(e){return function(){var n=this,a=arguments;return new Promise(function(i,o){var s=e.apply(n,a);function u(e){t(s,i,o,u,l,"next",e)}function l(e){t(s,i,o,u,l,"throw",e)}u(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},50837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let n=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let a=new URL(null!=(t=e)?t:n),i=("/"===a.pathname?n.pathname:a.pathname).replace(/\/$/,""),o=`${a.origin}${i}`;return{origin:a.origin,host:a.host,path:i,base:o,toString:()=>o}}},54170:(e,t,n)=>{var a=n(87382).default,i=n(88109);e.exports=function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},54947:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},56620:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},58977:(e,t,n)=>{var a=n(70375),i=n(45591);e.exports=function(e,t,n,o,s){return new i(a().w(e,t,n,o),s||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}
48,65593:(e,t,n)=>{var a=n(54947),i=n(34108),o=n(34514),s=n(87034);e.exports=function(e,t){return a(e)||i(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},66474:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(19946).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},70375:(e,t,n)=>{var a=n(27476);function i(){var t,n,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function l(e,i,o,s){var u=Object.create((i&&i.prototype instanceof p?i:p).prototype);return a(u,"_invoke",function(e,a,i){var o,s,u,l=0,p=i||[],d=!1,y={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,s=0,u=t,y.n=n,c}};function f(e,a){for(s=e,u=a,n=0;!d&&l&&!i&&n<p.length;n++){var i,o=p[n],f=y.p,h=o[2];e>3?(i=h===a)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(s=0,y.v=a,y.n=o[1]):f<h&&(i=e<3||o[0]>a||a>h)&&(o[4]=e,o[5]=a,y.n=h,s=0))}if(i||e>1)return c;throw d=!0,a}return function(i,p,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===p&&f(p,h),s=p,u=h;(n=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(y.n=-1),f(s,u)):y.n=u:y.v=u);try{if(l=2,o){if(s||(i="next"),n=o[i]){if(!(n=n.call(o,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,s<2&&(s=0)}else 1===s&&(n=o.return)&&n.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=t}else if((n=(d=y.n<0)?u:e.call(a,y))!==c)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:n,done:d}}}(e,o,s),!0),u}var c={};function p(){}function d(){}function y(){}n=Object.getPrototypeOf;
48var f=y.prototype=p.prototype=Object.create([][s]?n(n([][s]())):(a(n={},s,function(){return this}),n));function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,a(e,u,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=y,a(f,"constructor",y),a(y,"constructor",d),d.displayName="GeneratorFunction",a(y,u,"GeneratorFunction"),a(f),a(f,u,"Generator"),a(f,s,function(){return this}),a(f,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:l,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},71007:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a=(0,n(19946).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},71883:(e,t,n)=>{"use strict";var a=n(56620);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(n,a){return n[a]=(0,o.default)(i.default.mark(function n(){var o,s,u,l,c,p=arguments;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:for(n.prev=0,s=Array(o=p.length),u=0;u<o;u++)s[u]=p[u];return t.debug("adapter_".concat(a),{args:s}),l=e[a],n.next=6,l.apply(void 0,s);case 6:return n.abrupt("return",n.sent);case 9:throw n.prev=9,n.t0=n.catch(0),t.error("adapter_error_".concat(a),n.t0),(c=new h(n.t0)).name="".concat(v(a),"Error"),c;case 15:case"end":return n.stop()}},n,null,[[0,9]])})),n},{})},t.capitalize=v,t.eventsErrorHandler=function(e,t){return Object.keys(e).reduce(function(n,a){return n[a]=(0,o.default)(i.default.mark(function n(){var o,s=arguments;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,o=e[a],n.next=4,o.apply(void 0,s);case 4:return n.abrupt("return",n.sent);case 7:n.prev=7,n.t0=n.catch(0),t.error("".concat(m(a),"_EVENT_ERROR"),n.t0);case 10:case"end":return n.stop()}},n,null,[[0,7]])})),n},{})},t.upperSnake=m;var i=a(n(81390)),o=a(n(49165)),s=a(n(13901)),u=a(n(2419)),l=a(n(46045)),c=a(n(54170)),p=a(n(87824)),d=a(n(48683));function y(e,t,n){return t=(0,p.default)(t),(0,c.default)(e,f()?Reflect.construct(t,n||[],(0,p.default)(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=t.UnknownError=function(e){function t(e){var n,a;return(0,u.default)(this,t),(a=y(this,t,[null!=(n=null==e?void 0:e.message)?n:e])).name="UnknownError",a.code=e.code,e instanceof Error&&(a.stack=e.stack),a}return(0,d.default)(t,e),(0,l.default)(t,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}])}((0,a(n(13131)).default)(Error));function m(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function v(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}t.OAuthCallbackError=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","OAuthCallbackError"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h),t.AccountNotLinkedError=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","AccountNotLinkedError"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h),t.MissingAPIRoute=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","MissingAPIRouteError"),(0,s.default)(e,"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h),t.MissingSecret=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","MissingSecretError"),(0,s.default)(e,"code","NO_SECRET"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h),t.MissingAuthorize=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","MissingAuthorizeError"),(0,s.default)(e,"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h),t.MissingAdapter=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","MissingAdapterError"),(0,s.default)(e,"code","
48EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h),t.MissingAdapterMethods=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","MissingAdapterMethodsError"),(0,s.default)(e,"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h),t.UnsupportedStrategy=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","UnsupportedStrategyError"),(0,s.default)(e,"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h),t.InvalidCallbackUrl=function(e){function t(){var e;(0,u.default)(this,t);for(var n=arguments.length,a=Array(n),i=0;i<n;i++)a[i]=arguments[i];return e=y(this,t,[].concat(a)),(0,s.default)(e,"name","InvalidCallbackUrl"),(0,s.default)(e,"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(h)},74801:(e,t,n)=>{var a=n(87382).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw TypeError(a(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},78519:(e,t,n)=>{"use strict";function a(e,{errorInstance:t=Error("timed out"),timeout:n,signal:a}){return new Promise((i,o)=>{(async()=>{let s;try{let u=new AbortController;n>0&&(s=setTimeout(()=>{a?u.abort():o(t)},n)),i(await e({signal:u?.signal||null}))}catch(e){e?.name==="AbortError"&&o(t),o(e)}finally{clearTimeout(s)}})()})}n.d(t,{w:()=>a})},81390:(e,t,n)=>{var a=n(22977)();e.exports=a;try{regeneratorRuntime=a}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},83539:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a},e.exports.__esModule=!0,e.exports.default=e.exports},87034:e=>{e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},87382:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},87824:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},88109:e=>{e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},96268:(e,t,n)=>{var a=n(23294),i=n(39828);e.exports=function(e,t,n){if(a())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var s=new(e.bind.apply(e,o));return n&&i(s,n.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports},96346:(e,t,n)=>{var a=n(87382).default,i=n(38919);e.exports=function(e){var t=i(e,"string");return"symbol"==a(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
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.