From 3198410cbcaf1de3ce36a96b8cf6365cbc2ff36d Mon Sep 17 00:00:00 2001 From: yeeetai <97072345+yeeetai@users.noreply.github.com> Date: Tue, 22 Aug 2023 01:31:38 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20hollow-l?= =?UTF-8?q?eaf/tobi@21832a3d4125c67cacda3f6f9bfa802b19933bf6=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- Kamui.svg | 54 ++++++++++ _next/static/chunks/365-a2410958d9b21caa.js | 45 +++++++++ _next/static/chunks/698-3e5c0580e293fb6c.js | 99 ------------------- _next/static/chunks/928-df410e5470c19e14.js | 55 +++++++++++ .../chunks/app/layout-707a88dfc621a4f3.js | 1 + .../chunks/app/layout-a239de78fa5c93bb.js | 1 - .../chunks/app/vote/page-2960ea9fe8b11384.js | 9 -- .../chunks/app/vote/page-91e239708e033e51.js | 1 + ...a8ba9f9db8.js => main-dd9a4558cb8b9bed.js} | 2 +- ...9fbbbe4.js => webpack-8f714818cecfb7a6.js} | 2 +- _next/static/css/12b17948ec477538.css | 3 + _next/static/css/483687718ea55835.css | 3 - .../_buildManifest.js | 0 .../_ssgManifest.js | 0 home.html | 2 +- home.txt | 16 +-- vote.html | 2 +- vote.txt | 19 ++-- 19 files changed, 182 insertions(+), 134 deletions(-) create mode 100644 Kamui.svg create mode 100644 _next/static/chunks/365-a2410958d9b21caa.js delete mode 100644 _next/static/chunks/698-3e5c0580e293fb6c.js create mode 100644 _next/static/chunks/928-df410e5470c19e14.js create mode 100644 _next/static/chunks/app/layout-707a88dfc621a4f3.js delete mode 100644 _next/static/chunks/app/layout-a239de78fa5c93bb.js delete mode 100644 _next/static/chunks/app/vote/page-2960ea9fe8b11384.js create mode 100644 _next/static/chunks/app/vote/page-91e239708e033e51.js rename _next/static/chunks/{main-78f45da8ba9f9db8.js => main-dd9a4558cb8b9bed.js} (99%) rename _next/static/chunks/{webpack-ecce68ac89fbbbe4.js => webpack-8f714818cecfb7a6.js} (98%) create mode 100644 _next/static/css/12b17948ec477538.css delete mode 100644 _next/static/css/483687718ea55835.css rename _next/static/{fwgGBewOhJAENupQY5AP5 => gi60-tNI4l8hweV9sTMeZ}/_buildManifest.js (100%) rename _next/static/{fwgGBewOhJAENupQY5AP5 => gi60-tNI4l8hweV9sTMeZ}/_ssgManifest.js (100%) diff --git a/404.html b/404.html index dfb235d..3e16c9b 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/Kamui.svg b/Kamui.svg new file mode 100644 index 0000000..5d8a9c4 --- /dev/null +++ b/Kamui.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/_next/static/chunks/365-a2410958d9b21caa.js b/_next/static/chunks/365-a2410958d9b21caa.js new file mode 100644 index 0000000..170ac6b --- /dev/null +++ b/_next/static/chunks/365-a2410958d9b21caa.js @@ -0,0 +1,45 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[365],{84658:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new i(r,a||e,s),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],o]:e._events[u].push(o):(e._events[u]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=Array(a);i{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&a(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}})}function m(e){let[t,n]=a.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,a.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:i,qualityInt:s,className:o,imgStyle:u,blurStyle:c,isLazy:l,fetchPriority:d,fill:f,placeholder:h,loading:g,srcString:b,config:y,unoptimized:v,loader:w,onLoadRef:A,onLoadingCompleteRef:C,setBlurComplete:P,setShowAltText:E,onLoad:x,onError:O,...I}=e;return g=l?"lazy":g,a.default.createElement("img",{...I,...m(d),loading:g,width:i,height:r,decoding:"async","data-nimg":f?"fill":"1",className:o,style:{...u,...c},...n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&p(e,b,h,A,C,P,v))},[b,h,A,C,P,O,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,b,h,A,C,P,v)},onError:e=>{E(!0),"blur"===h&&P(!0),O&&O(e)}})}),b=(0,a.forwardRef)((e,t)=>{var n;let r,i,{src:p,sizes:b,unoptimized:y=!1,priority:v=!1,loading:w,className:A,quality:C,width:P,height:E,fill:x,style:O,onLoad:I,onLoadingComplete:S,placeholder:B="empty",blurDataURL:M,fetchPriority:k,layout:j,objectFit:R,objectPosition:F,lazyBoundary:D,lazyRoot:N,...T}=e,U=(0,a.useContext)(c.ImageConfigContext),Q=(0,a.useMemo)(()=>{let e=d||U||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[U]),q=T.loader||l.default;delete T.loader;let L="__next_img_default"in q;if(L){if("custom"===Q.loader)throw Error('Image with src "'+p+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=q;q=t=>{let{config:n,...r}=t;return e(r)}}if(j){"fill"===j&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[j];t&&!b&&(b=t)}let G="",z=h(P),K=h(E);if("object"==typeof(n=p)&&(f(n)||void 0!==n.src)){let e=f(p)?p.default:p;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,i=e.blurHeight,M=M||e.blurDataURL,G=e.src,!x){if(z||K){if(z&&!K){let t=z/e.width;K=Math.round(e.height*t)}else if(!z&&K){let t=K/e.height;z=Math.round(e.width*t)}}else z=e.width,K=e.height}}let H=!v&&("lazy"===w||void 0===w);(!(p="string"==typeof p?p:G)||p.startsWith("data:")||p.startsWith("blob:"))&&(y=!0,H=!1),Q.unoptimized&&(y=!0),L&&p.endsWith(".svg")&&!Q.dangerouslyAllowSVG&&(y=!0),v&&(k="high");let[W,J]=(0,a.useState)(!1),[V,Y]=(0,a.useState)(!1),Z=h(C),X=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:F}:{},V?{}:{color:"transparent"},O),$="blur"===B&&M&&!W?{backgroundSize:X.objectFit||"cover",backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,o.getImageBlurSvg)({widthInt:z,heightInt:K,blurWidth:r,blurHeight:i,blurDataURL:M,objectFit:X.objectFit})+'")'}:{},_=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:s,loader:o}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:u,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let a=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:a,kind:"x"}}(t,i,s),l=u.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:u.map((e,r)=>o({config:t,src:n,quality:a,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:o({config:t,src:n,quality:a,width:u[l]})}}({config:Q,src:p,unoptimized:y,width:z,quality:Z,sizes:b,loader:q}),ee=p,et=(0,a.useRef)(I);(0,a.useEffect)(()=>{et.current=I},[I]);let en=(0,a.useRef)(S);(0,a.useEffect)(()=>{en.current=S},[S]);let er={isLazy:H,imgAttributes:_,heightInt:K,widthInt:z,qualityInt:Z,className:A,imgStyle:X,blurStyle:$,loading:w,config:Q,fetchPriority:k,fill:x,unoptimized:y,placeholder:B,loader:q,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:J,setShowAltText:Y,...T};return a.default.createElement(a.default.Fragment,null,a.default.createElement(g,{...er,ref:t}),v?a.default.createElement(s.default,null,a.default.createElement("link",{key:"__nimg-"+_.src+_.srcSet+_.sizes,rel:"preload",as:"image",href:_.srcSet?void 0:_.src,imageSrcSet:_.srcSet,imageSizes:_.sizes,crossOrigin:T.crossOrigin,...m(k)})):null)}),y=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79779:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return a}});let r=n(80670),i=r._(n(37010)),a=i.default.createContext({})},23850:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},19126:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return l},default:function(){return p}});let r=n(80670),i=n(95294),a=i._(n(37010)),s=r._(n(18799)),o=n(79779),u=n(98712),c=n(23850);function l(e){void 0===e&&(e=!1);let t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(23237);let f=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:n}=t;return e.reduce(d,[]).reverse().concat(l(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let a=!0,s=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){s=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?a=!1:t.add(i.type);break;case"meta":for(let e=0,t=f.length;e{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:r})})}let p=function(e){let{children:t}=e,n=(0,a.useContext)(o.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return a.default.createElement(s.default,{reduceComponentsToState:h,headManager:r,inAmpMode:(0,c.isInAmpMode)(n)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40845:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:s}=e,o=r||t,u=i||n,c=a.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return o&&u?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+o+" "+u+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&i?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+a+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},13014:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let r=n(80670),i=r._(n(37010)),a=n(89703),s=i.default.createContext(a.imageConfigDefault)},89703:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},23884:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},18799:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(95294),i=r._(n(37010)),a=i.useLayoutEffect,s=i.useEffect;function o(e){let{headManager:t,reduceComponentsToState:n}=e;function r(){if(t&&t.mountedInstances){let r=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(r,e))}}return a(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),a(()=>(t&&(t._pendingUpdate=r),()=>{t&&(t._pendingUpdate=r)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},23237:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},20831:function(e,t,n){"use strict";/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=n(37010),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:a,_owner:o.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},33745:function(e,t,n){"use strict";e.exports=n(20831)},45466:function(e,t,n){e.exports=n(74774)},12080:function(e,t,n){"use strict";/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=n(37010),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,s=r.useEffect,o=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return o(function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})},[e,n,t]),s(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},99407:function(e,t,n){"use strict";/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=n(37010),i=n(34076),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!u){if(u=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(s=e,o=n)}var s,o,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]);var h=s(e,d[0],d[1]);return u(function(){f.hasValue=!0,f.value=h},[h]),l(h),h}},34076:function(e,t,n){"use strict";e.exports=n(12080)},65173:function(e,t,n){"use strict";e.exports=n(99407)},93874:function(e,t,n){"use strict";n.r(t),n.d(t,{bitGet:function(){return C},bitLen:function(){return A},bitMask:function(){return E},bitSet:function(){return P},bytesToHex:function(){return u},bytesToNumberBE:function(){return f},bytesToNumberLE:function(){return h},concatBytes:function(){return y},createHmacDrbg:function(){return I},ensureBytes:function(){return b},equalBytes:function(){return v},hexToBytes:function(){return d},hexToNumber:function(){return l},numberToBytesBE:function(){return p},numberToBytesLE:function(){return m},numberToHexUnpadded:function(){return c},numberToVarBytesBE:function(){return g},utf8ToBytes:function(){return w},validateObject:function(){return B}});/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let r=BigInt(0),i=BigInt(1),a=BigInt(2),s=e=>e instanceof Uint8Array,o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(e){if(!s(e))throw Error("Uint8Array expected");let t="";for(let n=0;ne+t.length,0)),n=0;return e.forEach(e=>{if(!s(e))throw Error("Uint8Array expected");t.set(e,n),n+=e.length}),t}function v(e,t){if(e.length!==t.length)return!1;for(let n=0;nr;e>>=i,t+=1);return t}function C(e,t){return e>>BigInt(t)&i}let P=(e,t,n)=>e|(n?i:r)<(a<new Uint8Array(e),O=e=>Uint8Array.from(e);function I(e,t,n){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof n)throw Error("hmacFn must be a function");let r=x(e),i=x(e),a=0,s=()=>{r.fill(1),i.fill(0),a=0},o=(...e)=>n(i,r,...e),u=(e=x())=>{i=o(O([0]),e),r=o(),0!==e.length&&(i=o(O([1]),e),r=o())},c=()=>{if(a++>=1e3)throw Error("drbg: tried 1000 values");let e=0,n=[];for(;e{let n;for(s(),u(e);!(n=t(c()));)u();return s(),n};return l}let S={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function B(e,t,n={}){let r=(t,n,r)=>{let i=S[n];if("function"!=typeof i)throw Error(`Invalid validator "${n}", expected function`);let a=e[t];if((!r||void 0!==a)&&!i(a,e))throw Error(`Invalid param ${String(t)}=${a} (${typeof a}), expected ${n}`)};for(let[e,n]of Object.entries(t))r(e,n,!1);for(let[e,t]of Object.entries(n))r(e,t,!0);return e}},28973:function(e,t,n){"use strict";function r(e){return"string"==typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"==typeof e?Number(e):e}n.d(t,{J:function(){return r}})},12242:function(e,t,n){"use strict";n.d(t,{wR:function(){return C},Ko:function(){return v},ac:function(){return y},U9:function(){return A},qx:function(){return w},ov:function(){return g}});var r=n(84658),i=n(85902),a=(n(71791),n(96676));n(84500),n(56792),n(45797),n(41145);var s=n(96091),o=(n(80127),n(56410),n(55370),n(14602)),u=n(97553),c=(n(63950),n(60213));function l(e,t){return e<56?[t+e]:[(0,c.O0)(e).length+t+55,...(0,c.O0)(e)]}var d=n(92966);let f=(0,i.ax)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),h=(0,i.ax)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});var p=Object.defineProperty,m=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t,n)=>(m(e,"symbol"!=typeof t?t+"":t,n),n),b=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},y=(e,t,n)=>(b(e,t,"read from private field"),n?n.call(e):t.get(e)),v=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},w=(e,t,n,r)=>(b(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),A=(e,t,n)=>(b(e,t,"access private method"),n),C=class extends r{constructor({chains:e=[h,f],options:t}){super(),g(this,"chains"),g(this,"options"),g(this,"storage"),this.chains=e,this.options=t}getBlockExplorerUrls(e){let{default:t,...n}=e.blockExplorers??{};if(t)return[t.url,...Object.values(n).map(e=>e.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}}},74031:function(e,t,n){"use strict";n.d(t,{_:function(){return f}});var r,i=n(18874),a=n(28973),s=n(12242),o=n(61867),u=n(45375),c=n(86175),l=n(93510),d=n(96676),f=class extends s.wR{constructor({chains:e,options:t}={}){let n={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;let e=window.ethereum;return e?.providers?e.providers[0]:e},...t};super({chains:e,options:n}),(0,s.ov)(this,"id","injected"),(0,s.ov)(this,"name"),(0,s.ov)(this,"ready"),(0,s.Ko)(this,r,void 0),(0,s.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`),(0,s.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,o.K)(e[0])})}),(0,s.ov)(this,"onChainChanged",e=>{let t=(0,a.J)(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})}),(0,s.ov)(this,"onDisconnect",async e=>{if(1013===e.code){let e=await this.getProvider();if(e){let e=await this.getAccount();if(e)return}}this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey)});let i=n.getProvider();if("string"==typeof n.name)this.name=n.name;else if(i){let e=function(e){if(!e)return"Injected";let t=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0;if(e.providers?.length){let n=new Set,r=1;for(let i of e.providers){let e=t(i);e||(e=`Unknown Wallet #${r}`,r+=1),n.add(e)}let i=[...n];return i.length?i:i[0]??"Injected"}return t(e)??"Injected"}(i);n.name?this.name=n.name(e):"string"==typeof e?this.name=e:this.name=e[0]}else this.name="Injected";this.ready=!!i}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new i.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),r=(0,o.K)(n[0]),a=await this.getChainId(),s=this.isChainUnsupported(a);if(e&&a!==e){let t=await this.switchChain(e);a=t.id,s=this.isChainUnsupported(a)}return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:r,chain:{id:a,unsupported:s}}}catch(e){if(this.isUserRejectedRequestError(e))throw new u.ab(e);if(-32002===e.code)throw new u.pT(e);throw e}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new i.N;let t=await e.request({method:"eth_accounts"});return(0,o.K)(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new i.N;return e.request({method:"eth_chainId"}).then(a.J)}async getProvider(){let e=this.options.getProvider();return e&&(0,s.qx)(this,r,e),(0,s.ac)(this,r)}async getWalletClient({chainId:e}={}){let[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,c.K)({account:n,chain:r,transport:(0,l.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let e=await this.getProvider();if(!e)throw new i.N;let t=await this.getAccount();return!!t}catch{return!1}}async switchChain(e){let t=await this.getProvider();if(!t)throw new i.N;let n=(0,d.eC)(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(t=>this.on("change",({chain:n})=>{n?.id===e&&t()}))]),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){let r=this.chains.find(t=>t.id===e);if(!r)throw new i.B({chainId:e,connectorId:this.id});if(4902===a.code||a?.data?.originalError?.code===4902)try{await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:r.name,nativeCurrency:r.nativeCurrency,rpcUrls:[r.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(r)}]});let i=await this.getChainId();if(i!==e)throw new u.ab(Error("User rejected switch after adding network."));return r}catch(e){throw new u.ab(e)}if(this.isUserRejectedRequestError(a))throw new u.ab(a);throw new u.x3(a)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){let a=await this.getProvider();if(!a)throw new i.N;return a.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}isUserRejectedRequestError(e){return 4001===e.code}};r=new WeakMap},18874:function(e,t,n){"use strict";n.d(t,{B:function(){return i},N:function(){return a}});var r=n(12242),i=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),(0,r.ov)(this,"name","ChainNotConfiguredForConnectorError")}},a=class extends Error{constructor(){super(...arguments),(0,r.ov)(this,"name","ConnectorNotFoundError"),(0,r.ov)(this,"message","Connector not found")}}},62205:function(e,t,n){"use strict";n.d(t,{QB:function(){return nm},$j:function(){return nj},_g:function(){return nM},o6:function(){return nI},vZ:function(){return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,i;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let a=Object.keys(t);if((r=a.length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[i];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}},zP:function(){return nR},EG:function(){return nz},RQ:function(){return n$},bh:function(){return nY},w6:function(){return nZ},Lk:function(){return nX},D0:function(){return nK},Hy:function(){return nH},uV:function(){return nN},jr:function(){return nT},wp:function(){return nO},If:function(){return nW},uH:function(){return nJ},QC:function(){return nV},pC:function(){return nU},fq:function(){return nQ}});var r,i,a,s,o,u=n(74031),c=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},l=(e,t,n)=>(c(e,t,"read from private field"),n?n.call(e):t.get(e)),d=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},f=(e,t,n,r)=>(c(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),h=(e,t,n)=>(c(e,t,"access private method"),n),p=n(79618),m=n(15358),g=n(49585),b=n(21181),y=n(85902),v=n(63950),w=n(96676),A=n(35492),C=n(80127),P=n(17248);function E(e,t){if(!(e instanceof C.G))return!1;let n=e.walk(e=>e instanceof P.Lu);return n instanceof P.Lu&&(!!(n.data?.errorName==="ResolverNotFound"||n.data?.errorName==="ResolverWildcardNotSupported"||n.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&n.reason===A.$[50])}var x=n(97553),O=n(60213),I=n(35465),S=n(68416);function B(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,S.v)(t)?t:null}function M(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,w.ci)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let r=B(n[e]),i=r?(0,O.O0)(r):(0,I.w)((0,O.qX)(n[e]),"bytes");t=(0,I.w)((0,x.zo)([t,i]),"bytes")}return(0,w.ci)(t)}function k(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,O.qX)(t).byteLength+2),r=0,i=t.split(".");for(let e=0;e255&&(t=(0,O.qX)(`[${(function(e){let t=new Uint8Array(32).fill(0);return e?B(e)||(0,I.w)((0,O.qX)(e)):(0,w.ci)(t)})(i[e]).slice(2)}]`)),n[r]=t.length,n.set(t,r+1),r+=t.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}var j=n(87849);function R(e,{abi:t,address:n,args:r,docsPath:i,functionName:a,sender:s}){let{code:o,data:u,message:c,shortMessage:l}=e instanceof P.VQ?e:e instanceof C.G?e.walk(e=>"data"in e)||e.walk():{},d=e;return e instanceof j.wb?d=new P.Dk({functionName:a}):3===o&&(u||c||l)&&(d=new P.Lu({abi:t,data:"object"==typeof u?u.data:u,functionName:a,message:l??c})),new P.uq(d,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:s})}var F=n(84001);async function D(e,{abi:t,address:n,args:r,functionName:i,...a}){let s=(0,b.R)({abi:t,args:r,functionName:i});try{let{data:o}=await (0,F.R)(e,{data:s,to:n,...a});return(0,g.k)({abi:t,args:r,functionName:i,data:o||"0x"})}catch(e){throw R(e,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:i})}}async function N(e,{blockNumber:t,blockTag:n,coinType:r,name:i,universalResolverAddress:a}){let s=a;if(!s){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");s=(0,y.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=(0,b.R)({abi:m.X$,functionName:"addr",...null!=r?{args:[M(i),BigInt(r)]}:{args:[M(i)]}}),o=await D(e,{address:s,abi:m.k3,functionName:"resolve",args:[(0,w.NC)(k(i)),a],blockNumber:t,blockTag:n});if("0x"===o[0])return null;let u=(0,v.f)((0,g.k)({abi:m.X$,args:null!=r?[M(i),BigInt(r)]:void 0,functionName:"addr",data:o[0]}));if("0x"===u||"0x00"===(0,v.f)(u))return null;return u}catch(e){if(E(e,"resolve"))return null;throw e}}class T extends C.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class U extends C.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class Q extends C.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class q extends C.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}let L=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,G=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,z=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,K=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function H(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function W(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function J({uri:e,gatewayUrls:t}){let n=z.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=W(t?.ipfs,"https://ipfs.io"),i=W(t?.arweave,"https://arweave.net"),a=e.match(L),{protocol:s,subpath:o,target:u,subtarget:c=""}=a?.groups||{},l="ipns:/"===s||"ipns/"===o,d="ipfs:/"===s||"ipfs/"===o||G.test(e);if(e.startsWith("http")&&!l&&!d){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((l||d)&&u)return{uri:`${r}/${l?"ipns":"ipfs"}/${u}${c}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&u)return{uri:`${i}/${u}${c||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(K,"");if(f.startsWith("e.json()),r=await Z({gatewayUrls:e,uri:V(n)});return r}catch{throw new Q({uri:t})}}async function Z({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=J({uri:t,gatewayUrls:e});if(r)return n;let i=await H(n);if(i)return n;throw new Q({uri:t})}async function X(e,{nft:t}){if("erc721"===t.namespace)return D(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return D(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new q({namespace:t.namespace})}async function $(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?_(e,{gatewayUrls:t,record:n}):Z({uri:n,gatewayUrls:t})}async function _(e,{gatewayUrls:t,record:n}){let r=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[n,r,i]=t.split("/"),[a,s]=n.split(":"),[o,u]=r.split(":");if(!a||"eip155"!==a.toLowerCase())throw new U({reason:"Only EIP-155 supported"});if(!s)throw new U({reason:"Chain ID not found"});if(!u)throw new U({reason:"Contract address not found"});if(!i)throw new U({reason:"Token ID not found"});if(!o)throw new U({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:o.toLowerCase(),contractAddress:u,tokenID:i}}(n),i=await X(e,{nft:r}),{uri:a,isOnChain:s,isEncoded:o}=J({uri:i,gatewayUrls:t});if(s&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){let e=o?atob(a.replace("data:application/json;base64,","")):a,n=JSON.parse(e);return Z({uri:V(n),gatewayUrls:t})}let u=r.tokenID;return"erc1155"===r.namespace&&(u=u.replace("0x","").padStart(64,"0")),Y({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,u)})}async function ee(e,{blockNumber:t,blockTag:n,name:r,key:i,universalResolverAddress:a}){let s=a;if(!s){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");s=(0,y.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=await D(e,{address:s,abi:m.k3,functionName:"resolve",args:[(0,w.NC)(k(r)),(0,b.R)({abi:m.nZ,functionName:"text",args:[M(r),i]})],blockNumber:t,blockTag:n});if("0x"===a[0])return null;let o=(0,g.k)({abi:m.nZ,functionName:"text",data:a[0]});return""===o?null:o}catch(e){if(E(e,"resolve"))return null;throw e}}async function et(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:i,universalResolverAddress:a}){let s=await ee(e,{blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:a});if(!s)return null;try{return await $(e,{record:s,gatewayUrls:r})}catch{return null}}async function en(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,y.LI)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}let s=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let t=await D(e,{address:a,abi:m.du,functionName:"reverse",args:[(0,w.NC)(k(s))],blockNumber:n,blockTag:r});return t[0]}catch(e){if(E(e,"reverse"))return null;throw e}}async function er(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,y.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[s]=await D(e,{address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,w.NC)(k(r))],blockNumber:t,blockTag:n});return s}function ei(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:i,transport:a})=>{"success"===i&&t===e&&(n[r]=a.request)}),t=>n[t]||e.request}async function ea(e){let t=ei(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}class es extends C.G{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var eo=n(38601);let eu=e=>"string"==typeof e?(0,eo.F)(e):(0,eo.J)(e);var ec=n(57427),el=n(99482),ed=n(34482);function ef({abi:e,eventName:t,args:n}){let r=e[0];if(t&&!(r=(0,ed.m)({abi:e,args:n,name:t})))throw new j.mv(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==r.type)throw new j.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let i=(0,el.t)(r),a=eu(i),s=[];if(n&&"inputs"in r){let e=r.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map(e=>n[e.name])??[]:[];t.length>0&&(s=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,i)=>eh({param:e,value:t[n][i]})):t[n]?eh({param:e,value:t[n]}):null)??[])}return[a,...s]}function eh({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,I.w)((0,O.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new es(e.type);return(0,ec.E)([e],[t])}async function ep(e,{address:t,abi:n,args:r,eventName:i,fromBlock:a,strict:s,toBlock:o}){let u=ei(e,{method:"eth_newFilter"}),c=i?ef({abi:n,args:r,eventName:i}):void 0,l=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof a?(0,w.eC)(a):a,toBlock:"bigint"==typeof o?(0,w.eC)(o):o,topics:c}]});return{abi:n,args:r,eventName:i,id:l,request:u(l),strict:s,type:"event"}}async function em(e,{address:t,args:n,event:r,events:i,fromBlock:a,strict:s,toBlock:o}={}){let u=i??(r?[r]:void 0),c=ei(e,{method:"eth_newFilter"}),l=[];u&&(l=[u.flatMap(e=>ef({abi:[e],eventName:e.name,args:n}))],r&&(l=l[0]));let d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof a?(0,w.eC)(a):a,toBlock:"bigint"==typeof o?(0,w.eC)(o):o,...l.length?{topics:l}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:c(d),strict:s,toBlock:o,type:"event"}}async function eg(e){let t=ei(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var eb=n(17e3),ey=n(59100);async function ev(e,{abi:t,address:n,args:r,functionName:i,...a}){let s=(0,b.R)({abi:t,args:r,functionName:i});try{let t=await (0,ey.Q)(e,{data:s,to:n,...a});return t}catch(s){let e=a.account?(0,eb.T)(a.account):void 0;throw R(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:e?.address})}}async function ew(e,{address:t,blockNumber:n,blockTag:r="latest"}){let i=n?(0,w.eC)(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,i||r]});return BigInt(a)}var eA=n(34726);let eC=new Map,eP=new Map;async function eE(e,{cacheKey:t,cacheTime:n=1/0}){let r=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,eC),r=t(e,eP);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(t),i=r.response.get();if(i&&n>0){let e=new Date().getTime()-i.created.getTime();if(e`blockNumber.${e}`;async function eO(e,{cacheTime:t=e.cacheTime,maxAge:n}={}){let r=await eE(()=>e.request({method:"eth_blockNumber"}),{cacheKey:ex(e.uid),cacheTime:n??t});return BigInt(r)}var eI=n(71791);async function eS(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let i;let a=void 0!==n?(0,w.eC)(n):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]}),(0,eI.ly)(i)}async function eB(e,{address:t,blockNumber:n,blockTag:r="latest"}){let i=void 0!==n?(0,w.eC)(n):void 0,a=await e.request({method:"eth_getCode",params:[t,i||r]});if("0x"!==a)return a}var eM=n(3223);async function ek(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){let a=n?(0,w.eC)(n):void 0,s=await e.request({method:"eth_feeHistory",params:[(0,w.eC)(t),a||r,i]});return{baseFeePerGas:s.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:s.gasUsedRatio,oldestBlock:BigInt(s.oldestBlock),reward:s.reward?.map(e=>e.map(e=>BigInt(e)))}}var ej=n(50305);let eR="/docs/contract/decodeEventLog";function eF({abi:e,data:t,strict:n,topics:r}){let i=n??!0,[a,...s]=r;if(!a)throw new j.FM({docsPath:eR});let o=e.find(e=>"event"===e.type&&a===eu((0,el.t)(e)));if(!(o&&"name"in o)||"event"!==o.type)throw new j.lC(a,{docsPath:eR});let{name:u,inputs:c}=o,l=c?.some(e=>!("name"in e&&e.name)),d=l?[]:{},f=c.filter(e=>"indexed"in e&&e.indexed);if(s.length>0)for(let e=0;e!("indexed"in e&&e.indexed));if(h.length>0){if(t&&"0x"!==t)try{let e=(0,ej.r)(h,t);if(e){if(l)d=[...d,...e];else for(let t=0;t0?d:void 0}}var eD=n(86319);async function eN(e,{filter:t}){let n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});return r.map(e=>{if("string"==typeof e)return e;try{let{eventName:r,args:i}="abi"in t&&t.abi?eF({abi:t.abi,data:e.data,topics:e.topics,strict:n}):{eventName:void 0,args:void 0};return(0,eD.U)(e,{args:i,eventName:r})}catch(i){let n,r;if(i instanceof j.SM||i instanceof j.Gy){if("strict"in t&&t.strict)return;n=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eD.U)(e,{args:r?[]:{},eventName:n})}}).filter(Boolean)}async function eT(e,{filter:t}){let n=t.strict??!1,r=await t.request({method:"eth_getFilterLogs",params:[t.id]});return r.map(e=>{try{let{eventName:r,args:i}="abi"in t&&t.abi?eF({abi:t.abi,data:e.data,topics:e.topics,strict:n}):{eventName:void 0,args:void 0};return(0,eD.U)(e,{args:i,eventName:r})}catch(i){let n,r;if(i instanceof j.SM||i instanceof j.Gy){if("strict"in t&&t.strict)return;n=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eD.U)(e,{args:r?[]:{},eventName:n})}}).filter(Boolean)}var eU=n(9216);async function eQ(e,{address:t,blockHash:n,fromBlock:r,toBlock:i,event:a,events:s,args:o,strict:u}={}){let c=u??!1,l=s??(a?[a]:void 0),d=[];return l&&(d=[l.flatMap(e=>ef({abi:[e],eventName:e.name,args:o}))],a&&(d=d[0])),(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof r?(0,w.eC)(r):r,toBlock:"bigint"==typeof i?(0,w.eC)(i):i}]})).map(e=>{try{let{eventName:t,args:n}=l?eF({abi:l,data:e.data,topics:e.topics,strict:c}):{eventName:void 0,args:void 0};return(0,eD.U)(e,{args:n,eventName:t})}catch(r){let t,n;if(r instanceof j.SM||r instanceof j.Gy){if(c)return;t=r.abiItem.name,n=r.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eD.U)(e,{args:n?[]:{},eventName:t})}}).filter(Boolean)}async function eq(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){let a=void 0!==n?(0,w.eC)(n):void 0,s=await e.request({method:"eth_getStorageAt",params:[t,i,a||r]});return s}var eL=n(92966),eG=n(56792);async function ez(e,{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a}){let s=r||"latest",o=void 0!==n?(0,w.eC)(n):void 0,u=null;if(i?u=await e.request({method:"eth_getTransactionByHash",params:[i]}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,w.eC)(a)]}):(o||s)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||s,(0,w.eC)(a)]})),!u)throw new eL.Bh({blockHash:t,blockNumber:n,blockTag:s,hash:i,index:a});let c=e.chain?.formatters?.transaction?.format||eG.Tr;return c(u)}async function eK(e,{hash:t,transactionReceipt:n}){let[r,i]=await Promise.all([eO(e),t?ez(e,{hash:t}):void 0]),a=n?.blockNumber||i?.blockNumber;return a?r-a+1n:0n}var eH=n(50996),eW=n(45797);async function eJ(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new eL.Yb({hash:t});let r=e.chain?.formatters?.transactionReceipt?.format||eW.f;return r(n)}async function eV(e,t){let{allowFailure:n=!0,batchSize:r,blockNumber:i,blockTag:a,contracts:s,multicallAddress:o}=t,u=r??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),c=o;if(!c){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");c=(0,y.LI)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let l=[[]],d=0,f=0;for(let e=0;e0&&f>u&&(d++,f=(e.length-2)/2,l[d]=[]),l[d]=[...l[d],{allowFailure:!0,callData:e,target:r}]}catch(s){let e=R(s,{abi:t,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:a});if(!n)throw e;l[d]=[...l[d],{allowFailure:!0,callData:"0x",target:r}]}}let h=await Promise.all(l.map(t=>D(e,{abi:m.F8,address:c,args:[t],blockNumber:i,blockTag:a,functionName:"aggregate3"})));return h.flat().map(({returnData:e,success:t},r)=>{let i=l.flat(),{callData:a}=i[r],{abi:o,address:u,functionName:c,args:d}=s[r];try{if("0x"===a)throw new j.wb;if(!t)throw new P.VQ({data:e});let r=(0,g.k)({abi:o,args:d,data:e,functionName:c});return n?{result:r,status:"success"}:r}catch(t){let e=R(t,{abi:o,address:u,args:d,docsPath:"/docs/contract/multicall",functionName:c});if(!n)throw e;return{error:e,result:void 0,status:"failure"}}})}async function eY(e,{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}){let o=s.account?(0,eb.T)(s.account):void 0,u=(0,b.R)({abi:t,args:r,functionName:a});try{let{data:o}=await (0,F.R)(e,{batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:n,...s}),c=(0,g.k)({abi:t,args:r,functionName:a,data:o||"0x"});return{result:c,request:{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}}}catch(e){throw R(e,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:o?.address})}}async function eZ(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}var eX=n(93874),e$=n(50291);async function e_(e,{address:t,hash:n,signature:r,...i}){let a=(0,S.v)(r)?r:(0,w.NC)(r);try{let{data:r}=await (0,F.R)(e,{data:(0,e$.w)({abi:m.$o,args:[t,n,a],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...i});return function(e,t){let n=(0,S.v)(e)?(0,O.O0)(e):e,r=(0,S.v)(t)?(0,O.O0)(t):t;return(0,eX.equalBytes)(n,r)}(r??"0x0","0x1")}catch(e){if(e instanceof P.cg)return!1;throw e}}async function e0(e,{address:t,message:n,signature:r,...i}){let a=function(e,t){let n="string"==typeof e?(0,O.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,O.O0)(e.raw),r=(0,O.qX)(`\x19Ethereum Signed Message: +${n.length}`);return(0,I.w)((0,x.zo)([r,n]),void 0)}(n);return e_(e,{address:t,hash:a,signature:r,...i})}var e1=n(59635);function e6({data:e,primaryType:t,types:n}){let r=function e({data:t,primaryType:n,types:r}){let i=[{type:"bytes32"}],a=[function({primaryType:e,types:t}){let n=(0,w.NC)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let i=t.match(/^\w*/u),a=i?.[0];if(r.has(a)||void 0===n[a])return r;for(let t of(r.add(a),n[a]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});r.delete(e);let i=[e,...Array.from(r).sort()];for(let e of i)n+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,I.w)(n)}({primaryType:n,types:r})];for(let s of r[n]){let[n,o]=function t({types:n,name:r,type:i,value:a}){if(void 0!==n[i])return[{type:"bytes32"},(0,I.w)(e({data:a,primaryType:i,types:n}))];if("bytes"===i){let e=a.length%2?"0":"";return a=`0x${e+a.slice(2)}`,[{type:"bytes32"},(0,I.w)(a)]}if("string"===i)return[{type:"bytes32"},(0,I.w)((0,w.NC)(a))];if(i.lastIndexOf("]")===i.length-1){let e=i.slice(0,i.lastIndexOf("[")),s=a.map(i=>t({name:r,type:e,types:n,value:i}));return[{type:"bytes32"},(0,I.w)((0,ec.E)(s.map(([e])=>e),s.map(([,e])=>e)))]}return[{type:i},a]}({types:r,name:s.name,type:s.type,value:t[s.name]});i.push(n),a.push(o)}return(0,ec.E)(i,a)}({data:e,primaryType:t,types:n});return(0,I.w)(r)}async function e2(e,{address:t,signature:n,message:r,primaryType:i,types:a,domain:s,...o}){let u=function({domain:e,message:t,primaryType:n,types:r}){let i=void 0===e?{}:e,a={EIP712Domain:["string"==typeof i?.name&&{name:"name",type:"string"},i?.version&&{name:"version",type:"string"},"number"==typeof i?.chainId&&{name:"chainId",type:"uint256"},i?.verifyingContract&&{name:"verifyingContract",type:"address"},i?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...r};(0,e1.i)({domain:i,message:t,primaryType:n,types:a});let s=["0x1901"];return i&&s.push(function({domain:e,types:t}){return e6({data:e,primaryType:"EIP712Domain",types:t})}({domain:i,types:a})),"EIP712Domain"!==n&&s.push(e6({data:t,primaryType:n,types:a})),(0,I.w)((0,x.zo)(s))}({message:r,primaryType:i,types:a,domain:s});return e_(e,{address:t,hash:u,signature:n,...o})}let e5=new Map,e8=new Map,e4=0;function e3(e,t,n){let r=++e4,i=()=>e5.get(e)||[],a=()=>{let t=i();e5.set(e,t.filter(e=>e.id!==r))},s=()=>{let t=e8.get(e);1===i().length&&t&&t(),a()},o=i();if(e5.set(e,[...o,{id:r,fns:t}]),o&&o.length>0)return s;let u={};for(let e in t)u[e]=(...t)=>{let n=i();0!==n.length&&n.forEach(n=>n.fns[e]?.(...t))};let c=n(u);return"function"==typeof c&&e8.set(e,c),s}var e9=n(89544),e7=n(1301),te=n(90739);function tt(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let i=!0,a=()=>i=!1,s=async()=>{let s;t&&(s=await e({unpoll:a}));let o=await n?.(s)??r;await (0,te.D)(o);let u=async()=>{i&&(await e({unpoll:a}),await (0,te.D)(r),u())};u()};return s(),a}function tn(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:i,poll:a,pollingInterval:s=e.pollingInterval}){let o,u,c;let l=void 0!==a?a:"webSocket"!==e.transport.type;return l?(()=>{let a=(0,e7.P)(["watchBlockNumber",e.uid,t,n,s]);return e3(a,{onBlockNumber:r,onError:i},r=>tt(async()=>{try{let t=await eO(e,{cacheTime:0});if(o){if(t===o)return;if(t-o>1&&n)for(let e=o+1n;eo)&&(r.onBlockNumber(t,o),o=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:s}))})():(u=!0,c=()=>u=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!u)return;let t=(0,eI.y_)(e.result?.number);r(t,o),o=t},onError(e){i?.(e)}});c=t,u||c()}catch(e){i?.(e)}})(),c)}async function tr(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:i=e.pollingInterval,timeout:a}){let s,o,u;let c=(0,e7.P)(["waitForTransactionReceipt",e.uid,n]),l=!1;return new Promise((d,f)=>{a&&setTimeout(()=>f(new eL.mc({hash:n})),a);let h=e3(c,{onReplaced:r,resolve:d,reject:f},r=>{let a=tn(e,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(l)return;let c=i,d=e=>{a(),e(),h()};try{if(u){if(c-u.blockNumber+1nr.resolve(u));return}if(s||(l=!0,await (0,e9.J)(async()=>{(s=await ez(e,{hash:n})).blockNumber&&(c=s.blockNumber)},{delay:({count:e})=>200*~~(1<0&&c-u.blockNumber+1nr.resolve(u))}catch(n){if(s&&(n instanceof eL.Bh||n instanceof eL.Yb)){o=s;let n=await (0,eA.Q)(e,{blockNumber:c,includeTransactions:!0}),i=n.transactions.find(({from:e,nonce:t})=>e===o.from&&t===o.nonce);if(!i||c-(u=await eJ(e,{hash:i.hash})).blockNumber+1n{r.onReplaced?.({reason:a,replacedTransaction:o,transaction:i,transactionReceipt:u}),r.resolve(u)})}else d(()=>r.reject(n))}}})})})}var ti=n(84500),ta=n(45375);function ts(e){return{call:t=>(0,F.R)(e,t),createBlockFilter:()=>ea(e),createContractEventFilter:t=>ep(e,t),createEventFilter:t=>em(e,t),createPendingTransactionFilter:()=>eg(e),estimateContractGas:t=>ev(e,t),estimateGas:t=>(0,ey.Q)(e,t),getBalance:t=>ew(e,t),getBlock:t=>(0,eA.Q)(e,t),getBlockNumber:t=>eO(e,t),getBlockTransactionCount:t=>eS(e,t),getBytecode:t=>eB(e,t),getChainId:()=>(0,eM.L)(e),getEnsAddress:t=>N(e,t),getEnsAvatar:t=>et(e,t),getEnsName:t=>en(e,t),getEnsResolver:t=>er(e,t),getEnsText:t=>ee(e,t),getFeeHistory:t=>ek(e,t),getFilterChanges:t=>eN(e,t),getFilterLogs:t=>eT(e,t),getGasPrice:()=>(0,eU.o)(e),getLogs:t=>eQ(e,t),getStorageAt:t=>eq(e,t),getTransaction:t=>ez(e,t),getTransactionConfirmations:t=>eK(e,t),getTransactionCount:t=>(0,eH.K)(e,t),getTransactionReceipt:t=>eJ(e,t),multicall:t=>eV(e,t),readContract:t=>D(e,t),simulateContract:t=>eY(e,t),verifyMessage:t=>e0(e,t),verifyTypedData:t=>e2(e,t),uninstallFilter:t=>eZ(e,t),waitForTransactionReceipt:t=>tr(e,t),watchBlocks:t=>(function(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:i,onError:a,includeTransactions:s,poll:o,pollingInterval:u=e.pollingInterval}){let c,l,d;let f=void 0!==o?o:"webSocket"!==e.transport.type,h=s??!1;return f?(()=>{let s=(0,e7.P)(["watchBlocks",e.uid,n,r,h,u]);return e3(s,{onBlock:i,onError:a},i=>tt(async()=>{try{let r=await (0,eA.Q)(e,{blockTag:t,includeTransactions:h});if(r.number&&c?.number){if(r.number===c.number)return;if(r.number-c.number>1&&n)for(let t=c?.number+1n;tc.number)&&(i.onBlock(r,c),c=r)}catch(e){i.onError?.(e)}},{emitOnBegin:r,interval:u}))})():(l=!0,d=()=>l=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!l)return;let n=e.chain?.formatters?.block?.format||ti.Z,r=n(t.result);i(r,c),c=r},onError(e){a?.(e)}});d=t,l||d()}catch(e){a?.(e)}})(),d)})(e,t),watchBlockNumber:t=>tn(e,t),watchContractEvent:t=>(function(e,{abi:t,address:n,args:r,batch:i=!0,eventName:a,onError:s,onLogs:o,poll:u,pollingInterval:c=e.pollingInterval,strict:l}){let d,f;let h=void 0!==u?u:"webSocket"!==e.transport.type;return h?(()=>{let u=(0,e7.P)(["watchContractEvent",n,r,i,e.uid,a,c]),d=l??!1;return e3(u,{onLogs:o,onError:s},s=>{let o,u;let l=!1,f=tt(async()=>{if(!l){try{u=await ep(e,{abi:t,address:n,args:r,eventName:a,strict:d})}catch{}l=!0;return}try{let c;if(u)c=await eN(e,{filter:u});else{let i=await eO(e);c=o&&o!==i?await eQ(e,{address:n,args:r,fromBlock:o+1n,toBlock:i,event:(0,ed.m)({abi:t,name:a})}):[],o=i}if(0===c.length)return;i?s.onLogs(c):c.forEach(e=>s.onLogs([e]))}catch(e){u&&e instanceof ta.yR&&(l=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await eZ(e,{filter:u}),f()}})})():(d=!0,f=()=>d=!1,(async()=>{try{let i=a?ef({abi:t,eventName:a,args:r}):[],{unsubscribe:u}=await e.transport.subscribe({params:["logs",{address:n,topics:i}],onData(e){if(!d)return;let n=e.result;try{let{eventName:e,args:r}=eF({abi:t,data:n.data,topics:n.topics,strict:l}),i=(0,eD.U)(n,{args:r,eventName:e});o([i])}catch(i){let e,t;if(i instanceof j.SM||i instanceof j.Gy){if(l)return;e=i.abiItem.name,t=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,eD.U)(n,{args:t?[]:{},eventName:e});o([r])}},onError(e){s?.(e)}});f=u,d||f()}catch(e){s?.(e)}})(),f)})(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:i,events:a,onError:s,onLogs:o,poll:u,pollingInterval:c=e.pollingInterval,strict:l}){let d,f;let h=void 0!==u?u:"webSocket"!==e.transport.type,p=l??!1;return h?(()=>{let u=(0,e7.P)(["watchEvent",t,n,r,e.uid,i,c]);return e3(u,{onLogs:o,onError:s},s=>{let o,u;let l=!1,d=tt(async()=>{if(!l){try{u=await em(e,{address:t,args:n,event:i,events:a,strict:p})}catch{}l=!0;return}try{let c;if(u)c=await eN(e,{filter:u});else{let r=await eO(e);c=o&&o!==r?await eQ(e,{address:t,args:n,event:i,events:a,fromBlock:o+1n,toBlock:r}):[],o=r}if(0===c.length)return;r?s.onLogs(c):c.forEach(e=>s.onLogs([e]))}catch(e){u&&e instanceof ta.yR&&(l=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await eZ(e,{filter:u}),d()}})})():(d=!0,f=()=>d=!1,(async()=>{try{let r=a??(i?[i]:void 0),u=[];r&&(u=[r.flatMap(e=>ef({abi:[e],eventName:e.name,args:n}))],i&&(u=u[0]));let{unsubscribe:c}=await e.transport.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!d)return;let t=e.result;try{let{eventName:e,args:n}=eF({abi:r,data:t.data,topics:t.topics,strict:p}),i=(0,eD.U)(t,{args:n,eventName:e});o([i])}catch(i){let e,n;if(i instanceof j.SM||i instanceof j.Gy){if(l)return;e=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,eD.U)(t,{args:n?[]:{},eventName:e});o([r])}},onError(e){s?.(e)}});f=c,d||f()}catch(e){s?.(e)}})(),f)})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:a=e.pollingInterval}){let s,o;let u=void 0!==i?i:"webSocket"!==e.transport.type;return u?(()=>{let i=(0,e7.P)(["watchPendingTransactions",e.uid,t,a]);return e3(i,{onTransactions:r,onError:n},n=>{let r;let i=tt(async()=>{try{if(!r)try{r=await eg(e);return}catch(e){throw i(),e}let a=await eN(e,{filter:r});if(0===a.length)return;t?n.onTransactions(a):a.forEach(e=>n.onTransactions([e]))}catch(e){n.onError?.(e)}},{emitOnBegin:!0,interval:a});return async()=>{r&&await eZ(e,{filter:r}),i()}})})():(s=!0,o=()=>s=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!s)return;let t=e.result;r([t])},onError(e){n?.(e)}});o=t,s||o()}catch(e){n?.(e)}})(),o)})(e,t)}}function to(e){let{key:t="public",name:n="Public Client"}=e,r=(0,p.e)({...e,key:t,name:n,type:"publicClient"});return r.extend(ts)}var tu=n(77133),tc=n(67494);function tl(e,t={}){let{key:n="fallback",name:r="Fallback",rank:i=!1,retryCount:a,retryDelay:s}=t;return({chain:t,pollingInterval:o=4e3,timeout:u})=>{let c=e,l=()=>{},d=(0,tc.q)({key:n,name:r,async request({method:e,params:n}){let r=async(i=0)=>{let a=c[i]({chain:t,retryCount:0,timeout:u});try{let t=await a.request({method:e,params:n});return l({method:e,params:n,response:t,transport:a,status:"success"}),t}catch(t){if(l({error:t,method:e,params:n,transport:a,status:"error"}),(0,tu.y)(t)||i===c.length-1)throw t;return r(i+1)}};return r()},retryCount:a,retryDelay:s,type:"fallback"},{onResponse:e=>l=e,transports:c.map(e=>e({chain:t,retryCount:0}))});if(i){let e="object"==typeof i?i:{};!function({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:i=1e3,transports:a,weights:s={}}){let{stability:o=.7,latency:u=.3}=s,c=[],l=async()=>{let s=await Promise.all(a.map(async t=>{let n,r;let a=t({chain:e,retryCount:0,timeout:i}),s=Date.now();try{await a.request({method:"net_listening"}),r=1}catch{r=0}finally{n=Date.now()}let o=n-s;return{latency:o,success:r}}));c.push(s),c.length>r&&c.shift();let d=Math.max(...c.map(e=>Math.max(...e.map(({latency:e})=>e)))),f=a.map((e,t)=>{let n=c.map(e=>e[t].latency),r=n.reduce((e,t)=>e+t,0)/n.length,i=c.map(e=>e[t].success),a=i.reduce((e,t)=>e+t,0)/i.length;return 0===a?[0,t]:[u*(1-r/d)+o*a,t]}).sort((e,t)=>t[0]-e[0]);n(f.map(([,e])=>a[e])),await (0,te.D)(t),l()};l()}({chain:t,interval:e.interval??o,onTransports:e=>c=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:c,weights:e.weights})}return d}}var td=n(81154);class tf extends C.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var th=n(53610);function tp(e,{errorInstance:t,timeout:n,signal:r}){return new Promise((i,a)=>{(async()=>{let s;try{let o=new AbortController;n>0&&(s=setTimeout(()=>{r?o.abort():a(t)},n)),i(await e({signal:o?.signal}))}catch(e){"AbortError"===e.name&&a(t),a(e)}finally{clearTimeout(s)}})()})}let tm=0;async function tg(e,{body:t,fetchOptions:n={},timeout:r=1e4}){let{headers:i,method:a,signal:s}=n;try{let o;let u=await tp(async({signal:o})=>{let u=await fetch(e,{...n,body:Array.isArray(t)?(0,e7.P)(t.map(e=>({jsonrpc:"2.0",id:tm++,...e}))):(0,e7.P)({jsonrpc:"2.0",id:tm++,...t}),headers:{...i,"Content-Type":"application/json"},method:a||"POST",signal:s||(r>0?o:void 0)});return u},{errorInstance:new td.W5({body:t,url:e}),timeout:r,signal:!0});if(o=u.headers.get("Content-Type")?.startsWith("application/json")?await u.json():await u.text(),!u.ok)throw new td.Gg({body:t,details:(0,e7.P)(o.error)||u.statusText,headers:u.headers,status:u.status,url:e});return o}catch(n){if(n instanceof td.Gg||n instanceof td.W5)throw n;throw new td.Gg({body:t,details:n.message,url:e})}}let tb=new Map;async function ty(e){let t=new URL(e),r=t.toString(),i=tb.get(r);if(i)return i;let{schedule:a}=(0,th.S)({id:r,fn:async()=>{let e=await n.e(667).then(n.bind(n,60667));e=e.default?.constructor?e.default:e.WebSocket;let a=new e(t),s=new Map,o=new Map,u=({data:e})=>{let t=JSON.parse(e),n="eth_subscription"===t.method,r=n?t.params.subscription:t.id,i=n?o:s,a=i.get(r);a&&a({data:e}),n||i.delete(r)},c=()=>{tb.delete(r),a.removeEventListener("close",c),a.removeEventListener("message",u)};return a.addEventListener("close",c),a.addEventListener("message",u),a.readyState===e.CONNECTING&&await new Promise((e,t)=>{a&&(a.onopen=e,a.onerror=t)}),i=Object.assign(a,{requests:s,subscriptions:o}),tb.set(r,i),[i]}}),[s,[o]]=await a();return o}async function tv(e,{body:t,timeout:n=1e4}){return tp(()=>new Promise(n=>tw.webSocket(e,{body:t,onResponse:n})),{errorInstance:new td.W5({body:t,url:e.url}),timeout:n})}let tw={http:tg,webSocket:function(e,{body:t,onResponse:n}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new td.c9({body:t,url:e.url,details:"Socket is closed."});let r=tm++,i=({data:a})=>{let s=JSON.parse(a);("number"!=typeof s.id||r===s.id)&&(n?.(s),"eth_subscribe"===t.method&&"string"==typeof s.result&&e.subscriptions.set(s.result,i),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(r,i),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:r})),e},webSocketAsync:tv};var tA=n(18874),tC=n(7995);let tP=e=>(t,n,r)=>{let i=r.subscribe;r.subscribe=(e,t,n)=>{let a=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());a=n=>{let r=e(n);if(!i(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return i(a)};let a=e(t,n,r);return a},tE=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>tE(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>tE(t)(e)}}},tx=(e,t)=>(n,r,i)=>{let a,s,o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=new Set,l=new Set;try{a=o.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=tE(o.serialize),f=()=>{let e;let t=o.partialize({...r()}),n=d({state:t,version:o.version}).then(e=>a.setItem(o.name,e)).catch(t=>{e=t});if(e)throw e;return n},h=i.setState;i.setState=(e,t)=>{h(e,t),f()};let p=e((...e)=>{n(...e),f()},r,i),m=()=>{var e;if(!a)return;u=!1,c.forEach(e=>e(r()));let t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return tE(a.getItem.bind(a))(o.name).then(e=>{if(e)return o.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(s=o.merge(e,null!=(t=r())?t:p),!0),f()}).then(()=>{null==t||t(s,void 0),u=!0,l.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),s||p},tO=(e,t)=>(n,r,i)=>{let a,s={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(r=n.getItem(e))?r:null;return a instanceof Promise?a.then(i):i(a)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,u=new Set,c=new Set,l=s.storage;if(!l)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=s.partialize({...r()});return l.setItem(s.name,{state:e,version:s.version})},f=i.setState;i.setState=(e,t)=>{f(e,t),d()};let h=e((...e)=>{n(...e),d()},r,i),p=()=>{var e,t;if(!l)return;o=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:h)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=r())?e:h))||void 0;return tE(l.getItem.bind(l))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return e.state;if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(a=s.merge(e,null!=(t=r())?t:h),!0),d()}).then(()=>{null==i||i(a,void 0),a=r(),o=!0,c.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},s.skipHydration||p(),a||h},tI=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),tx(e,t)):tO(e,t),tS=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a=e=>(n.add(e),()=>n.delete(e)),s=()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()},o={setState:r,getState:i,subscribe:a,destroy:s};return t=e(r,i,o),o},tB=e=>e?tS(e):tS;var tM=n(23935);function tk(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r>--u&1}let d=2147483648-1,f=0;for(let e=0;e<31;e++)f=f<<1|l();let h=[],p=0,m=2147483648;for(;;){let e=Math.floor(((f-p+1)*i-1)/m),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e>>1|l(),s=s<<1^1073741824,o=(1073741824^o)<<1|1073741825;p=s,m=1+o-s}let g=r-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return g+256+(e[o++]<<8|e[o++]);case 1:return g+e[o++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,n)=>t[e.charCodeAt(0)]=n);let n=e.length,r=new Uint8Array(6*n>>3);for(let i=0,a=0,s=0,o=0;i=8&&(r[a++]=o>>(s-=8));return r}(e)),n=0,()=>t[n++]}function tF(e,t=0){let n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let e=0;e{let t=tF(e);if(t.length)return t})}function tN(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(function(e,t){let n=1+t(),r=t(),i=tT(t);return tU(i.length,1+e,t).flatMap((e,t)=>{let[a,...s]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*r;return[a+t*n,s.map(e=>e+i)]})})}(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(tU(1+e(),1+n,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function tT(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function tU(e,t,n){let r=Array(e).fill().map(()=>[]);for(let i=0;i>1:r>>1}return n})(e,n).forEach((e,t)=>r[t].push(e));return r}var tQ=tR("AEgSbwjEDVYByQKaAQsBOQDpATQAngDUAHsAoABoANQAagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXAA0ADgAWAA8AFAAVBFsF1QEXE0o3xAXUALIArkABaACmAgPGAK6AMDAwMAE/qAYK7P4HQAblMgVYBVkAPSw5Afa3EgfJwgAPA8meNALGCjACjqIChtk/j2+KAsXMAoPzASDgCgDyrgFCAi6OCkCQAOQA4woWABjVuskNDD6eBBx4AP4COhi+D+wKBirqBgSCaA0cBy4ArABqku+mnIAAXAaUJAbqABwAPAyUFvyp/Mo8INAIvCoDshQ8APcubKQAon4ZABgEJtgXAR4AuhnOBPsKIE04CZgJiR8cVlpM5INDABQADQAWAA9sVQAiAA8ASO8W2T30OVnKluYvChEeX05ZPe0AFAANABYAD2wgXUCYAMPsABwAOgzGFryp/AHauQVcBeMC0KACxLEKTR2kZhR0Gm5M9gC8DmgC4gAMLjSKF8qSAoF8ARMcAL4OaALiAAwuAUlQJpJMCwMt/AUpCthqGK4B2EQAciwSeAIyFiIDKCi6OGwAOuIB9iYAyA7MtgEcZIIAsgYABgCK1EoFHNZsGACoKNIBogAAAAAAKy4DnABoAQoaPu43dQQZGACrAcgCIgDgLBJ0OvRQsTOiKDVJBfsoBVoFWbC5BWo7XkITO1hCmHuUZmCh+QwUA8YIJvJ4JASkTAJUVAJ2HKwoAZCkpjZcA0YYBIRiCgDSBqxAMCQHKgI6XgBsAWIgcgCEHhoAlgFKuAAoahgBsMYDOC4iRFQBcFoGZgJmAPJKGAMqAgYASkIArABeAHQALLYGCPTwGo6AAAAKIgAqALQcSAHSAdwIDDKXeYHpAAsAEgA1AD4AOTR3etTBEGAQXQJNCkxtOxUMAq0PpwvmERYM0irM09kANKoH7ANUB+wDVANUB+wH7ANUB+wDVANUA1QDVBwL8BvUwRBgD0kEbgWPBYwE1wiEJkoRggcpCNNUDnQfHEgDRgD9IyZJHTuUMwwlQ0wNTQQH/TZDbKh9OQNIMaxU9pCjA8wyUDltAh5yEqEAKw90HTW2Tn96SHGhCkxPr7WASWNOaAK/Oqk/+QoiCZRvvHdPBj4QGCeiEPQMMAGyATgN6kvVBO4GOATGH3oZFg/KlZkIoi3aDOom4C6egFcj8iqABepL8TzaC0pRZQ9WC2IJ4DpggUsDHgEKIogK2g02CGoQ8ArGaA3iEUIHNgPSSZcAogb+Cw4dMhWyJg1iqQsGOXQG+BrzC4wmrBMmevkF0BoeBkoBJhr8AMwu5IWtWi5cGU9cBgALIiPEFKVQHQ0iQLR4RRoYBxIlpgKOQ21KhFEzHpAh8zw6DWMuEFF5B/I8AhlMC348m0aoRQsRzz6KPUUiRkwpBDJ8LCwniAnMD4IMtnxvAVYJHgmuDG4TLhEUN8IINgcWKpchJxIIHkaSYJcE9JwD8BPOAwgFPAk+BxADshwqEysVJgUKgSHUAvA20i6wAoxWfQEUBcgPIh/cEE1H3Q7mCJgCYgOAJegAKhUeABQimAhAYABcj9VTAi7ICMRqaSNxA2QU5F4RcAeODlQHpBwwFbwc3nDFXgiGBSigrAlYAXIJlgFcBOAIBjVYjJ0gPmdQi1UYmCBeQTxd+QIuDGIVnES6h3UCiA9oEhgBMgFwBzYM/gJ0EeoRaBCSCOiGATWyM/U6IgRMIYAgDgokA0xsywskJvYM9WYBoBJfAwk0OnfrZ6hgsyEX+gcWMsJBXSHuC49PygyZGr4YP1QrGeEHvAPwGvAn50FUBfwDoAAQOkoz6wS6C2YIiAk8AEYOoBQH1BhnCm6MzQEuiAG0lgNUjoACbIwGNAcIAGQIhAV24gAaAqQIoAACAMwDVAA2AqoHmgAWAII+AToDJCwBHuICjAOQCC7IAZIsAfAmBBjADBIA9DRuRwLDrgKAZ2afBdpVAosCRjIBSiIEAktETgOsbt4A2ABIBhDcRAESqEfIF+BAAdxsKADEAPgAAjIHAj4BygHwagC0AVwLLgmfsLIBSuYmAIAAEmgB1AKGANoAMgB87gFQAEoFVvYF0AJMRgEOLhUoVF4BuAMcATABCgB2BsiKosYEHARqB9ACEBgV3gLvKweyAyLcE8pCwgK921IAMhMKNQqkCqNgWF0wAy5vPU0ACx+lPsQ/SwVOO1A7VTtQO1U7UDtVO1A7VTtQO1UDlLzfvN8KaV9CYegMow3RRMU6RhPYYE5gLxPFLbQUvhXLJVMZOhq5JwIl4VUGDwEt0GYtCCk0che5ADwpZYM+Y4MeLQpIHORTjlT1LRgArkufM6wNqRsSRD0FRHXqYicWCwofAmR+AmI/WEqsWDcdAqH0AmiVAmYGAp+BOBgIAmY4AmYjBGsEfAN/EAN+jzkDOXQUOX86ICACbBoCMjM4BwJtxAJtq+yHMGRCKAFkANsA3gBHAgeVDIoA+wi/AAqyAncsAnafPAJ5SEACeLcaWdhFq0bwAnw8AnrFAn0GAnztR/1IemAhACgSSVVKWBIUSskC0P4C0MlLJAOITAOH40TCkS8C8p5dAAMDq0vLTCoiAMxNSU2sAos8AorVvhgEGkBkArQCjjQCjlk9lH4CjtYCjll1UbFTMgdS0VSCApP4ApMJAOYAGVUbVaxVzQMsGCmSgzLeeGNFODYCl5wC769YHqUAViIClowClnmZAKZZqVoGfkoAOAKWsgKWS1xBXM4CmcgCmWFcx10EFgKcmDm/OpoCnBMCn5gCnrWHABoMLicMAp3uAp6PALI6YTFh7AKe0AKgawGmAp6cHAKeS6JjxWQkIigCJ6wCJnsCoPgCoEnUAqYsAqXLAqf8AHoCp+9oeWiuAABGahlqzgKs4AKsqwKtZAKs/wJXGgJV2QKx3tQDH0tslAKyugoCsuUUbN1tYG1FXAMlygK2WTg8bo0DKUICuFsCuUQSArkndHAzcN4CvRYDLa8DMg4CvoVx/wMzbgK+F3Mfc0wCw8gCwwFzf3RIMkJ03QM8pAM8lwM9vALFeQLGRALGDYYCyGZOAshBAslMAskrAmSaAt3PeHZeeKt5IkvNAxigZv8CYfEZ8JUhewhej164DgLPaALPaSxIUM/wEJwAw6oCz3ABJucDTg9+SAIC3CQC24cC0kwDUlkDU1wA/gNViYCGPMgT6l1CcoLLg4oC2sQC2duEDYRGpzkDhqIALANkC4ZuVvYAUgLfYgLetXB0AuIs7REB8y0kAfSYAfLPhALr8ALpbXYC6vYC6uEA9kQBtgLuhgLrmZanlwAC7jwDhd2YdnDdcZ4C8wAAZgOOE5mQAvcQA5FrA5KEAveVAvnWAvhjmhmaqLg0mxsDnYAC/vcBGAA2nxmfsAMFigOmZwOm1gDOwgMGZ6GFogIGAwxGAQwBHAdqBl62ZAIAuARovA6IHrAKABRyNgAgAzASSgOGfAFgJB4AjOwAHgDmoAScjgi0BhygwgCoBRK86h4+PxZ5BWk4P0EsQiJCtV9yEl+9AJbGBTMAkE0am7o7J2AzErrQDjAYxxiKyfcFWAVZBVgFWQVkBVkFWAVZBVgFWQVYBVkFWAVZRxYI2IZoAwMDCmVe6iwEygOyBjC8vAC8BKi8AOhBKhazBUc+aj5xQkBCt192OF/pAFgSM6wAjP/MbMv9puhGez4nJAUsFyg3Nn5u32vB8hnDLGoBbNdvMRgFYAVrycLJuQjQSlwBAQEKfV5+jL8AND+CAAQW0gbmriQGAIzEDAMCDgDlZh4+JSBLQrJCvUI5JF8oYDcoOSQJwj4KRT9EPnk+gj5xPnICikK9SkM8X8xPUGtOCy1sVTBrDG8gX+E0OxwJaJwKYyQsPR4nQqxCvSzMAsv9X8oPIC8KCQoAACN+nt9rOy5LGMmsya0JZsLMzQphQWAP5hCkEgCTjh5GQiYbqm06zjkKND9EPnFCQBwICx5NSG1cLS5a4rwTCn7uHixCQBxeCUsKDzRVREM4BTtEnC0KghwuQkAb9glUIyQZMTIBBo9i8F8KcmTKYAxgLiRvAERgGjoDHB9gtAcDbBFmT2BOEgIAZOhgFmCWYH5gtGBMYJJpFhgGtg/cVqq8WwtDF6wBvCzOwgMgFgEdBB8BegJtMDGWU4EBiwq5SBsA5SR0jwvLDqdN6wGcAoidUAVBYAD4AD4LATUXWHsMpg0lILuwSABQDTUAFhO4NVUC0wxLZhEcANlPBnYECx9bADIAtwKbKAsWcKwzOaAaAVwBhwn9A9ruEAarBksGugAey1aqWwq7YhOKCy1ADrwBvAEjA0hbKSkpIR8gIi0TJwciDY4AVQJvWJFKlgJvIA9ySAHUdRDPUiEaqrFN6wcSBU1gAPgAPgsBewAHJW0LiAymOTEuyLBXDgwAYL0MAGRKaFAiIhzAADIAtwKbKC08D88CkRh8ULxYyXRzjtilnA72mhU+G+0S2hIHDxwByAk7EJQGESwNNwwAPAC0zwEDAKUA4gCbizAAFQBcG8cvbXcrDsIRAzwlRNTiHR8MG34CfATCC6vxbQA4Oi4Opzkuz6IdB7wKABA7Ls8SGgB9rNsdD7wbSBzOoncfAT4qYB0C7KAJBE3z5R9mDL0M+wg9Cj8ABcELPgJMDbwIvQ09CT0KvS7PoisOvAaYAhwPjBriBBwLvBY8AKELPBC8BRihe90AO2wMPQACpwm9BRzR9QYFB2/LBnwAB7wSXBISvQECAOsCAAB1FVwHFswV/HAXvBg8AC68AuyovAAevAJWISuAAAG8AALkFT0VvCvso7zJqDwEAp8nTAACXADn3hm8CaVcD7/FAPUafAiiBQv/cQDfvKe8GNwavKOMeXMG/KmchAASvAcbDAADlABtvAcAC7ynPAIaPLsIopzLDvwHwak8AOF8L7dtvwNJAAPsABW8AAb8AAm8AGmMABq8AA68Axi8jmoV/AABXAAObAAuTB8ABrwAF7wIIgANSwC6vCcAA7wADpwq7ACyWwAcHAAbvAAB7AqiAAXHCxYV3AAHnABCvAEDAGm8AAt8AB28AAi8CaIABcsAbqAZ1gCSCCIABcsAATwAB9wAHZwIIgAGmwAJfAAbLABtHADmvIEACFwACDwAFLwAaPwJIgAGywDjjAAJPAuiDsX7YAAHPABunUBJAEgACrwFAAM8AAmuAzgABxwAGXwAAgym/AAKHAAKPAAJ/KfsBrwACRwAAwwAEDwBABQ8ABFsAA+MAA3sAA28ABkMBxYcABU8AG6cFrQBvAC7ABM8BABpLAsA4UwAAjwABFMAF3wFHAAG0QAYvB8BfClTADpGALAJBw4McwApK3EBpQYIXwJtJA0ACghwTG1gK4oggRVjLjcDogq1AALZABcC/ARvAXdzSFMVIgNQAhY/AS0GBHRHvnxTe0EAKgAyAvwAVAvcAHyRLQEsAHfmDhIzRwJLAFgGAAJRAQiLzQB5PAQhpgBbANcWAJZpOCCMAM5ssgDQ1RcJw3Z0HBlXHgrSAYmRrCNUVE5JEz3DivoAgB04QSos4RKYUABzASosMSlDGhADMVYE+MbvAExm3QBrAnICQBF7Osh4LzXWBhETIAUVCK6v/xPNACYAAQIbAIYAiQCONgDjALQA1QCdPQC7AKsApgChAOcAnwDTAJwA4AEBAPwAwAB6AFsAywDNAPwA1wDrAIkAogEqAOMA2ADVBAIIKzTT09PTtb/bzM/NQjEWAUsBVS5GAVMBYgFhAVQBRUpCRGcMAUwUBgkEMzcMBwAgDSQmKCs3OTk8PDw9Pg0/HVBQUFBSUlFSKFNUVlVVHFxgYF9hYCNlZ29ucXFxcXFxc3Nzc3Nzc3Nzc3N1dXZ1dFsAPesAQgCTAHEAKwBf8QCHAFAAUAAwAm/oAIT+8fEAXQCM6wCYAEgAWwBd+PipAH4AfgBiAE8AqgAdAK8AfAI5AjwA9QDgAPcA9wDhAPgA4gDiAOEA3wAoAnQBSgE5ATcBTQE3ATcBNwEyATEBMQExARUBURAAKgkBAEwYCxcEFhcPAIcAjwCfAEoAYxkCKgBvAGgAkAMOAyArAxpCP0gqAIoCSADAAlACnQC5Ao8CjwKPAo8CjwKPAoQCjwKPAo8CjwKPAo8CjgKOApECmQKQAo8CjwKNAo0CjQKNAosCjgJuAc0CkAKYAo8CjwKOF3oMAPcGA5gCWgIzGAFNETYC2xILLBQBRzgUTpIBdKU9AWJaAP4DOkgA/wCSKh4ZkGsAKmEAagAvAIoDlcyM8K+FWwa7LA/DEgKe1nUrCwQkWwGzAN5/gYB/gX+Cg4N/hIeFf4aJh4GIg4mDin+Lf4x/jYuOf49/kIORf5J/k3+Uf5WElomXg5h/AIMloQCEBDwEOQQ7BD4EPARCBD8EOgRABEIEQQQ9BD8EQgCkA4gAylIA0AINAPdbAPcBGgD3APUA9QD2APXVhSRmvwD3APUA9QD2APUdAIpbAPcAigEaAPcAigLtAPcAitWFJGa/HQD4WwEaAPcA9wD1APUA9gD1APgA9QD1APYA9dWFJGa/HQCKWwEaAPcAigD3AIoC7QD3AIrVhSRmvx0CRAE3AksBOgJMwgOfAu0Dn9WFJGa/HQCKWwEaA58AigOfAIoC7QOfAIrVhSRmvx0EMQCKBDIAigeOMm4hLQCKAT9vBCQA/gDHWwMAVVv/FDMDAIoDPtkASgMAigMAl2dBtv/TrfLzakaPh3aztmIuZQrR3ER2n5Yo+qNR2jK/aP/V04UK1njIJXLgkab9PjOxyJDVbIN3R/FZLoZVl2kYFQIZ7V6LpRqGDt9OdDohnJKp5yX/HLj0voPpLrneDaN11t5W3sSM4ALscgSw8fyWLVkKa/cNcQmjYOgTLZUgOLi2F05g4TR0RfgZ4PBdntxdV3qvdxQt8DeaMMgjJMgwUxYN3tUNpUNx21AvwADDAIa0+raTWaoBXmShAl5AThpMi282o+WzOKMlxjHj7a+DI6AM6VI9w+xyh3Eyg/1XvPmbqjeg2MGXugHt8wW03DQMRTd5iqqOhjLvyOCcKtViGwAHVLyl86KqvxVX7MxSW8HLq6KCrLpB8SspAOHO9IuOwCh9poLoMEha9CHCxlRAXJNDobducWjqhFHqCkzjTM2V9CHslwq4iU19IxqhIFZMve15lDTiMVZIPdADXGxTqzSTv0dDWyk1ht430yvaYCy9qY0MQ3cC5c1uw4mHcTGkMHTAGC99TkNXFAiLQgw9ZWhwKJjGCe+J5FIaMpYhhyUnEgfrF3zEtzn40DdgCIJUJfZ0mo3eXsDwneJ8AYCr7Vx2eHFnt2H6ZEyAHs9JoQ4Lzh5zBoGOGwAz37NOPuqSNmZf51hBEovtpm2T1wI79OBWDyvCFYkONqAKGVYgIL0F+uxTcMLSPtFbiNDbBPFgip8MGDmLLHbSyGXdCMO6f7teiW9EEmorZ+75KzanZwvUySgjoUQBTfHlOIerJs6Y9wLlgDw18AB1ne0tZRNgGjcrqHbtubSUooEpy4hWpDzTSrmvqw0H9AoXQLolMt9eOM+l9RitBB1OBnrdC1XL4yLFyXqZSgZhv7FnnDEXLUeffb4nVDqYTLY6X7gHVaK4ZZlepja2Oe6OhLDI/Ve5SQTCmJdH3HJeb14cw99XsBQAlDy5s5kil2sGezZA3tFok2IsNja7QuFgM30Hff3NGSsSVFYZLOcTBOvlPx8vLhjJrSI7xrNMA/BOzpBIJrdR1+v+zw4RZ7ry6aq4/tFfvPQxQCPDsXlcRvIZYl+E5g3kJ+zLMZon0yElBvEOQTh6SaAdIO6BwdqJqfvgU+e8Y65FQhdiHkZMVt9/39N2jGd26J6cNjq8cQIyp6RonRPgVn2fl89uRDcQ27GacaN0MPrcNyRlbUWelKfDfyrNVVGBG5sjd3jXzTx06ywyzuWn5jbvEfPPCTbpClkgEu9oPLKICxU5HuDe3jA1XnvU85IYYhaEtOU1YVWYhEFsa4/TQj3rHdsU2da2eVbF8YjSI0m619/8bLMZu3xildwqM7zf1cjn4Whx0PSYXcY5bR7wEQfGC7CTOXwZdmsdTO8q3uGm7Rh/RfCWwpzBHCAaVfjxgibL5vUeL0pH6bzDmI9yCXKC/okkmbc28OJvI87L/bjFzpq0DHepw4kT1Od+fL7cyuFaRgfaUWB2++TCFvz11J0leEtrGkpccfX9z2LY39sph4PBHCjNOOkd0ybUm+ZzS8GkFbqMpq8uiX2yHpa0jllTLfGTDBMYR6FT5FWLLDPMkYxt1Q0eyMvxJWztDjy0m6VvZPvamrFXjHmPpU6WxrZqH6WW//I37RwvqPQhPz8I3RPuXAk1C94ZprQWm9iGM/KgiGDO6SV9sjp+Jmk4TBajMNJ5zzWZ1k1jrteQQBp9C2dOvmbIeeEME8y573Q8TgGe+ZCzutM45gYLBzYm2LNvgq2kebAbMpHRDSyh6dQ27GbsAAdCqQVVXWC1C+zpwBM2Lr4eqtobmmu1vJEDlIQR1iN8CUWpztq50z7FFQBn3SKViX6wSqzVQCoYvAjByjeSa+h1PRnYWvBinTDB9cHt4eqDsPS4jcD3FwXJKT0RQsl8EvslI2SFaz2OtmYLFV8FwgvWroZ3fKmh7btewX9tfL2upXsrsqpLJzpzNGyNlnuZyetg7DIOxQTMBR7dqlrTlZ6FWi1g4j1NSjA2j1Yd7fzTH6k9LxCyUCneAKYCU581bnvKih6KJTeTeCX4Zhme/QIz7w2o+AdSgtLAkdrLS9nfweYEqrMLsrGGSWXtgWamAWp6+x6GM/Z8jNw3BqPNQ39hrzYLECn3tPvh/LqKbRSCiDGauDKBBj/kGbpnM1Bb/my8hv4NWStclkwjfl57y4oNDgw1JAG9VOti3QVVoSziMEsSdfEjaCPIDb7SgpLXykQsM+nbqbt97I0mIlzWv0uqFobLMAq8Rd9pszUBKxFhBPwOjf//gVOz2r7URJ2OnpviCXv9iz3a4X/YLBYbXoYwxBv/Kq0a5s4utQHzoTerJ7PmFW/no/ZAsid/hRIV82tD+Qabh5F1ssIM8Ri3chu0PuPD3sSJRMjDoxLAbwUbroiPAz/V52e8s3DIixxlO7OrvhMj3qfzA0kKxzwicr5wJmZwJxTXgrwYsqhRvpgC2Nfdyd+TYYxJSZgk+gk2g9KyHSlwQVAyPtWWgvVGyVBqsU2LpDlLNosSAtolC1uBKt5pQZLhAxTjeGCWIC/HVpagc5rRwkgpCHKEsjA8d+scp8aiMewwQBhp5dYTV5t/Nvl+HbDMu8F3S0psPyZb1bSnqlHPFUnMQeQqSqwDBT23fJO9gO3aVaa1icrXU0PKwlMM5K+iL3ATcVq2fFWKk0irCTF4LDVDG4gUpkyplq6efcZS+WDR1woApjD18x+2JQR9oOXzuA7uy4b+/91WsJd/tSd1QcAH8PVPXApieA37B7YXPhDPH1azP3PKR+HfHmOoDYLeuKsIi/ssSsdYs62qJo14Hw1P2N/6zpr8F3FTWmJ4ysAVcl84Iv/tl///Z8FaAWbBQbyMNDZjrZ2JwdRjtd1jOeNumSodFtr4/Zf45iRJf/8HSW+KIB/+GlKu8Rv1BPLr/4duoL+kFPRqrstEr41gfJupoJRf4hcYDWX93FOcfEBiIivxtjtV8g7mvOReiamYWKE7vfPbv3v2L9Kwq3cIDFGLyhyfOGuf/9vA5muH6Pjg7B4SUj2ydDXra9fSBI+DrsNHA6l51wfHssJb+11TfNk7B8OleUe3Y+ZmHboMFHdv7FFP2cfISFyeAQR0sk/Xv62HBTdW4HmnGSLFk/cqyWVVFJkdIIa+4hos3JRHcqLoRKM5h2Qtk1RZtzISMtlXTfTqIc77YsCCgQD0r61jtxskCctwJOtjE/pL8wC4LBD4AZFjh2wzzFCrT/PNqW0/DeBbkfMfzVm9yy06WiF+1mTdNNEAytVtohBKg3brWd2VQa+aF+cQ0mW5CvbwOlWCT07liX226PjiVLwFCRs/Ax2/u+ZNPjrNFIWIPf5GjHyUKp60OeXe9F01f7IaPf/SDTvyDAf7LSWWejtiZcsqtWZjrdn6A2MqBwnSeKhrZOlUMmgMionmiCIvXqKZfmhGZ1MwD3uMF4n9KJcfWLA3cL5pq48tm5NDYNh3SS/TKUtmFSlQR89MR4+kxcqJgpGbhm9gXneDELkyqAN5nitmIzTscKeJRXqd64RiaOALR2d295NWwbjHRNG2AU5oR9OS2oJg/5CY6BFPc1JvD2Mxdhp2/MZdI8dLePxiP4KRIp8VXmqfg+jqd/RNG7GNuq1U2SiI4735Bdc0MVFx6mH5UOWEa5HuhYykd6t4M1gYLVS8m1B+9bUqi5DziQq7qT8d94cxB6AB4WqMCOF/zPPtRSZUUaMSsvHOWxGASufywTX8ogy6HgUf9p+Z30wUEosl8qgmwm6o2AV6nO9HKQjRHpN6SUegI5pvR61RLnUJ1lqCtmfcsRQutEizVpAaPXN7xMp5UQ5OSZK6tniCK9CpyMd7LjR6+MxfoMEDPpWdf2p2m5N3KO4QMxf+V7vGdYjemQczQ+m2MGIkFNYDMf0Yop2eSx81sP36WHUczqEhKysp2iJSYAvfgJjinKwToPvRKb+HBi+7cJ96S5ngfLOXaHAFRLkulo4TnXTFO51gX0TCCo4ZUHdbpdgkMEwUZAPjh6M+hA8DzycbtxAgH3uD6i0nN1aTiIuQ4BYCE9dEHHwAmINU+4YEWx4EC3OZwFGfYZMPLScVlb+BAAJeARUh+gdWA3/gRqCrf1jecgqeFf1MdzrrP4SVlGm5mMihSP+zYYksAB7O+SBPwNQqSNMiLnkviY/klwgcRmvqtCqeWeA0gjuir4CMZqmw/ntP6M+l0pdN8/P9xI53aP7x/zavJbbKOz8VzO/nXxIr1tjparMnqd6iWdByHKw4lF4p/u57Yv07WeZPDnRl7wgmDVZZ44fQsjdYO/gmXQ+940PRGst8UMQApFC4OOV22e4N+lVOPyFLAOj4t8R3PFw/FjbSWy0ELuAFReNkee8ORcBOT2NPDcs7OfpUmzvn/F9Czk9o9naMyVYy/j8I5qVFmQDFcptBp65J/+sJA3w/j6y/eqUkKxTsf0CZjtNdRSBEmJ2tmfgmJbqpcsSagk+Ul9qdyV+NnqFBIJZFCB1XwPvWGDBOjVUmpWGHsWA5uDuMgLUNKZ4vlq5qfzY1LnRhCc/mh5/EX+hzuGdDy5aYYx4BAdwTTeZHcZpl3X0YyuxZFWNE6wFNppYs3LcFJePOyfKZ8KYb7dmRyvDOcORLPH0sytC6mH1US3JVj6paYM1GEr+CUmyHRnabHPqLlh6Kl0/BWd3ebziDfvpRQpPoR7N+LkUeYWtQ6Rn5v5+NtNeBPs2+DKDlzEVR5aYbTVPrZekJsZ9UC9qtVcP99thVIt1GREnN8zXP8mBfzS+wKYym8fcW6KqrE702Zco+hFQAEIR7qimo7dd7wO8B7R+QZPTuCWm1UAwblDTyURSbd85P4Pz+wBpQyGPeEpsEvxxIZkKsyfSOUcfE3UqzMFwZKYijb7sOkzpou+tC4bPXey5GI1GUAg9c3vLwIwAhcdPHRsYvpAfzkZHWY20vWxxJO0lvKfj6sG2g/pJ1vd/X2EBZkyEjLN4nUZOpOO7MewyHCrxQK8d5aF7rCeQlFX+XksK6l6z971BPuJqwdjj68ULOj9ZTDdOLopMdOLL0PFSS792SXE/EC9EDnIXZGYhr52aQb+9b2zEdBSnpkxAdBUkwJDqGCpZk/HkRidjdp0zKv/Cm52EenmfeKX6HkLUJgMbTTxxIZkIeL/6xuAaAAHbA7mONVduTHNX/UJj1nJEaI7f3HlUyiqKn7VfBE+bdb4HWln1HPJx001Ulq1tOxFf8WZEARvq5Da1+pE7fPVxLntGACz3nkoLsKcPdUqdCwwiyWkmXTd5+bv3j7HaReRt3ESn783Ew3SWsvkEjKtbocNksbrLmV+GVZn1+Uneo35MT1/4r8fngQX5/ptORfgmWfF6KSB/ssJmUSijXxQqUpzkANEkSkYgYj560OOjJr6uqckFuO15TRNgABEwNDjus1V3q2huLPYERMCLXUNmJJpbMrUQsSO7Qnxta55TvPWL6gWmMOvFknqETzqzFVO8SVkovEdYatypLGmDy9VWfgAc0KyIChiOhbd7UlbAeVLPZyEDp4POXKBwN/KP5pT6Cyqs6yaI00vXMn1ubk9OWT9Q/O2t/C25qlnO/zO0xcBzpMBCAB8vsdsh3U8fnPX1XlPEWfaYJxKVaTUgfCESWl4CCkIyjE6iQ5JFcwU6S4/IH0/Agacp8d5Gzq2+GzPnJ7+sqk40mfFQpKrDbAKwLlr3ONEati2k/ycLMSUu7V/7BBkDlNyXoN9tvqXCbbMc4SSQXgC/DBUY9QjtrCtQ+susEomCq8xcNJNNMWCH31GtlTw2BdCXkJBjT+/QNWlBWwQ5SWCh1LdQ99QVii/DyTxjSR6rmdap3l3L3aiplQpPYlrzNm9er88fXd2+ao+YdUNjtqmxiVxmyYPzJxl67OokDcTezEGqldkGgPbRdXA+fGcuZVkembZByo7J1dMnkGNjwwCny+FNcVcWvWYL9mg8oF7jACVWI3bA64EXpdM8bSIEVIAs5JJH+LHXgnCsgcMGPZyAAVBncvbLiexzg9YozcytjPXVlAbQAC7Tc4S0C8QN4LlAGjj4pQAVWrwkaDoUYGxxvkCWKRRHkdzJB5zpREleBDL1oDKEvAqmkDibVC4kTqF89YO6laUjgtJPebBfzr16tg4t10GmN1sJ5vezk2sUOq8blCn5mPZyT3ltaDcddKupQjqusNM9wtFVD0ABzv17fZDn7GPT1nkCtdcgYejcK1qOcTGtPxnCX1rErEjVWCnEJv5HaOAUjgpiKQjUKkQi64D5g2COgwas8FcgIl0Pw95H9dWxE3QG0VbMNffh6BPlAojLDf4es2/5Xfq7hw5NGcON2g8Qsy2UQm94KddKyy3kdJxWgpNaEc15xcylbLC3vnT26u8qS90qc2MU8LdOJc5VPF5KnSpXIhnj1eJJ/jszjZ01oR6JDFJRoeTPO/wh4IPFbdG9KljuSzeuI92p8JF/bpgDE8wG86/W2EBKgPrmzdLijxssQn8mM44ky/KLGOJcrSwXIpZa/Z3v7W6HCRk7ewds99LTsUW1LbeJytw8Q/BFZVZyfO9BUHOCe2suuEkO8DU4fLX0IQSQ2TdOkKXDtPf3sNV9tYhYFueuPRhfQlEEy+aYM/MCz7diDNmFSswYYlZZPmKr2Q5AxLsSVEqqBtn6hVl1BCFOFExnqnIsmyY/NA8jXnDaNzr7Zv3hu+I1Mf/PJjk0gALN2G8ABzdf9FNvWHvZHhv6xIoDCXf964MxG92vGZtx/LYU5PeZqgly8tT5tGeQGeJzMMsJc5p+a5Rn2PtEhiRzo/5Owjy1n0Lzx3ev8GHQmeWb8vagG6O5Qk5nrZuQTiKODI4UqL0LLAusS2Ve7j1Ivdxquu1BR9Rc4QkOiUPwQXJv6du2E8i5pDhVoQpUhyMWGUT2O2YODIhjAfI71gxep5r5zAY7GBUZpy51hAw0pcCCrhOmU8Wp6ujQTdZQsCjtq6SHX8QAMNiPCIIkoxhHEZPgsBcOlP4aErJZPhF7qvx6gHrn8hEwPwYbx8YmT/n7lbcmTip1v8kgsrIjFTAlvLY4Nuil0KDmgz3svYs0ZJ3O3Is/vSx4xpxF1e2VAtZE8dJxGYEIhCSuPvCjP54l/NSNDnwlKvAW8mG+AQkgp7a87Igh26uKMFGD0PoPHTSvoWxiHuk+su8XkQiHIjeYKl/RdcOHpxhQH3zHCNE3aARm83Bl6zGxU/vMltlVPQhubcqhW4RYkl6uXk5JdP/QpzaKFpw2M8zvysv2qj7xaQECuu2akM0Cssj/uB9+wDR7uA6XOnLNaoczalHoMj33eiiu+DRaFsUmlmUZuh9bjDY4INMNSSAivSh03uJvny4Gj+D+neudoa7iJi7c4VFlZ/J5gUR82308zSNAt/ZroBXDWw0fV3eVPAn3aX0mtJabF6RsUZmL+Ehn+wn51/4QipMjD+6y64t7bjL6bjENan2prQ4h7++hBJ9NXvX8CUocJqMC937IasLzm5K0qwXeFMAimMHkEIQIQI2LrQ9sLBfXuyp66zWvlsh74GPv7Xpabj993pRNNDuFud5oIcn/92isbADXdpRPbjmbCNOrwRbxGZx2XmYNGMiV5kjF4IKyxCBvKier9U4uVoheCdmk83rp5G0PihAm2fAtczI4b9BWqX+nrZTrJX5kSwQddi93NQrXG+Cl3eBGNkM77VBsMpEolhXex1MVvMkZN9fG59GGbciH11FEXaY1MxrArovaSjE/lUUqBg2cZBNmiWbvzCHCPJ4RVGFK2dTbObM1m+gJyEX53fa7u3+TZpm74mNEzWbkVL4vjNwfL9uzRCu1cgbrNx5Yv5dDruNrIOgwIk+UZWwJfdbu/WHul6PMmRflVCIzd7B37Pgm/Up/NuCiQW7RXyafevN3AL6ycciCc4ZPlTRzEu+aURGlUBOJbUEsheX7PPyrrhdUt5JAG12EEEZpY/N3Vhbl5uLAfT0CbC2XmpnryFkxZmBTs5prvEeuf0bn73i3O82WTiQtJWEPLsBXnQmdnKhB06NbbhLtlTZYJMxDMJpFeajSNRDB2v61BMUHqXggUwRJ19m6p5zl51v11q34T74lTXdJURuV6+bg2D6qpfGnLy7KGLuLZngobM4pIouz4+n0/UzFKxDgLM4h+fUwKZozQ9UGrHjcif51Ruonz7oIVZ56xWtZS8z7u5zay6J2LD4gCYh2RXoBRLDKsUlZ80R8kmoxlJiL8aZCy2wCAonnucFxCLT1HKoMhbPKt34D97EXPPh0joO93iJVF1Uruew61Qoy3ZUVNX9uIJDt9AQWKLLo+mSzmTibyLHq0D6hhzpvgUgI6ekyVEL3FD+Fi5R3A8MRHPXspN1VyKkfRlC+OGiNgPC4NREZpFETgVmdXrQ2TxChuS3aY+Ndc7CiYv5+CmzfiqeZrWIQJW/C4RvjbGUoJFf1K6ZdR2xL/bG4kVq1+I4jQWX+26YUijpp+lpN7o5c6ZodXJCF56UkFGsqz44sIg8jrdWvbjRCxi2Bk0iyM3a7ecAV93zB6h1Ei38c0s6+8nrbkopArccGP8vntQe1bFeEh2nJIFOHX/k3/UHb5PtKGpnzbkmnRETMX+9X/QduLZWw/feklW/kH/JnzToJe9Kgu9Hct1UGbH5BPCLo4OOtQnZonW0xnyCcdtKyPQ/sbLiSTYJdSx4sJqWLMnfn6fIqPB3WAgk00J+fCOkomPHqtS67pf0mFmKoItYZUlJu6BihSZ8qve8+/X+LX1MhQXF95AshfUleCtmdn6l6QFXzLg2sgLn1oyVFuZecv7fzsIHzoRlAGp0gwYDOn1S4qabWvB5xUaE+Svw4KmjWtxdnuQbI32dw87D4N95u8qQRJTSQg0wLxOLkxSrPMLEn1UIhNKjAa9VLs3WLaXGrtCIt8bKY2AQP/ZdyRU6zT/E8qP2ltyBE2CCZPgWgEYDoJJO4n92y61ylNaSFXKohJhLjkfvYWm592539sIpmBNLlDo1bExFBfmHJJ0lFEiC/fj8v42OoMC9Mo3whIoWvyHfq6Uacqq55mzFf/EGC+NP/gHjhd6urc6R0hES27VXux7UY8CGKPohplWIZtTrFSaPWslCWy78E22Pw8fvReSUZx/txqLtHrFqg1DY/Eus6Iq1heZdrdcqE0/c971Bz1HW/XNXHsXpUIbI4kHdOfCc6T5zHZzvzQJB0ggMFL6IGPAilU9bj/ASdPk6fNvNtZqPuwEDhMBtBnhCexo6D6VAGIOPvJPPV523Y8R8a9vCqZbswSZKzOT1291BsUbmUWehtbb1fdRX9hiJKXvwr1QX6GjnZMgyMvnwOo2Dr24amr7FqEAbVeJAjRNOceM2EQ1Mna9fInqPJ5mh5X8CzT1aDOv08An0blz0fF5Gq4mS2cwq5glwIOlY5nznE8X4j/UdZ3FJsVIXte1JH0A7iibuPfazStM5O/Vo3KXIpXBeGORV0M9XDXFvsYZUHGvFCUubWzTw248EHE0cpQM2zNg6rjavreq3NHCAWsoZ7wvVy7l5gvtKRmIj1MnvfWEm0yFnGcuOq192350a5WefpfKCcX3Sn+AgHU+qnpstNtddbdVebagJU390lq9ko4aI9rqdaWXYG8tv5O/ZQHSqDRYHC6zfH10l5z++opso7aOSaIczlQ13iAzXvLdEu0V7kwNUZ1c8Y8aq7SeIEe5p902FlNkW8DnwHyueHchbK8vVFJfmr9mz7P8nUSccl1ULaoWMRSI1ls32kvlK0h46h3J25Yd9AzfcJbp9qYF/SEt3H5j69mMdcsNxZcAzT/A89ov3tglTX54y/EwjMfuoDoxPwLJDm5I7q6F9Kp469yNy1zSxz0N4HbRRBj9xFFuogvBspv7DXUNIsGxTINEQfmctb42XImWAODgARNo7dfcTqFKq6aTfivmvunLmzP9f8yLsJvXD3JbcPcDGNriMAcjzeDTNr65t8YB5tsnFDFLa0Uwmd2OvUdkLMX9TsAUYUfooSv47sw5J88j7CpahRjjO3/UhOXjTS39W5YZAel2KTbQd1h7INOw9P23GW7GDAe4agIUFHP48MZr7ubq0efFmmtwYMyk7D0r1oeG/CGOODgb9Ur+JMHxkwzPbtCX2ZnENQuI0RN5SyTIZuoY4XS9Rd/tPe3vNAZGSHM/YYwqs9xkkENx0O+eC2YVW1cwOJ3ckE890nbQeHLKlW15L0P0W2VliyYrfNr0nrIYddoRyGaCtj4OYd2MT7ebApqZOAQIaSHJM4mphhfjNjtnjg6YRyx9qM2FT3xOiYIMqXPFWdzhSgFF8ItocqVV09CmIoO8k6U/oJB7++wSX/YksxfPXHyjSgAGZOj1aKEq9fSvXBqtp2wu8/FxEf5AxapAD06pPGuLVUYLdgEzHR8wqRGYEwiUO9MyYbgswstuLYhwYFpSVKOdzAihZ9LuHtD598EGhINU9xc9xhL+QgTLAstmPIvvm2xyRw/WTUPXkP3ZHu6GyPmj5xFH9/QGpkglKXRVUBgVmLOJx8uZO2AstxQYocZH2JhORlxawj66BAXUEs7K/gPxINIRAFyK3WLuyq9oBTF9wEbnmCot82WjIg7CPNwYK3KrZMrKAz5yFszg4wCVLJVnIL8+OYA0xRDH8cHQjQUiQ2i1mr/be32k/3Xej9sdf3iuGvZHyLFSJvPSqz/wltnxumTJYKZsrWXtx/Rmu39jjV9lFaJttfFn57/No2h/unsJmMHbrnZ8csxkp5HQ4xR1s0HH+t3Iz82a3iQWTUDGq/+l2W3TUYLE8zNdL8Y+5oXaIH/Y2UUcX67cXeN4WvENZjz4+8q7vjhowOI3rSjFhGZ6KzwmU7+5nFV+kGWAZ5z2UWvzq0TK0pk1hPwAN4jbw//1CApRvIaIjhSGhioY6TUmsToek9cF9XjJdHvLPcyyCV3lbR5Jiz/ts46ay2F820VjTXvllElwrGzKcNSyvQlWDXdwrUINXmHorAM3fE19ngLZmgeUaCJLsSITf2VcfAOuWwX7mTPdP8Zb/04KqRniufCpwnDUk7sP0RX6cud/sanFMagnzKInSRVey0YzlVSOtA/AjrofmSH6RYbJQ8b4NDeTkIGc6247+Mnbez/qhJ9GAv9fGNFercPnnrf285Qgs+UqThLRgflcAKFuqWhLzZaR4QqvSwa3xe0LPkqj9xJWub195r7NrrR0e78FR+0mRBNMPsraqZctAUVAJfYKehTDV1MGGQSeDsOK9J3sbUuKRIS/WilX/64CBms9jCZocBlsBSZaIAjWm/SUZ8daWL2a/cJFyUOFqE3Epc2RWbtjNyPwOGpWtzu32kUooUqsJud7IV4E8rstUBXM7tGEtBx99x60g1duhyvxeKJSl8s5E34HTMmADT0836aEdg5Dv9rVyCz8i2REOmiz6wtIVFN0HsjAoN37SrY0bV1Ms8CRUILhvZvvRaDzoVCaSI0u8EPuTe4b7OPowgRGODl22UBBmHSTUY8e4DyL+Bc7bngo+2T8HtNvzyATSL5iJZgFPKpmUyZv54vVL90+/RQGATUmNKnrIvcJMYON9fl83naW5sf6hRkbbTC9RUEE6XADwjgA46wWfUQ+QWZl0J4PVTWAln/YfAz/SV3q3J9+yCYDleruoN5uoc/wT2f4YONGTb6zTGq3V+3JqzmCOjwebKln+fExVLN7sqtqfMnsKVXWbb2Ai5m3D/fCTgX7oKYzTZvj+m28XnDqPbXuP4MyWdmPezcesdrh7rCzA7BWdObiuyDEKjjzBbQ0qnuwjliz+b+j7aPMKlkXyIznV3tGzAfYwIbzGGt098oh4eq3ruDjdgHtjxfFCjHrjjRbHajoz/YOY4raojPFQ910GIlBV7hq47UDgpyajBxQUmD8NctiLV1rTSLAEsQDLTeRKcmPBMVMFF0SPBBhZ5oXoxtD3lMhuAQXmA+57OcciczVW9e9zwSIAHS+FJmvfXMJGF1dMBsIUMaPjvgaVqUc3p32qVCMQYFEiRLzlVSOGMCmv/HJIxAHe3mL/XnoZ1IkWLeRZfgyByjnDbbeRK5KL7bYHSVJZ9UFq+yCiNKeRUaYjgbC3hVUvfJAhy/QNl/JqLKVvGMk9ZcfyGidNeo/VTxK9vUpodzfQI9Z2eAre4nmrkzgxKSnT5IJ1D69oHuUS5hp7pK9IAWuNrAOtOH0mAuwCrY8mXAtVXUeaNK3OXr6PRvmWg4VQqFSy+a1GZfFYgdsJELG8N0kvqmzvwZ02Plf5fH9QTy6br0oY/IDsEA+GBf9pEVWCIuBCjsup3LDSDqI+5+0IKSUFr7A96A2f0FbcU9fqljdqvsd8sG55KcKloHIFZem2Wb6pCLXybnVSB0sjCXzdS8IKvE");let tq=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function tL(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function tG(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r>24&255}function tH(e){return 16777215&e}let tW=new Map(tD(tz).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),tJ=new Set(tF(tz)),tV=new Map,tY=new Map;for(let[e,t]of tN(tz)){if(!tJ.has(e)&&2==t.length){let[n,r]=t,i=tY.get(n);i||(i=new Map,tY.set(n,i)),i.set(r,e)}tV.set(e,t.reverse())}function tZ(e){return e>=44032&&e<55204}function tX(e){let t=[],n=[],r=!1;function i(e){let n=tW.get(e);n&&(r=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(tZ(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,a=e%28;i(4352+t),i(4449+n),a>0&&i(4519+a)}else{let e=tV.get(r);e?n.push(...e):i(r)}if(!n.length)break;r=n.pop()}if(r&&t.length>1){let e=tK(t[0]);for(let n=1;n0&&i>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),i=e;else{let a=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(tZ(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let n=tY.get(e);return n&&(n=n.get(t))?n:-1}}(r,s);a>=0?r=a:0==i&&0==e?(t.push(r),r=s):(n.push(s),i=e)}}return r>=0&&t.push(r,...n),t}(tX(e))}function t_(){return new Set(tF(tQ))}let t0=new Map(tN(tQ)),t1=t_(),t6=t_(),t2=new Set(tF(tQ).map(function(e){return this[e]},[...t6])),t5=t_();t_();let t8=tD(tQ);function t4(){return new Set([tF(tQ).map(e=>t8[e]),tF(tQ)].flat(2))}let t3=tQ(),t9=tT(e=>{let t=tT(tQ).map(e=>e+96);if(t.length){let n=e>=t3;t[0]-=32,t=tG(t),n&&(t=`Restricted[${t}]`);let r=t4(),i=[...r,...t4()].sort((e,t)=>e-t);return{N:t,P:r,M:!tQ(),R:n,V:new Set(i)}}}),t7=t_(),ne=new Map;for(let{V:e,M:t}of([...t7,...t_()].sort((e,t)=>e-t).map((e,t,n)=>{let r=tQ(),i=n[t]=r?n[t-r]:{V:[],M:new Map};i.V.push(e),t7.has(e)||ne.set(e,i)}),new Set(ne.values()))){let n=[];for(let t of e){let e=t9.filter(e=>e.V.has(t)),r=n.find(({G:t})=>e.some(e=>t.has(e)));r||(r={G:new Set,V:[]},n.push(r)),r.V.push(t),e.forEach(e=>r.G.add(e))}let r=n.flatMap(({G:e})=>[...e]);for(let{G:e,V:i}of n){let n=new Set(r.filter(t=>!e.has(t)));for(let e of i)t.set(e,n)}}let nt=new Set,nn=new Set;for(let e of t9)for(let t of e.V)(nt.has(t)?nn:nt).add(t);for(let e of nt)ne.has(e)||nn.has(e)||ne.set(e,1);let nr=new Set([...nt,...tX(nt).map(tH)]),ni=tF(tQ),na=function e(t){let n=tT(()=>{let t=tF(tQ).map(e=>ni[e]);if(t.length)return e(t)}).sort((e,t)=>t.Q.size-e.Q.size),r=tQ();return{B:n,V:r%3,F:1&(r=r/3|0),S:1&(r>>=1),C:2&r,Q:new Set(t)}}([]);class ns extends Array{get is_emoji(){return!0}}function no(e,t=tL){var n;let r=[];n=e[0],t6.has(n)&&r.push("◌");let i=0,a=e.length;for(let n=0;n0;)if(95!==e[--t])throw Error("underscore allowed only at start")}function nd(e){return Error(`disallowed character: ${nu(e)}`)}function nf(e,t){let n=nu(t),r=t9.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),Error(`illegal mixture: ${e.N} + ${n}`)}function nh(e){return Error(`illegal placement: ${e}`)}function np(e){var t;let n;return(n=0,t=e.split(".").map(e=>{let t,r=function(e){let t=[];for(let n=0,r=e.length;ne.Q.has(o))))break;if(i.S)r=o;else if(i.C&&o===r)break;a.push(o),i.F&&(a.push(65039),s>0&&65039==e[s-1]&&s--),i.V&&(n=function(e,t){let n=ns.from(e);return 2==t.V&&n.splice(1,1),n}(a,i),t&&t.push(...e.slice(s).reverse()),e.length=s)}return n}(e);if(i)r.length&&(n.push(t(r)),r=[]),n.push(i);else{let t=e.pop();if(nr.has(t))r.push(t);else{let e=t0.get(t);if(e)r.push(...e);else if(!t1.has(t))throw nd(t)}}}return r.length&&n.push(t(r)),n}(r,t$),a=n.length;if(a){let r=n[0],s=a>1||r.is_emoji;if(!s&&r.every(e=>e<128))t=r,nl(t),function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error("invalid label extension")}(t),e="ASCII";else if(s&&(i.emoji=!0,r=n.flatMap(e=>e.is_emoji?[]:e)),t=n.flatMap(e=>e.is_emoji?e.filter(e=>65039!=e):e),nl(t),r.length){if(t6.has(t[0]))throw nh("leading combining mark");for(let e=1;ee.V.has(n));if(!e.length){if(t===t9)throw nd(n);throw nf(t[0],n)}if(t=e,1==e.length)break}return t}(i);(function(e,t){let{V:n,M:r}=e;for(let r of t)if(!n.has(r))throw nf(e,r);if(r){let e=tX(t).map(tH);for(let t=1,n=e.length;t4)throw Error(`non-spacing marks: too many ${nc(no(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(s,r),function(e,t){let n;let r=[];for(let e of t){let t=ne.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(n=n?n.filter(e=>r.has(e)):[...r]).length)return}else r.push(e)}if(n){for(let t of n)if(r.every(e=>t.V.has(e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(s,i),e=s.N}else e="Emoji"}else throw Error("empty label");i.type=e}catch(e){i.error=e}return i.output=t,i})).map(({input:e,error:n,output:r})=>{if(n){let r=n.message;throw Error(1==t.length?r:`Invalid label ${nc(no(e))}: ${r}`)}return tG(r)}).join(".")}function nm(e,t,{batch:n={multicall:{wait:32}},pollingInterval:r=4e3,rank:i,retryCount:a,retryDelay:s,stallTimeout:o}={}){if(!e.length)throw Error("must have at least one chain");let u=[],c={},l={};for(let n of e){let e=!1;for(let r of t){let t=r(n);t&&(e=!0,u.some(({id:e})=>e===n.id)||(u=[...u,t.chain]),c[n.id]=[...c[n.id]||[],...t.rpcUrls.http],t.rpcUrls.webSocket&&(l[n.id]=[...l[n.id]||[],...t.rpcUrls.webSocket]))}if(!e)throw Error(`Could not find valid provider configuration for chain "${n.name}". + +You may need to add \`jsonRpcProvider\` to \`configureChains\` with the chain's RPC URLs. +Read more: https://wagmi.sh/core/providers/jsonRpc`)}return{chains:u,publicClient:({chainId:t})=>{let l=u.find(e=>e.id===t)??e[0],d=c[l.id];if(!d||!d[0])throw Error(`No providers configured for chain "${l.id}"`);let f=to({batch:n,chain:l,transport:tl(d.map(e=>(function(e,t={}){let{batch:n,fetchOptions:r,key:i="http",name:a="HTTP JSON-RPC",retryDelay:s}=t;return({chain:o,retryCount:u,timeout:c})=>{let{batchSize:l=1e3,wait:d=0}="object"==typeof n?n:{},f=t.retryCount??u,h=c??t.timeout??1e4,p=e||o?.rpcUrls.default.http[0];if(!p)throw new tf;return(0,tc.q)({key:i,name:a,async request({method:t,params:i}){let a={method:t,params:i},{schedule:s}=(0,th.S)({id:`${e}`,wait:d,shouldSplitBatch:e=>e.length>l,fn:e=>tw.http(p,{body:e,fetchOptions:r,timeout:h})}),o=async e=>n?s(e):[await tw.http(p,{body:e,fetchOptions:r,timeout:h})],[{error:u,result:c}]=await o(a);if(u)throw new td.bs({body:a,error:u,url:p});return c},retryCount:f,retryDelay:s,timeout:h,type:"http"},{url:e})}})(e,{timeout:o})),{rank:i,retryCount:a,retryDelay:s}),pollingInterval:r});return Object.assign(f,{chains:u})},webSocketPublicClient:({chainId:t})=>{let c=u.find(e=>e.id===t)??e[0],d=l[c.id];if(!d||!d[0])return;let f=to({batch:n,chain:c,transport:tl(d.map(e=>(function(e,t={}){let{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:i}=t;return({chain:a,retryCount:s,timeout:o})=>{let u=t.retryCount??s,c=o??t.timeout??1e4,l=e||a?.rpcUrls.default.webSocket?.[0];if(!l)throw new tf;return(0,tc.q)({key:n,name:r,async request({method:e,params:t}){let n={method:e,params:t},r=await ty(l),{error:i,result:a}=await tw.webSocketAsync(r,{body:n,timeout:c});if(i)throw new td.bs({body:n,error:i,url:l});return a},retryCount:u,retryDelay:i,timeout:c,type:"webSocket"},{getSocket:()=>ty(l),async subscribe({params:e,onData:t,onError:n}){let r=await ty(l),{result:i}=await new Promise((i,a)=>tw.webSocket(r,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){a(e.error),n?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>tw.webSocket(r,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}})(e,{timeout:o})),{rank:i,retryCount:a,retryDelay:s}),pollingInterval:r});return Object.assign(f,{chains:u})}}}var ng=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},nb=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},ny=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},nv=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}},nw=(e,{find:t,replace:n})=>e&&t(e)?n(e):"object"!=typeof e?e:Array.isArray(e)?e.map(e=>nw(e,{find:t,replace:n})):e instanceof Object?Object.entries(e).reduce((e,[r,i])=>({...e,[r]:nw(i,{find:t,replace:n})}),{}):e;function nA(e){let t=JSON.parse(e),n=nw(t,{find:e=>"string"==typeof e&&e.startsWith("#bigint."),replace:e=>BigInt(e.replace("#bigint.",""))});return n}function nC(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(tC.Bd[e])}function nP(e,t){return e.slice(0,t).join(".")||"."}function nE(e,t){let{length:n}=e;for(let r=0;r{let r="bigint"==typeof n?`#bigint.${n.toString()}`:n;return t?.(e,r)||r},r),n??void 0)}var nO={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function nI({deserialize:e=nA,key:t="wagmi",serialize:n=nx,storage:r}){return{...r,getItem:(n,i=null)=>{let a=r.getItem(`${t}.${n}`);try{return a?e(a):i}catch(e){return console.warn(e),i}},setItem:(e,i)=>{if(null===i)r.removeItem(`${t}.${e}`);else try{r.setItem(`${t}.${e}`,n(i))}catch(e){console.error(e)}},removeItem:e=>r.removeItem(`${t}.${e}`)}}var nS="store",nB=class{constructor({autoConnect:e=!1,connectors:t=[new u._],publicClient:n,storage:o=nI({storage:"undefined"!=typeof window?window.localStorage:nO}),logger:c={warn:console.warn},webSocketPublicClient:l}){let p;d(this,a),this.publicClients=new Map,this.webSocketPublicClients=new Map,d(this,r,void 0),d(this,i,void 0),this.args={autoConnect:e,connectors:t,logger:c,publicClient:n,storage:o,webSocketPublicClient:l};let m="disconnected";if(e)try{let e=o.getItem(nS),t=e?.state?.data;m=t?.account?"reconnecting":"connecting",p=t?.chain?.id}catch(e){}let g="function"==typeof t?t():t;g.forEach(e=>e.setStorage(o)),this.store=tB(tP(tI(()=>({connectors:g,publicClient:this.getPublicClient({chainId:p}),status:m,webSocketPublicClient:this.getWebSocketPublicClient({chainId:p})}),{name:nS,storage:o,partialize:t=>({...e&&{data:{account:t?.data?.account,chain:t?.data?.chain}},chains:t?.chains}),version:2}))),this.storage=o,f(this,i,o?.getItem("wallet")),h(this,a,s).call(this),e&&"undefined"!=typeof window&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){let t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),f(this,r,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(l(this,r))return;f(this,r,!0),this.setState(e=>({...e,status:e.data?.account?"reconnecting":"connecting"}));let e=l(this,i)?[...this.connectors].sort(e=>e.id===l(this,i)?-1:1):this.connectors,t=!1;for(let n of e){if(!n.ready||!n.isAuthorized)continue;let e=await n.isAuthorized();if(!e)continue;let r=await n.connect();this.setState(e=>({...e,connector:n,chains:n?.chains,data:r,status:"connected"})),t=!0;break}return t||this.setState(e=>({...e,data:void 0,status:"disconnected"})),f(this,r,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};let t="function"==typeof e?e():e;t.forEach(e=>e.setStorage(this.args.storage)),this.setState(e=>({...e,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&t?.chain.id===e||(t=this.publicClients.get(e??-1)))return t;let{publicClient:n}=this.args;return t="function"==typeof n?n({chainId:e}):n,this.publicClients.set(e??-1,t),t}setPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(e=>({...e,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&t?.chain.id===e||(t=this.webSocketPublicClients.get(e??-1)))return t;let{webSocketPublicClient:n}=this.args;return(t="function"==typeof n?n({chainId:e}):n)&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(e=>({...e,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){this.storage?.setItem("wallet",e)}};function nM(e){let t=new nB(e);return o=t,t}function nk(){if(!o)throw Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return o}async function nj({chainId:e,connector:t}){let n=nk(),r=n.connector;if(r&&t.id===r.id)throw new nb;try{n.setState(e=>({...e,status:"connecting"}));let r=await t.connect({chainId:e});return n.setLastUsedConnector(t.id),n.setState(e=>({...e,connector:t,chains:t?.chains,data:r,status:"connected"})),n.storage.setItem("connected",!0),{...r,connector:t}}catch(e){throw n.setState(e=>({...e,status:e.connector?"connected":"disconnected"})),e}}async function nR(){let e=nk();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}r=new WeakMap,i=new WeakMap,a=new WeakSet,s=function(){let e=e=>{this.setState(t=>({...t,data:{...t.data,...e}}))},t=()=>{this.clearState()},n=e=>{this.setState(t=>({...t,error:e}))};this.store.subscribe(({connector:e})=>e,(r,i)=>{i?.off?.("change",e),i?.off?.("disconnect",t),i?.off?.("error",n),r&&(r.on?.("change",e),r.on?.("disconnect",t),r.on?.("error",n))});let{publicClient:r,webSocketPublicClient:i}=this.args;("function"==typeof r||"function"==typeof i)&&this.store.subscribe(({data:e})=>e?.chain?.id,e=>{this.setState(t=>({...t,publicClient:this.getPublicClient({chainId:e}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))})};var nF=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],nD=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function nN({chainId:e}={}){let t=nk();return e&&t.getPublicClient({chainId:e})||t.publicClient}function nT({chainId:e}={}){let t=nk();return e&&t.getWebSocketPublicClient({chainId:e})||t.webSocketPublicClient}function nU(e,t){let n=nk(),r=async()=>t(nN(e)),i=n.subscribe(({publicClient:e})=>e,r);return i}function nQ(e,t){let n=nk(),r=async()=>t(nT(e)),i=n.subscribe(({webSocketPublicClient:e})=>e,r);return i}async function nq({chainId:e,contracts:t,blockNumber:n,blockTag:r,...i}){let a=nN({chainId:e});if(!a.chains)throw new ny;if(e&&a.chain.id!==e)throw new ng({chainId:e});return a.multicall({allowFailure:i.allowFailure??!0,blockNumber:n,blockTag:r,contracts:t})}async function nL({address:e,account:t,chainId:n,abi:r,args:i,functionName:a,blockNumber:s,blockTag:o}){let u=nN({chainId:n});return u.readContract({abi:r,address:e,account:t,functionName:a,args:i,blockNumber:s,blockTag:o})}async function nG({contracts:e,blockNumber:t,blockTag:n,...r}){let{allowFailure:i=!0}=r;try{let r=nN(),a=e.reduce((e,t,n)=>{let i=t.chainId??r.chain.id;return{...e,[i]:[...e[i]||[],{contract:t,index:n}]}},{}),s=(await Promise.all(Object.entries(a).map(([e,r])=>nq({allowFailure:i,chainId:parseInt(e),contracts:r.map(({contract:e})=>e),blockNumber:t,blockTag:n})))).flat(),o=Object.values(a).flatMap(e=>e.map(({index:e})=>e));return s.reduce((e,t,n)=>(e&&(e[o[n]]=t),e),[])}catch(a){if(a instanceof P.uq)throw a;let r=()=>e.map(e=>nL({...e,blockNumber:t,blockTag:n}));if(i)return(await Promise.allSettled(r())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(r())}}async function nz({address:e,chainId:t,formatUnits:n,token:r}){let i=nk(),a=nN({chainId:t});if(r){let i=async({abi:i})=>{let a={abi:i,address:r,chainId:t},[s,o,u]=await nG({allowFailure:!1,contracts:[{...a,functionName:"balanceOf",args:[e]},{...a,functionName:"decimals"},{...a,functionName:"symbol"}]});return{decimals:o,formatted:(0,tM.b)(s??"0",nC(n??o)),symbol:u,value:s}};try{return await i({abi:nF})}catch(e){if(e instanceof P.uq){let{symbol:e,...t}=await i({abi:nD});return{symbol:(0,eI.rR)((0,v.f)(e,{dir:"right"})),...t}}throw e}}let s=[...i.publicClient.chains||[],...i.chains??[]],o=await a.getBalance({address:e}),u=s.find(e=>e.id===a.chain.id);return{decimals:u?.nativeCurrency.decimals??18,formatted:(0,tM.b)(o??"0",nC(n??18)),symbol:u?.nativeCurrency.symbol??"ETH",value:o}}function nK(){let{data:e,connector:t,status:n}=nk();switch(n){case"connected":return{address:e?.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};case"reconnecting":return{address:e?.account,connector:t,isConnected:!!e?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:e?.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function nH(){let e=nk(),t=e.data?.chain?.id,n=e.chains??[],r=[...e.publicClient?.chains||[],...n].find(e=>e.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...r,...e.data?.chain,id:t}:void 0,chains:n}}async function nW({chainId:e}){let{connector:t}=nk();if(!t)throw new tA.N;if(!t.switchChain)throw new nv({connector:t});return t.switchChain(e)}function nJ(e,{selector:t=e=>e}={}){let n=nk(),r=()=>e(nK()),i=n.subscribe(({data:e,connector:n,status:r})=>t({address:e?.account,connector:n,status:r}),r,{equalityFn:tk});return i}function nV(e,{selector:t=e=>e}={}){let n=nk(),r=()=>e(nH()),i=n.subscribe(({data:e,chains:n})=>t({chainId:e?.chain?.id,chains:n}),r,{equalityFn:tk});return i}async function nY({chainId:e,name:t}){let n=nN({chainId:e}),r=await n.getEnsAddress({name:np(t)});try{if("0x0000000000000000000000000000000000000000"===r)return null;return r?(0,tj.K)(r):null}catch(e){return null}}async function nZ({name:e,chainId:t}){let n=nN({chainId:t}),r=await n.getEnsAvatar({name:np(e)});return r}async function nX({address:e,chainId:t}){let n=nN({chainId:t});return n.getEnsName({address:(0,tj.K)(e)})}async function n$({chainId:e}={}){let t=nN({chainId:e}),n=await t.getBlockNumber();return n}},17e3:function(e,t,n){"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:function(){return r}})},84001:function(e,t,n){"use strict";n.d(t,{R:function(){return b}});var r=n(17e3),i=n(15358),a=n(80127),s=n(56410),o=n(17248),u=n(49585),c=n(21181),l=n(85902),d=n(96676),f=n(5683),h=n(64435),p=n(41145),m=n(53610),g=n(98076);async function b(e,t){let{account:i,batch:u=!!e.batch?.multicall,blockNumber:c,blockTag:l="latest",accessList:m,data:b,gas:v,gasPrice:w,maxFeePerGas:A,maxPriorityFeePerGas:C,nonce:P,to:E,value:x,...O}=t,I=i?(0,r.T)(i):void 0;try{(0,g.F)(t);let n=c?(0,d.eC)(c):void 0,r=n||l,i=e.chain?.formatters?.transactionRequest?.format||p.t,a=i({...(0,h.K)(O,{format:i}),from:I?.address,accessList:m,data:b,gas:v,gasPrice:w,maxFeePerGas:A,maxPriorityFeePerGas:C,nonce:P,to:E,value:x});if(u&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:a}))try{return await y(e,{...a,blockNumber:c,blockTag:l})}catch(e){if(!(e instanceof s.pZ)&&!(e instanceof s.mm))throw e}let o=await e.request({method:"eth_call",params:r?[a,r]:[a]});if("0x"===o)return{data:void 0};return{data:o}}catch(u){let r=function(e){if(!(e instanceof a.G))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}(u),{offchainLookup:i,offchainLookupSignature:s}=await n.e(734).then(n.bind(n,50734));if(r?.slice(0,10)===s&&E)return{data:await i(e,{data:r,to:E})};throw function(e,{docsPath:t,...n}){let r=e;return(0,f.B)(e)&&(r=(0,f.k)(e,n)),new o.cg(r,{docsPath:t,...n})}(u,{...t,account:I,chain:e.chain})}}async function y(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:f="latest",data:h,multicallAddress:p,to:g}=t,b=p;if(!b){if(!e.chain)throw new s.pZ;b=(0,l.LI)({blockNumber:a,chain:e.chain,contract:"multicall3"})}let y=a?(0,d.eC)(a):void 0,v=y||f,{schedule:w}=(0,m.S)({id:`${e.uid}.${v}`,wait:r,shouldSplitBatch(e){let t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*n},fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,c.R)({abi:i.F8,args:[n],functionName:"aggregate3"}),a=await e.request({method:"eth_call",params:[{data:r,to:b},v]});return(0,u.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:A,success:C}]=await w({data:h,to:g});if(!C)throw new o.VQ({data:A});return"0x"===A?{data:void 0}:{data:A}}},59100:function(e,t,n){"use strict";n.d(t,{Q:function(){return g}});var r=n(17e3),i=n(52440),a=n(96676),s=n(84058),o=n(73524),u=n(80127),c=n(92966);class l extends u.G{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=(0,c.xr)({from:t?.address,to:h,value:void 0!==p&&`${(0,s.d)(p)} ${r?.nativeCurrency.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==u&&`${(0,o.o)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,o.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,o.o)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var d=n(5683),f=n(64435),h=n(41145),p=n(98076),m=n(48516);async function g(e,t){let n=t.account??e.account;if(!n)throw new i.o({docsPath:"/docs/actions/public/estimateGas"});let s=(0,r.T)(n);try{let{accessList:n,blockNumber:r,blockTag:i,data:o,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:g,to:b,value:y,...v}="local"===s.type?await (0,m.h)(e,t):t,w=r?(0,a.eC)(r):void 0,A=w||i;(0,p.F)(t);let C=e.chain?.formatters?.transactionRequest?.format||h.t,P=C({...(0,f.K)(v,{format:C}),from:s.address,accessList:n,data:o,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:g,to:b,value:y}),E=await e.request({method:"eth_estimateGas",params:A?[P,A]:[P]});return BigInt(E)}catch(n){throw function(e,{docsPath:t,...n}){let r=e;return(0,d.B)(e)&&(r=(0,d.k)(e,n)),new l(r,{docsPath:t,...n})}(n,{...t,account:s,chain:e.chain})}}},34726:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(80127);class i extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}var a=n(96676),s=n(84500);async function o(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){let u=o??!1,c=void 0!==n?(0,a.eC)(n):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,u]}):await e.request({method:"eth_getBlockByNumber",params:[c||(r??"latest"),u]})))throw new i({blockHash:t,blockNumber:n});let d=e.chain?.formatters?.block?.format||s.Z;return d(l)}},3223:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(71791);async function i(e){let t=await e.request({method:"eth_chainId"});return(0,r.ly)(t)}},9216:function(e,t,n){"use strict";async function r(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}n.d(t,{o:function(){return r}})},50996:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(71791),i=n(96676);async function a(e,{address:t,blockTag:n="latest",blockNumber:a}){let s=await e.request({method:"eth_getTransactionCount",params:[t,a?(0,i.eC)(a):n]});return(0,r.ly)(s)}},79618:function(e,t,n){"use strict";let r;n.d(t,{e:function(){return s}});var i=n(17e3);let a=256;function s(e){let{batch:t,cacheTime:n=e.pollingInterval??4e3,key:s="base",name:o="Base Client",pollingInterval:u=4e3,type:c="base"}=e,l=e.chain,d=e.account?(0,i.T)(e.account):void 0,{config:f,request:h,value:p}=e.transport({chain:l,pollingInterval:u}),m={...f,...p},g={account:d,batch:t,cacheTime:n,chain:l,key:s,name:o,pollingInterval:u,request:h,transport:m,type:c,uid:function(e=11){if(!r||a+e>512){r="",a=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(a,a+++e)}()};return Object.assign(g,{extend:function e(t){return n=>{let r=n(t);for(let e in g)delete r[e];let i={...t,...r};return Object.assign(i,{extend:e(i)})}}(g)})}},86175:function(e,t,n){"use strict";n.d(t,{K:function(){return R}});var r=n(79618),i=n(3223),a=n(96676);async function s(e,{chain:t}){let{id:n,name:r,nativeCurrency:i,rpcUrls:s,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,a.eC)(n),chainName:r,nativeCurrency:i,rpcUrls:s.default.http,blockExplorerUrls:o?Object.values(o).map(({url:e})=>e):void 0}]})}var o=n(50291),u=n(17e3),c=n(52440),l=n(85902),d=n(92966),f=n(5683),h=n(64435),p=n(41145),m=n(98076),g=n(48516);async function b(e,t){let{account:n=e.account,chain:r=e.chain,accessList:a,data:s,gas:o,gasPrice:b,maxFeePerGas:y,maxPriorityFeePerGas:v,nonce:w,to:A,value:C,...P}=t;if(!n)throw new c.o({docsPath:"/docs/actions/wallet/sendTransaction"});let E=(0,u.T)(n);try{let n;if((0,m.F)(t),null!==r&&(n=await (0,i.L)(e),(0,l.qg)({currentChainId:n,chain:r})),"local"===E.type){let t=await (0,g.h)(e,{account:E,accessList:a,chain:r,data:s,gas:o,gasPrice:b,maxFeePerGas:y,maxPriorityFeePerGas:v,nonce:w,to:A,value:C,...P});n||(n=await (0,i.L)(e));let u=r?.serializers?.transaction,c=await E.signTransaction({...t,chainId:n},{serializer:u});return await e.request({method:"eth_sendRawTransaction",params:[c]})}let u=r?.formatters?.transactionRequest?.format||p.t,c=u({...(0,h.K)(P,{format:u}),accessList:a,data:s,from:E.address,gas:o,gasPrice:b,maxFeePerGas:y,maxPriorityFeePerGas:v,nonce:w,to:A,value:C});return await e.request({method:"eth_sendTransaction",params:[c]})}catch(e){throw function(e,{docsPath:t,...n}){let r=e;return(0,f.B)(e)&&(r=(0,f.k)(e,n)),new d.mk(r,{docsPath:t,...n})}(e,{...t,account:E,chain:t.chain||void 0})}}var y=n(61867);async function v(e){let t=await e.request({method:"eth_accounts"});return t.map(e=>(0,y.x)(e))}async function w(e){let t=await e.request({method:"wallet_getPermissions"});return t}async function A(e){let t=await e.request({method:"eth_requestAccounts"});return t.map(e=>(0,y.K)(e))}async function C(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function P(e,{account:t=e.account,message:n}){if(!t)throw new c.o({docsPath:"/docs/actions/wallet/signMessage"});let r=(0,u.T)(t);if("local"===r.type)return r.signMessage({message:n});let i="string"==typeof n?(0,a.$G)(n):n.raw instanceof Uint8Array?(0,a.NC)(n.raw):n.raw;return e.request({method:"personal_sign",params:[i,r.address]})}var E=n(68416),x=n(1301),O=n(59635);async function I(e,{account:t=e.account,domain:n,message:r,primaryType:i,types:a}){if(!t)throw new c.o({docsPath:"/docs/actions/wallet/signTypedData"});let s=(0,u.T)(t),o={EIP712Domain:["string"==typeof n?.name&&{name:"name",type:"string"},n?.version&&{name:"version",type:"string"},"number"==typeof n?.chainId&&{name:"chainId",type:"uint256"},n?.verifyingContract&&{name:"verifyingContract",type:"address"},n?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...a};if((0,O.i)({domain:n,message:r,primaryType:i,types:o}),"local"===s.type)return s.signTypedData({domain:n,primaryType:i,types:o,message:r});let l=(0,x.P)({domain:n??{},primaryType:i,types:o,message:r},(e,t)=>(0,E.v)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[s.address,l]})}async function S(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(t)}]})}async function B(e,t){let n=await e.request({method:"wallet_watchAsset",params:t});return n}var M=n(21181);async function k(e,{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}){let o=(0,M.R)({abi:t,args:r,functionName:a}),u=await b(e,{data:`${o}${i?i.replace("0x",""):""}`,to:n,...s});return u}function j(e){return{addChain:t=>s(e,t),deployContract:t=>(function(e,{abi:t,args:n,bytecode:r,...i}){let a=(0,o.w)({abi:t,args:n,bytecode:r});return b(e,{...i,data:a})})(e,t),getAddresses:()=>v(e),getChainId:()=>(0,i.L)(e),getPermissions:()=>w(e),requestAddresses:()=>A(e),requestPermissions:t=>C(e,t),sendTransaction:t=>b(e,t),signMessage:t=>P(e,t),signTypedData:t=>I(e,t),switchChain:t=>S(e,t),watchAsset:t=>B(e,t),writeContract:t=>k(e,t)}}function R(e){let{key:t="wallet",name:n="Wallet Client",transport:i}=e,a=(0,r.e)({...e,key:t,name:n,transport:e=>i({...e,retryCount:0}),type:"walletClient"});return a.extend(j)}},67494:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(77133);function i({key:e,name:t,request:n,retryCount:i=3,retryDelay:a=150,timeout:s,type:o},u){return{config:{key:e,name:t,request:n,retryCount:i,retryDelay:a,timeout:s,type:o},request:(0,r.n)(n,{retryCount:i,retryDelay:a}),value:u}}},93510:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(67494);function i(e,t={}){let{key:n="custom",name:i="Custom Provider",retryDelay:a}=t;return({retryCount:s})=>(0,r.q)({key:n,name:i,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:a,type:"custom"})}},15358:function(e,t,n){"use strict";n.d(t,{$o:function(){return c},F8:function(){return r},X$:function(){return u},du:function(){return s},k3:function(){return a},nZ:function(){return o}});let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],a=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],s=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],o=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],u=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],c=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},35492:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return i},hZ:function(){return a}});let r={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},a={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},7995:function(e,t,n){"use strict";n.d(t,{Bd:function(){return a},Zn:function(){return i},ez:function(){return r}});let r={gwei:9,wei:18},i={ether:-9,wei:9},a={ether:-18,gwei:-9}},87849:function(e,t,n){"use strict";n.d(t,{CI:function(){return P},FM:function(){return p},Gy:function(){return A},KY:function(){return v},M4:function(){return d},MX:function(){return y},SM:function(){return w},cO:function(){return o},dh:function(){return C},fM:function(){return s},fs:function(){return f},gr:function(){return l},hn:function(){return E},lC:function(){return m},mv:function(){return g},wM:function(){return x},wb:function(){return c},xB:function(){return u},xL:function(){return b},yP:function(){return h}});var r=n(99482),i=n(87902),a=n(80127);class s extends a.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class o extends a.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class u extends a.G{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.h)(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class c extends a.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class l extends a.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. +Expected length: ${e} +Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class d extends a.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class f extends a.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. +Expected length (params): ${e} +Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class h extends a.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. +Make sure you are using the correct ABI and that the error exists on it. +You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends a.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class m extends a.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. +Make sure you are using the correct ABI and that the event exists on it. +You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends a.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. +Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class b extends a.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. +Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class y extends a.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. +Cannot decode function result without knowing what the parameter types are. +Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class v extends a.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class w extends a.G{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.h)(n,{includeName:!0})})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=i}}class A extends a.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.t)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class C extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. +Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class P extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. +Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class E extends a.G{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class x extends a.G{constructor(e){super(`"${e}" is not a valid definition type. +Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},52440:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(80127);class i extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},96091:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(80127);class i extends r.G{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},80127:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(88949);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,r.bo)()});let n=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://viem.sh${a}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,n):n?null:t}(this,e)}}},56410:function(e,t,n){"use strict";n.d(t,{Bk:function(){return s},Yl:function(){return a},hJ:function(){return u},mm:function(){return i},pZ:function(){return o}});var r=n(80127);class i extends r.G{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class a extends r.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class s extends r.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class o extends r.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class u extends r.G{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},17248:function(e,t,n){"use strict";n.d(t,{cg:function(){return g},uq:function(){return b},Lu:function(){return y},Dk:function(){return v},VQ:function(){return w}});var r=n(17e3),i=n(35492),a=n(55341),s=n(99482),o=n(1301);function u({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,o.P)(t[n]):t[n]}`).join(", ")})`}var c=n(34482),l=n(84058),d=n(73524),f=n(87849),h=n(80127),p=n(92966),m=n(88949);class g extends h.G{constructor(e,{account:t,docsPath:n,chain:i,data:a,gas:s,gasPrice:o,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:f,to:h,value:m}){let g=t?(0,r.T)(t):void 0,b=(0,p.xr)({from:g?.address,to:h,value:void 0!==m&&`${(0,l.d)(m)} ${i?.nativeCurrency.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==o&&`${(0,d.o)(o)} gwei`,maxFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class b extends h.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:o}){let l=(0,c.m)({abi:t,args:n,name:a}),d=l?u({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,s.t)(l,{includeName:!0}):void 0,h=(0,p.xr)({address:r&&(0,m.CR)(r),function:f,args:d&&"()"!==d&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",h].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=a,this.sender=o}}class y extends h.G{constructor({abi:e,data:t,functionName:n,message:r}){let o,c,l,d,h;if(t&&"0x"!==t)try{h=(0,a.p)({abi:e,data:t});let{abiItem:n,errorName:r,args:o}=h;if("Error"===r)l=o[0];else if("Panic"===r){let[e]=o;l=i.$[e]}else{let e=n?(0,s.t)(n,{includeName:!0}):void 0,t=n&&o?u({abiItem:n,args:o,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){o=e}else r&&(l=r);o instanceof f.yP&&(c=[`Unable to decode signature "${d=o.signature}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(l&&"execution reverted"!==l||d?[`The contract function "${n}" reverted with the following ${d?"signature":"reason"}:`,l||d].join("\n"):`The contract function "${n}" reverted.`,{cause:o,metaMessages:c}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=h,this.reason=l,this.signature=d}}class v extends h.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class w extends h.G{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},20605:function(e,t,n){"use strict";n.d(t,{$:function(){return a},m:function(){return i}});var r=n(80127);class i extends r.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class a extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},5167:function(e,t,n){"use strict";n.d(t,{Cd:function(){return a},J5:function(){return i},M6:function(){return s}});var r=n(80127);class i extends r.G{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class a extends r.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class s extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},55370:function(e,t,n){"use strict";n.d(t,{C_:function(){return d},G$:function(){return o},Hh:function(){return s},M_:function(){return a},WF:function(){return f},ZI:function(){return u},cj:function(){return g},cs:function(){return m},dR:function(){return h},pZ:function(){return p},se:function(){return l},vU:function(){return c}});var r=n(73524),i=n(80127);class a extends i.G{constructor({cause:e,message:t}={}){let n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. +Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.message}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},81154:function(e,t,n){"use strict";n.d(t,{Gg:function(){return s},W5:function(){return c},bs:function(){return u},c9:function(){return o}});var r=n(1301),i=n(80127),a=n(88949);class s extends i.G{constructor({body:e,details:t,headers:n,status:i,url:s}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,a.Gr)(s)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=n,this.status=i,this.url=s}}class o extends i.G{constructor({body:e,details:t,url:n}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,a.Gr)(n)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class u extends i.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.Gr)(n)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class c extends i.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.Gr)(t)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},45375:function(e,t,n){"use strict";n.d(t,{B:function(){return u},GD:function(){return y},I0:function(){return P},KB:function(){return m},LX:function(){return c},Og:function(){return h},PE:function(){return w},Pv:function(){return b},Ts:function(){return A},XS:function(){return d},ab:function(){return v},gS:function(){return g},ir:function(){return x},nY:function(){return l},pT:function(){return p},s7:function(){return o},u5:function(){return C},x3:function(){return E},yR:function(){return f}});var r=n(80127),i=n(81154);class a extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,shortMessage:a}){super(a,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.bs?e.code:t??-1}}class s extends a{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class o extends a{constructor(e){super(e,{code:o.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends a{constructor(e){super(e,{code:u.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends a{constructor(e){super(e,{code:c.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends a{constructor(e){super(e,{code:l.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends a{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends a{constructor(e){super(e,{code:f.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class h extends a{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends a{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends a{constructor(e){super(e,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends a{constructor(e){super(e,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class b extends a{constructor(e){super(e,{code:b.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class y extends a{constructor(e){super(e,{code:y.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends s{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends s{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class A extends s{constructor(e){super(e,{code:A.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class C extends s{constructor(e){super(e,{code:C.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends s{constructor(e){super(e,{code:P.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class E extends s{constructor(e){super(e,{code:E.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class x extends a{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},92966:function(e,t,n){"use strict";n.d(t,{Bh:function(){return f},JC:function(){return l},Yb:function(){return h},j3:function(){return c},mc:function(){return p},mk:function(){return d},vl:function(){return u},xY:function(){return o},xr:function(){return s}});var r=n(84058),i=n(73524),a=n(80127);function s(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class o extends a.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class u extends a.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class c extends a.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",s(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class l extends a.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class d extends a.G{constructor(e,{account:t,docsPath:n,chain:a,data:o,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=s({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,r.d)(p)} ${a?.nativeCurrency.symbol||"ETH"}`,data:o,gas:u,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class f extends a.G{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let a="Transaction";n&&void 0!==i&&(a=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),r&&(a=`Transaction with hash "${r}"`),super(`${a} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class h extends a.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class p extends a.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},88949:function(e,t,n){"use strict";n.d(t,{CR:function(){return r},Gr:function(){return i},bo:function(){return a}});let r=e=>e,i=e=>e,a=()=>"viem@1.5.4"},50305:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(87849),i=n(61867),a=n(87902),s=n(9650),o=n(63950),u=n(71791),c=n(57427);function l(e,t){if("0x"===t&&e.length>0)throw new r.wb;if((0,a.d)(t)&&32>(0,a.d)(t))throw new r.xB({data:t,params:e,size:(0,a.d)(t)});return function({data:e,params:t}){let n=[],l=0;for(let f=0;f=(0,a.d)(e))throw new r.xB({data:e,params:t,size:(0,a.d)(e)});let h=t[f],{consumed:p,value:m}=function e({data:t,param:n,position:a}){let l=(0,c.S)(n.type);if(l){let[r,i]=l;return function(t,{param:n,length:r,position:i}){if(!r){let r=(0,u.ly)((0,s.tP)(t,i,i+32,{strict:!0})),a=(0,u.ly)((0,s.tP)(t,r,r+32,{strict:!0})),o=0,c=[];for(let i=0;i!e),a=i?[]:{},o=0;if(d(n)){let c=(0,u.ly)((0,s.tP)(t,r,r+32,{strict:!0}));for(let r=0;r48?(0,u.y_)(e,{signed:n}):(0,u.ly)(e,{signed:n})}}(f,{param:n});if("address"===n.type)return{consumed:32,value:(0,i.x)((0,s.tP)(f,-20))};if("bool"===n.type)return{consumed:32,value:(0,u.XA)(f)};throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:h,position:l});n.push(m),l+=p}return n}({data:t,params:e})}function d(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(d);let n=(0,c.S)(e.type);return!!(n&&d({...e,type:n[1]}))}},55341:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(35492),i=n(87849),a=n(9650),s=n(87698),o=n(50305),u=n(99482);function c({abi:e,data:t}){let n=(0,a.tP)(t,0,4);if("0x"===n)throw new i.wb;let c=[...e||[],r.Up,r.hZ],l=c.find(e=>"error"===e.type&&n===(0,s.o)((0,u.t)(e)));if(!l)throw new i.yP(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,o.r)(l.inputs,(0,a.tP)(t,4)):void 0,errorName:l.name}}},49585:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(87849),i=n(50305),a=n(34482);let s="/docs/contract/decodeFunctionResult";function o({abi:e,args:t,functionName:n,data:o}){let u=e[0];if(n&&!(u=(0,a.m)({abi:e,args:t,name:n})))throw new r.xL(n,{docsPath:s});if("function"!==u.type)throw new r.xL(void 0,{docsPath:s});if(!u.outputs)throw new r.MX(u.name,{docsPath:s});let c=(0,i.r)(u.outputs,o);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},57427:function(e,t,n){"use strict";n.d(t,{E:function(){return d},S:function(){return h}});var r=n(87849),i=n(96091),a=n(14602),s=n(97553),o=n(27226),u=n(87902),c=n(9650),l=n(96676);function d(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=function({params:e,values:t}){let n=[];for(let d=0;d0?(0,s.zo)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.zo)(u.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let a=0;ae))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,a.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,o.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return{dynamic:!1,encoded:(0,o.gc)((0,l.C4)(n))};if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int");return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.eC)(e,{size:32,signed:t})}}(n,{signed:e})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),i=(0,u.d)(e);if(!n){let t=e;return i%32!=0&&(t=(0,o.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.zo)([(0,o.gc)((0,l.eC)(i,{size:32})),t])}}if(i!==parseInt(n))throw new r.M4({expectedSize:parseInt(n),value:e});return{dynamic:!1,encoded:(0,o.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,l.$G)(e),n=Math.ceil((0,u.d)(t)/32),r=[];for(let e=0;e"type"in e&&"constructor"===e.type);if(!o)throw new r.fM({docsPath:s});if(!("inputs"in o)||!o.inputs||0===o.inputs.length)throw new r.cO({docsPath:s});let u=(0,a.E)(o.inputs,t);return(0,i.SM)([n,u])}},21181:function(e,t,n){"use strict";n.d(t,{R:function(){return c}});var r=n(87849),i=n(97553),a=n(87698),s=n(57427),o=n(99482),u=n(34482);function c({abi:e,args:t,functionName:n}){let c=e[0];if(n&&!(c=(0,u.m)({abi:e,args:t,name:n})))throw new r.xL(n,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==c.type)throw new r.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let l=(0,o.t)(c),d=(0,a.o)(l),f="inputs"in c&&c.inputs?(0,s.E)(c.inputs,t??[]):void 0;return(0,i.SM)([d,f??"0x"])}},99482:function(e,t,n){"use strict";n.d(t,{h:function(){return a},t:function(){return i}});var r=n(87849);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.wM(e.type);return`${e.name}(${a(e.inputs,{includeName:t})})`}function a(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${a(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},34482:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(14602);function i({abi:e,args:t=[],name:n}){let i=e.filter(e=>"name"in e&&e.name===n);if(0!==i.length){if(1===i.length)return i[0];for(let e of i){if(!("inputs"in e))continue;if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs||0===e.inputs.length||e.inputs.length!==t.length)continue;let n=t.every((t,n)=>{let i="inputs"in e&&e.inputs[n];return!!i&&function e(t,n){let i=typeof t,a=n.type;switch(a){case"address":return(0,r.U)(t);case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===a&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(a))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a))return"string"===i||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:a.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,i)});if(n)return e}return i[0]}}},61867:function(e,t,n){"use strict";n.d(t,{K:function(){return u},x:function(){return o}});var r=n(96091),i=n(60213),a=n(35465),s=n(14602);function o(e,t){let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,a.w)((0,i.qX)(n),"bytes"),s=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&r[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());return`0x${s.join("")}`}function u(e,t){if(!(0,s.U)(e))throw new r.b({address:e});return o(e,t)}},14602:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});let r=/^0x[a-fA-F0-9]{40}$/;function i(e){return r.test(e)}},77133:function(e,t,n){"use strict";n.d(t,{n:function(){return u},y:function(){return o}});var r=n(80127),i=n(81154),a=n(45375),s=n(89544);let o=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof i.Gg&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status;function u(e,{retryDelay:t=150,retryCount:n=3}={}){return async u=>(0,s.J)(async()=>{try{return await e(u)}catch(e){switch(e.code){case a.s7.code:throw new a.s7(e);case a.B.code:throw new a.B(e);case a.LX.code:throw new a.LX(e);case a.nY.code:throw new a.nY(e);case a.XS.code:throw new a.XS(e);case a.yR.code:throw new a.yR(e);case a.Og.code:throw new a.Og(e);case a.pT.code:throw new a.pT(e);case a.KB.code:throw new a.KB(e);case a.gS.code:throw new a.gS(e);case a.Pv.code:throw new a.Pv(e);case a.GD.code:throw new a.GD(e);case a.ab.code:throw new a.ab(e);case a.PE.code:throw new a.PE(e);case a.Ts.code:throw new a.Ts(e);case a.u5.code:throw new a.u5(e);case a.I0.code:throw new a.I0(e);case a.x3.code:throw new a.x3(e);default:if(e instanceof r.G)throw e;throw new a.ir(e)}}},{delay:({count:e,error:n})=>{if(n&&n instanceof i.Gg){let e=n?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<!o(e)})}},85902:function(e,t,n){"use strict";n.d(t,{LI:function(){return s},ax:function(){return a},qg:function(){return i}});var r=n(56410);function i({chain:e,currentChainId:t}){if(!e)throw new r.Bk;if(t!==e.id)throw new r.Yl({chain:e,currentChainId:t})}function a(e,t={}){let{fees:n=e.fees,formatters:r=e.formatters,serializers:i=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:i}}function s({blockNumber:e,chain:t,contract:n}){let i=t?.contracts?.[n];if(!i)throw new r.mm({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new r.mm({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}},97553:function(e,t,n){"use strict";function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{SM:function(){return i},zo:function(){return r}})},68416:function(e,t,n){"use strict";function r(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}n.d(t,{v:function(){return r}})},27226:function(e,t,n){"use strict";n.d(t,{gc:function(){return a},vk:function(){return i}});var r=n(20605);function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?a(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.$({size:e.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r2*n)throw new r.$({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},87902:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(68416);function i(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},9650:function(e,t,n){"use strict";n.d(t,{tP:function(){return s}});var r=n(20605),i=n(68416),a=n(87902);function s(e,t,n,{strict:r}={}){return(0,i.v)(e,{strict:!1})?function(e,t,n,{strict:r}={}){o(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&u(i,t,n),i}(e,t,n,{strict:r}):function(e,t,n,{strict:r}={}){o(e,t);let i=e.slice(t,n);return r&&u(i,t,n),i}(e,t,n,{strict:r})}function o(e,t){if("number"==typeof t&&t>0&&t>(0,a.d)(e)-1)throw new r.m({offset:t,position:"start",size:(0,a.d)(e)})}function u(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,a.d)(e)!==n-t)throw new r.m({offset:n,position:"end",size:(0,a.d)(e)})}},63950:function(e,t,n){"use strict";function r(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,r=0;for(let e=0;et)throw new r.M6({givenSize:(0,i.d)(e),maxSize:t})}function u(e,t={}){let{signed:n}=t;t.size&&o(e,{size:t.size});let r=BigInt(e);if(!n)return r;let i=(e.length-2)/2,a=(1n<<8n*BigInt(i)-1n)-1n;return r<=a?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let n=e;if(t.size&&(o(n,{size:t.size}),n=(0,a.f)(n)),"0x00"===(0,a.f)(n))return!1;if("0x01"===(0,a.f)(n))return!0;throw new r.Cd(n)}function l(e,t={}){return Number(u(e,t))}function d(e,t={}){let n=(0,s.nr)(e);return t.size&&(o(n,{size:t.size}),n=(0,a.f)(n,{dir:"right"})),new TextDecoder().decode(n)}},60213:function(e,t,n){"use strict";n.d(t,{O0:function(){return c},nr:function(){return l},qX:function(){return d}});var r=n(80127),i=n(68416),a=n(27226),s=n(71791),o=n(96676);let u=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){let n=(0,o.eC)(e,t);return l(n)}(e,t):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,s.Yf)(n,{size:t.size}),(0,a.vk)(n,{size:t.size})):n}(e,t):(0,i.v)(e)?l(e,t):d(e,t)}function l(e,t={}){let n=e;t.size&&((0,s.Yf)(n,{size:t.size}),n=(0,a.vk)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let o=new Uint8Array(i.length/2);for(let e=0;et.toString(16).padStart(2,"0"));function o(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?u(e,t):c(e,t)}function u(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.Yf)(n,{size:t.size}),(0,i.vk)(n,{size:t.size})):n}function c(e,t={}){let n="";for(let t=0;tn||o"string"==typeof e?e:(0,i.Tr)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let s=(0,r.$)("block",a)},64435:function(e,t,n){"use strict";function r(e,{format:t}){if(!t)return{};let n=Object.keys(t({}));return n.reduce((t,n)=>(e?.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}n.d(t,{K:function(){return r}})},49161:function(e,t,n){"use strict";function r(e,t){return({exclude:n,format:r})=>({exclude:n,format:e=>{let i=t(e);if(n)for(let e of n)delete i[e];return{...i,...r(e)}},type:e})}n.d(t,{$:function(){return r}})},86319:function(e,t,n){"use strict";function r(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}n.d(t,{U:function(){return r}})},56792:function(e,t,n){"use strict";n.d(t,{Tr:function(){return s},c8:function(){return a},y_:function(){return o}});var r=n(71791),i=n(49161);let a={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function s(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?a[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}let o=(0,i.$)("transaction",s)},45797:function(e,t,n){"use strict";n.d(t,{d:function(){return c},f:function(){return u}});var r=n(71791),i=n(49161),a=n(86319),s=n(56792);let o={"0x0":"reverted","0x1":"success"};function u(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,a.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.ly)(e.transactionIndex):null,status:e.status?o[e.status]:null,type:e.type?s.c8[e.type]||e.type:null}}let c=(0,i.$)("transactionReceipt",u)},41145:function(e,t,n){"use strict";n.d(t,{i:function(){return s},t:function(){return a}});var r=n(96676),i=n(49161);function a(e){return{...e,gas:void 0!==e.gas?(0,r.eC)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,r.eC)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,r.eC)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,r.eC)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,r.eC)(e.nonce):void 0,value:void 0!==e.value?(0,r.eC)(e.value):void 0}}let s=(0,i.$)("transactionRequest",a)},87698:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(9650),i=n(38601);let a=e=>"string"==typeof e?(0,r.tP)((0,i.F)(e),0,4):(0,r.tP)((0,i.J)(e),0,4)},38601:function(e,t,n){"use strict";n.d(t,{J:function(){return l},F:function(){return c}});var r=n(99482);let i=/((function|event)\s)?(.*)(\((.*)\))/;function a(e){let t=e.match(i),n=t?.[2]||void 0,r=t?.[3],a=t?.[5]||void 0;return{type:n,name:r,params:a}}var s=n(60213),o=n(35465);let u=e=>(0,o.w)((0,s.O0)(e));function c(e){let t=a(e).name,n=function(e){let t=a(e).params,n=t?.split(",").map(e=>e.trim().split(" "));return n?.map(e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}}))}(e)||[];return u(`${t}(${n.map(({type:e})=>e).join(",")})`)}function l(e){return u((0,r.t)(e))}},35465:function(e,t,n){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}n.d(t,{w:function(){return D}});var a={number:r,bool:function(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)},bytes:i,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)},exists:function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},output:function(e,t){i(e);let n=t.outputLen;if(e.length>o&s)}:{h:0|Number(e>>o&s),l:0|Number(e&s)}}let c=(e,t)=>BigInt(e>>>0)<>>0);var l={fromBig:u,split:function(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;ie>>>n,shrSL:(e,t,n)=>e<<32-n|t>>>n,rotrSH:(e,t,n)=>e>>>n|t<<32-n,rotrSL:(e,t,n)=>e<<32-n|t>>>n,rotrBH:(e,t,n)=>e<<64-n|t>>>n-32,rotrBL:(e,t,n)=>e>>>n-32|t<<64-n,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,n)=>e<>>32-n,rotlSL:(e,t,n)=>t<>>32-n,rotlBH:(e,t,n)=>t<>>64-n,rotlBL:(e,t,n)=>e<>>64-n,add:function(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/4294967296|0)|0,l:0|i}},add3L:(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),add3H:(e,t,n,r)=>t+n+r+(e/4294967296|0)|0,add4L:(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),add4H:(e,t,n,r,i)=>t+n+r+i+(e/4294967296|0)|0,add5H:(e,t,n,r,i,a)=>t+n+r+i+a+(e/4294967296|0)|0,add5L:(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0)};let d=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),f=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!f)throw Error("Non little-endian hardware is not supported");function h(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}(e)),!(e instanceof Uint8Array))throw TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));class p{clone(){return this._cloneInto()}}let[m,g,b]=[[],[],[]],y=BigInt(0),v=BigInt(1),w=BigInt(2),A=BigInt(7),C=BigInt(256),P=BigInt(113);for(let e=0,t=v,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],m.push(2*(5*r+n)),g.push((e+1)*(e+2)/2%64);let i=y;for(let e=0;e<7;e++)(t=(t<>A)*P)%C)&w&&(i^=v<<(v<n>32?l.rotlBH(e,t,n):l.rotlSH(e,t,n),I=(e,t,n)=>n>32?l.rotlBL(e,t,n):l.rotlSL(e,t,n);class S extends p{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,a.number(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=d(this.state)}keccak(){!function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,a=n[i],s=n[i+1],o=O(a,s,1)^n[r],u=I(a,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=o,e[t+n+1]^=u}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=g[n],a=O(t,i,r),s=I(t,i,r),o=m[n];t=e[o],i=e[o+1],e[o]=a,e[o+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=E[r],e[1]^=x[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){a.exists(this);let{blockLen:t,state:n}=this;e=h(e);let r=e.length;for(let i=0;i=n&&this.keccak();let a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return a.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(a.output(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new S(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}let B=(e,t,n)=>(function(e){let t=t=>e().update(h(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t})(()=>new S(t,e,n));B(6,144,28),B(6,136,32),B(6,104,48),B(6,72,64),B(1,144,28);let M=B(1,136,32);B(1,104,48),B(1,72,64);let k=(e,t,n)=>(function(e){let t=(t,n)=>e(n).update(h(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t})((r={})=>new S(t,e,void 0===r.dkLen?n:r.dkLen,!0));k(31,168,16),k(31,136,32);var j=n(68416),R=n(60213),F=n(96676);function D(e,t){let n=M((0,j.v)(e,{strict:!1})?(0,R.O0)(e):e);return"bytes"===(t||"hex")?n:(0,F.NC)(n)}},53610:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});let r=new Map;function i({fn:e,id:t,shouldSplitBatch:n,wait:i=0}){let a=async()=>{let t=u();s();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{t.forEach(({pendingPromise:t},n)=>t.resolve?.([e[n],e]))}).catch(e=>{t.forEach(({pendingPromise:t})=>t.reject?.(e))})},s=()=>r.delete(t),o=()=>u().map(({args:e})=>e),u=()=>r.get(t)||[],c=e=>r.set(t,[...u(),e]);return{flush:s,async schedule(e){let t={},r=new Promise((e,n)=>{t.resolve=e,t.reject=n}),s=n?.([...o(),e]);s&&a();let l=u().length>0;return l?(c({args:e,pendingPromise:t}),r):(c({args:e,pendingPromise:t}),setTimeout(a,i),r)}}}},89544:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(90739);function i(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0}={}){return new Promise((a,s)=>{let o=async({count:u=0}={})=>{let c=async({error:e})=>{let n="function"==typeof t?t({count:u,error:e}):t;n&&await (0,r.D)(n),o({count:u+1})};try{let t=await e();a(t)}catch(e){if(uJSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},98076:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(17e3),i=n(96091),a=n(55370),s=n(92966),o=n(14602);function u(e){let{account:t,gasPrice:n,maxFeePerGas:u,maxPriorityFeePerGas:c,to:l}=e,d=t?(0,r.T)(t):void 0;if(d&&!(0,o.U)(d.address))throw new i.b({address:d.address});if(l&&!(0,o.U)(l))throw new i.b({address:l});if(void 0!==n&&(void 0!==u||void 0!==c))throw new s.xY;if(u&&u>2n**256n-1n)throw new a.Hh({maxFeePerGas:u});if(c&&u&&c>u)throw new a.cs({maxFeePerGas:u,maxPriorityFeePerGas:c})}},48516:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(17e3),i=n(59100),a=n(34726),s=n(9216),o=n(50996),u=n(52440),c=n(80127),l=n(98076);async function d(e,t){let{account:n,chain:d=e.chain,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g}=t;if(!n)throw new u.o;let b=(0,r.T)(n),y=await (0,a.Q)(e,{blockTag:"latest"}),v={...t,from:b.address};if(void 0===g&&(v.nonce=await (0,o.K)(e,{address:b.address,blockTag:"pending"})),"bigint"==typeof y.baseFeePerGas&&void 0===h){let e=1500000000n;if(void 0!==d?.fees?.defaultPriorityFee&&(e="bigint"==typeof d.fees.defaultPriorityFee?d.fees.defaultPriorityFee:await d.fees.defaultPriorityFee({block:y,request:v})),void 0===p)v.maxPriorityFeePerGas=m??e,v.maxFeePerGas=120n*y.baseFeePerGas/100n+v.maxPriorityFeePerGas;else{if(void 0===m&&p{for(let n of e){let{name:e,type:f}=n,h=t[e],p=f.match(c);if(p&&("number"==typeof h||"bigint"==typeof h)){let[e,t,n]=p;(0,o.eC)(h,{signed:"int"===t,size:parseInt(n)/8})}if("address"===f&&"string"==typeof h&&!(0,a.U)(h))throw new i.b({address:h});let m=f.match(u);if(m){let[e,t]=m;if(t&&(0,s.d)(h)!==parseInt(t))throw new r.KY({expectedSize:parseInt(t),givenSize:(0,s.d)(h)})}let g=l[f];g&&d(g,h)}};if(l.EIP712Domain&&e&&d(l.EIP712Domain,e),"EIP712Domain"!==n){let e=l[n];d(e,t)}}},84058:function(e,t,n){"use strict";n.d(t,{d:function(){return a}});var r=n(7995),i=n(23935);function a(e,t="wei"){return(0,i.b)(e,r.ez[t])}},73524:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(7995),i=n(23935);function a(e,t="wei"){return(0,i.b)(e,r.Zn[t])}},23935:function(e,t,n){"use strict";function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,a]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${a?`.${a}`:""}`}n.d(t,{b:function(){return r}})},90739:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},58573:function(e,t,n){"use strict";let r;function i(){}n.d(t,{eM:function(){return ew},_g:function(){return eb},mA:function(){return eF},KQ:function(){return eN},$4:function(){return eQ},qL:function(){return eG},S4:function(){return eV},c9:function(){return eZ},F6:function(){return e$},LN:function(){return ez},g0:function(){return eW}});let a="undefined"==typeof window||"Deno"in window;function s(){}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,n){return A(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,n){return A(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function d(e,t,n){return A(e)?[{...t,queryKey:e},n]:[e||{},t]}function f(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(A(s)){if(r){if(t.queryHash!==p(s,t.options))return!1}else{if(!g(t.queryKey,s))return!1}}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(void 0===i||i===t.state.fetchStatus)&&(!a||!!a(t))}function h(e,t){let{exact:n,fetching:r,predicate:i,mutationKey:a}=e;if(A(a)){if(!t.options.mutationKey)return!1;if(n){if(m(t.options.mutationKey)!==m(a))return!1}else{if(!g(t.options.mutationKey,a))return!1}}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function p(e,t){let n=(null==t?void 0:t.queryKeyHashFn)||m;return n(e)}function m(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!g(e[n],t[n]))}function b(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(w(n)&&n.hasOwnProperty("isPrototypeOf"))}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function A(e){return Array.isArray(e)}function C(e){return new Promise(t=>{setTimeout(t,e)})}function P(e){C(0).then(e)}function E(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=y(t)&&y(n);if(r||v(t)&&v(n)){let i=r?t.length:Object.keys(t).length,a=r?n:Object.keys(n),s=a.length,o=r?[]:{},u=0;for(let i=0;i{e()},r=e=>{e()},i=e=>{let n;t++;try{n=e()}finally{--t||o()}return n},a=r=>{t?e.push(r):P(()=>{n(r)})},s=e=>(...t)=>{a(()=>{e(...t)})},o=()=>{let t=e;e=[],t.length&&P(()=>{r(()=>{t.forEach(e=>{n(e)})})})},u=e=>{n=e},c=e=>{r=e};return{batch:i,batchCalls:s,schedule:a,setNotifyFunction:u,setBatchNotifyFunction:c}}();class I{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let S=new class extends I{constructor(){super(),this.setup=e=>{if(!a&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},B=["online","offline"],M=new class extends I{constructor(){super(),this.setup=e=>{if(!a&&window.addEventListener){let t=()=>e();return B.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{B.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let t=this.online!==e;t&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function k(e){return Math.min(1e3*2**e,3e4)}function j(e){return(null!=e?e:"online")!=="online"||M.isOnline()}class R{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function F(e){return e instanceof R}function D(e){let t,n,r,i=!1,a=0,s=!1,o=new Promise((e,t)=>{n=e,r=t}),u=t=>{s||(h(new R(t)),null==e.abort||e.abort())},c=()=>{i=!0},l=()=>{i=!1},d=()=>!S.isFocused()||"always"!==e.networkMode&&!M.isOnline(),f=r=>{s||(s=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},h=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},p=()=>new Promise(n=>{t=e=>{let t=s||!d();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,s||null==e.onContinue||e.onContinue()}),m=()=>{let t;if(!s){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{var n,r;if(s)return;let o=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:k,c="function"==typeof u?u(a,t):u,l=!0===o||"number"==typeof o&&a{if(d())return p()}).then(()=>{i?h(t):m()})})}};return j(e.networkMode)?m():p().then(m),{promise:o,cancel:u,continue:()=>{let e=null==t?void 0:t();return e?o:Promise.resolve()},cancelRetry:c,continueRetry:l}}class N{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),o(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:a?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class T extends N{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||x,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let n=E(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(s).catch(s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!u(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r,i,a;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);let s=function(){if("function"==typeof AbortController)return new AbortController}(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};u(o);let c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};u(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(a=l.fetchOptions)?void 0:a.meta});let d=e=>{if(F(e)&&e.silent||this.dispatch({type:"error",error:e}),!F(e)){var t,n,r,i;null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=D({fn:l.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,n,r,i;if(void 0===e){d(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:j(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if(F(i)&&i.revert&&this.revertState)return{...this.revertState};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),O.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class U extends I{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;let i=t.queryKey,a=null!=(r=t.queryHash)?r:p(i,t),s=this.get(a);return s||(s=new T({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){O.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[n]=d(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>f(n,e))}findAll(e,t){let[n]=d(e,t);return Object.keys(n).length>0?this.queries.filter(e=>f(n,e)):this.queries}notify(e){O.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){O.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){O.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class Q extends N{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||x,this.observers=[],this.state=e.state||q(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,r,i,a,s,o,u,c,l,d,f,h,p,m,g,b,y,v;let w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(l=(d=this.options).onMutate)?void 0:l.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let f=await (()=>{var e;return this.retryer=D({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,f,this.state.variables,this.state.context,this)),await (null==(n=(r=this.options).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context)),await (null==(i=(a=this.mutationCache.config).onSettled)?void 0:i.call(a,f,null,this.state.variables,this.state.context,this)),await (null==(s=(o=this.options).onSettled)?void 0:s.call(o,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{throw await (null==(f=(h=this.mutationCache.config).onError)?void 0:f.call(h,e,this.state.variables,this.state.context,this)),await (null==(p=(m=this.options).onError)?void 0:p.call(m,e,this.state.variables,this.state.context)),await (null==(g=(b=this.mutationCache.config).onSettled)?void 0:g.call(b,void 0,e,this.state.variables,this.state.context,this)),await (null==(y=(v=this.options).onSettled)?void 0:y.call(v,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!j(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),O.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function q(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class L extends I{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){let r=new Q({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){O.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>h(e,t))}findAll(e){return this.mutations.filter(t=>h(e,t))}notify(e){O.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return O.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(s)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function G(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class z{constructor(e={}){this.queryCache=e.queryCache||new U,this.mutationCache=e.mutationCache||new L,this.logger=e.logger||x,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=S.subscribe(()=>{S.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=M.subscribe(()=>{M.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[n]=d(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){let r=c(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let n=t.data;return[e,n]})}setQueryData(e,t,n){let r=this.queryCache.find(e),i=null==r?void 0:r.state.data,a="function"==typeof t?t(i):t;if(void 0===a)return;let s=c(e),o=this.defaultQueryOptions(s);return this.queryCache.build(this,o).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return O.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){let[n]=d(e,t),r=this.queryCache;O.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){let[r,i]=d(e,t,n),a=this.queryCache,s={type:"active",...r};return O.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(s,i)))}cancelQueries(e,t,n){let[r,i={}]=d(e,t,n);void 0===i.revert&&(i.revert=!0);let a=O.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(i)));return Promise.all(a).then(s).catch(s)}invalidateQueries(e,t,n){let[r,i]=d(e,t,n);return O.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();let n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)})}refetchQueries(e,t,n){let[r,i]=d(e,t,n),a=O.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})})),o=Promise.all(a).then(s);return null!=i&&i.throwOnError||(o=o.catch(s)),o}fetchQuery(e,t,n){let r=c(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(s).catch(s)}fetchInfiniteQuery(e,t,n){let r=c(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,a,s,o;let u;let c=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)?void 0:null==(i=r.meta)?void 0:i.fetchMore,d=null==l?void 0:l.pageParam,f=(null==l?void 0:l.direction)==="forward",h=(null==l?void 0:l.direction)==="backward",p=(null==(a=e.state.data)?void 0:a.pages)||[],m=(null==(s=e.state.data)?void 0:s.pageParams)||[],g=m,b=!1,y=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?b=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{b=!0}),e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(e,t,n,r)=>(g=r?[t,...g]:[...g,t],r?[n,...e]:[...e,n]),A=(t,n,r,i)=>{if(b)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);let a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};y(a);let s=v(a),o=Promise.resolve(s).then(e=>w(t,r,e,i));return o};if(p.length){if(f){let t=void 0!==d,n=t?d:G(e.options,p);u=A(p,t,n)}else if(h){let t=void 0!==d,n=t?d:null==(o=e.options).getPreviousPageParam?void 0:o.getPreviousPageParam(p[0],p);u=A(p,t,n,!0)}else{g=[];let t=void 0===e.options.getNextPageParam,n=!c||!p[0]||c(p[0],0,p);u=n?A([],t,m[0]):Promise.resolve(w([],m[0],p[0]));for(let n=1;n{let i=!c||!p[n]||c(p[n],n,p);if(i){let i=t?m[n]:G(e.options,r);return A(r,t,i)}return Promise.resolve(w(r,m[n],p[n]))})}}else u=A([]);let C=u.then(e=>({pages:e,pageParams:g}));return C}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(s).catch(s)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let n=this.queryDefaults.find(t=>m(e)===m(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>g(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let n=this.mutationDefaults.find(t=>m(e)===m(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>g(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=p(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function K(e){return e.state.isPaused}function H(e){return"success"===e.state.status}let W=["added","removed","updated"];function J(e){return W.includes(e)}async function V({queryClient:e,persister:t,maxAge:n=864e5,buster:r="",hydrateOptions:i}){try{let a=await t.restoreClient();if(a){if(a.timestamp){let s=Date.now()-a.timestamp>n,o=a.buster!==r;s||o?t.removeClient():function(e,t,n){if("object"!=typeof t||null===t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=t.mutations||[],s=t.queries||[];a.forEach(t=>{var i;r.build(e,{...null==n?void 0:null==(i=n.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)}),s.forEach(t=>{var r;let a=i.get(t.queryHash),s={...t.state,fetchStatus:"idle"};if(a){a.state.dataUpdatedAt{r(e)&&n.push({mutationKey:e.options.mutationKey,state:e.state})})}if(!1!==t.dehydrateQueries){let n=t.shouldDehydrateQuery||H;e.getQueryCache().getAll().forEach(e=>{n(e)&&r.push({state:e.state,queryKey:e.queryKey,queryHash:e.queryHash})})}return{mutations:n,queries:r}}(e,r)};await t.persistClient(i)}var Z=n(62205),X=n(37010);let $=X.createContext(void 0),_=X.createContext(!1);function ee(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=$),window.ReactQueryClientContext):$)}let et=({context:e}={})=>{let t=X.useContext(ee(e,X.useContext(_)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},en=({client:e,children:t,context:n,contextSharing:r=!1})=>{X.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let i=ee(n,r);return X.createElement(_.Provider,{value:!n&&r},X.createElement(i.Provider,{value:e},t))},er=X.createContext(!1),ei=()=>X.useContext(er);er.Provider;let ea=X.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),es=()=>X.useContext(ea);var eo=n(34076);class eu extends I{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=this.client.defaultMutationOptions(e),b(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:q(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){O.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,n,r,i,a,s,o,u;e.onSuccess?(null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(a=(s=this.mutateOptions).onError)||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(o=(u=this.mutateOptions).onSettled)||o.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}let ec=eo.useSyncExternalStore;function el(){}class ed extends I{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),ef(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eh(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),b(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();let i=this.hasListeners();i&&ep(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();let a=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return e.keepPreviousData||(void 0!==e.placeholderData?!n.isPlaceholderData:b(this.getCurrentResult(),n))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(s)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),a||this.currentResult.isStale||!o(this.options.staleTime))return;let e=u(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!a&&!1!==this.options.enabled&&o(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||S.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let n;let r=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,o=this.currentResultOptions,u=e!==r,c=u?e.state:this.currentQueryInitialState,l=u?this.currentResult:this.previousQueryResult,{state:d}=e,{dataUpdatedAt:f,error:h,errorUpdatedAt:p,fetchStatus:m,status:g}=d,b=!1,y=!1;if(t._optimisticResults){let n=this.hasListeners(),a=!n&&ef(e,t),s=n&&ep(e,r,t,i);(a||s)&&(m=j(e.options.networkMode)?"fetching":"paused",f||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!d.dataUpdatedAt&&null!=l&&l.isSuccess&&"error"!==g)n=l.data,f=l.dataUpdatedAt,g=l.status,b=!0;else if(t.select&&void 0!==d.data){if(a&&d.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),n=E(null==a?void 0:a.data,n,t),this.selectResult=n,this.selectError=null}catch(e){this.selectError=e}}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&"loading"===g){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==o?void 0:o.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",n=E(null==a?void 0:a.data,e,t),y=!0)}this.selectError&&(h=this.selectError,n=this.selectResult,p=Date.now(),g="error");let v="fetching"===m,w="loading"===g,A="error"===g,C={status:g,fetchStatus:m,isLoading:w,isSuccess:"success"===g,isError:A,isInitialLoading:w&&v,data:n,dataUpdatedAt:f,error:h,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!w,isLoadingError:A&&0===d.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:b,isRefetchError:A&&0!==d.dataUpdatedAt,isStale:em(e,t),refetch:this.refetch,remove:this.remove};return C}updateResult(e){let t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,b(n,t))return;this.currentResult=n;let r={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;let r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{let n=this.currentResult[e]!==t[e];return n&&r.has(e)})})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||F(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){O.batch(()=>{var t,n,r,i,a,s,o,u;e.onSuccess?(null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):e.onError&&(null==(a=(s=this.options).onError)||a.call(s,this.currentResult.error),null==(o=(u=this.options).onSettled)||o.call(u,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function ef(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&eh(e,t,t.refetchOnMount)}function eh(e,t,n){if(!1!==t.enabled){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&em(e,t)}return!1}function ep(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&em(e,n)}function em(e,t){return e.isStaleByTime(t.staleTime)}var eg=n(65173);function eb({queryClient:e=new z({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=(0,Z.o6)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:Z.wp}),persister:n="undefined"!=typeof window?function({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:n=1e3,serialize:r=JSON.stringify,deserialize:a=JSON.parse,retry:s}){if(e){let i=n=>{try{e.setItem(t,r(n));return}catch(e){return e}};return{persistClient:function(e,t=100){let n=null;return function(...r){null===n&&(n=setTimeout(()=>{e(...r),n=null},t))}}(e=>{let t=e,n=i(t),r=0;for(;n&&t;)r++,(t=null==s?void 0:s({persistedClient:t,error:n,errorCount:r}))&&(n=i(t))},n),restoreClient:()=>{let n=e.getItem(t);if(n)return a(n)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:i,restoreClient:()=>void 0,removeClient:i}}({key:"cache",storage:t,serialize:e=>e,deserialize:e=>e}):void 0,...r}){let a=(0,Z._g)({...r,storage:t});return n&&function(e){let t;V(e).then(()=>{(function(e){let t=e.queryClient.getQueryCache().subscribe(t=>{J(t.type)&&Y(e)}),n=e.queryClient.getMutationCache().subscribe(t=>{J(t.type)&&Y(e)});()=>{t(),n()}})(e)})}({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime&&!1!==e.queryKey[0].persist}}),Object.assign(a,{queryClient:e})}var ey=X.createContext(void 0),ev=X.createContext(void 0);function ew({children:e,config:t}){return X.createElement(ey.Provider,{children:X.createElement(en,{children:e,client:t.queryClient,context:ev}),value:t})}function eA(){let e=X.useContext(ey);if(!e)throw Error("`useConfig` must be used within `WagmiConfig`.\n\nRead more: https://wagmi.sh/react/WagmiConfig");return e}var eC=eo.useSyncExternalStore;function eP(e){return"[object Object]"===Object.prototype.toString.call(e)}function eE(e){return JSON.stringify(e,(e,t)=>!function(e){if(!eP(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(eP(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function ex(e,t,n){let r=l(e,t,n);return function(e,t,n){var r,i;let a=l(e,void 0,void 0),s=et({context:a.context}),[o]=X.useState(()=>new eu(s,a));X.useEffect(()=>{o.setOptions(a)},[o,a]);let u=ec(X.useCallback(e=>o.subscribe(O.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=X.useCallback((e,t)=>{o.mutate(e,t).catch(el)},[o]);if(u.error&&(r=o.options.useErrorBoundary,i=[u.error],"function"==typeof r?r(...i):!!r))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}({context:ev,...r})}function eO(e,t,n){let r=Array.isArray(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e,i=function(e,t){var n,r;let i=et({context:e.context}),a=ei(),s=es(),o=i.defaultQueryOptions({...e,queryKeyHashFn:eE});o._optimisticResults=a?"isRestoring":"optimistic",o.onError&&(o.onError=O.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=O.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=O.batchCalls(o.onSettled)),o.suspense&&"number"!=typeof o.staleTime&&(o.staleTime=1e3),(o.suspense||o.useErrorBoundary)&&!s.isReset()&&(o.retryOnMount=!1);let[u]=X.useState(()=>new t(i,o)),c=u.getOptimisticResult(o);if(eC(X.useCallback(e=>a?()=>void 0:u.subscribe(O.batchCalls(e)),[u,a]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),X.useEffect(()=>{s.clearReset()},[s]),X.useEffect(()=>{u.setOptions(o,{listeners:!1})},[o,u]),o.suspense&&c.isLoading&&c.isFetching&&!a)throw u.fetchOptimistic(o).then(({data:e})=>{o.onSuccess?.(e),o.onSettled?.(e,null)}).catch(e=>{s.clearReset(),o.onError?.(e),o.onSettled?.(void 0,e)});if(c.isError&&!s.isReset()&&!c.isFetching&&(n=o.useErrorBoundary,r=[c.error,u.getCurrentQuery()],"function"==typeof n?n(...r):!!n))throw c.error;let l="loading"===c.status&&"idle"===c.fetchStatus?"idle":c.status,d="loading"===l&&"fetching"===c.fetchStatus;return{...c,defaultedOptions:o,isIdle:"idle"===l,isLoading:d,observer:u,status:l}}({context:ev,...r},ed),a={data:i.data,error:i.error,fetchStatus:i.fetchStatus,isError:i.isError,isFetched:i.isFetched,isFetchedAfterMount:i.isFetchedAfterMount,isFetching:i.isFetching,isIdle:i.isIdle,isLoading:i.isLoading,isRefetching:i.isRefetching,isSuccess:i.isSuccess,refetch:i.refetch,status:i.status,internal:{dataUpdatedAt:i.dataUpdatedAt,errorUpdatedAt:i.errorUpdatedAt,failureCount:i.failureCount,isFetchedAfterMount:i.isFetchedAfterMount,isLoadingError:i.isLoadingError,isPaused:i.isPaused,isPlaceholderData:i.isPlaceholderData,isPreviousData:i.isPreviousData,isRefetchError:i.isRefetchError,isStale:i.isStale,remove:i.remove}};return i.defaultedOptions.notifyOnChangeProps?a:function(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(r),e[r])})}),n}(a,i.observer)}var eI=()=>et({context:ev});function eS({chainId:e}={}){return(0,eg.useSyncExternalStoreWithSelector)(t=>(0,Z.pC)({chainId:e},t),()=>(0,Z.uV)({chainId:e}),()=>(0,Z.uV)({chainId:e}),e=>e,(e,t)=>e.uid===t.uid)}function eB({chainId:e}={}){let t=eS({chainId:e});return t.chain.id}function eM({chainId:e,scopeKey:t}){return[{entity:"blockNumber",chainId:e,scopeKey:t}]}function ek({queryKey:[{chainId:e}]}){return(0,Z.RQ)({chainId:e})}var ej=e=>"object"==typeof e&&!Array.isArray(e);function eR(e,t,n=t,r=Z.vZ){let i=X.useRef([]),a=(0,eg.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(ej(e)&&ej(t)&&i.current.length){for(let n of i.current){let i=r(e[n],t[n]);if(!i)return!1}return!0}return r(e,t)});if(ej(a)){let e={...a};return Object.defineProperties(e,Object.entries(e).reduce((e,[t,n])=>({...e,[t]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(t)||i.current.push(t),n)}}),{})),e}return a}function eF({onConnect:e,onDisconnect:t}={}){let n=eA(),r=X.useCallback(e=>(0,Z.uH)(e),[n]),i=eR(r,Z.D0),a=X.useRef(),s=a.current;return X.useEffect(()=>{s?.status!=="connected"&&"connected"===i.status&&e?.({address:i.address,connector:i.connector,isReconnected:s?.status==="reconnecting"||s?.status===void 0}),s?.status==="connected"&&"disconnected"===i.status&&t?.(),a.current=i},[e,t,s,i]),i}function eD({queryKey:[{address:e,chainId:t,formatUnits:n,token:r}]}){if(!e)throw Error("address is required");return(0,Z.EG)({address:e,chainId:t,formatUnits:n,token:r})}function eN({address:e,cacheTime:t,chainId:n,enabled:r=!0,formatUnits:i,scopeKey:a,staleTime:s,suspense:o,token:u,watch:c,onError:l,onSettled:d,onSuccess:f}={}){let h=eB({chainId:n}),p=X.useMemo(()=>(function({address:e,chainId:t,formatUnits:n,scopeKey:r,token:i}){return[{entity:"balance",address:e,chainId:t,formatUnits:n,scopeKey:r,token:i}]})({address:e,chainId:h,formatUnits:i,scopeKey:a,token:u}),[e,h,i,a,u]),m=eO(p,eD,{cacheTime:t,enabled:!!(r&&e),staleTime:s,suspense:o,onError:l,onSettled:d,onSuccess:f});return!function({chainId:e,enabled:t,queryKey:n}){let r=eI(),i=X.useCallback(()=>r.invalidateQueries({queryKey:n},{cancelRefetch:!1}),[r,n]);!function({cacheTime:e=0,chainId:t,enabled:n=!0,scopeKey:r,staleTime:i,suspense:a,watch:s=!1,onBlock:o,onError:u,onSettled:c,onSuccess:l}={}){let d=eB({chainId:t}),f=eS({chainId:d}),h=function({chainId:e}={}){return(0,eg.useSyncExternalStoreWithSelector)(t=>(0,Z.fq)({chainId:e},t),()=>(0,Z.jr)({chainId:e}),()=>(0,Z.jr)({chainId:e}),e=>e,(e,t)=>e?.uid===t?.uid)}({chainId:d}),p=eI();X.useEffect(()=>{if(!n||!s&&!o)return;let e=(h??f).watchBlockNumber({onBlockNumber:e=>{s&&p.setQueryData(eM({chainId:d,scopeKey:r}),e),o&&o(e)},emitOnBegin:!0});return e},[d,r,o,f,p,s,h,n]),eO(eM({scopeKey:r,chainId:d}),ek,{cacheTime:e,enabled:n,staleTime:i,suspense:a,onError:u,onSettled:c,onSuccess:l})}({chainId:e,enabled:t,onBlock:t?i:void 0,scopeKey:t?void 0:"idle"})}({chainId:h,enabled:!!(r&&c&&e),queryKey:p}),m}var eT=e=>[{entity:"connect",...e}],eU=e=>{let{connector:t,chainId:n}=e;if(!t)throw Error("connector is required");return(0,Z.$j)({connector:t,chainId:n})};function eQ({chainId:e,connector:t,onError:n,onMutate:r,onSettled:i,onSuccess:a}={}){let s=eA(),{data:o,error:u,isError:c,isIdle:l,isLoading:d,isSuccess:f,mutate:h,mutateAsync:p,reset:m,status:g,variables:b}=ex(eT({connector:t,chainId:e}),eU,{onError:n,onMutate:r,onSettled:i,onSuccess:a}),y=X.useCallback(n=>h({chainId:n?.chainId??e,connector:n?.connector??t}),[e,t,h]),v=X.useCallback(n=>p({chainId:n?.chainId??e,connector:n?.connector??t}),[e,t,p]);return{connect:y,connectAsync:v,connectors:s.connectors,data:o,error:u,isError:c,isIdle:l,isLoading:d,isSuccess:f,pendingConnector:b?.connector,reset:m,status:g,variables:b}}var eq=[{entity:"disconnect"}],eL=()=>(0,Z.zP)();function eG({onError:e,onMutate:t,onSettled:n,onSuccess:r}={}){let{error:i,isError:a,isIdle:s,isLoading:o,isSuccess:u,mutate:c,mutateAsync:l,reset:d,status:f}=ex(eq,eL,{...e?{onError(t,n,r){e(t,r)}}:{},onMutate:t,...n?{onSettled(e,t,r,i){n(t,i)}}:{},...r?{onSuccess(e,t,n){r(n)}}:{}});return{disconnect:c,disconnectAsync:l,error:i,isError:a,isIdle:s,isLoading:o,isSuccess:u,reset:d,status:f}}function ez(){let e=eA(),t=(0,X.useCallback)(e=>(0,Z.QC)(e),[e]);return eR(t,Z.Hy)}var eK=e=>[{entity:"switchNetwork",...e}],eH=e=>{let{chainId:t}=e;if(!t)throw Error("chainId is required");return(0,Z.If)({chainId:t})};function eW({chainId:e,throwForSwitchChainNotSupported:t,onError:n,onMutate:r,onSettled:i,onSuccess:a}={}){let s,o;let u=eA(),c=function(){let[,e]=X.useReducer(e=>e+1,0);return e}(),{data:l,error:d,isError:f,isIdle:h,isLoading:p,isSuccess:m,mutate:g,mutateAsync:b,reset:y,status:v,variables:w}=ex(eK({chainId:e}),eH,{onError:n,onMutate:r,onSettled:i,onSuccess:a}),A=X.useCallback(t=>g({chainId:t??e}),[e,g]),C=X.useCallback(t=>b({chainId:t??e}),[e,b]);X.useEffect(()=>{let e=u.subscribe(({chains:e,connector:t})=>({chains:e,connector:t}),c);return e},[u,c]);let P=!!u.connector?.switchChain;return(t||P)&&(s=A,o=C),{chains:u.chains??[],data:l,error:d,isError:f,isIdle:h,isLoading:p,isSuccess:m,pendingChainId:w?.chainId,reset:y,status:v,switchNetwork:s,switchNetworkAsync:o,variables:w}}function eJ({queryKey:[{chainId:e,name:t}]}){if(!t)throw Error("name is required");return(0,Z.bh)({chainId:e,name:t})}function eV({cacheTime:e,chainId:t,enabled:n=!0,name:r,scopeKey:i,staleTime:a=864e5,suspense:s,onError:o,onSettled:u,onSuccess:c}={}){let l=eB({chainId:t});return eO(function({chainId:e,name:t,scopeKey:n}){return[{entity:"ensAddress",chainId:e,name:t,scopeKey:n}]}({chainId:l,name:r,scopeKey:i}),eJ,{cacheTime:e,enabled:!!(n&&l&&r),staleTime:a,suspense:s,onError:o,onSettled:u,onSuccess:c})}function eY({queryKey:[{name:e,chainId:t}]}){if(!e)throw Error("name is required");return(0,Z.w6)({name:e,chainId:t})}function eZ({cacheTime:e,chainId:t,enabled:n=!0,name:r,scopeKey:i,staleTime:a=864e5,suspense:s,onError:o,onSettled:u,onSuccess:c}={}){let l=eB({chainId:t});return eO(function({name:e,chainId:t,scopeKey:n}){return[{entity:"ensAvatar",name:e,chainId:t,scopeKey:n}]}({name:r,chainId:l,scopeKey:i}),eY,{cacheTime:e,enabled:!!(n&&r&&l),staleTime:a,suspense:s,onError:o,onSettled:u,onSuccess:c})}function eX({queryKey:[{address:e,chainId:t}]}){if(!e)throw Error("address is required");return(0,Z.Lk)({address:e,chainId:t})}function e$({address:e,cacheTime:t,chainId:n,enabled:r=!0,scopeKey:i,staleTime:a=864e5,suspense:s,onError:o,onSettled:u,onSuccess:c}={}){let l=eB({chainId:n});return eO(function({address:e,chainId:t,scopeKey:n}){return[{entity:"ensName",address:e,chainId:t,scopeKey:n}]}({address:e,chainId:l,scopeKey:i}),eX,{cacheTime:t,enabled:!!(r&&e&&l),staleTime:a,suspense:s,onError:o,onSettled:u,onSuccess:c})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/698-3e5c0580e293fb6c.js b/_next/static/chunks/698-3e5c0580e293fb6c.js deleted file mode 100644 index d758b84..0000000 --- a/_next/static/chunks/698-3e5c0580e293fb6c.js +++ /dev/null @@ -1,99 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[698],{48610:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(10479),i=r(6028),o=r(33589);function a(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}t.getHash=a,t.createCurve=function(e,t){let r=t=>(0,o.weierstrass)({...e,...a(t)});return Object.freeze({...r(t),create:r})}},28731:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(14443),i=r(30802),o=BigInt(0),a=BigInt(1);t.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>o;)r&a&&(n=n.add(i)),i=i.double(),r>>=a;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],a=e,s=a;for(let e=0;e>=h,n>u&&(n-=f,o+=a);let s=t+Math.abs(n)-1,p=e%2!=0,m=n<0;0===n?l=l.add(r(p,i[t])):c=c.add(r(m,i[s]))}return{p:c,f:l}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},72652:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;let n=r(14443),i=r(30802),o=i.bytesToNumberBE;function a(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected")}function u(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function c(e,t,r,n){s(e),s(t),u(r),t.length>255&&(t=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:o,blockLen:c}=n,l=Math.ceil(r/o);if(l>255)throw Error("Invalid xmd length");let d=(0,i.concatBytes)(t,a(t.length,1)),f=a(0,c),h=a(r,2),p=Array(l),m=n((0,i.concatBytes)(f,e,h,a(0,1),d));p[0]=n((0,i.concatBytes)(m,a(1,1),d));for(let e=1;e<=l;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n255&&(t=o.create({dkLen:Math.ceil(2*n/8)}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()),r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(e).update(a(r,2)).update(t).update(a(t.length,1)).digest()}function d(e,t,r){let a;(0,i.validateObject)(r,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:d,k:f,m:h,hash:p,expand:m,DST:g}=r;s(e),u(t);let y=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,i.utf8ToBytes)(e);throw Error("DST must be Uint8Array or string")}(g),b=d.toString(2).length,v=Math.ceil((b+f)/8),w=t*h*v;if("xmd"===m)a=c(e,y,w,p);else if("xof"===m)a=l(e,y,w,f,p);else if("_internal_pass"===m)a=e;else throw Error('expand must be "xmd" or "xof"');let E=Array(t);for(let e=0;eArray.from(e).reverse());return(t,n)=>{let[i,o,a,s]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return{x:t=e.div(i,o),y:n=e.mul(n,e.div(a,s))}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,i){let o=d(n,2,{...r,DST:r.DST,...i}),a=e.fromAffine(t(o[0])),s=e.fromAffine(t(o[1])),u=a.add(s).clearCofactor();return u.assertValidity(),u},encodeToCurve(n,i){let o=d(n,1,{...r,DST:r.encodeDST,...i}),a=e.fromAffine(t(o[0])).clearCofactor();return a.assertValidity(),a}}}},14443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(30802),i=BigInt(0),o=BigInt(1),a=BigInt(2),s=BigInt(3),u=BigInt(4),c=BigInt(5),l=BigInt(8);function d(e,t){let r=e%t;return r>=i?r:t+r}function f(e,t,r){if(r<=i||t 0");if(r===o)return i;let n=o;for(;t>i;)t&o&&(n=n*e%r),e=e*e%r,t>>=o;return n}function h(e,t){if(e===i||t<=i)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,a=i,s=o,u=o,c=i;for(;r!==i;){let e=n/r,t=n%r,i=a-u*e,o=s-c*e;n=r,r=t,a=u,s=c,u=i,c=o}let l=n;if(l!==o)throw Error("invert: does not exist");return d(a,t)}function p(e){let t,r,n;let s=(e-o)/a;for(t=e-o,r=0;t%a===i;t/=a,r++);for(n=a;ni;)n*=n,n%=r;return n},t.invert=h,t.tonelliShanks=p,t.FpSqrt=m;let g=(e,t)=>(d(e,t)&o)===o;t.isNegativeLE=g;let y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e,t,r){if(r 0");if(r===i)return e.ONE;if(r===o)return t;let n=e.ONE,a=t;for(;r>i;)r&o&&(n=e.mul(n,a)),a=e.sqr(a),r>>=o;return n}function v(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r}function w(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}t.validateField=function(e){let t=y.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=b,t.FpInvertBatch=v,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){let t=(e.ORDER-o)/a;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=w,t.Field=function(e,t,r=!1,a={}){if(e<=i)throw Error(`Expected Fp ORDER > 0, got ${e}`);let{nBitLength:s,nByteLength:u}=w(e,t);if(u>2048)throw Error("Field lengths over 2048 bytes are not supported");let c=m(e),l=Object.freeze({ORDER:e,BITS:s,BYTES:u,MASK:(0,n.bitMask)(s),ZERO:i,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return i<=t&&te===i,isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>b(l,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:a.sqrt||(e=>c(l,e)),invertBatch:e=>v(l,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,u):(0,n.numberToBytesBE)(e,u),fromBytes:e=>{if(e.length!==u)throw Error(`Fp.fromBytes: expected ${u}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){e=(0,n.ensureBytes)("privateHash",e);let i=e.length,a=w(t).nByteLength+8;if(a<24||i1024)throw Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);let s=r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e);return d(s,t-o)+o}},30802:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let r=BigInt(0),n=BigInt(1),i=BigInt(2),o=e=>e instanceof Uint8Array,a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e){if(!o(e))throw Error("Uint8Array expected");let t="";for(let r=0;re+t.length,0)),r=0;return e.forEach(e=>{if(!o(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}t.bytesToHex=s,t.numberToHexUnpadded=u,t.hexToNumber=c,t.hexToBytes=l,t.bytesToNumberBE=function(e){return c(s(e))},t.bytesToNumberLE=function(e){if(!o(e))throw Error("Uint8Array expected");return c(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=d,t.numberToBytesLE=function(e,t){return d(e,t).reverse()},t.numberToVarBytesBE=function(e){return l(u(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=l(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(o(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if("number"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n},t.concatBytes=f,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;rr;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n};let h=(e,t,i)=>e|(i?n:r)<(i<new Uint8Array(e),g=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=m(e),i=m(e),o=0,a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),u=(e=m())=>{i=s(g([0]),e),n=s(),0!==e.length&&(i=s(g([1]),e),n=s())},c=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e{let r;for(a(),u(e);!(r=t(c()));)u();return a(),r};return l};let y={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let i=y[r];if("function"!=typeof i)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},33589:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(14443),i=r(30802),o=r(30802),a=r(28731),{bytesToNumberBE:s,hexToBytes:u}=i;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");let n=e[1],i=e.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(i),l:e.subarray(n+2)}},toSig(e){let{Err:r}=t.DER,n="string"==typeof e?u(e):e;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");let{d:o,l:a}=t.DER._parseInt(n.subarray(2)),{d:s,l:c}=t.DER._parseInt(a);if(c.length)throw new r("Invalid signature: left bytes after parsing");return{r:o,s}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),u=r(a);return`30${r(a+o+4)}02${u}${i}02${s}${n}`}};let c=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(3),h=BigInt(4);function p(e){let t=function(e){let t=(0,a.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:o}=t;if(r){if(!n.eql(o,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,n)=>{let o=t.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),u=t.fromBytes||(e=>{let t=e.subarray(1),n=r.fromBytes(t.subarray(0,r.BYTES)),i=r.fromBytes(t.subarray(r.BYTES,2*r.BYTES));return{x:n,y:i}});function d(e){let{a:n,b:i}=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&cr.eql(e,r.ZERO);return i(t)&&i(n)?b.ZERO:new b(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(b.fromAffine)}static fromHex(e){let t=b.fromAffine(u((0,o.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(m(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint)return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let i=r.sqr(n),o=d(e);if(!r.eql(i,o))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){y(e);let{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,u=r.eql(r.mul(t,s),r.mul(o,i)),c=r.eql(r.mul(n,s),r.mul(a,i));return u&&c}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,f),{px:o,py:a,pz:s}=this,u=r.ZERO,c=r.ZERO,l=r.ZERO,d=r.mul(o,o),h=r.mul(a,a),p=r.mul(s,s),m=r.mul(o,a);return m=r.add(m,m),l=r.mul(o,s),l=r.add(l,l),u=r.mul(e,l),c=r.mul(i,p),c=r.add(u,c),u=r.sub(h,c),c=r.add(h,c),c=r.mul(u,c),u=r.mul(m,u),l=r.mul(i,l),p=r.mul(e,p),m=r.sub(d,p),m=r.mul(e,m),m=r.add(m,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,p),d=r.mul(d,m),c=r.add(c,d),p=r.mul(a,s),p=r.add(p,p),d=r.mul(p,m),u=r.sub(u,d),l=r.mul(p,h),l=r.add(l,l),l=r.add(l,l),new b(u,c,l)}add(e){y(e);let{px:n,py:i,pz:o}=this,{px:a,py:s,pz:u}=e,c=r.ZERO,l=r.ZERO,d=r.ZERO,h=t.a,p=r.mul(t.b,f),m=r.mul(n,a),g=r.mul(i,s),v=r.mul(o,u),w=r.add(n,i),E=r.add(a,s);w=r.mul(w,E),E=r.add(m,g),w=r.sub(w,E),E=r.add(n,o);let A=r.add(a,u);return E=r.mul(E,A),A=r.add(m,v),E=r.sub(E,A),A=r.add(i,o),c=r.add(s,u),A=r.mul(A,c),c=r.add(g,v),A=r.sub(A,c),d=r.mul(h,E),c=r.mul(p,v),d=r.add(c,d),c=r.sub(g,d),d=r.add(g,d),l=r.mul(c,d),g=r.add(m,m),g=r.add(g,m),v=r.mul(h,v),E=r.mul(p,E),g=r.add(g,v),v=r.sub(m,v),v=r.mul(h,v),E=r.add(E,v),m=r.mul(g,E),l=r.add(l,m),m=r.mul(A,E),c=r.mul(w,c),c=r.sub(c,m),m=r.mul(w,g),d=r.mul(A,d),d=r.add(d,m),new b(c,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(b.fromAffine)})}multiplyUnsafe(e){let n=b.ZERO;if(e===c)return n;if(p(e),e===l)return this;let{endo:i}=t;if(!i)return w.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:s,k2:u}=i.splitScalar(e),d=n,f=n,h=this;for(;a>c||u>c;)a&l&&(d=d.add(h)),u&l&&(f=f.add(h)),h=h.double(),a>>=l,u>>=l;return o&&(d=d.negate()),s&&(f=f.negate()),f=new b(r.mul(f.px,i.beta),f.py,f.pz),d.add(f)}multiply(e){let n,i;p(e);let{endo:o}=t;if(o){let{k1neg:t,k1:a,k2neg:s,k2:u}=o.splitScalar(e),{p:c,f:l}=this.wNAF(a),{p:d,f:f}=this.wNAF(u);c=w.constTimeNegate(t,c),d=w.constTimeNegate(s,d),d=new b(r.mul(d.px,o.beta),d.py,d.pz),n=c.add(d),i=l.add(f)}else{let{p:t,f:r}=this.wNAF(e);n=t,i=r}return b.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=b.BASE,i=(e,t)=>t!==c&&t!==l&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){let{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));let a=r.mul(t,e),s=r.mul(n,e),u=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(b,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===l?this:r?r(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),s(b,this,e)}toHex(e=!0){return i.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,r.ONE),b.ZERO=new b(r.ZERO,r.ONE,r.ZERO);let v=t.nBitLength,w=(0,a.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:h}}function m(e,t){let r=e.ORDER,n=c;for(let e=r-l;e%d===c;e/=d)n+=l;let i=n,o=d<{let n=m,a=e.pow(r,p),s=e.sqr(a);s=e.mul(s,r);let c=e.mul(t,s);c=e.pow(c,u),c=e.mul(c,a),a=e.mul(c,r),s=e.mul(c,t);let f=e.mul(s,a);c=e.pow(f,o);let h=e.eql(c,e.ONE);a=e.mul(s,g),c=e.mul(f,n),s=e.cmov(a,s,h),f=e.cmov(c,f,h);for(let t=i;t>l;t--){let r=t-d;r=d<{let o=e.sqr(i),a=e.mul(t,i);o=e.mul(o,a);let s=e.pow(o,r);s=e.mul(s,a);let u=e.mul(s,n),c=e.mul(e.sqr(s),i),l=e.eql(c,t),d=e.cmov(u,s,l);return{isValid:l,value:d}}}return y}t.weierstrassPoints=p,t.weierstrass=function(e){let r=function(e){let t=(0,a.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:u}=r,d=s.BYTES+1,f=2*s.BYTES+1;function h(e){return n.mod(e,u)}function m(e){return n.invert(e,u)}let{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:v}=p({...r,toBytes(e,t,r){let n=t.toAffine(),o=s.toBytes(n.x),a=i.concatBytes;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,s.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===d&&(2===r||3===r)){let e=i.bytesToNumberBE(n);if(!(ci.bytesToHex(i.numberToBytesBE(e,r.nByteLength)),E=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class A{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let t=r.nByteLength;return e=(0,o.ensureBytes)("compactSignature",e,2*t),new A(E(e,0,t),E(e,t,2*t))}static fromDER(e){let{r,s:n}=t.DER.toSig((0,o.ensureBytes)("DER",e));return new A(r,n)}assertValidity(){if(!v(this.r))throw Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new A(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:n,recovery:i}=this,a=O((0,o.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw Error("recovery id invalid");let u=2===i||3===i?t+r.n:t;if(u>=s.ORDER)throw Error("recovery id 2 or 3 invalid");let c=g.fromHex(((1&i)==0?"02":"03")+w(u)),l=m(u),d=h(-a*l),f=h(n*l),p=g.BASE.multiplyAndAddUnsafe(c,d,f);if(!p)throw Error("point at infinify");return p.assertValidity(),p}hasHighS(){return this.s>u>>l}normalizeS(){return this.hasHighS()?new A(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}function P(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===d||n===f:r?n===2*d||n===2*f:e instanceof g}let x=r.bits2int||function(e){let t=i.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},O=r.bits2int_modN||function(e){return h(x(e))},C=i.bitMask(r.nBitLength);function I(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(c<=e&&ee in n))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:d}=r,{lowS:f,prehash:p,extraEntropy:b}=n;null==f&&(f=!0),e=(0,o.ensureBytes)("msgHash",e),p&&(e=(0,o.ensureBytes)("prehashed msgHash",a(e)));let w=O(e),E=y(t),P=[I(E),I(w)];if(null!=b){let e=!0===b?d(s.BYTES):b;P.push((0,o.ensureBytes)("extraEntropy",e,s.BYTES))}let C=i.concatBytes(...P);return{seed:C,k2sig:function(e){let t=x(e);if(!v(t))return;let r=m(t),n=g.BASE.multiply(t).toAffine(),i=h(n.x);if(i===c)return;let o=h(r*h(w+i*E));if(o===c)return;let a=(n.x===i?0:2)|Number(n.y&l),s=o;if(f&&o>u>>l)s=o>u>>l?h(-o):o,a^=1;return new A(i,s,a)}}}(e,t,n),f=i.createHmacDrbg(r.hash.outputLen,r.nByteLength,r.hmac);return f(a,d)},verify:function(e,n,i,a=S){let s,u;if(n=(0,o.ensureBytes)("msgHash",n),i=(0,o.ensureBytes)("publicKey",i),"strict"in a)throw Error("options.strict was renamed to lowS");let{lowS:c,prehash:l}=a;try{if("string"==typeof e||e instanceof Uint8Array)try{u=A.fromDER(e)}catch(r){if(!(r instanceof t.DER.Err))throw r;u=A.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;u=new A(t,r)}else throw Error("PARSE");s=g.fromHex(i)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));let{r:d,s:f}=u,p=O(n),y=m(f),b=h(p*y),v=h(d*y),w=g.BASE.multiplyAndAddUnsafe(s,b,v)?.toAffine();if(!w)return!1;let E=h(w.x);return E===d},ProjectivePoint:g,Signature:A,utils:{isValidPrivateKey(e){try{return y(e),!0}catch(e){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{let e=r.randomBytes(s.BYTES+8),t=n.hashToPrivateScalar(e,u);return i.numberToBytesBE(t,r.nByteLength)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=m(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let i,o,a,s,u,c,l,d;i=e.sqr(n),i=e.mul(i,t.Z),o=e.sqr(i),o=e.add(o,i),a=e.add(o,e.ONE),a=e.mul(a,t.B),s=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),s=e.mul(s,t.A),o=e.sqr(a),c=e.sqr(s),u=e.mul(c,t.A),o=e.add(o,u),o=e.mul(o,a),c=e.mul(c,s),u=e.mul(c,t.B),o=e.add(o,u),l=e.mul(i,a);let{isValid:f,value:h}=r(o,c);d=e.mul(i,n),d=e.mul(d,h),l=e.cmov(l,a,f),d=e.cmov(d,h,f);let p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),{x:l=e.div(l,s),y:d}}}},15207:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(84120),i=r(6028),o=r(14443),a=r(33589),s=r(30802),u=r(72652),c=r(48610),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function m(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),a=BigInt(23),s=BigInt(44),u=BigInt(88),c=e*e*e%l,d=c*c*e%l,f=(0,o.pow2)(d,t,l)*d%l,p=(0,o.pow2)(f,t,l)*d%l,m=(0,o.pow2)(p,h,l)*c%l,y=(0,o.pow2)(m,n,l)*m%l,b=(0,o.pow2)(y,i,l)*y%l,v=(0,o.pow2)(b,s,l)*b%l,w=(0,o.pow2)(v,u,l)*v%l,E=(0,o.pow2)(w,s,l)*b%l,A=(0,o.pow2)(E,t,l)*d%l,P=(0,o.pow2)(A,a,l)*y%l,x=(0,o.pow2)(P,r,l)*c%l,O=(0,o.pow2)(x,h,l);if(!g.eql(g.sqr(O),e))throw Error("Cannot find square root");return O}let g=(0,o.Field)(l,void 0,void 0,{sqrt:m});t.secp256k1=(0,c.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),a=p(t*e,d),s=p(-r*e,d),u=(0,o.mod)(e-a*t-s*n,d),c=(0,o.mod)(-a*r-s*t,d),l=u>i,h=c>i;if(l&&(u=d-u),h&&(c=d-c),u>i||c>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:l,k1:u,k2neg:h,k2:c}}}},n.sha256);let y=BigInt(0),b=e=>"bigint"==typeof e&&y"bigint"==typeof e&&ye.charCodeAt(0)));r=(0,s.concatBytes)(t,t),w[e]=r}return(0,n.sha256)((0,s.concatBytes)(r,...t))}let A=e=>e.toRawBytes(!0).slice(1),P=e=>(0,s.numberToBytesBE)(e,32),x=e=>(0,o.mod)(e,l),O=e=>(0,o.mod)(e,d),C=t.secp256k1.ProjectivePoint,I=(e,t,r)=>C.BASE.multiplyAndAddUnsafe(e,t,r);function T(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=C.fromPrivateKey(r),i=n.hasEvenY()?r:O(-r);return{scalar:i,bytes:A(n)}}function S(e){if(!b(e))throw Error("bad x: need 0 < x < p");let t=x(e*e),r=x(t*e+BigInt(7)),n=m(r);n%h!==y&&(n=x(-n));let i=new C(e,n,f);return i.assertValidity(),i}function _(...e){return O((0,s.bytesToNumberBE)(E("BIP0340/challenge",...e)))}function B(e,t,r){let n=(0,s.ensureBytes)("signature",e,64),i=(0,s.ensureBytes)("message",t),o=(0,s.ensureBytes)("publicKey",r,32);try{let e=S((0,s.bytesToNumberBE)(o)),t=(0,s.bytesToNumberBE)(n.subarray(0,32));if(!b(t))return!1;let r=(0,s.bytesToNumberBE)(n.subarray(32,64));if(!v(r))return!1;let a=_(P(t),A(e),i),u=I(e,r,O(-a));if(!u||!u.hasEvenY()||u.toAffine().x!==t)return!1;return!0}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return T(e).bytes},sign:function(e,t,r=(0,i.randomBytes)(32)){let n=(0,s.ensureBytes)("message",e),{bytes:o,scalar:a}=T(t),u=(0,s.ensureBytes)("auxRand",r,32),c=P(a^(0,s.bytesToNumberBE)(E("BIP0340/aux",u))),l=E("BIP0340/nonce",c,o,n),d=O((0,s.bytesToNumberBE)(l));if(d===y)throw Error("sign failed: k is zero");let{bytes:f,scalar:h}=T(d),p=_(f,o,n),m=new Uint8Array(64);if(m.set(f,0),m.set(P(O(h+p*a)),32),!B(m,n,o))throw Error("sign: Invalid signature produced");return m},verify:B,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:S,pointToBytes:A,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:E,mod:o.mod}};let j=(0,u.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),D=(0,a.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),M=(0,u.createHasher)(t.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=D(g.create(e[0]));return j(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});t.hashToCurve=M.hashToCurve,t.encodeToCurve=M.encodeToCurve},2603:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,t){i(e);let r=t.outputLen;if(e.length>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);function s(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/4294967296|0)|0,l:0|i}}t.toBig=a,t.add=s;let u={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<>>32-r,rotlSL:(e,t,r)=>t<>>32-r,rotlBH:(e,t,r)=>t<>>64-r,rotlBL:(e,t,r)=>e<>>64-r,add:s,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/4294967296|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/4294967296|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/4294967296|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=u},80587:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},54801:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;let n=r(2603),i=r(58657),o=r(19450),[a,s,u]=[[],[],[]],c=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=l,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],a.push(2*(5*n+r)),s.push((e+1)*(e+2)/2%64);let i=c;for(let e=0;e<7;e++)(t=(t<>f)*p)%h)&d&&(i^=l<<(l<r>32?i.default.rotlBH(e,t,r):i.default.rotlSH(e,t,r),b=(e,t,r)=>r>32?i.default.rotlBL(e,t,r):i.default.rotlSL(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=y(o,a,1)^r[n],u=b(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=s[r],o=y(t,i,n),u=b(t,i,n),c=a[r];t=e[c],i=e[c+1],e[c]=o,e[c+1]=u}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=m[n],e[1]^=g[n]}r.fill(0)}t.keccakP=v;class w extends o.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){n.default.exists(this);let{blockLen:t,state:r}=this;e=(0,o.toBytes)(e);let i=e.length;for(let n=0;n=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return n.default.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(n.default.output(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=w;let E=(e,t,r)=>(0,o.wrapConstructor)(()=>new w(t,e,r));t.sha3_224=E(6,144,28),t.sha3_256=E(6,136,32),t.sha3_384=E(6,104,48),t.sha3_512=E(6,72,64),t.keccak_224=E(1,144,28),t.keccak_256=E(1,136,32),t.keccak_384=E(1,104,48),t.keccak_512=E(1,72,64);let A=(e,t,r)=>(0,o.wrapConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=A(31,168,16),t.shake256=A(31,136,32)},19450:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(80587),i=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u8=i;let o=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.u32=o;let a=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.createView=a,t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");let t="";for(let r=0;r{};async function c(e,r,n){let i=Date.now();for(let o=0;o=0&&ee instanceof Uint8Array))throw Error("Uint8Array list expected");if(1===e.length)return e[0];let t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);for(let t=0,n=0;t"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||!f(t)))throw TypeError("Options should be object or undefined");let r=Object.assign(e,t);return r},t.wrapConstructor=function(e){let t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(d(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},53237:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,t){i(e);let r=t.outputLen;if(e.lengtho-s&&(this.process(r,0),s=0);for(let e=s;e>i&o),s=Number(r&o);e.setUint32(t+(n?4:0),a,n),e.setUint32(t+(n?0:4),s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);let u=(0,i.createView)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,d=this.get();if(l>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;eo?e.create().update(r).digest():r);for(let e=0;enew o(e,t).update(r).digest();t.hmac=a,t.hmac.create=(e,t)=>new o(e,t)},84120:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;let n=r(73965),i=r(6028),o=(e,t,r)=>e&t^~e&r,a=(e,t,r)=>e&t^e&r^t&r,s=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3],this.E=0|u[4],this.F=0|u[5],this.G=0|u[6],this.H=0|u[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],n=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,o=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;c[e]=o+c[e-7]+n+c[e-16]|0}let{A:r,B:n,C:u,D:l,E:d,F:f,G:h,H:p}=this;for(let e=0;e<64;e++){let t=(0,i.rotr)(d,6)^(0,i.rotr)(d,11)^(0,i.rotr)(d,25),m=p+t+o(d,f,h)+s[e]+c[e]|0,g=(0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22),y=g+a(r,n,u)|0;p=h,h=f,f=d,d=l+m|0,l=u,u=n,n=r,r=m+y|0}r=r+this.A|0,n=n+this.B|0,u=u+this.C|0,l=l+this.D|0,d=d+this.E|0,f=f+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,n,u,l,d,f,h,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class d extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)(()=>new l),t.sha224=(0,i.wrapConstructor)(()=>new d)},6028:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(81153),i=e=>e instanceof Uint8Array,o=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u8=o;let a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.u32=a;let s=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.createView=s,t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){if(!i(e))throw Error("Uint8Array expected");let t="";for(let r=0;r{};async function l(e,r,n){let i=Date.now();for(let o=0;o=0&&ee+t.length,0)),r=0;return e.forEach(e=>{if(!i(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t},t.Hash=class{clone(){return this._cloneInto()}};let h=e=>"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||!h(t)))throw Error("Options should be object or undefined");let r=Object.assign(e,t);return r},t.wrapConstructor=function(e){let t=t=>e().update(f(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},42917:function(e,t,r){"use strict";t.N=void 0;var n=r(93321);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return n.SafeAppProvider}})},93321:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppProvider=void 0;let n=r(11293),i=r(98071);class o extends n.EventEmitter{constructor(e,t){super(),this.submittedTxs=new Map,this.safe=e,this.sdk=t}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(e){let{method:t,params:r=[]}=e;switch(t){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{let[e,t]=r;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw Error("The address or message hash is invalid");let n=await this.sdk.txs.signMessage(e),i="signature"in n?n.signature:void 0;return i||"0x"}case"eth_sign":{let[e,t]=r;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase()||!t.startsWith("0x"))throw Error("The address or message hash is invalid");let n=await this.sdk.txs.signMessage(t),i="signature"in n?n.signature:void 0;return i||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{let[e,t]=r,n="string"==typeof t?JSON.parse(t):t;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase())throw Error("The address is invalid");let i=await this.sdk.txs.signTypedMessage(n),o="signature"in i?i.signature:void 0;return o||"0x"}case"eth_sendTransaction":let n=Object.assign({value:"0",data:"0x"},r[0]);"string"==typeof n.gas&&n.gas.startsWith("0x")&&(n.gas=parseInt(n.gas,16));let o=await this.sdk.txs.send({txs:[n],params:{safeTxGas:n.gas}});return this.submittedTxs.set(o.safeTxHash,{from:this.safe.safeAddress,hash:o.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:n.data,value:n.value,to:n.to,blockHash:null,blockNumber:null,transactionIndex:null}),o.safeTxHash;case"eth_blockNumber":let a=await this.sdk.eth.getBlockByNumber(["latest"]);return a.number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,i.getLowerCase)(r[0]),r[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,i.getLowerCase)(r[0]),r[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,i.getLowerCase)(r[0]),r[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,i.getLowerCase)(r[0]),r[1],r[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([r[0],r[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([r[0],r[1]]);case"eth_getTransactionByHash":let s=r[0];try{let e=await this.sdk.txs.getBySafeTxHash(s);s=e.txHash||s}catch(e){}if(this.submittedTxs.has(s))return this.submittedTxs.get(s);return this.sdk.eth.getTransactionByHash([s]).then(e=>(e&&(e.hash=r[0]),e));case"eth_getTransactionReceipt":{let e=r[0];try{let t=await this.sdk.txs.getBySafeTxHash(e);e=t.txHash||e}catch(e){}return this.sdk.eth.getTransactionReceipt([e]).then(e=>(e&&(e.transactionHash=r[0]),e))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(r[0]);case"eth_call":return this.sdk.eth.call([r[0],r[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([r[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(r[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([r[0]]);default:throw Error(`"${e.method}" not implemented`)}}send(e,t){e||t("Undefined request"),this.request(e).then(r=>t(null,{jsonrpc:"2.0",id:e.id,result:r})).catch(e=>t(e,null))}}t.SafeAppProvider=o},98071:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLowerCase=void 0,t.getLowerCase=function(e){return e?e.toLowerCase():e}},80855:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});let o=r(30684);t.default=class{constructor(e=null,t=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer="undefined"==typeof window,this.isValidMessage=({origin:e,data:t,source:r})=>{let n=!this.isServer&&r===window.parent,i=void 0!==t.version&&parseInt(t.version.split(".")[0]),o=!0;return Array.isArray(this.allowedOrigins)&&(o=void 0!==this.allowedOrigins.find(t=>t.test(e))),!!t&&n&&i>=1&&o},this.logIncomingMessage=e=>{console.info(`Safe Apps SDK v1: A message was received from origin ${e.origin}. `,e.data)},this.onParentMessage=e=>{this.isValidMessage(e)&&(this.debugMode&&this.logIncomingMessage(e),this.handleIncomingMessage(e.data))},this.handleIncomingMessage=e=>{let{id:t}=e,r=this.callbacks.get(t);r&&(r(e),this.callbacks.delete(t))},this.send=(e,t)=>{let r=o.MessageFormatter.makeRequest(e,t);if(this.isServer)throw Error("Window doesn't exist");return window.parent.postMessage(r,"*"),new Promise((e,t)=>{this.callbacks.set(r.id,r=>{if(!r.success){t(Error(r.error));return}e(r)})})},this.allowedOrigins=e,this.debugMode=t,this.isServer||window.addEventListener("message",this.onParentMessage)}},i(r(85946),t)},30684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageFormatter=void 0;let n=r(91586),i=r(8707);class o{}t.MessageFormatter=o,o.makeRequest=(e,t)=>{let r=(0,i.generateRequestId)();return{id:r,method:e,params:t,env:{sdkVersion:(0,n.getSDKVersion)()}}},o.makeResponse=(e,t,r)=>({id:e,success:!0,version:r,data:t}),o.makeErrorResponse=(e,t,r)=>({id:e,success:!1,error:t,version:r})},85946:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictedMethods=t.Methods=void 0,(r=t.Methods||(t.Methods={})).sendTransactions="sendTransactions",r.rpcCall="rpcCall",r.getChainInfo="getChainInfo",r.getSafeInfo="getSafeInfo",r.getTxBySafeTxHash="getTxBySafeTxHash",r.getSafeBalances="getSafeBalances",r.signMessage="signMessage",r.signTypedMessage="signTypedMessage",r.getEnvironmentInfo="getEnvironmentInfo",r.getOffChainSignature="getOffChainSignature",r.requestAddressBook="requestAddressBook",r.wallet_getPermissions="wallet_getPermissions",r.wallet_requestPermissions="wallet_requestPermissions",(t.RestrictedMethods||(t.RestrictedMethods={})).requestAddressBook="requestAddressBook"},8707:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRequestId=void 0;let r=e=>e.toString(16).padStart(2,"0"),n=e=>{let t=new Uint8Array((e||40)/2);return window.crypto.getRandomValues(t),Array.from(t,r).join("")},i=()=>"undefined"!=typeof window?n(10):new Date().getTime().toString(36);t.generateRequestId=i},83944:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(24295),i=r(95726),o=(e,t)=>t.some(t=>t.parentCapability===e),a=()=>(e,t,r)=>{let a=r.value;return r.value=async function(){let e=new n.Wallet(this.communicator),r=await e.getPermissions();if(o(t,r)||(r=await e.requestPermissions([{[t]:{}}])),!o(t,r))throw new i.PermissionsError("Permissions rejected",i.PERMISSIONS_REQUEST_REJECTED);return a.apply(this)},r};t.default=a},39947:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPC_CALLS=void 0,t.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}},12980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Eth=void 0;let n=r(39947),i=r(85946),o={defaultBlockParam:(e="latest")=>e,returnFullTxObjectParam:(e=!1)=>e,blockNumberToHex:e=>Number.isInteger(e)?`0x${e.toString(16)}`:e};t.Eth=class{constructor(e){this.communicator=e,this.call=this.buildRequest({call:n.RPC_CALLS.eth_call,formatters:[null,o.defaultBlockParam]}),this.getBalance=this.buildRequest({call:n.RPC_CALLS.eth_getBalance,formatters:[null,o.defaultBlockParam]}),this.getCode=this.buildRequest({call:n.RPC_CALLS.eth_getCode,formatters:[null,o.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:n.RPC_CALLS.eth_getStorageAt,formatters:[null,o.blockNumberToHex,o.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:n.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:n.RPC_CALLS.eth_getBlockByHash,formatters:[null,o.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:n.RPC_CALLS.eth_getBlockByNumber,formatters:[o.blockNumberToHex,o.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionCount,formatters:[null,o.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:n.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=e=>this.buildRequest({call:n.RPC_CALLS.eth_estimateGas})([e]),this.setSafeSettings=this.buildRequest({call:n.RPC_CALLS.safe_setSettings})}buildRequest(e){let{call:t,formatters:r}=e;return async e=>{r&&Array.isArray(e)&&r.forEach((t,r)=>{t&&(e[r]=t(e[r]))});let n=await this.communicator.send(i.Methods.rpcCall,{call:t,params:e||[]});return n.data}}}},22409:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;let a=o(r(67e3));t.default=a.default,i(r(67e3),t),i(r(80719),t),i(r(85946),t),i(r(30684),t);var s=r(91586);Object.defineProperty(t,"getSDKVersion",{enumerable:!0,get:function(){return s.getSDKVersion}})},29363:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Safe=void 0;let o=r(53835),a=r(27088),s=r(85946),u=r(39947),c=r(80719),l=i(r(83944));class d{constructor(e){this.communicator=e}async getChainInfo(){let e=await this.communicator.send(s.Methods.getChainInfo,void 0);return e.data}async getInfo(){let e=await this.communicator.send(s.Methods.getSafeInfo,void 0);return e.data}async experimental_getBalances({currency:e="usd"}={}){let t=await this.communicator.send(s.Methods.getSafeBalances,{currency:e});return t.data}async check1271Signature(e,t="0x"){let r=await this.getInfo(),n=(0,o.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:u.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:n},"latest"]};try{let e=await this.communicator.send(s.Methods.rpcCall,i);return e.data.slice(0,10).toLowerCase()===a.MAGIC_VALUE}catch(e){return!1}}async check1271SignatureBytes(e,t="0x"){let r=await this.getInfo(),n=(0,o.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:u.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:n},"latest"]};try{let e=await this.communicator.send(s.Methods.rpcCall,i);return e.data.slice(0,10).toLowerCase()===a.MAGIC_VALUE_BYTES}catch(e){return!1}}calculateMessageHash(e){return(0,o.hashMessage)(e)}calculateTypedMessageHash(e){let t="object"==typeof e.domain.chainId?e.domain.chainId.toNumber():Number(e.domain.chainId),r=e.primaryType;if(!r){let t=Object.values(e.types),n=Object.keys(e.types).filter(e=>t.every(t=>t.every(({type:t})=>t.replace("[","").replace("]","")!==e)));if(0===n.length||n.length>1)throw Error("Please specify primaryType");r=n[0]}return(0,o.hashTypedData)({message:e.message,domain:Object.assign(Object.assign({},e.domain),{chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt}),types:e.types,primaryType:r})}async getOffChainSignature(e){let t=await this.communicator.send(s.Methods.getOffChainSignature,e);return t.data}async isMessageSigned(e,t="0x"){let r;if("string"==typeof e&&(r=async()=>{let r=this.calculateMessageHash(e),n=await this.isMessageHashSigned(r,t);return n}),(0,c.isObjectEIP712TypedData)(e)&&(r=async()=>{let r=this.calculateTypedMessageHash(e),n=await this.isMessageHashSigned(r,t);return n}),r){let e=await r();return e}throw Error("Invalid message type")}async isMessageHashSigned(e,t="0x"){let r=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(let n of r){let r=await n(e,t);if(r)return!0}return!1}async getEnvironmentInfo(){let e=await this.communicator.send(s.Methods.getEnvironmentInfo,void 0);return e.data}async requestAddressBook(){let e=await this.communicator.send(s.Methods.requestAddressBook,void 0);return e.data}}n([(0,l.default)()],d.prototype,"requestAddressBook",null),t.Safe=d},27088:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAGIC_VALUE_BYTES=t.MAGIC_VALUE=void 0,t.MAGIC_VALUE="0x1626ba7e",t.MAGIC_VALUE_BYTES="0x20c13b0b"},67e3:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=n(r(80855)),o=r(19090),a=r(12980),s=r(29363),u=r(24295);t.default=class{constructor(e={}){let{allowedDomains:t=null,debug:r=!1}=e;this.communicator=new i.default(t,r),this.eth=new a.Eth(this.communicator),this.txs=new o.TXs(this.communicator),this.safe=new s.Safe(this.communicator),this.wallet=new u.Wallet(this.communicator)}}},19090:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TXs=void 0;let n=r(85946),i=r(80719);t.TXs=class{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw Error("Invalid safeTxHash");let t=await this.communicator.send(n.Methods.getTxBySafeTxHash,{safeTxHash:e});return t.data}async signMessage(e){let t=await this.communicator.send(n.Methods.signMessage,{message:e});return t.data}async signTypedMessage(e){if(!(0,i.isObjectEIP712TypedData)(e))throw Error("Invalid typed data");let t=await this.communicator.send(n.Methods.signTypedMessage,{typedData:e});return t.data}async send({txs:e,params:t}){if(!e||!e.length)throw Error("No transactions were passed");let r=await this.communicator.send(n.Methods.sendTransactions,{txs:e,params:t});return r.data}}},84324:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferDirection=t.TransactionStatus=t.TokenType=t.Operation=void 0;var n=r(42415);Object.defineProperty(t,"Operation",{enumerable:!0,get:function(){return n.Operation}}),Object.defineProperty(t,"TokenType",{enumerable:!0,get:function(){return n.TokenType}}),Object.defineProperty(t,"TransactionStatus",{enumerable:!0,get:function(){return n.TransactionStatus}}),Object.defineProperty(t,"TransferDirection",{enumerable:!0,get:function(){return n.TransferDirection}})},80719:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(85985),t),i(r(51634),t),i(r(84324),t),i(r(83988),t)},83988:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(85946)},95726:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionsError=t.PERMISSIONS_REQUEST_REJECTED=void 0,t.PERMISSIONS_REQUEST_REJECTED=4001;class r extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n,Object.setPrototypeOf(this,r.prototype)}}t.PermissionsError=r},51634:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85985:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectEIP712TypedData=void 0,t.isObjectEIP712TypedData=e=>"object"==typeof e&&null!=e&&"domain"in e&&"types"in e&&"message"in e},91586:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;let i=n(r(7235)),o=()=>i.default.version.split("-")[0];t.getSDKVersion=o},24295:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;let n=r(85946),i=r(95726);t.Wallet=class{constructor(e){this.communicator=e}async getPermissions(){let e=await this.communicator.send(n.Methods.wallet_getPermissions,void 0);return e.data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new i.PermissionsError("Permissions request is invalid",i.PERMISSIONS_REQUEST_REJECTED);try{let t=await this.communicator.send(n.Methods.wallet_requestPermissions,e);return t.data}catch(e){throw new i.PermissionsError("Permissions rejected",i.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(e=>"object"==typeof e&&Object.keys(e).every(e=>!!Object.values(n.RestrictedMethods).includes(e)))}}},6604:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BASE_URL=void 0,t.DEFAULT_BASE_URL="https://safe-client.safe.global"},8891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEndpoint=t.postEndpoint=void 0;let n=r(439);function i(e,t,r,i){let o=(0,n.insertParams)(t,r),a=(0,n.stringifyQuery)(i);return`${e}${o}${a}`}t.postEndpoint=function(e,t,r){let o=i(e,t,null==r?void 0:r.path,null==r?void 0:r.query);return(0,n.fetchData)(o,null==r?void 0:r.body)},t.getEndpoint=function(e,t,r,o){if(o)return(0,n.fetchData)(o);let a=i(e,t,null==r?void 0:r.path,null==r?void 0:r.query);return(0,n.fetchData)(a)}},42415:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.getDelegates=t.confirmSafeMessage=t.proposeSafeMessage=t.getSafeMessage=t.getSafeMessages=t.getDecodedData=t.getMasterCopies=t.getSafeApps=t.getChainConfig=t.getChainsConfig=t.proposeTransaction=t.postSafeGasEstimation=t.getTransactionDetails=t.getTransactionQueue=t.getTransactionHistory=t.getCollectiblesPage=t.getCollectibles=t.getOwnedSafes=t.getFiatCurrencies=t.getBalances=t.getMultisigTransactions=t.getModuleTransactions=t.getIncomingTransfers=t.getSafeInfo=t.setBaseUrl=void 0;let o=r(8891),a=r(6604);i(r(26598),t),i(r(86408),t),i(r(56570),t),i(r(28671),t),i(r(44343),t),i(r(97200),t),i(r(63298),t),i(r(21280),t);let s=a.DEFAULT_BASE_URL,u=e=>{s=e};t.setBaseUrl=u,t.getSafeInfo=function(e,t){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:e,address:t}})},t.getIncomingTransfers=function(e,t,r,n){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:e,address:t},query:r},n)},t.getModuleTransactions=function(e,t,r,n){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:e,address:t},query:r},n)},t.getMultisigTransactions=function(e,t,r,n){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:e,address:t},query:r},n)},t.getBalances=function(e,t,r="usd",n={}){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:e,address:t,currency:r},query:n})},t.getFiatCurrencies=function(){return(0,o.getEndpoint)(s,"/v1/balances/supported-fiat-codes")},t.getOwnedSafes=function(e,t){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:e,address:t}})},t.getCollectibles=function(e,t,r={}){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:t},query:r})},t.getCollectiblesPage=function(e,t,r={},n){return(0,o.getEndpoint)(s,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:t},query:r},n)},t.getTransactionHistory=function(e,t,r){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:e,safe_address:t},query:{}},r)},t.getTransactionQueue=function(e,t,r,n){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:e,safe_address:t},query:{trusted:n}},r)},t.getTransactionDetails=function(e,t){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:e,transactionId:t}})},t.postSafeGasEstimation=function(e,t,r){return(0,o.postEndpoint)(s,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:e,safe_address:t},body:r})},t.proposeTransaction=function(e,t,r){return(0,o.postEndpoint)(s,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:e,safe_address:t},body:r})},t.getChainsConfig=function(e){return(0,o.getEndpoint)(s,"/v1/chains",{query:e})},t.getChainConfig=function(e){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}",{path:{chainId:e}})},t.getSafeApps=function(e,t={}){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safe-apps",{path:{chainId:e},query:t})},t.getMasterCopies=function(e){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:e}})},t.getDecodedData=function(e,t,r){return(0,o.postEndpoint)(s,"/v1/chains/{chainId}/data-decoder",{path:{chainId:e},body:{data:t,to:r}})},t.getSafeMessages=function(e,t,r){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:e,safe_address:t},query:{}},r)},t.getSafeMessage=function(e,t){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:e,message_hash:t}})},t.proposeSafeMessage=function(e,t,r){return(0,o.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:e,safe_address:t},body:r})},t.confirmSafeMessage=function(e,t,r){return(0,o.postEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:e,message_hash:t},body:r})},t.getDelegates=function(e,t={}){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/delegates",{path:{chainId:e},query:t})}},28671:function(e,t){"use strict";var r,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURES=t.GAS_PRICE_TYPE=t.RPC_AUTHENTICATION=void 0,(r=t.RPC_AUTHENTICATION||(t.RPC_AUTHENTICATION={})).API_KEY_PATH="API_KEY_PATH",r.NO_AUTHENTICATION="NO_AUTHENTICATION",r.UNKNOWN="UNKNOWN",(n=t.GAS_PRICE_TYPE||(t.GAS_PRICE_TYPE={})).ORACLE="ORACLE",n.FIXED="FIXED",n.FIXED_1559="FIXED1559",n.UNKNOWN="UNKNOWN",(i=t.FEATURES||(t.FEATURES={})).ERC721="ERC721",i.SAFE_APPS="SAFE_APPS",i.CONTRACT_INTERACTION="CONTRACT_INTERACTION",i.DOMAIN_LOOKUP="DOMAIN_LOOKUP",i.SPENDING_LIMIT="SPENDING_LIMIT",i.EIP1559="EIP1559",i.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",i.TX_SIMULATION="TX_SIMULATION",i.EIP1271="EIP1271"},44343:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenType=void 0,(r=t.TokenType||(t.TokenType={})).ERC20="ERC20",r.ERC721="ERC721",r.NATIVE_TOKEN="NATIVE_TOKEN"},63298:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},97200:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},86408:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppSocialPlatforms=t.SafeAppFeatures=t.SafeAppAccessPolicyTypes=void 0,(r=t.SafeAppAccessPolicyTypes||(t.SafeAppAccessPolicyTypes={})).NoRestrictions="NO_RESTRICTIONS",r.DomainAllowlist="DOMAIN_ALLOWLIST",(t.SafeAppFeatures||(t.SafeAppFeatures={})).BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS",(n=t.SafeAppSocialPlatforms||(t.SafeAppSocialPlatforms={})).TWITTER="TWITTER",n.GITHUB="GITHUB",n.DISCORD="DISCORD"},26598:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationVersionState=void 0,(r=t.ImplementationVersionState||(t.ImplementationVersionState={})).UP_TO_DATE="UP_TO_DATE",r.OUTDATED="OUTDATED",r.UNKNOWN="UNKNOWN"},21280:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SafeMessageStatus=t.SafeMessageListItemType=void 0,(r=t.SafeMessageListItemType||(t.SafeMessageListItemType={})).DATE_LABEL="DATE_LABEL",r.MESSAGE="MESSAGE",(n=t.SafeMessageStatus||(t.SafeMessageStatus={})).NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",n.CONFIRMED="CONFIRMED"},56570:function(e,t){"use strict";var r,n,i,o,a,s,u,c,l,d;Object.defineProperty(t,"__esModule",{value:!0}),t.LabelValue=t.DetailedExecutionInfoType=t.TransactionListItemType=t.ConflictType=t.TransactionInfoType=t.SettingsInfoType=t.TransactionTokenType=t.TransferDirection=t.TransactionStatus=t.Operation=void 0,(r=t.Operation||(t.Operation={}))[r.CALL=0]="CALL",r[r.DELEGATE=1]="DELEGATE",(n=t.TransactionStatus||(t.TransactionStatus={})).AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",n.AWAITING_EXECUTION="AWAITING_EXECUTION",n.CANCELLED="CANCELLED",n.FAILED="FAILED",n.SUCCESS="SUCCESS",(i=t.TransferDirection||(t.TransferDirection={})).INCOMING="INCOMING",i.OUTGOING="OUTGOING",i.UNKNOWN="UNKNOWN",(o=t.TransactionTokenType||(t.TransactionTokenType={})).ERC20="ERC20",o.ERC721="ERC721",o.NATIVE_COIN="NATIVE_COIN",(a=t.SettingsInfoType||(t.SettingsInfoType={})).SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",a.ADD_OWNER="ADD_OWNER",a.REMOVE_OWNER="REMOVE_OWNER",a.SWAP_OWNER="SWAP_OWNER",a.CHANGE_THRESHOLD="CHANGE_THRESHOLD",a.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",a.ENABLE_MODULE="ENABLE_MODULE",a.DISABLE_MODULE="DISABLE_MODULE",a.SET_GUARD="SET_GUARD",a.DELETE_GUARD="DELETE_GUARD",(s=t.TransactionInfoType||(t.TransactionInfoType={})).TRANSFER="Transfer",s.SETTINGS_CHANGE="SettingsChange",s.CUSTOM="Custom",s.CREATION="Creation",(u=t.ConflictType||(t.ConflictType={})).NONE="None",u.HAS_NEXT="HasNext",u.END="End",(c=t.TransactionListItemType||(t.TransactionListItemType={})).TRANSACTION="TRANSACTION",c.LABEL="LABEL",c.CONFLICT_HEADER="CONFLICT_HEADER",c.DATE_LABEL="DATE_LABEL",(l=t.DetailedExecutionInfoType||(t.DetailedExecutionInfoType={})).MULTISIG="MULTISIG",l.MODULE="MODULE",(d=t.LabelValue||(t.LabelValue={})).Queued="Queued",d.Next="Next"},439:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchData=t.stringifyQuery=t.insertParams=void 0;let o=i(r(59880)),a=e=>"object"==typeof e&&null!==e&&"code"in e&&"message"in e;t.insertParams=function(e,t){return t?Object.keys(t).reduce((e,r)=>{var n;return n=String(t[r]),e.replace(RegExp(`\\{${r}\\}`,"g"),n)},e):e},t.stringifyQuery=function(e){if(!e)return"";let t=new URLSearchParams;Object.keys(e).forEach(r=>{null!=e[r]&&t.append(r,String(e[r]))});let r=t.toString();return r?`?${r}`:""},t.fetchData=function(e,t){return n(this,void 0,void 0,function*(){let r,n;null!=t&&(r={method:"POST",body:"string"==typeof t?t:JSON.stringify(t),headers:{"Content-Type":"application/json"}});let i=yield(0,o.default)(e,r);try{n=yield i.json()}catch(e){if(i.headers&&"0"!==i.headers.get("content-length"))throw Error(`Invalid response content: ${i.statusText}`)}if(!i.ok){let e=a(n)?`${n.code}: ${n.message}`:i.statusText;throw Error(e)}return n})}},80198:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34991);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function u(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),l(e/4294967296>>>0,t,r),l(e>>>0,t,r+4),t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=u,t.readUint32LE=c,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=a(e,t),n=a(e,t+4);return 4294967296*r+n-(n>>31)*4294967296},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=u(e,t);return 4294967296*u(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r},t.writeUint64BE=f,t.writeInt64BE=f,t.writeUint64LE=h,t.writeInt64LE=h,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o=i;a--)r[a]=t/o&255,o*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var o=1,a=i;a16)throw Error("ChaCha20Poly1305: incorrect nonce length");var a,s=new Uint8Array(16);s.set(e,s.length-e.length);var u=new Uint8Array(32);n.stream(this._key,s,u,4);var c=t.length+this.tagLength;if(i){if(i.length!==c)throw Error("ChaCha20Poly1305: incorrect destination length");a=i}else a=new Uint8Array(c);return n.streamXOR(this._key,s,t,a,4),this._authenticate(a.subarray(a.length-this.tagLength,a.length),u,a.subarray(0,a.length-this.tagLength),r),o.wipe(s),a},e.prototype.open=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&s.update(u.subarray(n.length%16))),s.update(r),r.length%16>0&&s.update(u.subarray(r.length%16));var c=new Uint8Array(8);n&&a.writeUint64LE(n.length,c),s.update(c),a.writeUint64LE(r.length,c),s.update(c);for(var l=s.digest(),d=0;d>>16|T<<16)|0,w=w>>>20|w<<12,S^=y=y+E|0,E^=O=O+(S=S>>>16|S<<16)|0,E=E>>>20|E<<12,_^=b=b+A|0,A^=C=C+(_=_>>>16|_<<16)|0,A=A>>>20|A<<12,B^=v=v+P|0,P^=I=I+(B=B>>>16|B<<16)|0,P=P>>>20|P<<12,_^=b=b+A|0,A^=C=C+(_=_>>>24|_<<8)|0,A=A>>>25|A<<7,B^=v=v+P|0,P^=I=I+(B=B>>>24|B<<8)|0,P=P>>>25|P<<7,S^=y=y+E|0,E^=O=O+(S=S>>>24|S<<8)|0,E=E>>>25|E<<7,T^=g=g+w|0,w^=x=x+(T=T>>>24|T<<8)|0,w=w>>>25|w<<7,B^=g=g+E|0,E^=C=C+(B=B>>>16|B<<16)|0,E=E>>>20|E<<12,T^=y=y+A|0,A^=I=I+(T=T>>>16|T<<16)|0,A=A>>>20|A<<12,S^=b=b+P|0,P^=x=x+(S=S>>>16|S<<16)|0,P=P>>>20|P<<12,_^=v=v+w|0,w^=O=O+(_=_>>>16|_<<16)|0,w=w>>>20|w<<12,S^=b=b+P|0,P^=x=x+(S=S>>>24|S<<8)|0,P=P>>>25|P<<7,_^=v=v+w|0,w^=O=O+(_=_>>>24|_<<8)|0,w=w>>>25|w<<7,T^=y=y+A|0,A^=I=I+(T=T>>>24|T<<8)|0,A=A>>>25|A<<7,B^=g=g+E|0,E^=C=C+(B=B>>>24|B<<8)|0,E=E>>>25|E<<7;n.writeUint32LE(g+1634760805|0,e,0),n.writeUint32LE(y+857760878|0,e,4),n.writeUint32LE(b+2036477234|0,e,8),n.writeUint32LE(v+1797285236|0,e,12),n.writeUint32LE(w+i|0,e,16),n.writeUint32LE(E+o|0,e,20),n.writeUint32LE(A+a|0,e,24),n.writeUint32LE(P+s|0,e,28),n.writeUint32LE(x+u|0,e,32),n.writeUint32LE(O+c|0,e,36),n.writeUint32LE(C+l|0,e,40),n.writeUint32LE(I+d|0,e,44),n.writeUint32LE(T+f|0,e,48),n.writeUint32LE(S+h|0,e,52),n.writeUint32LE(_+p|0,e,56),n.writeUint32LE(B+m|0,e,60)}(c,s,e);for(var d=l;d>>=8,t++;if(n>0)throw Error("ChaCha: counter overflow")}(s,0,u)}return i.wipe(c),0===a&&i.wipe(s),o}t.streamXOR=o,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),o(e,t,r,r,n)}},95734:function(e,t){"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},26036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},88010:function(e,t,r){"use strict";var n=r(93275),i=r(88595),o=function(){function e(e,t,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=n.hmac(this._hash,r,t);this._hmac=new n.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;rthis.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},93472:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(95734),i=r(88595);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=e[4]|e[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=e[6]|e[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var a=e[8]|e[9]<<8;this._r[4]=(o>>>4|a<<12)&255,this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=(a>>>14|s<<2)&8191;var u=e[12]|e[13]<<8;this._r[7]=(s>>>11|u<<5)&8065;var c=e[14]|e[15]<<8;this._r[8]=(u>>>8|c<<8)&8191,this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],u=this._h[4],c=this._h[5],l=this._h[6],d=this._h[7],f=this._h[8],h=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],b=this._r[4],v=this._r[5],w=this._r[6],E=this._r[7],A=this._r[8],P=this._r[9];r>=16;){var x,O=e[t+0]|e[t+1]<<8;i+=8191&O;var C=e[t+2]|e[t+3]<<8;o+=(O>>>13|C<<3)&8191;var I=e[t+4]|e[t+5]<<8;a+=(C>>>10|I<<6)&8191;var T=e[t+6]|e[t+7]<<8;s+=(I>>>7|T<<9)&8191;var S=e[t+8]|e[t+9]<<8;u+=(T>>>4|S<<12)&8191,c+=S>>>1&8191;var _=e[t+10]|e[t+11]<<8;l+=(S>>>14|_<<2)&8191;var B=e[t+12]|e[t+13]<<8;d+=(_>>>11|B<<5)&8191;var j=e[t+14]|e[t+15]<<8;f+=(B>>>8|j<<8)&8191,h+=j>>>5|n;var D=0;D=(x=0+i*p+o*(5*P)+a*(5*A)+s*(5*E)+u*(5*w))>>>13,x&=8191,x+=c*(5*v)+l*(5*b)+d*(5*y)+f*(5*g)+h*(5*m),D+=x>>>13,x&=8191;var M=D;M+=i*m+o*p+a*(5*P)+s*(5*A)+u*(5*E),D=M>>>13,M&=8191,M+=c*(5*w)+l*(5*v)+d*(5*b)+f*(5*y)+h*(5*g),D+=M>>>13,M&=8191;var R=D;R+=i*g+o*m+a*p+s*(5*P)+u*(5*A),D=R>>>13,R&=8191,R+=c*(5*E)+l*(5*w)+d*(5*v)+f*(5*b)+h*(5*y),D+=R>>>13,R&=8191;var k=D;k+=i*y+o*g+a*m+s*p+u*(5*P),D=k>>>13,k&=8191,k+=c*(5*A)+l*(5*E)+d*(5*w)+f*(5*v)+h*(5*b),D+=k>>>13,k&=8191;var N=D;N+=i*b+o*y+a*g+s*m+u*p,D=N>>>13,N&=8191,N+=c*(5*P)+l*(5*A)+d*(5*E)+f*(5*w)+h*(5*v),D+=N>>>13,N&=8191;var U=D;U+=i*v+o*b+a*y+s*g+u*m,D=U>>>13,U&=8191,U+=c*p+l*(5*P)+d*(5*A)+f*(5*E)+h*(5*w),D+=U>>>13,U&=8191;var L=D;L+=i*w+o*v+a*b+s*y+u*g,D=L>>>13,L&=8191,L+=c*m+l*p+d*(5*P)+f*(5*A)+h*(5*E),D+=L>>>13,L&=8191;var F=D;F+=i*E+o*w+a*v+s*b+u*y,D=F>>>13,F&=8191,F+=c*g+l*m+d*p+f*(5*P)+h*(5*A),D+=F>>>13,F&=8191;var H=D;H+=i*A+o*E+a*w+s*v+u*b,D=H>>>13,H&=8191,H+=c*y+l*g+d*m+f*p+h*(5*P),D+=H>>>13,H&=8191;var q=D;q+=i*P+o*A+a*E+s*w+u*v,D=q>>>13,q&=8191,q+=c*b+l*y+d*g+f*m+h*p,D+=q>>>13,q&=8191,x=8191&(D=(D=(D<<2)+D|0)+x|0),D>>>=13,M+=D,i=x,o=M,a=R,s=k,u=N,c=U,l=L,d=F,f=H,h=q,t+=16,r-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=u,this._h[5]=c,this._h[6]=l,this._h[7]=d,this._h[8]=f,this._h[9]=h},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(o=0,n=~n;o<10;o++)this._h[o]=this._h[o]&n|a[o];for(o=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,i=this._h[0]+this._pad[0],this._h[0]=65535&i;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(var i=0;i256)throw Error("randomString charset is too long");let i="",u=r.length,c=256-256%u;for(;e>0;){let t=a(Math.ceil(256*e/c),n);for(let n=0;n0;n++){let o=t[n];o0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=s(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%64<56?64:128;this._buffer[r]=128;for(var o=r+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,r,i,o){for(;o>=64;){for(var s=t[0],u=t[1],c=t[2],l=t[3],d=t[4],f=t[5],h=t[6],p=t[7],m=0;m<16;m++){var g=i+4*m;e[m]=n.readUint32BE(r,g)}for(var m=16;m<64;m++){var y=e[m-2],b=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[m]=(b+e[m-7]|0)+(v+e[m-16]|0)}for(var m=0;m<64;m++){var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&h)|0)+(p+(a[m]+e[m]|0)|0)|0,v=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&u^s&c^u&c)|0;p=h,h=f,f=d,d=l+b|0,l=c,c=u,u=s,s=b+v|0}t[0]+=s,t[1]+=u,t[2]+=c,t[3]+=l,t[4]+=d,t[5]+=f,t[6]+=h,t[7]+=p,i+=64,o-=64}return i}t.vp=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},88595:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t=0;--e){let t=r[e>>>3]>>>(7&e)&1;c(i,a,t),c(h,p,t),l(m,i,h),d(i,i,h),l(h,a,p),d(a,a,p),f(p,m,m),f(g,i,i),f(i,h,i),f(h,a,m),l(m,i,h),d(i,i,h),f(a,i,i),d(h,p,g),f(i,h,s),l(i,i,p),f(h,h,i),f(i,p,g),f(p,a,n),f(a,m,m),c(i,a,t),c(h,p,t)}for(let e=0;e<16;e++)n[e+16]=i[e],n[e+32]=h[e],n[e+48]=a[e],n[e+64]=p[e];let y=n.subarray(32),b=n.subarray(16);!function(e,t){let r=o();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)f(r,r,r),2!==e&&4!==e&&f(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(y,y),f(b,b,y);let v=new Uint8Array(32);return!function(e,t){let r=o(),n=o();for(let e=0;e<16;e++)n[e]=t[e];u(n),u(n),u(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,c(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}(v,b),v}t.Au=function(e){let r=(0,n.randomBytes)(32,e),o=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e),n=h(r,a);return{publicKey:n,secretKey:r}}(r);return(0,i.wipe)(r),o},t.gi=function(e,r,n=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let i=h(e,r);if(n){let e=0;for(let t=0;t{setTimeout(()=>{t(!0)},e)})}},36979:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(15695);n.__exportStar(r(8634),t),n.__exportStar(r(62663),t)},54734:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e),r=t.elapsed||Date.now()-t.started;return r}}t.Watch=r,t.default=r},83160:function(e,t,r){"use strict";r.d(t,{AW:function(){return v},rV:function(){return A},gn:function(){return en},H1:function(){return J},hF:function(){return Z},WG:function(){return T},pe:function(){return _},m$:function(){return O},vB:function(){return B},HI:function(){return S},E0:function(){return eo},Gq:function(){return et},$0:function(){return W},Z4:function(){return ee},Bv:function(){return ey},Au:function(){return P},jd:function(){return x},gu:function(){return g},D:function(){return V},Z7:function(){return eM},cO:function(){return ec},_H:function(){return eu},fc:function(){return eT},D6:function(){return eR},Hh:function(){return es},Ym:function(){return C},rj:function(){return I},jU:function(){return $},gp:function(){return eS},rF:function(){return e9},Bw:function(){return ei},UG:function(){return q},xW:function(){return e$},b$:function(){return z},Ih:function(){return eH},h1:function(){return eG},Q8:function(){return M},o8:function(){return eU},qt:function(){return ek},Dd:function(){return eV},$t:function(){return e1},nf:function(){return e5},Q0:function(){return eX},in:function(){return eY},p8:function(){return e8},sI:function(){return e4},al:function(){return e3},L5:function(){return eN},EJ:function(){return e0},Z2:function(){return eJ},PM:function(){return eZ},hH:function(){return e2},ON:function(){return te},n:function(){return eQ},JT:function(){return e6},M_:function(){return eL},jv:function(){return ez},KC:function(){return Q},eG:function(){return ea},fK:function(){return eB},IP:function(){return Y},iP:function(){return er},M:function(){return e_},he:function(){return eg},Ll:function(){return j},EN:function(){return D}});var n=r(97870),i=r(88010),o=r(57955),a=r(20026),s=r(6625),u=r(17636),c=r(65389),l=r(1540),d=r(17151),f=r(91593),h=r(54523);r(41363);let p={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var m=r(40514);function g(e,t=[]){let r=[];return Object.keys(e).forEach(n=>{if(t.length&&!t.includes(n))return;let i=e[n];r.push(...i.accounts)}),r}function y(e,t){return e.includes(":")?[e]:t.chains||[]}let b="base10",v="base16",w="base64pad",E="utf8",A=1;function P(){let e=s.Au();return{privateKey:(0,u.BB)(e.secretKey,v),publicKey:(0,u.BB)(e.publicKey,v)}}function x(){let e=(0,o.randomBytes)(32);return(0,u.BB)(e,v)}function O(e,t){let r=s.gi((0,u.mL)(e,v),(0,u.mL)(t,v)),n=new i.t(a.mE,r).expand(32);return(0,u.BB)(n,v)}function C(e){let t=(0,a.vp)((0,u.mL)(e,v));return(0,u.BB)(t,v)}function I(e){let t=(0,a.vp)((0,u.mL)(e,E));return(0,u.BB)(t,v)}function T(e){return Number((0,u.BB)(e,b))}function S(e){var t;let r=(t="u">typeof e.type?e.type:0,(0,u.mL)(`${t}`,b));if(T(r)===A&&typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let i="u">typeof e.senderPublicKey?(0,u.mL)(e.senderPublicKey,v):void 0,a="u">typeof e.iv?(0,u.mL)(e.iv,v):(0,o.randomBytes)(12),s=new n.OK((0,u.mL)(e.symKey,v)).seal(a,(0,u.mL)(e.message,E));return function(e){if(T(e.type)===A){if(typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return(0,u.BB)((0,u.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),w)}return(0,u.BB)((0,u.zo)([e.type,e.iv,e.sealed]),w)}({type:r,sealed:s,iv:a,senderPublicKey:i})}function _(e){let t=new n.OK((0,u.mL)(e.symKey,v)),{sealed:r,iv:i}=B(e.encoded),o=t.open(i,r);if(null===o)throw Error("Failed to decrypt");return(0,u.BB)(o,E)}function B(e){let t=(0,u.mL)(e,w),r=t.slice(0,1);if(T(r)===A){let e=t.slice(1,33),n=t.slice(33,45),i=t.slice(45);return{type:r,sealed:i,iv:n,senderPublicKey:e}}let n=t.slice(1,13),i=t.slice(13);return{type:r,sealed:i,iv:n}}function j(e,t){let r=B(e);return D({type:T(r.type),senderPublicKey:"u">typeof r.senderPublicKey?(0,u.BB)(r.senderPublicKey,v):void 0,receiverPublicKey:t?.receiverPublicKey})}function D(e){let t=e?.type||0;if(t===A){if(typeof e?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function M(e){return e.type===A&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var R=Object.defineProperty,k=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,L=(e,t,r)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))N.call(t,r)&&L(e,r,t[r]);if(k)for(var r of k(t))U.call(t,r)&&L(e,r,t[r]);return e};let H={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function q(){return"u">typeof m&&"u">typeof m.versions&&"u">typeof m.versions.node}function z(){return!(0,d.getDocument)()&&!!(0,d.getNavigator)()&&"ReactNative"===navigator.product}function $(){return!q()&&!!(0,d.getNavigator)()}function G(){return z()?H.reactNative:q()?H.node:$()?H.browser:H.unknown}function V(){return(0,f.D)()||{name:"",description:"",url:"",icons:[""]}}function W({protocol:e,version:t,relayUrl:n,sdkVersion:i,auth:o,projectId:a,useOnCloseEvent:s}){var u;let l;let f=n.split("?"),p=function(e,t,n){let i=function(){if(G()===H.reactNative&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Platform)){let{OS:e,Version:t}=r.g.Platform;return[e,t].join("-")}let e=(0,c.qY)();if(null===e)return"unknown";let t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),o=function(){var e;let t=G();return t===H.browser?[t,(null==(e=(0,d.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),["js",n].join("-"),i,o].join("/")}(e,t,i),m=(u=f[1]||"",l=F(F({},l=h.parse(u)),{auth:o,ua:p,projectId:a,useOnCloseEvent:s||void 0}),u=h.stringify(l));return f[0]+"?"+m}function K(e,t){return e.filter(e=>t.includes(e)).length===e.length}function Q(e){return Object.fromEntries(e.entries())}function Y(e){return new Map(Object.entries(e))}function J(e=l.FIVE_MINUTES,t){let r,n,i;let o=(0,l.toMiliseconds)(e||l.FIVE_MINUTES);return{resolve:e=>{i&&r&&(clearTimeout(i),r(e))},reject:e=>{i&&n&&(clearTimeout(i),n(e))},done:()=>new Promise((e,a)=>{i=setTimeout(()=>{a(Error(t))},o),r=e,n=a})}}function Z(e,t,r){return new Promise(async(n,i)=>{let o=setTimeout(()=>i(Error(r)),t);try{let t=await e;n(t)}catch(e){i(e)}clearTimeout(o)})}function X(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw Error(`Unknown expirer target type: ${e}`)}function ee(e){return X("topic",e)}function et(e){return X("id",e)}function er(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof r)n.topic=r;else if("id"===t&&Number.isInteger(Number(r)))n.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function en(e,t){return(0,l.fromMiliseconds)((t||Date.now())+(0,l.toMiliseconds)(e))}function ei(e){return Date.now()>=(0,l.toMiliseconds)(e)}function eo(e,t){return`${e}${t?`:${t}`:""}`}function ea(e=[],t=[]){return[...new Set([...e,...t])]}async function es({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;let i="string"==typeof n?JSON.parse(n):n,o=i?.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));let a=`${o}/wc?requestId=${e}&sessionTopic=${t}`,s=G();s===H.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===H.reactNative&&"u">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(a)}catch(e){console.error(e)}}function eu(e){return e?.relay||{protocol:"irn"}}function ec(e){let t=p[e];if(typeof t>"u")throw Error(`Relay Protocol not supported: ${e}`);return t}var el=Object.defineProperty,ed=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable,ep=(e,t,r)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,em=(e,t)=>{for(var r in t||(t={}))ef.call(t,r)&&ep(e,r,t[r]);if(ed)for(var r of ed(t))eh.call(t,r)&&ep(e,r,t[r]);return e};function eg(e){var t;let r=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,i=e.substring(0,r),o=e.substring(r+1,n).split("@"),a="u">typeof n?e.substring(n):"",s=h.parse(a);return{protocol:i,topic:(t=o[0]).startsWith("//")?t.substring(2):t,version:parseInt(o[1],10),symKey:s.symKey,relay:function(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(t=>{if(t.startsWith(n)){let i=t.replace(n,""),o=e[t];r[i]=o}}),r}(s)}}function ey(e){return`${e.protocol}:${e.topic}@${e.version}?`+h.stringify(em({symKey:e.symKey},function(e,t="-"){let r={};return Object.keys(e).forEach(n=>{e[n]&&(r["relay"+t+n]=e[n])}),r}(e.relay)))}var eb=Object.defineProperty,ev=Object.defineProperties,ew=Object.getOwnPropertyDescriptors,eE=Object.getOwnPropertySymbols,eA=Object.prototype.hasOwnProperty,eP=Object.prototype.propertyIsEnumerable,ex=(e,t,r)=>t in e?eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eO=(e,t)=>{for(var r in t||(t={}))eA.call(t,r)&&ex(e,r,t[r]);if(eE)for(var r of eE(t))eP.call(t,r)&&ex(e,r,t[r]);return e},eC=(e,t)=>ev(e,ew(t));function eI(e){let t=[];return e.forEach(e=>{let[r,n]=e.split(":");t.push(`${r}:${n}`)}),t}function eT(e,t){let r=eY(e,t);if(r)throw Error(r.message);let n={};for(let[t,r]of Object.entries(e))n[t]={methods:r.methods,events:r.events,chains:r.accounts.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)};return n}function eS(e){return e.includes(":")}function e_(e){return eS(e)?e.split(":")[0]:e}function eB(e){var t,r,n;let i={};if(!eN(e))return i;for(let[o,a]of Object.entries(e)){let e=eS(o)?[o]:a.chains,s=a.methods||[],u=a.events||[],c=e_(o);i[c]=eC(eO({},i[c]),{chains:ea(e,null==(t=i[c])?void 0:t.chains),methods:ea(s,null==(r=i[c])?void 0:r.methods),events:ea(u,null==(n=i[c])?void 0:n.events)})}return i}let ej={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},eD={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function eM(e,t){let{message:r,code:n}=eD[e];return{message:t?`${r} ${t}`:r,code:n}}function eR(e,t){let{message:r,code:n}=ej[e];return{message:t?`${r} ${t}`:r,code:n}}function ek(e,t){return!!Array.isArray(e)&&(!("u">typeof t)||!e.length||e.every(t))}function eN(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function eU(e){return typeof e>"u"}function eL(e,t){return!!(t&&eU(e))||"string"==typeof e&&!!e.trim().length}function eF(e,t){return!!(t&&eU(e))||"number"==typeof e&&!isNaN(e)}function eH(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return!!K(i,n)&&(n.forEach(t=>{let{accounts:n,methods:i,events:a}=e.namespaces[t],s=eI(n),u=r[t];K(y(t,u),s)&&K(u.methods,i)&&K(u.events,a)||(o=!1)}),o)}function eq(e){return!!(eL(e,!1)&&e.includes(":"))&&2===e.split(":").length}function ez(e){if(eL(e,!1))try{return"u">typeof new URL(e)}catch{}return!1}function e$(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}function eG(e){return e?.topic}function eV(e,t){let r=null;return eL(e?.publicKey,!1)||(r=eM("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function eW(e){let t=!0;return ek(e)?e.length&&(t=e.every(e=>eL(e,!1))):t=!1,t}function eK(e,t){let r=null;return Object.values(e).forEach(e=>{var n;let i;if(r)return;let o=(n=`${t}, namespace`,i=null,eW(e?.methods)?eW(e?.events)||(i=eR("UNSUPPORTED_EVENTS",`${n}, events should be an array of strings or empty array for no events`)):i=eR("UNSUPPORTED_METHODS",`${n}, methods should be an array of strings or empty array for no methods`),i);o&&(r=o)}),r}function eQ(e,t,r){let n=null;if(e&&eN(e)){let i;let o=eK(e,t);o&&(n=o);let a=(i=null,Object.entries(e).forEach(([e,n])=>{var o,a;let s;if(i)return;let u=(o=y(e,n),a=`${t} ${r}`,s=null,ek(o)&&o.length?o.forEach(e=>{s||eq(e)||(s=eR("UNSUPPORTED_CHAINS",`${a}, chain ${e} should be a string and conform to "namespace:chainId" format`))}):eq(e)||(s=eR("UNSUPPORTED_CHAINS",`${a}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),s);u&&(i=u)}),i);a&&(n=a)}else n=eM("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function eY(e,t){let r=null;if(e&&eN(e)){let n;let i=eK(e,t);i&&(r=i);let o=(n=null,Object.values(e).forEach(e=>{var r,i;let o;if(n)return;let a=(r=e?.accounts,i=`${t} namespace`,o=null,ek(r)?r.forEach(e=>{o||function(e){if(eL(e,!1)&&e.includes(":")){let t=e.split(":");if(3===t.length){let e=t[0]+":"+t[1];return!!t[2]&&eq(e)}}return!1}(e)||(o=eR("UNSUPPORTED_ACCOUNTS",`${i}, account ${e} should be a string and conform to "namespace:chainId:address" format`))}):o=eR("UNSUPPORTED_ACCOUNTS",`${i}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),o);a&&(n=a)}),n);o&&(r=o)}else r=eM("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function eJ(e){return eL(e.protocol,!0)}function eZ(e,t){let r=!1;return t&&!e?r=!0:e&&ek(e)&&e.length&&e.forEach(e=>{r=eJ(e)}),r}function eX(e){return"number"==typeof e}function e0(e){return"u">typeof e}function e1(e){return!(!e||"object"!=typeof e||!e.code||!eF(e.code,!1)||!e.message||!eL(e.message,!1))}function e2(e){return!(eU(e)||!eL(e.method,!1))}function e6(e){return!(eU(e)||eU(e.result)&&eU(e.error)||!eF(e.id,!1)||!eL(e.jsonrpc,!1))}function e5(e){return!(eU(e)||!eL(e.name,!1))}function e8(e,t){return!(!eq(t)||!(function(e){let t=[];return Object.values(e).forEach(e=>{t.push(...eI(e.accounts))}),t})(e).includes(t))}function e3(e,t,r){return!!eL(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{eI(e.accounts).includes(t)&&r.push(...e.methods)}),r})(e,t).includes(r)}function e4(e,t,r){return!!eL(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{eI(e.accounts).includes(t)&&r.push(...e.events)}),r})(e,t).includes(r)}function e9(e,t,r){let n=null,i=function(e){let t={};return Object.keys(e).forEach(r=>{var n;r.includes(":")?t[r]=e[r]:null==(n=e[r].chains)||n.forEach(n=>{t[n]={methods:e[r].methods,events:e[r].events}})}),t}(e),o=function(e){let t={};return Object.keys(e).forEach(r=>{if(r.includes(":"))t[r]=e[r];else{let n=eI(e[r].accounts);n?.forEach(n=>{t[n]={accounts:e[r].accounts.filter(e=>e.includes(`${n}:`)),methods:e[r].methods,events:e[r].events}})}}),t}(t),a=Object.keys(i),s=Object.keys(o),u=e7(Object.keys(e)),c=e7(Object.keys(t)),l=u.filter(e=>!c.includes(e));return l.length&&(n=eM("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces. - Required: ${l.toString()} - Received: ${Object.keys(t).toString()}`)),K(a,s)||(n=eM("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces. - Required: ${a.toString()} - Approved: ${s.toString()}`)),Object.keys(t).forEach(e=>{if(!e.includes(":")||n)return;let i=eI(t[e].accounts);i.includes(e)||(n=eM("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e} - Required: ${e} - Approved: ${i.toString()}`))}),a.forEach(e=>{n||(K(i[e].methods,o[e].methods)?K(i[e].events,o[e].events)||(n=eM("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):n=eM("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))}),n}function e7(e){return[...new Set(e.map(e=>e.includes(":")?e.split(":")[0]:e))]}function te(e,t){return eF(e,!1)&&e<=t.max&&e>=t.min}},17151:function(e,t){"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},91593:function(e,t,r){"use strict";t.D=void 0;let n=r(17151);t.D=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(...t){let r=e.getElementsByTagName("meta");for(let e=0;en.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=n.getAttribute("content");if(e)return e}}return""}let o=((r=i("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),a=function(){let e=i("description","og:description","twitter:description","keywords");return e}(),s=t.origin,u=function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e-1){let e=i.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop();let i=n.join("/");r+=i+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}}return n}();return{description:a,url:s,icons:u,name:o}}},48421:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i((a+s)*3/4-s),l=0,d=s>0?a-4:a;for(r=0;r>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},78504:function(e,t,r){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */let n=r(48421),i=r(26701),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(N(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),a(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=a(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(i)return n?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(u=(31&t)<<6|63&r)>127&&(o=u);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(u=(15&t)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function E(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function A(e,t,r,n,i){_(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function P(e,t,r,n,i){_(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function x(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function O(e,t,r,n,o){return t=+t,r>>>=0,o||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function C(e,t,r,n,o){return t=+t,r>>>=0,o||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,u=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-l),this,l,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=L(function(e){B(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&j(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&j(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=L(function(e){B(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&j(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&j(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;E(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;E(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=L(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=L(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);E(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);E(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=L(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=L(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function _(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new I.ERR_OUT_OF_RANGE("value",n,e)}B(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&j(i,n.length-(o+1))}function B(e,t){if("number"!=typeof e)throw new I.ERR_INVALID_ARG_TYPE(t,"number",e)}function j(e,t,r){if(Math.floor(e)!==e)throw B(e,r),new I.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new I.ERR_BUFFER_OUT_OF_BOUNDS;throw new I.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=S(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=S(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let D=/[^+/0-9A-Za-z-_]/g;function M(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function R(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let U=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function L(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},59880:function(e,t){var r,n="undefined"!=typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();r=i,function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function l(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=l(t);return t.readAsArrayBuffer(e),r}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=c(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=l(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},h.call(m.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(r,n){return new Promise(function(i,o){var a=new m(r,n);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var n="response"in s?s.response:s.responseText;i(new y(n,r))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}v.polyfill=!0,r.fetch||(r.fetch=v,r.Headers=u,r.Request=m,r.Response=y),e.Headers=u,e.Request=m,e.Response=y,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill,(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},90079:function(e){function t(e,t,r){function n(){var c=Date.now()-s;c=0?i=setTimeout(n,t-c):(i=null,r||(u=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,u,c=function(){a=this,o=arguments,s=Date.now();var c=r&&!i;return i||(i=setTimeout(n,t)),c&&(u=e.apply(a,o),a=o=null),u};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(u=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},c}t.debounce=t,e.exports=t},52375:function(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},i=n.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var o=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;nc)&&(f[a]=c,h.push(a,c),d[a]=o));if(void 0!==n&&void 0===f[n])throw Error(["Could not find a path from ",r," to ",n,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.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},72180:function(e){"use strict";e.exports=function(e){for(var t=[],r=e.length,n=0;n=55296&&i<=56319&&r>n+1){var o=e.charCodeAt(n+1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536,n+=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}},84658:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=Array(o);i0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,c=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,l=p(u,c),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},44817:function(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}},40514:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(71770)},24317:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(63545);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{})}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let v=i.default.forwardRef(function(e,t){let r,n;let{href:s,as:g,children:v,prefetch:w=null,passHref:E,replace:A,shallow:P,scroll:x,locale:O,onClick:C,onMouseEnter:I,onTouchStart:T,legacyBehavior:S=!1,..._}=e;r=v,S&&("string"==typeof r||"number"==typeof r)&&(r=i.default.createElement("a",null,r));let B=!1!==w,j=null===w?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,D=i.default.useContext(l.RouterContext),M=i.default.useContext(d.AppRouterContext),R=null!=D?D:M,k=!D,{href:N,as:U}=i.default.useMemo(()=>{if(!D){let e=b(s);return{href:e,as:g?b(g):e}}let[e,t]=(0,o.resolveHref)(D,s,!0);return{href:e,as:g?(0,o.resolveHref)(D,g):t||e}},[D,s,g]),L=i.default.useRef(N),F=i.default.useRef(U);S&&(n=i.default.Children.only(r));let H=S?n&&"object"==typeof n&&n.ref:t,[q,z,$]=(0,f.useIntersection)({rootMargin:"200px"}),G=i.default.useCallback(e=>{(F.current!==U||L.current!==N)&&($(),F.current=U,L.current=N),q(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[U,H,N,$,q]);i.default.useEffect(()=>{R&&z&&B&&y(R,N,U,{locale:O},{kind:j},k)},[U,N,z,O,B,null==D?void 0:D.locale,R,k,j]);let V={ref:G,onClick(e){S||"function"!=typeof C||C(e),S&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,r,n,o,s,u,c,l,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!l&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:s,locale:c,scroll:u}):t[o?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};l?i.default.startTransition(p):p()}(e,R,N,U,A,P,x,O,k,B)},onMouseEnter(e){S||"function"!=typeof I||I(e),S&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&(B||!k)&&y(R,N,U,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:j},k)},onTouchStart(e){S||"function"!=typeof T||T(e),S&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&(B||!k)&&y(R,N,U,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:j},k)}};if((0,u.isAbsoluteUrl)(U))V.href=U;else if(!S||E||"a"===n.type&&!("href"in n.props)){let e=void 0!==O?O:null==D?void 0:D.locale,t=(null==D?void 0:D.isLocaleDomain)&&(0,h.getDomainLocale)(U,e,null==D?void 0:D.locales,null==D?void 0:D.domainLocales);V.href=t||(0,p.addBasePath)((0,c.addLocale)(U,e,null==D?void 0:D.defaultLocale))}return S?i.default.cloneElement(n,V):i.default.createElement("a",{..._,...V},r)}),w=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5840:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91726:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let n=r(37010),i=r(5840),o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(e){let{rootRef:t,rootMargin:r,disabled:u}=e,c=u||!o,[l,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(o){if(c||l)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!l){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,r,t,l,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,l,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12961:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function i(e){return r.test(e)?e.replace(n,"\\$&"):e}},81899:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return o}});let n=r(80670),i=n._(r(37010)),o=i.default.createContext(null)},71475:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},urlObjectKeys:function(){return s},formatWithValidation:function(){return u}});let n=r(95294),i=n._(r(2357)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",s=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let l=e.search||u&&"?"+u||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),""+n+c+(a=a.replace(/[?#]/g,encodeURIComponent))+(l=l.replace("#","%23"))+s}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},37197:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let n=r(64998),i=r(67912);function o(e,t,r){let o="",a=(0,i.getRouteRegex)(e),s=a.groups,u=(t!==e?(0,n.getRouteMatcher)(a)(t):"")||r;o=e;let c=Object.keys(s);return c.every(e=>{let t=u[e]||"",{repeat:r,optional:n}=s[e],i="["+(r?"...":"")+e+"]";return n&&(i=(t?"":"/")+"["+i+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(o=o.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:c,result:o}}},90490:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});let r=/\/\[[^/]+?\](?=\/|$)/;function n(e){return r.test(e)}},95121:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=r(31704),i=r(10753);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},22707:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},29583:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return i}});let n=r(57179);function i(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},2357:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,i]=e;Array.isArray(i)?i.forEach(e=>t.append(r,n(e))):t.set(r,n(i))}),t}function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i},assign:function(){return o}})},40698:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(2357),i=r(71475),o=r(22707),a=r(31704),s=r(63545),u=r(95121),c=r(90490),l=r(37197);function d(e,t,r){let d;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,u.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,l.interpolateAs)(e.pathname,e.pathname,r);a&&(t=(0,i.formatWithValidation)({pathname:a,hash:e.hash,query:(0,o.omit)(r,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[a,t||a]:a}catch(e){return r?[f]:f}}},64998:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let n=r(31704);function i(e){let{re:t,groups:r}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},a={};return Object.keys(r).forEach(e=>{let t=r[e],n=i[t.pos];void 0!==n&&(a[e]=~n.indexOf("/")?n.split("/").map(e=>o(e)):t.repeat?[o(n)]:o(n))}),a}}},67912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return l},getNamedMiddlewareRegex:function(){return d}});let n=r(12961),i=r(26791),o="nxtP";function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function s(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),r={},o=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:t,optional:n,repeat:i}=a(e.slice(1,-1));return r[t]={pos:o++,repeat:i,optional:n},i?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function u(e){let{parameterizedRoute:t,groups:r}=s(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function c(e,t){let r,s;let u=(0,i.removeTrailingSlash)(e).slice(1).split("/"),c=(r=97,s=1,()=>{let e="";for(let t=0;t122&&(s++,r=97);return e}),l={};return{namedParameterizedRoute:u.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:r,optional:n,repeat:i}=a(e.slice(1,-1)),s=r.replace(/\W/g,"");t&&(s=""+o+s);let u=!1;return(0===s.length||s.length>30)&&(u=!0),isNaN(parseInt(s.slice(0,1)))||(u=!0),u&&(s=c()),t?l[s]=""+o+r:l[s]=""+r,i?n?"(?:/(?<"+s+">.+?))?":"/(?<"+s+">.+?)":"/(?<"+s+">[^/]+?)"}}).join(""),routeKeys:l}}function l(e,t){let r=c(e,t);return{...u(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=s(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(n?"(?:(/.*)?)":"")+"$"}}},31704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return a},getURL:function(){return s},getDisplayName:function(){return u},isResSent:function(){return c},normalizeRepeatedSlashes:function(){return l},loadGetInitialProps:function(){return d},SP:function(){return f},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;oi.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function l(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n){let t='"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},71770:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],c=!1,l=-1;function d(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l1)for(var r=1;r>>7-e%8&1)==1},put:function(e,t){for(let r=0;r>>t-r-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++}},e.exports=t},29080:function(e){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)}t.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},23831:function(e,t,r){let n=r(72180),i=r(65773);function o(e){this.mode=i.BYTE,"string"==typeof e&&(e=n(e)),this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,r=this.data.length;t=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let r=e.toLowerCase();switch(r){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},61400:function(e,t,r){let n=r(82709).getSymbolSize;t.getPositions=function(e){let t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},29590:function(e,t,r){let n=r(82709),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,o=r<<10;for(;n.getBCHDigit(o)-i>=0;)o^=1335<=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=o},94295:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,n=0,i=0,o=0,a=null,s=null;for(let u=0;u=5&&(n+=r.N1+(i-5)),a=t,i=1),(t=e.get(c,u))===s?o++:(o>=5&&(n+=r.N1+(o-5)),s=t,o=1)}i>=5&&(n+=r.N1+(i-5)),o>=5&&(n+=r.N1+(o-5))}return n},t.getPenaltyN2=function(e){let t=e.size,n=0;for(let r=0;r=10&&(1488===i||93===i)&&n++,o=o<<1&2047|e.get(a,r),a>=10&&(1488===o||93===o)&&n++}return n*r.N3},t.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let r=0;r=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let r=e.toLowerCase();switch(r){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},52055:function(e,t,r){let n=r(65773);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let n=this.data.length-t;n>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*n+1))},e.exports=i},23611:function(e,t,r){let n=r(48858);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let i=0;i=0;){let e=r[0];for(let i=0;i>n&1)==1,n<6?e.set(n,8,i,!0):n<8?e.set(n+1,8,i,!0):e.set(o-15+n,8,i,!0),n<8?e.set(8,o-n-1,i,!0):n<9?e.set(8,15-n-1+1,i,!0):e.set(8,15-n-1,i,!0);e.set(o-8,8,1,!0)}t.create=function(e,t){let r,h;if(void 0===e||""===e)throw Error("No input text");let y=i.M;return void 0!==t&&(y=i.from(t.errorCorrectionLevel,i.M),r=f.from(t.version),h=c.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),function(e,t,r,i){let h;if(Array.isArray(e))h=m.fromArray(e);else if("string"==typeof e){let n=t;if(!n){let t=m.rawSplit(e);n=f.getBestVersionForData(t,r)}h=m.fromString(e,n||40)}else throw Error("Invalid data");let y=f.getBestVersionForData(h,r);if(!y)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,o+n,!0,!0):e.set(i+t,o+n,!1,!0))}}(w,t),function(e){let t=e.size;for(let r=8;r=7&&function(e,t){let r,n,i;let o=e.size,a=f.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),n=t%3+o-8-3,i=(a>>t&1)==1,e.set(r,n,i,!0),e.set(n,r,i,!0)}(w,t),function(e,t){let r=e.size,n=-1,i=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,s-r)){let n=!1;a>>o&1)==1),e.set(i,s-r,n),-1==--o&&(a++,o=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}(w,b),isNaN(i)&&(i=c.getBestMask(w,g.bind(null,w,r))),c.applyMask(i,w),g(w,r,i),{modules:w,version:t,errorCorrectionLevel:r,maskPattern:i,segments:h}}(e,r,y,h)}},118:function(e,t,r){let n=r(23611);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},e.exports=i},37186:function(e,t){let r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");let i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";t.KANJI=RegExp(n,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(i,"g"),t.NUMERIC=RegExp(r,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+n+"$"),a=RegExp("^"+r+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},98484:function(e,t,r){let n=r(65773),i=r(52055),o=r(20848),a=r(23831),s=r(64585),u=r(37186),c=r(82709),l=r(31124);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,r){let n;let i=[];for(;null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function h(e){let t,r;let i=f(u.NUMERIC,n.NUMERIC,e),o=f(u.ALPHANUMERIC,n.ALPHANUMERIC,e);c.isKanjiModeEnabled()?(t=f(u.BYTE,n.BYTE,e),r=f(u.KANJI,n.KANJI,e)):(t=f(u.BYTE_KANJI,n.BYTE,e),r=[]);let a=i.concat(o,t,r);return a.sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function m(e,t){let r;let u=n.getBestModeForData(e);if((r=n.from(t,u))!==n.BYTE&&r.bit=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(h(e,c.isKanjiModeEnabled()))}},82709:function(e,t){let r;let n=[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];t.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},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},36403:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},32600:function(e,t,r){let n=r(82709),i=r(64924),o=r(60524),a=r(65773),s=r(36403),u=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);let o=n.getSymbolTotalCodewords(e),u=i.getTotalCodewordsCount(e,t),l=(o-u)*8;if(r===a.MIXED)return l;let d=l-c(r,e);switch(r){case a.NUMERIC:return Math.floor(d/10*3);case a.ALPHANUMERIC:return Math.floor(d/11*2);case a.KANJI:return Math.floor(d/13);case a.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,r){let n;let i=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++){let i=function(e,t){let r=0;return e.forEach(function(e){let n=c(e.mode,t);r+=n+e.getBitsLength()}),r}(e,n);if(i<=t.getCapacity(n,r,a.MIXED))return n}}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;n.getBCHDigit(t)-u>=0;)t^=7973<':"",d="0&&c>0&&e[u-1]||(n+=a?o("M",c+r,.5+l+r):o("m",i,0),i=0,a=!1),c+1',f=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",h=''+l+d+"\n";return"function"==typeof r&&r(null,h),h}},89033:function(e,t){function r(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 r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){let n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){let i=r.modules.size,o=r.modules.data,a=t.getScale(i,n),s=Math.floor((i+2*n.margin)*a),u=n.margin*a,c=[n.color.light,n.color.dark];for(let t=0;t=u&&r>=u&&tnull==e,u=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(e,t){return t.decode?i(e):e}function f(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function h(e){e=f(e);let t=e.indexOf("?");return -1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&d(r,e).includes(e.arrayFormatSeparator);r=o?d(r,e):r;let a=i||o?r.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===r?r:d(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){n[t]=r?d(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>d(t,e));if(void 0===n[t]){n[t]=o;return}n[t]=[].concat(n[t],o)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:d(a,t),r(d(e,t),a,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=h,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",i,"]"].join("")]:[...r,[l(t,e),"[",l(i,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length)?[[l(r,e),t,l(i,e)].join("")]:[[n,l(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),i={};for(let t of Object.keys(e))r(t)||(i[t]=e[t]);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let i=e[r];return void 0===i?"":null===i?l(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":i.reduce(n(r),[]).join("&"):l(r,t)+"="+l(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(h(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[u]:!0},r);let n=f(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query),s=t.stringify(a,r);s&&(s=`?${s}`);let c=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(c=`#${r[u]?l(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${s}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[u]:!1},n);let{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:a(o,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},59767:function(e,t){"use strict";/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case u:return e;default:return t}}case i:return t}}}function A(e){return E(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return A(e)||E(e)===l},t.isConcurrentMode=A,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=E},7053:function(e,t,r){"use strict";e.exports=r(59767)},90188:function(e,t,r){"use strict";r.d(t,{Y:function(){return s}});var n=r(37010),i=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],o=function(e){return e?6:5},a=function(e,t,r,n,o){clearTimeout(n.current),t(e),r.current=e,o&&o({state:i[e]})},s=function(e){var t,r,s=void 0===e?{}:e,u=s.enter,c=void 0===u||u,l=s.exit,d=void 0===l||l,f=s.preEnter,h=s.preExit,p=s.timeout,m=s.initialEntered,g=s.mountOnEnter,y=s.unmountOnExit,b=s.onChange,v=(0,n.useState)(m?2:o(g)),w=v[0],E=v[1],A=(0,n.useRef)(w),P=(0,n.useRef)();"object"==typeof p?(t=p.enter,r=p.exit):t=r=p;var x=(0,n.useCallback)(function(){var e;switch(A.current){case 1:case 0:e=2;break;case 4:case 3:e=o(y)}void 0!==e&&a(e,E,A,P,b)},[b,y]),O=(0,n.useCallback)(function(e){var n=function e(n){switch(a(n,E,A,P,b),n){case 1:t>=0&&(P.current=setTimeout(x,t));break;case 4:r>=0&&(P.current=setTimeout(x,r));break;case 0:case 3:P.current=setTimeout(function(){return e(n+1)},0)}},i=A.current<=2;"boolean"!=typeof e&&(e=!i),e?i||n(c?f?0:1:2):i&&n(d?h?3:4:o(y))},[x,b,c,d,f,h,t,r,y]);return(0,n.useEffect)(function(){return function(){return clearTimeout(P.current)}},[]),[i[w],O,x]}},3989:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(37010),i=r(90079),o=r.n(i);function a(e){var t;let{debounce:r,scroll:i,polyfill:a,offsetSize:s}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e,c=a||("undefined"==typeof window?class{}:window.ResizeObserver);if(!c)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[l,d]=(0,n.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=(0,n.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:l}),h=r?"number"==typeof r?r:r.scroll:null,p=r?"number"==typeof r?r:r.resize:null,m=(0,n.useRef)(!1);(0,n.useEffect)(()=>(m.current=!0,()=>void(m.current=!1)));let[g,y,b]=(0,n.useMemo)(()=>{let e=()=>{if(!f.current.element)return;let{left:e,top:t,width:r,height:n,bottom:i,right:o,x:a,y:c}=f.current.element.getBoundingClientRect(),l={left:e,top:t,width:r,height:n,bottom:i,right:o,x:a,y:c};f.current.element instanceof HTMLElement&&s&&(l.height=f.current.element.offsetHeight,l.width=f.current.element.offsetWidth),Object.freeze(l),m.current&&!u(f.current.lastBounds,l)&&d(f.current.lastBounds=l)};return[e,p?o()(e,p):e,h?o()(e,h):e]},[d,s,h,p]);function v(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",b,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function w(){f.current.element&&(f.current.resizeObserver=new c(b),f.current.resizeObserver.observe(f.current.element),i&&f.current.scrollContainers&&f.current.scrollContainers.forEach(e=>e.addEventListener("scroll",b,{capture:!0,passive:!0})))}let E=e=>{e&&e!==f.current.element&&(v(),f.current.element=e,f.current.scrollContainers=function e(t){let r=[];if(!t||t===document.body)return r;let{overflow:n,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[n,i,o].some(e=>"auto"===e||"scroll"===e)&&r.push(t),[...r,...e(t.parentElement)]}(e),w())};return t=!!i,(0,n.useEffect)(()=>{if(t)return window.addEventListener("scroll",b,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",b,!0)},[b,t]),(0,n.useEffect)(()=>(window.addEventListener("resize",y),()=>void window.removeEventListener("resize",y)),[y]),(0,n.useEffect)(()=>{v(),w()},[i,b,y]),(0,n.useEffect)(()=>v,[]),[E,l,g]}let s=["x","y","top","bottom","left","right","width","height"],u=(e,t)=>s.every(r=>e[r]===t[r])},15013:function(e,t,r){"use strict";var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;s.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var r=0,n=Object.keys(t);r0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,E=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=c.getInstance(),n=new v(t,r,this);w.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){E.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var A=void 0!==o.ResizeObserver?o.ResizeObserver:E;t.Z=A},1952:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},21147:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},94652:function(e,t,r){"use strict";r.d(t,{f6:function(){return eI},iv:function(){return ev},ZP:function(){return eB},F4:function(){return e_}});var n,i,o,a=r(7053),s=r(37010),u=r(1952),c=r.n(u),l=function(e){function t(e,t,n){var i=t.trim().split(p);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";sn&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0h)&&(L=(q=q.replace(" ",":")).length),0e.charCodeAt(2)),n[e]}),p=r(68949),m=r.n(p),g=r(40514);function y(){return(y=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var S=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&T(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o=j&&(j=t+1),_.set(e,t),B.set(t,e)},R="style["+O+'][data-styled-version="5.3.11"]',k=RegExp("^"+O+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(O))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(O,"active"),n.setAttribute("data-styled-version","5.3.11");var a=L();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},H=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")}),n+=""+u+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),W=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=K(t%52)+r;return(K(t%52)+r).replace(W,"$1-$2")}var Y=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return Y(5381,e)};function Z(e){for(var t=0;t>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}}else{for(var u=this.rules.length,c=Y(this.baseHash,r.hash),l="",d=0;d>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),et=/^\s*\/\/.*$/gm,er=[":","[",".","#"];function en(e){var t,r,n,i,o=void 0===e?E:e,a=o.options,s=o.plugins,u=void 0===s?w:s,c=new l(void 0===a?E:a),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,u,c,l,d){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){d.push(e)}),h=function(e,n,o){return 0===n&&-1!==er.indexOf(o[r.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var u=e.replace(et,"");return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),c(a||!o?"":o,o&&a?a+" "+o+" { "+u+" }":u)}return c.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),p.hash=u.length?u.reduce(function(e,t){return t.name||T(15),Y(e,t.name)},5381).toString():"",p}var ei=s.createContext(),eo=(ei.Consumer,s.createContext()),ea=(eo.Consumer,new V),es=en();function eu(){return(0,s.useContext)(ei)||ea}function ec(e){var t=(0,s.useState)(e.stylisPlugins),r=t[0],n=t[1],i=eu(),o=(0,s.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,s.useMemo)(function(){return en({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,s.useEffect)(function(){c()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),s.createElement(ei.Provider,{value:o},s.createElement(eo.Provider,{value:a},e.children))}var el=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=es);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return T(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=es),this.name+e.hash},e}(),ed=/([A-Z])/,ef=/([A-Z])/g,eh=/^ms-/,ep=function(e){return"-"+e.toLowerCase()};function em(e){return ed.test(e)?e.replace(ef,ep).replace(eh,"-ms-"):e}var eg=function(e){return null==e||!1===e||""===e};function ey(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,eE=/(^-|-$)/g;function eA(e){return e.replace(ew,"-").replace(eE,"")}var eP=function(e){return Q(J(e)>>>0)};function ex(e){return"string"==typeof e}var eO=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eC=s.createContext();function eI(e){var t=(0,s.useContext)(eC),r=(0,s.useMemo)(function(){var r;return(r=e.theme)?A(r)?r(t):Array.isArray(r)||"object"!=typeof r?T(8):t?y({},t,{},r):r:T(14)},[e.theme,t]);return e.children?s.createElement(eC.Provider,{value:r},e.children):null}eC.Consumer;var eT={},eS=function(e){return function e(t,r,n){if(void 0===n&&(n=E),!(0,a.isValidElementType)(r))return T(1,String(r));var i=function(){return t(r,n,ev.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,y({},n,{},i))},i.attrs=function(i){return e(t,r,y({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(function e(t,r,n){var i=x(t),o=!ex(t),a=r.attrs,u=void 0===a?w:a,c=r.componentId,l=void 0===c?(v=r.displayName,O=r.parentComponentId,eT[C="string"!=typeof v?"sc":eA(v)]=(eT[C]||0)+1,I=C+"-"+eP("5.3.11"+C+eT[C]),O?O+"-"+I:I):c,d=r.displayName,f=void 0===d?ex(t)?"styled."+t:"Styled("+P(t)+")":d,p=r.displayName&&r.componentId?eA(r.displayName)+"-"+r.componentId:r.componentId||l,g=i&&t.attrs?Array.prototype.concat(t.attrs,u).filter(Boolean):u,b=r.shouldForwardProp;i&&t.shouldForwardProp&&(b=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var v,O,C,I,T,S=new ee(n,p,i?t.componentStyle:void 0),_=S.isStatic&&0===u.length,B=function(e,t){return function(e,t,r,n){var i,o,a,u,c,l,d,f=e.attrs,p=e.componentStyle,m=e.defaultProps,g=e.foldedComponentIds,b=e.shouldForwardProp,v=e.styledComponentId,w=e.target,P=(i=(0,s.useContext)(eC),void 0===(o=m)&&(o=E),void 0===(a=t.theme!==o.theme&&t.theme||i||o.theme||E)&&(a=E),u=y({},t,{theme:a}),c={},f.forEach(function(e){var t,r,n,i=e;for(t in A(i)&&(i=i(u)),i)u[t]=c[t]="className"===t?(r=c[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[u,c]),x=P[0],O=P[1],C=(l=eu(),d=(0,s.useContext)(eo)||es,n?p.generateAndInjectStyles(E,l,d):p.generateAndInjectStyles(x,l,d)),I=O.$as||t.$as||O.as||t.as||w,T=ex(I),S=O!==t?y({},t,{},O):t,_={};for(var B in S)"$"!==B[0]&&"as"!==B&&("forwardedAs"===B?_.as=S[B]:(b?b(B,h,I):!T||h(B))&&(_[B]=S[B]));return t.style&&O.style!==t.style&&(_.style=y({},t.style,{},O.style)),_.className=Array.prototype.concat(g,v,C!==v?C:null,t.className,O.className).filter(Boolean).join(" "),_.ref=r,(0,s.createElement)(I,_)}(T,e,t,_)};return B.displayName=f,(T=s.forwardRef(B)).attrs=g,T.componentStyle=S,T.displayName=f,T.shouldForwardProp=b,T.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):w,T.styledComponentId=p,T.target=i?t.target:t,T.withComponent=function(t){var i=r.componentId,o=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(r,["componentId"]),a=i&&i+"-"+(ex(t)?t:eA(P(t)));return e(t,y({},o,{attrs:g,componentId:a}),n)},Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i1?t-1:0),n=1;n2&&V.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},(o=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=L();return""},this.getStyleTags=function(){return e.sealed?T(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return T(2);var t,r=((t={})[O]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=L();return n&&(r.nonce=n),[s.createElement("style",y({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?T(2):s.createElement(ec,{sheet:this.instance},e)},o.interleaveWithNodeStream=function(e){return T(3)};var eB=eS},15695:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return v},__asyncValues:function(){return E},__await:function(){return b},__awaiter:function(){return l},__classPrivateFieldGet:function(){return O},__classPrivateFieldSet:function(){return C},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return x},__importStar:function(){return P},__makeTemplateObject:function(){return A},__metadata:function(){return c},__param:function(){return u},__read:function(){return m},__rest:function(){return a},__spread:function(){return g},__spreadArrays:function(){return y},__values:function(){return p}});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},24058:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return E},__asyncGenerator:function(){return w},__asyncValues:function(){return A},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return I},__classPrivateFieldIn:function(){return S},__classPrivateFieldSet:function(){return T},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return C},__importStar:function(){return O},__makeTemplateObject:function(){return P},__metadata:function(){return c},__param:function(){return u},__read:function(){return m},__rest:function(){return a},__spread:function(){return g},__spreadArray:function(){return b},__spreadArrays:function(){return y},__values:function(){return p}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof v?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function E(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function A(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&f(t,e,r);return x(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function S(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},12080:function(e,t,r){"use strict";/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n=r(37010),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return s(function(){i.value=r,i.getSnapshot=t,c(i)&&l({inst:i})},[e,r,t]),a(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},99407:function(e,t,r){"use strict";/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n=r(37010),i=r(34076),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=n.useRef,u=n.useEffect,c=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!u){if(u=!0,a=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,u=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]);var h=a(e,d[0],d[1]);return u(function(){f.hasValue=!0,f.value=h},[h]),l(h),h}},34076:function(e,t,r){"use strict";e.exports=r(12080)},65173:function(e,t,r){"use strict";e.exports=r(99407)},83053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(57660);class i extends Error{constructor(e,t={}){let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath,a=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n");super(a),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=i},70008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;let n=r(83053);class i extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=i;class o extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=o;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=a},90667:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;let n=r(83053);class i extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=i;class o extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=o;class a extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=a;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class u extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=u;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=c;class l extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=l},53013:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;let n=r(83053);class i extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=i;class o extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=o;class a extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=a},2915:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;let n=r(83053);class i extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=i},97869:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;let n=r(83053);class i extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=i},18793:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=void 0;let n=r(55784);t.formatAbi=function(e){let t=[],r=e.length;for(let i=0;i(\[(\d*)\])*)$/;t.formatAbiParameter=function e(t){let r=t.type;if(i.test(t.type)&&"components"in t){r="(";let o=t.components.length;for(let n=0;n[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;t.isErrorSignature=function(e){return i.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(i,e)};let o=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;t.isEventSignature=function(e){return o.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(o,e)};let a=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;t.isFunctionSignature=function(e){return a.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(a,e)};let s=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)};let u=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;t.isConstructorSignature=function(e){return u.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(u,e)};let c=/^fallback\(\)$/;t.isFallbackSignature=function(e){return c.test(e)};let l=/^receive\(\) external payable$/;t.isReceiveSignature=function(e){return l.test(e)},t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},9244:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=void 0;let n=r(96454),i=r(70008),o=r(90667),a=r(53013),s=r(97869),u=r(81451),c=r(11991);t.parseStructs=function(e){let t={},r=e.length;for(let n=0;n[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/},11991:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDataLocation=t.isSolidityKeyword=t.isSolidityType=t.splitParameters=t.parseAbiParameter=t.parseSignature=void 0;let n=r(96454),i=r(70008),o=r(90667),a=r(53013),s=r(2915),u=r(11599),c=r(81451);t.parseSignature=function(e,t={}){if((0,c.isFunctionSignature)(e)){let r=(0,c.execFunctionSignature)(e);if(!r)throw new a.InvalidSignatureError({signature:e,type:"function"});let n=p(r.parameters),i=[],o=n.length;for(let e=0;e[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,d=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^u?int$/;function h(e,t){let r;let a=(0,u.getParameterCacheKey)(e,t?.type);if(u.parameterCache.has(a))return u.parameterCache.get(a);let s=n.isTupleRegex.test(e),g=(0,n.execTyped)(s?d:l,e);if(!g)throw new o.InvalidParameterError({param:e});if(g.name&&y(g.name))throw new o.SolidityProtectedKeywordError({param:e,name:g.name});let v=g.name?{name:g.name}:{},w="indexed"===g.modifier?{indexed:!0}:{},E=t?.structs??{},A={};if(s){r="tuple";let e=p(g.type),t=[],n=e.length;for(let r=0;re.indexed):2===e.length&&(r=!0);let n=r?e[0]:void 0,i=(r?e[1]:e[0])??{};return{args:n,options:i}}t.getContract=function({abi:e,address:t,publicClient:r,walletClient:d}){let f=null!=r,h=null!=d,p={},m=!1,g=!1,y=!1;for(let t of e)if("function"===t.type?"view"===t.stateMutability||"pure"===t.stateMutability?m=!0:g=!0:"event"===t.type&&(y=!0),m&&g&&y)break;return f&&(m&&(p.read=new Proxy({},{get:(n,i)=>(...n)=>{let{args:a,options:s}=c(n);return(0,o.readContract)(r,{abi:e,address:t,functionName:i,args:a,...s})}})),g&&(p.simulate=new Proxy({},{get:(n,i)=>(...n)=>{let{args:o,options:s}=c(n);return(0,a.simulateContract)(r,{abi:e,address:t,functionName:i,args:o,...s})}})),y&&(p.createEventFilter=new Proxy({},{get:(i,o)=>(...i)=>{let a=e.find(e=>"event"===e.type&&e.name===o),{args:s,options:u}=l(i,a);return(0,n.createContractEventFilter)(r,{abi:e,address:t,eventName:o,args:s,...u})}}),p.watchEvent=new Proxy({},{get:(n,i)=>(...n)=>{let o=e.find(e=>"event"===e.type&&e.name===i),{args:a,options:u}=l(n,o);return(0,s.watchContractEvent)(r,{abi:e,address:t,eventName:i,args:a,...u})}}))),h&&g&&(p.write=new Proxy({},{get:(r,n)=>(...r)=>{let{args:i,options:o}=c(r);return(0,u.writeContract)(d,{abi:e,address:t,functionName:n,args:i,...o})}})),(f||h)&&g&&(p.estimateGas=new Proxy({},{get:(n,o)=>(...n)=>{let{args:a,options:s}=c(n);return(0,i.estimateContractGas)(r??d,{abi:e,address:t,functionName:o,args:a,...s,account:s.account??d.account})}})),p.address=t,p.abi=e,p},t.getFunctionParameters=c,t.getEventParameters=l},66681:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRevertErrorData=t.call=void 0;let n=r(5998),i=r(28858),o=r(86191),a=r(61817),s=r(14931),u=r(71693),c=r(94337),l=r(25765),d=r(67491),f=r(75367),h=r(56425),p=r(8258),m=r(40279),g=r(45893),y=r(5655);async function b(e,t){let{account:i,batch:a=!!e.batch?.multicall,blockNumber:u,blockTag:c="latest",accessList:l,data:d,gas:g,gasPrice:b,maxFeePerGas:E,maxPriorityFeePerGas:A,nonce:P,to:x,value:O,...C}=t,I=i?(0,n.parseAccount)(i):void 0;try{(0,y.assertRequest)(t);let r=u?(0,f.numberToHex)(u):void 0,n=r||c,i=e.chain?.formatters?.transactionRequest?.format||m.formatTransactionRequest,h=i({...(0,p.extract)(C,{format:i}),from:I?.address,accessList:l,data:d,gas:g,gasPrice:b,maxFeePerGas:E,maxPriorityFeePerGas:A,nonce:P,to:x,value:O});if(a&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(o.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:h}))try{return await v(e,{...h,blockNumber:u,blockTag:c})}catch(e){if(!(e instanceof s.ClientChainNotConfiguredError)&&!(e instanceof s.ChainDoesNotSupportContract))throw e}let w=await e.request({method:"eth_call",params:n?[h,n]:[h]});if("0x"===w)return{data:void 0};return{data:w}}catch(a){let n=w(a),{offchainLookup:i,offchainLookupSignature:o}=await Promise.resolve().then(r.bind(r,18510));if(n?.slice(0,10)===o&&x)return{data:await i(e,{data:n,to:x})};throw(0,h.getCallError)(a,{...t,account:I,chain:e.chain})}}async function v(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:h,multicallAddress:p,to:m}=t,y=p;if(!y){if(!e.chain)throw new s.ClientChainNotConfiguredError;y=(0,d.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"})}let b=o?(0,f.numberToHex)(o):void 0,v=b||a,{schedule:w}=(0,g.createBatchScheduler)({id:`${e.uid}.${v}`,wait:n,shouldSplitBatch(e){let t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*r},fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,l.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:n,to:y},v]});return(0,c.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:E,success:A}]=await w({data:h,to:m});if(!A)throw new u.RawContractError({data:E});return"0x"===E?{data:void 0}:{data:E}}function w(e){if(!(e instanceof a.BaseError))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}t.call=b,t.getRevertErrorData=w},29293:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=void 0;let n=r(14862);async function i(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}t.createBlockFilter=i},4737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=void 0;let n=r(48506),i=r(75367),o=r(14862);async function a(e,{address:t,abi:r,args:a,eventName:s,fromBlock:u,strict:c,toBlock:l}){let d=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),f=s?(0,n.encodeEventTopics)({abi:r,args:a,eventName:s}):void 0,h=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof u?(0,i.numberToHex)(u):u,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,topics:f}]});return{abi:r,args:a,eventName:s,id:h,request:d(h),strict:c,type:"event"}}t.createContractEventFilter=a},70867:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=void 0;let n=r(48506),i=r(75367),o=r(14862);async function a(e,{address:t,args:r,event:a,events:s,fromBlock:u,strict:c,toBlock:l}={}){let d=s??(a?[a]:void 0),f=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),h=[];d&&(h=[d.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],a&&(h=h[0]));let p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof u?(0,i.numberToHex)(u):u,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,...h.length?{topics:h}:{}}]});return{abi:d,args:r,eventName:a?a.name:void 0,fromBlock:u,id:p,request:f(p),strict:c,toBlock:l,type:"event"}}t.createEventFilter=a},86480:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=void 0;let n=r(14862);async function i(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}t.createPendingTransactionFilter=i},19359:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=void 0;let n=r(5998),i=r(25765),o=r(86874),a=r(19655);async function s(e,{abi:t,address:r,args:s,functionName:u,...c}){let l=(0,i.encodeFunctionData)({abi:t,args:s,functionName:u});try{let t=await (0,a.estimateGas)(e,{data:l,to:r,...c});return t}catch(i){let e=c.account?(0,n.parseAccount)(c.account):void 0;throw(0,o.getContractError)(i,{abi:t,address:r,args:s,docsPath:"/docs/contract/estimateContractGas",functionName:u,sender:e?.address})}}t.estimateContractGas=s},19655:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=void 0;let n=r(5998),i=r(69438),o=r(75367),a=r(80643),s=r(8258),u=r(40279),c=r(5655),l=r(54544);async function d(e,t){let r=t.account??e.account;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});let d=(0,n.parseAccount)(r);try{let{accessList:r,blockNumber:n,blockTag:i,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g,to:y,value:b,...v}="local"===d.type?await (0,l.prepareRequest)(e,t):t,w=n?(0,o.numberToHex)(n):void 0,E=w||i;(0,c.assertRequest)(t);let A=e.chain?.formatters?.transactionRequest?.format||u.formatTransactionRequest,P=A({...(0,s.extract)(v,{format:A}),from:d.address,accessList:r,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g,to:y,value:b}),x=await e.request({method:"eth_estimateGas",params:E?[P,E]:[P]});return BigInt(x)}catch(r){throw(0,a.getEstimateGasError)(r,{...t,account:d,chain:e.chain})}}t.estimateGas=d},38367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=void 0;let n=r(75367);async function i(e,{address:t,blockNumber:r,blockTag:i="latest"}){let o=r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||i]});return BigInt(a)}t.getBalance=i},48546:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=void 0;let n=r(61945),i=r(75367),o=r(64954);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,includeTransactions:s}={}){let u=s??!1,c=void 0!==r?(0,i.numberToHex)(r):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,u]}):await e.request({method:"eth_getBlockByNumber",params:[c||(a??"latest"),u]})))throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});let d=e.chain?.formatters?.block?.format||o.formatBlock;return d(l)}t.getBlock=a},3360:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumber=t.getBlockNumberCache=void 0;let n=r(81994),i=e=>`blockNumber.${e}`;async function o(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){let o=await (0,n.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:i(e.uid),cacheTime:r??t});return BigInt(o)}t.getBlockNumberCache=function(e){return(0,n.getCache)(i(e))},t.getBlockNumber=o},2607:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=void 0;let n=r(89097),i=r(75367);async function o(e,{blockHash:t,blockNumber:r,blockTag:o="latest"}={}){let a;let s=void 0!==r?(0,i.numberToHex)(r):void 0;return a=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||o]}),(0,n.hexToNumber)(a)}t.getBlockTransactionCount=o},10491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBytecode=void 0;let n=r(75367);async function i(e,{address:t,blockNumber:r,blockTag:i="latest"}){let o=void 0!==r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getCode",params:[t,o||i]});if("0x"!==a)return a}t.getBytecode=i},54041:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=void 0;let n=r(89097);async function i(e){let t=await e.request({method:"eth_chainId"});return(0,n.hexToNumber)(t)}t.getChainId=i},49147:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=void 0;let n=r(75367),i=r(63777);async function o(e,{blockCount:t,blockNumber:r,blockTag:o="latest",rewardPercentiles:a}){let s=r?(0,n.numberToHex)(r):void 0,u=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),s||o,a]});return(0,i.formatFeeHistory)(u)}t.getFeeHistory=o},72969:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=void 0;let n=r(269),i=r(8496),o=r(69344);async function a(e,{filter:t}){let r="strict"in t&&t.strict,a=await t.request({method:"eth_getFilterChanges",params:[t.id]});return a.map(e=>{if("string"==typeof e)return e;try{let{eventName:n,args:a}="abi"in t&&t.abi?(0,i.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,o.formatLog)(e,{args:a,eventName:n})}catch(a){let r,i;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,i=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,o.formatLog)(e,{args:i?[]:{},eventName:r})}}).filter(Boolean)}t.getFilterChanges=a},78958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=void 0;let n=r(269),i=r(8496),o=r(69344);async function a(e,{filter:t}){let r=t.strict??!1,a=await t.request({method:"eth_getFilterLogs",params:[t.id]});return a.map(e=>{try{let{eventName:n,args:a}="abi"in t&&t.abi?(0,i.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,o.formatLog)(e,{args:a,eventName:n})}catch(a){let r,i;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,i=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,o.formatLog)(e,{args:i?[]:{},eventName:r})}}).filter(Boolean)}t.getFilterLogs=a},9677:function(e,t){"use strict";async function r(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=void 0,t.getGasPrice=r},5667:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=void 0;let n=r(269),i=r(8496),o=r(48506),a=r(75367),s=r(69344);async function u(e,{address:t,blockHash:r,fromBlock:u,toBlock:c,event:l,events:d,args:f,strict:h}={}){let p=h??!1,m=d??(l?[l]:void 0),g=[];return m&&(g=[m.flatMap(e=>(0,o.encodeEventTopics)({abi:[e],eventName:e.name,args:f}))],l&&(g=g[0])),(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:g,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:g,fromBlock:"bigint"==typeof u?(0,a.numberToHex)(u):u,toBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c}]})).map(e=>{try{let{eventName:t,args:r}=m?(0,i.decodeEventLog)({abi:m,data:e.data,topics:e.topics,strict:p}):{eventName:void 0,args:void 0};return(0,s.formatLog)(e,{args:r,eventName:t})}catch(i){let t,r;if(i instanceof n.DecodeLogDataMismatch||i instanceof n.DecodeLogTopicsMismatch){if(p)return;t=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,s.formatLog)(e,{args:r?[]:{},eventName:t})}}).filter(Boolean)}t.getLogs=u},32418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=void 0;let n=r(75367);async function i(e,{address:t,blockNumber:r,blockTag:i="latest",slot:o}){let a=void 0!==r?(0,n.numberToHex)(r):void 0,s=await e.request({method:"eth_getStorageAt",params:[t,o,a||i]});return s}t.getStorageAt=i},90767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=void 0;let n=r(51765),i=r(75367),o=r(98395);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,hash:s,index:u}){let c=a||"latest",l=void 0!==r?(0,i.numberToHex)(r):void 0,d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.numberToHex)(u)]}):(l||c)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,(0,i.numberToHex)(u)]})),!d)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:c,hash:s,index:u});let f=e.chain?.formatters?.transaction?.format||o.formatTransaction;return f(d)}t.getTransaction=a},50223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=void 0;let n=r(3360),i=r(90767);async function o(e,{hash:t,transactionReceipt:r}){let[o,a]=await Promise.all([(0,n.getBlockNumber)(e),t?(0,i.getTransaction)(e,{hash:t}):void 0]),s=r?.blockNumber||a?.blockNumber;return s?o-s+1n:0n}t.getTransactionConfirmations=o},34974:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=void 0;let n=r(89097),i=r(75367);async function o(e,{address:t,blockTag:r="latest",blockNumber:o}){let a=await e.request({method:"eth_getTransactionCount",params:[t,o?(0,i.numberToHex)(o):r]});return(0,n.hexToNumber)(a)}t.getTransactionCount=o},89101:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=void 0;let n=r(51765),i=r(8366);async function o(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});let o=e.chain?.formatters?.transactionReceipt?.format||i.formatTransactionReceipt;return o(r)}t.getTransactionReceipt=o},83965:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=void 0;let n=r(28858),i=r(269),o=r(71693),a=r(94337),s=r(25765),u=r(67491),c=r(86874),l=r(95493);async function d(e,t){let{allowFailure:r=!0,batchSize:d,blockNumber:f,blockTag:h,contracts:p,multicallAddress:m}=t,g=d??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),y=m;if(!y){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");y=(0,u.getChainContractAddress)({blockNumber:f,chain:e.chain,contract:"multicall3"})}let b=[[]],v=0,w=0;for(let e=0;e0&&w>g&&(v++,w=(e.length-2)/2,b[v]=[]),b[v]=[...b[v],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=(0,c.getContractError)(a,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:o});if(!r)throw e;b[v]=[...b[v],{allowFailure:!0,callData:"0x",target:n}]}}let E=await Promise.all(b.map(t=>(0,l.readContract)(e,{abi:n.multicall3Abi,address:y,args:[t],blockNumber:f,blockTag:h,functionName:"aggregate3"})));return E.flat().map(({returnData:e,success:t},n)=>{let s=b.flat(),{callData:u}=s[n],{abi:l,address:d,functionName:f,args:h}=p[n];try{if("0x"===u)throw new i.AbiDecodingZeroDataError;if(!t)throw new o.RawContractError({data:e});let n=(0,a.decodeFunctionResult)({abi:l,args:h,data:e,functionName:f});return r?{result:n,status:"success"}:n}catch(t){let e=(0,c.getContractError)(t,{abi:l,address:d,args:h,docsPath:"/docs/contract/multicall",functionName:f});if(!r)throw e;return{error:e,result:void 0,status:"failure"}}})}t.multicall=d},95493:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=void 0;let n=r(94337),i=r(25765),o=r(86874),a=r(66681);async function s(e,{abi:t,address:r,args:s,functionName:u,...c}){let l=(0,i.encodeFunctionData)({abi:t,args:s,functionName:u});try{let{data:i}=await (0,a.call)(e,{data:l,to:r,...c});return(0,n.decodeFunctionResult)({abi:t,args:s,functionName:u,data:i||"0x"})}catch(e){throw(0,o.getContractError)(e,{abi:t,address:r,args:s,docsPath:"/docs/contract/readContract",functionName:u})}}t.readContract=s},29934:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=void 0;let n=r(5998),i=r(94337),o=r(25765),a=r(86874),s=r(66681);async function u(e,{abi:t,address:r,args:u,dataSuffix:c,functionName:l,...d}){let f=d.account?(0,n.parseAccount)(d.account):void 0,h=(0,o.encodeFunctionData)({abi:t,args:u,functionName:l});try{let{data:n}=await (0,s.call)(e,{batch:!1,data:`${h}${c?c.replace("0x",""):""}`,to:r,...d}),o=(0,i.decodeFunctionResult)({abi:t,args:u,functionName:l,data:n||"0x"});return{result:o,request:{abi:t,address:r,args:u,dataSuffix:c,functionName:l,...d}}}catch(e){throw(0,a.getContractError)(e,{abi:t,address:r,args:u,docsPath:"/docs/contract/simulateContract",functionName:l,sender:f?.address})}}t.simulateContract=u},50680:function(e,t){"use strict";async function r(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=void 0,t.uninstallFilter=r},53363:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=void 0;let n=r(28858),i=r(82779),o=r(71693),a=r(51878),s=r(22039),u=r(66681);async function c(e,{address:t,hash:r,signature:c,...l}){let d=(0,s.isHex)(c)?c:(0,s.toHex)(c);try{let{data:o}=await (0,u.call)(e,{data:(0,s.encodeDeployData)({abi:n.universalSignatureValidatorAbi,args:[t,r,d],bytecode:i.universalSignatureValidatorByteCode}),...l});return(0,a.isBytesEqual)(o??"0x0","0x1")}catch(e){if(e instanceof o.CallExecutionError)return!1;throw e}}t.verifyHash=c},12069:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;let n=r(22039),i=r(53363);async function o(e,{address:t,message:r,signature:o,...a}){let s=(0,n.hashMessage)(r);return(0,i.verifyHash)(e,{address:t,hash:s,signature:o,...a})}t.verifyMessage=o},33133:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;let n=r(67339),i=r(53363);async function o(e,{address:t,signature:r,message:o,primaryType:a,types:s,domain:u,...c}){let l=(0,n.hashTypedData)({message:o,primaryType:a,types:s,domain:u});return(0,i.verifyHash)(e,{address:t,hash:l,signature:r,...c})}t.verifyTypedData=o},27284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=void 0;let n=r(51765),i=r(23275),o=r(33693),a=r(52694),s=r(48546),u=r(90767),c=r(89101),l=r(7641);async function d(e,{confirmations:t=1,hash:r,onReplaced:d,pollingInterval:f=e.pollingInterval,timeout:h}){let p,m,g;let y=(0,a.stringify)(["waitForTransactionReceipt",e.uid,r]),b=!1;return new Promise((a,v)=>{h&&setTimeout(()=>v(new n.WaitForTransactionReceiptTimeoutError({hash:r})),h);let w=(0,i.observe)(y,{onReplaced:d,resolve:a,reject:v},i=>{let a=(0,l.watchBlockNumber)(e,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:f,async onBlockNumber(l){if(b)return;let d=l,f=e=>{a(),e(),w()};try{if(g){if(d-g.blockNumber+1ni.resolve(g));return}if(p||(b=!0,await (0,o.withRetry)(async()=>{(p=await (0,u.getTransaction)(e,{hash:r})).blockNumber&&(d=p.blockNumber)},{delay:({count:e})=>200*~~(1<0&&d-g.blockNumber+1ni.resolve(g))}catch(r){if(p&&(r instanceof n.TransactionNotFoundError||r instanceof n.TransactionReceiptNotFoundError)){m=p;let r=await (0,s.getBlock)(e,{blockNumber:d,includeTransactions:!0}),n=r.transactions.find(({from:e,nonce:t})=>e===m.from&&t===m.nonce);if(!n||d-(g=await (0,c.getTransactionReceipt)(e,{hash:n.hash})).blockNumber+1n{i.onReplaced?.({reason:o,replacedTransaction:m,transaction:n,transactionReceipt:g}),i.resolve(g)})}else f(()=>i.reject(r))}}})})})}t.waitForTransactionReceipt=d},7641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=void 0;let n=r(89097),i=r(23275),o=r(13823),a=r(52694),s=r(3360);t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:u,onError:c,poll:l,pollingInterval:d=e.pollingInterval}){let f,h,p;let m=void 0!==l?l:"webSocket"!==e.transport.type;return m?(()=>{let n=(0,a.stringify)(["watchBlockNumber",e.uid,t,r,d]);return(0,i.observe)(n,{onBlockNumber:u,onError:c},n=>(0,o.poll)(async()=>{try{let t=await (0,s.getBlockNumber)(e,{cacheTime:0});if(f){if(t===f)return;if(t-f>1&&r)for(let e=f+1n;ef)&&(n.onBlockNumber(t,f),f=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:d}))})():(h=!0,p=()=>h=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!h)return;let t=(0,n.hexToBigInt)(e.result?.number);u(t,f),f=t},onError(e){c?.(e)}});p=t,h||p()}catch(e){c?.(e)}})(),p)}},78361:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=void 0;let n=r(64954),i=r(23275),o=r(13823),a=r(52694),s=r(48546);t.watchBlocks=function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:u=!1,onBlock:c,onError:l,includeTransactions:d,poll:f,pollingInterval:h=e.pollingInterval}){let p,m,g;let y=void 0!==f?f:"webSocket"!==e.transport.type,b=d??!1;return y?(()=>{let n=(0,a.stringify)(["watchBlocks",e.uid,r,u,b,h]);return(0,i.observe)(n,{onBlock:c,onError:l},n=>(0,o.poll)(async()=>{try{let i=await (0,s.getBlock)(e,{blockTag:t,includeTransactions:b});if(i.number&&p?.number){if(i.number===p.number)return;if(i.number-p.number>1&&r)for(let t=p?.number+1n;tp.number)&&(n.onBlock(i,p),p=i)}catch(e){n.onError?.(e)}},{emitOnBegin:u,interval:h}))})():(m=!0,g=()=>m=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!m)return;let r=e.chain?.formatters?.block?.format||n.formatBlock,i=r(t.result);c(i,p),p=i},onError(e){l?.(e)}});g=t,m||g()}catch(e){l?.(e)}})(),g)}},43318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=void 0;let n=r(51491),i=r(23275),o=r(13823),a=r(52694),s=r(269),u=r(53835),c=r(4737),l=r(3360),d=r(72969),f=r(5667),h=r(50680);t.watchContractEvent=function(e,{abi:t,address:r,args:p,batch:m=!0,eventName:g,onError:y,onLogs:b,poll:v,pollingInterval:w=e.pollingInterval,strict:E}){let A,P;let x=void 0!==v?v:"webSocket"!==e.transport.type;return x?(()=>{let s=(0,a.stringify)(["watchContractEvent",r,p,m,e.uid,g,w]),v=E??!1;return(0,i.observe)(s,{onLogs:b,onError:y},i=>{let a,s;let y=!1,b=(0,o.poll)(async()=>{if(!y){try{s=await (0,c.createContractEventFilter)(e,{abi:t,address:r,args:p,eventName:g,strict:v})}catch{}y=!0;return}try{let o;if(s)o=await (0,d.getFilterChanges)(e,{filter:s});else{let i=await (0,l.getBlockNumber)(e);o=a&&a!==i?await (0,f.getLogs)(e,{address:r,args:p,fromBlock:a+1n,toBlock:i,event:(0,n.getAbiItem)({abi:t,name:g})}):[],a=i}if(0===o.length)return;m?i.onLogs(o):o.forEach(e=>i.onLogs([e]))}catch(e){s&&e instanceof u.InvalidInputRpcError&&(y=!1),i.onError?.(e)}},{emitOnBegin:!0,interval:w});return async()=>{s&&await (0,h.uninstallFilter)(e,{filter:s}),b()}})})():(A=!0,P=()=>A=!1,(async()=>{try{let n=g?(0,u.encodeEventTopics)({abi:t,eventName:g,args:p}):[],{unsubscribe:i}=await e.transport.subscribe({params:["logs",{address:r,topics:n}],onData(e){if(!A)return;let r=e.result;try{let{eventName:e,args:n}=(0,u.decodeEventLog)({abi:t,data:r.data,topics:r.topics,strict:E}),i=(0,u.formatLog)(r,{args:n,eventName:e});b([i])}catch(i){let e,t;if(i instanceof s.DecodeLogDataMismatch||i instanceof u.DecodeLogTopicsMismatch){if(E)return;e=i.abiItem.name,t=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,u.formatLog)(r,{args:t?[]:{},eventName:e});b([n])}},onError(e){y?.(e)}});P=i,A||P()}catch(e){y?.(e)}})(),P)}},2539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=void 0;let n=r(23275),i=r(13823),o=r(52694),a=r(269),s=r(74199),u=r(22039),c=r(70867),l=r(3360),d=r(72969),f=r(5667),h=r(50680);t.watchEvent=function(e,{address:t,args:r,batch:p=!0,event:m,events:g,onError:y,onLogs:b,poll:v,pollingInterval:w=e.pollingInterval,strict:E}){let A,P;let x=void 0!==v?v:"webSocket"!==e.transport.type,O=E??!1;return x?(()=>{let a=(0,o.stringify)(["watchEvent",t,r,p,e.uid,m,w]);return(0,n.observe)(a,{onLogs:b,onError:y},n=>{let o,a;let u=!1,y=(0,i.poll)(async()=>{if(!u){try{a=await (0,c.createEventFilter)(e,{address:t,args:r,event:m,events:g,strict:O})}catch{}u=!0;return}try{let i;if(a)i=await (0,d.getFilterChanges)(e,{filter:a});else{let n=await (0,l.getBlockNumber)(e);i=o&&o!==n?await (0,f.getLogs)(e,{address:t,args:r,event:m,events:g,fromBlock:o+1n,toBlock:n}):[],o=n}if(0===i.length)return;p?n.onLogs(i):i.forEach(e=>n.onLogs([e]))}catch(e){a&&e instanceof s.InvalidInputRpcError&&(u=!1),n.onError?.(e)}},{emitOnBegin:!0,interval:w});return async()=>{a&&await (0,h.uninstallFilter)(e,{filter:a}),y()}})})():(A=!0,P=()=>A=!1,(async()=>{try{let n=g??(m?[m]:void 0),i=[];n&&(i=[n.flatMap(e=>(0,u.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],m&&(i=i[0]));let{unsubscribe:o}=await e.transport.subscribe({params:["logs",{address:t,topics:i}],onData(e){if(!A)return;let t=e.result;try{let{eventName:e,args:r}=(0,u.decodeEventLog)({abi:n,data:t.data,topics:t.topics,strict:O}),i=(0,u.formatLog)(t,{args:r,eventName:e});b([i])}catch(i){let e,r;if(i instanceof a.DecodeLogDataMismatch||i instanceof a.DecodeLogTopicsMismatch){if(E)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,u.formatLog)(t,{args:r?[]:{},eventName:e});b([n])}},onError(e){y?.(e)}});P=o,A||P()}catch(e){y?.(e)}})(),P)}},5012:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=void 0;let n=r(23275),i=r(13823),o=r(52694),a=r(86480),s=r(72969),u=r(50680);t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:c,poll:l,pollingInterval:d=e.pollingInterval}){let f,h;let p=void 0!==l?l:"webSocket"!==e.transport.type;return p?(()=>{let l=(0,o.stringify)(["watchPendingTransactions",e.uid,t,d]);return(0,n.observe)(l,{onTransactions:c,onError:r},r=>{let n;let o=(0,i.poll)(async()=>{try{if(!n)try{n=await (0,a.createPendingTransactionFilter)(e);return}catch(e){throw o(),e}let i=await (0,s.getFilterChanges)(e,{filter:n});if(0===i.length)return;t?r.onTransactions(i):i.forEach(e=>r.onTransactions([e]))}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{n&&await (0,u.uninstallFilter)(e,{filter:n}),o()}})})():(f=!0,h=()=>f=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!f)return;let t=e.result;c([t])},onError(e){r?.(e)}});h=t,f||h()}catch(e){r?.(e)}})(),h)}},33094:function(e,t){"use strict";async function r(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=void 0,t.dropTransaction=r},25197:function(e,t){"use strict";async function r(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=void 0,t.getAutomine=r},42231:function(e,t){"use strict";async function r(e){return await e.request({method:"txpool_content"})}Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=void 0,t.getTxpoolContent=r},56399:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=void 0;let n=r(89097);async function i(e){let{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}}t.getTxpoolStatus=i},13712:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=void 0,t.impersonateAccount=r},58704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=void 0;let n=r(75367);async function i(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})}t.increaseTime=i},68667:function(e,t){"use strict";async function r(e){return await e.request({method:"txpool_inspect"})}Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=void 0,t.inspectTxpool=r},87822:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mine=void 0;let n=r(75367);async function i(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})}t.mine=i},37651:function(e,t){"use strict";async function r(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=void 0,t.removeBlockTimestampInterval=r},63112:function(e,t){"use strict";async function r(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}Object.defineProperty(t,"__esModule",{value:!0}),t.reset=void 0,t.reset=r},71999:function(e,t){"use strict";async function r(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.revert=void 0,t.revert=r},16557:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=void 0;let n=r(8258),i=r(40279);async function o(e,t){let{accessList:r,data:o,from:a,gas:s,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:h,...p}=t,m=e.chain?.formatters?.transactionRequest?.format||i.formatTransactionRequest,g=m({...(0,n.extract)(p,{format:m}),accessList:r,data:o,from:a,gas:s,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:h}),y=await e.request({method:"eth_sendUnsignedTransaction",params:[g]});return y}t.sendUnsignedTransaction=o},53580:function(e,t){"use strict";async function r(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=void 0,t.setAutomine=r},83659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=void 0;let n=r(75367);async function i(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})}t.setBalance=i},10146:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=void 0;let n=r(75367);async function i(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})}t.setBlockGasLimit=i},81797:function(e,t){"use strict";async function r(e,{interval:t}){await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=void 0,t.setBlockTimestampInterval=r},25929:function(e,t){"use strict";async function r(e,{address:t,bytecode:r}){await e.request({method:`${e.mode}_setCode`,params:[t,r]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=void 0,t.setCode=r},97250:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=void 0,t.setCoinbase=r},88261:function(e,t){"use strict";async function r(e,{interval:t}){await e.request({method:"evm_setIntervalMining",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=void 0,t.setIntervalMining=r},13667:function(e,t){"use strict";async function r(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=void 0,t.setLoggingEnabled=r},38433:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=void 0;let n=r(75367);async function i(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})}t.setMinGasPrice=i},12584:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=void 0;let n=r(75367);async function i(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})}t.setNextBlockBaseFeePerGas=i},8144:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=void 0;let n=r(75367);async function i(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})}t.setNextBlockTimestamp=i},2006:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=void 0;let n=r(75367);async function i(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})}t.setNonce=i},69671:function(e,t){"use strict";async function r(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=void 0,t.setRpcUrl=r},24334:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=void 0;let n=r(75367);async function i(e,{address:t,index:r,value:i}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,i]})}t.setStorageAt=i},51211:function(e,t){"use strict";async function r(e){return await e.request({method:"evm_snapshot"})}Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=void 0,t.snapshot=r},4394:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=void 0,t.stopImpersonatingAccount=r},89459:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=void 0;let n=r(75367);async function i(e,{chain:t}){let{id:r,name:i,nativeCurrency:o,rpcUrls:a,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:i,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]})}t.addChain=i},33862:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=void 0;let n=r(9830),i=r(13710);t.deployContract=function(e,{abi:t,args:r,bytecode:o,...a}){let s=(0,n.encodeDeployData)({abi:t,args:r,bytecode:o});return(0,i.sendTransaction)(e,{...a,data:s})}},3164:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=void 0;let n=r(37933);async function i(e){let t=await e.request({method:"eth_accounts"});return t.map(e=>(0,n.checksumAddress)(e))}t.getAddresses=i},39614:function(e,t){"use strict";async function r(e){let t=await e.request({method:"wallet_getPermissions"});return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=void 0,t.getPermissions=r},6892:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=void 0;let n=r(37933);async function i(e){let t=await e.request({method:"eth_requestAccounts"});return t.map(e=>(0,n.getAddress)(e))}t.requestAddresses=i},98198:function(e,t){"use strict";async function r(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=void 0,t.requestPermissions=r},13710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=void 0;let n=r(5998),i=r(69438),o=r(67491),a=r(64438),s=r(8258),u=r(40279),c=r(5655),l=r(54544),d=r(54041);async function f(e,t){let{account:r=e.account,chain:f=e.chain,accessList:h,data:p,gas:m,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:b,nonce:v,to:w,value:E,...A}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});let P=(0,n.parseAccount)(r);try{let r;if((0,c.assertRequest)(t),null!==f&&(r=await (0,d.getChainId)(e),(0,o.assertCurrentChain)({currentChainId:r,chain:f})),"local"===P.type){let t=await (0,l.prepareRequest)(e,{account:P,accessList:h,chain:f,data:p,gas:m,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:b,nonce:v,to:w,value:E,...A});r||(r=await (0,d.getChainId)(e));let n=f?.serializers?.transaction,i=await P.signTransaction({...t,chainId:r},{serializer:n});return await e.request({method:"eth_sendRawTransaction",params:[i]})}let n=f?.formatters?.transactionRequest?.format||u.formatTransactionRequest,i=n({...(0,s.extract)(A,{format:n}),accessList:h,data:p,from:P.address,gas:m,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:b,nonce:v,to:w,value:E});return await e.request({method:"eth_sendTransaction",params:[i]})}catch(e){throw(0,a.getTransactionError)(e,{...t,account:P,chain:t.chain||void 0})}}t.sendTransaction=f},33726:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=void 0;let n=r(5998),i=r(69438),o=r(75367);async function a(e,{account:t=e.account,message:r}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});let a=(0,n.parseAccount)(t);if("local"===a.type)return a.signMessage({message:r});let s="string"==typeof r?(0,o.stringToHex)(r):r.raw instanceof Uint8Array?(0,o.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,a.address]})}t.signMessage=a},17510:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=void 0;let n=r(5998),i=r(69438),o=r(94293),a=r(52694),s=r(33352);async function u(e,{account:t=e.account,domain:r,message:u,primaryType:c,types:l}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});let d=(0,n.parseAccount)(t),f={EIP712Domain:["string"==typeof r?.name&&{name:"name",type:"string"},r?.version&&{name:"version",type:"string"},"number"==typeof r?.chainId&&{name:"chainId",type:"uint256"},r?.verifyingContract&&{name:"verifyingContract",type:"address"},r?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...l};if((0,s.validateTypedData)({domain:r,message:u,primaryType:c,types:f}),"local"===d.type)return d.signTypedData({domain:r,primaryType:c,types:f,message:u});let h=(0,a.stringify)({domain:r??{},primaryType:c,types:f,message:u},(e,t)=>(0,o.isHex)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[d.address,h]})}t.signTypedData=u},64169:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=void 0;let n=r(75367);async function i(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]})}t.switchChain=i},97235:function(e,t){"use strict";async function r(e,t){let r=await e.request({method:"wallet_watchAsset",params:t});return r}Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=void 0,t.watchAsset=r},55962:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=void 0;let n=r(25765),i=r(13710);async function o(e,{abi:t,address:r,args:o,dataSuffix:a,functionName:s,...u}){let c=(0,n.encodeFunctionData)({abi:t,args:o,functionName:s}),l=await (0,i.sendTransaction)(e,{data:`${c}${a?a.replace("0x",""):""}`,to:r,...u});return l}t.writeContract=o},83718:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=void 0;let n=r(9377),i=r(15045);t.createClient=function(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,key:o="base",name:a="Base Client",pollingInterval:s=4e3,type:u="base"}=e,c=e.chain,l=e.account?(0,n.parseAccount)(e.account):void 0,{config:d,request:f,value:h}=e.transport({chain:c,pollingInterval:s}),p={...d,...h},m={account:l,batch:t,cacheTime:r,chain:c,key:o,name:a,pollingInterval:s,request:f,transport:p,type:u,uid:(0,i.uid)()};return Object.assign(m,{extend:function e(t){return r=>{let n=r(t);for(let e in m)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(m)})}},36246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=void 0;let n=r(83718),i=r(99327);t.createPublicClient=function(e){let{key:t="public",name:r="Public Client"}=e,o=(0,n.createClient)({...e,key:t,name:r,type:"publicClient"});return o.extend(i.publicActions)}},29461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=void 0;let n=r(83718),i=r(8928);t.createTestClient=function(e){let{key:t="test",name:r="Test Client",mode:o}=e,a=(0,n.createClient)({...e,key:t,name:r,type:"testClient"});return a.extend(e=>({mode:o,...(0,i.testActions)({mode:o})(e)}))}},9279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=void 0;let n=r(83718),i=r(96654);t.createWalletClient=function(e){let{key:t="wallet",name:r="Wallet Client",transport:o}=e,a=(0,n.createClient)({...e,key:t,name:r,transport:e=>o({...e,retryCount:0}),type:"walletClient"});return a.extend(i.walletActions)}},99327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=void 0;let n=r(36135),i=r(70260),o=r(55749),a=r(73499),s=r(20125),u=r(66681),c=r(29293),l=r(4737),d=r(70867),f=r(86480),h=r(19359),p=r(19655),m=r(38367),g=r(48546),y=r(3360),b=r(2607),v=r(10491),w=r(54041),E=r(49147),A=r(72969),P=r(78958),x=r(9677),O=r(5667),C=r(32418),I=r(90767),T=r(50223),S=r(34974),_=r(89101),B=r(83965),j=r(95493),D=r(29934),M=r(50680),R=r(12069),k=r(33133),N=r(27284),U=r(7641),L=r(78361),F=r(43318),H=r(2539),q=r(5012);t.publicActions=function(e){return{call:t=>(0,u.call)(e,t),createBlockFilter:()=>(0,c.createBlockFilter)(e),createContractEventFilter:t=>(0,l.createContractEventFilter)(e,t),createEventFilter:t=>(0,d.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,f.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,h.estimateContractGas)(e,t),estimateGas:t=>(0,p.estimateGas)(e,t),getBalance:t=>(0,m.getBalance)(e,t),getBlock:t=>(0,g.getBlock)(e,t),getBlockNumber:t=>(0,y.getBlockNumber)(e,t),getBlockTransactionCount:t=>(0,b.getBlockTransactionCount)(e,t),getBytecode:t=>(0,v.getBytecode)(e,t),getChainId:()=>(0,w.getChainId)(e),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,i.getEnsAvatar)(e,t),getEnsName:t=>(0,o.getEnsName)(e,t),getEnsResolver:t=>(0,a.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,E.getFeeHistory)(e,t),getFilterChanges:t=>(0,A.getFilterChanges)(e,t),getFilterLogs:t=>(0,P.getFilterLogs)(e,t),getGasPrice:()=>(0,x.getGasPrice)(e),getLogs:t=>(0,O.getLogs)(e,t),getStorageAt:t=>(0,C.getStorageAt)(e,t),getTransaction:t=>(0,I.getTransaction)(e,t),getTransactionConfirmations:t=>(0,T.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,S.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,_.getTransactionReceipt)(e,t),multicall:t=>(0,B.multicall)(e,t),readContract:t=>(0,j.readContract)(e,t),simulateContract:t=>(0,D.simulateContract)(e,t),verifyMessage:t=>(0,R.verifyMessage)(e,t),verifyTypedData:t=>(0,k.verifyTypedData)(e,t),uninstallFilter:t=>(0,M.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,N.waitForTransactionReceipt)(e,t),watchBlocks:t=>(0,L.watchBlocks)(e,t),watchBlockNumber:t=>(0,U.watchBlockNumber)(e,t),watchContractEvent:t=>(0,F.watchContractEvent)(e,t),watchEvent:t=>(0,H.watchEvent)(e,t),watchPendingTransactions:t=>(0,q.watchPendingTransactions)(e,t)}}},8928:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=void 0;let n=r(33094),i=r(25197),o=r(42231),a=r(56399),s=r(13712),u=r(58704),c=r(68667),l=r(87822),d=r(37651),f=r(63112),h=r(71999),p=r(16557),m=r(53580),g=r(83659),y=r(10146),b=r(81797),v=r(25929),w=r(97250),E=r(88261),A=r(13667),P=r(38433),x=r(12584),O=r(8144),C=r(2006),I=r(69671),T=r(24334),S=r(51211),_=r(4394);t.testActions=function({mode:e}){return t=>{let r=t.extend(()=>({mode:e}));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),getAutomine:()=>(0,i.getAutomine)(r),getTxpoolContent:()=>(0,o.getTxpoolContent)(r),getTxpoolStatus:()=>(0,a.getTxpoolStatus)(r),impersonateAccount:e=>(0,s.impersonateAccount)(r,e),increaseTime:e=>(0,u.increaseTime)(r,e),inspectTxpool:()=>(0,c.inspectTxpool)(r),mine:e=>(0,l.mine)(r,e),removeBlockTimestampInterval:()=>(0,d.removeBlockTimestampInterval)(r),reset:e=>(0,f.reset)(r,e),revert:e=>(0,h.revert)(r,e),sendUnsignedTransaction:e=>(0,p.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,m.setAutomine)(r,e),setBalance:e=>(0,g.setBalance)(r,e),setBlockGasLimit:e=>(0,y.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,b.setBlockTimestampInterval)(r,e),setCode:e=>(0,v.setCode)(r,e),setCoinbase:e=>(0,w.setCoinbase)(r,e),setIntervalMining:e=>(0,E.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,A.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,P.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,x.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,O.setNextBlockTimestamp)(r,e),setNonce:e=>(0,C.setNonce)(r,e),setRpcUrl:e=>(0,I.setRpcUrl)(r,e),setStorageAt:e=>(0,T.setStorageAt)(r,e),snapshot:()=>(0,S.snapshot)(r),stopImpersonatingAccount:e=>(0,_.stopImpersonatingAccount)(r,e)}}}},96654:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=void 0;let n=r(54041),i=r(89459),o=r(33862),a=r(3164),s=r(39614),u=r(6892),c=r(98198),l=r(13710),d=r(33726),f=r(17510),h=r(64169),p=r(97235),m=r(55962);t.walletActions=function(e){return{addChain:t=>(0,i.addChain)(e,t),deployContract:t=>(0,o.deployContract)(e,t),getAddresses:()=>(0,a.getAddresses)(e),getChainId:()=>(0,n.getChainId)(e),getPermissions:()=>(0,s.getPermissions)(e),requestAddresses:()=>(0,u.requestAddresses)(e),requestPermissions:t=>(0,c.requestPermissions)(e,t),sendTransaction:t=>(0,l.sendTransaction)(e,t),signMessage:t=>(0,d.signMessage)(e,t),signTypedData:t=>(0,f.signTypedData)(e,t),switchChain:t=>(0,h.switchChain)(e,t),watchAsset:t=>(0,p.watchAsset)(e,t),writeContract:t=>(0,m.writeContract)(e,t)}}},21304:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=void 0;let n=r(47030);t.createTransport=function({key:e,name:t,request:r,retryCount:i=3,retryDelay:o=150,timeout:a,type:s},u){return{config:{key:e,name:t,request:r,retryCount:i,retryDelay:o,timeout:a,type:s},request:(0,n.buildRequest)(r,{retryCount:i,retryDelay:o}),value:u}}},11398:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.custom=void 0;let n=r(21304);t.custom=function(e,t={}){let{key:r="custom",name:i="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,n.createTransport)({key:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}},93025:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rankTransports=t.fallback=void 0;let n=r(47030),i=r(54789),o=r(21304);function a({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:o=1e3,transports:a,weights:s={}}){let{stability:u=.7,latency:c=.3}=s,l=[],d=async()=>{let s=await Promise.all(a.map(async t=>{let r,n;let i=t({chain:e,retryCount:0,timeout:o}),a=Date.now();try{await i.request({method:"net_listening"}),n=1}catch{n=0}finally{r=Date.now()}let s=r-a;return{latency:s,success:n}}));l.push(s),l.length>n&&l.shift();let f=Math.max(...l.map(e=>Math.max(...e.map(({latency:e})=>e)))),h=a.map((e,t)=>{let r=l.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,i=l.map(e=>e[t].success),o=i.reduce((e,t)=>e+t,0)/i.length;return 0===o?[0,t]:[c*(1-n/f)+u*o,t]}).sort((e,t)=>t[0]-e[0]);r(h.map(([,e])=>a[e])),await (0,i.wait)(t),d()};d()}t.fallback=function(e,t={}){let{key:r="fallback",name:i="Fallback",rank:s=!1,retryCount:u,retryDelay:c}=t;return({chain:t,pollingInterval:l=4e3,timeout:d})=>{let f=e,h=()=>{},p=(0,o.createTransport)({key:r,name:i,async request({method:e,params:r}){let i=async(o=0)=>{let a=f[o]({chain:t,retryCount:0,timeout:d});try{let t=await a.request({method:e,params:r});return h({method:e,params:r,response:t,transport:a,status:"success"}),t}catch(t){if(h({error:t,method:e,params:r,transport:a,status:"error"}),(0,n.isDeterministicError)(t)||o===f.length-1)throw t;return i(o+1)}};return i()},retryCount:u,retryDelay:c,type:"fallback"},{onResponse:e=>h=e,transports:f.map(e=>e({chain:t,retryCount:0}))});if(s){let e="object"==typeof s?s:{};a({chain:t,interval:e.interval??l,onTransports:e=>f=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:f,weights:e.weights})}return p}},t.rankTransports=a},59790:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.http=void 0;let n=r(15064),i=r(48892),o=r(45893),a=r(42426),s=r(21304);t.http=function(e,t={}){let{batch:r,fetchOptions:u,key:c="http",name:l="HTTP JSON-RPC",retryDelay:d}=t;return({chain:f,retryCount:h,timeout:p})=>{let{batchSize:m=1e3,wait:g=0}="object"==typeof r?r:{},y=t.retryCount??h,b=p??t.timeout??1e4,v=e||f?.rpcUrls.default.http[0];if(!v)throw new i.UrlRequiredError;return(0,s.createTransport)({key:c,name:l,async request({method:t,params:i}){let s={method:t,params:i},{schedule:c}=(0,o.createBatchScheduler)({id:`${e}`,wait:g,shouldSplitBatch:e=>e.length>m,fn:e=>a.rpc.http(v,{body:e,fetchOptions:u,timeout:b})}),l=async e=>r?c(e):[await a.rpc.http(v,{body:e,fetchOptions:u,timeout:b})],[{error:d,result:f}]=await l(s);if(d)throw new n.RpcRequestError({body:s,error:d,url:v});return f},retryCount:y,retryDelay:d,timeout:b,type:"http"},{url:e})}}},77796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=void 0;let n=r(15064),i=r(48892),o=r(42426),a=r(21304);t.webSocket=function(e,t={}){let{key:r="webSocket",name:s="WebSocket JSON-RPC",retryDelay:u}=t;return({chain:c,retryCount:l,timeout:d})=>{let f=t.retryCount??l,h=d??t.timeout??1e4,p=e||c?.rpcUrls.default.webSocket?.[0];if(!p)throw new i.UrlRequiredError;return(0,a.createTransport)({key:r,name:s,async request({method:e,params:t}){let r={method:e,params:t},i=await (0,o.getSocket)(p),{error:a,result:s}=await o.rpc.webSocketAsync(i,{body:r,timeout:h});if(a)throw new n.RpcRequestError({body:r,error:a,url:p});return s},retryCount:f,retryDelay:u,timeout:h,type:"webSocket"},{getSocket:()=>(0,o.getSocket)(p),async subscribe({params:e,onData:t,onError:r}){let n=await (0,o.getSocket)(p),{result:i}=await new Promise((i,a)=>o.rpc.webSocket(n,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){a(e.error),r?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>o.rpc.webSocket(n,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}}},28858:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorAbi=t.smartAccountAbi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}];let r=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];t.universalResolverResolveAbi=[...r,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],t.universalResolverReverseAbi=[...r,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],t.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},35026:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=void 0,t.zeroAddress="0x0000000000000000000000000000000000000000"},86191:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},82779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorByteCode=void 0,t.universalSignatureValidatorByteCode="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},23372:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=2n**(8n-1n),t.maxInt16=2n**(16n-1n),t.maxInt24=2n**(24n-1n),t.maxInt32=2n**(32n-1n),t.maxInt40=2n**(40n-1n),t.maxInt48=2n**(48n-1n),t.maxInt56=2n**(56n-1n),t.maxInt64=2n**(64n-1n),t.maxInt72=2n**(72n-1n),t.maxInt80=2n**(80n-1n),t.maxInt88=2n**(88n-1n),t.maxInt96=2n**(96n-1n),t.maxInt104=2n**(104n-1n),t.maxInt112=2n**(112n-1n),t.maxInt120=2n**(120n-1n),t.maxInt128=2n**(128n-1n),t.maxInt136=2n**(136n-1n),t.maxInt144=2n**(144n-1n),t.maxInt152=2n**(152n-1n),t.maxInt160=2n**(160n-1n),t.maxInt168=2n**(168n-1n),t.maxInt176=2n**(176n-1n),t.maxInt184=2n**(184n-1n),t.maxInt192=2n**(192n-1n),t.maxInt200=2n**(200n-1n),t.maxInt208=2n**(208n-1n),t.maxInt216=2n**(216n-1n),t.maxInt224=2n**(224n-1n),t.maxInt232=2n**(232n-1n),t.maxInt240=2n**(240n-1n),t.maxInt248=2n**(248n-1n),t.maxInt256=2n**(256n-1n),t.minInt8=-(2n**8n),t.minInt16=-(2n**16n),t.minInt24=-(2n**24n),t.minInt32=-(2n**32n),t.minInt40=-(2n**40n),t.minInt48=-(2n**48n),t.minInt56=-(2n**56n),t.minInt64=-(2n**64n),t.minInt72=-(2n**72n),t.minInt80=-(2n**80n),t.minInt88=-(2n**88n),t.minInt96=-(2n**96n),t.minInt104=-(2n**104n),t.minInt112=-(2n**112n),t.minInt120=-(2n**120n),t.minInt128=-(2n**128n),t.minInt136=-(2n**136n),t.minInt144=-(2n**144n),t.minInt152=-(2n**152n),t.minInt160=-(2n**160n),t.minInt168=-(2n**168n),t.minInt176=-(2n**176n),t.minInt184=-(2n**184n),t.minInt192=-(2n**192n),t.minInt200=-(2n**200n),t.minInt208=-(2n**208n),t.minInt216=-(2n**216n),t.minInt224=-(2n**224n),t.minInt232=-(2n**232n),t.minInt240=-(2n**240n),t.minInt248=-(2n**248n),t.minInt256=-(2n**256n),t.maxUint8=2n**8n,t.maxUint16=2n**16n,t.maxUint24=2n**24n,t.maxUint32=2n**32n,t.maxUint40=2n**40n,t.maxUint48=2n**48n,t.maxUint56=2n**56n,t.maxUint64=2n**64n,t.maxUint72=2n**72n,t.maxUint80=2n**80n,t.maxUint88=2n**88n,t.maxUint96=2n**96n,t.maxUint104=2n**104n,t.maxUint112=2n**112n,t.maxUint120=2n**120n,t.maxUint128=2n**128n,t.maxUint136=2n**136n,t.maxUint144=2n**144n,t.maxUint152=2n**152n,t.maxUint160=2n**160n,t.maxUint168=2n**168n,t.maxUint176=2n**176n,t.maxUint184=2n**184n,t.maxUint192=2n**192n,t.maxUint200=2n**200n,t.maxUint208=2n**208n,t.maxUint216=2n**216n,t.maxUint224=2n**224n,t.maxUint232=2n**232n,t.maxUint240=2n**240n,t.maxUint248=2n**248n,t.maxUint256=2n**256n},62118:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},81892:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},269:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;let n=r(73949),i=r(45001),o=r(61817);class a extends o.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}t.AbiConstructorNotFoundError=a;class s extends o.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}t.AbiConstructorParamsNotFoundError=s;class u extends o.BaseError{constructor({data:e,size:t}){super(`Data size of ${t} bytes is invalid. -Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=u;class c extends o.BaseError{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=c;class l extends o.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}t.AbiDecodingZeroDataError=l;class d extends o.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. -Expected length: ${e} -Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=d;class f extends o.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.size)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class h extends o.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. -Expected length (params): ${e} -Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=h;class p extends o.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). -Cannot encode error result without knowing what the parameter types are. -Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=p;class m extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=m;class g extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. -Make sure you are using the correct ABI and that the error exists on it. -You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=g;class y extends o.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=y;class b extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. -Make sure you are using the correct ABI and that the event exists on it. -You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=b;class v extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=v;class w extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}t.AbiFunctionNotFoundError=w;class E extends o.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. -Cannot decode function result without knowing what the parameter types are. -Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=E;class A extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. -Make sure you are using the correct ABI and that the function exists on it. -You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=A;class P extends o.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=P;class x extends o.BaseError{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}t.DecodeLogDataMismatch=x;class O extends o.BaseError{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=O;class C extends o.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. -Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}t.InvalidAbiEncodingTypeError=C;class I extends o.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. -Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=I;class T extends o.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}t.InvalidArrayError=T;class S extends o.BaseError{constructor(e){super(`"${e}" is not a valid definition type. -Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=S;class _ extends o.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=_},69438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountNotFoundError=void 0;let n=r(61817);class i extends n.BaseError{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}t.AccountNotFoundError=i},28489:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;let n=r(61817);class i extends n.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}t.InvalidAddressError=i},61817:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(28767);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.getVersion)()});let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,r):r?null:t}(this,e)}}t.BaseError=i},61945:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;let n=r(61817);class i extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}t.BlockNotFoundError=i},24626:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;let n=r(52694),i=r(61817),o=r(28767);class a extends i.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:i,urls:a}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(e=>` ${(0,o.getUrl)(e)}`)],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}t.OffchainLookupError=a;class s extends i.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class u extends i.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=u},14931:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;let n=r(61817);class i extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=i;class o extends n.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}t.ChainMismatchError=o;class a extends n.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}t.ChainNotFoundError=a;class s extends n.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class u extends n.BaseError{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}t.InvalidChainIdError=u},71693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;let n=r(5998),i=r(62118),o=r(69386),a=r(73949),s=r(32310),u=r(51491),c=r(16697),l=r(34697),d=r(269),f=r(61817),h=r(51765),p=r(28767);class m extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:p,value:m}){let g=t?(0,n.parseAccount)(t):void 0,y=(0,h.prettyPrint)({from:g?.address,to:p,value:void 0!==m&&`${(0,c.formatEther)(m)} ${i?.nativeCurrency.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,l.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==u&&`${(0,l.formatGwei)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,l.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}t.CallExecutionError=m;class g extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:c}){let l=(0,u.getAbiItem)({abi:t,args:r,name:o}),d=l?(0,s.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.formatAbiItem)(l,{includeName:!0}):void 0,m=(0,h.prettyPrint)({address:n&&(0,p.getContractAddress)(n),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:c});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",m].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=c}}t.ContractFunctionExecutionError=g;class y extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let u,c,l,f,h;if(t&&"0x"!==t)try{h=(0,o.decodeErrorResult)({abi:e,data:t});let{abiItem:r,errorName:n,args:u}=h;if("Error"===n)l=u[0];else if("Panic"===n){let[e]=u;l=i.panicReasons[e]}else{let e=r?(0,a.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&u?(0,s.formatAbiItemWithArgs)({abiItem:r,args:u,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else n&&(l=n);u instanceof d.AbiErrorSignatureNotFoundError&&(c=[`Unable to decode signature "${f=u.signature}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`]),super(l&&"execution reverted"!==l||f?[`The contract function "${r}" reverted with the following ${f?"signature":"reason"}:`,l||f].join("\n"):`The contract function "${r}" reverted.`,{cause:u,metaMessages:c}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=h,this.reason=l,this.signature=f}}t.ContractFunctionRevertedError=y;class b extends f.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}t.ContractFunctionZeroDataError=b;class v extends f.BaseError{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}t.RawContractError=v},98600:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;let n=r(61817);class i extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=i;class o extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=o},52552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.DataLengthTooShortError=t.DataLengthTooLongError=void 0;let n=r(61817);class i extends n.BaseError{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}t.DataLengthTooLongError=i;class o extends n.BaseError{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than prefix length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}t.DataLengthTooShortError=o;class a extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=a;class s extends n.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=s;class u extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=u;class c extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}t.InvalidHexValueError=c;class l extends n.BaseError{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}t.OffsetOutOfBoundsError=l;class d extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}t.SizeOverflowError=d},37624:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;let n=r(61817);class i extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=i;class o extends n.BaseError{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=o;class a extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=a;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s},89059:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;let n=r(16697),i=r(34697),o=r(61817),a=r(51765);class s extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=(0,a.prettyPrint)({from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${o?.nativeCurrency.symbol||"ETH"}`,data:s,gas:u,gasPrice:void 0!==c&&`${(0,i.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}t.EstimateGasExecutionError=s},2798:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;let n=r(61817);class i extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=i},66498:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;let n=r(34697),i=r(61817);class o extends i.BaseError{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/}),t.ExecutionRevertedError=o;class a extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/}),t.FeeCapTooHighError=a;class s extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/}),t.FeeCapTooLowError=s;class u extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/}),t.NonceTooHighError=u;class c extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. -Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/}),t.NonceTooLowError=c;class l extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/}),t.NonceMaxValueError=l;class d extends i.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/}),t.InsufficientFundsError=d;class f extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/}),t.IntrinsicGasTooHighError=f;class h extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/}),t.IntrinsicGasTooLowError=h;class p extends i.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/}),t.TransactionTypeNotSupportedError=p;class m extends i.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/}),t.TipAboveFeeCapError=m;class g extends i.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.message}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}t.UnknownNodeError=g},15064:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.RpcRequestError=t.WebSocketRequestError=t.HttpRequestError=void 0;let n=r(52694),i=r(61817),o=r(28767);class a extends i.BaseError{constructor({body:e,details:t,headers:r,status:i,url:a}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.getUrl)(a)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=i,this.url=a}}t.HttpRequestError=a;class s extends i.BaseError{constructor({body:e,details:t,url:r}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}t.WebSocketRequestError=s;class u extends i.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}t.RpcRequestError=u;class c extends i.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}t.TimeoutError=c},74199:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;let n=r(61817),i=r(15064);class o extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.RpcRequestError?e.code:t??-1}}t.RpcError=o;class a extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=a;class s extends o{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),t.ParseRpcError=s;class u extends o{constructor(e){super(e,{code:u.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),t.InvalidRequestRpcError=u;class c extends o{constructor(e){super(e,{code:c.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),t.MethodNotFoundRpcError=c;class l extends o{constructor(e){super(e,{code:l.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),t.InvalidParamsRpcError=l;class d extends o{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),t.InternalRpcError=d;class f extends o{constructor(e){super(e,{code:f.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),t.InvalidInputRpcError=f;class h extends o{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),t.ResourceNotFoundRpcError=h;class p extends o{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),t.ResourceUnavailableRpcError=p;class m extends o{constructor(e){super(e,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),t.TransactionRejectedRpcError=m;class g extends o{constructor(e){super(e,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),t.MethodNotSupportedRpcError=g;class y extends o{constructor(e){super(e,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),t.LimitExceededRpcError=y;class b extends o{constructor(e){super(e,{code:b.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),t.JsonRpcVersionUnsupportedError=b;class v extends a{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001}),t.UserRejectedRequestError=v;class w extends a{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100}),t.UnauthorizedProviderError=w;class E extends a{constructor(e){super(e,{code:E.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200}),t.UnsupportedProviderMethodError=E;class A extends a{constructor(e){super(e,{code:A.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900}),t.ProviderDisconnectedError=A;class P extends a{constructor(e){super(e,{code:P.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901}),t.ChainDisconnectedError=P;class x extends a{constructor(e){super(e,{code:x.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902}),t.SwitchChainError=x,t.UnknownRpcError=class extends o{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},51765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.prettyPrint=void 0;let n=r(16697),i=r(34697),o=r(61817);function a(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}t.prettyPrint=a;class s extends o.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}t.FeeConflictError=s;class u extends o.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}t.InvalidLegacyVError=u;class c extends o.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}t.InvalidSerializableTransactionError=c;class l extends o.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=l;class d extends o.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){let n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}t.InvalidSerializedTransactionError=d;class f extends o.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=f;class h extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${o?.nativeCurrency.symbol||"ETH"}`,data:s,gas:u,gasPrice:void 0!==c&&`${(0,i.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}t.TransactionExecutionError=h;class p extends o.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}t.TransactionNotFoundError=p;class m extends o.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}t.TransactionReceiptNotFoundError=m;class g extends o.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=g},48892:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;let n=r(61817);class i extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}t.UrlRequiredError=i},28767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersion=t.getUrl=t.getContractAddress=void 0;let n=r(80966);t.getContractAddress=e=>e,t.getUrl=e=>e;let i=()=>`viem@${n.version}`;t.getVersion=i},80966:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.5.4"},53835:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.weiUnits=t.gweiUnits=t.etherUnits=t.zeroAddress=t.multicall3Abi=t.webSocket=t.createWalletClient=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createTestClient=t.createPublicClient=t.http=t.fallback=t.custom=t.createClient=t.getContract=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.UnknownSignatureError=t.UnknownTypeError=t.SolidityProtectedKeywordError=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiItemError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.CircularReferenceError=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=void 0,t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=void 0,t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.EstimateGasExecutionError=t.EnsAvatarUriResolutionError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.DataLengthTooShortError=t.DataLengthTooLongError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainDoesNotSupportContract=t.UserRejectedRequestError=t.UnsupportedProviderMethodError=t.UnknownRpcError=t.UnauthorizedProviderError=t.SwitchChainError=t.TransactionRejectedRpcError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.ChainDisconnectedError=t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.BlockNotFoundError=t.BaseError=t.InvalidDefinitionTypeError=t.InvalidArrayError=void 0,t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hexToSignature=t.hashTypedData=t.getTransactionType=t.getSerializedTransactionType=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAbiItem=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.formatLog=t.formatBlock=t.defineBlock=t.namehash=t.labelhash=t.UrlRequiredError=t.SizeExceedsPaddingSizeError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidLegacyVError=t.InvalidAddressError=t.WebSocketRequestError=t.TimeoutError=t.RpcRequestError=t.HttpRequestError=t.FilterTypeNotSupportedError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=void 0,t.isAddressEqual=t.isAddress=t.hashMessage=t.getFunctionSelector=t.getEventSelector=t.getContractError=t.getAddress=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.formatUnits=t.formatGwei=t.formatEther=t.encodePacked=t.defineChain=t.assertCurrentChain=t.concatHex=t.concatBytes=t.concat=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.verifyTypedData=t.verifyMessage=t.toRlp=t.signatureToHex=t.recoverTypedDataAddress=void 0,t.validateTypedData=t.trim=t.stringify=t.sliceHex=t.sliceBytes=t.slice=t.size=t.serializeTransaction=t.serializeAccessList=t.prepareRequest=t.parseUnits=t.parseTransaction=t.parseGwei=t.parseEther=t.padHex=t.padBytes=t.pad=t.keccak256=t.isHex=t.isHash=t.isBytes=void 0;var n=r(21565);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var i=r(12579);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return i.getContract}});var o=r(83718);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return o.createClient}});var a=r(11398);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return a.custom}});var s=r(93025);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return s.fallback}});var u=r(59790);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return u.http}});var c=r(36246);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return c.createPublicClient}});var l=r(29461);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return l.createTestClient}});var d=r(99327);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return d.publicActions}});var f=r(8928);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return f.testActions}});var h=r(96654);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return h.walletActions}});var p=r(21304);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var m=r(9279);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return m.createWalletClient}});var g=r(77796);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return g.webSocket}});var y=r(28858);Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return y.multicall3Abi}});var b=r(35026);Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return b.zeroAddress}});var v=r(81892);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return v.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return v.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return v.weiUnits}});var w=r(23372);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return w.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return w.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return w.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return w.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return w.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return w.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return w.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return w.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return w.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return w.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return w.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return w.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return w.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return w.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return w.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return w.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return w.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return w.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return w.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return w.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return w.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return w.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return w.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return w.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return w.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return w.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return w.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return w.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return w.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return w.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return w.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return w.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return w.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return w.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return w.maxUint24}}),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return w.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return w.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return w.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return w.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return w.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return w.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return w.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return w.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return w.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return w.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return w.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return w.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return w.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return w.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return w.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return w.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return w.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return w.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return w.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return w.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return w.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return w.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return w.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return w.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return w.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return w.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return w.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return w.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return w.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return w.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return w.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return w.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return w.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return w.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return w.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return w.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return w.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return w.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return w.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return w.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return w.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return w.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return w.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return w.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return w.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return w.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return w.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return w.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return w.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return w.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return w.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return w.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return w.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return w.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return w.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return w.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return w.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return w.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return w.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return w.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return w.minInt256}});var E=r(269);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return E.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return E.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return E.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return E.AbiDecodingZeroDataError}}),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return E.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return E.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return E.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return E.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return E.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return E.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return E.InvalidDefinitionTypeError}});var A=r(61817);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return A.BaseError}});var P=r(61945);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return P.BlockNotFoundError}});var x=r(71693);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return x.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return x.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return x.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return x.ContractFunctionZeroDataError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return x.RawContractError}});var O=r(74199);Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return O.ChainDisconnectedError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return O.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return O.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return O.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return O.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return O.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return O.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return O.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return O.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return O.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return O.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return O.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return O.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return O.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return O.RpcError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return O.TransactionRejectedRpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return O.SwitchChainError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return O.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return O.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return O.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return O.UserRejectedRequestError}});var C=r(14931);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return C.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return C.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return C.InvalidChainIdError}});var I=r(52552);Object.defineProperty(t,"DataLengthTooLongError",{enumerable:!0,get:function(){return I.DataLengthTooLongError}}),Object.defineProperty(t,"DataLengthTooShortError",{enumerable:!0,get:function(){return I.DataLengthTooShortError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return I.InvalidBytesBooleanError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return I.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return I.InvalidHexValueError}}),Object.defineProperty(t,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return I.OffsetOutOfBoundsError}});var T=r(37624);Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return T.EnsAvatarUriResolutionError}});var S=r(89059);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return S.EstimateGasExecutionError}});var _=r(66498);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return _.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return _.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return _.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return _.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return _.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return _.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return _.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return _.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return _.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return _.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return _.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return _.UnknownNodeError}});var B=r(2798);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return B.FilterTypeNotSupportedError}});var j=r(15064);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return j.HttpRequestError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return j.RpcRequestError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return j.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return j.WebSocketRequestError}});var D=r(28489);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return D.InvalidAddressError}});var M=r(51765);Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return M.InvalidLegacyVError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return M.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return M.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return M.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return M.WaitForTransactionReceiptTimeoutError}});var R=r(98600);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return R.SizeExceedsPaddingSizeError}});var k=r(48892);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return k.UrlRequiredError}});var N=r(34910);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return N.labelhash}});var U=r(88172);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return U.namehash}});var L=r(64954);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return L.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return L.formatBlock}});var F=r(69344);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return F.formatLog}});var H=r(49378);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return H.decodeAbiParameters}});var q=r(3325);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return q.decodeDeployData}});var z=r(69386);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return z.decodeErrorResult}});var $=r(8496);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return $.decodeEventLog}});var G=r(38236);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return G.decodeFunctionData}});var V=r(94337);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return V.decodeFunctionResult}});var W=r(71356);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return W.encodeAbiParameters}});var K=r(9830);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return K.encodeDeployData}});var Q=r(76618);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return Q.encodeErrorResult}});var Y=r(48506);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return Y.encodeEventTopics}});var J=r(25765);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return J.encodeFunctionData}});var Z=r(5848);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return Z.encodeFunctionResult}});var X=r(98395);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return X.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return X.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return X.transactionType}});var ee=r(8366);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return ee.defineTransactionReceipt}});var et=r(40279);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return et.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return et.formatTransactionRequest}});var er=r(51491);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return er.getAbiItem}});var en=r(47341);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return en.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return en.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return en.getCreateAddress}});var ei=r(68864);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return ei.getSerializedTransactionType}});var eo=r(75256);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return eo.getTransactionType}});var ea=r(67339);Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return ea.hashTypedData}});var es=r(23305);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return es.hexToSignature}});var eu=r(64761);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return eu.recoverAddress}});var ec=r(46879);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return ec.recoverMessageAddress}});var el=r(7418);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return el.recoverPublicKey}});var ed=r(28241);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return ed.recoverTypedDataAddress}});var ef=r(91368);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return ef.signatureToHex}});var eh=r(59152);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return eh.toRlp}});var ep=r(51287);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return ep.verifyMessage}});var em=r(82566);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return em.verifyTypedData}});var eg=r(5655);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return eg.assertRequest}});var ey=r(9293);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return ey.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return ey.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return ey.assertTransactionLegacy}});var eb=r(33158);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return eb.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return eb.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return eb.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return eb.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return eb.toBytes}});var ev=r(75367);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return ev.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return ev.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return ev.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return ev.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return ev.toHex}});var ew=r(74053);Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return ew.bytesToBigint}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return ew.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return ew.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return ew.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return ew.fromBytes}});var eE=r(18510);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return eE.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return eE.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return eE.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return eE.offchainLookupSignature}});var eA=r(3606);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return eA.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return eA.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return eA.concatHex}});var eP=r(67491);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return eP.assertCurrentChain}}),Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return eP.defineChain}});var ex=r(99077);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return ex.encodePacked}});var eO=r(16697);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return eO.formatEther}});var eC=r(34697);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return eC.formatGwei}});var eI=r(78743);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return eI.formatUnits}});var eT=r(89097);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return eT.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return eT.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return eT.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return eT.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return eT.hexToString}});var eS=r(10356);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return eS.fromRlp}});var e_=r(37933);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return e_.getAddress}});var eB=r(86874);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return eB.getContractError}});var ej=r(53336);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return ej.getEventSelector}});var eD=r(70729);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return eD.getFunctionSelector}});var eM=r(44639);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return eM.hashMessage}});var eR=r(18594);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return eR.isAddress}});var ek=r(9474);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return ek.isAddressEqual}});var eN=r(44544);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return eN.isBytes}});var eU=r(65961);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return eU.isHash}});var eL=r(94293);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return eL.isHex}});var eF=r(15707);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return eF.keccak256}});var eH=r(1751);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return eH.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return eH.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return eH.padHex}});var eq=r(93400);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return eq.parseEther}});var ez=r(96874);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return ez.parseGwei}});var e$=r(29471);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return e$.parseTransaction}});var eG=r(88752);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return eG.parseUnits}});var eV=r(54544);Object.defineProperty(t,"prepareRequest",{enumerable:!0,get:function(){return eV.prepareRequest}});var eW=r(34179);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return eW.serializeAccessList}});var eK=r(51463);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return eK.serializeTransaction}});var eQ=r(45001);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return eQ.size}});var eY=r(76092);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return eY.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return eY.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return eY.sliceHex}});var eJ=r(52694);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return eJ.stringify}});var eZ=r(9379);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return eZ.trim}});var eX=r(33352);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return eX.validateTypedData}})},49378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=void 0;let n=r(269),i=r(37933),o=r(45001),a=r(76092),s=r(9379),u=r(89097),c=r(71356);function l(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(l);let r=(0,c.getArrayComponents)(e.type);return!!(r&&l({...e,type:r[1]}))}t.decodeAbiParameters=function(e,t){if("0x"===t&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,o.size)(t)&&32>(0,o.size)(t))throw new n.AbiDecodingDataSizeTooSmallError({data:t,params:e,size:(0,o.size)(t)});return function({data:e,params:t}){let r=[],d=0;for(let f=0;f=(0,o.size)(e))throw new n.AbiDecodingDataSizeTooSmallError({data:e,params:t,size:(0,o.size)(e)});let h=t[f],{consumed:p,value:m}=function e({data:t,param:r,position:o}){let d=(0,c.getArrayComponents)(r.type);if(d){let[n,i]=d;return function(t,{param:r,length:n,position:i}){if(!n){let n=(0,u.hexToNumber)((0,a.slice)(t,i,i+32,{strict:!0})),o=(0,u.hexToNumber)((0,a.slice)(t,n,n+32,{strict:!0})),s=0,c=[];for(let i=0;i!e),o=i?[]:{},s=0;if(l(r)){let c=(0,u.hexToNumber)((0,a.slice)(t,n,n+32,{strict:!0}));for(let n=0;n48?(0,u.hexToBigInt)(e,{signed:r}):(0,u.hexToNumber)(e,{signed:r})}}(f,{param:r});if("address"===r.type)return{consumed:32,value:(0,i.checksumAddress)((0,a.slice)(f,-20))};if("bool"===r.type)return{consumed:32,value:(0,u.hexToBool)(f)};throw new n.InvalidAbiDecodingTypeError(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:h,position:d});r.push(m),d+=p}return r}({data:t,params:e})}},3325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=void 0;let n=r(269),i=r(49378),o="/docs/contract/decodeDeployData";t.decodeDeployData=function({abi:e,bytecode:t,data:r}){if(r===t)return{bytecode:t};let a=e.find(e=>"type"in e&&"constructor"===e.type);if(!a)throw new n.AbiConstructorNotFoundError({docsPath:o});if(!("inputs"in a)||!a.inputs||0===a.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:o});let s=(0,i.decodeAbiParameters)(a.inputs,`0x${r.replace(t,"")}`);return{args:s,bytecode:t}}},69386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=void 0;let n=r(62118),i=r(269),o=r(76092),a=r(70729),s=r(49378),u=r(73949);t.decodeErrorResult=function({abi:e,data:t}){let r=(0,o.slice)(t,0,4);if("0x"===r)throw new i.AbiDecodingZeroDataError;let c=[...e||[],n.solidityError,n.solidityPanic],l=c.find(e=>"error"===e.type&&r===(0,a.getFunctionSelector)((0,u.formatAbiItem)(e)));if(!l)throw new i.AbiErrorSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,s.decodeAbiParameters)(l.inputs,(0,o.slice)(t,4)):void 0,errorName:l.name}}},8496:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=void 0;let n=r(269),i=r(53336),o=r(49378),a=r(73949),s="/docs/contract/decodeEventLog";t.decodeEventLog=function({abi:e,data:t,strict:r,topics:u}){let c=r??!0,[l,...d]=u;if(!l)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:s});let f=e.find(e=>"event"===e.type&&l===(0,i.getEventSelector)((0,a.formatAbiItem)(e)));if(!(f&&"name"in f)||"event"!==f.type)throw new n.AbiEventSignatureNotFoundError(l,{docsPath:s});let{name:h,inputs:p}=f,m=p?.some(e=>!("name"in e&&e.name)),g=m?[]:{},y=p.filter(e=>"indexed"in e&&e.indexed);if(d.length>0)for(let e=0;e!("indexed"in e&&e.indexed));if(b.length>0){if(t&&"0x"!==t)try{let e=(0,o.decodeAbiParameters)(b,t);if(e){if(m)g=[...g,...e];else for(let t=0;t0?g:void 0}}},38236:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=void 0;let n=r(269),i=r(76092),o=r(70729),a=r(49378),s=r(73949);t.decodeFunctionData=function({abi:e,data:t}){let r=(0,i.slice)(t,0,4),u=e.find(e=>"function"===e.type&&r===(0,o.getFunctionSelector)((0,s.formatAbiItem)(e)));if(!u)throw new n.AbiFunctionSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,a.decodeAbiParameters)(u.inputs,(0,i.slice)(t,4)):void 0}}},94337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=void 0;let n=r(269),i=r(49378),o=r(51491),a="/docs/contract/decodeFunctionResult";t.decodeFunctionResult=function({abi:e,args:t,functionName:r,data:s}){let u=e[0];if(r&&!(u=(0,o.getAbiItem)({abi:e,args:t,name:r})))throw new n.AbiFunctionNotFoundError(r,{docsPath:a});if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!u.outputs)throw new n.AbiFunctionOutputsNotFoundError(u.name,{docsPath:a});let c=(0,i.decodeAbiParameters)(u.outputs,s);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},71356:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayComponents=t.encodeAbiParameters=void 0;let n=r(269),i=r(28489),o=r(18594),a=r(3606),s=r(1751),u=r(45001),c=r(76092),l=r(75367);function d(e){let t=0;for(let r=0;r0?(0,a.concat)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.concat)(u.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let o=0;oe))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,o.isAddress)(e))throw new i.InvalidAddressError({address:e});return{dynamic:!1,encoded:(0,s.padHex)(e.toLowerCase())}}(r);if("bool"===t.type)return{dynamic:!1,encoded:(0,s.padHex)((0,l.boolToHex)(r))};if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int");return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.numberToHex)(e,{size:32,signed:t})}}(r,{signed:e})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,u.size)(e);if(!r){let t=e;return i%32!=0&&(t=(0,s.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.concat)([(0,s.padHex)((0,l.numberToHex)(i,{size:32})),t])}}if(i!==parseInt(r))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(r),value:e});return{dynamic:!1,encoded:(0,s.padHex)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,l.stringToHex)(e),r=Math.ceil((0,u.size)(t)/32),n=[];for(let e=0;e"type"in e&&"constructor"===e.type);if(!s)throw new n.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:a});let u=(0,o.encodeAbiParameters)(s.inputs,t);return(0,i.concatHex)([r,u])}},76618:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=void 0;let n=r(269),i=r(3606),o=r(70729),a=r(71356),s=r(73949),u=r(51491),c="/docs/contract/encodeErrorResult";t.encodeErrorResult=function({abi:e,errorName:t,args:r}){let l=e[0];if(t&&!(l=(0,u.getAbiItem)({abi:e,args:r,name:t})))throw new n.AbiErrorNotFoundError(t,{docsPath:c});if("error"!==l.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:c});let d=(0,s.formatAbiItem)(l),f=(0,o.getFunctionSelector)(d),h="0x";if(r&&r.length>0){if(!l.inputs)throw new n.AbiErrorInputsNotFoundError(l.name,{docsPath:c});h=(0,a.encodeAbiParameters)(l.inputs,r)}return(0,i.concatHex)([f,h])}},48506:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=void 0;let n=r(269),i=r(2798),o=r(33158),a=r(53336),s=r(15707),u=r(71356),c=r(73949),l=r(51491);function d({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,s.keccak256)((0,o.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new i.FilterTypeNotSupportedError(e.type);return(0,u.encodeAbiParameters)([e],[t])}t.encodeEventTopics=function({abi:e,eventName:t,args:r}){let i=e[0];if(t&&!(i=(0,l.getAbiItem)({abi:e,args:r,name:t})))throw new n.AbiEventNotFoundError(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==i.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let o=(0,c.formatAbiItem)(i),s=(0,a.getEventSelector)(o),u=[];if(r&&"inputs"in i){let e=i.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(u=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>d({param:e,value:t[r][i]})):t[r]?d({param:e,value:t[r]}):null)??[])}return[s,...u]}},25765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=void 0;let n=r(269),i=r(3606),o=r(70729),a=r(71356),s=r(73949),u=r(51491);t.encodeFunctionData=function({abi:e,args:t,functionName:r}){let c=e[0];if(r&&!(c=(0,u.getAbiItem)({abi:e,args:t,name:r})))throw new n.AbiFunctionNotFoundError(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let l=(0,s.formatAbiItem)(c),d=(0,o.getFunctionSelector)(l),f="inputs"in c&&c.inputs?(0,a.encodeAbiParameters)(c.inputs,t??[]):void 0;return(0,i.concatHex)([d,f??"0x"])}},5848:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=void 0;let n=r(269),i=r(71356),o=r(51491);t.encodeFunctionResult=function({abi:e,functionName:t,result:r}){let a=e[0];if(t&&!(a=(0,o.getAbiItem)({abi:e,name:t})))throw new n.AbiFunctionNotFoundError(t,{docsPath:"/docs/contract/encodeFunctionResult"});if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!a.outputs)throw new n.AbiFunctionOutputsNotFoundError(a.name,{docsPath:"/docs/contract/encodeFunctionResult"});let s=Array.isArray(r)?r:[r];return 0!==a.outputs.length||s[0]||(s=[]),(0,i.encodeAbiParameters)(a.outputs,s)}},99077:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=void 0;let n=r(269),i=r(28489),o=r(18594),a=r(3606),s=r(1751),u=r(75367),c=r(71832);t.encodePacked=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});let r=[];for(let l=0;l(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${i(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`},t.formatAbiParams=i},32310:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=void 0;let n=r(52694);t.formatAbiItemWithArgs=function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:i=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${i&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,n.stringify)(t[r]):t[r]}`).join(", ")})`}},51491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArgOfType=t.getAbiItem=void 0;let n=r(18594);function i(e,t){let r=typeof e,o=t.type;switch(o){case"address":return(0,n.isAddress)(e);case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===o&&"components"in t)return Object.values(t.components).every((t,r)=>i(Object.values(e)[r],t));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o))return"string"===r||e instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o))return Array.isArray(e)&&e.every(e=>i(e,{...t,type:o.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}t.getAbiItem=function({abi:e,args:t=[],name:r}){let n=e.filter(e=>"name"in e&&e.name===r);if(0!==n.length){if(1===n.length)return n[0];for(let e of n){if(!("inputs"in e))continue;if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs||0===e.inputs.length||e.inputs.length!==t.length)continue;let r=t.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&i(t,n)});if(r)return e}return n[0]}},t.isArgOfType=i},9377:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=t.parseAccount=void 0;var n=r(5998);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return n.parseAccount}});var i=r(85301);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return i.publicKeyToAddress}})},37933:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=t.checksumAddress=void 0;let n=r(28489),i=r(33158),o=r(15707),a=r(18594);function s(e,t){let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.keccak256)((0,i.stringToBytes)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&n[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());return`0x${a.join("")}`}t.checksumAddress=s,t.getAddress=function(e,t){if(!(0,a.isAddress)(e))throw new n.InvalidAddressError({address:e});return s(e,t)}},47341:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=t.getContractAddress=void 0;let n=r(3606),i=r(44544),o=r(1751),a=r(76092),s=r(33158),u=r(59152),c=r(15707),l=r(37933);function d(e){let t=(0,s.toBytes)((0,l.getAddress)(e.from)),r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,l.getAddress)(`0x${(0,c.keccak256)((0,u.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){let t=(0,s.toBytes)((0,l.getAddress)(e.from)),r=(0,o.pad)((0,i.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),u=(0,s.toBytes)((0,c.keccak256)((0,i.isBytes)(e.bytecode)?e.bytecode:(0,s.toBytes)(e.bytecode)));return(0,l.getAddress)((0,a.slice)((0,c.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,u])),12))}t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):d(e)},t.getCreateAddress=d,t.getCreate2Address=f},18594:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=void 0;let r=/^0x[a-fA-F0-9]{40}$/;t.isAddress=function(e){return r.test(e)}},9474:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=void 0;let n=r(28489),i=r(18594);t.isAddressEqual=function(e,t){if(!(0,i.isAddress)(e))throw new n.InvalidAddressError({address:e});if(!(0,i.isAddress)(t))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}},47030:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=t.isDeterministicError=void 0;let n=r(61817),i=r(15064),o=r(74199),a=r(33693),s=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof i.HttpRequestError&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status;t.isDeterministicError=s,t.buildRequest=function(e,{retryDelay:r=150,retryCount:s=3}={}){return async u=>(0,a.withRetry)(async()=>{try{return await e(u)}catch(e){switch(e.code){case o.ParseRpcError.code:throw new o.ParseRpcError(e);case o.InvalidRequestRpcError.code:throw new o.InvalidRequestRpcError(e);case o.MethodNotFoundRpcError.code:throw new o.MethodNotFoundRpcError(e);case o.InvalidParamsRpcError.code:throw new o.InvalidParamsRpcError(e);case o.InternalRpcError.code:throw new o.InternalRpcError(e);case o.InvalidInputRpcError.code:throw new o.InvalidInputRpcError(e);case o.ResourceNotFoundRpcError.code:throw new o.ResourceNotFoundRpcError(e);case o.ResourceUnavailableRpcError.code:throw new o.ResourceUnavailableRpcError(e);case o.TransactionRejectedRpcError.code:throw new o.TransactionRejectedRpcError(e);case o.MethodNotSupportedRpcError.code:throw new o.MethodNotSupportedRpcError(e);case o.LimitExceededRpcError.code:throw new o.LimitExceededRpcError(e);case o.JsonRpcVersionUnsupportedError.code:throw new o.JsonRpcVersionUnsupportedError(e);case o.UserRejectedRequestError.code:throw new o.UserRejectedRequestError(e);case o.UnauthorizedProviderError.code:throw new o.UnauthorizedProviderError(e);case o.UnsupportedProviderMethodError.code:throw new o.UnsupportedProviderMethodError(e);case o.ProviderDisconnectedError.code:throw new o.ProviderDisconnectedError(e);case o.ChainDisconnectedError.code:throw new o.ChainDisconnectedError(e);case o.SwitchChainError.code:throw new o.SwitchChainError(e);default:if(e instanceof n.BaseError)throw e;throw new o.UnknownRpcError(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.HttpRequestError){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<!(0,t.isDeterministicError)(e)})}},18510:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ccipFetch=t.offchainLookup=t.offchainLookupAbiItem=t.offchainLookupSignature=void 0;let n=r(66681),i=r(24626),o=r(15064),a=r(69386),s=r(71356),u=r(9474),c=r(3606),l=r(94293),d=r(52694);async function f(e,{blockNumber:r,blockTag:o,data:l,to:d}){let{args:f}=(0,a.decodeErrorResult)({data:l,abi:[t.offchainLookupAbiItem]}),[p,m,g,y,b]=f;try{if(!(0,u.isAddressEqual)(d,p))throw new i.OffchainLookupSenderMismatchError({sender:p,to:d});let t=await h({data:g,sender:p,urls:m}),{data:a}=await (0,n.call)(e,{blockNumber:r,blockTag:o,data:(0,c.concat)([y,(0,s.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[t,b])]),to:d});return a}catch(e){throw new i.OffchainLookupError({callbackSelector:y,cause:e,data:l,extraData:b,sender:p,urls:m})}}async function h({data:e,sender:t,urls:r}){let n=Error("An unknown error occurred.");for(let a=0;ae)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},53429:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.extractFunctionParts=void 0;let r=/((function|event)\s)?(.*)(\((.*)\))/;function n(e){let t=e.match(r),n=t?.[2]||void 0,i=t?.[3],o=t?.[5]||void 0;return{type:n,name:i,params:o}}t.extractFunctionParts=n,t.extractFunctionName=function(e){return n(e).name},t.extractFunctionParams=function(e){let t=n(e).params,r=t?.split(",").map(e=>e.trim().split(" "));return r?.map(e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}}))},t.extractFunctionType=function(e){return n(e).type}},3606:function(e,t){"use strict";function r(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=void 0,t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},44544:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=void 0,t.isBytes=function(e){return!!e&&"object"==typeof e&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name}},51878:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytesEqual=void 0;let n=r(53835),i=r(30802);t.isBytesEqual=function(e,t){let r=(0,n.isHex)(e)?(0,n.toBytes)(e):e,o=(0,n.isHex)(t)?(0,n.toBytes)(t):t;return(0,i.equalBytes)(r,o)}},94293:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=void 0,t.isHex=function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},1751:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.padHex=t.pad=void 0;let n=r(98600);function i(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n0&&t>(0,o.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,o.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,o.size)(e)})}function u(e,t,r,{strict:n}={}){a(e,t);let i=e.slice(t,r);return n&&s(i,t,r),i}function c(e,t,r,{strict:n}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&s(i,t,r),i}t.slice=function(e,t,r,{strict:n}={}){return(0,i.isHex)(e,{strict:!1})?c(e,t,r,{strict:n}):u(e,t,r,{strict:n})},t.sliceBytes=u,t.sliceHex=c},9379:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trim=void 0,t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return!!r[0]}function c(e,t={}){void 0!==t.size&&(0,o.assertSize)(e,{size:t.size});let r=(0,a.bytesToHex)(e,t);return(0,o.hexToNumber)(r)}function l(e,t={}){let r=e;return void 0!==t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,i.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}t.fromBytes=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?c(e,r):"bigint"===n?s(e,r):"boolean"===n?u(e,r):"string"===n?l(e,r):(0,a.bytesToHex)(e,r)},t.bytesToBigint=s,t.bytesToBool=u,t.bytesToNumber=c,t.bytesToString=l},89097:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.assertSize=void 0;let n=r(52552),i=r(45001),o=r(9379),a=r(33158);function s(e,{size:t}){if((0,i.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,i.size)(e),maxSize:t})}function u(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2,o=(1n<<8n*BigInt(i)-1n)-1n;return n<=o?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r)),"0x00"===(0,o.trim)(r))return!1;if("0x01"===(0,o.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function l(e,t={}){return Number(u(e,t))}function d(e,t={}){let r=(0,a.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}t.assertSize=s,t.fromHex=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?l(e,r):"bigint"===n?u(e,r):"string"===n?d(e,r):"boolean"===n?c(e,r):(0,a.hexToBytes)(e,r)},t.hexToBigInt=u,t.hexToBool=c,t.hexToNumber=l,t.hexToString=d},10356:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRlp=void 0;let n=r(52552),i=r(74053),o=r(33158),a=r(75367);t.fromRlp=function(e,t){let r=function(e){if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new n.InvalidHexValueError(e);return(0,o.hexToBytes)(e)}return e}(e),[s,u]=function e(t,r=0){if(0===t.length)return[new Uint8Array([]),0];let o=t[r];if(o<=127)return[new Uint8Array([t[r]]),1];if(o<=183){let e=o-128,i=r+1;if(i+e>t.length)throw new n.DataLengthTooShortError({length:i+e,dataLength:t.length});return[t.slice(i,i+e),1+e]}if(o<=191){let e=o-183,a=r+1,s=(0,i.bytesToNumber)(t.slice(a,a+e));if(a+e+s>t.length)throw new n.DataLengthTooShortError({length:e+s,dataLength:t.length-e});return[t.slice(a+e,a+e+s),1+e+s]}let a=0,s=o-192;o>247&&(a=o-247,s=(0,i.bytesToNumber)(t.slice(r+1,r+1+a)));let u=r+1+a;if(u>t.length)throw new n.DataLengthTooShortError({length:u,dataLength:t.length});let c=1+a+s,l=[];for(;ur+c)throw new n.OffsetOutOfBoundsError({nextOffset:u,offset:r+c})}return[l,c]}(r);if(ue(t,r)):"hex"===r?(0,a.bytesToHex)(t):t}(s,t)}},33158:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.toBytes=void 0;let n=r(61817),i=r(94293),o=r(1751),a=r(89097),s=r(75367),u=new TextEncoder;function c(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.assertSize)(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}function l(e,t={}){let r=e;t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,o.pad)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let s=new Uint8Array(i.length/2);for(let e=0;et.toString(16).padStart(2,"0"));function s(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.assertSize)(r,{size:t.size}),(0,i.pad)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let t=0;tr||shttps?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,a=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,u=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function c(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function l(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function d({uri:e,gatewayUrls:t}){let r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=l(t?.ipfs,"https://ipfs.io"),c=l(t?.arweave,"https://arweave.net"),d=e.match(o),{protocol:f,subpath:h,target:p,subtarget:m=""}=d?.groups||{},g="ipns:/"===f||"ipns/"===h,y="ipfs:/"===f||"ipfs/"===h||a.test(e);if(e.startsWith("http")&&!g&&!y){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((g||y)&&p)return{uri:`${n}/${g?"ipns":"ipfs"}/${p}${m}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&p)return{uri:`${c}/${p}${m||""}`,isOnChain:!1,isEncoded:!1};let b=e.replace(u,"");if(b.startsWith("e.json()),n=await p({gatewayUrls:e,uri:f(r)});return n}catch{throw new i.EnsAvatarUriResolutionError({uri:t})}}async function p({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=d({uri:t,gatewayUrls:e});if(n)return r;let o=await c(r);if(o)return r;throw new i.EnsAvatarUriResolutionError({uri:t})}async function m(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new i.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}t.isImageUri=c,t.getGateway=l,t.resolveAvatarUri=d,t.getJsonImage=f,t.getMetadataAvatarUri=h,t.parseAvatarUri=p,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,o]=t.split("/"),[a,s]=r.split(":"),[u,c]=n.split(":");if(!a||"eip155"!==a.toLowerCase())throw new i.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new i.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!c)throw new i.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!o)throw new i.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!u)throw new i.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:u.toLowerCase(),contractAddress:c,tokenID:o}},t.getNftTokenUri=m},58453:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=void 0,t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},11482:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=void 0;let n=r(22039);t.encodedLabelToLabelhash=function(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null}},51393:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=void 0;let n=r(62118),i=r(61817),o=r(71693);t.isNullUniversalResolverError=function(e,t){if(!(e instanceof i.BaseError))return!1;let r=e.walk(e=>e instanceof o.ContractFunctionRevertedError);return r instanceof o.ContractFunctionRevertedError&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===n.panicReasons[50])}},34910:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=void 0;let n=r(33158),i=r(75367),o=r(15707),a=r(11482);t.labelhash=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.encodedLabelToLabelhash)(e)||(0,o.keccak256)((0,n.stringToBytes)(e)):(0,i.bytesToHex)(t)}},88172:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=void 0;let n=r(3606),i=r(33158),o=r(75367),a=r(15707),s=r(11482);t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.bytesToHex)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let o=(0,s.encodedLabelToLabelhash)(r[e]),u=o?(0,i.toBytes)(o):(0,a.keccak256)((0,i.stringToBytes)(r[e]),"bytes");t=(0,a.keccak256)((0,n.concat)([t,u]),"bytes")}return(0,o.bytesToHex)(t)}},96646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=void 0;let n=r(33158),i=r(58453),o=r(34910);t.packetToBytes=function(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2),a=0,s=t.split(".");for(let e=0;e255&&(t=(0,n.stringToBytes)((0,i.encodeLabelhash)((0,o.labelhash)(s[e])))),r[a]=t.length,r.set(t,a+1),a+=t.length+1}return r.byteLength!==a+1?r.slice(0,a+1):r}},56425:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=void 0;let n=r(71693),i=r(83266);t.getCallError=function(e,{docsPath:t,...r}){let o=e;return(0,i.containsNodeError)(e)&&(o=(0,i.getNodeError)(e,r)),new n.CallExecutionError(o,{docsPath:t,...r})}},86874:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=void 0;let n=r(269),i=r(61817),o=r(71693);t.getContractError=function(e,{abi:t,address:r,args:a,docsPath:s,functionName:u,sender:c}){let{code:l,data:d,message:f,shortMessage:h}=e instanceof o.RawContractError?e:e instanceof i.BaseError?e.walk(e=>"data"in e)||e.walk():{},p=e;return e instanceof n.AbiDecodingZeroDataError?p=new o.ContractFunctionZeroDataError({functionName:u}):3===l&&(d||f||h)&&(p=new o.ContractFunctionRevertedError({abi:t,data:"object"==typeof d?d.data:d,functionName:u,message:h??f})),new o.ContractFunctionExecutionError(p,{abi:t,args:a,contractAddress:r,docsPath:s,functionName:u,sender:c})}},80643:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=void 0;let n=r(89059),i=r(83266);t.getEstimateGasError=function(e,{docsPath:t,...r}){let o=e;return(0,i.containsNodeError)(e)&&(o=(0,i.getNodeError)(e,r)),new n.EstimateGasExecutionError(o,{docsPath:t,...r})}},83266:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeError=t.containsNodeError=void 0;let n=r(66498),i=r(15064),o=r(74199);t.containsNodeError=function(e){return e instanceof o.TransactionRejectedRpcError||e instanceof o.InvalidInputRpcError||e instanceof i.RpcRequestError&&e.code===n.ExecutionRevertedError.code},t.getNodeError=function(e,t){let r=e.details.toLowerCase();if(n.FeeCapTooHighError.nodeMessage.test(r))return new n.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas});if(n.FeeCapTooLowError.nodeMessage.test(r))return new n.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas});if(n.NonceTooHighError.nodeMessage.test(r))return new n.NonceTooHighError({cause:e,nonce:t?.nonce});if(n.NonceTooLowError.nodeMessage.test(r))return new n.NonceTooLowError({cause:e,nonce:t?.nonce});if(n.NonceMaxValueError.nodeMessage.test(r))return new n.NonceMaxValueError({cause:e,nonce:t?.nonce});if(n.InsufficientFundsError.nodeMessage.test(r))return new n.InsufficientFundsError({cause:e});if(n.IntrinsicGasTooHighError.nodeMessage.test(r))return new n.IntrinsicGasTooHighError({cause:e,gas:t?.gas});else if(n.IntrinsicGasTooLowError.nodeMessage.test(r))return new n.IntrinsicGasTooLowError({cause:e,gas:t?.gas});else if(n.TransactionTypeNotSupportedError.nodeMessage.test(r))return new n.TransactionTypeNotSupportedError({cause:e});else if(n.TipAboveFeeCapError.nodeMessage.test(r))return new n.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas});else if(r.match(n.ExecutionRevertedError.nodeMessage)||"code"in e.cause&&e.cause?.code===n.ExecutionRevertedError.code)return new n.ExecutionRevertedError({cause:e,message:e.cause.details||e.details});return new n.UnknownNodeError({cause:e.cause.cause})}},64438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=void 0;let n=r(51765),i=r(83266);t.getTransactionError=function(e,{docsPath:t,...r}){let o=e;return(0,i.containsNodeError)(e)&&(o=(0,i.getNodeError)(e,r)),new n.TransactionExecutionError(o,{docsPath:t,...r})}},14862:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=void 0,t.createFilterRequestScope=function(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:o})=>{"success"===i&&t===e&&(r[n]=o.request)}),t=>r[t]||e.request}},64954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=t.formatBlock=void 0;let n=r(73641),i=r(98395);function o(e){let t=e.transactions?.map(e=>"string"==typeof e?e:(0,i.formatTransaction)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.formatBlock=o,t.defineBlock=(0,n.defineFormatter)("block",o)},8258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extract=void 0,t.extract=function(e,{format:t}){if(!t)return{};let r=Object.keys(t({}));return r.reduce((t,r)=>(e?.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}},63777:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=void 0,t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(e=>e.map(e=>BigInt(e)))}}},73641:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=void 0,t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{let i=t(e);if(r)for(let e of r)delete i[e];return{...i,...n(e)}},type:e})}},69344:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=void 0,t.formatLog=function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}},98395:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.formatTransaction=t.transactionType=void 0;let n=r(89097),i=r(73641);function o(e){let r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.hexToNumber)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return"legacy"===r.type&&(delete r.accessList,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),"eip2930"===r.type&&(delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"},t.formatTransaction=o,t.defineTransaction=(0,i.defineFormatter)("transaction",o)},8366:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.formatTransactionReceipt=void 0;let n=r(89097),i=r(73641),o=r(69344),a=r(98395),s={"0x0":"reverted","0x1":"success"};function u(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,o.formatLog)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.transactionType[e.type]||e.type:null}}t.formatTransactionReceipt=u,t.defineTransactionReceipt=(0,i.defineFormatter)("transactionReceipt",u)},40279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.formatTransactionRequest=void 0;let n=r(75367),i=r(73641);function o(e){return{...e,gas:void 0!==e.gas?(0,n.numberToHex)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,n.numberToHex)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,n.numberToHex)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,n.numberToHex)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,n.numberToHex)(e.nonce):void 0,value:void 0!==e.value?(0,n.numberToHex)(e.value):void 0}}t.formatTransactionRequest=o,t.defineTransactionRequest=(0,i.defineFormatter)("transactionRequest",o)},53336:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventSelector=void 0;let n=r(9284),i=e=>"string"==typeof e?(0,n.hashFunction)(e):(0,n.hashAbiItem)(e);t.getEventSelector=i},70729:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionSelector=void 0;let n=r(76092),i=r(9284),o=e=>"string"==typeof e?(0,n.slice)((0,i.hashFunction)(e),0,4):(0,n.slice)((0,i.hashAbiItem)(e),0,4);t.getFunctionSelector=o},9284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashAbiItem=t.hashFunction=void 0;let n=r(73949),i=r(53429),o=r(33158),a=r(15707),s=e=>(0,a.keccak256)((0,o.toBytes)(e));t.hashFunction=function(e){let t=(0,i.extractFunctionName)(e),r=(0,i.extractFunctionParams)(e)||[];return s(`${t}(${r.map(({type:e})=>e).join(",")})`)},t.hashAbiItem=function(e){return s((0,n.formatAbiItem)(e))}},65961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=void 0;let n=r(94293),i=r(45001);t.isHash=function(e){return(0,n.isHex)(e)&&32===(0,i.size)(e)}},15707:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;let n=r(54801),i=r(94293),o=r(33158),a=r(75367);t.keccak256=function(e,t){let r=(0,n.keccak_256)((0,i.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,a.toHex)(r)}},22039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=t.extractFunctionParts=t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.isAddressEqual=t.isAddress=t.getAddress=t.getCreate2Address=t.getCreateAddress=t.getContractAddress=t.publicKeyToAddress=t.parseAccount=t.formatAbiParams=t.formatAbiItem=t.formatAbiItemWithArgs=t.encodePacked=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.getAbiItem=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.validateTypedData=t.stringify=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.getChainContractAddress=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.buildRequest=void 0,t.getEventSelector=t.defineFormatter=t.getTransactionError=t.getEstimateGasError=t.getContractError=t.getCallError=t.getNodeError=t.containsNodeError=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBigInt=t.hexToBool=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.stringToHex=t.numberToHex=t.toHex=t.bytesToHex=t.boolToHex=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.toBytes=t.boolToBytes=t.toRlp=t.extract=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.formatLog=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatBlock=t.defineBlock=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=void 0,t.parseGwei=t.parseEther=t.parseUnits=t.formatUnits=t.formatGwei=t.formatEther=t.serializeAccessList=t.serializeTransaction=t.prepareRequest=t.parseTransaction=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.getTransactionType=t.getSerializedTransactionType=t.hashMessage=t.verifyTypedData=t.verifyMessage=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hashTypedData=t.keccak256=t.isHash=t.getFunctionSelector=void 0;var n=r(47030);Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return n.buildRequest}});var i=r(18510);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return i.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return i.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return i.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return i.offchainLookupSignature}});var o=r(67491);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return o.assertCurrentChain}}),Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return o.defineChain}}),Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return o.getChainContractAddress}});var a=r(71832);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return a.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return a.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return a.integerRegex}});var s=r(42426);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return s.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return s.rpc}});var u=r(52694);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}});var c=r(33352);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return c.validateTypedData}});var l=r(49378);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return l.decodeAbiParameters}});var d=r(69386);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return d.decodeErrorResult}});var f=r(8496);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return f.decodeEventLog}});var h=r(38236);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return h.decodeFunctionData}});var p=r(94337);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return p.decodeFunctionResult}});var m=r(71356);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return m.encodeAbiParameters}});var g=r(9830);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return g.encodeDeployData}});var y=r(76618);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return y.encodeErrorResult}});var b=r(48506);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return b.encodeEventTopics}});var v=r(25765);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return v.encodeFunctionData}});var w=r(5848);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return w.encodeFunctionResult}});var E=r(51491);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return E.getAbiItem}});var A=r(21565);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return A.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return A.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return A.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return A.parseAbiParameters}});var P=r(99077);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return P.encodePacked}});var x=r(32310);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return x.formatAbiItemWithArgs}});var O=r(73949);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return O.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return O.formatAbiParams}});var C=r(5998);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return C.parseAccount}});var I=r(85301);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return I.publicKeyToAddress}});var T=r(47341);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return T.getContractAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return T.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return T.getCreate2Address}});var S=r(37933);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return S.getAddress}});var _=r(18594);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return _.isAddress}});var B=r(9474);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return B.isAddressEqual}});var j=r(53429);Object.defineProperty(t,"extractFunctionName",{enumerable:!0,get:function(){return j.extractFunctionName}}),Object.defineProperty(t,"extractFunctionParams",{enumerable:!0,get:function(){return j.extractFunctionParams}}),Object.defineProperty(t,"extractFunctionType",{enumerable:!0,get:function(){return j.extractFunctionType}}),Object.defineProperty(t,"extractFunctionParts",{enumerable:!0,get:function(){return j.extractFunctionParts}});var D=r(3606);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return D.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return D.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return D.concatHex}});var M=r(44544);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return M.isBytes}});var R=r(94293);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return R.isHex}});var k=r(1751);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return k.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return k.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return k.padHex}});var N=r(45001);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return N.size}});var U=r(76092);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return U.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return U.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return U.sliceHex}});var L=r(9379);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return L.trim}});var F=r(64954);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return F.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return F.formatBlock}});var H=r(98395);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return H.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return H.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return H.transactionType}});var q=r(69344);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return q.formatLog}});var z=r(8366);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return z.defineTransactionReceipt}});var $=r(40279);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return $.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return $.formatTransactionRequest}});var G=r(8258);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return G.extract}});var V=r(59152);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return V.toRlp}});var W=r(33158);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return W.boolToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return W.toBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return W.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return W.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return W.stringToBytes}});var K=r(75367);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return K.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return K.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return K.toHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return K.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return K.stringToHex}});var Q=r(74053);Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return Q.bytesToBigint}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return Q.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return Q.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return Q.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return Q.fromBytes}});var Y=r(89097);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return Y.fromHex}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return Y.hexToBool}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return Y.hexToBigInt}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return Y.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return Y.hexToString}});var J=r(10356);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return J.fromRlp}});var Z=r(83266);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return Z.containsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return Z.getNodeError}});var X=r(56425);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return X.getCallError}});var ee=r(86874);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return ee.getContractError}});var et=r(80643);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return et.getEstimateGasError}});var er=r(64438);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return er.getTransactionError}});var en=r(73641);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return en.defineFormatter}});var ei=r(53336);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return ei.getEventSelector}});var eo=r(70729);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return eo.getFunctionSelector}});var ea=r(65961);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return ea.isHash}});var es=r(15707);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return es.keccak256}});var eu=r(67339);Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return eu.hashTypedData}});var ec=r(64761);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return ec.recoverAddress}});var el=r(46879);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return el.recoverMessageAddress}});var ed=r(7418);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return ed.recoverPublicKey}});var ef=r(28241);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return ef.recoverTypedDataAddress}});var eh=r(51287);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return eh.verifyMessage}});var ep=r(82566);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return ep.verifyTypedData}});var em=r(44639);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return em.hashMessage}});var eg=r(68864);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return eg.getSerializedTransactionType}});var ey=r(75256);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return ey.getTransactionType}});var eb=r(5655);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return eb.assertRequest}});var ev=r(9293);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return ev.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return ev.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return ev.assertTransactionLegacy}});var ew=r(29471);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return ew.parseTransaction}});var eE=r(54544);Object.defineProperty(t,"prepareRequest",{enumerable:!0,get:function(){return eE.prepareRequest}});var eA=r(51463);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return eA.serializeTransaction}});var eP=r(34179);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return eP.serializeAccessList}});var ex=r(16697);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return ex.formatEther}});var eO=r(34697);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return eO.formatGwei}});var eC=r(78743);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return eC.formatUnits}});var eI=r(88752);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return eI.parseUnits}});var eT=r(93400);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return eT.parseEther}});var eS=r(96874);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return eS.parseGwei}})},23275:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observe=t.cleanupCache=t.listenersCache=void 0,t.listenersCache=new Map,t.cleanupCache=new Map;let r=0;t.observe=function(e,n,i){let o=++r,a=()=>t.listenersCache.get(e)||[],s=()=>{let r=a();t.listenersCache.set(e,r.filter(e=>e.id!==o))},u=()=>{let r=t.cleanupCache.get(e);1===a().length&&r&&r(),s()},c=a();if(t.listenersCache.set(e,[...c,{id:o,fns:n}]),c&&c.length>0)return u;let l={};for(let e in n)l[e]=(...t)=>{let r=a();0!==r.length&&r.forEach(r=>r.fns[e]?.(...t))};let d=i(l);return"function"==typeof d&&t.cleanupCache.set(e,d),u}},13823:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.poll=void 0;let n=r(54789);t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let o=!0,a=()=>o=!1,s=async()=>{let s;t&&(s=await e({unpoll:a}));let u=await r?.(s)??i;await (0,n.wait)(u);let c=async()=>{o&&(await e({unpoll:a}),await (0,n.wait)(i),c())};c()};return s(),a}},45893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=void 0;let r=new Map;t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:n,wait:i=0}){let o=async()=>{let t=u();a();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{t.forEach(({pendingPromise:t},r)=>t.resolve?.([e[r],e]))}).catch(e=>{t.forEach(({pendingPromise:t})=>t.reject?.(e))})},a=()=>r.delete(t),s=()=>u().map(({args:e})=>e),u=()=>r.get(t)||[],c=e=>r.set(t,[...u(),e]);return{flush:a,async schedule(e){let t={},r=new Promise((e,r)=>{t.resolve=e,t.reject=r}),a=n?.([...s(),e]);a&&o();let l=u().length>0;return l?(c({args:e,pendingPromise:t}),r):(c({args:e,pendingPromise:t}),setTimeout(o,i),r)}}}},81994:function(e,t){"use strict";function r(e){let r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),n=r(e,t.promiseCache),i=r(e,t.responseCache);return{clear:()=>{n.clear(),i.clear()},promise:n,response:i}}async function n(e,{cacheKey:t,cacheTime:n=1/0}){let i=r(t),o=i.response.get();if(o&&n>0){let e=new Date().getTime()-o.created.getTime();if(e!0}={}){return new Promise((o,a)=>{let s=async({count:u=0}={})=>{let c=async({error:e})=>{let r="function"==typeof t?t({count:u,error:e}):t;r&&await (0,n.wait)(r),s({count:u+1})};try{let t=await e();o(t)}catch(e){if(u{(async()=>{let a;try{let s=new AbortController;r>0&&(a=setTimeout(()=>{n?s.abort():o(t)},r)),i(await e({signal:s?.signal}))}catch(e){"AbortError"===e.name&&o(t),o(e)}finally{clearTimeout(a)}})()})}},71832:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},42426:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=t.getSocket=void 0;let n=r(15064),i=r(45893),o=r(10014),a=r(52694),s=0;async function u(e,{body:t,fetchOptions:r={},timeout:i=1e4}){let{headers:u,method:c,signal:l}=r;try{let d;let f=await (0,o.withTimeout)(async({signal:n})=>{let o=await fetch(e,{...r,body:Array.isArray(t)?(0,a.stringify)(t.map(e=>({jsonrpc:"2.0",id:s++,...e}))):(0,a.stringify)({jsonrpc:"2.0",id:s++,...t}),headers:{...u,"Content-Type":"application/json"},method:c||"POST",signal:l||(i>0?n:void 0)});return o},{errorInstance:new n.TimeoutError({body:t,url:e}),timeout:i,signal:!0});if(d=f.headers.get("Content-Type")?.startsWith("application/json")?await f.json():await f.text(),!f.ok)throw new n.HttpRequestError({body:t,details:(0,a.stringify)(d.error)||f.statusText,headers:f.headers,status:f.status,url:e});return d}catch(r){if(r instanceof n.HttpRequestError||r instanceof n.TimeoutError)throw r;throw new n.HttpRequestError({body:t,details:r.message,url:e})}}let c=new Map;async function l(e){let t=new URL(e),n=t.toString(),o=c.get(n);if(o)return o;let{schedule:a}=(0,i.createBatchScheduler)({id:n,fn:async()=>{let e=await r.e(667).then(r.bind(r,60667));e=e.default?.constructor?e.default:e.WebSocket;let i=new e(t),a=new Map,s=new Map,u=({data:e})=>{let t=JSON.parse(e),r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,i=r?s:a,o=i.get(n);o&&o({data:e}),r||i.delete(n)},l=()=>{c.delete(n),i.removeEventListener("close",l),i.removeEventListener("message",u)};return i.addEventListener("close",l),i.addEventListener("message",u),i.readyState===e.CONNECTING&&await new Promise((e,t)=>{i&&(i.onopen=e,i.onerror=t)}),o=Object.assign(i,{requests:a,subscriptions:s}),c.set(n,o),[o]}}),[s,[u]]=await a();return u}async function d(e,{body:r,timeout:i=1e4}){return(0,o.withTimeout)(()=>new Promise(n=>t.rpc.webSocket(e,{body:r,onResponse:n})),{errorInstance:new n.TimeoutError({body:r,url:e.url}),timeout:i})}t.getSocket=l,t.rpc={http:u,webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new n.WebSocketRequestError({body:t,url:e.url,details:"Socket is closed."});let i=s++,o=({data:n})=>{let a=JSON.parse(n);("number"!=typeof a.id||i===a.id)&&(r?.(a),"eth_subscribe"===t.method&&"string"==typeof a.result&&e.subscriptions.set(a.result,o),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(i,o),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:i})),e},webSocketAsync:d}},44639:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=void 0;let n=r(3606),i=r(33158),o=r(15707);t.hashMessage=function(e,t){let r="string"==typeof e?(0,i.stringToBytes)(e):e.raw instanceof Uint8Array?e.raw:(0,i.toBytes)(e.raw),a=(0,i.stringToBytes)(`\x19Ethereum Signed Message: -${r.length}`);return(0,o.keccak256)((0,n.concat)([a,r]),t)}},67339:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashTypedData=void 0;let n=r(71356),i=r(3606),o=r(75367),a=r(15707),s=r(33352);function u({data:e,primaryType:t,types:r}){let i=function e({data:t,primaryType:r,types:i}){let s=[{type:"bytes32"}],u=[function({primaryType:e,types:t}){let r=(0,o.toHex)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\w*/u),o=i?.[0];if(n.has(o)||void 0===r[o])return n;for(let t of(n.add(o),r[o]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});n.delete(e);let i=[e,...Array.from(n).sort()];for(let e of i)r+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,a.keccak256)(r)}({primaryType:r,types:i})];for(let c of i[r]){let[r,l]=function t({types:r,name:i,type:s,value:u}){if(void 0!==r[s])return[{type:"bytes32"},(0,a.keccak256)(e({data:u,primaryType:s,types:r}))];if("bytes"===s){let e=u.length%2?"0":"";return u=`0x${e+u.slice(2)}`,[{type:"bytes32"},(0,a.keccak256)(u)]}if("string"===s)return[{type:"bytes32"},(0,a.keccak256)((0,o.toHex)(u))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),o=u.map(n=>t({name:i,type:e,types:r,value:n}));return[{type:"bytes32"},(0,a.keccak256)((0,n.encodeAbiParameters)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:s},u]}({types:i,name:c.name,type:c.type,value:t[c.name]});s.push(r),u.push(l)}return(0,n.encodeAbiParameters)(s,u)}({data:e,primaryType:t,types:r});return(0,a.keccak256)(i)}t.hashTypedData=function({domain:e,message:t,primaryType:r,types:n}){let o=void 0===e?{}:e,c={EIP712Domain:["string"==typeof o?.name&&{name:"name",type:"string"},o?.version&&{name:"version",type:"string"},"number"==typeof o?.chainId&&{name:"chainId",type:"uint256"},o?.verifyingContract&&{name:"verifyingContract",type:"address"},o?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...n};(0,s.validateTypedData)({domain:o,message:t,primaryType:r,types:c});let l=["0x1901"];return o&&l.push(function({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}({domain:o,types:c})),"EIP712Domain"!==r&&l.push(u({data:t,primaryType:r,types:c})),(0,a.keccak256)((0,i.concat)(l))}},23305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToSignature=void 0;let n=r(15207),i=r(75367);t.hexToSignature=function(e){let{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),o=BigInt(`0x${e.slice(130)}`);return{r:(0,i.numberToHex)(t),s:(0,i.numberToHex)(r),v:o}}},64761:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=void 0;let n=r(85301),i=r(7418);async function o({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await (0,i.recoverPublicKey)({hash:e,signature:t}))}t.recoverAddress=o},46879:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=void 0;let n=r(44639),i=r(64761);async function o({message:e,signature:t}){return(0,i.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})}t.recoverMessageAddress=o},7418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=void 0;let n=r(94293),i=r(89097),o=r(75367);async function a({hash:e,signature:t}){let a=(0,n.isHex)(t)?t:(0,o.toHex)(t),s=(0,n.isHex)(e)?e:(0,o.toHex)(e),u=(0,i.hexToNumber)(`0x${a.slice(130)}`);(0===u||1===u)&&(u+=27);let{secp256k1:c}=await r.e(956).then(r.bind(r,71956)),l=c.Signature.fromCompact(a.substring(2,130)).addRecoveryBit(u-27).recoverPublicKey(s.substring(2)).toHex(!1);return`0x${l}`}t.recoverPublicKey=a},28241:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=void 0;let n=r(67339),i=r(64761);async function o({domain:e,message:t,primaryType:r,signature:o,types:a}){return(0,i.recoverAddress)({hash:(0,n.hashTypedData)({domain:e,message:t,primaryType:r,types:a}),signature:o})}t.recoverTypedDataAddress=o},91368:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToHex=void 0;let n=r(15207),i=r(89097),o=r(75367);t.signatureToHex=function({r:e,s:t,v:r}){return`0x${new n.secp256k1.Signature((0,i.hexToBigInt)(e),(0,i.hexToBigInt)(t)).toCompactHex()}${(0,o.toHex)(r).slice(2)}`}},51287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;let n=r(37933),i=r(9474),o=r(46879);async function a({address:e,message:t,signature:r}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await (0,o.recoverMessageAddress)({message:t,signature:r}))}t.verifyMessage=a},82566:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;let n=r(37933),i=r(9474),o=r(28241);async function a({address:e,domain:t,message:r,primaryType:a,signature:s,types:u}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await (0,o.recoverTypedDataAddress)({domain:t,message:r,primaryType:a,signature:s,types:u}))}t.verifyTypedData=a},52694:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;let r=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r);t.stringify=r},5655:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=void 0;let n=r(5998),i=r(28489),o=r(66498),a=r(51765),s=r(18594);t.assertRequest=function(e){let{account:t,gasPrice:r,maxFeePerGas:u,maxPriorityFeePerGas:c,to:l}=e,d=t?(0,n.parseAccount)(t):void 0;if(d&&!(0,s.isAddress)(d.address))throw new i.InvalidAddressError({address:d.address});if(l&&!(0,s.isAddress)(l))throw new i.InvalidAddressError({address:l});if(void 0!==r&&(void 0!==u||void 0!==c))throw new a.FeeConflictError;if(u&&u>2n**256n-1n)throw new o.FeeCapTooHighError({maxFeePerGas:u});if(c&&u&&c>u)throw new o.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:c})}},9293:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=void 0;let n=r(28489),i=r(61817),o=r(14931),a=r(66498),s=r(18594);t.assertTransactionEIP1559=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:u,maxFeePerGas:c,to:l}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(u)throw new i.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c});if(r&&c&&r>c)throw new a.TipAboveFeeCapError({maxFeePerGas:c,maxPriorityFeePerGas:r})},t.assertTransactionEIP2930=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:u,maxFeePerGas:c,to:l}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(r||c)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(u&&u>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:u})},t.assertTransactionLegacy=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:u,maxFeePerGas:c,to:l,accessList:d}=e;if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(void 0!==t&&t<=0)throw new o.InvalidChainIdError({chainId:t});if(r||c)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(u&&u>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:u});if(d)throw new i.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}},68864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=void 0;let n=r(51765),i=r(76092),o=r(89097);t.getSerializedTransactionType=function(e){let t=(0,i.sliceHex)(e,0,1);if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,o.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})}},75256:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=void 0;let n=r(51765);t.getTransactionType=function(e){if(e.type)return e.type;if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.InvalidSerializableTransactionError({transaction:e})}},29471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransaction=void 0;let n=r(28489),i=r(51765),o=r(18594),a=r(94293),s=r(1751),u=r(9379),c=r(89097),l=r(10356),d=r(65961),f=r(9293),h=r(68864);function p(e){let t=[];for(let r=0;r(0,d.isHash)(e)?e:(0,u.trim)(e))})}return t}function m(e){let t=e.slice(-3),r="0x"===t[0]||0n===(0,c.hexToBigInt)(t[0])?27n:28n;return{r:(0,s.padHex)(t[1],{size:32}),s:(0,s.padHex)(t[2],{size:32}),v:r,yParity:27n===r?0:1}}t.parseTransaction=function(e){let t=(0,h.getSerializedTransactionType)(e);return"eip1559"===t?function(e){let t=(0,l.fromRlp)(`0x${e.slice(4)}`,"hex"),[r,n,o,s,u,d,h,g,y,b,v,w]=t;if(!(9===t.length||12===t.length))throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gas:u,to:d,value:h,data:g,accessList:y,...t.length>9?{v:b,r:v,s:w}:{}},serializedTransaction:e,type:"eip1559"});let E={chainId:(0,c.hexToNumber)(r),type:"eip1559"};(0,a.isHex)(d)&&"0x"!==d&&(E.to=d),(0,a.isHex)(u)&&"0x"!==u&&(E.gas=(0,c.hexToBigInt)(u)),(0,a.isHex)(g)&&"0x"!==g&&(E.data=g),(0,a.isHex)(n)&&"0x"!==n&&(E.nonce=(0,c.hexToNumber)(n)),(0,a.isHex)(h)&&"0x"!==h&&(E.value=(0,c.hexToBigInt)(h)),(0,a.isHex)(s)&&"0x"!==s&&(E.maxFeePerGas=(0,c.hexToBigInt)(s)),(0,a.isHex)(o)&&"0x"!==o&&(E.maxPriorityFeePerGas=(0,c.hexToBigInt)(o)),0!==y.length&&"0x"!==y&&(E.accessList=p(y)),(0,f.assertTransactionEIP1559)(E);let A=12===t.length?m(t):void 0;return{...A,...E}}(e):"eip2930"===t?function(e){let t=(0,l.fromRlp)(`0x${e.slice(4)}`,"hex"),[r,n,o,s,u,d,h,g,y,b,v]=t;if(!(8===t.length||11===t.length))throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:o,gas:s,to:u,value:d,data:h,accessList:g,...t.length>8?{v:y,r:b,s:v}:{}},serializedTransaction:e,type:"eip2930"});let w={chainId:(0,c.hexToNumber)(r),type:"eip2930"};(0,a.isHex)(u)&&"0x"!==u&&(w.to=u),(0,a.isHex)(s)&&"0x"!==s&&(w.gas=(0,c.hexToBigInt)(s)),(0,a.isHex)(h)&&"0x"!==h&&(w.data=h),(0,a.isHex)(n)&&"0x"!==n&&(w.nonce=(0,c.hexToNumber)(n)),(0,a.isHex)(d)&&"0x"!==d&&(w.value=(0,c.hexToBigInt)(d)),(0,a.isHex)(o)&&"0x"!==o&&(w.gasPrice=(0,c.hexToBigInt)(o)),0!==g.length&&"0x"!==g&&(w.accessList=p(g)),(0,f.assertTransactionEIP2930)(w);let E=11===t.length?m(t):void 0;return{...E,...w}}(e):function(e){let t=(0,l.fromRlp)(e,"hex"),[r,n,o,s,u,d,h,p,m]=t;if(!(6===t.length||9===t.length))throw new i.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:o,to:s,value:u,data:d,...t.length>6?{v:h,r:p,s:m}:{}},serializedTransaction:e,type:"legacy"});let g={type:"legacy"};if((0,a.isHex)(s)&&"0x"!==s&&(g.to=s),(0,a.isHex)(o)&&"0x"!==o&&(g.gas=(0,c.hexToBigInt)(o)),(0,a.isHex)(d)&&"0x"!==d&&(g.data=d),(0,a.isHex)(r)&&"0x"!==r&&(g.nonce=(0,c.hexToNumber)(r)),(0,a.isHex)(u)&&"0x"!==u&&(g.value=(0,c.hexToBigInt)(u)),(0,a.isHex)(n)&&"0x"!==n&&(g.gasPrice=(0,c.hexToBigInt)(n)),(0,f.assertTransactionLegacy)(g),6===t.length)return g;let y=(0,a.isHex)(h)&&"0x"!==h?(0,c.hexToBigInt)(h):0n;if("0x"===m&&"0x"===p)return y>0&&(g.chainId=Number(y)),g;let b=Number((y-35n)/2n);if(b>0)g.chainId=b;else if(27n!==y&&28n!==y)throw new i.InvalidLegacyVError({v:y});return g.v=y,g.s=m,g.r=p,g}(e)}},54544:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareRequest=void 0;let n=r(5998),i=r(19655),o=r(48546),a=r(9677),s=r(34974),u=r(69438),c=r(61817),l=r(5655);async function d(e,t){let{account:r,chain:d=e.chain,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g}=t;if(!r)throw new u.AccountNotFoundError;let y=(0,n.parseAccount)(r),b=await (0,o.getBlock)(e,{blockTag:"latest"}),v={...t,from:y.address};if(void 0===g&&(v.nonce=await (0,s.getTransactionCount)(e,{address:y.address,blockTag:"pending"})),"bigint"==typeof b.baseFeePerGas&&void 0===h){let e=1500000000n;if(void 0!==d?.fees?.defaultPriorityFee&&(e="bigint"==typeof d.fees.defaultPriorityFee?d.fees.defaultPriorityFee:await d.fees.defaultPriorityFee({block:b,request:v})),void 0===p)v.maxPriorityFeePerGas=m??e,v.maxFeePerGas=120n*b.baseFeePerGas/100n+v.maxPriorityFeePerGas;else{if(void 0===m&&p0)e=BigInt(2*r)+BigInt(35n+t.v-27n);else if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});h=[...h,(0,a.toHex)(e),t.r,t.s]}else r>0&&(h=[...h,(0,a.toHex)(r),"0x","0x"]);return(0,s.toRlp)(h)}(e,t)}},33352:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTypedData=void 0;let n=r(269),i=r(28489),o=r(18594),a=r(45001),s=r(75367),u=r(71832);t.validateTypedData=function({domain:e,message:t,primaryType:r,types:c}){let l=(e,t)=>{for(let r of e){let{name:e,type:d}=r,f=t[e],h=d.match(u.integerRegex);if(h&&("number"==typeof f||"bigint"==typeof f)){let[e,t,r]=h;(0,s.numberToHex)(f,{signed:"int"===t,size:parseInt(r)/8})}if("address"===d&&"string"==typeof f&&!(0,o.isAddress)(f))throw new i.InvalidAddressError({address:f});let p=d.match(u.bytesRegex);if(p){let[e,t]=p;if(t&&(0,a.size)(f)!==parseInt(t))throw new n.BytesSizeMismatchError({expectedSize:parseInt(t),givenSize:(0,a.size)(f)})}let m=c[d];m&&l(m,f)}};if(c.EIP712Domain&&e&&l(c.EIP712Domain,e),"EIP712Domain"!==r){let e=c[r];l(e,t)}}},15045:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.uid=void 0;let n=256;t.uid=function(e=11){if(!r||n+e>512){r="",n=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(n,n+++e)}},16697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=void 0;let n=r(81892),i=r(78743);t.formatEther=function(e,t="wei"){return(0,i.formatUnits)(e,n.etherUnits[t])}},34697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=void 0;let n=r(81892),i=r(78743);t.formatGwei=function(e,t="wei"){return(0,i.formatUnits)(e,n.gweiUnits[t])}},78743:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=void 0,t.formatUnits=function(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,o]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}},93400:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=void 0;let n=r(81892),i=r(88752);t.parseEther=function(e,t="wei"){return(0,i.parseUnits)(e,n.etherUnits[t])}},96874:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=void 0;let n=r(81892),i=r(88752);t.parseGwei=function(e,t="wei"){return(0,i.parseUnits)(e,n.gweiUnits[t])}},88752:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=void 0,t.parseUnits=function(e,t){let[r,n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,i,o]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${i}.${o}`));(n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}},54789:function(e,t){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.wait=void 0,t.wait=r},93874:function(e,t,r){"use strict";r.r(t),r.d(t,{bitGet:function(){return A},bitLen:function(){return E},bitMask:function(){return x},bitSet:function(){return P},bytesToHex:function(){return u},bytesToNumberBE:function(){return f},bytesToNumberLE:function(){return h},concatBytes:function(){return b},createHmacDrbg:function(){return I},ensureBytes:function(){return y},equalBytes:function(){return v},hexToBytes:function(){return d},hexToNumber:function(){return l},numberToBytesBE:function(){return p},numberToBytesLE:function(){return m},numberToHexUnpadded:function(){return c},numberToVarBytesBE:function(){return g},utf8ToBytes:function(){return w},validateObject:function(){return S}});/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=BigInt(0),i=BigInt(1),o=BigInt(2),a=e=>e instanceof Uint8Array,s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(e){if(!a(e))throw Error("Uint8Array expected");let t="";for(let r=0;re+t.length,0)),r=0;return e.forEach(e=>{if(!a(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}function v(e,t){if(e.length!==t.length)return!1;for(let r=0;rn;e>>=i,t+=1);return t}function A(e,t){return e>>BigInt(t)&i}let P=(e,t,r)=>e|(r?i:n)<(o<new Uint8Array(e),C=e=>Uint8Array.from(e);function I(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=O(e),i=O(e),o=0,a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),u=(e=O())=>{i=s(C([0]),e),n=s(),0!==e.length&&(i=s(C([1]),e),n=s())},c=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e{let r;for(a(),u(e);!(r=t(c()));)u();return a(),r};return l}let T={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function S(e,t,r={}){let n=(t,r,n)=>{let i=T[r];if("function"!=typeof i)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},22129:function(e,t,r){"use strict";r.d(t,{Fo:function(){return c},RJ:function(){return o},v4:function(){return a},v8:function(){return u},ws:function(){return i},yX:function(){return n},yu:function(){return s}});var n={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},i={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},o={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},a={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},s={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},u={id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://matic-mumbai.chainstacklabs.com"]},public:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0},c={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}},28973:function(e,t,r){"use strict";function n(e){return"string"==typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"==typeof e?Number(e):e}r.d(t,{J:function(){return n}})},12242:function(e,t,r){"use strict";r.d(t,{wR:function(){return A},Ko:function(){return v},ac:function(){return b},U9:function(){return E},qx:function(){return w},ov:function(){return g}});var n=r(84658),i=r(85902),o=(r(71791),r(96676));r(84500),r(56792),r(45797),r(41145);var a=r(96091),s=(r(80127),r(56410),r(55370),r(14602)),u=r(97553),c=(r(63950),r(60213));function l(e,t){return e<56?[t+e]:[(0,c.O0)(e).length+t+55,...(0,c.O0)(e)]}var d=r(92966);let f=(0,i.ax)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),h=(0,i.ax)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});var p=Object.defineProperty,m=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t,r)=>(m(e,"symbol"!=typeof t?t+"":t,r),r),y=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},b=(e,t,r)=>(y(e,t,"read from private field"),r?r.call(e):t.get(e)),v=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},w=(e,t,r,n)=>(y(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),E=(e,t,r)=>(y(e,t,"access private method"),r),A=class extends n{constructor({chains:e=[h,f],options:t}){super(),g(this,"chains"),g(this,"options"),g(this,"storage"),this.chains=e,this.options=t}getBlockExplorerUrls(e){let{default:t,...r}=e.blockExplorers??{};if(t)return[t.url,...Object.values(r).map(e=>e.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}}},74031:function(e,t,r){"use strict";r.d(t,{_:function(){return f}});var n,i=r(18874),o=r(28973),a=r(12242),s=r(61867),u=r(45375),c=r(86175),l=r(93510),d=r(96676),f=class extends a.wR{constructor({chains:e,options:t}={}){let r={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;let e=window.ethereum;return e?.providers?e.providers[0]:e},...t};super({chains:e,options:r}),(0,a.ov)(this,"id","injected"),(0,a.ov)(this,"name"),(0,a.ov)(this,"ready"),(0,a.Ko)(this,n,void 0),(0,a.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`),(0,a.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,s.K)(e[0])})}),(0,a.ov)(this,"onChainChanged",e=>{let t=(0,o.J)(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,a.ov)(this,"onDisconnect",async e=>{if(1013===e.code){let e=await this.getProvider();if(e){let e=await this.getAccount();if(e)return}}this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey)});let i=r.getProvider();if("string"==typeof r.name)this.name=r.name;else if(i){let e=function(e){if(!e)return"Injected";let t=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0;if(e.providers?.length){let r=new Set,n=1;for(let i of e.providers){let e=t(i);e||(e=`Unknown Wallet #${n}`,n+=1),r.add(e)}let i=[...r];return i.length?i:i[0]??"Injected"}return t(e)??"Injected"}(i);r.name?this.name=r.name(e):"string"==typeof e?this.name=e:this.name=e[0]}else this.name="Injected";this.ready=!!i}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new i.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let r=await t.request({method:"eth_requestAccounts"}),n=(0,s.K)(r[0]),o=await this.getChainId(),a=this.isChainUnsupported(o);if(e&&o!==e){let t=await this.switchChain(e);o=t.id,a=this.isChainUnsupported(o)}return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:n,chain:{id:o,unsupported:a}}}catch(e){if(this.isUserRejectedRequestError(e))throw new u.ab(e);if(-32002===e.code)throw new u.pT(e);throw e}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new i.N;let t=await e.request({method:"eth_accounts"});return(0,s.K)(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new i.N;return e.request({method:"eth_chainId"}).then(o.J)}async getProvider(){let e=this.options.getProvider();return e&&(0,a.qx)(this,n,e),(0,a.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,c.K)({account:r,chain:n,transport:(0,l.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let e=await this.getProvider();if(!e)throw new i.N;let t=await this.getAccount();return!!t}catch{return!1}}async switchChain(e){let t=await this.getProvider();if(!t)throw new i.N;let r=(0,d.eC)(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise(t=>this.on("change",({chain:r})=>{r?.id===e&&t()}))]),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(o){let n=this.chains.find(t=>t.id===e);if(!n)throw new i.B({chainId:e,connectorId:this.id});if(4902===o.code||o?.data?.originalError?.code===4902)try{await t.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:n.name,nativeCurrency:n.nativeCurrency,rpcUrls:[n.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(n)}]});let i=await this.getChainId();if(i!==e)throw new u.ab(Error("User rejected switch after adding network."));return n}catch(e){throw new u.ab(e)}if(this.isUserRejectedRequestError(o))throw new u.ab(o);throw new u.x3(o)}}async watchAsset({address:e,decimals:t=18,image:r,symbol:n}){let o=await this.getProvider();if(!o)throw new i.N;return o.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:r,symbol:n}}})}isUserRejectedRequestError(e){return 4001===e.code}};n=new WeakMap},18874:function(e,t,r){"use strict";r.d(t,{B:function(){return i},N:function(){return o}});var n=r(12242),i=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),(0,n.ov)(this,"name","ChainNotConfiguredForConnectorError")}},o=class extends Error{constructor(){super(...arguments),(0,n.ov)(this,"name","ConnectorNotFoundError"),(0,n.ov)(this,"message","Connector not found")}}},38459:function(e,t,r){"use strict";r.d(t,{D:function(){return h}});var n,i,o=r(18874),a=r(28973),s=r(12242),u=r(61867),c=r(45375),l=r(86175),d=r(93510),f=r(96676),h=class extends s.wR{constructor({chains:e,options:t}){super({chains:e,options:{reloadOnDisconnect:!1,...t}}),(0,s.ov)(this,"id","coinbaseWallet"),(0,s.ov)(this,"name","Coinbase Wallet"),(0,s.ov)(this,"ready",!0),(0,s.Ko)(this,n,void 0),(0,s.Ko)(this,i,void 0),(0,s.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,u.K)(e[0])})}),(0,s.ov)(this,"onChainChanged",e=>{let t=(0,a.J)(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,s.ov)(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect({chainId:e}={}){try{let t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});let r=await t.enable(),n=(0,u.K)(r[0]),i=await this.getChainId(),o=this.isChainUnsupported(i);if(e&&i!==e){let t=await this.switchChain(e);i=t.id,o=this.isChainUnsupported(i)}return{account:n,chain:{id:i,unsupported:o}}}catch(e){if(/(user closed modal|accounts received is empty)/i.test(e.message))throw new c.ab(e);throw e}}async disconnect(){if(!(0,s.ac)(this,i))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let e=await this.getProvider(),t=await e.request({method:"eth_accounts"});return(0,u.K)(t[0])}async getChainId(){let e=await this.getProvider(),t=(0,a.J)(e.chainId);return t}async getProvider(){if(!(0,s.ac)(this,i)){let e=(await Promise.all([r.e(422),r.e(973),r.e(946)]).then(r.t.bind(r,6973,19))).default;"function"!=typeof e&&"function"==typeof e.default&&(e=e.default),(0,s.qx)(this,n,new e(this.options));let t=s.ac(this,n).walletExtension?.getChainId(),o=this.chains.find(e=>this.options.chainId?e.id===this.options.chainId:e.id===t)||this.chains[0],a=this.options.chainId||o?.id,u=this.options.jsonRpcUrl||o?.rpcUrls.default.http[0];(0,s.qx)(this,i,(0,s.ac)(this,n).makeWeb3Provider(u,a))}return(0,s.ac)(this,i)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,l.K)({account:r,chain:n,transport:(0,d.P)(t)})}async isAuthorized(){try{let e=await this.getAccount();return!!e}catch{return!1}}async switchChain(e){let t=await this.getProvider(),r=(0,f.eC)(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(i){let n=this.chains.find(t=>t.id===e);if(!n)throw new o.B({chainId:e,connectorId:this.id});if(4902===i.code)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:n.name,nativeCurrency:n.nativeCurrency,rpcUrls:[n.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(n)}]}),n}catch(e){throw new c.ab(e)}throw new c.x3(i)}}async watchAsset({address:e,decimals:t=18,image:r,symbol:n}){let i=await this.getProvider();return i.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:r,symbol:n}}})}};n=new WeakMap,i=new WeakMap},50910:function(e,t,r){"use strict";r.d(t,{i:function(){return c}});var n,i=r(74031),o=r(18874),a=r(12242),s=r(45375),u=r(61867),c=class extends i._{constructor({chains:e,options:t}={}){let r={name:"MetaMask",shimDisconnect:!0,getProvider(){function e(e){let t=!!e?.isMetaMask;if(t&&(!e.isBraveWallet||e._events||e._state)&&!e.isApexWallet&&!e.isAvalanche&&!e.isBitKeep&&!e.isBlockWallet&&!e.isCoin98&&!e.isFordefi&&!e.isMathWallet&&!e.isOkxWallet&&!e.isOKExWallet&&!e.isOneInchIOSWallet&&!e.isOneInchAndroidWallet&&!e.isOpera&&!e.isPortal&&!e.isRabby&&!e.isDefiant&&!e.isTokenPocket&&!e.isTokenary&&!e.isZerion)return e}if("undefined"==typeof window)return;let t=window.ethereum;return t?.providers?t.providers.find(e):e(t)},...t};super({chains:e,options:r}),(0,a.ov)(this,"id","metaMask"),(0,a.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`),(0,a.Ko)(this,n,void 0),(0,a.qx)(this,n,r.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new o.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let r=null;if((0,a.ac)(this,n)&&this.options?.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey)){r=await this.getAccount().catch(()=>null);let e=!!r;if(e)try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),r=await this.getAccount()}catch(e){if(this.isUserRejectedRequestError(e))throw new s.ab(e);if(e.code===new s.pT(e).code)throw e}}if(!r){let e=await t.request({method:"eth_requestAccounts"});r=(0,u.K)(e[0])}let i=await this.getChainId(),c=this.isChainUnsupported(i);if(e&&i!==e){let t=await this.switchChain(e);i=t.id,c=this.isChainUnsupported(i)}return this.options?.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:r,chain:{id:i,unsupported:c},provider:t}}catch(e){if(this.isUserRejectedRequestError(e))throw new s.ab(e);if(-32002===e.code)throw new s.pT(e);throw e}}};n=new WeakMap},33761:function(e,t,r){"use strict";r.d(t,{J:function(){return h}});var n,i,o=r(18874),a=r(28973),s=r(12242),u=r(42917),c=r(22409),l=r(61867),d=r(86175),f=r(93510),h=class extends s.wR{constructor({chains:e,options:t}){let r={shimDisconnect:!1,...t};super({chains:e,options:r}),(0,s.ov)(this,"id","safe"),(0,s.ov)(this,"name","Safe"),(0,s.ov)(this,"ready","undefined"!=typeof window&&window?.parent!==window),(0,s.Ko)(this,n,void 0),(0,s.Ko)(this,i,void 0),(0,s.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`);let o=c;"function"!=typeof c&&"function"==typeof c.default&&(o=c.default),(0,s.qx)(this,i,new o(r))}async connect(){let e=await this.getProvider();if(!e)throw new o.N;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let t=await this.getAccount(),r=await this.getChainId();return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:t,chain:{id:r,unsupported:this.isChainUnsupported(r)}}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new o.N;let t=await e.request({method:"eth_accounts"});return(0,l.K)(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new o.N;return(0,a.J)(e.chainId)}async getProvider(){if(!(0,s.ac)(this,n)){let e=await (0,s.ac)(this,i).safe.getInfo();if(!e)throw Error("Could not load Safe information");(0,s.qx)(this,n,new u.N(e,(0,s.ac)(this,i)))}return(0,s.ac)(this,n)}async getWalletClient({chainId:e}={}){let t=await this.getProvider(),r=await this.getAccount(),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,d.K)({account:r,chain:n,transport:(0,f.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let e=await this.getAccount();return!!e}catch{return!1}}onAccountsChanged(e){}onChainChanged(e){}onDisconnect(){this.emit("disconnect")}};n=new WeakMap,i=new WeakMap},3243:function(e,t,r){"use strict";r.d(t,{z:function(){return D}});var n,i,o,a,s,u,c,l,d,f,h,p,m,g,y,b,v,w,E,A,P=r(12242),x=r(83160),O=r(61867),C=r(45375),I=r(86175),T=r(93510),S=r(96676),_="eip155",B="requestedChains",j="wallet_addEthereumChain",D=class extends P.wR{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),(0,P.Ko)(this,o),(0,P.Ko)(this,s),(0,P.Ko)(this,c),(0,P.Ko)(this,d),(0,P.Ko)(this,h),(0,P.Ko)(this,m),(0,P.Ko)(this,y),(0,P.Ko)(this,v),(0,P.Ko)(this,E),(0,P.ov)(this,"id","walletConnect"),(0,P.ov)(this,"name","WalletConnect"),(0,P.ov)(this,"ready",!0),(0,P.Ko)(this,n,void 0),(0,P.Ko)(this,i,void 0),(0,P.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,O.K)(e[0])})}),(0,P.ov)(this,"onChainChanged",e=>{let t=Number(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,P.ov)(this,"onDisconnect",()=>{(0,P.U9)(this,m,g).call(this,[]),this.emit("disconnect")}),(0,P.ov)(this,"onDisplayUri",e=>{this.emit("message",{type:"display_uri",data:e})}),(0,P.ov)(this,"onConnect",()=>{this.emit("connect",{})}),(0,P.U9)(this,o,a).call(this)}async connect({chainId:e,pairingTopic:t}={}){try{let r=e;if(!r){let e=this.storage?.getItem("store"),t=e?.state?.data?.chain?.id;r=t&&!this.isChainUnsupported(t)?t:this.chains[0]?.id}if(!r)throw Error("No chains found on connector.");let n=await this.getProvider();(0,P.U9)(this,d,f).call(this);let i=(0,P.U9)(this,c,l).call(this);if(n.session&&i&&await n.disconnect(),!n.session||i){let e=this.chains.filter(e=>e.id!==r).map(e=>e.id);this.emit("message",{type:"connecting"}),await n.connect({pairingTopic:t,chains:[r],optionalChains:e.length?e:void 0}),(0,P.U9)(this,m,g).call(this,this.chains.map(({id:e})=>e))}let o=await n.enable(),a=(0,O.K)(o[0]),s=await this.getChainId(),u=this.isChainUnsupported(s);return{account:a,chain:{id:s,unsupported:u}}}catch(e){if(/user rejected/i.test(e?.message))throw new C.ab(e);throw e}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{(0,P.U9)(this,h,p).call(this),(0,P.U9)(this,m,g).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();return(0,O.K)(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return(0,P.ac)(this,n)||await (0,P.U9)(this,o,a).call(this),e&&await this.switchChain(e),(0,P.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,I.K)({account:r,chain:n,transport:(0,T.P)(t)})}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),r=(0,P.U9)(this,c,l).call(this);if(!e)return!1;if(r&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(t=>t.id===e);if(!t)throw new C.x3(Error("chain not found on connector."));try{let r=await this.getProvider(),n=(0,P.U9)(this,v,w).call(this),i=(0,P.U9)(this,E,A).call(this),o=n.includes(e);if(!o&&i.includes(j)){await r.request({method:j,params:[{chainId:(0,S.eC)(t.id),blockExplorerUrls:[t.blockExplorers?.default?.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});let n=(0,P.U9)(this,y,b).call(this);n.push(e),(0,P.U9)(this,m,g).call(this,n)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,S.eC)(e)}]}),t}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new C.ab(t);throw new C.x3(t)}}};n=new WeakMap,i=new WeakMap,o=new WeakSet,a=async function(){return(0,P.ac)(this,i)||"undefined"==typeof window||(0,P.qx)(this,i,(0,P.U9)(this,s,u).call(this)),(0,P.ac)(this,i)},s=new WeakSet,u=async function(){let{EthereumProvider:e,OPTIONAL_EVENTS:t,OPTIONAL_METHODS:i}=await r.e(5).then(r.bind(r,26005)),[o,...a]=this.chains.map(({id:e})=>e);if(o){let{projectId:r,showQrModal:s=!0,qrModalOptions:u,metadata:c,relayUrl:l}=this.options;(0,P.qx)(this,n,await e.init({showQrModal:s,qrModalOptions:u,projectId:r,optionalMethods:i,optionalEvents:t,chains:[o],optionalChains:a.length?a:void 0,rpcMap:Object.fromEntries(this.chains.map(e=>[e.id,e.rpcUrls.default.http[0]])),metadata:c,relayUrl:l}))}},c=new WeakSet,l=function(){let e=(0,P.U9)(this,E,A).call(this);if(e.includes(j)||!this.options.isNewChainsStale)return!1;let t=(0,P.U9)(this,y,b).call(this),r=this.chains.map(({id:e})=>e),n=(0,P.U9)(this,v,w).call(this);return(!n.length||!!n.some(e=>r.includes(e)))&&!r.every(e=>t.includes(e))},d=new WeakSet,f=function(){(0,P.ac)(this,n)&&((0,P.U9)(this,h,p).call(this),(0,P.ac)(this,n).on("accountsChanged",this.onAccountsChanged),(0,P.ac)(this,n).on("chainChanged",this.onChainChanged),(0,P.ac)(this,n).on("disconnect",this.onDisconnect),(0,P.ac)(this,n).on("session_delete",this.onDisconnect),(0,P.ac)(this,n).on("display_uri",this.onDisplayUri),(0,P.ac)(this,n).on("connect",this.onConnect))},h=new WeakSet,p=function(){(0,P.ac)(this,n)&&((0,P.ac)(this,n).removeListener("accountsChanged",this.onAccountsChanged),(0,P.ac)(this,n).removeListener("chainChanged",this.onChainChanged),(0,P.ac)(this,n).removeListener("disconnect",this.onDisconnect),(0,P.ac)(this,n).removeListener("session_delete",this.onDisconnect),(0,P.ac)(this,n).removeListener("display_uri",this.onDisplayUri),(0,P.ac)(this,n).removeListener("connect",this.onConnect))},m=new WeakSet,g=function(e){this.storage?.setItem(B,e)},y=new WeakSet,b=function(){return this.storage?.getItem(B)??[]},v=new WeakSet,w=function(){if(!(0,P.ac)(this,n))return[];let e=P.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,x.fK)(e),r=t[_]?.chains?.map(e=>parseInt(e.split(":")[1]||""));return r??[]},E=new WeakSet,A=function(){if(!(0,P.ac)(this,n))return[];let e=P.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,x.fK)(e),r=t[_]?.methods;return r??[]}},74907:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n,i,o,a=r(28973),s=r(12242),u=r(61867),c=r(45375),l=r(86175),d=r(93510),f=r(96676),h=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,p=class extends s.wR{constructor(){super(...arguments),(0,s.Ko)(this,i),(0,s.ov)(this,"id","walletConnectLegacy"),(0,s.ov)(this,"name","WalletConnectLegacy"),(0,s.ov)(this,"ready",!0),(0,s.Ko)(this,n,void 0),(0,s.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,u.K)(e[0])})}),(0,s.ov)(this,"onChainChanged",e=>{let t=(0,a.J)(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,s.ov)(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect({chainId:e}={}){try{let t=e;if(!t){let e=this.storage?.getItem("store"),r=e?.state?.data?.chain?.id;r&&!this.isChainUnsupported(r)&&(t=r)}let r=await this.getProvider({chainId:t,create:!0});r.on("accountsChanged",this.onAccountsChanged),r.on("chainChanged",this.onChainChanged),r.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let n=await r.enable(),a=(0,u.K)(n[0]),c=await this.getChainId(),l=this.isChainUnsupported(c),d=r.connector?.peerMeta?.name??"";return h.test(d)&&(this.switchChain=(0,s.U9)(this,i,o)),{account:a,chain:{id:c,unsupported:l}}}catch(e){if(/user closed modal/i.test(e.message))throw new c.ab(e);throw e}}async disconnect(){let e=await this.getProvider();await e.disconnect(),e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")}async getAccount(){let e=await this.getProvider(),t=e.accounts;return(0,u.K)(t[0])}async getChainId(){let e=await this.getProvider(),t=(0,a.J)(e.chainId);return t}async getProvider({chainId:e,create:t}={}){if(!(0,s.ac)(this,n)||e||t){let t=this.options?.infuraId?{}:this.chains.reduce((e,t)=>({...e,[t.id]:t.rpcUrls.default.http[0]}),{}),i=(await Promise.all([r.e(639),r.e(422),r.e(859),r.e(491)]).then(r.bind(r,35287))).default;(0,s.qx)(this,n,new i({...this.options,chainId:e,rpc:{...t,...this.options?.rpc}})),(0,s.ac)(this,n).http=await (0,s.ac)(this,n).setHttpProvider(e)}return(0,s.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,l.K)({account:r,chain:n,transport:(0,d.P)(t)})}async isAuthorized(){try{let e=await this.getAccount();return!!e}catch{return!1}}};n=new WeakMap,i=new WeakSet,o=async function(e){let t=await this.getProvider(),r=(0,f.eC)(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise(t=>this.on("change",({chain:r})=>{r?.id===e&&t(e)}))]),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new c.ab(t);throw new c.x3(t)}}},62205:function(e,t,r){"use strict";r.d(t,{QB:function(){return rm},$j:function(){return rj},_g:function(){return r_},o6:function(){return rI},vZ:function(){return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){let n,i;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)&&Array.isArray(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();let o=Object.keys(t);if((n=o.length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(n&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}},zP:function(){return rD},EG:function(){return rz},RQ:function(){return rZ},bh:function(){return rQ},w6:function(){return rY},Lk:function(){return rJ},D0:function(){return r$},Hy:function(){return rG},uV:function(){return rk},jr:function(){return rN},wp:function(){return rC},If:function(){return rV},uH:function(){return rW},QC:function(){return rK},pC:function(){return rU},fq:function(){return rL}});var n,i,o,a,s,u=r(74031),c=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},l=(e,t,r)=>(c(e,t,"read from private field"),r?r.call(e):t.get(e)),d=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},f=(e,t,r,n)=>(c(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),h=(e,t,r)=>(c(e,t,"access private method"),r),p=r(79618),m=r(15358),g=r(49585),y=r(21181),b=r(85902),v=r(63950),w=r(96676),E=r(35492),A=r(80127),P=r(17248);function x(e,t){if(!(e instanceof A.G))return!1;let r=e.walk(e=>e instanceof P.Lu);return r instanceof P.Lu&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===E.$[50])}var O=r(97553),C=r(60213),I=r(35465),T=r(68416);function S(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,T.v)(t)?t:null}function _(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,w.ci)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let n=S(r[e]),i=n?(0,C.O0)(n):(0,I.w)((0,C.qX)(r[e]),"bytes");t=(0,I.w)((0,O.zo)([t,i]),"bytes")}return(0,w.ci)(t)}function B(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,C.qX)(t).byteLength+2),n=0,i=t.split(".");for(let e=0;e255&&(t=(0,C.qX)(`[${(function(e){let t=new Uint8Array(32).fill(0);return e?S(e)||(0,I.w)((0,C.qX)(e)):(0,w.ci)(t)})(i[e]).slice(2)}]`)),r[n]=t.length,r.set(t,n+1),n+=t.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}var j=r(87849);function D(e,{abi:t,address:r,args:n,docsPath:i,functionName:o,sender:a}){let{code:s,data:u,message:c,shortMessage:l}=e instanceof P.VQ?e:e instanceof A.G?e.walk(e=>"data"in e)||e.walk():{},d=e;return e instanceof j.wb?d=new P.Dk({functionName:o}):3===s&&(u||c||l)&&(d=new P.Lu({abi:t,data:"object"==typeof u?u.data:u,functionName:o,message:l??c})),new P.uq(d,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:o,sender:a})}var M=r(84001);async function R(e,{abi:t,address:r,args:n,functionName:i,...o}){let a=(0,y.R)({abi:t,args:n,functionName:i});try{let{data:s}=await (0,M.R)(e,{data:a,to:r,...o});return(0,g.k)({abi:t,args:n,functionName:i,data:s||"0x"})}catch(e){throw D(e,{abi:t,address:r,args:n,docsPath:"/docs/contract/readContract",functionName:i})}}async function k(e,{blockNumber:t,blockTag:r,coinType:n,name:i,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,b.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let o=(0,y.R)({abi:m.X$,functionName:"addr",...null!=n?{args:[_(i),BigInt(n)]}:{args:[_(i)]}}),s=await R(e,{address:a,abi:m.k3,functionName:"resolve",args:[(0,w.NC)(B(i)),o],blockNumber:t,blockTag:r});if("0x"===s[0])return null;let u=(0,v.f)((0,g.k)({abi:m.X$,args:null!=n?[_(i),BigInt(n)]:void 0,functionName:"addr",data:s[0]}));if("0x"===u||"0x00"===(0,v.f)(u))return null;return u}catch(e){if(x(e,"resolve"))return null;throw e}}class N extends A.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class U extends A.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class L extends A.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class F extends A.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}let H=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,q=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,z=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,$=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function G(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function V(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function W({uri:e,gatewayUrls:t}){let r=z.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=V(t?.ipfs,"https://ipfs.io"),i=V(t?.arweave,"https://arweave.net"),o=e.match(H),{protocol:a,subpath:s,target:u,subtarget:c=""}=o?.groups||{},l="ipns:/"===a||"ipns/"===s,d="ipfs:/"===a||"ipfs/"===s||q.test(e);if(e.startsWith("http")&&!l&&!d){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((l||d)&&u)return{uri:`${n}/${l?"ipns":"ipfs"}/${u}${c}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&u)return{uri:`${i}/${u}${c||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace($,"");if(f.startsWith("e.json()),n=await Y({gatewayUrls:e,uri:K(r)});return n}catch{throw new L({uri:t})}}async function Y({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=W({uri:t,gatewayUrls:e});if(n)return r;let i=await G(r);if(i)return r;throw new L({uri:t})}async function J(e,{nft:t}){if("erc721"===t.namespace)return R(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return R(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new F({namespace:t.namespace})}async function Z(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?X(e,{gatewayUrls:t,record:r}):Y({uri:r,gatewayUrls:t})}async function X(e,{gatewayUrls:t,record:r}){let n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,i]=t.split("/"),[o,a]=r.split(":"),[s,u]=n.split(":");if(!o||"eip155"!==o.toLowerCase())throw new U({reason:"Only EIP-155 supported"});if(!a)throw new U({reason:"Chain ID not found"});if(!u)throw new U({reason:"Contract address not found"});if(!i)throw new U({reason:"Token ID not found"});if(!s)throw new U({reason:"ERC namespace not found"});return{chainID:parseInt(a),namespace:s.toLowerCase(),contractAddress:u,tokenID:i}}(r),i=await J(e,{nft:n}),{uri:o,isOnChain:a,isEncoded:s}=W({uri:i,gatewayUrls:t});if(a&&(o.includes("data:application/json;base64,")||o.startsWith("{"))){let e=s?atob(o.replace("data:application/json;base64,","")):o,r=JSON.parse(e);return Y({uri:K(r),gatewayUrls:t})}let u=n.tokenID;return"erc1155"===n.namespace&&(u=u.replace("0x","").padStart(64,"0")),Q({gatewayUrls:t,uri:o.replace(/(?:0x)?{id}/,u)})}async function ee(e,{blockNumber:t,blockTag:r,name:n,key:i,universalResolverAddress:o}){let a=o;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,b.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let o=await R(e,{address:a,abi:m.k3,functionName:"resolve",args:[(0,w.NC)(B(n)),(0,y.R)({abi:m.nZ,functionName:"text",args:[_(n),i]})],blockNumber:t,blockTag:r});if("0x"===o[0])return null;let s=(0,g.k)({abi:m.nZ,functionName:"text",data:o[0]});return""===s?null:s}catch(e){if(x(e,"resolve"))return null;throw e}}async function et(e,{blockNumber:t,blockTag:r,gatewayUrls:n,name:i,universalResolverAddress:o}){let a=await ee(e,{blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:o});if(!a)return null;try{return await Z(e,{record:a,gatewayUrls:n})}catch{return null}}async function er(e,{address:t,blockNumber:r,blockTag:n,universalResolverAddress:i}){let o=i;if(!o){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");o=(0,b.LI)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}let a=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let t=await R(e,{address:o,abi:m.du,functionName:"reverse",args:[(0,w.NC)(B(a))],blockNumber:r,blockTag:n});return t[0]}catch(e){if(x(e,"reverse"))return null;throw e}}async function en(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:i}){let o=i;if(!o){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");o=(0,b.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[a]=await R(e,{address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,w.NC)(B(n))],blockNumber:t,blockTag:r});return a}function ei(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:o})=>{"success"===i&&t===e&&(r[n]=o.request)}),t=>r[t]||e.request}async function eo(e){let t=ei(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}class ea extends A.G{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var es=r(38601);let eu=e=>"string"==typeof e?(0,es.F)(e):(0,es.J)(e);var ec=r(57427),el=r(99482),ed=r(34482);function ef({abi:e,eventName:t,args:r}){let n=e[0];if(t&&!(n=(0,ed.m)({abi:e,args:r,name:t})))throw new j.mv(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==n.type)throw new j.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let i=(0,el.t)(n),o=eu(i),a=[];if(r&&"inputs"in n){let e=n.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(a=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>eh({param:e,value:t[r][i]})):t[r]?eh({param:e,value:t[r]}):null)??[])}return[o,...a]}function eh({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,I.w)((0,C.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new ea(e.type);return(0,ec.E)([e],[t])}async function ep(e,{address:t,abi:r,args:n,eventName:i,fromBlock:o,strict:a,toBlock:s}){let u=ei(e,{method:"eth_newFilter"}),c=i?ef({abi:r,args:n,eventName:i}):void 0,l=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,w.eC)(o):o,toBlock:"bigint"==typeof s?(0,w.eC)(s):s,topics:c}]});return{abi:r,args:n,eventName:i,id:l,request:u(l),strict:a,type:"event"}}async function em(e,{address:t,args:r,event:n,events:i,fromBlock:o,strict:a,toBlock:s}={}){let u=i??(n?[n]:void 0),c=ei(e,{method:"eth_newFilter"}),l=[];u&&(l=[u.flatMap(e=>ef({abi:[e],eventName:e.name,args:r}))],n&&(l=l[0]));let d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,w.eC)(o):o,toBlock:"bigint"==typeof s?(0,w.eC)(s):s,...l.length?{topics:l}:{}}]});return{abi:u,args:r,eventName:n?n.name:void 0,fromBlock:o,id:d,request:c(d),strict:a,toBlock:s,type:"event"}}async function eg(e){let t=ei(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}var ey=r(17e3),eb=r(59100);async function ev(e,{abi:t,address:r,args:n,functionName:i,...o}){let a=(0,y.R)({abi:t,args:n,functionName:i});try{let t=await (0,eb.Q)(e,{data:a,to:r,...o});return t}catch(a){let e=o.account?(0,ey.T)(o.account):void 0;throw D(a,{abi:t,address:r,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:e?.address})}}async function ew(e,{address:t,blockNumber:r,blockTag:n="latest"}){let i=r?(0,w.eC)(r):void 0,o=await e.request({method:"eth_getBalance",params:[t,i||n]});return BigInt(o)}var eE=r(34726);let eA=new Map,eP=new Map;async function ex(e,{cacheKey:t,cacheTime:r=1/0}){let n=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,eA),n=t(e,eP);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),i=n.response.get();if(i&&r>0){let e=new Date().getTime()-i.created.getTime();if(e`blockNumber.${e}`;async function eC(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){let n=await ex(()=>e.request({method:"eth_blockNumber"}),{cacheKey:eO(e.uid),cacheTime:r??t});return BigInt(n)}var eI=r(71791);async function eT(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){let i;let o=void 0!==r?(0,w.eC)(r):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||n]}),(0,eI.ly)(i)}async function eS(e,{address:t,blockNumber:r,blockTag:n="latest"}){let i=void 0!==r?(0,w.eC)(r):void 0,o=await e.request({method:"eth_getCode",params:[t,i||n]});if("0x"!==o)return o}var e_=r(3223);async function eB(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){let o=r?(0,w.eC)(r):void 0,a=await e.request({method:"eth_feeHistory",params:[(0,w.eC)(t),o||n,i]});return{baseFeePerGas:a.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:a.gasUsedRatio,oldestBlock:BigInt(a.oldestBlock),reward:a.reward?.map(e=>e.map(e=>BigInt(e)))}}var ej=r(50305);let eD="/docs/contract/decodeEventLog";function eM({abi:e,data:t,strict:r,topics:n}){let i=r??!0,[o,...a]=n;if(!o)throw new j.FM({docsPath:eD});let s=e.find(e=>"event"===e.type&&o===eu((0,el.t)(e)));if(!(s&&"name"in s)||"event"!==s.type)throw new j.lC(o,{docsPath:eD});let{name:u,inputs:c}=s,l=c?.some(e=>!("name"in e&&e.name)),d=l?[]:{},f=c.filter(e=>"indexed"in e&&e.indexed);if(a.length>0)for(let e=0;e!("indexed"in e&&e.indexed));if(h.length>0){if(t&&"0x"!==t)try{let e=(0,ej.r)(h,t);if(e){if(l)d=[...d,...e];else for(let t=0;t0?d:void 0}}var eR=r(86319);async function ek(e,{filter:t}){let r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});return n.map(e=>{if("string"==typeof e)return e;try{let{eventName:n,args:i}="abi"in t&&t.abi?eM({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,eR.U)(e,{args:i,eventName:n})}catch(i){let r,n;if(i instanceof j.SM||i instanceof j.Gy){if("strict"in t&&t.strict)return;r=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eR.U)(e,{args:n?[]:{},eventName:r})}}).filter(Boolean)}async function eN(e,{filter:t}){let r=t.strict??!1,n=await t.request({method:"eth_getFilterLogs",params:[t.id]});return n.map(e=>{try{let{eventName:n,args:i}="abi"in t&&t.abi?eM({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,eR.U)(e,{args:i,eventName:n})}catch(i){let r,n;if(i instanceof j.SM||i instanceof j.Gy){if("strict"in t&&t.strict)return;r=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eR.U)(e,{args:n?[]:{},eventName:r})}}).filter(Boolean)}var eU=r(9216);async function eL(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:o,events:a,args:s,strict:u}={}){let c=u??!1,l=a??(o?[o]:void 0),d=[];return l&&(d=[l.flatMap(e=>ef({abi:[e],eventName:e.name,args:s}))],o&&(d=d[0])),(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof n?(0,w.eC)(n):n,toBlock:"bigint"==typeof i?(0,w.eC)(i):i}]})).map(e=>{try{let{eventName:t,args:r}=l?eM({abi:l,data:e.data,topics:e.topics,strict:c}):{eventName:void 0,args:void 0};return(0,eR.U)(e,{args:r,eventName:t})}catch(n){let t,r;if(n instanceof j.SM||n instanceof j.Gy){if(c)return;t=n.abiItem.name,r=n.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,eR.U)(e,{args:r?[]:{},eventName:t})}}).filter(Boolean)}async function eF(e,{address:t,blockNumber:r,blockTag:n="latest",slot:i}){let o=void 0!==r?(0,w.eC)(r):void 0,a=await e.request({method:"eth_getStorageAt",params:[t,i,o||n]});return a}var eH=r(92966),eq=r(56792);async function ez(e,{blockHash:t,blockNumber:r,blockTag:n,hash:i,index:o}){let a=n||"latest",s=void 0!==r?(0,w.eC)(r):void 0,u=null;if(i?u=await e.request({method:"eth_getTransactionByHash",params:[i]}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,w.eC)(o)]}):(s||a)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||a,(0,w.eC)(o)]})),!u)throw new eH.Bh({blockHash:t,blockNumber:r,blockTag:a,hash:i,index:o});let c=e.chain?.formatters?.transaction?.format||eq.Tr;return c(u)}async function e$(e,{hash:t,transactionReceipt:r}){let[n,i]=await Promise.all([eC(e),t?ez(e,{hash:t}):void 0]),o=r?.blockNumber||i?.blockNumber;return o?n-o+1n:0n}var eG=r(50996),eV=r(45797);async function eW(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new eH.Yb({hash:t});let n=e.chain?.formatters?.transactionReceipt?.format||eV.f;return n(r)}async function eK(e,t){let{allowFailure:r=!0,batchSize:n,blockNumber:i,blockTag:o,contracts:a,multicallAddress:s}=t,u=n??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),c=s;if(!c){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");c=(0,b.LI)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let l=[[]],d=0,f=0;for(let e=0;e0&&f>u&&(d++,f=(e.length-2)/2,l[d]=[]),l[d]=[...l[d],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=D(a,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:o});if(!r)throw e;l[d]=[...l[d],{allowFailure:!0,callData:"0x",target:n}]}}let h=await Promise.all(l.map(t=>R(e,{abi:m.F8,address:c,args:[t],blockNumber:i,blockTag:o,functionName:"aggregate3"})));return h.flat().map(({returnData:e,success:t},n)=>{let i=l.flat(),{callData:o}=i[n],{abi:s,address:u,functionName:c,args:d}=a[n];try{if("0x"===o)throw new j.wb;if(!t)throw new P.VQ({data:e});let n=(0,g.k)({abi:s,args:d,data:e,functionName:c});return r?{result:n,status:"success"}:n}catch(t){let e=D(t,{abi:s,address:u,args:d,docsPath:"/docs/contract/multicall",functionName:c});if(!r)throw e;return{error:e,result:void 0,status:"failure"}}})}async function eQ(e,{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...a}){let s=a.account?(0,ey.T)(a.account):void 0,u=(0,y.R)({abi:t,args:n,functionName:o});try{let{data:s}=await (0,M.R)(e,{batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:r,...a}),c=(0,g.k)({abi:t,args:n,functionName:o,data:s||"0x"});return{result:c,request:{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...a}}}catch(e){throw D(e,{abi:t,address:r,args:n,docsPath:"/docs/contract/simulateContract",functionName:o,sender:s?.address})}}async function eY(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}var eJ=r(93874),eZ=r(50291);async function eX(e,{address:t,hash:r,signature:n,...i}){let o=(0,T.v)(n)?n:(0,w.NC)(n);try{let{data:n}=await (0,M.R)(e,{data:(0,eZ.w)({abi:m.$o,args:[t,r,o],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...i});return function(e,t){let r=(0,T.v)(e)?(0,C.O0)(e):e,n=(0,T.v)(t)?(0,C.O0)(t):t;return(0,eJ.equalBytes)(r,n)}(n??"0x0","0x1")}catch(e){if(e instanceof P.cg)return!1;throw e}}async function e0(e,{address:t,message:r,signature:n,...i}){let o=function(e,t){let r="string"==typeof e?(0,C.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,C.O0)(e.raw),n=(0,C.qX)(`\x19Ethereum Signed Message: -${r.length}`);return(0,I.w)((0,O.zo)([n,r]),void 0)}(r);return eX(e,{address:t,hash:o,signature:n,...i})}var e1=r(59635);function e2({data:e,primaryType:t,types:r}){let n=function e({data:t,primaryType:r,types:n}){let i=[{type:"bytes32"}],o=[function({primaryType:e,types:t}){let r=(0,w.NC)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\w*/u),o=i?.[0];if(n.has(o)||void 0===r[o])return n;for(let t of(n.add(o),r[o]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});n.delete(e);let i=[e,...Array.from(n).sort()];for(let e of i)r+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,I.w)(r)}({primaryType:r,types:n})];for(let a of n[r]){let[r,s]=function t({types:r,name:n,type:i,value:o}){if(void 0!==r[i])return[{type:"bytes32"},(0,I.w)(e({data:o,primaryType:i,types:r}))];if("bytes"===i){let e=o.length%2?"0":"";return o=`0x${e+o.slice(2)}`,[{type:"bytes32"},(0,I.w)(o)]}if("string"===i)return[{type:"bytes32"},(0,I.w)((0,w.NC)(o))];if(i.lastIndexOf("]")===i.length-1){let e=i.slice(0,i.lastIndexOf("[")),a=o.map(i=>t({name:n,type:e,types:r,value:i}));return[{type:"bytes32"},(0,I.w)((0,ec.E)(a.map(([e])=>e),a.map(([,e])=>e)))]}return[{type:i},o]}({types:n,name:a.name,type:a.type,value:t[a.name]});i.push(r),o.push(s)}return(0,ec.E)(i,o)}({data:e,primaryType:t,types:r});return(0,I.w)(n)}async function e6(e,{address:t,signature:r,message:n,primaryType:i,types:o,domain:a,...s}){let u=function({domain:e,message:t,primaryType:r,types:n}){let i=void 0===e?{}:e,o={EIP712Domain:["string"==typeof i?.name&&{name:"name",type:"string"},i?.version&&{name:"version",type:"string"},"number"==typeof i?.chainId&&{name:"chainId",type:"uint256"},i?.verifyingContract&&{name:"verifyingContract",type:"address"},i?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...n};(0,e1.i)({domain:i,message:t,primaryType:r,types:o});let a=["0x1901"];return i&&a.push(function({domain:e,types:t}){return e2({data:e,primaryType:"EIP712Domain",types:t})}({domain:i,types:o})),"EIP712Domain"!==r&&a.push(e2({data:t,primaryType:r,types:o})),(0,I.w)((0,O.zo)(a))}({message:n,primaryType:i,types:o,domain:a});return eX(e,{address:t,hash:u,signature:r,...s})}let e5=new Map,e8=new Map,e3=0;function e4(e,t,r){let n=++e3,i=()=>e5.get(e)||[],o=()=>{let t=i();e5.set(e,t.filter(e=>e.id!==n))},a=()=>{let t=e8.get(e);1===i().length&&t&&t(),o()},s=i();if(e5.set(e,[...s,{id:n,fns:t}]),s&&s.length>0)return a;let u={};for(let e in t)u[e]=(...t)=>{let r=i();0!==r.length&&r.forEach(r=>r.fns[e]?.(...t))};let c=r(u);return"function"==typeof c&&e8.set(e,c),a}var e9=r(89544),e7=r(1301),te=r(90739);function tt(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let i=!0,o=()=>i=!1,a=async()=>{let a;t&&(a=await e({unpoll:o}));let s=await r?.(a)??n;await (0,te.D)(s);let u=async()=>{i&&(await e({unpoll:o}),await (0,te.D)(n),u())};u()};return a(),o}function tr(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:o,pollingInterval:a=e.pollingInterval}){let s,u,c;let l=void 0!==o?o:"webSocket"!==e.transport.type;return l?(()=>{let o=(0,e7.P)(["watchBlockNumber",e.uid,t,r,a]);return e4(o,{onBlockNumber:n,onError:i},n=>tt(async()=>{try{let t=await eC(e,{cacheTime:0});if(s){if(t===s)return;if(t-s>1&&r)for(let e=s+1n;es)&&(n.onBlockNumber(t,s),s=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:a}))})():(u=!0,c=()=>u=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!u)return;let t=(0,eI.y_)(e.result?.number);n(t,s),s=t},onError(e){i?.(e)}});c=t,u||c()}catch(e){i?.(e)}})(),c)}async function tn(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:i=e.pollingInterval,timeout:o}){let a,s,u;let c=(0,e7.P)(["waitForTransactionReceipt",e.uid,r]),l=!1;return new Promise((d,f)=>{o&&setTimeout(()=>f(new eH.mc({hash:r})),o);let h=e4(c,{onReplaced:n,resolve:d,reject:f},n=>{let o=tr(e,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(l)return;let c=i,d=e=>{o(),e(),h()};try{if(u){if(c-u.blockNumber+1nn.resolve(u));return}if(a||(l=!0,await (0,e9.J)(async()=>{(a=await ez(e,{hash:r})).blockNumber&&(c=a.blockNumber)},{delay:({count:e})=>200*~~(1<0&&c-u.blockNumber+1nn.resolve(u))}catch(r){if(a&&(r instanceof eH.Bh||r instanceof eH.Yb)){s=a;let r=await (0,eE.Q)(e,{blockNumber:c,includeTransactions:!0}),i=r.transactions.find(({from:e,nonce:t})=>e===s.from&&t===s.nonce);if(!i||c-(u=await eW(e,{hash:i.hash})).blockNumber+1n{n.onReplaced?.({reason:o,replacedTransaction:s,transaction:i,transactionReceipt:u}),n.resolve(u)})}else d(()=>n.reject(r))}}})})})}var ti=r(84500),to=r(45375);function ta(e){return{call:t=>(0,M.R)(e,t),createBlockFilter:()=>eo(e),createContractEventFilter:t=>ep(e,t),createEventFilter:t=>em(e,t),createPendingTransactionFilter:()=>eg(e),estimateContractGas:t=>ev(e,t),estimateGas:t=>(0,eb.Q)(e,t),getBalance:t=>ew(e,t),getBlock:t=>(0,eE.Q)(e,t),getBlockNumber:t=>eC(e,t),getBlockTransactionCount:t=>eT(e,t),getBytecode:t=>eS(e,t),getChainId:()=>(0,e_.L)(e),getEnsAddress:t=>k(e,t),getEnsAvatar:t=>et(e,t),getEnsName:t=>er(e,t),getEnsResolver:t=>en(e,t),getEnsText:t=>ee(e,t),getFeeHistory:t=>eB(e,t),getFilterChanges:t=>ek(e,t),getFilterLogs:t=>eN(e,t),getGasPrice:()=>(0,eU.o)(e),getLogs:t=>eL(e,t),getStorageAt:t=>eF(e,t),getTransaction:t=>ez(e,t),getTransactionConfirmations:t=>e$(e,t),getTransactionCount:t=>(0,eG.K)(e,t),getTransactionReceipt:t=>eW(e,t),multicall:t=>eK(e,t),readContract:t=>R(e,t),simulateContract:t=>eQ(e,t),verifyMessage:t=>e0(e,t),verifyTypedData:t=>e6(e,t),uninstallFilter:t=>eY(e,t),waitForTransactionReceipt:t=>tn(e,t),watchBlocks:t=>(function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:o,includeTransactions:a,poll:s,pollingInterval:u=e.pollingInterval}){let c,l,d;let f=void 0!==s?s:"webSocket"!==e.transport.type,h=a??!1;return f?(()=>{let a=(0,e7.P)(["watchBlocks",e.uid,r,n,h,u]);return e4(a,{onBlock:i,onError:o},i=>tt(async()=>{try{let n=await (0,eE.Q)(e,{blockTag:t,includeTransactions:h});if(n.number&&c?.number){if(n.number===c.number)return;if(n.number-c.number>1&&r)for(let t=c?.number+1n;tc.number)&&(i.onBlock(n,c),c=n)}catch(e){i.onError?.(e)}},{emitOnBegin:n,interval:u}))})():(l=!0,d=()=>l=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!l)return;let r=e.chain?.formatters?.block?.format||ti.Z,n=r(t.result);i(n,c),c=n},onError(e){o?.(e)}});d=t,l||d()}catch(e){o?.(e)}})(),d)})(e,t),watchBlockNumber:t=>tr(e,t),watchContractEvent:t=>(function(e,{abi:t,address:r,args:n,batch:i=!0,eventName:o,onError:a,onLogs:s,poll:u,pollingInterval:c=e.pollingInterval,strict:l}){let d,f;let h=void 0!==u?u:"webSocket"!==e.transport.type;return h?(()=>{let u=(0,e7.P)(["watchContractEvent",r,n,i,e.uid,o,c]),d=l??!1;return e4(u,{onLogs:s,onError:a},a=>{let s,u;let l=!1,f=tt(async()=>{if(!l){try{u=await ep(e,{abi:t,address:r,args:n,eventName:o,strict:d})}catch{}l=!0;return}try{let c;if(u)c=await ek(e,{filter:u});else{let i=await eC(e);c=s&&s!==i?await eL(e,{address:r,args:n,fromBlock:s+1n,toBlock:i,event:(0,ed.m)({abi:t,name:o})}):[],s=i}if(0===c.length)return;i?a.onLogs(c):c.forEach(e=>a.onLogs([e]))}catch(e){u&&e instanceof to.yR&&(l=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await eY(e,{filter:u}),f()}})})():(d=!0,f=()=>d=!1,(async()=>{try{let i=o?ef({abi:t,eventName:o,args:n}):[],{unsubscribe:u}=await e.transport.subscribe({params:["logs",{address:r,topics:i}],onData(e){if(!d)return;let r=e.result;try{let{eventName:e,args:n}=eM({abi:t,data:r.data,topics:r.topics,strict:l}),i=(0,eR.U)(r,{args:n,eventName:e});s([i])}catch(i){let e,t;if(i instanceof j.SM||i instanceof j.Gy){if(l)return;e=i.abiItem.name,t=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,eR.U)(r,{args:t?[]:{},eventName:e});s([n])}},onError(e){a?.(e)}});f=u,d||f()}catch(e){a?.(e)}})(),f)})(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:n=!0,event:i,events:o,onError:a,onLogs:s,poll:u,pollingInterval:c=e.pollingInterval,strict:l}){let d,f;let h=void 0!==u?u:"webSocket"!==e.transport.type,p=l??!1;return h?(()=>{let u=(0,e7.P)(["watchEvent",t,r,n,e.uid,i,c]);return e4(u,{onLogs:s,onError:a},a=>{let s,u;let l=!1,d=tt(async()=>{if(!l){try{u=await em(e,{address:t,args:r,event:i,events:o,strict:p})}catch{}l=!0;return}try{let c;if(u)c=await ek(e,{filter:u});else{let n=await eC(e);c=s&&s!==n?await eL(e,{address:t,args:r,event:i,events:o,fromBlock:s+1n,toBlock:n}):[],s=n}if(0===c.length)return;n?a.onLogs(c):c.forEach(e=>a.onLogs([e]))}catch(e){u&&e instanceof to.yR&&(l=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await eY(e,{filter:u}),d()}})})():(d=!0,f=()=>d=!1,(async()=>{try{let n=o??(i?[i]:void 0),u=[];n&&(u=[n.flatMap(e=>ef({abi:[e],eventName:e.name,args:r}))],i&&(u=u[0]));let{unsubscribe:c}=await e.transport.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!d)return;let t=e.result;try{let{eventName:e,args:r}=eM({abi:n,data:t.data,topics:t.topics,strict:p}),i=(0,eR.U)(t,{args:r,eventName:e});s([i])}catch(i){let e,r;if(i instanceof j.SM||i instanceof j.Gy){if(l)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,eR.U)(t,{args:r?[]:{},eventName:e});s([n])}},onError(e){a?.(e)}});f=c,d||f()}catch(e){a?.(e)}})(),f)})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:o=e.pollingInterval}){let a,s;let u=void 0!==i?i:"webSocket"!==e.transport.type;return u?(()=>{let i=(0,e7.P)(["watchPendingTransactions",e.uid,t,o]);return e4(i,{onTransactions:n,onError:r},r=>{let n;let i=tt(async()=>{try{if(!n)try{n=await eg(e);return}catch(e){throw i(),e}let o=await ek(e,{filter:n});if(0===o.length)return;t?r.onTransactions(o):o.forEach(e=>r.onTransactions([e]))}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:o});return async()=>{n&&await eY(e,{filter:n}),i()}})})():(a=!0,s=()=>a=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!a)return;let t=e.result;n([t])},onError(e){r?.(e)}});s=t,a||s()}catch(e){r?.(e)}})(),s)})(e,t)}}function ts(e){let{key:t="public",name:r="Public Client"}=e,n=(0,p.e)({...e,key:t,name:r,type:"publicClient"});return n.extend(ta)}var tu=r(77133),tc=r(67494);function tl(e,t={}){let{key:r="fallback",name:n="Fallback",rank:i=!1,retryCount:o,retryDelay:a}=t;return({chain:t,pollingInterval:s=4e3,timeout:u})=>{let c=e,l=()=>{},d=(0,tc.q)({key:r,name:n,async request({method:e,params:r}){let n=async(i=0)=>{let o=c[i]({chain:t,retryCount:0,timeout:u});try{let t=await o.request({method:e,params:r});return l({method:e,params:r,response:t,transport:o,status:"success"}),t}catch(t){if(l({error:t,method:e,params:r,transport:o,status:"error"}),(0,tu.y)(t)||i===c.length-1)throw t;return n(i+1)}};return n()},retryCount:o,retryDelay:a,type:"fallback"},{onResponse:e=>l=e,transports:c.map(e=>e({chain:t,retryCount:0}))});if(i){let e="object"==typeof i?i:{};!function({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:i=1e3,transports:o,weights:a={}}){let{stability:s=.7,latency:u=.3}=a,c=[],l=async()=>{let a=await Promise.all(o.map(async t=>{let r,n;let o=t({chain:e,retryCount:0,timeout:i}),a=Date.now();try{await o.request({method:"net_listening"}),n=1}catch{n=0}finally{r=Date.now()}let s=r-a;return{latency:s,success:n}}));c.push(a),c.length>n&&c.shift();let d=Math.max(...c.map(e=>Math.max(...e.map(({latency:e})=>e)))),f=o.map((e,t)=>{let r=c.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,i=c.map(e=>e[t].success),o=i.reduce((e,t)=>e+t,0)/i.length;return 0===o?[0,t]:[u*(1-n/d)+s*o,t]}).sort((e,t)=>t[0]-e[0]);r(f.map(([,e])=>o[e])),await (0,te.D)(t),l()};l()}({chain:t,interval:e.interval??s,onTransports:e=>c=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:c,weights:e.weights})}return d}}var td=r(81154);class tf extends A.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var th=r(53610);function tp(e,{errorInstance:t,timeout:r,signal:n}){return new Promise((i,o)=>{(async()=>{let a;try{let s=new AbortController;r>0&&(a=setTimeout(()=>{n?s.abort():o(t)},r)),i(await e({signal:s?.signal}))}catch(e){"AbortError"===e.name&&o(t),o(e)}finally{clearTimeout(a)}})()})}let tm=0;async function tg(e,{body:t,fetchOptions:r={},timeout:n=1e4}){let{headers:i,method:o,signal:a}=r;try{let s;let u=await tp(async({signal:s})=>{let u=await fetch(e,{...r,body:Array.isArray(t)?(0,e7.P)(t.map(e=>({jsonrpc:"2.0",id:tm++,...e}))):(0,e7.P)({jsonrpc:"2.0",id:tm++,...t}),headers:{...i,"Content-Type":"application/json"},method:o||"POST",signal:a||(n>0?s:void 0)});return u},{errorInstance:new td.W5({body:t,url:e}),timeout:n,signal:!0});if(s=u.headers.get("Content-Type")?.startsWith("application/json")?await u.json():await u.text(),!u.ok)throw new td.Gg({body:t,details:(0,e7.P)(s.error)||u.statusText,headers:u.headers,status:u.status,url:e});return s}catch(r){if(r instanceof td.Gg||r instanceof td.W5)throw r;throw new td.Gg({body:t,details:r.message,url:e})}}let ty=new Map;async function tb(e){let t=new URL(e),n=t.toString(),i=ty.get(n);if(i)return i;let{schedule:o}=(0,th.S)({id:n,fn:async()=>{let e=await r.e(667).then(r.bind(r,60667));e=e.default?.constructor?e.default:e.WebSocket;let o=new e(t),a=new Map,s=new Map,u=({data:e})=>{let t=JSON.parse(e),r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,i=r?s:a,o=i.get(n);o&&o({data:e}),r||i.delete(n)},c=()=>{ty.delete(n),o.removeEventListener("close",c),o.removeEventListener("message",u)};return o.addEventListener("close",c),o.addEventListener("message",u),o.readyState===e.CONNECTING&&await new Promise((e,t)=>{o&&(o.onopen=e,o.onerror=t)}),i=Object.assign(o,{requests:a,subscriptions:s}),ty.set(n,i),[i]}}),[a,[s]]=await o();return s}async function tv(e,{body:t,timeout:r=1e4}){return tp(()=>new Promise(r=>tw.webSocket(e,{body:t,onResponse:r})),{errorInstance:new td.W5({body:t,url:e.url}),timeout:r})}let tw={http:tg,webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new td.c9({body:t,url:e.url,details:"Socket is closed."});let n=tm++,i=({data:o})=>{let a=JSON.parse(o);("number"!=typeof a.id||n===a.id)&&(r?.(a),"eth_subscribe"===t.method&&"string"==typeof a.result&&e.subscriptions.set(a.result,i),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(n,i),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:n})),e},webSocketAsync:tv};var tE=r(18874),tA=r(7995);let tP=e=>(t,r,n)=>{let i=n.subscribe;n.subscribe=(e,t,r)=>{let o=e;if(t){let i=(null==r?void 0:r.equalityFn)||Object.is,a=e(n.getState());o=r=>{let n=e(r);if(!i(a,n)){let e=a;t(a=n,e)}},(null==r?void 0:r.fireImmediately)&&t(a,a)}return i(o)};let o=e(t,r,n);return o},tx=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>tx(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>tx(t)(e)}}},tO=(e,t)=>(r,n,i)=>{let o,a,s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=new Set,l=new Set;try{o=s.getStorage()}catch(e){}if(!o)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...e)},n,i);let d=tx(s.serialize),f=()=>{let e;let t=s.partialize({...n()}),r=d({state:t,version:s.version}).then(e=>o.setItem(s.name,e)).catch(t=>{e=t});if(e)throw e;return r},h=i.setState;i.setState=(e,t)=>{h(e,t),f()};let p=e((...e)=>{r(...e),f()},n,i),m=()=>{var e;if(!o)return;u=!1,c.forEach(e=>e(n()));let t=(null==(e=s.onRehydrateStorage)?void 0:e.call(s,n()))||void 0;return tx(o.getItem.bind(o))(s.name).then(e=>{if(e)return s.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return e.state;if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(a=s.merge(e,null!=(t=n())?t:p),!0),f()}).then(()=>{null==t||t(a,void 0),u=!0,l.forEach(e=>e(a))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.getStorage&&(o=e.getStorage())},clearStorage:()=>{null==o||o.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),a||p},tC=(e,t)=>(r,n,i)=>{let o,a={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(n=r.getItem(e))?n:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,u=new Set,c=new Set,l=a.storage;if(!l)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)},n,i);let d=()=>{let e=a.partialize({...n()});return l.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>{f(e,t),d()};let h=e((...e)=>{r(...e),d()},n,i),p=()=>{var e,t;if(!l)return;s=!1,u.forEach(e=>{var t;return e(null!=(t=n())?t:h)});let i=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=n())?e:h))||void 0;return tx(l.getItem.bind(l))(a.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(o=a.merge(e,null!=(t=n())?t:h),!0),d()}).then(()=>{null==i||i(o,void 0),o=n(),s=!0,c.forEach(e=>e(o))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},a.skipHydration||p(),o||h},tI=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),tO(e,t)):tC(e,t),tT=e=>{let t;let r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o=e=>(r.add(e),()=>r.delete(e)),a=()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()},s={setState:n,getState:i,subscribe:o,destroy:a};return t=e(n,i,s),s},tS=e=>e?tT(e):tT;var t_=r(23935);function tB(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[r,n]of e)if(!Object.is(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n>--u&1}let d=2147483648-1,f=0;for(let e=0;e<31;e++)f=f<<1|l();let h=[],p=0,m=2147483648;for(;;){let e=Math.floor(((f-p+1)*i-1)/m),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|l(),a=a<<1^1073741824,s=(1073741824^s)<<1|1073741825;p=a,m=1+s-a}let g=n-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return g+256+(e[s++]<<8|e[s++]);case 1:return g+e[s++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>3);for(let i=0,o=0,a=0,s=0;i=8&&(n[o++]=s>>(a-=8));return n}(e)),r=0,()=>t[r++]}function tM(e,t=0){let r=[];for(;;){let n=e(),i=e();if(!i)break;t+=n;for(let e=0;e{let t=tM(e);if(t.length)return t})}function tk(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=tN(t);return tU(i.length,1+e,t).flatMap((e,t)=>{let[o,...a]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*n;return[o+t*r,a.map(e=>e+i)]})})}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(tU(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function tN(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function tU(e,t,r){let n=Array(e).fill().map(()=>[]);for(let i=0;i>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}var tL=tD("AEgSbwjEDVYByQKaAQsBOQDpATQAngDUAHsAoABoANQAagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXAA0ADgAWAA8AFAAVBFsF1QEXE0o3xAXUALIArkABaACmAgPGAK6AMDAwMAE/qAYK7P4HQAblMgVYBVkAPSw5Afa3EgfJwgAPA8meNALGCjACjqIChtk/j2+KAsXMAoPzASDgCgDyrgFCAi6OCkCQAOQA4woWABjVuskNDD6eBBx4AP4COhi+D+wKBirqBgSCaA0cBy4ArABqku+mnIAAXAaUJAbqABwAPAyUFvyp/Mo8INAIvCoDshQ8APcubKQAon4ZABgEJtgXAR4AuhnOBPsKIE04CZgJiR8cVlpM5INDABQADQAWAA9sVQAiAA8ASO8W2T30OVnKluYvChEeX05ZPe0AFAANABYAD2wgXUCYAMPsABwAOgzGFryp/AHauQVcBeMC0KACxLEKTR2kZhR0Gm5M9gC8DmgC4gAMLjSKF8qSAoF8ARMcAL4OaALiAAwuAUlQJpJMCwMt/AUpCthqGK4B2EQAciwSeAIyFiIDKCi6OGwAOuIB9iYAyA7MtgEcZIIAsgYABgCK1EoFHNZsGACoKNIBogAAAAAAKy4DnABoAQoaPu43dQQZGACrAcgCIgDgLBJ0OvRQsTOiKDVJBfsoBVoFWbC5BWo7XkITO1hCmHuUZmCh+QwUA8YIJvJ4JASkTAJUVAJ2HKwoAZCkpjZcA0YYBIRiCgDSBqxAMCQHKgI6XgBsAWIgcgCEHhoAlgFKuAAoahgBsMYDOC4iRFQBcFoGZgJmAPJKGAMqAgYASkIArABeAHQALLYGCPTwGo6AAAAKIgAqALQcSAHSAdwIDDKXeYHpAAsAEgA1AD4AOTR3etTBEGAQXQJNCkxtOxUMAq0PpwvmERYM0irM09kANKoH7ANUB+wDVANUB+wH7ANUB+wDVANUA1QDVBwL8BvUwRBgD0kEbgWPBYwE1wiEJkoRggcpCNNUDnQfHEgDRgD9IyZJHTuUMwwlQ0wNTQQH/TZDbKh9OQNIMaxU9pCjA8wyUDltAh5yEqEAKw90HTW2Tn96SHGhCkxPr7WASWNOaAK/Oqk/+QoiCZRvvHdPBj4QGCeiEPQMMAGyATgN6kvVBO4GOATGH3oZFg/KlZkIoi3aDOom4C6egFcj8iqABepL8TzaC0pRZQ9WC2IJ4DpggUsDHgEKIogK2g02CGoQ8ArGaA3iEUIHNgPSSZcAogb+Cw4dMhWyJg1iqQsGOXQG+BrzC4wmrBMmevkF0BoeBkoBJhr8AMwu5IWtWi5cGU9cBgALIiPEFKVQHQ0iQLR4RRoYBxIlpgKOQ21KhFEzHpAh8zw6DWMuEFF5B/I8AhlMC348m0aoRQsRzz6KPUUiRkwpBDJ8LCwniAnMD4IMtnxvAVYJHgmuDG4TLhEUN8IINgcWKpchJxIIHkaSYJcE9JwD8BPOAwgFPAk+BxADshwqEysVJgUKgSHUAvA20i6wAoxWfQEUBcgPIh/cEE1H3Q7mCJgCYgOAJegAKhUeABQimAhAYABcj9VTAi7ICMRqaSNxA2QU5F4RcAeODlQHpBwwFbwc3nDFXgiGBSigrAlYAXIJlgFcBOAIBjVYjJ0gPmdQi1UYmCBeQTxd+QIuDGIVnES6h3UCiA9oEhgBMgFwBzYM/gJ0EeoRaBCSCOiGATWyM/U6IgRMIYAgDgokA0xsywskJvYM9WYBoBJfAwk0OnfrZ6hgsyEX+gcWMsJBXSHuC49PygyZGr4YP1QrGeEHvAPwGvAn50FUBfwDoAAQOkoz6wS6C2YIiAk8AEYOoBQH1BhnCm6MzQEuiAG0lgNUjoACbIwGNAcIAGQIhAV24gAaAqQIoAACAMwDVAA2AqoHmgAWAII+AToDJCwBHuICjAOQCC7IAZIsAfAmBBjADBIA9DRuRwLDrgKAZ2afBdpVAosCRjIBSiIEAktETgOsbt4A2ABIBhDcRAESqEfIF+BAAdxsKADEAPgAAjIHAj4BygHwagC0AVwLLgmfsLIBSuYmAIAAEmgB1AKGANoAMgB87gFQAEoFVvYF0AJMRgEOLhUoVF4BuAMcATABCgB2BsiKosYEHARqB9ACEBgV3gLvKweyAyLcE8pCwgK921IAMhMKNQqkCqNgWF0wAy5vPU0ACx+lPsQ/SwVOO1A7VTtQO1U7UDtVO1A7VTtQO1UDlLzfvN8KaV9CYegMow3RRMU6RhPYYE5gLxPFLbQUvhXLJVMZOhq5JwIl4VUGDwEt0GYtCCk0che5ADwpZYM+Y4MeLQpIHORTjlT1LRgArkufM6wNqRsSRD0FRHXqYicWCwofAmR+AmI/WEqsWDcdAqH0AmiVAmYGAp+BOBgIAmY4AmYjBGsEfAN/EAN+jzkDOXQUOX86ICACbBoCMjM4BwJtxAJtq+yHMGRCKAFkANsA3gBHAgeVDIoA+wi/AAqyAncsAnafPAJ5SEACeLcaWdhFq0bwAnw8AnrFAn0GAnztR/1IemAhACgSSVVKWBIUSskC0P4C0MlLJAOITAOH40TCkS8C8p5dAAMDq0vLTCoiAMxNSU2sAos8AorVvhgEGkBkArQCjjQCjlk9lH4CjtYCjll1UbFTMgdS0VSCApP4ApMJAOYAGVUbVaxVzQMsGCmSgzLeeGNFODYCl5wC769YHqUAViIClowClnmZAKZZqVoGfkoAOAKWsgKWS1xBXM4CmcgCmWFcx10EFgKcmDm/OpoCnBMCn5gCnrWHABoMLicMAp3uAp6PALI6YTFh7AKe0AKgawGmAp6cHAKeS6JjxWQkIigCJ6wCJnsCoPgCoEnUAqYsAqXLAqf8AHoCp+9oeWiuAABGahlqzgKs4AKsqwKtZAKs/wJXGgJV2QKx3tQDH0tslAKyugoCsuUUbN1tYG1FXAMlygK2WTg8bo0DKUICuFsCuUQSArkndHAzcN4CvRYDLa8DMg4CvoVx/wMzbgK+F3Mfc0wCw8gCwwFzf3RIMkJ03QM8pAM8lwM9vALFeQLGRALGDYYCyGZOAshBAslMAskrAmSaAt3PeHZeeKt5IkvNAxigZv8CYfEZ8JUhewhej164DgLPaALPaSxIUM/wEJwAw6oCz3ABJucDTg9+SAIC3CQC24cC0kwDUlkDU1wA/gNViYCGPMgT6l1CcoLLg4oC2sQC2duEDYRGpzkDhqIALANkC4ZuVvYAUgLfYgLetXB0AuIs7REB8y0kAfSYAfLPhALr8ALpbXYC6vYC6uEA9kQBtgLuhgLrmZanlwAC7jwDhd2YdnDdcZ4C8wAAZgOOE5mQAvcQA5FrA5KEAveVAvnWAvhjmhmaqLg0mxsDnYAC/vcBGAA2nxmfsAMFigOmZwOm1gDOwgMGZ6GFogIGAwxGAQwBHAdqBl62ZAIAuARovA6IHrAKABRyNgAgAzASSgOGfAFgJB4AjOwAHgDmoAScjgi0BhygwgCoBRK86h4+PxZ5BWk4P0EsQiJCtV9yEl+9AJbGBTMAkE0am7o7J2AzErrQDjAYxxiKyfcFWAVZBVgFWQVkBVkFWAVZBVgFWQVYBVkFWAVZRxYI2IZoAwMDCmVe6iwEygOyBjC8vAC8BKi8AOhBKhazBUc+aj5xQkBCt192OF/pAFgSM6wAjP/MbMv9puhGez4nJAUsFyg3Nn5u32vB8hnDLGoBbNdvMRgFYAVrycLJuQjQSlwBAQEKfV5+jL8AND+CAAQW0gbmriQGAIzEDAMCDgDlZh4+JSBLQrJCvUI5JF8oYDcoOSQJwj4KRT9EPnk+gj5xPnICikK9SkM8X8xPUGtOCy1sVTBrDG8gX+E0OxwJaJwKYyQsPR4nQqxCvSzMAsv9X8oPIC8KCQoAACN+nt9rOy5LGMmsya0JZsLMzQphQWAP5hCkEgCTjh5GQiYbqm06zjkKND9EPnFCQBwICx5NSG1cLS5a4rwTCn7uHixCQBxeCUsKDzRVREM4BTtEnC0KghwuQkAb9glUIyQZMTIBBo9i8F8KcmTKYAxgLiRvAERgGjoDHB9gtAcDbBFmT2BOEgIAZOhgFmCWYH5gtGBMYJJpFhgGtg/cVqq8WwtDF6wBvCzOwgMgFgEdBB8BegJtMDGWU4EBiwq5SBsA5SR0jwvLDqdN6wGcAoidUAVBYAD4AD4LATUXWHsMpg0lILuwSABQDTUAFhO4NVUC0wxLZhEcANlPBnYECx9bADIAtwKbKAsWcKwzOaAaAVwBhwn9A9ruEAarBksGugAey1aqWwq7YhOKCy1ADrwBvAEjA0hbKSkpIR8gIi0TJwciDY4AVQJvWJFKlgJvIA9ySAHUdRDPUiEaqrFN6wcSBU1gAPgAPgsBewAHJW0LiAymOTEuyLBXDgwAYL0MAGRKaFAiIhzAADIAtwKbKC08D88CkRh8ULxYyXRzjtilnA72mhU+G+0S2hIHDxwByAk7EJQGESwNNwwAPAC0zwEDAKUA4gCbizAAFQBcG8cvbXcrDsIRAzwlRNTiHR8MG34CfATCC6vxbQA4Oi4Opzkuz6IdB7wKABA7Ls8SGgB9rNsdD7wbSBzOoncfAT4qYB0C7KAJBE3z5R9mDL0M+wg9Cj8ABcELPgJMDbwIvQ09CT0KvS7PoisOvAaYAhwPjBriBBwLvBY8AKELPBC8BRihe90AO2wMPQACpwm9BRzR9QYFB2/LBnwAB7wSXBISvQECAOsCAAB1FVwHFswV/HAXvBg8AC68AuyovAAevAJWISuAAAG8AALkFT0VvCvso7zJqDwEAp8nTAACXADn3hm8CaVcD7/FAPUafAiiBQv/cQDfvKe8GNwavKOMeXMG/KmchAASvAcbDAADlABtvAcAC7ynPAIaPLsIopzLDvwHwak8AOF8L7dtvwNJAAPsABW8AAb8AAm8AGmMABq8AA68Axi8jmoV/AABXAAObAAuTB8ABrwAF7wIIgANSwC6vCcAA7wADpwq7ACyWwAcHAAbvAAB7AqiAAXHCxYV3AAHnABCvAEDAGm8AAt8AB28AAi8CaIABcsAbqAZ1gCSCCIABcsAATwAB9wAHZwIIgAGmwAJfAAbLABtHADmvIEACFwACDwAFLwAaPwJIgAGywDjjAAJPAuiDsX7YAAHPABunUBJAEgACrwFAAM8AAmuAzgABxwAGXwAAgym/AAKHAAKPAAJ/KfsBrwACRwAAwwAEDwBABQ8ABFsAA+MAA3sAA28ABkMBxYcABU8AG6cFrQBvAC7ABM8BABpLAsA4UwAAjwABFMAF3wFHAAG0QAYvB8BfClTADpGALAJBw4McwApK3EBpQYIXwJtJA0ACghwTG1gK4oggRVjLjcDogq1AALZABcC/ARvAXdzSFMVIgNQAhY/AS0GBHRHvnxTe0EAKgAyAvwAVAvcAHyRLQEsAHfmDhIzRwJLAFgGAAJRAQiLzQB5PAQhpgBbANcWAJZpOCCMAM5ssgDQ1RcJw3Z0HBlXHgrSAYmRrCNUVE5JEz3DivoAgB04QSos4RKYUABzASosMSlDGhADMVYE+MbvAExm3QBrAnICQBF7Osh4LzXWBhETIAUVCK6v/xPNACYAAQIbAIYAiQCONgDjALQA1QCdPQC7AKsApgChAOcAnwDTAJwA4AEBAPwAwAB6AFsAywDNAPwA1wDrAIkAogEqAOMA2ADVBAIIKzTT09PTtb/bzM/NQjEWAUsBVS5GAVMBYgFhAVQBRUpCRGcMAUwUBgkEMzcMBwAgDSQmKCs3OTk8PDw9Pg0/HVBQUFBSUlFSKFNUVlVVHFxgYF9hYCNlZ29ucXFxcXFxc3Nzc3Nzc3Nzc3N1dXZ1dFsAPesAQgCTAHEAKwBf8QCHAFAAUAAwAm/oAIT+8fEAXQCM6wCYAEgAWwBd+PipAH4AfgBiAE8AqgAdAK8AfAI5AjwA9QDgAPcA9wDhAPgA4gDiAOEA3wAoAnQBSgE5ATcBTQE3ATcBNwEyATEBMQExARUBURAAKgkBAEwYCxcEFhcPAIcAjwCfAEoAYxkCKgBvAGgAkAMOAyArAxpCP0gqAIoCSADAAlACnQC5Ao8CjwKPAo8CjwKPAoQCjwKPAo8CjwKPAo8CjgKOApECmQKQAo8CjwKNAo0CjQKNAosCjgJuAc0CkAKYAo8CjwKOF3oMAPcGA5gCWgIzGAFNETYC2xILLBQBRzgUTpIBdKU9AWJaAP4DOkgA/wCSKh4ZkGsAKmEAagAvAIoDlcyM8K+FWwa7LA/DEgKe1nUrCwQkWwGzAN5/gYB/gX+Cg4N/hIeFf4aJh4GIg4mDin+Lf4x/jYuOf49/kIORf5J/k3+Uf5WElomXg5h/AIMloQCEBDwEOQQ7BD4EPARCBD8EOgRABEIEQQQ9BD8EQgCkA4gAylIA0AINAPdbAPcBGgD3APUA9QD2APXVhSRmvwD3APUA9QD2APUdAIpbAPcAigEaAPcAigLtAPcAitWFJGa/HQD4WwEaAPcA9wD1APUA9gD1APgA9QD1APYA9dWFJGa/HQCKWwEaAPcAigD3AIoC7QD3AIrVhSRmvx0CRAE3AksBOgJMwgOfAu0Dn9WFJGa/HQCKWwEaA58AigOfAIoC7QOfAIrVhSRmvx0EMQCKBDIAigeOMm4hLQCKAT9vBCQA/gDHWwMAVVv/FDMDAIoDPtkASgMAigMAl2dBtv/TrfLzakaPh3aztmIuZQrR3ER2n5Yo+qNR2jK/aP/V04UK1njIJXLgkab9PjOxyJDVbIN3R/FZLoZVl2kYFQIZ7V6LpRqGDt9OdDohnJKp5yX/HLj0voPpLrneDaN11t5W3sSM4ALscgSw8fyWLVkKa/cNcQmjYOgTLZUgOLi2F05g4TR0RfgZ4PBdntxdV3qvdxQt8DeaMMgjJMgwUxYN3tUNpUNx21AvwADDAIa0+raTWaoBXmShAl5AThpMi282o+WzOKMlxjHj7a+DI6AM6VI9w+xyh3Eyg/1XvPmbqjeg2MGXugHt8wW03DQMRTd5iqqOhjLvyOCcKtViGwAHVLyl86KqvxVX7MxSW8HLq6KCrLpB8SspAOHO9IuOwCh9poLoMEha9CHCxlRAXJNDobducWjqhFHqCkzjTM2V9CHslwq4iU19IxqhIFZMve15lDTiMVZIPdADXGxTqzSTv0dDWyk1ht430yvaYCy9qY0MQ3cC5c1uw4mHcTGkMHTAGC99TkNXFAiLQgw9ZWhwKJjGCe+J5FIaMpYhhyUnEgfrF3zEtzn40DdgCIJUJfZ0mo3eXsDwneJ8AYCr7Vx2eHFnt2H6ZEyAHs9JoQ4Lzh5zBoGOGwAz37NOPuqSNmZf51hBEovtpm2T1wI79OBWDyvCFYkONqAKGVYgIL0F+uxTcMLSPtFbiNDbBPFgip8MGDmLLHbSyGXdCMO6f7teiW9EEmorZ+75KzanZwvUySgjoUQBTfHlOIerJs6Y9wLlgDw18AB1ne0tZRNgGjcrqHbtubSUooEpy4hWpDzTSrmvqw0H9AoXQLolMt9eOM+l9RitBB1OBnrdC1XL4yLFyXqZSgZhv7FnnDEXLUeffb4nVDqYTLY6X7gHVaK4ZZlepja2Oe6OhLDI/Ve5SQTCmJdH3HJeb14cw99XsBQAlDy5s5kil2sGezZA3tFok2IsNja7QuFgM30Hff3NGSsSVFYZLOcTBOvlPx8vLhjJrSI7xrNMA/BOzpBIJrdR1+v+zw4RZ7ry6aq4/tFfvPQxQCPDsXlcRvIZYl+E5g3kJ+zLMZon0yElBvEOQTh6SaAdIO6BwdqJqfvgU+e8Y65FQhdiHkZMVt9/39N2jGd26J6cNjq8cQIyp6RonRPgVn2fl89uRDcQ27GacaN0MPrcNyRlbUWelKfDfyrNVVGBG5sjd3jXzTx06ywyzuWn5jbvEfPPCTbpClkgEu9oPLKICxU5HuDe3jA1XnvU85IYYhaEtOU1YVWYhEFsa4/TQj3rHdsU2da2eVbF8YjSI0m619/8bLMZu3xildwqM7zf1cjn4Whx0PSYXcY5bR7wEQfGC7CTOXwZdmsdTO8q3uGm7Rh/RfCWwpzBHCAaVfjxgibL5vUeL0pH6bzDmI9yCXKC/okkmbc28OJvI87L/bjFzpq0DHepw4kT1Od+fL7cyuFaRgfaUWB2++TCFvz11J0leEtrGkpccfX9z2LY39sph4PBHCjNOOkd0ybUm+ZzS8GkFbqMpq8uiX2yHpa0jllTLfGTDBMYR6FT5FWLLDPMkYxt1Q0eyMvxJWztDjy0m6VvZPvamrFXjHmPpU6WxrZqH6WW//I37RwvqPQhPz8I3RPuXAk1C94ZprQWm9iGM/KgiGDO6SV9sjp+Jmk4TBajMNJ5zzWZ1k1jrteQQBp9C2dOvmbIeeEME8y573Q8TgGe+ZCzutM45gYLBzYm2LNvgq2kebAbMpHRDSyh6dQ27GbsAAdCqQVVXWC1C+zpwBM2Lr4eqtobmmu1vJEDlIQR1iN8CUWpztq50z7FFQBn3SKViX6wSqzVQCoYvAjByjeSa+h1PRnYWvBinTDB9cHt4eqDsPS4jcD3FwXJKT0RQsl8EvslI2SFaz2OtmYLFV8FwgvWroZ3fKmh7btewX9tfL2upXsrsqpLJzpzNGyNlnuZyetg7DIOxQTMBR7dqlrTlZ6FWi1g4j1NSjA2j1Yd7fzTH6k9LxCyUCneAKYCU581bnvKih6KJTeTeCX4Zhme/QIz7w2o+AdSgtLAkdrLS9nfweYEqrMLsrGGSWXtgWamAWp6+x6GM/Z8jNw3BqPNQ39hrzYLECn3tPvh/LqKbRSCiDGauDKBBj/kGbpnM1Bb/my8hv4NWStclkwjfl57y4oNDgw1JAG9VOti3QVVoSziMEsSdfEjaCPIDb7SgpLXykQsM+nbqbt97I0mIlzWv0uqFobLMAq8Rd9pszUBKxFhBPwOjf//gVOz2r7URJ2OnpviCXv9iz3a4X/YLBYbXoYwxBv/Kq0a5s4utQHzoTerJ7PmFW/no/ZAsid/hRIV82tD+Qabh5F1ssIM8Ri3chu0PuPD3sSJRMjDoxLAbwUbroiPAz/V52e8s3DIixxlO7OrvhMj3qfzA0kKxzwicr5wJmZwJxTXgrwYsqhRvpgC2Nfdyd+TYYxJSZgk+gk2g9KyHSlwQVAyPtWWgvVGyVBqsU2LpDlLNosSAtolC1uBKt5pQZLhAxTjeGCWIC/HVpagc5rRwkgpCHKEsjA8d+scp8aiMewwQBhp5dYTV5t/Nvl+HbDMu8F3S0psPyZb1bSnqlHPFUnMQeQqSqwDBT23fJO9gO3aVaa1icrXU0PKwlMM5K+iL3ATcVq2fFWKk0irCTF4LDVDG4gUpkyplq6efcZS+WDR1woApjD18x+2JQR9oOXzuA7uy4b+/91WsJd/tSd1QcAH8PVPXApieA37B7YXPhDPH1azP3PKR+HfHmOoDYLeuKsIi/ssSsdYs62qJo14Hw1P2N/6zpr8F3FTWmJ4ysAVcl84Iv/tl///Z8FaAWbBQbyMNDZjrZ2JwdRjtd1jOeNumSodFtr4/Zf45iRJf/8HSW+KIB/+GlKu8Rv1BPLr/4duoL+kFPRqrstEr41gfJupoJRf4hcYDWX93FOcfEBiIivxtjtV8g7mvOReiamYWKE7vfPbv3v2L9Kwq3cIDFGLyhyfOGuf/9vA5muH6Pjg7B4SUj2ydDXra9fSBI+DrsNHA6l51wfHssJb+11TfNk7B8OleUe3Y+ZmHboMFHdv7FFP2cfISFyeAQR0sk/Xv62HBTdW4HmnGSLFk/cqyWVVFJkdIIa+4hos3JRHcqLoRKM5h2Qtk1RZtzISMtlXTfTqIc77YsCCgQD0r61jtxskCctwJOtjE/pL8wC4LBD4AZFjh2wzzFCrT/PNqW0/DeBbkfMfzVm9yy06WiF+1mTdNNEAytVtohBKg3brWd2VQa+aF+cQ0mW5CvbwOlWCT07liX226PjiVLwFCRs/Ax2/u+ZNPjrNFIWIPf5GjHyUKp60OeXe9F01f7IaPf/SDTvyDAf7LSWWejtiZcsqtWZjrdn6A2MqBwnSeKhrZOlUMmgMionmiCIvXqKZfmhGZ1MwD3uMF4n9KJcfWLA3cL5pq48tm5NDYNh3SS/TKUtmFSlQR89MR4+kxcqJgpGbhm9gXneDELkyqAN5nitmIzTscKeJRXqd64RiaOALR2d295NWwbjHRNG2AU5oR9OS2oJg/5CY6BFPc1JvD2Mxdhp2/MZdI8dLePxiP4KRIp8VXmqfg+jqd/RNG7GNuq1U2SiI4735Bdc0MVFx6mH5UOWEa5HuhYykd6t4M1gYLVS8m1B+9bUqi5DziQq7qT8d94cxB6AB4WqMCOF/zPPtRSZUUaMSsvHOWxGASufywTX8ogy6HgUf9p+Z30wUEosl8qgmwm6o2AV6nO9HKQjRHpN6SUegI5pvR61RLnUJ1lqCtmfcsRQutEizVpAaPXN7xMp5UQ5OSZK6tniCK9CpyMd7LjR6+MxfoMEDPpWdf2p2m5N3KO4QMxf+V7vGdYjemQczQ+m2MGIkFNYDMf0Yop2eSx81sP36WHUczqEhKysp2iJSYAvfgJjinKwToPvRKb+HBi+7cJ96S5ngfLOXaHAFRLkulo4TnXTFO51gX0TCCo4ZUHdbpdgkMEwUZAPjh6M+hA8DzycbtxAgH3uD6i0nN1aTiIuQ4BYCE9dEHHwAmINU+4YEWx4EC3OZwFGfYZMPLScVlb+BAAJeARUh+gdWA3/gRqCrf1jecgqeFf1MdzrrP4SVlGm5mMihSP+zYYksAB7O+SBPwNQqSNMiLnkviY/klwgcRmvqtCqeWeA0gjuir4CMZqmw/ntP6M+l0pdN8/P9xI53aP7x/zavJbbKOz8VzO/nXxIr1tjparMnqd6iWdByHKw4lF4p/u57Yv07WeZPDnRl7wgmDVZZ44fQsjdYO/gmXQ+940PRGst8UMQApFC4OOV22e4N+lVOPyFLAOj4t8R3PFw/FjbSWy0ELuAFReNkee8ORcBOT2NPDcs7OfpUmzvn/F9Czk9o9naMyVYy/j8I5qVFmQDFcptBp65J/+sJA3w/j6y/eqUkKxTsf0CZjtNdRSBEmJ2tmfgmJbqpcsSagk+Ul9qdyV+NnqFBIJZFCB1XwPvWGDBOjVUmpWGHsWA5uDuMgLUNKZ4vlq5qfzY1LnRhCc/mh5/EX+hzuGdDy5aYYx4BAdwTTeZHcZpl3X0YyuxZFWNE6wFNppYs3LcFJePOyfKZ8KYb7dmRyvDOcORLPH0sytC6mH1US3JVj6paYM1GEr+CUmyHRnabHPqLlh6Kl0/BWd3ebziDfvpRQpPoR7N+LkUeYWtQ6Rn5v5+NtNeBPs2+DKDlzEVR5aYbTVPrZekJsZ9UC9qtVcP99thVIt1GREnN8zXP8mBfzS+wKYym8fcW6KqrE702Zco+hFQAEIR7qimo7dd7wO8B7R+QZPTuCWm1UAwblDTyURSbd85P4Pz+wBpQyGPeEpsEvxxIZkKsyfSOUcfE3UqzMFwZKYijb7sOkzpou+tC4bPXey5GI1GUAg9c3vLwIwAhcdPHRsYvpAfzkZHWY20vWxxJO0lvKfj6sG2g/pJ1vd/X2EBZkyEjLN4nUZOpOO7MewyHCrxQK8d5aF7rCeQlFX+XksK6l6z971BPuJqwdjj68ULOj9ZTDdOLopMdOLL0PFSS792SXE/EC9EDnIXZGYhr52aQb+9b2zEdBSnpkxAdBUkwJDqGCpZk/HkRidjdp0zKv/Cm52EenmfeKX6HkLUJgMbTTxxIZkIeL/6xuAaAAHbA7mONVduTHNX/UJj1nJEaI7f3HlUyiqKn7VfBE+bdb4HWln1HPJx001Ulq1tOxFf8WZEARvq5Da1+pE7fPVxLntGACz3nkoLsKcPdUqdCwwiyWkmXTd5+bv3j7HaReRt3ESn783Ew3SWsvkEjKtbocNksbrLmV+GVZn1+Uneo35MT1/4r8fngQX5/ptORfgmWfF6KSB/ssJmUSijXxQqUpzkANEkSkYgYj560OOjJr6uqckFuO15TRNgABEwNDjus1V3q2huLPYERMCLXUNmJJpbMrUQsSO7Qnxta55TvPWL6gWmMOvFknqETzqzFVO8SVkovEdYatypLGmDy9VWfgAc0KyIChiOhbd7UlbAeVLPZyEDp4POXKBwN/KP5pT6Cyqs6yaI00vXMn1ubk9OWT9Q/O2t/C25qlnO/zO0xcBzpMBCAB8vsdsh3U8fnPX1XlPEWfaYJxKVaTUgfCESWl4CCkIyjE6iQ5JFcwU6S4/IH0/Agacp8d5Gzq2+GzPnJ7+sqk40mfFQpKrDbAKwLlr3ONEati2k/ycLMSUu7V/7BBkDlNyXoN9tvqXCbbMc4SSQXgC/DBUY9QjtrCtQ+susEomCq8xcNJNNMWCH31GtlTw2BdCXkJBjT+/QNWlBWwQ5SWCh1LdQ99QVii/DyTxjSR6rmdap3l3L3aiplQpPYlrzNm9er88fXd2+ao+YdUNjtqmxiVxmyYPzJxl67OokDcTezEGqldkGgPbRdXA+fGcuZVkembZByo7J1dMnkGNjwwCny+FNcVcWvWYL9mg8oF7jACVWI3bA64EXpdM8bSIEVIAs5JJH+LHXgnCsgcMGPZyAAVBncvbLiexzg9YozcytjPXVlAbQAC7Tc4S0C8QN4LlAGjj4pQAVWrwkaDoUYGxxvkCWKRRHkdzJB5zpREleBDL1oDKEvAqmkDibVC4kTqF89YO6laUjgtJPebBfzr16tg4t10GmN1sJ5vezk2sUOq8blCn5mPZyT3ltaDcddKupQjqusNM9wtFVD0ABzv17fZDn7GPT1nkCtdcgYejcK1qOcTGtPxnCX1rErEjVWCnEJv5HaOAUjgpiKQjUKkQi64D5g2COgwas8FcgIl0Pw95H9dWxE3QG0VbMNffh6BPlAojLDf4es2/5Xfq7hw5NGcON2g8Qsy2UQm94KddKyy3kdJxWgpNaEc15xcylbLC3vnT26u8qS90qc2MU8LdOJc5VPF5KnSpXIhnj1eJJ/jszjZ01oR6JDFJRoeTPO/wh4IPFbdG9KljuSzeuI92p8JF/bpgDE8wG86/W2EBKgPrmzdLijxssQn8mM44ky/KLGOJcrSwXIpZa/Z3v7W6HCRk7ewds99LTsUW1LbeJytw8Q/BFZVZyfO9BUHOCe2suuEkO8DU4fLX0IQSQ2TdOkKXDtPf3sNV9tYhYFueuPRhfQlEEy+aYM/MCz7diDNmFSswYYlZZPmKr2Q5AxLsSVEqqBtn6hVl1BCFOFExnqnIsmyY/NA8jXnDaNzr7Zv3hu+I1Mf/PJjk0gALN2G8ABzdf9FNvWHvZHhv6xIoDCXf964MxG92vGZtx/LYU5PeZqgly8tT5tGeQGeJzMMsJc5p+a5Rn2PtEhiRzo/5Owjy1n0Lzx3ev8GHQmeWb8vagG6O5Qk5nrZuQTiKODI4UqL0LLAusS2Ve7j1Ivdxquu1BR9Rc4QkOiUPwQXJv6du2E8i5pDhVoQpUhyMWGUT2O2YODIhjAfI71gxep5r5zAY7GBUZpy51hAw0pcCCrhOmU8Wp6ujQTdZQsCjtq6SHX8QAMNiPCIIkoxhHEZPgsBcOlP4aErJZPhF7qvx6gHrn8hEwPwYbx8YmT/n7lbcmTip1v8kgsrIjFTAlvLY4Nuil0KDmgz3svYs0ZJ3O3Is/vSx4xpxF1e2VAtZE8dJxGYEIhCSuPvCjP54l/NSNDnwlKvAW8mG+AQkgp7a87Igh26uKMFGD0PoPHTSvoWxiHuk+su8XkQiHIjeYKl/RdcOHpxhQH3zHCNE3aARm83Bl6zGxU/vMltlVPQhubcqhW4RYkl6uXk5JdP/QpzaKFpw2M8zvysv2qj7xaQECuu2akM0Cssj/uB9+wDR7uA6XOnLNaoczalHoMj33eiiu+DRaFsUmlmUZuh9bjDY4INMNSSAivSh03uJvny4Gj+D+neudoa7iJi7c4VFlZ/J5gUR82308zSNAt/ZroBXDWw0fV3eVPAn3aX0mtJabF6RsUZmL+Ehn+wn51/4QipMjD+6y64t7bjL6bjENan2prQ4h7++hBJ9NXvX8CUocJqMC937IasLzm5K0qwXeFMAimMHkEIQIQI2LrQ9sLBfXuyp66zWvlsh74GPv7Xpabj993pRNNDuFud5oIcn/92isbADXdpRPbjmbCNOrwRbxGZx2XmYNGMiV5kjF4IKyxCBvKier9U4uVoheCdmk83rp5G0PihAm2fAtczI4b9BWqX+nrZTrJX5kSwQddi93NQrXG+Cl3eBGNkM77VBsMpEolhXex1MVvMkZN9fG59GGbciH11FEXaY1MxrArovaSjE/lUUqBg2cZBNmiWbvzCHCPJ4RVGFK2dTbObM1m+gJyEX53fa7u3+TZpm74mNEzWbkVL4vjNwfL9uzRCu1cgbrNx5Yv5dDruNrIOgwIk+UZWwJfdbu/WHul6PMmRflVCIzd7B37Pgm/Up/NuCiQW7RXyafevN3AL6ycciCc4ZPlTRzEu+aURGlUBOJbUEsheX7PPyrrhdUt5JAG12EEEZpY/N3Vhbl5uLAfT0CbC2XmpnryFkxZmBTs5prvEeuf0bn73i3O82WTiQtJWEPLsBXnQmdnKhB06NbbhLtlTZYJMxDMJpFeajSNRDB2v61BMUHqXggUwRJ19m6p5zl51v11q34T74lTXdJURuV6+bg2D6qpfGnLy7KGLuLZngobM4pIouz4+n0/UzFKxDgLM4h+fUwKZozQ9UGrHjcif51Ruonz7oIVZ56xWtZS8z7u5zay6J2LD4gCYh2RXoBRLDKsUlZ80R8kmoxlJiL8aZCy2wCAonnucFxCLT1HKoMhbPKt34D97EXPPh0joO93iJVF1Uruew61Qoy3ZUVNX9uIJDt9AQWKLLo+mSzmTibyLHq0D6hhzpvgUgI6ekyVEL3FD+Fi5R3A8MRHPXspN1VyKkfRlC+OGiNgPC4NREZpFETgVmdXrQ2TxChuS3aY+Ndc7CiYv5+CmzfiqeZrWIQJW/C4RvjbGUoJFf1K6ZdR2xL/bG4kVq1+I4jQWX+26YUijpp+lpN7o5c6ZodXJCF56UkFGsqz44sIg8jrdWvbjRCxi2Bk0iyM3a7ecAV93zB6h1Ei38c0s6+8nrbkopArccGP8vntQe1bFeEh2nJIFOHX/k3/UHb5PtKGpnzbkmnRETMX+9X/QduLZWw/feklW/kH/JnzToJe9Kgu9Hct1UGbH5BPCLo4OOtQnZonW0xnyCcdtKyPQ/sbLiSTYJdSx4sJqWLMnfn6fIqPB3WAgk00J+fCOkomPHqtS67pf0mFmKoItYZUlJu6BihSZ8qve8+/X+LX1MhQXF95AshfUleCtmdn6l6QFXzLg2sgLn1oyVFuZecv7fzsIHzoRlAGp0gwYDOn1S4qabWvB5xUaE+Svw4KmjWtxdnuQbI32dw87D4N95u8qQRJTSQg0wLxOLkxSrPMLEn1UIhNKjAa9VLs3WLaXGrtCIt8bKY2AQP/ZdyRU6zT/E8qP2ltyBE2CCZPgWgEYDoJJO4n92y61ylNaSFXKohJhLjkfvYWm592539sIpmBNLlDo1bExFBfmHJJ0lFEiC/fj8v42OoMC9Mo3whIoWvyHfq6Uacqq55mzFf/EGC+NP/gHjhd6urc6R0hES27VXux7UY8CGKPohplWIZtTrFSaPWslCWy78E22Pw8fvReSUZx/txqLtHrFqg1DY/Eus6Iq1heZdrdcqE0/c971Bz1HW/XNXHsXpUIbI4kHdOfCc6T5zHZzvzQJB0ggMFL6IGPAilU9bj/ASdPk6fNvNtZqPuwEDhMBtBnhCexo6D6VAGIOPvJPPV523Y8R8a9vCqZbswSZKzOT1291BsUbmUWehtbb1fdRX9hiJKXvwr1QX6GjnZMgyMvnwOo2Dr24amr7FqEAbVeJAjRNOceM2EQ1Mna9fInqPJ5mh5X8CzT1aDOv08An0blz0fF5Gq4mS2cwq5glwIOlY5nznE8X4j/UdZ3FJsVIXte1JH0A7iibuPfazStM5O/Vo3KXIpXBeGORV0M9XDXFvsYZUHGvFCUubWzTw248EHE0cpQM2zNg6rjavreq3NHCAWsoZ7wvVy7l5gvtKRmIj1MnvfWEm0yFnGcuOq192350a5WefpfKCcX3Sn+AgHU+qnpstNtddbdVebagJU390lq9ko4aI9rqdaWXYG8tv5O/ZQHSqDRYHC6zfH10l5z++opso7aOSaIczlQ13iAzXvLdEu0V7kwNUZ1c8Y8aq7SeIEe5p902FlNkW8DnwHyueHchbK8vVFJfmr9mz7P8nUSccl1ULaoWMRSI1ls32kvlK0h46h3J25Yd9AzfcJbp9qYF/SEt3H5j69mMdcsNxZcAzT/A89ov3tglTX54y/EwjMfuoDoxPwLJDm5I7q6F9Kp469yNy1zSxz0N4HbRRBj9xFFuogvBspv7DXUNIsGxTINEQfmctb42XImWAODgARNo7dfcTqFKq6aTfivmvunLmzP9f8yLsJvXD3JbcPcDGNriMAcjzeDTNr65t8YB5tsnFDFLa0Uwmd2OvUdkLMX9TsAUYUfooSv47sw5J88j7CpahRjjO3/UhOXjTS39W5YZAel2KTbQd1h7INOw9P23GW7GDAe4agIUFHP48MZr7ubq0efFmmtwYMyk7D0r1oeG/CGOODgb9Ur+JMHxkwzPbtCX2ZnENQuI0RN5SyTIZuoY4XS9Rd/tPe3vNAZGSHM/YYwqs9xkkENx0O+eC2YVW1cwOJ3ckE890nbQeHLKlW15L0P0W2VliyYrfNr0nrIYddoRyGaCtj4OYd2MT7ebApqZOAQIaSHJM4mphhfjNjtnjg6YRyx9qM2FT3xOiYIMqXPFWdzhSgFF8ItocqVV09CmIoO8k6U/oJB7++wSX/YksxfPXHyjSgAGZOj1aKEq9fSvXBqtp2wu8/FxEf5AxapAD06pPGuLVUYLdgEzHR8wqRGYEwiUO9MyYbgswstuLYhwYFpSVKOdzAihZ9LuHtD598EGhINU9xc9xhL+QgTLAstmPIvvm2xyRw/WTUPXkP3ZHu6GyPmj5xFH9/QGpkglKXRVUBgVmLOJx8uZO2AstxQYocZH2JhORlxawj66BAXUEs7K/gPxINIRAFyK3WLuyq9oBTF9wEbnmCot82WjIg7CPNwYK3KrZMrKAz5yFszg4wCVLJVnIL8+OYA0xRDH8cHQjQUiQ2i1mr/be32k/3Xej9sdf3iuGvZHyLFSJvPSqz/wltnxumTJYKZsrWXtx/Rmu39jjV9lFaJttfFn57/No2h/unsJmMHbrnZ8csxkp5HQ4xR1s0HH+t3Iz82a3iQWTUDGq/+l2W3TUYLE8zNdL8Y+5oXaIH/Y2UUcX67cXeN4WvENZjz4+8q7vjhowOI3rSjFhGZ6KzwmU7+5nFV+kGWAZ5z2UWvzq0TK0pk1hPwAN4jbw//1CApRvIaIjhSGhioY6TUmsToek9cF9XjJdHvLPcyyCV3lbR5Jiz/ts46ay2F820VjTXvllElwrGzKcNSyvQlWDXdwrUINXmHorAM3fE19ngLZmgeUaCJLsSITf2VcfAOuWwX7mTPdP8Zb/04KqRniufCpwnDUk7sP0RX6cud/sanFMagnzKInSRVey0YzlVSOtA/AjrofmSH6RYbJQ8b4NDeTkIGc6247+Mnbez/qhJ9GAv9fGNFercPnnrf285Qgs+UqThLRgflcAKFuqWhLzZaR4QqvSwa3xe0LPkqj9xJWub195r7NrrR0e78FR+0mRBNMPsraqZctAUVAJfYKehTDV1MGGQSeDsOK9J3sbUuKRIS/WilX/64CBms9jCZocBlsBSZaIAjWm/SUZ8daWL2a/cJFyUOFqE3Epc2RWbtjNyPwOGpWtzu32kUooUqsJud7IV4E8rstUBXM7tGEtBx99x60g1duhyvxeKJSl8s5E34HTMmADT0836aEdg5Dv9rVyCz8i2REOmiz6wtIVFN0HsjAoN37SrY0bV1Ms8CRUILhvZvvRaDzoVCaSI0u8EPuTe4b7OPowgRGODl22UBBmHSTUY8e4DyL+Bc7bngo+2T8HtNvzyATSL5iJZgFPKpmUyZv54vVL90+/RQGATUmNKnrIvcJMYON9fl83naW5sf6hRkbbTC9RUEE6XADwjgA46wWfUQ+QWZl0J4PVTWAln/YfAz/SV3q3J9+yCYDleruoN5uoc/wT2f4YONGTb6zTGq3V+3JqzmCOjwebKln+fExVLN7sqtqfMnsKVXWbb2Ai5m3D/fCTgX7oKYzTZvj+m28XnDqPbXuP4MyWdmPezcesdrh7rCzA7BWdObiuyDEKjjzBbQ0qnuwjliz+b+j7aPMKlkXyIznV3tGzAfYwIbzGGt098oh4eq3ruDjdgHtjxfFCjHrjjRbHajoz/YOY4raojPFQ910GIlBV7hq47UDgpyajBxQUmD8NctiLV1rTSLAEsQDLTeRKcmPBMVMFF0SPBBhZ5oXoxtD3lMhuAQXmA+57OcciczVW9e9zwSIAHS+FJmvfXMJGF1dMBsIUMaPjvgaVqUc3p32qVCMQYFEiRLzlVSOGMCmv/HJIxAHe3mL/XnoZ1IkWLeRZfgyByjnDbbeRK5KL7bYHSVJZ9UFq+yCiNKeRUaYjgbC3hVUvfJAhy/QNl/JqLKVvGMk9ZcfyGidNeo/VTxK9vUpodzfQI9Z2eAre4nmrkzgxKSnT5IJ1D69oHuUS5hp7pK9IAWuNrAOtOH0mAuwCrY8mXAtVXUeaNK3OXr6PRvmWg4VQqFSy+a1GZfFYgdsJELG8N0kvqmzvwZ02Plf5fH9QTy6br0oY/IDsEA+GBf9pEVWCIuBCjsup3LDSDqI+5+0IKSUFr7A96A2f0FbcU9fqljdqvsd8sG55KcKloHIFZem2Wb6pCLXybnVSB0sjCXzdS8IKvE");let tF=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function tH(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function tq(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let r=[];for(let n=0;n>24&255}function tG(e){return 16777215&e}let tV=new Map(tR(tz).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),tW=new Set(tM(tz)),tK=new Map,tQ=new Map;for(let[e,t]of tk(tz)){if(!tW.has(e)&&2==t.length){let[r,n]=t,i=tQ.get(r);i||(i=new Map,tQ.set(r,i)),i.set(n,e)}tK.set(e,t.reverse())}function tY(e){return e>=44032&&e<55204}function tJ(e){let t=[],r=[],n=!1;function i(e){let r=tV.get(e);r&&(n=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(tY(n)){let e=n-44032,t=e/588|0,r=e%588/28|0,o=e%28;i(4352+t),i(4449+r),o>0&&i(4519+o)}else{let e=tK.get(n);e?r.push(...e):i(n)}if(!r.length)break;n=r.pop()}if(n&&t.length>1){let e=t$(t[0]);for(let r=1;r0&&i>=e)0==e?(t.push(n,...r),r.length=0,n=a):r.push(a),i=e;else{let o=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(tY(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let r=tQ.get(e);return r&&(r=r.get(t))?r:-1}}(n,a);o>=0?n=o:0==i&&0==e?(t.push(n),n=a):(r.push(a),i=e)}}return n>=0&&t.push(n,...r),t}(tJ(e))}function tX(){return new Set(tM(tL))}let t0=new Map(tk(tL)),t1=tX(),t2=tX(),t6=new Set(tM(tL).map(function(e){return this[e]},[...t2])),t5=tX();tX();let t8=tR(tL);function t3(){return new Set([tM(tL).map(e=>t8[e]),tM(tL)].flat(2))}let t4=tL(),t9=tN(e=>{let t=tN(tL).map(e=>e+96);if(t.length){let r=e>=t4;t[0]-=32,t=tq(t),r&&(t=`Restricted[${t}]`);let n=t3(),i=[...n,...t3()].sort((e,t)=>e-t);return{N:t,P:n,M:!tL(),R:r,V:new Set(i)}}}),t7=tX(),re=new Map;for(let{V:e,M:t}of([...t7,...tX()].sort((e,t)=>e-t).map((e,t,r)=>{let n=tL(),i=r[t]=n?r[t-n]:{V:[],M:new Map};i.V.push(e),t7.has(e)||re.set(e,i)}),new Set(re.values()))){let r=[];for(let t of e){let e=t9.filter(e=>e.V.has(t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),e.forEach(e=>n.G.add(e))}let n=r.flatMap(({G:e})=>[...e]);for(let{G:e,V:i}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of i)t.set(e,r)}}let rt=new Set,rr=new Set;for(let e of t9)for(let t of e.V)(rt.has(t)?rr:rt).add(t);for(let e of rt)re.has(e)||rr.has(e)||re.set(e,1);let rn=new Set([...rt,...tJ(rt).map(tG)]),ri=tM(tL),ro=function e(t){let r=tN(()=>{let t=tM(tL).map(e=>ri[e]);if(t.length)return e(t)}).sort((e,t)=>t.Q.size-e.Q.size),n=tL();return{B:r,V:n%3,F:1&(n=n/3|0),S:1&(n>>=1),C:2&n,Q:new Set(t)}}([]);class ra extends Array{get is_emoji(){return!0}}function rs(e,t=tH){var r;let n=[];r=e[0],t2.has(r)&&n.push("◌");let i=0,o=e.length;for(let r=0;r0;)if(95!==e[--t])throw Error("underscore allowed only at start")}function rd(e){return Error(`disallowed character: ${ru(e)}`)}function rf(e,t){let r=ru(t),n=t9.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function rh(e){return Error(`illegal placement: ${e}`)}function rp(e){var t;let r;return(r=0,t=e.split(".").map(e=>{let t,n=function(e){let t=[];for(let r=0,n=e.length;re.Q.has(s))))break;if(i.S)n=s;else if(i.C&&s===n)break;o.push(s),i.F&&(o.push(65039),a>0&&65039==e[a-1]&&a--),i.V&&(r=function(e,t){let r=ra.from(e);return 2==t.V&&r.splice(1,1),r}(o,i),t&&t.push(...e.slice(a).reverse()),e.length=a)}return r}(e);if(i)n.length&&(r.push(t(n)),n=[]),r.push(i);else{let t=e.pop();if(rn.has(t))n.push(t);else{let e=t0.get(t);if(e)n.push(...e);else if(!t1.has(t))throw rd(t)}}}return n.length&&r.push(t(n)),r}(n,tZ),o=r.length;if(o){let n=r[0],a=o>1||n.is_emoji;if(!a&&n.every(e=>e<128))t=n,rl(t),function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error("invalid label extension")}(t),e="ASCII";else if(a&&(i.emoji=!0,n=r.flatMap(e=>e.is_emoji?[]:e)),t=r.flatMap(e=>e.is_emoji?e.filter(e=>65039!=e):e),rl(t),n.length){if(t2.has(t[0]))throw rh("leading combining mark");for(let e=1;ee.V.has(r));if(!e.length){if(t===t9)throw rd(r);throw rf(t[0],r)}if(t=e,1==e.length)break}return t}(i);(function(e,t){let{V:r,M:n}=e;for(let n of t)if(!r.has(n))throw rf(e,n);if(n){let e=tJ(t).map(tG);for(let t=1,r=e.length;t4)throw Error(`non-spacing marks: too many ${rc(rs(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(a,n),function(e,t){let r;let n=[];for(let e of t){let t=re.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):[...n]).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>t.V.has(e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(a,i),e=a.N}else e="Emoji"}else throw Error("empty label");i.type=e}catch(e){i.error=e}return i.output=t,i})).map(({input:e,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==t.length?n:`Invalid label ${rc(rs(e))}: ${n}`)}return tq(n)}).join(".")}function rm(e,t,{batch:r={multicall:{wait:32}},pollingInterval:n=4e3,rank:i,retryCount:o,retryDelay:a,stallTimeout:s}={}){if(!e.length)throw Error("must have at least one chain");let u=[],c={},l={};for(let r of e){let e=!1;for(let n of t){let t=n(r);t&&(e=!0,u.some(({id:e})=>e===r.id)||(u=[...u,t.chain]),c[r.id]=[...c[r.id]||[],...t.rpcUrls.http],t.rpcUrls.webSocket&&(l[r.id]=[...l[r.id]||[],...t.rpcUrls.webSocket]))}if(!e)throw Error(`Could not find valid provider configuration for chain "${r.name}". - -You may need to add \`jsonRpcProvider\` to \`configureChains\` with the chain's RPC URLs. -Read more: https://wagmi.sh/core/providers/jsonRpc`)}return{chains:u,publicClient:({chainId:t})=>{let l=u.find(e=>e.id===t)??e[0],d=c[l.id];if(!d||!d[0])throw Error(`No providers configured for chain "${l.id}"`);let f=ts({batch:r,chain:l,transport:tl(d.map(e=>(function(e,t={}){let{batch:r,fetchOptions:n,key:i="http",name:o="HTTP JSON-RPC",retryDelay:a}=t;return({chain:s,retryCount:u,timeout:c})=>{let{batchSize:l=1e3,wait:d=0}="object"==typeof r?r:{},f=t.retryCount??u,h=c??t.timeout??1e4,p=e||s?.rpcUrls.default.http[0];if(!p)throw new tf;return(0,tc.q)({key:i,name:o,async request({method:t,params:i}){let o={method:t,params:i},{schedule:a}=(0,th.S)({id:`${e}`,wait:d,shouldSplitBatch:e=>e.length>l,fn:e=>tw.http(p,{body:e,fetchOptions:n,timeout:h})}),s=async e=>r?a(e):[await tw.http(p,{body:e,fetchOptions:n,timeout:h})],[{error:u,result:c}]=await s(o);if(u)throw new td.bs({body:o,error:u,url:p});return c},retryCount:f,retryDelay:a,timeout:h,type:"http"},{url:e})}})(e,{timeout:s})),{rank:i,retryCount:o,retryDelay:a}),pollingInterval:n});return Object.assign(f,{chains:u})},webSocketPublicClient:({chainId:t})=>{let c=u.find(e=>e.id===t)??e[0],d=l[c.id];if(!d||!d[0])return;let f=ts({batch:r,chain:c,transport:tl(d.map(e=>(function(e,t={}){let{key:r="webSocket",name:n="WebSocket JSON-RPC",retryDelay:i}=t;return({chain:o,retryCount:a,timeout:s})=>{let u=t.retryCount??a,c=s??t.timeout??1e4,l=e||o?.rpcUrls.default.webSocket?.[0];if(!l)throw new tf;return(0,tc.q)({key:r,name:n,async request({method:e,params:t}){let r={method:e,params:t},n=await tb(l),{error:i,result:o}=await tw.webSocketAsync(n,{body:r,timeout:c});if(i)throw new td.bs({body:r,error:i,url:l});return o},retryCount:u,retryDelay:i,timeout:c,type:"webSocket"},{getSocket:()=>tb(l),async subscribe({params:e,onData:t,onError:r}){let n=await tb(l),{result:i}=await new Promise((i,o)=>tw.webSocket(n,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){o(e.error),r?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>tw.webSocket(n,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}})(e,{timeout:s})),{rank:i,retryCount:o,retryDelay:a}),pollingInterval:n});return Object.assign(f,{chains:u})}}}var rg=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},ry=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},rb=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},rv=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}},rw=(e,{find:t,replace:r})=>e&&t(e)?r(e):"object"!=typeof e?e:Array.isArray(e)?e.map(e=>rw(e,{find:t,replace:r})):e instanceof Object?Object.entries(e).reduce((e,[n,i])=>({...e,[n]:rw(i,{find:t,replace:r})}),{}):e;function rE(e){let t=JSON.parse(e),r=rw(t,{find:e=>"string"==typeof e&&e.startsWith("#bigint."),replace:e=>BigInt(e.replace("#bigint.",""))});return r}function rA(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(tA.Bd[e])}function rP(e,t){return e.slice(0,t).join(".")||"."}function rx(e,t){let{length:r}=e;for(let n=0;n{let n="bigint"==typeof r?`#bigint.${r.toString()}`:r;return t?.(e,n)||n},n),r??void 0)}var rC={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function rI({deserialize:e=rE,key:t="wagmi",serialize:r=rO,storage:n}){return{...n,getItem:(r,i=null)=>{let o=n.getItem(`${t}.${r}`);try{return o?e(o):i}catch(e){return console.warn(e),i}},setItem:(e,i)=>{if(null===i)n.removeItem(`${t}.${e}`);else try{n.setItem(`${t}.${e}`,r(i))}catch(e){console.error(e)}},removeItem:e=>n.removeItem(`${t}.${e}`)}}var rT="store",rS=class{constructor({autoConnect:e=!1,connectors:t=[new u._],publicClient:r,storage:s=rI({storage:"undefined"!=typeof window?window.localStorage:rC}),logger:c={warn:console.warn},webSocketPublicClient:l}){let p;d(this,o),this.publicClients=new Map,this.webSocketPublicClients=new Map,d(this,n,void 0),d(this,i,void 0),this.args={autoConnect:e,connectors:t,logger:c,publicClient:r,storage:s,webSocketPublicClient:l};let m="disconnected";if(e)try{let e=s.getItem(rT),t=e?.state?.data;m=t?.account?"reconnecting":"connecting",p=t?.chain?.id}catch(e){}let g="function"==typeof t?t():t;g.forEach(e=>e.setStorage(s)),this.store=tS(tP(tI(()=>({connectors:g,publicClient:this.getPublicClient({chainId:p}),status:m,webSocketPublicClient:this.getWebSocketPublicClient({chainId:p})}),{name:rT,storage:s,partialize:t=>({...e&&{data:{account:t?.data?.account,chain:t?.data?.chain}},chains:t?.chains}),version:2}))),this.storage=s,f(this,i,s?.getItem("wallet")),h(this,o,a).call(this),e&&"undefined"!=typeof window&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){let t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),f(this,n,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(l(this,n))return;f(this,n,!0),this.setState(e=>({...e,status:e.data?.account?"reconnecting":"connecting"}));let e=l(this,i)?[...this.connectors].sort(e=>e.id===l(this,i)?-1:1):this.connectors,t=!1;for(let r of e){if(!r.ready||!r.isAuthorized)continue;let e=await r.isAuthorized();if(!e)continue;let n=await r.connect();this.setState(e=>({...e,connector:r,chains:r?.chains,data:n,status:"connected"})),t=!0;break}return t||this.setState(e=>({...e,data:void 0,status:"disconnected"})),f(this,n,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};let t="function"==typeof e?e():e;t.forEach(e=>e.setStorage(this.args.storage)),this.setState(e=>({...e,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&t?.chain.id===e||(t=this.publicClients.get(e??-1)))return t;let{publicClient:r}=this.args;return t="function"==typeof r?r({chainId:e}):r,this.publicClients.set(e??-1,t),t}setPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(e=>({...e,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&t?.chain.id===e||(t=this.webSocketPublicClients.get(e??-1)))return t;let{webSocketPublicClient:r}=this.args;return(t="function"==typeof r?r({chainId:e}):r)&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(e=>({...e,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){this.storage?.setItem("wallet",e)}};function r_(e){let t=new rS(e);return s=t,t}function rB(){if(!s)throw Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return s}async function rj({chainId:e,connector:t}){let r=rB(),n=r.connector;if(n&&t.id===n.id)throw new ry;try{r.setState(e=>({...e,status:"connecting"}));let n=await t.connect({chainId:e});return r.setLastUsedConnector(t.id),r.setState(e=>({...e,connector:t,chains:t?.chains,data:n,status:"connected"})),r.storage.setItem("connected",!0),{...n,connector:t}}catch(e){throw r.setState(e=>({...e,status:e.connector?"connected":"disconnected"})),e}}async function rD(){let e=rB();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}n=new WeakMap,i=new WeakMap,o=new WeakSet,a=function(){let e=e=>{this.setState(t=>({...t,data:{...t.data,...e}}))},t=()=>{this.clearState()},r=e=>{this.setState(t=>({...t,error:e}))};this.store.subscribe(({connector:e})=>e,(n,i)=>{i?.off?.("change",e),i?.off?.("disconnect",t),i?.off?.("error",r),n&&(n.on?.("change",e),n.on?.("disconnect",t),n.on?.("error",r))});let{publicClient:n,webSocketPublicClient:i}=this.args;("function"==typeof n||"function"==typeof i)&&this.store.subscribe(({data:e})=>e?.chain?.id,e=>{this.setState(t=>({...t,publicClient:this.getPublicClient({chainId:e}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))})};var rM=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],rR=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function rk({chainId:e}={}){let t=rB();return e&&t.getPublicClient({chainId:e})||t.publicClient}function rN({chainId:e}={}){let t=rB();return e&&t.getWebSocketPublicClient({chainId:e})||t.webSocketPublicClient}function rU(e,t){let r=rB(),n=async()=>t(rk(e)),i=r.subscribe(({publicClient:e})=>e,n);return i}function rL(e,t){let r=rB(),n=async()=>t(rN(e)),i=r.subscribe(({webSocketPublicClient:e})=>e,n);return i}async function rF({chainId:e,contracts:t,blockNumber:r,blockTag:n,...i}){let o=rk({chainId:e});if(!o.chains)throw new rb;if(e&&o.chain.id!==e)throw new rg({chainId:e});return o.multicall({allowFailure:i.allowFailure??!0,blockNumber:r,blockTag:n,contracts:t})}async function rH({address:e,account:t,chainId:r,abi:n,args:i,functionName:o,blockNumber:a,blockTag:s}){let u=rk({chainId:r});return u.readContract({abi:n,address:e,account:t,functionName:o,args:i,blockNumber:a,blockTag:s})}async function rq({contracts:e,blockNumber:t,blockTag:r,...n}){let{allowFailure:i=!0}=n;try{let n=rk(),o=e.reduce((e,t,r)=>{let i=t.chainId??n.chain.id;return{...e,[i]:[...e[i]||[],{contract:t,index:r}]}},{}),a=(await Promise.all(Object.entries(o).map(([e,n])=>rF({allowFailure:i,chainId:parseInt(e),contracts:n.map(({contract:e})=>e),blockNumber:t,blockTag:r})))).flat(),s=Object.values(o).flatMap(e=>e.map(({index:e})=>e));return a.reduce((e,t,r)=>(e&&(e[s[r]]=t),e),[])}catch(o){if(o instanceof P.uq)throw o;let n=()=>e.map(e=>rH({...e,blockNumber:t,blockTag:r}));if(i)return(await Promise.allSettled(n())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(n())}}async function rz({address:e,chainId:t,formatUnits:r,token:n}){let i=rB(),o=rk({chainId:t});if(n){let i=async({abi:i})=>{let o={abi:i,address:n,chainId:t},[a,s,u]=await rq({allowFailure:!1,contracts:[{...o,functionName:"balanceOf",args:[e]},{...o,functionName:"decimals"},{...o,functionName:"symbol"}]});return{decimals:s,formatted:(0,t_.b)(a??"0",rA(r??s)),symbol:u,value:a}};try{return await i({abi:rM})}catch(e){if(e instanceof P.uq){let{symbol:e,...t}=await i({abi:rR});return{symbol:(0,eI.rR)((0,v.f)(e,{dir:"right"})),...t}}throw e}}let a=[...i.publicClient.chains||[],...i.chains??[]],s=await o.getBalance({address:e}),u=a.find(e=>e.id===o.chain.id);return{decimals:u?.nativeCurrency.decimals??18,formatted:(0,t_.b)(s??"0",rA(r??18)),symbol:u?.nativeCurrency.symbol??"ETH",value:s}}function r$(){let{data:e,connector:t,status:r}=rB();switch(r){case"connected":return{address:e?.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:r};case"reconnecting":return{address:e?.account,connector:t,isConnected:!!e?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:r};case"connecting":return{address:e?.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:r};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:r}}}function rG(){let e=rB(),t=e.data?.chain?.id,r=e.chains??[],n=[...e.publicClient?.chains||[],...r].find(e=>e.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...n,...e.data?.chain,id:t}:void 0,chains:r}}async function rV({chainId:e}){let{connector:t}=rB();if(!t)throw new tE.N;if(!t.switchChain)throw new rv({connector:t});return t.switchChain(e)}function rW(e,{selector:t=e=>e}={}){let r=rB(),n=()=>e(r$()),i=r.subscribe(({data:e,connector:r,status:n})=>t({address:e?.account,connector:r,status:n}),n,{equalityFn:tB});return i}function rK(e,{selector:t=e=>e}={}){let r=rB(),n=()=>e(rG()),i=r.subscribe(({data:e,chains:r})=>t({chainId:e?.chain?.id,chains:r}),n,{equalityFn:tB});return i}async function rQ({chainId:e,name:t}){let r=rk({chainId:e}),n=await r.getEnsAddress({name:rp(t)});try{if("0x0000000000000000000000000000000000000000"===n)return null;return n?(0,tj.K)(n):null}catch(e){return null}}async function rY({name:e,chainId:t}){let r=rk({chainId:t}),n=await r.getEnsAvatar({name:rp(e)});return n}async function rJ({address:e,chainId:t}){let r=rk({chainId:t});return r.getEnsName({address:(0,tj.K)(e)})}async function rZ({chainId:e}={}){let t=rk({chainId:e}),r=await t.getBlockNumber();return r}},72654:function(e,t,r){"use strict";function n({apiKey:e}){return function(t){let r=t.rpcUrls.alchemy?.http[0],n=t.rpcUrls.alchemy?.webSocket?.[0];return r?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[`${r}/${e}`]}}},rpcUrls:{http:[`${r}/${e}`],webSocket:[`${n}/${e}`]}}:null}}r.d(t,{G:function(){return n}})},42498:function(e,t,r){"use strict";function n({apiKey:e}){return function(t){let r=t.rpcUrls.infura?.http[0],n=t.rpcUrls.infura?.webSocket?.[0];return r?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[`${r}/${e}`]}}},rpcUrls:{http:[`${r}/${e}`],webSocket:[`${n}/${e}`]}}:null}}r.d(t,{$:function(){return n}})},91115:function(e,t,r){"use strict";function n({rpc:e}){return function(t){let r=e(t);return r&&""!==r.http?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[r.http]}}},rpcUrls:{http:[r.http],webSocket:r.webSocket?[r.webSocket]:void 0}}:null}}r.d(t,{R:function(){return n}})},42212:function(e,t,r){"use strict";function n(){return function(e){return e.rpcUrls.public.http[0]?{chain:e,rpcUrls:e.rpcUrls.public}:null}}r.d(t,{I:function(){return n}})},10401:function(e,t,r){"use strict";r.d(t,{M:function(){return y}});var n=r(24058),i=r(37010),o=r(77618),a=r(49583),s=r(45215);function u(){var e=(0,i.useRef)(!1);return(0,s.L)(function(){return e.current=!0,function(){e.current=!1}},[]),e}var c=r(26084),l=r(80269),d=r(25803),f=function(e){var t=e.children,r=e.initial,o=e.isPresent,a=e.onExitComplete,s=e.custom,u=e.presenceAffectsLayout,f=(0,l.h)(h),p=(0,d.M)(),m=(0,i.useMemo)(function(){return{id:p,initial:r,isPresent:o,custom:s,onExitComplete:function(e){var t,r;f.set(e,!0);try{for(var i=(0,n.__values)(f.values()),o=i.next();!o.done;o=i.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return f.set(e,!1),function(){return f.delete(e)}}}},u?void 0:[o]);return(0,i.useMemo)(function(){f.forEach(function(e,t){return f.set(t,!1)})},[o]),i.useEffect(function(){o||f.size||null==a||a()},[o]),i.createElement(c.O.Provider,{value:m},t)};function h(){return new Map}var p=r(23209),m=r(66612),g=function(e){return e.key||""},y=function(e){var t,r,c,l,d,h,y=e.children,b=e.custom,v=e.initial,w=void 0===v||v,E=e.onExitComplete,A=e.exitBeforeEnter,P=e.presenceAffectsLayout,x=void 0===P||P,O=(0,n.__read)((t=u(),c=(r=(0,n.__read)((0,i.useState)(0),2))[0],l=r[1],d=(0,i.useCallback)(function(){t.current&&l(c+1)},[c]),[(0,i.useCallback)(function(){return a.ZP.postRender(d)},[d]),c]),1)[0],C=(0,i.useContext)(p.p).forceRender;C&&(O=C);var I=u(),T=(h=[],i.Children.forEach(y,function(e){(0,i.isValidElement)(e)&&h.push(e)}),h),S=T,_=new Set,B=(0,i.useRef)(S),j=(0,i.useRef)(new Map).current,D=(0,i.useRef)(!0);if((0,s.L)(function(){D.current=!1,function(e,t){e.forEach(function(e){var r=g(e);t.set(r,e)})}(T,j),B.current=S}),(0,m.z)(function(){D.current=!0,j.clear(),_.clear()}),D.current)return i.createElement(i.Fragment,null,S.map(function(e){return i.createElement(f,{key:g(e),isPresent:!0,initial:!!w&&void 0,presenceAffectsLayout:x},e)}));S=(0,n.__spreadArray)([],(0,n.__read)(S),!1);for(var M=B.current.map(g),R=T.map(g),k=M.length,N=0;N1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),i.createElement(i.Fragment,null,_.size?S:S.map(function(e){return(0,i.cloneElement)(e)}))}},73430:function(e,t,r){"use strict";r.d(t,{A:function(){return u}});var n=r(24058),i=r(37010),o=r(35626),a=r(28806),s=r(80269);function u(e){var t=e.children,r=e.isValidProp,u=(0,n.__rest)(e,["children","isValidProp"]);r&&(0,a.K)(r),(u=(0,n.__assign)((0,n.__assign)({},(0,i.useContext)(o._)),u)).isStatic=(0,s.h)(function(){return u.isStatic});var c=(0,i.useMemo)(function(){return u},[JSON.stringify(u.transition),u.transformPagePoint,u.reducedMotion]);return i.createElement(o._.Provider,{value:c},t)}},23209:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});var n=(0,r(37010).createContext)({})},35626:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});var n=(0,r(37010).createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"})},26084:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var n=(0,r(37010).createContext)(null)},42531:function(e,t,r){"use strict";r.d(t,{E:function(){return iV}});var n,i,o,a,s=r(24058),u=r(37010),c=r(77618),l=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},d={measureLayout:l(["layout","layoutId","drag"]),animation:l(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:l(["exit"]),drag:l(["drag","dragControls"]),focus:l(["whileFocus"]),hover:l(["whileHover","onHoverStart","onHoverEnd"]),tap:l(["whileTap","onTap","onTapStart","onTapCancel"]),pan:l(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:l(["whileInView","onViewportEnter","onViewportLeave"])},f=r(13593),h=(0,u.createContext)({strict:!1}),p=Object.keys(d),m=p.length,g=r(35626),y=(0,u.createContext)({}),b=r(26084),v=r(45215),w=r(65603),E={current:null},A=!1;function P(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function x(e){return Array.isArray(e)}function O(e){return"string"==typeof e||x(e)}function C(e,t,r,n,i){var o;return void 0===n&&(n={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),t}function I(e,t,r){var n,i,o=e.getProps();return C(o,t,null!=r?r:o.custom,(n={},e.forEachValue(function(e,t){return n[t]=e.get()}),n),(i={},e.forEachValue(function(e,t){return i[t]=e.getVelocity()}),i))}function T(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||O(e.initial)||O(e.animate)||O(e.whileHover)||O(e.whileDrag)||O(e.whileTap)||O(e.whileFocus)||O(e.exit)}function S(e){return!!(T(e)||e.variants)}function _(e){return Array.isArray(e)?e.join(" "):e}var B=r(80269),j={hasAnimatedSinceResize:!0,hasEverUpdated:!1},D=1,M=r(23209),R=(0,u.createContext)({}),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,s.__extends)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,r=e.props;t&&t.setProps(r)},t.prototype.render=function(){return this.props.children},t}(u.Component),N=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function U(e){if("string"!=typeof e||e.includes("-"));else if(N.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var L={},F=["","X","Y","Z"],H=["transformPerspective","x","y","z"];function q(e,t){return H.indexOf(e)-H.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return F.forEach(function(t){return H.push(e+t)})});var z=new Set(H);function $(e){return z.has(e)}var G=new Set(["originX","originY","originZ"]);function V(e,t){var r=t.layout,n=t.layoutId;return $(e)||G.has(e)||(r||void 0!==n)&&(!!L[e]||"opacity"===e)}var W=function(e){return!!(null!==e&&"object"==typeof e&&e.getVelocity)},K={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Q(e){return e.startsWith("--")}let Y=(e,t)=>r=>Math.max(Math.min(r,t),e),J=e=>e%1?Number(e.toFixed(5)):e,Z=/(-)?([\d]*\.?[\d])+/g,X=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ee=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function et(e){return"string"==typeof e}let er=e=>({test:t=>et(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),en=er("deg"),ei=er("%"),eo=er("px"),ea=er("vh"),es=er("vw"),eu=Object.assign(Object.assign({},ei),{parse:e=>ei.parse(e)/100,transform:e=>ei.transform(100*e)}),ec={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},el=Object.assign(Object.assign({},ec),{transform:Y(0,1)}),ed=Object.assign(Object.assign({},ec),{default:1});var ef=(0,s.__assign)((0,s.__assign)({},ec),{transform:Math.round}),eh={borderWidth:eo,borderTopWidth:eo,borderRightWidth:eo,borderBottomWidth:eo,borderLeftWidth:eo,borderRadius:eo,radius:eo,borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomRightRadius:eo,borderBottomLeftRadius:eo,width:eo,maxWidth:eo,height:eo,maxHeight:eo,size:eo,top:eo,right:eo,bottom:eo,left:eo,padding:eo,paddingTop:eo,paddingRight:eo,paddingBottom:eo,paddingLeft:eo,margin:eo,marginTop:eo,marginRight:eo,marginBottom:eo,marginLeft:eo,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:ed,scaleX:ed,scaleY:ed,scaleZ:ed,skew:en,skewX:en,skewY:en,distance:eo,translateX:eo,translateY:eo,translateZ:eo,x:eo,y:eo,z:eo,perspective:eo,transformPerspective:eo,opacity:el,originX:eu,originY:eu,originZ:eo,zIndex:ef,fillOpacity:el,strokeOpacity:el,numOctaves:ef};function ep(e,t,r,n){var i,o,a,s,u=e.style,c=e.vars,l=e.transform,d=e.transformKeys,f=e.transformOrigin;d.length=0;var h=!1,p=!1,m=!0;for(var g in t){var y,b=t[g];if(Q(g)){c[g]=b;continue}var v=eh[g],w=v&&"number"==typeof b?v.transform(b):b;if($(g)){if(h=!0,l[g]=w,d.push(g),!m)continue;b!==(null!==(s=v.default)&&void 0!==s?s:0)&&(m=!1)}else(y=g,G.has(y))?(f[g]=w,p=!0):u[g]=w}h?u.transform=function(e,t,r,n){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=t.allowTransformNone,u="";o.sort(q);for(var c=!1,l=o.length,d=0;dr=>t(e(r)),e3=(...e)=>e.reduce(e8);var e4=new Set,e9=new WeakMap,e7=new WeakMap,te=function(e){var t;null===(t=e9.get(e.target))||void 0===t||t(e)},tt=function(e){e.forEach(te)},tr={some:0,all:1};function tn(e,t,r,n){var i=n.root,a=n.margin,c=n.amount,l=void 0===c?"some":c,d=n.once;(0,u.useEffect)(function(){if(e){var n,u,c,f,h,p,m,g={root:null==i?void 0:i.current,rootMargin:a,threshold:"number"==typeof l?l:tr[l]};return n=r.getInstance(),u=g.root,c=(0,s.__rest)(g,["root"]),f=u||document,e7.has(f)||e7.set(f,{}),(h=e7.get(f))[p=JSON.stringify(c)]||(h[p]=new IntersectionObserver(tt,(0,s.__assign)({root:u},c))),m=h[p],e9.set(n,function(e){var n,i=e.isIntersecting;if(t.isInView!==i){if(t.isInView=i,d&&!i&&t.hasEnteredView)return;i&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(o.InView,i);var a=r.getProps(),s=i?a.onViewportEnter:a.onViewportLeave;null==s||s(e)}}),m.observe(n),function(){e9.delete(n),m.unobserve(n)}}},[e,i,a,l])}function ti(e,t,r,n){var i=n.fallback,a=void 0===i||i;(0,u.useEffect)(function(){if(e&&a){if("production"!==c.O){var n,i;n="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",e4.has(n)||(console.warn(n),i&&console.warn(i),e4.add(n))}requestAnimationFrame(function(){t.hasEnteredView=!0;var e,n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(o.InView,!0)})}},[e])}var to=function(e){return function(t){return e(t),null}},ta={inView:to(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=void 0===o?{}:o,s=(0,u.useRef)({hasEnteredView:!1,isInView:!1}),c=!!(r||n||i);a.once&&s.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?ti:tn)(c,s.current,t,a)}),tap:to(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,a=e.visualElement,s=(0,u.useRef)(!1),c=(0,u.useRef)(null),l={passive:!(r||t||n||m)};function d(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function f(){var e;return d(),s.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(o.Tap,!1),!e1()}function h(e,r){f()&&(e6(a.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function p(e,t){f()&&(null==n||n(e,t))}function m(e,t){var n;d(),s.current||(s.current=!0,c.current=e3(eQ(window,"pointerup",h,l),eQ(window,"pointercancel",p,l)),null===(n=a.animationState)||void 0===n||n.setActive(o.Tap,!0),null==r||r(e,t))}eY(a,"pointerdown",t||r||n||i?m:void 0,l),(0,e5.z)(d)}),focus:to(function(e){var t=e.whileFocus,r=e.visualElement;eH(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(o.Focus,!0)}:void 0),eH(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(o.Focus,!1)}:void 0)}),hover:to(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;eY(i,"pointerenter",t||n?e2(i,!0,t):void 0,{passive:!t}),eY(i,"pointerleave",r||n?e2(i,!1,r):void 0,{passive:!r})})},ts=r(25803);function tu(){var e=(0,u.useContext)(b.O);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=(0,ts.M)();return(0,u.useEffect)(function(){return n(i)},[]),!t&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}function tc(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;nMath.min(Math.max(r,e),t);function td(e,t){return e*Math.sqrt(1-t*t)}let tf=["duration","bounce"],th=["stiffness","damping","mass"];function tp(e,t){return t.some(t=>void 0!==e[t])}function tm(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=(0,s.__rest)(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:u,damping:c,mass:l,velocity:d,duration:h,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!tp(e,th)&&tp(e,tf)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,f.K)(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=tl(.05,1,a),e=tl(.01,10,e/1e3),a<1?(i=t=>{let n=t*a,i=n*e,o=td(t,a);return .001-(n-r)/o*Math.exp(-i)},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,u=td(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*r+r-s)*Math.exp(-o))/u}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,u=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e*=1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(u,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),m=tg,g=tg;function y(){let e=d?-(d/1e3):0,n=r-t,o=c/(2*Math.sqrt(u*l)),a=Math.sqrt(u/l)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){let t=td(a,o);m=i=>r-Math.exp(-o*a*i)*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i)),g=r=>{let i=Math.exp(-o*a*r);return o*a*i*(Math.sin(t*r)*(e+o*a*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+o*a*n)-t*n*Math.sin(t*r))}}else if(1===o)m=t=>r-Math.exp(-a*t)*(n+(e+a*n)*t);else{let t=a*Math.sqrt(o*o-1);m=i=>{let s=Math.min(t*i,300);return r-Math.exp(-o*a*i)*((e+o*a*n)*Math.sinh(s)+t*n*Math.cosh(s))/t}}}return y(),{next:e=>{let t=m(e);if(p)a.done=e>=h;else{let o=1e3*g(e),s=Math.abs(r-t)<=i;a.done=Math.abs(o)<=n&&s}return a.value=a.done?r:t,a},flipTarget:()=>{d=-d,[t,r]=[r,t],y()}}}tm.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let tg=e=>0,ty=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},tb=(e,t,r)=>-r*e+r*t+e,tv=(e,t)=>r=>!!(et(r)&&ee.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tw=(e,t,r)=>n=>{if(!et(n))return n;let[i,o,a,s]=n.match(Z);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tE=Y(0,255),tA=Object.assign(Object.assign({},ec),{transform:e=>Math.round(tE(e))}),tP={test:tv("rgb","red"),parse:tw("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tA.transform(e)+", "+tA.transform(t)+", "+tA.transform(r)+", "+J(el.transform(n))+")"},tx={test:tv("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:tP.transform},tO={test:tv("hsl","hue"),parse:tw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ei.transform(J(t))+", "+ei.transform(J(r))+", "+J(el.transform(n))+")"};function tC(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tI({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=tC(s,n,e+1/3),o=tC(s,n,e),a=tC(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}let tT=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},tS=[tx,tP,tO],t_=e=>tS.find(t=>t.test(e)),tB=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,tj=(e,t)=>{let r=t_(e),n=t_(t);(0,f.k)(!!r,tB(e)),(0,f.k)(!!n,tB(t));let i=r.parse(e),o=n.parse(t);r===tO&&(i=tI(i),r=tP),n===tO&&(o=tI(o),n=tP);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=tT(i[t],o[t],e));return a.alpha=tb(i.alpha,o.alpha,e),r.transform(a)}},tD={test:e=>tP.test(e)||tx.test(e)||tO.test(e),parse:e=>tP.test(e)?tP.parse(e):tO.test(e)?tO.parse(e):tx.parse(e),transform:e=>et(e)?e:e.hasOwnProperty("red")?tP.transform(e):tO.transform(e)},tM="${c}",tR="${n}";function tk(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,n=e.match(X);n&&(r=n.length,e=e.replace(X,tM),t.push(...n.map(tD.parse)));let i=e.match(Z);return i&&(e=e.replace(Z,tR),t.push(...i.map(ec.parse))),{values:t,numColors:r,tokenised:e}}function tN(e){return tk(e).values}function tU(e){let{values:t,numColors:r,tokenised:n}=tk(e),i=t.length;return e=>{let t=n;for(let n=0;n"number"==typeof e?0:e,tF={test:function(e){var t,r,n,i;return isNaN(e)&&et(e)&&(null!==(r=null===(t=e.match(Z))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(X))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:tN,createTransformer:tU,getAnimatableNone:function(e){let t=tN(e),r=tU(e);return r(t.map(tL))}},tH=e=>"number"==typeof e;function tq(e,t){return tH(e)?r=>tb(e,t,r):tD.test(e)?tj(e,t):tV(e,t)}let tz=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>tq(e,t[r]));return e=>{for(let t=0;t{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tq(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function tG(e){let t=tF.parse(e),r=t.length,n=0,i=0,o=0;for(let e=0;e{let r=tF.createTransformer(t),n=tG(e),i=tG(t),o=n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers;return o?e3(tz(n.parsed,i.parsed),r):((0,f.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},tW=(e,t)=>r=>tb(e,t,r);function tK(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;(0,f.k)(o===t.length,"Both input and output ranges must be the same length"),(0,f.k)(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,r){var n;let i=[],o=r||("number"==typeof(n=e[0])?tW:"string"==typeof n?tD.test(n)?tj:tV:Array.isArray(n)?tz:"object"==typeof n?t$:void 0),a=e.length-1;for(let r=0;rr(ty(e,t,n))}(e,a):function(e,t){let r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;ti)&&t!==n;t++);o=t-1}let s=ty(e[o],e[o+1],i);return t[o](s)}}(e,a);return r?t=>s(tl(e[0],e[o-1],t)):s}let tQ=e=>t=>1-e(1-t),tY=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tJ=e=>t=>t*t*((e+1)*t-e),tZ=4/11,tX=8/11,t0=e=>e,t1=e=>Math.pow(e,2),t2=tQ(t1),t6=tY(t1),t5=e=>1-Math.sin(Math.acos(e)),t8=tQ(t5),t3=tY(t8),t4=tJ(1.525),t9=tQ(t4),t7=tY(t4),re=(e=>{let t=tJ(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),rt=4356/361,rr=35442/1805,rn=16061/1805,ri=e=>{if(1===e||0===e)return e;let t=e*e;return ee<.5?.5*(1-ri(1-2*e)):.5*ri(2*e-1)+.5;function rs({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=(n&&n.length===a.length?n:function(e){let t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(a)).map(e=>e*i);function u(){return tK(s,a,{ease:Array.isArray(r)?r:a.map(()=>r||t6).splice(0,a.length-1)})}let c=u();return{next:e=>(o.value=c(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),c=u()}}}let ru={keyframes:rs,spring:tm,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=r*e,u=t+s,c=void 0===o?u:o(u);return c!==u&&(s=c-t),{next:e=>{let t=-s*Math.exp(-e/n);return a.done=!(t>i||t<-i),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};var rc=r(49583);function rl(e,t,r=0){return e-t-r}let rd=e=>{let t=({delta:t})=>e(t);return{start:()=>rc.ZP.update(t,!0),stop:()=>rc.qY.update(t)}};function rf(e){let t,r,n;var i,{from:o,autoplay:a=!0,driver:u=rd,elapsed:c=0,repeat:l=0,repeatType:d="loop",repeatDelay:f=0,onPlay:h,onStop:p,onComplete:m,onRepeat:g,onUpdate:y}=e,b=(0,s.__rest)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=b,w=0,E=b.duration,A=!1,P=!0,x=function(e){if(Array.isArray(e.to))return rs;if(ru[e.type])return ru[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return tm;return rs}(b);(null===(i=x.needsInterpolation)||void 0===i?void 0:i.call(x,o,v))&&(n=tK([0,100],[o,v],{clamp:!1}),o=0,v=100);let O=x(Object.assign(Object.assign({},b),{from:o,to:v}));return a&&(null==h||h(),(t=u(function(e){if(P||(e=-e),c+=e,!A){let e=O.next(Math.max(0,c));r=e.value,n&&(r=n(r)),A=P?e.done:c<=0}if(null==y||y(r),A){if(0===w&&(null!=E||(E=c)),w=o+f:i<=-f)&&(w++,"reverse"===d?c=function(e,t,r=0,n=!0){return n?rl(t+-e,t,r):t-(e-t)+r}(c,E,f,P=w%2==0):(c=rl(c,E,f),"mirror"===d&&O.flipTarget()),A=!1,g&&g())}else t.stop(),m&&m()}})).start()),{stop:()=>{null==p||p(),t.stop()}}}var rh=function(e){return 1e3*e};let rp=(e,t)=>1-3*t+3*e,rm=(e,t)=>3*t-6*e,rg=e=>3*e,ry=(e,t,r)=>((rp(t,r)*e+rm(t,r))*e+rg(t))*e,rb=(e,t,r)=>3*rp(t,r)*e*e+2*rm(t,r)*e+rg(t);var rv={linear:t0,easeIn:t1,easeInOut:t6,easeOut:t2,circIn:t5,circInOut:t3,circOut:t8,backIn:t4,backInOut:t7,backOut:t9,anticipate:re,bounceIn:ro,bounceInOut:ra,bounceOut:ri},rw=function(e){if(Array.isArray(e)){(0,f.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=(0,s.__read)(e,4);return function(e,t,r,n){if(e===t&&r===n)return t0;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=ry(.1*t,e,r);return o=>0===o||1===o?o:ry(function(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=n+.1*a,u=rb(s,e,r);return u>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=rb(t,r,n);if(0===i)break;let o=ry(t,r,n)-e;t-=o/i}return t}(t,s,e,r):0===u?s:function(e,t,r,n,i){let o,a;let s=0;do(o=ry(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+.1,e,r)}(o),t,n)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?((0,f.k)(void 0!==rv[e],"Invalid easing type '".concat(e,"'")),rv[e]):e},rE=function(e,t){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&tF.test(t)&&!t.startsWith("url("))},rA=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},rP=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},rx=function(){return{type:"keyframes",ease:"linear",duration:.3}},rO=function(e){return{type:"keyframes",duration:.8,values:e}},rC={x:rA,y:rA,z:rA,rotate:rA,rotateX:rA,rotateY:rA,rotateZ:rA,scaleX:rP,scaleY:rP,scale:rP,opacity:rx,backgroundColor:rx,color:rx,default:rP},rI=function(e,t){var r;return r=eD(t)?rO:rC[e]||rC.default,(0,s.__assign)({to:t},r(t))};let rT=new Set(["brightness","contrast","saturate","opacity"]);function rS(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(Z)||[];if(!n)return e;let i=r.replace(n,""),o=rT.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let r_=/([a-z-]*)\(.*?\)/g,rB=Object.assign(Object.assign({},tF),{getAnimatableNone:e=>{let t=e.match(r_);return t?t.map(rS).join(" "):e}});var rj=(0,s.__assign)((0,s.__assign)({},eh),{color:tD,backgroundColor:tD,outlineColor:tD,fill:tD,stroke:tD,borderColor:tD,borderTopColor:tD,borderRightColor:tD,borderBottomColor:tD,borderLeftColor:tD,filter:rB,WebkitFilter:rB}),rD=function(e){return rj[e]};function rM(e,t){var r,n=rD(e);return n!==rB&&(n=tF),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var rR={current:!1},rk=!1;function rN(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function rU(e){return"number"==typeof e?0:rM("",e)}function rL(e,t){return e[t]||e.default||e}function rF(e,t,r,n){return void 0===n&&(n={}),rR.current&&(n={type:!1}),t.start(function(i){var o,a,u,c,l,d,h,p,m,g,y,b=(c=r,h=null!==(l=(d=rL(n,e)).from)&&void 0!==l?l:t.get(),p=rE(e,c),"none"===h&&p&&"string"==typeof c?h=rM(e,c):rN(h)&&"string"==typeof c?h=rU(c):!Array.isArray(c)&&rN(c)&&"string"==typeof h&&(c=rU(h)),m=rE(e,h),(0,f.K)(m===p,"You are trying to animate ".concat(e,' from "').concat(h,'" to "').concat(c,'". ').concat(h," is not an animatable value - to enable this animation set ").concat(h," to a value animatable to ").concat(c," via the `style` property.")),m&&p&&!1!==d.type?function(){var r,n,o,a,u,l,p,m,g,y,b,v,w={from:h,to:c,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===d.type||"decay"===d.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==r&&en}function g(e){return void 0===r?n:void 0===n?r:Math.abs(r-e){var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:f,onStop:h}))}function b(e){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},e))}if(m(e))b({from:e,velocity:t,to:g(e)});else{let n,a,s=i*t+e;void 0!==c&&(s=c(s));let l=g(s),d=l===r?-1:1,f=e=>{var r;n=a,a=e,t=(r=(0,rc.$B)().delta)?(e-n)*(1e3/r):0,(1===d&&e>l||-1===d&&enull==p?void 0:p.stop()}}((0,s.__assign)((0,s.__assign)({},w),d)):rf((0,s.__assign)((0,s.__assign)({},(g=d,Array.isArray(w.to)&&(null!==(y=g.duration)&&void 0!==y||(g.duration=.8)),Array.isArray((b=w).to)&&null===b.to[0]&&(b.to=(0,s.__spreadArray)([],(0,s.__read)(b.to),!1),b.to[0]=b.from),(v=g).when,v.delay,v.delayChildren,v.staggerChildren,v.staggerDirection,v.repeat,v.repeatType,v.repeatDelay,v.from,Object.keys((0,s.__rest)(v,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(g=(0,s.__assign)((0,s.__assign)({},g),rI(e,w.to))),(0,s.__assign)((0,s.__assign)({},w),(n=(r=g).ease,o=r.times,a=r.yoyo,u=r.flip,l=r.loop,p=(0,s.__rest)(r,["ease","times","yoyo","flip","loop"]),m=(0,s.__assign)({},p),o&&(m.offset=o),p.duration&&(m.duration=rh(p.duration)),p.repeatDelay&&(m.repeatDelay=rh(p.repeatDelay)),n&&(m.ease=Array.isArray(n)&&"number"!=typeof n[0]?n.map(rw):rw(n)),"tween"===p.type&&(m.type="keyframes"),(a||l||u)&&((0,f.K)(!rk,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),rk=!0,a?m.repeatType="reverse":l?m.repeatType="loop":u&&(m.repeatType="mirror"),m.repeat=l||a||u||p.repeat),"spring"!==p.type&&(m.type="keyframes"),m)))),{onUpdate:function(e){var t;w.onUpdate(e),null===(t=d.onUpdate)||void 0===t||t.call(d,e)},onComplete:function(){var e;w.onComplete(),null===(e=d.onComplete)||void 0===e||e.call(d)}}))}:function(){var e,r,n=eM(c);return t.set(n),i(),null===(e=null==d?void 0:d.onUpdate)||void 0===e||e.call(d,n),null===(r=null==d?void 0:d.onComplete)||void 0===r||r.call(d),{stop:function(){}}}),v=null!==(u=null!==(a=(rL(o=n,e)||{}).delay)&&void 0!==a?a:o.delay)&&void 0!==u?u:0,w=function(){return y=b()};return v?g=window.setTimeout(w,rh(v)):w(),function(){clearTimeout(g),null==y||y.stop()}})}function rH(e,t){-1===e.indexOf(t)&&e.push(t)}function rq(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var rz=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return rH(this.subscriptions,e),function(){return rq(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(var i=0;im&&v,C=Array.isArray(b)?b:[b],I=C.reduce(u,{});!1===w&&(I={});var T=y.prevResolvedValues,S=void 0===T?{}:T,_=(0,s.__assign)((0,s.__assign)({},S),I),B=function(e){P=!0,h.delete(e),y.needsAnimating[e]=!0};for(var j in _){var D=I[j],M=S[j];p.hasOwnProperty(j)||(D!==M?eD(D)&&eD(M)?!tc(D,M)||A?B(j):y.protectedKeys[j]=!0:void 0!==D?B(j):h.add(j):void 0!==D&&h.has(j)?B(j):y.protectedKeys[j]=!0)}y.prevProp=b,y.prevResolvedValues=I,y.isActive&&(p=(0,s.__assign)((0,s.__assign)({},p),I)),a&&e.blockInitialAnimation&&(P=!1),P&&!E&&f.push.apply(f,(0,s.__spreadArray)([],(0,s.__read)(C.map(function(e){return{animation:e,options:(0,s.__assign)({type:g},t)}})),!1))}}(g);if(i=(0,s.__assign)({},p),h.size){var y={};h.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(y[t]=r)}),f.push({animation:y})}var b=!!f.length;return a&&!1===l.initial&&!e.manuallyAnimateOnMount&&(b=!1),a=!1,b?r(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:c,setActive:function(t,r,i){if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var o,a=c(i,t);for(var s in n)n[s].protectedKeys={};return a},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}(t)),ej(r)&&(0,u.useEffect)(function(){return r.subscribe(t)},[r])}),exit:to(function(e){var t=e.custom,r=e.visualElement,n=(0,s.__read)(tu(),2),i=n[0],a=n[1],c=(0,u.useContext)(b.O);(0,u.useEffect)(function(){r.isPresent=i;var e,n,s=null===(e=r.animationState)||void 0===e?void 0:e.setActive(o.Exit,!i,{custom:null!==(n=null==c?void 0:c.custom)&&void 0!==n?n:t});i||null==s||s.then(a)},[i])})};let r5=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),r8=e=>r5(e)&&e.hasOwnProperty("z"),r3=(e,t)=>Math.abs(e-t);function r4(e,t){if(tH(e)&&tH(t))return r3(e,t);if(r5(e)&&r5(t)){let r=r3(e.x,t.x),n=r3(e.y,t.y),i=r8(e)&&r8(t)?r3(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}var r9=function(){function e(e,t,r){var n=this,i=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=nt(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=r4(e.offset,{x:0,y:0})>=3;if(t||r){var i=e.point,o=(0,rc.$B)().timestamp;n.history.push((0,s.__assign)((0,s.__assign)({},i),{timestamp:o}));var a=n.handlers,u=a.onStart,c=a.onMove;t||(u&&u(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),c&&c(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){if(n.lastMoveEvent=e,n.lastMoveEventInfo=r7(t,n.transformPagePoint),eq(e)&&0===e.buttons){n.handlePointerUp(e,t);return}rc.ZP.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,i=r.onEnd,o=r.onSessionEnd,a=nt(r7(t,n.transformPagePoint),n.history);n.startEvent&&i&&i(e,a),o&&o(e,a)},!e.touches||!(e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=r7(e$(e),this.transformPagePoint),a=o.point,u=(0,rc.$B)().timestamp;this.history=[(0,s.__assign)((0,s.__assign)({},a),{timestamp:u})];var c=t.onSessionStart;c&&c(e,nt(o,this.history)),this.removeListeners=e3(eQ(window,"pointermove",this.handlePointerMove),eQ(window,"pointerup",this.handlePointerUp),eQ(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),rc.qY.update(this.updatePoint)},e}();function r7(e,t){return t?{point:t(e.point)}:e}function ne(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nt(e,t){var r=e.point;return{point:r,delta:ne(r,nr(t)),offset:ne(r,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=nr(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>rh(.1)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function nr(e){return e[e.length-1]}function nn(e){return e.max-e.min}function ni(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),r4(e,t)u?c="y":Math.abs(l.x)>u&&(c="x"),c),null!==r.currentDirection&&(null==a||a(r.currentDirection));return}r.updateAxis("x",t.point,l),r.updateAxis("y",t.point,l),r.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){var n=t.velocity;this.startAnimation(n);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(o.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&nM(e,n,this.currentDirection)){var i,o,a,s,u,c=this.getAxisMotionValue(e),l=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=l,o=this.constraints[e],a=this.elastic[e],s=o.min,u=o.max,void 0!==s&&iu&&(i=a?tb(u,i,a.max):Math.min(i,u)),l=i),c.set(l)}},e.prototype.resolveConstraints=function(){var e,t,r,n,i,o,a=this,s=this.getProps(),u=s.dragConstraints,c=s.dragElastic,l=(this.visualElement.projection||{}).layout,d=this.constraints;u&&P(u)?this.constraints||(this.constraints=this.resolveRefConstraints()):u&&l?this.constraints=(e=l.actual,t=u.top,r=u.left,n=u.bottom,i=u.right,{x:nl(e.x,r,i),y:nl(e.y,t,n)}):this.constraints=!1,this.elastic=(void 0===(o=c)&&(o=.35),!1===o?o=0:!0===o&&(o=.35),{x:nf(o,"left","right"),y:nf(o,"top","bottom")}),d!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&nb(function(e){if(a.getAxisMotionValue(e)){var t,r,n;a.constraints[e]=(t=l.actual[e],r=a.constraints[e],n={},void 0!==r.min&&(n.min=r.min-t.min),void 0!==r.max&&(n.max=r.max-t.min),n)}})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!P(t))return!1;var n=t.current;(0,f.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=(s=i.root,u=nB(n,this.visualElement.getTransformPagePoint()),(c=s.scroll)&&(nC(u.x,c.x),nC(u.y,c.y)),u),a={x:nd((l=i.layout.actual).x,o.x),y:nd(l.y,o.y)};if(r){var s,u,c,l,d,h,p,m=r((h=(d=a).x,{top:(p=d.y).min,right:h.max,bottom:p.max,left:h.min}));this.hasMutatedConstraints=!!m,m&&(a=nv(m))}return a},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,i=r.dragMomentum,o=r.dragElastic,a=r.dragTransition,u=r.dragSnapToOrigin,c=r.onDragTransitionEnd,l=this.constraints||{};return Promise.all(nb(function(r){if(nM(r,n,t.currentDirection)){var c,d=null!==(c=null==l?void 0:l[r])&&void 0!==c?c:{};u&&(d={min:0,max:0});var f=(0,s.__assign)((0,s.__assign)({type:"inertia",velocity:i?e[r]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},a),d);return t.startAxisValueAnimation(r,f)}})).then(c)},e.prototype.startAxisValueAnimation=function(e,t){var r=this.getAxisMotionValue(e);return rF(e,r,0,t)},e.prototype.stopAnimation=function(){var e=this;nb(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;nb(function(r){if(nM(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,i=t.getAxisMotionValue(r);if(n&&n.layout){var o=n.layout.actual[r],a=o.min,s=o.max;i.set(e[r]-tb(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,i=r.dragConstraints,o=this.visualElement.projection;if(P(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};nb(function(e){var r=t.getAxisMotionValue(e);if(r){var n,i,o,s,u,c=r.get();a[e]=(n={min:c,max:c},i=t.constraints[e],o=.5,s=nn(n),(u=nn(i))>s?o=ty(i.min,i.max-s,n.min):s>u&&(o=ty(n.min,n.max-u,i.min)),tl(0,1,o))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),nb(function(e){if(nM(e,n,null)){var r=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;r.set(tb(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;nj.set(this.visualElement,this);var r=eQ(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.drag,i=r.dragListener;n&&(void 0===i||i)&&t.start(e)}),n=function(){P(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();var a=eF(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var r=e.delta,n=e.hasLayoutChanged;t.isDragging&&n&&(nb(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){a(),r(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=e.dragDirectionLock,n=e.dragPropagation,i=e.dragConstraints,o=e.dragElastic,a=e.dragMomentum;return(0,s.__assign)((0,s.__assign)({},e),{drag:void 0!==t&&t,dragDirectionLock:void 0!==r&&r,dragPropagation:void 0!==n&&n,dragConstraints:void 0!==i&&i,dragElastic:void 0===o?.35:o,dragMomentum:void 0===a||a})},e}();function nM(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}var nR={pan:to(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=(0,u.useRef)(null),s=(0,u.useContext)(g._).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:t,onEnd:function(e,t){a.current=null,n&&n(e,t)}};(0,u.useEffect)(function(){null!==a.current&&a.current.updateHandlers(c)}),eY(o,"pointerdown",(t||r||n||i)&&function(e){a.current=new r9(e,c,{transformPagePoint:s})}),(0,e5.z)(function(){return a.current&&a.current.end()})}),drag:to(function(e){var t=e.dragControls,r=e.visualElement,n=(0,B.h)(function(){return new nD(r)});(0,u.useEffect)(function(){return t&&t.subscribe(n)},[n,t]),(0,u.useEffect)(function(){return n.addListeners()},[n])})},nk=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],nN=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.removeValueFromRenderState,d=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var h,p,m,g,y,b=e.parent,v=e.props,w=e.presenceId,E=e.blockInitialAnimation,A=e.visualState,P=e.shouldReduceMotion;void 0===t&&(t={});var x=!1,C=A.latestValues,I=A.renderState,_=(h=nk.map(function(){return new rz}),p={},m={clearAllListeners:function(){return h.forEach(function(e){return e.clear()})},updatePropListeners:function(e){nk.forEach(function(t){var r,n="on"+t,i=e[n];null===(r=p[t])||void 0===r||r.call(p),i&&(p[t]=m[n](i))})}},h.forEach(function(e,t){m["on"+nk[t]]=function(t){return e.add(t)},m["notify"+nk[t]]=function(){for(var t=[],r=0;r=0?window.pageYOffset:null,l=nZ(t,e,u);return o.length&&o.forEach(function(t){var r=(0,s.__read)(t,2),n=r[0],i=r[1];e.getValue(n).set(i)}),e.syncRender(),null!==c&&window.scrollTo({top:c}),{target:l,transitionEnd:n}},n0=function(e,t,r,n){var i,o,a=function(e,t,r){var n,i=(0,s.__rest)(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:r};for(var a in r&&(r=(0,s.__assign)({},r)),e.forEachValue(function(e){var t=e.get();if(nF(t)){var r=nq(t,o);r&&e.set(r)}}),i){var u=i[a];if(nF(u)){var c=nq(u,o);c&&(i[a]=c,r&&(null!==(n=r[a])&&void 0!==n||(r[a]=u)))}}return{target:i,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,Object.keys(i).some(n$)?nX(e,i,r,o):{target:i,transitionEnd:o}},n1={treeType:"dom",readValueFromInstance:function(e,t){if($(t)){var r=rD(t);return r&&r.default||0}var n=window.getComputedStyle(e);return(Q(t)?n.getPropertyValue(t):n[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return nB(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;void 0===n&&(n=!0);var o=t.transition,a=t.transitionEnd,u=(0,s.__rest)(t,["transition","transitionEnd"]),c=function(e,t,r){var n,i,o={};for(var a in e)o[a]=null!==(n=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t))&&void 0!==n?n:null===(i=r.getValue(a))||void 0===i?void 0:i.get();return o}(u,o||{},e);if(i&&(a&&(a=i(a)),u&&(u=i(u)),c&&(c=i(c))),n){!function(e,t,r){var n,i,o,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),u=s.length;if(u)for(var c=0;c5)return i;var u=tF.createTransformer(e),c="number"!=typeof s[0]?1:0,l=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=l,s[1+c]/=d;var f=tb(l,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var h=u(s);if(o){var p=0;h=h.replace(n4,function(){var e=a[p];return p++,e})}return h}}},ie=["TopLeft","TopRight","BottomLeft","BottomRight"],it=ie.length,ir=function(e){return"string"==typeof e?parseFloat(e):e},ii=function(e){return"number"==typeof e||eo.test(e)};function io(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var ia=iu(0,.5,t8),is=iu(.5,.95,t0);function iu(e,t,r){return function(n){return nt?1:r(ty(e,t,n))}}function ic(e,t){e.min=t.min,e.max=t.max}function il(e,t){ic(e.x,t.x),ic(e.y,t.y)}function id(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function ih(e,t,r,n,i){var o=(0,s.__read)(r,3),a=o[0],u=o[1],c=o[2];!function(e,t,r,n,i,o,a){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===o&&(o=e),void 0===a&&(a=e),ei.test(t)&&(t=parseFloat(t),t=tb(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=tb(o.min,o.max,n);e===o&&(s-=t),e.min=id(e.min,t,r,s,i),e.max=id(e.max,t,r,s,i)}}(e,t[a],t[u],t[c],t.scale,n,i)}var ip=["x","scaleX","originX"],im=["y","scaleY","originY"];function ig(e,t,r,n){ih(e.x,t,ip,null==r?void 0:r.x,null==n?void 0:n.x),ih(e.y,t,im,null==r?void 0:r.y,null==n?void 0:n.y)}function iy(e){return 0===e.translate&&1===e.scale}function ib(e){return iy(e.x)&&iy(e.y)}function iv(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var iw=function(){function e(){this.members=[]}return e.prototype.add=function(e){rH(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(rq(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var i=this.members[n];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function iE(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,u=r.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}var c=e.x.scale*t.x,l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(c,", ").concat(l,")"))?"none":o}var iA=function(e,t){return e.depth-t.depth},iP=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){rH(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){rq(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(iA),this.isDirty=!1,this.children.forEach(e)},e}();function ix(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(iB),i.nodes.forEach(ij)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?(0,s.__spreadArray)((0,s.__spreadArray)([],(0,s.__read)(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),f=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(iN));this.animationProgress=0,this.mixTargetDelta=function(t){var r,i,s,h=t/1e3;iR(u.x,e.x,h),iR(u.y,e.y,h),n.setTargetDelta(u),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(s=n.relativeParent)||void 0===s?void 0:s.layout)&&(nc(c,n.layout.actual,n.relativeParent.layout.actual),r=n.relativeTarget,i=n.relativeTargetOrigin,ik(r.x,i.x,c.x,h),ik(r.y,i.y,c.y,h)),l&&(n.animationValues=a,function(e,t,r,n,i,o){var a,s,u,c;i?(e.opacity=tb(0,null!==(a=r.opacity)&&void 0!==a?a:1,ia(n)),e.opacityExit=tb(null!==(s=t.opacity)&&void 0!==s?s:1,0,is(n))):o&&(e.opacity=tb(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(c=r.opacity)&&void 0!==c?c:1,n));for(var l=0;l=0;n--)if(e.path[n].instance){r=e.path[n];break}var i=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function iF(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function iH(e){iF(e.x),iF(e.y)}var iq=ix({attachResizeListener:function(e,t){return eF(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),iz={current:void 0},i$=ix({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!iz.current){var e=new iq(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),iz.current=e}return iz.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return"fixed"===window.getComputedStyle(e).position}}),iG=(0,s.__assign)((0,s.__assign)((0,s.__assign)((0,s.__assign)({},r6),ta),nR),{measureLayout:function(e){var t=(0,s.__read)(tu(),2),r=t[0],n=t[1],i=(0,u.useContext)(M.p);return u.createElement(n9,(0,s.__assign)({},e,{layoutGroup:i,switchLayoutGroup:(0,u.useContext)(R),isPresent:r,safeToRemove:n}))}}),iV=function(e){function t(t,r){var n,i,o,a,l,x,C;return void 0===r&&(r={}),i=(n=e(t,r)).preloadedFeatures,o=n.createVisualElement,a=n.projectionNodeConstructor,l=n.useRender,x=n.useVisualState,C=n.Component,i&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?d.projectionNodeConstructor=e[t]:d[t].Component=e[t])}(i),(0,u.forwardRef)(function(e,t){var r,n,I,S,N,U,L,F,H,q,z,$,G,V,W,K,Q,Y,J,Z,X,ee,et,er,en,ei,eo,ea,es=($=e.layoutId,(G=null===(z=(0,u.useContext)(M.p))||void 0===z?void 0:z.id)&&void 0!==$?G+"-"+$:$);e=(0,s.__assign)((0,s.__assign)({},e),{layoutId:es});var eu=(0,u.useContext)(g._),ec=null,el=(W=(V=function(e,t){if(T(e)){var r=e.initial,n=e.animate;return{initial:!1===r||O(r)?r:void 0,animate:O(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,u.useContext)(y))).initial,K=V.animate,(0,u.useMemo)(function(){return{initial:W,animate:K}},[_(W),_(K)])),ed=eu.isStatic?void 0:(0,B.h)(function(){if(j.hasEverUpdated)return D++}),ef=x(e,eu.isStatic);return!eu.isStatic&&w.j&&(el.visualElement=(Q=(0,s.__assign)((0,s.__assign)({},eu),e),Y=o,J=(0,u.useContext)(h),Z=(0,u.useContext)(y).visualElement,X=(0,u.useContext)(b.O),A||function(){if(A=!0,w.j){if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return E.current=e.matches};e.addListener(t),t()}else E.current=!1}}(),ee=(0,s.__read)((0,u.useState)(E.current),1)[0],er="never"!==(et=(0,u.useContext)(g._).reducedMotion)&&("always"===et||ee),en=(0,u.useRef)(void 0),Y||(Y=J.renderer),!en.current&&Y&&(en.current=Y(C,{visualState:ef,parent:Z,props:Q,presenceId:null==X?void 0:X.id,blockInitialAnimation:(null==X?void 0:X.initial)===!1,shouldReduceMotion:er})),ei=en.current,(0,v.L)(function(){null==ei||ei.syncRender()}),(0,u.useEffect)(function(){var e;null===(e=null==ei?void 0:ei.animationState)||void 0===e||e.animateChanges()}),(0,v.L)(function(){return function(){return null==ei?void 0:ei.notifyUnmount()}},[]),ei),r=e,n=el.visualElement,I=a||d.projectionNodeConstructor,N=r.layoutId,U=r.layout,L=r.drag,F=r.dragConstraints,H=r.layoutScroll,q=(0,u.useContext)(R),!I||!n||(null==n?void 0:n.projection)||(n.projection=new I(ed,n.getLatestValues(),null===(S=n.parent)||void 0===S?void 0:S.projection),n.projection.setOptions({layoutId:N,layout:U,alwaysMeasureLayout:!!L||F&&P(F),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof U?U:"both",initialPromotionConfig:q,layoutScroll:H})),ec=function(e,t,r){var n=[],i=(0,u.useContext)(h);if(!t)return null;"production"!==c.O&&r&&i.strict&&(0,f.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;operformance.now():()=>Date.now(),o="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(i()),n),a=!0,s=!1,u=!1,c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],d=l.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let u=s&&i,c=u?t:r;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),u&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rs=!0),e),{}),f=l.reduce((e,t)=>{let r=d[t];return e[t]=(e,t=!1,n=!1)=>(s||y(),r.schedule(e,t,n)),e},{}),h=l.reduce((e,t)=>(e[t]=d[t].cancel,e),{}),p=l.reduce((e,t)=>(e[t]=()=>d[t].process(c),e),{}),m=e=>d[e].process(c),g=e=>{s=!1,c.delta=a?n:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,u=!0,l.forEach(m),u=!1,s&&(a=!1,o(g))},y=()=>{s=!0,a=!0,u||o(g)},b=()=>c;var v=f},61410:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(17959);function i(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},78214:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(61410),i=r(17959);function o(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,n.E)(t),o=0;for(let t of e)r.set(t,o),o+=t.length;return(0,i.P)(r)}},42199:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(94610),i=r(17959);function o(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?(0,i.P)(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}},17636:function(e,t,r){"use strict";r.d(t,{BB:function(){return o.B},mL:function(){return i.m},zo:function(){return n.z}});var n=r(78214),i=r(42199),o=r(34556)},34556:function(e,t,r){"use strict";r.d(t,{B:function(){return i}});var n=r(94610);function i(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},17959:function(e,t,r){"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:function(){return n}})},94610:function(e,t,r){"use strict";r.d(t,{Z:function(){return eV}});var n={};r.r(n),r.d(n,{identity:function(){return B}});var i={};r.r(i),r.d(i,{base2:function(){return j}});var o={};r.r(o),r.d(o,{base8:function(){return D}});var a={};r.r(a),r.d(a,{base10:function(){return M}});var s={};r.r(s),r.d(s,{base16:function(){return R},base16upper:function(){return k}});var u={};r.r(u),r.d(u,{base32:function(){return N},base32hex:function(){return H},base32hexpad:function(){return z},base32hexpadupper:function(){return $},base32hexupper:function(){return q},base32pad:function(){return L},base32padupper:function(){return F},base32upper:function(){return U},base32z:function(){return G}});var c={};r.r(c),r.d(c,{base36:function(){return V},base36upper:function(){return W}});var l={};r.r(l),r.d(l,{base58btc:function(){return K},base58flickr:function(){return Q}});var d={};r.r(d),r.d(d,{base64:function(){return Y},base64pad:function(){return J},base64url:function(){return Z},base64urlpad:function(){return X}});var f={};r.r(f),r.d(f,{base256emoji:function(){return en}});var h={};r.r(h),r.d(h,{sha256:function(){return ep},sha512:function(){return em}});var p={};r.r(p),r.d(p,{identity:function(){return ey}});var m={};r.r(m),r.d(m,{code:function(){return ev},decode:function(){return eE},encode:function(){return ew},name:function(){return eb}});var g={};r.r(g),r.d(g,{code:function(){return eO},decode:function(){return eI},encode:function(){return eC},name:function(){return ex}});var y=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,a=new Uint8Array(o);e[t];){var l=r[e.charCodeAt(t)];if(255===l)return;for(var d=0,f=o-1;(0!==l||d>>0,a[f]=l%256>>>0,l=l/256>>>0;if(0!==l)throw Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var h=o-i;h!==o&&0===a[h];)h++;for(var p=new Uint8Array(n+(o-h)),m=n;h!==o;)p[m++]=a[h++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],f=0,h=a-1;(0!==d||f>>0,c[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");n=f,i++}for(var p=a-n;p!==a&&0===c[p];)p++;for(var m=u.repeat(r);p{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},v=e=>new TextEncoder().encode(e),w=e=>new TextDecoder().decode(e);class E{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class A{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return x(this,e)}}class P{constructor(e){this.decoders=e}or(e){return x(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let x=(e,t)=>new P({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class O{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new E(e,t,r),this.decoder=new A(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let C=({name:e,prefix:t,encode:r,decode:n})=>new O(e,t,r,n),I=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=y(r,t);return C({prefix:e,name:t,encode:n,decode:e=>b(i(e))})},T=(e,t,r,n)=>{let i={};for(let e=0;e=8&&(s-=8,a[c++]=255&u>>s)}if(s>=r||255&u<<8-s)throw SyntaxError("Unexpected end of data");return a},S=(e,t,r)=>{let n="="===t[t.length-1],i=(1<r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<C({prefix:t,name:e,encode:e=>S(e,n,r),decode:t=>T(t,n,r,e)}),B=C({prefix:"\x00",name:"identity",encode:e=>w(e),decode:e=>v(e)}),j=_({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),D=_({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),M=I({prefix:"9",name:"base10",alphabet:"0123456789"}),R=_({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),k=_({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),N=_({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),U=_({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),L=_({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),F=_({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),H=_({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),q=_({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),z=_({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),$=_({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),G=_({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),V=I({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),W=I({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),K=I({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Q=I({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Y=_({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),J=_({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Z=_({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),X=_({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ee=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),et=ee.reduce((e,t,r)=>(e[r]=t,e),[]),er=ee.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),en=C({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=et[t],"")},decode:function(e){let t=[];for(let r of e){let e=er[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});function ei(e,t,r){t=t||[];for(var n=r=r||0;e>=2147483648;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,ei.bytes=r-n+1,t}function eo(e,t){var r,n=0,t=t||0,i=0,o=t,a=e.length;do{if(o>=a)throw eo.bytes=0,RangeError("Could not decode varint");r=e[o++],n+=i<28?(127&r)<=128);return eo.bytes=o-t,n}var ea={encode:ei,decode:eo,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10}};let es=(e,t,r=0)=>(ea.encode(e,t,r),t),eu=e=>ea.encodingLength(e),ec=(e,t)=>{let r=t.byteLength,n=eu(e),i=n+eu(r),o=new Uint8Array(i+r);return es(e,o,0),es(r,o,n),o.set(t,i),new el(e,r,t,o)};class el{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ed=({name:e,code:t,encode:r})=>new ef(e,t,r);class ef{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?ec(this.code,t):t.then(e=>ec(this.code,e))}throw Error("Unknown type, must be binary type")}}let eh=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ep=ed({name:"sha2-256",code:18,encode:eh("SHA-256")}),em=ed({name:"sha2-512",code:19,encode:eh("SHA-512")}),eg=e=>ec(0,b(e)),ey={code:0,name:"identity",encode:b,digest:eg},eb="raw",ev=85,ew=e=>b(e),eE=e=>b(e),eA=new TextEncoder,eP=new TextDecoder,ex="json",eO=512,eC=e=>eA.encode(JSON.stringify(e)),eI=e=>JSON.parse(eP.decode(e));class eT{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eN,byteLength:eN,code:ek,version:ek,multihash:ek,bytes:ek,_baseCache:eN,asCID:eN})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==ej)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eD)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eT.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=Digest.create(e,t);return eT.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&Digest.equals(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?e_(t,n,e||base58btc.encoder):eB(t,n,e||base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return eU(/^0\.0/,eL),!!(e&&(e[eR]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eT)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new eT(t,r,n,i||eM(t,r,n.bytes))}if(null==e||!0!==e[eR])return null;{let{version:t,multihash:r,code:n}=e,i=Digest.decode(r);return eT.create(t,n,i)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===ej)return new eT(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${ej}) block encoding`);case 1:{let n=eM(e,t,r.bytes);return new eT(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return eT.create(0,ej,e)}static createV1(e,t){return eT.create(1,e,t)}static decode(e){let[t,r]=eT.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eT.inspectBytes(e),r=t.size-t.multihashSize,n=coerce(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=n.subarray(t.multihashSize-t.digestSize),o=new Digest.Digest(t.multihashCode,t.digestSize,i,n),a=0===t.version?eT.createV0(o):eT.createV1(t.codec,o);return[a,e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=varint.decode(e.subarray(t));return t+=n,r},n=r(),i=ej;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let o=t,a=r(),s=r(),u=t+s;return{version:n,codec:i,multihashCode:a,digestSize:s,multihashSize:u-o,size:u}}static parse(e,t){let[r,n]=eS(e,t),i=eT.decode(n);return i._baseCache.set(r,e),i}}let eS=(e,t)=>{switch(e[0]){case"Q":{let r=t||base58btc;return[base58btc.prefix,r.decode(`${base58btc.prefix}${e}`)]}case base58btc.prefix:{let r=t||base58btc;return[base58btc.prefix,r.decode(e)]}case base32.prefix:{let r=t||base32;return[base32.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},e_=(e,t,r)=>{let{prefix:n}=r;if(n!==base58btc.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},eB=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},ej=112,eD=18,eM=(e,t,r)=>{let n=varint.encodingLength(e),i=n+varint.encodingLength(t),o=new Uint8Array(i+r.byteLength);return varint.encodeTo(e,o,0),varint.encodeTo(t,o,n),o.set(r,i),o},eR=Symbol.for("@ipld/js-cid/CID"),ek={writable:!1,configurable:!1,enumerable:!0},eN={writable:!1,enumerable:!1,configurable:!1},eU=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},eL=null,eF={...n,...i,...o,...a,...s,...u,...c,...l,...d,...f};({...h,...p});var eH=r(61410);function eq(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let ez=eq("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{let t=new TextEncoder;return t.encode(e.substring(1))}),e$=eq("ascii","a",e=>{let t="a";for(let r=0;r{e=e.substring(1);let t=(0,eH.E)(e.length);for(let r=0;rvoid 0!==e).length>0)}({request:o}))try{return await b(e,{...o,blockNumber:c,blockTag:l})}catch(e){if(!(e instanceof a.pZ)&&!(e instanceof a.mm))throw e}let s=await e.request({method:"eth_call",params:n?[o,n]:[o]});if("0x"===s)return{data:void 0};return{data:s}}catch(u){let n=function(e){if(!(e instanceof o.G))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}(u),{offchainLookup:i,offchainLookupSignature:a}=await r.e(734).then(r.bind(r,50734));if(n?.slice(0,10)===a&&x)return{data:await i(e,{data:n,to:x})};throw function(e,{docsPath:t,...r}){let n=e;return(0,f.B)(e)&&(n=(0,f.k)(e,r)),new s.cg(n,{docsPath:t,...r})}(u,{...t,account:I,chain:e.chain})}}async function b(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:f="latest",data:h,multicallAddress:p,to:g}=t,y=p;if(!y){if(!e.chain)throw new a.pZ;y=(0,l.LI)({blockNumber:o,chain:e.chain,contract:"multicall3"})}let b=o?(0,d.eC)(o):void 0,v=b||f,{schedule:w}=(0,m.S)({id:`${e.uid}.${v}`,wait:n,shouldSplitBatch(e){let t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*r},fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,c.R)({abi:i.F8,args:[r],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:n,to:y},v]});return(0,u.k)({abi:i.F8,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:E,success:A}]=await w({data:h,to:g});if(!A)throw new s.VQ({data:E});return"0x"===E?{data:void 0}:{data:E}}},59100:function(e,t,r){"use strict";r.d(t,{Q:function(){return g}});var n=r(17e3),i=r(52440),o=r(96676),a=r(84058),s=r(73524),u=r(80127),c=r(92966);class l extends u.G{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:o,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=(0,c.xr)({from:t?.address,to:h,value:void 0!==p&&`${(0,a.d)(p)} ${n?.nativeCurrency.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==u&&`${(0,s.o)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,s.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,s.o)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var d=r(5683),f=r(64435),h=r(41145),p=r(98076),m=r(48516);async function g(e,t){let r=t.account??e.account;if(!r)throw new i.o({docsPath:"/docs/actions/public/estimateGas"});let a=(0,n.T)(r);try{let{accessList:r,blockNumber:n,blockTag:i,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:g,to:y,value:b,...v}="local"===a.type?await (0,m.h)(e,t):t,w=n?(0,o.eC)(n):void 0,E=w||i;(0,p.F)(t);let A=e.chain?.formatters?.transactionRequest?.format||h.t,P=A({...(0,f.K)(v,{format:A}),from:a.address,accessList:r,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:g,to:y,value:b}),x=await e.request({method:"eth_estimateGas",params:E?[P,E]:[P]});return BigInt(x)}catch(r){throw function(e,{docsPath:t,...r}){let n=e;return(0,d.B)(e)&&(n=(0,d.k)(e,r)),new l(n,{docsPath:t,...r})}(r,{...t,account:a,chain:e.chain})}}},34726:function(e,t,r){"use strict";r.d(t,{Q:function(){return s}});var n=r(80127);class i extends n.G{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}var o=r(96676),a=r(84500);async function s(e,{blockHash:t,blockNumber:r,blockTag:n,includeTransactions:s}={}){let u=s??!1,c=void 0!==r?(0,o.eC)(r):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,u]}):await e.request({method:"eth_getBlockByNumber",params:[c||(n??"latest"),u]})))throw new i({blockHash:t,blockNumber:r});let d=e.chain?.formatters?.block?.format||a.Z;return d(l)}},3223:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(71791);async function i(e){let t=await e.request({method:"eth_chainId"});return(0,n.ly)(t)}},9216:function(e,t,r){"use strict";async function n(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}r.d(t,{o:function(){return n}})},50996:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(71791),i=r(96676);async function o(e,{address:t,blockTag:r="latest",blockNumber:o}){let a=await e.request({method:"eth_getTransactionCount",params:[t,o?(0,i.eC)(o):r]});return(0,n.ly)(a)}},79618:function(e,t,r){"use strict";let n;r.d(t,{e:function(){return a}});var i=r(17e3);let o=256;function a(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,key:a="base",name:s="Base Client",pollingInterval:u=4e3,type:c="base"}=e,l=e.chain,d=e.account?(0,i.T)(e.account):void 0,{config:f,request:h,value:p}=e.transport({chain:l,pollingInterval:u}),m={...f,...p},g={account:d,batch:t,cacheTime:r,chain:l,key:a,name:s,pollingInterval:u,request:h,transport:m,type:c,uid:function(e=11){if(!n||o+e>512){n="",o=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(o,o+++e)}()};return Object.assign(g,{extend:function e(t){return r=>{let n=r(t);for(let e in g)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(g)})}},86175:function(e,t,r){"use strict";r.d(t,{K:function(){return D}});var n=r(79618),i=r(3223),o=r(96676);async function a(e,{chain:t}){let{id:r,name:n,nativeCurrency:i,rpcUrls:a,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,o.eC)(r),chainName:n,nativeCurrency:i,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]})}var s=r(50291),u=r(17e3),c=r(52440),l=r(85902),d=r(92966),f=r(5683),h=r(64435),p=r(41145),m=r(98076),g=r(48516);async function y(e,t){let{account:r=e.account,chain:n=e.chain,accessList:o,data:a,gas:s,gasPrice:y,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:w,to:E,value:A,...P}=t;if(!r)throw new c.o({docsPath:"/docs/actions/wallet/sendTransaction"});let x=(0,u.T)(r);try{let r;if((0,m.F)(t),null!==n&&(r=await (0,i.L)(e),(0,l.qg)({currentChainId:r,chain:n})),"local"===x.type){let t=await (0,g.h)(e,{account:x,accessList:o,chain:n,data:a,gas:s,gasPrice:y,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:w,to:E,value:A,...P});r||(r=await (0,i.L)(e));let u=n?.serializers?.transaction,c=await x.signTransaction({...t,chainId:r},{serializer:u});return await e.request({method:"eth_sendRawTransaction",params:[c]})}let u=n?.formatters?.transactionRequest?.format||p.t,c=u({...(0,h.K)(P,{format:u}),accessList:o,data:a,from:x.address,gas:s,gasPrice:y,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:w,to:E,value:A});return await e.request({method:"eth_sendTransaction",params:[c]})}catch(e){throw function(e,{docsPath:t,...r}){let n=e;return(0,f.B)(e)&&(n=(0,f.k)(e,r)),new d.mk(n,{docsPath:t,...r})}(e,{...t,account:x,chain:t.chain||void 0})}}var b=r(61867);async function v(e){let t=await e.request({method:"eth_accounts"});return t.map(e=>(0,b.x)(e))}async function w(e){let t=await e.request({method:"wallet_getPermissions"});return t}async function E(e){let t=await e.request({method:"eth_requestAccounts"});return t.map(e=>(0,b.K)(e))}async function A(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function P(e,{account:t=e.account,message:r}){if(!t)throw new c.o({docsPath:"/docs/actions/wallet/signMessage"});let n=(0,u.T)(t);if("local"===n.type)return n.signMessage({message:r});let i="string"==typeof r?(0,o.$G)(r):r.raw instanceof Uint8Array?(0,o.NC)(r.raw):r.raw;return e.request({method:"personal_sign",params:[i,n.address]})}var x=r(68416),O=r(1301),C=r(59635);async function I(e,{account:t=e.account,domain:r,message:n,primaryType:i,types:o}){if(!t)throw new c.o({docsPath:"/docs/actions/wallet/signTypedData"});let a=(0,u.T)(t),s={EIP712Domain:["string"==typeof r?.name&&{name:"name",type:"string"},r?.version&&{name:"version",type:"string"},"number"==typeof r?.chainId&&{name:"chainId",type:"uint256"},r?.verifyingContract&&{name:"verifyingContract",type:"address"},r?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...o};if((0,C.i)({domain:r,message:n,primaryType:i,types:s}),"local"===a.type)return a.signTypedData({domain:r,primaryType:i,types:s,message:n});let l=(0,O.P)({domain:r??{},primaryType:i,types:s,message:n},(e,t)=>(0,x.v)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[a.address,l]})}async function T(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.eC)(t)}]})}async function S(e,t){let r=await e.request({method:"wallet_watchAsset",params:t});return r}var _=r(21181);async function B(e,{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...a}){let s=(0,_.R)({abi:t,args:n,functionName:o}),u=await y(e,{data:`${s}${i?i.replace("0x",""):""}`,to:r,...a});return u}function j(e){return{addChain:t=>a(e,t),deployContract:t=>(function(e,{abi:t,args:r,bytecode:n,...i}){let o=(0,s.w)({abi:t,args:r,bytecode:n});return y(e,{...i,data:o})})(e,t),getAddresses:()=>v(e),getChainId:()=>(0,i.L)(e),getPermissions:()=>w(e),requestAddresses:()=>E(e),requestPermissions:t=>A(e,t),sendTransaction:t=>y(e,t),signMessage:t=>P(e,t),signTypedData:t=>I(e,t),switchChain:t=>T(e,t),watchAsset:t=>S(e,t),writeContract:t=>B(e,t)}}function D(e){let{key:t="wallet",name:r="Wallet Client",transport:i}=e,o=(0,n.e)({...e,key:t,name:r,transport:e=>i({...e,retryCount:0}),type:"walletClient"});return o.extend(j)}},67494:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(77133);function i({key:e,name:t,request:r,retryCount:i=3,retryDelay:o=150,timeout:a,type:s},u){return{config:{key:e,name:t,request:r,retryCount:i,retryDelay:o,timeout:a,type:s},request:(0,n.n)(r,{retryCount:i,retryDelay:o}),value:u}}},93510:function(e,t,r){"use strict";r.d(t,{P:function(){return i}});var n=r(67494);function i(e,t={}){let{key:r="custom",name:i="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,n.q)({key:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}},15358:function(e,t,r){"use strict";r.d(t,{$o:function(){return c},F8:function(){return n},X$:function(){return u},du:function(){return a},k3:function(){return o},nZ:function(){return s}});let n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],o=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],u=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],c=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},35492:function(e,t,r){"use strict";r.d(t,{$:function(){return n},Up:function(){return i},hZ:function(){return o}});let n={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},o={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},7995:function(e,t,r){"use strict";r.d(t,{Bd:function(){return o},Zn:function(){return i},ez:function(){return n}});let n={gwei:9,wei:18},i={ether:-9,wei:9},o={ether:-18,gwei:-9}},87849:function(e,t,r){"use strict";r.d(t,{CI:function(){return P},FM:function(){return p},Gy:function(){return E},KY:function(){return v},M4:function(){return d},MX:function(){return b},SM:function(){return w},cO:function(){return s},dh:function(){return A},fM:function(){return a},fs:function(){return f},gr:function(){return l},hn:function(){return x},lC:function(){return m},mv:function(){return g},wM:function(){return O},wb:function(){return c},xB:function(){return u},xL:function(){return y},yP:function(){return h}});var n=r(99482),i=r(87902),o=r(80127);class a extends o.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class s extends o.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class u extends o.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class c extends o.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class l extends o.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. -Expected length: ${e} -Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class d extends o.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class f extends o.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. -Expected length (params): ${e} -Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class h extends o.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. -Make sure you are using the correct ABI and that the error exists on it. -You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends o.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class m extends o.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. -Make sure you are using the correct ABI and that the event exists on it. -You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends o.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class y extends o.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. -Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class b extends o.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. -Cannot decode function result without knowing what the parameter types are. -Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class v extends o.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class w extends o.G{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}class E extends o.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.t)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class A extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. -Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class P extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. -Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class x extends o.G{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class O extends o.G{constructor(e){super(`"${e}" is not a valid definition type. -Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},52440:function(e,t,r){"use strict";r.d(t,{o:function(){return i}});var n=r(80127);class i extends n.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},96091:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(80127);class i extends n.G{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},80127:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(88949);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.bo)()});let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,r):r?null:t}(this,e)}}},56410:function(e,t,r){"use strict";r.d(t,{Bk:function(){return a},Yl:function(){return o},hJ:function(){return u},mm:function(){return i},pZ:function(){return s}});var n=r(80127);class i extends n.G{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class o extends n.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class a extends n.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class s extends n.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class u extends n.G{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},17248:function(e,t,r){"use strict";r.d(t,{cg:function(){return g},uq:function(){return y},Lu:function(){return b},Dk:function(){return v},VQ:function(){return w}});var n=r(17e3),i=r(35492),o=r(55341),a=r(99482),s=r(1301);function u({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,s.P)(t[r]):t[r]}`).join(", ")})`}var c=r(34482),l=r(84058),d=r(73524),f=r(87849),h=r(80127),p=r(92966),m=r(88949);class g extends h.G{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:f,to:h,value:m}){let g=t?(0,n.T)(t):void 0,y=(0,p.xr)({from:g?.address,to:h,value:void 0!==m&&`${(0,l.d)(m)} ${i?.nativeCurrency.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class y extends h.G{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:s}){let l=(0,c.m)({abi:t,args:r,name:o}),d=l?u({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.t)(l,{includeName:!0}):void 0,h=(0,p.xr)({address:n&&(0,m.CR)(n),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",h].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=s}}class b extends h.G{constructor({abi:e,data:t,functionName:r,message:n}){let s,c,l,d,h;if(t&&"0x"!==t)try{h=(0,o.p)({abi:e,data:t});let{abiItem:r,errorName:n,args:s}=h;if("Error"===n)l=s[0];else if("Panic"===n){let[e]=s;l=i.$[e]}else{let e=r?(0,a.t)(r,{includeName:!0}):void 0,t=r&&s?u({abiItem:r,args:s,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else n&&(l=n);s instanceof f.yP&&(c=[`Unable to decode signature "${d=s.signature}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(l&&"execution reverted"!==l||d?[`The contract function "${r}" reverted with the following ${d?"signature":"reason"}:`,l||d].join("\n"):`The contract function "${r}" reverted.`,{cause:s,metaMessages:c}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=h,this.reason=l,this.signature=d}}class v extends h.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class w extends h.G{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},20605:function(e,t,r){"use strict";r.d(t,{$:function(){return o},m:function(){return i}});var n=r(80127);class i extends n.G{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class o extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},5167:function(e,t,r){"use strict";r.d(t,{Cd:function(){return o},J5:function(){return i},M6:function(){return a}});var n=r(80127);class i extends n.G{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class o extends n.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class a extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},55370:function(e,t,r){"use strict";r.d(t,{C_:function(){return d},G$:function(){return s},Hh:function(){return a},M_:function(){return o},WF:function(){return f},ZI:function(){return u},cj:function(){return g},cs:function(){return m},dR:function(){return h},pZ:function(){return p},se:function(){return l},vU:function(){return c}});var n=r(73524),i=r(80127);class o extends i.G{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. -Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.o)(r)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.message}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},81154:function(e,t,r){"use strict";r.d(t,{Gg:function(){return a},W5:function(){return c},bs:function(){return u},c9:function(){return s}});var n=r(1301),i=r(80127),o=r(88949);class a extends i.G{constructor({body:e,details:t,headers:r,status:i,url:a}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.Gr)(a)}`,e&&`Request body: ${(0,n.P)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=i,this.url=a}}class s extends i.G{constructor({body:e,details:t,url:r}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,o.Gr)(r)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class u extends i.G{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.Gr)(r)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class c extends i.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.Gr)(t)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},45375:function(e,t,r){"use strict";r.d(t,{B:function(){return u},GD:function(){return b},I0:function(){return P},KB:function(){return m},LX:function(){return c},Og:function(){return h},PE:function(){return w},Pv:function(){return y},Ts:function(){return E},XS:function(){return d},ab:function(){return v},gS:function(){return g},ir:function(){return O},nY:function(){return l},pT:function(){return p},s7:function(){return s},u5:function(){return A},x3:function(){return x},yR:function(){return f}});var n=r(80127),i=r(81154);class o extends n.G{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.bs?e.code:t??-1}}class a extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends o{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends o{constructor(e){super(e,{code:u.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends o{constructor(e){super(e,{code:c.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends o{constructor(e){super(e,{code:l.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends o{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends o{constructor(e){super(e,{code:f.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class h extends o{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends o{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends o{constructor(e){super(e,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends o{constructor(e){super(e,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends o{constructor(e){super(e,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class b extends o{constructor(e){super(e,{code:b.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends a{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends a{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class E extends a{constructor(e){super(e,{code:E.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class A extends a{constructor(e){super(e,{code:A.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends a{constructor(e){super(e,{code:P.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class x extends a{constructor(e){super(e,{code:x.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class O extends o{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},92966:function(e,t,r){"use strict";r.d(t,{Bh:function(){return f},JC:function(){return l},Yb:function(){return h},j3:function(){return c},mc:function(){return p},mk:function(){return d},vl:function(){return u},xY:function(){return s},xr:function(){return a}});var n=r(84058),i=r(73524),o=r(80127);function a(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}class s extends o.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class u extends o.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class c extends o.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class l extends o.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class d extends o.G{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.d)(p)} ${o?.nativeCurrency.symbol||"ETH"}`,data:s,gas:u,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class f extends o.G{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class h extends o.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class p extends o.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},88949:function(e,t,r){"use strict";r.d(t,{CR:function(){return n},Gr:function(){return i},bo:function(){return o}});let n=e=>e,i=e=>e,o=()=>"viem@1.5.4"},50305:function(e,t,r){"use strict";r.d(t,{r:function(){return l}});var n=r(87849),i=r(61867),o=r(87902),a=r(9650),s=r(63950),u=r(71791),c=r(57427);function l(e,t){if("0x"===t&&e.length>0)throw new n.wb;if((0,o.d)(t)&&32>(0,o.d)(t))throw new n.xB({data:t,params:e,size:(0,o.d)(t)});return function({data:e,params:t}){let r=[],l=0;for(let f=0;f=(0,o.d)(e))throw new n.xB({data:e,params:t,size:(0,o.d)(e)});let h=t[f],{consumed:p,value:m}=function e({data:t,param:r,position:o}){let l=(0,c.S)(r.type);if(l){let[n,i]=l;return function(t,{param:r,length:n,position:i}){if(!n){let n=(0,u.ly)((0,a.tP)(t,i,i+32,{strict:!0})),o=(0,u.ly)((0,a.tP)(t,n,n+32,{strict:!0})),s=0,c=[];for(let i=0;i!e),o=i?[]:{},s=0;if(d(r)){let c=(0,u.ly)((0,a.tP)(t,n,n+32,{strict:!0}));for(let n=0;n48?(0,u.y_)(e,{signed:r}):(0,u.ly)(e,{signed:r})}}(f,{param:r});if("address"===r.type)return{consumed:32,value:(0,i.x)((0,a.tP)(f,-20))};if("bool"===r.type)return{consumed:32,value:(0,u.XA)(f)};throw new n.CI(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:h,position:l});r.push(m),l+=p}return r}({data:t,params:e})}function d(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(d);let r=(0,c.S)(e.type);return!!(r&&d({...e,type:r[1]}))}},55341:function(e,t,r){"use strict";r.d(t,{p:function(){return c}});var n=r(35492),i=r(87849),o=r(9650),a=r(87698),s=r(50305),u=r(99482);function c({abi:e,data:t}){let r=(0,o.tP)(t,0,4);if("0x"===r)throw new i.wb;let c=[...e||[],n.Up,n.hZ],l=c.find(e=>"error"===e.type&&r===(0,a.o)((0,u.t)(e)));if(!l)throw new i.yP(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,s.r)(l.inputs,(0,o.tP)(t,4)):void 0,errorName:l.name}}},49585:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var n=r(87849),i=r(50305),o=r(34482);let a="/docs/contract/decodeFunctionResult";function s({abi:e,args:t,functionName:r,data:s}){let u=e[0];if(r&&!(u=(0,o.m)({abi:e,args:t,name:r})))throw new n.xL(r,{docsPath:a});if("function"!==u.type)throw new n.xL(void 0,{docsPath:a});if(!u.outputs)throw new n.MX(u.name,{docsPath:a});let c=(0,i.r)(u.outputs,s);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},57427:function(e,t,r){"use strict";r.d(t,{E:function(){return d},S:function(){return h}});var n=r(87849),i=r(96091),o=r(14602),a=r(97553),s=r(27226),u=r(87902),c=r(9650),l=r(96676);function d(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=function({params:e,values:t}){let r=[];for(let d=0;d0?(0,a.zo)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.zo)(u.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let o=0;oe))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,o.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,s.gc)(e.toLowerCase())}}(r);if("bool"===t.type)return{dynamic:!1,encoded:(0,s.gc)((0,l.C4)(r))};if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int");return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.eC)(e,{size:32,signed:t})}}(r,{signed:e})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,u.d)(e);if(!r){let t=e;return i%32!=0&&(t=(0,s.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.zo)([(0,s.gc)((0,l.eC)(i,{size:32})),t])}}if(i!==parseInt(r))throw new n.M4({expectedSize:parseInt(r),value:e});return{dynamic:!1,encoded:(0,s.gc)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,l.$G)(e),r=Math.ceil((0,u.d)(t)/32),n=[];for(let e=0;e"type"in e&&"constructor"===e.type);if(!s)throw new n.fM({docsPath:a});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new n.cO({docsPath:a});let u=(0,o.E)(s.inputs,t);return(0,i.SM)([r,u])}},21181:function(e,t,r){"use strict";r.d(t,{R:function(){return c}});var n=r(87849),i=r(97553),o=r(87698),a=r(57427),s=r(99482),u=r(34482);function c({abi:e,args:t,functionName:r}){let c=e[0];if(r&&!(c=(0,u.m)({abi:e,args:t,name:r})))throw new n.xL(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==c.type)throw new n.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let l=(0,s.t)(c),d=(0,o.o)(l),f="inputs"in c&&c.inputs?(0,a.E)(c.inputs,t??[]):void 0;return(0,i.SM)([d,f??"0x"])}},99482:function(e,t,r){"use strict";r.d(t,{h:function(){return o},t:function(){return i}});var n=r(87849);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.wM(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`}function o(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${o(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},34482:function(e,t,r){"use strict";r.d(t,{m:function(){return i}});var n=r(14602);function i({abi:e,args:t=[],name:r}){let i=e.filter(e=>"name"in e&&e.name===r);if(0!==i.length){if(1===i.length)return i[0];for(let e of i){if(!("inputs"in e))continue;if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs||0===e.inputs.length||e.inputs.length!==t.length)continue;let r=t.every((t,r)=>{let i="inputs"in e&&e.inputs[r];return!!i&&function e(t,r){let i=typeof t,o=r.type;switch(o){case"address":return(0,n.U)(t);case"bool":return"boolean"===i;case"function":case"string":return"string"===i;default:if("tuple"===o&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o))return"number"===i||"bigint"===i;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o))return"string"===i||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:o.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,i)});if(r)return e}return i[0]}}},61867:function(e,t,r){"use strict";r.d(t,{K:function(){return u},x:function(){return s}});var n=r(96091),i=r(60213),o=r(35465),a=r(14602);function s(e,t){let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.w)((0,i.qX)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&n[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());return`0x${a.join("")}`}function u(e,t){if(!(0,a.U)(e))throw new n.b({address:e});return s(e,t)}},14602:function(e,t,r){"use strict";r.d(t,{U:function(){return i}});let n=/^0x[a-fA-F0-9]{40}$/;function i(e){return n.test(e)}},77133:function(e,t,r){"use strict";r.d(t,{n:function(){return u},y:function(){return s}});var n=r(80127),i=r(81154),o=r(45375),a=r(89544);let s=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof i.Gg&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status;function u(e,{retryDelay:t=150,retryCount:r=3}={}){return async u=>(0,a.J)(async()=>{try{return await e(u)}catch(e){switch(e.code){case o.s7.code:throw new o.s7(e);case o.B.code:throw new o.B(e);case o.LX.code:throw new o.LX(e);case o.nY.code:throw new o.nY(e);case o.XS.code:throw new o.XS(e);case o.yR.code:throw new o.yR(e);case o.Og.code:throw new o.Og(e);case o.pT.code:throw new o.pT(e);case o.KB.code:throw new o.KB(e);case o.gS.code:throw new o.gS(e);case o.Pv.code:throw new o.Pv(e);case o.GD.code:throw new o.GD(e);case o.ab.code:throw new o.ab(e);case o.PE.code:throw new o.PE(e);case o.Ts.code:throw new o.Ts(e);case o.u5.code:throw new o.u5(e);case o.I0.code:throw new o.I0(e);case o.x3.code:throw new o.x3(e);default:if(e instanceof n.G)throw e;throw new o.ir(e)}}},{delay:({count:e,error:r})=>{if(r&&r instanceof i.Gg){let e=r?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<!s(e)})}},85902:function(e,t,r){"use strict";r.d(t,{LI:function(){return a},ax:function(){return o},qg:function(){return i}});var n=r(56410);function i({chain:e,currentChainId:t}){if(!e)throw new n.Bk;if(t!==e.id)throw new n.Yl({chain:e,currentChainId:t})}function o(e,t={}){let{fees:r=e.fees,formatters:n=e.formatters,serializers:i=e.serializers}=t;return{...e,fees:r,formatters:n,serializers:i}}function a({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.mm({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.mm({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},97553:function(e,t,r){"use strict";function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}r.d(t,{SM:function(){return i},zo:function(){return n}})},68416:function(e,t,r){"use strict";function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}r.d(t,{v:function(){return n}})},27226:function(e,t,r){"use strict";r.d(t,{gc:function(){return o},vk:function(){return i}});var n=r(20605);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.$({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n2*r)throw new n.$({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},87902:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(68416);function i(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},9650:function(e,t,r){"use strict";r.d(t,{tP:function(){return a}});var n=r(20605),i=r(68416),o=r(87902);function a(e,t,r,{strict:n}={}){return(0,i.v)(e,{strict:!1})?function(e,t,r,{strict:n}={}){s(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&u(i,t,r),i}(e,t,r,{strict:n}):function(e,t,r,{strict:n}={}){s(e,t);let i=e.slice(t,r);return n&&u(i,t,r),i}(e,t,r,{strict:n})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,o.d)(e)-1)throw new n.m({offset:t,position:"start",size:(0,o.d)(e)})}function u(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.d)(e)!==r-t)throw new n.m({offset:r,position:"end",size:(0,o.d)(e)})}},63950:function(e,t,r){"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;et)throw new n.M6({givenSize:(0,i.d)(e),maxSize:t})}function u(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2,o=(1n<<8n*BigInt(i)-1n)-1n;return n<=o?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,o.f)(r)),"0x00"===(0,o.f)(r))return!1;if("0x01"===(0,o.f)(r))return!0;throw new n.Cd(r)}function l(e,t={}){return Number(u(e,t))}function d(e,t={}){let r=(0,a.nr)(e);return t.size&&(s(r,{size:t.size}),r=(0,o.f)(r,{dir:"right"})),new TextDecoder().decode(r)}},60213:function(e,t,r){"use strict";r.d(t,{O0:function(){return c},nr:function(){return l},qX:function(){return d}});var n=r(80127),i=r(68416),o=r(27226),a=r(71791),s=r(96676);let u=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){let r=(0,s.eC)(e,t);return l(r)}(e,t):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.Yf)(r,{size:t.size}),(0,o.vk)(r,{size:t.size})):r}(e,t):(0,i.v)(e)?l(e,t):d(e,t)}function l(e,t={}){let r=e;t.size&&((0,a.Yf)(r,{size:t.size}),r=(0,o.vk)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let s=new Uint8Array(i.length/2);for(let e=0;et.toString(16).padStart(2,"0"));function s(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?u(e,t):c(e,t)}function u(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Yf)(r,{size:t.size}),(0,i.vk)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;tr||s"string"==typeof e?e:(0,i.Tr)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let a=(0,n.$)("block",o)},64435:function(e,t,r){"use strict";function n(e,{format:t}){if(!t)return{};let r=Object.keys(t({}));return r.reduce((t,r)=>(e?.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}r.d(t,{K:function(){return n}})},49161:function(e,t,r){"use strict";function n(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{let i=t(e);if(r)for(let e of r)delete i[e];return{...i,...n(e)}},type:e})}r.d(t,{$:function(){return n}})},86319:function(e,t,r){"use strict";function n(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}r.d(t,{U:function(){return n}})},56792:function(e,t,r){"use strict";r.d(t,{Tr:function(){return a},c8:function(){return o},y_:function(){return s}});var n=r(71791),i=r(49161);let o={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function a(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?o[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}let s=(0,i.$)("transaction",a)},45797:function(e,t,r){"use strict";r.d(t,{d:function(){return c},f:function(){return u}});var n=r(71791),i=r(49161),o=r(86319),a=r(56792);let s={"0x0":"reverted","0x1":"success"};function u(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,o.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.ly)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.c8[e.type]||e.type:null}}let c=(0,i.$)("transactionReceipt",u)},41145:function(e,t,r){"use strict";r.d(t,{i:function(){return a},t:function(){return o}});var n=r(96676),i=r(49161);function o(e){return{...e,gas:void 0!==e.gas?(0,n.eC)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,n.eC)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,n.eC)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,n.eC)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,n.eC)(e.nonce):void 0,value:void 0!==e.value?(0,n.eC)(e.value):void 0}}let a=(0,i.$)("transactionRequest",o)},87698:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(9650),i=r(38601);let o=e=>"string"==typeof e?(0,n.tP)((0,i.F)(e),0,4):(0,n.tP)((0,i.J)(e),0,4)},38601:function(e,t,r){"use strict";r.d(t,{J:function(){return l},F:function(){return c}});var n=r(99482);let i=/((function|event)\s)?(.*)(\((.*)\))/;function o(e){let t=e.match(i),r=t?.[2]||void 0,n=t?.[3],o=t?.[5]||void 0;return{type:r,name:n,params:o}}var a=r(60213),s=r(35465);let u=e=>(0,s.w)((0,a.O0)(e));function c(e){let t=o(e).name,r=function(e){let t=o(e).params,r=t?.split(",").map(e=>e.trim().split(" "));return r?.map(e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}}))}(e)||[];return u(`${t}(${r.map(({type:e})=>e).join(",")})`)}function l(e){return u((0,n.t)(e))}},35465:function(e,t,r){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}r.d(t,{w:function(){return R}});var o={number:n,bool:function(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)},bytes:i,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)},exists:function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},output:function(e,t){i(e);let r=t.outputLen;if(e.length>s&a)}:{h:0|Number(e>>s&a),l:0|Number(e&a)}}let c=(e,t)=>BigInt(e>>>0)<>>0);var l={fromBig:u,split:function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;ie>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<>>32-r,rotlSL:(e,t,r)=>t<>>32-r,rotlBH:(e,t,r)=>t<>>64-r,rotlBL:(e,t,r)=>e<>>64-r,add:function(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/4294967296|0)|0,l:0|i}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/4294967296|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/4294967296|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/4294967296|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};let d=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),f=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!f)throw Error("Non little-endian hardware is not supported");function h(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}(e)),!(e instanceof Uint8Array))throw TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));class p{clone(){return this._cloneInto()}}let[m,g,y]=[[],[],[]],b=BigInt(0),v=BigInt(1),w=BigInt(2),E=BigInt(7),A=BigInt(256),P=BigInt(113);for(let e=0,t=v,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],m.push(2*(5*n+r)),g.push((e+1)*(e+2)/2%64);let i=b;for(let e=0;e<7;e++)(t=(t<>E)*P)%A)&w&&(i^=v<<(v<r>32?l.rotlBH(e,t,r):l.rotlSH(e,t,r),I=(e,t,r)=>r>32?l.rotlBL(e,t,r):l.rotlSL(e,t,r);class T extends p{constructor(e,t,r,n=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,o.number(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=d(this.state)}keccak(){!function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=C(o,a,1)^r[n],u=I(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=g[r],o=C(t,i,n),a=I(t,i,n),s=m[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=x[n],e[1]^=O[n]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){o.exists(this);let{blockLen:t,state:r}=this;e=h(e);let n=e.length;for(let i=0;i=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return o.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(o.output(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new T(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}let S=(e,t,r)=>(function(e){let t=t=>e().update(h(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t})(()=>new T(t,e,r));S(6,144,28),S(6,136,32),S(6,104,48),S(6,72,64),S(1,144,28);let _=S(1,136,32);S(1,104,48),S(1,72,64);let B=(e,t,r)=>(function(e){let t=(t,r)=>e(r).update(h(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t})((n={})=>new T(t,e,void 0===n.dkLen?r:n.dkLen,!0));B(31,168,16),B(31,136,32);var j=r(68416),D=r(60213),M=r(96676);function R(e,t){let r=_((0,j.v)(e,{strict:!1})?(0,D.O0)(e):e);return"bytes"===(t||"hex")?r:(0,M.NC)(r)}},53610:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});let n=new Map;function i({fn:e,id:t,shouldSplitBatch:r,wait:i=0}){let o=async()=>{let t=u();a();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{t.forEach(({pendingPromise:t},r)=>t.resolve?.([e[r],e]))}).catch(e=>{t.forEach(({pendingPromise:t})=>t.reject?.(e))})},a=()=>n.delete(t),s=()=>u().map(({args:e})=>e),u=()=>n.get(t)||[],c=e=>n.set(t,[...u(),e]);return{flush:a,async schedule(e){let t={},n=new Promise((e,r)=>{t.resolve=e,t.reject=r}),a=r?.([...s(),e]);a&&o();let l=u().length>0;return l?(c({args:e,pendingPromise:t}),n):(c({args:e,pendingPromise:t}),setTimeout(o,i),n)}}}},89544:function(e,t,r){"use strict";r.d(t,{J:function(){return i}});var n=r(90739);function i(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise((o,a)=>{let s=async({count:u=0}={})=>{let c=async({error:e})=>{let r="function"==typeof t?t({count:u,error:e}):t;r&&await (0,n.D)(r),s({count:u+1})};try{let t=await e();o(t)}catch(e){if(uJSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},98076:function(e,t,r){"use strict";r.d(t,{F:function(){return u}});var n=r(17e3),i=r(96091),o=r(55370),a=r(92966),s=r(14602);function u(e){let{account:t,gasPrice:r,maxFeePerGas:u,maxPriorityFeePerGas:c,to:l}=e,d=t?(0,n.T)(t):void 0;if(d&&!(0,s.U)(d.address))throw new i.b({address:d.address});if(l&&!(0,s.U)(l))throw new i.b({address:l});if(void 0!==r&&(void 0!==u||void 0!==c))throw new a.xY;if(u&&u>2n**256n-1n)throw new o.Hh({maxFeePerGas:u});if(c&&u&&c>u)throw new o.cs({maxFeePerGas:u,maxPriorityFeePerGas:c})}},48516:function(e,t,r){"use strict";r.d(t,{h:function(){return d}});var n=r(17e3),i=r(59100),o=r(34726),a=r(9216),s=r(50996),u=r(52440),c=r(80127),l=r(98076);async function d(e,t){let{account:r,chain:d=e.chain,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g}=t;if(!r)throw new u.o;let y=(0,n.T)(r),b=await (0,o.Q)(e,{blockTag:"latest"}),v={...t,from:y.address};if(void 0===g&&(v.nonce=await (0,s.K)(e,{address:y.address,blockTag:"pending"})),"bigint"==typeof b.baseFeePerGas&&void 0===h){let e=1500000000n;if(void 0!==d?.fees?.defaultPriorityFee&&(e="bigint"==typeof d.fees.defaultPriorityFee?d.fees.defaultPriorityFee:await d.fees.defaultPriorityFee({block:b,request:v})),void 0===p)v.maxPriorityFeePerGas=m??e,v.maxFeePerGas=120n*b.baseFeePerGas/100n+v.maxPriorityFeePerGas;else{if(void 0===m&&p{for(let r of e){let{name:e,type:f}=r,h=t[e],p=f.match(c);if(p&&("number"==typeof h||"bigint"==typeof h)){let[e,t,r]=p;(0,s.eC)(h,{signed:"int"===t,size:parseInt(r)/8})}if("address"===f&&"string"==typeof h&&!(0,o.U)(h))throw new i.b({address:h});let m=f.match(u);if(m){let[e,t]=m;if(t&&(0,a.d)(h)!==parseInt(t))throw new n.KY({expectedSize:parseInt(t),givenSize:(0,a.d)(h)})}let g=l[f];g&&d(g,h)}};if(l.EIP712Domain&&e&&d(l.EIP712Domain,e),"EIP712Domain"!==r){let e=l[r];d(e,t)}}},84058:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(7995),i=r(23935);function o(e,t="wei"){return(0,i.b)(e,n.ez[t])}},73524:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(7995),i=r(23935);function o(e,t="wei"){return(0,i.b)(e,n.Zn[t])}},23935:function(e,t,r){"use strict";function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,o]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}r.d(t,{b:function(){return n}})},90739:function(e,t,r){"use strict";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{D:function(){return n}})},58573:function(e,t,r){"use strict";let n;function i(){}r.d(t,{eM:function(){return ew},_g:function(){return ey},mA:function(){return eM},KQ:function(){return ek},$4:function(){return eL},qL:function(){return eq},S4:function(){return eK},c9:function(){return eY},F6:function(){return eZ},LN:function(){return ez},g0:function(){return eV}});let o="undefined"==typeof window||"Deno"in window;function a(){}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,r){return E(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,r){return E(e)?"function"==typeof t?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function d(e,t,r){return E(e)?[{...t,queryKey:e},r]:[e||{},t]}function f(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(E(a)){if(n){if(t.queryHash!==p(a,t.options))return!1}else{if(!g(t.queryKey,a))return!1}}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(void 0===i||i===t.state.fetchStatus)&&(!o||!!o(t))}function h(e,t){let{exact:r,fetching:n,predicate:i,mutationKey:o}=e;if(E(o)){if(!t.options.mutationKey)return!1;if(r){if(m(t.options.mutationKey)!==m(o))return!1}else{if(!g(t.options.mutationKey,o))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function p(e,t){let r=(null==t?void 0:t.queryKeyHashFn)||m;return r(e)}function m(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!g(e[r],t[r]))}function y(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(w(r)&&r.hasOwnProperty("isPrototypeOf"))}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return Array.isArray(e)}function A(e){return new Promise(t=>{setTimeout(t,e)})}function P(e){A(0).then(e)}function x(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=b(t)&&b(r);if(n||v(t)&&v(r)){let i=n?t.length:Object.keys(t).length,o=n?r:Object.keys(r),a=o.length,s=n?[]:{},u=0;for(let i=0;i{e()},n=e=>{e()},i=e=>{let r;t++;try{r=e()}finally{--t||s()}return r},o=n=>{t?e.push(n):P(()=>{r(n)})},a=e=>(...t)=>{o(()=>{e(...t)})},s=()=>{let t=e;e=[],t.length&&P(()=>{n(()=>{t.forEach(e=>{r(e)})})})},u=e=>{r=e},c=e=>{n=e};return{batch:i,batchCalls:a,schedule:o,setNotifyFunction:u,setBatchNotifyFunction:c}}();class I{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let T=new class extends I{constructor(){super(),this.setup=e=>{if(!o&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},S=["online","offline"],_=new class extends I{constructor(){super(),this.setup=e=>{if(!o&&window.addEventListener){let t=()=>e();return S.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{S.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let t=this.online!==e;t&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function B(e){return Math.min(1e3*2**e,3e4)}function j(e){return(null!=e?e:"online")!=="online"||_.isOnline()}class D{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function M(e){return e instanceof D}function R(e){let t,r,n,i=!1,o=0,a=!1,s=new Promise((e,t)=>{r=e,n=t}),u=t=>{a||(h(new D(t)),null==e.abort||e.abort())},c=()=>{i=!0},l=()=>{i=!1},d=()=>!T.isFocused()||"always"!==e.networkMode&&!_.isOnline(),f=n=>{a||(a=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},h=r=>{a||(a=!0,null==e.onError||e.onError(r),null==t||t(),n(r))},p=()=>new Promise(r=>{t=e=>{let t=a||!d();return t&&r(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,a||null==e.onContinue||e.onContinue()}),m=()=>{let t;if(!a){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{var r,n;if(a)return;let s=null!=(r=e.retry)?r:3,u=null!=(n=e.retryDelay)?n:B,c="function"==typeof u?u(o,t):u,l=!0===s||"number"==typeof s&&o{if(d())return p()}).then(()=>{i?h(t):m()})})}};return j(e.networkMode)?m():p().then(m),{promise:s,cancel:u,continue:()=>{let e=null==t?void 0:t();return e?s:Promise.resolve()},cancelRetry:c,continueRetry:l}}class k{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),s(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:o?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class N extends k{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||O,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let r=x(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(a).catch(a):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!u(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n,i,o;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);let a=function(){if("function"==typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};u(s);let c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};u(l),null==(r=this.options.behavior)||r.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=l.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(o=l.fetchOptions)?void 0:o.meta});let d=e=>{if(M(e)&&e.silent||this.dispatch({type:"error",error:e}),!M(e)){var t,r,n,i;null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=R({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,r,n,i;if(void 0===e){d(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:j(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if(M(i)&&i.revert&&this.revertState)return{...this.revertState};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),C.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class U extends I{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;let i=t.queryKey,o=null!=(n=t.queryHash)?n:p(i,t),a=this.get(o);return a||(a=new N({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){C.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=d(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>f(r,e))}findAll(e,t){let[r]=d(e,t);return Object.keys(r).length>0?this.queries.filter(e=>f(r,e)):this.queries}notify(e){C.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){C.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){C.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class L extends k{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||O,this.observers=[],this.state=e.state||F(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,r,n,i,o,a,s,u,c,l,d,f,h,p,m,g,y,b,v;let w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(l=(d=this.options).onMutate)?void 0:l.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let f=await (()=>{var e;return this.retryer=R({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,f,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,f,this.state.variables,this.state.context)),await (null==(i=(o=this.mutationCache.config).onSettled)?void 0:i.call(o,f,null,this.state.variables,this.state.context,this)),await (null==(a=(s=this.options).onSettled)?void 0:a.call(s,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{throw await (null==(f=(h=this.mutationCache.config).onError)?void 0:f.call(h,e,this.state.variables,this.state.context,this)),await (null==(p=(m=this.options).onError)?void 0:p.call(m,e,this.state.variables,this.state.context)),await (null==(g=(y=this.mutationCache.config).onSettled)?void 0:g.call(y,void 0,e,this.state.variables,this.state.context,this)),await (null==(b=(v=this.options).onSettled)?void 0:b.call(v,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!j(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),C.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function F(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class H extends I{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new L({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){C.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>h(e,t))}findAll(e){return this.mutations.filter(t=>h(e,t))}notify(e){C.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return C.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(a)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function q(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class z{constructor(e={}){this.queryCache=e.queryCache||new U,this.mutationCache=e.mutationCache||new H,this.logger=e.logger||O,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=T.subscribe(()=>{T.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=_.subscribe(()=>{_.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[r]=d(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){let n=c(e,t,r),i=this.getQueryData(n.queryKey);return i?Promise.resolve(i):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let r=t.data;return[e,r]})}setQueryData(e,t,r){let n=this.queryCache.find(e),i=null==n?void 0:n.state.data,o="function"==typeof t?t(i):t;if(void 0===o)return;let a=c(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return C.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=d(e,t),n=this.queryCache;C.batch(()=>{n.findAll(r).forEach(e=>{n.remove(e)})})}resetQueries(e,t,r){let[n,i]=d(e,t,r),o=this.queryCache,a={type:"active",...n};return C.batch(()=>(o.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(a,i)))}cancelQueries(e,t,r){let[n,i={}]=d(e,t,r);void 0===i.revert&&(i.revert=!0);let o=C.batch(()=>this.queryCache.findAll(n).map(e=>e.cancel(i)));return Promise.all(o).then(a).catch(a)}invalidateQueries(e,t,r){let[n,i]=d(e,t,r);return C.batch(()=>{var e,t;if(this.queryCache.findAll(n).forEach(e=>{e.invalidate()}),"none"===n.refetchType)return Promise.resolve();let r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,i)})}refetchQueries(e,t,r){let[n,i]=d(e,t,r),o=C.batch(()=>this.queryCache.findAll(n).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})})),s=Promise.all(o).then(a);return null!=i&&i.throwOnError||(s=s.catch(a)),s}fetchQuery(e,t,r){let n=c(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);let o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(a).catch(a)}fetchInfiniteQuery(e,t,r){let n=c(e,t,r);return n.behavior={onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,o,a,s;let u;let c=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,l=null==(n=e.fetchOptions)?void 0:null==(i=n.meta)?void 0:i.fetchMore,d=null==l?void 0:l.pageParam,f=(null==l?void 0:l.direction)==="forward",h=(null==l?void 0:l.direction)==="backward",p=(null==(o=e.state.data)?void 0:o.pages)||[],m=(null==(a=e.state.data)?void 0:a.pageParams)||[],g=m,y=!1,b=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?y=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{y=!0}),e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(e,t,r,n)=>(g=n?[t,...g]:[...g,t],n?[r,...e]:[...e,r]),E=(t,r,n,i)=>{if(y)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};b(o);let a=v(o),s=Promise.resolve(a).then(e=>w(t,n,e,i));return s};if(p.length){if(f){let t=void 0!==d,r=t?d:q(e.options,p);u=E(p,t,r)}else if(h){let t=void 0!==d,r=t?d:null==(s=e.options).getPreviousPageParam?void 0:s.getPreviousPageParam(p[0],p);u=E(p,t,r,!0)}else{g=[];let t=void 0===e.options.getNextPageParam,r=!c||!p[0]||c(p[0],0,p);u=r?E([],t,m[0]):Promise.resolve(w([],m[0],p[0]));for(let r=1;r{let i=!c||!p[r]||c(p[r],r,p);if(i){let i=t?m[r]:q(e.options,n);return E(n,t,i)}return Promise.resolve(w(n,m[r],p[r]))})}}else u=E([]);let A=u.then(e=>({pages:e,pageParams:g}));return A}}},this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(a).catch(a)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>m(e)===m(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>g(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>m(e)===m(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>g(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=p(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function $(e){return e.state.isPaused}function G(e){return"success"===e.state.status}let V=["added","removed","updated"];function W(e){return V.includes(e)}async function K({queryClient:e,persister:t,maxAge:r=864e5,buster:n="",hydrateOptions:i}){try{let o=await t.restoreClient();if(o){if(o.timestamp){let a=Date.now()-o.timestamp>r,s=o.buster!==n;a||s?t.removeClient():function(e,t,r){if("object"!=typeof t||null===t)return;let n=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],a=t.queries||[];o.forEach(t=>{var i;n.build(e,{...null==r?void 0:null==(i=r.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)}),a.forEach(t=>{var n;let o=i.get(t.queryHash),a={...t.state,fetchStatus:"idle"};if(o){o.state.dataUpdatedAt{n(e)&&r.push({mutationKey:e.options.mutationKey,state:e.state})})}if(!1!==t.dehydrateQueries){let r=t.shouldDehydrateQuery||G;e.getQueryCache().getAll().forEach(e=>{r(e)&&n.push({state:e.state,queryKey:e.queryKey,queryHash:e.queryHash})})}return{mutations:r,queries:n}}(e,n)};await t.persistClient(i)}var Y=r(62205),J=r(37010);let Z=J.createContext(void 0),X=J.createContext(!1);function ee(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Z),window.ReactQueryClientContext):Z)}let et=({context:e}={})=>{let t=J.useContext(ee(e,J.useContext(X)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},er=({client:e,children:t,context:r,contextSharing:n=!1})=>{J.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let i=ee(r,n);return J.createElement(X.Provider,{value:!r&&n},J.createElement(i.Provider,{value:e},t))},en=J.createContext(!1),ei=()=>J.useContext(en);en.Provider;let eo=J.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),ea=()=>J.useContext(eo);var es=r(34076);class eu extends I{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let r=this.options;this.options=this.client.defaultMutationOptions(e),y(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:F(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){C.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,i,o,a,s,u;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(i=this.mutateOptions).onSettled)||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(o=(a=this.mutateOptions).onError)||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(u=this.mutateOptions).onSettled)||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}let ec=es.useSyncExternalStore;function el(){}class ed extends I{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),ef(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eh(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),y(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let i=this.hasListeners();i&&ep(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let o=this.computeRefetchInterval();i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),r=this.createResult(t,e);return e.keepPreviousData||(void 0!==e.placeholderData?!r.isPlaceholderData:y(this.getCurrentResult(),r))||(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(a)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),o||this.currentResult.isStale||!s(this.options.staleTime))return;let e=u(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!o&&!1!==this.options.enabled&&s(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||T.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let r;let n=this.currentQuery,i=this.options,o=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,u=e!==n,c=u?e.state:this.currentQueryInitialState,l=u?this.currentResult:this.previousQueryResult,{state:d}=e,{dataUpdatedAt:f,error:h,errorUpdatedAt:p,fetchStatus:m,status:g}=d,y=!1,b=!1;if(t._optimisticResults){let r=this.hasListeners(),o=!r&&ef(e,t),a=r&&ep(e,n,t,i);(o||a)&&(m=j(e.options.networkMode)?"fetching":"paused",f||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!d.dataUpdatedAt&&null!=l&&l.isSuccess&&"error"!==g)r=l.data,f=l.dataUpdatedAt,g=l.status,y=!0;else if(t.select&&void 0!==d.data){if(o&&d.data===(null==a?void 0:a.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(d.data),r=x(null==o?void 0:o.data,r,t),this.selectResult=r,this.selectError=null}catch(e){this.selectError=e}}else r=d.data;if(void 0!==t.placeholderData&&void 0===r&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",r=x(null==o?void 0:o.data,e,t),b=!0)}this.selectError&&(h=this.selectError,r=this.selectResult,p=Date.now(),g="error");let v="fetching"===m,w="loading"===g,E="error"===g,A={status:g,fetchStatus:m,isLoading:w,isSuccess:"success"===g,isError:E,isInitialLoading:w&&v,data:r,dataUpdatedAt:f,error:h,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!w,isLoadingError:E&&0===d.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:b,isPreviousData:y,isRefetchError:E&&0!==d.dataUpdatedAt,isStale:em(e,t),refetch:this.refetch,remove:this.remove};return A}updateResult(e){let t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,y(r,t))return;this.currentResult=r;let n={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.trackedProps.size)return!0;let n=new Set(null!=r?r:this.trackedProps);return this.options.useErrorBoundary&&n.add("error"),Object.keys(this.currentResult).some(e=>{let r=this.currentResult[e]!==t[e];return r&&n.has(e)})})()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||M(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){C.batch(()=>{var t,r,n,i,o,a,s,u;e.onSuccess?(null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(i=this.options).onSettled)||n.call(i,this.currentResult.data,null)):e.onError&&(null==(o=(a=this.options).onError)||o.call(a,this.currentResult.error),null==(s=(u=this.options).onSettled)||s.call(u,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function ef(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&eh(e,t,t.refetchOnMount)}function eh(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&em(e,t)}return!1}function ep(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&em(e,r)}function em(e,t){return e.isStaleByTime(t.staleTime)}var eg=r(65173);function ey({queryClient:e=new z({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=(0,Y.o6)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:Y.wp}),persister:r="undefined"!=typeof window?function({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:n=JSON.stringify,deserialize:o=JSON.parse,retry:a}){if(e){let i=r=>{try{e.setItem(t,n(r));return}catch(e){return e}};return{persistClient:function(e,t=100){let r=null;return function(...n){null===r&&(r=setTimeout(()=>{e(...n),r=null},t))}}(e=>{let t=e,r=i(t),n=0;for(;r&&t;)n++,(t=null==a?void 0:a({persistedClient:t,error:r,errorCount:n}))&&(r=i(t))},r),restoreClient:()=>{let r=e.getItem(t);if(r)return o(r)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:i,restoreClient:()=>void 0,removeClient:i}}({key:"cache",storage:t,serialize:e=>e,deserialize:e=>e}):void 0,...n}){let o=(0,Y._g)({...n,storage:t});return r&&function(e){let t;K(e).then(()=>{(function(e){let t=e.queryClient.getQueryCache().subscribe(t=>{W(t.type)&&Q(e)}),r=e.queryClient.getMutationCache().subscribe(t=>{W(t.type)&&Q(e)});()=>{t(),r()}})(e)})}({queryClient:e,persister:r,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime&&!1!==e.queryKey[0].persist}}),Object.assign(o,{queryClient:e})}var eb=J.createContext(void 0),ev=J.createContext(void 0);function ew({children:e,config:t}){return J.createElement(eb.Provider,{children:J.createElement(er,{children:e,client:t.queryClient,context:ev}),value:t})}function eE(){let e=J.useContext(eb);if(!e)throw Error("`useConfig` must be used within `WagmiConfig`.\n\nRead more: https://wagmi.sh/react/WagmiConfig");return e}var eA=es.useSyncExternalStore;function eP(e){return"[object Object]"===Object.prototype.toString.call(e)}function ex(e){return JSON.stringify(e,(e,t)=>!function(e){if(!eP(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(eP(r)&&r.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}))}function eO(e,t,r){let n=l(e,t,r);return function(e,t,r){var n,i;let o=l(e,void 0,void 0),a=et({context:o.context}),[s]=J.useState(()=>new eu(a,o));J.useEffect(()=>{s.setOptions(o)},[s,o]);let u=ec(J.useCallback(e=>s.subscribe(C.batchCalls(e)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=J.useCallback((e,t)=>{s.mutate(e,t).catch(el)},[s]);if(u.error&&(n=s.options.useErrorBoundary,i=[u.error],"function"==typeof n?n(...i):!!n))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}({context:ev,...n})}function eC(e,t,r){let n=Array.isArray(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e,i=function(e,t){var r,n;let i=et({context:e.context}),o=ei(),a=ea(),s=i.defaultQueryOptions({...e,queryKeyHashFn:ex});s._optimisticResults=o?"isRestoring":"optimistic",s.onError&&(s.onError=C.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=C.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=C.batchCalls(s.onSettled)),s.suspense&&"number"!=typeof s.staleTime&&(s.staleTime=1e3),(s.suspense||s.useErrorBoundary)&&!a.isReset()&&(s.retryOnMount=!1);let[u]=J.useState(()=>new t(i,s)),c=u.getOptimisticResult(s);if(eA(J.useCallback(e=>o?()=>void 0:u.subscribe(C.batchCalls(e)),[u,o]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),J.useEffect(()=>{a.clearReset()},[a]),J.useEffect(()=>{u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&c.isLoading&&c.isFetching&&!o)throw u.fetchOptimistic(s).then(({data:e})=>{s.onSuccess?.(e),s.onSettled?.(e,null)}).catch(e=>{a.clearReset(),s.onError?.(e),s.onSettled?.(void 0,e)});if(c.isError&&!a.isReset()&&!c.isFetching&&(r=s.useErrorBoundary,n=[c.error,u.getCurrentQuery()],"function"==typeof r?r(...n):!!r))throw c.error;let l="loading"===c.status&&"idle"===c.fetchStatus?"idle":c.status,d="loading"===l&&"fetching"===c.fetchStatus;return{...c,defaultedOptions:s,isIdle:"idle"===l,isLoading:d,observer:u,status:l}}({context:ev,...n},ed),o={data:i.data,error:i.error,fetchStatus:i.fetchStatus,isError:i.isError,isFetched:i.isFetched,isFetchedAfterMount:i.isFetchedAfterMount,isFetching:i.isFetching,isIdle:i.isIdle,isLoading:i.isLoading,isRefetching:i.isRefetching,isSuccess:i.isSuccess,refetch:i.refetch,status:i.status,internal:{dataUpdatedAt:i.dataUpdatedAt,errorUpdatedAt:i.errorUpdatedAt,failureCount:i.failureCount,isFetchedAfterMount:i.isFetchedAfterMount,isLoadingError:i.isLoadingError,isPaused:i.isPaused,isPlaceholderData:i.isPlaceholderData,isPreviousData:i.isPreviousData,isRefetchError:i.isRefetchError,isStale:i.isStale,remove:i.remove}};return i.defaultedOptions.notifyOnChangeProps?o:function(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(n),e[n])})}),r}(o,i.observer)}var eI=()=>et({context:ev});function eT({chainId:e}={}){return(0,eg.useSyncExternalStoreWithSelector)(t=>(0,Y.pC)({chainId:e},t),()=>(0,Y.uV)({chainId:e}),()=>(0,Y.uV)({chainId:e}),e=>e,(e,t)=>e.uid===t.uid)}function eS({chainId:e}={}){let t=eT({chainId:e});return t.chain.id}function e_({chainId:e,scopeKey:t}){return[{entity:"blockNumber",chainId:e,scopeKey:t}]}function eB({queryKey:[{chainId:e}]}){return(0,Y.RQ)({chainId:e})}var ej=e=>"object"==typeof e&&!Array.isArray(e);function eD(e,t,r=t,n=Y.vZ){let i=J.useRef([]),o=(0,eg.useSyncExternalStoreWithSelector)(e,t,r,e=>e,(e,t)=>{if(ej(e)&&ej(t)&&i.current.length){for(let r of i.current){let i=n(e[r],t[r]);if(!i)return!1}return!0}return n(e,t)});if(ej(o)){let e={...o};return Object.defineProperties(e,Object.entries(e).reduce((e,[t,r])=>({...e,[t]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(t)||i.current.push(t),r)}}),{})),e}return o}function eM({onConnect:e,onDisconnect:t}={}){let r=eE(),n=J.useCallback(e=>(0,Y.uH)(e),[r]),i=eD(n,Y.D0),o=J.useRef(),a=o.current;return J.useEffect(()=>{a?.status!=="connected"&&"connected"===i.status&&e?.({address:i.address,connector:i.connector,isReconnected:a?.status==="reconnecting"||a?.status===void 0}),a?.status==="connected"&&"disconnected"===i.status&&t?.(),o.current=i},[e,t,a,i]),i}function eR({queryKey:[{address:e,chainId:t,formatUnits:r,token:n}]}){if(!e)throw Error("address is required");return(0,Y.EG)({address:e,chainId:t,formatUnits:r,token:n})}function ek({address:e,cacheTime:t,chainId:r,enabled:n=!0,formatUnits:i,scopeKey:o,staleTime:a,suspense:s,token:u,watch:c,onError:l,onSettled:d,onSuccess:f}={}){let h=eS({chainId:r}),p=J.useMemo(()=>(function({address:e,chainId:t,formatUnits:r,scopeKey:n,token:i}){return[{entity:"balance",address:e,chainId:t,formatUnits:r,scopeKey:n,token:i}]})({address:e,chainId:h,formatUnits:i,scopeKey:o,token:u}),[e,h,i,o,u]),m=eC(p,eR,{cacheTime:t,enabled:!!(n&&e),staleTime:a,suspense:s,onError:l,onSettled:d,onSuccess:f});return!function({chainId:e,enabled:t,queryKey:r}){let n=eI(),i=J.useCallback(()=>n.invalidateQueries({queryKey:r},{cancelRefetch:!1}),[n,r]);!function({cacheTime:e=0,chainId:t,enabled:r=!0,scopeKey:n,staleTime:i,suspense:o,watch:a=!1,onBlock:s,onError:u,onSettled:c,onSuccess:l}={}){let d=eS({chainId:t}),f=eT({chainId:d}),h=function({chainId:e}={}){return(0,eg.useSyncExternalStoreWithSelector)(t=>(0,Y.fq)({chainId:e},t),()=>(0,Y.jr)({chainId:e}),()=>(0,Y.jr)({chainId:e}),e=>e,(e,t)=>e?.uid===t?.uid)}({chainId:d}),p=eI();J.useEffect(()=>{if(!r||!a&&!s)return;let e=(h??f).watchBlockNumber({onBlockNumber:e=>{a&&p.setQueryData(e_({chainId:d,scopeKey:n}),e),s&&s(e)},emitOnBegin:!0});return e},[d,n,s,f,p,a,h,r]),eC(e_({scopeKey:n,chainId:d}),eB,{cacheTime:e,enabled:r,staleTime:i,suspense:o,onError:u,onSettled:c,onSuccess:l})}({chainId:e,enabled:t,onBlock:t?i:void 0,scopeKey:t?void 0:"idle"})}({chainId:h,enabled:!!(n&&c&&e),queryKey:p}),m}var eN=e=>[{entity:"connect",...e}],eU=e=>{let{connector:t,chainId:r}=e;if(!t)throw Error("connector is required");return(0,Y.$j)({connector:t,chainId:r})};function eL({chainId:e,connector:t,onError:r,onMutate:n,onSettled:i,onSuccess:o}={}){let a=eE(),{data:s,error:u,isError:c,isIdle:l,isLoading:d,isSuccess:f,mutate:h,mutateAsync:p,reset:m,status:g,variables:y}=eO(eN({connector:t,chainId:e}),eU,{onError:r,onMutate:n,onSettled:i,onSuccess:o}),b=J.useCallback(r=>h({chainId:r?.chainId??e,connector:r?.connector??t}),[e,t,h]),v=J.useCallback(r=>p({chainId:r?.chainId??e,connector:r?.connector??t}),[e,t,p]);return{connect:b,connectAsync:v,connectors:a.connectors,data:s,error:u,isError:c,isIdle:l,isLoading:d,isSuccess:f,pendingConnector:y?.connector,reset:m,status:g,variables:y}}var eF=[{entity:"disconnect"}],eH=()=>(0,Y.zP)();function eq({onError:e,onMutate:t,onSettled:r,onSuccess:n}={}){let{error:i,isError:o,isIdle:a,isLoading:s,isSuccess:u,mutate:c,mutateAsync:l,reset:d,status:f}=eO(eF,eH,{...e?{onError(t,r,n){e(t,n)}}:{},onMutate:t,...r?{onSettled(e,t,n,i){r(t,i)}}:{},...n?{onSuccess(e,t,r){n(r)}}:{}});return{disconnect:c,disconnectAsync:l,error:i,isError:o,isIdle:a,isLoading:s,isSuccess:u,reset:d,status:f}}function ez(){let e=eE(),t=(0,J.useCallback)(e=>(0,Y.QC)(e),[e]);return eD(t,Y.Hy)}var e$=e=>[{entity:"switchNetwork",...e}],eG=e=>{let{chainId:t}=e;if(!t)throw Error("chainId is required");return(0,Y.If)({chainId:t})};function eV({chainId:e,throwForSwitchChainNotSupported:t,onError:r,onMutate:n,onSettled:i,onSuccess:o}={}){let a,s;let u=eE(),c=function(){let[,e]=J.useReducer(e=>e+1,0);return e}(),{data:l,error:d,isError:f,isIdle:h,isLoading:p,isSuccess:m,mutate:g,mutateAsync:y,reset:b,status:v,variables:w}=eO(e$({chainId:e}),eG,{onError:r,onMutate:n,onSettled:i,onSuccess:o}),E=J.useCallback(t=>g({chainId:t??e}),[e,g]),A=J.useCallback(t=>y({chainId:t??e}),[e,y]);J.useEffect(()=>{let e=u.subscribe(({chains:e,connector:t})=>({chains:e,connector:t}),c);return e},[u,c]);let P=!!u.connector?.switchChain;return(t||P)&&(a=E,s=A),{chains:u.chains??[],data:l,error:d,isError:f,isIdle:h,isLoading:p,isSuccess:m,pendingChainId:w?.chainId,reset:b,status:v,switchNetwork:a,switchNetworkAsync:s,variables:w}}function eW({queryKey:[{chainId:e,name:t}]}){if(!t)throw Error("name is required");return(0,Y.bh)({chainId:e,name:t})}function eK({cacheTime:e,chainId:t,enabled:r=!0,name:n,scopeKey:i,staleTime:o=864e5,suspense:a,onError:s,onSettled:u,onSuccess:c}={}){let l=eS({chainId:t});return eC(function({chainId:e,name:t,scopeKey:r}){return[{entity:"ensAddress",chainId:e,name:t,scopeKey:r}]}({chainId:l,name:n,scopeKey:i}),eW,{cacheTime:e,enabled:!!(r&&l&&n),staleTime:o,suspense:a,onError:s,onSettled:u,onSuccess:c})}function eQ({queryKey:[{name:e,chainId:t}]}){if(!e)throw Error("name is required");return(0,Y.w6)({name:e,chainId:t})}function eY({cacheTime:e,chainId:t,enabled:r=!0,name:n,scopeKey:i,staleTime:o=864e5,suspense:a,onError:s,onSettled:u,onSuccess:c}={}){let l=eS({chainId:t});return eC(function({name:e,chainId:t,scopeKey:r}){return[{entity:"ensAvatar",name:e,chainId:t,scopeKey:r}]}({name:n,chainId:l,scopeKey:i}),eQ,{cacheTime:e,enabled:!!(r&&n&&l),staleTime:o,suspense:a,onError:s,onSettled:u,onSuccess:c})}function eJ({queryKey:[{address:e,chainId:t}]}){if(!e)throw Error("address is required");return(0,Y.Lk)({address:e,chainId:t})}function eZ({address:e,cacheTime:t,chainId:r,enabled:n=!0,scopeKey:i,staleTime:o=864e5,suspense:a,onError:s,onSettled:u,onSuccess:c}={}){let l=eS({chainId:r});return eC(function({address:e,chainId:t,scopeKey:r}){return[{entity:"ensName",address:e,chainId:t,scopeKey:r}]}({address:e,chainId:l,scopeKey:i}),eJ,{cacheTime:t,enabled:!!(n&&e&&l),staleTime:o,suspense:a,onError:s,onSettled:u,onSuccess:c})}},7235:function(e){"use strict";e.exports=JSON.parse('{"name":"@safe-global/safe-apps-sdk","version":"8.1.0","description":"SDK developed to integrate third-party apps with Safe app.","main":"dist/src/index.js","typings":"dist/src/index.d.ts","_files":["dist/**/*","src/**/*","CHANGELOG.md","README.md"],"sideEffects":false,"keywords":["Safe","sdk","apps"],"scripts":{"test":"jest","format-dist":"sed -i \'\' \'s/\\"files\\":/\\"_files\\":/\' dist/package.json","build":"yarn rimraf dist && tsc && yarn format-dist"},"author":"Safe (https://safe.global)","license":"MIT","dependencies":{"@safe-global/safe-gateway-typescript-sdk":"^3.5.3","viem":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/safe-global/safe-apps-sdk.git"},"bugs":{"url":"https://github.com/safe-global/safe-apps-sdk/issues"},"homepage":"https://github.com/safe-global/safe-apps-sdk#readme","publishConfig":{"access":"public"}}')}}]); \ No newline at end of file diff --git a/_next/static/chunks/928-df410e5470c19e14.js b/_next/static/chunks/928-df410e5470c19e14.js new file mode 100644 index 0000000..fe321a7 --- /dev/null +++ b/_next/static/chunks/928-df410e5470c19e14.js @@ -0,0 +1,55 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[928],{48610:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(10479),i=r(6028),o=r(33589);function a(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}t.getHash=a,t.createCurve=function(e,t){let r=t=>(0,o.weierstrass)({...e,...a(t)});return Object.freeze({...r(t),create:r})}},28731:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(14443),i=r(30802),o=BigInt(0),a=BigInt(1);t.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>o;)r&a&&(n=n.add(i)),i=i.double(),r>>=a;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],a=e,s=a;for(let e=0;e>=h,n>u&&(n-=f,o+=a);let s=t+Math.abs(n)-1,p=e%2!=0,m=n<0;0===n?l=l.add(r(p,i[t])):c=c.add(r(m,i[s]))}return{p:c,f:l}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},72652:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;let n=r(14443),i=r(30802),o=i.bytesToNumberBE;function a(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected")}function u(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function c(e,t,r,n){s(e),s(t),u(r),t.length>255&&(t=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:o,blockLen:c}=n,l=Math.ceil(r/o);if(l>255)throw Error("Invalid xmd length");let d=(0,i.concatBytes)(t,a(t.length,1)),f=a(0,c),h=a(r,2),p=Array(l),m=n((0,i.concatBytes)(f,e,h,a(0,1),d));p[0]=n((0,i.concatBytes)(m,a(1,1),d));for(let e=1;e<=l;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n255&&(t=o.create({dkLen:Math.ceil(2*n/8)}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()),r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(e).update(a(r,2)).update(t).update(a(t.length,1)).digest()}function d(e,t,r){let a;(0,i.validateObject)(r,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:d,k:f,m:h,hash:p,expand:m,DST:g}=r;s(e),u(t);let y=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,i.utf8ToBytes)(e);throw Error("DST must be Uint8Array or string")}(g),b=d.toString(2).length,v=Math.ceil((b+f)/8),E=t*h*v;if("xmd"===m)a=c(e,y,E,p);else if("xof"===m)a=l(e,y,E,f,p);else if("_internal_pass"===m)a=e;else throw Error('expand must be "xmd" or "xof"');let w=Array(t);for(let e=0;eArray.from(e).reverse());return(t,n)=>{let[i,o,a,s]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return{x:t=e.div(i,o),y:n=e.mul(n,e.div(a,s))}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,i){let o=d(n,2,{...r,DST:r.DST,...i}),a=e.fromAffine(t(o[0])),s=e.fromAffine(t(o[1])),u=a.add(s).clearCofactor();return u.assertValidity(),u},encodeToCurve(n,i){let o=d(n,1,{...r,DST:r.encodeDST,...i}),a=e.fromAffine(t(o[0])).clearCofactor();return a.assertValidity(),a}}}},14443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(30802),i=BigInt(0),o=BigInt(1),a=BigInt(2),s=BigInt(3),u=BigInt(4),c=BigInt(5),l=BigInt(8);function d(e,t){let r=e%t;return r>=i?r:t+r}function f(e,t,r){if(r<=i||t 0");if(r===o)return i;let n=o;for(;t>i;)t&o&&(n=n*e%r),e=e*e%r,t>>=o;return n}function h(e,t){if(e===i||t<=i)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,a=i,s=o,u=o,c=i;for(;r!==i;){let e=n/r,t=n%r,i=a-u*e,o=s-c*e;n=r,r=t,a=u,s=c,u=i,c=o}let l=n;if(l!==o)throw Error("invert: does not exist");return d(a,t)}function p(e){let t,r,n;let s=(e-o)/a;for(t=e-o,r=0;t%a===i;t/=a,r++);for(n=a;ni;)n*=n,n%=r;return n},t.invert=h,t.tonelliShanks=p,t.FpSqrt=m;let g=(e,t)=>(d(e,t)&o)===o;t.isNegativeLE=g;let y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e,t,r){if(r 0");if(r===i)return e.ONE;if(r===o)return t;let n=e.ONE,a=t;for(;r>i;)r&o&&(n=e.mul(n,a)),a=e.sqr(a),r>>=o;return n}function v(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r}function E(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}t.validateField=function(e){let t=y.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=b,t.FpInvertBatch=v,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){let t=(e.ORDER-o)/a;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=E,t.Field=function(e,t,r=!1,a={}){if(e<=i)throw Error(`Expected Fp ORDER > 0, got ${e}`);let{nBitLength:s,nByteLength:u}=E(e,t);if(u>2048)throw Error("Field lengths over 2048 bytes are not supported");let c=m(e),l=Object.freeze({ORDER:e,BITS:s,BYTES:u,MASK:(0,n.bitMask)(s),ZERO:i,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return i<=t&&te===i,isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>b(l,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:a.sqrt||(e=>c(l,e)),invertBatch:e=>v(l,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,u):(0,n.numberToBytesBE)(e,u),fromBytes:e=>{if(e.length!==u)throw Error(`Fp.fromBytes: expected ${u}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){e=(0,n.ensureBytes)("privateHash",e);let i=e.length,a=E(t).nByteLength+8;if(a<24||i1024)throw Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);let s=r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e);return d(s,t-o)+o}},30802:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let r=BigInt(0),n=BigInt(1),i=BigInt(2),o=e=>e instanceof Uint8Array,a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e){if(!o(e))throw Error("Uint8Array expected");let t="";for(let r=0;re+t.length,0)),r=0;return e.forEach(e=>{if(!o(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}t.bytesToHex=s,t.numberToHexUnpadded=u,t.hexToNumber=c,t.hexToBytes=l,t.bytesToNumberBE=function(e){return c(s(e))},t.bytesToNumberLE=function(e){if(!o(e))throw Error("Uint8Array expected");return c(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=d,t.numberToBytesLE=function(e,t){return d(e,t).reverse()},t.numberToVarBytesBE=function(e){return l(u(e))},t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=l(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(o(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if("number"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n},t.concatBytes=f,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;rr;e>>=n,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&n};let h=(e,t,i)=>e|(i?n:r)<(i<new Uint8Array(e),g=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=m(e),i=m(e),o=0,a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),u=(e=m())=>{i=s(g([0]),e),n=s(),0!==e.length&&(i=s(g([1]),e),n=s())},c=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e{let r;for(a(),u(e);!(r=t(c()));)u();return a(),r};return l};let y={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let i=y[r];if("function"!=typeof i)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},33589:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(14443),i=r(30802),o=r(30802),a=r(28731),{bytesToNumberBE:s,hexToBytes:u}=i;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");let n=e[1],i=e.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(i),l:e.subarray(n+2)}},toSig(e){let{Err:r}=t.DER,n="string"==typeof e?u(e):e;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");let{d:o,l:a}=t.DER._parseInt(n.subarray(2)),{d:s,l:c}=t.DER._parseInt(a);if(c.length)throw new r("Invalid signature: left bytes after parsing");return{r:o,s}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),u=r(a);return`30${r(a+o+4)}02${u}${i}02${s}${n}`}};let c=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(3),h=BigInt(4);function p(e){let t=function(e){let t=(0,a.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:o}=t;if(r){if(!n.eql(o,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,n)=>{let o=t.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),u=t.fromBytes||(e=>{let t=e.subarray(1),n=r.fromBytes(t.subarray(0,r.BYTES)),i=r.fromBytes(t.subarray(r.BYTES,2*r.BYTES));return{x:n,y:i}});function d(e){let{a:n,b:i}=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&cr.eql(e,r.ZERO);return i(t)&&i(n)?b.ZERO:new b(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(b.fromAffine)}static fromHex(e){let t=b.fromAffine(u((0,o.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(m(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint)return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let i=r.sqr(n),o=d(e);if(!r.eql(i,o))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){y(e);let{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,u=r.eql(r.mul(t,s),r.mul(o,i)),c=r.eql(r.mul(n,s),r.mul(a,i));return u&&c}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,f),{px:o,py:a,pz:s}=this,u=r.ZERO,c=r.ZERO,l=r.ZERO,d=r.mul(o,o),h=r.mul(a,a),p=r.mul(s,s),m=r.mul(o,a);return m=r.add(m,m),l=r.mul(o,s),l=r.add(l,l),u=r.mul(e,l),c=r.mul(i,p),c=r.add(u,c),u=r.sub(h,c),c=r.add(h,c),c=r.mul(u,c),u=r.mul(m,u),l=r.mul(i,l),p=r.mul(e,p),m=r.sub(d,p),m=r.mul(e,m),m=r.add(m,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,p),d=r.mul(d,m),c=r.add(c,d),p=r.mul(a,s),p=r.add(p,p),d=r.mul(p,m),u=r.sub(u,d),l=r.mul(p,h),l=r.add(l,l),l=r.add(l,l),new b(u,c,l)}add(e){y(e);let{px:n,py:i,pz:o}=this,{px:a,py:s,pz:u}=e,c=r.ZERO,l=r.ZERO,d=r.ZERO,h=t.a,p=r.mul(t.b,f),m=r.mul(n,a),g=r.mul(i,s),v=r.mul(o,u),E=r.add(n,i),w=r.add(a,s);E=r.mul(E,w),w=r.add(m,g),E=r.sub(E,w),w=r.add(n,o);let P=r.add(a,u);return w=r.mul(w,P),P=r.add(m,v),w=r.sub(w,P),P=r.add(i,o),c=r.add(s,u),P=r.mul(P,c),c=r.add(g,v),P=r.sub(P,c),d=r.mul(h,w),c=r.mul(p,v),d=r.add(c,d),c=r.sub(g,d),d=r.add(g,d),l=r.mul(c,d),g=r.add(m,m),g=r.add(g,m),v=r.mul(h,v),w=r.mul(p,w),g=r.add(g,v),v=r.sub(m,v),v=r.mul(h,v),w=r.add(w,v),m=r.mul(g,w),l=r.add(l,m),m=r.mul(P,w),c=r.mul(E,c),c=r.sub(c,m),m=r.mul(E,g),d=r.mul(P,d),d=r.add(d,m),new b(c,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return E.wNAFCached(this,g,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(b.fromAffine)})}multiplyUnsafe(e){let n=b.ZERO;if(e===c)return n;if(p(e),e===l)return this;let{endo:i}=t;if(!i)return E.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:s,k2:u}=i.splitScalar(e),d=n,f=n,h=this;for(;a>c||u>c;)a&l&&(d=d.add(h)),u&l&&(f=f.add(h)),h=h.double(),a>>=l,u>>=l;return o&&(d=d.negate()),s&&(f=f.negate()),f=new b(r.mul(f.px,i.beta),f.py,f.pz),d.add(f)}multiply(e){let n,i;p(e);let{endo:o}=t;if(o){let{k1neg:t,k1:a,k2neg:s,k2:u}=o.splitScalar(e),{p:c,f:l}=this.wNAF(a),{p:d,f:f}=this.wNAF(u);c=E.constTimeNegate(t,c),d=E.constTimeNegate(s,d),d=new b(r.mul(d.px,o.beta),d.py,d.pz),n=c.add(d),i=l.add(f)}else{let{p:t,f:r}=this.wNAF(e);n=t,i=r}return b.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=b.BASE,i=(e,t)=>t!==c&&t!==l&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){let{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));let a=r.mul(t,e),s=r.mul(n,e),u=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===l)return!0;if(r)return r(b,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===l?this:r?r(b,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),s(b,this,e)}toHex(e=!0){return i.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,r.ONE),b.ZERO=new b(r.ZERO,r.ONE,r.ZERO);let v=t.nBitLength,E=(0,a.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:h}}function m(e,t){let r=e.ORDER,n=c;for(let e=r-l;e%d===c;e/=d)n+=l;let i=n,o=d<{let n=m,a=e.pow(r,p),s=e.sqr(a);s=e.mul(s,r);let c=e.mul(t,s);c=e.pow(c,u),c=e.mul(c,a),a=e.mul(c,r),s=e.mul(c,t);let f=e.mul(s,a);c=e.pow(f,o);let h=e.eql(c,e.ONE);a=e.mul(s,g),c=e.mul(f,n),s=e.cmov(a,s,h),f=e.cmov(c,f,h);for(let t=i;t>l;t--){let r=t-d;r=d<{let o=e.sqr(i),a=e.mul(t,i);o=e.mul(o,a);let s=e.pow(o,r);s=e.mul(s,a);let u=e.mul(s,n),c=e.mul(e.sqr(s),i),l=e.eql(c,t),d=e.cmov(u,s,l);return{isValid:l,value:d}}}return y}t.weierstrassPoints=p,t.weierstrass=function(e){let r=function(e){let t=(0,a.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:u}=r,d=s.BYTES+1,f=2*s.BYTES+1;function h(e){return n.mod(e,u)}function m(e){return n.invert(e,u)}let{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:v}=p({...r,toBytes(e,t,r){let n=t.toAffine(),o=s.toBytes(n.x),a=i.concatBytes;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,s.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===d&&(2===r||3===r)){let e=i.bytesToNumberBE(n);if(!(ci.bytesToHex(i.numberToBytesBE(e,r.nByteLength)),w=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class P{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let t=r.nByteLength;return e=(0,o.ensureBytes)("compactSignature",e,2*t),new P(w(e,0,t),w(e,t,2*t))}static fromDER(e){let{r,s:n}=t.DER.toSig((0,o.ensureBytes)("DER",e));return new P(r,n)}assertValidity(){if(!v(this.r))throw Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new P(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:n,recovery:i}=this,a=A((0,o.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw Error("recovery id invalid");let u=2===i||3===i?t+r.n:t;if(u>=s.ORDER)throw Error("recovery id 2 or 3 invalid");let c=g.fromHex(((1&i)==0?"02":"03")+E(u)),l=m(u),d=h(-a*l),f=h(n*l),p=g.BASE.multiplyAndAddUnsafe(c,d,f);if(!p)throw Error("point at infinify");return p.assertValidity(),p}hasHighS(){return this.s>u>>l}normalizeS(){return this.hasHighS()?new P(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return E(this.r)+E(this.s)}}function x(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===d||n===f:r?n===2*d||n===2*f:e instanceof g}let _=r.bits2int||function(e){let t=i.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},A=r.bits2int_modN||function(e){return h(_(e))},O=i.bitMask(r.nBitLength);function T(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(c<=e&&ee in n))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:d}=r,{lowS:f,prehash:p,extraEntropy:b}=n;null==f&&(f=!0),e=(0,o.ensureBytes)("msgHash",e),p&&(e=(0,o.ensureBytes)("prehashed msgHash",a(e)));let E=A(e),w=y(t),x=[T(w),T(E)];if(null!=b){let e=!0===b?d(s.BYTES):b;x.push((0,o.ensureBytes)("extraEntropy",e,s.BYTES))}let O=i.concatBytes(...x);return{seed:O,k2sig:function(e){let t=_(e);if(!v(t))return;let r=m(t),n=g.BASE.multiply(t).toAffine(),i=h(n.x);if(i===c)return;let o=h(r*h(E+i*w));if(o===c)return;let a=(n.x===i?0:2)|Number(n.y&l),s=o;if(f&&o>u>>l)s=o>u>>l?h(-o):o,a^=1;return new P(i,s,a)}}}(e,t,n),f=i.createHmacDrbg(r.hash.outputLen,r.nByteLength,r.hmac);return f(a,d)},verify:function(e,n,i,a=S){let s,u;if(n=(0,o.ensureBytes)("msgHash",n),i=(0,o.ensureBytes)("publicKey",i),"strict"in a)throw Error("options.strict was renamed to lowS");let{lowS:c,prehash:l}=a;try{if("string"==typeof e||e instanceof Uint8Array)try{u=P.fromDER(e)}catch(r){if(!(r instanceof t.DER.Err))throw r;u=P.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;u=new P(t,r)}else throw Error("PARSE");s=g.fromHex(i)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));let{r:d,s:f}=u,p=A(n),y=m(f),b=h(p*y),v=h(d*y),E=g.BASE.multiplyAndAddUnsafe(s,b,v)?.toAffine();if(!E)return!1;let w=h(E.x);return w===d},ProjectivePoint:g,Signature:P,utils:{isValidPrivateKey(e){try{return y(e),!0}catch(e){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{let e=r.randomBytes(s.BYTES+8),t=n.hashToPrivateScalar(e,u);return i.numberToBytesBE(t,r.nByteLength)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=m(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let i,o,a,s,u,c,l,d;i=e.sqr(n),i=e.mul(i,t.Z),o=e.sqr(i),o=e.add(o,i),a=e.add(o,e.ONE),a=e.mul(a,t.B),s=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),s=e.mul(s,t.A),o=e.sqr(a),c=e.sqr(s),u=e.mul(c,t.A),o=e.add(o,u),o=e.mul(o,a),c=e.mul(c,s),u=e.mul(c,t.B),o=e.add(o,u),l=e.mul(i,a);let{isValid:f,value:h}=r(o,c);d=e.mul(i,n),d=e.mul(d,h),l=e.cmov(l,a,f),d=e.cmov(d,h,f);let p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),{x:l=e.div(l,s),y:d}}}},15207:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(84120),i=r(6028),o=r(14443),a=r(33589),s=r(30802),u=r(72652),c=r(48610),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function m(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),a=BigInt(23),s=BigInt(44),u=BigInt(88),c=e*e*e%l,d=c*c*e%l,f=(0,o.pow2)(d,t,l)*d%l,p=(0,o.pow2)(f,t,l)*d%l,m=(0,o.pow2)(p,h,l)*c%l,y=(0,o.pow2)(m,n,l)*m%l,b=(0,o.pow2)(y,i,l)*y%l,v=(0,o.pow2)(b,s,l)*b%l,E=(0,o.pow2)(v,u,l)*v%l,w=(0,o.pow2)(E,s,l)*b%l,P=(0,o.pow2)(w,t,l)*d%l,x=(0,o.pow2)(P,a,l)*y%l,_=(0,o.pow2)(x,r,l)*c%l,A=(0,o.pow2)(_,h,l);if(!g.eql(g.sqr(A),e))throw Error("Cannot find square root");return A}let g=(0,o.Field)(l,void 0,void 0,{sqrt:m});t.secp256k1=(0,c.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),a=p(t*e,d),s=p(-r*e,d),u=(0,o.mod)(e-a*t-s*n,d),c=(0,o.mod)(-a*r-s*t,d),l=u>i,h=c>i;if(l&&(u=d-u),h&&(c=d-c),u>i||c>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:l,k1:u,k2neg:h,k2:c}}}},n.sha256);let y=BigInt(0),b=e=>"bigint"==typeof e&&y"bigint"==typeof e&&ye.charCodeAt(0)));r=(0,s.concatBytes)(t,t),E[e]=r}return(0,n.sha256)((0,s.concatBytes)(r,...t))}let P=e=>e.toRawBytes(!0).slice(1),x=e=>(0,s.numberToBytesBE)(e,32),_=e=>(0,o.mod)(e,l),A=e=>(0,o.mod)(e,d),O=t.secp256k1.ProjectivePoint,T=(e,t,r)=>O.BASE.multiplyAndAddUnsafe(e,t,r);function I(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=O.fromPrivateKey(r),i=n.hasEvenY()?r:A(-r);return{scalar:i,bytes:P(n)}}function S(e){if(!b(e))throw Error("bad x: need 0 < x < p");let t=_(e*e),r=_(t*e+BigInt(7)),n=m(r);n%h!==y&&(n=_(-n));let i=new O(e,n,f);return i.assertValidity(),i}function C(...e){return A((0,s.bytesToNumberBE)(w("BIP0340/challenge",...e)))}function j(e,t,r){let n=(0,s.ensureBytes)("signature",e,64),i=(0,s.ensureBytes)("message",t),o=(0,s.ensureBytes)("publicKey",r,32);try{let e=S((0,s.bytesToNumberBE)(o)),t=(0,s.bytesToNumberBE)(n.subarray(0,32));if(!b(t))return!1;let r=(0,s.bytesToNumberBE)(n.subarray(32,64));if(!v(r))return!1;let a=C(x(t),P(e),i),u=T(e,r,A(-a));if(!u||!u.hasEvenY()||u.toAffine().x!==t)return!1;return!0}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return I(e).bytes},sign:function(e,t,r=(0,i.randomBytes)(32)){let n=(0,s.ensureBytes)("message",e),{bytes:o,scalar:a}=I(t),u=(0,s.ensureBytes)("auxRand",r,32),c=x(a^(0,s.bytesToNumberBE)(w("BIP0340/aux",u))),l=w("BIP0340/nonce",c,o,n),d=A((0,s.bytesToNumberBE)(l));if(d===y)throw Error("sign failed: k is zero");let{bytes:f,scalar:h}=I(d),p=C(f,o,n),m=new Uint8Array(64);if(m.set(f,0),m.set(x(A(h+p*a)),32),!j(m,n,o))throw Error("sign: Invalid signature produced");return m},verify:j,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:S,pointToBytes:P,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:w,mod:o.mod}};let D=(0,u.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),B=(0,a.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),R=(0,u.createHasher)(t.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=B(g.create(e[0]));return D(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});t.hashToCurve=R.hashToCurve,t.encodeToCurve=R.encodeToCurve},2603:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,t){i(e);let r=t.outputLen;if(e.length>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);function s(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/4294967296|0)|0,l:0|i}}t.toBig=a,t.add=s;let u={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<>>32-r,rotlSL:(e,t,r)=>t<>>32-r,rotlBH:(e,t,r)=>t<>>64-r,rotlBL:(e,t,r)=>e<>>64-r,add:s,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/4294967296|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/4294967296|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/4294967296|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=u},80587:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},54801:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;let n=r(2603),i=r(58657),o=r(19450),[a,s,u]=[[],[],[]],c=BigInt(0),l=BigInt(1),d=BigInt(2),f=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=l,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],a.push(2*(5*n+r)),s.push((e+1)*(e+2)/2%64);let i=c;for(let e=0;e<7;e++)(t=(t<>f)*p)%h)&d&&(i^=l<<(l<r>32?i.default.rotlBH(e,t,r):i.default.rotlSH(e,t,r),b=(e,t,r)=>r>32?i.default.rotlBL(e,t,r):i.default.rotlSL(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=y(o,a,1)^r[n],u=b(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=s[r],o=y(t,i,n),u=b(t,i,n),c=a[r];t=e[c],i=e[c+1],e[c]=o,e[c+1]=u}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=m[n],e[1]^=g[n]}r.fill(0)}t.keccakP=v;class E extends o.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){n.default.exists(this);let{blockLen:t,state:r}=this;e=(0,o.toBytes)(e);let i=e.length;for(let n=0;n=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return n.default.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(n.default.output(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new E(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=E;let w=(e,t,r)=>(0,o.wrapConstructor)(()=>new E(t,e,r));t.sha3_224=w(6,144,28),t.sha3_256=w(6,136,32),t.sha3_384=w(6,104,48),t.sha3_512=w(6,72,64),t.keccak_224=w(1,144,28),t.keccak_256=w(1,136,32),t.keccak_384=w(1,104,48),t.keccak_512=w(1,72,64);let P=(e,t,r)=>(0,o.wrapConstructorWithOpts)((n={})=>new E(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=P(31,168,16),t.shake256=P(31,136,32)},19450:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(80587),i=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u8=i;let o=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.u32=o;let a=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.createView=a,t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");let t="";for(let r=0;r{};async function c(e,r,n){let i=Date.now();for(let o=0;o=0&&ee instanceof Uint8Array))throw Error("Uint8Array list expected");if(1===e.length)return e[0];let t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);for(let t=0,n=0;t"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||!f(t)))throw TypeError("Options should be object or undefined");let r=Object.assign(e,t);return r},t.wrapConstructor=function(e){let t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(d(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},53237:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,t){i(e);let r=t.outputLen;if(e.lengtho-s&&(this.process(r,0),s=0);for(let e=s;e>i&o),s=Number(r&o);e.setUint32(t+(n?4:0),a,n),e.setUint32(t+(n?0:4),s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);let u=(0,i.createView)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,d=this.get();if(l>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;eo?e.create().update(r).digest():r);for(let e=0;enew o(e,t).update(r).digest();t.hmac=a,t.hmac.create=(e,t)=>new o(e,t)},84120:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;let n=r(73965),i=r(6028),o=(e,t,r)=>e&t^~e&r,a=(e,t,r)=>e&t^e&r^t&r,s=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3],this.E=0|u[4],this.F=0|u[5],this.G=0|u[6],this.H=0|u[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],n=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,o=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;c[e]=o+c[e-7]+n+c[e-16]|0}let{A:r,B:n,C:u,D:l,E:d,F:f,G:h,H:p}=this;for(let e=0;e<64;e++){let t=(0,i.rotr)(d,6)^(0,i.rotr)(d,11)^(0,i.rotr)(d,25),m=p+t+o(d,f,h)+s[e]+c[e]|0,g=(0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22),y=g+a(r,n,u)|0;p=h,h=f,f=d,d=l+m|0,l=u,u=n,n=r,r=m+y|0}r=r+this.A|0,n=n+this.B|0,u=u+this.C|0,l=l+this.D|0,d=d+this.E|0,f=f+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,n,u,l,d,f,h,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class d extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)(()=>new l),t.sha224=(0,i.wrapConstructor)(()=>new d)},6028:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(81153),i=e=>e instanceof Uint8Array,o=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u8=o;let a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.u32=a;let s=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.createView=s,t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){if(!i(e))throw Error("Uint8Array expected");let t="";for(let r=0;r{};async function l(e,r,n){let i=Date.now();for(let o=0;o=0&&ee+t.length,0)),r=0;return e.forEach(e=>{if(!i(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t},t.Hash=class{clone(){return this._cloneInto()}};let h=e=>"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||!h(t)))throw Error("Options should be object or undefined");let r=Object.assign(e,t);return r},t.wrapConstructor=function(e){let t=t=>e().update(f(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},42917:function(e,t,r){"use strict";t.N=void 0;var n=r(93321);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return n.SafeAppProvider}})},93321:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppProvider=void 0;let n=r(11293),i=r(98071);class o extends n.EventEmitter{constructor(e,t){super(),this.submittedTxs=new Map,this.safe=e,this.sdk=t}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(e){let{method:t,params:r=[]}=e;switch(t){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{let[e,t]=r;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw Error("The address or message hash is invalid");let n=await this.sdk.txs.signMessage(e),i="signature"in n?n.signature:void 0;return i||"0x"}case"eth_sign":{let[e,t]=r;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase()||!t.startsWith("0x"))throw Error("The address or message hash is invalid");let n=await this.sdk.txs.signMessage(t),i="signature"in n?n.signature:void 0;return i||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{let[e,t]=r,n="string"==typeof t?JSON.parse(t):t;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase())throw Error("The address is invalid");let i=await this.sdk.txs.signTypedMessage(n),o="signature"in i?i.signature:void 0;return o||"0x"}case"eth_sendTransaction":let n=Object.assign({value:"0",data:"0x"},r[0]);"string"==typeof n.gas&&n.gas.startsWith("0x")&&(n.gas=parseInt(n.gas,16));let o=await this.sdk.txs.send({txs:[n],params:{safeTxGas:n.gas}});return this.submittedTxs.set(o.safeTxHash,{from:this.safe.safeAddress,hash:o.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:n.data,value:n.value,to:n.to,blockHash:null,blockNumber:null,transactionIndex:null}),o.safeTxHash;case"eth_blockNumber":let a=await this.sdk.eth.getBlockByNumber(["latest"]);return a.number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,i.getLowerCase)(r[0]),r[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,i.getLowerCase)(r[0]),r[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,i.getLowerCase)(r[0]),r[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,i.getLowerCase)(r[0]),r[1],r[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([r[0],r[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([r[0],r[1]]);case"eth_getTransactionByHash":let s=r[0];try{let e=await this.sdk.txs.getBySafeTxHash(s);s=e.txHash||s}catch(e){}if(this.submittedTxs.has(s))return this.submittedTxs.get(s);return this.sdk.eth.getTransactionByHash([s]).then(e=>(e&&(e.hash=r[0]),e));case"eth_getTransactionReceipt":{let e=r[0];try{let t=await this.sdk.txs.getBySafeTxHash(e);e=t.txHash||e}catch(e){}return this.sdk.eth.getTransactionReceipt([e]).then(e=>(e&&(e.transactionHash=r[0]),e))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(r[0]);case"eth_call":return this.sdk.eth.call([r[0],r[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([r[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(r[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([r[0]]);default:throw Error(`"${e.method}" not implemented`)}}send(e,t){e||t("Undefined request"),this.request(e).then(r=>t(null,{jsonrpc:"2.0",id:e.id,result:r})).catch(e=>t(e,null))}}t.SafeAppProvider=o},98071:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLowerCase=void 0,t.getLowerCase=function(e){return e?e.toLowerCase():e}},80855:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});let o=r(30684);t.default=class{constructor(e=null,t=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer="undefined"==typeof window,this.isValidMessage=({origin:e,data:t,source:r})=>{let n=!this.isServer&&r===window.parent,i=void 0!==t.version&&parseInt(t.version.split(".")[0]),o=!0;return Array.isArray(this.allowedOrigins)&&(o=void 0!==this.allowedOrigins.find(t=>t.test(e))),!!t&&n&&i>=1&&o},this.logIncomingMessage=e=>{console.info(`Safe Apps SDK v1: A message was received from origin ${e.origin}. `,e.data)},this.onParentMessage=e=>{this.isValidMessage(e)&&(this.debugMode&&this.logIncomingMessage(e),this.handleIncomingMessage(e.data))},this.handleIncomingMessage=e=>{let{id:t}=e,r=this.callbacks.get(t);r&&(r(e),this.callbacks.delete(t))},this.send=(e,t)=>{let r=o.MessageFormatter.makeRequest(e,t);if(this.isServer)throw Error("Window doesn't exist");return window.parent.postMessage(r,"*"),new Promise((e,t)=>{this.callbacks.set(r.id,r=>{if(!r.success){t(Error(r.error));return}e(r)})})},this.allowedOrigins=e,this.debugMode=t,this.isServer||window.addEventListener("message",this.onParentMessage)}},i(r(85946),t)},30684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageFormatter=void 0;let n=r(91586),i=r(8707);class o{}t.MessageFormatter=o,o.makeRequest=(e,t)=>{let r=(0,i.generateRequestId)();return{id:r,method:e,params:t,env:{sdkVersion:(0,n.getSDKVersion)()}}},o.makeResponse=(e,t,r)=>({id:e,success:!0,version:r,data:t}),o.makeErrorResponse=(e,t,r)=>({id:e,success:!1,error:t,version:r})},85946:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictedMethods=t.Methods=void 0,(r=t.Methods||(t.Methods={})).sendTransactions="sendTransactions",r.rpcCall="rpcCall",r.getChainInfo="getChainInfo",r.getSafeInfo="getSafeInfo",r.getTxBySafeTxHash="getTxBySafeTxHash",r.getSafeBalances="getSafeBalances",r.signMessage="signMessage",r.signTypedMessage="signTypedMessage",r.getEnvironmentInfo="getEnvironmentInfo",r.getOffChainSignature="getOffChainSignature",r.requestAddressBook="requestAddressBook",r.wallet_getPermissions="wallet_getPermissions",r.wallet_requestPermissions="wallet_requestPermissions",(t.RestrictedMethods||(t.RestrictedMethods={})).requestAddressBook="requestAddressBook"},8707:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRequestId=void 0;let r=e=>e.toString(16).padStart(2,"0"),n=e=>{let t=new Uint8Array((e||40)/2);return window.crypto.getRandomValues(t),Array.from(t,r).join("")},i=()=>"undefined"!=typeof window?n(10):new Date().getTime().toString(36);t.generateRequestId=i},83944:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(24295),i=r(95726),o=(e,t)=>t.some(t=>t.parentCapability===e),a=()=>(e,t,r)=>{let a=r.value;return r.value=async function(){let e=new n.Wallet(this.communicator),r=await e.getPermissions();if(o(t,r)||(r=await e.requestPermissions([{[t]:{}}])),!o(t,r))throw new i.PermissionsError("Permissions rejected",i.PERMISSIONS_REQUEST_REJECTED);return a.apply(this)},r};t.default=a},39947:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPC_CALLS=void 0,t.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}},12980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Eth=void 0;let n=r(39947),i=r(85946),o={defaultBlockParam:(e="latest")=>e,returnFullTxObjectParam:(e=!1)=>e,blockNumberToHex:e=>Number.isInteger(e)?`0x${e.toString(16)}`:e};t.Eth=class{constructor(e){this.communicator=e,this.call=this.buildRequest({call:n.RPC_CALLS.eth_call,formatters:[null,o.defaultBlockParam]}),this.getBalance=this.buildRequest({call:n.RPC_CALLS.eth_getBalance,formatters:[null,o.defaultBlockParam]}),this.getCode=this.buildRequest({call:n.RPC_CALLS.eth_getCode,formatters:[null,o.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:n.RPC_CALLS.eth_getStorageAt,formatters:[null,o.blockNumberToHex,o.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:n.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:n.RPC_CALLS.eth_getBlockByHash,formatters:[null,o.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:n.RPC_CALLS.eth_getBlockByNumber,formatters:[o.blockNumberToHex,o.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionCount,formatters:[null,o.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:n.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=e=>this.buildRequest({call:n.RPC_CALLS.eth_estimateGas})([e]),this.setSafeSettings=this.buildRequest({call:n.RPC_CALLS.safe_setSettings})}buildRequest(e){let{call:t,formatters:r}=e;return async e=>{r&&Array.isArray(e)&&r.forEach((t,r)=>{t&&(e[r]=t(e[r]))});let n=await this.communicator.send(i.Methods.rpcCall,{call:t,params:e||[]});return n.data}}}},22409:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;let a=o(r(67e3));t.default=a.default,i(r(67e3),t),i(r(80719),t),i(r(85946),t),i(r(30684),t);var s=r(91586);Object.defineProperty(t,"getSDKVersion",{enumerable:!0,get:function(){return s.getSDKVersion}})},29363:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Safe=void 0;let o=r(53835),a=r(27088),s=r(85946),u=r(39947),c=r(80719),l=i(r(83944));class d{constructor(e){this.communicator=e}async getChainInfo(){let e=await this.communicator.send(s.Methods.getChainInfo,void 0);return e.data}async getInfo(){let e=await this.communicator.send(s.Methods.getSafeInfo,void 0);return e.data}async experimental_getBalances({currency:e="usd"}={}){let t=await this.communicator.send(s.Methods.getSafeBalances,{currency:e});return t.data}async check1271Signature(e,t="0x"){let r=await this.getInfo(),n=(0,o.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:u.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:n},"latest"]};try{let e=await this.communicator.send(s.Methods.rpcCall,i);return e.data.slice(0,10).toLowerCase()===a.MAGIC_VALUE}catch(e){return!1}}async check1271SignatureBytes(e,t="0x"){let r=await this.getInfo(),n=(0,o.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),i={call:u.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:n},"latest"]};try{let e=await this.communicator.send(s.Methods.rpcCall,i);return e.data.slice(0,10).toLowerCase()===a.MAGIC_VALUE_BYTES}catch(e){return!1}}calculateMessageHash(e){return(0,o.hashMessage)(e)}calculateTypedMessageHash(e){let t="object"==typeof e.domain.chainId?e.domain.chainId.toNumber():Number(e.domain.chainId),r=e.primaryType;if(!r){let t=Object.values(e.types),n=Object.keys(e.types).filter(e=>t.every(t=>t.every(({type:t})=>t.replace("[","").replace("]","")!==e)));if(0===n.length||n.length>1)throw Error("Please specify primaryType");r=n[0]}return(0,o.hashTypedData)({message:e.message,domain:Object.assign(Object.assign({},e.domain),{chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt}),types:e.types,primaryType:r})}async getOffChainSignature(e){let t=await this.communicator.send(s.Methods.getOffChainSignature,e);return t.data}async isMessageSigned(e,t="0x"){let r;if("string"==typeof e&&(r=async()=>{let r=this.calculateMessageHash(e),n=await this.isMessageHashSigned(r,t);return n}),(0,c.isObjectEIP712TypedData)(e)&&(r=async()=>{let r=this.calculateTypedMessageHash(e),n=await this.isMessageHashSigned(r,t);return n}),r){let e=await r();return e}throw Error("Invalid message type")}async isMessageHashSigned(e,t="0x"){let r=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(let n of r){let r=await n(e,t);if(r)return!0}return!1}async getEnvironmentInfo(){let e=await this.communicator.send(s.Methods.getEnvironmentInfo,void 0);return e.data}async requestAddressBook(){let e=await this.communicator.send(s.Methods.requestAddressBook,void 0);return e.data}}n([(0,l.default)()],d.prototype,"requestAddressBook",null),t.Safe=d},27088:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAGIC_VALUE_BYTES=t.MAGIC_VALUE=void 0,t.MAGIC_VALUE="0x1626ba7e",t.MAGIC_VALUE_BYTES="0x20c13b0b"},67e3:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=n(r(80855)),o=r(19090),a=r(12980),s=r(29363),u=r(24295);t.default=class{constructor(e={}){let{allowedDomains:t=null,debug:r=!1}=e;this.communicator=new i.default(t,r),this.eth=new a.Eth(this.communicator),this.txs=new o.TXs(this.communicator),this.safe=new s.Safe(this.communicator),this.wallet=new u.Wallet(this.communicator)}}},19090:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TXs=void 0;let n=r(85946),i=r(80719);t.TXs=class{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw Error("Invalid safeTxHash");let t=await this.communicator.send(n.Methods.getTxBySafeTxHash,{safeTxHash:e});return t.data}async signMessage(e){let t=await this.communicator.send(n.Methods.signMessage,{message:e});return t.data}async signTypedMessage(e){if(!(0,i.isObjectEIP712TypedData)(e))throw Error("Invalid typed data");let t=await this.communicator.send(n.Methods.signTypedMessage,{typedData:e});return t.data}async send({txs:e,params:t}){if(!e||!e.length)throw Error("No transactions were passed");let r=await this.communicator.send(n.Methods.sendTransactions,{txs:e,params:t});return r.data}}},84324:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferDirection=t.TransactionStatus=t.TokenType=t.Operation=void 0;var n=r(42415);Object.defineProperty(t,"Operation",{enumerable:!0,get:function(){return n.Operation}}),Object.defineProperty(t,"TokenType",{enumerable:!0,get:function(){return n.TokenType}}),Object.defineProperty(t,"TransactionStatus",{enumerable:!0,get:function(){return n.TransactionStatus}}),Object.defineProperty(t,"TransferDirection",{enumerable:!0,get:function(){return n.TransferDirection}})},80719:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(85985),t),i(r(51634),t),i(r(84324),t),i(r(83988),t)},83988:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(85946)},95726:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionsError=t.PERMISSIONS_REQUEST_REJECTED=void 0,t.PERMISSIONS_REQUEST_REJECTED=4001;class r extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n,Object.setPrototypeOf(this,r.prototype)}}t.PermissionsError=r},51634:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85985:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectEIP712TypedData=void 0,t.isObjectEIP712TypedData=e=>"object"==typeof e&&null!=e&&"domain"in e&&"types"in e&&"message"in e},91586:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;let i=n(r(7235)),o=()=>i.default.version.split("-")[0];t.getSDKVersion=o},24295:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;let n=r(85946),i=r(95726);t.Wallet=class{constructor(e){this.communicator=e}async getPermissions(){let e=await this.communicator.send(n.Methods.wallet_getPermissions,void 0);return e.data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new i.PermissionsError("Permissions request is invalid",i.PERMISSIONS_REQUEST_REJECTED);try{let t=await this.communicator.send(n.Methods.wallet_requestPermissions,e);return t.data}catch(e){throw new i.PermissionsError("Permissions rejected",i.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(e=>"object"==typeof e&&Object.keys(e).every(e=>!!Object.values(n.RestrictedMethods).includes(e)))}}},6604:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BASE_URL=void 0,t.DEFAULT_BASE_URL="https://safe-client.safe.global"},8891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEndpoint=t.postEndpoint=void 0;let n=r(439);function i(e,t,r,i){let o=(0,n.insertParams)(t,r),a=(0,n.stringifyQuery)(i);return`${e}${o}${a}`}t.postEndpoint=function(e,t,r){let o=i(e,t,null==r?void 0:r.path,null==r?void 0:r.query);return(0,n.fetchData)(o,null==r?void 0:r.body)},t.getEndpoint=function(e,t,r,o){if(o)return(0,n.fetchData)(o);let a=i(e,t,null==r?void 0:r.path,null==r?void 0:r.query);return(0,n.fetchData)(a)}},42415:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.getDelegates=t.confirmSafeMessage=t.proposeSafeMessage=t.getSafeMessage=t.getSafeMessages=t.getDecodedData=t.getMasterCopies=t.getSafeApps=t.getChainConfig=t.getChainsConfig=t.proposeTransaction=t.postSafeGasEstimation=t.getTransactionDetails=t.getTransactionQueue=t.getTransactionHistory=t.getCollectiblesPage=t.getCollectibles=t.getOwnedSafes=t.getFiatCurrencies=t.getBalances=t.getMultisigTransactions=t.getModuleTransactions=t.getIncomingTransfers=t.getSafeInfo=t.setBaseUrl=void 0;let o=r(8891),a=r(6604);i(r(26598),t),i(r(86408),t),i(r(56570),t),i(r(28671),t),i(r(44343),t),i(r(97200),t),i(r(63298),t),i(r(21280),t);let s=a.DEFAULT_BASE_URL,u=e=>{s=e};t.setBaseUrl=u,t.getSafeInfo=function(e,t){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:e,address:t}})},t.getIncomingTransfers=function(e,t,r,n){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:e,address:t},query:r},n)},t.getModuleTransactions=function(e,t,r,n){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:e,address:t},query:r},n)},t.getMultisigTransactions=function(e,t,r,n){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:e,address:t},query:r},n)},t.getBalances=function(e,t,r="usd",n={}){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:e,address:t,currency:r},query:n})},t.getFiatCurrencies=function(){return(0,o.getEndpoint)(s,"/v1/balances/supported-fiat-codes")},t.getOwnedSafes=function(e,t){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:e,address:t}})},t.getCollectibles=function(e,t,r={}){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:t},query:r})},t.getCollectiblesPage=function(e,t,r={},n){return(0,o.getEndpoint)(s,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:t},query:r},n)},t.getTransactionHistory=function(e,t,r){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:e,safe_address:t},query:{}},r)},t.getTransactionQueue=function(e,t,r,n){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:e,safe_address:t},query:{trusted:n}},r)},t.getTransactionDetails=function(e,t){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:e,transactionId:t}})},t.postSafeGasEstimation=function(e,t,r){return(0,o.postEndpoint)(s,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:e,safe_address:t},body:r})},t.proposeTransaction=function(e,t,r){return(0,o.postEndpoint)(s,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:e,safe_address:t},body:r})},t.getChainsConfig=function(e){return(0,o.getEndpoint)(s,"/v1/chains",{query:e})},t.getChainConfig=function(e){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}",{path:{chainId:e}})},t.getSafeApps=function(e,t={}){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safe-apps",{path:{chainId:e},query:t})},t.getMasterCopies=function(e){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:e}})},t.getDecodedData=function(e,t,r){return(0,o.postEndpoint)(s,"/v1/chains/{chainId}/data-decoder",{path:{chainId:e},body:{data:t,to:r}})},t.getSafeMessages=function(e,t,r){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:e,safe_address:t},query:{}},r)},t.getSafeMessage=function(e,t){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:e,message_hash:t}})},t.proposeSafeMessage=function(e,t,r){return(0,o.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:e,safe_address:t},body:r})},t.confirmSafeMessage=function(e,t,r){return(0,o.postEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:e,message_hash:t},body:r})},t.getDelegates=function(e,t={}){return(0,o.getEndpoint)(s,"/v1/chains/{chainId}/delegates",{path:{chainId:e},query:t})}},28671:function(e,t){"use strict";var r,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURES=t.GAS_PRICE_TYPE=t.RPC_AUTHENTICATION=void 0,(r=t.RPC_AUTHENTICATION||(t.RPC_AUTHENTICATION={})).API_KEY_PATH="API_KEY_PATH",r.NO_AUTHENTICATION="NO_AUTHENTICATION",r.UNKNOWN="UNKNOWN",(n=t.GAS_PRICE_TYPE||(t.GAS_PRICE_TYPE={})).ORACLE="ORACLE",n.FIXED="FIXED",n.FIXED_1559="FIXED1559",n.UNKNOWN="UNKNOWN",(i=t.FEATURES||(t.FEATURES={})).ERC721="ERC721",i.SAFE_APPS="SAFE_APPS",i.CONTRACT_INTERACTION="CONTRACT_INTERACTION",i.DOMAIN_LOOKUP="DOMAIN_LOOKUP",i.SPENDING_LIMIT="SPENDING_LIMIT",i.EIP1559="EIP1559",i.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",i.TX_SIMULATION="TX_SIMULATION",i.EIP1271="EIP1271"},44343:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenType=void 0,(r=t.TokenType||(t.TokenType={})).ERC20="ERC20",r.ERC721="ERC721",r.NATIVE_TOKEN="NATIVE_TOKEN"},63298:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},97200:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},86408:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppSocialPlatforms=t.SafeAppFeatures=t.SafeAppAccessPolicyTypes=void 0,(r=t.SafeAppAccessPolicyTypes||(t.SafeAppAccessPolicyTypes={})).NoRestrictions="NO_RESTRICTIONS",r.DomainAllowlist="DOMAIN_ALLOWLIST",(t.SafeAppFeatures||(t.SafeAppFeatures={})).BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS",(n=t.SafeAppSocialPlatforms||(t.SafeAppSocialPlatforms={})).TWITTER="TWITTER",n.GITHUB="GITHUB",n.DISCORD="DISCORD"},26598:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationVersionState=void 0,(r=t.ImplementationVersionState||(t.ImplementationVersionState={})).UP_TO_DATE="UP_TO_DATE",r.OUTDATED="OUTDATED",r.UNKNOWN="UNKNOWN"},21280:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SafeMessageStatus=t.SafeMessageListItemType=void 0,(r=t.SafeMessageListItemType||(t.SafeMessageListItemType={})).DATE_LABEL="DATE_LABEL",r.MESSAGE="MESSAGE",(n=t.SafeMessageStatus||(t.SafeMessageStatus={})).NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",n.CONFIRMED="CONFIRMED"},56570:function(e,t){"use strict";var r,n,i,o,a,s,u,c,l,d;Object.defineProperty(t,"__esModule",{value:!0}),t.LabelValue=t.DetailedExecutionInfoType=t.TransactionListItemType=t.ConflictType=t.TransactionInfoType=t.SettingsInfoType=t.TransactionTokenType=t.TransferDirection=t.TransactionStatus=t.Operation=void 0,(r=t.Operation||(t.Operation={}))[r.CALL=0]="CALL",r[r.DELEGATE=1]="DELEGATE",(n=t.TransactionStatus||(t.TransactionStatus={})).AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",n.AWAITING_EXECUTION="AWAITING_EXECUTION",n.CANCELLED="CANCELLED",n.FAILED="FAILED",n.SUCCESS="SUCCESS",(i=t.TransferDirection||(t.TransferDirection={})).INCOMING="INCOMING",i.OUTGOING="OUTGOING",i.UNKNOWN="UNKNOWN",(o=t.TransactionTokenType||(t.TransactionTokenType={})).ERC20="ERC20",o.ERC721="ERC721",o.NATIVE_COIN="NATIVE_COIN",(a=t.SettingsInfoType||(t.SettingsInfoType={})).SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",a.ADD_OWNER="ADD_OWNER",a.REMOVE_OWNER="REMOVE_OWNER",a.SWAP_OWNER="SWAP_OWNER",a.CHANGE_THRESHOLD="CHANGE_THRESHOLD",a.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",a.ENABLE_MODULE="ENABLE_MODULE",a.DISABLE_MODULE="DISABLE_MODULE",a.SET_GUARD="SET_GUARD",a.DELETE_GUARD="DELETE_GUARD",(s=t.TransactionInfoType||(t.TransactionInfoType={})).TRANSFER="Transfer",s.SETTINGS_CHANGE="SettingsChange",s.CUSTOM="Custom",s.CREATION="Creation",(u=t.ConflictType||(t.ConflictType={})).NONE="None",u.HAS_NEXT="HasNext",u.END="End",(c=t.TransactionListItemType||(t.TransactionListItemType={})).TRANSACTION="TRANSACTION",c.LABEL="LABEL",c.CONFLICT_HEADER="CONFLICT_HEADER",c.DATE_LABEL="DATE_LABEL",(l=t.DetailedExecutionInfoType||(t.DetailedExecutionInfoType={})).MULTISIG="MULTISIG",l.MODULE="MODULE",(d=t.LabelValue||(t.LabelValue={})).Queued="Queued",d.Next="Next"},439:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchData=t.stringifyQuery=t.insertParams=void 0;let o=i(r(59880)),a=e=>"object"==typeof e&&null!==e&&"code"in e&&"message"in e;t.insertParams=function(e,t){return t?Object.keys(t).reduce((e,r)=>{var n;return n=String(t[r]),e.replace(RegExp(`\\{${r}\\}`,"g"),n)},e):e},t.stringifyQuery=function(e){if(!e)return"";let t=new URLSearchParams;Object.keys(e).forEach(r=>{null!=e[r]&&t.append(r,String(e[r]))});let r=t.toString();return r?`?${r}`:""},t.fetchData=function(e,t){return n(this,void 0,void 0,function*(){let r,n;null!=t&&(r={method:"POST",body:"string"==typeof t?t:JSON.stringify(t),headers:{"Content-Type":"application/json"}});let i=yield(0,o.default)(e,r);try{n=yield i.json()}catch(e){if(i.headers&&"0"!==i.headers.get("content-length"))throw Error(`Invalid response content: ${i.statusText}`)}if(!i.ok){let e=a(n)?`${n.code}: ${n.message}`:i.statusText;throw Error(e)}return n})}},80198:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34991);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function u(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),l(e/4294967296>>>0,t,r),l(e>>>0,t,r+4),t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=u,t.readUint32LE=c,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=a(e,t),n=a(e,t+4);return 4294967296*r+n-(n>>31)*4294967296},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=u(e,t);return 4294967296*u(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r},t.writeUint64BE=f,t.writeInt64BE=f,t.writeUint64LE=h,t.writeInt64LE=h,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o=i;a--)r[a]=t/o&255,o*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var o=1,a=i;a16)throw Error("ChaCha20Poly1305: incorrect nonce length");var a,s=new Uint8Array(16);s.set(e,s.length-e.length);var u=new Uint8Array(32);n.stream(this._key,s,u,4);var c=t.length+this.tagLength;if(i){if(i.length!==c)throw Error("ChaCha20Poly1305: incorrect destination length");a=i}else a=new Uint8Array(c);return n.streamXOR(this._key,s,t,a,4),this._authenticate(a.subarray(a.length-this.tagLength,a.length),u,a.subarray(0,a.length-this.tagLength),r),o.wipe(s),a},e.prototype.open=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&s.update(u.subarray(n.length%16))),s.update(r),r.length%16>0&&s.update(u.subarray(r.length%16));var c=new Uint8Array(8);n&&a.writeUint64LE(n.length,c),s.update(c),a.writeUint64LE(r.length,c),s.update(c);for(var l=s.digest(),d=0;d>>16|I<<16)|0,E=E>>>20|E<<12,S^=y=y+w|0,w^=A=A+(S=S>>>16|S<<16)|0,w=w>>>20|w<<12,C^=b=b+P|0,P^=O=O+(C=C>>>16|C<<16)|0,P=P>>>20|P<<12,j^=v=v+x|0,x^=T=T+(j=j>>>16|j<<16)|0,x=x>>>20|x<<12,C^=b=b+P|0,P^=O=O+(C=C>>>24|C<<8)|0,P=P>>>25|P<<7,j^=v=v+x|0,x^=T=T+(j=j>>>24|j<<8)|0,x=x>>>25|x<<7,S^=y=y+w|0,w^=A=A+(S=S>>>24|S<<8)|0,w=w>>>25|w<<7,I^=g=g+E|0,E^=_=_+(I=I>>>24|I<<8)|0,E=E>>>25|E<<7,j^=g=g+w|0,w^=O=O+(j=j>>>16|j<<16)|0,w=w>>>20|w<<12,I^=y=y+P|0,P^=T=T+(I=I>>>16|I<<16)|0,P=P>>>20|P<<12,S^=b=b+x|0,x^=_=_+(S=S>>>16|S<<16)|0,x=x>>>20|x<<12,C^=v=v+E|0,E^=A=A+(C=C>>>16|C<<16)|0,E=E>>>20|E<<12,S^=b=b+x|0,x^=_=_+(S=S>>>24|S<<8)|0,x=x>>>25|x<<7,C^=v=v+E|0,E^=A=A+(C=C>>>24|C<<8)|0,E=E>>>25|E<<7,I^=y=y+P|0,P^=T=T+(I=I>>>24|I<<8)|0,P=P>>>25|P<<7,j^=g=g+w|0,w^=O=O+(j=j>>>24|j<<8)|0,w=w>>>25|w<<7;n.writeUint32LE(g+1634760805|0,e,0),n.writeUint32LE(y+857760878|0,e,4),n.writeUint32LE(b+2036477234|0,e,8),n.writeUint32LE(v+1797285236|0,e,12),n.writeUint32LE(E+i|0,e,16),n.writeUint32LE(w+o|0,e,20),n.writeUint32LE(P+a|0,e,24),n.writeUint32LE(x+s|0,e,28),n.writeUint32LE(_+u|0,e,32),n.writeUint32LE(A+c|0,e,36),n.writeUint32LE(O+l|0,e,40),n.writeUint32LE(T+d|0,e,44),n.writeUint32LE(I+f|0,e,48),n.writeUint32LE(S+h|0,e,52),n.writeUint32LE(C+p|0,e,56),n.writeUint32LE(j+m|0,e,60)}(c,s,e);for(var d=l;d>>=8,t++;if(n>0)throw Error("ChaCha: counter overflow")}(s,0,u)}return i.wipe(c),0===a&&i.wipe(s),o}t.streamXOR=o,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),o(e,t,r,r,n)}},95734:function(e,t){"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},26036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},88010:function(e,t,r){"use strict";var n=r(93275),i=r(88595),o=function(){function e(e,t,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=n.hmac(this._hash,r,t);this._hmac=new n.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;rthis.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},93472:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(95734),i=r(88595);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=e[4]|e[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=e[6]|e[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var a=e[8]|e[9]<<8;this._r[4]=(o>>>4|a<<12)&255,this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=(a>>>14|s<<2)&8191;var u=e[12]|e[13]<<8;this._r[7]=(s>>>11|u<<5)&8065;var c=e[14]|e[15]<<8;this._r[8]=(u>>>8|c<<8)&8191,this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],u=this._h[4],c=this._h[5],l=this._h[6],d=this._h[7],f=this._h[8],h=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],b=this._r[4],v=this._r[5],E=this._r[6],w=this._r[7],P=this._r[8],x=this._r[9];r>=16;){var _,A=e[t+0]|e[t+1]<<8;i+=8191&A;var O=e[t+2]|e[t+3]<<8;o+=(A>>>13|O<<3)&8191;var T=e[t+4]|e[t+5]<<8;a+=(O>>>10|T<<6)&8191;var I=e[t+6]|e[t+7]<<8;s+=(T>>>7|I<<9)&8191;var S=e[t+8]|e[t+9]<<8;u+=(I>>>4|S<<12)&8191,c+=S>>>1&8191;var C=e[t+10]|e[t+11]<<8;l+=(S>>>14|C<<2)&8191;var j=e[t+12]|e[t+13]<<8;d+=(C>>>11|j<<5)&8191;var D=e[t+14]|e[t+15]<<8;f+=(j>>>8|D<<8)&8191,h+=D>>>5|n;var B=0;B=(_=0+i*p+o*(5*x)+a*(5*P)+s*(5*w)+u*(5*E))>>>13,_&=8191,_+=c*(5*v)+l*(5*b)+d*(5*y)+f*(5*g)+h*(5*m),B+=_>>>13,_&=8191;var R=B;R+=i*m+o*p+a*(5*x)+s*(5*P)+u*(5*w),B=R>>>13,R&=8191,R+=c*(5*E)+l*(5*v)+d*(5*b)+f*(5*y)+h*(5*g),B+=R>>>13,R&=8191;var M=B;M+=i*g+o*m+a*p+s*(5*x)+u*(5*P),B=M>>>13,M&=8191,M+=c*(5*w)+l*(5*E)+d*(5*v)+f*(5*b)+h*(5*y),B+=M>>>13,M&=8191;var k=B;k+=i*y+o*g+a*m+s*p+u*(5*x),B=k>>>13,k&=8191,k+=c*(5*P)+l*(5*w)+d*(5*E)+f*(5*v)+h*(5*b),B+=k>>>13,k&=8191;var N=B;N+=i*b+o*y+a*g+s*m+u*p,B=N>>>13,N&=8191,N+=c*(5*x)+l*(5*P)+d*(5*w)+f*(5*E)+h*(5*v),B+=N>>>13,N&=8191;var U=B;U+=i*v+o*b+a*y+s*g+u*m,B=U>>>13,U&=8191,U+=c*p+l*(5*x)+d*(5*P)+f*(5*w)+h*(5*E),B+=U>>>13,U&=8191;var L=B;L+=i*E+o*v+a*b+s*y+u*g,B=L>>>13,L&=8191,L+=c*m+l*p+d*(5*x)+f*(5*P)+h*(5*w),B+=L>>>13,L&=8191;var F=B;F+=i*w+o*E+a*v+s*b+u*y,B=F>>>13,F&=8191,F+=c*g+l*m+d*p+f*(5*x)+h*(5*P),B+=F>>>13,F&=8191;var $=B;$+=i*P+o*w+a*E+s*v+u*b,B=$>>>13,$&=8191,$+=c*y+l*g+d*m+f*p+h*(5*x),B+=$>>>13,$&=8191;var H=B;H+=i*x+o*P+a*w+s*E+u*v,B=H>>>13,H&=8191,H+=c*b+l*y+d*g+f*m+h*p,B+=H>>>13,H&=8191,_=8191&(B=(B=(B<<2)+B|0)+_|0),B>>>=13,R+=B,i=_,o=R,a=M,s=k,u=N,c=U,l=L,d=F,f=$,h=H,t+=16,r-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=u,this._h[5]=c,this._h[6]=l,this._h[7]=d,this._h[8]=f,this._h[9]=h},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(o=0,n=~n;o<10;o++)this._h[o]=this._h[o]&n|a[o];for(o=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,i=this._h[0]+this._pad[0],this._h[0]=65535&i;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(var i=0;i256)throw Error("randomString charset is too long");let i="",u=r.length,c=256-256%u;for(;e>0;){let t=a(Math.ceil(256*e/c),n);for(let n=0;n0;n++){let o=t[n];o0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=s(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%64<56?64:128;this._buffer[r]=128;for(var o=r+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,r,i,o){for(;o>=64;){for(var s=t[0],u=t[1],c=t[2],l=t[3],d=t[4],f=t[5],h=t[6],p=t[7],m=0;m<16;m++){var g=i+4*m;e[m]=n.readUint32BE(r,g)}for(var m=16;m<64;m++){var y=e[m-2],b=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[m]=(b+e[m-7]|0)+(v+e[m-16]|0)}for(var m=0;m<64;m++){var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&h)|0)+(p+(a[m]+e[m]|0)|0)|0,v=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&u^s&c^u&c)|0;p=h,h=f,f=d,d=l+b|0,l=c,c=u,u=s,s=b+v|0}t[0]+=s,t[1]+=u,t[2]+=c,t[3]+=l,t[4]+=d,t[5]+=f,t[6]+=h,t[7]+=p,i+=64,o-=64}return i}t.vp=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},88595:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t=0;--e){let t=r[e>>>3]>>>(7&e)&1;c(i,a,t),c(h,p,t),l(m,i,h),d(i,i,h),l(h,a,p),d(a,a,p),f(p,m,m),f(g,i,i),f(i,h,i),f(h,a,m),l(m,i,h),d(i,i,h),f(a,i,i),d(h,p,g),f(i,h,s),l(i,i,p),f(h,h,i),f(i,p,g),f(p,a,n),f(a,m,m),c(i,a,t),c(h,p,t)}for(let e=0;e<16;e++)n[e+16]=i[e],n[e+32]=h[e],n[e+48]=a[e],n[e+64]=p[e];let y=n.subarray(32),b=n.subarray(16);!function(e,t){let r=o();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)f(r,r,r),2!==e&&4!==e&&f(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(y,y),f(b,b,y);let v=new Uint8Array(32);return!function(e,t){let r=o(),n=o();for(let e=0;e<16;e++)n[e]=t[e];u(n),u(n),u(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,c(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}(v,b),v}t.Au=function(e){let r=(0,n.randomBytes)(32,e),o=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e),n=h(r,a);return{publicKey:n,secretKey:r}}(r);return(0,i.wipe)(r),o},t.gi=function(e,r,n=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let i=h(e,r);if(n){let e=0;for(let t=0;t{setTimeout(()=>{t(!0)},e)})}},36979:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(15695);n.__exportStar(r(8634),t),n.__exportStar(r(62663),t)},54734:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e),r=t.elapsed||Date.now()-t.started;return r}}t.Watch=r,t.default=r},83160:function(e,t,r){"use strict";r.d(t,{AW:function(){return v},rV:function(){return P},gn:function(){return en},H1:function(){return X},hF:function(){return J},WG:function(){return I},pe:function(){return C},m$:function(){return A},vB:function(){return j},HI:function(){return S},E0:function(){return eo},Gq:function(){return et},$0:function(){return W},Z4:function(){return ee},Bv:function(){return ey},Au:function(){return x},jd:function(){return _},gu:function(){return g},D:function(){return G},Z7:function(){return eR},cO:function(){return ec},_H:function(){return eu},fc:function(){return eI},D6:function(){return eM},Hh:function(){return es},Ym:function(){return O},rj:function(){return T},jU:function(){return q},gp:function(){return eS},rF:function(){return e9},Bw:function(){return ei},UG:function(){return H},xW:function(){return eq},b$:function(){return z},Ih:function(){return e$},h1:function(){return eV},Q8:function(){return R},o8:function(){return eU},qt:function(){return ek},Dd:function(){return eG},$t:function(){return e1},nf:function(){return e3},Q0:function(){return eQ},in:function(){return eZ},p8:function(){return e5},sI:function(){return e4},al:function(){return e8},L5:function(){return eN},EJ:function(){return e0},Z2:function(){return eX},PM:function(){return eJ},hH:function(){return e2},ON:function(){return te},n:function(){return eY},JT:function(){return e6},M_:function(){return eL},jv:function(){return ez},KC:function(){return Y},eG:function(){return ea},fK:function(){return ej},IP:function(){return Z},iP:function(){return er},M:function(){return eC},he:function(){return eg},Ll:function(){return D},EN:function(){return B}});var n=r(97870),i=r(88010),o=r(57955),a=r(20026),s=r(6625),u=r(17636),c=r(65389),l=r(1540),d=r(17151),f=r(91593),h=r(54523);r(41363);let p={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var m=r(40514);function g(e,t=[]){let r=[];return Object.keys(e).forEach(n=>{if(t.length&&!t.includes(n))return;let i=e[n];r.push(...i.accounts)}),r}function y(e,t){return e.includes(":")?[e]:t.chains||[]}let b="base10",v="base16",E="base64pad",w="utf8",P=1;function x(){let e=s.Au();return{privateKey:(0,u.BB)(e.secretKey,v),publicKey:(0,u.BB)(e.publicKey,v)}}function _(){let e=(0,o.randomBytes)(32);return(0,u.BB)(e,v)}function A(e,t){let r=s.gi((0,u.mL)(e,v),(0,u.mL)(t,v)),n=new i.t(a.mE,r).expand(32);return(0,u.BB)(n,v)}function O(e){let t=(0,a.vp)((0,u.mL)(e,v));return(0,u.BB)(t,v)}function T(e){let t=(0,a.vp)((0,u.mL)(e,w));return(0,u.BB)(t,v)}function I(e){return Number((0,u.BB)(e,b))}function S(e){var t;let r=(t="u">typeof e.type?e.type:0,(0,u.mL)(`${t}`,b));if(I(r)===P&&typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let i="u">typeof e.senderPublicKey?(0,u.mL)(e.senderPublicKey,v):void 0,a="u">typeof e.iv?(0,u.mL)(e.iv,v):(0,o.randomBytes)(12),s=new n.OK((0,u.mL)(e.symKey,v)).seal(a,(0,u.mL)(e.message,w));return function(e){if(I(e.type)===P){if(typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return(0,u.BB)((0,u.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),E)}return(0,u.BB)((0,u.zo)([e.type,e.iv,e.sealed]),E)}({type:r,sealed:s,iv:a,senderPublicKey:i})}function C(e){let t=new n.OK((0,u.mL)(e.symKey,v)),{sealed:r,iv:i}=j(e.encoded),o=t.open(i,r);if(null===o)throw Error("Failed to decrypt");return(0,u.BB)(o,w)}function j(e){let t=(0,u.mL)(e,E),r=t.slice(0,1);if(I(r)===P){let e=t.slice(1,33),n=t.slice(33,45),i=t.slice(45);return{type:r,sealed:i,iv:n,senderPublicKey:e}}let n=t.slice(1,13),i=t.slice(13);return{type:r,sealed:i,iv:n}}function D(e,t){let r=j(e);return B({type:I(r.type),senderPublicKey:"u">typeof r.senderPublicKey?(0,u.BB)(r.senderPublicKey,v):void 0,receiverPublicKey:t?.receiverPublicKey})}function B(e){let t=e?.type||0;if(t===P){if(typeof e?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function R(e){return e.type===P&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var M=Object.defineProperty,k=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,L=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))N.call(t,r)&&L(e,r,t[r]);if(k)for(var r of k(t))U.call(t,r)&&L(e,r,t[r]);return e};let $={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function H(){return"u">typeof m&&"u">typeof m.versions&&"u">typeof m.versions.node}function z(){return!(0,d.getDocument)()&&!!(0,d.getNavigator)()&&"ReactNative"===navigator.product}function q(){return!H()&&!!(0,d.getNavigator)()}function V(){return z()?$.reactNative:H()?$.node:q()?$.browser:$.unknown}function G(){return(0,f.D)()||{name:"",description:"",url:"",icons:[""]}}function W({protocol:e,version:t,relayUrl:n,sdkVersion:i,auth:o,projectId:a,useOnCloseEvent:s}){var u;let l;let f=n.split("?"),p=function(e,t,n){let i=function(){if(V()===$.reactNative&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Platform)){let{OS:e,Version:t}=r.g.Platform;return[e,t].join("-")}let e=(0,c.qY)();if(null===e)return"unknown";let t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),o=function(){var e;let t=V();return t===$.browser?[t,(null==(e=(0,d.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),["js",n].join("-"),i,o].join("/")}(e,t,i),m=(u=f[1]||"",l=F(F({},l=h.parse(u)),{auth:o,ua:p,projectId:a,useOnCloseEvent:s||void 0}),u=h.stringify(l));return f[0]+"?"+m}function K(e,t){return e.filter(e=>t.includes(e)).length===e.length}function Y(e){return Object.fromEntries(e.entries())}function Z(e){return new Map(Object.entries(e))}function X(e=l.FIVE_MINUTES,t){let r,n,i;let o=(0,l.toMiliseconds)(e||l.FIVE_MINUTES);return{resolve:e=>{i&&r&&(clearTimeout(i),r(e))},reject:e=>{i&&n&&(clearTimeout(i),n(e))},done:()=>new Promise((e,a)=>{i=setTimeout(()=>{a(Error(t))},o),r=e,n=a})}}function J(e,t,r){return new Promise(async(n,i)=>{let o=setTimeout(()=>i(Error(r)),t);try{let t=await e;n(t)}catch(e){i(e)}clearTimeout(o)})}function Q(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw Error(`Unknown expirer target type: ${e}`)}function ee(e){return Q("topic",e)}function et(e){return Q("id",e)}function er(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof r)n.topic=r;else if("id"===t&&Number.isInteger(Number(r)))n.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function en(e,t){return(0,l.fromMiliseconds)((t||Date.now())+(0,l.toMiliseconds)(e))}function ei(e){return Date.now()>=(0,l.toMiliseconds)(e)}function eo(e,t){return`${e}${t?`:${t}`:""}`}function ea(e=[],t=[]){return[...new Set([...e,...t])]}async function es({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;let i="string"==typeof n?JSON.parse(n):n,o=i?.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));let a=`${o}/wc?requestId=${e}&sessionTopic=${t}`,s=V();s===$.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===$.reactNative&&"u">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(a)}catch(e){console.error(e)}}function eu(e){return e?.relay||{protocol:"irn"}}function ec(e){let t=p[e];if(typeof t>"u")throw Error(`Relay Protocol not supported: ${e}`);return t}var el=Object.defineProperty,ed=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable,ep=(e,t,r)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,em=(e,t)=>{for(var r in t||(t={}))ef.call(t,r)&&ep(e,r,t[r]);if(ed)for(var r of ed(t))eh.call(t,r)&&ep(e,r,t[r]);return e};function eg(e){var t;let r=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,i=e.substring(0,r),o=e.substring(r+1,n).split("@"),a="u">typeof n?e.substring(n):"",s=h.parse(a);return{protocol:i,topic:(t=o[0]).startsWith("//")?t.substring(2):t,version:parseInt(o[1],10),symKey:s.symKey,relay:function(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(t=>{if(t.startsWith(n)){let i=t.replace(n,""),o=e[t];r[i]=o}}),r}(s)}}function ey(e){return`${e.protocol}:${e.topic}@${e.version}?`+h.stringify(em({symKey:e.symKey},function(e,t="-"){let r={};return Object.keys(e).forEach(n=>{e[n]&&(r["relay"+t+n]=e[n])}),r}(e.relay)))}var eb=Object.defineProperty,ev=Object.defineProperties,eE=Object.getOwnPropertyDescriptors,ew=Object.getOwnPropertySymbols,eP=Object.prototype.hasOwnProperty,ex=Object.prototype.propertyIsEnumerable,e_=(e,t,r)=>t in e?eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eA=(e,t)=>{for(var r in t||(t={}))eP.call(t,r)&&e_(e,r,t[r]);if(ew)for(var r of ew(t))ex.call(t,r)&&e_(e,r,t[r]);return e},eO=(e,t)=>ev(e,eE(t));function eT(e){let t=[];return e.forEach(e=>{let[r,n]=e.split(":");t.push(`${r}:${n}`)}),t}function eI(e,t){let r=eZ(e,t);if(r)throw Error(r.message);let n={};for(let[t,r]of Object.entries(e))n[t]={methods:r.methods,events:r.events,chains:r.accounts.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)};return n}function eS(e){return e.includes(":")}function eC(e){return eS(e)?e.split(":")[0]:e}function ej(e){var t,r,n;let i={};if(!eN(e))return i;for(let[o,a]of Object.entries(e)){let e=eS(o)?[o]:a.chains,s=a.methods||[],u=a.events||[],c=eC(o);i[c]=eO(eA({},i[c]),{chains:ea(e,null==(t=i[c])?void 0:t.chains),methods:ea(s,null==(r=i[c])?void 0:r.methods),events:ea(u,null==(n=i[c])?void 0:n.events)})}return i}let eD={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},eB={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function eR(e,t){let{message:r,code:n}=eB[e];return{message:t?`${r} ${t}`:r,code:n}}function eM(e,t){let{message:r,code:n}=eD[e];return{message:t?`${r} ${t}`:r,code:n}}function ek(e,t){return!!Array.isArray(e)&&(!("u">typeof t)||!e.length||e.every(t))}function eN(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function eU(e){return typeof e>"u"}function eL(e,t){return!!(t&&eU(e))||"string"==typeof e&&!!e.trim().length}function eF(e,t){return!!(t&&eU(e))||"number"==typeof e&&!isNaN(e)}function e$(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return!!K(i,n)&&(n.forEach(t=>{let{accounts:n,methods:i,events:a}=e.namespaces[t],s=eT(n),u=r[t];K(y(t,u),s)&&K(u.methods,i)&&K(u.events,a)||(o=!1)}),o)}function eH(e){return!!(eL(e,!1)&&e.includes(":"))&&2===e.split(":").length}function ez(e){if(eL(e,!1))try{return"u">typeof new URL(e)}catch{}return!1}function eq(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}function eV(e){return e?.topic}function eG(e,t){let r=null;return eL(e?.publicKey,!1)||(r=eR("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function eW(e){let t=!0;return ek(e)?e.length&&(t=e.every(e=>eL(e,!1))):t=!1,t}function eK(e,t){let r=null;return Object.values(e).forEach(e=>{var n;let i;if(r)return;let o=(n=`${t}, namespace`,i=null,eW(e?.methods)?eW(e?.events)||(i=eM("UNSUPPORTED_EVENTS",`${n}, events should be an array of strings or empty array for no events`)):i=eM("UNSUPPORTED_METHODS",`${n}, methods should be an array of strings or empty array for no methods`),i);o&&(r=o)}),r}function eY(e,t,r){let n=null;if(e&&eN(e)){let i;let o=eK(e,t);o&&(n=o);let a=(i=null,Object.entries(e).forEach(([e,n])=>{var o,a;let s;if(i)return;let u=(o=y(e,n),a=`${t} ${r}`,s=null,ek(o)&&o.length?o.forEach(e=>{s||eH(e)||(s=eM("UNSUPPORTED_CHAINS",`${a}, chain ${e} should be a string and conform to "namespace:chainId" format`))}):eH(e)||(s=eM("UNSUPPORTED_CHAINS",`${a}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),s);u&&(i=u)}),i);a&&(n=a)}else n=eR("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function eZ(e,t){let r=null;if(e&&eN(e)){let n;let i=eK(e,t);i&&(r=i);let o=(n=null,Object.values(e).forEach(e=>{var r,i;let o;if(n)return;let a=(r=e?.accounts,i=`${t} namespace`,o=null,ek(r)?r.forEach(e=>{o||function(e){if(eL(e,!1)&&e.includes(":")){let t=e.split(":");if(3===t.length){let e=t[0]+":"+t[1];return!!t[2]&&eH(e)}}return!1}(e)||(o=eM("UNSUPPORTED_ACCOUNTS",`${i}, account ${e} should be a string and conform to "namespace:chainId:address" format`))}):o=eM("UNSUPPORTED_ACCOUNTS",`${i}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),o);a&&(n=a)}),n);o&&(r=o)}else r=eR("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function eX(e){return eL(e.protocol,!0)}function eJ(e,t){let r=!1;return t&&!e?r=!0:e&&ek(e)&&e.length&&e.forEach(e=>{r=eX(e)}),r}function eQ(e){return"number"==typeof e}function e0(e){return"u">typeof e}function e1(e){return!(!e||"object"!=typeof e||!e.code||!eF(e.code,!1)||!e.message||!eL(e.message,!1))}function e2(e){return!(eU(e)||!eL(e.method,!1))}function e6(e){return!(eU(e)||eU(e.result)&&eU(e.error)||!eF(e.id,!1)||!eL(e.jsonrpc,!1))}function e3(e){return!(eU(e)||!eL(e.name,!1))}function e5(e,t){return!(!eH(t)||!(function(e){let t=[];return Object.values(e).forEach(e=>{t.push(...eT(e.accounts))}),t})(e).includes(t))}function e8(e,t,r){return!!eL(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{eT(e.accounts).includes(t)&&r.push(...e.methods)}),r})(e,t).includes(r)}function e4(e,t,r){return!!eL(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{eT(e.accounts).includes(t)&&r.push(...e.events)}),r})(e,t).includes(r)}function e9(e,t,r){let n=null,i=function(e){let t={};return Object.keys(e).forEach(r=>{var n;r.includes(":")?t[r]=e[r]:null==(n=e[r].chains)||n.forEach(n=>{t[n]={methods:e[r].methods,events:e[r].events}})}),t}(e),o=function(e){let t={};return Object.keys(e).forEach(r=>{if(r.includes(":"))t[r]=e[r];else{let n=eT(e[r].accounts);n?.forEach(n=>{t[n]={accounts:e[r].accounts.filter(e=>e.includes(`${n}:`)),methods:e[r].methods,events:e[r].events}})}}),t}(t),a=Object.keys(i),s=Object.keys(o),u=e7(Object.keys(e)),c=e7(Object.keys(t)),l=u.filter(e=>!c.includes(e));return l.length&&(n=eR("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces. + Required: ${l.toString()} + Received: ${Object.keys(t).toString()}`)),K(a,s)||(n=eR("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces. + Required: ${a.toString()} + Approved: ${s.toString()}`)),Object.keys(t).forEach(e=>{if(!e.includes(":")||n)return;let i=eT(t[e].accounts);i.includes(e)||(n=eR("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e} + Required: ${e} + Approved: ${i.toString()}`))}),a.forEach(e=>{n||(K(i[e].methods,o[e].methods)?K(i[e].events,o[e].events)||(n=eR("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):n=eR("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))}),n}function e7(e){return[...new Set(e.map(e=>e.includes(":")?e.split(":")[0]:e))]}function te(e,t){return eF(e,!1)&&e<=t.max&&e>=t.min}},17151:function(e,t){"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},91593:function(e,t,r){"use strict";t.D=void 0;let n=r(17151);t.D=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(...t){let r=e.getElementsByTagName("meta");for(let e=0;en.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=n.getAttribute("content");if(e)return e}}return""}let o=((r=i("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),a=function(){let e=i("description","og:description","twitter:description","keywords");return e}(),s=t.origin,u=function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e-1){let e=i.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop();let i=n.join("/");r+=i+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}}return n}();return{description:a,url:s,icons:u,name:o}}},48421:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i((a+s)*3/4-s),l=0,d=s>0?a-4:a;for(r=0;r>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},78504:function(e,t,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */let n=r(48421),i=r(26701),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(N(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),a(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=a(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return M(e).length;default:if(i)return n?-1:R(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(u=(31&t)<<6|63&r)>127&&(o=u);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(u=(15&t)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function P(e,t,r,n,i){C(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function x(e,t,r,n,i){C(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function _(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function A(e,t,r,n,o){return t=+t,r>>>=0,o||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function O(e,t,r,n,o){return t=+t,r>>>=0,o||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,u=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-l),this,l,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||E(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||E(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=L(function(e){j(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||E(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||E(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=L(function(e){j(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||E(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=L(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=L(function(e,t=0){return x(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=L(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=L(function(e,t=0){return x(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return O(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function C(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new T.ERR_OUT_OF_RANGE("value",n,e)}j(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&D(i,n.length-(o+1))}function j(e,t){if("number"!=typeof e)throw new T.ERR_INVALID_ARG_TYPE(t,"number",e)}function D(e,t,r){if(Math.floor(e)!==e)throw j(e,r),new T.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new T.ERR_BUFFER_OUT_OF_BOUNDS;throw new T.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}I("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),I("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),I("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=S(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=S(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let B=/[^+/0-9A-Za-z-_]/g;function R(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function M(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let U=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function L(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},59880:function(e,t){var r,n="undefined"!=typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();r=i,function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function l(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=l(t);return t.readAsArrayBuffer(e),r}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=c(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=l(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},h.call(m.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(r,n){return new Promise(function(i,o){var a=new m(r,n);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var n="response"in s?s.response:s.responseText;i(new y(n,r))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}v.polyfill=!0,r.fetch||(r.fetch=v,r.Headers=u,r.Request=m,r.Response=y),e.Headers=u,e.Request=m,e.Response=y,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill,(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},90079:function(e){function t(e,t,r){function n(){var c=Date.now()-s;c=0?i=setTimeout(n,t-c):(i=null,r||(u=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,u,c=function(){a=this,o=arguments,s=Date.now();var c=r&&!i;return i||(i=setTimeout(n,t)),c&&(u=e.apply(a,o),a=o=null),u};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(u=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},c}t.debounce=t,e.exports=t},52375:function(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},i=n.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var o=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;nc)&&(f[a]=c,h.push(a,c),d[a]=o));if(void 0!==n&&void 0===f[n])throw Error(["Could not find a path from ",r," to ",n,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.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},72180:function(e){"use strict";e.exports=function(e){for(var t=[],r=e.length,n=0;n=55296&&i<=56319&&r>n+1){var o=e.charCodeAt(n+1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536,n+=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}},11293:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&"function"==typeof e.on&&m(e,"error",i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,c=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,l=p(u,c),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},44817:function(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}},40514:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(71770)},24317:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(63545);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{})}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let v=i.default.forwardRef(function(e,t){let r,n;let{href:s,as:g,children:v,prefetch:E=null,passHref:w,replace:P,shallow:x,scroll:_,locale:A,onClick:O,onMouseEnter:T,onTouchStart:I,legacyBehavior:S=!1,...C}=e;r=v,S&&("string"==typeof r||"number"==typeof r)&&(r=i.default.createElement("a",null,r));let j=!1!==E,D=null===E?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,B=i.default.useContext(l.RouterContext),R=i.default.useContext(d.AppRouterContext),M=null!=B?B:R,k=!B,{href:N,as:U}=i.default.useMemo(()=>{if(!B){let e=b(s);return{href:e,as:g?b(g):e}}let[e,t]=(0,o.resolveHref)(B,s,!0);return{href:e,as:g?(0,o.resolveHref)(B,g):t||e}},[B,s,g]),L=i.default.useRef(N),F=i.default.useRef(U);S&&(n=i.default.Children.only(r));let $=S?n&&"object"==typeof n&&n.ref:t,[H,z,q]=(0,f.useIntersection)({rootMargin:"200px"}),V=i.default.useCallback(e=>{(F.current!==U||L.current!==N)&&(q(),F.current=U,L.current=N),H(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[U,$,N,q,H]);i.default.useEffect(()=>{M&&z&&j&&y(M,N,U,{locale:A},{kind:D},k)},[U,N,z,A,j,null==B?void 0:B.locale,M,k,D]);let G={ref:V,onClick(e){S||"function"!=typeof O||O(e),S&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,r,n,o,s,u,c,l,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!l&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:s,locale:c,scroll:u}):t[o?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};l?i.default.startTransition(p):p()}(e,M,N,U,P,x,_,A,k,j)},onMouseEnter(e){S||"function"!=typeof T||T(e),S&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&(j||!k)&&y(M,N,U,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:D},k)},onTouchStart(e){S||"function"!=typeof I||I(e),S&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&(j||!k)&&y(M,N,U,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:D},k)}};if((0,u.isAbsoluteUrl)(U))G.href=U;else if(!S||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==A?A:null==B?void 0:B.locale,t=(null==B?void 0:B.isLocaleDomain)&&(0,h.getDomainLocale)(U,e,null==B?void 0:B.locales,null==B?void 0:B.domainLocales);G.href=t||(0,p.addBasePath)((0,c.addLocale)(U,e,null==B?void 0:B.defaultLocale))}return S?i.default.cloneElement(n,G):i.default.createElement("a",{...C,...G},r)}),E=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5840:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91726:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let n=r(37010),i=r(5840),o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(e){let{rootRef:t,rootMargin:r,disabled:u}=e,c=u||!o,[l,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(o){if(c||l)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!l){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,r,t,l,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,l,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12961:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function i(e){return r.test(e)?e.replace(n,"\\$&"):e}},81899:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return o}});let n=r(80670),i=n._(r(37010)),o=i.default.createContext(null)},71475:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},urlObjectKeys:function(){return s},formatWithValidation:function(){return u}});let n=r(95294),i=n._(r(2357)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",s=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let l=e.search||u&&"?"+u||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),""+n+c+(a=a.replace(/[?#]/g,encodeURIComponent))+(l=l.replace("#","%23"))+s}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},37197:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let n=r(64998),i=r(67912);function o(e,t,r){let o="",a=(0,i.getRouteRegex)(e),s=a.groups,u=(t!==e?(0,n.getRouteMatcher)(a)(t):"")||r;o=e;let c=Object.keys(s);return c.every(e=>{let t=u[e]||"",{repeat:r,optional:n}=s[e],i="["+(r?"...":"")+e+"]";return n&&(i=(t?"":"/")+"["+i+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in u)&&(o=o.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:c,result:o}}},90490:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});let r=/\/\[[^/]+?\](?=\/|$)/;function n(e){return r.test(e)}},95121:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=r(31704),i=r(10753);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},22707:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},29583:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return i}});let n=r(57179);function i(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},2357:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,i]=e;Array.isArray(i)?i.forEach(e=>t.append(r,n(e))):t.set(r,n(i))}),t}function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i},assign:function(){return o}})},40698:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(2357),i=r(71475),o=r(22707),a=r(31704),s=r(63545),u=r(95121),c=r(90490),l=r(37197);function d(e,t,r){let d;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,u.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,l.interpolateAs)(e.pathname,e.pathname,r);a&&(t=(0,i.formatWithValidation)({pathname:a,hash:e.hash,query:(0,o.omit)(r,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[a,t||a]:a}catch(e){return r?[f]:f}}},64998:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let n=r(31704);function i(e){let{re:t,groups:r}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},a={};return Object.keys(r).forEach(e=>{let t=r[e],n=i[t.pos];void 0!==n&&(a[e]=~n.indexOf("/")?n.split("/").map(e=>o(e)):t.repeat?[o(n)]:o(n))}),a}}},67912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return l},getNamedMiddlewareRegex:function(){return d}});let n=r(12961),i=r(26791),o="nxtP";function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function s(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),r={},o=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:t,optional:n,repeat:i}=a(e.slice(1,-1));return r[t]={pos:o++,repeat:i,optional:n},i?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function u(e){let{parameterizedRoute:t,groups:r}=s(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function c(e,t){let r,s;let u=(0,i.removeTrailingSlash)(e).slice(1).split("/"),c=(r=97,s=1,()=>{let e="";for(let t=0;t122&&(s++,r=97);return e}),l={};return{namedParameterizedRoute:u.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:r,optional:n,repeat:i}=a(e.slice(1,-1)),s=r.replace(/\W/g,"");t&&(s=""+o+s);let u=!1;return(0===s.length||s.length>30)&&(u=!0),isNaN(parseInt(s.slice(0,1)))||(u=!0),u&&(s=c()),t?l[s]=""+o+r:l[s]=""+r,i?n?"(?:/(?<"+s+">.+?))?":"/(?<"+s+">.+?)":"/(?<"+s+">[^/]+?)"}}).join(""),routeKeys:l}}function l(e,t){let r=c(e,t);return{...u(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=s(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(n?"(?:(/.*)?)":"")+"$"}}},31704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return a},getURL:function(){return s},getDisplayName:function(){return u},isResSent:function(){return c},normalizeRepeatedSlashes:function(){return l},loadGetInitialProps:function(){return d},SP:function(){return f},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;oi.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function l(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n){let t='"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},71770:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],c=!1,l=-1;function d(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l1)for(var r=1;r>>7-e%8&1)==1},put:function(e,t){for(let r=0;r>>t-r-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++}},e.exports=t},29080:function(e){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)}t.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},23831:function(e,t,r){let n=r(72180),i=r(65773);function o(e){this.mode=i.BYTE,"string"==typeof e&&(e=n(e)),this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,r=this.data.length;t=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let r=e.toLowerCase();switch(r){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},61400:function(e,t,r){let n=r(82709).getSymbolSize;t.getPositions=function(e){let t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},29590:function(e,t,r){let n=r(82709),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,o=r<<10;for(;n.getBCHDigit(o)-i>=0;)o^=1335<=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=o},94295:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,n=0,i=0,o=0,a=null,s=null;for(let u=0;u=5&&(n+=r.N1+(i-5)),a=t,i=1),(t=e.get(c,u))===s?o++:(o>=5&&(n+=r.N1+(o-5)),s=t,o=1)}i>=5&&(n+=r.N1+(i-5)),o>=5&&(n+=r.N1+(o-5))}return n},t.getPenaltyN2=function(e){let t=e.size,n=0;for(let r=0;r=10&&(1488===i||93===i)&&n++,o=o<<1&2047|e.get(a,r),a>=10&&(1488===o||93===o)&&n++}return n*r.N3},t.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let r=0;r=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let r=e.toLowerCase();switch(r){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},52055:function(e,t,r){let n=r(65773);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let n=this.data.length-t;n>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*n+1))},e.exports=i},23611:function(e,t,r){let n=r(48858);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let i=0;i=0;){let e=r[0];for(let i=0;i>n&1)==1,n<6?e.set(n,8,i,!0):n<8?e.set(n+1,8,i,!0):e.set(o-15+n,8,i,!0),n<8?e.set(8,o-n-1,i,!0):n<9?e.set(8,15-n-1+1,i,!0):e.set(8,15-n-1,i,!0);e.set(o-8,8,1,!0)}t.create=function(e,t){let r,h;if(void 0===e||""===e)throw Error("No input text");let y=i.M;return void 0!==t&&(y=i.from(t.errorCorrectionLevel,i.M),r=f.from(t.version),h=c.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),function(e,t,r,i){let h;if(Array.isArray(e))h=m.fromArray(e);else if("string"==typeof e){let n=t;if(!n){let t=m.rawSplit(e);n=f.getBestVersionForData(t,r)}h=m.fromString(e,n||40)}else throw Error("Invalid data");let y=f.getBestVersionForData(h,r);if(!y)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,o+n,!0,!0):e.set(i+t,o+n,!1,!0))}}(E,t),function(e){let t=e.size;for(let r=8;r=7&&function(e,t){let r,n,i;let o=e.size,a=f.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),n=t%3+o-8-3,i=(a>>t&1)==1,e.set(r,n,i,!0),e.set(n,r,i,!0)}(E,t),function(e,t){let r=e.size,n=-1,i=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,s-r)){let n=!1;a>>o&1)==1),e.set(i,s-r,n),-1==--o&&(a++,o=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}(E,b),isNaN(i)&&(i=c.getBestMask(E,g.bind(null,E,r))),c.applyMask(i,E),g(E,r,i),{modules:E,version:t,errorCorrectionLevel:r,maskPattern:i,segments:h}}(e,r,y,h)}},118:function(e,t,r){let n=r(23611);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},e.exports=i},37186:function(e,t){let r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");let i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";t.KANJI=RegExp(n,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(i,"g"),t.NUMERIC=RegExp(r,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+n+"$"),a=RegExp("^"+r+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},98484:function(e,t,r){let n=r(65773),i=r(52055),o=r(20848),a=r(23831),s=r(64585),u=r(37186),c=r(82709),l=r(31124);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,r){let n;let i=[];for(;null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function h(e){let t,r;let i=f(u.NUMERIC,n.NUMERIC,e),o=f(u.ALPHANUMERIC,n.ALPHANUMERIC,e);c.isKanjiModeEnabled()?(t=f(u.BYTE,n.BYTE,e),r=f(u.KANJI,n.KANJI,e)):(t=f(u.BYTE_KANJI,n.BYTE,e),r=[]);let a=i.concat(o,t,r);return a.sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function m(e,t){let r;let u=n.getBestModeForData(e);if((r=n.from(t,u))!==n.BYTE&&r.bit=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(h(e,c.isKanjiModeEnabled()))}},82709:function(e,t){let r;let n=[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];t.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},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},36403:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},32600:function(e,t,r){let n=r(82709),i=r(64924),o=r(60524),a=r(65773),s=r(36403),u=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);let o=n.getSymbolTotalCodewords(e),u=i.getTotalCodewordsCount(e,t),l=(o-u)*8;if(r===a.MIXED)return l;let d=l-c(r,e);switch(r){case a.NUMERIC:return Math.floor(d/10*3);case a.ALPHANUMERIC:return Math.floor(d/11*2);case a.KANJI:return Math.floor(d/13);case a.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,r){let n;let i=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++){let i=function(e,t){let r=0;return e.forEach(function(e){let n=c(e.mode,t);r+=n+e.getBitsLength()}),r}(e,n);if(i<=t.getCapacity(n,r,a.MIXED))return n}}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;n.getBCHDigit(t)-u>=0;)t^=7973<':"",d="0&&c>0&&e[u-1]||(n+=a?o("M",c+r,.5+l+r):o("m",i,0),i=0,a=!1),c+1',f=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",h=''+l+d+"\n";return"function"==typeof r&&r(null,h),h}},89033:function(e,t){function r(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 r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){let n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){let i=r.modules.size,o=r.modules.data,a=t.getScale(i,n),s=Math.floor((i+2*n.margin)*a),u=n.margin*a,c=[n.color.light,n.color.dark];for(let t=0;t=u&&r>=u&&tnull==e,u=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(e,t){return t.decode?i(e):e}function f(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function h(e){e=f(e);let t=e.indexOf("?");return -1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&d(r,e).includes(e.arrayFormatSeparator);r=o?d(r,e):r;let a=i||o?r.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===r?r:d(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){n[t]=r?d(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>d(t,e));if(void 0===n[t]){n[t]=o;return}n[t]=[].concat(n[t],o)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:d(a,t),r(d(e,t),a,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=h,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",i,"]"].join("")]:[...r,[l(t,e),"[",l(i,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length)?[[l(r,e),t,l(i,e)].join("")]:[[n,l(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),i={};for(let t of Object.keys(e))r(t)||(i[t]=e[t]);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let i=e[r];return void 0===i?"":null===i?l(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":i.reduce(n(r),[]).join("&"):l(r,t)+"="+l(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(h(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[u]:!0},r);let n=f(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query),s=t.stringify(a,r);s&&(s=`?${s}`);let c=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(c=`#${r[u]?l(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${s}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[u]:!1},n);let{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:a(o,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},59767:function(e,t){"use strict";/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case u:return e;default:return t}}case i:return t}}}function P(e){return w(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return P(e)||w(e)===l},t.isConcurrentMode=P,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===E||e.$$typeof===y)},t.typeOf=w},7053:function(e,t,r){"use strict";e.exports=r(59767)},90188:function(e,t,r){"use strict";r.d(t,{Y:function(){return s}});var n=r(37010),i=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],o=function(e){return e?6:5},a=function(e,t,r,n,o){clearTimeout(n.current),t(e),r.current=e,o&&o({state:i[e]})},s=function(e){var t,r,s=void 0===e?{}:e,u=s.enter,c=void 0===u||u,l=s.exit,d=void 0===l||l,f=s.preEnter,h=s.preExit,p=s.timeout,m=s.initialEntered,g=s.mountOnEnter,y=s.unmountOnExit,b=s.onChange,v=(0,n.useState)(m?2:o(g)),E=v[0],w=v[1],P=(0,n.useRef)(E),x=(0,n.useRef)();"object"==typeof p?(t=p.enter,r=p.exit):t=r=p;var _=(0,n.useCallback)(function(){var e;switch(P.current){case 1:case 0:e=2;break;case 4:case 3:e=o(y)}void 0!==e&&a(e,w,P,x,b)},[b,y]),A=(0,n.useCallback)(function(e){var n=function e(n){switch(a(n,w,P,x,b),n){case 1:t>=0&&(x.current=setTimeout(_,t));break;case 4:r>=0&&(x.current=setTimeout(_,r));break;case 0:case 3:x.current=setTimeout(function(){return e(n+1)},0)}},i=P.current<=2;"boolean"!=typeof e&&(e=!i),e?i||n(c?f?0:1:2):i&&n(d?h?3:4:o(y))},[_,b,c,d,f,h,t,r,y]);return(0,n.useEffect)(function(){return function(){return clearTimeout(x.current)}},[]),[i[E],A,_]}},3989:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(37010),i=r(90079),o=r.n(i);function a(e){var t;let{debounce:r,scroll:i,polyfill:a,offsetSize:s}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e,c=a||("undefined"==typeof window?class{}:window.ResizeObserver);if(!c)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[l,d]=(0,n.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=(0,n.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:l}),h=r?"number"==typeof r?r:r.scroll:null,p=r?"number"==typeof r?r:r.resize:null,m=(0,n.useRef)(!1);(0,n.useEffect)(()=>(m.current=!0,()=>void(m.current=!1)));let[g,y,b]=(0,n.useMemo)(()=>{let e=()=>{if(!f.current.element)return;let{left:e,top:t,width:r,height:n,bottom:i,right:o,x:a,y:c}=f.current.element.getBoundingClientRect(),l={left:e,top:t,width:r,height:n,bottom:i,right:o,x:a,y:c};f.current.element instanceof HTMLElement&&s&&(l.height=f.current.element.offsetHeight,l.width=f.current.element.offsetWidth),Object.freeze(l),m.current&&!u(f.current.lastBounds,l)&&d(f.current.lastBounds=l)};return[e,p?o()(e,p):e,h?o()(e,h):e]},[d,s,h,p]);function v(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",b,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function E(){f.current.element&&(f.current.resizeObserver=new c(b),f.current.resizeObserver.observe(f.current.element),i&&f.current.scrollContainers&&f.current.scrollContainers.forEach(e=>e.addEventListener("scroll",b,{capture:!0,passive:!0})))}let w=e=>{e&&e!==f.current.element&&(v(),f.current.element=e,f.current.scrollContainers=function e(t){let r=[];if(!t||t===document.body)return r;let{overflow:n,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[n,i,o].some(e=>"auto"===e||"scroll"===e)&&r.push(t),[...r,...e(t.parentElement)]}(e),E())};return t=!!i,(0,n.useEffect)(()=>{if(t)return window.addEventListener("scroll",b,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",b,!0)},[b,t]),(0,n.useEffect)(()=>(window.addEventListener("resize",y),()=>void window.removeEventListener("resize",y)),[y]),(0,n.useEffect)(()=>{v(),E()},[i,b,y]),(0,n.useEffect)(()=>v,[]),[w,l,g]}let s=["x","y","top","bottom","left","right","width","height"],u=(e,t)=>s.every(r=>e[r]===t[r])},15013:function(e,t,r){"use strict";var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;s.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var r=0,n=Object.keys(t);r0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,w=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=c.getInstance(),n=new v(t,r,this);E.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){w.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}});var P=void 0!==o.ResizeObserver?o.ResizeObserver:w;t.Z=P},1952:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},21147:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},94652:function(e,t,r){"use strict";r.d(t,{f6:function(){return eT},iv:function(){return ev},ZP:function(){return ej},F4:function(){return eC}});var n,i,o,a=r(7053),s=r(37010),u=r(1952),c=r.n(u),l=function(e){function t(e,t,n){var i=t.trim().split(p);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";sn&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0h)&&(L=(H=H.replace(" ",":")).length),0e.charCodeAt(2)),n[e]}),p=r(68949),m=r.n(p),g=r(40514);function y(){return(y=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var S=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&I(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o=D&&(D=t+1),C.set(e,t),j.set(t,e)},M="style["+A+'][data-styled-version="5.3.11"]',k=RegExp("^"+A+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(A))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(A,"active"),n.setAttribute("data-styled-version","5.3.11");var a=L();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},$=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")}),n+=""+u+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),W=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=K(t%52)+r;return(K(t%52)+r).replace(W,"$1-$2")}var Z=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},X=function(e){return Z(5381,e)};function J(e){for(var t=0;t>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}}else{for(var u=this.rules.length,c=Z(this.baseHash,r.hash),l="",d=0;d>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),et=/^\s*\/\/.*$/gm,er=[":","[",".","#"];function en(e){var t,r,n,i,o=void 0===e?w:e,a=o.options,s=o.plugins,u=void 0===s?E:s,c=new l(void 0===a?w:a),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,u,c,l,d){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){d.push(e)}),h=function(e,n,o){return 0===n&&-1!==er.indexOf(o[r.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var u=e.replace(et,"");return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),c(a||!o?"":o,o&&a?a+" "+o+" { "+u+" }":u)}return c.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),p.hash=u.length?u.reduce(function(e,t){return t.name||I(15),Z(e,t.name)},5381).toString():"",p}var ei=s.createContext(),eo=(ei.Consumer,s.createContext()),ea=(eo.Consumer,new G),es=en();function eu(){return(0,s.useContext)(ei)||ea}function ec(e){var t=(0,s.useState)(e.stylisPlugins),r=t[0],n=t[1],i=eu(),o=(0,s.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,s.useMemo)(function(){return en({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,s.useEffect)(function(){c()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),s.createElement(ei.Provider,{value:o},s.createElement(eo.Provider,{value:a},e.children))}var el=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=es);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return I(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=es),this.name+e.hash},e}(),ed=/([A-Z])/,ef=/([A-Z])/g,eh=/^ms-/,ep=function(e){return"-"+e.toLowerCase()};function em(e){return ed.test(e)?e.replace(ef,ep).replace(eh,"-ms-"):e}var eg=function(e){return null==e||!1===e||""===e};function ey(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,ew=/(^-|-$)/g;function eP(e){return e.replace(eE,"-").replace(ew,"")}var ex=function(e){return Y(X(e)>>>0)};function e_(e){return"string"==typeof e}var eA=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eO=s.createContext();function eT(e){var t=(0,s.useContext)(eO),r=(0,s.useMemo)(function(){var r;return(r=e.theme)?P(r)?r(t):Array.isArray(r)||"object"!=typeof r?I(8):t?y({},t,{},r):r:I(14)},[e.theme,t]);return e.children?s.createElement(eO.Provider,{value:r},e.children):null}eO.Consumer;var eI={},eS=function(e){return function e(t,r,n){if(void 0===n&&(n=w),!(0,a.isValidElementType)(r))return I(1,String(r));var i=function(){return t(r,n,ev.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,y({},n,{},i))},i.attrs=function(i){return e(t,r,y({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(function e(t,r,n){var i=_(t),o=!e_(t),a=r.attrs,u=void 0===a?E:a,c=r.componentId,l=void 0===c?(v=r.displayName,A=r.parentComponentId,eI[O="string"!=typeof v?"sc":eP(v)]=(eI[O]||0)+1,T=O+"-"+ex("5.3.11"+O+eI[O]),A?A+"-"+T:T):c,d=r.displayName,f=void 0===d?e_(t)?"styled."+t:"Styled("+x(t)+")":d,p=r.displayName&&r.componentId?eP(r.displayName)+"-"+r.componentId:r.componentId||l,g=i&&t.attrs?Array.prototype.concat(t.attrs,u).filter(Boolean):u,b=r.shouldForwardProp;i&&t.shouldForwardProp&&(b=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var v,A,O,T,I,S=new ee(n,p,i?t.componentStyle:void 0),C=S.isStatic&&0===u.length,j=function(e,t){return function(e,t,r,n){var i,o,a,u,c,l,d,f=e.attrs,p=e.componentStyle,m=e.defaultProps,g=e.foldedComponentIds,b=e.shouldForwardProp,v=e.styledComponentId,E=e.target,x=(i=(0,s.useContext)(eO),void 0===(o=m)&&(o=w),void 0===(a=t.theme!==o.theme&&t.theme||i||o.theme||w)&&(a=w),u=y({},t,{theme:a}),c={},f.forEach(function(e){var t,r,n,i=e;for(t in P(i)&&(i=i(u)),i)u[t]=c[t]="className"===t?(r=c[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[u,c]),_=x[0],A=x[1],O=(l=eu(),d=(0,s.useContext)(eo)||es,n?p.generateAndInjectStyles(w,l,d):p.generateAndInjectStyles(_,l,d)),T=A.$as||t.$as||A.as||t.as||E,I=e_(T),S=A!==t?y({},t,{},A):t,C={};for(var j in S)"$"!==j[0]&&"as"!==j&&("forwardedAs"===j?C.as=S[j]:(b?b(j,h,T):!I||h(j))&&(C[j]=S[j]));return t.style&&A.style!==t.style&&(C.style=y({},t.style,{},A.style)),C.className=Array.prototype.concat(g,v,O!==v?O:null,t.className,A.className).filter(Boolean).join(" "),C.ref=r,(0,s.createElement)(T,C)}(I,e,t,C)};return j.displayName=f,(I=s.forwardRef(j)).attrs=g,I.componentStyle=S,I.displayName=f,I.shouldForwardProp=b,I.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):E,I.styledComponentId=p,I.target=i?t.target:t,I.withComponent=function(t){var i=r.componentId,o=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(r,["componentId"]),a=i&&i+"-"+(e_(t)?t:eP(x(t)));return e(t,y({},o,{attrs:g,componentId:a}),n)},Object.defineProperty(I,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i1?t-1:0),n=1;n2&&G.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},(o=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=L();return""},this.getStyleTags=function(){return e.sealed?I(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return I(2);var t,r=((t={})[A]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=L();return n&&(r.nonce=n),[s.createElement("style",y({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?I(2):s.createElement(ec,{sheet:this.instance},e)},o.interleaveWithNodeStream=function(e){return I(3)};var ej=eS},15695:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return E},__asyncGenerator:function(){return v},__asyncValues:function(){return w},__await:function(){return b},__awaiter:function(){return l},__classPrivateFieldGet:function(){return A},__classPrivateFieldSet:function(){return O},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return _},__importStar:function(){return x},__makeTemplateObject:function(){return P},__metadata:function(){return c},__param:function(){return u},__read:function(){return m},__rest:function(){return a},__spread:function(){return g},__spreadArrays:function(){return y},__values:function(){return p}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function E(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function w(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},24058:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return E},__asyncValues:function(){return P},__await:function(){return v},__awaiter:function(){return l},__classPrivateFieldGet:function(){return T},__classPrivateFieldIn:function(){return S},__classPrivateFieldSet:function(){return I},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return O},__importStar:function(){return A},__makeTemplateObject:function(){return x},__metadata:function(){return c},__param:function(){return u},__read:function(){return m},__rest:function(){return a},__spread:function(){return g},__spreadArray:function(){return b},__spreadArrays:function(){return y},__values:function(){return p}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof v?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function P(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&f(t,e,r);return _(t,e),t}function O(e){return e&&e.__esModule?e:{default:e}}function T(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function I(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function S(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},83053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(57660);class i extends Error{constructor(e,t={}){let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath,a=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n");super(a),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=i},70008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;let n=r(83053);class i extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=i;class o extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=o;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=a},90667:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;let n=r(83053);class i extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=i;class o extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=o;class a extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=a;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class u extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=u;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=c;class l extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=l},53013:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;let n=r(83053);class i extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=i;class o extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=o;class a extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=a},2915:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;let n=r(83053);class i extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=i},97869:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;let n=r(83053);class i extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=i},18793:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=void 0;let n=r(55784);t.formatAbi=function(e){let t=[],r=e.length;for(let i=0;i(\[(\d*)\])*)$/;t.formatAbiParameter=function e(t){let r=t.type;if(i.test(t.type)&&"components"in t){r="(";let o=t.components.length;for(let n=0;n[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;t.isErrorSignature=function(e){return i.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(i,e)};let o=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)$/;t.isEventSignature=function(e){return o.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(o,e)};let a=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\s?\((?.*?)\))?$/;t.isFunctionSignature=function(e){return a.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(a,e)};let s=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?.*?)\}$/;t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)};let u=/^constructor\((?.*?)\)(?:\s(?payable{1}))?$/;t.isConstructorSignature=function(e){return u.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(u,e)};let c=/^fallback\(\)$/;t.isFallbackSignature=function(e){return c.test(e)};let l=/^receive\(\) external payable$/;t.isReceiveSignature=function(e){return l.test(e)},t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},9244:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=void 0;let n=r(96454),i=r(70008),o=r(90667),a=r(53013),s=r(97869),u=r(81451),c=r(11991);t.parseStructs=function(e){let t={},r=e.length;for(let n=0;n[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?$/},11991:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDataLocation=t.isSolidityKeyword=t.isSolidityType=t.splitParameters=t.parseAbiParameter=t.parseSignature=void 0;let n=r(96454),i=r(70008),o=r(90667),a=r(53013),s=r(2915),u=r(11599),c=r(81451);t.parseSignature=function(e,t={}){if((0,c.isFunctionSignature)(e)){let r=(0,c.execFunctionSignature)(e);if(!r)throw new a.InvalidSignatureError({signature:e,type:"function"});let n=p(r.parameters),i=[],o=n.length;for(let e=0;e[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,d=/^\((?.+?)\)(?(?:\[\d*?\])+?)?(?:\s(?calldata|indexed|memory|storage{1}))?(?:\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^u?int$/;function h(e,t){let r;let a=(0,u.getParameterCacheKey)(e,t?.type);if(u.parameterCache.has(a))return u.parameterCache.get(a);let s=n.isTupleRegex.test(e),g=(0,n.execTyped)(s?d:l,e);if(!g)throw new o.InvalidParameterError({param:e});if(g.name&&y(g.name))throw new o.SolidityProtectedKeywordError({param:e,name:g.name});let v=g.name?{name:g.name}:{},E="indexed"===g.modifier?{indexed:!0}:{},w=t?.structs??{},P={};if(s){r="tuple";let e=p(g.type),t=[],n=e.length;for(let r=0;re.indexed):2===e.length&&(r=!0);let n=r?e[0]:void 0,i=(r?e[1]:e[0])??{};return{args:n,options:i}}t.getContract=function({abi:e,address:t,publicClient:r,walletClient:d}){let f=null!=r,h=null!=d,p={},m=!1,g=!1,y=!1;for(let t of e)if("function"===t.type?"view"===t.stateMutability||"pure"===t.stateMutability?m=!0:g=!0:"event"===t.type&&(y=!0),m&&g&&y)break;return f&&(m&&(p.read=new Proxy({},{get:(n,i)=>(...n)=>{let{args:a,options:s}=c(n);return(0,o.readContract)(r,{abi:e,address:t,functionName:i,args:a,...s})}})),g&&(p.simulate=new Proxy({},{get:(n,i)=>(...n)=>{let{args:o,options:s}=c(n);return(0,a.simulateContract)(r,{abi:e,address:t,functionName:i,args:o,...s})}})),y&&(p.createEventFilter=new Proxy({},{get:(i,o)=>(...i)=>{let a=e.find(e=>"event"===e.type&&e.name===o),{args:s,options:u}=l(i,a);return(0,n.createContractEventFilter)(r,{abi:e,address:t,eventName:o,args:s,...u})}}),p.watchEvent=new Proxy({},{get:(n,i)=>(...n)=>{let o=e.find(e=>"event"===e.type&&e.name===i),{args:a,options:u}=l(n,o);return(0,s.watchContractEvent)(r,{abi:e,address:t,eventName:i,args:a,...u})}}))),h&&g&&(p.write=new Proxy({},{get:(r,n)=>(...r)=>{let{args:i,options:o}=c(r);return(0,u.writeContract)(d,{abi:e,address:t,functionName:n,args:i,...o})}})),(f||h)&&g&&(p.estimateGas=new Proxy({},{get:(n,o)=>(...n)=>{let{args:a,options:s}=c(n);return(0,i.estimateContractGas)(r??d,{abi:e,address:t,functionName:o,args:a,...s,account:s.account??d.account})}})),p.address=t,p.abi=e,p},t.getFunctionParameters=c,t.getEventParameters=l},66681:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRevertErrorData=t.call=void 0;let n=r(5998),i=r(28858),o=r(86191),a=r(61817),s=r(14931),u=r(71693),c=r(94337),l=r(25765),d=r(67491),f=r(75367),h=r(56425),p=r(8258),m=r(40279),g=r(45893),y=r(5655);async function b(e,t){let{account:i,batch:a=!!e.batch?.multicall,blockNumber:u,blockTag:c="latest",accessList:l,data:d,gas:g,gasPrice:b,maxFeePerGas:w,maxPriorityFeePerGas:P,nonce:x,to:_,value:A,...O}=t,T=i?(0,n.parseAccount)(i):void 0;try{(0,y.assertRequest)(t);let r=u?(0,f.numberToHex)(u):void 0,n=r||c,i=e.chain?.formatters?.transactionRequest?.format||m.formatTransactionRequest,h=i({...(0,p.extract)(O,{format:i}),from:T?.address,accessList:l,data:d,gas:g,gasPrice:b,maxFeePerGas:w,maxPriorityFeePerGas:P,nonce:x,to:_,value:A});if(a&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(o.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:h}))try{return await v(e,{...h,blockNumber:u,blockTag:c})}catch(e){if(!(e instanceof s.ClientChainNotConfiguredError)&&!(e instanceof s.ChainDoesNotSupportContract))throw e}let E=await e.request({method:"eth_call",params:n?[h,n]:[h]});if("0x"===E)return{data:void 0};return{data:E}}catch(a){let n=E(a),{offchainLookup:i,offchainLookupSignature:o}=await Promise.resolve().then(r.bind(r,18510));if(n?.slice(0,10)===o&&_)return{data:await i(e,{data:n,to:_})};throw(0,h.getCallError)(a,{...t,account:T,chain:e.chain})}}async function v(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:a="latest",data:h,multicallAddress:p,to:m}=t,y=p;if(!y){if(!e.chain)throw new s.ClientChainNotConfiguredError;y=(0,d.getChainContractAddress)({blockNumber:o,chain:e.chain,contract:"multicall3"})}let b=o?(0,f.numberToHex)(o):void 0,v=b||a,{schedule:E}=(0,g.createBatchScheduler)({id:`${e.uid}.${v}`,wait:n,shouldSplitBatch(e){let t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*r},fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,l.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),o=await e.request({method:"eth_call",params:[{data:n,to:y},v]});return(0,c.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:o||"0x"})}}),[{returnData:w,success:P}]=await E({data:h,to:m});if(!P)throw new u.RawContractError({data:w});return"0x"===w?{data:void 0}:{data:w}}function E(e){if(!(e instanceof a.BaseError))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}t.call=b,t.getRevertErrorData=E},29293:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=void 0;let n=r(14862);async function i(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}t.createBlockFilter=i},4737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=void 0;let n=r(48506),i=r(75367),o=r(14862);async function a(e,{address:t,abi:r,args:a,eventName:s,fromBlock:u,strict:c,toBlock:l}){let d=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),f=s?(0,n.encodeEventTopics)({abi:r,args:a,eventName:s}):void 0,h=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof u?(0,i.numberToHex)(u):u,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,topics:f}]});return{abi:r,args:a,eventName:s,id:h,request:d(h),strict:c,type:"event"}}t.createContractEventFilter=a},70867:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=void 0;let n=r(48506),i=r(75367),o=r(14862);async function a(e,{address:t,args:r,event:a,events:s,fromBlock:u,strict:c,toBlock:l}={}){let d=s??(a?[a]:void 0),f=(0,o.createFilterRequestScope)(e,{method:"eth_newFilter"}),h=[];d&&(h=[d.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],a&&(h=h[0]));let p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof u?(0,i.numberToHex)(u):u,toBlock:"bigint"==typeof l?(0,i.numberToHex)(l):l,...h.length?{topics:h}:{}}]});return{abi:d,args:r,eventName:a?a.name:void 0,fromBlock:u,id:p,request:f(p),strict:c,toBlock:l,type:"event"}}t.createEventFilter=a},86480:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=void 0;let n=r(14862);async function i(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}t.createPendingTransactionFilter=i},19359:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=void 0;let n=r(5998),i=r(25765),o=r(86874),a=r(19655);async function s(e,{abi:t,address:r,args:s,functionName:u,...c}){let l=(0,i.encodeFunctionData)({abi:t,args:s,functionName:u});try{let t=await (0,a.estimateGas)(e,{data:l,to:r,...c});return t}catch(i){let e=c.account?(0,n.parseAccount)(c.account):void 0;throw(0,o.getContractError)(i,{abi:t,address:r,args:s,docsPath:"/docs/contract/estimateContractGas",functionName:u,sender:e?.address})}}t.estimateContractGas=s},19655:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=void 0;let n=r(5998),i=r(69438),o=r(75367),a=r(80643),s=r(8258),u=r(40279),c=r(5655),l=r(54544);async function d(e,t){let r=t.account??e.account;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});let d=(0,n.parseAccount)(r);try{let{accessList:r,blockNumber:n,blockTag:i,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g,to:y,value:b,...v}="local"===d.type?await (0,l.prepareRequest)(e,t):t,E=n?(0,o.numberToHex)(n):void 0,w=E||i;(0,c.assertRequest)(t);let P=e.chain?.formatters?.transactionRequest?.format||u.formatTransactionRequest,x=P({...(0,s.extract)(v,{format:P}),from:d.address,accessList:r,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g,to:y,value:b}),_=await e.request({method:"eth_estimateGas",params:w?[x,w]:[x]});return BigInt(_)}catch(r){throw(0,a.getEstimateGasError)(r,{...t,account:d,chain:e.chain})}}t.estimateGas=d},38367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=void 0;let n=r(75367);async function i(e,{address:t,blockNumber:r,blockTag:i="latest"}){let o=r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,o||i]});return BigInt(a)}t.getBalance=i},48546:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=void 0;let n=r(61945),i=r(75367),o=r(64954);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,includeTransactions:s}={}){let u=s??!1,c=void 0!==r?(0,i.numberToHex)(r):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,u]}):await e.request({method:"eth_getBlockByNumber",params:[c||(a??"latest"),u]})))throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});let d=e.chain?.formatters?.block?.format||o.formatBlock;return d(l)}t.getBlock=a},3360:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumber=t.getBlockNumberCache=void 0;let n=r(81994),i=e=>`blockNumber.${e}`;async function o(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){let o=await (0,n.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:i(e.uid),cacheTime:r??t});return BigInt(o)}t.getBlockNumberCache=function(e){return(0,n.getCache)(i(e))},t.getBlockNumber=o},2607:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=void 0;let n=r(89097),i=r(75367);async function o(e,{blockHash:t,blockNumber:r,blockTag:o="latest"}={}){let a;let s=void 0!==r?(0,i.numberToHex)(r):void 0;return a=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||o]}),(0,n.hexToNumber)(a)}t.getBlockTransactionCount=o},10491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBytecode=void 0;let n=r(75367);async function i(e,{address:t,blockNumber:r,blockTag:i="latest"}){let o=void 0!==r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getCode",params:[t,o||i]});if("0x"!==a)return a}t.getBytecode=i},54041:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=void 0;let n=r(89097);async function i(e){let t=await e.request({method:"eth_chainId"});return(0,n.hexToNumber)(t)}t.getChainId=i},49147:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=void 0;let n=r(75367),i=r(63777);async function o(e,{blockCount:t,blockNumber:r,blockTag:o="latest",rewardPercentiles:a}){let s=r?(0,n.numberToHex)(r):void 0,u=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),s||o,a]});return(0,i.formatFeeHistory)(u)}t.getFeeHistory=o},72969:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=void 0;let n=r(269),i=r(8496),o=r(69344);async function a(e,{filter:t}){let r="strict"in t&&t.strict,a=await t.request({method:"eth_getFilterChanges",params:[t.id]});return a.map(e=>{if("string"==typeof e)return e;try{let{eventName:n,args:a}="abi"in t&&t.abi?(0,i.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,o.formatLog)(e,{args:a,eventName:n})}catch(a){let r,i;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,i=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,o.formatLog)(e,{args:i?[]:{},eventName:r})}}).filter(Boolean)}t.getFilterChanges=a},78958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=void 0;let n=r(269),i=r(8496),o=r(69344);async function a(e,{filter:t}){let r=t.strict??!1,a=await t.request({method:"eth_getFilterLogs",params:[t.id]});return a.map(e=>{try{let{eventName:n,args:a}="abi"in t&&t.abi?(0,i.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,o.formatLog)(e,{args:a,eventName:n})}catch(a){let r,i;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,i=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,o.formatLog)(e,{args:i?[]:{},eventName:r})}}).filter(Boolean)}t.getFilterLogs=a},9677:function(e,t){"use strict";async function r(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=void 0,t.getGasPrice=r},5667:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=void 0;let n=r(269),i=r(8496),o=r(48506),a=r(75367),s=r(69344);async function u(e,{address:t,blockHash:r,fromBlock:u,toBlock:c,event:l,events:d,args:f,strict:h}={}){let p=h??!1,m=d??(l?[l]:void 0),g=[];return m&&(g=[m.flatMap(e=>(0,o.encodeEventTopics)({abi:[e],eventName:e.name,args:f}))],l&&(g=g[0])),(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:g,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:g,fromBlock:"bigint"==typeof u?(0,a.numberToHex)(u):u,toBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c}]})).map(e=>{try{let{eventName:t,args:r}=m?(0,i.decodeEventLog)({abi:m,data:e.data,topics:e.topics,strict:p}):{eventName:void 0,args:void 0};return(0,s.formatLog)(e,{args:r,eventName:t})}catch(i){let t,r;if(i instanceof n.DecodeLogDataMismatch||i instanceof n.DecodeLogTopicsMismatch){if(p)return;t=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,s.formatLog)(e,{args:r?[]:{},eventName:t})}}).filter(Boolean)}t.getLogs=u},32418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=void 0;let n=r(75367);async function i(e,{address:t,blockNumber:r,blockTag:i="latest",slot:o}){let a=void 0!==r?(0,n.numberToHex)(r):void 0,s=await e.request({method:"eth_getStorageAt",params:[t,o,a||i]});return s}t.getStorageAt=i},90767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=void 0;let n=r(51765),i=r(75367),o=r(98395);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,hash:s,index:u}){let c=a||"latest",l=void 0!==r?(0,i.numberToHex)(r):void 0,d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.numberToHex)(u)]}):(l||c)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||c,(0,i.numberToHex)(u)]})),!d)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:c,hash:s,index:u});let f=e.chain?.formatters?.transaction?.format||o.formatTransaction;return f(d)}t.getTransaction=a},50223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=void 0;let n=r(3360),i=r(90767);async function o(e,{hash:t,transactionReceipt:r}){let[o,a]=await Promise.all([(0,n.getBlockNumber)(e),t?(0,i.getTransaction)(e,{hash:t}):void 0]),s=r?.blockNumber||a?.blockNumber;return s?o-s+1n:0n}t.getTransactionConfirmations=o},34974:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=void 0;let n=r(89097),i=r(75367);async function o(e,{address:t,blockTag:r="latest",blockNumber:o}){let a=await e.request({method:"eth_getTransactionCount",params:[t,o?(0,i.numberToHex)(o):r]});return(0,n.hexToNumber)(a)}t.getTransactionCount=o},89101:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=void 0;let n=r(51765),i=r(8366);async function o(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});let o=e.chain?.formatters?.transactionReceipt?.format||i.formatTransactionReceipt;return o(r)}t.getTransactionReceipt=o},83965:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=void 0;let n=r(28858),i=r(269),o=r(71693),a=r(94337),s=r(25765),u=r(67491),c=r(86874),l=r(95493);async function d(e,t){let{allowFailure:r=!0,batchSize:d,blockNumber:f,blockTag:h,contracts:p,multicallAddress:m}=t,g=d??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),y=m;if(!y){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");y=(0,u.getChainContractAddress)({blockNumber:f,chain:e.chain,contract:"multicall3"})}let b=[[]],v=0,E=0;for(let e=0;e0&&E>g&&(v++,E=(e.length-2)/2,b[v]=[]),b[v]=[...b[v],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=(0,c.getContractError)(a,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:o});if(!r)throw e;b[v]=[...b[v],{allowFailure:!0,callData:"0x",target:n}]}}let w=await Promise.all(b.map(t=>(0,l.readContract)(e,{abi:n.multicall3Abi,address:y,args:[t],blockNumber:f,blockTag:h,functionName:"aggregate3"})));return w.flat().map(({returnData:e,success:t},n)=>{let s=b.flat(),{callData:u}=s[n],{abi:l,address:d,functionName:f,args:h}=p[n];try{if("0x"===u)throw new i.AbiDecodingZeroDataError;if(!t)throw new o.RawContractError({data:e});let n=(0,a.decodeFunctionResult)({abi:l,args:h,data:e,functionName:f});return r?{result:n,status:"success"}:n}catch(t){let e=(0,c.getContractError)(t,{abi:l,address:d,args:h,docsPath:"/docs/contract/multicall",functionName:f});if(!r)throw e;return{error:e,result:void 0,status:"failure"}}})}t.multicall=d},95493:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=void 0;let n=r(94337),i=r(25765),o=r(86874),a=r(66681);async function s(e,{abi:t,address:r,args:s,functionName:u,...c}){let l=(0,i.encodeFunctionData)({abi:t,args:s,functionName:u});try{let{data:i}=await (0,a.call)(e,{data:l,to:r,...c});return(0,n.decodeFunctionResult)({abi:t,args:s,functionName:u,data:i||"0x"})}catch(e){throw(0,o.getContractError)(e,{abi:t,address:r,args:s,docsPath:"/docs/contract/readContract",functionName:u})}}t.readContract=s},29934:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=void 0;let n=r(5998),i=r(94337),o=r(25765),a=r(86874),s=r(66681);async function u(e,{abi:t,address:r,args:u,dataSuffix:c,functionName:l,...d}){let f=d.account?(0,n.parseAccount)(d.account):void 0,h=(0,o.encodeFunctionData)({abi:t,args:u,functionName:l});try{let{data:n}=await (0,s.call)(e,{batch:!1,data:`${h}${c?c.replace("0x",""):""}`,to:r,...d}),o=(0,i.decodeFunctionResult)({abi:t,args:u,functionName:l,data:n||"0x"});return{result:o,request:{abi:t,address:r,args:u,dataSuffix:c,functionName:l,...d}}}catch(e){throw(0,a.getContractError)(e,{abi:t,address:r,args:u,docsPath:"/docs/contract/simulateContract",functionName:l,sender:f?.address})}}t.simulateContract=u},50680:function(e,t){"use strict";async function r(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=void 0,t.uninstallFilter=r},53363:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=void 0;let n=r(28858),i=r(82779),o=r(71693),a=r(51878),s=r(22039),u=r(66681);async function c(e,{address:t,hash:r,signature:c,...l}){let d=(0,s.isHex)(c)?c:(0,s.toHex)(c);try{let{data:o}=await (0,u.call)(e,{data:(0,s.encodeDeployData)({abi:n.universalSignatureValidatorAbi,args:[t,r,d],bytecode:i.universalSignatureValidatorByteCode}),...l});return(0,a.isBytesEqual)(o??"0x0","0x1")}catch(e){if(e instanceof o.CallExecutionError)return!1;throw e}}t.verifyHash=c},12069:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;let n=r(22039),i=r(53363);async function o(e,{address:t,message:r,signature:o,...a}){let s=(0,n.hashMessage)(r);return(0,i.verifyHash)(e,{address:t,hash:s,signature:o,...a})}t.verifyMessage=o},33133:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;let n=r(67339),i=r(53363);async function o(e,{address:t,signature:r,message:o,primaryType:a,types:s,domain:u,...c}){let l=(0,n.hashTypedData)({message:o,primaryType:a,types:s,domain:u});return(0,i.verifyHash)(e,{address:t,hash:l,signature:r,...c})}t.verifyTypedData=o},27284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=void 0;let n=r(51765),i=r(23275),o=r(33693),a=r(52694),s=r(48546),u=r(90767),c=r(89101),l=r(7641);async function d(e,{confirmations:t=1,hash:r,onReplaced:d,pollingInterval:f=e.pollingInterval,timeout:h}){let p,m,g;let y=(0,a.stringify)(["waitForTransactionReceipt",e.uid,r]),b=!1;return new Promise((a,v)=>{h&&setTimeout(()=>v(new n.WaitForTransactionReceiptTimeoutError({hash:r})),h);let E=(0,i.observe)(y,{onReplaced:d,resolve:a,reject:v},i=>{let a=(0,l.watchBlockNumber)(e,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:f,async onBlockNumber(l){if(b)return;let d=l,f=e=>{a(),e(),E()};try{if(g){if(d-g.blockNumber+1ni.resolve(g));return}if(p||(b=!0,await (0,o.withRetry)(async()=>{(p=await (0,u.getTransaction)(e,{hash:r})).blockNumber&&(d=p.blockNumber)},{delay:({count:e})=>200*~~(1<0&&d-g.blockNumber+1ni.resolve(g))}catch(r){if(p&&(r instanceof n.TransactionNotFoundError||r instanceof n.TransactionReceiptNotFoundError)){m=p;let r=await (0,s.getBlock)(e,{blockNumber:d,includeTransactions:!0}),n=r.transactions.find(({from:e,nonce:t})=>e===m.from&&t===m.nonce);if(!n||d-(g=await (0,c.getTransactionReceipt)(e,{hash:n.hash})).blockNumber+1n{i.onReplaced?.({reason:o,replacedTransaction:m,transaction:n,transactionReceipt:g}),i.resolve(g)})}else f(()=>i.reject(r))}}})})})}t.waitForTransactionReceipt=d},7641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=void 0;let n=r(89097),i=r(23275),o=r(13823),a=r(52694),s=r(3360);t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:u,onError:c,poll:l,pollingInterval:d=e.pollingInterval}){let f,h,p;let m=void 0!==l?l:"webSocket"!==e.transport.type;return m?(()=>{let n=(0,a.stringify)(["watchBlockNumber",e.uid,t,r,d]);return(0,i.observe)(n,{onBlockNumber:u,onError:c},n=>(0,o.poll)(async()=>{try{let t=await (0,s.getBlockNumber)(e,{cacheTime:0});if(f){if(t===f)return;if(t-f>1&&r)for(let e=f+1n;ef)&&(n.onBlockNumber(t,f),f=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:d}))})():(h=!0,p=()=>h=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!h)return;let t=(0,n.hexToBigInt)(e.result?.number);u(t,f),f=t},onError(e){c?.(e)}});p=t,h||p()}catch(e){c?.(e)}})(),p)}},78361:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=void 0;let n=r(64954),i=r(23275),o=r(13823),a=r(52694),s=r(48546);t.watchBlocks=function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:u=!1,onBlock:c,onError:l,includeTransactions:d,poll:f,pollingInterval:h=e.pollingInterval}){let p,m,g;let y=void 0!==f?f:"webSocket"!==e.transport.type,b=d??!1;return y?(()=>{let n=(0,a.stringify)(["watchBlocks",e.uid,r,u,b,h]);return(0,i.observe)(n,{onBlock:c,onError:l},n=>(0,o.poll)(async()=>{try{let i=await (0,s.getBlock)(e,{blockTag:t,includeTransactions:b});if(i.number&&p?.number){if(i.number===p.number)return;if(i.number-p.number>1&&r)for(let t=p?.number+1n;tp.number)&&(n.onBlock(i,p),p=i)}catch(e){n.onError?.(e)}},{emitOnBegin:u,interval:h}))})():(m=!0,g=()=>m=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!m)return;let r=e.chain?.formatters?.block?.format||n.formatBlock,i=r(t.result);c(i,p),p=i},onError(e){l?.(e)}});g=t,m||g()}catch(e){l?.(e)}})(),g)}},43318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=void 0;let n=r(51491),i=r(23275),o=r(13823),a=r(52694),s=r(269),u=r(53835),c=r(4737),l=r(3360),d=r(72969),f=r(5667),h=r(50680);t.watchContractEvent=function(e,{abi:t,address:r,args:p,batch:m=!0,eventName:g,onError:y,onLogs:b,poll:v,pollingInterval:E=e.pollingInterval,strict:w}){let P,x;let _=void 0!==v?v:"webSocket"!==e.transport.type;return _?(()=>{let s=(0,a.stringify)(["watchContractEvent",r,p,m,e.uid,g,E]),v=w??!1;return(0,i.observe)(s,{onLogs:b,onError:y},i=>{let a,s;let y=!1,b=(0,o.poll)(async()=>{if(!y){try{s=await (0,c.createContractEventFilter)(e,{abi:t,address:r,args:p,eventName:g,strict:v})}catch{}y=!0;return}try{let o;if(s)o=await (0,d.getFilterChanges)(e,{filter:s});else{let i=await (0,l.getBlockNumber)(e);o=a&&a!==i?await (0,f.getLogs)(e,{address:r,args:p,fromBlock:a+1n,toBlock:i,event:(0,n.getAbiItem)({abi:t,name:g})}):[],a=i}if(0===o.length)return;m?i.onLogs(o):o.forEach(e=>i.onLogs([e]))}catch(e){s&&e instanceof u.InvalidInputRpcError&&(y=!1),i.onError?.(e)}},{emitOnBegin:!0,interval:E});return async()=>{s&&await (0,h.uninstallFilter)(e,{filter:s}),b()}})})():(P=!0,x=()=>P=!1,(async()=>{try{let n=g?(0,u.encodeEventTopics)({abi:t,eventName:g,args:p}):[],{unsubscribe:i}=await e.transport.subscribe({params:["logs",{address:r,topics:n}],onData(e){if(!P)return;let r=e.result;try{let{eventName:e,args:n}=(0,u.decodeEventLog)({abi:t,data:r.data,topics:r.topics,strict:w}),i=(0,u.formatLog)(r,{args:n,eventName:e});b([i])}catch(i){let e,t;if(i instanceof s.DecodeLogDataMismatch||i instanceof u.DecodeLogTopicsMismatch){if(w)return;e=i.abiItem.name,t=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,u.formatLog)(r,{args:t?[]:{},eventName:e});b([n])}},onError(e){y?.(e)}});x=i,P||x()}catch(e){y?.(e)}})(),x)}},2539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=void 0;let n=r(23275),i=r(13823),o=r(52694),a=r(269),s=r(74199),u=r(22039),c=r(70867),l=r(3360),d=r(72969),f=r(5667),h=r(50680);t.watchEvent=function(e,{address:t,args:r,batch:p=!0,event:m,events:g,onError:y,onLogs:b,poll:v,pollingInterval:E=e.pollingInterval,strict:w}){let P,x;let _=void 0!==v?v:"webSocket"!==e.transport.type,A=w??!1;return _?(()=>{let a=(0,o.stringify)(["watchEvent",t,r,p,e.uid,m,E]);return(0,n.observe)(a,{onLogs:b,onError:y},n=>{let o,a;let u=!1,y=(0,i.poll)(async()=>{if(!u){try{a=await (0,c.createEventFilter)(e,{address:t,args:r,event:m,events:g,strict:A})}catch{}u=!0;return}try{let i;if(a)i=await (0,d.getFilterChanges)(e,{filter:a});else{let n=await (0,l.getBlockNumber)(e);i=o&&o!==n?await (0,f.getLogs)(e,{address:t,args:r,event:m,events:g,fromBlock:o+1n,toBlock:n}):[],o=n}if(0===i.length)return;p?n.onLogs(i):i.forEach(e=>n.onLogs([e]))}catch(e){a&&e instanceof s.InvalidInputRpcError&&(u=!1),n.onError?.(e)}},{emitOnBegin:!0,interval:E});return async()=>{a&&await (0,h.uninstallFilter)(e,{filter:a}),y()}})})():(P=!0,x=()=>P=!1,(async()=>{try{let n=g??(m?[m]:void 0),i=[];n&&(i=[n.flatMap(e=>(0,u.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],m&&(i=i[0]));let{unsubscribe:o}=await e.transport.subscribe({params:["logs",{address:t,topics:i}],onData(e){if(!P)return;let t=e.result;try{let{eventName:e,args:r}=(0,u.decodeEventLog)({abi:n,data:t.data,topics:t.topics,strict:A}),i=(0,u.formatLog)(t,{args:r,eventName:e});b([i])}catch(i){let e,r;if(i instanceof a.DecodeLogDataMismatch||i instanceof a.DecodeLogTopicsMismatch){if(w)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,u.formatLog)(t,{args:r?[]:{},eventName:e});b([n])}},onError(e){y?.(e)}});x=o,P||x()}catch(e){y?.(e)}})(),x)}},5012:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=void 0;let n=r(23275),i=r(13823),o=r(52694),a=r(86480),s=r(72969),u=r(50680);t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:c,poll:l,pollingInterval:d=e.pollingInterval}){let f,h;let p=void 0!==l?l:"webSocket"!==e.transport.type;return p?(()=>{let l=(0,o.stringify)(["watchPendingTransactions",e.uid,t,d]);return(0,n.observe)(l,{onTransactions:c,onError:r},r=>{let n;let o=(0,i.poll)(async()=>{try{if(!n)try{n=await (0,a.createPendingTransactionFilter)(e);return}catch(e){throw o(),e}let i=await (0,s.getFilterChanges)(e,{filter:n});if(0===i.length)return;t?r.onTransactions(i):i.forEach(e=>r.onTransactions([e]))}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{n&&await (0,u.uninstallFilter)(e,{filter:n}),o()}})})():(f=!0,h=()=>f=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!f)return;let t=e.result;c([t])},onError(e){r?.(e)}});h=t,f||h()}catch(e){r?.(e)}})(),h)}},33094:function(e,t){"use strict";async function r(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=void 0,t.dropTransaction=r},25197:function(e,t){"use strict";async function r(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=void 0,t.getAutomine=r},42231:function(e,t){"use strict";async function r(e){return await e.request({method:"txpool_content"})}Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=void 0,t.getTxpoolContent=r},56399:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=void 0;let n=r(89097);async function i(e){let{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}}t.getTxpoolStatus=i},13712:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=void 0,t.impersonateAccount=r},58704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=void 0;let n=r(75367);async function i(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})}t.increaseTime=i},68667:function(e,t){"use strict";async function r(e){return await e.request({method:"txpool_inspect"})}Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=void 0,t.inspectTxpool=r},87822:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mine=void 0;let n=r(75367);async function i(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})}t.mine=i},37651:function(e,t){"use strict";async function r(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=void 0,t.removeBlockTimestampInterval=r},63112:function(e,t){"use strict";async function r(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}Object.defineProperty(t,"__esModule",{value:!0}),t.reset=void 0,t.reset=r},71999:function(e,t){"use strict";async function r(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.revert=void 0,t.revert=r},16557:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=void 0;let n=r(8258),i=r(40279);async function o(e,t){let{accessList:r,data:o,from:a,gas:s,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:h,...p}=t,m=e.chain?.formatters?.transactionRequest?.format||i.formatTransactionRequest,g=m({...(0,n.extract)(p,{format:m}),accessList:r,data:o,from:a,gas:s,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:h}),y=await e.request({method:"eth_sendUnsignedTransaction",params:[g]});return y}t.sendUnsignedTransaction=o},53580:function(e,t){"use strict";async function r(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=void 0,t.setAutomine=r},83659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=void 0;let n=r(75367);async function i(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})}t.setBalance=i},10146:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=void 0;let n=r(75367);async function i(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})}t.setBlockGasLimit=i},81797:function(e,t){"use strict";async function r(e,{interval:t}){await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=void 0,t.setBlockTimestampInterval=r},25929:function(e,t){"use strict";async function r(e,{address:t,bytecode:r}){await e.request({method:`${e.mode}_setCode`,params:[t,r]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=void 0,t.setCode=r},97250:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=void 0,t.setCoinbase=r},88261:function(e,t){"use strict";async function r(e,{interval:t}){await e.request({method:"evm_setIntervalMining",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=void 0,t.setIntervalMining=r},13667:function(e,t){"use strict";async function r(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=void 0,t.setLoggingEnabled=r},38433:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=void 0;let n=r(75367);async function i(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})}t.setMinGasPrice=i},12584:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=void 0;let n=r(75367);async function i(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})}t.setNextBlockBaseFeePerGas=i},8144:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=void 0;let n=r(75367);async function i(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})}t.setNextBlockTimestamp=i},2006:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=void 0;let n=r(75367);async function i(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})}t.setNonce=i},69671:function(e,t){"use strict";async function r(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=void 0,t.setRpcUrl=r},24334:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=void 0;let n=r(75367);async function i(e,{address:t,index:r,value:i}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,i]})}t.setStorageAt=i},51211:function(e,t){"use strict";async function r(e){return await e.request({method:"evm_snapshot"})}Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=void 0,t.snapshot=r},4394:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=void 0,t.stopImpersonatingAccount=r},89459:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=void 0;let n=r(75367);async function i(e,{chain:t}){let{id:r,name:i,nativeCurrency:o,rpcUrls:a,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:i,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]})}t.addChain=i},33862:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=void 0;let n=r(9830),i=r(13710);t.deployContract=function(e,{abi:t,args:r,bytecode:o,...a}){let s=(0,n.encodeDeployData)({abi:t,args:r,bytecode:o});return(0,i.sendTransaction)(e,{...a,data:s})}},3164:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=void 0;let n=r(37933);async function i(e){let t=await e.request({method:"eth_accounts"});return t.map(e=>(0,n.checksumAddress)(e))}t.getAddresses=i},39614:function(e,t){"use strict";async function r(e){let t=await e.request({method:"wallet_getPermissions"});return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=void 0,t.getPermissions=r},6892:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=void 0;let n=r(37933);async function i(e){let t=await e.request({method:"eth_requestAccounts"});return t.map(e=>(0,n.getAddress)(e))}t.requestAddresses=i},98198:function(e,t){"use strict";async function r(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=void 0,t.requestPermissions=r},13710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=void 0;let n=r(5998),i=r(69438),o=r(67491),a=r(64438),s=r(8258),u=r(40279),c=r(5655),l=r(54544),d=r(54041);async function f(e,t){let{account:r=e.account,chain:f=e.chain,accessList:h,data:p,gas:m,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:b,nonce:v,to:E,value:w,...P}=t;if(!r)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});let x=(0,n.parseAccount)(r);try{let r;if((0,c.assertRequest)(t),null!==f&&(r=await (0,d.getChainId)(e),(0,o.assertCurrentChain)({currentChainId:r,chain:f})),"local"===x.type){let t=await (0,l.prepareRequest)(e,{account:x,accessList:h,chain:f,data:p,gas:m,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:b,nonce:v,to:E,value:w,...P});r||(r=await (0,d.getChainId)(e));let n=f?.serializers?.transaction,i=await x.signTransaction({...t,chainId:r},{serializer:n});return await e.request({method:"eth_sendRawTransaction",params:[i]})}let n=f?.formatters?.transactionRequest?.format||u.formatTransactionRequest,i=n({...(0,s.extract)(P,{format:n}),accessList:h,data:p,from:x.address,gas:m,gasPrice:g,maxFeePerGas:y,maxPriorityFeePerGas:b,nonce:v,to:E,value:w});return await e.request({method:"eth_sendTransaction",params:[i]})}catch(e){throw(0,a.getTransactionError)(e,{...t,account:x,chain:t.chain||void 0})}}t.sendTransaction=f},33726:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=void 0;let n=r(5998),i=r(69438),o=r(75367);async function a(e,{account:t=e.account,message:r}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});let a=(0,n.parseAccount)(t);if("local"===a.type)return a.signMessage({message:r});let s="string"==typeof r?(0,o.stringToHex)(r):r.raw instanceof Uint8Array?(0,o.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,a.address]})}t.signMessage=a},17510:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=void 0;let n=r(5998),i=r(69438),o=r(94293),a=r(52694),s=r(33352);async function u(e,{account:t=e.account,domain:r,message:u,primaryType:c,types:l}){if(!t)throw new i.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});let d=(0,n.parseAccount)(t),f={EIP712Domain:["string"==typeof r?.name&&{name:"name",type:"string"},r?.version&&{name:"version",type:"string"},"number"==typeof r?.chainId&&{name:"chainId",type:"uint256"},r?.verifyingContract&&{name:"verifyingContract",type:"address"},r?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...l};if((0,s.validateTypedData)({domain:r,message:u,primaryType:c,types:f}),"local"===d.type)return d.signTypedData({domain:r,primaryType:c,types:f,message:u});let h=(0,a.stringify)({domain:r??{},primaryType:c,types:f,message:u},(e,t)=>(0,o.isHex)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[d.address,h]})}t.signTypedData=u},64169:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=void 0;let n=r(75367);async function i(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]})}t.switchChain=i},97235:function(e,t){"use strict";async function r(e,t){let r=await e.request({method:"wallet_watchAsset",params:t});return r}Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=void 0,t.watchAsset=r},55962:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=void 0;let n=r(25765),i=r(13710);async function o(e,{abi:t,address:r,args:o,dataSuffix:a,functionName:s,...u}){let c=(0,n.encodeFunctionData)({abi:t,args:o,functionName:s}),l=await (0,i.sendTransaction)(e,{data:`${c}${a?a.replace("0x",""):""}`,to:r,...u});return l}t.writeContract=o},83718:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=void 0;let n=r(9377),i=r(15045);t.createClient=function(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,key:o="base",name:a="Base Client",pollingInterval:s=4e3,type:u="base"}=e,c=e.chain,l=e.account?(0,n.parseAccount)(e.account):void 0,{config:d,request:f,value:h}=e.transport({chain:c,pollingInterval:s}),p={...d,...h},m={account:l,batch:t,cacheTime:r,chain:c,key:o,name:a,pollingInterval:s,request:f,transport:p,type:u,uid:(0,i.uid)()};return Object.assign(m,{extend:function e(t){return r=>{let n=r(t);for(let e in m)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(m)})}},36246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=void 0;let n=r(83718),i=r(99327);t.createPublicClient=function(e){let{key:t="public",name:r="Public Client"}=e,o=(0,n.createClient)({...e,key:t,name:r,type:"publicClient"});return o.extend(i.publicActions)}},29461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=void 0;let n=r(83718),i=r(8928);t.createTestClient=function(e){let{key:t="test",name:r="Test Client",mode:o}=e,a=(0,n.createClient)({...e,key:t,name:r,type:"testClient"});return a.extend(e=>({mode:o,...(0,i.testActions)({mode:o})(e)}))}},9279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=void 0;let n=r(83718),i=r(96654);t.createWalletClient=function(e){let{key:t="wallet",name:r="Wallet Client",transport:o}=e,a=(0,n.createClient)({...e,key:t,name:r,transport:e=>o({...e,retryCount:0}),type:"walletClient"});return a.extend(i.walletActions)}},99327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=void 0;let n=r(36135),i=r(70260),o=r(55749),a=r(73499),s=r(20125),u=r(66681),c=r(29293),l=r(4737),d=r(70867),f=r(86480),h=r(19359),p=r(19655),m=r(38367),g=r(48546),y=r(3360),b=r(2607),v=r(10491),E=r(54041),w=r(49147),P=r(72969),x=r(78958),_=r(9677),A=r(5667),O=r(32418),T=r(90767),I=r(50223),S=r(34974),C=r(89101),j=r(83965),D=r(95493),B=r(29934),R=r(50680),M=r(12069),k=r(33133),N=r(27284),U=r(7641),L=r(78361),F=r(43318),$=r(2539),H=r(5012);t.publicActions=function(e){return{call:t=>(0,u.call)(e,t),createBlockFilter:()=>(0,c.createBlockFilter)(e),createContractEventFilter:t=>(0,l.createContractEventFilter)(e,t),createEventFilter:t=>(0,d.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,f.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,h.estimateContractGas)(e,t),estimateGas:t=>(0,p.estimateGas)(e,t),getBalance:t=>(0,m.getBalance)(e,t),getBlock:t=>(0,g.getBlock)(e,t),getBlockNumber:t=>(0,y.getBlockNumber)(e,t),getBlockTransactionCount:t=>(0,b.getBlockTransactionCount)(e,t),getBytecode:t=>(0,v.getBytecode)(e,t),getChainId:()=>(0,E.getChainId)(e),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,i.getEnsAvatar)(e,t),getEnsName:t=>(0,o.getEnsName)(e,t),getEnsResolver:t=>(0,a.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,w.getFeeHistory)(e,t),getFilterChanges:t=>(0,P.getFilterChanges)(e,t),getFilterLogs:t=>(0,x.getFilterLogs)(e,t),getGasPrice:()=>(0,_.getGasPrice)(e),getLogs:t=>(0,A.getLogs)(e,t),getStorageAt:t=>(0,O.getStorageAt)(e,t),getTransaction:t=>(0,T.getTransaction)(e,t),getTransactionConfirmations:t=>(0,I.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,S.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,C.getTransactionReceipt)(e,t),multicall:t=>(0,j.multicall)(e,t),readContract:t=>(0,D.readContract)(e,t),simulateContract:t=>(0,B.simulateContract)(e,t),verifyMessage:t=>(0,M.verifyMessage)(e,t),verifyTypedData:t=>(0,k.verifyTypedData)(e,t),uninstallFilter:t=>(0,R.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,N.waitForTransactionReceipt)(e,t),watchBlocks:t=>(0,L.watchBlocks)(e,t),watchBlockNumber:t=>(0,U.watchBlockNumber)(e,t),watchContractEvent:t=>(0,F.watchContractEvent)(e,t),watchEvent:t=>(0,$.watchEvent)(e,t),watchPendingTransactions:t=>(0,H.watchPendingTransactions)(e,t)}}},8928:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=void 0;let n=r(33094),i=r(25197),o=r(42231),a=r(56399),s=r(13712),u=r(58704),c=r(68667),l=r(87822),d=r(37651),f=r(63112),h=r(71999),p=r(16557),m=r(53580),g=r(83659),y=r(10146),b=r(81797),v=r(25929),E=r(97250),w=r(88261),P=r(13667),x=r(38433),_=r(12584),A=r(8144),O=r(2006),T=r(69671),I=r(24334),S=r(51211),C=r(4394);t.testActions=function({mode:e}){return t=>{let r=t.extend(()=>({mode:e}));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),getAutomine:()=>(0,i.getAutomine)(r),getTxpoolContent:()=>(0,o.getTxpoolContent)(r),getTxpoolStatus:()=>(0,a.getTxpoolStatus)(r),impersonateAccount:e=>(0,s.impersonateAccount)(r,e),increaseTime:e=>(0,u.increaseTime)(r,e),inspectTxpool:()=>(0,c.inspectTxpool)(r),mine:e=>(0,l.mine)(r,e),removeBlockTimestampInterval:()=>(0,d.removeBlockTimestampInterval)(r),reset:e=>(0,f.reset)(r,e),revert:e=>(0,h.revert)(r,e),sendUnsignedTransaction:e=>(0,p.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,m.setAutomine)(r,e),setBalance:e=>(0,g.setBalance)(r,e),setBlockGasLimit:e=>(0,y.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,b.setBlockTimestampInterval)(r,e),setCode:e=>(0,v.setCode)(r,e),setCoinbase:e=>(0,E.setCoinbase)(r,e),setIntervalMining:e=>(0,w.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,P.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,x.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,_.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,A.setNextBlockTimestamp)(r,e),setNonce:e=>(0,O.setNonce)(r,e),setRpcUrl:e=>(0,T.setRpcUrl)(r,e),setStorageAt:e=>(0,I.setStorageAt)(r,e),snapshot:()=>(0,S.snapshot)(r),stopImpersonatingAccount:e=>(0,C.stopImpersonatingAccount)(r,e)}}}},96654:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=void 0;let n=r(54041),i=r(89459),o=r(33862),a=r(3164),s=r(39614),u=r(6892),c=r(98198),l=r(13710),d=r(33726),f=r(17510),h=r(64169),p=r(97235),m=r(55962);t.walletActions=function(e){return{addChain:t=>(0,i.addChain)(e,t),deployContract:t=>(0,o.deployContract)(e,t),getAddresses:()=>(0,a.getAddresses)(e),getChainId:()=>(0,n.getChainId)(e),getPermissions:()=>(0,s.getPermissions)(e),requestAddresses:()=>(0,u.requestAddresses)(e),requestPermissions:t=>(0,c.requestPermissions)(e,t),sendTransaction:t=>(0,l.sendTransaction)(e,t),signMessage:t=>(0,d.signMessage)(e,t),signTypedData:t=>(0,f.signTypedData)(e,t),switchChain:t=>(0,h.switchChain)(e,t),watchAsset:t=>(0,p.watchAsset)(e,t),writeContract:t=>(0,m.writeContract)(e,t)}}},21304:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=void 0;let n=r(47030);t.createTransport=function({key:e,name:t,request:r,retryCount:i=3,retryDelay:o=150,timeout:a,type:s},u){return{config:{key:e,name:t,request:r,retryCount:i,retryDelay:o,timeout:a,type:s},request:(0,n.buildRequest)(r,{retryCount:i,retryDelay:o}),value:u}}},11398:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.custom=void 0;let n=r(21304);t.custom=function(e,t={}){let{key:r="custom",name:i="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,n.createTransport)({key:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})}},93025:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rankTransports=t.fallback=void 0;let n=r(47030),i=r(54789),o=r(21304);function a({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:o=1e3,transports:a,weights:s={}}){let{stability:u=.7,latency:c=.3}=s,l=[],d=async()=>{let s=await Promise.all(a.map(async t=>{let r,n;let i=t({chain:e,retryCount:0,timeout:o}),a=Date.now();try{await i.request({method:"net_listening"}),n=1}catch{n=0}finally{r=Date.now()}let s=r-a;return{latency:s,success:n}}));l.push(s),l.length>n&&l.shift();let f=Math.max(...l.map(e=>Math.max(...e.map(({latency:e})=>e)))),h=a.map((e,t)=>{let r=l.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,i=l.map(e=>e[t].success),o=i.reduce((e,t)=>e+t,0)/i.length;return 0===o?[0,t]:[c*(1-n/f)+u*o,t]}).sort((e,t)=>t[0]-e[0]);r(h.map(([,e])=>a[e])),await (0,i.wait)(t),d()};d()}t.fallback=function(e,t={}){let{key:r="fallback",name:i="Fallback",rank:s=!1,retryCount:u,retryDelay:c}=t;return({chain:t,pollingInterval:l=4e3,timeout:d})=>{let f=e,h=()=>{},p=(0,o.createTransport)({key:r,name:i,async request({method:e,params:r}){let i=async(o=0)=>{let a=f[o]({chain:t,retryCount:0,timeout:d});try{let t=await a.request({method:e,params:r});return h({method:e,params:r,response:t,transport:a,status:"success"}),t}catch(t){if(h({error:t,method:e,params:r,transport:a,status:"error"}),(0,n.isDeterministicError)(t)||o===f.length-1)throw t;return i(o+1)}};return i()},retryCount:u,retryDelay:c,type:"fallback"},{onResponse:e=>h=e,transports:f.map(e=>e({chain:t,retryCount:0}))});if(s){let e="object"==typeof s?s:{};a({chain:t,interval:e.interval??l,onTransports:e=>f=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:f,weights:e.weights})}return p}},t.rankTransports=a},59790:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.http=void 0;let n=r(15064),i=r(48892),o=r(45893),a=r(42426),s=r(21304);t.http=function(e,t={}){let{batch:r,fetchOptions:u,key:c="http",name:l="HTTP JSON-RPC",retryDelay:d}=t;return({chain:f,retryCount:h,timeout:p})=>{let{batchSize:m=1e3,wait:g=0}="object"==typeof r?r:{},y=t.retryCount??h,b=p??t.timeout??1e4,v=e||f?.rpcUrls.default.http[0];if(!v)throw new i.UrlRequiredError;return(0,s.createTransport)({key:c,name:l,async request({method:t,params:i}){let s={method:t,params:i},{schedule:c}=(0,o.createBatchScheduler)({id:`${e}`,wait:g,shouldSplitBatch:e=>e.length>m,fn:e=>a.rpc.http(v,{body:e,fetchOptions:u,timeout:b})}),l=async e=>r?c(e):[await a.rpc.http(v,{body:e,fetchOptions:u,timeout:b})],[{error:d,result:f}]=await l(s);if(d)throw new n.RpcRequestError({body:s,error:d,url:v});return f},retryCount:y,retryDelay:d,timeout:b,type:"http"},{url:e})}}},77796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=void 0;let n=r(15064),i=r(48892),o=r(42426),a=r(21304);t.webSocket=function(e,t={}){let{key:r="webSocket",name:s="WebSocket JSON-RPC",retryDelay:u}=t;return({chain:c,retryCount:l,timeout:d})=>{let f=t.retryCount??l,h=d??t.timeout??1e4,p=e||c?.rpcUrls.default.webSocket?.[0];if(!p)throw new i.UrlRequiredError;return(0,a.createTransport)({key:r,name:s,async request({method:e,params:t}){let r={method:e,params:t},i=await (0,o.getSocket)(p),{error:a,result:s}=await o.rpc.webSocketAsync(i,{body:r,timeout:h});if(a)throw new n.RpcRequestError({body:r,error:a,url:p});return s},retryCount:f,retryDelay:u,timeout:h,type:"webSocket"},{getSocket:()=>(0,o.getSocket)(p),async subscribe({params:e,onData:t,onError:r}){let n=await (0,o.getSocket)(p),{result:i}=await new Promise((i,a)=>o.rpc.webSocket(n,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){a(e.error),r?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>o.rpc.webSocket(n,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}}},28858:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorAbi=t.smartAccountAbi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}];let r=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];t.universalResolverResolveAbi=[...r,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],t.universalResolverReverseAbi=[...r,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],t.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},35026:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=void 0,t.zeroAddress="0x0000000000000000000000000000000000000000"},86191:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},82779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorByteCode=void 0,t.universalSignatureValidatorByteCode="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},23372:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=2n**(8n-1n),t.maxInt16=2n**(16n-1n),t.maxInt24=2n**(24n-1n),t.maxInt32=2n**(32n-1n),t.maxInt40=2n**(40n-1n),t.maxInt48=2n**(48n-1n),t.maxInt56=2n**(56n-1n),t.maxInt64=2n**(64n-1n),t.maxInt72=2n**(72n-1n),t.maxInt80=2n**(80n-1n),t.maxInt88=2n**(88n-1n),t.maxInt96=2n**(96n-1n),t.maxInt104=2n**(104n-1n),t.maxInt112=2n**(112n-1n),t.maxInt120=2n**(120n-1n),t.maxInt128=2n**(128n-1n),t.maxInt136=2n**(136n-1n),t.maxInt144=2n**(144n-1n),t.maxInt152=2n**(152n-1n),t.maxInt160=2n**(160n-1n),t.maxInt168=2n**(168n-1n),t.maxInt176=2n**(176n-1n),t.maxInt184=2n**(184n-1n),t.maxInt192=2n**(192n-1n),t.maxInt200=2n**(200n-1n),t.maxInt208=2n**(208n-1n),t.maxInt216=2n**(216n-1n),t.maxInt224=2n**(224n-1n),t.maxInt232=2n**(232n-1n),t.maxInt240=2n**(240n-1n),t.maxInt248=2n**(248n-1n),t.maxInt256=2n**(256n-1n),t.minInt8=-(2n**8n),t.minInt16=-(2n**16n),t.minInt24=-(2n**24n),t.minInt32=-(2n**32n),t.minInt40=-(2n**40n),t.minInt48=-(2n**48n),t.minInt56=-(2n**56n),t.minInt64=-(2n**64n),t.minInt72=-(2n**72n),t.minInt80=-(2n**80n),t.minInt88=-(2n**88n),t.minInt96=-(2n**96n),t.minInt104=-(2n**104n),t.minInt112=-(2n**112n),t.minInt120=-(2n**120n),t.minInt128=-(2n**128n),t.minInt136=-(2n**136n),t.minInt144=-(2n**144n),t.minInt152=-(2n**152n),t.minInt160=-(2n**160n),t.minInt168=-(2n**168n),t.minInt176=-(2n**176n),t.minInt184=-(2n**184n),t.minInt192=-(2n**192n),t.minInt200=-(2n**200n),t.minInt208=-(2n**208n),t.minInt216=-(2n**216n),t.minInt224=-(2n**224n),t.minInt232=-(2n**232n),t.minInt240=-(2n**240n),t.minInt248=-(2n**248n),t.minInt256=-(2n**256n),t.maxUint8=2n**8n,t.maxUint16=2n**16n,t.maxUint24=2n**24n,t.maxUint32=2n**32n,t.maxUint40=2n**40n,t.maxUint48=2n**48n,t.maxUint56=2n**56n,t.maxUint64=2n**64n,t.maxUint72=2n**72n,t.maxUint80=2n**80n,t.maxUint88=2n**88n,t.maxUint96=2n**96n,t.maxUint104=2n**104n,t.maxUint112=2n**112n,t.maxUint120=2n**120n,t.maxUint128=2n**128n,t.maxUint136=2n**136n,t.maxUint144=2n**144n,t.maxUint152=2n**152n,t.maxUint160=2n**160n,t.maxUint168=2n**168n,t.maxUint176=2n**176n,t.maxUint184=2n**184n,t.maxUint192=2n**192n,t.maxUint200=2n**200n,t.maxUint208=2n**208n,t.maxUint216=2n**216n,t.maxUint224=2n**224n,t.maxUint232=2n**232n,t.maxUint240=2n**240n,t.maxUint248=2n**248n,t.maxUint256=2n**256n},62118:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},81892:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},269:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;let n=r(73949),i=r(45001),o=r(61817);class a extends o.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}t.AbiConstructorNotFoundError=a;class s extends o.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}t.AbiConstructorParamsNotFoundError=s;class u extends o.BaseError{constructor({data:e,size:t}){super(`Data size of ${t} bytes is invalid. +Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=u;class c extends o.BaseError{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=c;class l extends o.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}t.AbiDecodingZeroDataError=l;class d extends o.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. +Expected length: ${e} +Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=d;class f extends o.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.size)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class h extends o.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. +Expected length (params): ${e} +Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=h;class p extends o.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). +Cannot encode error result without knowing what the parameter types are. +Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=p;class m extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. +Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=m;class g extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. +Make sure you are using the correct ABI and that the error exists on it. +You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=g;class y extends o.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=y;class b extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. +Make sure you are using the correct ABI and that the event exists on it. +You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=b;class v extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. +Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=v;class E extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. +Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}t.AbiFunctionNotFoundError=E;class w extends o.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. +Cannot decode function result without knowing what the parameter types are. +Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=w;class P extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. +Make sure you are using the correct ABI and that the function exists on it. +You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=P;class x extends o.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=x;class _ extends o.BaseError{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=i}}t.DecodeLogDataMismatch=_;class A extends o.BaseError{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=A;class O extends o.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. +Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}t.InvalidAbiEncodingTypeError=O;class T extends o.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. +Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=T;class I extends o.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}t.InvalidArrayError=I;class S extends o.BaseError{constructor(e){super(`"${e}" is not a valid definition type. +Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=S;class C extends o.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=C},69438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountNotFoundError=void 0;let n=r(61817);class i extends n.BaseError{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}t.AccountNotFoundError=i},28489:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;let n=r(61817);class i extends n.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}t.InvalidAddressError=i},61817:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(28767);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.getVersion)()});let r=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,r):r?null:t}(this,e)}}t.BaseError=i},61945:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;let n=r(61817);class i extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}t.BlockNotFoundError=i},24626:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;let n=r(52694),i=r(61817),o=r(28767);class a extends i.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:i,urls:a}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(e=>` ${(0,o.getUrl)(e)}`)],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}t.OffchainLookupError=a;class s extends i.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class u extends i.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=u},14931:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;let n=r(61817);class i extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=i;class o extends n.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}t.ChainMismatchError=o;class a extends n.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}t.ChainNotFoundError=a;class s extends n.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class u extends n.BaseError{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}t.InvalidChainIdError=u},71693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;let n=r(5998),i=r(62118),o=r(69386),a=r(73949),s=r(32310),u=r(51491),c=r(16697),l=r(34697),d=r(269),f=r(61817),h=r(51765),p=r(28767);class m extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:p,value:m}){let g=t?(0,n.parseAccount)(t):void 0,y=(0,h.prettyPrint)({from:g?.address,to:p,value:void 0!==m&&`${(0,c.formatEther)(m)} ${i?.nativeCurrency.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,l.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==u&&`${(0,l.formatGwei)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,l.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}t.CallExecutionError=m;class g extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:c}){let l=(0,u.getAbiItem)({abi:t,args:r,name:o}),d=l?(0,s.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.formatAbiItem)(l,{includeName:!0}):void 0,m=(0,h.prettyPrint)({address:n&&(0,p.getContractAddress)(n),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:c});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",m].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=c}}t.ContractFunctionExecutionError=g;class y extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let u,c,l,f,h;if(t&&"0x"!==t)try{h=(0,o.decodeErrorResult)({abi:e,data:t});let{abiItem:r,errorName:n,args:u}=h;if("Error"===n)l=u[0];else if("Panic"===n){let[e]=u;l=i.panicReasons[e]}else{let e=r?(0,a.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&u?(0,s.formatAbiItemWithArgs)({abiItem:r,args:u,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else n&&(l=n);u instanceof d.AbiErrorSignatureNotFoundError&&(c=[`Unable to decode signature "${f=u.signature}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`]),super(l&&"execution reverted"!==l||f?[`The contract function "${r}" reverted with the following ${f?"signature":"reason"}:`,l||f].join("\n"):`The contract function "${r}" reverted.`,{cause:u,metaMessages:c}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=h,this.reason=l,this.signature=f}}t.ContractFunctionRevertedError=y;class b extends f.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}t.ContractFunctionZeroDataError=b;class v extends f.BaseError{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}t.RawContractError=v},98600:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;let n=r(61817);class i extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=i;class o extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=o},52552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.DataLengthTooShortError=t.DataLengthTooLongError=void 0;let n=r(61817);class i extends n.BaseError{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}t.DataLengthTooLongError=i;class o extends n.BaseError{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than prefix length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}t.DataLengthTooShortError=o;class a extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=a;class s extends n.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=s;class u extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=u;class c extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}t.InvalidHexValueError=c;class l extends n.BaseError{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}t.OffsetOutOfBoundsError=l;class d extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}t.SizeOverflowError=d},37624:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;let n=r(61817);class i extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=i;class o extends n.BaseError{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=o;class a extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=a;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s},89059:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;let n=r(16697),i=r(34697),o=r(61817),a=r(51765);class s extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=(0,a.prettyPrint)({from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${o?.nativeCurrency.symbol||"ETH"}`,data:s,gas:u,gasPrice:void 0!==c&&`${(0,i.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}t.EstimateGasExecutionError=s},2798:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;let n=r(61817);class i extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=i},66498:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;let n=r(34697),i=r(61817);class o extends i.BaseError{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/}),t.ExecutionRevertedError=o;class a extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/}),t.FeeCapTooHighError=a;class s extends i.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/}),t.FeeCapTooLowError=s;class u extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/}),t.NonceTooHighError=u;class c extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. +Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/}),t.NonceTooLowError=c;class l extends i.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/}),t.NonceMaxValueError=l;class d extends i.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/}),t.InsufficientFundsError=d;class f extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/}),t.IntrinsicGasTooHighError=f;class h extends i.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/}),t.IntrinsicGasTooLowError=h;class p extends i.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/}),t.TransactionTypeNotSupportedError=p;class m extends i.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/}),t.TipAboveFeeCapError=m;class g extends i.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.message}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}t.UnknownNodeError=g},15064:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.RpcRequestError=t.WebSocketRequestError=t.HttpRequestError=void 0;let n=r(52694),i=r(61817),o=r(28767);class a extends i.BaseError{constructor({body:e,details:t,headers:r,status:i,url:a}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.getUrl)(a)}`,e&&`Request body: ${(0,n.stringify)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=i,this.url=a}}t.HttpRequestError=a;class s extends i.BaseError{constructor({body:e,details:t,url:r}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}t.WebSocketRequestError=s;class u extends i.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}t.RpcRequestError=u;class c extends i.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}t.TimeoutError=c},74199:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;let n=r(61817),i=r(15064);class o extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.RpcRequestError?e.code:t??-1}}t.RpcError=o;class a extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=a;class s extends o{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),t.ParseRpcError=s;class u extends o{constructor(e){super(e,{code:u.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),t.InvalidRequestRpcError=u;class c extends o{constructor(e){super(e,{code:c.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),t.MethodNotFoundRpcError=c;class l extends o{constructor(e){super(e,{code:l.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),t.InvalidParamsRpcError=l;class d extends o{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),t.InternalRpcError=d;class f extends o{constructor(e){super(e,{code:f.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),t.InvalidInputRpcError=f;class h extends o{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),t.ResourceNotFoundRpcError=h;class p extends o{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),t.ResourceUnavailableRpcError=p;class m extends o{constructor(e){super(e,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),t.TransactionRejectedRpcError=m;class g extends o{constructor(e){super(e,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),t.MethodNotSupportedRpcError=g;class y extends o{constructor(e){super(e,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),t.LimitExceededRpcError=y;class b extends o{constructor(e){super(e,{code:b.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),t.JsonRpcVersionUnsupportedError=b;class v extends a{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001}),t.UserRejectedRequestError=v;class E extends a{constructor(e){super(e,{code:E.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100}),t.UnauthorizedProviderError=E;class w extends a{constructor(e){super(e,{code:w.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200}),t.UnsupportedProviderMethodError=w;class P extends a{constructor(e){super(e,{code:P.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900}),t.ProviderDisconnectedError=P;class x extends a{constructor(e){super(e,{code:x.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901}),t.ChainDisconnectedError=x;class _ extends a{constructor(e){super(e,{code:_.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902}),t.SwitchChainError=_,t.UnknownRpcError=class extends o{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},51765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.prettyPrint=void 0;let n=r(16697),i=r(34697),o=r(61817);function a(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}t.prettyPrint=a;class s extends o.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}t.FeeConflictError=s;class u extends o.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}t.InvalidLegacyVError=u;class c extends o.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}t.InvalidSerializableTransactionError=c;class l extends o.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=l;class d extends o.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){let n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}t.InvalidSerializedTransactionError=d;class f extends o.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=f;class h extends o.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${o?.nativeCurrency.symbol||"ETH"}`,data:s,gas:u,gasPrice:void 0!==c&&`${(0,i.formatGwei)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.formatGwei)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}t.TransactionExecutionError=h;class p extends o.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}t.TransactionNotFoundError=p;class m extends o.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}t.TransactionReceiptNotFoundError=m;class g extends o.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=g},48892:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;let n=r(61817);class i extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}t.UrlRequiredError=i},28767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersion=t.getUrl=t.getContractAddress=void 0;let n=r(80966);t.getContractAddress=e=>e,t.getUrl=e=>e;let i=()=>`viem@${n.version}`;t.getVersion=i},80966:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.5.4"},53835:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.weiUnits=t.gweiUnits=t.etherUnits=t.zeroAddress=t.multicall3Abi=t.webSocket=t.createWalletClient=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createTestClient=t.createPublicClient=t.http=t.fallback=t.custom=t.createClient=t.getContract=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.UnknownSignatureError=t.UnknownTypeError=t.SolidityProtectedKeywordError=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiItemError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.CircularReferenceError=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=void 0,t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=void 0,t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.EstimateGasExecutionError=t.EnsAvatarUriResolutionError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.DataLengthTooShortError=t.DataLengthTooLongError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainDoesNotSupportContract=t.UserRejectedRequestError=t.UnsupportedProviderMethodError=t.UnknownRpcError=t.UnauthorizedProviderError=t.SwitchChainError=t.TransactionRejectedRpcError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.ChainDisconnectedError=t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.BlockNotFoundError=t.BaseError=t.InvalidDefinitionTypeError=t.InvalidArrayError=void 0,t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hexToSignature=t.hashTypedData=t.getTransactionType=t.getSerializedTransactionType=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAbiItem=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.formatLog=t.formatBlock=t.defineBlock=t.namehash=t.labelhash=t.UrlRequiredError=t.SizeExceedsPaddingSizeError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidLegacyVError=t.InvalidAddressError=t.WebSocketRequestError=t.TimeoutError=t.RpcRequestError=t.HttpRequestError=t.FilterTypeNotSupportedError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=void 0,t.isAddressEqual=t.isAddress=t.hashMessage=t.getFunctionSelector=t.getEventSelector=t.getContractError=t.getAddress=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.formatUnits=t.formatGwei=t.formatEther=t.encodePacked=t.defineChain=t.assertCurrentChain=t.concatHex=t.concatBytes=t.concat=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.verifyTypedData=t.verifyMessage=t.toRlp=t.signatureToHex=t.recoverTypedDataAddress=void 0,t.validateTypedData=t.trim=t.stringify=t.sliceHex=t.sliceBytes=t.slice=t.size=t.serializeTransaction=t.serializeAccessList=t.prepareRequest=t.parseUnits=t.parseTransaction=t.parseGwei=t.parseEther=t.padHex=t.padBytes=t.pad=t.keccak256=t.isHex=t.isHash=t.isBytes=void 0;var n=r(21565);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var i=r(12579);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return i.getContract}});var o=r(83718);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return o.createClient}});var a=r(11398);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return a.custom}});var s=r(93025);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return s.fallback}});var u=r(59790);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return u.http}});var c=r(36246);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return c.createPublicClient}});var l=r(29461);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return l.createTestClient}});var d=r(99327);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return d.publicActions}});var f=r(8928);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return f.testActions}});var h=r(96654);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return h.walletActions}});var p=r(21304);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var m=r(9279);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return m.createWalletClient}});var g=r(77796);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return g.webSocket}});var y=r(28858);Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return y.multicall3Abi}});var b=r(35026);Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return b.zeroAddress}});var v=r(81892);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return v.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return v.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return v.weiUnits}});var E=r(23372);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return E.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return E.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return E.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return E.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return E.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return E.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return E.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return E.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return E.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return E.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return E.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return E.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return E.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return E.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return E.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return E.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return E.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return E.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return E.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return E.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return E.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return E.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return E.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return E.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return E.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return E.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return E.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return E.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return E.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return E.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return E.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return E.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return E.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return E.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return E.maxUint24}}),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return E.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return E.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return E.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return E.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return E.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return E.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return E.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return E.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return E.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return E.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return E.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return E.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return E.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return E.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return E.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return E.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return E.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return E.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return E.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return E.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return E.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return E.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return E.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return E.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return E.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return E.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return E.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return E.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return E.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return E.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return E.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return E.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return E.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return E.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return E.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return E.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return E.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return E.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return E.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return E.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return E.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return E.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return E.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return E.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return E.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return E.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return E.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return E.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return E.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return E.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return E.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return E.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return E.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return E.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return E.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return E.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return E.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return E.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return E.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return E.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return E.minInt256}});var w=r(269);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return w.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return w.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return w.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return w.AbiDecodingZeroDataError}}),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return w.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return w.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return w.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return w.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return w.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return w.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return w.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return w.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return w.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return w.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return w.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return w.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return w.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return w.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return w.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return w.InvalidDefinitionTypeError}});var P=r(61817);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return P.BaseError}});var x=r(61945);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return x.BlockNotFoundError}});var _=r(71693);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return _.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return _.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return _.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return _.ContractFunctionZeroDataError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return _.RawContractError}});var A=r(74199);Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return A.ChainDisconnectedError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return A.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return A.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return A.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return A.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return A.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return A.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return A.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return A.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return A.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return A.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return A.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return A.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return A.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return A.RpcError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return A.TransactionRejectedRpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return A.SwitchChainError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return A.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return A.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return A.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return A.UserRejectedRequestError}});var O=r(14931);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return O.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return O.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return O.InvalidChainIdError}});var T=r(52552);Object.defineProperty(t,"DataLengthTooLongError",{enumerable:!0,get:function(){return T.DataLengthTooLongError}}),Object.defineProperty(t,"DataLengthTooShortError",{enumerable:!0,get:function(){return T.DataLengthTooShortError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return T.InvalidBytesBooleanError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return T.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return T.InvalidHexValueError}}),Object.defineProperty(t,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return T.OffsetOutOfBoundsError}});var I=r(37624);Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return I.EnsAvatarUriResolutionError}});var S=r(89059);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return S.EstimateGasExecutionError}});var C=r(66498);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return C.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return C.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return C.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return C.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return C.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return C.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return C.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return C.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return C.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return C.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return C.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return C.UnknownNodeError}});var j=r(2798);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return j.FilterTypeNotSupportedError}});var D=r(15064);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return D.HttpRequestError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return D.RpcRequestError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return D.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return D.WebSocketRequestError}});var B=r(28489);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return B.InvalidAddressError}});var R=r(51765);Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return R.InvalidLegacyVError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return R.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return R.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return R.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return R.WaitForTransactionReceiptTimeoutError}});var M=r(98600);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return M.SizeExceedsPaddingSizeError}});var k=r(48892);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return k.UrlRequiredError}});var N=r(34910);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return N.labelhash}});var U=r(88172);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return U.namehash}});var L=r(64954);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return L.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return L.formatBlock}});var F=r(69344);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return F.formatLog}});var $=r(49378);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return $.decodeAbiParameters}});var H=r(3325);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return H.decodeDeployData}});var z=r(69386);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return z.decodeErrorResult}});var q=r(8496);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return q.decodeEventLog}});var V=r(38236);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return V.decodeFunctionData}});var G=r(94337);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return G.decodeFunctionResult}});var W=r(71356);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return W.encodeAbiParameters}});var K=r(9830);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return K.encodeDeployData}});var Y=r(76618);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return Y.encodeErrorResult}});var Z=r(48506);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return Z.encodeEventTopics}});var X=r(25765);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return X.encodeFunctionData}});var J=r(5848);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return J.encodeFunctionResult}});var Q=r(98395);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return Q.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return Q.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return Q.transactionType}});var ee=r(8366);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return ee.defineTransactionReceipt}});var et=r(40279);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return et.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return et.formatTransactionRequest}});var er=r(51491);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return er.getAbiItem}});var en=r(47341);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return en.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return en.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return en.getCreateAddress}});var ei=r(68864);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return ei.getSerializedTransactionType}});var eo=r(75256);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return eo.getTransactionType}});var ea=r(67339);Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return ea.hashTypedData}});var es=r(23305);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return es.hexToSignature}});var eu=r(64761);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return eu.recoverAddress}});var ec=r(46879);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return ec.recoverMessageAddress}});var el=r(7418);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return el.recoverPublicKey}});var ed=r(28241);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return ed.recoverTypedDataAddress}});var ef=r(91368);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return ef.signatureToHex}});var eh=r(59152);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return eh.toRlp}});var ep=r(51287);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return ep.verifyMessage}});var em=r(82566);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return em.verifyTypedData}});var eg=r(5655);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return eg.assertRequest}});var ey=r(9293);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return ey.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return ey.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return ey.assertTransactionLegacy}});var eb=r(33158);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return eb.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return eb.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return eb.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return eb.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return eb.toBytes}});var ev=r(75367);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return ev.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return ev.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return ev.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return ev.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return ev.toHex}});var eE=r(74053);Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return eE.bytesToBigint}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return eE.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return eE.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return eE.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return eE.fromBytes}});var ew=r(18510);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return ew.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return ew.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return ew.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return ew.offchainLookupSignature}});var eP=r(3606);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return eP.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return eP.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return eP.concatHex}});var ex=r(67491);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return ex.assertCurrentChain}}),Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return ex.defineChain}});var e_=r(99077);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return e_.encodePacked}});var eA=r(16697);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return eA.formatEther}});var eO=r(34697);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return eO.formatGwei}});var eT=r(78743);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return eT.formatUnits}});var eI=r(89097);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return eI.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return eI.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return eI.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return eI.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return eI.hexToString}});var eS=r(10356);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return eS.fromRlp}});var eC=r(37933);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return eC.getAddress}});var ej=r(86874);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return ej.getContractError}});var eD=r(53336);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return eD.getEventSelector}});var eB=r(70729);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return eB.getFunctionSelector}});var eR=r(44639);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return eR.hashMessage}});var eM=r(18594);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return eM.isAddress}});var ek=r(9474);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return ek.isAddressEqual}});var eN=r(44544);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return eN.isBytes}});var eU=r(65961);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return eU.isHash}});var eL=r(94293);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return eL.isHex}});var eF=r(15707);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return eF.keccak256}});var e$=r(1751);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return e$.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return e$.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return e$.padHex}});var eH=r(93400);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return eH.parseEther}});var ez=r(96874);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return ez.parseGwei}});var eq=r(29471);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return eq.parseTransaction}});var eV=r(88752);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return eV.parseUnits}});var eG=r(54544);Object.defineProperty(t,"prepareRequest",{enumerable:!0,get:function(){return eG.prepareRequest}});var eW=r(34179);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return eW.serializeAccessList}});var eK=r(51463);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return eK.serializeTransaction}});var eY=r(45001);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return eY.size}});var eZ=r(76092);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return eZ.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return eZ.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return eZ.sliceHex}});var eX=r(52694);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return eX.stringify}});var eJ=r(9379);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return eJ.trim}});var eQ=r(33352);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return eQ.validateTypedData}})},49378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=void 0;let n=r(269),i=r(37933),o=r(45001),a=r(76092),s=r(9379),u=r(89097),c=r(71356);function l(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(l);let r=(0,c.getArrayComponents)(e.type);return!!(r&&l({...e,type:r[1]}))}t.decodeAbiParameters=function(e,t){if("0x"===t&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,o.size)(t)&&32>(0,o.size)(t))throw new n.AbiDecodingDataSizeTooSmallError({data:t,params:e,size:(0,o.size)(t)});return function({data:e,params:t}){let r=[],d=0;for(let f=0;f=(0,o.size)(e))throw new n.AbiDecodingDataSizeTooSmallError({data:e,params:t,size:(0,o.size)(e)});let h=t[f],{consumed:p,value:m}=function e({data:t,param:r,position:o}){let d=(0,c.getArrayComponents)(r.type);if(d){let[n,i]=d;return function(t,{param:r,length:n,position:i}){if(!n){let n=(0,u.hexToNumber)((0,a.slice)(t,i,i+32,{strict:!0})),o=(0,u.hexToNumber)((0,a.slice)(t,n,n+32,{strict:!0})),s=0,c=[];for(let i=0;i!e),o=i?[]:{},s=0;if(l(r)){let c=(0,u.hexToNumber)((0,a.slice)(t,n,n+32,{strict:!0}));for(let n=0;n48?(0,u.hexToBigInt)(e,{signed:r}):(0,u.hexToNumber)(e,{signed:r})}}(f,{param:r});if("address"===r.type)return{consumed:32,value:(0,i.checksumAddress)((0,a.slice)(f,-20))};if("bool"===r.type)return{consumed:32,value:(0,u.hexToBool)(f)};throw new n.InvalidAbiDecodingTypeError(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:h,position:d});r.push(m),d+=p}return r}({data:t,params:e})}},3325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=void 0;let n=r(269),i=r(49378),o="/docs/contract/decodeDeployData";t.decodeDeployData=function({abi:e,bytecode:t,data:r}){if(r===t)return{bytecode:t};let a=e.find(e=>"type"in e&&"constructor"===e.type);if(!a)throw new n.AbiConstructorNotFoundError({docsPath:o});if(!("inputs"in a)||!a.inputs||0===a.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:o});let s=(0,i.decodeAbiParameters)(a.inputs,`0x${r.replace(t,"")}`);return{args:s,bytecode:t}}},69386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=void 0;let n=r(62118),i=r(269),o=r(76092),a=r(70729),s=r(49378),u=r(73949);t.decodeErrorResult=function({abi:e,data:t}){let r=(0,o.slice)(t,0,4);if("0x"===r)throw new i.AbiDecodingZeroDataError;let c=[...e||[],n.solidityError,n.solidityPanic],l=c.find(e=>"error"===e.type&&r===(0,a.getFunctionSelector)((0,u.formatAbiItem)(e)));if(!l)throw new i.AbiErrorSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,s.decodeAbiParameters)(l.inputs,(0,o.slice)(t,4)):void 0,errorName:l.name}}},8496:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=void 0;let n=r(269),i=r(53336),o=r(49378),a=r(73949),s="/docs/contract/decodeEventLog";t.decodeEventLog=function({abi:e,data:t,strict:r,topics:u}){let c=r??!0,[l,...d]=u;if(!l)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:s});let f=e.find(e=>"event"===e.type&&l===(0,i.getEventSelector)((0,a.formatAbiItem)(e)));if(!(f&&"name"in f)||"event"!==f.type)throw new n.AbiEventSignatureNotFoundError(l,{docsPath:s});let{name:h,inputs:p}=f,m=p?.some(e=>!("name"in e&&e.name)),g=m?[]:{},y=p.filter(e=>"indexed"in e&&e.indexed);if(d.length>0)for(let e=0;e!("indexed"in e&&e.indexed));if(b.length>0){if(t&&"0x"!==t)try{let e=(0,o.decodeAbiParameters)(b,t);if(e){if(m)g=[...g,...e];else for(let t=0;t0?g:void 0}}},38236:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=void 0;let n=r(269),i=r(76092),o=r(70729),a=r(49378),s=r(73949);t.decodeFunctionData=function({abi:e,data:t}){let r=(0,i.slice)(t,0,4),u=e.find(e=>"function"===e.type&&r===(0,o.getFunctionSelector)((0,s.formatAbiItem)(e)));if(!u)throw new n.AbiFunctionSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,a.decodeAbiParameters)(u.inputs,(0,i.slice)(t,4)):void 0}}},94337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=void 0;let n=r(269),i=r(49378),o=r(51491),a="/docs/contract/decodeFunctionResult";t.decodeFunctionResult=function({abi:e,args:t,functionName:r,data:s}){let u=e[0];if(r&&!(u=(0,o.getAbiItem)({abi:e,args:t,name:r})))throw new n.AbiFunctionNotFoundError(r,{docsPath:a});if("function"!==u.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!u.outputs)throw new n.AbiFunctionOutputsNotFoundError(u.name,{docsPath:a});let c=(0,i.decodeAbiParameters)(u.outputs,s);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},71356:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayComponents=t.encodeAbiParameters=void 0;let n=r(269),i=r(28489),o=r(18594),a=r(3606),s=r(1751),u=r(45001),c=r(76092),l=r(75367);function d(e){let t=0;for(let r=0;r0?(0,a.concat)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.concat)(u.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let o=0;oe))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,o.isAddress)(e))throw new i.InvalidAddressError({address:e});return{dynamic:!1,encoded:(0,s.padHex)(e.toLowerCase())}}(r);if("bool"===t.type)return{dynamic:!1,encoded:(0,s.padHex)((0,l.boolToHex)(r))};if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int");return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.numberToHex)(e,{size:32,signed:t})}}(r,{signed:e})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,u.size)(e);if(!r){let t=e;return i%32!=0&&(t=(0,s.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.concat)([(0,s.padHex)((0,l.numberToHex)(i,{size:32})),t])}}if(i!==parseInt(r))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(r),value:e});return{dynamic:!1,encoded:(0,s.padHex)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,l.stringToHex)(e),r=Math.ceil((0,u.size)(t)/32),n=[];for(let e=0;e"type"in e&&"constructor"===e.type);if(!s)throw new n.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:a});let u=(0,o.encodeAbiParameters)(s.inputs,t);return(0,i.concatHex)([r,u])}},76618:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=void 0;let n=r(269),i=r(3606),o=r(70729),a=r(71356),s=r(73949),u=r(51491),c="/docs/contract/encodeErrorResult";t.encodeErrorResult=function({abi:e,errorName:t,args:r}){let l=e[0];if(t&&!(l=(0,u.getAbiItem)({abi:e,args:r,name:t})))throw new n.AbiErrorNotFoundError(t,{docsPath:c});if("error"!==l.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:c});let d=(0,s.formatAbiItem)(l),f=(0,o.getFunctionSelector)(d),h="0x";if(r&&r.length>0){if(!l.inputs)throw new n.AbiErrorInputsNotFoundError(l.name,{docsPath:c});h=(0,a.encodeAbiParameters)(l.inputs,r)}return(0,i.concatHex)([f,h])}},48506:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=void 0;let n=r(269),i=r(2798),o=r(33158),a=r(53336),s=r(15707),u=r(71356),c=r(73949),l=r(51491);function d({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,s.keccak256)((0,o.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new i.FilterTypeNotSupportedError(e.type);return(0,u.encodeAbiParameters)([e],[t])}t.encodeEventTopics=function({abi:e,eventName:t,args:r}){let i=e[0];if(t&&!(i=(0,l.getAbiItem)({abi:e,args:r,name:t})))throw new n.AbiEventNotFoundError(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==i.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let o=(0,c.formatAbiItem)(i),s=(0,a.getEventSelector)(o),u=[];if(r&&"inputs"in i){let e=i.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(u=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>d({param:e,value:t[r][i]})):t[r]?d({param:e,value:t[r]}):null)??[])}return[s,...u]}},25765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=void 0;let n=r(269),i=r(3606),o=r(70729),a=r(71356),s=r(73949),u=r(51491);t.encodeFunctionData=function({abi:e,args:t,functionName:r}){let c=e[0];if(r&&!(c=(0,u.getAbiItem)({abi:e,args:t,name:r})))throw new n.AbiFunctionNotFoundError(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let l=(0,s.formatAbiItem)(c),d=(0,o.getFunctionSelector)(l),f="inputs"in c&&c.inputs?(0,a.encodeAbiParameters)(c.inputs,t??[]):void 0;return(0,i.concatHex)([d,f??"0x"])}},5848:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=void 0;let n=r(269),i=r(71356),o=r(51491);t.encodeFunctionResult=function({abi:e,functionName:t,result:r}){let a=e[0];if(t&&!(a=(0,o.getAbiItem)({abi:e,name:t})))throw new n.AbiFunctionNotFoundError(t,{docsPath:"/docs/contract/encodeFunctionResult"});if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!a.outputs)throw new n.AbiFunctionOutputsNotFoundError(a.name,{docsPath:"/docs/contract/encodeFunctionResult"});let s=Array.isArray(r)?r:[r];return 0!==a.outputs.length||s[0]||(s=[]),(0,i.encodeAbiParameters)(a.outputs,s)}},99077:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=void 0;let n=r(269),i=r(28489),o=r(18594),a=r(3606),s=r(1751),u=r(75367),c=r(71832);t.encodePacked=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});let r=[];for(let l=0;l(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${i(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`},t.formatAbiParams=i},32310:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=void 0;let n=r(52694);t.formatAbiItemWithArgs=function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:i=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${i&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,n.stringify)(t[r]):t[r]}`).join(", ")})`}},51491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArgOfType=t.getAbiItem=void 0;let n=r(18594);function i(e,t){let r=typeof e,o=t.type;switch(o){case"address":return(0,n.isAddress)(e);case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===o&&"components"in t)return Object.values(t.components).every((t,r)=>i(Object.values(e)[r],t));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o))return"string"===r||e instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o))return Array.isArray(e)&&e.every(e=>i(e,{...t,type:o.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}t.getAbiItem=function({abi:e,args:t=[],name:r}){let n=e.filter(e=>"name"in e&&e.name===r);if(0!==n.length){if(1===n.length)return n[0];for(let e of n){if(!("inputs"in e))continue;if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs||0===e.inputs.length||e.inputs.length!==t.length)continue;let r=t.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&i(t,n)});if(r)return e}return n[0]}},t.isArgOfType=i},9377:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=t.parseAccount=void 0;var n=r(5998);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return n.parseAccount}});var i=r(85301);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return i.publicKeyToAddress}})},37933:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=t.checksumAddress=void 0;let n=r(28489),i=r(33158),o=r(15707),a=r(18594);function s(e,t){let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.keccak256)((0,i.stringToBytes)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&n[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());return`0x${a.join("")}`}t.checksumAddress=s,t.getAddress=function(e,t){if(!(0,a.isAddress)(e))throw new n.InvalidAddressError({address:e});return s(e,t)}},47341:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=t.getContractAddress=void 0;let n=r(3606),i=r(44544),o=r(1751),a=r(76092),s=r(33158),u=r(59152),c=r(15707),l=r(37933);function d(e){let t=(0,s.toBytes)((0,l.getAddress)(e.from)),r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,l.getAddress)(`0x${(0,c.keccak256)((0,u.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){let t=(0,s.toBytes)((0,l.getAddress)(e.from)),r=(0,o.pad)((0,i.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),u=(0,s.toBytes)((0,c.keccak256)((0,i.isBytes)(e.bytecode)?e.bytecode:(0,s.toBytes)(e.bytecode)));return(0,l.getAddress)((0,a.slice)((0,c.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,u])),12))}t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):d(e)},t.getCreateAddress=d,t.getCreate2Address=f},18594:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=void 0;let r=/^0x[a-fA-F0-9]{40}$/;t.isAddress=function(e){return r.test(e)}},9474:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=void 0;let n=r(28489),i=r(18594);t.isAddressEqual=function(e,t){if(!(0,i.isAddress)(e))throw new n.InvalidAddressError({address:e});if(!(0,i.isAddress)(t))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}},47030:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=t.isDeterministicError=void 0;let n=r(61817),i=r(15064),o=r(74199),a=r(33693),s=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof i.HttpRequestError&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status;t.isDeterministicError=s,t.buildRequest=function(e,{retryDelay:r=150,retryCount:s=3}={}){return async u=>(0,a.withRetry)(async()=>{try{return await e(u)}catch(e){switch(e.code){case o.ParseRpcError.code:throw new o.ParseRpcError(e);case o.InvalidRequestRpcError.code:throw new o.InvalidRequestRpcError(e);case o.MethodNotFoundRpcError.code:throw new o.MethodNotFoundRpcError(e);case o.InvalidParamsRpcError.code:throw new o.InvalidParamsRpcError(e);case o.InternalRpcError.code:throw new o.InternalRpcError(e);case o.InvalidInputRpcError.code:throw new o.InvalidInputRpcError(e);case o.ResourceNotFoundRpcError.code:throw new o.ResourceNotFoundRpcError(e);case o.ResourceUnavailableRpcError.code:throw new o.ResourceUnavailableRpcError(e);case o.TransactionRejectedRpcError.code:throw new o.TransactionRejectedRpcError(e);case o.MethodNotSupportedRpcError.code:throw new o.MethodNotSupportedRpcError(e);case o.LimitExceededRpcError.code:throw new o.LimitExceededRpcError(e);case o.JsonRpcVersionUnsupportedError.code:throw new o.JsonRpcVersionUnsupportedError(e);case o.UserRejectedRequestError.code:throw new o.UserRejectedRequestError(e);case o.UnauthorizedProviderError.code:throw new o.UnauthorizedProviderError(e);case o.UnsupportedProviderMethodError.code:throw new o.UnsupportedProviderMethodError(e);case o.ProviderDisconnectedError.code:throw new o.ProviderDisconnectedError(e);case o.ChainDisconnectedError.code:throw new o.ChainDisconnectedError(e);case o.SwitchChainError.code:throw new o.SwitchChainError(e);default:if(e instanceof n.BaseError)throw e;throw new o.UnknownRpcError(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.HttpRequestError){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<!(0,t.isDeterministicError)(e)})}},18510:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ccipFetch=t.offchainLookup=t.offchainLookupAbiItem=t.offchainLookupSignature=void 0;let n=r(66681),i=r(24626),o=r(15064),a=r(69386),s=r(71356),u=r(9474),c=r(3606),l=r(94293),d=r(52694);async function f(e,{blockNumber:r,blockTag:o,data:l,to:d}){let{args:f}=(0,a.decodeErrorResult)({data:l,abi:[t.offchainLookupAbiItem]}),[p,m,g,y,b]=f;try{if(!(0,u.isAddressEqual)(d,p))throw new i.OffchainLookupSenderMismatchError({sender:p,to:d});let t=await h({data:g,sender:p,urls:m}),{data:a}=await (0,n.call)(e,{blockNumber:r,blockTag:o,data:(0,c.concat)([y,(0,s.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[t,b])]),to:d});return a}catch(e){throw new i.OffchainLookupError({callbackSelector:y,cause:e,data:l,extraData:b,sender:p,urls:m})}}async function h({data:e,sender:t,urls:r}){let n=Error("An unknown error occurred.");for(let a=0;ae)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},53429:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.extractFunctionParts=void 0;let r=/((function|event)\s)?(.*)(\((.*)\))/;function n(e){let t=e.match(r),n=t?.[2]||void 0,i=t?.[3],o=t?.[5]||void 0;return{type:n,name:i,params:o}}t.extractFunctionParts=n,t.extractFunctionName=function(e){return n(e).name},t.extractFunctionParams=function(e){let t=n(e).params,r=t?.split(",").map(e=>e.trim().split(" "));return r?.map(e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}}))},t.extractFunctionType=function(e){return n(e).type}},3606:function(e,t){"use strict";function r(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=void 0,t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},44544:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=void 0,t.isBytes=function(e){return!!e&&"object"==typeof e&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name}},51878:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytesEqual=void 0;let n=r(53835),i=r(30802);t.isBytesEqual=function(e,t){let r=(0,n.isHex)(e)?(0,n.toBytes)(e):e,o=(0,n.isHex)(t)?(0,n.toBytes)(t):t;return(0,i.equalBytes)(r,o)}},94293:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=void 0,t.isHex=function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},1751:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.padHex=t.pad=void 0;let n=r(98600);function i(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n0&&t>(0,o.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,o.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,o.size)(e)})}function u(e,t,r,{strict:n}={}){a(e,t);let i=e.slice(t,r);return n&&s(i,t,r),i}function c(e,t,r,{strict:n}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&s(i,t,r),i}t.slice=function(e,t,r,{strict:n}={}){return(0,i.isHex)(e,{strict:!1})?c(e,t,r,{strict:n}):u(e,t,r,{strict:n})},t.sliceBytes=u,t.sliceHex=c},9379:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trim=void 0,t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return!!r[0]}function c(e,t={}){void 0!==t.size&&(0,o.assertSize)(e,{size:t.size});let r=(0,a.bytesToHex)(e,t);return(0,o.hexToNumber)(r)}function l(e,t={}){let r=e;return void 0!==t.size&&((0,o.assertSize)(r,{size:t.size}),r=(0,i.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}t.fromBytes=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?c(e,r):"bigint"===n?s(e,r):"boolean"===n?u(e,r):"string"===n?l(e,r):(0,a.bytesToHex)(e,r)},t.bytesToBigint=s,t.bytesToBool=u,t.bytesToNumber=c,t.bytesToString=l},89097:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.assertSize=void 0;let n=r(52552),i=r(45001),o=r(9379),a=r(33158);function s(e,{size:t}){if((0,i.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,i.size)(e),maxSize:t})}function u(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2,o=(1n<<8n*BigInt(i)-1n)-1n;return n<=o?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r)),"0x00"===(0,o.trim)(r))return!1;if("0x01"===(0,o.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function l(e,t={}){return Number(u(e,t))}function d(e,t={}){let r=(0,a.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}t.assertSize=s,t.fromHex=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?l(e,r):"bigint"===n?u(e,r):"string"===n?d(e,r):"boolean"===n?c(e,r):(0,a.hexToBytes)(e,r)},t.hexToBigInt=u,t.hexToBool=c,t.hexToNumber=l,t.hexToString=d},10356:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRlp=void 0;let n=r(52552),i=r(74053),o=r(33158),a=r(75367);t.fromRlp=function(e,t){let r=function(e){if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new n.InvalidHexValueError(e);return(0,o.hexToBytes)(e)}return e}(e),[s,u]=function e(t,r=0){if(0===t.length)return[new Uint8Array([]),0];let o=t[r];if(o<=127)return[new Uint8Array([t[r]]),1];if(o<=183){let e=o-128,i=r+1;if(i+e>t.length)throw new n.DataLengthTooShortError({length:i+e,dataLength:t.length});return[t.slice(i,i+e),1+e]}if(o<=191){let e=o-183,a=r+1,s=(0,i.bytesToNumber)(t.slice(a,a+e));if(a+e+s>t.length)throw new n.DataLengthTooShortError({length:e+s,dataLength:t.length-e});return[t.slice(a+e,a+e+s),1+e+s]}let a=0,s=o-192;o>247&&(a=o-247,s=(0,i.bytesToNumber)(t.slice(r+1,r+1+a)));let u=r+1+a;if(u>t.length)throw new n.DataLengthTooShortError({length:u,dataLength:t.length});let c=1+a+s,l=[];for(;ur+c)throw new n.OffsetOutOfBoundsError({nextOffset:u,offset:r+c})}return[l,c]}(r);if(ue(t,r)):"hex"===r?(0,a.bytesToHex)(t):t}(s,t)}},33158:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.toBytes=void 0;let n=r(61817),i=r(94293),o=r(1751),a=r(89097),s=r(75367),u=new TextEncoder;function c(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.assertSize)(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}function l(e,t={}){let r=e;t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,o.pad)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let s=new Uint8Array(i.length/2);for(let e=0;et.toString(16).padStart(2,"0"));function s(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.assertSize)(r,{size:t.size}),(0,i.pad)(r,{size:t.size})):r}function u(e,t={}){let r="";for(let t=0;tr||shttps?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,a=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,u=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function c(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function l(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function d({uri:e,gatewayUrls:t}){let r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=l(t?.ipfs,"https://ipfs.io"),c=l(t?.arweave,"https://arweave.net"),d=e.match(o),{protocol:f,subpath:h,target:p,subtarget:m=""}=d?.groups||{},g="ipns:/"===f||"ipns/"===h,y="ipfs:/"===f||"ipfs/"===h||a.test(e);if(e.startsWith("http")&&!g&&!y){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((g||y)&&p)return{uri:`${n}/${g?"ipns":"ipfs"}/${p}${m}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&p)return{uri:`${c}/${p}${m||""}`,isOnChain:!1,isEncoded:!1};let b=e.replace(u,"");if(b.startsWith("e.json()),n=await p({gatewayUrls:e,uri:f(r)});return n}catch{throw new i.EnsAvatarUriResolutionError({uri:t})}}async function p({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=d({uri:t,gatewayUrls:e});if(n)return r;let o=await c(r);if(o)return r;throw new i.EnsAvatarUriResolutionError({uri:t})}async function m(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new i.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}t.isImageUri=c,t.getGateway=l,t.resolveAvatarUri=d,t.getJsonImage=f,t.getMetadataAvatarUri=h,t.parseAvatarUri=p,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,o]=t.split("/"),[a,s]=r.split(":"),[u,c]=n.split(":");if(!a||"eip155"!==a.toLowerCase())throw new i.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new i.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!c)throw new i.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!o)throw new i.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!u)throw new i.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:u.toLowerCase(),contractAddress:c,tokenID:o}},t.getNftTokenUri=m},58453:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=void 0,t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},11482:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=void 0;let n=r(22039);t.encodedLabelToLabelhash=function(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null}},51393:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=void 0;let n=r(62118),i=r(61817),o=r(71693);t.isNullUniversalResolverError=function(e,t){if(!(e instanceof i.BaseError))return!1;let r=e.walk(e=>e instanceof o.ContractFunctionRevertedError);return r instanceof o.ContractFunctionRevertedError&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===n.panicReasons[50])}},34910:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=void 0;let n=r(33158),i=r(75367),o=r(15707),a=r(11482);t.labelhash=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.encodedLabelToLabelhash)(e)||(0,o.keccak256)((0,n.stringToBytes)(e)):(0,i.bytesToHex)(t)}},88172:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=void 0;let n=r(3606),i=r(33158),o=r(75367),a=r(15707),s=r(11482);t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.bytesToHex)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let o=(0,s.encodedLabelToLabelhash)(r[e]),u=o?(0,i.toBytes)(o):(0,a.keccak256)((0,i.stringToBytes)(r[e]),"bytes");t=(0,a.keccak256)((0,n.concat)([t,u]),"bytes")}return(0,o.bytesToHex)(t)}},96646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=void 0;let n=r(33158),i=r(58453),o=r(34910);t.packetToBytes=function(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2),a=0,s=t.split(".");for(let e=0;e255&&(t=(0,n.stringToBytes)((0,i.encodeLabelhash)((0,o.labelhash)(s[e])))),r[a]=t.length,r.set(t,a+1),a+=t.length+1}return r.byteLength!==a+1?r.slice(0,a+1):r}},56425:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=void 0;let n=r(71693),i=r(83266);t.getCallError=function(e,{docsPath:t,...r}){let o=e;return(0,i.containsNodeError)(e)&&(o=(0,i.getNodeError)(e,r)),new n.CallExecutionError(o,{docsPath:t,...r})}},86874:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=void 0;let n=r(269),i=r(61817),o=r(71693);t.getContractError=function(e,{abi:t,address:r,args:a,docsPath:s,functionName:u,sender:c}){let{code:l,data:d,message:f,shortMessage:h}=e instanceof o.RawContractError?e:e instanceof i.BaseError?e.walk(e=>"data"in e)||e.walk():{},p=e;return e instanceof n.AbiDecodingZeroDataError?p=new o.ContractFunctionZeroDataError({functionName:u}):3===l&&(d||f||h)&&(p=new o.ContractFunctionRevertedError({abi:t,data:"object"==typeof d?d.data:d,functionName:u,message:h??f})),new o.ContractFunctionExecutionError(p,{abi:t,args:a,contractAddress:r,docsPath:s,functionName:u,sender:c})}},80643:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=void 0;let n=r(89059),i=r(83266);t.getEstimateGasError=function(e,{docsPath:t,...r}){let o=e;return(0,i.containsNodeError)(e)&&(o=(0,i.getNodeError)(e,r)),new n.EstimateGasExecutionError(o,{docsPath:t,...r})}},83266:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeError=t.containsNodeError=void 0;let n=r(66498),i=r(15064),o=r(74199);t.containsNodeError=function(e){return e instanceof o.TransactionRejectedRpcError||e instanceof o.InvalidInputRpcError||e instanceof i.RpcRequestError&&e.code===n.ExecutionRevertedError.code},t.getNodeError=function(e,t){let r=e.details.toLowerCase();if(n.FeeCapTooHighError.nodeMessage.test(r))return new n.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas});if(n.FeeCapTooLowError.nodeMessage.test(r))return new n.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas});if(n.NonceTooHighError.nodeMessage.test(r))return new n.NonceTooHighError({cause:e,nonce:t?.nonce});if(n.NonceTooLowError.nodeMessage.test(r))return new n.NonceTooLowError({cause:e,nonce:t?.nonce});if(n.NonceMaxValueError.nodeMessage.test(r))return new n.NonceMaxValueError({cause:e,nonce:t?.nonce});if(n.InsufficientFundsError.nodeMessage.test(r))return new n.InsufficientFundsError({cause:e});if(n.IntrinsicGasTooHighError.nodeMessage.test(r))return new n.IntrinsicGasTooHighError({cause:e,gas:t?.gas});else if(n.IntrinsicGasTooLowError.nodeMessage.test(r))return new n.IntrinsicGasTooLowError({cause:e,gas:t?.gas});else if(n.TransactionTypeNotSupportedError.nodeMessage.test(r))return new n.TransactionTypeNotSupportedError({cause:e});else if(n.TipAboveFeeCapError.nodeMessage.test(r))return new n.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas});else if(r.match(n.ExecutionRevertedError.nodeMessage)||"code"in e.cause&&e.cause?.code===n.ExecutionRevertedError.code)return new n.ExecutionRevertedError({cause:e,message:e.cause.details||e.details});return new n.UnknownNodeError({cause:e.cause.cause})}},64438:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=void 0;let n=r(51765),i=r(83266);t.getTransactionError=function(e,{docsPath:t,...r}){let o=e;return(0,i.containsNodeError)(e)&&(o=(0,i.getNodeError)(e,r)),new n.TransactionExecutionError(o,{docsPath:t,...r})}},14862:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=void 0,t.createFilterRequestScope=function(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:o})=>{"success"===i&&t===e&&(r[n]=o.request)}),t=>r[t]||e.request}},64954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=t.formatBlock=void 0;let n=r(73641),i=r(98395);function o(e){let t=e.transactions?.map(e=>"string"==typeof e?e:(0,i.formatTransaction)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.formatBlock=o,t.defineBlock=(0,n.defineFormatter)("block",o)},8258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extract=void 0,t.extract=function(e,{format:t}){if(!t)return{};let r=Object.keys(t({}));return r.reduce((t,r)=>(e?.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}},63777:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=void 0,t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(e=>e.map(e=>BigInt(e)))}}},73641:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=void 0,t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{let i=t(e);if(r)for(let e of r)delete i[e];return{...i,...n(e)}},type:e})}},69344:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=void 0,t.formatLog=function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}},98395:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.formatTransaction=t.transactionType=void 0;let n=r(89097),i=r(73641);function o(e){let r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.hexToNumber)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return"legacy"===r.type&&(delete r.accessList,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),"eip2930"===r.type&&(delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"},t.formatTransaction=o,t.defineTransaction=(0,i.defineFormatter)("transaction",o)},8366:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.formatTransactionReceipt=void 0;let n=r(89097),i=r(73641),o=r(69344),a=r(98395),s={"0x0":"reverted","0x1":"success"};function u(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,o.formatLog)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.transactionType[e.type]||e.type:null}}t.formatTransactionReceipt=u,t.defineTransactionReceipt=(0,i.defineFormatter)("transactionReceipt",u)},40279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.formatTransactionRequest=void 0;let n=r(75367),i=r(73641);function o(e){return{...e,gas:void 0!==e.gas?(0,n.numberToHex)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,n.numberToHex)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,n.numberToHex)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,n.numberToHex)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,n.numberToHex)(e.nonce):void 0,value:void 0!==e.value?(0,n.numberToHex)(e.value):void 0}}t.formatTransactionRequest=o,t.defineTransactionRequest=(0,i.defineFormatter)("transactionRequest",o)},53336:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventSelector=void 0;let n=r(9284),i=e=>"string"==typeof e?(0,n.hashFunction)(e):(0,n.hashAbiItem)(e);t.getEventSelector=i},70729:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionSelector=void 0;let n=r(76092),i=r(9284),o=e=>"string"==typeof e?(0,n.slice)((0,i.hashFunction)(e),0,4):(0,n.slice)((0,i.hashAbiItem)(e),0,4);t.getFunctionSelector=o},9284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashAbiItem=t.hashFunction=void 0;let n=r(73949),i=r(53429),o=r(33158),a=r(15707),s=e=>(0,a.keccak256)((0,o.toBytes)(e));t.hashFunction=function(e){let t=(0,i.extractFunctionName)(e),r=(0,i.extractFunctionParams)(e)||[];return s(`${t}(${r.map(({type:e})=>e).join(",")})`)},t.hashAbiItem=function(e){return s((0,n.formatAbiItem)(e))}},65961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=void 0;let n=r(94293),i=r(45001);t.isHash=function(e){return(0,n.isHex)(e)&&32===(0,i.size)(e)}},15707:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;let n=r(54801),i=r(94293),o=r(33158),a=r(75367);t.keccak256=function(e,t){let r=(0,n.keccak_256)((0,i.isHex)(e,{strict:!1})?(0,o.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,a.toHex)(r)}},22039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=t.extractFunctionParts=t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.isAddressEqual=t.isAddress=t.getAddress=t.getCreate2Address=t.getCreateAddress=t.getContractAddress=t.publicKeyToAddress=t.parseAccount=t.formatAbiParams=t.formatAbiItem=t.formatAbiItemWithArgs=t.encodePacked=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.getAbiItem=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.validateTypedData=t.stringify=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.getChainContractAddress=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.buildRequest=void 0,t.getEventSelector=t.defineFormatter=t.getTransactionError=t.getEstimateGasError=t.getContractError=t.getCallError=t.getNodeError=t.containsNodeError=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBigInt=t.hexToBool=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.stringToHex=t.numberToHex=t.toHex=t.bytesToHex=t.boolToHex=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.toBytes=t.boolToBytes=t.toRlp=t.extract=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.formatLog=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatBlock=t.defineBlock=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=void 0,t.parseGwei=t.parseEther=t.parseUnits=t.formatUnits=t.formatGwei=t.formatEther=t.serializeAccessList=t.serializeTransaction=t.prepareRequest=t.parseTransaction=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.getTransactionType=t.getSerializedTransactionType=t.hashMessage=t.verifyTypedData=t.verifyMessage=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hashTypedData=t.keccak256=t.isHash=t.getFunctionSelector=void 0;var n=r(47030);Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return n.buildRequest}});var i=r(18510);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return i.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return i.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return i.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return i.offchainLookupSignature}});var o=r(67491);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return o.assertCurrentChain}}),Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return o.defineChain}}),Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return o.getChainContractAddress}});var a=r(71832);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return a.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return a.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return a.integerRegex}});var s=r(42426);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return s.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return s.rpc}});var u=r(52694);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}});var c=r(33352);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return c.validateTypedData}});var l=r(49378);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return l.decodeAbiParameters}});var d=r(69386);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return d.decodeErrorResult}});var f=r(8496);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return f.decodeEventLog}});var h=r(38236);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return h.decodeFunctionData}});var p=r(94337);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return p.decodeFunctionResult}});var m=r(71356);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return m.encodeAbiParameters}});var g=r(9830);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return g.encodeDeployData}});var y=r(76618);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return y.encodeErrorResult}});var b=r(48506);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return b.encodeEventTopics}});var v=r(25765);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return v.encodeFunctionData}});var E=r(5848);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return E.encodeFunctionResult}});var w=r(51491);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return w.getAbiItem}});var P=r(21565);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return P.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return P.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return P.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return P.parseAbiParameters}});var x=r(99077);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return x.encodePacked}});var _=r(32310);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return _.formatAbiItemWithArgs}});var A=r(73949);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return A.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return A.formatAbiParams}});var O=r(5998);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return O.parseAccount}});var T=r(85301);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return T.publicKeyToAddress}});var I=r(47341);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return I.getContractAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return I.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return I.getCreate2Address}});var S=r(37933);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return S.getAddress}});var C=r(18594);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return C.isAddress}});var j=r(9474);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return j.isAddressEqual}});var D=r(53429);Object.defineProperty(t,"extractFunctionName",{enumerable:!0,get:function(){return D.extractFunctionName}}),Object.defineProperty(t,"extractFunctionParams",{enumerable:!0,get:function(){return D.extractFunctionParams}}),Object.defineProperty(t,"extractFunctionType",{enumerable:!0,get:function(){return D.extractFunctionType}}),Object.defineProperty(t,"extractFunctionParts",{enumerable:!0,get:function(){return D.extractFunctionParts}});var B=r(3606);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return B.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return B.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return B.concatHex}});var R=r(44544);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return R.isBytes}});var M=r(94293);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return M.isHex}});var k=r(1751);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return k.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return k.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return k.padHex}});var N=r(45001);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return N.size}});var U=r(76092);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return U.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return U.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return U.sliceHex}});var L=r(9379);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return L.trim}});var F=r(64954);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return F.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return F.formatBlock}});var $=r(98395);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return $.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return $.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return $.transactionType}});var H=r(69344);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return H.formatLog}});var z=r(8366);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return z.defineTransactionReceipt}});var q=r(40279);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return q.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return q.formatTransactionRequest}});var V=r(8258);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return V.extract}});var G=r(59152);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return G.toRlp}});var W=r(33158);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return W.boolToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return W.toBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return W.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return W.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return W.stringToBytes}});var K=r(75367);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return K.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return K.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return K.toHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return K.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return K.stringToHex}});var Y=r(74053);Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return Y.bytesToBigint}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return Y.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return Y.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return Y.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return Y.fromBytes}});var Z=r(89097);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return Z.fromHex}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return Z.hexToBool}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return Z.hexToBigInt}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return Z.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return Z.hexToString}});var X=r(10356);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return X.fromRlp}});var J=r(83266);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return J.containsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return J.getNodeError}});var Q=r(56425);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return Q.getCallError}});var ee=r(86874);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return ee.getContractError}});var et=r(80643);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return et.getEstimateGasError}});var er=r(64438);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return er.getTransactionError}});var en=r(73641);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return en.defineFormatter}});var ei=r(53336);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return ei.getEventSelector}});var eo=r(70729);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return eo.getFunctionSelector}});var ea=r(65961);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return ea.isHash}});var es=r(15707);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return es.keccak256}});var eu=r(67339);Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return eu.hashTypedData}});var ec=r(64761);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return ec.recoverAddress}});var el=r(46879);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return el.recoverMessageAddress}});var ed=r(7418);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return ed.recoverPublicKey}});var ef=r(28241);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return ef.recoverTypedDataAddress}});var eh=r(51287);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return eh.verifyMessage}});var ep=r(82566);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return ep.verifyTypedData}});var em=r(44639);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return em.hashMessage}});var eg=r(68864);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return eg.getSerializedTransactionType}});var ey=r(75256);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return ey.getTransactionType}});var eb=r(5655);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return eb.assertRequest}});var ev=r(9293);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return ev.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return ev.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return ev.assertTransactionLegacy}});var eE=r(29471);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return eE.parseTransaction}});var ew=r(54544);Object.defineProperty(t,"prepareRequest",{enumerable:!0,get:function(){return ew.prepareRequest}});var eP=r(51463);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return eP.serializeTransaction}});var ex=r(34179);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return ex.serializeAccessList}});var e_=r(16697);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return e_.formatEther}});var eA=r(34697);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return eA.formatGwei}});var eO=r(78743);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return eO.formatUnits}});var eT=r(88752);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return eT.parseUnits}});var eI=r(93400);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return eI.parseEther}});var eS=r(96874);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return eS.parseGwei}})},23275:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observe=t.cleanupCache=t.listenersCache=void 0,t.listenersCache=new Map,t.cleanupCache=new Map;let r=0;t.observe=function(e,n,i){let o=++r,a=()=>t.listenersCache.get(e)||[],s=()=>{let r=a();t.listenersCache.set(e,r.filter(e=>e.id!==o))},u=()=>{let r=t.cleanupCache.get(e);1===a().length&&r&&r(),s()},c=a();if(t.listenersCache.set(e,[...c,{id:o,fns:n}]),c&&c.length>0)return u;let l={};for(let e in n)l[e]=(...t)=>{let r=a();0!==r.length&&r.forEach(r=>r.fns[e]?.(...t))};let d=i(l);return"function"==typeof d&&t.cleanupCache.set(e,d),u}},13823:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.poll=void 0;let n=r(54789);t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let o=!0,a=()=>o=!1,s=async()=>{let s;t&&(s=await e({unpoll:a}));let u=await r?.(s)??i;await (0,n.wait)(u);let c=async()=>{o&&(await e({unpoll:a}),await (0,n.wait)(i),c())};c()};return s(),a}},45893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=void 0;let r=new Map;t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:n,wait:i=0}){let o=async()=>{let t=u();a();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{t.forEach(({pendingPromise:t},r)=>t.resolve?.([e[r],e]))}).catch(e=>{t.forEach(({pendingPromise:t})=>t.reject?.(e))})},a=()=>r.delete(t),s=()=>u().map(({args:e})=>e),u=()=>r.get(t)||[],c=e=>r.set(t,[...u(),e]);return{flush:a,async schedule(e){let t={},r=new Promise((e,r)=>{t.resolve=e,t.reject=r}),a=n?.([...s(),e]);a&&o();let l=u().length>0;return l?(c({args:e,pendingPromise:t}),r):(c({args:e,pendingPromise:t}),setTimeout(o,i),r)}}}},81994:function(e,t){"use strict";function r(e){let r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),n=r(e,t.promiseCache),i=r(e,t.responseCache);return{clear:()=>{n.clear(),i.clear()},promise:n,response:i}}async function n(e,{cacheKey:t,cacheTime:n=1/0}){let i=r(t),o=i.response.get();if(o&&n>0){let e=new Date().getTime()-o.created.getTime();if(e!0}={}){return new Promise((o,a)=>{let s=async({count:u=0}={})=>{let c=async({error:e})=>{let r="function"==typeof t?t({count:u,error:e}):t;r&&await (0,n.wait)(r),s({count:u+1})};try{let t=await e();o(t)}catch(e){if(u{(async()=>{let a;try{let s=new AbortController;r>0&&(a=setTimeout(()=>{n?s.abort():o(t)},r)),i(await e({signal:s?.signal}))}catch(e){"AbortError"===e.name&&o(t),o(e)}finally{clearTimeout(a)}})()})}},71832:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},42426:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=t.getSocket=void 0;let n=r(15064),i=r(45893),o=r(10014),a=r(52694),s=0;async function u(e,{body:t,fetchOptions:r={},timeout:i=1e4}){let{headers:u,method:c,signal:l}=r;try{let d;let f=await (0,o.withTimeout)(async({signal:n})=>{let o=await fetch(e,{...r,body:Array.isArray(t)?(0,a.stringify)(t.map(e=>({jsonrpc:"2.0",id:s++,...e}))):(0,a.stringify)({jsonrpc:"2.0",id:s++,...t}),headers:{...u,"Content-Type":"application/json"},method:c||"POST",signal:l||(i>0?n:void 0)});return o},{errorInstance:new n.TimeoutError({body:t,url:e}),timeout:i,signal:!0});if(d=f.headers.get("Content-Type")?.startsWith("application/json")?await f.json():await f.text(),!f.ok)throw new n.HttpRequestError({body:t,details:(0,a.stringify)(d.error)||f.statusText,headers:f.headers,status:f.status,url:e});return d}catch(r){if(r instanceof n.HttpRequestError||r instanceof n.TimeoutError)throw r;throw new n.HttpRequestError({body:t,details:r.message,url:e})}}let c=new Map;async function l(e){let t=new URL(e),n=t.toString(),o=c.get(n);if(o)return o;let{schedule:a}=(0,i.createBatchScheduler)({id:n,fn:async()=>{let e=await r.e(667).then(r.bind(r,60667));e=e.default?.constructor?e.default:e.WebSocket;let i=new e(t),a=new Map,s=new Map,u=({data:e})=>{let t=JSON.parse(e),r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,i=r?s:a,o=i.get(n);o&&o({data:e}),r||i.delete(n)},l=()=>{c.delete(n),i.removeEventListener("close",l),i.removeEventListener("message",u)};return i.addEventListener("close",l),i.addEventListener("message",u),i.readyState===e.CONNECTING&&await new Promise((e,t)=>{i&&(i.onopen=e,i.onerror=t)}),o=Object.assign(i,{requests:a,subscriptions:s}),c.set(n,o),[o]}}),[s,[u]]=await a();return u}async function d(e,{body:r,timeout:i=1e4}){return(0,o.withTimeout)(()=>new Promise(n=>t.rpc.webSocket(e,{body:r,onResponse:n})),{errorInstance:new n.TimeoutError({body:r,url:e.url}),timeout:i})}t.getSocket=l,t.rpc={http:u,webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new n.WebSocketRequestError({body:t,url:e.url,details:"Socket is closed."});let i=s++,o=({data:n})=>{let a=JSON.parse(n);("number"!=typeof a.id||i===a.id)&&(r?.(a),"eth_subscribe"===t.method&&"string"==typeof a.result&&e.subscriptions.set(a.result,o),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(i,o),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:i})),e},webSocketAsync:d}},44639:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=void 0;let n=r(3606),i=r(33158),o=r(15707);t.hashMessage=function(e,t){let r="string"==typeof e?(0,i.stringToBytes)(e):e.raw instanceof Uint8Array?e.raw:(0,i.toBytes)(e.raw),a=(0,i.stringToBytes)(`\x19Ethereum Signed Message: +${r.length}`);return(0,o.keccak256)((0,n.concat)([a,r]),t)}},67339:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashTypedData=void 0;let n=r(71356),i=r(3606),o=r(75367),a=r(15707),s=r(33352);function u({data:e,primaryType:t,types:r}){let i=function e({data:t,primaryType:r,types:i}){let s=[{type:"bytes32"}],u=[function({primaryType:e,types:t}){let r=(0,o.toHex)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\w*/u),o=i?.[0];if(n.has(o)||void 0===r[o])return n;for(let t of(n.add(o),r[o]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});n.delete(e);let i=[e,...Array.from(n).sort()];for(let e of i)r+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,a.keccak256)(r)}({primaryType:r,types:i})];for(let c of i[r]){let[r,l]=function t({types:r,name:i,type:s,value:u}){if(void 0!==r[s])return[{type:"bytes32"},(0,a.keccak256)(e({data:u,primaryType:s,types:r}))];if("bytes"===s){let e=u.length%2?"0":"";return u=`0x${e+u.slice(2)}`,[{type:"bytes32"},(0,a.keccak256)(u)]}if("string"===s)return[{type:"bytes32"},(0,a.keccak256)((0,o.toHex)(u))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),o=u.map(n=>t({name:i,type:e,types:r,value:n}));return[{type:"bytes32"},(0,a.keccak256)((0,n.encodeAbiParameters)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:s},u]}({types:i,name:c.name,type:c.type,value:t[c.name]});s.push(r),u.push(l)}return(0,n.encodeAbiParameters)(s,u)}({data:e,primaryType:t,types:r});return(0,a.keccak256)(i)}t.hashTypedData=function({domain:e,message:t,primaryType:r,types:n}){let o=void 0===e?{}:e,c={EIP712Domain:["string"==typeof o?.name&&{name:"name",type:"string"},o?.version&&{name:"version",type:"string"},"number"==typeof o?.chainId&&{name:"chainId",type:"uint256"},o?.verifyingContract&&{name:"verifyingContract",type:"address"},o?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...n};(0,s.validateTypedData)({domain:o,message:t,primaryType:r,types:c});let l=["0x1901"];return o&&l.push(function({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}({domain:o,types:c})),"EIP712Domain"!==r&&l.push(u({data:t,primaryType:r,types:c})),(0,a.keccak256)((0,i.concat)(l))}},23305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToSignature=void 0;let n=r(15207),i=r(75367);t.hexToSignature=function(e){let{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),o=BigInt(`0x${e.slice(130)}`);return{r:(0,i.numberToHex)(t),s:(0,i.numberToHex)(r),v:o}}},64761:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=void 0;let n=r(85301),i=r(7418);async function o({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await (0,i.recoverPublicKey)({hash:e,signature:t}))}t.recoverAddress=o},46879:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=void 0;let n=r(44639),i=r(64761);async function o({message:e,signature:t}){return(0,i.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})}t.recoverMessageAddress=o},7418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=void 0;let n=r(94293),i=r(89097),o=r(75367);async function a({hash:e,signature:t}){let a=(0,n.isHex)(t)?t:(0,o.toHex)(t),s=(0,n.isHex)(e)?e:(0,o.toHex)(e),u=(0,i.hexToNumber)(`0x${a.slice(130)}`);(0===u||1===u)&&(u+=27);let{secp256k1:c}=await r.e(956).then(r.bind(r,71956)),l=c.Signature.fromCompact(a.substring(2,130)).addRecoveryBit(u-27).recoverPublicKey(s.substring(2)).toHex(!1);return`0x${l}`}t.recoverPublicKey=a},28241:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=void 0;let n=r(67339),i=r(64761);async function o({domain:e,message:t,primaryType:r,signature:o,types:a}){return(0,i.recoverAddress)({hash:(0,n.hashTypedData)({domain:e,message:t,primaryType:r,types:a}),signature:o})}t.recoverTypedDataAddress=o},91368:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToHex=void 0;let n=r(15207),i=r(89097),o=r(75367);t.signatureToHex=function({r:e,s:t,v:r}){return`0x${new n.secp256k1.Signature((0,i.hexToBigInt)(e),(0,i.hexToBigInt)(t)).toCompactHex()}${(0,o.toHex)(r).slice(2)}`}},51287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;let n=r(37933),i=r(9474),o=r(46879);async function a({address:e,message:t,signature:r}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await (0,o.recoverMessageAddress)({message:t,signature:r}))}t.verifyMessage=a},82566:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;let n=r(37933),i=r(9474),o=r(28241);async function a({address:e,domain:t,message:r,primaryType:a,signature:s,types:u}){return(0,i.isAddressEqual)((0,n.getAddress)(e),await (0,o.recoverTypedDataAddress)({domain:t,message:r,primaryType:a,signature:s,types:u}))}t.verifyTypedData=a},52694:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;let r=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r);t.stringify=r},5655:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=void 0;let n=r(5998),i=r(28489),o=r(66498),a=r(51765),s=r(18594);t.assertRequest=function(e){let{account:t,gasPrice:r,maxFeePerGas:u,maxPriorityFeePerGas:c,to:l}=e,d=t?(0,n.parseAccount)(t):void 0;if(d&&!(0,s.isAddress)(d.address))throw new i.InvalidAddressError({address:d.address});if(l&&!(0,s.isAddress)(l))throw new i.InvalidAddressError({address:l});if(void 0!==r&&(void 0!==u||void 0!==c))throw new a.FeeConflictError;if(u&&u>2n**256n-1n)throw new o.FeeCapTooHighError({maxFeePerGas:u});if(c&&u&&c>u)throw new o.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:c})}},9293:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=void 0;let n=r(28489),i=r(61817),o=r(14931),a=r(66498),s=r(18594);t.assertTransactionEIP1559=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:u,maxFeePerGas:c,to:l}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(u)throw new i.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c});if(r&&c&&r>c)throw new a.TipAboveFeeCapError({maxFeePerGas:c,maxPriorityFeePerGas:r})},t.assertTransactionEIP2930=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:u,maxFeePerGas:c,to:l}=e;if(t<=0)throw new o.InvalidChainIdError({chainId:t});if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(r||c)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(u&&u>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:u})},t.assertTransactionLegacy=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:u,maxFeePerGas:c,to:l,accessList:d}=e;if(l&&!(0,s.isAddress)(l))throw new n.InvalidAddressError({address:l});if(void 0!==t&&t<=0)throw new o.InvalidChainIdError({chainId:t});if(r||c)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(u&&u>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:u});if(d)throw new i.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}},68864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=void 0;let n=r(51765),i=r(76092),o=r(89097);t.getSerializedTransactionType=function(e){let t=(0,i.sliceHex)(e,0,1);if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,o.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})}},75256:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=void 0;let n=r(51765);t.getTransactionType=function(e){if(e.type)return e.type;if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.InvalidSerializableTransactionError({transaction:e})}},29471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransaction=void 0;let n=r(28489),i=r(51765),o=r(18594),a=r(94293),s=r(1751),u=r(9379),c=r(89097),l=r(10356),d=r(65961),f=r(9293),h=r(68864);function p(e){let t=[];for(let r=0;r(0,d.isHash)(e)?e:(0,u.trim)(e))})}return t}function m(e){let t=e.slice(-3),r="0x"===t[0]||0n===(0,c.hexToBigInt)(t[0])?27n:28n;return{r:(0,s.padHex)(t[1],{size:32}),s:(0,s.padHex)(t[2],{size:32}),v:r,yParity:27n===r?0:1}}t.parseTransaction=function(e){let t=(0,h.getSerializedTransactionType)(e);return"eip1559"===t?function(e){let t=(0,l.fromRlp)(`0x${e.slice(4)}`,"hex"),[r,n,o,s,u,d,h,g,y,b,v,E]=t;if(!(9===t.length||12===t.length))throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:o,maxFeePerGas:s,gas:u,to:d,value:h,data:g,accessList:y,...t.length>9?{v:b,r:v,s:E}:{}},serializedTransaction:e,type:"eip1559"});let w={chainId:(0,c.hexToNumber)(r),type:"eip1559"};(0,a.isHex)(d)&&"0x"!==d&&(w.to=d),(0,a.isHex)(u)&&"0x"!==u&&(w.gas=(0,c.hexToBigInt)(u)),(0,a.isHex)(g)&&"0x"!==g&&(w.data=g),(0,a.isHex)(n)&&"0x"!==n&&(w.nonce=(0,c.hexToNumber)(n)),(0,a.isHex)(h)&&"0x"!==h&&(w.value=(0,c.hexToBigInt)(h)),(0,a.isHex)(s)&&"0x"!==s&&(w.maxFeePerGas=(0,c.hexToBigInt)(s)),(0,a.isHex)(o)&&"0x"!==o&&(w.maxPriorityFeePerGas=(0,c.hexToBigInt)(o)),0!==y.length&&"0x"!==y&&(w.accessList=p(y)),(0,f.assertTransactionEIP1559)(w);let P=12===t.length?m(t):void 0;return{...P,...w}}(e):"eip2930"===t?function(e){let t=(0,l.fromRlp)(`0x${e.slice(4)}`,"hex"),[r,n,o,s,u,d,h,g,y,b,v]=t;if(!(8===t.length||11===t.length))throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:o,gas:s,to:u,value:d,data:h,accessList:g,...t.length>8?{v:y,r:b,s:v}:{}},serializedTransaction:e,type:"eip2930"});let E={chainId:(0,c.hexToNumber)(r),type:"eip2930"};(0,a.isHex)(u)&&"0x"!==u&&(E.to=u),(0,a.isHex)(s)&&"0x"!==s&&(E.gas=(0,c.hexToBigInt)(s)),(0,a.isHex)(h)&&"0x"!==h&&(E.data=h),(0,a.isHex)(n)&&"0x"!==n&&(E.nonce=(0,c.hexToNumber)(n)),(0,a.isHex)(d)&&"0x"!==d&&(E.value=(0,c.hexToBigInt)(d)),(0,a.isHex)(o)&&"0x"!==o&&(E.gasPrice=(0,c.hexToBigInt)(o)),0!==g.length&&"0x"!==g&&(E.accessList=p(g)),(0,f.assertTransactionEIP2930)(E);let w=11===t.length?m(t):void 0;return{...w,...E}}(e):function(e){let t=(0,l.fromRlp)(e,"hex"),[r,n,o,s,u,d,h,p,m]=t;if(!(6===t.length||9===t.length))throw new i.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:o,to:s,value:u,data:d,...t.length>6?{v:h,r:p,s:m}:{}},serializedTransaction:e,type:"legacy"});let g={type:"legacy"};if((0,a.isHex)(s)&&"0x"!==s&&(g.to=s),(0,a.isHex)(o)&&"0x"!==o&&(g.gas=(0,c.hexToBigInt)(o)),(0,a.isHex)(d)&&"0x"!==d&&(g.data=d),(0,a.isHex)(r)&&"0x"!==r&&(g.nonce=(0,c.hexToNumber)(r)),(0,a.isHex)(u)&&"0x"!==u&&(g.value=(0,c.hexToBigInt)(u)),(0,a.isHex)(n)&&"0x"!==n&&(g.gasPrice=(0,c.hexToBigInt)(n)),(0,f.assertTransactionLegacy)(g),6===t.length)return g;let y=(0,a.isHex)(h)&&"0x"!==h?(0,c.hexToBigInt)(h):0n;if("0x"===m&&"0x"===p)return y>0&&(g.chainId=Number(y)),g;let b=Number((y-35n)/2n);if(b>0)g.chainId=b;else if(27n!==y&&28n!==y)throw new i.InvalidLegacyVError({v:y});return g.v=y,g.s=m,g.r=p,g}(e)}},54544:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareRequest=void 0;let n=r(5998),i=r(19655),o=r(48546),a=r(9677),s=r(34974),u=r(69438),c=r(61817),l=r(5655);async function d(e,t){let{account:r,chain:d=e.chain,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g}=t;if(!r)throw new u.AccountNotFoundError;let y=(0,n.parseAccount)(r),b=await (0,o.getBlock)(e,{blockTag:"latest"}),v={...t,from:y.address};if(void 0===g&&(v.nonce=await (0,s.getTransactionCount)(e,{address:y.address,blockTag:"pending"})),"bigint"==typeof b.baseFeePerGas&&void 0===h){let e=1500000000n;if(void 0!==d?.fees?.defaultPriorityFee&&(e="bigint"==typeof d.fees.defaultPriorityFee?d.fees.defaultPriorityFee:await d.fees.defaultPriorityFee({block:b,request:v})),void 0===p)v.maxPriorityFeePerGas=m??e,v.maxFeePerGas=120n*b.baseFeePerGas/100n+v.maxPriorityFeePerGas;else{if(void 0===m&&p0)e=BigInt(2*r)+BigInt(35n+t.v-27n);else if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});h=[...h,(0,a.toHex)(e),t.r,t.s]}else r>0&&(h=[...h,(0,a.toHex)(r),"0x","0x"]);return(0,s.toRlp)(h)}(e,t)}},33352:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTypedData=void 0;let n=r(269),i=r(28489),o=r(18594),a=r(45001),s=r(75367),u=r(71832);t.validateTypedData=function({domain:e,message:t,primaryType:r,types:c}){let l=(e,t)=>{for(let r of e){let{name:e,type:d}=r,f=t[e],h=d.match(u.integerRegex);if(h&&("number"==typeof f||"bigint"==typeof f)){let[e,t,r]=h;(0,s.numberToHex)(f,{signed:"int"===t,size:parseInt(r)/8})}if("address"===d&&"string"==typeof f&&!(0,o.isAddress)(f))throw new i.InvalidAddressError({address:f});let p=d.match(u.bytesRegex);if(p){let[e,t]=p;if(t&&(0,a.size)(f)!==parseInt(t))throw new n.BytesSizeMismatchError({expectedSize:parseInt(t),givenSize:(0,a.size)(f)})}let m=c[d];m&&l(m,f)}};if(c.EIP712Domain&&e&&l(c.EIP712Domain,e),"EIP712Domain"!==r){let e=c[r];l(e,t)}}},15045:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.uid=void 0;let n=256;t.uid=function(e=11){if(!r||n+e>512){r="",n=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(n,n+++e)}},16697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=void 0;let n=r(81892),i=r(78743);t.formatEther=function(e,t="wei"){return(0,i.formatUnits)(e,n.etherUnits[t])}},34697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=void 0;let n=r(81892),i=r(78743);t.formatGwei=function(e,t="wei"){return(0,i.formatUnits)(e,n.gweiUnits[t])}},78743:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=void 0,t.formatUnits=function(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,o]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}},93400:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=void 0;let n=r(81892),i=r(88752);t.parseEther=function(e,t="wei"){return(0,i.parseUnits)(e,n.etherUnits[t])}},96874:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=void 0;let n=r(81892),i=r(88752);t.parseGwei=function(e,t="wei"){return(0,i.parseUnits)(e,n.gweiUnits[t])}},88752:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=void 0,t.parseUnits=function(e,t){let[r,n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,i,o]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${i}.${o}`));(n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}},54789:function(e,t){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.wait=void 0,t.wait=r},22129:function(e,t,r){"use strict";r.d(t,{Fo:function(){return c},RJ:function(){return o},v4:function(){return a},v8:function(){return u},ws:function(){return i},yX:function(){return n},yu:function(){return s}});var n={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},i={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},o={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},a={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},s={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},u={id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://matic-mumbai.chainstacklabs.com"]},public:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0},c={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}},38459:function(e,t,r){"use strict";r.d(t,{D:function(){return h}});var n,i,o=r(18874),a=r(28973),s=r(12242),u=r(61867),c=r(45375),l=r(86175),d=r(93510),f=r(96676),h=class extends s.wR{constructor({chains:e,options:t}){super({chains:e,options:{reloadOnDisconnect:!1,...t}}),(0,s.ov)(this,"id","coinbaseWallet"),(0,s.ov)(this,"name","Coinbase Wallet"),(0,s.ov)(this,"ready",!0),(0,s.Ko)(this,n,void 0),(0,s.Ko)(this,i,void 0),(0,s.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,u.K)(e[0])})}),(0,s.ov)(this,"onChainChanged",e=>{let t=(0,a.J)(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,s.ov)(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect({chainId:e}={}){try{let t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});let r=await t.enable(),n=(0,u.K)(r[0]),i=await this.getChainId(),o=this.isChainUnsupported(i);if(e&&i!==e){let t=await this.switchChain(e);i=t.id,o=this.isChainUnsupported(i)}return{account:n,chain:{id:i,unsupported:o}}}catch(e){if(/(user closed modal|accounts received is empty)/i.test(e.message))throw new c.ab(e);throw e}}async disconnect(){if(!(0,s.ac)(this,i))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let e=await this.getProvider(),t=await e.request({method:"eth_accounts"});return(0,u.K)(t[0])}async getChainId(){let e=await this.getProvider(),t=(0,a.J)(e.chainId);return t}async getProvider(){if(!(0,s.ac)(this,i)){let e=(await Promise.all([r.e(422),r.e(973),r.e(946)]).then(r.t.bind(r,6973,19))).default;"function"!=typeof e&&"function"==typeof e.default&&(e=e.default),(0,s.qx)(this,n,new e(this.options));let t=s.ac(this,n).walletExtension?.getChainId(),o=this.chains.find(e=>this.options.chainId?e.id===this.options.chainId:e.id===t)||this.chains[0],a=this.options.chainId||o?.id,u=this.options.jsonRpcUrl||o?.rpcUrls.default.http[0];(0,s.qx)(this,i,(0,s.ac)(this,n).makeWeb3Provider(u,a))}return(0,s.ac)(this,i)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,l.K)({account:r,chain:n,transport:(0,d.P)(t)})}async isAuthorized(){try{let e=await this.getAccount();return!!e}catch{return!1}}async switchChain(e){let t=await this.getProvider(),r=(0,f.eC)(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(i){let n=this.chains.find(t=>t.id===e);if(!n)throw new o.B({chainId:e,connectorId:this.id});if(4902===i.code)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:n.name,nativeCurrency:n.nativeCurrency,rpcUrls:[n.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(n)}]}),n}catch(e){throw new c.ab(e)}throw new c.x3(i)}}async watchAsset({address:e,decimals:t=18,image:r,symbol:n}){let i=await this.getProvider();return i.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:r,symbol:n}}})}};n=new WeakMap,i=new WeakMap},50910:function(e,t,r){"use strict";r.d(t,{i:function(){return c}});var n,i=r(74031),o=r(18874),a=r(12242),s=r(45375),u=r(61867),c=class extends i._{constructor({chains:e,options:t}={}){let r={name:"MetaMask",shimDisconnect:!0,getProvider(){function e(e){let t=!!e?.isMetaMask;if(t&&(!e.isBraveWallet||e._events||e._state)&&!e.isApexWallet&&!e.isAvalanche&&!e.isBitKeep&&!e.isBlockWallet&&!e.isCoin98&&!e.isFordefi&&!e.isMathWallet&&!e.isOkxWallet&&!e.isOKExWallet&&!e.isOneInchIOSWallet&&!e.isOneInchAndroidWallet&&!e.isOpera&&!e.isPortal&&!e.isRabby&&!e.isDefiant&&!e.isTokenPocket&&!e.isTokenary&&!e.isZerion)return e}if("undefined"==typeof window)return;let t=window.ethereum;return t?.providers?t.providers.find(e):e(t)},...t};super({chains:e,options:r}),(0,a.ov)(this,"id","metaMask"),(0,a.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`),(0,a.Ko)(this,n,void 0),(0,a.qx)(this,n,r.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new o.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let r=null;if((0,a.ac)(this,n)&&this.options?.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey)){r=await this.getAccount().catch(()=>null);let e=!!r;if(e)try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),r=await this.getAccount()}catch(e){if(this.isUserRejectedRequestError(e))throw new s.ab(e);if(e.code===new s.pT(e).code)throw e}}if(!r){let e=await t.request({method:"eth_requestAccounts"});r=(0,u.K)(e[0])}let i=await this.getChainId(),c=this.isChainUnsupported(i);if(e&&i!==e){let t=await this.switchChain(e);i=t.id,c=this.isChainUnsupported(i)}return this.options?.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:r,chain:{id:i,unsupported:c},provider:t}}catch(e){if(this.isUserRejectedRequestError(e))throw new s.ab(e);if(-32002===e.code)throw new s.pT(e);throw e}}};n=new WeakMap},33761:function(e,t,r){"use strict";r.d(t,{J:function(){return h}});var n,i,o=r(18874),a=r(28973),s=r(12242),u=r(42917),c=r(22409),l=r(61867),d=r(86175),f=r(93510),h=class extends s.wR{constructor({chains:e,options:t}){let r={shimDisconnect:!1,...t};super({chains:e,options:r}),(0,s.ov)(this,"id","safe"),(0,s.ov)(this,"name","Safe"),(0,s.ov)(this,"ready","undefined"!=typeof window&&window?.parent!==window),(0,s.Ko)(this,n,void 0),(0,s.Ko)(this,i,void 0),(0,s.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`);let o=c;"function"!=typeof c&&"function"==typeof c.default&&(o=c.default),(0,s.qx)(this,i,new o(r))}async connect(){let e=await this.getProvider();if(!e)throw new o.N;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let t=await this.getAccount(),r=await this.getChainId();return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:t,chain:{id:r,unsupported:this.isChainUnsupported(r)}}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new o.N;let t=await e.request({method:"eth_accounts"});return(0,l.K)(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new o.N;return(0,a.J)(e.chainId)}async getProvider(){if(!(0,s.ac)(this,n)){let e=await (0,s.ac)(this,i).safe.getInfo();if(!e)throw Error("Could not load Safe information");(0,s.qx)(this,n,new u.N(e,(0,s.ac)(this,i)))}return(0,s.ac)(this,n)}async getWalletClient({chainId:e}={}){let t=await this.getProvider(),r=await this.getAccount(),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,d.K)({account:r,chain:n,transport:(0,f.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let e=await this.getAccount();return!!e}catch{return!1}}onAccountsChanged(e){}onChainChanged(e){}onDisconnect(){this.emit("disconnect")}};n=new WeakMap,i=new WeakMap},3243:function(e,t,r){"use strict";r.d(t,{z:function(){return B}});var n,i,o,a,s,u,c,l,d,f,h,p,m,g,y,b,v,E,w,P,x=r(12242),_=r(83160),A=r(61867),O=r(45375),T=r(86175),I=r(93510),S=r(96676),C="eip155",j="requestedChains",D="wallet_addEthereumChain",B=class extends x.wR{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),(0,x.Ko)(this,o),(0,x.Ko)(this,s),(0,x.Ko)(this,c),(0,x.Ko)(this,d),(0,x.Ko)(this,h),(0,x.Ko)(this,m),(0,x.Ko)(this,y),(0,x.Ko)(this,v),(0,x.Ko)(this,w),(0,x.ov)(this,"id","walletConnect"),(0,x.ov)(this,"name","WalletConnect"),(0,x.ov)(this,"ready",!0),(0,x.Ko)(this,n,void 0),(0,x.Ko)(this,i,void 0),(0,x.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,A.K)(e[0])})}),(0,x.ov)(this,"onChainChanged",e=>{let t=Number(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,x.ov)(this,"onDisconnect",()=>{(0,x.U9)(this,m,g).call(this,[]),this.emit("disconnect")}),(0,x.ov)(this,"onDisplayUri",e=>{this.emit("message",{type:"display_uri",data:e})}),(0,x.ov)(this,"onConnect",()=>{this.emit("connect",{})}),(0,x.U9)(this,o,a).call(this)}async connect({chainId:e,pairingTopic:t}={}){try{let r=e;if(!r){let e=this.storage?.getItem("store"),t=e?.state?.data?.chain?.id;r=t&&!this.isChainUnsupported(t)?t:this.chains[0]?.id}if(!r)throw Error("No chains found on connector.");let n=await this.getProvider();(0,x.U9)(this,d,f).call(this);let i=(0,x.U9)(this,c,l).call(this);if(n.session&&i&&await n.disconnect(),!n.session||i){let e=this.chains.filter(e=>e.id!==r).map(e=>e.id);this.emit("message",{type:"connecting"}),await n.connect({pairingTopic:t,chains:[r],optionalChains:e.length?e:void 0}),(0,x.U9)(this,m,g).call(this,this.chains.map(({id:e})=>e))}let o=await n.enable(),a=(0,A.K)(o[0]),s=await this.getChainId(),u=this.isChainUnsupported(s);return{account:a,chain:{id:s,unsupported:u}}}catch(e){if(/user rejected/i.test(e?.message))throw new O.ab(e);throw e}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{(0,x.U9)(this,h,p).call(this),(0,x.U9)(this,m,g).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();return(0,A.K)(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return(0,x.ac)(this,n)||await (0,x.U9)(this,o,a).call(this),e&&await this.switchChain(e),(0,x.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,T.K)({account:r,chain:n,transport:(0,I.P)(t)})}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),r=(0,x.U9)(this,c,l).call(this);if(!e)return!1;if(r&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(t=>t.id===e);if(!t)throw new O.x3(Error("chain not found on connector."));try{let r=await this.getProvider(),n=(0,x.U9)(this,v,E).call(this),i=(0,x.U9)(this,w,P).call(this),o=n.includes(e);if(!o&&i.includes(D)){await r.request({method:D,params:[{chainId:(0,S.eC)(t.id),blockExplorerUrls:[t.blockExplorers?.default?.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});let n=(0,x.U9)(this,y,b).call(this);n.push(e),(0,x.U9)(this,m,g).call(this,n)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,S.eC)(e)}]}),t}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new O.ab(t);throw new O.x3(t)}}};n=new WeakMap,i=new WeakMap,o=new WeakSet,a=async function(){return(0,x.ac)(this,i)||"undefined"==typeof window||(0,x.qx)(this,i,(0,x.U9)(this,s,u).call(this)),(0,x.ac)(this,i)},s=new WeakSet,u=async function(){let{EthereumProvider:e,OPTIONAL_EVENTS:t,OPTIONAL_METHODS:i}=await r.e(5).then(r.bind(r,26005)),[o,...a]=this.chains.map(({id:e})=>e);if(o){let{projectId:r,showQrModal:s=!0,qrModalOptions:u,metadata:c,relayUrl:l}=this.options;(0,x.qx)(this,n,await e.init({showQrModal:s,qrModalOptions:u,projectId:r,optionalMethods:i,optionalEvents:t,chains:[o],optionalChains:a.length?a:void 0,rpcMap:Object.fromEntries(this.chains.map(e=>[e.id,e.rpcUrls.default.http[0]])),metadata:c,relayUrl:l}))}},c=new WeakSet,l=function(){let e=(0,x.U9)(this,w,P).call(this);if(e.includes(D)||!this.options.isNewChainsStale)return!1;let t=(0,x.U9)(this,y,b).call(this),r=this.chains.map(({id:e})=>e),n=(0,x.U9)(this,v,E).call(this);return(!n.length||!!n.some(e=>r.includes(e)))&&!r.every(e=>t.includes(e))},d=new WeakSet,f=function(){(0,x.ac)(this,n)&&((0,x.U9)(this,h,p).call(this),(0,x.ac)(this,n).on("accountsChanged",this.onAccountsChanged),(0,x.ac)(this,n).on("chainChanged",this.onChainChanged),(0,x.ac)(this,n).on("disconnect",this.onDisconnect),(0,x.ac)(this,n).on("session_delete",this.onDisconnect),(0,x.ac)(this,n).on("display_uri",this.onDisplayUri),(0,x.ac)(this,n).on("connect",this.onConnect))},h=new WeakSet,p=function(){(0,x.ac)(this,n)&&((0,x.ac)(this,n).removeListener("accountsChanged",this.onAccountsChanged),(0,x.ac)(this,n).removeListener("chainChanged",this.onChainChanged),(0,x.ac)(this,n).removeListener("disconnect",this.onDisconnect),(0,x.ac)(this,n).removeListener("session_delete",this.onDisconnect),(0,x.ac)(this,n).removeListener("display_uri",this.onDisplayUri),(0,x.ac)(this,n).removeListener("connect",this.onConnect))},m=new WeakSet,g=function(e){this.storage?.setItem(j,e)},y=new WeakSet,b=function(){return this.storage?.getItem(j)??[]},v=new WeakSet,E=function(){if(!(0,x.ac)(this,n))return[];let e=x.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,_.fK)(e),r=t[C]?.chains?.map(e=>parseInt(e.split(":")[1]||""));return r??[]},w=new WeakSet,P=function(){if(!(0,x.ac)(this,n))return[];let e=x.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,_.fK)(e),r=t[C]?.methods;return r??[]}},74907:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n,i,o,a=r(28973),s=r(12242),u=r(61867),c=r(45375),l=r(86175),d=r(93510),f=r(96676),h=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,p=class extends s.wR{constructor(){super(...arguments),(0,s.Ko)(this,i),(0,s.ov)(this,"id","walletConnectLegacy"),(0,s.ov)(this,"name","WalletConnectLegacy"),(0,s.ov)(this,"ready",!0),(0,s.Ko)(this,n,void 0),(0,s.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,u.K)(e[0])})}),(0,s.ov)(this,"onChainChanged",e=>{let t=(0,a.J)(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,s.ov)(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect({chainId:e}={}){try{let t=e;if(!t){let e=this.storage?.getItem("store"),r=e?.state?.data?.chain?.id;r&&!this.isChainUnsupported(r)&&(t=r)}let r=await this.getProvider({chainId:t,create:!0});r.on("accountsChanged",this.onAccountsChanged),r.on("chainChanged",this.onChainChanged),r.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let n=await r.enable(),a=(0,u.K)(n[0]),c=await this.getChainId(),l=this.isChainUnsupported(c),d=r.connector?.peerMeta?.name??"";return h.test(d)&&(this.switchChain=(0,s.U9)(this,i,o)),{account:a,chain:{id:c,unsupported:l}}}catch(e){if(/user closed modal/i.test(e.message))throw new c.ab(e);throw e}}async disconnect(){let e=await this.getProvider();await e.disconnect(),e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")}async getAccount(){let e=await this.getProvider(),t=e.accounts;return(0,u.K)(t[0])}async getChainId(){let e=await this.getProvider(),t=(0,a.J)(e.chainId);return t}async getProvider({chainId:e,create:t}={}){if(!(0,s.ac)(this,n)||e||t){let t=this.options?.infuraId?{}:this.chains.reduce((e,t)=>({...e,[t.id]:t.rpcUrls.default.http[0]}),{}),i=(await Promise.all([r.e(639),r.e(422),r.e(859),r.e(491)]).then(r.bind(r,35287))).default;(0,s.qx)(this,n,new i({...this.options,chainId:e,rpc:{...t,...this.options?.rpc}})),(0,s.ac)(this,n).http=await (0,s.ac)(this,n).setHttpProvider(e)}return(0,s.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,l.K)({account:r,chain:n,transport:(0,d.P)(t)})}async isAuthorized(){try{let e=await this.getAccount();return!!e}catch{return!1}}};n=new WeakMap,i=new WeakSet,o=async function(e){let t=await this.getProvider(),r=(0,f.eC)(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise(t=>this.on("change",({chain:r})=>{r?.id===e&&t(e)}))]),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new c.ab(t);throw new c.x3(t)}}},72654:function(e,t,r){"use strict";function n({apiKey:e}){return function(t){let r=t.rpcUrls.alchemy?.http[0],n=t.rpcUrls.alchemy?.webSocket?.[0];return r?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[`${r}/${e}`]}}},rpcUrls:{http:[`${r}/${e}`],webSocket:[`${n}/${e}`]}}:null}}r.d(t,{G:function(){return n}})},42498:function(e,t,r){"use strict";function n({apiKey:e}){return function(t){let r=t.rpcUrls.infura?.http[0],n=t.rpcUrls.infura?.webSocket?.[0];return r?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[`${r}/${e}`]}}},rpcUrls:{http:[`${r}/${e}`],webSocket:[`${n}/${e}`]}}:null}}r.d(t,{$:function(){return n}})},91115:function(e,t,r){"use strict";function n({rpc:e}){return function(t){let r=e(t);return r&&""!==r.http?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[r.http]}}},rpcUrls:{http:[r.http],webSocket:r.webSocket?[r.webSocket]:void 0}}:null}}r.d(t,{R:function(){return n}})},42212:function(e,t,r){"use strict";function n(){return function(e){return e.rpcUrls.public.http[0]?{chain:e,rpcUrls:e.rpcUrls.public}:null}}r.d(t,{I:function(){return n}})},10401:function(e,t,r){"use strict";r.d(t,{M:function(){return y}});var n=r(24058),i=r(37010),o=r(77618),a=r(49583),s=r(45215);function u(){var e=(0,i.useRef)(!1);return(0,s.L)(function(){return e.current=!0,function(){e.current=!1}},[]),e}var c=r(26084),l=r(80269),d=r(25803),f=function(e){var t=e.children,r=e.initial,o=e.isPresent,a=e.onExitComplete,s=e.custom,u=e.presenceAffectsLayout,f=(0,l.h)(h),p=(0,d.M)(),m=(0,i.useMemo)(function(){return{id:p,initial:r,isPresent:o,custom:s,onExitComplete:function(e){var t,r;f.set(e,!0);try{for(var i=(0,n.__values)(f.values()),o=i.next();!o.done;o=i.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return f.set(e,!1),function(){return f.delete(e)}}}},u?void 0:[o]);return(0,i.useMemo)(function(){f.forEach(function(e,t){return f.set(t,!1)})},[o]),i.useEffect(function(){o||f.size||null==a||a()},[o]),i.createElement(c.O.Provider,{value:m},t)};function h(){return new Map}var p=r(23209),m=r(66612),g=function(e){return e.key||""},y=function(e){var t,r,c,l,d,h,y=e.children,b=e.custom,v=e.initial,E=void 0===v||v,w=e.onExitComplete,P=e.exitBeforeEnter,x=e.presenceAffectsLayout,_=void 0===x||x,A=(0,n.__read)((t=u(),c=(r=(0,n.__read)((0,i.useState)(0),2))[0],l=r[1],d=(0,i.useCallback)(function(){t.current&&l(c+1)},[c]),[(0,i.useCallback)(function(){return a.ZP.postRender(d)},[d]),c]),1)[0],O=(0,i.useContext)(p.p).forceRender;O&&(A=O);var T=u(),I=(h=[],i.Children.forEach(y,function(e){(0,i.isValidElement)(e)&&h.push(e)}),h),S=I,C=new Set,j=(0,i.useRef)(S),D=(0,i.useRef)(new Map).current,B=(0,i.useRef)(!0);if((0,s.L)(function(){B.current=!1,function(e,t){e.forEach(function(e){var r=g(e);t.set(r,e)})}(I,D),j.current=S}),(0,m.z)(function(){B.current=!0,D.clear(),C.clear()}),B.current)return i.createElement(i.Fragment,null,S.map(function(e){return i.createElement(f,{key:g(e),isPresent:!0,initial:!!E&&void 0,presenceAffectsLayout:_},e)}));S=(0,n.__spreadArray)([],(0,n.__read)(S),!1);for(var R=j.current.map(g),M=I.map(g),k=R.length,N=0;N1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),i.createElement(i.Fragment,null,C.size?S:S.map(function(e){return(0,i.cloneElement)(e)}))}},73430:function(e,t,r){"use strict";r.d(t,{A:function(){return u}});var n=r(24058),i=r(37010),o=r(35626),a=r(28806),s=r(80269);function u(e){var t=e.children,r=e.isValidProp,u=(0,n.__rest)(e,["children","isValidProp"]);r&&(0,a.K)(r),(u=(0,n.__assign)((0,n.__assign)({},(0,i.useContext)(o._)),u)).isStatic=(0,s.h)(function(){return u.isStatic});var c=(0,i.useMemo)(function(){return u},[JSON.stringify(u.transition),u.transformPagePoint,u.reducedMotion]);return i.createElement(o._.Provider,{value:c},t)}},23209:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});var n=(0,r(37010).createContext)({})},35626:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});var n=(0,r(37010).createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"})},26084:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var n=(0,r(37010).createContext)(null)},42531:function(e,t,r){"use strict";r.d(t,{E:function(){return iG}});var n,i,o,a,s=r(24058),u=r(37010),c=r(77618),l=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},d={measureLayout:l(["layout","layoutId","drag"]),animation:l(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:l(["exit"]),drag:l(["drag","dragControls"]),focus:l(["whileFocus"]),hover:l(["whileHover","onHoverStart","onHoverEnd"]),tap:l(["whileTap","onTap","onTapStart","onTapCancel"]),pan:l(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:l(["whileInView","onViewportEnter","onViewportLeave"])},f=r(13593),h=(0,u.createContext)({strict:!1}),p=Object.keys(d),m=p.length,g=r(35626),y=(0,u.createContext)({}),b=r(26084),v=r(45215),E=r(65603),w={current:null},P=!1;function x(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _(e){return Array.isArray(e)}function A(e){return"string"==typeof e||_(e)}function O(e,t,r,n,i){var o;return void 0===n&&(n={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),t}function T(e,t,r){var n,i,o=e.getProps();return O(o,t,null!=r?r:o.custom,(n={},e.forEachValue(function(e,t){return n[t]=e.get()}),n),(i={},e.forEachValue(function(e,t){return i[t]=e.getVelocity()}),i))}function I(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||A(e.initial)||A(e.animate)||A(e.whileHover)||A(e.whileDrag)||A(e.whileTap)||A(e.whileFocus)||A(e.exit)}function S(e){return!!(I(e)||e.variants)}function C(e){return Array.isArray(e)?e.join(" "):e}var j=r(80269),D={hasAnimatedSinceResize:!0,hasEverUpdated:!1},B=1,R=r(23209),M=(0,u.createContext)({}),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,s.__extends)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,r=e.props;t&&t.setProps(r)},t.prototype.render=function(){return this.props.children},t}(u.Component),N=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function U(e){if("string"!=typeof e||e.includes("-"));else if(N.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var L={},F=["","X","Y","Z"],$=["transformPerspective","x","y","z"];function H(e,t){return $.indexOf(e)-$.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return F.forEach(function(t){return $.push(e+t)})});var z=new Set($);function q(e){return z.has(e)}var V=new Set(["originX","originY","originZ"]);function G(e,t){var r=t.layout,n=t.layoutId;return q(e)||V.has(e)||(r||void 0!==n)&&(!!L[e]||"opacity"===e)}var W=function(e){return!!(null!==e&&"object"==typeof e&&e.getVelocity)},K={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Y(e){return e.startsWith("--")}let Z=(e,t)=>r=>Math.max(Math.min(r,t),e),X=e=>e%1?Number(e.toFixed(5)):e,J=/(-)?([\d]*\.?[\d])+/g,Q=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ee=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function et(e){return"string"==typeof e}let er=e=>({test:t=>et(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),en=er("deg"),ei=er("%"),eo=er("px"),ea=er("vh"),es=er("vw"),eu=Object.assign(Object.assign({},ei),{parse:e=>ei.parse(e)/100,transform:e=>ei.transform(100*e)}),ec={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},el=Object.assign(Object.assign({},ec),{transform:Z(0,1)}),ed=Object.assign(Object.assign({},ec),{default:1});var ef=(0,s.__assign)((0,s.__assign)({},ec),{transform:Math.round}),eh={borderWidth:eo,borderTopWidth:eo,borderRightWidth:eo,borderBottomWidth:eo,borderLeftWidth:eo,borderRadius:eo,radius:eo,borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomRightRadius:eo,borderBottomLeftRadius:eo,width:eo,maxWidth:eo,height:eo,maxHeight:eo,size:eo,top:eo,right:eo,bottom:eo,left:eo,padding:eo,paddingTop:eo,paddingRight:eo,paddingBottom:eo,paddingLeft:eo,margin:eo,marginTop:eo,marginRight:eo,marginBottom:eo,marginLeft:eo,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:ed,scaleX:ed,scaleY:ed,scaleZ:ed,skew:en,skewX:en,skewY:en,distance:eo,translateX:eo,translateY:eo,translateZ:eo,x:eo,y:eo,z:eo,perspective:eo,transformPerspective:eo,opacity:el,originX:eu,originY:eu,originZ:eo,zIndex:ef,fillOpacity:el,strokeOpacity:el,numOctaves:ef};function ep(e,t,r,n){var i,o,a,s,u=e.style,c=e.vars,l=e.transform,d=e.transformKeys,f=e.transformOrigin;d.length=0;var h=!1,p=!1,m=!0;for(var g in t){var y,b=t[g];if(Y(g)){c[g]=b;continue}var v=eh[g],E=v&&"number"==typeof b?v.transform(b):b;if(q(g)){if(h=!0,l[g]=E,d.push(g),!m)continue;b!==(null!==(s=v.default)&&void 0!==s?s:0)&&(m=!1)}else(y=g,V.has(y))?(f[g]=E,p=!0):u[g]=E}h?u.transform=function(e,t,r,n){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=t.allowTransformNone,u="";o.sort(H);for(var c=!1,l=o.length,d=0;dr=>t(e(r)),e8=(...e)=>e.reduce(e5);var e4=new Set,e9=new WeakMap,e7=new WeakMap,te=function(e){var t;null===(t=e9.get(e.target))||void 0===t||t(e)},tt=function(e){e.forEach(te)},tr={some:0,all:1};function tn(e,t,r,n){var i=n.root,a=n.margin,c=n.amount,l=void 0===c?"some":c,d=n.once;(0,u.useEffect)(function(){if(e){var n,u,c,f,h,p,m,g={root:null==i?void 0:i.current,rootMargin:a,threshold:"number"==typeof l?l:tr[l]};return n=r.getInstance(),u=g.root,c=(0,s.__rest)(g,["root"]),f=u||document,e7.has(f)||e7.set(f,{}),(h=e7.get(f))[p=JSON.stringify(c)]||(h[p]=new IntersectionObserver(tt,(0,s.__assign)({root:u},c))),m=h[p],e9.set(n,function(e){var n,i=e.isIntersecting;if(t.isInView!==i){if(t.isInView=i,d&&!i&&t.hasEnteredView)return;i&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(o.InView,i);var a=r.getProps(),s=i?a.onViewportEnter:a.onViewportLeave;null==s||s(e)}}),m.observe(n),function(){e9.delete(n),m.unobserve(n)}}},[e,i,a,l])}function ti(e,t,r,n){var i=n.fallback,a=void 0===i||i;(0,u.useEffect)(function(){if(e&&a){if("production"!==c.O){var n,i;n="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",e4.has(n)||(console.warn(n),i&&console.warn(i),e4.add(n))}requestAnimationFrame(function(){t.hasEnteredView=!0;var e,n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(o.InView,!0)})}},[e])}var to=function(e){return function(t){return e(t),null}},ta={inView:to(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=void 0===o?{}:o,s=(0,u.useRef)({hasEnteredView:!1,isInView:!1}),c=!!(r||n||i);a.once&&s.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?ti:tn)(c,s.current,t,a)}),tap:to(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,a=e.visualElement,s=(0,u.useRef)(!1),c=(0,u.useRef)(null),l={passive:!(r||t||n||m)};function d(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function f(){var e;return d(),s.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(o.Tap,!1),!e1()}function h(e,r){f()&&(e6(a.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function p(e,t){f()&&(null==n||n(e,t))}function m(e,t){var n;d(),s.current||(s.current=!0,c.current=e8(eY(window,"pointerup",h,l),eY(window,"pointercancel",p,l)),null===(n=a.animationState)||void 0===n||n.setActive(o.Tap,!0),null==r||r(e,t))}eZ(a,"pointerdown",t||r||n||i?m:void 0,l),(0,e3.z)(d)}),focus:to(function(e){var t=e.whileFocus,r=e.visualElement;e$(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(o.Focus,!0)}:void 0),e$(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(o.Focus,!1)}:void 0)}),hover:to(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;eZ(i,"pointerenter",t||n?e2(i,!0,t):void 0,{passive:!t}),eZ(i,"pointerleave",r||n?e2(i,!1,r):void 0,{passive:!r})})},ts=r(25803);function tu(){var e=(0,u.useContext)(b.O);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=(0,ts.M)();return(0,u.useEffect)(function(){return n(i)},[]),!t&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}function tc(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;nMath.min(Math.max(r,e),t);function td(e,t){return e*Math.sqrt(1-t*t)}let tf=["duration","bounce"],th=["stiffness","damping","mass"];function tp(e,t){return t.some(t=>void 0!==e[t])}function tm(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=(0,s.__rest)(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:u,damping:c,mass:l,velocity:d,duration:h,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!tp(e,th)&&tp(e,tf)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,f.K)(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=tl(.05,1,a),e=tl(.01,10,e/1e3),a<1?(i=t=>{let n=t*a,i=n*e,o=td(t,a);return .001-(n-r)/o*Math.exp(-i)},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,u=td(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*r+r-s)*Math.exp(-o))/u}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,u=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e*=1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(u,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),m=tg,g=tg;function y(){let e=d?-(d/1e3):0,n=r-t,o=c/(2*Math.sqrt(u*l)),a=Math.sqrt(u/l)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){let t=td(a,o);m=i=>r-Math.exp(-o*a*i)*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i)),g=r=>{let i=Math.exp(-o*a*r);return o*a*i*(Math.sin(t*r)*(e+o*a*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+o*a*n)-t*n*Math.sin(t*r))}}else if(1===o)m=t=>r-Math.exp(-a*t)*(n+(e+a*n)*t);else{let t=a*Math.sqrt(o*o-1);m=i=>{let s=Math.min(t*i,300);return r-Math.exp(-o*a*i)*((e+o*a*n)*Math.sinh(s)+t*n*Math.cosh(s))/t}}}return y(),{next:e=>{let t=m(e);if(p)a.done=e>=h;else{let o=1e3*g(e),s=Math.abs(r-t)<=i;a.done=Math.abs(o)<=n&&s}return a.value=a.done?r:t,a},flipTarget:()=>{d=-d,[t,r]=[r,t],y()}}}tm.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let tg=e=>0,ty=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},tb=(e,t,r)=>-r*e+r*t+e,tv=(e,t)=>r=>!!(et(r)&&ee.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tE=(e,t,r)=>n=>{if(!et(n))return n;let[i,o,a,s]=n.match(J);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tw=Z(0,255),tP=Object.assign(Object.assign({},ec),{transform:e=>Math.round(tw(e))}),tx={test:tv("rgb","red"),parse:tE("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tP.transform(e)+", "+tP.transform(t)+", "+tP.transform(r)+", "+X(el.transform(n))+")"},t_={test:tv("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:tx.transform},tA={test:tv("hsl","hue"),parse:tE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ei.transform(X(t))+", "+ei.transform(X(r))+", "+X(el.transform(n))+")"};function tO(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tT({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=tO(s,n,e+1/3),o=tO(s,n,e),a=tO(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}let tI=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},tS=[t_,tx,tA],tC=e=>tS.find(t=>t.test(e)),tj=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,tD=(e,t)=>{let r=tC(e),n=tC(t);(0,f.k)(!!r,tj(e)),(0,f.k)(!!n,tj(t));let i=r.parse(e),o=n.parse(t);r===tA&&(i=tT(i),r=tx),n===tA&&(o=tT(o),n=tx);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=tI(i[t],o[t],e));return a.alpha=tb(i.alpha,o.alpha,e),r.transform(a)}},tB={test:e=>tx.test(e)||t_.test(e)||tA.test(e),parse:e=>tx.test(e)?tx.parse(e):tA.test(e)?tA.parse(e):t_.parse(e),transform:e=>et(e)?e:e.hasOwnProperty("red")?tx.transform(e):tA.transform(e)},tR="${c}",tM="${n}";function tk(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,n=e.match(Q);n&&(r=n.length,e=e.replace(Q,tR),t.push(...n.map(tB.parse)));let i=e.match(J);return i&&(e=e.replace(J,tM),t.push(...i.map(ec.parse))),{values:t,numColors:r,tokenised:e}}function tN(e){return tk(e).values}function tU(e){let{values:t,numColors:r,tokenised:n}=tk(e),i=t.length;return e=>{let t=n;for(let n=0;n"number"==typeof e?0:e,tF={test:function(e){var t,r,n,i;return isNaN(e)&&et(e)&&(null!==(r=null===(t=e.match(J))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(Q))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:tN,createTransformer:tU,getAnimatableNone:function(e){let t=tN(e),r=tU(e);return r(t.map(tL))}},t$=e=>"number"==typeof e;function tH(e,t){return t$(e)?r=>tb(e,t,r):tB.test(e)?tD(e,t):tG(e,t)}let tz=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>tH(e,t[r]));return e=>{for(let t=0;t{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tH(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function tV(e){let t=tF.parse(e),r=t.length,n=0,i=0,o=0;for(let e=0;e{let r=tF.createTransformer(t),n=tV(e),i=tV(t),o=n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers;return o?e8(tz(n.parsed,i.parsed),r):((0,f.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},tW=(e,t)=>r=>tb(e,t,r);function tK(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;(0,f.k)(o===t.length,"Both input and output ranges must be the same length"),(0,f.k)(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,r){var n;let i=[],o=r||("number"==typeof(n=e[0])?tW:"string"==typeof n?tB.test(n)?tD:tG:Array.isArray(n)?tz:"object"==typeof n?tq:void 0),a=e.length-1;for(let r=0;rr(ty(e,t,n))}(e,a):function(e,t){let r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;ti)&&t!==n;t++);o=t-1}let s=ty(e[o],e[o+1],i);return t[o](s)}}(e,a);return r?t=>s(tl(e[0],e[o-1],t)):s}let tY=e=>t=>1-e(1-t),tZ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tX=e=>t=>t*t*((e+1)*t-e),tJ=4/11,tQ=8/11,t0=e=>e,t1=e=>Math.pow(e,2),t2=tY(t1),t6=tZ(t1),t3=e=>1-Math.sin(Math.acos(e)),t5=tY(t3),t8=tZ(t5),t4=tX(1.525),t9=tY(t4),t7=tZ(t4),re=(e=>{let t=tX(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),rt=4356/361,rr=35442/1805,rn=16061/1805,ri=e=>{if(1===e||0===e)return e;let t=e*e;return ee<.5?.5*(1-ri(1-2*e)):.5*ri(2*e-1)+.5;function rs({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=(n&&n.length===a.length?n:function(e){let t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(a)).map(e=>e*i);function u(){return tK(s,a,{ease:Array.isArray(r)?r:a.map(()=>r||t6).splice(0,a.length-1)})}let c=u();return{next:e=>(o.value=c(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),c=u()}}}let ru={keyframes:rs,spring:tm,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=r*e,u=t+s,c=void 0===o?u:o(u);return c!==u&&(s=c-t),{next:e=>{let t=-s*Math.exp(-e/n);return a.done=!(t>i||t<-i),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};var rc=r(49583);function rl(e,t,r=0){return e-t-r}let rd=e=>{let t=({delta:t})=>e(t);return{start:()=>rc.ZP.update(t,!0),stop:()=>rc.qY.update(t)}};function rf(e){let t,r,n;var i,{from:o,autoplay:a=!0,driver:u=rd,elapsed:c=0,repeat:l=0,repeatType:d="loop",repeatDelay:f=0,onPlay:h,onStop:p,onComplete:m,onRepeat:g,onUpdate:y}=e,b=(0,s.__rest)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=b,E=0,w=b.duration,P=!1,x=!0,_=function(e){if(Array.isArray(e.to))return rs;if(ru[e.type])return ru[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return tm;return rs}(b);(null===(i=_.needsInterpolation)||void 0===i?void 0:i.call(_,o,v))&&(n=tK([0,100],[o,v],{clamp:!1}),o=0,v=100);let A=_(Object.assign(Object.assign({},b),{from:o,to:v}));return a&&(null==h||h(),(t=u(function(e){if(x||(e=-e),c+=e,!P){let e=A.next(Math.max(0,c));r=e.value,n&&(r=n(r)),P=x?e.done:c<=0}if(null==y||y(r),P){if(0===E&&(null!=w||(w=c)),E=o+f:i<=-f)&&(E++,"reverse"===d?c=function(e,t,r=0,n=!0){return n?rl(t+-e,t,r):t-(e-t)+r}(c,w,f,x=E%2==0):(c=rl(c,w,f),"mirror"===d&&A.flipTarget()),P=!1,g&&g())}else t.stop(),m&&m()}})).start()),{stop:()=>{null==p||p(),t.stop()}}}var rh=function(e){return 1e3*e};let rp=(e,t)=>1-3*t+3*e,rm=(e,t)=>3*t-6*e,rg=e=>3*e,ry=(e,t,r)=>((rp(t,r)*e+rm(t,r))*e+rg(t))*e,rb=(e,t,r)=>3*rp(t,r)*e*e+2*rm(t,r)*e+rg(t);var rv={linear:t0,easeIn:t1,easeInOut:t6,easeOut:t2,circIn:t3,circInOut:t8,circOut:t5,backIn:t4,backInOut:t7,backOut:t9,anticipate:re,bounceIn:ro,bounceInOut:ra,bounceOut:ri},rE=function(e){if(Array.isArray(e)){(0,f.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=(0,s.__read)(e,4);return function(e,t,r,n){if(e===t&&r===n)return t0;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=ry(.1*t,e,r);return o=>0===o||1===o?o:ry(function(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=n+.1*a,u=rb(s,e,r);return u>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=rb(t,r,n);if(0===i)break;let o=ry(t,r,n)-e;t-=o/i}return t}(t,s,e,r):0===u?s:function(e,t,r,n,i){let o,a;let s=0;do(o=ry(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+.1,e,r)}(o),t,n)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?((0,f.k)(void 0!==rv[e],"Invalid easing type '".concat(e,"'")),rv[e]):e},rw=function(e,t){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&tF.test(t)&&!t.startsWith("url("))},rP=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},rx=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},r_=function(){return{type:"keyframes",ease:"linear",duration:.3}},rA=function(e){return{type:"keyframes",duration:.8,values:e}},rO={x:rP,y:rP,z:rP,rotate:rP,rotateX:rP,rotateY:rP,rotateZ:rP,scaleX:rx,scaleY:rx,scale:rx,opacity:r_,backgroundColor:r_,color:r_,default:rx},rT=function(e,t){var r;return r=eB(t)?rA:rO[e]||rO.default,(0,s.__assign)({to:t},r(t))};let rI=new Set(["brightness","contrast","saturate","opacity"]);function rS(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(J)||[];if(!n)return e;let i=r.replace(n,""),o=rI.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let rC=/([a-z-]*)\(.*?\)/g,rj=Object.assign(Object.assign({},tF),{getAnimatableNone:e=>{let t=e.match(rC);return t?t.map(rS).join(" "):e}});var rD=(0,s.__assign)((0,s.__assign)({},eh),{color:tB,backgroundColor:tB,outlineColor:tB,fill:tB,stroke:tB,borderColor:tB,borderTopColor:tB,borderRightColor:tB,borderBottomColor:tB,borderLeftColor:tB,filter:rj,WebkitFilter:rj}),rB=function(e){return rD[e]};function rR(e,t){var r,n=rB(e);return n!==rj&&(n=tF),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var rM={current:!1},rk=!1;function rN(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function rU(e){return"number"==typeof e?0:rR("",e)}function rL(e,t){return e[t]||e.default||e}function rF(e,t,r,n){return void 0===n&&(n={}),rM.current&&(n={type:!1}),t.start(function(i){var o,a,u,c,l,d,h,p,m,g,y,b=(c=r,h=null!==(l=(d=rL(n,e)).from)&&void 0!==l?l:t.get(),p=rw(e,c),"none"===h&&p&&"string"==typeof c?h=rR(e,c):rN(h)&&"string"==typeof c?h=rU(c):!Array.isArray(c)&&rN(c)&&"string"==typeof h&&(c=rU(h)),m=rw(e,h),(0,f.K)(m===p,"You are trying to animate ".concat(e,' from "').concat(h,'" to "').concat(c,'". ').concat(h," is not an animatable value - to enable this animation set ").concat(h," to a value animatable to ").concat(c," via the `style` property.")),m&&p&&!1!==d.type?function(){var r,n,o,a,u,l,p,m,g,y,b,v,E={from:h,to:c,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===d.type||"decay"===d.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==r&&en}function g(e){return void 0===r?n:void 0===n?r:Math.abs(r-e){var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:f,onStop:h}))}function b(e){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},e))}if(m(e))b({from:e,velocity:t,to:g(e)});else{let n,a,s=i*t+e;void 0!==c&&(s=c(s));let l=g(s),d=l===r?-1:1,f=e=>{var r;n=a,a=e,t=(r=(0,rc.$B)().delta)?(e-n)*(1e3/r):0,(1===d&&e>l||-1===d&&enull==p?void 0:p.stop()}}((0,s.__assign)((0,s.__assign)({},E),d)):rf((0,s.__assign)((0,s.__assign)({},(g=d,Array.isArray(E.to)&&(null!==(y=g.duration)&&void 0!==y||(g.duration=.8)),Array.isArray((b=E).to)&&null===b.to[0]&&(b.to=(0,s.__spreadArray)([],(0,s.__read)(b.to),!1),b.to[0]=b.from),(v=g).when,v.delay,v.delayChildren,v.staggerChildren,v.staggerDirection,v.repeat,v.repeatType,v.repeatDelay,v.from,Object.keys((0,s.__rest)(v,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(g=(0,s.__assign)((0,s.__assign)({},g),rT(e,E.to))),(0,s.__assign)((0,s.__assign)({},E),(n=(r=g).ease,o=r.times,a=r.yoyo,u=r.flip,l=r.loop,p=(0,s.__rest)(r,["ease","times","yoyo","flip","loop"]),m=(0,s.__assign)({},p),o&&(m.offset=o),p.duration&&(m.duration=rh(p.duration)),p.repeatDelay&&(m.repeatDelay=rh(p.repeatDelay)),n&&(m.ease=Array.isArray(n)&&"number"!=typeof n[0]?n.map(rE):rE(n)),"tween"===p.type&&(m.type="keyframes"),(a||l||u)&&((0,f.K)(!rk,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),rk=!0,a?m.repeatType="reverse":l?m.repeatType="loop":u&&(m.repeatType="mirror"),m.repeat=l||a||u||p.repeat),"spring"!==p.type&&(m.type="keyframes"),m)))),{onUpdate:function(e){var t;E.onUpdate(e),null===(t=d.onUpdate)||void 0===t||t.call(d,e)},onComplete:function(){var e;E.onComplete(),null===(e=d.onComplete)||void 0===e||e.call(d)}}))}:function(){var e,r,n=eR(c);return t.set(n),i(),null===(e=null==d?void 0:d.onUpdate)||void 0===e||e.call(d,n),null===(r=null==d?void 0:d.onComplete)||void 0===r||r.call(d),{stop:function(){}}}),v=null!==(u=null!==(a=(rL(o=n,e)||{}).delay)&&void 0!==a?a:o.delay)&&void 0!==u?u:0,E=function(){return y=b()};return v?g=window.setTimeout(E,rh(v)):E(),function(){clearTimeout(g),null==y||y.stop()}})}function r$(e,t){-1===e.indexOf(t)&&e.push(t)}function rH(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var rz=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return r$(this.subscriptions,e),function(){return rH(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(var i=0;im&&v,O=Array.isArray(b)?b:[b],T=O.reduce(u,{});!1===E&&(T={});var I=y.prevResolvedValues,S=void 0===I?{}:I,C=(0,s.__assign)((0,s.__assign)({},S),T),j=function(e){x=!0,h.delete(e),y.needsAnimating[e]=!0};for(var D in C){var B=T[D],R=S[D];p.hasOwnProperty(D)||(B!==R?eB(B)&&eB(R)?!tc(B,R)||P?j(D):y.protectedKeys[D]=!0:void 0!==B?j(D):h.add(D):void 0!==B&&h.has(D)?j(D):y.protectedKeys[D]=!0)}y.prevProp=b,y.prevResolvedValues=T,y.isActive&&(p=(0,s.__assign)((0,s.__assign)({},p),T)),a&&e.blockInitialAnimation&&(x=!1),x&&!w&&f.push.apply(f,(0,s.__spreadArray)([],(0,s.__read)(O.map(function(e){return{animation:e,options:(0,s.__assign)({type:g},t)}})),!1))}}(g);if(i=(0,s.__assign)({},p),h.size){var y={};h.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(y[t]=r)}),f.push({animation:y})}var b=!!f.length;return a&&!1===l.initial&&!e.manuallyAnimateOnMount&&(b=!1),a=!1,b?r(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:c,setActive:function(t,r,i){if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var o,a=c(i,t);for(var s in n)n[s].protectedKeys={};return a},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}(t)),eD(r)&&(0,u.useEffect)(function(){return r.subscribe(t)},[r])}),exit:to(function(e){var t=e.custom,r=e.visualElement,n=(0,s.__read)(tu(),2),i=n[0],a=n[1],c=(0,u.useContext)(b.O);(0,u.useEffect)(function(){r.isPresent=i;var e,n,s=null===(e=r.animationState)||void 0===e?void 0:e.setActive(o.Exit,!i,{custom:null!==(n=null==c?void 0:c.custom)&&void 0!==n?n:t});i||null==s||s.then(a)},[i])})};let r3=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),r5=e=>r3(e)&&e.hasOwnProperty("z"),r8=(e,t)=>Math.abs(e-t);function r4(e,t){if(t$(e)&&t$(t))return r8(e,t);if(r3(e)&&r3(t)){let r=r8(e.x,t.x),n=r8(e.y,t.y),i=r5(e)&&r5(t)?r8(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}var r9=function(){function e(e,t,r){var n=this,i=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=nt(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=r4(e.offset,{x:0,y:0})>=3;if(t||r){var i=e.point,o=(0,rc.$B)().timestamp;n.history.push((0,s.__assign)((0,s.__assign)({},i),{timestamp:o}));var a=n.handlers,u=a.onStart,c=a.onMove;t||(u&&u(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),c&&c(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){if(n.lastMoveEvent=e,n.lastMoveEventInfo=r7(t,n.transformPagePoint),eH(e)&&0===e.buttons){n.handlePointerUp(e,t);return}rc.ZP.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,i=r.onEnd,o=r.onSessionEnd,a=nt(r7(t,n.transformPagePoint),n.history);n.startEvent&&i&&i(e,a),o&&o(e,a)},!e.touches||!(e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=r7(eq(e),this.transformPagePoint),a=o.point,u=(0,rc.$B)().timestamp;this.history=[(0,s.__assign)((0,s.__assign)({},a),{timestamp:u})];var c=t.onSessionStart;c&&c(e,nt(o,this.history)),this.removeListeners=e8(eY(window,"pointermove",this.handlePointerMove),eY(window,"pointerup",this.handlePointerUp),eY(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),rc.qY.update(this.updatePoint)},e}();function r7(e,t){return t?{point:t(e.point)}:e}function ne(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nt(e,t){var r=e.point;return{point:r,delta:ne(r,nr(t)),offset:ne(r,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=nr(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>rh(.1)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function nr(e){return e[e.length-1]}function nn(e){return e.max-e.min}function ni(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),r4(e,t)u?c="y":Math.abs(l.x)>u&&(c="x"),c),null!==r.currentDirection&&(null==a||a(r.currentDirection));return}r.updateAxis("x",t.point,l),r.updateAxis("y",t.point,l),r.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){var n=t.velocity;this.startAnimation(n);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(o.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&nR(e,n,this.currentDirection)){var i,o,a,s,u,c=this.getAxisMotionValue(e),l=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=l,o=this.constraints[e],a=this.elastic[e],s=o.min,u=o.max,void 0!==s&&iu&&(i=a?tb(u,i,a.max):Math.min(i,u)),l=i),c.set(l)}},e.prototype.resolveConstraints=function(){var e,t,r,n,i,o,a=this,s=this.getProps(),u=s.dragConstraints,c=s.dragElastic,l=(this.visualElement.projection||{}).layout,d=this.constraints;u&&x(u)?this.constraints||(this.constraints=this.resolveRefConstraints()):u&&l?this.constraints=(e=l.actual,t=u.top,r=u.left,n=u.bottom,i=u.right,{x:nl(e.x,r,i),y:nl(e.y,t,n)}):this.constraints=!1,this.elastic=(void 0===(o=c)&&(o=.35),!1===o?o=0:!0===o&&(o=.35),{x:nf(o,"left","right"),y:nf(o,"top","bottom")}),d!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&nb(function(e){if(a.getAxisMotionValue(e)){var t,r,n;a.constraints[e]=(t=l.actual[e],r=a.constraints[e],n={},void 0!==r.min&&(n.min=r.min-t.min),void 0!==r.max&&(n.max=r.max-t.min),n)}})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!x(t))return!1;var n=t.current;(0,f.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=(s=i.root,u=nj(n,this.visualElement.getTransformPagePoint()),(c=s.scroll)&&(nO(u.x,c.x),nO(u.y,c.y)),u),a={x:nd((l=i.layout.actual).x,o.x),y:nd(l.y,o.y)};if(r){var s,u,c,l,d,h,p,m=r((h=(d=a).x,{top:(p=d.y).min,right:h.max,bottom:p.max,left:h.min}));this.hasMutatedConstraints=!!m,m&&(a=nv(m))}return a},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,i=r.dragMomentum,o=r.dragElastic,a=r.dragTransition,u=r.dragSnapToOrigin,c=r.onDragTransitionEnd,l=this.constraints||{};return Promise.all(nb(function(r){if(nR(r,n,t.currentDirection)){var c,d=null!==(c=null==l?void 0:l[r])&&void 0!==c?c:{};u&&(d={min:0,max:0});var f=(0,s.__assign)((0,s.__assign)({type:"inertia",velocity:i?e[r]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},a),d);return t.startAxisValueAnimation(r,f)}})).then(c)},e.prototype.startAxisValueAnimation=function(e,t){var r=this.getAxisMotionValue(e);return rF(e,r,0,t)},e.prototype.stopAnimation=function(){var e=this;nb(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;nb(function(r){if(nR(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,i=t.getAxisMotionValue(r);if(n&&n.layout){var o=n.layout.actual[r],a=o.min,s=o.max;i.set(e[r]-tb(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,i=r.dragConstraints,o=this.visualElement.projection;if(x(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};nb(function(e){var r=t.getAxisMotionValue(e);if(r){var n,i,o,s,u,c=r.get();a[e]=(n={min:c,max:c},i=t.constraints[e],o=.5,s=nn(n),(u=nn(i))>s?o=ty(i.min,i.max-s,n.min):s>u&&(o=ty(n.min,n.max-u,i.min)),tl(0,1,o))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),nb(function(e){if(nR(e,n,null)){var r=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;r.set(tb(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;nD.set(this.visualElement,this);var r=eY(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.drag,i=r.dragListener;n&&(void 0===i||i)&&t.start(e)}),n=function(){x(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();var a=eF(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var r=e.delta,n=e.hasLayoutChanged;t.isDragging&&n&&(nb(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){a(),r(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=e.dragDirectionLock,n=e.dragPropagation,i=e.dragConstraints,o=e.dragElastic,a=e.dragMomentum;return(0,s.__assign)((0,s.__assign)({},e),{drag:void 0!==t&&t,dragDirectionLock:void 0!==r&&r,dragPropagation:void 0!==n&&n,dragConstraints:void 0!==i&&i,dragElastic:void 0===o?.35:o,dragMomentum:void 0===a||a})},e}();function nR(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}var nM={pan:to(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=(0,u.useRef)(null),s=(0,u.useContext)(g._).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:t,onEnd:function(e,t){a.current=null,n&&n(e,t)}};(0,u.useEffect)(function(){null!==a.current&&a.current.updateHandlers(c)}),eZ(o,"pointerdown",(t||r||n||i)&&function(e){a.current=new r9(e,c,{transformPagePoint:s})}),(0,e3.z)(function(){return a.current&&a.current.end()})}),drag:to(function(e){var t=e.dragControls,r=e.visualElement,n=(0,j.h)(function(){return new nB(r)});(0,u.useEffect)(function(){return t&&t.subscribe(n)},[n,t]),(0,u.useEffect)(function(){return n.addListeners()},[n])})},nk=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],nN=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.removeValueFromRenderState,d=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var h,p,m,g,y,b=e.parent,v=e.props,E=e.presenceId,w=e.blockInitialAnimation,P=e.visualState,x=e.shouldReduceMotion;void 0===t&&(t={});var _=!1,O=P.latestValues,T=P.renderState,C=(h=nk.map(function(){return new rz}),p={},m={clearAllListeners:function(){return h.forEach(function(e){return e.clear()})},updatePropListeners:function(e){nk.forEach(function(t){var r,n="on"+t,i=e[n];null===(r=p[t])||void 0===r||r.call(p),i&&(p[t]=m[n](i))})}},h.forEach(function(e,t){m["on"+nk[t]]=function(t){return e.add(t)},m["notify"+nk[t]]=function(){for(var t=[],r=0;r=0?window.pageYOffset:null,l=nJ(t,e,u);return o.length&&o.forEach(function(t){var r=(0,s.__read)(t,2),n=r[0],i=r[1];e.getValue(n).set(i)}),e.syncRender(),null!==c&&window.scrollTo({top:c}),{target:l,transitionEnd:n}},n0=function(e,t,r,n){var i,o,a=function(e,t,r){var n,i=(0,s.__rest)(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:r};for(var a in r&&(r=(0,s.__assign)({},r)),e.forEachValue(function(e){var t=e.get();if(nF(t)){var r=nH(t,o);r&&e.set(r)}}),i){var u=i[a];if(nF(u)){var c=nH(u,o);c&&(i[a]=c,r&&(null!==(n=r[a])&&void 0!==n||(r[a]=u)))}}return{target:i,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,Object.keys(i).some(nq)?nQ(e,i,r,o):{target:i,transitionEnd:o}},n1={treeType:"dom",readValueFromInstance:function(e,t){if(q(t)){var r=rB(t);return r&&r.default||0}var n=window.getComputedStyle(e);return(Y(t)?n.getPropertyValue(t):n[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return nj(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;void 0===n&&(n=!0);var o=t.transition,a=t.transitionEnd,u=(0,s.__rest)(t,["transition","transitionEnd"]),c=function(e,t,r){var n,i,o={};for(var a in e)o[a]=null!==(n=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t))&&void 0!==n?n:null===(i=r.getValue(a))||void 0===i?void 0:i.get();return o}(u,o||{},e);if(i&&(a&&(a=i(a)),u&&(u=i(u)),c&&(c=i(c))),n){!function(e,t,r){var n,i,o,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),u=s.length;if(u)for(var c=0;c5)return i;var u=tF.createTransformer(e),c="number"!=typeof s[0]?1:0,l=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=l,s[1+c]/=d;var f=tb(l,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var h=u(s);if(o){var p=0;h=h.replace(n4,function(){var e=a[p];return p++,e})}return h}}},ie=["TopLeft","TopRight","BottomLeft","BottomRight"],it=ie.length,ir=function(e){return"string"==typeof e?parseFloat(e):e},ii=function(e){return"number"==typeof e||eo.test(e)};function io(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var ia=iu(0,.5,t5),is=iu(.5,.95,t0);function iu(e,t,r){return function(n){return nt?1:r(ty(e,t,n))}}function ic(e,t){e.min=t.min,e.max=t.max}function il(e,t){ic(e.x,t.x),ic(e.y,t.y)}function id(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function ih(e,t,r,n,i){var o=(0,s.__read)(r,3),a=o[0],u=o[1],c=o[2];!function(e,t,r,n,i,o,a){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===o&&(o=e),void 0===a&&(a=e),ei.test(t)&&(t=parseFloat(t),t=tb(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=tb(o.min,o.max,n);e===o&&(s-=t),e.min=id(e.min,t,r,s,i),e.max=id(e.max,t,r,s,i)}}(e,t[a],t[u],t[c],t.scale,n,i)}var ip=["x","scaleX","originX"],im=["y","scaleY","originY"];function ig(e,t,r,n){ih(e.x,t,ip,null==r?void 0:r.x,null==n?void 0:n.x),ih(e.y,t,im,null==r?void 0:r.y,null==n?void 0:n.y)}function iy(e){return 0===e.translate&&1===e.scale}function ib(e){return iy(e.x)&&iy(e.y)}function iv(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var iE=function(){function e(){this.members=[]}return e.prototype.add=function(e){r$(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(rH(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var i=this.members[n];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function iw(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,u=r.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}var c=e.x.scale*t.x,l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(c,", ").concat(l,")"))?"none":o}var iP=function(e,t){return e.depth-t.depth},ix=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){r$(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){rH(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(iP),this.isDirty=!1,this.children.forEach(e)},e}();function i_(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(ij),i.nodes.forEach(iD)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?(0,s.__spreadArray)((0,s.__spreadArray)([],(0,s.__read)(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),f=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(iN));this.animationProgress=0,this.mixTargetDelta=function(t){var r,i,s,h=t/1e3;iM(u.x,e.x,h),iM(u.y,e.y,h),n.setTargetDelta(u),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(s=n.relativeParent)||void 0===s?void 0:s.layout)&&(nc(c,n.layout.actual,n.relativeParent.layout.actual),r=n.relativeTarget,i=n.relativeTargetOrigin,ik(r.x,i.x,c.x,h),ik(r.y,i.y,c.y,h)),l&&(n.animationValues=a,function(e,t,r,n,i,o){var a,s,u,c;i?(e.opacity=tb(0,null!==(a=r.opacity)&&void 0!==a?a:1,ia(n)),e.opacityExit=tb(null!==(s=t.opacity)&&void 0!==s?s:1,0,is(n))):o&&(e.opacity=tb(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(c=r.opacity)&&void 0!==c?c:1,n));for(var l=0;l=0;n--)if(e.path[n].instance){r=e.path[n];break}var i=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function iF(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function i$(e){iF(e.x),iF(e.y)}var iH=i_({attachResizeListener:function(e,t){return eF(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),iz={current:void 0},iq=i_({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!iz.current){var e=new iH(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),iz.current=e}return iz.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return"fixed"===window.getComputedStyle(e).position}}),iV=(0,s.__assign)((0,s.__assign)((0,s.__assign)((0,s.__assign)({},r6),ta),nM),{measureLayout:function(e){var t=(0,s.__read)(tu(),2),r=t[0],n=t[1],i=(0,u.useContext)(R.p);return u.createElement(n9,(0,s.__assign)({},e,{layoutGroup:i,switchLayoutGroup:(0,u.useContext)(M),isPresent:r,safeToRemove:n}))}}),iG=function(e){function t(t,r){var n,i,o,a,l,_,O;return void 0===r&&(r={}),i=(n=e(t,r)).preloadedFeatures,o=n.createVisualElement,a=n.projectionNodeConstructor,l=n.useRender,_=n.useVisualState,O=n.Component,i&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?d.projectionNodeConstructor=e[t]:d[t].Component=e[t])}(i),(0,u.forwardRef)(function(e,t){var r,n,T,S,N,U,L,F,$,H,z,q,V,G,W,K,Y,Z,X,J,Q,ee,et,er,en,ei,eo,ea,es=(q=e.layoutId,(V=null===(z=(0,u.useContext)(R.p))||void 0===z?void 0:z.id)&&void 0!==q?V+"-"+q:q);e=(0,s.__assign)((0,s.__assign)({},e),{layoutId:es});var eu=(0,u.useContext)(g._),ec=null,el=(W=(G=function(e,t){if(I(e)){var r=e.initial,n=e.animate;return{initial:!1===r||A(r)?r:void 0,animate:A(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,u.useContext)(y))).initial,K=G.animate,(0,u.useMemo)(function(){return{initial:W,animate:K}},[C(W),C(K)])),ed=eu.isStatic?void 0:(0,j.h)(function(){if(D.hasEverUpdated)return B++}),ef=_(e,eu.isStatic);return!eu.isStatic&&E.j&&(el.visualElement=(Y=(0,s.__assign)((0,s.__assign)({},eu),e),Z=o,X=(0,u.useContext)(h),J=(0,u.useContext)(y).visualElement,Q=(0,u.useContext)(b.O),P||function(){if(P=!0,E.j){if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return w.current=e.matches};e.addListener(t),t()}else w.current=!1}}(),ee=(0,s.__read)((0,u.useState)(w.current),1)[0],er="never"!==(et=(0,u.useContext)(g._).reducedMotion)&&("always"===et||ee),en=(0,u.useRef)(void 0),Z||(Z=X.renderer),!en.current&&Z&&(en.current=Z(O,{visualState:ef,parent:J,props:Y,presenceId:null==Q?void 0:Q.id,blockInitialAnimation:(null==Q?void 0:Q.initial)===!1,shouldReduceMotion:er})),ei=en.current,(0,v.L)(function(){null==ei||ei.syncRender()}),(0,u.useEffect)(function(){var e;null===(e=null==ei?void 0:ei.animationState)||void 0===e||e.animateChanges()}),(0,v.L)(function(){return function(){return null==ei?void 0:ei.notifyUnmount()}},[]),ei),r=e,n=el.visualElement,T=a||d.projectionNodeConstructor,N=r.layoutId,U=r.layout,L=r.drag,F=r.dragConstraints,$=r.layoutScroll,H=(0,u.useContext)(M),!T||!n||(null==n?void 0:n.projection)||(n.projection=new T(ed,n.getLatestValues(),null===(S=n.parent)||void 0===S?void 0:S.projection),n.projection.setOptions({layoutId:N,layout:U,alwaysMeasureLayout:!!L||F&&x(F),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof U?U:"both",initialPromotionConfig:H,layoutScroll:$})),ec=function(e,t,r){var n=[],i=(0,u.useContext)(h);if(!t)return null;"production"!==c.O&&r&&i.strict&&(0,f.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;operformance.now():()=>Date.now(),o="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(i()),n),a=!0,s=!1,u=!1,c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],d=l.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let u=s&&i,c=u?t:r;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),u&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rs=!0),e),{}),f=l.reduce((e,t)=>{let r=d[t];return e[t]=(e,t=!1,n=!1)=>(s||y(),r.schedule(e,t,n)),e},{}),h=l.reduce((e,t)=>(e[t]=d[t].cancel,e),{}),p=l.reduce((e,t)=>(e[t]=()=>d[t].process(c),e),{}),m=e=>d[e].process(c),g=e=>{s=!1,c.delta=a?n:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,u=!0,l.forEach(m),u=!1,s&&(a=!1,o(g))},y=()=>{s=!0,a=!0,u||o(g)},b=()=>c;var v=f},61410:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(17959);function i(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},78214:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(61410),i=r(17959);function o(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,n.E)(t),o=0;for(let t of e)r.set(t,o),o+=t.length;return(0,i.P)(r)}},42199:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(94610),i=r(17959);function o(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?(0,i.P)(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}},17636:function(e,t,r){"use strict";r.d(t,{BB:function(){return o.B},mL:function(){return i.m},zo:function(){return n.z}});var n=r(78214),i=r(42199),o=r(34556)},34556:function(e,t,r){"use strict";r.d(t,{B:function(){return i}});var n=r(94610);function i(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},17959:function(e,t,r){"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:function(){return n}})},94610:function(e,t,r){"use strict";r.d(t,{Z:function(){return eG}});var n={};r.r(n),r.d(n,{identity:function(){return j}});var i={};r.r(i),r.d(i,{base2:function(){return D}});var o={};r.r(o),r.d(o,{base8:function(){return B}});var a={};r.r(a),r.d(a,{base10:function(){return R}});var s={};r.r(s),r.d(s,{base16:function(){return M},base16upper:function(){return k}});var u={};r.r(u),r.d(u,{base32:function(){return N},base32hex:function(){return $},base32hexpad:function(){return z},base32hexpadupper:function(){return q},base32hexupper:function(){return H},base32pad:function(){return L},base32padupper:function(){return F},base32upper:function(){return U},base32z:function(){return V}});var c={};r.r(c),r.d(c,{base36:function(){return G},base36upper:function(){return W}});var l={};r.r(l),r.d(l,{base58btc:function(){return K},base58flickr:function(){return Y}});var d={};r.r(d),r.d(d,{base64:function(){return Z},base64pad:function(){return X},base64url:function(){return J},base64urlpad:function(){return Q}});var f={};r.r(f),r.d(f,{base256emoji:function(){return en}});var h={};r.r(h),r.d(h,{sha256:function(){return ep},sha512:function(){return em}});var p={};r.r(p),r.d(p,{identity:function(){return ey}});var m={};r.r(m),r.d(m,{code:function(){return ev},decode:function(){return ew},encode:function(){return eE},name:function(){return eb}});var g={};r.r(g),r.d(g,{code:function(){return eA},decode:function(){return eT},encode:function(){return eO},name:function(){return e_}});var y=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,a=new Uint8Array(o);e[t];){var l=r[e.charCodeAt(t)];if(255===l)return;for(var d=0,f=o-1;(0!==l||d>>0,a[f]=l%256>>>0,l=l/256>>>0;if(0!==l)throw Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var h=o-i;h!==o&&0===a[h];)h++;for(var p=new Uint8Array(n+(o-h)),m=n;h!==o;)p[m++]=a[h++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],f=0,h=a-1;(0!==d||f>>0,c[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");n=f,i++}for(var p=a-n;p!==a&&0===c[p];)p++;for(var m=u.repeat(r);p{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},v=e=>new TextEncoder().encode(e),E=e=>new TextDecoder().decode(e);class w{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class P{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return _(this,e)}}class x{constructor(e){this.decoders=e}or(e){return _(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let _=(e,t)=>new x({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class A{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new w(e,t,r),this.decoder=new P(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let O=({name:e,prefix:t,encode:r,decode:n})=>new A(e,t,r,n),T=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=y(r,t);return O({prefix:e,name:t,encode:n,decode:e=>b(i(e))})},I=(e,t,r,n)=>{let i={};for(let e=0;e=8&&(s-=8,a[c++]=255&u>>s)}if(s>=r||255&u<<8-s)throw SyntaxError("Unexpected end of data");return a},S=(e,t,r)=>{let n="="===t[t.length-1],i=(1<r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<O({prefix:t,name:e,encode:e=>S(e,n,r),decode:t=>I(t,n,r,e)}),j=O({prefix:"\x00",name:"identity",encode:e=>E(e),decode:e=>v(e)}),D=C({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),B=C({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),R=T({prefix:"9",name:"base10",alphabet:"0123456789"}),M=C({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),k=C({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),N=C({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),U=C({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),L=C({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),F=C({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),$=C({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),H=C({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),z=C({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),q=C({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),V=C({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),G=T({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),W=T({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),K=T({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Y=T({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Z=C({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),X=C({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),J=C({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Q=C({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ee=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),et=ee.reduce((e,t,r)=>(e[r]=t,e),[]),er=ee.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),en=O({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=et[t],"")},decode:function(e){let t=[];for(let r of e){let e=er[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});function ei(e,t,r){t=t||[];for(var n=r=r||0;e>=2147483648;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,ei.bytes=r-n+1,t}function eo(e,t){var r,n=0,t=t||0,i=0,o=t,a=e.length;do{if(o>=a)throw eo.bytes=0,RangeError("Could not decode varint");r=e[o++],n+=i<28?(127&r)<=128);return eo.bytes=o-t,n}var ea={encode:ei,decode:eo,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10}};let es=(e,t,r=0)=>(ea.encode(e,t,r),t),eu=e=>ea.encodingLength(e),ec=(e,t)=>{let r=t.byteLength,n=eu(e),i=n+eu(r),o=new Uint8Array(i+r);return es(e,o,0),es(r,o,n),o.set(t,i),new el(e,r,t,o)};class el{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ed=({name:e,code:t,encode:r})=>new ef(e,t,r);class ef{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?ec(this.code,t):t.then(e=>ec(this.code,e))}throw Error("Unknown type, must be binary type")}}let eh=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ep=ed({name:"sha2-256",code:18,encode:eh("SHA-256")}),em=ed({name:"sha2-512",code:19,encode:eh("SHA-512")}),eg=e=>ec(0,b(e)),ey={code:0,name:"identity",encode:b,digest:eg},eb="raw",ev=85,eE=e=>b(e),ew=e=>b(e),eP=new TextEncoder,ex=new TextDecoder,e_="json",eA=512,eO=e=>eP.encode(JSON.stringify(e)),eT=e=>JSON.parse(ex.decode(e));class eI{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eN,byteLength:eN,code:ek,version:ek,multihash:ek,bytes:ek,_baseCache:eN,asCID:eN})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eD)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eB)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eI.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=Digest.create(e,t);return eI.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&Digest.equals(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eC(t,n,e||base58btc.encoder):ej(t,n,e||base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return eU(/^0\.0/,eL),!!(e&&(e[eM]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eI)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new eI(t,r,n,i||eR(t,r,n.bytes))}if(null==e||!0!==e[eM])return null;{let{version:t,multihash:r,code:n}=e,i=Digest.decode(r);return eI.create(t,n,i)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eD)return new eI(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eD}) block encoding`);case 1:{let n=eR(e,t,r.bytes);return new eI(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return eI.create(0,eD,e)}static createV1(e,t){return eI.create(1,e,t)}static decode(e){let[t,r]=eI.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eI.inspectBytes(e),r=t.size-t.multihashSize,n=coerce(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=n.subarray(t.multihashSize-t.digestSize),o=new Digest.Digest(t.multihashCode,t.digestSize,i,n),a=0===t.version?eI.createV0(o):eI.createV1(t.codec,o);return[a,e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=varint.decode(e.subarray(t));return t+=n,r},n=r(),i=eD;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let o=t,a=r(),s=r(),u=t+s;return{version:n,codec:i,multihashCode:a,digestSize:s,multihashSize:u-o,size:u}}static parse(e,t){let[r,n]=eS(e,t),i=eI.decode(n);return i._baseCache.set(r,e),i}}let eS=(e,t)=>{switch(e[0]){case"Q":{let r=t||base58btc;return[base58btc.prefix,r.decode(`${base58btc.prefix}${e}`)]}case base58btc.prefix:{let r=t||base58btc;return[base58btc.prefix,r.decode(e)]}case base32.prefix:{let r=t||base32;return[base32.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eC=(e,t,r)=>{let{prefix:n}=r;if(n!==base58btc.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},ej=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},eD=112,eB=18,eR=(e,t,r)=>{let n=varint.encodingLength(e),i=n+varint.encodingLength(t),o=new Uint8Array(i+r.byteLength);return varint.encodeTo(e,o,0),varint.encodeTo(t,o,n),o.set(r,i),o},eM=Symbol.for("@ipld/js-cid/CID"),ek={writable:!1,configurable:!1,enumerable:!0},eN={writable:!1,enumerable:!1,configurable:!1},eU=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},eL=null,eF={...n,...i,...o,...a,...s,...u,...c,...l,...d,...f};({...h,...p});var e$=r(61410);function eH(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let ez=eH("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{let t=new TextEncoder;return t.encode(e.substring(1))}),eq=eH("ascii","a",e=>{let t="a";for(let r=0;r{e=e.substring(1);let t=(0,e$.E)(e.length);for(let r=0;r{let{children:n}=e,[t,i]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{i(!0)},[]),t)?(0,s.jsx)(s.Fragment,{children:n}):null};n.default=i},30911:function(e,n,t){"use strict";t.r(n);var s=t(33745);t(37010);var r=t(84279),i=t.n(r),l=t(48981),c=t(45466),a=t.n(c);let o=()=>(0,s.jsx)("header",{className:"bg-cat-crust p-4 flex items-center justify-between ",children:(0,s.jsxs)("div",{className:"navbar bg-base-500",children:[(0,s.jsxs)("div",{className:"navbar-start",children:[(0,s.jsx)(i(),{href:"/home",children:(0,s.jsx)(a(),{alt:"Tobi",src:"/tobi.png",width:500,height:500,className:"w-14 h-14"})}),(0,s.jsxs)("ul",{className:"menu menu-horizontal px-1 text-xl lg:flex",children:[(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/home",children:"Home"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/vote",children:"Vote"})})]})]}),(0,s.jsx)("div",{className:"navbar-end mr-5",children:(0,s.jsx)("div",{children:(0,s.jsx)(l.x3,{})})})]})});n.default=o},86373:function(e,n,t){"use strict";t.r(n),t.d(n,{WagmiProvider:function(){return x}});var s=t(33745),r=t(62205),i=t(58573),l=t(22129),c=t(48981),a=t(42212);let o=[l.ws,l.Fo,l.v8],{chains:h,publicClient:d,webSocketPublicClient:u}=(0,r.QB)(o,[(0,a.I)()]),f=(0,i._g)((0,c._K)({autoConnect:!0,walletConnectProjectId:"walletConnectProjectId",chains:h,appName:"Tobi",publicClient:d,webSocketPublicClient:u})),x=e=>{let{children:n}=e;return(0,s.jsx)(i.eM,{config:f,children:(0,s.jsx)(c.bO,{children:n})})}},97738:function(){},71314:function(){}},function(e){e.O(0,[894,365,928,389,454,744],function(){return e(e.s=18118)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-a239de78fa5c93bb.js b/_next/static/chunks/app/layout-a239de78fa5c93bb.js deleted file mode 100644 index ce408fe..0000000 --- a/_next/static/chunks/app/layout-a239de78fa5c93bb.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{73804:function(){},18118:function(e,n,s){Promise.resolve().then(s.bind(s,86984)),Promise.resolve().then(s.bind(s,30911)),Promise.resolve().then(s.bind(s,86373)),Promise.resolve().then(s.t.bind(s,97738,23)),Promise.resolve().then(s.t.bind(s,71314,23))},86984:function(e,n,s){"use strict";s.r(n);var t=s(33745),r=s(37010);let i=e=>{let{children:n}=e,[s,i]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{i(!0)},[]),s)?(0,t.jsx)(t.Fragment,{children:n}):null};n.default=i},30911:function(e,n,s){"use strict";s.r(n);var t=s(33745);s(37010);var r=s(84279),i=s.n(r),l=s(48981);let c=()=>(0,t.jsx)("header",{className:"bg-cat-crust p-4 flex items-center justify-between ",children:(0,t.jsxs)("div",{className:"navbar bg-base-500",children:[(0,t.jsxs)("div",{className:"navbar-start",children:[(0,t.jsx)("img",{src:"/tobi.png",alt:"Icon",className:"w-14 h-14"}),(0,t.jsxs)("ul",{className:"menu menu-horizontal px-1 text-xl lg:flex",children:[(0,t.jsx)("li",{children:(0,t.jsx)(i(),{href:"/dashboard",children:"Dashboard"})}),(0,t.jsx)("li",{children:(0,t.jsx)(i(),{href:"/bind",children:"Bind"})}),(0,t.jsx)("li",{children:(0,t.jsx)(i(),{href:"/vote",children:"Vote"})})]})]}),(0,t.jsx)("div",{className:"navbar-end mr-5",children:(0,t.jsx)("div",{children:(0,t.jsx)(l.x3,{})})})]})});n.default=c},86373:function(e,n,s){"use strict";s.r(n),s.d(n,{WagmiProvider:function(){return b}});var t=s(33745),r=s(62205),i=s(58573),l=s(22129),c=s(48981),a=s(42212),o=s(37010);let d=[l.ws,l.Fo,l.v8],{chains:u,publicClient:h,webSocketPublicClient:f}=(0,r.QB)(d,[(0,a.I)()]),x=(0,i._g)((0,c._K)({autoConnect:!0,walletConnectProjectId:"walletConnectProjectId",chains:u,appName:"Tobi",publicClient:h,webSocketPublicClient:f})),b=e=>{let{children:n}=e,[s,r]=o.useState(!1);return o.useEffect(()=>r(!0),[]),(0,t.jsx)(i.eM,{config:x,children:(0,t.jsx)(c.bO,{children:s&&n})})}},97738:function(){},71314:function(){}},function(e){e.O(0,[894,698,389,454,744],function(){return e(e.s=18118)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/vote/page-2960ea9fe8b11384.js b/_next/static/chunks/app/vote/page-2960ea9fe8b11384.js deleted file mode 100644 index 48f9fcd..0000000 --- a/_next/static/chunks/app/vote/page-2960ea9fe8b11384.js +++ /dev/null @@ -1,9 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65],{85272:function(e,t,r){Promise.resolve().then(r.bind(r,56749))},56749:function(e,t,r){"use strict";r.r(t);var i=r(33745),n=r(54732),o=r.n(n),s=r(37010);let a=()=>{let e=(0,s.useRef)(null),[t,r]=(0,s.useState)(null),n=(0,s.useCallback)(()=>{let t=e.current.getScreenshot();r(t)},[e,r]);return(0,i.jsxs)("div",{className:"container",children:[(0,i.jsx)(o(),{height:600,width:600,ref:e,mirrored:!0}),(0,i.jsx)("div",{className:"btn",onClick:n,children:"Capture"}),t&&(0,i.jsx)("img",{src:t})]})};t.default=a},20831:function(e,t,r){"use strict";/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var i=r(37010),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,r){var i,o={},d=null,u=null;for(i in void 0!==r&&(d=""+r),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,i)&&!c.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:n,type:e,key:d,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=d,t.jsxs=d},33745:function(e,t,r){"use strict";e.exports=r(20831)},54732:function(e,t,r){var i;e.exports=(i=r(37010),function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,(function(t){return e[t]}).bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/react-webcam.tsx")}({"./src/react-webcam.tsx":function(e,t,r){"use strict";r.r(t);var i,n=r(/*! react */"react"),o=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){return(s=Object.assign||function(e){for(var t,r=1,i=arguments.length;rt.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);nt.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};function c(){return!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}"undefined"!=typeof window&&(void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise(function(r,i){t.call(navigator,e,r,i)}):Promise.reject(Error("getUserMedia is not implemented in this browser"))}));var d=function(e){function t(t){var r=e.call(this,t)||this;return r.canvas=null,r.ctx=null,r.requestUserMediaId=0,r.unmounted=!1,r.state={hasUserMedia:!1},r}return o(t,e),t.prototype.componentDidMount=function(){var e=this.state,t=this.props;if(this.unmounted=!1,!c()){t.onUserMediaError("getUserMedia not supported");return}e.hasUserMedia||this.requestUserMedia(),t.children&&"function"!=typeof t.children&&console.warn("children must be a function")},t.prototype.componentDidUpdate=function(e){var t=this.props;if(!c()){t.onUserMediaError("getUserMedia not supported");return}var r=JSON.stringify(e.audioConstraints)!==JSON.stringify(t.audioConstraints),i=JSON.stringify(e.videoConstraints)!==JSON.stringify(t.videoConstraints),n=e.minScreenshotWidth!==t.minScreenshotWidth,o=e.minScreenshotHeight!==t.minScreenshotHeight;(i||n||o)&&(this.canvas=null,this.ctx=null),(r||i)&&(this.stopAndCleanup(),this.requestUserMedia())},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},t.stopMediaStream=function(e){e&&(e.getVideoTracks&&e.getAudioTracks?(e.getVideoTracks().map(function(t){e.removeTrack(t),t.stop()}),e.getAudioTracks().map(function(t){e.removeTrack(t),t.stop()})):e.stop())},t.prototype.stopAndCleanup=function(){var e=this.state;e.hasUserMedia&&(t.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))},t.prototype.getScreenshot=function(e){var t=this.state,r=this.props;if(!t.hasUserMedia)return null;var i=this.getCanvas(e);return i&&i.toDataURL(r.screenshotFormat,r.screenshotQuality)},t.prototype.getCanvas=function(e){var t=this.state,r=this.props;if(!this.video||!t.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var i=this.video.videoWidth,n=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var o=i/n;n=(i=r.minScreenshotWidth||this.video.clientWidth)/o,r.minScreenshotHeight&&n0?t[0]:"object"==typeof t&&t.ideal?t.ideal:null};MediaStreamTrack.getSources(function(e){var t=null,s=null;e.forEach(function(e){"audio"===e.kind?t=e.id:"video"===e.kind&&(s=e.id)});var a=o(r.audioConstraints);a&&(t=a);var c=o(r.videoConstraints);c&&(s=c),i(n(t),n(s))})}},t.prototype.handleUserMedia=function(e,t){var r=this.props;if(e||!t){this.setState({hasUserMedia:!1}),r.onUserMediaError(e);return}this.stream=t;try{this.video&&(this.video.srcObject=t),this.setState({hasUserMedia:!0})}catch(e){this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(t)})}r.onUserMedia(t)},t.prototype.render=function(){var e=this,t=this.state,r=this.props,i=r.audio,o=(r.forceScreenshotSourceSize,r.onUserMedia,r.onUserMediaError,r.screenshotFormat,r.screenshotQuality,r.minScreenshotWidth,r.minScreenshotHeight,r.audioConstraints,r.videoConstraints,r.imageSmoothing,r.mirrored),c=r.style,d=void 0===c?{}:c,u=r.children,h=a(r,["audio","forceScreenshotSourceSize","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),l=o?s(s({},d),{transform:(d.transform||"")+" scaleX(-1)"}):d,f={getScreenshot:this.getScreenshot.bind(this)};return n.createElement(n.Fragment,null,n.createElement("video",s({autoPlay:!0,src:t.src,muted:!i,playsInline:!0,ref:function(t){e.video=t},style:l},h)),u&&u(f))},t.defaultProps={audio:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},t}(n.Component);t.default=d},react:function(e,t){e.exports=i}}).default)}},function(e){e.O(0,[389,454,744],function(){return e(e.s=85272)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/vote/page-91e239708e033e51.js b/_next/static/chunks/app/vote/page-91e239708e033e51.js new file mode 100644 index 0000000..7c21a27 --- /dev/null +++ b/_next/static/chunks/app/vote/page-91e239708e033e51.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65],{57684:function(e,t,s){Promise.resolve().then(s.bind(s,78071))},78071:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return v}});var r=s(33745),n=s(54732),i=s.n(n),a=s(37010);let o=e=>{let{setImgSrc:t,onClose:s}=e,n=(0,a.useRef)(null),[o,c]=(0,a.useState)(null),l=(0,a.useCallback)(()=>{let e=n.current.getScreenshot();c(e),t(e)},[n,t]),d=()=>{c(null),t(null)};return(0,r.jsxs)("div",{className:"flex flex-col items-center ",children:[(0,r.jsx)("div",{className:"pb-4",children:o?(0,r.jsx)("img",{src:o,alt:"webcam"}):(0,r.jsx)(i(),{height:500,width:500,ref:n,mirrored:!0})}),(0,r.jsxs)("div",{className:"flex flex-row space-x-3",children:[o?(0,r.jsx)("div",{className:"btn",onClick:d,children:"Recapture"}):(0,r.jsx)("div",{className:"btn",onClick:l,children:"Capture"}),o?(0,r.jsx)("div",{className:"btn",onClick:s,children:"OK"}):null]})]})},c=e=>{let{...t}=e;return t.isOpen?(0,r.jsx)("div",{className:"fixed inset-0 flex flex-col items-center justify-center",children:(0,r.jsxs)("div",{className:"rounded-lg bg-gradient-to-r from-[#42275a] to-[#734b6d] card p-4 text-white shadow-[0_3px_10px_rgb(0,0,0,0.2)]",children:[(0,r.jsxs)("div",{className:"flex flex-row mb-2 items-center",children:[(0,r.jsx)("span",{className:"font-mono text-black font-bold text-lg dark:text-white w-full",children:t.title}),(0,r.jsx)("svg",{className:"btn btn-sm btn-circle btn-ghost justify-center rounded-full w-8 h-6",onClick:()=>t.onClose(),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})]}),t.children]})}):null};var l=s(95581),d=s(58573);let h=e=>{let{imgSrc:t,handleCopyClick:s,setIsLoading:n,onClose:i}=e,[o,c]=(0,a.useState)(!1),[h,u]=(0,a.useState)(null),{address:f,isConnected:p}=(0,d.mA)(),m=async()=>{n(!0),await (0,l.sleep)(2e3),n(!1),u(f)},x=()=>{navigator.clipboard.writeText(h).then(()=>{c(!0),setTimeout(()=>{c(!1)},1e3)})};return(0,r.jsxs)("div",{className:"flex flex-col items-center ",children:[(0,r.jsxs)("div",{className:"pb-4",children:[(0,r.jsx)("span",{children:"Preview"}),t?(0,r.jsx)("img",{src:t}):null]}),(0,r.jsx)("div",{children:h?(0,r.jsxs)("div",{className:"flex flex-row space-x-3 items-center",children:[(0,r.jsxs)("div",{className:"flex flex-row space-x-2 p-4 border-2 border-solid shadow-[0_3px_10px_rgb(0,0,0,0.2)] card",children:[(0,r.jsx)("span",{className:"text-white font-mono",children:(0,l.formatAddress)(h)}),(0,r.jsxs)("label",{className:"swap items-center",children:[(0,r.jsx)("input",{type:"checkbox",checked:o}),(0,r.jsx)("svg",{className:"swap-on w-6 h-6",onClick:()=>{x(),s()},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"green",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}),(0,r.jsx)("svg",{className:"swap-off w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"white",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184"})})]})]}),(0,r.jsx)("div",{className:"btn",onClick:i,children:"OK"})]}):(0,r.jsx)("div",{className:"btn",onClick:m,children:"Generate"})})]})},u=e=>{let{setVerified:t,setIsLoading:s,onClose:n}=e,[i,o]=(0,a.useState)(""),[c,h]=(0,a.useState)(!1),[u,f]=(0,a.useState)(!1),{address:p,isConnected:m}=(0,d.mA)(),x=async()=>{try{s(!0),await (0,l.sleep)(4e3),"pass"===i&&await f(!0),console.log(i),h(!0),s(!1)}catch(e){console.log("error: ",e),s(!1)}};return(0,a.useEffect)(()=>{u&&t(!0)},[u]),(0,r.jsx)("div",{className:"flex flex-col items-center",children:c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mb-4",children:u?(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"green",className:"w-24 h-24",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M8.603 3.799A4.49 4.49 0 0112 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 013.498 1.307 4.491 4.491 0 011.307 3.497A4.49 4.49 0 0121.75 12a4.49 4.49 0 01-1.549 3.397 4.491 4.491 0 01-1.307 3.497 4.491 4.491 0 01-3.497 1.307A4.49 4.49 0 0112 21.75a4.49 4.49 0 01-3.397-1.549 4.49 4.49 0 01-3.498-1.306 4.491 4.491 0 01-1.307-3.498A4.49 4.49 0 012.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 011.307-3.497 4.49 4.49 0 013.497-1.307zm7.007 6.387a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"})}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"red",className:"w-24 h-24",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z",clipRule:"evenodd"})})}),(0,r.jsx)("div",{className:"btn",onClick:n,children:"OK"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"form-control pb-4 w-500 h-500",children:[(0,r.jsx)("label",{className:"label",children:(0,r.jsx)("span",{className:"label-text",children:"Paste Proof"})}),(0,r.jsx)("textarea",{className:"textarea textarea-bordered textarea-lg w-full max-w-lg",onChange:e=>{o(e.target.value)}})]}),(0,r.jsx)("div",{className:"btn",onClick:x,children:"Verify"})]})})},f=()=>(0,r.jsx)("div",{className:"flex flex-col items-center justify-center space-y-4",children:(0,r.jsx)("span",{className:"loading loading-spinner loading-lg w-100"})});var p=s(45466),m=s.n(p);let x=()=>(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-4",children:[(0,r.jsx)(m(),{src:"/Kamui.svg",alt:"Sharingan",className:"w-40 h-40 animate-spin",width:500,height:500}),(0,r.jsx)("span",{className:"text-cat-peach400 text-lg",children:"Kamuiing..."})]});function v(){let[e,t]=(0,a.useState)(!1),[s,n]=(0,a.useState)(!1),{address:i,isConnected:l}=(0,d.mA)(),[p,m]=(0,a.useState)(!1),[v,g]=(0,a.useState)(!1),[j,b]=(0,a.useState)(!1),[w,y]=(0,a.useState)(!1),[S,N]=(0,a.useState)(!1),[M,C]=(0,a.useState)(null),[k,U]=(0,a.useState)(!1);async function O(){g(!v)}async function _(){y(!w)}async function P(){b(!j)}let A=()=>{U(!0),setTimeout(()=>{U(!1)},1e3)};return(0,a.useEffect)(()=>{l?m(!0):m(!1)},[i,l]),(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsxs)("div",{className:"mx-auto w-full px-8 pt-8 pb-8",children:[(0,r.jsxs)("div",{className:"flex-col",children:[(0,r.jsxs)("div",{className:"flex flex-row space-x-3 items-center",children:[(0,r.jsx)("p",{className:"font-mono text-black font-bold text-3xl dark:text-white my-4",children:"Account Status"}),S?(0,r.jsx)("div",{className:"badge badge-accent",children:"Verified"}):(0,r.jsx)("div",{className:"badge badge-secondary",children:"Unverified"})]}),(0,r.jsxs)("div",{className:"flex flex-row py-2 space-x-11 justify-center",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center space-y-5",children:[(0,r.jsx)("span",{className:"font-mono",children:"1. Capture your face for KYC"}),(0,r.jsx)("div",{className:"bg-gradient-to-r from-[#42275a] to-[#734b6d] card w-[350px] p-4 text-white shadow-[0_3px_10px_rgb(0,0,0,0.2)]",children:(0,r.jsx)("div",{className:"btn btn-ghost",onClick:O,children:"Capture face"})})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center space-y-5",children:[(0,r.jsx)("span",{className:"font-mono",children:"2. Check your face to generate proof"}),(0,r.jsx)("div",{className:"bg-gradient-to-r from-[#42275a] to-[#734b6d] card w-[350px] p-4 text-white shadow-[0_3px_10px_rgb(0,0,0,0.2)]",children:M?(0,r.jsx)("div",{className:"btn btn-ghost",onClick:_,children:"Generate Proof"}):(0,r.jsx)("div",{className:"btn btn-ghost",onClick:O,children:"Need to capture face first"})})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center space-y-5",children:[(0,r.jsx)("span",{className:"font-mono",children:"3. Input Proof to KYC"}),(0,r.jsx)("div",{className:"bg-gradient-to-r from-[#42275a] to-[#734b6d] card w-[350px] p-4 text-white shadow-[0_3px_10px_rgb(0,0,0,0.2)]",children:(0,r.jsx)("div",{className:"btn btn-ghost",onClick:P,children:"Verify Proof"})})]})]}),(0,r.jsx)("div",{className:"divider"}),(0,r.jsx)("p",{className:"font-mono text-black font-bold text-3xl mb-4 dark:text-white",children:"Proposal"})]}),(0,r.jsx)(c,{isOpen:v,onClose:()=>g(!1),title:"Capture Face",children:(0,r.jsx)(o,{setImgSrc:C,onClose:()=>g(!1)})}),(0,r.jsx)(c,{isOpen:w,onClose:()=>y(!1),title:"Generate proof",children:(0,r.jsx)(h,{imgSrc:M,handleCopyClick:A,setIsLoading:t,onClose:()=>y(!1)})}),(0,r.jsx)(c,{isOpen:j,onClose:()=>b(!1),title:"Verify proof",children:(0,r.jsx)(u,{setVerified:N,setIsLoading:t,onClose:()=>b(!1)})}),e&&(0,r.jsx)(f,{}),s&&(0,r.jsx)(x,{}),k&&(0,r.jsx)("div",{className:"toast toast-top toast-end",children:(0,r.jsx)("div",{className:"alert alert-success",children:(0,r.jsx)("span",{children:"Copied to clipboard"})})})]})})}},54732:function(e,t,s){var r;e.exports=(r=s(37010),function(e){var t={};function s(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,(function(t){return e[t]}).bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s="./src/react-webcam.tsx")}({"./src/react-webcam.tsx":function(e,t,s){"use strict";s.r(t);var r,n=s(/*! react */"react"),i=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])})(e,t)},function(e,t){function s(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),a=function(){return(a=Object.assign||function(e){for(var t,s=1,r=arguments.length;st.indexOf(r)&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);nt.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(s[r[n]]=e[r[n]]);return s};function c(){return!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}"undefined"!=typeof window&&(void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise(function(s,r){t.call(navigator,e,s,r)}):Promise.reject(Error("getUserMedia is not implemented in this browser"))}));var l=function(e){function t(t){var s=e.call(this,t)||this;return s.canvas=null,s.ctx=null,s.requestUserMediaId=0,s.unmounted=!1,s.state={hasUserMedia:!1},s}return i(t,e),t.prototype.componentDidMount=function(){var e=this.state,t=this.props;if(this.unmounted=!1,!c()){t.onUserMediaError("getUserMedia not supported");return}e.hasUserMedia||this.requestUserMedia(),t.children&&"function"!=typeof t.children&&console.warn("children must be a function")},t.prototype.componentDidUpdate=function(e){var t=this.props;if(!c()){t.onUserMediaError("getUserMedia not supported");return}var s=JSON.stringify(e.audioConstraints)!==JSON.stringify(t.audioConstraints),r=JSON.stringify(e.videoConstraints)!==JSON.stringify(t.videoConstraints),n=e.minScreenshotWidth!==t.minScreenshotWidth,i=e.minScreenshotHeight!==t.minScreenshotHeight;(r||n||i)&&(this.canvas=null,this.ctx=null),(s||r)&&(this.stopAndCleanup(),this.requestUserMedia())},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},t.stopMediaStream=function(e){e&&(e.getVideoTracks&&e.getAudioTracks?(e.getVideoTracks().map(function(t){e.removeTrack(t),t.stop()}),e.getAudioTracks().map(function(t){e.removeTrack(t),t.stop()})):e.stop())},t.prototype.stopAndCleanup=function(){var e=this.state;e.hasUserMedia&&(t.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))},t.prototype.getScreenshot=function(e){var t=this.state,s=this.props;if(!t.hasUserMedia)return null;var r=this.getCanvas(e);return r&&r.toDataURL(s.screenshotFormat,s.screenshotQuality)},t.prototype.getCanvas=function(e){var t=this.state,s=this.props;if(!this.video||!t.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var r=this.video.videoWidth,n=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var i=r/n;n=(r=s.minScreenshotWidth||this.video.clientWidth)/i,s.minScreenshotHeight&&n0?t[0]:"object"==typeof t&&t.ideal?t.ideal:null};MediaStreamTrack.getSources(function(e){var t=null,a=null;e.forEach(function(e){"audio"===e.kind?t=e.id:"video"===e.kind&&(a=e.id)});var o=i(s.audioConstraints);o&&(t=o);var c=i(s.videoConstraints);c&&(a=c),r(n(t),n(a))})}},t.prototype.handleUserMedia=function(e,t){var s=this.props;if(e||!t){this.setState({hasUserMedia:!1}),s.onUserMediaError(e);return}this.stream=t;try{this.video&&(this.video.srcObject=t),this.setState({hasUserMedia:!0})}catch(e){this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(t)})}s.onUserMedia(t)},t.prototype.render=function(){var e=this,t=this.state,s=this.props,r=s.audio,i=(s.forceScreenshotSourceSize,s.onUserMedia,s.onUserMediaError,s.screenshotFormat,s.screenshotQuality,s.minScreenshotWidth,s.minScreenshotHeight,s.audioConstraints,s.videoConstraints,s.imageSmoothing,s.mirrored),c=s.style,l=void 0===c?{}:c,d=s.children,h=o(s,["audio","forceScreenshotSourceSize","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),u=i?a(a({},l),{transform:(l.transform||"")+" scaleX(-1)"}):l,f={getScreenshot:this.getScreenshot.bind(this)};return n.createElement(n.Fragment,null,n.createElement("video",a({autoPlay:!0,src:t.src,muted:!r,playsInline:!0,ref:function(t){e.video=t},style:u},h)),d&&d(f))},t.defaultProps={audio:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},t}(n.Component);t.default=l},react:function(e,t){e.exports=r}}).default)},95581:function(e){"use strict";var t=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i={};((e,s)=>{for(var r in s)t(e,r,{get:s[r],enumerable:!0})})(i,{formatAddress:()=>o,sleep:()=>a}),e.exports=((e,i,a,o)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of r(i))n.call(e,a)||void 0===a||t(e,a,{get:()=>i[a],enumerable:!(o=s(i,a))||o.enumerable});return e})(t({},"__esModule",{value:!0}),i);var a=e=>new Promise(t=>setTimeout(t,e)),o=e=>{if(!e)return"";if(e.length<=12)return e;{let t=e.slice(0,6),s=e.slice(-6);return`${t}...${s}`}}}},function(e){e.O(0,[365,389,454,744],function(){return e(e.s=57684)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/main-78f45da8ba9f9db8.js b/_next/static/chunks/main-dd9a4558cb8b9bed.js similarity index 99% rename from _next/static/chunks/main-78f45da8ba9f9db8.js rename to _next/static/chunks/main-dd9a4558cb8b9bed.js index 265a49c..8415d13 100644 --- a/_next/static/chunks/main-78f45da8ba9f9db8.js +++ b/_next/static/chunks/main-dd9a4558cb8b9bed.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{48537:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})})},18112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return l}});let r=n(41651),a=n(92947);function l(e,t){return(0,a.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71850:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(92947);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let r=t.title?t.title[0]:null,a="";if(r){let{children:e}=r.props;a="string"==typeof e?e:Array.isArray(e)?e.join(""):""}a!==document.title&&(document.title=a),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],r=n.querySelector("meta[name=next-head-count]"),o=Number(r.content),i=[];for(let t=0,n=r.previousElementSibling;t{for(let t=0,n=i.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>n.insertBefore(e,r)),r.content=(o-i.length+s.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66243:function(e,t,n){"use strict";let r,a,l,o,i,u,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=n(39805);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{version:function(){return B},router:function(){return r},emitter:function(){return H},initialize:function(){return $},hydrate:function(){return eo}});let g=n(60005);n(48537);let y=g._(n(46915)),v=g._(n(49703)),b=n(49380),w=g._(n(81251)),_=n(81623),S=n(31246),k=n(15227),P=n(13501),E=n(24975),x=n(98551),C=n(20426),O=g._(n(29543)),N=g._(n(5289)),M=g._(n(84676)),R=n(74522),L=n(22406),j=n(6e4),T=n(80384),A=n(53207),z=n(65896),I=n(70377),D=n(65936),F=n(59213),U=g._(n(29152)),B="13.4.1",H=(0,w.default)(),W=e=>[].slice.call(e),q=!1;self.__next_require__=n;class V extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),r.isSsr&&(a.isFallback||a.nextExport&&((0,k.isDynamicRoute)(r.pathname)||location.search||q)||a.props&&a.props.__N_SSG&&(location.search||q))&&r.replace(r.pathname+"?"+String((0,P.assign)((0,P.urlQueryToSearchParams)(r.query),new URLSearchParams(location.search))),l,{_h:1,shallow:!a.isFallback&&!q}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function $(e){void 0===e&&(e={}),a=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=a,h=a.defaultLocale;let t=a.assetPrefix||"";if(n.p=""+t+"/_next/",(0,E.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:a.runtimeConfig||{}}),l=(0,x.getURL)(),(0,z.hasBasePath)(l)&&(l=(0,A.removeBasePath)(l)),a.scriptLoader){let{initScriptLoader:e}=n(80700);e(a.scriptLoader)}o=new N.default(a.buildId,t);let s=e=>{let[t,n]=e;return o.routeLoader.onEntrypoint(t,n)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(u=(0,O.default)()).getIsSsr=()=>r.isSsr,i=document.getElementById("__next"),{assetPrefix:t}}function Q(e,t){return y.default.createElement(e,t)}function G(e){var t;let{children:n}=e;return y.default.createElement(V,{fn:e=>K({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e))},y.default.createElement(I.AppRouterContext.Provider,{value:(0,D.adaptForAppRouterInstance)(r)},y.default.createElement(F.SearchParamsContext.Provider,{value:(0,D.adaptForSearchParams)(r)},y.default.createElement(D.PathnameContextProviderAdapter,{router:r,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t},y.default.createElement(_.RouterContext.Provider,{value:(0,L.makePublicRouterInstance)(r)},y.default.createElement(b.HeadManagerContext.Provider,{value:u},y.default.createElement(T.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}},n)))))))}let Y=e=>t=>{let n={...t,Component:p,err:a.err,router:r};return y.default.createElement(G,null,Q(e,n))};function K(e){let{App:t,err:i}=e;return console.error(i),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),o.loadPage("/_error").then(r=>{let{page:a,styleSheets:l}=r;return(null==s?void 0:s.Component)===a?Promise.resolve().then(()=>m._(n(6966))).then(r=>Promise.resolve().then(()=>m._(n(40846))).then(n=>(t=n.default,e.App=t,r))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:a,styleSheets:l}}).then(n=>{var o;let{ErrorComponent:u,styleSheets:s}=n,c=Y(t),f={Component:u,AppTree:c,router:r,ctx:{err:i,pathname:a.page,query:a.query,asPath:l,AppTree:c}};return Promise.resolve((null==(o=e.props)?void 0:o.err)?e.props:(0,x.loadGetInitialProps)(t,f)).then(t=>ea({...e,err:i,Component:u,styleSheets:s,props:t}))})}function X(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let J=null,Z=!0;function ee(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach(e=>performance.clearMarks(e))}function et(){x.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),d&&performance.getEntriesByName("Next.js-hydration").forEach(d),ee())}function en(){if(!x.ST)return;performance.mark("afterRender");let e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),d&&(performance.getEntriesByName("Next.js-render").forEach(d),performance.getEntriesByName("Next.js-route-change-to-render").forEach(d)),ee(),["Next.js-route-change-to-render","Next.js-render"].forEach(e=>performance.clearMeasures(e)))}function er(e){let{callbacks:t,children:n}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,M.default)(d)},[]),n}function ea(e){let t,{App:n,Component:a,props:l,err:o}=e,u="initial"in e?void 0:e.styleSheets;a=a||s.Component,l=l||s.props;let f={...l,Component:a,err:o,router:r};s=f;let d=!1,p=new Promise((e,n)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,n(e)}});function h(){t()}!function(){if(!u)return;let e=W(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map(e=>e.getAttribute("data-n-href"))),n=document.querySelector("noscript[data-n-css]"),r=null==n?void 0:n.getAttribute("data-n-css");u.forEach(e=>{let{href:n,text:a}=e;if(!t.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(a))}})}();let m=y.default.createElement(y.default.Fragment,null,y.default.createElement(X,{callback:function(){if(u&&!d){let e=new Set(u.map(e=>e.href)),t=W(document.querySelectorAll("style[data-n-href]")),n=t.map(e=>e.getAttribute("data-n-href"));for(let r=0;r{let{href:t}=e,n=document.querySelector('style[data-n-href="'+t+'"]');n&&(r.parentNode.insertBefore(n,r.nextSibling),r=n)}),W(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:n}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,n)})}}}),y.default.createElement(G,null,Q(n,f),y.default.createElement(C.Portal,{type:"next-route-announcer"},y.default.createElement(R.RouteAnnouncer,null))));return!function(e,t){x.ST&&performance.mark("beforeRender");let n=t(Z?et:en);if(J){let e=y.default.startTransition;e(()=>{J.render(n)})}else J=v.default.hydrateRoot(e,n,{onRecoverableError:U.default}),Z=!1}(i,e=>y.default.createElement(er,{callbacks:[e,h]},y.default.createElement(y.default.StrictMode,null,m))),p}async function el(e){if(e.err){await K(e);return}try{await ea(e)}catch(n){let t=(0,j.getProperError)(n);if(t.cancelled)throw t;await K({...e,err:t})}}async function eo(e){let t=a.err;try{let e=await o.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:n}=e;f=t,n&&n.reportWebVitals&&(d=e=>{let t,{id:r,name:a,startTime:l,value:o,duration:i,entryType:u,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:r||f,name:a,startTime:l||t,value:null==o?i:o,label:"mark"===u||"measure"===u?"custom":"web-vital"};c&&(d.attribution=c),n.reportWebVitals(d)});let r=await o.routeLoader.whenEntrypoint(a.page);if("error"in r)throw r.error;p=r.component}catch(e){t=(0,j.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(a.dynamicIds),r=(0,L.createRouter)(a.page,a.query,l,{initialProps:a.props,pageLoader:o,App:f,Component:p,wrapApp:Y,err:t,isFallback:!!a.isFallback,subscription:(e,t,n)=>el(Object.assign({},e,{App:t,scroll:n})),locale:a.locale,locales:a.locales,defaultLocale:h,domainLocales:a.domainLocales,isPreview:a.isPreview}),q=await r._initialMatchesMiddlewarePromise;let n={App:f,initial:!0,Component:p,props:a.props,err:t};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),el(n)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96085:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(66243);window.next={version:r.version,get router(){return r.router},emitter:r.emitter},(0,r.initialize)({}).then(()=>(0,r.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92947:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return l}});let r=n(62808),a=n(49731),l=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:l}=(0,a.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+l};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(50682);function a(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};e.digest!==r.NEXT_DYNAMIC_NO_SSR_CODE&&t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=n(60005),a=n(18112),l=n(2262),o=r._(n(96432)),i=n(71850),u=n(15227),s=n(59616),c=n(62808),f=n(70834);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:n,locale:r}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(n),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if("/"!==m[0])throw Error('Route name should start with a "/", got "'+m+'"');return(e=>{let t=(0,o.default)((0,c.removeTrailingSlash)((0,i.addLocale)(e,r)),".json");return(0,a.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,u.isDynamicRoute)(m)?(0,l.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84676:function(e,t,n){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let a=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let l=!1;function o(e){r&&r(e)}let i=e=>{if(r=e,!l)for(let e of(l=!0,a))try{let t;t||(t=n(96096)),t["on"+e](o)}catch(t){console.warn("Failed to track "+e+" web-vital",t)}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return l}});let r=n(46915),a=n(281),l=e=>{let{children:t,type:n}=e,[l,o]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=document.createElement(n);return document.body.appendChild(e),o(e),()=>{document.body.removeChild(e)}},[n]),l?(0,a.createPortal)(t,l):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53207:function(e,t,n){"use strict";function r(e){return(e=e.slice(0)).startsWith("/")||(e="/"+e),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(65896),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5246:function(e,t,n){"use strict";function r(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return r}}),n(49731),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12958:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74522:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RouteAnnouncer:function(){return i},default:function(){return u}});let r=n(60005),a=r._(n(46915)),l=n(22406),o={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},i=()=>{let{asPath:e}=(0,l.useRouter)(),[t,n]=a.default.useState(""),r=a.default.useRef(e);return a.default.useEffect(()=>{if(r.current!==e){if(r.current=e,document.title)n(document.title);else{var t;let r=document.querySelector("h1"),a=null!=(t=null==r?void 0:r.innerText)?t:null==r?void 0:r.textContent;n(a||e)}}},[e]),a.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:o},t)},u=i;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70834:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{markAssetError:function(){return i},isAssetError:function(){return u},getClientBuildManifest:function(){return f},createRouteLoader:function(){return p}}),n(60005),n(96432);let r=n(41998),a=n(12958);function l(e,t,n){let r,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let l=new Promise(e=>{r=e});return t.set(e,a={resolve:r,future:l}),n?n().then(e=>(r(e),e)).catch(n=>{throw t.delete(e),n}):l}let o=Symbol("ASSET_LOAD_ERROR");function i(e){return Object.defineProperty(e,o,{})}function u(e){return e&&o in e}let s=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}();function c(e,t,n){return new Promise((r,l)=>{let o=!1;e.then(e=>{o=!0,r(e)}).catch(l),(0,a.requestIdleCallback)(()=>setTimeout(()=>{o||l(n)},t))})}function f(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return c(e,3800,i(Error("Failed to load client build manifest")))}function d(e,t){return f().then(n=>{if(!(t in n))throw i(Error("Failed to lookup route: "+t));let a=n[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:a.filter(e=>e.endsWith(".js")).map(e=>(0,r.__unsafeCreateTrustedScriptURL)(e)),css:a.filter(e=>e.endsWith(".css"))}})}function p(e){let t=new Map,n=new Map,r=new Map,o=new Map;function u(e){{var t;let r=n.get(e.toString());return r||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(n.set(e.toString(),r=new Promise((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(i(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),r))}}function f(e){let t=r.get(e);return t||r.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw i(e)})),t}return{whenEntrypoint:e=>l(e,t),onEntrypoint(e,n){(n?Promise.resolve().then(()=>n()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(n=>{let r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),o.delete(e))})},loadRoute(n,r){return l(n,o,()=>{let a;return c(d(e,n).then(e=>{let{scripts:r,css:a}=e;return Promise.all([t.has(n)?[]:Promise.all(r.map(u)),Promise.all(a.map(f))])}).then(e=>this.whenEntrypoint(n).then(t=>({entrypoint:t,styles:e[1]}))),3800,i(Error("Route did not complete loading: "+n))).then(e=>{let{entrypoint:t,styles:n}=e,r=Object.assign({styles:n},t);return"error"in t?t:r}).catch(e=>{if(r)throw e;return{error:e}}).finally(()=>null==a?void 0:a())})},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():d(e,t).then(e=>Promise.all(s?e.scripts.map(e=>{var t,n,r;return t=e.toString(),n="script",new Promise((e,a)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();r=document.createElement("link"),n&&(r.as=n),r.rel="prefetch",r.crossOrigin=void 0,r.onload=e,r.onerror=()=>a(i(Error("Failed to prefetch: "+t))),r.href=t,document.head.appendChild(r)})}):[])).then(()=>{(0,a.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22406:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Router:function(){return l.default},default:function(){return p},withRouter:function(){return u.default},useRouter:function(){return h},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});let r=n(60005),a=r._(n(46915)),l=r._(n(41514)),o=n(81623),i=r._(n(6e4)),u=r._(n(47384)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return s.router}Object.defineProperty(s,"events",{get:()=>l.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get(){let t=d();return t[e]}})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{s.ready(()=>{l.default.events.on(e,function(){for(var t=arguments.length,n=Array(t),r=0;re()),s.readyCallbacks=[],s.router}function g(e){let t={};for(let n of c){if("object"==typeof e[n]){t[n]=Object.assign(Array.isArray(e[n])?[]:{},e[n]);continue}t[n]=e[n]}return t.events=l.default.events,f.forEach(n=>{t[n]=function(){for(var t=arguments.length,r=Array(t),a=0;a{let{src:t,id:n,onLoad:r=()=>{},onReady:a=null,dangerouslySetInnerHTML:l,children:o="",strategy:i="afterInteractive",onError:s}=e,p=n||t;if(p&&f.has(p))return;if(c.has(t)){f.add(p),c.get(t).then(r,s);return}let h=()=>{a&&a(),f.add(p)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),r&&r.call(this,t),h()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){s&&s(e)});for(let[n,r]of(l?(m.innerHTML=l.__html||"",h()):o?(m.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",h()):t&&(m.src=t,c.set(t,g)),Object.entries(e))){if(void 0===r||d.includes(n))continue;let e=u.DOMAttributeNames[n]||n.toLowerCase();m.setAttribute(e,r)}"worker"===i&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",i),document.body.appendChild(m)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,s.requestIdleCallback)(()=>p(e))}):p(e)}function m(e){e.forEach(h),function(){let e=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];e.forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}()}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:a=null,strategy:u="afterInteractive",onError:c,...d}=e,{updateScripts:h,scripts:m,getIsSsr:g,appDir:y,nonce:v}=(0,o.useContext)(i.HeadManagerContext),b=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||n;b.current||(a&&e&&f.has(e)&&a(),b.current=!0)},[a,t,n]);let w=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{!w.current&&("afterInteractive"===u?p(e):"lazyOnload"===u&&("complete"===document.readyState?(0,s.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,s.requestIdleCallback)(()=>p(e))})),w.current=!0)},[e,u]),("beforeInteractive"===u||"worker"===u)&&(h?(m[u]=(m[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:a,onError:c,...d}]),h(m)):g&&g()?f.add(t||n):g&&!g()&&p(e)),y){if("beforeInteractive"===u)return n?(l.default.preload(n,d.integrity?{as:"script",integrity:d.integrity}:{as:"script"}),o.default.createElement("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n])+")"}})):(d.dangerouslySetInnerHTML&&(d.children=d.dangerouslySetInnerHTML.__html,delete d.dangerouslySetInnerHTML),o.default.createElement("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...d}])+")"}}));"afterInteractive"===u&&n&&l.default.preload(n,d.integrity?{as:"script",integrity:d.integrity}:{as:"script"})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41998:function(e,t){"use strict";let n;function r(e){var t;return(null==(t=function(){if(void 0===n){var e;n=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return n}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(60005),a=r._(n(46915)),l=n(22406);function o(e){function t(t){return a.default.createElement(e,{router:(0,l.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40846:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(60005),a=r._(n(46915)),l=n(98551);async function o(e){let{Component:t,ctx:n}=e,r=await (0,l.loadGetInitialProps)(t,n);return{pageProps:r}}class i extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return a.default.createElement(e,t)}}i.origGetInitialProps=o,i.getInitialProps=o,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=n(60005),a=r._(n(46915)),l=r._(n(21198)),o={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function i(e){let{res:t,err:n}=e,r=t&&t.statusCode?t.statusCode:n?n.statusCode:404;return{statusCode:r}}let u={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};class s extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||o[e]||"An unexpected error has occurred";return a.default.createElement("div",{style:u.error},a.default.createElement(l.default,null,a.default.createElement("title",null,e?e+": "+n:"Application error: a client-side exception has occurred")),a.default.createElement("div",null,a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?a.default.createElement("h1",{className:"next-error-h1",style:u.h1},e):null,a.default.createElement("div",{style:u.desc},a.default.createElement("h2",{style:u.h2},this.props.title||e?n:a.default.createElement(a.default.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}s.displayName="ErrorPage",s.getInitialProps=i,s.origGetInitialProps=i,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return l}});let r=n(60005),a=r._(n(46915)),l=a.default.createContext({})},67619:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},70377:function(e,t,n){"use strict";var r,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{CacheStates:function(){return r},AppRouterContext:function(){return i},LayoutRouterContext:function(){return u},GlobalLayoutRouterContext:function(){return s},TemplateContext:function(){return c}});let l=n(60005),o=l._(n(46915));(a=r||(r={})).LAZY_INITIALIZED="LAZYINITIALIZED",a.DATA_FETCH="DATAFETCH",a.READY="READY";let i=o.default.createContext(null),u=o.default.createContext(null),s=o.default.createContext(null),c=o.default.createContext(null)},61903:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(60005),a=r._(n(32650)),l=n(75463);function o(){return crypto.getRandomValues(new Uint32Array(1))[0]}function i(){return{int32:o,quick:o}}class u{get seed(){return this._seed}set seed(e){this._seed=e,this._rng=i()}get random(){return this._rng}nextInt32(){return this._rng.int32()}saveAsJSON(){throw Error("not-implemented")}static fromJSON(e){throw Error("not-implemented")}constructor(){this._seed=(0,l.getDefaultSeed)(),this._rng=i(),this._hashing=new a.default}}},26490:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{encode:function(){return a},decode:function(){return l}});let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t=new Uint8Array(e),r,a=t.length,l="";for(r=0;r>2]+n[(3&t[r])<<4|t[r+1]>>4]+n[(15&t[r+1])<<2|t[r+2]>>6]+n[63&t[r+2]];return a%3==2?l=l.substring(0,l.length-1)+"=":a%3==1&&(l=l.substring(0,l.length-2)+"=="),l},l=e=>{let t=.75*e.length,n=e.length,a,l=0,o,i,u,s;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),f=new Uint8Array(c);for(a=0;a>4,f[l++]=(15&i)<<4|u>>2,f[l++]=(3&u)<<6|63&s;return c}},49061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(26490);class a{has(e){return(this.array[Math.floor(e/8)]&1<=0;e--){let t=this.array[e];if(t)return a.highBit(t)+8*e}return 0}bitCount(){let e=0;for(let t=0;t=0&&(n&e)!==n;)n>>>=1,t--;return t}static countBits(e){let t=1&e;for(;0!==e;)e>>>=1,t+=1&e;return t}constructor(e){let t=8-e%8;this.size=e+([0,8].includes(t)?0:t),this.array=new Uint8Array(Math.ceil(this.size/8))}}},61263:function(e,t){"use strict";function n(e,t){return Math.ceil(-(e*Math.log(t)/Math.pow(Math.log(2),2)))}function r(e,t){return Math.ceil(e/t*Math.log(2))}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{optimalFilterSize:function(){return n},optimalHashes:function(){return r}})},32650:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(60005),a=r._(n(40747)),l=n(75463);class o{doubleHashing(e,t,n,r){return Math.abs((t+e*n+Math.floor((e**3-e)/6))%r)}getDistinctIndexes(e,t,n,r){void 0===r&&(r=(0,l.getDefaultSeed)());let a=0,o=new Set,i=this.hashTwice(e,r);for(;o.sizet&&(r++,i=this.hashTwice(e,r))}return[...o.values()]}getIndexes(e,t,n,r){void 0===r&&(r=(0,l.getDefaultSeed)());let a=[],o=this.hashTwice(e,r);for(let e=0;ea.add(e)),a}get size(){return this._size}get length(){return this._filter.bitCount()}add(e){let t=this._hashing.getIndexes(e,this._size,this._nbHashes,this.seed);for(let e=0;e127&&!u&&(n=(e=unescape(encodeURIComponent(e))).charCodeAt(t),u=!0),o^=BigInt(n),o=BigInt.asUintN(a,o*i)}return o}},49380:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return l}});let r=n(60005),a=r._(n(46915)),l=a.default.createContext({})},21198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return c},default:function(){return h}});let r=n(60005),a=n(39805),l=a._(n(46915)),o=r._(n(68388)),i=n(76262),u=n(49380),s=n(67619);function c(e){void 0===e&&(e=!1);let t=[l.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(l.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(63743);let d=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(c(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return a=>{let l=!0,o=!1;if(a.key&&"number"!=typeof a.key&&a.key.indexOf("$")>0){o=!0;let t=a.key.slice(a.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(a.type){case"title":case"base":t.has(a.type)?l=!1:t.add(a.type);break;case"meta":for(let e=0,t=d.length;e{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:r})})}let h=function(e){let{children:t}=e,n=(0,l.useContext)(i.AmpStateContext),r=(0,l.useContext)(u.HeadManagerContext);return l.default.createElement(o.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,s.isInAmpMode)(n)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{SearchParamsContext:function(){return a},PathnameContext:function(){return l}});let r=n(46915),a=(0,r.createContext)(null),l=(0,r.createContext)(null)},33796:function(e,t){"use strict";function n(e,t){let n;let r=e.split("/");return(t||[]).some(t=>!!r[1]&&r[1].toLowerCase()===t.toLowerCase()&&(n=t,r.splice(1,1),e=r.join("/")||"/",!0)),{pathname:e,detectedLocale:n}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}})},80384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(60005),a=r._(n(46915)),l=n(8110),o=a.default.createContext(l.imageConfigDefault)},8110:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},96747:function(e,t){"use strict";function n(e){return Object.prototype.toString.call(e)}function r(e){if("[object Object]"!==n(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getObjectClassLabel:function(){return n},isPlainObject:function(){return r}})},50682:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NEXT_DYNAMIC_NO_SSR_CODE",{enumerable:!0,get:function(){return n}});let n="DYNAMIC_SERVER_USAGE"},81251:function(e,t){"use strict";function n(){let e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a{e(...r)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},5748:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return l}});let r=n(4535),a=n(55140);function l(e){let t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},55140:function(e,t){"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},81623:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return l}});let r=n(60005),a=r._(n(46915)),l=a.default.createContext(null)},65936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{adaptForAppRouterInstance:function(){return i},adaptForSearchParams:function(){return u},PathnameContextProviderAdapter:function(){return s}});let r=n(39805),a=r._(n(46915)),l=n(59213),o=n(4535);function i(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},push(t){e.push(t)},replace(t){e.replace(t)},prefetch(t){e.prefetch(t)}}}function u(e){return e.isReady&&e.query?function(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e);else void 0!==r&&t.append(n,r);return t}(e.query):new URLSearchParams}function s(e){let{children:t,router:n,...r}=e,i=(0,a.useRef)(r.isAutoExport),u=(0,a.useMemo)(()=>{let e;let t=i.current;if(t&&(i.current=!1),(0,o.isDynamicRoute)(n.pathname)&&(n.isFallback||t&&!n.isReady))return null;try{e=new URL(n.asPath,"http://f")}catch(e){return"/"}return e.pathname},[n.asPath,n.isFallback,n.isReady,n.pathname]);return a.default.createElement(l.PathnameContext.Provider,{value:u},t)}},41514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return $},matchesMiddleware:function(){return A},createKey:function(){return W}});let r=n(60005),a=n(39805),l=n(62808),o=n(70834),i=n(80700),u=a._(n(6e4)),s=n(5748),c=n(33796),f=r._(n(81251)),d=n(98551),p=n(15227),h=n(59616);n(43120);let m=n(52868),g=n(69656),y=n(4508);n(5761);let v=n(49731),b=n(71850),w=n(5246),_=n(53207),S=n(18112),k=n(65896),P=n(11631),E=n(23055),x=n(78375),C=n(21030),O=n(7403),N=n(39668),M=n(69954),R=n(38998),L=n(2262),j=n(31246);function T(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function A(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:n}=(0,v.parsePath)(e.asPath),r=(0,k.hasBasePath)(n)?(0,_.removeBasePath)(n):n,a=(0,S.addBasePath)((0,b.addLocale)(r,e.locale));return t.some(e=>new RegExp(e.regexp).test(a))}function z(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function I(e,t,n){let[r,a]=(0,R.resolveHref)(e,t,!0),l=(0,d.getLocationOrigin)(),o=r.startsWith(l),i=a&&a.startsWith(l);r=z(r),a=a?z(a):a;let u=o?r:(0,S.addBasePath)(r),s=n?z((0,R.resolveHref)(e,n)):a||r;return{url:u,as:i?s:(0,S.addBasePath)(s)}}function D(e,t){let n=(0,l.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(n))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function F(e){let t=await A(e);if(!t||!e.fetchData)return null;try{let t=await e.fetchData(),n=await function(e,t,n){let r={basePath:n.router.basePath,i18n:{locales:n.router.locales},trailingSlash:!1},a=t.headers.get("x-nextjs-rewrite"),i=a||t.headers.get("x-nextjs-matched-path"),u=t.headers.get("x-matched-path");if(!u||i||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(i=u),i){if(i.startsWith("/")){let t=(0,h.parseRelativeUrl)(i),u=(0,E.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),s=(0,l.removeTrailingSlash)(u.pathname);return Promise.all([n.router.pageLoader.getPageList(),(0,o.getClientBuildManifest)()]).then(r=>{let[l,{__rewrites:o}]=r,i=(0,b.addLocale)(u.pathname,u.locale);if((0,p.isDynamicRoute)(i)||!a&&l.includes((0,c.normalizeLocalePath)((0,_.removeBasePath)(i),n.router.locales).pathname)){let n=(0,E.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{parseData:!0});i=(0,S.addBasePath)(n.pathname),t.pathname=i}if(!l.includes(s)){let e=D(s,l);e!==s&&(s=e)}let f=l.includes(s)?s:D((0,c.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),n.router.locales).pathname,l);if((0,p.isDynamicRoute)(f)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(f))(i);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,v.parsePath)(e),u=(0,x.formatNextPathnameInfo)({...(0,E.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+u+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,v.parsePath)(s),t=(0,x.formatNextPathnameInfo)({...(0,E.getNextPathnameInfo)(e.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:n}}catch(e){return null}}let U=Symbol("SSG_DATA_NOT_FOUND");function B(e){try{return JSON.parse(e)}catch(e){return null}}function H(e){var t;let{dataHref:n,inflightCache:r,isPrefetch:a,hasMiddleware:l,isServerRender:i,parseJSON:u,persistCache:s,isBackground:c,unstable_skipClientCache:f}=e,{href:d}=new URL(n,window.location.href),p=e=>(function e(t,n,r){return fetch(t,{credentials:"same-origin",method:r.method||"GET",headers:Object.assign({},r.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&n>1&&a.status>=500?e(t,n-1,r):a)})(n,i?3:1,{headers:Object.assign({},a?{purpose:"prefetch"}:{},a&&l?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:n,response:t,text:"",json:{},cacheKey:d}:t.text().then(e=>{if(!t.ok){if(l&&[301,302,307,308].includes(t.status))return{dataHref:n,response:t,text:e,json:{},cacheKey:d};if(404===t.status){var r;if(null==(r=B(e))?void 0:r.notFound)return{dataHref:n,json:{notFound:U},response:t,text:e,cacheKey:d}}let a=Error("Failed to load static props");throw i||(0,o.markAssetError)(a),a}return{dataHref:n,json:u?B(e):null,response:t,text:e,cacheKey:d}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[d],e)).catch(e=>{throw f||delete r[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,o.markAssetError)(e),e});return f&&s?p({}).then(e=>(r[d]=Promise.resolve(e),e)):void 0!==r[d]?r[d]:r[d]=p(c?{method:"HEAD"}:{})}function W(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:n}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(n.asPath,n.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let V=e=>{let{route:t,router:n}=e,r=!1,a=n.clc=()=>{r=!0},l=()=>{if(r){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}a===n.clc&&(n.clc=null)};return l};class ${reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=I(this,e,t),this.change("pushState",e,t,n)}replace(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=I(this,e,t),this.change("replaceState",e,t,n)}async _bfl(e,t,n,r){{let u=!1,s=!1;for(let c of[e,t])if(c){let t=(0,l.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,S.addBasePath)((0,b.addLocale)(t,n||this.locale));if(t!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var a,o,i;for(let e of(u=u||!!(null==(a=this._bfl_s)?void 0:a.has(t))||!!(null==(o=this._bfl_s)?void 0:o.has(f)),[t,f])){let t=e.split("/");for(let e=0;!s&&e{})}}}}return!1}async change(e,t,n,r,a){var s,c,f,P,E,x,N,R,j;let z,F;if(!(0,O.isLocalURL)(t))return q({url:t,router:this}),!1;let B=1===r._h;B||r.shallow||await this._bfl(n,void 0,r.locale);let H=B||r._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(n).pathname,W={...this.state},V=!0!==this.isReady;this.isReady=!0;let Q=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let G=W.locale;d.ST&&performance.mark("routeChange");let{shallow:Y=!1,scroll:K=!0}=r,X={shallow:Y};this._inFlightRoute&&this.clc&&(Q||$.events.emit("routeChangeError",T(),this._inFlightRoute,X),this.clc(),this.clc=null),n=(0,S.addBasePath)((0,b.addLocale)((0,k.hasBasePath)(n)?(0,_.removeBasePath)(n):n,r.locale,this.defaultLocale));let J=(0,w.removeLocale)((0,k.hasBasePath)(n)?(0,_.removeBasePath)(n):n,W.locale);this._inFlightRoute=n;let Z=G!==W.locale;if(!B&&this.onlyAHashChange(J)&&!Z){W.asPath=J,$.events.emit("hashChangeStart",n,X),this.changeState(e,t,n,{...r,scroll:!1}),K&&this.scrollToHash(J);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,u.default)(e)&&e.cancelled&&$.events.emit("routeChangeError",e,J,X),e}return $.events.emit("hashChangeComplete",n,X),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:en}=ee;if(null==(s=this.components[et])?void 0:s.__appRouter)return q({url:n,router:this}),new Promise(()=>{});try{[z,{__rewrites:F}]=await Promise.all([this.pageLoader.getPageList(),(0,o.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:n,router:this}),!1}this.urlIsNew(J)||Z||(e="replaceState");let er=n;et=et?(0,l.removeTrailingSlash)((0,_.removeBasePath)(et)):et;let ea=(0,l.removeTrailingSlash)(et),el=n.startsWith("/")&&(0,h.parseRelativeUrl)(n).pathname,eo=!!(el&&ea!==el&&(!(0,p.isDynamicRoute)(ea)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(ea))(el))),ei=!r.shallow&&await A({asPath:n,locale:W.locale,router:this});if(B&&ei&&(H=!1),H&&"/_error"!==et&&(r._shouldResolveHref=!0,ee.pathname=D(et,z),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,S.addBasePath)(et),ei||(t=(0,y.formatWithValidation)(ee)))),!(0,O.isLocalURL)(n))return q({url:n,router:this}),!1;er=(0,w.removeLocale)((0,_.removeBasePath)(er),W.locale),ea=(0,l.removeTrailingSlash)(et);let eu=!1;if((0,p.isDynamicRoute)(ea)){let e=(0,h.parseRelativeUrl)(er),r=e.pathname,a=(0,g.getRouteRegex)(ea);eu=(0,m.getRouteMatcher)(a)(r);let l=ea===r,o=l?(0,L.interpolateAs)(ea,r,en):{};if(eu&&(!l||o.result))l?n=(0,y.formatWithValidation)(Object.assign({},e,{pathname:o.result,query:(0,M.omit)(en,o.params)})):Object.assign(en,eu);else{let e=Object.keys(a.groups).filter(e=>!en[e]&&!a.groups[e].optional);if(e.length>0&&!ei)throw Error((l?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+r+") is incompatible with the `href` value ("+ea+"). ")+"Read more: https://nextjs.org/docs/messages/"+(l?"href-interpolation-failed":"incompatible-href-as"))}}B||$.events.emit("routeChangeStart",n,X);let es="/404"===this.pathname||"/_error"===this.pathname;try{let l=await this.getRouteInfo({route:ea,pathname:et,query:en,as:n,resolvedAs:er,routeProps:X,locale:W.locale,isPreview:W.isPreview,hasMiddleware:ei,unstable_skipClientCache:r.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:eo});if(B||r.shallow||await this._bfl(n,"resolvedAs"in l?l.resolvedAs:void 0,W.locale),"route"in l&&ei){ea=et=l.route||ea,X.shallow||(en=Object.assign({},l.query||{},en));let e=(0,k.hasBasePath)(ee.pathname)?(0,_.removeBasePath)(ee.pathname):ee.pathname;if(eu&&et!==e&&Object.keys(eu).forEach(e=>{eu&&en[e]===eu[e]&&delete en[e]}),(0,p.isDynamicRoute)(et)){let e=!X.shallow&&l.resolvedAs?l.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(n,location.href).pathname,W.locale),!0),t=e;(0,k.hasBasePath)(t)&&(t=(0,_.removeBasePath)(t));let r=(0,g.getRouteRegex)(et),a=(0,m.getRouteMatcher)(r)(new URL(t,location.href).pathname);a&&Object.assign(en,a)}}if("type"in l){if("redirect-internal"===l.type)return this.change(e,l.newUrl,l.newAs,r);return q({url:l.destination,router:this}),new Promise(()=>{})}let o=l.Component;if(o&&o.unstable_scriptLoader){let e=[].concat(o.unstable_scriptLoader());e.forEach(e=>{(0,i.handleClientScriptLoad)(e.props)})}if((l.__N_SSG||l.__N_SSP)&&l.props){if(l.props.pageProps&&l.props.pageProps.__N_REDIRECT){r.locale=!1;let t=l.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==l.props.pageProps.__N_REDIRECT_BASE_PATH){let n=(0,h.parseRelativeUrl)(t);n.pathname=D(n.pathname,z);let{url:a,as:l}=I(this,t,t);return this.change(e,a,l,r)}return q({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!l.props.__N_PREVIEW,l.props.notFound===U){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(l=await this.getRouteInfo({route:e,pathname:e,query:en,as:n,resolvedAs:er,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in l)throw Error("Unexpected middleware effect on /404")}}B&&"/_error"===this.pathname&&(null==(c=self.__NEXT_DATA__.props)?void 0:null==(f=c.pageProps)?void 0:f.statusCode)===500&&(null==(P=l.props)?void 0:P.pageProps)&&(l.props.pageProps.statusCode=500);let s=r.shallow&&W.route===(null!=(E=l.route)?E:ea),d=null!=(x=r.scroll)?x:!B&&!s,y=null!=a?a:d?{x:0,y:0}:null,v={...W,route:ea,pathname:et,query:en,asPath:J,isFallback:!1};if(B&&es){if(l=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:en,as:n,resolvedAs:er,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in l)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(N=self.__NEXT_DATA__.props)?void 0:null==(R=N.pageProps)?void 0:R.statusCode)===500&&(null==(j=l.props)?void 0:j.pageProps)&&(l.props.pageProps.statusCode=500);try{await this.set(v,l,y)}catch(e){throw(0,u.default)(e)&&e.cancelled&&$.events.emit("routeChangeError",e,J,X),e}return!0}$.events.emit("beforeHistoryChange",n,X),this.changeState(e,t,n,r);let w=B&&!y&&!V&&!Z&&(0,C.compareRouterStates)(v,this.state);if(!w){try{await this.set(v,l,y)}catch(e){if(e.cancelled)l.error=l.error||e;else throw e}if(l.error)throw B||$.events.emit("routeChangeError",l.error,J,X),l.error;B||$.events.emit("routeChangeComplete",n,X),d&&/#.+$/.test(n)&&this.scrollToHash(n)}return!0}catch(e){if((0,u.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r){void 0===r&&(r={}),("pushState"!==e||(0,d.getURL)()!==n)&&(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,key:this._key="pushState"!==e?this._key:W()},"",n))}async handleRouteInfoError(e,t,n,r,a,l){if(console.error(e),e.cancelled)throw e;if((0,o.isAssetError)(e)||l)throw $.events.emit("routeChangeError",e,r,a),q({url:r,router:this}),T();try{let r;let{page:a,styleSheets:l}=await this.fetchComponent("/_error"),o={props:r,Component:a,styleSheets:l,err:e,error:e};if(!o.props)try{o.props=await this.getInitialProps(a,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),o.props={}}return o}catch(e){return this.handleRouteInfoError((0,u.default)(e)?e:Error(e+""),t,n,r,a,!0)}}async getRouteInfo(e){let{route:t,pathname:n,query:r,as:a,resolvedAs:o,routeProps:i,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:g}=e,v=t;try{var b,w,S,k;let e=V({route:v,router:this}),t=this.components[v];if(i.shallow&&t&&this.route===v)return t;f&&(t=void 0);let u=!t||"initial"in t?void 0:t,E={dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:n,query:r}),skipInterpolation:!0,asPath:g?"/404":o,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},x=h&&!m?null:await F({fetchData:()=>H(E),asPath:g?"/404":o,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(x&&("/_error"===n||"/404"===n)&&(x.effect=void 0),h&&(x?x.json=self.__NEXT_DATA__.props:x={json:self.__NEXT_DATA__.props}),e(),(null==x?void 0:null==(b=x.effect)?void 0:b.type)==="redirect-internal"||(null==x?void 0:null==(w=x.effect)?void 0:w.type)==="redirect-external")return x.effect;if((null==x?void 0:null==(S=x.effect)?void 0:S.type)==="rewrite"){let e=(0,l.removeTrailingSlash)(x.effect.resolvedHref),a=await this.pageLoader.getPageList();if((!h||a.includes(e))&&(v=e,n=x.effect.resolvedHref,r={...r,...x.effect.parsedAs.query},o=(0,_.removeBasePath)((0,c.normalizeLocalePath)(x.effect.parsedAs.pathname,this.locales).pathname),t=this.components[v],i.shallow&&t&&this.route===v&&!f))return{...t,route:v}}if((0,P.isAPIRoute)(v))return q({url:a,router:this}),new Promise(()=>{});let C=u||await this.fetchComponent(v).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),O=null==x?void 0:null==(k=x.response)?void 0:k.headers.get("x-middleware-skip"),N=C.__N_SSG||C.__N_SSP;O&&(null==x?void 0:x.dataHref)&&delete this.sdc[x.dataHref];let{props:M,cacheKey:R}=await this._getData(async()=>{if(N){if((null==x?void 0:x.json)&&!O)return{cacheKey:x.cacheKey,props:x.json};let e=(null==x?void 0:x.dataHref)?x.dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:n,query:r}),asPath:o,locale:s}),t=await H({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:O?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(C.Component,{pathname:n,query:r,asPath:a,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return C.__N_SSP&&E.dataHref&&R&&delete this.sdc[R],this.isPreview||!C.__N_SSG||h||H(Object.assign({},E,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),M.pageProps=Object.assign({},M.pageProps),C.props=M,C.route=v,C.query=r,C.resolvedAs=o,this.components[v]=C,C}catch(e){return this.handleRouteInfoError((0,u.getProperError)(e),n,r,a,i)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,n]=this.asPath.split("#"),[r,a]=e.split("#");return!!a&&t===r&&n===a||t===r&&n!==a}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){(0,j.handleSmoothScroll)(()=>window.scrollTo(0,0));return}let n=decodeURIComponent(t),r=document.getElementById(n);if(r){(0,j.handleSmoothScroll)(()=>r.scrollIntoView());return}let a=document.getElementsByName(n)[0];a&&(0,j.handleSmoothScroll)(()=>a.scrollIntoView())}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,n){if(void 0===t&&(t=e),void 0===n&&(n={}),(0,N.isBot)(window.navigator.userAgent))return;let r=(0,h.parseRelativeUrl)(e),a=r.pathname,{pathname:o,query:i}=r,u=o,s=await this.pageLoader.getPageList(),c=t,f=void 0!==n.locale?n.locale||void 0:this.locale,d=await A({asPath:t,locale:f,router:this});r.pathname=D(r.pathname,s),(0,p.isDynamicRoute)(r.pathname)&&(o=r.pathname,r.pathname=o,Object.assign(i,(0,m.getRouteMatcher)((0,g.getRouteRegex)(r.pathname))((0,v.parsePath)(t).pathname)||{}),d||(e=(0,y.formatWithValidation)(r)));let b=await F({fetchData:()=>H({dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:u,query:i}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(r.pathname=b.effect.resolvedHref,o=b.effect.resolvedHref,i={...i,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,y.formatWithValidation)(r)),(null==b?void 0:b.effect.type)==="redirect-external")return;let w=(0,l.removeTrailingSlash)(o);await this._bfl(t,c,n.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(w).then(t=>!!t&&H({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[n.priority?"loadPage":"prefetch"](w)])}async fetchComponent(e){let t=V({route:e,router:this});try{let n=await this.pageLoader.loadPage(e);return t(),n}catch(e){throw t(),e}}_getData(e){let t=!1,n=()=>{t=!0};return this.clc=n,e().then(e=>{if(n===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return H({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,(0,d.loadGetInitialProps)(n,{AppTree:r,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:a,pageLoader:o,App:i,wrapApp:u,Component:s,err:c,subscription:f,isFallback:m,locale:g,locales:v,defaultLocale:b,domainLocales:w,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=W(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:n}=this;this.isFirstPopStateEvent=!1;let r=e.state;if(!r){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,d.getURL)());return}if(r.__NA){window.location.reload();return}if(!r.__N||n&&this.locale===r.options.locale&&r.as===this.asPath)return;let{url:a,as:l,options:o,key:i}=r;this._key=i;let{pathname:u}=(0,h.parseRelativeUrl)(a);(!this.isSsr||l!==(0,S.addBasePath)(this.asPath)||u!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(r))&&this.change("replaceState",a,l,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),t)};let k=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[k]={Component:s,initial:!0,props:a,err:c,__N_SSG:a&&a.__N_SSG,__N_SSP:a&&a.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]};{let{BloomFilter:e}=n(71809),t={bitset:{size:24,content:"hTIK"},hashes:7,size:20},r={bitset:{size:0,content:""},hashes:null,size:0};(null==t?void 0:t.hashes)&&(this._bfl_s=new e(t.size,t.hashes),this._bfl_s.import(t)),(null==r?void 0:r.hashes)&&(this._bfl_d=new e(r.size,r.hashes),this._bfl_d.import(r))}this.events=$.events,this.pageLoader=o;let P=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=f,this.clc=null,this._wrapApp=u,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!P&&!self.location.search),this.state={route:k,pathname:e,query:t,asPath:P?e:r,isPreview:!!_,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:g},a=(0,d.getURL)();this._initialMatchesMiddlewarePromise=A({router:this,locale:g,asPath:a}).then(l=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",l?a:(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),a,n),l))}window.addEventListener("popstate",this.onPopState)}}$.events=(0,f.default)()},99644:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return l}});let r=n(41651),a=n(35134);function l(e,t,n,l){if(!t||t===n)return e;let o=e.toLowerCase();return!l&&((0,a.pathHasPrefix)(o,"/api")||(0,a.pathHasPrefix)(o,"/"+t.toLowerCase()))?e:(0,r.addPathPrefix)(e,"/"+t)}},41651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return a}});let r=n(49731);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:a,hash:l}=(0,r.parsePath)(e);return""+t+n+a+l}},21909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return a}});let r=n(49731);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:a,hash:l}=(0,r.parsePath)(e);return""+n+t+a+l}},21030:function(e,t){"use strict";function n(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=n.length;r--;){let a=n[r];if("query"===a){let n=Object.keys(e.query);if(n.length!==Object.keys(t.query).length)return!1;for(let r=n.length;r--;){let a=n[r];if(!t.query.hasOwnProperty(a)||e.query[a]!==t.query[a])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return n}})},78375:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return i}});let r=n(62808),a=n(41651),l=n(21909),o=n(99644);function i(e){let t=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,r.removeTrailingSlash)(t)),e.buildId&&(t=(0,l.addPathSuffix)((0,a.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,a.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,l.addPathSuffix)(t,"/"):(0,r.removeTrailingSlash)(t)}},4508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},urlObjectKeys:function(){return i},formatWithValidation:function(){return u}});let r=n(39805),a=r._(n(13501)),l=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",o=e.pathname||"",i=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||l.test(r))&&!1!==s?(s="//"+(s||""),o&&"/"!==o[0]&&(o="/"+o)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+r+s+(o=o.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},96432:function(e,t){"use strict";function n(e,t){void 0===t&&(t="");let n="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e;return n+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},23055:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let r=n(33796),a=n(49548),l=n(35134);function o(e,t){var n,o,i;let{basePath:u,i18n:s,trailingSlash:c}=null!=(n=t.nextConfig)?n:{},f={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};if(u&&(0,l.pathHasPrefix)(f.pathname,u)&&(f.pathname=(0,a.removePathPrefix)(f.pathname,u),f.basePath=u),!0===t.parseData&&f.pathname.startsWith("/_next/data/")&&f.pathname.endsWith(".json")){let e=f.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];f.pathname="index"!==e[1]?"/"+e.slice(1).join("/"):"/",f.buildId=t}if(t.i18nProvider){let e=t.i18nProvider.analyze(f.pathname);f.locale=e.detectedLocale,f.pathname=null!=(o=e.pathname)?o:f.pathname}else if(s){let e=(0,r.normalizeLocalePath)(f.pathname,s.locales);f.locale=e.detectedLocale,f.pathname=null!=(i=e.pathname)?i:f.pathname}return f}},31246:function(e,t){"use strict";function n(e,t){void 0===t&&(t={});let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},4535:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return a.isDynamicRoute}});let r=n(85335),a=n(15227)},2262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return l}});let r=n(52868),a=n(69656);function l(e,t,n){let l="",o=(0,a.getRouteRegex)(e),i=o.groups,u=(t!==e?(0,r.getRouteMatcher)(o)(t):"")||n;l=e;let s=Object.keys(i);return s.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=i[e],a="["+(n?"...":"")+e+"]";return r&&(a=(t?"":"/")+"["+a+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(l=l.replace(a,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(l=""),{params:s,result:l}}},39668:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},15227:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});let n=/\/\[[^/]+?\](?=\/|$)/;function r(e){return n.test(e)}},7403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return l}});let r=n(98551),a=n(65896);function l(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,a.hasBasePath)(n.pathname)}catch(e){return!1}}},69954:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},49731:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},59616:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return l}});let r=n(98551),a=n(13501);function l(e,t){let n=new URL((0,r.getLocationOrigin)()),l=t?new URL(t,n):e.startsWith(".")?new URL(window.location.href):n,{pathname:o,searchParams:i,search:u,hash:s,href:c,origin:f}=new URL(e,l);if(f!==n.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:o,query:(0,a.searchParamsToUrlQuery)(i),search:u,hash:s,href:c.slice(n.origin.length)}}},35134:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return a}});let r=n(49731);function a(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},13501:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,a]=e;Array.isArray(a)?a.forEach(e=>t.append(n,r(e))):t.set(n,r(a))}),t}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return a},assign:function(){return l}})},49548:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return a}});let r=n(35134);function a(e,t){if(!(0,r.pathHasPrefix)(e,t))return e;let n=e.slice(t.length);return n.startsWith("/")?n:"/"+n}},62808:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},38998:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(13501),a=n(4508),l=n(69954),o=n(98551),i=n(92947),u=n(7403),s=n(15227),c=n(2262);function f(e,t,n){let f;let d="string"==typeof t?t:(0,a.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d,m=h.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,o.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:o,params:i}=(0,c.interpolateAs)(e.pathname,e.pathname,n);o&&(t=(0,a.formatWithValidation)({pathname:o,hash:e.hash,query:(0,l.omit)(n,i)}))}let o=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[o,t||o]:o}catch(e){return n?[d]:d}}},52868:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let r=n(98551);function a(e){let{re:t,groups:n}=e;return e=>{let a=t.exec(e);if(!a)return!1;let l=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},o={};return Object.keys(n).forEach(e=>{let t=n[e],r=a[t.pos];void 0!==r&&(o[e]=~r.indexOf("/")?r.split("/").map(e=>l(e)):t.repeat?[l(r)]:l(r))}),o}}},69656:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return c},getNamedMiddlewareRegex:function(){return f}});let r=n(38037),a=n(62808),l="nxtP";function o(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function i(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),n={},l=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,r.escapeStringRegexp)(e);{let{key:t,optional:r,repeat:a}=o(e.slice(1,-1));return n[t]={pos:l++,repeat:a,optional:r},a?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=i(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e,t){let n,i;let u=(0,a.removeTrailingSlash)(e).slice(1).split("/"),s=(n=97,i=1,()=>{let e="";for(let t=0;t122&&(i++,n=97);return e}),c={};return{namedParameterizedRoute:u.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,r.escapeStringRegexp)(e);{let{key:n,optional:r,repeat:a}=o(e.slice(1,-1)),i=n.replace(/\W/g,"");t&&(i=""+l+i);let u=!1;return(0===i.length||i.length>30)&&(u=!0),isNaN(parseInt(i.slice(0,1)))||(u=!0),u&&(i=s()),t?c[i]=""+l+n:c[i]=""+n,a?r?"(?:/(?<"+i+">.+?))?":"/(?<"+i+">.+?)":"/(?<"+i+">[^/]+?)"}}).join(""),routeKeys:c}}function c(e,t){let n=s(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=i(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:a}=s(e,!1);return{namedRegex:"^"+a+(r?"(?:(/.*)?)":"")+"$"}}},85335:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let a=e[0];if(a.startsWith("[")&&a.endsWith("]")){let n=a.slice(1,-1),o=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),o=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function l(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(o){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');l(this.optionalRestSlugName,n),this.optionalRestSlugName=n,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');l(this.restSlugName,n),this.restSlugName=n,a="[...]"}}else{if(o)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');l(this.slugName,n),this.slugName=n,a="[]"}}this.children.has(a)||this.children.set(a,new n),this.children.get(a)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},24975:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return r},setConfig:function(){return a}});let r=()=>n;function a(e){n=e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(39805),a=r._(n(46915)),l=a.useLayoutEffect,o=a.useEffect;function i(e){let{headManager:t,reduceComponentsToState:n}=e;function r(){if(t&&t.mountedInstances){let r=a.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(r,e))}}return l(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),l(()=>(t&&(t._pendingUpdate=r),()=>{t&&(t._pendingUpdate=r)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},98551:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return i},getDisplayName:function(){return u},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return v}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,a=Array(r),l=0;la.test(e);function o(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function i(){let{href:e}=window.location,t=o();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?"),n=t[0];return n.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r){let t='"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.';throw Error(t)}return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},63743:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},75765:function(e,t,n){"use strict";/** +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{48537:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})})},18112:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return l}});let r=n(41651),a=n(92947);function l(e,t){return(0,a.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71850:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(92947);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let r=t.title?t.title[0]:null,a="";if(r){let{children:e}=r.props;a="string"==typeof e?e:Array.isArray(e)?e.join(""):""}a!==document.title&&(document.title=a),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],r=n.querySelector("meta[name=next-head-count]"),o=Number(r.content),i=[];for(let t=0,n=r.previousElementSibling;t{for(let t=0,n=i.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>n.insertBefore(e,r)),r.content=(o-i.length+s.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66243:function(e,t,n){"use strict";let r,a,l,o,i,u,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=n(39805);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{version:function(){return B},router:function(){return r},emitter:function(){return H},initialize:function(){return $},hydrate:function(){return eo}});let g=n(60005);n(48537);let y=g._(n(46915)),v=g._(n(49703)),b=n(49380),w=g._(n(81251)),_=n(81623),S=n(31246),k=n(15227),P=n(13501),E=n(24975),x=n(98551),C=n(20426),O=g._(n(29543)),N=g._(n(5289)),M=g._(n(84676)),R=n(74522),L=n(22406),j=n(6e4),T=n(80384),A=n(53207),z=n(65896),I=n(70377),D=n(65936),F=n(59213),U=g._(n(29152)),B="13.4.1",H=(0,w.default)(),W=e=>[].slice.call(e),q=!1;self.__next_require__=n;class V extends y.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),r.isSsr&&(a.isFallback||a.nextExport&&((0,k.isDynamicRoute)(r.pathname)||location.search||q)||a.props&&a.props.__N_SSG&&(location.search||q))&&r.replace(r.pathname+"?"+String((0,P.assign)((0,P.urlQueryToSearchParams)(r.query),new URLSearchParams(location.search))),l,{_h:1,shallow:!a.isFallback&&!q}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function $(e){void 0===e&&(e={}),a=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=a,h=a.defaultLocale;let t=a.assetPrefix||"";if(n.p=""+t+"/_next/",(0,E.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:a.runtimeConfig||{}}),l=(0,x.getURL)(),(0,z.hasBasePath)(l)&&(l=(0,A.removeBasePath)(l)),a.scriptLoader){let{initScriptLoader:e}=n(80700);e(a.scriptLoader)}o=new N.default(a.buildId,t);let s=e=>{let[t,n]=e;return o.routeLoader.onEntrypoint(t,n)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(u=(0,O.default)()).getIsSsr=()=>r.isSsr,i=document.getElementById("__next"),{assetPrefix:t}}function Q(e,t){return y.default.createElement(e,t)}function G(e){var t;let{children:n}=e;return y.default.createElement(V,{fn:e=>K({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e))},y.default.createElement(I.AppRouterContext.Provider,{value:(0,D.adaptForAppRouterInstance)(r)},y.default.createElement(F.SearchParamsContext.Provider,{value:(0,D.adaptForSearchParams)(r)},y.default.createElement(D.PathnameContextProviderAdapter,{router:r,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t},y.default.createElement(_.RouterContext.Provider,{value:(0,L.makePublicRouterInstance)(r)},y.default.createElement(b.HeadManagerContext.Provider,{value:u},y.default.createElement(T.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}},n)))))))}let Y=e=>t=>{let n={...t,Component:p,err:a.err,router:r};return y.default.createElement(G,null,Q(e,n))};function K(e){let{App:t,err:i}=e;return console.error(i),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),o.loadPage("/_error").then(r=>{let{page:a,styleSheets:l}=r;return(null==s?void 0:s.Component)===a?Promise.resolve().then(()=>m._(n(6966))).then(r=>Promise.resolve().then(()=>m._(n(40846))).then(n=>(t=n.default,e.App=t,r))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:a,styleSheets:l}}).then(n=>{var o;let{ErrorComponent:u,styleSheets:s}=n,c=Y(t),f={Component:u,AppTree:c,router:r,ctx:{err:i,pathname:a.page,query:a.query,asPath:l,AppTree:c}};return Promise.resolve((null==(o=e.props)?void 0:o.err)?e.props:(0,x.loadGetInitialProps)(t,f)).then(t=>ea({...e,err:i,Component:u,styleSheets:s,props:t}))})}function X(e){let{callback:t}=e;return y.default.useLayoutEffect(()=>t(),[t]),null}let J=null,Z=!0;function ee(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach(e=>performance.clearMarks(e))}function et(){x.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),d&&performance.getEntriesByName("Next.js-hydration").forEach(d),ee())}function en(){if(!x.ST)return;performance.mark("afterRender");let e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),d&&(performance.getEntriesByName("Next.js-render").forEach(d),performance.getEntriesByName("Next.js-route-change-to-render").forEach(d)),ee(),["Next.js-route-change-to-render","Next.js-render"].forEach(e=>performance.clearMeasures(e)))}function er(e){let{callbacks:t,children:n}=e;return y.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),y.default.useEffect(()=>{(0,M.default)(d)},[]),n}function ea(e){let t,{App:n,Component:a,props:l,err:o}=e,u="initial"in e?void 0:e.styleSheets;a=a||s.Component,l=l||s.props;let f={...l,Component:a,err:o,router:r};s=f;let d=!1,p=new Promise((e,n)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,n(e)}});function h(){t()}!function(){if(!u)return;let e=W(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map(e=>e.getAttribute("data-n-href"))),n=document.querySelector("noscript[data-n-css]"),r=null==n?void 0:n.getAttribute("data-n-css");u.forEach(e=>{let{href:n,text:a}=e;if(!t.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(a))}})}();let m=y.default.createElement(y.default.Fragment,null,y.default.createElement(X,{callback:function(){if(u&&!d){let e=new Set(u.map(e=>e.href)),t=W(document.querySelectorAll("style[data-n-href]")),n=t.map(e=>e.getAttribute("data-n-href"));for(let r=0;r{let{href:t}=e,n=document.querySelector('style[data-n-href="'+t+'"]');n&&(r.parentNode.insertBefore(n,r.nextSibling),r=n)}),W(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:n}=e.scroll;(0,S.handleSmoothScroll)(()=>{window.scrollTo(t,n)})}}}),y.default.createElement(G,null,Q(n,f),y.default.createElement(C.Portal,{type:"next-route-announcer"},y.default.createElement(R.RouteAnnouncer,null))));return!function(e,t){x.ST&&performance.mark("beforeRender");let n=t(Z?et:en);if(J){let e=y.default.startTransition;e(()=>{J.render(n)})}else J=v.default.hydrateRoot(e,n,{onRecoverableError:U.default}),Z=!1}(i,e=>y.default.createElement(er,{callbacks:[e,h]},y.default.createElement(y.default.StrictMode,null,m))),p}async function el(e){if(e.err){await K(e);return}try{await ea(e)}catch(n){let t=(0,j.getProperError)(n);if(t.cancelled)throw t;await K({...e,err:t})}}async function eo(e){let t=a.err;try{let e=await o.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:n}=e;f=t,n&&n.reportWebVitals&&(d=e=>{let t,{id:r,name:a,startTime:l,value:o,duration:i,entryType:u,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:r||f,name:a,startTime:l||t,value:null==o?i:o,label:"mark"===u||"measure"===u?"custom":"web-vital"};c&&(d.attribution=c),n.reportWebVitals(d)});let r=await o.routeLoader.whenEntrypoint(a.page);if("error"in r)throw r.error;p=r.component}catch(e){t=(0,j.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(a.dynamicIds),r=(0,L.createRouter)(a.page,a.query,l,{initialProps:a.props,pageLoader:o,App:f,Component:p,wrapApp:Y,err:t,isFallback:!!a.isFallback,subscription:(e,t,n)=>el(Object.assign({},e,{App:t,scroll:n})),locale:a.locale,locales:a.locales,defaultLocale:h,domainLocales:a.domainLocales,isPreview:a.isPreview}),q=await r._initialMatchesMiddlewarePromise;let n={App:f,initial:!0,Component:p,props:a.props,err:t};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),el(n)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96085:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(66243);window.next={version:r.version,get router(){return r.router},emitter:r.emitter},(0,r.initialize)({}).then(()=>(0,r.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92947:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return l}});let r=n(62808),a=n(49731),l=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:l}=(0,a.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+l};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(50682);function a(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};e.digest!==r.NEXT_DYNAMIC_NO_SSR_CODE&&t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=n(60005),a=n(18112),l=n(2262),o=r._(n(96432)),i=n(71850),u=n(15227),s=n(59616),c=n(62808),f=n(70834);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:n,locale:r}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(n),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if("/"!==m[0])throw Error('Route name should start with a "/", got "'+m+'"');return(e=>{let t=(0,o.default)((0,c.removeTrailingSlash)((0,i.addLocale)(e,r)),".json");return(0,a.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,u.isDynamicRoute)(m)?(0,l.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84676:function(e,t,n){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let a=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let l=!1;function o(e){r&&r(e)}let i=e=>{if(r=e,!l)for(let e of(l=!0,a))try{let t;t||(t=n(96096)),t["on"+e](o)}catch(t){console.warn("Failed to track "+e+" web-vital",t)}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return l}});let r=n(46915),a=n(281),l=e=>{let{children:t,type:n}=e,[l,o]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=document.createElement(n);return document.body.appendChild(e),o(e),()=>{document.body.removeChild(e)}},[n]),l?(0,a.createPortal)(t,l):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53207:function(e,t,n){"use strict";function r(e){return(e=e.slice(0)).startsWith("/")||(e="/"+e),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(65896),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5246:function(e,t,n){"use strict";function r(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return r}}),n(49731),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12958:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74522:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RouteAnnouncer:function(){return i},default:function(){return u}});let r=n(60005),a=r._(n(46915)),l=n(22406),o={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},i=()=>{let{asPath:e}=(0,l.useRouter)(),[t,n]=a.default.useState(""),r=a.default.useRef(e);return a.default.useEffect(()=>{if(r.current!==e){if(r.current=e,document.title)n(document.title);else{var t;let r=document.querySelector("h1"),a=null!=(t=null==r?void 0:r.innerText)?t:null==r?void 0:r.textContent;n(a||e)}}},[e]),a.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:o},t)},u=i;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70834:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{markAssetError:function(){return i},isAssetError:function(){return u},getClientBuildManifest:function(){return f},createRouteLoader:function(){return p}}),n(60005),n(96432);let r=n(41998),a=n(12958);function l(e,t,n){let r,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let l=new Promise(e=>{r=e});return t.set(e,a={resolve:r,future:l}),n?n().then(e=>(r(e),e)).catch(n=>{throw t.delete(e),n}):l}let o=Symbol("ASSET_LOAD_ERROR");function i(e){return Object.defineProperty(e,o,{})}function u(e){return e&&o in e}let s=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}();function c(e,t,n){return new Promise((r,l)=>{let o=!1;e.then(e=>{o=!0,r(e)}).catch(l),(0,a.requestIdleCallback)(()=>setTimeout(()=>{o||l(n)},t))})}function f(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return c(e,3800,i(Error("Failed to load client build manifest")))}function d(e,t){return f().then(n=>{if(!(t in n))throw i(Error("Failed to lookup route: "+t));let a=n[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:a.filter(e=>e.endsWith(".js")).map(e=>(0,r.__unsafeCreateTrustedScriptURL)(e)),css:a.filter(e=>e.endsWith(".css"))}})}function p(e){let t=new Map,n=new Map,r=new Map,o=new Map;function u(e){{var t;let r=n.get(e.toString());return r||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(n.set(e.toString(),r=new Promise((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(i(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),r))}}function f(e){let t=r.get(e);return t||r.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw i(e)})),t}return{whenEntrypoint:e=>l(e,t),onEntrypoint(e,n){(n?Promise.resolve().then(()=>n()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(n=>{let r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),o.delete(e))})},loadRoute(n,r){return l(n,o,()=>{let a;return c(d(e,n).then(e=>{let{scripts:r,css:a}=e;return Promise.all([t.has(n)?[]:Promise.all(r.map(u)),Promise.all(a.map(f))])}).then(e=>this.whenEntrypoint(n).then(t=>({entrypoint:t,styles:e[1]}))),3800,i(Error("Route did not complete loading: "+n))).then(e=>{let{entrypoint:t,styles:n}=e,r=Object.assign({styles:n},t);return"error"in t?t:r}).catch(e=>{if(r)throw e;return{error:e}}).finally(()=>null==a?void 0:a())})},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():d(e,t).then(e=>Promise.all(s?e.scripts.map(e=>{var t,n,r;return t=e.toString(),n="script",new Promise((e,a)=>{if(document.querySelector('\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]'))return e();r=document.createElement("link"),n&&(r.as=n),r.rel="prefetch",r.crossOrigin=void 0,r.onload=e,r.onerror=()=>a(i(Error("Failed to prefetch: "+t))),r.href=t,document.head.appendChild(r)})}):[])).then(()=>{(0,a.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22406:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Router:function(){return l.default},default:function(){return p},withRouter:function(){return u.default},useRouter:function(){return h},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});let r=n(60005),a=r._(n(46915)),l=r._(n(41514)),o=n(81623),i=r._(n(6e4)),u=r._(n(47384)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return s.router}Object.defineProperty(s,"events",{get:()=>l.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get(){let t=d();return t[e]}})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{s.ready(()=>{l.default.events.on(e,function(){for(var t=arguments.length,n=Array(t),r=0;re()),s.readyCallbacks=[],s.router}function g(e){let t={};for(let n of c){if("object"==typeof e[n]){t[n]=Object.assign(Array.isArray(e[n])?[]:{},e[n]);continue}t[n]=e[n]}return t.events=l.default.events,f.forEach(n=>{t[n]=function(){for(var t=arguments.length,r=Array(t),a=0;a{let{src:t,id:n,onLoad:r=()=>{},onReady:a=null,dangerouslySetInnerHTML:l,children:o="",strategy:i="afterInteractive",onError:s}=e,p=n||t;if(p&&f.has(p))return;if(c.has(t)){f.add(p),c.get(t).then(r,s);return}let h=()=>{a&&a(),f.add(p)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),r&&r.call(this,t),h()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){s&&s(e)});for(let[n,r]of(l?(m.innerHTML=l.__html||"",h()):o?(m.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",h()):t&&(m.src=t,c.set(t,g)),Object.entries(e))){if(void 0===r||d.includes(n))continue;let e=u.DOMAttributeNames[n]||n.toLowerCase();m.setAttribute(e,r)}"worker"===i&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",i),document.body.appendChild(m)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,s.requestIdleCallback)(()=>p(e))}):p(e)}function m(e){e.forEach(h),function(){let e=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];e.forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}()}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:a=null,strategy:u="afterInteractive",onError:c,...d}=e,{updateScripts:h,scripts:m,getIsSsr:g,appDir:y,nonce:v}=(0,o.useContext)(i.HeadManagerContext),b=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||n;b.current||(a&&e&&f.has(e)&&a(),b.current=!0)},[a,t,n]);let w=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{!w.current&&("afterInteractive"===u?p(e):"lazyOnload"===u&&("complete"===document.readyState?(0,s.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,s.requestIdleCallback)(()=>p(e))})),w.current=!0)},[e,u]),("beforeInteractive"===u||"worker"===u)&&(h?(m[u]=(m[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:a,onError:c,...d}]),h(m)):g&&g()?f.add(t||n):g&&!g()&&p(e)),y){if("beforeInteractive"===u)return n?(l.default.preload(n,d.integrity?{as:"script",integrity:d.integrity}:{as:"script"}),o.default.createElement("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n])+")"}})):(d.dangerouslySetInnerHTML&&(d.children=d.dangerouslySetInnerHTML.__html,delete d.dangerouslySetInnerHTML),o.default.createElement("script",{nonce:v,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...d}])+")"}}));"afterInteractive"===u&&n&&l.default.preload(n,d.integrity?{as:"script",integrity:d.integrity}:{as:"script"})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41998:function(e,t){"use strict";let n;function r(e){var t;return(null==(t=function(){if(void 0===n){var e;n=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return n}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(60005),a=r._(n(46915)),l=n(22406);function o(e){function t(t){return a.default.createElement(e,{router:(0,l.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40846:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(60005),a=r._(n(46915)),l=n(98551);async function o(e){let{Component:t,ctx:n}=e,r=await (0,l.loadGetInitialProps)(t,n);return{pageProps:r}}class i extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return a.default.createElement(e,t)}}i.origGetInitialProps=o,i.getInitialProps=o,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=n(60005),a=r._(n(46915)),l=r._(n(21198)),o={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function i(e){let{res:t,err:n}=e,r=t&&t.statusCode?t.statusCode:n?n.statusCode:404;return{statusCode:r}}let u={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};class s extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||o[e]||"An unexpected error has occurred";return a.default.createElement("div",{style:u.error},a.default.createElement(l.default,null,a.default.createElement("title",null,e?e+": "+n:"Application error: a client-side exception has occurred")),a.default.createElement("div",null,a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?a.default.createElement("h1",{className:"next-error-h1",style:u.h1},e):null,a.default.createElement("div",{style:u.desc},a.default.createElement("h2",{style:u.h2},this.props.title||e?n:a.default.createElement(a.default.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}s.displayName="ErrorPage",s.getInitialProps=i,s.origGetInitialProps=i,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return l}});let r=n(60005),a=r._(n(46915)),l=a.default.createContext({})},67619:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},70377:function(e,t,n){"use strict";var r,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{CacheStates:function(){return r},AppRouterContext:function(){return i},LayoutRouterContext:function(){return u},GlobalLayoutRouterContext:function(){return s},TemplateContext:function(){return c}});let l=n(60005),o=l._(n(46915));(a=r||(r={})).LAZY_INITIALIZED="LAZYINITIALIZED",a.DATA_FETCH="DATAFETCH",a.READY="READY";let i=o.default.createContext(null),u=o.default.createContext(null),s=o.default.createContext(null),c=o.default.createContext(null)},61903:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(60005),a=r._(n(32650)),l=n(75463);function o(){return crypto.getRandomValues(new Uint32Array(1))[0]}function i(){return{int32:o,quick:o}}class u{get seed(){return this._seed}set seed(e){this._seed=e,this._rng=i()}get random(){return this._rng}nextInt32(){return this._rng.int32()}saveAsJSON(){throw Error("not-implemented")}static fromJSON(e){throw Error("not-implemented")}constructor(){this._seed=(0,l.getDefaultSeed)(),this._rng=i(),this._hashing=new a.default}}},26490:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{encode:function(){return a},decode:function(){return l}});let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t=new Uint8Array(e),r,a=t.length,l="";for(r=0;r>2]+n[(3&t[r])<<4|t[r+1]>>4]+n[(15&t[r+1])<<2|t[r+2]>>6]+n[63&t[r+2]];return a%3==2?l=l.substring(0,l.length-1)+"=":a%3==1&&(l=l.substring(0,l.length-2)+"=="),l},l=e=>{let t=.75*e.length,n=e.length,a,l=0,o,i,u,s;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),f=new Uint8Array(c);for(a=0;a>4,f[l++]=(15&i)<<4|u>>2,f[l++]=(3&u)<<6|63&s;return c}},49061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(26490);class a{has(e){return(this.array[Math.floor(e/8)]&1<=0;e--){let t=this.array[e];if(t)return a.highBit(t)+8*e}return 0}bitCount(){let e=0;for(let t=0;t=0&&(n&e)!==n;)n>>>=1,t--;return t}static countBits(e){let t=1&e;for(;0!==e;)e>>>=1,t+=1&e;return t}constructor(e){let t=8-e%8;this.size=e+([0,8].includes(t)?0:t),this.array=new Uint8Array(Math.ceil(this.size/8))}}},61263:function(e,t){"use strict";function n(e,t){return Math.ceil(-(e*Math.log(t)/Math.pow(Math.log(2),2)))}function r(e,t){return Math.ceil(e/t*Math.log(2))}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{optimalFilterSize:function(){return n},optimalHashes:function(){return r}})},32650:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(60005),a=r._(n(40747)),l=n(75463);class o{doubleHashing(e,t,n,r){return Math.abs((t+e*n+Math.floor((e**3-e)/6))%r)}getDistinctIndexes(e,t,n,r){void 0===r&&(r=(0,l.getDefaultSeed)());let a=0,o=new Set,i=this.hashTwice(e,r);for(;o.sizet&&(r++,i=this.hashTwice(e,r))}return[...o.values()]}getIndexes(e,t,n,r){void 0===r&&(r=(0,l.getDefaultSeed)());let a=[],o=this.hashTwice(e,r);for(let e=0;ea.add(e)),a}get size(){return this._size}get length(){return this._filter.bitCount()}add(e){let t=this._hashing.getIndexes(e,this._size,this._nbHashes,this.seed);for(let e=0;e127&&!u&&(n=(e=unescape(encodeURIComponent(e))).charCodeAt(t),u=!0),o^=BigInt(n),o=BigInt.asUintN(a,o*i)}return o}},49380:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return l}});let r=n(60005),a=r._(n(46915)),l=a.default.createContext({})},21198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return c},default:function(){return h}});let r=n(60005),a=n(39805),l=a._(n(46915)),o=r._(n(68388)),i=n(76262),u=n(49380),s=n(67619);function c(e){void 0===e&&(e=!1);let t=[l.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(l.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(63743);let d=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(c(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return a=>{let l=!0,o=!1;if(a.key&&"number"!=typeof a.key&&a.key.indexOf("$")>0){o=!0;let t=a.key.slice(a.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(a.type){case"title":case"base":t.has(a.type)?l=!1:t.add(a.type);break;case"meta":for(let e=0,t=d.length;e{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:r})})}let h=function(e){let{children:t}=e,n=(0,l.useContext)(i.AmpStateContext),r=(0,l.useContext)(u.HeadManagerContext);return l.default.createElement(o.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,s.isInAmpMode)(n)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{SearchParamsContext:function(){return a},PathnameContext:function(){return l}});let r=n(46915),a=(0,r.createContext)(null),l=(0,r.createContext)(null)},33796:function(e,t){"use strict";function n(e,t){let n;let r=e.split("/");return(t||[]).some(t=>!!r[1]&&r[1].toLowerCase()===t.toLowerCase()&&(n=t,r.splice(1,1),e=r.join("/")||"/",!0)),{pathname:e,detectedLocale:n}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}})},80384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(60005),a=r._(n(46915)),l=n(8110),o=a.default.createContext(l.imageConfigDefault)},8110:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},96747:function(e,t){"use strict";function n(e){return Object.prototype.toString.call(e)}function r(e){if("[object Object]"!==n(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getObjectClassLabel:function(){return n},isPlainObject:function(){return r}})},50682:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NEXT_DYNAMIC_NO_SSR_CODE",{enumerable:!0,get:function(){return n}});let n="DYNAMIC_SERVER_USAGE"},81251:function(e,t){"use strict";function n(){let e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a{e(...r)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},5748:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return l}});let r=n(4535),a=n(55140);function l(e){let t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},55140:function(e,t){"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},81623:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return l}});let r=n(60005),a=r._(n(46915)),l=a.default.createContext(null)},65936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{adaptForAppRouterInstance:function(){return i},adaptForSearchParams:function(){return u},PathnameContextProviderAdapter:function(){return s}});let r=n(39805),a=r._(n(46915)),l=n(59213),o=n(4535);function i(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},push(t){e.push(t)},replace(t){e.replace(t)},prefetch(t){e.prefetch(t)}}}function u(e){return e.isReady&&e.query?function(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e);else void 0!==r&&t.append(n,r);return t}(e.query):new URLSearchParams}function s(e){let{children:t,router:n,...r}=e,i=(0,a.useRef)(r.isAutoExport),u=(0,a.useMemo)(()=>{let e;let t=i.current;if(t&&(i.current=!1),(0,o.isDynamicRoute)(n.pathname)&&(n.isFallback||t&&!n.isReady))return null;try{e=new URL(n.asPath,"http://f")}catch(e){return"/"}return e.pathname},[n.asPath,n.isFallback,n.isReady,n.pathname]);return a.default.createElement(l.PathnameContext.Provider,{value:u},t)}},41514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return $},matchesMiddleware:function(){return A},createKey:function(){return W}});let r=n(60005),a=n(39805),l=n(62808),o=n(70834),i=n(80700),u=a._(n(6e4)),s=n(5748),c=n(33796),f=r._(n(81251)),d=n(98551),p=n(15227),h=n(59616);n(43120);let m=n(52868),g=n(69656),y=n(4508);n(5761);let v=n(49731),b=n(71850),w=n(5246),_=n(53207),S=n(18112),k=n(65896),P=n(11631),E=n(23055),x=n(78375),C=n(21030),O=n(7403),N=n(39668),M=n(69954),R=n(38998),L=n(2262),j=n(31246);function T(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function A(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:n}=(0,v.parsePath)(e.asPath),r=(0,k.hasBasePath)(n)?(0,_.removeBasePath)(n):n,a=(0,S.addBasePath)((0,b.addLocale)(r,e.locale));return t.some(e=>new RegExp(e.regexp).test(a))}function z(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function I(e,t,n){let[r,a]=(0,R.resolveHref)(e,t,!0),l=(0,d.getLocationOrigin)(),o=r.startsWith(l),i=a&&a.startsWith(l);r=z(r),a=a?z(a):a;let u=o?r:(0,S.addBasePath)(r),s=n?z((0,R.resolveHref)(e,n)):a||r;return{url:u,as:i?s:(0,S.addBasePath)(s)}}function D(e,t){let n=(0,l.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(n))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function F(e){let t=await A(e);if(!t||!e.fetchData)return null;try{let t=await e.fetchData(),n=await function(e,t,n){let r={basePath:n.router.basePath,i18n:{locales:n.router.locales},trailingSlash:!1},a=t.headers.get("x-nextjs-rewrite"),i=a||t.headers.get("x-nextjs-matched-path"),u=t.headers.get("x-matched-path");if(!u||i||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(i=u),i){if(i.startsWith("/")){let t=(0,h.parseRelativeUrl)(i),u=(0,E.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),s=(0,l.removeTrailingSlash)(u.pathname);return Promise.all([n.router.pageLoader.getPageList(),(0,o.getClientBuildManifest)()]).then(r=>{let[l,{__rewrites:o}]=r,i=(0,b.addLocale)(u.pathname,u.locale);if((0,p.isDynamicRoute)(i)||!a&&l.includes((0,c.normalizeLocalePath)((0,_.removeBasePath)(i),n.router.locales).pathname)){let n=(0,E.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{parseData:!0});i=(0,S.addBasePath)(n.pathname),t.pathname=i}if(!l.includes(s)){let e=D(s,l);e!==s&&(s=e)}let f=l.includes(s)?s:D((0,c.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),n.router.locales).pathname,l);if((0,p.isDynamicRoute)(f)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(f))(i);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,v.parsePath)(e),u=(0,x.formatNextPathnameInfo)({...(0,E.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+u+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,v.parsePath)(s),t=(0,x.formatNextPathnameInfo)({...(0,E.getNextPathnameInfo)(e.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:n}}catch(e){return null}}let U=Symbol("SSG_DATA_NOT_FOUND");function B(e){try{return JSON.parse(e)}catch(e){return null}}function H(e){var t;let{dataHref:n,inflightCache:r,isPrefetch:a,hasMiddleware:l,isServerRender:i,parseJSON:u,persistCache:s,isBackground:c,unstable_skipClientCache:f}=e,{href:d}=new URL(n,window.location.href),p=e=>(function e(t,n,r){return fetch(t,{credentials:"same-origin",method:r.method||"GET",headers:Object.assign({},r.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&n>1&&a.status>=500?e(t,n-1,r):a)})(n,i?3:1,{headers:Object.assign({},a?{purpose:"prefetch"}:{},a&&l?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:n,response:t,text:"",json:{},cacheKey:d}:t.text().then(e=>{if(!t.ok){if(l&&[301,302,307,308].includes(t.status))return{dataHref:n,response:t,text:e,json:{},cacheKey:d};if(404===t.status){var r;if(null==(r=B(e))?void 0:r.notFound)return{dataHref:n,json:{notFound:U},response:t,text:e,cacheKey:d}}let a=Error("Failed to load static props");throw i||(0,o.markAssetError)(a),a}return{dataHref:n,json:u?B(e):null,response:t,text:e,cacheKey:d}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[d],e)).catch(e=>{throw f||delete r[d],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,o.markAssetError)(e),e});return f&&s?p({}).then(e=>(r[d]=Promise.resolve(e),e)):void 0!==r[d]?r[d]:r[d]=p(c?{method:"HEAD"}:{})}function W(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:n}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(n.asPath,n.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let V=e=>{let{route:t,router:n}=e,r=!1,a=n.clc=()=>{r=!0},l=()=>{if(r){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}a===n.clc&&(n.clc=null)};return l};class ${reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=I(this,e,t),this.change("pushState",e,t,n)}replace(e,t,n){return void 0===n&&(n={}),{url:e,as:t}=I(this,e,t),this.change("replaceState",e,t,n)}async _bfl(e,t,n,r){{let u=!1,s=!1;for(let c of[e,t])if(c){let t=(0,l.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,S.addBasePath)((0,b.addLocale)(t,n||this.locale));if(t!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var a,o,i;for(let e of(u=u||!!(null==(a=this._bfl_s)?void 0:a.has(t))||!!(null==(o=this._bfl_s)?void 0:o.has(f)),[t,f])){let t=e.split("/");for(let e=0;!s&&e{})}}}}return!1}async change(e,t,n,r,a){var s,c,f,P,E,x,N,R,j;let z,F;if(!(0,O.isLocalURL)(t))return q({url:t,router:this}),!1;let B=1===r._h;B||r.shallow||await this._bfl(n,void 0,r.locale);let H=B||r._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(n).pathname,W={...this.state},V=!0!==this.isReady;this.isReady=!0;let Q=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let G=W.locale;d.ST&&performance.mark("routeChange");let{shallow:Y=!1,scroll:K=!0}=r,X={shallow:Y};this._inFlightRoute&&this.clc&&(Q||$.events.emit("routeChangeError",T(),this._inFlightRoute,X),this.clc(),this.clc=null),n=(0,S.addBasePath)((0,b.addLocale)((0,k.hasBasePath)(n)?(0,_.removeBasePath)(n):n,r.locale,this.defaultLocale));let J=(0,w.removeLocale)((0,k.hasBasePath)(n)?(0,_.removeBasePath)(n):n,W.locale);this._inFlightRoute=n;let Z=G!==W.locale;if(!B&&this.onlyAHashChange(J)&&!Z){W.asPath=J,$.events.emit("hashChangeStart",n,X),this.changeState(e,t,n,{...r,scroll:!1}),K&&this.scrollToHash(J);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,u.default)(e)&&e.cancelled&&$.events.emit("routeChangeError",e,J,X),e}return $.events.emit("hashChangeComplete",n,X),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:en}=ee;if(null==(s=this.components[et])?void 0:s.__appRouter)return q({url:n,router:this}),new Promise(()=>{});try{[z,{__rewrites:F}]=await Promise.all([this.pageLoader.getPageList(),(0,o.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:n,router:this}),!1}this.urlIsNew(J)||Z||(e="replaceState");let er=n;et=et?(0,l.removeTrailingSlash)((0,_.removeBasePath)(et)):et;let ea=(0,l.removeTrailingSlash)(et),el=n.startsWith("/")&&(0,h.parseRelativeUrl)(n).pathname,eo=!!(el&&ea!==el&&(!(0,p.isDynamicRoute)(ea)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(ea))(el))),ei=!r.shallow&&await A({asPath:n,locale:W.locale,router:this});if(B&&ei&&(H=!1),H&&"/_error"!==et&&(r._shouldResolveHref=!0,ee.pathname=D(et,z),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,S.addBasePath)(et),ei||(t=(0,y.formatWithValidation)(ee)))),!(0,O.isLocalURL)(n))return q({url:n,router:this}),!1;er=(0,w.removeLocale)((0,_.removeBasePath)(er),W.locale),ea=(0,l.removeTrailingSlash)(et);let eu=!1;if((0,p.isDynamicRoute)(ea)){let e=(0,h.parseRelativeUrl)(er),r=e.pathname,a=(0,g.getRouteRegex)(ea);eu=(0,m.getRouteMatcher)(a)(r);let l=ea===r,o=l?(0,L.interpolateAs)(ea,r,en):{};if(eu&&(!l||o.result))l?n=(0,y.formatWithValidation)(Object.assign({},e,{pathname:o.result,query:(0,M.omit)(en,o.params)})):Object.assign(en,eu);else{let e=Object.keys(a.groups).filter(e=>!en[e]&&!a.groups[e].optional);if(e.length>0&&!ei)throw Error((l?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+r+") is incompatible with the `href` value ("+ea+"). ")+"Read more: https://nextjs.org/docs/messages/"+(l?"href-interpolation-failed":"incompatible-href-as"))}}B||$.events.emit("routeChangeStart",n,X);let es="/404"===this.pathname||"/_error"===this.pathname;try{let l=await this.getRouteInfo({route:ea,pathname:et,query:en,as:n,resolvedAs:er,routeProps:X,locale:W.locale,isPreview:W.isPreview,hasMiddleware:ei,unstable_skipClientCache:r.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:eo});if(B||r.shallow||await this._bfl(n,"resolvedAs"in l?l.resolvedAs:void 0,W.locale),"route"in l&&ei){ea=et=l.route||ea,X.shallow||(en=Object.assign({},l.query||{},en));let e=(0,k.hasBasePath)(ee.pathname)?(0,_.removeBasePath)(ee.pathname):ee.pathname;if(eu&&et!==e&&Object.keys(eu).forEach(e=>{eu&&en[e]===eu[e]&&delete en[e]}),(0,p.isDynamicRoute)(et)){let e=!X.shallow&&l.resolvedAs?l.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(n,location.href).pathname,W.locale),!0),t=e;(0,k.hasBasePath)(t)&&(t=(0,_.removeBasePath)(t));let r=(0,g.getRouteRegex)(et),a=(0,m.getRouteMatcher)(r)(new URL(t,location.href).pathname);a&&Object.assign(en,a)}}if("type"in l){if("redirect-internal"===l.type)return this.change(e,l.newUrl,l.newAs,r);return q({url:l.destination,router:this}),new Promise(()=>{})}let o=l.Component;if(o&&o.unstable_scriptLoader){let e=[].concat(o.unstable_scriptLoader());e.forEach(e=>{(0,i.handleClientScriptLoad)(e.props)})}if((l.__N_SSG||l.__N_SSP)&&l.props){if(l.props.pageProps&&l.props.pageProps.__N_REDIRECT){r.locale=!1;let t=l.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==l.props.pageProps.__N_REDIRECT_BASE_PATH){let n=(0,h.parseRelativeUrl)(t);n.pathname=D(n.pathname,z);let{url:a,as:l}=I(this,t,t);return this.change(e,a,l,r)}return q({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!l.props.__N_PREVIEW,l.props.notFound===U){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(l=await this.getRouteInfo({route:e,pathname:e,query:en,as:n,resolvedAs:er,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in l)throw Error("Unexpected middleware effect on /404")}}B&&"/_error"===this.pathname&&(null==(c=self.__NEXT_DATA__.props)?void 0:null==(f=c.pageProps)?void 0:f.statusCode)===500&&(null==(P=l.props)?void 0:P.pageProps)&&(l.props.pageProps.statusCode=500);let s=r.shallow&&W.route===(null!=(E=l.route)?E:ea),d=null!=(x=r.scroll)?x:!B&&!s,y=null!=a?a:d?{x:0,y:0}:null,v={...W,route:ea,pathname:et,query:en,asPath:J,isFallback:!1};if(B&&es){if(l=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:en,as:n,resolvedAs:er,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in l)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(N=self.__NEXT_DATA__.props)?void 0:null==(R=N.pageProps)?void 0:R.statusCode)===500&&(null==(j=l.props)?void 0:j.pageProps)&&(l.props.pageProps.statusCode=500);try{await this.set(v,l,y)}catch(e){throw(0,u.default)(e)&&e.cancelled&&$.events.emit("routeChangeError",e,J,X),e}return!0}$.events.emit("beforeHistoryChange",n,X),this.changeState(e,t,n,r);let w=B&&!y&&!V&&!Z&&(0,C.compareRouterStates)(v,this.state);if(!w){try{await this.set(v,l,y)}catch(e){if(e.cancelled)l.error=l.error||e;else throw e}if(l.error)throw B||$.events.emit("routeChangeError",l.error,J,X),l.error;B||$.events.emit("routeChangeComplete",n,X),d&&/#.+$/.test(n)&&this.scrollToHash(n)}return!0}catch(e){if((0,u.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r){void 0===r&&(r={}),("pushState"!==e||(0,d.getURL)()!==n)&&(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,key:this._key="pushState"!==e?this._key:W()},"",n))}async handleRouteInfoError(e,t,n,r,a,l){if(console.error(e),e.cancelled)throw e;if((0,o.isAssetError)(e)||l)throw $.events.emit("routeChangeError",e,r,a),q({url:r,router:this}),T();try{let r;let{page:a,styleSheets:l}=await this.fetchComponent("/_error"),o={props:r,Component:a,styleSheets:l,err:e,error:e};if(!o.props)try{o.props=await this.getInitialProps(a,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),o.props={}}return o}catch(e){return this.handleRouteInfoError((0,u.default)(e)?e:Error(e+""),t,n,r,a,!0)}}async getRouteInfo(e){let{route:t,pathname:n,query:r,as:a,resolvedAs:o,routeProps:i,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:g}=e,v=t;try{var b,w,S,k;let e=V({route:v,router:this}),t=this.components[v];if(i.shallow&&t&&this.route===v)return t;f&&(t=void 0);let u=!t||"initial"in t?void 0:t,E={dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:n,query:r}),skipInterpolation:!0,asPath:g?"/404":o,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},x=h&&!m?null:await F({fetchData:()=>H(E),asPath:g?"/404":o,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(x&&("/_error"===n||"/404"===n)&&(x.effect=void 0),h&&(x?x.json=self.__NEXT_DATA__.props:x={json:self.__NEXT_DATA__.props}),e(),(null==x?void 0:null==(b=x.effect)?void 0:b.type)==="redirect-internal"||(null==x?void 0:null==(w=x.effect)?void 0:w.type)==="redirect-external")return x.effect;if((null==x?void 0:null==(S=x.effect)?void 0:S.type)==="rewrite"){let e=(0,l.removeTrailingSlash)(x.effect.resolvedHref),a=await this.pageLoader.getPageList();if((!h||a.includes(e))&&(v=e,n=x.effect.resolvedHref,r={...r,...x.effect.parsedAs.query},o=(0,_.removeBasePath)((0,c.normalizeLocalePath)(x.effect.parsedAs.pathname,this.locales).pathname),t=this.components[v],i.shallow&&t&&this.route===v&&!f))return{...t,route:v}}if((0,P.isAPIRoute)(v))return q({url:a,router:this}),new Promise(()=>{});let C=u||await this.fetchComponent(v).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),O=null==x?void 0:null==(k=x.response)?void 0:k.headers.get("x-middleware-skip"),N=C.__N_SSG||C.__N_SSP;O&&(null==x?void 0:x.dataHref)&&delete this.sdc[x.dataHref];let{props:M,cacheKey:R}=await this._getData(async()=>{if(N){if((null==x?void 0:x.json)&&!O)return{cacheKey:x.cacheKey,props:x.json};let e=(null==x?void 0:x.dataHref)?x.dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:n,query:r}),asPath:o,locale:s}),t=await H({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:O?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(C.Component,{pathname:n,query:r,asPath:a,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return C.__N_SSP&&E.dataHref&&R&&delete this.sdc[R],this.isPreview||!C.__N_SSG||h||H(Object.assign({},E,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),M.pageProps=Object.assign({},M.pageProps),C.props=M,C.route=v,C.query=r,C.resolvedAs=o,this.components[v]=C,C}catch(e){return this.handleRouteInfoError((0,u.getProperError)(e),n,r,a,i)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,n]=this.asPath.split("#"),[r,a]=e.split("#");return!!a&&t===r&&n===a||t===r&&n!==a}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){(0,j.handleSmoothScroll)(()=>window.scrollTo(0,0));return}let n=decodeURIComponent(t),r=document.getElementById(n);if(r){(0,j.handleSmoothScroll)(()=>r.scrollIntoView());return}let a=document.getElementsByName(n)[0];a&&(0,j.handleSmoothScroll)(()=>a.scrollIntoView())}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,n){if(void 0===t&&(t=e),void 0===n&&(n={}),(0,N.isBot)(window.navigator.userAgent))return;let r=(0,h.parseRelativeUrl)(e),a=r.pathname,{pathname:o,query:i}=r,u=o,s=await this.pageLoader.getPageList(),c=t,f=void 0!==n.locale?n.locale||void 0:this.locale,d=await A({asPath:t,locale:f,router:this});r.pathname=D(r.pathname,s),(0,p.isDynamicRoute)(r.pathname)&&(o=r.pathname,r.pathname=o,Object.assign(i,(0,m.getRouteMatcher)((0,g.getRouteRegex)(r.pathname))((0,v.parsePath)(t).pathname)||{}),d||(e=(0,y.formatWithValidation)(r)));let b=await F({fetchData:()=>H({dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:u,query:i}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(r.pathname=b.effect.resolvedHref,o=b.effect.resolvedHref,i={...i,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,y.formatWithValidation)(r)),(null==b?void 0:b.effect.type)==="redirect-external")return;let w=(0,l.removeTrailingSlash)(o);await this._bfl(t,c,n.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(w).then(t=>!!t&&H({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[n.priority?"loadPage":"prefetch"](w)])}async fetchComponent(e){let t=V({route:e,router:this});try{let n=await this.pageLoader.loadPage(e);return t(),n}catch(e){throw t(),e}}_getData(e){let t=!1,n=()=>{t=!0};return this.clc=n,e().then(e=>{if(n===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return H({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,(0,d.loadGetInitialProps)(n,{AppTree:r,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:a,pageLoader:o,App:i,wrapApp:u,Component:s,err:c,subscription:f,isFallback:m,locale:g,locales:v,defaultLocale:b,domainLocales:w,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=W(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:n}=this;this.isFirstPopStateEvent=!1;let r=e.state;if(!r){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,d.getURL)());return}if(r.__NA){window.location.reload();return}if(!r.__N||n&&this.locale===r.options.locale&&r.as===this.asPath)return;let{url:a,as:l,options:o,key:i}=r;this._key=i;let{pathname:u}=(0,h.parseRelativeUrl)(a);(!this.isSsr||l!==(0,S.addBasePath)(this.asPath)||u!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(r))&&this.change("replaceState",a,l,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),t)};let k=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[k]={Component:s,initial:!0,props:a,err:c,__N_SSG:a&&a.__N_SSG,__N_SSP:a&&a.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]};{let{BloomFilter:e}=n(71809),t={bitset:{size:24,content:"hTIK"},hashes:7,size:20},r={bitset:{size:0,content:""},hashes:null,size:0};(null==t?void 0:t.hashes)&&(this._bfl_s=new e(t.size,t.hashes),this._bfl_s.import(t)),(null==r?void 0:r.hashes)&&(this._bfl_d=new e(r.size,r.hashes),this._bfl_d.import(r))}this.events=$.events,this.pageLoader=o;let P=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=f,this.clc=null,this._wrapApp=u,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!P&&!self.location.search),this.state={route:k,pathname:e,query:t,asPath:P?e:r,isPreview:!!_,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:g},a=(0,d.getURL)();this._initialMatchesMiddlewarePromise=A({router:this,locale:g,asPath:a}).then(l=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",l?a:(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),a,n),l))}window.addEventListener("popstate",this.onPopState)}}$.events=(0,f.default)()},99644:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return l}});let r=n(41651),a=n(35134);function l(e,t,n,l){if(!t||t===n)return e;let o=e.toLowerCase();return!l&&((0,a.pathHasPrefix)(o,"/api")||(0,a.pathHasPrefix)(o,"/"+t.toLowerCase()))?e:(0,r.addPathPrefix)(e,"/"+t)}},41651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return a}});let r=n(49731);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:a,hash:l}=(0,r.parsePath)(e);return""+t+n+a+l}},21909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return a}});let r=n(49731);function a(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:a,hash:l}=(0,r.parsePath)(e);return""+n+t+a+l}},21030:function(e,t){"use strict";function n(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=n.length;r--;){let a=n[r];if("query"===a){let n=Object.keys(e.query);if(n.length!==Object.keys(t.query).length)return!1;for(let r=n.length;r--;){let a=n[r];if(!t.query.hasOwnProperty(a)||e.query[a]!==t.query[a])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return n}})},78375:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return i}});let r=n(62808),a=n(41651),l=n(21909),o=n(99644);function i(e){let t=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,r.removeTrailingSlash)(t)),e.buildId&&(t=(0,l.addPathSuffix)((0,a.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,a.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,l.addPathSuffix)(t,"/"):(0,r.removeTrailingSlash)(t)}},4508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},urlObjectKeys:function(){return i},formatWithValidation:function(){return u}});let r=n(39805),a=r._(n(13501)),l=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",o=e.pathname||"",i=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||l.test(r))&&!1!==s?(s="//"+(s||""),o&&"/"!==o[0]&&(o="/"+o)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+r+s+(o=o.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},96432:function(e,t){"use strict";function n(e,t){void 0===t&&(t="");let n="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e;return n+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},23055:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let r=n(33796),a=n(49548),l=n(35134);function o(e,t){var n,o,i;let{basePath:u,i18n:s,trailingSlash:c}=null!=(n=t.nextConfig)?n:{},f={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};if(u&&(0,l.pathHasPrefix)(f.pathname,u)&&(f.pathname=(0,a.removePathPrefix)(f.pathname,u),f.basePath=u),!0===t.parseData&&f.pathname.startsWith("/_next/data/")&&f.pathname.endsWith(".json")){let e=f.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];f.pathname="index"!==e[1]?"/"+e.slice(1).join("/"):"/",f.buildId=t}if(t.i18nProvider){let e=t.i18nProvider.analyze(f.pathname);f.locale=e.detectedLocale,f.pathname=null!=(o=e.pathname)?o:f.pathname}else if(s){let e=(0,r.normalizeLocalePath)(f.pathname,s.locales);f.locale=e.detectedLocale,f.pathname=null!=(i=e.pathname)?i:f.pathname}return f}},31246:function(e,t){"use strict";function n(e,t){void 0===t&&(t={});let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},4535:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return a.isDynamicRoute}});let r=n(85335),a=n(15227)},2262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return l}});let r=n(52868),a=n(69656);function l(e,t,n){let l="",o=(0,a.getRouteRegex)(e),i=o.groups,u=(t!==e?(0,r.getRouteMatcher)(o)(t):"")||n;l=e;let s=Object.keys(i);return s.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=i[e],a="["+(n?"...":"")+e+"]";return r&&(a=(t?"":"/")+"["+a+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(l=l.replace(a,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(l=""),{params:s,result:l}}},39668:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},15227:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});let n=/\/\[[^/]+?\](?=\/|$)/;function r(e){return n.test(e)}},7403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return l}});let r=n(98551),a=n(65896);function l(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,a.hasBasePath)(n.pathname)}catch(e){return!1}}},69954:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},49731:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},59616:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return l}});let r=n(98551),a=n(13501);function l(e,t){let n=new URL((0,r.getLocationOrigin)()),l=t?new URL(t,n):e.startsWith(".")?new URL(window.location.href):n,{pathname:o,searchParams:i,search:u,hash:s,href:c,origin:f}=new URL(e,l);if(f!==n.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:o,query:(0,a.searchParamsToUrlQuery)(i),search:u,hash:s,href:c.slice(n.origin.length)}}},35134:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return a}});let r=n(49731);function a(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},13501:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,a]=e;Array.isArray(a)?a.forEach(e=>t.append(n,r(e))):t.set(n,r(a))}),t}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return a},assign:function(){return l}})},49548:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return a}});let r=n(35134);function a(e,t){if(!(0,r.pathHasPrefix)(e,t))return e;let n=e.slice(t.length);return n.startsWith("/")?n:"/"+n}},62808:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},38998:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(13501),a=n(4508),l=n(69954),o=n(98551),i=n(92947),u=n(7403),s=n(15227),c=n(2262);function f(e,t,n){let f;let d="string"==typeof t?t:(0,a.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d,m=h.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,o.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:o,params:i}=(0,c.interpolateAs)(e.pathname,e.pathname,n);o&&(t=(0,a.formatWithValidation)({pathname:o,hash:e.hash,query:(0,l.omit)(n,i)}))}let o=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[o,t||o]:o}catch(e){return n?[d]:d}}},52868:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let r=n(98551);function a(e){let{re:t,groups:n}=e;return e=>{let a=t.exec(e);if(!a)return!1;let l=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},o={};return Object.keys(n).forEach(e=>{let t=n[e],r=a[t.pos];void 0!==r&&(o[e]=~r.indexOf("/")?r.split("/").map(e=>l(e)):t.repeat?[l(r)]:l(r))}),o}}},69656:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return c},getNamedMiddlewareRegex:function(){return f}});let r=n(38037),a=n(62808),l="nxtP";function o(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function i(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),n={},l=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,r.escapeStringRegexp)(e);{let{key:t,optional:r,repeat:a}=o(e.slice(1,-1));return n[t]={pos:l++,repeat:a,optional:r},a?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=i(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e,t){let n,i;let u=(0,a.removeTrailingSlash)(e).slice(1).split("/"),s=(n=97,i=1,()=>{let e="";for(let t=0;t122&&(i++,n=97);return e}),c={};return{namedParameterizedRoute:u.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,r.escapeStringRegexp)(e);{let{key:n,optional:r,repeat:a}=o(e.slice(1,-1)),i=n.replace(/\W/g,"");t&&(i=""+l+i);let u=!1;return(0===i.length||i.length>30)&&(u=!0),isNaN(parseInt(i.slice(0,1)))||(u=!0),u&&(i=s()),t?c[i]=""+l+n:c[i]=""+n,a?r?"(?:/(?<"+i+">.+?))?":"/(?<"+i+">.+?)":"/(?<"+i+">[^/]+?)"}}).join(""),routeKeys:c}}function c(e,t){let n=s(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=i(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:a}=s(e,!1);return{namedRegex:"^"+a+(r?"(?:(/.*)?)":"")+"$"}}},85335:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let a=e[0];if(a.startsWith("[")&&a.endsWith("]")){let n=a.slice(1,-1),o=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),o=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function l(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(o){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');l(this.optionalRestSlugName,n),this.optionalRestSlugName=n,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');l(this.restSlugName,n),this.restSlugName=n,a="[...]"}}else{if(o)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');l(this.slugName,n),this.slugName=n,a="[]"}}this.children.has(a)||this.children.set(a,new n),this.children.get(a)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},24975:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return r},setConfig:function(){return a}});let r=()=>n;function a(e){n=e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(39805),a=r._(n(46915)),l=a.useLayoutEffect,o=a.useEffect;function i(e){let{headManager:t,reduceComponentsToState:n}=e;function r(){if(t&&t.mountedInstances){let r=a.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(r,e))}}return l(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),l(()=>(t&&(t._pendingUpdate=r),()=>{t&&(t._pendingUpdate=r)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},98551:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return i},getDisplayName:function(){return u},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return v}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,a=Array(r),l=0;la.test(e);function o(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function i(){let{href:e}=window.location,t=o();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?"),n=t[0];return n.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r){let t='"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.';throw Error(t)}return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},63743:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},75765:function(e,t,n){"use strict";/** * @license React * react-dom.production.min.js * diff --git a/_next/static/chunks/webpack-ecce68ac89fbbbe4.js b/_next/static/chunks/webpack-8f714818cecfb7a6.js similarity index 98% rename from _next/static/chunks/webpack-ecce68ac89fbbbe4.js rename to _next/static/chunks/webpack-8f714818cecfb7a6.js index cc0f904..c1bdaa8 100644 --- a/_next/static/chunks/webpack-ecce68ac89fbbbe4.js +++ b/_next/static/chunks/webpack-8f714818cecfb7a6.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},d={};function l(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,l),r=!1}finally{r&&delete d[e]}return n.loaded=!0,n.exports}l.m=a,e=[],l.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,o:not(ul):not(.menu-title):not(details).active,.menu li>:not(ul):not(.menu-title):not(details):active,.menu li>details>summary:active{--tw-bg-opacity:1;background-color:hsl(var(--n)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--nc)/var(--tw-text-opacity))}}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--b2)/var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;border-radius:var(--rounded-btn,.5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;gap:.5rem;font-weight:600;text-decoration-line:none;border-width:var(--border-btn,1px);animation:button-pop var(--animation-btn,.25s) ease-out;text-transform:var(--btn-text-case,uppercase);--tw-border-opacity:1;--tw-bg-opacity:1;background-color:hsl(var(--b2)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity));outline-color:hsl(var(--bc)/1)}.btn-disabled,.btn:disabled,.btn[disabled]{pointer-events:none}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.btn:is(input[type=checkbox]),.btn:is(input[type=radio]){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content:attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box,1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;--tw-bg-opacity:1;background-color:hsl(var(--n)/var(--tw-bg-opacity));opacity:.75;border-radius:var(--rounded-box,1rem)}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity:1;color:hsl(var(--nc)/var(--tw-text-opacity))}.checkbox{flex-shrink:0;--chkbg:var(--bc);--chkfg:var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc)/var(--tw-border-opacity));--tw-border-opacity:0.2;border-radius:var(--rounded-btn,.5rem)}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:after,.divider:before{content:"";flex-grow:1;height:.125rem;width:100%}@media (hover:hover){.btn:hover{--tw-border-opacity:1;border-color:hsl(var(--b3)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--b3)/var(--tw-bg-opacity))}.btn.glass:hover{--glass-opacity:25%;--glass-border-opacity:15%}.btn-ghost:hover{--tw-border-opacity:0;background-color:hsl(var(--bc)/var(--tw-bg-opacity));--tw-bg-opacity:0.2}.btn-disabled:hover,.btn:disabled:hover,.btn[disabled]:hover{--tw-border-opacity:0;background-color:hsl(var(--n)/var(--tw-bg-opacity));--tw-bg-opacity:0.2;color:hsl(var(--bc)/var(--tw-text-opacity));--tw-text-opacity:0.2}.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{--tw-border-opacity:1;border-color:hsl(var(--pf)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--pf)/var(--tw-bg-opacity))}:where(.menu li:not(.menu-title):not(.disabled)>:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{cursor:pointer;background-color:hsl(var(--bc)/.1);--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc)/var(--tw-border-opacity));--tw-border-opacity:0;--tw-bg-opacity:1;background-color:hsl(var(--b1)/var(--tw-bg-opacity));border-radius:var(--rounded-btn,.5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.select,.input-group>.textarea{border-radius:0}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-left:1rem;padding-left:.5rem}.menu :where(li:not(.menu-title)>:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc)/.3)}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.navbar{display:flex;align-items:center;padding:var(--navbar-padding,.5rem);min-height:4rem;width:100%}:where(.navbar>*){display:inline-flex;align-items:center}.navbar-start{width:50%;justify-content:flex-start}.navbar-end{width:50%;justify-content:flex-end}.swap{position:relative;display:inline-grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1);transition-property:transform,opacity}.swap input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.swap .swap-indeterminate,.swap .swap-on,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap input:indeterminate~.swap-off,.swap.swap-active .swap-off{opacity:0}.swap input:checked~.swap-on,.swap input:indeterminate~.swap-indeterminate,.swap-active .swap-on{opacity:1}.textarea{flex-shrink:1;min-height:3rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-width:1px;border-color:hsl(var(--bc)/var(--tw-border-opacity));--tw-border-opacity:0;--tw-bg-opacity:1;background-color:hsl(var(--b1)/var(--tw-bg-opacity));border-radius:var(--rounded-btn,.5rem)}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.alert-success{border-color:hsl(var(--su)/.2);--tw-text-opacity:1;color:hsl(var(--suc)/var(--tw-text-opacity));--alert-bg:hsl(var(--su));--alert-bg-mix:hsl(var(--b1))}.badge-secondary{border-color:hsl(var(--s)/var(--tw-border-opacity));background-color:hsl(var(--s)/var(--tw-bg-opacity));color:hsl(var(--sc)/var(--tw-text-opacity))}.badge-accent,.badge-secondary{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1}.badge-accent{border-color:hsl(var(--a)/var(--tw-border-opacity));background-color:hsl(var(--a)/var(--tw-bg-opacity));color:hsl(var(--ac)/var(--tw-text-opacity))}.badge-outline.badge-secondary{--tw-text-opacity:1;color:hsl(var(--s)/var(--tw-text-opacity))}.badge-outline.badge-accent{--tw-text-opacity:1;color:hsl(var(--a)/var(--tw-text-opacity))}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:focus,.btn:active:hover{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale,.97))}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn.glass{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity:25%;--glass-border-opacity:15%}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn-ghost.btn-active{--tw-border-opacity:0;background-color:hsl(var(--bc)/var(--tw-bg-opacity));--tw-bg-opacity:0.2}.btn.btn-disabled,.btn:disabled,.btn[disabled]{--tw-border-opacity:0;background-color:hsl(var(--n)/var(--tw-bg-opacity));--tw-bg-opacity:0.2;color:hsl(var(--bc)/var(--tw-text-opacity));--tw-text-opacity:0.2}.btn-group>.btn-active,.btn-group>input[type=radio]:checked.btn{--tw-border-opacity:1;border-color:hsl(var(--p)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-group>.btn-active:focus-visible,.btn-group>input[type=radio]:checked.btn:focus-visible{outline-style:solid;outline-width:2px;outline-color:hsl(var(--p)/1)}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity:1;border-color:hsl(var(--p)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--pc)/var(--tw-text-opacity))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:hsl(var(--p)/1)}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale,.98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity:1;border-color:hsl(var(--b2)/var(--tw-border-opacity))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:hsl(var(--bc)/1)}.checkbox:checked,.checkbox[aria-checked=true],.checkbox[checked=true]{--tw-bg-opacity:1;background-color:hsl(var(--bc)/var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input,.2s) ease-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity:1;background-color:hsl(var(--bc)/var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input,.2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity:1;background-color:hsl(var(--bc)/var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[aria-checked=true],[dir=rtl] .checkbox[checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.divider:after,.divider:before{background-color:hsl(var(--bc)/var(--tw-bg-opacity));--tw-bg-opacity:0.1}.divider:not(:empty){gap:1rem}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input:focus{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:hsl(var(--bc)/.2)}.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity:1;border-color:hsl(var(--b2)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--b2)/var(--tw-bg-opacity));--tw-text-opacity:0.2}.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc)/var(--tw-placeholder-opacity));--tw-placeholder-opacity:0.2}.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc)/var(--tw-placeholder-opacity));--tw-placeholder-opacity:0.2}.loading{pointer-events:none;display:inline-block;aspect-ratio:1/1;width:1.5rem;background-color:currentColor;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.loading,.loading-spinner{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-lg{width:2.5rem}:where(.menu li:empty){background-color:hsl(var(--bc)/.1);margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;left:0;top:.75rem;bottom:.75rem;width:1px;background-color:hsl(var(--bc)/.1);content:""}.menu :where(li:not(.menu-title)>:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){padding:.5rem 1rem;text-align:left;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;border-radius:var(--rounded-btn,.5rem);text-wrap:balance}:where(.menu li:not(.menu-title):not(.disabled)>:not(ul):not(details):not(.menu-title)):is(summary):not(.active):focus-visible,:where(.menu li:not(.menu-title):not(.disabled)>:not(ul):not(details):not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>:not(ul):not(details):not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):is(summary):not(.active):focus-visible,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active):focus{cursor:pointer;background-color:hsl(var(--bc)/.1);--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.menu li>:not(ul):not(.menu-title):not(details).active,.menu li>:not(ul):not(.menu-title):not(details):active,.menu li>details>summary:active{--tw-bg-opacity:1;background-color:hsl(var(--n)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--nc)/var(--tw-text-opacity))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>.menu-dropdown-toggle):after,.menu :where(li>details>summary):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after,.menu :where(li>details[open]>summary):after{transform:rotate(225deg);margin-top:0}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity:1;background-color:hsl(var(--b2)/var(--tw-bg-opacity));padding-left:2rem}.mockup-browser .mockup-browser-toolbar .input:before{left:.5rem;aspect-ratio:1/1;height:.75rem;--tw-translate-y:-50%;border-radius:9999px;border-width:2px;border-color:currentColor}.mockup-browser .mockup-browser-toolbar .input:after,.mockup-browser .mockup-browser-toolbar .input:before{content:"";position:absolute;top:50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{left:1.25rem;height:.5rem;--tw-translate-y:25%;--tw-rotate:-45deg;border-radius:9999px;border-width:1px;border-color:currentColor}@keyframes modal-pop{0%{opacity:0}}@keyframes progress-loading{50%{background-position-x:-115%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.swap-rotate .swap-indeterminate,.swap-rotate .swap-on,.swap-rotate input:indeterminate~.swap-on{--tw-rotate:45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-off,.swap-rotate input:indeterminate~.swap-off,.swap-rotate.swap-active .swap-off{--tw-rotate:-45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-on,.swap-rotate input:indeterminate~.swap-indeterminate,.swap-rotate.swap-active .swap-on{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-flip .swap-indeterminate,.swap-flip .swap-on,.swap-flip input:indeterminate~.swap-on{transform:rotateY(180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-off,.swap-flip input:indeterminate~.swap-off,.swap-flip.swap-active .swap-off{transform:rotateY(-180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-on,.swap-flip input:indeterminate~.swap-indeterminate,.swap-flip.swap-active .swap-on{transform:rotateY(0deg)}.textarea-bordered{--tw-border-opacity:0.2}.textarea:focus{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:hsl(var(--bc)/.2)}.textarea-disabled,.textarea:disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity:1;border-color:hsl(var(--b2)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--b2)/var(--tw-bg-opacity));--tw-text-opacity:0.2}.textarea-disabled::-moz-placeholder,.textarea:disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc)/var(--tw-placeholder-opacity));--tw-placeholder-opacity:0.2}.textarea-disabled::placeholder,.textarea:disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc)/var(--tw-placeholder-opacity));--tw-placeholder-opacity:0.2}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.menu-horizontal{display:inline-flex;flex-direction:row}.menu-horizontal>li:not(.menu-title)>details>ul{position:absolute}.textarea-lg{padding:1rem 1.5rem;font-size:1.125rem;line-height:1.75rem;line-height:2}:where(.toast){right:0;left:auto;top:auto;bottom:0;--tw-translate-x:0px;--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){right:auto;left:0;--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){right:50%;left:50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){right:0;left:auto;--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){top:auto;bottom:0;--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){top:50%;bottom:auto;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){top:0;bottom:auto;--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.btn-group .btn:not(:first-child):not(:last-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group .btn:first-child:not(:last-child){margin-top:0;margin-left:-1px;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn,.5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn,.5rem)}.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group-horizontal .btn:first-child:not(:last-child){margin-top:0;margin-left:-1px;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:0}.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn,.5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn,.5rem)}.btn-group-vertical .btn:first-child:not(:last-child){margin-top:-1px;margin-left:0;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:var(--rounded-btn,.5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:var(--rounded-btn,.5rem)}.menu-horizontal>li:not(.menu-title)>details>ul{margin-top:1rem;margin-left:0;padding-top:.5rem;padding-bottom:.5rem;padding-right:.5rem}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){--tw-bg-opacity:1;background-color:hsl(var(--b1)/var(--tw-bg-opacity));--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);border-radius:var(--rounded-box,1rem)}.fixed{position:fixed}.inset-0{top:0;right:0;bottom:0;left:0}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.mt-12{margin-top:3rem}.mb-4{margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.mr-5{margin-right:1.25rem}.block{display:block}.flex{display:flex}.grid{display:grid}.h-6{height:1.5rem}.h-40{height:10rem}.h-14{height:3.5rem}.h-24{height:6rem}.w-auto{width:auto}.w-full{width:100%}.w-\[350px\]{width:350px}.w-8{width:2rem}.w-40{width:10rem}.w-14{width:3.5rem}.w-6{width:1.5rem}.w-24{width:6rem}.max-w-lg{max-width:32rem}.grow{flex-grow:1}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.place-content-evenly{place-content:space-evenly}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-11>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2.75rem * var(--tw-space-x-reverse));margin-left:calc(2.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border-solid{border-style:solid}.bg-cat-base{--tw-bg-opacity:1;background-color:rgb(30 30 46/var(--tw-bg-opacity))}.bg-cat-crust{--tw-bg-opacity:1;background-color:rgb(17 17 27/var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-brandred{--tw-gradient-from:#ef4444;--tw-gradient-to:rgba(239,68,68,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[\#42275a\]{--tw-gradient-from:#42275a;--tw-gradient-to:rgba(66,39,90,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-brandblue{--tw-gradient-to:#3b82f6}.to-\[\#734b6d\]{--tw-gradient-to:#734b6d}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pt-16{padding-top:4rem}.pb-8{padding-bottom:2rem}.pt-8{padding-top:2rem}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-6xl{font-size:3.75rem;line-height:1}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem}.text-lg,.text-xl{line-height:1.75rem}.text-xl{font-size:1.25rem}.font-extrabold{font-weight:800}.font-bold{font-weight:700}.tracking-tight{letter-spacing:-.025em}.text-transparent{color:transparent}.text-cat-peach400{--tw-text-opacity:1;color:rgb(246 124 65/var(--tw-text-opacity))}.shadow-\[0_3px_10px_rgb\(0\2c 0\2c 0\2c 0\.2\)\]{--tw-shadow:0 3px 10px rgb(0,0,0,0.2);--tw-shadow-colored:0 3px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}@media (min-width:640px){.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:pt-24{padding-top:6rem}.sm\:text-7xl{font-size:4.5rem;line-height:1}}@media (min-width:1024px){.lg\:flex{display:flex}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-8xl{font-size:6rem;line-height:1}}@media (min-width:1280px){.xl\:text-8xl{font-size:6rem;line-height:1}}*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.ui-ml-2{margin-left:.5rem}.ui-mt-4{margin-top:1rem}.ui-inline-block{display:inline-block}.ui-flex{display:flex}.ui-h-full{height:100%}.ui-w-full{width:100%}.ui-items-center{align-items:center}.ui-justify-center{justify-content:center}.ui-overflow-hidden{overflow:hidden}.ui-rounded-md{border-radius:.375rem}.ui-rounded-lg{border-radius:.5rem}.ui-border{border-width:1px}.ui-border-transparent{border-color:transparent}.ui-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.ui-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity))}.ui-bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.ui-from-brandred{--tw-gradient-from:#ef4444;--tw-gradient-to:rgba(239,68,68,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.ui-to-brandblue{--tw-gradient-to:#3b82f6}.ui-bg-clip-text{-webkit-background-clip:text;background-clip:text}.ui-bg-origin-border{background-origin:border-box}.ui-p-4{padding:1rem}.ui-px-8{padding-left:2rem;padding-right:2rem}.ui-py-3{padding-top:.75rem;padding-bottom:.75rem}.ui-text-base{font-size:1rem;line-height:1.5rem}.ui-text-xl{font-size:1.25rem;line-height:1.75rem}.ui-text-xs{font-size:.75rem;line-height:1rem}.ui-font-medium{font-weight:500}.ui-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.ui-text-transparent{color:transparent}.ui-text-\[\#6b7280\]{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.ui-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.ui-no-underline{text-decoration-line:none}.hover\:ui-bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.ui-group:hover .group-hover\:ui-underline{text-decoration-line:underline}@media (min-width:768px){.md\:ui-py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:ui-px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:ui-text-lg{font-size:1.125rem;line-height:1.75rem}.md\:ui-leading-6{line-height:1.5rem}} \ No newline at end of file diff --git a/_next/static/css/483687718ea55835.css b/_next/static/css/483687718ea55835.css deleted file mode 100644 index a1da4e4..0000000 --- a/_next/static/css/483687718ea55835.css +++ /dev/null @@ -1,3 +0,0 @@ -/* -! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com -*/*,:after,:before{border:0 solid}:root,[data-theme]{background-color:hsl(var(--b1)/var(--tw-bg-opacity,1));color:hsl(var(--bc)/var(--tw-text-opacity,1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf:259 94% 44%;--sf:314 100% 40%;--af:174 75% 39%;--nf:214 20% 14%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:0.5rem;--rounded-badge:1.9rem;--animation-btn:0.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:0.95;--border-btn:1px;--tab-border:1px;--tab-radius:0.5rem;--p:259 94% 51%;--pc:259 96% 91%;--s:314 100% 47%;--sc:314 100% 91%;--a:174 75% 46%;--ac:174 75% 11%;--n:214 20% 21%;--nc:212 19% 87%;--b1:0 0% 100%;--b2:0 0% 95%;--b3:180 2% 90%;--bc:215 28% 17%}@media (prefers-color-scheme:dark){:root{color-scheme:dark;--pf:262 80% 43%;--sf:316 70% 43%;--af:175 70% 34%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:0.5rem;--rounded-badge:1.9rem;--animation-btn:0.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:0.95;--border-btn:1px;--tab-border:1px;--tab-radius:0.5rem;--p:262 80% 50%;--pc:0 0% 100%;--s:316 70% 50%;--sc:0 0% 100%;--a:175 70% 41%;--ac:0 0% 100%;--n:213 18% 20%;--nf:212 17% 17%;--nc:220 13% 69%;--b1:212 18% 14%;--b2:213 18% 12%;--b3:213 18% 10%;--bc:220 13% 69%}}[data-theme=light]{color-scheme:light;--pf:259 94% 44%;--sf:314 100% 40%;--af:174 75% 39%;--nf:214 20% 14%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:0.5rem;--rounded-badge:1.9rem;--animation-btn:0.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:0.95;--border-btn:1px;--tab-border:1px;--tab-radius:0.5rem;--p:259 94% 51%;--pc:259 96% 91%;--s:314 100% 47%;--sc:314 100% 91%;--a:174 75% 46%;--ac:174 75% 11%;--n:214 20% 21%;--nc:212 19% 87%;--b1:0 0% 100%;--b2:0 0% 95%;--b3:180 2% 90%;--bc:215 28% 17%}[data-theme=dark]{color-scheme:dark;--pf:262 80% 43%;--sf:316 70% 43%;--af:175 70% 34%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:0.5rem;--rounded-badge:1.9rem;--animation-btn:0.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:0.95;--border-btn:1px;--tab-border:1px;--tab-radius:0.5rem;--p:262 80% 50%;--pc:0 0% 100%;--s:316 70% 50%;--sc:0 0% 100%;--a:175 70% 41%;--ac:0 0% 100%;--n:213 18% 20%;--nf:212 17% 17%;--nc:220 13% 69%;--b1:212 18% 14%;--b2:213 18% 12%;--b3:213 18% 10%;--bc:220 13% 69%}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}@media (hover:hover){.menu li>:not(ul):not(.menu-title):not(details).active,.menu li>:not(ul):not(.menu-title):not(details):active,.menu li>details>summary:active{--tw-bg-opacity:1;background-color:hsl(var(--n)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--nc)/var(--tw-text-opacity))}}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--b2)/var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;border-radius:var(--rounded-btn,.5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;gap:.5rem;font-weight:600;text-decoration-line:none;border-width:var(--border-btn,1px);animation:button-pop var(--animation-btn,.25s) ease-out;text-transform:var(--btn-text-case,uppercase);--tw-border-opacity:1;--tw-bg-opacity:1;background-color:hsl(var(--b2)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity));outline-color:hsl(var(--bc)/1)}.btn-disabled,.btn:disabled,.btn[disabled]{pointer-events:none}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.btn:is(input[type=checkbox]),.btn:is(input[type=radio]){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content:attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box,1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;--tw-bg-opacity:1;background-color:hsl(var(--n)/var(--tw-bg-opacity));opacity:.75;border-radius:var(--rounded-box,1rem)}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity:1;color:hsl(var(--nc)/var(--tw-text-opacity))}@media (hover:hover){.btn:hover{--tw-border-opacity:1;border-color:hsl(var(--b3)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--b3)/var(--tw-bg-opacity))}.btn.glass:hover{--glass-opacity:25%;--glass-border-opacity:15%}.btn-disabled:hover,.btn:disabled:hover,.btn[disabled]:hover{--tw-border-opacity:0;background-color:hsl(var(--n)/var(--tw-bg-opacity));--tw-bg-opacity:0.2;color:hsl(var(--bc)/var(--tw-text-opacity));--tw-text-opacity:0.2}.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{--tw-border-opacity:1;border-color:hsl(var(--pf)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--pf)/var(--tw-bg-opacity))}:where(.menu li:not(.menu-title):not(.disabled)>:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{cursor:pointer;background-color:hsl(var(--bc)/.1);--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-left:1rem;padding-left:.5rem}.menu :where(li:not(.menu-title)>:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc)/.3)}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.navbar{display:flex;align-items:center;padding:var(--navbar-padding,.5rem);min-height:4rem;width:100%}:where(.navbar>*){display:inline-flex;align-items:center}.navbar-start{width:50%;justify-content:flex-start}.navbar-end{width:50%;justify-content:flex-end}.btn:active:focus,.btn:active:hover{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale,.97))}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn.glass{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity:25%;--glass-border-opacity:15%}.btn.btn-disabled,.btn:disabled,.btn[disabled]{--tw-border-opacity:0;background-color:hsl(var(--n)/var(--tw-bg-opacity));--tw-bg-opacity:0.2;color:hsl(var(--bc)/var(--tw-text-opacity));--tw-text-opacity:0.2}.btn-group>.btn-active,.btn-group>input[type=radio]:checked.btn{--tw-border-opacity:1;border-color:hsl(var(--p)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-group>.btn-active:focus-visible,.btn-group>input[type=radio]:checked.btn:focus-visible{outline-style:solid;outline-width:2px;outline-color:hsl(var(--p)/1)}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity:1;border-color:hsl(var(--p)/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--pc)/var(--tw-text-opacity))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:hsl(var(--p)/1)}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale,.98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity:1;border-color:hsl(var(--b2)/var(--tw-border-opacity))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}:where(.menu li:empty){background-color:hsl(var(--bc)/.1);margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;left:0;top:.75rem;bottom:.75rem;width:1px;background-color:hsl(var(--bc)/.1);content:""}.menu :where(li:not(.menu-title)>:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){padding:.5rem 1rem;text-align:left;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;border-radius:var(--rounded-btn,.5rem);text-wrap:balance}:where(.menu li:not(.menu-title):not(.disabled)>:not(ul):not(details):not(.menu-title)):is(summary):not(.active):focus-visible,:where(.menu li:not(.menu-title):not(.disabled)>:not(ul):not(details):not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>:not(ul):not(details):not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):is(summary):not(.active):focus-visible,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active):focus{cursor:pointer;background-color:hsl(var(--bc)/.1);--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.menu li>:not(ul):not(.menu-title):not(details).active,.menu li>:not(ul):not(.menu-title):not(details):active,.menu li>details>summary:active{--tw-bg-opacity:1;background-color:hsl(var(--n)/var(--tw-bg-opacity));--tw-text-opacity:1;color:hsl(var(--nc)/var(--tw-text-opacity))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>.menu-dropdown-toggle):after,.menu :where(li>details>summary):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after,.menu :where(li>details[open]>summary):after{transform:rotate(225deg);margin-top:0}@keyframes modal-pop{0%{opacity:0}}@keyframes progress-loading{50%{background-position-x:-115%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.menu-horizontal{display:inline-flex;flex-direction:row}.menu-horizontal>li:not(.menu-title)>details>ul{position:absolute}.btn-group .btn:not(:first-child):not(:last-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group .btn:first-child:not(:last-child){margin-top:0;margin-left:-1px;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn,.5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn,.5rem)}.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group-horizontal .btn:first-child:not(:last-child){margin-top:0;margin-left:-1px;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:0}.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn,.5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn,.5rem)}.btn-group-vertical .btn:first-child:not(:last-child){margin-top:-1px;margin-left:0;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:var(--rounded-btn,.5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:var(--rounded-btn,.5rem)}.menu-horizontal>li:not(.menu-title)>details>ul{margin-top:1rem;margin-left:0;padding-top:.5rem;padding-bottom:.5rem;padding-right:.5rem}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){--tw-bg-opacity:1;background-color:hsl(var(--b1)/var(--tw-bg-opacity));--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);border-radius:var(--rounded-box,1rem)}.mx-auto{margin-left:auto;margin-right:auto}.mt-12{margin-top:3rem}.mr-5{margin-right:1.25rem}.block{display:block}.flex{display:flex}.grid{display:grid}.h-14{height:3.5rem}.w-auto{width:auto}.w-14{width:3.5rem}.grow{flex-grow:1}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.place-content-evenly{place-content:space-evenly}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.bg-cat-base{--tw-bg-opacity:1;background-color:rgb(30 30 46/var(--tw-bg-opacity))}.bg-cat-crust{--tw-bg-opacity:1;background-color:rgb(17 17 27/var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-brandred{--tw-gradient-from:#ef4444;--tw-gradient-to:rgba(239,68,68,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-brandblue{--tw-gradient-to:#3b82f6}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pt-16{padding-top:4rem}.pb-8{padding-bottom:2rem}.text-center{text-align:center}.text-6xl{font-size:3.75rem;line-height:1}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-extrabold{font-weight:800}.tracking-tight{letter-spacing:-.025em}.text-transparent{color:transparent}@media (min-width:640px){.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:pt-24{padding-top:6rem}.sm\:text-7xl{font-size:4.5rem;line-height:1}}@media (min-width:1024px){.lg\:flex{display:flex}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-8xl{font-size:6rem;line-height:1}}@media (min-width:1280px){.xl\:text-8xl{font-size:6rem;line-height:1}}*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.ui-ml-2{margin-left:.5rem}.ui-mt-4{margin-top:1rem}.ui-inline-block{display:inline-block}.ui-flex{display:flex}.ui-h-full{height:100%}.ui-w-full{width:100%}.ui-items-center{align-items:center}.ui-justify-center{justify-content:center}.ui-overflow-hidden{overflow:hidden}.ui-rounded-md{border-radius:.375rem}.ui-rounded-lg{border-radius:.5rem}.ui-border{border-width:1px}.ui-border-transparent{border-color:transparent}.ui-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.ui-bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity))}.ui-bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.ui-from-brandred{--tw-gradient-from:#ef4444;--tw-gradient-to:rgba(239,68,68,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.ui-to-brandblue{--tw-gradient-to:#3b82f6}.ui-bg-clip-text{-webkit-background-clip:text;background-clip:text}.ui-bg-origin-border{background-origin:border-box}.ui-p-4{padding:1rem}.ui-px-8{padding-left:2rem;padding-right:2rem}.ui-py-3{padding-top:.75rem;padding-bottom:.75rem}.ui-text-base{font-size:1rem;line-height:1.5rem}.ui-text-xl{font-size:1.25rem;line-height:1.75rem}.ui-text-xs{font-size:.75rem;line-height:1rem}.ui-font-medium{font-weight:500}.ui-text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.ui-text-transparent{color:transparent}.ui-text-\[\#6b7280\]{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.ui-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.ui-no-underline{text-decoration-line:none}.hover\:ui-bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.ui-group:hover .group-hover\:ui-underline{text-decoration-line:underline}@media (min-width:768px){.md\:ui-py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:ui-px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:ui-text-lg{font-size:1.125rem;line-height:1.75rem}.md\:ui-leading-6{line-height:1.5rem}} \ No newline at end of file diff --git a/_next/static/fwgGBewOhJAENupQY5AP5/_buildManifest.js b/_next/static/gi60-tNI4l8hweV9sTMeZ/_buildManifest.js similarity index 100% rename from _next/static/fwgGBewOhJAENupQY5AP5/_buildManifest.js rename to _next/static/gi60-tNI4l8hweV9sTMeZ/_buildManifest.js diff --git a/_next/static/fwgGBewOhJAENupQY5AP5/_ssgManifest.js b/_next/static/gi60-tNI4l8hweV9sTMeZ/_ssgManifest.js similarity index 100% rename from _next/static/fwgGBewOhJAENupQY5AP5/_ssgManifest.js rename to _next/static/gi60-tNI4l8hweV9sTMeZ/_ssgManifest.js diff --git a/home.html b/home.html index d95d986..1d1c634 100644 --- a/home.html +++ b/home.html @@ -1 +1 @@ -Tobi - Turborepo Example \ No newline at end of file +Tobi - Turborepo Example \ No newline at end of file diff --git a/home.txt b/home.txt index 4e78926..6d0266b 100644 --- a/home.txt +++ b/home.txt @@ -1,9 +1,9 @@ -1:HL["./_next/static/css/483687718ea55835.css",{"as":"style"}] -0:[[["",{"children":["home",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/css/483687718ea55835.css","precedence":"next"}]],["$L3",null]]]] -4:I{"id":"86373","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","698:static/chunks/698-3e5c0580e293fb6c.js","185:static/chunks/app/layout-a239de78fa5c93bb.js"],"name":"WagmiProvider","async":false} -5:I{"id":"86984","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","698:static/chunks/698-3e5c0580e293fb6c.js","185:static/chunks/app/layout-a239de78fa5c93bb.js"],"name":"","async":false} -6:I{"id":"30911","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","698:static/chunks/698-3e5c0580e293fb6c.js","185:static/chunks/app/layout-a239de78fa5c93bb.js"],"name":"","async":false} -7:I{"id":"56728","chunks":["272:static/chunks/webpack-ecce68ac89fbbbe4.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} -8:I{"id":"25007","chunks":["272:static/chunks/webpack-ecce68ac89fbbbe4.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} -2:[["$","html",null,{"lang":"en","className":"bg-zinc-900","children":["$","body",null,{"className":"overflow-hidden","children":["$","$L4",null,{"children":[["$","$L5",null,{"children":["$","$L6",null,{}]}],["$","div",null,{"className":"grow bg-cat-base overflow-y-auto","children":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children","home","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":[["$","div",null,{"className":"flex flex-col items-center justify-center","style":{"height":"calc(100vh - 216px)"},"children":["$","main",null,{"className":"mx-auto w-auto px-4 pt-16 pb-8 sm:pt-24 lg:px-8","children":[["$","h1",null,{"className":"mx-auto text-center text-6xl font-extrabold tracking-tight text-white sm:text-7xl lg:text-8xl xl:text-8xl","children":["Tobi",["$","span",null,{"className":"block bg-gradient-to-r from-brandred to-brandblue bg-clip-text text-transparent px-2","children":"Time-lock Omni Bridge Interface"}]]}],["$","div",null,{"className":"mt-12 grid grid-cols-1 sm:grid-cols-3 gap-4 place-content-evenly","children":[["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"./core-concepts/caching","className":"ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]","children":["$","div",null,{"className":"ui-p-4 ui-bg-zinc-900 ui-h-full","children":[["$","p",null,{"className":"ui-inline-block ui-text-xl ui-text-white","children":"Dashboard"}],["$","div",null,{"className":"ui-text-xs ui-mt-4 group-hover:ui-underline","children":["Read More"," →"]}]]}]}],["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks","className":"ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]","children":["$","div",null,{"className":"ui-p-4 ui-bg-zinc-900 ui-h-full","children":[["$","p",null,{"className":"ui-inline-block ui-text-xl ui-text-white","children":"Deposit"}],["$","div",null,{"className":"ui-text-xs ui-mt-4 group-hover:ui-underline","children":["Read More"," →"]}]]}]}],["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"https://turbo.build/repo/docs/reference/configuration","className":"ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]","children":["$","div",null,{"className":"ui-p-4 ui-bg-zinc-900 ui-h-full","children":[["$","p",null,{"className":"ui-inline-block ui-text-xl ui-text-white","children":"Withdraw"}],["$","div",null,{"className":"ui-text-xs ui-mt-4 group-hover:ui-underline","children":["Read More"," →"]}]]}]}]]}]]}]}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"home"},"styles":[]}]}]]}]}]}],null] +1:HL["./_next/static/css/12b17948ec477538.css",{"as":"style"}] +0:[[["",{"children":["home",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/css/12b17948ec477538.css","precedence":"next"}]],["$L3",null]]]] +4:I{"id":"86373","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","365:static/chunks/365-a2410958d9b21caa.js","928:static/chunks/928-df410e5470c19e14.js","185:static/chunks/app/layout-707a88dfc621a4f3.js"],"name":"WagmiProvider","async":false} +5:I{"id":"86984","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","365:static/chunks/365-a2410958d9b21caa.js","928:static/chunks/928-df410e5470c19e14.js","185:static/chunks/app/layout-707a88dfc621a4f3.js"],"name":"","async":false} +6:I{"id":"30911","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","365:static/chunks/365-a2410958d9b21caa.js","928:static/chunks/928-df410e5470c19e14.js","185:static/chunks/app/layout-707a88dfc621a4f3.js"],"name":"","async":false} +7:I{"id":"56728","chunks":["272:static/chunks/webpack-8f714818cecfb7a6.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} +8:I{"id":"25007","chunks":["272:static/chunks/webpack-8f714818cecfb7a6.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} +2:[["$","html",null,{"lang":"en","children":["$","body",null,{"className":"overflow-hidden","children":["$","$L4",null,{"children":[["$","$L5",null,{"children":["$","$L6",null,{}]}],["$","div",null,{"className":"grow bg-cat-base overflow-y-auto","style":{"height":"calc(100vh - 108px)"},"children":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children","home","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":[["$","div",null,{"className":"flex flex-col items-center justify-center","children":["$","main",null,{"className":"mx-auto w-auto px-4 pt-16 pb-8 sm:pt-24 lg:px-8","children":[["$","h1",null,{"className":"mx-auto text-center text-6xl font-extrabold tracking-tight text-white sm:text-7xl lg:text-8xl xl:text-8xl","children":["Tobi",["$","span",null,{"className":"block bg-gradient-to-r from-brandred to-brandblue bg-clip-text text-transparent px-2","children":"Time-lock Omni Bridge Interface"}]]}],["$","div",null,{"className":"mt-12 grid grid-cols-1 sm:grid-cols-3 gap-4 place-content-evenly","children":[["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"./core-concepts/caching","className":"ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]","children":["$","div",null,{"className":"ui-p-4 ui-bg-zinc-900 ui-h-full","children":[["$","p",null,{"className":"ui-inline-block ui-text-xl ui-text-white","children":"Dashboard"}],["$","div",null,{"className":"ui-text-xs ui-mt-4 group-hover:ui-underline","children":["Read More"," →"]}]]}]}],["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks","className":"ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]","children":["$","div",null,{"className":"ui-p-4 ui-bg-zinc-900 ui-h-full","children":[["$","p",null,{"className":"ui-inline-block ui-text-xl ui-text-white","children":"Deposit"}],["$","div",null,{"className":"ui-text-xs ui-mt-4 group-hover:ui-underline","children":["Read More"," →"]}]]}]}],["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"https://turbo.build/repo/docs/reference/configuration","className":"ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]","children":["$","div",null,{"className":"ui-p-4 ui-bg-zinc-900 ui-h-full","children":[["$","p",null,{"className":"ui-inline-block ui-text-xl ui-text-white","children":"Withdraw"}],["$","div",null,{"className":"ui-text-xs ui-mt-4 group-hover:ui-underline","children":["Read More"," →"]}]]}]}]]}]]}]}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"home"},"styles":[]}]}]]}]}]}],null] 3:[[["$","meta",null,{"charSet":"utf-8"}],["$","title",null,{"children":"Tobi - Turborepo Example"}],["$","meta",null,{"name":"description","content":"Welcome to HollowLeaf"}],null,null,null,null,null,null,null,null,["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1"}],null,null,null,null,null,null,null,null,null,null,[]],[null,null,null,null],null,null,[null,null,null,null,null],null,null,null,null,null] diff --git a/vote.html b/vote.html index 844c725..a36a21a 100644 --- a/vote.html +++ b/vote.html @@ -1 +1 @@ -Tobi \ No newline at end of file +Tobi

Account Status

Unverified
1. Capture your face for KYC
Capture face
2. Check your face to generate proof
Need to capture face first
3. Input Proof to KYC
Verify Proof

Proposal

\ No newline at end of file diff --git a/vote.txt b/vote.txt index 3d093e9..09d973d 100644 --- a/vote.txt +++ b/vote.txt @@ -1,10 +1,11 @@ -1:HL["./_next/static/css/483687718ea55835.css",{"as":"style"}] -0:[[["",{"children":["vote",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/css/483687718ea55835.css","precedence":"next"}]],["$L3",null]]]] -4:I{"id":"86373","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","698:static/chunks/698-3e5c0580e293fb6c.js","185:static/chunks/app/layout-a239de78fa5c93bb.js"],"name":"WagmiProvider","async":false} -5:I{"id":"86984","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","698:static/chunks/698-3e5c0580e293fb6c.js","185:static/chunks/app/layout-a239de78fa5c93bb.js"],"name":"","async":false} -6:I{"id":"30911","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","698:static/chunks/698-3e5c0580e293fb6c.js","185:static/chunks/app/layout-a239de78fa5c93bb.js"],"name":"","async":false} -7:I{"id":"56728","chunks":["272:static/chunks/webpack-ecce68ac89fbbbe4.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} -8:I{"id":"25007","chunks":["272:static/chunks/webpack-ecce68ac89fbbbe4.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} -9:I{"id":"56749","chunks":["65:static/chunks/app/vote/page-2960ea9fe8b11384.js"],"name":"","async":false} -2:[["$","html",null,{"lang":"en","className":"bg-zinc-900","children":["$","body",null,{"className":"overflow-hidden","children":["$","$L4",null,{"children":[["$","$L5",null,{"children":["$","$L6",null,{}]}],["$","div",null,{"className":"grow bg-cat-base overflow-y-auto","children":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children","vote","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":[["$","div",null,{"className":"flex flex-col items-center justify-center","style":{"height":"calc(100vh - 216px)"},"children":["$","$L9",null,{}]}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"vote"},"styles":[]}]}]]}]}]}],null] +1:HL["./_next/static/css/12b17948ec477538.css",{"as":"style"}] +0:[[["",{"children":["vote",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/css/12b17948ec477538.css","precedence":"next"}]],["$L3",null]]]] +4:I{"id":"86373","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","365:static/chunks/365-a2410958d9b21caa.js","928:static/chunks/928-df410e5470c19e14.js","185:static/chunks/app/layout-707a88dfc621a4f3.js"],"name":"WagmiProvider","async":false} +5:I{"id":"86984","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","365:static/chunks/365-a2410958d9b21caa.js","928:static/chunks/928-df410e5470c19e14.js","185:static/chunks/app/layout-707a88dfc621a4f3.js"],"name":"","async":false} +6:I{"id":"30911","chunks":["894:static/chunks/e743bcaa-bd7b0016181a2d28.js","365:static/chunks/365-a2410958d9b21caa.js","928:static/chunks/928-df410e5470c19e14.js","185:static/chunks/app/layout-707a88dfc621a4f3.js"],"name":"","async":false} +7:I{"id":"56728","chunks":["272:static/chunks/webpack-8f714818cecfb7a6.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} +8:I{"id":"25007","chunks":["272:static/chunks/webpack-8f714818cecfb7a6.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} +9:I{"id":"13159","chunks":["272:static/chunks/webpack-8f714818cecfb7a6.js","389:static/chunks/0c50322a-cf6a8841f5be1a67.js","454:static/chunks/454-0263845470a46d57.js"],"name":"","async":false} +a:I{"id":"78071","chunks":["365:static/chunks/365-a2410958d9b21caa.js","65:static/chunks/app/vote/page-91e239708e033e51.js"],"name":"","async":false} +2:[["$","html",null,{"lang":"en","children":["$","body",null,{"className":"overflow-hidden","children":["$","$L4",null,{"children":[["$","$L5",null,{"children":["$","$L6",null,{}]}],["$","div",null,{"className":"grow bg-cat-base overflow-y-auto","style":{"height":"calc(100vh - 108px)"},"children":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children","vote","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","asNotFound":"$undefined","childProp":{"current":[["$","$L9",null,{"propsForComponent":{"params":{}},"Component":"$a"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"vote"},"styles":[]}]}]]}]}]}],null] 3:[[["$","meta",null,{"charSet":"utf-8"}],["$","title",null,{"children":"Tobi"}],["$","meta",null,{"name":"description","content":"Welcome to HollowLeaf"}],null,null,null,null,null,null,null,null,["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1"}],null,null,null,null,null,null,null,null,null,null,[]],[null,null,null,null],null,null,[null,null,null,null,null],null,null,null,null,null]