PageSourceSearch

https://app.sailfish.finance/_next/static/chunks/81-d19f77110056367d.js

js sailfish.finance collected 2026-10-08 07:27:10 UTC 495,808 bytes, 31 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81],{1289:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(5853),i=n(2265),o=n(85770),a=n(17325),s=(0,n(31412)._)(),c=function(){},u=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),u=o[0],l=o[1],d=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,b=e.enabled,m=e.shards,y=e.sideCar,g=e.noIsolation,w=e.inert,v=e.allowPinchZoom,A=e.as,x=e.gapMode,C=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(0,a.q)([n,t]),I=(0,r.pi)((0,r.pi)({},C),u);return i.createElement(i.Fragment,null,b&&i.createElement(y,{sideCar:s,removeScrollBar:p,shards:m,noIsolation:g,inert:w,setCallbacks:l,allowPinchZoom:!!v,lockRef:n,gapMode:x}),d?i.cloneElement(i.Children.only(f),(0,r.pi)((0,r.pi)({},I),{ref:E})):i.createElement(void 0===A?"div":A,(0,r.pi)({},I,{className:h,ref:E}),f))});u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},u.classNames={fullWidth:o.zi,zeroRight:o.pF};var l=n(49085),d=n(5517),f=n(18704),h=!1;if("undefined"!=typeof window)try{var p=Object.defineProperty({},"passive",{get:function(){return h=!0,!0}});window.addEventListener("test",p,p),window.removeEventListener("test",p,p)}catch(e){h=!1}var b=!!h&&{passive:!1},m=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},y=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),g(e,r)){var i=w(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},g=function(e,t){return"v"===e?m(t,"overflowY"):m(t,"overflowX")},w=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},v=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,c=n.target,u=t.contains(c),l=!1,d=s>0,f=0,h=0;do{var p=w(e,c),b=p[0],m=p[1]-p[2]-a*b;(b||m)&&g(e,c)&&(f+=m,h+=b),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return d&&(i&&1>Math.abs(f)||!i&&s>f)?l=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(l=!0),l},A=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},x=function(e){return[e.deltaX,e.deltaY]},C=function(e){return e&&"current"in e?e.current:e},E=0,I=[],P=(0,l.L)(s,function(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),a=i.useState(E++)[0],s=i.useState(f.Ws)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(C),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var r,i=A(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=y(d,l);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=y(d,l)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||u)&&(o.current=r),!r)return!0;var h=o.current||r;return v(h,t,e,"h"===h?s:u,!0)},[]),l=i.useCallback(function(e){if(I.length&&I[I.length-1]===s){var n="deltaY"in e?x(e):A(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(c.current.shards||[]).map(C).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!c.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),h=i.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),p=i.useCallback(function(e){n.current=A(e),o.current=void 0},[]),m=i.useCallback(function(t){h(t.type,x(t),t.target,u(t,e.lockRef.current))}
1,[]),g=i.useCallback(function(t){h(t.type,A(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return I.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",l,b),document.addEventListener("touchmove",l,b),document.addEventListener("touchstart",p,b),function(){I=I.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,b),document.removeEventListener("touchmove",l,b),document.removeEventListener("touchstart",p,b)}},[]);var w=e.removeScrollBar,P=e.inert;return i.createElement(i.Fragment,null,P?i.createElement(s,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,w?i.createElement(d.jp,{gapMode:e.gapMode}):null)}),k=i.forwardRef(function(e,t){return i.createElement(u,(0,r.pi)({},e,{ref:t,sideCar:P}))});k.classNames=u.classNames;var B=k},76327:function(e,t,n){"use strict";function r(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function i(e,t){var n={};if("object"==typeof t)!function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={};for(var o in t){var a=t[o],s=[...r,o];"string"==typeof a||"number"==typeof a||null==a?i[o]=n(a,s):"object"!=typeof a||Array.isArray(a)?console.warn('Skipping invalid key "'.concat(s.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"')):i[o]=e(a,n,s)}return i}(t,(t,i)=>{null!=t&&(n[r(function(e,t){var n=e;for(var r of t){if(!(r in n))throw Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}(e,i))]=String(t))});else for(var i in e){var o=e[i];null!=o&&(n[r(i)]=o)}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(e=>"".concat(e,":").concat(this[e])).join(";")},writable:!1}),n}n.d(t,{L:function(){return i}})},11344:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){!function(e,t,n){var r;(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{$:function(){return s}});var o=e=>function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Object.assign({},...n.map(e=>e.styles)),a=Object.keys(o),s=a.filter(e=>"mappings"in o[e]);return Object.assign(t=>{var n=[],r={},a=i({},t),c=!1;for(var u of s){var l=t[u];if(null!=l)for(var d of(c=!0,o[u].mappings))r[d]=l,null==a[d]&&delete a[d]}var f=c?i(i({},r),a):t;for(var h in f)if(function(){var e=f[h],t=o[h];try{if(t.mappings)return 1;if("string"==typeof e||"number"==typeof e)n.push(t.values[e].defaultClass);else if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=e[r];if(null!=i){var a=t.responsiveArray[r];n.push(t.values[i].conditions[a])}}else for(var s in e){var c=e[s];null!=c&&n.push(t.values[c].conditions[s])}}catch(e){throw e}}())continue;return e(n.join(" "))},{properties:new Set(a)})},a=e=>e,s=function(){return o(a)(...arguments)}},96945:function(e,t,n){"use strict";n.d(t,{d:function(){return o},M:function(){return i}});var r=function(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e};function i(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");return r(function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return{[t.defaultCondition]:e}}if(Array.isArray(e)){if(!("responsiveArray"in t))throw Error("Responsive arrays are not supported");var n={};for(var r in t.responsiveArray)null!=e[r]&&(n[t.responsiveArray[r]]=e[r]);return n}return e},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function o(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");var n=i(e);return r(function(e,r){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return r(e,t.defaultCondition)}var i=Array.isArray(e)?n(e):e,o={};for(var a in i)null!=i[a]&&(o[a]=r(i[a],a));return o},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}},81310: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 o(e,t,r,o,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,o||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.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},s.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,o=r.length,a=Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],d=arguments.length;
1if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,a),!0}for(u=1,c=Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var f,h=l.length;for(u=0;u<h;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(f=1,c=Array(d-1);f<d;f++)c[f-1]=arguments[f];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},85770:function(e,t,n){"use strict";n.d(t,{Av:function(){return a},pF:function(){return r},xv:function(){return o},zi:function(){return i}});var r="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},5517:function(e,t,n){"use strict";n.d(t,{jp:function(){return b}});var r=n(2265),i=n(18704),o=n(85770),a={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},c=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[s(n),s(r),s(i)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=c(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},l=(0,i.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n  .".concat(o.xv," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(c,"px ").concat(r,";\n  }\n  body[").concat(d,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(o.pF," {\n    right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(o.zi," {\n    margin-right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(o.pF," .").concat(o.pF," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(o.zi," .").concat(o.zi," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(d,"] {\n    ").concat(o.Av,": ").concat(c,"px;\n  }\n")},h=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},p=function(){r.useEffect(function(){return document.body.setAttribute(d,(h()+1).toString()),function(){var e=h()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},b=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i;p();var a=r.useMemo(function(){return u(o)},[o]);return r.createElement(l,{styles:f(a,!t,o,n?"":"!important")})}},18704:function(e,t,n){"use strict";n.d(t,{Ws:function(){return s}});var r,i=n(2265),o=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a=function(){var e=o();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},s=function(){var e=a();return function(t){return e(t.styles,t.dynamic),null}}},62061:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",c="object",u="string",l="major",d="model",f="name",h="type",p="vendor",b="version",m="architecture",y="console",g="mobile",w="tablet",v="smarttv",A="wearable",x="embedded",C="Amazon",E="Apple",I="ASUS",P="BlackBerry",k="Browser",B="Chrome",S="Firefox",O="Google",M="Honor",N="Huawei",R="Microsoft",F="Motorola",T="Nvidia",G="OnePlus",U="Opera",L="OPPO",j="Samsung",D="Sharp",z="Sony",q="Xiaomi",W="Zebra",Q="Facebook",$="Chromium OS",H="Mac OS",V=" Browser",K=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},J=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Z=function(e,t){return typeof e===u&&-1!==Y(t).indexOf(Y(e))},Y=function(e){return e.toLowerCase()},X=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},_=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(i=0;i<h.length;i++)l=u[++r],typeof(s=h[i])===c&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||o;d+=2}},ee=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Z(t[n][r],e))return"?"===n?o:n}else if(Z(t[n],e))return"?"===n?o:n;return t.hasOwnProperty("*")?t["*"]:e},et={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},en={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,b],[/opios[\/ ]+([\w\.]+)/i],[b,[f,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[f,U+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[f,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[f,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[f,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[f,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+k],b],[/\bfocus\/([\w\.]+)/i],[b,[f,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[f,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[f,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[f,"MIUI"+V]],[/fxios\/([\w\.-]+)/i],[b,[f,S]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+V],b],[/samsungbrowser\/([\w\.]+)/i],[b,[f,j+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,Q],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[f,"GSA"]],[/musical_ly(?:.
1+app_?version\/|_)([\w\.]+)/i],[b,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[f,B+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,B+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[f,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[b,ee,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[f,S+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[f,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[b,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[m,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[m,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[m,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[m,/ower/,"",Y]],[/ sun4\w[;\)]/i],[[m,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[m,Y]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,j],[h,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,j],[h,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,E],[h,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,E],[h,w]],[/(macintosh);/i],[d,[p,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,D],[h,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[p,M],[h,w]],[/honor([-\w ]+)[;\)]/i],[d,[p,M],[h,g]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[d,[p,N],[h,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,N],[h,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[p,q],[h,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[d,/_/g," "],[p,q],[h,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,L],[h,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[p,ee,{OnePlus:["304","403","203"],"*":L}],[h,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,F],[h,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,F],[h,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,"LG"],[h,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,"LG"],[h,g]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[d,[p,"Lenovo"],[h,w]],[/(nokia) (t[12][01])/i],[p,d,[h,w]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[h,g],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[p,O],[h,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,O],[h,g]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,z],[h,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,z],[h,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,G],[h,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,C],[h,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,C],[h,g]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,P],[h,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,I],[h,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,I],[h,g]],[/(nexus 9)/i],[d,[p,"HTC"],[h,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,g]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[p,"TCL"],[h,w]],[/(itel) ((\w+))/i],[[p,Y],d,[h,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[h,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[p,"Energizer"],[h,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[p,"Cat"],[h,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[p,"Smartfren"],[h,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[p,"Nothing"],[h,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[p,"Archos"],[h,w]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[p,"Archos"],[h,g]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[p,d,[h,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[h,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[h,w]],[/(surface duo)/i],[d,[p,R],[h,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,g]],[/(u304aa)/i],[d,[p,"AT&T"],[h,g]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,g]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,w]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,w]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,w]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,w]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,w]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,g]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,g]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,w]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,w]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,g]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,w]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,w]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,w]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[p,T],[h,w]],[/(sprint) (\w+)/i],[p,d,[h,g]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,R],[h,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,W],[h,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,W],[h,g]],[/smart-tv.+(samsung)/i],[p,[h,v]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,j],[h,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[h,v]],[/(apple) ?tv/i],[p,[d,E+" TV"],[h,v]],[/crkey/i],[[d,B+"cast"],[p,O],[h,v]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,C],[h,v]],[/(shield \w+ tv)/i],[d,[p,T],[h,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,D],[h,v]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,z],[h,v]],[/(mi(tv|box)-?\w+) bui/i],[d,[p,q],[h,v]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[h,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,X],[d,X],[h,v]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[h,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,y]],[/droid.+; (shield)( bui|\))/i],[d,[p,T],[h,y]],[/(playstation \w+)/i],[d,[p,z],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,R],[h,y]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[p,j],[h,A]],[/((pebble))app/i,/(asu
vendor: 4,965 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,d,[h,A]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[p,L],[h,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,E],[h,A]],[/(opwwe\d{3})/i],[d,[p,G],[h,A]],[/(moto 360)/i],[d,[p,F],[h,A]],[/(smartwatch 3)/i],[d,[p,z],[h,A]],[/(g watch r)/i],[d,[p,"LG"],[h,A]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,W],[h,A]],[/droid.+; (glass) \d/i],[d,[p,O],[h,A]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,d,[h,A]],[/; (quest( \d| pro)?)/i],[d,[p,Q],[h,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,x]],[/(aeobc)\b/i],[d,[p,C],[h,x]],[/(homepod).+mac os/i],[d,[p,E],[h,x]],[/windows iot/i],[[h,x]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,b],[/ladybird\//i],[[f,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,b],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[f,[b,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,ee,et],[f,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,H],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,f],[/(ubuntu) ([\w\.]+) like android/i],[[f,/(.+)/,"$1 Touch"],b],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[f,b],[/\(bb(10);/i],[b,[f,P]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[b,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[f,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[f,B+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,$],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,b],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,b]]},er=function(e,t){if(typeof e===c&&(t=e,e=o),!(this instanceof er))return new er(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:o,v=t?K(en,t):en,A=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=o,t[b]=o,_.call(t,r,v.browser),t[l]=typeof(e=t[b])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,A&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=o,_.call(e,r,v.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[d]=o,e[h]=o,_.call(e,r,v.device),A&&!e[h]&&y&&y.mobile&&(e[h]=g),A&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=w),e},this.getEngine=function(){var e={};return e[f]=o,e[b]=o,_.call(e,r,v.engine),e},this.getOS=function(){var e={};return e[f]=o,e[b]=o,_.call(e,r,v.os),A&&!e[f]&&y&&y.platform&&"Unknown"!=y.platform&&(e[f]=y.platform.replace(/chrome os/i,$).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>500?X(e,500):e,this},this.setUA(r),this};er.VERSION="1.0.41",er.BROWSER=J([f,b,l]),er.CPU=J([m]),er.DEVICE=J([d,p,h,y,g,v,w,A,x]),er.ENGINE=er.OS=J([f,b]),typeof t!==s?(e.exp
1orts&&(t=e.exports=er),t.UAParser=er):n.amdO?o!==(r=(function(){return er}).call(t,n,t,e))&&(e.exports=r):typeof i!==s&&(i.UAParser=er);var ei=typeof i!==s&&(i.jQuery||i.Zepto);if(ei&&!ei.ua){var eo=new er;ei.ua=eo.getResult(),ei.ua.get=function(){return eo.getUA()},ei.ua.set=function(e){eo.setUA(e);var t=eo.getResult();for(var n in t)ei.ua[n]=t[n]}}}("object"==typeof window?window:this)},17325:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(2265);function i(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,a=new WeakMap;function s(e,t){var n,s,c,u=(n=t||null,s=function(t){return e.forEach(function(e){return i(e,t)})},(c=(0,r.useState)(function(){return{value:n,callback:s,facade:{get current(){return c.value},set current(value){var e=c.value;e!==value&&(c.value=value,c.callback(value,e))}}}})[0]).callback=s,c.facade);return o(function(){var t=a.get(u);if(t){var n=new Set(t),r=new Set(e),o=u.current;n.forEach(function(e){r.has(e)||i(e,null)}),r.forEach(function(e){n.has(e)||i(e,o)})}a.set(u,e)},[e]),u}},49085:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(5853),i=n(2265),o=function(e){var t=e.sideCar,n=(0,r._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return i.createElement(o,(0,r.pi)({},n))};function a(e,t){return e.useMedium(t),o}o.isSideCarExport=!0},31412:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(5853);function i(e){return e}function o(e){void 0===e&&(e={});var t,n,o,a=(void 0===t&&(t=i),n=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return a.options=(0,r.pi)({async:!0,ssr:!1},e),a}},25566:function(e){var t,n,r,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(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c=[],u=!1,l=-1;function d(){u&&r&&(u=!1,r.length?c=r.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(r=c,c=[];++l<t;)r&&r[l].run();l=-1,t=c.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},70451:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(19667),i={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},o=i.blue,a=function(){let{accentColor:e=o.accentColor,accentColorForeground:t=o.accentColorForeground,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,r.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackgroun
1d:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}}};a.accentColors=i},19667:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',i={rounded:'SFRounded, ui-rounded, "SF Pro Rounded", '.concat(r),system:r},o={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},a={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},s=e=>{let{borderRadius:t="large",fontStack:n="rounded",overlayBlur:r="none"}=e;return{blurs:{modalOverlay:a[r].modalOverlay},fonts:{body:i[n]},radii:{actionButton:o[t].actionButton,connectButton:o[t].connectButton,menuButton:o[t].connectButton,modal:o[t].modal,modalMobile:o[t].modalMobile}}}},95422:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r='{\n  "connect_wallet": {\n    "label": "Connect Wallet",\n    "wrong_network": {\n      "label": "Wrong network"\n    }\n  },\n\n  "intro": {\n    "title": "What is a Wallet?",\n    "description": "A wallet is used to send, receive, store, and display digital assets. It\'s also a new way to log in, without needing to create new accounts and passwords on every website.",\n    "digital_asset": {\n      "title": "A Home for your Digital Assets",\n      "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."\n    },\n    "login": {\n      "title": "A New Way to Log In",\n      "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."\n    },\n    "get": {\n      "label": "Get a Wallet"\n    },\n    "learn_more": {\n      "label": "Learn More"\n    }\n  },\n\n  "sign_in": {\n    "label": "Verify your account",\n    "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",\n    "message": {\n      "send": "Sign message",\n      "preparing": "Preparing message...",\n      "cancel": "Cancel",\n      "preparing_error": "Error preparing message, please retry!"\n    },\n    "signature": {\n      "waiting": "Waiting for signature...",\n      "verifying": "Verifying signature...",\n      "signing_error": "Error signing message, please retry!",\n      "verifying_error": "Error verifying signature, please retry!",\n      "oops_error": "Oops, something went wrong!"\n    }\n  },\n\n  "connect": {\n    "label": "Connect",\n    "title": "Connect a Wallet",\n    "new_to_ethereum": {\n      "description": "New to Ethereum wallets?",\n      "learn_more": {\n        "label": "Learn More"\n      }\n    },\n    "learn_more": {\n      "label": "Learn more"\n    }
1,\n    "recent": "Recent",\n    "status": {\n      "opening": "Opening %{wallet}...",\n      "connecting": "Connecting",\n      "connect_mobile": "Continue in %{wallet}",\n      "not_installed": "%{wallet} is not installed",\n      "not_available": "%{wallet} is not available",\n      "confirm": "Confirm connection in the extension",\n      "confirm_mobile": "Accept connection request in the wallet"\n    },\n    "secondary_action": {\n      "get": {\n        "description": "Don\'t have %{wallet}?",\n        "label": "GET"\n      },\n      "install": {\n        "label": "INSTALL"\n      },\n      "retry": {\n        "label": "RETRY"\n      }\n    },\n    "walletconnect": {\n      "description": {\n        "full": "Need the official WalletConnect modal?",\n        "compact": "Need the WalletConnect modal?"\n      },\n      "open": {\n        "label": "OPEN"\n      }\n    }\n  },\n\n  "connect_scan": {\n    "title": "Scan with %{wallet}",\n    "fallback_title": "Scan with your phone"\n  },\n\n  "connector_group": {\n    "installed": "Installed",\n    "recommended": "Recommended",\n    "other": "Other",\n    "popular": "Popular",\n    "more": "More",\n    "others": "Others"\n  },\n\n  "get": {\n    "title": "Get a Wallet",\n    "action": {\n      "label": "GET"\n    },\n    "mobile": {\n      "description": "Mobile Wallet"\n    },\n    "extension": {\n      "description": "Browser Extension"\n    },\n    "mobile_and_extension": {\n      "description": "Mobile Wallet and Extension"\n    },\n    "mobile_and_desktop": {\n      "description": "Mobile and Desktop Wallet"\n    },\n    "looking_for": {\n      "title": "Not what you\'re looking for?",\n      "mobile": {\n        "description": "Select a wallet on the main screen to get started with a different wallet provider."\n      },\n      "desktop": {\n        "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",\n        "wide_description": "Select a wallet on the left to get started with a different wallet provider."\n      }\n    }\n  },\n\n  "get_options": {\n    "title": "Get started with %{wallet}",\n    "short_title": "Get %{wallet}",\n    "mobile": {\n      "title": "%{wallet} for Mobile",\n      "description": "Use the mobile wallet to explore the world of Ethereum.",\n      "download": {\n        "label": "Get the app"\n      }\n    },\n    "extension": {\n      "title": "%{wallet} for %{browser}",\n      "description": "Access your wallet right from your favorite web browser.",\n      "download": {\n        "label": "Add to %{browser}"\n      }\n    },\n    "desktop": {\n      "title": "%{wallet} for %{platform}",\n      "description": "Access your wallet natively from your powerful desktop.",\n      "download": {\n        "label": "Add to %{platform}"\n      }\n    }\n  },\n\n  "get_mobile": {\n    "title": "Install %{wallet}",\n    "description": "Scan with your phone to download on iOS or Android",\n    "continue": {\n      "label": "Continue"\n    }\n  },\n\n  "get_instructions": {\n    "mobile": {\n      "connect": {\n        "label": "Connect"\n      },\n      "learn_more": {\n        "label": "Learn More"\n      }\n    },\n    "extension": {\n      "refresh": {\n        "label": "Refresh"\n      },\n      "learn_more": {\n        "label": "Learn More"\n      }\n    },\n    "desktop": {\n      "connect": {\n        "label": "Connect"\n      },\n      "learn_more": {\n        "label": "Learn More"\n      }\n    }\n  },\n\n  "chains": {\n    "title": "Switch Networks",\n    "wrong_network": "Wrong network detected, switch or disconnect to continue.",\n    "confirm": "Confirm in Wallet",\n    "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",\n    "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",\n    "disconnect": "Disconnect",\n    "connected": "Connected"\n  },\n\n  "profile": {\n    "disconnect": {\n      "label": "Disconnect"\n    },\n    "copy_address": {\n      "label": "Copy Address",\n      "copied": "Copied!"\n    },\n    "explorer": {\n      "label": "View more on explorer"\n    },\n    "transactions": {\n      "description": "%{appName} transactions will appear here...",\n      "description_fallback": "Your transactions will appear here...",\n      "recent": {\n        "title": "Recent Transactions"\n      },\n      "clear": {\n        "label": "Clear All"\n      }\n    }\n  },\n\n  "wallet_connectors": {\n    "ready": {\n      "qr_code": {\n        "step1": {\n          "description": "Add Ready to your home screen for faster access to your wallet.",\n          "title": "Open the Ready app"\n        },\n        "step2": {\n          "description": "Create a wallet and username, or import an existing wallet.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the Scan QR button"\n        }\n      }\n    },\n\n    "berasig": {\n      "extension": {\n        "step1": {\n          "title": "Install the BeraSig extension",\n          "description": "We recommend pinning BeraSig to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "best": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Best Wallet app",\n          "description": "Add Best Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "bifrost": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",\n          "title": "Open the Bifrost Wallet app"\n        },\n        "step2": {\n          "description": "Create or import a wallet using your recovery phrase.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      }\n    },\n\n    "bitget": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",\n          "title": "Open the Bitget Wallet app"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Bitget Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "bitski": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",\n          "title": "Install the Bitski extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "bitverse": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Bitverse Wallet app",\n          "description": "Add Bitverse Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "bloom": {\n      "desktop": {\n        "step1": {\n          "title": "Open the Bloom Wallet app",\n          "description": "We recommend putting Bloom Wallet on your home screen for quicker access."\n        },\n        "step2": {\n          "description": "Create or import a wallet using your recovery phrase.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",\n          "title": "Click on Connect"\n        }\n      }\n    },\n\n    "bybit": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Bybit on your home screen for faster access to your wallet.",\n          "title": "Open the Bybit app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using our backup feature on your phone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",\n          "title": "Install the Bybit Wallet extension"\n        },\n        "step2": {\n          "description": "Create a new wallet or import an existing one.",\n          "title": "Create or Import a wallet"\n        },\n        "step3": {\n          "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "binance": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Binance on your home screen for faster access to your wallet.",\n          "title": "Open the Binance app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using our backup feature on your phone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the WalletConnect button"\n        }\n      },\n      "extension": {\n        "step1": {\n          "title": "Install the Binance Wallet extension",\n          "description": "We recommend pinning Binance Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "coin98": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",\n          "title": "Open the C
1oin98 Wallet app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using our backup feature on your phone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the WalletConnect button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",\n          "title": "Install the Coin98 Wallet extension"\n        },\n        "step2": {\n          "description": "Create a new wallet or import an existing one.",\n          "title": "Create or Import a wallet"\n        },\n        "step3": {\n          "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "coinbase": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",\n          "title": "Open the Coinbase Wallet app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using the cloud backup feature.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Coinbase Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "compass": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Compass Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "core": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Core on your home screen for faster access to your wallet.",\n          "title": "Open the Core app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using our backup feature on your phone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the WalletConnect button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",\n          "title": "Install the Core extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "fox": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting FoxWallet on your home screen for quicker access.",\n          "title": "Open the FoxWallet app"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      }\n    },\n\n    "frontier": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",\n          "title": "Open the Frontier Wallet app"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Frontier Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "im_token": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the imToken app",\n          "description": "Put imToken app on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap Scanner Icon in top right corner",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "iopay": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting ioPay on your home screen for faster access to your wallet.",\n          "title": "Open the ioPay app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using our backup feature on your phone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the WalletConnect button"\n        }\n      }\n    },\n\n    "kaikas": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",\n          "title": "Install the Kaikas extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the Kaikas app",\n          "description": "Put Kaikas app on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap Scanner Icon in top right corner",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "kaia": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",\n          "title": "Install the Kaia extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the Kaia app",\n          "description": "Put Kaia app on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap Scanner Icon in top right corner",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "kraken": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Kraken Wallet app",\n          "description": "Add Kraken Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "kresus": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Kresus Wallet app",\n          "description": "Add Kresus Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "magicEden": {\n      "extension": {\n        "step1": {\n          "title": "Install the Magic Eden extension",\n          "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "metamask": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the MetaMask app",\n          "description": "We recommend putting MetaMask on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the MetaMask extension",\n          "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "nestwallet": {\n      "extension": {\n        "step1": {\n          "title": "Install the NestWallet extension",\n          "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    }
1,\n\n    "okx": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the OKX Wallet app",\n          "description": "We recommend putting OKX Wallet on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the OKX Wallet extension",\n          "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "omni": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Omni app",\n          "description": "Add Omni to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "1inch": {\n      "qr_code": {\n        "step1": {\n          "description": "Put 1inch Wallet on your home screen for faster access to your wallet.",\n          "title": "Open the 1inch Wallet app"\n        },\n        "step2": {\n          "description": "Create a wallet and username, or import an existing wallet.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the Scan QR button"\n        }\n      }\n    },\n\n    "token_pocket": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the TokenPocket app",\n          "description": "We recommend putting TokenPocket on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the TokenPocket extension",\n          "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "trust": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Trust Wallet app",\n          "description": "Put Trust Wallet on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap WalletConnect in Settings",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the Trust Wallet extension",\n          "description": "Click at the top right of your browser and pin Trust Wallet for easy access."\n        },\n        "step2": {\n          "title": "Create or Import a wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    }
1,\n\n    "uniswap": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Uniswap app",\n          "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "zerion": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Zerion app",\n          "description": "We recommend putting Zerion on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the Zerion extension",\n          "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "rainbow": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Rainbow app",\n          "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "You can easily backup your wallet using our backup feature on your phone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "enkrypt": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Enkrypt Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "frame": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",\n          "title": "Install Frame & the companion extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "one_key": {\n      "extension": {\n        "step1": {\n          "title": "Install the OneKey Wallet extension",\n          "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    }
1,\n\n    "paraswap": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the ParaSwap app",\n          "description": "Add ParaSwap Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "phantom": {\n      "extension": {\n        "step1": {\n          "title": "Install the Phantom extension",\n          "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "rabby": {\n      "extension": {\n        "step1": {\n          "title": "Install the Rabby extension",\n          "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "ronin": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Ronin Wallet on your home screen for quicker access.",\n          "title": "Open the Ronin Wallet app"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Ronin Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "ramper": {\n      "extension": {\n        "step1": {\n          "title": "Install the Ramper extension",\n          "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "safeheron": {\n      "extension": {\n        "step1": {\n          "title": "Install the Core extension",\n          "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "taho": {\n      "extension": {\n        "step1": {\n          "title": "Install the Taho extension",\n          "description": "We recommend pinning Tah
1o to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "wigwam": {\n      "extension": {\n        "step1": {\n          "title": "Install the Wigwam extension",\n          "description": "We recommend pinning Wigwam to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "talisman": {\n      "extension": {\n        "step1": {\n          "title": "Install the Talisman extension",\n          "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import an Ethereum Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "ctrl": {\n      "extension": {\n        "step1": {\n          "title": "Install the CTRL Wallet extension",\n          "description": "We recommend pinning CTRL Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "zeal": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Zeal app",\n          "description": "Add Zeal Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      },\n      "extension": {\n        "step1": {\n          "title": "Install the Zeal extension",\n          "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "safepal": {\n      "extension": {\n        "step1": {\n          "title": "Install the SafePal Wallet extension",\n          "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."\n        },\n        "step2": {\n          "title": "Create or Import a wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the SafePal Wallet app",\n          "description": "Put SafePal Wallet on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap WalletConnect in Settings",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "desig": {\n      "extension": {\n        "step1": {\n          "title": "Install the Desig extension",\n          "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "subwallet": {\n      "extension": {\n        "step1": {\n          "title": "Install the SubWallet extension",\n          "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the SubWallet app",\n          "description": "We recommend putting SubWallet on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "clv": {\n      "extension": {\n        "step1": {\n          "title": "Install the CLV Wallet extension",\n          "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the CLV Wallet app",\n          "description": "We recommend putting CLV Wallet on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "okto": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Okto a
1pp",\n          "description": "Add Okto to your home screen for quick access"\n        },\n        "step2": {\n          "title": "Create an MPC Wallet",\n          "description": "Create an account and generate a wallet"\n        },\n        "step3": {\n          "title": "Tap WalletConnect in Settings",\n          "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "ledger": {\n      "desktop": {\n        "step1": {\n          "title": "Open the Ledger Live app",\n          "description": "We recommend putting Ledger Live on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Set up your Ledger",\n          "description": "Set up a new Ledger or connect to an existing one."\n        },\n        "step3": {\n          "title": "Connect",\n          "description": "A connection prompt will appear for you to connect your wallet."\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the Ledger Live app",\n          "description": "We recommend putting Ledger Live on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Set up your Ledger",\n          "description": "You can either sync with the desktop app or connect your Ledger."\n        },\n        "step3": {\n          "title": "Scan the code",\n          "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "valora": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Valora app",\n          "description": "We recommend putting Valora on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or import a wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "gate": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Gate app",\n          "description": "We recommend putting Gate on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n      "extension": {\n        "step1": {\n          "title": "Install the Gate extension",\n          "description": "We recommend pinning Gate to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "gemini": {\n      "qr_code": {\n        "step1": {\n          "title": "Open keys.gemini.com",\n          "description": "Visit keys.gemini.com on your mobile browser - no app download required."\n        },\n        "step2": {\n          "title": "Create Your Wallet Instantly",\n          "description": "Set up your smart wallet in seconds using your device\'s built-in authentication."\n        },\n        "step3": {\n          "title": "Scan to Connect",\n          "description": "Scan the QR code to instantly connect your wallet - it just works."\n        }\n      },\n      "extension": {\n        "step1": {\n          "title": "Go to keys.gemini.com",\n          "description": "No extensions or downloads needed - your wallet lives securely in the browser."\n        },\n        "step2": {\n          "title": "One-Click Setup",\n          "description": "Create your smart wallet instantly with passkey authentication - easier than any wallet out there."\n        },\n        "step3": {\n          "title": "Connect and Go",\n          "description": "Approve the connection and you\'re ready - the unopinionated wallet that just works."\n        }\n      }\n    },\n\n    "xportal": {\n      "qr_code": {\n        "step1": {\n          "description": "Put xPortal on your home screen for faster access to your wallet.",\n          "title": "Open the xPortal app"\n        },\n        "step2": {\n          "description": "Create a wallet or import an existing one.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the Scan QR button"\n        }\n      }\n    }
1,\n\n    "mew": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting MEW Wallet on your home screen for quicker access.",\n          "title": "Open the MEW Wallet app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using the cloud backup feature.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      }\n    },\n\n    "zilpay": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the ZilPay app",\n          "description": "Add ZilPay to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "nova": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Nova Wallet app",\n          "description": "Add Nova Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    }\n  }\n}\n'},2894:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return a}});var r=n(18238),i=n(7989),o=n(11255),a=class extends i.F{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r="pending"===this.state.status,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:i})}let o=await this.#r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:"success",data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:"error",error:t}),t}finally{this.#n.runNext(this)}}#i(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};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};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"}}})(this.state),r.Vr.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},21770:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r=n(2265),i=n(2894),o=n(18238),a=n(24112),s=n(45345),c=class extends a.l{#e;#o=void 0;#a;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#c()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(e){this.#c(),this.#u(e)}getCurrentResult(){return this.#o}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#c(),this.#u()}mutate(e,t){return this.#s=t,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(e)}#c(){let e=this.#a?.state??(0,i.R)();this.#o={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#u(e){o.Vr.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#o.variables,n=this.#o.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#o)})})}},u=n(29827);function l(e,t){let n=(0,u.NL)(t),[i]=r.useState(()=>new c(n,e));r.useEffect(()=>{i.setOptions(e)},[i,e]);let a=r.useSyncExternalStore(r.useCallback(e=>i.subscribe(o.Vr.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=r.useCallback((e,t)=>{i.mutate(e,t).catch(s.ZT)},[i]);if(a.error&&(0,s.L3)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}},43200:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var r=n(53738),i=n(13102),o=n(59455),a=n(31669),s=n(77014);function c(e={}){let t,c,u,l;return(0,r.K)(r=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:e,withCapabilities:t,...n}={}){try{let d=await this.getProvider(),f=e??r.chains[0]?.id;if(!f)throw new i.X4;let h=await d.request({method:"wallet_connect",params:[{capabilities:"capabilities"in n&&n.capabilities?n.capabilities:{},chainIds:[(0,o.eC)(f),...r.chains.filter(e=>e.id!==f).map(e=>(0,o.eC)(e.id))]}]}),p=h.accounts.map(e=>({address:(0,a.K)(e.address),capabilities:e.capabilities??{}})),b=Number(h.chainIds[0]);if(c||(c=this.onAccountsChanged.bind(this),d.on("accountsChanged",c)),u||(u=this.onChainChanged.bind(this),d.on("chainChanged",u)),l||(l=this.onDisconnect.bind(this),d.on("disconnect",l)),e&&b!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===s.ab.code)throw e;return{id:b}});b=t?.id??b}return{accounts:t?p:p.map(e=>e.address),chainId:b}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new s.ab(e);throw e}},async disconnect(){let e=await this.getProvider();c&&(e.removeListener("accountsChanged",c),c=void 0),u&&(e.removeListener("chainChanged",u),u=void 0),l&&(e.removeListener("disconnect",l),l=void 0),e.disconnect()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,a.K)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))}
1,async getProvider(){if(!t){let i="string"==typeof e.preference?{options:e.preference}:{...e.preference,options:e.preference?.options??"all"},{createBaseAccountSDK:o}=await Promise.all([n.e(2957),n.e(9216)]).then(n.bind(n,79216));t=o({...e,appChainIds:r.chains.map(e=>e.id),preference:i}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=r.chains.find(e=>e.id===t);if(!n)throw new s.x3(new i.X4);let a=await this.getProvider();try{return await a.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.eC)(n.id)}]}),n}catch(r){if(4902===r.code)try{let r,i;r=e?.blockExplorerUrls?e.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let s={blockExplorerUrls:r,chainId:(0,o.eC)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:i};return await a.request({method:"wallet_addEthereumChain",params:[s]}),n}catch(e){throw new s.ab(e)}throw new s.x3(r)}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(e=>(0,a.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onDisconnect(e){r.emitter.emit("disconnect");let t=await this.getProvider();c&&(t.removeListener("accountsChanged",c),c=void 0),u&&(t.removeListener("chainChanged",u),u=void 0),l&&(t.removeListener("disconnect",l),l=void 0)}}))}},25764:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(53738),i=n(17454),o=n(14478),a=n(13102),s=n(31669),c=n(77014),u=n(59455),l=n(49287),d=n(39504),f=n(72932);function h(e={}){let t,p,b,m,y,g,w,v;return(0,r.K)(r=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:h.type,async setup(){let e=await this.getProvider();e?.on&&(g||(g=this.onConnect.bind(this),e.on("connect",g)),m||(m=this.onAccountsChanged.bind(this),e.on("accountsChanged",m)))},async connect({chainId:n,isReconnecting:r,withCapabilities:i}={}){let o=await this.getProvider();w||(w=this.onDisplayUri,o.on("display_uri",w));let a=[];r&&(a=await this.getAccounts().catch(()=>[]));try{let r,u;a?.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?r=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(u=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),a=await this.getAccounts()):a=(await t.connect()).map(e=>(0,s.K)(e)));let l=await this.getChainId();if(n&&l!==n){let e=await this.switchChain({chainId:n}).catch(e=>{if(e.code===c.ab.code)throw e;return{id:l}});l=e?.id??l}return w&&(o.removeListener("display_uri",w),w=void 0),r?o.emit("connectAndSign",{accounts:a,chainId:l,signResponse:r}):u&&o.emit("connectWith",{accounts:a,chainId:l,connectWithResponse:u}),g&&(o.removeListener("connect",g),g=void 0),m||(m=this.onAccountsChanged.bind(this),o.on("accountsChanged",m)),y||(y=this.onChainChanged.bind(this),o.on("chainChanged",y)),v||(v=this.onDisconnect.bind(this),o.on("disconnect",v)),{accounts:i?a.map(e=>({address:e,capabilities:{}})):a,chainId:l}}catch(e){if(e.code===c.ab.code)throw new c.ab(e);if(e.code===c.pT.code)throw new c.pT(e);throw e}},async disconnect(){let e=await this.getProvider();y&&(e.removeListener("chainChanged",y),y=void 0),v&&(e.removeListener("disconnect",v),v=void 0),g||(g=this.onConnect.bind(this),e.on("connect",g)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,s.K)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function a(){let a=await (async()=>{let{default:e}=await Promise.all([n.e(9496),n.e(7158),n.e(1679)]).then(n.bind(n,7604));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})(),s={};for(let e of r.chains)s[(0,u.eC)(e.id)]=i.N({chain:e,transports:r.transports})?.[0];t=new a({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:s,dappMetadata:{...e.dappMetadata,name:e.dappMetadata?.name?e.dappMetadata?.name:"wagmi",url:e.dappMetadata?.url?e.dappMetadata?.url:"undefined"!=typeof window?window.location.origin:"https://wagmi.sh"},useDeeplink:e.useDeeplink??!0});let c=await t.init(),l=c?.activeProvider?c.activeProvider:t.getProvider();if(!l)throw new o.M;return l}return p||(b||(b=a()),p=await b),p},async isAuthorized(){try{return!!(await (0,l.J)(()=>(0,d.F)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider(),i=r.chains.find(e=>e.id===t);if(!i)throw new c.x3(new a.X4);try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]}),await o(),await s(t),i}catch(r){if(r.code===c.ab.code)throw new c.ab(r);if(4902===r.code||r?.data?.originalError?.code===4902)try{return await n.request({method:"wallet_addEthereumChain",params:[{blockExplorerUrls:(()=>{let{default:t,...n}=i.blockExplorers??{};return e?.blockExplorerUrls?e.blockExplorerUrls:t?[t.url,...Object.values(n).map(e=>e.url)]:void 0})(),chainId:(0,u.eC)(t),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""]}]}),await o(),await s(t),i}catch(e){if(e.code===c.ab.code)throw new c.ab(e);throw new c.x3(e)}throw new c.x3(r)}async function o(){await (0,l.J)(async()=>{let e=(0,f.ly)(await n.request({method:"eth_chainId"}));if(e!==t)throw Error("User rejected switch after adding network.");return e},{delay:50,retryCount:20})}async function s(e){await new Promise(t=>{let n=i=>{"chainId"in i&&i.chainId===e&&(r.emitter.off("change",n),t())};r.emitter.on("change",n),r.emitter.emit("change",{chainId:e})})}},async onAccountsChanged(e){if(0===e.length)t.isExtensionActive()&&this.onDisconnect();else if(r.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else r.emitter.emit("change",{accounts:e.map(e=>(0,s.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let n=Number(e.chainId);r.emitter.emit("connect",{accounts:t,chainId:n});let i=await this.getProvider();g&&(i.removeListener("connect",g),g=void 0),m||(m=this.onAccountsChanged.bind(this),i.on("accountsChanged",m)),y||(y=this.onChainChanged.bind(this),i.on("chainChanged",y)),v||(v=this.onDisconnect.bind(this),i.on("disconnect",v))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(r.emitter.emit("disconnect"),y&&(t.removeListener("chainChanged",y),y=void 0),v&&(t.removeListener("disconnect",v),v=void 0),g||(g=this.onConnect.bind(this),t.on("connect",g)))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})}}))}h.type="metaMask"},656:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(53738),i=n(14478),o=n(31669),a=n(39504);function s(e={}){let t,c;let{shimDisconnect:u=!1}=e;return(0,r.K)(r=>({id:"safe",name:"Safe",type:s.type,async connect({withCapabilities:e}={}){let t=await this.getProvider();if(!t)throw new i.M;let n=await this.getAccounts(),o=await this.getChainId();return c||(c=this.onDisconnect.bind(this),t.on("disconnect",c)),u&&await r.storage?.removeItem("safe.disconnected"),{accounts:e?n.map(e=>({address:e,capabilities:{}})):n,chainId:o}},async disconnect(){let e=await this.getProvider();if(!e)throw new i.M;c&&(e.removeListener("disconnect",c),c=void 0),u&&await r.storage?.setItem("safe.disconnected",!0)},async getAccounts(){let e=await this.getProvider();if(!e)throw new i.M;return(await e.request({method:"eth_accounts"})).map(o.K)}
1,async getProvider(){if("undefined"!=typeof window&&window?.parent!==window){if(!t){let{default:r}=await Promise.all([n.e(2181),n.e(4946)]).then(n.bind(n,74946)),i=new r(e),o=await (0,a.F)(()=>i.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!o)throw Error("Could not load Safe information");t=new(await (async()=>{let e=await Promise.all([n.e(2181),n.e(7353)]).then(n.t.bind(n,9823,19));return"function"!=typeof e.SafeAppProvider&&"function"==typeof e.default.SafeAppProvider?e.default.SafeAppProvider:e.SafeAppProvider})())(o,i)}return t}},async getChainId(){let e=await this.getProvider();if(!e)throw new i.M;return Number(e.chainId)},async isAuthorized(){try{if(u&&await r.storage?.getItem("safe.disconnected"))return!1;return!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}s.type="safe"},42035:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var r=n(53738),i=n(14478),o=n(17454),a=n(13102),s=n(31669),c=n(77014),u=n(59455);function l(e){let t,d,f,h,p,b,m,y;let g=e.isNewChainsStale??!0;return(0,r.K)(r=>({id:"walletConnect",name:"WalletConnect",type:l.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(p||(p=this.onConnect.bind(this),e.on("connect",p)),m||(m=this.onSessionDelete.bind(this),e.on("session_delete",m)))},async connect({chainId:e,withCapabilities:t,...n}={}){try{let o=await this.getProvider();if(!o)throw new i.M;b||(b=this.onDisplayUri,o.on("display_uri",b));let a=e;if(!a){let e=await r.storage?.getItem("state")??{};a=r.chains.some(t=>t.id===e.chainId)?e.chainId:r.chains[0]?.id}if(!a)throw Error("No chains found on connector.");let u=await this.isChainsStale();if(o.session&&u&&await o.disconnect(),!o.session||u){let e=r.chains.filter(e=>e.id!==a).map(e=>e.id);await o.connect({optionalChains:[a,...e],..."pairingTopic"in n?{pairingTopic:n.pairingTopic}:{}}),this.setRequestedChainsIds(r.chains.map(e=>e.id))}let l=(await o.enable()).map(e=>(0,s.K)(e)),d=await this.getChainId();if(e&&d!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===c.ab.code&&e.cause?.message!=="Missing or invalid. request() method: wallet_addEthereumChain")throw e;return{id:d}});d=t?.id??d}return b&&(o.removeListener("display_uri",b),b=void 0),p&&(o.removeListener("connect",p),p=void 0),f||(f=this.onAccountsChanged.bind(this),o.on("accountsChanged",f)),h||(h=this.onChainChanged.bind(this),o.on("chainChanged",h)),y||(y=this.onDisconnect.bind(this),o.on("disconnect",y)),m||(m=this.onSessionDelete.bind(this),o.on("session_delete",m)),{accounts:t?l.map(e=>({address:e,capabilities:{}})):l,chainId:d}}catch(e){if(/(user rejected|connection request reset)/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{h&&(e?.removeListener("chainChanged",h),h=void 0),y&&(e?.removeListener("disconnect",y),y=void 0),p||(p=this.onConnect.bind(this),e?.on("connect",p)),f&&(e?.removeListener("accountsChanged",f),f=void 0),m&&(e?.removeListener("session_delete",m),m=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,s.K)(e))},async getProvider({chainId:i}={}){async function a(){let t=r.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:i}=await Promise.all([n.e(2957),n.e(3826)]).then(n.bind(n,33826));return await i.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(r.chains.map(e=>{let[t]=(0,o.N)({chain:e,transports:r.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(d||(d=a()),t=await d,t?.events.setMaxListeners(Number.POSITIVE_INFINITY)),i&&await this.switchChain?.({chainId:i}),t},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new i.M;let o=r.chains.find(e=>e.id===t);if(!o)throw new c.x3(new a.X4);try{await Promise.all([new Promise(e=>{let n=({chainId:i})=>{i===t&&(r.emitter.off("change",n),e())};r.emitter.on("change",n)}),n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),o}catch(r){if(/(user rejected)/i.test(r.message))throw new c.ab(r);try{let r,i;r=e?.blockExplorerUrls?e.blockExplorerUrls:o.blockExplorers?.default.url?[o.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[...o.rpcUrls.default.http];let a={blockExplorerUrls:r,chainId:(0,u.eC)(t),chainName:e?.chainName??o.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??o.nativeCurrency,rpcUrls:i};await n.request({method:"wallet_addEthereumChain",params:[a]});let s=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...s,t]),o}catch(e){throw new c.ab(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(e=>(0,s.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),n=await this.getAccounts();r.emitter.emit("connect",{accounts:n,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),r.emitter.emit("disconnect");let t=await this.getProvider();f&&(t.removeListener("accountsChanged",f),f=void 0),h&&(t.removeListener("chainChanged",h),h=void 0),y&&(t.removeListener("disconnect",y),y=void 0),m&&(t.removeListener("session_delete",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds:()=>t?t.session?.namespaces.eip155?.accounts?.map(e=>Number.parseInt(e.split(":")[1]||"",10))??[]:[],async getRequestedChainsIds(){return await r.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!g)return!1;let e=r.chains.map(e=>e.id),t=this.getNamespaceChainsIds();if(t.length&&!t.some(t=>e.includes(t)))return!1;let n=await this.getRequestedChainsIds();return!e.every(e=>n.includes(e))},async setRequestedChainsIds(e){await r.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}l.type="walletConnect"},18849:function(e,t,n){"use strict";n.d(t,{e:function(){return c}});var r=n(82538),i=n(24250),o=n(19775),a=n(31669),s=n(13102);async function c(e,t={}){let n;let{assertChainId:c=!0}=t;if(t.connector){let{connector:r}=t;if("reconnecting"===e.state.status&&!r.getAccounts&&!r.getChainId)throw new s.$S({connector:r});let[i,o]=await Promise.all([r.getAccounts().catch(e=>{if(null===t.account)return[];throw e}),r.getChainId()]);n={accounts:i,chainId:o,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new s.aH;let u=t.chainId??n.chainId,l=await n.connector.getChainId();if(c&&l!==u)throw new s.XZ({connectionChainId:u,connectorChainId:l});let d=n.connector;if(d.getClient)return d.getClient({chainId:u});let f=(0,o.T)(t.account??n.accounts[0]);if(f&&(f.address=(0,a.K)(f.address)),t.account&&!n.accounts.some(e=>e.toLowerCase()===f.address.toLowerCase()))throw new s.JK({address:f.address,connector:d});let h=e.chains.find(e=>e.id===u),p=await n.connector.getProvider({chainId:u});return(0,r.e)({account:f,chain:h,name:"Connector Client",transport:e=>(function(e,t={}){let{key:n="custom",methods:r,name:o="Custom Provider",retryDelay:a}=t;return({retryCount:s})=>(0,i.q)({key:n,methods:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:a,type:"custom"})})(p)({...e,retryCount:0})})}},37691:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(28766),i=n(44199);function o(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.L,"readContract")(o)}},53738:function(e,t,n){"use strict";function r(e){return e}n.d(t,{K:function(){return r}})},81467:function(e,t,n){"use strict";n.d(t,{L:function(){return d}});var r=n(31669),i=n(77014),o=n(39504),a=n(49287),s=n(59455),c=n(13102),u=n(14478),l=n(53738);function d(e={}){let t,n,p,b;let{shimDisconnect:m=!0,unstable_shimAsyncInject:y}=e;function g(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...f[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,l.K)(l=>({get icon(){return g().icon},get id(){return g().id},get name(){return g().name},get supportsSimulation(){return!0},type:d.type,async setup(){let n=await this.getProvider();n?.on&&e.target&&(p||(p=this.onConnect.bind(this),n.on("connect",p)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:o,isReconnecting:a,withCapabilities:s}={}){let c=await this.getProvider();if(!c)throw new u.M;let d=[];if(a)d=await this.getAccounts().catch(()=>[]);else if(m)try{let e=await c.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(d=e[0]?.caveats?.[0]?.value?.map(e=>r.K(e))).length>0&&(d=await this.getAccounts())}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw e}try{d?.length||a||(d=(await c.request({method:"eth_requestAccounts"})).map(e=>(0,r.K)(e))),p&&(c.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),c.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),c.on("chainChanged",n)),b||(b=this.onDisconnect.bind(this),c.on("disconnect",b));let u=await this.getChainId();if(o&&u!==o){let e=await this.switchChain({chainId:o}).catch(e=>{if(e.code===i.ab.code)throw e;return{id:u}});u=e?.id??u}return m&&await l.storage?.removeItem(`${this.id}.disconnected`),e.target||await l.storage?.setItem("injected.connected",!0),{accounts:s?d.map(e=>({address:e,capabilities:{}})):d,chainId:u}}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw new i.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new u.M;n&&(t.removeListener("chainChanged",n),n=void 0),b&&(t.removeListener("disconnect",b),b=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p));try{await (0,o.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}m&&await l.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await l.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new u.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new u.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=g();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?h(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e}
1,async isAuthorized(){try{if(m&&await l.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await l.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==y&&!1!==y){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof y?y:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new u.M}return!!(await (0,a.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new u.M;let r=l.chains.find(e=>e.id===t);if(!r)throw new i.x3(new c.X4);let o=new Promise(e=>{let n=r=>{"chainId"in r&&r.chainId===t&&(l.emitter.off("change",n),e())};l.emitter.on("change",n)});try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&l.emitter.emit("change",{chainId:t})}),o]),r}catch(a){if(4902===a.code||a?.data?.originalError?.code===4902)try{let a,c;let{default:u,...d}=r.blockExplorers??{};e?.blockExplorerUrls?a=e.blockExplorerUrls:u&&(a=[u.url,...Object.values(d).map(e=>e.url)]),c=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let f={blockExplorerUrls:a,chainId:(0,s.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:c};return await Promise.all([n.request({method:"wallet_addEthereumChain",params:[f]}).then(async()=>{if(await this.getChainId()===t)l.emitter.emit("change",{chainId:t});else throw new i.ab(Error("User rejected switch after adding network."))}),o]),r}catch(e){throw new i.ab(e)}if(a.code===i.ab.code)throw new i.ab(a);throw new i.x3(a)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(l.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),m&&await l.storage?.removeItem(`${this.id}.disconnected`)}else l.emitter.emit("change",{accounts:e.map(e=>(0,r.K)(e))})},onChainChanged(e){let t=Number(e);l.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let i=Number(e.chainId);l.emitter.emit("connect",{accounts:r,chainId:i});let o=await this.getProvider();o&&(p&&(o.removeListener("connect",p),p=void 0),t||(t=this.onAccountsChanged.bind(this),o.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),o.on("chainChanged",n)),b||(b=this.onDisconnect.bind(this),o.on("disconnect",b)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(l.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),b&&(t.removeListener("disconnect",b),b=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))))}}))}d.type="injected";let f={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:h(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>h(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:h(e,"isPhantom")}};function h(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}},24217:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return y}});var i=n(82538);let o=e=>(t,n,r)=>{let i=r.subscribe;return r.subscribe=(e,t,n)=>{let o=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,a=e(r.getState());o=n=>{let r=e(n);if(!i(a,r)){let e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return i(o)},e(t,n,r)},a=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>a(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>a(t)(e)}}},s=(e,t)=>(n,r,i)=>{let o,s={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=n.getItem(e))?t:null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,t)=>
1n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,l=new Set,d=s.storage;if(!d)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 f=()=>{let e=s.partialize({...r()});return d.setItem(s.name,{state:e,version:s.version})},h=i.setState;i.setState=(e,t)=>{h(e,t),f()};let p=e((...e)=>{n(...e),f()},r,i);i.getInitialState=()=>p;let b=()=>{var e,t;if(!d)return;c=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:p)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=r())?e:p))||void 0;return a(d.getItem.bind(d))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return[!1,e.state];if(s.migrate)return[!0,s.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[i,a]=e;if(n(o=s.merge(a,null!=(t=r())?t:p),!0),i)return f()}).then(()=>{null==i||i(o,void 0),o=r(),c=!0,l.forEach(e=>e(o))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>b(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},s.skipHydration||b(),o||p},c=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||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},u=e=>e?c(e):c;var l=n(81467),d=n(81310);class f{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new d})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}var h=n(88493),p=n(13102);let b=256;var m=n(19676);function y(e){let t;let{multiInjectedProviderDiscovery:n=!0,storage:a=(0,h.o6)({storage:(0,h.ns)()}),syncConnectedChain:c=!0,ssr:d=!1,...y}=e,g="undefined"!=typeof window&&n?function(){let e=new Set,t=[],n=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(n=>{t.some(({info:e})=>e.uuid===n.info.uuid)||(t=[...t,n],e.forEach(e=>e(t,{added:[n]})))}),r=n();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),r?.(),r=n()},subscribe:(n,{emitImmediately:r}={})=>(e.add(n),r&&n(t,{added:t}),()=>e.delete(n))}}():void 0,w=u(()=>y.chains),v=u(()=>{let e=[],t=new Set;for(let n of y.connectors??[]){let r=A(n);if(e.push(r),!d&&r.rdns)for(let e of"string"==typeof r.rdns?[r.rdns]:r.rdns)t.add(e)}if(!d&&g)for(let n of g.getProviders())t.has(n.info.rdns)||e.push(A(x(n)));return e});function A(e){let t=new f(function(e=11){if(!r||b+e>512){r="",b=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(b,b+++e)}()),n={...e({emitter:t,chains:w.getState(),storage:a,transports:y.transports}),emitter:t,uid:t.uid};return t.on("connect",S),n.setup?.(),n}function x(e){let{info:t}=e,n=e.provider;return(0,l.L)({target:{...t,id:t.rdns,provider:n}})}let C=new Map;function E(){return{chainId:w.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let I="0.0.0-canary-";t=m.i.startsWith(I)?Number.parseInt(m.i.replace(I,""),10):Number.parseInt(m.i.split(".")[0]??"0",10);let P=u(o(a?s(E,{migrate(e,n){if(n===t)return e;let r=E(),i=k(e,r.chainId);return{...r,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:i,uid:o}=t.connector;return[e,{...t,connector:{id:n,name:r,type:i,uid:o}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=k(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:d,storage:a,version:t}):E));function k(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&w.getState().some(t=>t.id===e.chainId)?e.chainId:t}function B(e){P.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function S(e){"connecting"!==P.getState().status&&"reconnecting"!==P.getState().status&&P.setState(t=>{let n=v.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",B),n.emitter.listenerCount("change")||n.emitter.on("change",B),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",O),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function O(e){P.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",B),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",O),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",S)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return P.setState(E()),c&&P.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(w.getState().some(t=>t.id===e))return P.setState(t=>({...t,chainId:e??t.chainId}))}),g?.subscribe(e=>{let t=new Set,n=new Set;for(let e of v.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)n.add(t);let r=[];for(let i of e){if(n.has(i.info.rdns))continue;let e=A(x(i));t.has(e.id)||r.push(e)}(!a||P.persist.hasHydrated())&&v.setState(e=>[...e,...r],!0)}),{get chains(){return w.getState()},get connectors(){return v.getState()},storage:a,getClient:function(e={}){let t;let n=e.chainId??P.getState().chainId,r=w.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new p.X4;{let e=C.get(P.getState().chainId);if(e&&!r)return e;if(!r)throw new p.X4}{let e=C.get(n);if(e)return e}if(y.client)t=y.client({chain:r});else{let e=r.id,n=w.getState().map(e=>e.id),o={};for(let[t,r]of Object.entries(y))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof r){if(e in r)o[t]=r[e];else{if(n.some(e=>e in r))continue;o[t]=r}}else o[t]=r}t=(0,i.e)({...o,chain:r,batch:o.batch??{multicall:!0},transport:t=>y.transports[e]({...t,connectors:v})})}return C.set(n,t),t},get state(){return P.getState()},setState(e){let t;t="function"==typeof e?e(P.getState()):e;let n=E();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),P.setState(t,!0)}
1,subscribe:(e,t,n)=>P.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:g,async revalidate(){let e=P.getState(),t=e.connections,n=e.current;for(let[,e]of t){let r=e.connector;r.isAuthorized&&await r.isAuthorized()||(t.delete(r.uid),n!==r.uid||(n=null))}P.setState(e=>({...e,connections:t,current:n}))},store:P,ssr:!!d,syncConnectedChain:c,transports:y.transports,chains:{setState(e){let t="function"==typeof e?e(w.getState()):e;if(0!==t.length)return w.setState(t,!0)},subscribe:e=>w.subscribe(e)},connectors:{providerDetailToConnector:x,setup:A,setState:e=>v.setState("function"==typeof e?e(v.getState()):e,!0),subscribe:e=>v.subscribe(e)},events:{change:B,connect:S,disconnect:O}}}}},88493:function(e,t,n){"use strict";n.d(t,{o6:function(){return s},ns:function(){return u}});var r=n(76883);function i(e,t){return e.slice(0,t).join(".")||"."}function o(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function a(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,a=[],s=[];return function(c,u){if("object"==typeof u){if(a.length){let e=o(a,this);0===e?a[a.length]=this:(a.splice(e),s.splice(e)),s[s.length]=c;let n=o(a,u);if(0!==n)return r?t.call(this,c,u,i(s,n)):`[ref=${i(s,n)}]`}else a[0]=u,s[0]=c}return n?e.call(this,c,u):u}}((e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},r),n??void 0)}function s(e){let{deserialize:t=r.v,key:n="wagmi",serialize:i=a,storage:o=c}=e;function s(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...o,key:n,async getItem(e,r){let i=o.getItem(`${n}.${e}`),a=await s(i);return a?t(a)??null:r??null},async setItem(e,t){let r=`${n}.${e}`;null===t?await s(o.removeItem(r)):await s(o.setItem(r,i(t)))},async removeItem(e){await s(o.removeItem(`${n}.${e}`))}}}let c={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function u(){let e="undefined"!=typeof window&&window.localStorage?window.localStorage:c;return{getItem:t=>e.getItem(t),removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}},13102:function(e,t,n){"use strict";n.d(t,{$S:function(){return u},JK:function(){return s},X4:function(){return i},XZ:function(){return c},aH:function(){return a},wi:function(){return o}});var r=n(26129);class i extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class o extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class a extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s extends r.G{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class c extends r.G{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class u extends r.G{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},14478:function(e,t,n){"use strict";n.d(t,{M:function(){return i},O:function(){return o}});var r=n(26129);class i extends r.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class o extends r.G{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},27534:function(e,t,n){"use strict";n.d(t,{OP:function(){return s},if:function(){return i},kq:function(){return o}});var r=n(45345);function i(e,t){return(0,r.Q$)(e,t)}function o(e){return JSON.stringify(e,(e,t)=>!function(e){if(!a(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(a(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:o,maxPages:a,meta:s,networkMode:c,queryFn:u,queryHash:l,queryKey:d,queryKeyHashFn:f,retry:h,retryDelay:p,structuralSharing:b,getPreviousPageParam:m,getNextPageParam:y,initialPageParam:g,_optimisticResults:w,enabled:v,notifyOnChangeProps:A,placeholderData:x,refetchInterval:C,refetchIntervalInBackgroun
1d:E,refetchOnMount:I,refetchOnReconnect:P,refetchOnWindowFocus:k,retryOnMount:B,select:S,staleTime:O,suspense:M,throwOnError:N,config:R,connector:F,query:T,...G}=e;return G}},76883:function(e,t,n){"use strict";function r(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}n.d(t,{v:function(){return r}})},17454:function(e,t,n){"use strict";function r(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:e})=>e?.url||n)}n.d(t,{N:function(){return r}})},44199:function(e,t,n){"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}n.d(t,{s:function(){return r}})},18049:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],"Version: [email protected]"].join("\n")),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=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}},21669:function(e,t,n){"use strict";n.d(t,{F:function(){return o},Hk:function(){return a},a_:function(){return i}});var r=n(18049);class i extends r.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class o extends r.G{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"})}}class a extends r.G{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"})}}},70945:function(e,t,n){"use strict";n.d(t,{$r:function(){return i},TT:function(){return a},_D:function(){return c},aZ:function(){return u},jO:function(){return o},zL:function(){return s}});var r=n(18049);class i extends r.G{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class o extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class a extends r.G{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"})}}class s extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class c extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class u extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
1d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},68937:function(e,t,n){"use strict";n.d(t,{H6:function(){return a},Vs:function(){return o},wn:function(){return i}});var r=n(18049);class i extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class o extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends r.G{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"})}}},1678:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(45841);function i(e){return"function"===e.type?`function ${e.name}(${(0,r.P)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,r.P)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,r.P)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,r.P)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,r.P)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}},45841:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(64020);let i=/^tuple(?<array>(\[(\d*)\])*)$/;function o(e){let t="",n=e.length;for(let o=0;o<n;o++)t+=function e(t){let n=t.type;if(i.test(t.type)&&"components"in t){n="(";let o=t.components.length;for(let r=0;r<o;r++)n+=e(t.components[r]),r<o-1&&(n+=", ");let a=(0,r.Zw)(i,t.type);return n+=`)${a?.array||""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
1 indexed`),t.name)?`${n} ${t.name}`:n}(e[o]),o!==n-1&&(t+=", ");return t}},97542:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(26588),i=n(79223),o=n(91465);function a(e){let t=(0,i.D)(e),n=[],a=e.length;for(let i=0;i<a;i++){let a=e[i];(0,r.N0)(a)||n.push((0,o.cK)(a,t))}return n}},26588:function(e,t,n){"use strict";n.d(t,{Dt:function(){return P},EC:function(){return v},LY:function(){return E},N0:function(){return p},PI:function(){return g},QM:function(){return C},SA:function(){return a},Wg:function(){return I},_c:function(){return o},a4:function(){return y},c3:function(){return c},g1:function(){return b},l$:function(){return f},qm:function(){return A},rh:function(){return d},wA:function(){return u}});var r=n(64020);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function o(e){return i.test(e)}function a(e){return(0,r.Zw)(i,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function c(e){return s.test(e)}function u(e){return(0,r.Zw)(s,e)}let l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return l.test(e)}function f(e){return(0,r.Zw)(l,e)}let h=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function p(e){return h.test(e)}function b(e){return(0,r.Zw)(h,e)}let m=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function y(e){return m.test(e)}function g(e){return(0,r.Zw)(m,e)}let w=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function v(e){return w.test(e)}function A(e){return(0,r.Zw)(w,e)}let x=/^receive\(\) external payable$/;function C(e){return x.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),I=new Set(["indexed"]),P=new Set(["calldata","memory","storage"])},79223:function(e,t,n){"use strict";n.d(t,{D:function(){return d}});var r=n(64020),i=n(21669),o=n(70945),a=n(68937),s=n(18049);class c extends s.G{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"})}}var u=n(26588),l=n(91465);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,u.N0)(n))continue;let i=(0,u.g1)(n);if(!i)throw new a.wn({signature:n,type:"struct"});let o=i.properties.split(";"),s=[],c=o.length;for(let e=0;e<c;e++){let t=o[e].trim();if(!t)continue;let n=(0,l.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new a.H6({signature:n});t[i.name]=s}let s={},d=Object.entries(t),h=d.length;for(let e=0;e<h;e++){let[n,a]=d[e];s[n]=function e(t=[],n={},a=new Set){let s=[],u=t.length;for(let d=0;d<u;d++){let u=t[d];if(r.cN.test(u.type))s.push(u);else{let t=(0,r.Zw)(f,u.type);if(!t?.type)throw new o.aZ({abiParameter:u});let{array:d,type:h}=t;if(h in n){if(a.has(h))throw new c({type:h});s.push({...u,type:`tuple${d??""}`,components:e(n[h],n,new Set([...a,h]))})}else if((0,l.uN)(h))s.push(u);else throw new i.F({type:h})}}return s}(a,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},91465:function(e,t,n){"use strict";n.d(t,{uN:function(){return y},C$:function(){return b},cK:function(){return d},Q4:function(){return m}});var r=n(64020),i=n(21669),o=n(70945),a=n(68937),s=n(18049);class c extends s.G{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"})}}let u=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var l=n(26588);function d(e,t={}){if((0,l.rh)(e))return function(e,t={}){let n=(0,l.l$)(e);if(!n)throw new a.wn({signature:e,type:"function"});let r=m(n.parameters),i=[],o=r.length;for(let e=0;e<o;e++)i.push(b(r[e],{modifiers:l.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(b(e[n],{modifiers:l.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:s}}(e,t);if((0,l.c3)(e))return function(e,t={}){let n=(0,l.wA)(e);if(!n)throw new a.wn({signature:e,type:"event"});let r=m(n.parameters),i=[],o=r.length;for(let e=0;e<o;e++)i.push(b(r[e],{modifiers:l.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}(e,t);if((0,l._c)(e))return function(e,t={}){let n=(0,l.SA)(e);if(!n)throw new a.wn({signature:e,type:"error"});let r=m(n.parameters),i=[],o=r.length;for(let e=0;e<o;e++)i.push(b(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}(e,t);if((0,l.a4)(e))return function(e,t={}){let n=(0,l.PI)(e);if(!n)throw new a.wn({signature:e,type:"constructor"});let r=m(n.parameters),i=[],o=r.length;for(let e=0;e<o;e++)i.push(b(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}(e,t);if((0,l.EC)(e))return function(e){let t=(0,l.qm)(e);if(!t)throw new a.wn({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if((0,l.QM)(e))return{type:"receive",stateMutability:"payable"};throw new a.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^u?int$/;function b(e,t){var n,a;let s;let c=function(e,t,n){let r="";if(n)for(let e of Object.entries(n)){if(!e)continue;let t="";for(let n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:`${e}${r}`}(e,t?.type,t?.structs);if(u.has(c))return u.get(c);let d=r.cN.test(e),w=(0,r.Zw)(d?h:f,e);if(!w)throw new o.jO({param:e});if(w.name&&("address"===(n=w.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.eL.test(n)||r.lh.test(n)||g.test(n)))throw new o.TT({param:e,name:w.name});let v=w.name?{name:w.name}:{},A="indexed"===w.modifier?{indexed:!0}:{},x=t?.structs??{},C={};if(d){s="tuple";let e=m(w.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(b(e[r],{structs:x}));C={components:t}}else if(w.type in x)s="tuple",C={components:x[w.type]};else if(p.test(w.type))s=`${w.type}256`;else if("address payable"===w.type)s="address";else if(s=w.type,t?.type!=="struct"&&!y(s))throw new i.Hk({type:s});if(w.modifier){if(!t?.modifiers?.has?.(w.modifier))throw new o.zL({param:e,type:t?.type,modifier:w.modifier});if(l.Dt.has(w.modifier)&&(a=s,!w.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a)
1)throw new o._D({param:e,type:t?.type,modifier:w.modifier})}let E={type:`${s}${w.array??""}`,...v,...A,...C};return u.set(c,E),E}function m(e,t=[],n="",r=0){let i=e.trim().length;for(let o=0;o<i;o++){let i=e[o],a=e.slice(o+1);switch(i){case",":return 0===r?m(a,[...t,n.trim()]):m(a,t,`${n}${i}`,r);case"(":return m(a,t,`${n}${i}`,r+1);case")":return m(a,t,`${n}${i}`,r-1);default:return m(a,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new c({current:n,depth:r});return t.push(n.trim()),t}function y(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let g=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},64020:function(e,t,n){"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:function(){return r},cN:function(){return a},eL:function(){return i},lh:function(){return o}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^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)?$/,a=/^\(.+?\).*?$/},71087:function(e,t,n){"use strict";n.d(t,{A:function(){return N}});var r=n(57437),i=n(2265);let o={newline:10,reset:27};function a(e,t){return e.toString(2).padStart(t,"0")}function s(e,t){let n=e%t;return n>=0?n:t+n}function c(e,t){return Array(e).fill(t)}function u(e){return e-=e>>>1&1431655765,((e=(858993459&e)+(e>>>2&858993459))+(e>>>4)&252645135)*16843009>>>24}function l(e){let t=0,n=0;for(let r of e)t=Math.max(t,r.length),n+=r.length;let r=new Uint8Array(n),i=0;for(let n=0;n<t;n++)for(let t of e)n<t.length&&(r[i++]=t[n]);return r}function d(e){return Object.freeze({has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("alphabet.decode input should be array of strings");return t.map(t=>{if("string"!=typeof t)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(-1===n)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})},encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("alphabet.encode input should be an array of numbers");return t.map(t=>{if(!function(e){if(!Number.isSafeInteger(e))throw Error(`integer expected: ${e}`)}(t),t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})}})}function f(e){if(32!==e.length)throw Error("expects 32 element matrix");let t=[1431655765,858993459,252645135,16711935,65535];for(let n=0;n<5;n++){let r=t[n]>>>0,i=1<<n,o=i<<1;for(let t=0;t<32;t+=o)for(let n=0;n<i;n++){let o=t+n,a=o+i,s=e[o]>>>0,c=e[a]>>>0,u=(s>>>i^c)&r;e[o]=(s^u<<i)>>>0,e[a]=(c^u)>>>0}}}let h=e=>1<<(31&e)>>>0,p=(e,t)=>0===t?0:32===t?4294967295:(1<<t)-1<<e>>>0;class b{static size(e,t){if("number"==typeof e&&(e={height:e,width:e}),!Number.isSafeInteger(e.height)&&e.height!==1/0)throw Error(`Bitmap: invalid height=${e.height} (${typeof e.height})`);if(!Number.isSafeInteger(e.width)&&e.width!==1/0)throw Error(`Bitmap: invalid width=${e.width} (${typeof e.width})`);return void 0!==t&&(e={width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}),e}static fromString(e){let t;let n=(e=e.replace(/^\n+/g,"").replace(/\n+$/g,"")).split(String.fromCharCode(o.newline)),r=n.length,i=[];for(let e of n){let n=e.split("").map(e=>{if("X"===e)return!0;if(" "===e)return!1;if("?"!==e)throw Error(`Bitmap.fromString: unknown symbol=${e}`)});if(void 0!==t&&n.length!==t)throw Error(`Bitmap.fromString different row sizes: width=${t} cur=${n.length}`);t=n.length,i.push(n)}return void 0===t&&(t=0),new b({height:r,width:t},i)}defined;value;tailMask;words;fullWords;height;width;constructor(e,t){let{height:n,width:r}=b.size(e);if(!Number.isSafeInteger(n)||n<=0)throw Error(`Bitmap: invalid height=${n}, expected positive safe integer dimension`);
1if(!Number.isSafeInteger(r)||r<=0)throw Error(`Bitmap: invalid width=${r}, expected positive safe integer dimension`);if(this.height=n,this.width=r,this.tailMask=p(0,31&r||32),this.words=0|Math.ceil(r/32),this.fullWords=0|Math.floor(r/32),this.value=new Uint32Array(this.words*n),this.defined=new Uint32Array(this.value.length),t){if(t.length!==n)throw Error(`Bitmap: data height mismatch: exp=${n} got=${t.length}`);for(let e=0;e<n;e++){let n=t[e];if(!n||n.length!==r)throw Error(`Bitmap: data width mismatch at y=${e}: exp=${r} got=${n?.length}`);for(let t=0;t<r;t++)this.set(t,e,n[t])}}}point(e){return this.get(e.x,e.y)}isInside(e){return 0<=e.x&&e.x<this.width&&0<=e.y&&e.y<this.height}size(e){if(!e)return{height:this.height,width:this.width};let{x:t,y:n}=this.xy(e);return{height:this.height-n,width:this.width-t}}xy(e){if("number"==typeof e&&(e={x:e,y:e}),!Number.isSafeInteger(e.x))throw Error(`Bitmap: invalid x=${e.x}`);if(!Number.isSafeInteger(e.y))throw Error(`Bitmap: invalid y=${e.y}`);return e.x=s(e.x,this.width),e.y=s(e.y,this.height),e}wordIndex(e,t){return t*this.words+(e>>>5)}bitIndex(e,t){return{word:this.wordIndex(e,t),bit:31&e}}isDefined(e,t){let n=this.wordIndex(e,t),r=h(e);return(this.defined[n]&r)!=0}get(e,t){let n=this.wordIndex(e,t),r=h(e);return(this.value[n]&r)!=0}maskWord(e,t,n){let{defined:r,value:i}=this;r[e]|=t,i[e]=i[e]&~t|-n&t}set(e,t,n){void 0!==n&&this.maskWord(this.wordIndex(e,t),h(e),n)}fillRectConst(e,t,n,r,i){if(n<=0||r<=0||void 0===i)return;let{value:o,defined:a,words:s}=this,c=e>>>5,u=e+n-1>>>5,l=31&e,d=e+n-1&31;for(let e=0;e<r;e++){let n=(t+e)*s;if(c===u){let e=p(l,d-l+1);this.maskWord(n+c,e,i);continue}this.maskWord(n+c,p(l,32-l),i);for(let e=c+1;e<u;e++)a[n+e]=4294967295,o[n+e]=i?4294967295:0;this.maskWord(n+u,p(0,d+1),i)}}rectWords(e,t,n,r,i){for(let o=0;o<r;o++){let r=t+o;for(let t=0;t<n;){let a=e+t,{bit:s,word:c}=this.bitIndex(a,r),u=Math.min(32-s,n-t);i(c,a,t,o,u),t+=u}}}rect(e,t,n){let{x:r,y:i}=this.xy(e),{height:o,width:a}=b.size(t,this.size({x:r,y:i}));if("function"!=typeof n)return this.fillRectConst(r,i,a,o,n),this;let{defined:s,value:c}=this;return this.rectWords(r,i,a,o,(e,t,r,i,o)=>{let a=0,u=c[e];for(let e=0;e<o;e++){let o=h(t+e),s=n({x:r+e,y:i},(u&o)!=0);void 0!==s&&(a|=o,u=u&~o|-s&o)}s[e]|=a,c[e]=u}),this}rectRead(e,t,n){let{x:r,y:i}=this.xy(e),{height:o,width:a}=b.size(t,this.size({x:r,y:i})),{value:s}=this;return this.rectWords(r,i,a,o,(e,t,r,i,o)=>{let a=s[e];for(let e=0;e<o;e++){let o=h(t+e);n({x:r+e,y:i},(a&o)!=0)}}),this}hLine(e,t,n){return this.rect(e,{width:t,height:1},n)}vLine(e,t,n){return this.rect(e,{width:1,height:t},n)}border(e=2,t){if(!Number.isSafeInteger(e)||e<=0)throw Error(`Bitmap.border: invalid size=${e}`);let n=new b({height:this.height+2*e,width:this.width+2*e});return n.rect(0,1/0,t),n.embed({x:e,y:e},this),n}embed(e,t){let{x:n,y:r}=this.xy(e),{height:i,width:o}=b.size(t.size(),this.size({x:n,y:r}));if(o<=0||i<=0)return this;let{value:a,defined:s}=this,{words:c,value:u}=t;for(let e=0;e<i;e++){let i=e*c;for(let l=0;l<o;){let d=n+l,{word:f,bit:h}=this.bitIndex(d,r+e),{word:b,bit:m}=t.bitIndex(l,e),y=Math.min(32-h,o-l),g=u[b],w=m&&b+1<i+c?u[b+1]:0,v=m?(g>>>m|w<<32-m)>>>0:g,A=p(h,y),x=(v&p(0,y))<<h>>>0;s[f]|=A,a[f]=a[f]&~A|x,l+=y}}return this}rectSlice(e,t=this.size()){let{x:n,y:r}=this.xy(e),{height:i,width:o}=b.size(t,this.size({x:n,y:r})),a=new b({height:i,width:o});return this.rectRead({x:n,y:r},{height:i,width:o},(e,t)=>{this.isDefined(n+e.x,r+e.y)&&a.set(e.x,e.y,t)}),a}transpose(){let{height:e,width:t,value:n,defined:r,words:i}=this,o=new b({height:t,width:e}),{words:a,value:s,defined:c,tailMask:u}=o,l=new Uint32Array(32),d=new Uint32Array(32);for(let h=0;h<e;h+=32)for(let p=0;p<i;p++){let i=Math.min(32,e-h);for(let e=0;e<i;e++){let t=this.wordIndex(32*p,h+e);l[e]=n[t],d[e]=r[t]}l.fill(0,i),d.fill(0,i),f(l),f(d);for(let e=0;e<32;e++){let n=32*p+e;if(n>=t)break;let r=o.wordIndex(h,n),i=h>>>5==a-1?u:4294967295;s[r]=l[e]&i,c[r]=d[e]&i}}return o}negate(){let e=this.defined.length;for(let t=0;t<e;t++)this.value[t]=~this.value[t],this.defined[t]=4294967295;return this}scale(e){if(!Number.isSafeInteger(e)||e>1024)throw Error(`invalid scale factor: ${e}`);let{height:t,width:n}=this;return new b({height:e*t,width:e*n}).rect({x:0,y:0},1/0,({x:t,y:n})=>this.get(t/e|0,n/e|0))}clone(){let e=new b(this.size());return e.defined.set(this.defined),e.value.set(this.value),e}assertDrawn(){let{height:e,width:t,defined:n,tailMask:r,fullWords:i,words:o}=this;if(e&&t)for(let t=0;t<e;t++){let e=t*o;for(let t=0;t<i;t++)if(4294967295!==n[e+t])throw Error("Invalid color type=undefined");if(o!==i&&(n[e+i]&r)!==r)throw Error("Invalid color type=undefined")}}countPatternInRow(e,t,...n){if(!Number.isSafeInteger(t)||t<=0||t>=32)throw Error("wrong patternLen");let r=(1<<t)-1,{height:i,width:o,value:a,words:s}=this;if(!Number.isSafeInteger(e)||e<0||e>=i)return 0;let c=0,u=this.wordIndex(0,e);for(let e=0,i=0;e<s;e++){let l=a[u+e],d=e===s-1&&31&o||32;for(let o=0;o<d;o++)if(i=(i<<1|l>>>o&1)&r,!(32*e+o+1<t)){for(let e of n)if(i===e){c++;break}}}return c}getRuns(e,t){let n;let{height:r,width:i,value:o,words:a}=this;if(0===i||!Number.isSafeInteger(e)||e<0||e>=r)return;let s=0,c=this.wordIndex(0,e);for(let e=0;e<a;e++){let r=o[c+e],u=e===a-1&&31&i||32;for(let e=0;e<u;e++){let i=(r&1<<e)!=0;if(i===n){s++;continue}void 0!==n&&t(s,n),n=i,s=1}}void 0!==n&&t(s,n)}popcnt(){let{height:e,width:t,words:n,fullWords:r,tailMask:i}=this;if(!e||!t)return 0;let o=0;for(let t=0;t<e;t++){let e=t*n;for(let t=0;t<r;t++)o+=u(this.value[e+t]);n!==r&&(o+=u(this.value[e+r]&i))}return o}countBoxes2x2(e){let{height:t,width:n,words:r}=this;if(n<2||!Number.isSafeInteger(e)||e<0||e+1>=t)return 0;let i=this.wordIndex(0,e),o=this.wordIndex(0,e+1),a=0==(31&n)?2147483647:p(0,n-1&31),s=0;for(let e=0;e<r;e++){let t=this.value[i+e],n=this.value[o+e],c=(~(t^n)>>>0&~(t^(t>>>1|(1&(e+1<r?this.value[i+e+1]>>>0:0))<<31)>>>0)>>>0&~(n^(n>>>1|(1&(e+1<r?this.value[o+e+1]>>>0:0))<<31)>>>0)>>>0)>>>0;e===r-1&&(c&=a),s+=u(c)}return s}toString(){let e=String.fromCharCode(o.newline),t="";for(let n=0;n<this.height;n++){let r="";for(let e=0;e<this.width;e++){let t=this.get(e,n);r+=this.isDefined(e,n)?t?"X":" ":"?"}t+=r+(n+1===this.height?"":e)}return t}toRaw(){let e=Array.from({length:this.height}
1,()=>Array(this.width));for(let t=0;t<this.height;t++){let n=e[t];for(let e=0;e<this.width;e++)n[e]=this.get(e,t)}return e}toASCII(){let{height:e,width:t}=this,n="";for(let r=0;r<e;r+=2){for(let i=0;i<t;i++){let t=this.get(i,r),o=r+1>=e||this.get(i,r+1);t||o?!t&&o?n+="▀":t&&!o?n+="▄":t&&o&&(n+=" "):n+="█"}n+=String.fromCharCode(o.newline)}return n}toTerm(){let e=String.fromCharCode(o.reset),t=e+"[0m",n=e+"[1;47m  "+t,r=e+"[40m  "+t,i=String.fromCharCode(o.newline),a="";for(let e=0;e<this.height;e++){for(let t=0;t<this.width;t++)a+=this.get(t,e)?r:n;a+=i}return a}toSVG(e=!0){let t,n=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,r="";return this.rectRead(0,1/0,(i,o)=>{if(!o)return;let{x:a,y:s}=i;if(!e){n+=`<rect x="${a}" y="${s}" width="1" height="1" />`;return}let c=`M${a} ${s}`;if(t){let e=`m${a-t.x} ${s-t.y}`;e.length<=c.length&&(c=e)}let u=a<10?`H${a}`:"h-1";r+=`${c}h1v1${u}Z`,t=i}),e&&(n+=`<path d="${r}"/>`),n+="</svg>"}toGIF(){let e=e=>[255&e,e>>>8&255],t=[...e(this.width),...e(this.height)],n=[];this.rectRead(0,1/0,(e,t)=>n.push(+(!0===t)));let r=[71,73,70,56,55,97,...t,246,0,0,255,255,255,...c(381,0),44,0,0,0,0,...t,0,7],i=Math.floor(n.length/126);for(let e=0;e<i;e++)r.push(127,128,...n.slice(126*e,126*(e+1)).map(e=>+e));return r.push(n.length%126+1,128,...n.slice(126*i).map(e=>+e)),r.push(1,129,0,59),new Uint8Array(r)}toImage(e=!1){let{height:t,width:n}=this.size(),r=new Uint8Array(t*n*(e?3:4)),i=0;for(let o=0;o<t;o++)for(let t=0;t<n;t++){let n=this.get(t,o)?0:255;r[i++]=n,r[i++]=n,r[i++]=n,e||(r[i++]=255)}return{height:t,width:n,data:r}}}let m=Object.freeze(["low","medium","quartile","high"]),y=Object.freeze(["numeric","alphanumeric","byte","kanji","eci"]),g=[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],w={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},v={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},A=Object.freeze({size:Object.freeze({encode:e=>21+4*(e-1),decode:e=>(e-17)/4}),sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(1===e)return[];let t=A.size.encode(e)-6-1,n=t-6,r=Math.ceil(n/28),i=Math.floor(n/r);i%2?i+=1:n%r*2>=r&&(i+=2);let o=[6];for(let e=1;e<r;e++)o.push(t-(r-e)*i);return o.push(t),o},ECCode:Object.freeze({low:1,medium:0,quartile:3,high:2}),formatMask:21522,formatBits(e,t){let n=A.ECCode[e]<<3|t,r=n;for(let e=0;e<10;e++)r=r<<1^(r>>9)*1335;return(n<<10|r)^A.formatMask},versionBits(e){let t=e;for(let e=0;e<12;e++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:Object.freeze({numeric:d("0123456789"),alphanumerc:d("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")}),lengthBits:(e,t)=>({numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]})[t][A.sizeType(e)],modeBits:Object.freeze({numeric:"0001",alphanumeric:"0010",byte:"0100",kanji:"1000",eci:"0111"}),capacity(e,t){let n=g[e-1],r=w[t][e-1],i=v[t][e-1],o=Math.floor(n/i)-r,a=i-n%i;return{words:r,numBlocks:i,shortBlocks:a,blockLen:o,capacity:(n-r*i)*8,total:(r+o)*i+i-a}}}),x=Object.freeze([(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0]),C={tables:(e=>{let t=c(256,0),n=c(256,0);for(let r=0,i=1;r<256;r++)t[r]=i,n[i]=r,256&(i<<=1)&&(i^=e);return{exp:t,log:n}})(285),exp:e=>C.tables.exp[e],log(e){if(0===e)throw Error(`GF.log: invalid arg=${e}`);return C.tables.log[e]%255},mul:(e,t)=>
10===e||0===t?0:C.tables.exp[(C.tables.log[e]+C.tables.log[t])%255],add:(e,t)=>e^t,pow:(e,t)=>C.tables.exp[C.tables.log[e]*t%255],inv(e){if(0===e)throw Error(`GF.inverse: invalid arg=${e}`);return C.tables.exp[255-C.tables.log[e]]},polynomial(e){if(0==e.length)throw Error("GF.polymomial: invalid length");if(0!==e[0])return e;let t=0;for(;t<e.length-1&&0==e[t];t++);return e.slice(t)},monomial(e,t){if(e<0)throw Error(`GF.monomial: invalid degree=${e}`);if(0==t)return[0];let n=c(e+1,0);return n[0]=t,C.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[C.degree(e)-t],mulPoly(e,t){if(0===e[0]||0===t[0])return[0];let n=c(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]=C.add(n[r+i],C.mul(e[r],t[i]));return C.polynomial(n)},mulPolyScalar(e,t){if(0==t)return[0];if(1==t)return e;let n=c(e.length,0);for(let r=0;r<e.length;r++)n[r]=C.mul(e[r],t);return C.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw Error("GF.mulPolyMonomial: invalid degree");if(0==n)return[0];let r=c(e.length+t,0);for(let t=0;t<e.length;t++)r[t]=C.mul(e[t],n);return C.polynomial(r)},addPoly(e,t){if(0===e[0])return t;if(0===t[0])return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let i=c(r.length,0),o=r.length-n.length,a=r.slice(0,o);for(let e=0;e<a.length;e++)i[e]=a[e];for(let e=o;e<r.length;e++)i[e]=C.add(n[e-o],r[e]);return C.polynomial(i)},remainderPoly(e,t){let n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){let e=n[r];if(0!==e)for(let i=1;i<t.length;i++)0!==t[i]&&(n[r+i]=C.add(n[r+i],C.mul(t[i],e)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=C.mulPoly(t,[1,C.pow(2,n)]);return t},evalPoly(e,t){if(0==t)return C.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=C.add(C.mul(t,n),e[r]);return n},euclidian(e,t,n){C.degree(e)<C.degree(t)&&([e,t]=[t,e]);let r=e,i=t,o=[0],a=[1];for(;2*C.degree(i)>=n;){let e=r,t=o;if(r=i,o=a,0===r[0])throw Error("rLast[0] === 0");i=e;let n=[0],s=C.inv(r[0]);for(;C.degree(i)>=C.degree(r)&&0!==i[0];){let e=C.degree(i)-C.degree(r),t=C.mul(i[0],s);n=C.addPoly(n,C.monomial(e,t)),i=C.addPoly(i,C.mulPolyMonomial(r,e,t))}if(n=C.mulPoly(n,o),a=C.addPoly(n,t),C.degree(i)>=C.degree(r))throw Error(`Division failed r: ${i}, rLast: ${r}`)}let s=C.coefficient(a,0);if(0==s)throw Error("sigmaTilde(0) was zero");let c=C.inv(s);return[C.mulPolyScalar(a,c),C.mulPolyScalar(i,c)]}};function E(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function I(e,t,n,r,i=E){let o="",s=n.length;if("numeric"===r){let e=A.alphabet.numeric.decode(n.split("")),t=e.length;for(let n=0;n<t-2;n+=3)o+=a(100*e[n]+10*e[n+1]+e[n+2],10);t%3==1?o+=a(e[t-1],4):t%3==2&&(o+=a(10*e[t-2]+e[t-1],7))}else if("alphanumeric"===r){let e=A.alphabet.alphanumerc.decode(n.split("")),t=e.length;for(let n=0;n<t-1;n+=2)o+=a(45*e[n]+e[n+1],11);t%2==1&&(o+=a(e[t-1],6))}else if("byte"===r){let e=i(n);s=e.length,o=Array.from(e).map(e=>a(e,8)).join("")}else throw Error("encode: unsupported type");let{capacity:u}=A.capacity(e,t),d=a(s,A.lengthBits(e,r)),f=A.modeBits[r]+d+o;if(f.length>u)throw Error("Capacity overflow");(f+="0".repeat(Math.min(4,Math.max(0,u-f.length)))).length%8&&(f+="0".repeat(8-f.length%8));let h="1110110000010001";for(let e=0;f.length!==u;e++)f+=h[e%h.length];let p=Uint8Array.from(f.match(/(.{8})/g).map(e=>Number(`0b${e}`)));return(function(e,t){let{words:n,shortBlocks:r,numBlocks:i,blockLen:o,total:a}=A.capacity(e,t),s={encode(e){let t=C.divisorPoly(n),r=Array.from(e);return r.push(...t.slice(0,-1).fill(0)),Uint8Array.from(C.remainderPoly(r,t))},decode(e){let t=e.slice(),r=C.polynomial(Array.from(e)),i=c(n,0),o=!1;for(let e=0;e<n;e++){let t=C.evalPoly(r,C.exp(e));i[i.length-1-e]=t,0!==t&&(o=!0)}if(!o)return t;i=C.polynomial(i);let a=C.monomial(n,1),[s,u]=C.euclidian(a,i,n),l=c(C.degree(s),0),d=0;for(let e=1;e<256&&d<l.length;e++)0===C.evalPoly(s,e)&&(l[d++]=C.inv(e));if(d!==l.length)throw Error("RS.decode: invalid errors number");for(let e=0;e<l.length;e++){let n=t.length-1-C.log(l[e]);if(n<0)throw Error("RS.decode: invalid error location");let r=C.inv(l[e]),i=1;for(let t=0;t<l.length;t++)e!==t&&(i=C.mul(i,C.add(1,C.mul(l[t],r))));t[n]=C.add(t[n],C.mul(C.evalPoly(u,r),C.inv(i)))}return t}};return{encode(e){let t=[],n=[];for(let a=0;a<i;a++){let i=o+(a<r?0:1);t.push(e.subarray(0,i)),n.push(s.encode(e.subarray(0,i))),e=e.subarray(i)}let a=l(t),c=l(n),u=new Uint8Array(a.length+c.length);return u.set(a),u.set(c,a.length),u},decode(e){if(e.length!==a)throw Error(`interleave.decode: len(data)=${e.length}, total=${a}`);let t=[];for(let e=0;e<i;e++){let i=e<r;t.push(new Uint8Array(n+o+(i?0:1)))}let c=0;for(let n=0;n<o;n++)for(let r=0;r<i;r++)t[r][n]=e[c++];for(let n=r;n<i;n++)t[n][o]=e[c++];for(let a=o;a<o+n;a++)for(let n=0;n<i;n++){let i=n<r;t[n][a+(i?0:1)]=e[c++]}let u=[];for(let e of t)u.push(...Array.from(s.decode(e)).slice(0,-n));return Uint8Array.from(u)}}})(e,t).encode(p)}function P(e,t,n,r,i=!1){let o=function(e,t,n,r=!1){let i=A.size.encode(e),o=new b(i+2),a=new b(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);o=(o=o.embed(0,a).embed({x:-a.width,y:0},a).embed({x:0,y:-a.height},a)).rectSlice(1,i);let s=new b(1).rect(0,1,!0).border(1,!1).border(1,!0),c=A.alignmentPatterns(e);for(let e of c)for(let t of c)o.isDefined(t,e)||o.embed({x:t-2,y:e-2},s);o=o.hLine({x:0,y:6},1/0,({x:e})=>o.isDefined(e,6)?void 0:e%2==0).vLine({x:6,y:0},1/0,({y:e})=>o.isDefined(6,e)?void 0:e%2==0);
1{let e=A.formatBits(t,n),a=t=>!r&&(e>>t&1)==1;for(let e=0;e<6;e++)o.set(8,e,a(e));for(let e=6;e<8;e++)o.set(8,e+1,a(e));for(let e=8;e<15;e++)o.set(8,i-15+e,a(e));for(let e=0;e<8;e++)o.set(i-e-1,8,a(e));for(let e=8;e<9;e++)o.set(15-e-1+1,8,a(e));for(let e=9;e<15;e++)o.set(15-e-1,8,a(e));o.set(8,i-8,!r)}if(e>=7){let t=A.versionBits(e);for(let e=0;e<18;e+=1){let n=!r&&(t>>e&1)==1,a=Math.floor(e/3),s=e%3+i-8-3;o.set(s,a,n),o.set(a,s,n)}}return o}(e,t,r,i),a=0,s=8*n.length;if(!function(e,t,n){let r=e.height,i=x[t],o=-1,a=r-1;for(let t=r-1;t>0;t-=2){for(6==t&&(t=5);;a+=o){for(let r=0;r<2;r+=1){let o=t-r;e.isDefined(o,a)||n(o,a,i(o,a))}if(a+o<0||a+o>=r)break}o=-o}}(o,r,(e,t,r)=>{let i=!1;a<s&&(i=(n[a>>>3]>>(7-a&7)&1)!=0,a++),o.set(e,t,i!==r)}),a!==s)throw Error("QR: bytes left after draw");return o}let k=e=>{let t=e.map(e=>e?"1":"0").join("");return{len:t.length,n:Number(`0b${t}`)}},B=[!0,!1,!0,!0,!0,!1,!0],S=[!1,!1,!1,!1],O=k([...B,...S]),M=k([...S,...B]);function N(e){let{arena:t,...n}=e;return(0,r.jsxs)(N.Root,{...n,children:[(0,r.jsx)(N.Finder,{}),(0,r.jsx)(N.Cells,{}),t&&(0,r.jsx)(N.Arena,{children:"string"==typeof t?(0,r.jsx)("img",{alt:"Arena",src:t,style:{borderRadius:1,height:"100%",objectFit:"cover",width:"100%"}}):t})]})}!function(e){function t(t){let{children:n,size:o="100%",value:a,version:s,errorCorrection:c,...u}=t,l=i.useMemo(()=>(i.Children.map(n,e=>i.isValidElement(e)&&"string"!=typeof e.type&&"displayName"in e.type&&"Arena"===e.type.displayName||null)??[]).some(Boolean),[n]),d=i.useMemo(()=>{let e=c;return l&&"low"===c&&(e="medium"),function(e,t={}){let{errorCorrection:n,version:r}=t,i=function(e,t="raw",n={}){let r=void 0!==n.ecc?n.ecc:"medium";!function(e){if(!m.includes(e))throw Error(`Invalid error correction mode=${e}. Expected: ${m}`)}(r);let i=void 0!==n.encoding?n.encoding:function(e){let t="numeric";for(let n of e)if(!A.alphabet.numeric.has(n)&&(t="alphanumeric",!A.alphabet.alphanumerc.has(n)))return"byte";return t}(e);(function(e){if(!y.includes(e))throw Error(`Encoding: invalid mode=${e}. Expected: ${y}`);if("kanji"===e||"eci"===e)throw Error(`Encoding: ${e} is not supported (yet?).`)})(i),void 0!==n.mask&&function(e){if(![0,1,2,3,4,5,6,7].includes(e)||!x[e])throw Error(`Invalid mask=${e}. Expected number [0..7]`)}(n.mask);let o=n.version,a,s=Error("Unknown error");if(void 0!==o)(function(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw Error(`Invalid version=${e}. Expected number [1..40]`)})(o),a=I(o,r,e,i,n.textEncoder);else for(let t=1;t<=40;t++)try{a=I(t,r,e,i,n.textEncoder),o=t;break}catch(e){s=e}if(!o||!a)throw s;let c=function(e,t,n,r){if(void 0===r){let i,o;let a=(o=1/0,{add(e,t){e>=o||(i=t,o=e)},get:()=>i,score:()=>o});for(let r=0;r<x.length;r++)a.add(function(e){let{width:t,height:n}=e,r=e.transpose(),i=0;for(let t=0;t<n;t++)e.getRuns(t,e=>{e>=5&&(i+=3+(e-5))});for(let e=0;e<t;e++)r.getRuns(e,e=>{e>=5&&(i+=3+(e-5))});let o=0;for(let t=0;t<n-1;t++)o+=3*e.countBoxes2x2(t);let a=0;for(let t=0;t<n;t++)a+=40*e.countPatternInRow(t,O.len,O.n,M.n);for(let e=0;e<t;e++)a+=40*r.countPatternInRow(e,O.len,O.n,M.n);let s=n*t,c=e.popcnt();return i+o+a+10*Math.ceil(Math.max(0,Math.abs(100*c-50*s)-5*s)/(5*s))}(P(e,t,n,r,!0)),r);r=a.get()}if(void 0===r)throw Error("Cannot find mask");return P(e,t,n,r)}(o,r,a,n.mask);c.assertDrawn();let u=void 0===n.border?2:n.border;if(!Number.isSafeInteger(u)||u<=0)throw Error(`invalid border=${u}`);if(c=c.border(u,!1),void 0!==n.scale&&(c=c.scale(n.scale)),"raw"===t)return c.toRaw();if("ascii"===t)return c.toASCII();if("svg"===t)return c.toSVG(n.optimize);if("gif"===t)return c.toGIF();if("term"===t)return c.toTerm();throw Error(`Unknown output: ${t}`)}(e,"raw",{border:0,ecc:n,scale:1,version:r});return{edgeLength:i.length,finderLength:7,grid:i,value:e}}(a,{errorCorrection:e,version:s})},[a,l,c,s]),f=1*d.edgeLength,h=1*d.finderLength/2,p=l?Math.floor(f/4):0,b=i.useMemo(()=>({arenaSize:p,cellSize:1,edgeSize:f,qrcode:d,finderSize:h}),[p,f,d,h]);return(0,r.jsx)(e.Context.Provider,{value:b,children:(0,r.jsxs)("svg",{...u,width:o,height:o,viewBox:`0 0 ${f} ${f}`,xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("title",{children:"QR Code"}),n]})})}function n(t){let{className:n,fill:o,innerClassName:a,radius:s=.25}
1=t,{cellSize:c,edgeSize:u,finderSize:l}=i.useContext(e.Context);function d({position:e}){let t=l-(l-c)-c/2;"top-right"===e&&(t=u-l-(l-c)-c/2);let i=l-(l-c)-c/2;"bottom-left"===e&&(i=u-l-(l-c)-c/2);let d=l-1.5*c;"top-right"===e&&(d=u-l-1.5*c);let f=l-1.5*c;return"bottom-left"===e&&(f=u-l-1.5*c),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{className:n,stroke:o??"currentColor",fill:"transparent",x:t,y:i,width:c+(l-c)*2,height:c+(l-c)*2,rx:2*s*(l-c),ry:2*s*(l-c),strokeWidth:c}),(0,r.jsx)("rect",{className:a,fill:o??"currentColor",x:d,y:f,width:3*c,height:3*c,rx:2*s*c,ry:2*s*c})]})}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{position:"top-left"}),(0,r.jsx)(d,{position:"top-right"}),(0,r.jsx)(d,{position:"bottom-left"})]})}function o(t){let{className:n,fill:o="currentColor",inset:a=!0,radius:s=1}=t,{arenaSize:c,cellSize:u,qrcode:l}=i.useContext(e.Context),{edgeLength:d,finderLength:f}=l,h=i.useMemo(()=>{let e="";for(let t=0;t<l.grid.length;t++){let n=l.grid[t];if(n)for(let r=0;r<n.length;r++){if(!n[r])continue;let i=d/2-c/2,o=i+c;if(t>=i&&t<=o&&r>=i&&r<=o)continue;let l=t<f&&r<f,h=t<f&&r>=d-f,p=t>=d-f&&r<f;if(l||h||p)continue;let b=a?.1*u:0,m=(u-2*b)/2,y=r*u+u/2,g=t*u+u/2,w=y-m,v=y+m,A=g-m,x=g+m,C=s*m;e+=`M ${w+C},${A} L ${v-C},${A} A ${C},${C} 0 0,1 ${v},${A+C} L ${v},${x-C} A ${C},${C} 0 0,1 ${v-C},${x} L ${w+C},${x} A ${C},${C} 0 0,1 ${w},${x-C} L ${w},${A+C} A ${C},${C} 0 0,1 ${w+C},${A} z`}}return e},[c,u,d,f,l.grid,a,s]);return(0,r.jsx)("path",{className:n,d:h,fill:o})}function a(t){let{children:n}=t,{arenaSize:o,cellSize:a,edgeSize:s}=i.useContext(e.Context),c=Math.ceil(s/2-o/2),u=o+o%2;return(0,r.jsx)("foreignObject",{x:c,y:c,width:u,height:u,children:(0,r.jsx)("div",{style:{alignItems:"center",display:"flex",fontSize:1,justifyContent:"center",height:"100%",overflow:"hidden",width:"100%",padding:a/2,boxSizing:"border-box"},children:n})})}e.Context=i.createContext(null),e.Root=t,(t=e.Root||(e.Root={})).displayName="Root",e.Finder=n,(n=e.Finder||(e.Finder={})).displayName="Finder",e.Cells=o,(o=e.Cells||(e.Cells={})).displayName="Cells",e.Arena=a,(a=e.Arena||(e.Arena={})).displayName="Arena"}(N||(N={}))},63063:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(19586);function i(e){return{address:e.address,amount:r.xS(e.amount),index:r.xS(e.index),validatorIndex:r.xS(e.validatorIndex)}}function o(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:r.xS(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:r.xS(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:r.xS(e.gasLimit)},..."bigint"==typeof e.number&&{number:r.xS(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:r.xS(e.prevRandao)},..."bigint"==typeof e.time&&{time:r.xS(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i)}}}},1291:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Error{static setStaticOptions(e){r.prototype.docsOrigin=e.docsOrigin,r.prototype.showVersion=e.showVersion,r.prototype.version=e.version}constructor(e,t={}){let n=(()=>{if(t.cause instanceof r){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof r&&t.cause.docsPath||t.docsPath,o=t.docsOrigin??r.prototype.docsOrigin,a=`${o}${i??""}`,s=!!(t.version??r.prototype.showVersion),c=t.version??r.prototype.version;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||i||s?["",n?`Details: ${n}`:void 0,i?`See: ${a}`:void 0,s?`Version: ${c}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{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,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{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,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=t.cause,this.details=n,this.docs=a,this.docsOrigin=o,this.docsPath=i,this.shortMessage=e,this.showVersion=s,this.version=c}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,n):n?null:t}(this,e)}}Object.defineProperty(r,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:"[email protected]"}}),r.setStaticOptions(r.defaultStaticOptions)},19586:function(e,t,n){"use strict";n.d(t,{$s:function(){return P},Dp:function(){return u},Gh:function(){return g},Gu:function(){return v},He:function(){return w},J5:function(){return A},M6:function(){return E},O3:function(){return l},Q_:function(){return p},dp:function(){return y},eh:function(){return b},mL:function(){return h},mV:function(){return I},tP:function(){return m},xS:function(){return f},xv:function(){return d},zo:function(){return c}});var r=n(1291),i=n(82543),o=n(56535);let a=new TextEncoder,s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(...e){return`0x${e.reduce((e,t)=>
1e+t.replace("0x",""),"")}`}function u(e){return e instanceof Uint8Array?d(e):Array.isArray(e)?d(new Uint8Array(e)):e}function l(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(i.Yf(n,t.size),p(n,t.size)):n}function d(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(i.Yf(r,t.size),b(r,t.size)):r}function f(e,t={}){let n;let{signed:r,size:i}=t,o=BigInt(e);i?n=r?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let a="bigint"==typeof n&&r?-n-1n:0;if(n&&o>n||o<a){let t="bigint"==typeof e?"n":"";throw new A({max:n?`${n}${t}`:void 0,min:`${a}${t}`,signed:r,size:i,value:`${e}${t}`})}let s=(r&&o<0?BigInt.asUintN(8*i,BigInt(o)):o).toString(16),c=`0x${s}`;return i?p(c,i):c}function h(e,t={}){return d(a.encode(e),t)}function p(e,t){return i.vk(e,{dir:"left",size:t})}function b(e,t){return i.vk(e,{dir:"right",size:t})}function m(e,t,n,r={}){let{strict:o}=r;i.EM(e,t);let a=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return o&&i.Ro(a,t,n),a}function y(e){return Math.ceil((e.length-2)/2)}function g(e,t={}){let{signed:n}=t;t.size&&i.Yf(e,t.size);let r=BigInt(e);if(!n)return r;let o=(1n<<8n*BigInt((e.length-2)/2))-1n;return r<=o>>1n?r:r-o-1n}function w(e,t={}){let{signed:n,size:r}=t;return n||r?Number(g(e,t)):Number(e)}function v(e,t={}){let{strict:n=!1}=t;try{return!function(e,t={}){let{strict:n=!1}=t;if(!e||"string"!=typeof e)throw new x(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new C(e)}(e,{strict:n}),!0}catch{return!1}}class A 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:"Hex.IntegerOutOfRangeError"})}}class x extends r.G{constructor(e){super(`Value \`${"object"==typeof e?o.Pz(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class C extends r.G{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class E 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:"Hex.SizeOverflowError"})}}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:"Hex.SliceOffsetOutOfBoundsError"})}}class P 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:"Hex.SizeExceedsPaddingSizeError"})}}},56535:function(e,t,n){"use strict";function r(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+"#__bigint":n,n)}n.d(t,{Pz:function(){return r}})},82543:function(e,t,n){"use strict";n.d(t,{EM:function(){return o},Ro:function(){return a},Yf:function(){return i},vk:function(){return s}});var r=n(19586);function i(e,t){if(r.dp(e)>t)throw new r.M6({givenSize:r.dp(e),maxSize:t})}function o(e,t){if("number"==typeof t&&t>0&&t>r.dp(e)-1)throw new r.mV({offset:t,position:"start",size:r.dp(e)})}function a(e,t,n){if("number"==typeof t&&"number"==typeof n&&r.dp(e)!==n-t)throw new r.mV({offset:n,position:"end",size:r.dp(e)})}function s(e,t={}){let{dir:n,size:i=32}=t;if(0===i)return e;let o=e.replace("0x","");if(o.length>2*i)throw new r.$s({size:Math.ceil(o.length/2),targetSize:i,type:"Hex"});return`0x${o["right"===n?"padEnd":"padStart"](2*i,"0")}`}},46231:function(e,t,n){"use strict";n.d(t,{w_:function(){return l}});var r=n(2265),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){return t=>r.createElement(d,s({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,u({key:n},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var n,{attr:i,size:o,title:c}=e,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),d=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,l,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&r.createElement("title",null,c),e.children)};return void 0!==o?r.createElement(o.Consumer,null,e=>t(e)):t(i)}},5853:function(e,t,n){"use strict";n.d(t,{Jh:function(){return c},ZT:function(){return i},_T:function(){return a},ev:function(){return u},mG:function(){return s},pi:function(){return o}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(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 n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function c(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function u(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},19775: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}})},96698:function(e,t,n){"use strict";n.d(t,{r:function(){return E}});var r=n(28766),i=n(81544);class o extends i.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)}`],name:"EnsAvatarInvalidMetadataError"})}}class a extends i.G{constructor({reason:e}
vendor: 1,565 bytes, line 1
1){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class s extends i.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.`,{name:"EnsAvatarUriResolutionError"})}}class c extends i.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let u=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,l=/^(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,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,d=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,f=/^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||!Object.hasOwn(globalThis,"Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function p(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function b({uri:e,gatewayUrls:t}){let n=d.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=p(t?.ipfs,"https://ipfs.io"),i=p(t?.arweave,"https://arweave.net"),o=e.match(u),{protocol:a,subpath:c,target:h,subtarget:b=""}=o?.groups||{},m="ipns:/"===a||"ipns/"===c,y="ipfs:/"===a||"ipfs/"===c||l.test(e);
vendor: 6,343 bytes, line 1
1if(e.startsWith("http")&&!m&&!y){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((m||y)&&h)return{uri:`${r}/${m?"ipns":"ipfs"}/${h}${b}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&h)return{uri:`${i}/${h}${b||""}`,isOnChain:!1,isEncoded:!1};let g=e.replace(f,"");if(g.startsWith("<svg")&&(g=`data:image/svg+xml;base64,${btoa(g)}`),g.startsWith("data:")||g.startsWith("{"))return{uri:g,isOnChain:!0,isEncoded:!1};throw new s({uri:e})}function m(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new o({data:e});return e.image||e.image_url||e.image_data}async function y({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(e=>e.json());return await g({gatewayUrls:e,uri:m(n)})}catch{throw new s({uri:t})}}async function g({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=b({uri:t,gatewayUrls:e});if(r||await h(n))return n;throw new s({uri:t})}async function w(e,{nft:t}){if("erc721"===t.namespace)return(0,r.L)(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,r.L)(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 c({namespace:t.namespace})}async function v(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?A(e,{gatewayUrls:t,record:n}):g({uri:n,gatewayUrls:t})}async function A(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("/"),[o,s]=n.split(":"),[c,u]=r.split(":");if(!o||"eip155"!==o.toLowerCase())throw new a({reason:"Only EIP-155 supported"});if(!s)throw new a({reason:"Chain ID not found"});if(!u)throw new a({reason:"Contract address not found"});if(!i)throw new a({reason:"Token ID not found"});if(!c)throw new a({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:c.toLowerCase(),contractAddress:u,tokenID:i}}(n),{uri:i,isOnChain:o,isEncoded:s}=b({uri:await w(e,{nft:r}),gatewayUrls:t});if(o&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return g({uri:m(JSON.parse(s?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let c=r.tokenID;return"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0")),y({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,c)})}var x=n(82645),C=n(99861);async function E(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:i,gatewayUrls:o,strict:a,universalResolverAddress:s}){let c=await (0,x.s)(e,C.g,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:s,gatewayUrls:o,strict:a});if(!c)return null;try{return await v(e,{record:c,gatewayUrls:r})}catch{return null}}},72609:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(98158),i=n(93627),o=n(83348),a=n(7143),s=n(82645),c=n(28766);async function u(e,t){let{address:n,blockNumber:u,blockTag:l,coinType:d=60n,gatewayUrls:f,strict:h}=t,{chain:p}=e,b=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!p)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.L)({blockNumber:u,chain:p,contract:"ensUniversalResolver"})})();try{let t={address:b,abi:r.du,args:[n,d,f??[a.M]],functionName:"reverseWithGateways",blockNumber:u,blockTag:l},i=(0,s.s)(e,c.L,"readContract"),[o]=await i(t);return o||null}catch(e){if(h)throw e;if((0,o.c)(e))return null;throw e}}},99861:function(e,t,n){"use strict";n.d(t,{g:function(){return p}});var r=n(98158),i=n(65436),o=n(17283),a=n(93627),s=n(59455),c=n(83348),u=n(7143),l=n(21721),d=n(98707),f=n(82645),h=n(28766);async function p(e,t){let{blockNumber:n,blockTag:p,key:b,name:m,gatewayUrls:y,strict:g}=t,{chain:w}=e,v=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!w)throw Error("client chain not configured. universalResolverAddress is required.");return(0,a.L)({blockNumber:n,chain:w,contract:"ensUniversalResolver"})})(),A=w?.ensTlds;if(A&&!A.some(e=>m.endsWith(e)))return null;try{let t={address:v,abi:r.k3,args:[(0,s.NC)((0,d.T)(m)),(0,o.R)({abi:r.nZ,functionName:"text",args:[(0,l.V)(m),b]}),y??[u.M]],functionName:"resolveWithGateways",blockNumber:n,blockTag:p},a=(0,f.s)(e,h.L,"readContract"),c=await a(t);if("0x"===c[0])return null;let g=(0,i.k)({abi:r.nZ,functionName:"text",data:c[0]});return""===g?null:g}catch(e){if(g)throw e;if((0,c.c)(e))return null;throw e}}},50550:function(e,t,n){"use strict";n.d(t,{R:function(){return x}});var r=n(97542),i=n(63063),o=n(19775),a=n(98158),s=n(45434),c=n(81544),u=n(35586),l=n(20010),d=n(65436),f=n(23010),h=n(17283),p=n(93627),b=n(59455),m=n(14015),y=n(70878),g=n(92614),w=n(43226),v=n(77911),A=n(54605);async function x(e,t){let{account:a=e.account,authorizationList:d,batch:h=!!e.batch?.multicall,blockNumber:p,blockTag:w=e.experimental_blockTag??"latest",accessList:x,blobs:I,blockOverrides:P,code:k,data:B,factory:S,factoryData:O,gas:M,gasPrice:N,maxFeePerBlobGas:R,maxFeePerGas:F,maxPriorityFeePerGas:T,nonce:G,to:U,value:L,stateOverride:j,...D}=t,z=a?(0,o.T)(a):void 0;if(k&&(S||O))throw new c.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(k&&U)throw new c.G("Cannot provide both `code` & `to` as parameters.");let q=k&&B,W=S&&O&&U&&B,Q=q||W,$=q?E({code:k,data:B}):W?function(e){let{data:t,factory:n,factoryData:i,to:o}=e;return(0,f.w)({abi:(0,r.V)(["constructor(address, bytes, address, bytes)"]),bytecode:s.pG,args:[o,t,n,i]})}({data:B,factory:S,factoryData:O,to:U}):B;try{(0,A.F)(t);let n=("bigint"==typeof p?(0,b.eC)(p):void 0)||w,r=P?i.o(P):void 0,o=(0,v.mF)(j),a=e.chain?.formatters?.transactionRequest?.format,s=(a||g.tG)({...(0,y.K)(D,{format:a}),accessList:x,account:z,authorizationList:d,blobs:I,data:$,gas:M,gasPrice:N,maxFeePerBlobGas:R,maxFeePerGas:F,maxPriorityFeePerGas:T,nonce:G,to:Q?void 0:U,value:L},"call");if(h&&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:s})&&!o&&!r)try{return await C(e,{...s,blockNumber:p,blockTag:w})}
1catch(e){if(!(e instanceof u.pZ)&&!(e instanceof u.mm))throw e}let c=(()=>{let e=[s,n];return o&&r?[...e,o,r]:o?[...e,o]:r?[...e,{},r]:e})(),l=await e.request({method:"eth_call",params:c});if("0x"===l)return{data:void 0};return{data:l}}catch(a){let r=function(e){if(!(e instanceof c.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(a),{offchainLookup:i,offchainLookupSignature:o}=await n.e(1735).then(n.bind(n,71735));if(!1!==e.ccipRead&&r?.slice(0,10)===o&&U)return{data:await i(e,{data:r,to:U})};if(Q&&r?.slice(0,10)==="0x101bb98d")throw new l.Mo({factory:S});throw(0,m.P)(a,{...t,account:z,chain:e.chain})}}async function C(e,t){let{batchSize:n=1024,deployless:r=!1,wait:i=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:o,blockTag:c=e.experimental_blockTag??"latest",data:f,to:m}=t,y=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,p.L)({blockNumber:o,chain:e.chain,contract:"multicall3"});throw new u.pZ})(),g=("bigint"==typeof o?(0,b.eC)(o):void 0)||c,{schedule:v}=(0,w.S)({id:`${e.uid}.${g}`,wait:i,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,h.R)({abi:a.F8,args:[n],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{...null===y?{data:E({code:s.xd,data:r})}:{to:y,data:r}},g]});return(0,d.k)({abi:a.F8,args:[n],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:A,success:x}]=await v({data:f,to:m});if(!x)throw new l.VQ({data:A});return"0x"===A?{data:void 0}:{data:A}}function E(e){let{code:t,data:n}=e;return(0,f.w)({abi:(0,r.V)(["constructor(bytes, bytes)"]),bytecode:s.NO,args:[t,n]})}},6458:function(e,t,n){"use strict";n.d(t,{C:function(){return u},X:function(){return c}});var r=n(4496),i=n(82645),o=n(96174),a=n(74587),s=n(25283);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u,type:l="eip1559"}=t||{},d=await (async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:n,client:e,request:u}):c?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.Fz;let f=10**(d.toString().split(".")[1]?.length??0),h=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),p=n||await (0,i.s)(e,a.Q,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas){let t=await c.fees.estimateFeesPerGas({block:n,client:e,multiply:h,request:u,type:l});if(null!==t)return t}if("eip1559"===l){if("bigint"!=typeof p.baseFeePerGas)throw new r.e5;let t="bigint"==typeof u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await (0,o.h)(e,{block:p,chain:c,request:u}),n=h(p.baseFeePerGas);return{maxFeePerGas:u?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:u?.gasPrice??h(await (0,i.s)(e,s.o,"getGasPrice")({}))}}},96174:function(e,t,n){"use strict";n.d(t,{_:function(){return c},h:function(){return u}});var r=n(4496),i=n(72932),o=n(82645),a=n(74587),s=n(25283);async function c(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:c=e.chain,request:u}=t||{};try{let t=c?.fees?.maxPriorityFeePerGas??c?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,o.s)(e,a.Q,"getBlock")({}),i=await t({block:r,client:e,request:u});if(null===i)throw Error();return i}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(r)}catch{let[t,i]=await Promise.all([n?Promise.resolve(n):(0,o.s)(e,a.Q,"getBlock")({}),(0,o.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let c=i-t.baseFeePerGas;if(c<0n)return 0n;return c}}},32807:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var r=n(98158),i=n(65436),o=n(17283),a=n(59455),s=n(82645),c=n(50550);async function u(e,{address:t,blockNumber:n,blockTag:u=e.experimental_blockTag??"latest"}){if(e.batch?.multicall&&e.chain?.contracts?.multicall3){let a=e.chain.contracts.multicall3.address,l=(0,o.R)({abi:r.F8,functionName:"getEthBalance",args:[t]}),{data:d}=await (0,s.s)(e,c.R,"call")({to:a,data:l,blockNumber:n,blockTag:u});return(0,i.k)({abi:r.F8,functionName:"getEthBalance",args:[t],data:d||"0x"})}let l="bigint"==typeof n?(0,a.eC)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,l||u]}))}},74587:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(12197),i=n(59455),o=n(59069);async function a(e,{blockHash:t,blockNumber:n,blockTag:a=e.experimental_blockTag??"latest",includeTransactions:s}={}){let c=s??!1,u=void 0!==n?(0,i.eC)(n):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,c]},{dedupe:!0}
1):await e.request({method:"eth_getBlockByNumber",params:[u||a,c]},{dedupe:!!u})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||o.Z)(l,"getBlock")}},12363:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(72932);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ly)(t)}},56570:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(59455);async function i(e,{address:t,blockNumber:n,blockTag:i="latest"}){let o=void 0!==n?(0,r.eC)(n):void 0,a=await e.request({method:"eth_getCode",params:[t,o||i]},{dedupe:!!o});if("0x"!==a)return a}},25283:function(e,t,n){"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}n.d(t,{o:function(){return r}})},16689:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(72932),i=n(59455);async function o(e,{address:t,blockTag:n="latest",blockNumber:o}){let a=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof o?(0,i.eC)(o):n]},{dedupe:!!o});return(0,r.ly)(a)}},94797:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(98158),i=n(45434),o=n(65531),a=n(81544),s=n(20010),c=n(65436),u=n(17283),l=n(93627),d=n(34180),f=n(82645),h=n(28766);async function p(e,t){let{account:n,authorizationList:p,allowFailure:b=!0,blockNumber:m,blockOverrides:y,blockTag:g,stateOverride:w}=t,v=t.contracts,{batchSize:A=t.batchSize??1024,deployless:x=t.deployless??!1}="object"==typeof e.batch?.multicall?e.batch.multicall:{},C=(()=>{if(t.multicallAddress)return t.multicallAddress;if(x)return null;if(e.chain)return(0,l.L)({blockNumber:m,chain:e.chain,contract:"multicall3"});throw Error("client chain not configured. multicallAddress is required.")})(),E=[[]],I=0,P=0;for(let e=0;e<v.length;e++){let{abi:t,address:r,args:i,functionName:o}=v[e];try{let e=(0,u.R)({abi:t,args:i,functionName:o});P+=(e.length-2)/2,A>0&&P>A&&E[I].length>0&&(I++,P=(e.length-2)/2,E[I]=[]),E[I]=[...E[I],{allowFailure:!0,callData:e,target:r}]}catch(a){let e=(0,d.S)(a,{abi:t,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:o,sender:n});if(!b)throw e;E[I]=[...E[I],{allowFailure:!0,callData:"0x",target:r}]}}let k=await Promise.allSettled(E.map(t=>(0,f.s)(e,h.L,"readContract")({...null===C?{code:i.xd}:{address:C},abi:r.F8,account:n,args:[t],authorizationList:p,blockNumber:m,blockOverrides:y,blockTag:g,functionName:"aggregate3",stateOverride:w}))),B=[];for(let e=0;e<k.length;e++){let t=k[e];if("rejected"===t.status){if(!b)throw t.reason;for(let n=0;n<E[e].length;n++)B.push({status:"failure",error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:r,success:i}=n[t],{callData:a}=E[e][t],{abi:u,address:l,functionName:f,args:h}=v[B.length];try{if("0x"===a)throw new o.wb;if(!i)throw new s.VQ({data:r});let e=(0,c.k)({abi:u,args:h,data:r,functionName:f});B.push(b?{result:e,status:"success"}:e)}catch(t){let e=(0,d.S)(t,{abi:u,address:l,args:h,docsPath:"/docs/contract/multicall",functionName:f});if(!b)throw e;B.push({error:e,result:void 0,status:"failure"})}}}if(B.length!==v.length)throw new a.G("multicall results mismatch");return B}},28766:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var r=n(65436),i=n(17283),o=n(34180),a=n(82645),s=n(50550);async function c(e,t){let{abi:n,address:c,args:u,functionName:l,...d}=t,f=(0,i.R)({abi:n,args:u,functionName:l});try{let{data:t}=await (0,a.s)(e,s.R,"call")({...d,data:f,to:c});return(0,r.k)({abi:n,args:u,functionName:l,data:t||"0x"})}catch(e){throw(0,o.S)(e,{abi:n,address:c,args:u,docsPath:"/docs/contract/readContract",functionName:l})}}},64314:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});let r=(0,n(90328).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},82538:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=n(19775),i=n(78217);function o(e){let{batch:t,chain:n,ccipRead:o,dataSuffix:a,key:s="base",n
1ame:c="Base Client",type:u="base"}=e,l=e.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),d=n?.blockTime??12e3,f=e.pollingInterval??Math.min(Math.max(Math.floor(d/2),500),4e3),h=e.cacheTime??f,p=e.account?(0,r.T)(e.account):void 0,{config:b,request:m,value:y}=e.transport({account:p,chain:n,pollingInterval:f}),g={account:p,batch:t,cacheTime:h,ccipRead:o,chain:n,dataSuffix:a,key:s,name:c,pollingInterval:f,request:m,transport:{...b,...y},type:u,uid:(0,i.h)(),...l?{experimental_blockTag:l}:{}};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)})}},12500:function(e,t,n){"use strict";n.d(t,{I:function(){return rp}});var r=n(98158),i=n(65436),o=n(17283),a=n(93627),s=n(36826),c=n(59455),u=n(83348),l=n(7143),d=n(21721),f=n(98707),h=n(82645),p=n(28766);async function b(e,t){let{blockNumber:n,blockTag:b,coinType:m,name:y,gatewayUrls:g,strict:w}=t,{chain:v}=e,A=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw Error("client chain not configured. universalResolverAddress is required.");return(0,a.L)({blockNumber:n,chain:v,contract:"ensUniversalResolver"})})(),x=v?.ensTlds;if(x&&!x.some(e=>y.endsWith(e)))return null;let C=null!=m?[(0,d.V)(y),BigInt(m)]:[(0,d.V)(y)];try{let t=(0,o.R)({abi:r.X$,functionName:"addr",args:C}),a={address:A,abi:r.k3,functionName:"resolveWithGateways",args:[(0,c.NC)((0,f.T)(y)),t,g??[l.M]],blockNumber:n,blockTag:b},u=(0,h.s)(e,p.L,"readContract"),d=await u(a);if("0x"===d[0])return null;let m=(0,i.k)({abi:r.X$,args:C,functionName:"addr",data:d[0]});if("0x"===m||"0x00"===(0,s.f)(m))return null;return m}catch(e){if(w)throw e;if((0,u.c)(e))return null;throw e}}var m=n(96698),y=n(72609);async function g(e,t){let{blockNumber:n,blockTag:r,name:i}=t,{chain:o}=e,s=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!o)throw Error("client chain not configured. universalResolverAddress is required.");return(0,a.L)({blockNumber:n,chain:o,contract:"ensUniversalResolver"})})(),u=o?.ensTlds;if(u&&!u.some(e=>i.endsWith(e)))throw Error(`${i} is not a valid ENS TLD (${u?.join(", ")}) for chain "${o.name}" (id: ${o.id}).`);let[l]=await (0,h.s)(e,p.L,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,c.NC)((0,f.T)(i))],blockNumber:n,blockTag:r});return l}var w=n(99861),v=n(50550),A=n(19775),x=n(14015),C=n(70878),E=n(92614),I=n(54605);async function P(e,t){let{account:n=e.account,blockNumber:r,blockTag:i="latest",blobs:o,data:a,gas:s,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:h,value:p,...b}=t,m=n?(0,A.T)(n):void 0;try{(0,I.F)(t);let n="bigint"==typeof r?(0,c.eC)(r):void 0,y=e.chain?.formatters?.transactionRequest?.format,g=(y||E.tG)({...(0,C.K)(b,{format:y}),account:m,blobs:o,data:a,gas:s,gasPrice:u,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:f,to:h,value:p},"createAccessList"),w=await e.request({method:"eth_createAccessList",params:[g,n||i]});return{accessList:w.accessList,gasUsed:BigInt(w.gasUsed)}}catch(n){throw(0,x.P)(n,{...t,account:m,chain:e.chain})}}function k(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:i,transport:o})=>{"success"===i&&t===e&&(n[r]=o.request)}),t=>n[t]||e.request}async function B(e){let t=k(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}var S=n(65531),O=n(81544);class M extends O.G{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var N=n(44659),R=n(34763),F=n(45392),T=n(30056),G=n(7275),U=n(64043);let L="/docs/contract/encodeEventTopics";function j(e){let{abi:t,eventName:n,args:r}=e,i=t[0];if(n){let e=(0,U.mE)({abi:t,name:n});if(!e)throw new S.mv(n,{docsPath:L});i=e}if("event"!==i.type)throw new S.mv(void 0,{docsPath:L});let o=(0,G.t)(i),a=(0,F.n)(o),s=[];if(r&&"inputs"in i){let e=i.inputs?.filter(e=>
1"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(s=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,i)=>D({param:e,value:t[n][i]})):void 0!==t[n]&&null!==t[n]?D({param:e,value:t[n]}):null)??[])}return[a,...s]}function D({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,R.w)((0,N.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new M(e.type);return(0,T.E)([e],[t])}async function z(e,t){let{address:n,abi:r,args:i,eventName:o,fromBlock:a,strict:s,toBlock:u}=t,l=k(e,{method:"eth_newFilter"}),d=o?j({abi:r,args:i,eventName:o}):void 0,f=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof a?(0,c.eC)(a):a,toBlock:"bigint"==typeof u?(0,c.eC)(u):u,topics:d}]});return{abi:r,args:i,eventName:o,id:f,request:l(f),strict:!!s,type:"event"}}async function q(e,{address:t,args:n,event:r,events:i,fromBlock:o,strict:a,toBlock:s}={}){let u=i??(r?[r]:void 0),l=k(e,{method:"eth_newFilter"}),d=[];u&&(d=[u.flatMap(e=>j({abi:[e],eventName:e.name,args:n}))],r&&(d=d[0]));let f=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,c.eC)(o):o,toBlock:"bigint"==typeof s?(0,c.eC)(s):s,...d.length?{topics:d}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:o,id:f,request:l(f),strict:!!a,toBlock:s,type:"event"}}async function W(e){let t=k(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var Q=n(34180),$=n(31669),H=n(93610),V=n(20556),K=n(72932);async function J({hash:e,signature:t}){let r=(0,H.v)(e)?e:(0,c.NC)(e),{secp256k1:i}=await Promise.resolve().then(n.bind(n,10846)),o=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:n,v:r,yParity:o}=t,a=Z(Number(o??r));return new i.Signature((0,K.y_)(e),(0,K.y_)(n)).addRecoveryBit(a)}let e=(0,H.v)(t)?t:(0,c.NC)(t);if(65!==(0,V.d)(e))throw Error("invalid signature length");let n=Z((0,K.ly)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(r.substring(2)).toHex(!1);return`0x${o}`}function Z(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function Y({hash:e,signature:t}){return function(e){let t=(0,R.w)(`0x${e.substring(4)}`).substring(26);return(0,$.x)(`0x${t}`)}(await J({hash:e,signature:t}))}var X=n(89256),_=n(70044);async function ee(e){let{authorization:t,signature:n}=e;return Y({hash:function(e){let{chainId:t,nonce:n,to:r}=e,i=e.contractAddress??e.address,o=(0,R.w)((0,X.SM)(["0x05",(0,_.LV)([t?(0,c.eC)(t):"0x",i,n?(0,c.eC)(n):"0x"])]));return"bytes"===r?(0,N.nr)(o):o}(t),signature:n??t})}var et=n(71282),en=n(29707),er=n(63228);class ei extends O.G{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:o,gasPrice:a,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:u,to:l,value:d}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,er.xr)({from:t?.address,to:l,value:void 0!==d&&`${(0,et.d)(d)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==a&&`${(0,en.o)(a)} gwei`,maxFeePerGas:void 0!==s&&`${(0,en.o)(s)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,en.o)(c)} gwei`,nonce:u})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var eo=n(78125),ea=n(18856),es=n(77911),ec=n(6458),eu=n(74587),el=n(16689),ed=n(4496),ef=n(63563),eh=n(67496),ep=n(89952),eb=n(10932),em=n(82061),ey=n(90683),eg=n(27481),ew=n(12363);async function ev(e,t){let{account:n=e.account,accessList:r,authorizationList:i,chain:o=e.chain,blobVersionedHashes:a,blobs:s,data:c,gas:u,gasPrice:l,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:b,nonceManager:m,to:y,type:g,value:w,...v}=t,x=await (async()=>{if(!n||!m||void 0!==b)return b;let t=(0,A.T)(n),r=o?o.id:await (0,h.s)(e,ew.L,"getChainId")({});return await m.consume({address:t.address,chainId:r,client:e})})();(0,I.F)(t);let P=o?.formatters?.transactionRequest?.format,k=(P||E.tG)({...(0,C.K)(v,{format:P}),account:n?(0,A.T)(n):void 0,accessList:r,authorizationList:i,blobs:s,blobVersionedHashes:a,data:c,gas:u,gasPrice:l,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:x,to:y,type:g,value:w},"fillTransaction");try{let n=await e.request({method:"eth_fillTransaction",params:[k]}),r=(o?.formatters?.transaction?.format||eg.Tr)(n.tx);delete r.blockHash,delete r.blockNumber,delete r.r,delete r.s,delete r.transactionIndex,delete r.v,delete r.yParity,r.data=r.input,r.gas&&(r.gas=t.gas??r.gas),r.gasPrice&&(r.gasPrice=t.gasPrice??r.gasPrice),r.maxFeePerBlobGas&&(r.maxFeePerBlobGas=t.maxFeePerBlobGas??r.maxFeePerBlobGas),r.maxFeePerGas&&(r.maxFeePerGas=t.maxFeePerGas??r.maxFeePerGas),r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas??r.maxPriorityFeePerGas),void 0!==r.nonce&&(r.nonce=t.nonce??r.nonce);let i=await (async()=>
1{if("function"==typeof o?.fees?.baseFeeMultiplier){let n=await (0,h.s)(e,eu.Q,"getBlock")({});return o.fees.baseFeeMultiplier({block:n,client:e,request:t})}return o?.fees?.baseFeeMultiplier??1.2})();if(i<1)throw new ed.Fz;let a=i.toString().split(".")[1]?.length??0,s=10**a,c=e=>e*BigInt(Math.ceil(i*s))/BigInt(s);return r.feePayerSignature||(r.maxFeePerGas&&!t.maxFeePerGas&&(r.maxFeePerGas=c(r.maxFeePerGas)),r.gasPrice&&!t.gasPrice&&(r.gasPrice=c(r.gasPrice))),{raw:n.raw,transaction:{from:k.from,...r},...n.capabilities?{capabilities:n.capabilities}:{}}}catch(n){throw function(e,{docsPath:t,...n}){let r=(()=>{let t=(0,ea.k)(e,n);return t instanceof eo.cj?e:t})();return new er.mk(r,{docsPath:t,...n})}(n,{...t,chain:e.chain})}}let eA=["blobVersionedHashes","chainId","fees","gas","nonce","type"],ex=new Map,eC=new em.k(128);async function eE(e,t){let n,r,i=t;i.account??=e.account,i.parameters??=eA;let{account:o,chain:a=e.chain,nonceManager:s,parameters:c}=i,u="function"==typeof a?.prepareTransactionRequest?{fn:a.prepareTransactionRequest,runAt:["beforeFillTransaction"]}:Array.isArray(a?.prepareTransactionRequest)?{fn:a.prepareTransactionRequest[0],runAt:a.prepareTransactionRequest[1].runAt}:void 0;async function l(){return n||(void 0!==i.chainId?i.chainId:a?a.id:n=await (0,h.s)(e,ew.L,"getChainId")({}))}let d=o?(0,A.T)(o):o,f=i.nonce;if(c.includes("nonce")&&void 0===f&&d&&s){let t=await l();f=await s.consume({address:d.address,chainId:t,client:e})}u?.fn&&u.runAt?.includes("beforeFillTransaction")&&(i=await u.fn({...i,chain:a},{phase:"beforeFillTransaction"}),f??=i.nonce);let p=(!(c.includes("blobVersionedHashes")||c.includes("sidecars"))||!i.kzg||!i.blobs)&&!1!==eC.get(e.uid)&&["fees","gas"].some(e=>c.includes(e))&&(c.includes("chainId")&&"number"!=typeof i.chainId||c.includes("nonce")&&"number"!=typeof f||c.includes("fees")&&"bigint"!=typeof i.gasPrice&&("bigint"!=typeof i.maxFeePerGas||"bigint"!=typeof i.maxPriorityFeePerGas)||c.includes("gas")&&"bigint"!=typeof i.gas)?await (0,h.s)(e,ev,"fillTransaction")({...i,nonce:f}).then(t=>{let{chainId:n,from:r,gas:o,gasPrice:a,nonce:s,maxFeePerBlobGas:c,maxFeePerGas:u,maxPriorityFeePerGas:l,type:d,...f}=t.transaction;return eC.set(e.uid,!0),{...i,...r?{from:r}:{},...d&&!i.type?{type:d}:{},...void 0!==n?{chainId:n}:{},...void 0!==o?{gas:o}:{},...void 0!==a?{gasPrice:a}:{},...void 0!==s?{nonce:s}:{},...void 0!==c&&"legacy"!==i.type&&"eip2930"!==i.type?{maxFeePerBlobGas:c}:{},...void 0!==u&&"legacy"!==i.type&&"eip2930"!==i.type?{maxFeePerGas:u}:{},...void 0!==l&&"legacy"!==i.type&&"eip2930"!==i.type?{maxPriorityFeePerGas:l}:{},..."nonceKey"in f&&void 0!==f.nonceKey?{nonceKey:f.nonceKey}:{},..."keyAuthorization"in f&&void 0!==f.keyAuthorization&&null!==f.keyAuthorization&&!("keyAuthorization"in i)?{keyAuthorization:f.keyAuthorization}:{},..."feePayerSignature"in f&&void 0!==f.feePayerSignature&&null!==f.feePayerSignature?{feePayerSignature:f.feePayerSignature}:{},..."feeToken"in f&&void 0!==f.feeToken&&null!==f.feeToken&&!("feeToken"in i)?{feeToken:f.feeToken}:{},...t.capabilities?{_capabilities:t.capabilities}:{}}}).catch(t=>{if("TransactionExecutionError"!==t.name)return i;if(t.walk?.(e=>"ExecutionRevertedError"===e.name))throw t;return t.walk?.(e=>"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name||e.message?.includes("eth_fillTransaction is not available"))&&eC.set(e.uid,!1),i}):i;f??=p.nonce;let{blobs:b,gas:m,kzg:y,type:g}=i={...p,...d?{from:d?.address}:{},...void 0!==f?{nonce:f}:{}};async function w(){return r||(r=await (0,h.s)(e,eu.Q,"getBlock")({blockTag:"latest"}))}if(u?.fn&&u.runAt?.includes("beforeFillParameters")&&(i=await u.fn({...i,chain:a},{phase:"beforeFillParameters"})),c.includes("nonce")&&void 0===f&&d&&!s&&(i.nonce=await (0,h.s)(e,el.K,"getTransactionCount")({address:d.address,blockTag:"pending"})),(c.includes("blobVersionedHashes")||c.includes("sidecars"))&&b&&y){let e=(0,ef.P)({blobs:b,kzg:y});if(c.includes("blobVersionedHashes")){let t=(0,ep.C)({commitments:e,to:"hex"});i.blobVersionedHashes=t}if(c.includes("sidecars")){let t=(0,eh.y)({blobs:b,commitments:e,kzg:y}),n=(0,eb.j)({blobs:b,commitments:e,proofs:t,to:"hex"});i.sidecars=n}}if(c.includes("chainId")&&(i.chainId=await l()),(c.includes("fees")||c.includes("type"))&&void 0===g)try{i.type=(0,ey.l)(i)}catch{let t=ex.get(e.uid);if(void 0===t){let n=await w();t="bigint"==typeof n?.baseFeePerGas,ex.set(e.uid,t)}i.type=t?"eip1559":"legacy"}if(c.includes("fees")){if("legacy"!==i.type&&"eip2930"!==i.type){if(void 0===i.maxFeePerGas||void 0===i.maxPriorityFeePerGas){let t=await w(),{maxFeePerGas:n,maxPriorityFeePerGas:r}=await (0,ec.C)(e,{block:t,chain:a,request:i});if(void 0===i.maxPriorityFeePerGas&&i.maxFeePerGas&&i.maxFeePerGas<r)throw new ed.ld({maxPriorityFeePerGas:r});i.maxPriorityFeePerGas=r,i.maxFeePerGas=n}}else{if(void 0!==i.maxFeePerGas||void 0!==i.maxPriorityFeePerGas)throw new ed.e5;if(void 0===i.gasPrice){let t=await w(),{gasPrice:n}=await (0,ec.C)(e,{block:t,chain:a,request:i,type:"legacy"});i.gasPrice=n}}}return c.includes("gas")&&void 0===m&&(i.gas=await (0,h.s)(e,eI,"estimateGas")({...i,account:d,prepare:d?.type==="local"?[]:["blobVersionedHashes"]})),u?.fn&&u.runAt?.includes("afterFillParameters")&&(i=await u.fn({...i,chain:a},{phase:"afterFillParameters"})),(0,I.F)(i),delete i.parameters,i}async function eI(e,t){let{account:n=e.account,prepare:r=!0}=t,i=n?(0,A.T)(n):void 0,o=Array.isArray(r)?r:i?.type!=="local"?["blobVersionedHashes"]:void 0;try{let n=await (async()=>t.to?t.to:t.authorizationList&&t.authorizationList.length>0?await ee({authorization:t.authorizationList[0]}).catch(()=>{throw new O.G("`to` is required. Could not infer from `authorizationList`")}):void 0)(),{accessList:a,authorizationList:s,blobs:u,blobVersionedHashes:l,blockNumber:d,blockTag:f,data:h,gas:p,gasPrice:b,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:w,value:v,stateOverride:A,...x}=r?await eE(e,{...t,parameters:o,to:n}):t;if(p&&t.gas!==p)return p;let P=("bigint"==typeof d?(0,c.eC)(d):void 0)||f,k=(0,es.mF)(A);(0,I.F)(t);let B=e.chain?.formatters?.transactionRequest?.format,S=(B||E.tG)({...(0,C.K)(x,{format:B}),account:i,accessList:a,authorizationList:s,blobs:u,blobVersionedHashes:l,data:h,gasPrice:b,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:w,to:n,value:v},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:k?[S,P??e.experimental_blockTag??"latest",k]:P?[S,P]:[S]}))}catch(n){throw function(e,{docsPath:t,...n}){return new ei((()=>{let t=(0,ea.k)(e,n);return t instanceof eo.cj?e:t})(),{docsPath:t,...n})}(n,{...t,account:i,chain:e.chain})}}async function eP(e,t){let{abi:n,address:r,args:i,functionName:a,dataSuffix:s="str
1ing"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,...c}=t,u=(0,o.R)({abi:n,args:i,functionName:a});try{return await (0,h.s)(e,eI,"estimateGas")({data:`${u}${s?s.replace("0x",""):""}`,to:r,...c})}catch(t){let e=c.account?(0,A.T)(c.account):void 0;throw(0,Q.S)(t,{abi:n,address:r,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:e?.address})}}var ek=n(96174),eB=n(32807);async function eS(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}let eO=new Map,eM=new Map;async function eN(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){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,eO),r=t(e,eM);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(t),i=r.response.get();if(i&&n>0&&Date.now()-i.created.getTime()<n)return i.data;let o=r.promise.get();o||(o=e(),r.promise.set(o));try{let e=await o;return r.response.set({created:new Date,data:e}),e}finally{r.promise.clear()}}let eR=e=>`blockNumber.${e}`;async function eF(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await eN(()=>e.request({method:"eth_blockNumber"}),{cacheKey:eR(e.uid),cacheTime:t}))}async function eT(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let i;let o=void 0!==n?(0,c.eC)(n):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]},{dedupe:!!o}),(0,K.ly)(i)}var eG=n(56570),eU=n(93637),eL=n(55668),ej=n(33630),eD=n(2742);let ez="/docs/contract/decodeEventLog";function eq(e){let{abi:t,data:n,strict:r,topics:i}=e,o=r??!0,[a,...s]=i;if(!a)throw new S.FM({docsPath:ez});let c=t.find(e=>"event"===e.type&&a===(0,F.n)((0,G.t)(e)));if(!(c&&"name"in c)||"event"!==c.type)throw new S.lC(a,{docsPath:ez});let{name:u,inputs:l}=c,d=l?.some(e=>!("name"in e&&e.name)),f=d?[]:{},h=l.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed),p=[];for(let e=0;e<h.length;e++){let[t,n]=h[e],r=s[e];if(!r){if(o)throw new S.Gy({abiItem:c,param:t});p.push([t,n]);continue}f[d?n:t.name||n]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,eD.r)([e],t)||[])[0]}({param:t,value:r})}let b=l.filter(e=>!("indexed"in e&&e.indexed)),m=o?b:[...p.map(([e])=>e),...b];if(m.length>0){if(n&&"0x"!==n)try{let e=(0,eD.r)(m,n);if(e){let t=0;if(!o)for(let[n,r]of p)f[d?r:n.name||r]=e[t++];if(d)for(let n=0;n<l.length;n++)void 0===f[n]&&t<e.length&&(f[n]=e[t++]);else for(let n=0;n<b.length;n++)f[b[n].name]=e[t++]}}catch(e){if(o){if(e instanceof S.xB||e instanceof ej.lQ)throw new S.SM({abiItem:c,data:n,params:m,size:(0,V.d)(n)});throw e}}else if(o)throw new S.SM({abiItem:c,data:"0x",params:m,size:0})}return{eventName:u,args:Object.values(f).length>0?f:void 0}}function eW(e){let{abi:t,args:n,logs:r,strict:i=!0}=e,o=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),a=t.filter(e=>"event"===e.type).map(e=>({abi:e,selector:(0,F.n)(e)}));return r.map(e=>{let t,r;let s="string"==typeof e.blockNumber?(0,eL.U)(e):e,c=a.filter(e=>s.topics[0]===e.selector);if(0===c.length)return null;for(let e of c)try{t=eq({...s,abi:[e.abi],strict:!0}),r=e;break}catch{}if(!t&&!i){r=c[0];try{t=eq({data:s.data,topics:s.topics,abi:[r.abi],strict:!1})}catch{let e=r.abi.inputs?.some(e=>!("name"in e&&e.name));return{...s,args:e?[]:{},eventName:r.abi.name}}}return t&&r&&(!o||o.includes(t.eventName))&&function(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function i(e,t,n){try{if("address"===e.type)return(0,eU.E)(t,n);if("string"===e.type||"bytes"===e.type)return(0,R.w)((0,N.O0)(t))===n;return t===n}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((e,r)=>{if(null==e)return!0;let o=n[r];return!!o&&(Array.isArray(e)?e:[e]).some(e=>i(o,e,t[r]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof r||Array.isArray(r))&&Object.entries(r).every(([e,r])=>{if(null==r)return!0;let o=n.find(t=>t.name===e);return!!o&&(Array.isArray(r)?r:[r]).some(n=>i(o,n,t[e]))})}({args:t.args,inputs:r.abi.inputs,matchArgs:n})?{...t,...s}:null}
1).filter(Boolean)}async function eQ(e,{address:t,blockHash:n,fromBlock:r,toBlock:i,event:o,events:a,args:s,strict:u}={}){let l=a??(o?[o]:void 0),d=[];l&&(d=[l.flatMap(e=>j({abi:[e],eventName:e.name,args:a?void 0:s}))],o&&(d=d[0]));let f=(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,c.eC)(r):r,toBlock:"bigint"==typeof i?(0,c.eC)(i):i}]})).map(e=>(0,eL.U)(e));return l?eW({abi:l,args:s,logs:f,strict:u??!1}):f}async function e$(e,t){let{abi:n,address:r,args:i,blockHash:o,eventName:a,fromBlock:s,toBlock:c,strict:u}=t,l=a?(0,U.mE)({abi:n,name:a}):void 0,d=l?void 0:n.filter(e=>"event"===e.type);return(0,h.s)(e,eQ,"getLogs")({address:r,args:i,blockHash:o,event:l,events:d,fromBlock:s,toBlock:c,strict:u})}var eH=n(69921);async function eV(e,{address:t,blockNumber:n,blockTag:r="latest"}){let i=await (0,eG.C)(e,{address:t,...void 0!==n?{blockNumber:n}:{blockTag:r}});if(i&&23===(0,V.d)(i)&&i.startsWith("0xef0100"))return(0,$.K)((0,eH.tP)(i,3,23))}class eK extends O.G{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function eJ(e,t){let{address:n,factory:r,factoryData:i}=t;try{let[t,o,a,s,c,u,l]=await (0,h.s)(e,p.L,"readContract")({abi:eZ,address:n,functionName:"eip712Domain",factory:r,factoryData:i});return{domain:{name:o,version:a,chainId:Number(s),verifyingContract:c,salt:u},extensions:l,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new eK({address:n});throw e}}let eZ=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function eY(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){var o;let a="bigint"==typeof n?(0,c.eC)(n):void 0;return{baseFeePerGas:(o=await e.request({method:"eth_feeHistory",params:[(0,c.eC)(t),a||r,i]},{dedupe:!!a})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:o.gasUsedRatio,oldestBlock:BigInt(o.oldestBlock),reward:o.reward?.map(e=>e.map(e=>BigInt(e)))}}async function eX(e,{filter:t}){let n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof r[0])return r;let i=r.map(e=>(0,eL.U)(e));return"abi"in t&&t.abi?eW({abi:t.abi,logs:i,strict:n}):i}async function e_(e,{filter:t}){let n=t.strict??!1,r=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,eL.U)(e));return t.abi?eW({abi:t.abi,logs:r,strict:n}):r}var e0=n(25283);async function e1(e,{address:t,blockNumber:n,blockTag:r,storageKeys:i}){var o;let a=void 0!==n?(0,c.eC)(n):void 0;return{...o=await e.request({method:"eth_getProof",params:[t,i,a||(r??"latest")]}),balance:o.balance?BigInt(o.balance):void 0,nonce:o.nonce?(0,K.ly)(o.nonce):void 0,storageProof:o.storageProof?o.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function e6(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){let o=void 0!==n?(0,c.eC)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,o||r]})}async function e5(e,{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:o,sender:a,nonce:s}){let u=r||"latest",l=void 0!==n?(0,c.eC)(n):void 0,d=null;if(i?d=await e.request({method:"eth_getTransactionByHash",params:[i]},{dedupe:!0}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,c.eC)(o)]},{dedupe:!0}):(l||u)&&"number"==typeof o?d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||u,(0,c.eC)(o)]},{dedupe:!!l}):a&&"number"==typeof s&&(d=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[a,(0,c.eC)(s)]},{dedupe:!0})),!d)throw new er.Bh({blockHash:t,blockNumber:n,blockTag:u,hash:i,index:o});return(e.chain?.formatters?.transaction?.format||eg.Tr)(d,"getTransaction")}async function e2(e,{hash:t,transactionReceipt:n}){let[r,i]=await Promise.all([(0,h.s)(e,eF,"getBlockNumber")({}),t?(0,h.s)(e,e5,"getTransaction")({hash:t}):void 0]),o=n?.blockNumber||i?.blockNumber;return o?r-o+1n:0n}var e8=n(13550);async function e3(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new er.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||e8.fA)(n,"getTransactionReceipt")}var e4=n(94797),e9=n(63063),e7=n(20010),te=n(59069);async function tt(e,t){let{blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",blocks:a,returnFullTransactions:s,traceTransfers:u,validation:l}=t;try{let t=[];for(let e of a){let n=e.blockOverrides?e9.o(e.blockOverrides):void 0,r=e.calls.map(e=>{let t=e.account?(0,A.T)(e.account):void 0,n=e.abi?(0,o.R)(e):e.data,r={...e,account:t,data:e.dataSuffix?(0,X.zo)([n||"0x",e.dataSuffix]):n,from:e.from??t?.address};return(0,I.F)(r),(0,E.tG)(r)}),i=e.stateOverrides?(0,es.mF)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:i})}let d="bigint"==typeof n?(0,c.eC)(n):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:s,traceTransfers:u,validation:l},d||r]}
1)).map((e,t)=>({...(0,te.Z)(e),calls:e.calls.map((e,n)=>{let{abi:r,args:o,functionName:s,to:c}=a[t].calls[n],u=e.error?.data??e.returnData,l=BigInt(e.gasUsed),d=e.logs?.map(e=>eL.U(e)),f="0x1"===e.status?"success":"failure",h=r&&"success"===f&&"0x"!==u?(0,i.k)({abi:r,data:u,functionName:s}):null,p=(()=>{let e;if("success"!==f&&("0x"===u?e=new S.wb:u&&(e=new e7.VQ({data:u})),e))return(0,Q.S)(e,{abi:r??[],address:c??"0x",args:o,functionName:s??"<unknown>"})})();return{data:u,gasUsed:l,logs:d,status:f,..."success"===f?{result:h}:{error:p}}})}))}catch(t){let e=(0,ea.k)(t,{});if(e instanceof eo.cj)throw t;throw e}}var tn=n(21669),tr=n(26588),ti=n(79223),to=n(91465),ta=n(1678),ts=n(1291);let tc=BigInt(4294967296-1),tu=BigInt(32),tl=(e,t,n)=>e<<n|t>>>32-n,td=(e,t,n)=>t<<n|e>>>32-n,tf=(e,t,n)=>t<<n-32|e>>>64-n,th=(e,t,n)=>e<<n-32|t>>>64-n;function tp(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function tb(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function tm(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 ty(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}let tg=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]?e=>e:function(e){for(let n=0;n<e.length;n++){var t;e[n]=(t=e[n])<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}return e};function tw(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),tb(e),e}class tv{}let tA=BigInt(0),tx=BigInt(1),tC=BigInt(2),tE=BigInt(7),tI=BigInt(256),tP=BigInt(113),tk=[],tB=[],tS=[];for(let e=0,t=tx,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],tk.push(2*(5*r+n)),tB.push((e+1)*(e+2)/2%64);let i=tA;for(let e=0;e<7;e++)(t=(t<<tx^(t>>tE)*tP)%tI)&tC&&(i^=tx<<(tx<<BigInt(e))-tx);tS.push(i)}let tO=function(e,t=!1){let n=e.length,r=new Uint32Array(n),i=new Uint32Array(n);for(let o=0;o<n;o++){let{h:n,l:a}=function(e,t=!1){return t?{h:Number(e&tc),l:Number(e>>tu&tc)}:{h:0|Number(e>>tu&tc),l:0|Number(e&tc)}}(e[o],t);[r[o],i[o]]=[n,a]}return[r,i]}(tS,!0),tM=tO[0],tN=tO[1],tR=(e,t,n)=>n>32?tf(e,t,n):tl(e,t,n),tF=(e,t,n)=>n>32?th(e,t,n):td(e,t,n);class tT extends tv{constructor(e,t,n,r=!1,i=24){var o;if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,tp(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=new Uint32Array((o=this.state).buffer,o.byteOffset,Math.floor(o.byteLength/4))}clone(){return this._cloneInto()}keccak(){tg(this.state32),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,o=n[i],a=n[i+1],s=tR(o,a,1)^n[r],c=tF(o,a,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=tB[n],o=tR(t,i,r),a=tF(t,i,r),s=tk[n];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}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]^=tM[r],e[1]^=tN[r]}ty(n)}(this.state32,this.rounds),tg(this.state32),this.posOut=0,this.pos=0}update(e){tm(this),tb(e=tw(e));let{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){let o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,(128&t)!=0&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){tm(this,!1),tb(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return tp(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(!function(e,t){tb(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}(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,ty(this.state)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new tT(t,n,r,o,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=o,e.destroyed=this.destroyed,e}}let tG=function(e){let t=t=>e().update(tw(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}(()=>new tT(136,1,32));var tU=n(19586);function tL(e,t){if(tV(e)>t)throw new tY({givenSize:tV(e),maxSize:t})}let tj={zero:48,nine:57,A:65,F:70,a:97,f:102};function tD(e){return e>=tj.zero&&e<=tj.nine?e-tj.zero:e>=tj.A&&e<=tj.F?e-(tj.A-10):e>=tj.a&&e<=tj.f?e-(tj.a-10):void 0}function tz(e,t={}){let{dir:n="left"}=t,r=0;for(let t=0;t<e.length-1&&"0"===e["left"===n?t:e.length-t-1].toString();t++)r++;return"left"===n?e.slice(r):e.slice(0,e.length-r)}var tq=n(82543),tW=n(56535);let tQ=new TextDecoder,t$=new TextEncoder;function tH(e,t={}){let{size:n}=t,r=e;n&&(tq.Yf(e,n),r=tU.eh(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);let o=i.length/2,a=new Uint8Array(o);for(let e=0,t=0;e<o;e++){let n=tD(i.charCodeAt(t++)),r=tD(i.charCodeAt(t++));if(void 0===n||void 0===r)throw new ts.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);a[e]=n<<4|r}return a}function tV(e){return e.length}function tK(e,t={}){let{size:n}=t;void 0!==n&&tL(e,n);let r=tU.xv(e,t);return tU.He(r,t)}function tJ(e){return tz(e,{dir:"left"})}class tZ extends ts.G{constructor(e){super(`Bytes value \`${e}\` is not a valid boolean.`,{metaMessages:["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:"Bytes.InvalidBytesBooleanError"})}}class tY extends ts.G{constructor({givenSize:e,maxSize:t}
vendor: 4,138 bytes, line 1
1){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class tX extends ts.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:"Bytes.SliceOffsetOutOfBoundsError"})}}class t_ extends ts.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:"Bytes.SizeExceedsPaddingSizeError"})}}function t0(e,t={}){let{as:n="string"==typeof e?"Hex":"Bytes"}=t,r=tG(e instanceof Uint8Array?e:"string"==typeof e?tH(e):e instanceof Uint8Array?e:new Uint8Array(e));return"Bytes"===n?r:tU.xv(r)}class t1 extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let t6={checksum:new t1(8192)}.checksum,t5=/^0x[a-fA-F0-9]{40}$/;function t2(e,t={}){let{strict:n=!0}=t;if(!t5.test(e))throw new t4({address:e,cause:new t9});if(n){if(e.toLowerCase()===e)return;if(t8(e)!==e)throw new t4({address:e,cause:new t7})}}function t8(e){if(t6.has(e))return t6.get(e);t2(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=t0(function(e,t={}){let{size:n}=t,r=t$.encode(e);return"number"==typeof n?(tL(r,n),function(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new t_({size:e.length,targetSize:r,type:"Bytes"});let i=new Uint8Array(r);for(let t=0;t<r;t++){let o="right"===n;i[o?t:r-t-1]=e[o?t:e.length-t-1]}return i}(r,{dir:"right",size:n})):r}(t),{as:"Bytes"}),r=t.split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&r[e]&&(r[e]=r[e].toUpperCase()),(15&n[e>>1])>=8&&r[e+1]&&(r[e+1]=r[e+1].toUpperCase());let i=`0x${r.join("")}`;return t6.set(e,i),i}function t3(e,t={}){let{strict:n=!0}=t??{};try{return t2(e,{strict:n}),!0}catch{return!1}}class t4 extends ts.G{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class t9 extends ts.G{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class t7 extends ts.G{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function ne(e){let t=!0,n="",r=0,i="",o=!1;for(let a=0;a<e.length;a++){let s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t){if(0===r){if(" "===s&&["event","function","error",""].includes(i))i="";else if(i+=s,")"===s){o=!0;break}continue}if(" "===s){","!==e[a-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=s,n+=s}}if(!o)throw new ts.G("Unable to normalize signature.");return i}function nt(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=(0,to.cK)(e);else{let n=(0,ti.D)(e),r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!(0,tr.N0)(r)){t=(0,to.cK)(r,n);break}}}if(!t)throw new tn.a_({signature:e});return t}(e):e;return{...r,...n?{hash:ni(r)}:{}}}function nn(e,t,n){let r;let{args:i=[],prepare:o=!0}=n??{},a=tU.Gu(t,{strict:!1}),s=e.filter(e=>a?"function"===e.type||"error"===e.type?nr(e)===tU.tP(t,0,4):"event"===e.type&&ni(e)===t:"name"in e&&e.name===t);if(0===s.length)throw new na({name:t});if(1===s.length)return{...s[0],...o?{hash:ni(s[0])}:{}};for(let e of s)if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:ni(e)}:{}};continue}
vendor: 14,562 bytes, lines 1-3
1if(e.inputs&&0!==e.inputs.length&&e.inputs.length===i.length&&i.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return t3(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"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(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(r&&"inputs"in r&&r.inputs){let t=function e(t,n,r){for(let i in t){let o=t[i],a=n[i];if("tuple"===o.type&&"tuple"===a.type&&"components"in o&&"components"in a)return e(o.components,a.components,r[i]);let s=[o.type,a.type];if(s.includes("address")&&s.includes("bytes20")||(s.includes("address")&&s.includes("string")||s.includes("address")&&s.includes("bytes"))&&t3(r[i],{strict:!1}))return s}}(e.inputs,r.inputs,i);if(t)throw new no({abiItem:e,type:t[0]},{abiItem:r,type:t[1]})}r=e}}let c=(()=>{if(r)return r;let[e,...t]=s;return{...e,overloads:t}})();if(!c)throw new na({name:t});return{...c,...o?{hash:ni(c)}:{}}}function nr(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return nn(t,n)}return e[0]})();return tU.tP(ni(t),0,4)}function ni(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return nn(t,n)}return e[0]})();return"string"!=typeof t&&"hash"in t&&t.hash?t.hash:t0(tU.mL(function(...e){let t=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return nn(t,n)}return e[0]})();return ne("string"==typeof t?t:ta.t(t))}(t)))}class no extends ts.G{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${ne(ta.t(e.abiItem))}\`, and`,`\`${t.type}\` in \`${ne(ta.t(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class na extends ts.G{constructor({name:e,data:t,type:n="item"}){super(`ABI ${n}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}var ns=n(70945),nc=n(45841);let nu=/^(.*)\[([0-9]*)\]$/,nl=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,nd=/^(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)?$/,nf=2n**256n-1n;function nh(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=tU.dp(i)}let n=[],r=[],i=0;for(let o=0;o<e.length;o++){let{dynamic:a,encoded:s}=e[o];a?(n.push(tU.xS(t+i,{size:32})),r.push(s),i+=tU.dp(s)):n.push(s)}return tU.zo(...n,...r)}function np(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function nb(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(nb);let n=np(e.type);return!!(n&&nb({...e,type:n[1]}))}let nm={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new nw({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new ng({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new ny({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new ny({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class ny extends ts.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class ng extends ts.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class nw extends ts.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function nv(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new nk({expectedLength:e.length,givenLength:t.length});let i=nh(function({checksumAddress:e,parameters:t,values:n}){let r=[];for(let i=0;i<t.length;i++)r.push(function e({checksumAddress:t=!1,parameter:n,value:r}){let i=np(n.type);if(i){let[o,a]=i;return function(t,n){let{checksumAddress:r,length:i,parameter:o}=n,a=null===i;if(!Array.isArray(t))throw new nB(t);if(!a&&t.length!==i)throw new nI({expectedLength:i,givenLength:t.length,type:`${o.type}[${i}]`});let s=!1,c=[];for(let n=0;n<t.length;n++){let i=e({checksumAddress:r,parameter:o,value:t[n]});i.dynamic&&(s=!0),c.push(i)}if(a||s){let e=nh(c);if(a){let t=tU.xS(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?tU.zo(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:tU.zo(...c.map(({encoded:e})=>e))}}(r,{checksumAddress:t,length:o,parameter:{...n,type:a}})}if("tuple"===n.type)return function(t,n){let{checksumAddress:r,parameter:i}=n,o=!1,a=[];for(let n=0;n<i.components.length;n++){let s=i.components[n],c=Array.isArray(t)?n:s.name,u=e({checksumAddress:r,parameter:s,value:t[c]});a.push(u),u.dynamic&&(o=!0)}return{dynamic:o,encoded:o?nh(a):tU.zo(...a.map(({encoded:e})=>e))}}(r,{checksumAddress:t,parameter:n});if("address"===n.type)return function(e,t){let{checksum:n=!1}=t;return t2(e,{strict:n}),{dynamic:!1,encoded:tU.Q_(e.toLowerCase())}}(r,{checksum:t});if("bool"===n.type)return function(e){if("boolean"!=typeof e)throw new ts.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:tU.Q_(tU.O3(e))}}(r);if(n.type.startsWith("uint")||n.type.startsWith("int")){let e=n.type.startsWith("int"),[,,t="256"]=nd.exec(n.type)??[];return function(e,{signed:t,size:n}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new tU.J5({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:tU.xS(e,{size:32,signed:t})}}(r,{signed:e,size:Number(t)})}if(n.type.startsWith("bytes"))return function(e,{type:t}){let[,n]=t.split("bytes"),r=tU.dp(e);if(!n){let t=e;return r%32!=0&&(t=tU.eh(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:tU.zo(tU.Q_(tU.xS(r,{size:32})),t)}}if(r!==Number.parseInt(n,10))throw new nP({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:tU.eh(e)}}(r,{type:n.type});if("string"===n.type)return function(e){let t=tU.mL(e),n=Math.ceil(tU.dp(t)/32),r=[];for(let e=0;e<n;e++)r.push(tU.eh(tU.tP(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:tU.zo(tU.eh(tU.xS(tU.dp(t),{size:32})),...r)}}(r);throw new nS(n.type)}({checksumAddress:e,parameter:t[i],value:n[i]}));return r}({checksumAddress:r,parameters:e,values:t}));return 0===i.length?"0x":i}function nA(e,t){if(e.length!==t.length)throw new nk({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t[r];n.push(nA.encode(i,o))}return tU.zo(...n)}function nx(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?function(e){let t=[];if("string"==typeof e){let n=(0,to.Q4)(e),r=n.length;for(let e=0;e<r;e++)t.push((0,to.C$)(n[e],{modifiers:tr.LY}))}else{let n=(0,ti.D)(e),r=e.length;for(let i=0;i<r;i++){let r=e[i];if((0,tr.N0)(r))continue;let o=(0,to.Q4)(r),a=o.length;for(let e=0;e<a;e++)t.push((0,to.C$)(o[e],{modifiers:tr.LY,structs:n}))}}if(0===t.length)throw new ns.$r({params:e});return t}(e):e}(nA||(nA={})).encode=function e(t,n,r=!1){if("address"===t)return t2(n),tU.Q_(n.toLowerCase(),r?32:0);if("string"===t)return tU.mL(n);if("bytes"===t)return n;if("bool"===t)return tU.Q_(tU.O3(n),r?32:1);let i=t.match(nd);if(i){let[e,t,o="256"]=i,a=Number.parseInt(o,10)/8;return tU.xS(n,{size:r?32:a,signed:"int"===t})}let o=t.match(nl);if(o){let[e,t]=o;if(Number.parseInt(t,10)!==(n.length-2)/2)throw new nP({expectedSize:Number.parseInt(t,10),value:n});return tU.eh(n,r?32:0)}let a=t.match(nu);if(a&&Array.isArray(n)){let[t,r]=a,i=[];for(let t=0;t<n.length;t++)i.push(e(r,n[t],!0));return 0===i.length?"0x":tU.zo(...i)}throw new nS(t)};class nC extends ts.G{constructor({data:e,parameters:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${nc.P(t)})`,`Data:   ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class nE extends ts.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class nI extends ts.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class nP extends ts.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${tU.dp(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class nk extends ts.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch.
2Expected length (parameters): ${e}
3Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class nB extends ts.G{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class nS extends ts.G{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function nO(e,t={}){return nt(e,t)}function nM(e,t,n){let r=nn(e,t,n);if("function"!==r.type)throw new na({name:t,type:"function"});return r}let nN="0x0000000000000000000000000000000000000000";var nR=n(45434);async function nF(e,t){let{blockNumber:n,blockTag:r,calls:i,stateOverrides:a,traceAssetChanges:s,traceTransfers:c,validation:u}=t,l=t.account?(0,A.T)(t.account):void 0;if(s&&!l)throw new O.G("`account` is required when `traceAssetChanges` is true");let d=l?function(...e){let[t,n]=(()=>{if(Array.isArray(e[0])){let[t,n]=e;return[function(e){let t=e.find(e=>"constructor"===e.type);if(!t)throw new na({name:"constructor"});return t}(t),n]}return e})(),{bytecode:r,args:i}=n;return tU.zo(r,t.inputs?.length&&i?.length?nv(t.inputs,i):"0x")}(nt("constructor(bytes, bytes)"),{bytecode:nR.NO,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",function(...e){let[t,n=[]]=(()=>
vendor: 4,303 bytes, line 3
3{if(Array.isArray(e[0])){let[t,n,r]=e;return[nM(t,n,{args:r}),r]}let[t,n]=e;return[t,n]})(),{overloads:r}=t,i=r?nM([t,...r],t.name,{args:n}):t,o=nr(i),a=n.length>0?nv(i.inputs,n):void 0;return a?tU.zo(o,a):o}(nO("function getBalance(address)"),[l.address])]}):void 0,f=s?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:n}=await P(e,{account:l.address,...t,data:t.abi?(0,o.R)(t):t.data});return n.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],h=await tt(e,{blockNumber:n,blockTag:r,blocks:[...s?[{calls:[{data:d}],stateOverrides:a},{calls:f.map((e,t)=>({abi:[nO("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:e,from:nN,nonce:t})),stateOverrides:[{address:nN,nonce:0}]}]:[],{calls:[...i,{to:nN}].map(e=>({...e,from:l?.address})),stateOverrides:a},...s?[{calls:[{data:d}]},{calls:f.map((e,t)=>({abi:[nO("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:e,from:nN,nonce:t})),stateOverrides:[{address:nN,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[nO("function decimals() returns (uint256)")],functionName:"decimals",from:nN,nonce:t})),stateOverrides:[{address:nN,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[nO("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:nN,nonce:t})),stateOverrides:[{address:nN,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[nO("function symbol() returns (string)")],functionName:"symbol",from:nN,nonce:t})),stateOverrides:[{address:nN,nonce:0}]}]:[]],traceTransfers:c,validation:u}),p=s?h[2]:h[0],[b,m,,y,g,w,v,x]=s?h:[],{calls:C,...E}=p,I=C.slice(0,-1)??[],k=[...b?.calls??[],...m?.calls??[]].map(e=>"success"===e.status?(0,K.y_)(e.data):null),B=[...y?.calls??[],...g?.calls??[]].map(e=>"success"===e.status?(0,K.y_)(e.data):null),S=(w?.calls??[]).map(e=>"success"===e.status?e.result:null),M=(x?.calls??[]).map(e=>"success"===e.status?e.result:null),N=(v?.calls??[]).map(e=>"success"===e.status?e.result:null),R=[];for(let[e,t]of B.entries()){let n=k[e];if("bigint"!=typeof t||"bigint"!=typeof n)continue;let r=S[e-1],i=M[e-1],o=N[e-1],a=0===e?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:f[e-1],decimals:o||r?Number(r??1):void 0,symbol:i??void 0};R.some(e=>e.token.address===a.address)||R.push({token:a,value:{pre:n,post:t,diff:t-n}})}return{assetChanges:R,block:E,results:I}}async function nT(e,t){let{abi:n,address:r,args:a,functionName:s,dataSuffix:c="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,...u}=t,l=u.account?(0,A.T)(u.account):e.account,d=(0,o.R)({abi:n,args:a,functionName:s});try{let{data:o}=await (0,h.s)(e,v.R,"call")({batch:!1,data:`${d}${c?c.replace("0x",""):""}`,to:r,...u,account:l}),f=(0,i.k)({abi:n,args:a,functionName:s,data:o||"0x"}),p=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:f,request:{abi:p,address:r,args:a,dataSuffix:c,functionName:s,...u,account:l}}}catch(e){throw(0,Q.S)(e,{abi:n,address:r,args:a,docsPath:"/docs/contract/simulateContract",functionName:s,sender:l?.address})}}async function nG(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}let nU="0x6492649264926492649264926492649264926492649264926492649264926492";class nL extends ts.G{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function nj(e,t={}){let{recovered:n}=t;if(void 0===e.r||void 0===e.s||n&&void 0===e.yParity)throw new nW({signature:e});if(e.r<0n||e.r>nf)throw new nQ({value:e.r});if(e.s<0n||e.s>nf)throw new n$({value:e.s});if("number"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new nH({value:e.yParity})}function nD(e){if(130!==e.length&&132!==e.length)throw new nq({signature:e});let t=BigInt(tU.tP(e,0,32)),n=BigInt(tU.tP(e,32,64)),r=(()=>{let t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return nz(t)}catch{throw new nH({value:t})}})();return void 0===r?{r:t,s:n}:{r:t,s:n,yParity:r}}function nz(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return e%2==0?1:0;throw new nV({value:e})}class nq extends ts.G{constructor({signature:e}){super(`Value \`${e}
3\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${tU.dp(tU.Dp(e))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class nW extends ts.G{constructor({signature:e}){super(`Signature \`${tW.Pz(e)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class nQ extends ts.G{constructor({value:e}){super(`Value \`${e}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class n$ extends ts.G{constructor({value:e}){super(`Value \`${e}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class nH extends ts.G{constructor({value:e}){super(`Value \`${e}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class nV extends ts.G{constructor({value:e}){super(`Value \`${e}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}let nK=nx("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function nJ(e){if("string"==typeof e){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==tU.tP(e,-32))throw new nZ(e)}else nj(e.authorization)}class nZ extends ts.G{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}var nY=n(23010);async function nX({address:e,authorization:t,signature:n}){return(0,eU.E)((0,$.K)(e),await ee({authorization:t,signature:n}))}var n_=n(10846);async function n0(e,t){let{address:n,chain:r=e.chain,hash:i,erc6492VerifierAddress:o=t.universalSignatureVerifierAddress??r?.contracts?.erc6492Verifier?.address,multicallAddress:a=t.multicallAddress??r?.contracts?.multicall3?.address,mode:s="auto"}=t;if(r?.verifyHash)return await r.verifyHash(e,t);let u=(()=>{let e=t.signature;return(0,H.v)(e)?e:"object"==typeof e&&"r"in e&&"s"in e?function({r:e,s:t,to:n="hex",v:r,yParity:i}){let o=(()=>{if(0===i||1===i)return i;if(r&&(27n===r||28n===r||r>=35n))return r%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),a=`0x${new n_.secp256k1.Signature((0,K.y_)(e),(0,K.y_)(t)).toCompactHex()}${0===o?"1b":"1c"}`;return"hex"===n?a:(0,N.nr)(a)}(e):(0,c.ci)(e)})();try{if("eoa"===s)try{if((0,eU.E)((0,$.K)(n),await Y({hash:i,signature:u})))return!0}catch{}if(function(e){try{return nJ(e),!0}catch{return!1}}(u))return await n1(e,{...t,multicallAddress:a,signature:u});return await n6(e,{...t,verifierAddress:o,signature:u})}catch(e){if("eoa"!==s)try{if((0,eU.E)((0,$.K)(n),await Y({hash:i,signature:u})))return!0}catch{}if(e instanceof n2)return!1;throw e}}async function n1(e,t){let{address:n,blockNumber:i,blockTag:a,hash:s,multicallAddress:u}=t,{authorization:l,data:d,signature:f,to:b}=function(e){nJ(e);let t=tU.He(tU.tP(e,-64,-32)),n=tU.tP(e,-t-64,-64),r=tU.tP(e,0,-t-64),[i,o,a]=function(e,t,n={}){let{as:r="Array",checksumAddress:i=!1}=n,o="string"==typeof t?tH(t):t,a=function(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(nm);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}(o);if(0===tV(o)&&e.length>0)throw new nE;if(tV(o)&&32>tV(o))throw new nC({data:"string"==typeof t?t:tU.xv(t),parameters:e,size:tV(o)});let s=0,c="Array"===r?[]:{};for(let t=0;t<e.length;++t){let n=e[t];a.setPosition(s);let[o,u]=function e(t,n,r){let{checksumAddress:i,staticPosition:o}=r,a=np(n.type);if(a){let[r,s]=a;return function(t,n,r){let{checksumAddress:i,length:o,staticPosition:a}=r;if(!o){let r=a+tK(t.readBytes(32)),o=r+32;t.setPosition(r);let s=tK(t.readBytes(32)),c=nb(n),u=0,l=[];for(let r=0;r<s;++r){t.setPosition(o+(c?32*r:u));let[a,s]=e(t,n,{checksumAddress:i,staticPosition:o});u+=s,l.push(a)}return t.setPosition(a+32),[l,32]}if(nb(n)){let r=a+tK(t.readBytes(32)),s=[];for(let a=0;a<o;++a){t.setPosition(r+32*a);let[o]=e(t,n,{checksumAddress:i,staticPosition:r});s.push(o)}return t.setPosition(a+32),[s,32]}let s=0,c=[];for(let r=0;r<o;++r){let[r,o]=e(t,n,{checksumAddress:i,staticPosition:a+s});s+=o,c.push(r)}return[c,s]}(t,{...n,type:s},{checksumAddress:i,length:r,staticPosition:o})}if("tuple"===n.type)return function(t,n,r){let{checksumAddress:i,staticPosition:o}
3=r,a=0===n.components.length||n.components.some(({name:e})=>!e),s=a?[]:{},c=0;if(nb(n)){let r=o+tK(t.readBytes(32));for(let o=0;o<n.components.length;++o){let u=n.components[o];t.setPosition(r+c);let[l,d]=e(t,u,{checksumAddress:i,staticPosition:r});c+=d,s[a?o:u?.name]=l}return t.setPosition(o+32),[s,32]}for(let r=0;r<n.components.length;++r){let u=n.components[r],[l,d]=e(t,u,{checksumAddress:i,staticPosition:o});s[a?r:u?.name]=l,c+=d}return[s,c]}(t,n,{checksumAddress:i,staticPosition:o});if("address"===n.type)return function(e,t={}){let n;let{checksum:r=!1}=t,i=e.readBytes(32);return[(n=tU.xv(function(e,t,n,r={}){var i,o;let{strict:a}=r;i=0,o=0;let s=e.slice(-20,void 0);return a&&function(e,t,n){if("number"==typeof n&&tV(e)!==n-t)throw new tX({offset:n,position:"end",size:tV(e)})}(s,-20,void 0),s}(i,0)),r?t8(n):n),32]}(t,{checksum:i});if("bool"===n.type)return[function(e,t={}){let{size:n}=t,r=e;if(void 0!==n&&(tL(r,n),r=tJ(r)),r.length>1||r[0]>1)throw new tZ(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=tK(e.readBytes(32));e.setPosition(n+t);let r=tK(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[tU.xv(i),32]}return[tU.xv(e.readBytes(Number.parseInt(i,10),32)),32]}(t,n,{staticPosition:o});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?function(e,t={}){let{size:n}=t;void 0!==n&&tL(e,n);let r=tU.xv(e,t);return tU.Gh(r,t)}(i,{signed:n}):tK(i,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=tK(e.readBytes(32));e.setPosition(t+n);let r=tK(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=function(e,t={}){let{size:n}=t,r=e;return void 0!==n&&(tL(r,n),r=tz(r,{dir:"right"})),tQ.decode(r)}(tJ(e.readBytes(r,32)));return e.setPosition(t+32),[i,32]}(t,{staticPosition:o});throw new nS(n.type)}(a,n,{checksumAddress:i,staticPosition:0});s+=u,"Array"===r?c.push(o):c[n.name??t]=o}return c}(nK,n);return{authorization:function(e,t={}){return"string"==typeof e.chainId?function(e){let{address:t,chainId:n,nonce:r}=e,i=function(e){if(void 0!==e.r&&void 0!==e.s)return function(e){let t=(()=>"string"==typeof e?nD(e):e instanceof Uint8Array?nD(tU.xv(e)):"string"==typeof e.r?function(e){let t=(()=>{let t=e.v?Number(e.v):void 0,n=e.yParity?Number(e.yParity):void 0;if("number"==typeof t&&"number"!=typeof n&&(n=nz(t)),"number"!=typeof n)throw new nH({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}(e):e.v?{r:e.r,s:e.s,yParity:nz(e.v)}:{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}})();return nj(t),t}(e)}(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...i}}(e):{...e,...t.signature}}({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:r,...a&&"0x"!==a?{data:a,to:o}:{}}}(t.signature);if(await (0,eG.C)(e,{address:n,blockNumber:i,blockTag:a})===(0,X.SM)(["0xef0100",l.address]))return await n5(e,{address:n,blockNumber:i,blockTag:a,hash:s,signature:f});let m={address:l.address,chainId:Number(l.chainId),nonce:Number(l.nonce),r:(0,c.eC)(l.r,{size:32}),s:(0,c.eC)(l.s,{size:32}),yParity:l.yParity};if(!await nX({address:n,authorization:m}))throw new n2;let y=await (0,h.s)(e,p.L,"readContract")({...u?{address:u}:{code:nR.xd},authorizationList:[m],abi:r.F8,blockNumber:i,blockTag:"pending",functionName:"aggregate3",args:[[...d?[{allowFailure:!0,target:b??n,callData:d}]:[],{allowFailure:!0,target:n,callData:(0,o.R)({abi:r._A,functionName:"isValidSignature",args:[s,f]})}]]}),g=y[y.length-1]?.returnData;if(g?.startsWith("0x1626ba7e"))return!0;throw new n2}async function n6(e,t){let{address:n,factory:i,factoryData:a,hash:s,signature:c,verifierAddress:u,...l}=t,d=await (async()=>!i&&!a||function(e){try{return!function(e){if(tU.tP(e,-32)!==nU)throw new nL(e)}(e),!0}catch{return!1}}(c)?c:function(e){let{data:t,signature:n,to:r}=e;return tU.zo(nv(nx("address, bytes, bytes"),[r,t,n]),nU)}({data:a,signature:c,to:i}))(),f=u?{to:u,data:(0,o.R)({abi:r.MR,functionName:"isValidSig",args:[n,s,d]}),...l}:{data:(0,nY.w)({abi:r.MR,args:[n,s,d],bytecode:nR.de}),...l},{data:p}
3=await (0,h.s)(e,v.R,"call")(f).catch(e=>{if(e instanceof e7.cg)throw new n2;throw e});if((0,K.XA)(p??"0x0"))return!0;throw new n2}async function n5(e,t){let{address:n,blockNumber:i,blockTag:o,hash:a,signature:s}=t;if((await (0,h.s)(e,p.L,"readContract")({address:n,abi:r._A,args:[a,s],blockNumber:i,blockTag:o,functionName:"isValidSignature"}).catch(e=>{if(e instanceof e7.uq)throw new n2;throw e})).startsWith("0x1626ba7e"))return!0;throw new n2}class n2 extends Error{}var n8=n(15566);async function n3(e,{address:t,message:n,factory:r,factoryData:i,signature:o,...a}){let s=(0,n8.r)(n);return(0,h.s)(e,n0,"verifyHash")({address:t,factory:r,factoryData:i,hash:s,signature:o,...a})}var n4=n(86044);async function n9(e,t){let{address:n,factory:r,factoryData:i,signature:o,message:a,primaryType:s,types:c,domain:u,...l}=t,d=(0,n4.Jv)({message:a,primaryType:s,types:c,domain:u});return(0,h.s)(e,n0,"verifyHash")({address:n,factory:r,factoryData:i,hash:d,signature:o,...l})}var n7=n(12197),re=n(36478),rt=n(56921),rn=n(49287),rr=n(31853),ri=n(41495);function ro(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:i,poll:o,pollingInterval:a=e.pollingInterval}){let s;return(void 0!==o?o:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
3onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let o=(0,rr.P)(["watchBlockNumber",e.uid,t,n,a]);return(0,re.N7)(o,{onBlockNumber:r,onError:i},r=>(0,ri.$)(async()=>{try{let t=await (0,h.s)(e,eF,"getBlockNumber")({cacheTime:0});if(void 0!==s){if(t===s)return;if(t-s>1&&n)for(let e=s+1n;e<t;e++)r.onBlockNumber(e,s),s=e}(void 0===s||t>s)&&(r.onBlockNumber(t,s),s=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:a}))})():(()=>{let o=(0,rr.P)(["watchBlockNumber",e.uid,t,n]);return(0,re.N7)(o,{onBlockNumber:r,onError:i},t=>{let n=!0,r=()=>n=!1;return(async()=>{try{let i=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await i.subscribe({params:["newHeads"],onData(e){if(!n)return;let r=(0,K.y_)(e.result?.number);t.onBlockNumber(r,s),s=r},onError(e){t.onError?.(e)}});r=o,n||r()}catch(e){i?.(e)}})(),()=>r()})})()}async function ra(e,t){let n,r,i,o,a;let{checkReplacement:s=!0,confirmations:c=1,hash:u,onReplaced:l,retryCount:d=6,retryDelay:f=({count:e})=>200*~~(1<<e),timeout:p=18e4}=t,b=(0,rr.P)(["waitForTransactionReceipt",e.uid,u]),m=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,y=!1,{promise:g,resolve:w,reject:v}=(0,rt.n)(),A=p?setTimeout(()=>{a?.(),o?.(),v(new er.mc({hash:u}))},p):void 0;return o=(0,re.N7)(b,{onReplaced:l,resolve:w,reject:v},async t=>{if((i=await (0,h.s)(e,e3,"getTransactionReceipt")({hash:u}).catch(()=>void 0))&&c<=1){clearTimeout(A),t.resolve(i),o?.();return}a=(0,h.s)(e,ro,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:m,async onBlockNumber(l){let p=e=>{clearTimeout(A),a?.(),e(),o?.()},b=l;if(!y)try{if(i){if(c>1&&(!i.blockNumber||b-i.blockNumber+1n<c))return;p(()=>t.resolve(i));return}if(s&&!n&&(y=!0,await (0,rn.J)(async()=>{(n=await (0,h.s)(e,e5,"getTransaction")({hash:u})).blockNumber&&(b=n.blockNumber)},{delay:f,retryCount:d}),y=!1),i=await (0,h.s)(e,e3,"getTransactionReceipt")({hash:u}),c>1&&(!i.blockNumber||b-i.blockNumber+1n<c))return;p(()=>t.resolve(i))}catch(o){if(o instanceof er.Bh||o instanceof er.Yb){if(!n){y=!1;return}try{r=n,y=!0;let o=await (0,rn.J)(()=>(0,h.s)(e,eu.Q,"getBlock")({blockNumber:b,includeTransactions:!0}),{delay:f,retryCount:d,shouldRetry:({error:e})=>e instanceof n7.f});y=!1;let a=o.transactions.find(({from:e,nonce:t})=>e===r.from&&t===r.nonce);if(!a||(i=await (0,h.s)(e,e3,"getTransactionReceipt")({hash:a.hash}),c>1&&(!i.blockNumber||b-i.blockNumber+1n<c)))return;let s="replaced";a.to===r.to&&a.value===r.value&&a.input===r.input?s="repriced":a.from===a.to&&0n===a.value&&(s="cancelled"),p(()=>{t.onReplaced?.({reason:s,replacedTransaction:r,transaction:a,transactionReceipt:i}),t.resolve(i)})}catch(e){p(()=>t.reject(e))}}else p(()=>t.reject(o))}}})}),g}var rs=n(77014);let rc=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,ru=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;var rl=n(4012);async function rd(e,t){let{address:n,domain:r,message:i,nonce:o,scheme:a,signature:s,time:c=new Date,...u}=t,l=function(e){let{scheme:t,statement:n,...r}=e.match(rc)?.groups??{},{chainId:i,expirationTime:o,issuedAt:a,notBefore:s,requestId:c,...u}=e.match(ru)?.groups??{},l=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...i?{chainId:Number(i)}:{},...o?{expirationTime:new Date(o)}:{},...a?{issuedAt:new Date(a)}:{},...s?{notBefore:new Date(s)}:{},...c?{requestId:c}:{},...l?{resources:l}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}(i);if(!l.address||!function(e){let{address:t,domain:n,message:r,nonce:i,scheme:o,time:a=new Date}=e;if(n&&r.domain!==n||i&&r.nonce!==i||o&&r.scheme!==o||r.expirationTime&&a>=r.expirationTime||r.notBefore&&a<r.notBefore)return!1;try{if(!r.address||!(0,rl.U)(r.address,{strict:!1})||t&&!(0,eU.E)(r.address,t))return!1}catch{return!1}return!0}({address:n,domain:r,message:l,nonce:o,scheme:a,time:c}))return!1;let d=(0,n8.r)(i);return n0(e,{address:l.address,hash:d,signature:s,...u})}async function rf(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}async function rh(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:r}){let i=await e.request({method:"eth_sendRawTransactionSync",params:r?[t,r]:[t]},{retryCount:0}),o=(e.chain?.formatters?.transactionReceipt?.format||e8.fA)(i);if("reverted"===o.status&&n)throw new er.A3({receipt:o});return o}function rp(e){return{call:t=>(0,v.R)(e,t),createAccessList:t=>P(e,t),createBlockFilter:()=>B(e),createContractEventFilter:t=>z(e,t),createEventFilter:t=>q(e,t),createPendingTransactionFilter:()=>W(e),estimateContractGas:t=>eP(e,t),estimateGas:t=>eI(e,t),getBalance:t=>(0,eB.s)(e,t),getBlobBaseFee:()=>eS(e),getBlock:t=>(0,eu.Q)(e,t),getBlockNumber:t=>eF(e,t),getBlockTransactionCount:t=>eT(e,t),getBytecode:t=>(0,eG.C)(e,t),getChainId:()=>(0,ew.L)(e),getCode:t=>(0,eG.C)(e,t),getContractEvents:t=>e$(e,t),getDelegation:t=>eV(e,t),getEip712Domain:t=>eJ(e,t),getEnsAddress:t=>b(e,t),getEnsAvatar:t=>(0,m.r)(e,t),getEnsName:t=>(0,y.w)(e,t),getEnsResolver:t=>g(e,t),getEnsText:t=>(0,w.g)(e,t),getFeeHistory:t=>eY(e,t),estimateFeesPerGas:t=>(0,ec.X)(e,t),getFilterChanges:t=>eX(e,t),getFilterLogs:t=>e_(e,t),getGasPrice:()=>(0,e0.o)(e),getLogs:t=>eQ(e,t),getProof:t=>e1(e,t),estimateMaxPriorityFeePerGas:t=>(0,ek._)(e,t),fillTransaction:t=>ev(e,t),getStorageAt:t=>e6(e,t),getTransaction:t=>e5(e,t),getTransactionConfirmations:t=>e2(e,t),getTransactionCount:t=>(0,el.K)(e,t),getTransactionReceipt:t=>e3(e,t),multicall:t=>(0,e4.A)(e,t),prepareTransactionRequest:t=>eE(e,t),readContract:t=>(0,p.L)(e,t),sendRawTransaction:t=>rf(e,t),sendRawTransactionSync:t=>rh(e,t),simulate:t=>tt(e,t),simulateBlocks:t=>tt(e,t),simulateCalls:t=>nF(e,t),simulateContract:t=>nT(e,t),verifyHash:t=>n0(e,t),verifyMessage:t=>n3(e,t),verifySiweMessage:t=>rd(e,t),verifyTypedData:t=>n9(e,t),uninstallFilter:t=>nG(e,t),waitForTransactionReceipt:t=>ra(e,t),watchBlocks:t=>(function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:i,onError:o,includeTransactions:a,poll:s,pollingInterval:c=e.pollingInterval}){let u,l,d,f;let p=void 0!==s?s:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
3onfig.type&&"ipc"!==e.transport.transports[0].config.type),b=a??!1;return p?(()=>{let a=(0,rr.P)(["watchBlocks",e.uid,t,n,r,b,c]);return(0,re.N7)(a,{onBlock:i,onError:o},i=>(0,ri.$)(async()=>{try{let r=await (0,h.s)(e,eu.Q,"getBlock")({blockTag:t,includeTransactions:b});if(null!==r.number&&u?.number!=null){if(r.number===u.number)return;if(r.number-u.number>1&&n)for(let t=u?.number+1n;t<r.number;t++){let n=await (0,h.s)(e,eu.Q,"getBlock")({blockNumber:t,includeTransactions:b});i.onBlock(n,u),u=n}}(u?.number==null||"pending"===t&&r?.number==null||null!==r.number&&r.number>u.number)&&(i.onBlock(r,u),u=r)}catch(e){i.onError?.(e)}},{emitOnBegin:r,interval:c}))})():(l=!0,d=!0,f=()=>l=!1,(async()=>{try{r&&(0,h.s)(e,eu.Q,"getBlock")({blockTag:t,includeTransactions:b}).then(e=>{l&&d&&(i(e,void 0),d=!1)}).catch(o);let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await n.subscribe({params:["newHeads"],async onData(t){if(!l)return;let n=await (0,h.s)(e,eu.Q,"getBlock")({blockNumber:t.result?.number,includeTransactions:b}).catch(()=>{});l&&(i(n,u),d=!1,u=n)},onError(e){o?.(e)}});f=a,l||f()}catch(e){o?.(e)}})(),()=>f())})(e,t),watchBlockNumber:t=>ro(e,t),watchContractEvent:t=>(function(e,t){let{abi:n,address:r,args:i,batch:o=!0,eventName:a,fromBlock:s,onError:c,onLogs:u,poll:l,pollingInterval:d=e.pollingInterval,strict:f}=t;return(void 0!==l?l:"bigint"==typeof s||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
3onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let t=f??!1,l=(0,rr.P)(["watchContractEvent",r,i,o,e.uid,a,d,t,s]);return(0,re.N7)(l,{onLogs:u,onError:c},c=>{let u,l;void 0!==s&&(u=s-1n);let f=!1,p=(0,ri.$)(async()=>{if(!f){try{l=await (0,h.s)(e,z,"createContractEventFilter")({abi:n,address:r,args:i,eventName:a,strict:t,fromBlock:s})}catch{}f=!0;return}try{let s;if(l)s=await (0,h.s)(e,eX,"getFilterChanges")({filter:l});else{let o=await (0,h.s)(e,eF,"getBlockNumber")({});s=u&&u<o?await (0,h.s)(e,e$,"getContractEvents")({abi:n,address:r,args:i,eventName:a,fromBlock:u+1n,toBlock:o,strict:t}):[],u=o}if(0===s.length)return;if(o)c.onLogs(s);else for(let e of s)c.onLogs([e])}catch(e){l&&e instanceof rs.yR&&(f=!1),c.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{l&&await (0,h.s)(e,nG,"uninstallFilter")({filter:l}),p()}})})():(()=>{let t=(0,rr.P)(["watchContractEvent",r,i,o,e.uid,a,d,f??!1]),s=!0,l=()=>s=!1;return(0,re.N7)(t,{onLogs:u,onError:c},t=>((async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),c=a?j({abi:n,eventName:a,args:i}):[],{unsubscribe:u}=await o.subscribe({params:["logs",{address:r,topics:c}],onData(e){if(!s)return;let r=e.result;try{let{eventName:e,args:i}=eq({abi:n,data:r.data,topics:r.topics,strict:f}),o=(0,eL.U)(r,{args:i,eventName:e});t.onLogs([o])}catch(o){let e,n;if(o instanceof S.SM||o instanceof S.Gy){if(f)return;e=o.abiItem.name,n=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,eL.U)(r,{args:n?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});l=u,s||l()}catch(e){c?.(e)}})(),()=>l()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:i,events:o,fromBlock:a,onError:s,onLogs:c,poll:u,pollingInterval:l=e.pollingInterval,strict:d}){let f,p;let b=void 0!==u?u:"bigint"==typeof a||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
3onfig.type&&"ipc"!==e.transport.transports[0].config.type),m=d??!1;return b?(()=>{let u=(0,rr.P)(["watchEvent",t,n,r,e.uid,i,l,a]);return(0,re.N7)(u,{onLogs:c,onError:s},s=>{let c,u;void 0!==a&&(c=a-1n);let d=!1,f=(0,ri.$)(async()=>{if(!d){try{u=await (0,h.s)(e,q,"createEventFilter")({address:t,args:n,event:i,events:o,strict:m,fromBlock:a})}catch{}d=!0;return}try{let a;if(u)a=await (0,h.s)(e,eX,"getFilterChanges")({filter:u});else{let r=await (0,h.s)(e,eF,"getBlockNumber")({});a=c&&c!==r?await (0,h.s)(e,eQ,"getLogs")({address:t,args:n,event:i,events:o,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===a.length)return;if(r)s.onLogs(a);else for(let e of a)s.onLogs([e])}catch(e){u&&e instanceof rs.yR&&(d=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:l});return async()=>{u&&await (0,h.s)(e,nG,"uninstallFilter")({filter:u}),f()}})})():(f=!0,p=()=>f=!1,(async()=>{try{let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),a=o??(i?[i]:void 0),u=[];a&&(u=[a.flatMap(e=>j({abi:[e],eventName:e.name,args:n}))],i&&(u=u[0]));let{unsubscribe:l}=await r.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!f)return;let t=e.result;try{let{eventName:e,args:n}=eq({abi:a??[],data:t.data,topics:t.topics,strict:m}),r=(0,eL.U)(t,{args:n,eventName:e});c([r])}catch(i){let e,n;if(i instanceof S.SM||i instanceof S.Gy){if(d)return;e=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,eL.U)(t,{args:n?[]:{},eventName:e});c([r])}},onError(e){s?.(e)}});p=l,f||p()}catch(e){s?.(e)}})(),()=>p())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:o=e.pollingInterval}){let a,s;return(void 0!==i?i:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(()=>{let i=(0,rr.P)(["watchPendingTransactions",e.uid,t,o]);return(0,re.N7)(i,{onTransactions:r,onError:n},n=>{let r;let i=(0,ri.$)(async()=>{try{if(!r)try{r=await (0,h.s)(e,W,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let o=await (0,h.s)(e,eX,"getFilterChanges")({filter:r});if(0===o.length)return;if(t)n.onTransactions(o);else for(let e of o)n.onTransactions([e])}catch(e){n.onError?.(e)}},{emitOnBegin:!0,interval:o});return async()=>{r&&await (0,h.s)(e,nG,"uninstallFilter")({filter:r}),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;r([t])},onError(e){n?.(e)}});s=t,a||s()}catch(e){n?.(e)}})(),()=>s())})(e,t)}}},24250:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var r=n(81544),i=n(17057),o=n(77014);let a=new(n(82061)).k(8192);var s=n(49287),c=n(31853),u=n(78217);function l({key:e,methods:t,name:n,request:l,retryCount:d=3,retryDelay:f=150,timeout:h,type:p},b){return{config:{key:e,methods:t,name:n,request:l,retryCount:d,retryDelay:f,timeout:h,type:p},request:function(e,t={}){return async(n,u={})=>{let{dedupe:l=!1,methods:d,retryDelay:f=150,retryCount:h=3,uid:p}={...t,...u},{method:b}=n;if(d?.exclude?.includes(b)||d?.include&&!d.include.includes(b))throw new o.gS(Error("method not supported"),{method:b});let m=l?function(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);n=Math.imul(n^i,2654435761),r=Math.imul(r^i,1597334677)}return n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>16,3266489909),(4294967296*(2097151&(r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>16,3266489909)))+(n>>>0)).toString(36)}(`${p}.${(0,c.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(a.get(n))return a.get(n);let r=e().finally(()=>a.delete(n));return a.set(n,r),r}(()=>(0,s.J)(async()=>{try{return await e(n)}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,{method:n.method});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,{method:n.method});case o.Pv.code:throw new o.Pv(e);
3case 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);case o.vl.code:throw new o.vl(e);case o.Uu.code:throw new o.Uu(e);case o.Nt.code:throw new o.Nt(e);case o.EJ.code:throw new o.EJ(e);case o.fl.code:throw new o.fl(e);case o.NO.code:throw new o.NO(e);case o.r0.code:throw new o.r0(e);case 5e3:throw new o.ab(e);case o.UF.code:throw new o.UF(e);default:if(e instanceof r.G)throw e;throw new o.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*f},retryCount:h,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===o.Pv.code||e.code===o.XS.code||429===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}),{enabled:l,id:m})}}(l,{methods:t,retryCount:d,retryDelay:f,uid:(0,u.h)()}),value:b}}},79516:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var r=n(17057),i=n(81544);class o extends i.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var a=n(43226),s=n(39504),c=n(31853);let u={current:0,take(){return this.current++},reset(){this.current=0}};var l=n(24250);function d(e,t={}){let{batch:n,fetchFn:i,fetchOptions:d,key:f="http",methods:h,name:p="HTTP JSON-RPC",onFetchRequest:b,onFetchResponse:m,retryDelay:y,raw:g}=t;return({chain:w,retryCount:v,timeout:A})=>{let{batchSize:x=1e3,wait:C=0}="object"==typeof n?n:{},E=t.retryCount??v,I=A??t.timeout??1e4,P=e||w?.rpcUrls.default.http[0];if(!P)throw new o;let k=function(e,t={}){let{url:n,headers:i}=function(e){try{let t=new URL(e),n=(()=>{if(t.username){let e=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(e)}`}}}})();return{url:t.toString(),...n}}catch{return{url:e}}}(e);return{async request(e){let{body:o,fetchFn:a=t.fetchFn??fetch,onRequest:l=t.onRequest,onResponse:d=t.onResponse,timeout:f=t.timeout??1e4}=e,h={...t.fetchOptions??{},...e.fetchOptions??{}},{headers:p,method:b,signal:m}=h;try{let e;let t=await (0,s.F)(async({signal:e})=>{let t={...h,body:Array.isArray(o)?(0,c.P)(o.map(e=>({jsonrpc:"2.0",id:e.id??u.take(),...e}))):(0,c.P)({jsonrpc:"2.0",id:o.id??u.take(),...o}),headers:{...i,"Content-Type":"application/json",...p},method:b||"POST",signal:m||(f>0?e:null)},r=new Request(n,t),s=await l?.(r,t)??{...t,url:n};return await a(s.url??n,s)},{errorInstance:new r.W5({body:o,url:n}),timeout:f,signal:!0});if(d&&await d(t),t.headers.get("Content-Type")?.startsWith("application/json"))e=await t.json();else{e=await t.text();try{e=JSON.parse(e||"{}")}catch(n){if(t.ok)throw n;e={error:e}}}if(!t.ok){if("number"==typeof e.error?.code&&"string"==typeof e.error?.message)return e;throw new r.Gg({body:o,details:(0,c.P)(e.error)||t.statusText,headers:t.headers,status:t.status,url:n})}return e}catch(e){if(e instanceof r.Gg||e instanceof r.W5)throw e;throw new r.Gg({body:o,cause:e,url:n})}}}}(P,{fetchFn:i,fetchOptions:d,onRequest:b,onResponse:m,timeout:I});return(0,l.q)({key:f,methods:h,name:p,async request({method:e,params:t}){let i={method:e,params:t},{schedule:o}=(0,a.S)({id:P,wait:C,shouldSplitBatch:e=>e.length>x,fn:e=>k.request({body:e}),sort:(e,t)=>e.id-t.id}),s=async e=>n?o(e):[await k.request({body:e})],[{error:c,result:u}]=await s(i);if(g)return{error:c,result:u};if(c)throw new r.bs({body:i,error:c,url:P});return u},retryCount:E,retryDelay:y,timeout:I,type:"http"},{fetchOptions:d,url:P})}}},98158:function(e,t,n){"use strict";n.d(t,{F8:function(){return r},MR:function(){return d},Wo:function(){return f},X$:function(){return u},Yi:function(){return i},_A:function(){return l},du:function(){return s},k3:function(){return a},nZ:function(){return c}});let r=[{inputs:[{components:[{name:"target",type:"address"}
vendor: 5,653 bytes, line 3
3,{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"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],i=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],o=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],a=[...o,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],s=[...o,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],c=[{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"}]}],l=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],d=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],f=[{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:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}]},45434:function(e,t,n){"use strict";n.d(t,{NO:function(){return r},de:function(){return o},pG:function(){return i},xd:function(){return a}});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
3602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
3603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",a="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
3150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033"},43188:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});let r=1},75018:function(e,t,n){"use strict";n.d(t,{zL:function(){return r}});let r=2n**256n-1n},55246:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return i},hZ:function(){return o}});
3let r={1:"An `assert` condition failed.",17:"Arithmetic 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"}},98173:function(e,t,n){"use strict";n.d(t,{Bd:function(){return o},Zn:function(){return i},ez:function(){return r}});let r={gwei:9,wei:18},i={ether:-9,wei:9},o={ether:-18,gwei:-9}},65531:function(e,t,n){"use strict";n.d(t,{CI:function(){return k},FM:function(){return m},Gy:function(){return I},KY:function(){return C},M4:function(){return d},MS:function(){return p},MX:function(){return v},Mi:function(){return O},S4:function(){return x},SM:function(){return E},Zh:function(){return h},cO:function(){return s},dh:function(){return P},eF:function(){return A},fM:function(){return a},fs:function(){return f},gr:function(){return l},hn:function(){return B},lC:function(){return y},mv:function(){return g},wM:function(){return S},wb:function(){return u},xB:function(){return c},xL:function(){return w},yP:function(){return b}});var r=n(7275),i=n(20556),o=n(81544);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,name:"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,name:"AbiConstructorParamsNotFoundError"})}}class c extends o.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)`],name:"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 u extends o.G{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class l extends o.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}.
4Expected length: ${e}
5Given length: ${t}`,{name:"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}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends o.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
6Expected length (params): ${e}
7Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class h extends o.G{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).
8Cannot encode error result without knowing what the parameter types are.
9Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class p extends o.G{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI.
10Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class b extends o.G{constructor(e,{docsPath:t,cause:n}){super(`Encoded error signature "${e}" not found on ABI.
11Make sure you are using the correct ABI and that the error exists on it.
12You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:n}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class m extends o.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class y extends o.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
13Make sure you are using the correct ABI and that the event exists on it.
14You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class g extends o.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
15Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class w extends o.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
16Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class v extends o.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
17Cannot decode function result without knowing what the parameter types are.
18Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class A extends o.G{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI.
19Make sure you are using the correct ABI and that the function exists on it.
20You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class x extends o.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class C extends o.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class E extends o.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)`],name:"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 I extends o.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})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class P extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
21Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class k extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
22Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class B extends o.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class S extends o.G{constructor(e){super(`"${e}" is not a valid definition type.
23Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class O extends o.G{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},65704:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(81544);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 Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}},10052:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(81544);class i extends r.G{constructor({address:e}){super(`Address "${e}
23" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},81544:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});let r="2.48.8",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${r}`};class o extends Error{constructor(e,t={}){let n=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=i.getDocsUrl?.({...t,docsPath:a});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...n?[`Details: ${n}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),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,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=r}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,n):n?null:t}(this,e)}}},48073:function(e,t,n){"use strict";n.d(t,{RX:function(){return a},cJ:function(){return c},m7:function(){return o},xd:function(){return s}});var r=n(43188),i=n(81544);class o extends i.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class a extends i.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class s extends i.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class c extends i.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${r.l}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},12197:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(81544);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.`,{name:"BlockNotFoundError"})}}},35586:function(e,t,n){"use strict";n.d(t,{hJ:function(){return a},mm:function(){return i},pZ:function(){return o}});var r=n(81544);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.`]],name:"ChainDoesNotSupportContract"})}}class o extends r.G{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class a extends r.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
23" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},20010:function(e,t,n){"use strict";n.d(t,{cg:function(){return y},uq:function(){return g},Lu:function(){return w},Dk:function(){return v},Mo:function(){return A},VQ:function(){return x}});var r=n(19775),i=n(55246),o=n(33591),a=n(7275),s=n(31853);function c({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,s.P)(t[n]):t[n]}`).join(", ")})`}var u=n(64043),l=n(71282),d=n(29707),f=n(65531),h=n(81544),p=n(29625),b=n(63228),m=n(97564);class y extends h.G{constructor(e,{account:t,docsPath:n,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:h,value:m,stateOverride:y}){let g=t?(0,r.T)(t):void 0,w=(0,b.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!==c&&`${(0,d.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:f});y&&(w+=`
24${(0,p.Bj)(y)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",w].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class g extends h.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:o,sender:s}){let l=(0,u.mE)({abi:t,args:n,name:o}),d=l?c({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=l?(0,a.t)(l,{includeName:!0}):void 0,h=(0,b.xr)({address:r&&(0,m.C)(r),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," "]:[],h&&"Contract Call:",h].filter(Boolean),name:"ContractFunctionExecutionError"}),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}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=o,this.sender=s}}class w extends h.G{constructor({abi:e,data:t,functionName:n,message:r,cause:s}){let u,l,d,h,p;if(t&&"0x"!==t)try{let{abiItem:n,errorName:r,args:u}=l=(0,o.p)({abi:e,data:t,cause:s});if("Error"===r)h=u[0];else if("Panic"===r){let[e]=u;h=i.$[e]}else{let e=n?(0,a.t)(n,{includeName:!0}):void 0,t=n&&u?c({abiItem:n,args:u,includeFunctionName:!1,includeName:!1}):void 0;d=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else r&&(h=r);u instanceof f.yP&&(p=u.signature,d=[`Unable to decode signature "${p}" 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://4byte.sourcify.dev/?q=${p}.`]),super(h&&"execution reverted"!==h||p?[`The contract function "${n}" reverted with the following ${p?"signature":"reason"}:`,h||p].join("\n"):`The contract function "${n}" reverted.`,{cause:u??s,metaMessages:d,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{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=l,this.raw=t,this.reason=h,this.signature=p}}class v extends h.G{constructor({functionName:e,cause:t}){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."],name:"ContractFunctionZeroDataError",cause:t})}}class A extends h.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class x extends h.G{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},33630:function(e,t,n){"use strict";n.d(t,{KD:function(){return a},T_:function(){return i},lQ:function(){return o}});var r=n(81544);class i extends r.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class o extends r.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends r.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},47116:function(e,t,n){"use strict";n.d(t,{$s:function(){return o},W_:function(){return a},mV:function(){return i}});var r=n(81544);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}).`,{name:"SliceOffsetOutOfBoundsError"})}}class o 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}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:"InvalidBytesLengthError"})}}},63152:function(e,t,n){"use strict";
vendor: 5,036 bytes, lines 24-25
24n.d(t,{Cd:function(){return a},J5:function(){return i},M6:function(){return s},yr:function(){return o}});var r=n(81544);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})`}`,{name:"IntegerOutOfRangeError"})}}class o extends r.G{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.`,{name:"InvalidBytesBooleanError"})}}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).`,{name:"InvalidHexBooleanError"})}}class s extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},4496:function(e,t,n){"use strict";n.d(t,{Fz:function(){return o},e5:function(){return a},ld:function(){return s}});var r=n(29707),i=n(81544);class o extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class a extends i.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends i.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},78125:function(e,t,n){"use strict";n.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 c},cj:function(){return m},cs:function(){return b},dR:function(){return h},pZ:function(){return p},se:function(){return l},vU:function(){return u}});var r=n(29707),i=n(81544);class o 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,name:"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|gas required exceeds allowance/});class a 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,name:"FeeCapTooHighError"})}}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,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}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 c 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,name:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u 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.
25Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(u,"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,name:"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."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});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,name:"IntrinsicGasTooHighError"})}}
vendor: 5,754 bytes, line 25
25Object.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,name:"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,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b 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,name:"TipAboveFeeCapError"})}}Object.defineProperty(b,"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 m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},17057:function(e,t,n){"use strict";n.d(t,{Gg:function(){return a},W5:function(){return c},bs:function(){return s}});var r=n(31853),i=n(81544),o=n(97564);class a extends i.G{constructor({body:e,cause:t,details:n,headers:i,status:a,url:s}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,o.G)(s)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"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=i,this.status=a,this.url=s}}class s extends i.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.G)(n)}`,`Request body: ${(0,r.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{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,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=n}}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.G)(t)}`,`Request body: ${(0,r.P)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}},77014:function(e,t,n){"use strict";n.d(t,{B:function(){return c},EJ:function(){return B},GD:function(){return g},I0:function(){return C},KB:function(){return b},LX:function(){return u},NO:function(){return O},Nt:function(){return k},Og:function(){return h},PE:function(){return v},Pv:function(){return y},Ts:function(){return A},UF:function(){return N},Uu:function(){return P},XS:function(){return d},ab:function(){return w},fl:function(){return S},gS:function(){return m},ir:function(){return R},nY:function(){return l},pT:function(){return p},r0:function(){return M},s7:function(){return s},u5:function(){return x},vl:function(){return I},x3:function(){return E},yR:function(){return f}});var r=n(81544),i=n(17057);class o extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,name:o,shortMessage:a}){super(a,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:o||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||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,"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,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends o{constructor(e){super(e,{code:c.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class u extends o{constructor(e,{method:t}={}){super(e,{code:u.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends o{constructor(e){super(e,{code:l.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends o{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends o{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});
25class h extends o{constructor(e){super(e,{code:h.code,name:"ResourceNotFoundRpcError",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,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends o{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends o{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends o{constructor(e){super(e,{code:y.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends o{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class w extends a{constructor(e){super(e,{code:w.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends a{constructor(e){super(e,{code:v.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class A extends a{constructor(e,{method:t}={}){super(e,{code:A.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends a{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class C extends a{constructor(e){super(e,{code:C.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class E extends a{constructor(e){super(e,{code:E.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class I extends a{constructor(e){super(e,{code:I.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class P extends a{constructor(e){super(e,{code:P.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class k extends a{constructor(e){super(e,{code:k.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class B extends a{constructor(e){super(e,{code:B.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class S extends a{constructor(e){super(e,{code:S.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class O extends a{constructor(e){super(e,{code:O.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
25);class M extends a{constructor(e){super(e,{code:M.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class N extends a{constructor(e){super(e,{code:N.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(N,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class R extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},29625:function(e,t,n){"use strict";n.d(t,{Bj:function(){return s},Nc:function(){return i},Z8:function(){return o}});var r=n(81544);class i extends r.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class o extends r.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce((e,{slot:t,value:n})=>`${e}        ${t}: ${n}
26`,"")}function s(e){return e.reduce((e,{address:t,...n})=>{let r=`${e}    ${t}:
27`;return n.nonce&&(r+=`      nonce: ${n.nonce}
28`),n.balance&&(r+=`      balance: ${n.balance}
29`),n.code&&(r+=`      code: ${n.code}
30`),n.state&&(r+="      state:\n"+a(n.state)),n.stateDiff&&(r+="      stateDiff:\n"+a(n.stateDiff)),r},"  State Override:\n").slice(0,-1)}},63228:function(e,t,n){"use strict";n.d(t,{A3:function(){return h},Bh:function(){return d},JC:function(){return u},Yb:function(){return f},j3:function(){return c},mc:function(){return p},mk:function(){return l},vl:function(){return s},xr:function(){return a}});var r=n(71282),i=n(29707),o=n(81544);function a(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 s extends o.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"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","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class u 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.`,{name:"InvalidStorageKeySizeError"})}}class l extends o.G{constructor(e,{account:t,docsPath:n,chain:o,data:s,gas:c,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,r.d)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==u&&`${(0,i.o)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class d extends o.G{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let o="Transaction";n&&void 0!==i&&(o=`Transaction at block time "${n}" 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}"`),r&&(o=`Transaction with hash "${r}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class f 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.`,{name:"TransactionReceiptNotFoundError"})}}class h extends o.G{constructor({receipt:e}){super(`Transaction with hash "${e.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class p extends o.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},97564:function(e,t,n){"use strict";n.d(t,{C:function(){return r},G:function(){return i}});let r=e=>e,i=e=>{try{let t=new URL(e);if(!t.username&&!t.password)return e;return t.username="",t.password="",t.toString()}catch{return e}}},2742:function(e,t,n){"use strict";n.d(t,{r:function(){return b}});var r=n(65531),i=n(31669),o=n(46033),a=n(20556),s=n(69921),c=n(36826),u=n(63152),l=n(72932),d=n(59455);function f(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.ly)(n,t)}var h=n(44659),p=n(30056);function b(e,t){let n="string"==typeof t?(0,h.nr)(t):t,b=(0,o.q)(n);if(0===(0,a.d)(n)&&e.length>0)throw new r.wb;if((0,a.d)(t)&&32>(0,a.d)(t))throw new r.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,a.d)(t)});let y=0,g=[];for(let t=0;t<e.length;++t){let n=e[t];b.setPosition(y);let[o,a]=function e(t,n,{staticPosition:o}){let a=(0,p.S)(n.type);if(a){let[r,i]=a;return function(t,n,{length:r,staticPosition:i}){if(!r){let r=i+f(t.readBytes(32)),o=r+32;t.setPosition(r);let a=f(t.readBytes(32)),s=m(n),c=0,u=[];for(let r=0;r<a;++r){t.setPosition(o+(s?32*r:c));let[i,a]=e(t,n,{staticPosition:o});c+=a,u.push(i)}return t.setPosition(i+32),[u,32]}if(m(n)){let o=i+f(t.readBytes(32)),a=[];for(let i=0;i<r;++i){t.setPosition(o+32*i);let[r]=e(t,n,{staticPosition:o});a.push(r)}return t.setPosition(i+32),[a,32]}let o=0,a=[];for(let s=0;s<r;++s){let[r,s]=e(t,n,{staticPosition:i+o});o+=s,a.push(r)}return[a,o]}(t,{...n,type:i},{length:r,staticPosition:o})}if("tuple"===n.type)return function(t,n,{staticPosition:r}
vendor: 9,268 bytes, line 30
30){let i=0===n.components.length||n.components.some(({name:e})=>!e),o=i?[]:{},a=0;if(m(n)){let s=r+f(t.readBytes(32));for(let r=0;r<n.components.length;++r){let c=n.components[r];t.setPosition(s+a);let[u,l]=e(t,c,{staticPosition:s});a+=l,o[i?r:c?.name]=u}return t.setPosition(r+32),[o,32]}for(let s=0;s<n.components.length;++s){let c=n.components[s],[u,l]=e(t,c,{staticPosition:r});o[i?s:c?.name]=u,a+=l}return[o,a]}(t,n,{staticPosition:o});if("address"===n.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,s.T4)(t,-20))),32]}(t);if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,c.f)(n)),n.length>1||n[0]>1)throw new u.yr(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=f(e.readBytes(32));e.setPosition(n+t);let r=f(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i,10),32)),32]}(t,n,{staticPosition:o});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?function(e,t={}){void 0!==t.size&&(0,l.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,l.y_)(n,t)}(i,{signed:n}):f(i,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=f(e.readBytes(32));e.setPosition(t+n);let r=f(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=e.readBytes(r,32),o=function(e,t={}){let n=e;return void 0!==t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,c.f)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,c.f)(i));return e.setPosition(t+32),[o,32]}(t,{staticPosition:o});throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,n,{staticPosition:0});y+=a,g.push(o)}return g}function m(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(m);let n=(0,p.S)(e.type);return!!(n&&m({...e,type:n[1]}))}},33591:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var r=n(55246),i=n(65531),o=n(69921),a=n(10464),s=n(2742),c=n(7275);function u(e){let{abi:t,data:n,cause:u}=e,l=(0,o.tP)(n,0,4);if("0x"===l)throw new i.wb({cause:u});let d=[...t||[],r.Up,r.hZ].find(e=>"error"===e.type&&l===(0,a.C)((0,c.t)(e)));if(!d)throw new i.yP(l,{docsPath:"/docs/contract/decodeErrorResult",cause:u});return{abiItem:d,args:"inputs"in d&&d.inputs&&d.inputs.length>0?(0,s.r)(d.inputs,(0,o.tP)(n,4)):void 0,errorName:d.name}}},87721:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(65531),i=n(69921),o=n(10464),a=n(2742),s=n(7275);function c(e){let{abi:t,data:n}=e,c=(0,i.tP)(n,0,4),u=t.find(e=>"function"===e.type&&c===(0,o.C)((0,s.t)(e)));if(!u)throw new r.eF(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,a.r)(u.inputs,(0,i.tP)(n,4)):void 0}}},65436:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(65531),i=n(2742),o=n(64043);let a="/docs/contract/decodeFunctionResult";function s(e){let{abi:t,args:n,functionName:s,data:c}=e,u=t[0];if(s){let e=(0,o.mE)({abi:t,args:n,name:s});if(!e)throw new r.xL(s,{docsPath:a});u=e}if("function"!==u.type)throw new r.xL(void 0,{docsPath:a});if(!u.outputs)throw new r.MX(u.name,{docsPath:a});let l=(0,i.r)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},30056:function(e,t,n){"use strict";n.d(t,{E:function(){return p},S:function(){return m}});var r=n(65531),i=n(10052),o=n(81544),a=n(63152),s=n(4012),c=n(89256),u=n(8796),l=n(20556),d=n(69921),f=n(59455),h=n(23251);function p(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=b(function({params:e,values:t}){let n=[];for(let p=0;p<e.length;p++)n.push(function e({param:t,value:n}){let p=m(t.type);if(p){let[i,o]=p;return function(t,{length:n,param:i}){let o=null===n;if(!Array.isArray(t))throw new r.hn(t);if(!o&&t.length!==n)throw new r.gr({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let a=!1,s=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(a=!0),s.push(r)}if(o||a){let e=b(s);if(o){let t=(0,f.eC)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,c.zo)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.zo)(s.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let o=0;o<n.components.length;o++){let a=n.components[o],s=Array.isArray(t)?o:a.name,c=e({param:a,value:t[s]});i.push(c),c.dynamic&&(r=!0)}return{dynamic:r,encoded:r?b(i):(0,c.zo)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,s.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,u.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new o.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,u.gc)((0,f.C4)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=h.lh.exec(t.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new a.J5({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.eC)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),i=(0,l.d)(e);if(!n){let t=e;return i%32!=0&&(t=(0,u.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.zo)([(0,u.gc)((0,f.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(n,10))throw new r.M4({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,u.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,f.$G)(e),n=Math.ceil((0,l.d)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,u.gc)((0,d.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,c.zo)([(0,u.gc)((0,f.eC)((0,l.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[p],value:t[p]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function b(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,l.d)(i)}let n=[],r=[],i=0;for(let o=0;o<e.length;o++){let{dynamic:a,encoded:s}=e[o];a?(n.push((0,f.eC)(t+i,{size:32})),r.push(s),i+=(0,l.d)(s)):n.push(s)}return(0,c.zo)([...n,...r])}function m(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},23010:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r=n(65531),i=n(89256),o=n(30056);let a="/docs/contract/encodeDeployData";function s(e){let{abi:t,args:n,bytecode:s}=e;if(!n||0===n.length)return s;let c=t.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new r.fM({docsPath:a});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new r.cO({docsPath:a});let u=(0,o.E)(c.inputs,n);return(0,i.SM)([s,u])}},17283:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var r=n(89256),i=n(30056),o=n(65531),a=n(10464),s=n(7275),c=n(64043);let u="/docs/contract/encodeFunctionData";function l(e){let{args:t}=e,{abi:n,functionName:l}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:n,functionName:r}=e,i=t[0];if(r){let e=(0,c.mE)({abi:t,args:n,name:r});if(!e)throw new o.xL(r,{docsPath:u});i=e}if("function"!==i.type)throw new o.xL(void 0,{docsPath:u});return{abi:[i],functionName:(0,a.C)((0,s.t)(i))}}(e),d=n[0],f="inputs"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,r.SM)([l,f??"0x"])}},7275:function(e,t,n){"use strict";n.d(t,{h:function(){return o},t:function(){return i}});var r=n(65531);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}(${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?", ":","):""}},64043:function(e,t,n){"use strict";n.d(t,{mE:function(){return c}});var r=n(65531),i=n(93610),o=n(4012),a=n(45392),s=n(10464);function c(e){let t;let{abi:n,args:c=[],name:u}=e,l=(0,i.v)(u,{strict:!1}),d=n.filter(e=>l?"function"===e.type?(0,s.C)(e)===u:"event"===e.type&&(0,a.n)(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return(0,o.U)(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"components"in n)return Object.values(n.components).every((n,i)=>
vendor: 8,533 bytes, line 30
30"object"===r&&e(Object.values(t)[i],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(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,r){for(let i in t){let a=t[i],s=n[i];if("tuple"===a.type&&"tuple"===s.type&&"components"in a&&"components"in s)return e(a.components,s.components,r[i]);let c=[a.type,s.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")||c.includes("address")&&c.includes("bytes"))&&(0,o.U)(r[i],{strict:!1}))return c}}(e.inputs,t.inputs,c);if(n)throw new r.S4({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}return t||d[0]}}},31669:function(e,t,n){"use strict";n.d(t,{K:function(){return l},x:function(){return u}});var r=n(10052),i=n(44659),o=n(34763),a=n(82061),s=n(4012);let c=new a.k(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,o.w)((0,i.qX)(n),"bytes"),a=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&r[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let s=`0x${a.join("")}`;return c.set(`${e}.${t}`,s),s}function l(e,t){if(!(0,s.U)(e,{strict:!1}))throw new r.b({address:e});return u(e,t)}},4012:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var r=n(82061),i=n(31669);let o=/^0x[a-fA-F0-9]{40}$/,a=new r.k(8192);function s(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(a.has(r))return a.get(r);let s=!!o.test(e)&&(e.toLowerCase()===e||!n||(0,i.x)(e)===e);return a.set(r,s),s}},93637:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(10052),i=n(4012);function o(e,t){if(!(0,i.U)(e,{strict:!1}))throw new r.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new r.b({address:t});return e.toLowerCase()===t.toLowerCase()}},63563:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(44659),i=n(59455);function o(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,a=[];for(let e of o)a.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===n?a:a.map(e=>(0,i.ci)(e))}},67496:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(44659),i=n(59455);function o(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),o="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.nr)(e)):e.blobs,a="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,r.nr)(e)):e.commitments,s=[];for(let e=0;e<o.length;e++){let n=o[e],r=a[e];s.push(Uint8Array.from(t.computeBlobKzgProof(n,r)))}return"bytes"===n?s:s.map(e=>(0,i.ci)(e))}},89952:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(59455);let i=n(10058).JQ;var o=n(93610),a=n(44659);function s(e){let{commitments:t,version:n}=e,s=e.to??("string"==typeof t[0]?"hex":"bytes"),c=[];for(let e of t)c.push(function(e){let{commitment:t,version:n=1}=e,s=e.to??("string"==typeof t?"hex":"bytes"),c=function(e,t){let n=i((0,o.v)(e,{strict:!1})?(0,a.O0)(e):e);return"bytes"===(t||"hex")?n:(0,r.NC)(n)}(t,"bytes");return c.set([n],0),"bytes"===s?c:(0,r.ci)(c)}({commitment:e,to:s,version:n}));return c}},10932:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(63563),i=n(67496),o=n(48073),a=n(46033),s=n(20556),c=n(44659),u=n(59455);function l(e){let{data:t,kzg:n,to:l}=e,d=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?(0,c.nr)(e.data):e.data,r=(0,s.d)(n);if(!r)throw new o.RX;if(r>761855)throw new o.m7({maxSize:761855,size:r});let i=[],l=!0,d=0;for(;l;){let e=(0,a.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let r=n.slice(d,d+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),l=!1;break}t++,d+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,u.ci)(e.bytes))}({data:t,to:l}),f=e.commitments??(0,r.P)({blobs:d,kzg:n,to:l}),h=e.proofs??(0,i.y)({blobs:d,commitments:f,kzg:n,to:l}),p=[];for(let e=0;e<d.length;e++)p.push({blob:d[e],commitment:f[e],proof:h[e]});return p}},90328:function(e,t,n){"use strict";function r(e){let t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return n=>{let r="function"==typeof n?n(t):n,i={...t,...r};return Object.assign(i,{extend:e(i)})}}(t)})}n.d(t,{a:function(){return r}})},93627:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(35586);function i({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}},46033:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(33630);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function o(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},89256: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)=>
30e+t.replace("0x",""),"")}`}n.d(t,{SM:function(){return i},zo:function(){return r}})},93610: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}})},8796:function(e,t,n){"use strict";n.d(t,{gc:function(){return o},vk:function(){return i}});var r=n(47116);function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?o(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.$s({size:e.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r<n;r++){let o="right"===t;i[o?r:n-r-1]=e[o?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function o(e,{dir:t,size:n=32}={}){if(null===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new r.$s({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},20556:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(93610);function i(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},69921:function(e,t,n){"use strict";n.d(t,{T4:function(){return u},p5:function(){return l},tP:function(){return a}});var r=n(47116),i=n(93610),o=n(20556);function a(e,t,n,{strict:r}={}){return(0,i.v)(e,{strict:!1})?l(e,t,n,{strict:r}):u(e,t,n,{strict:r})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,o.d)(e)-1)throw new r.mV({offset:t,position:"start",size:(0,o.d)(e)})}function c(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,o.d)(e)!==n-t)throw new r.mV({offset:n,position:"end",size:(0,o.d)(e)})}function u(e,t,n,{strict:r}={}){s(e,t);let i=e.slice(t,n);return r&&c(i,t,n),i}function l(e,t,n,{strict:r}={}){s(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&c(i,t,n),i}},36826: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;e<n.length-1&&"0"===n["left"===t?e:n.length-e-1].toString();e++)r++;return(n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}n.d(t,{f:function(){return r}})},72932:function(e,t,n){"use strict";n.d(t,{XA:function(){return u},Yf:function(){return s},ly:function(){return l},rR:function(){return d},y_:function(){return c}});var r=n(63152),i=n(20556),o=n(36826),a=n(44659);function s(e,{size:t}){if((0,i.d)(e)>t)throw new r.M6({givenSize:(0,i.d)(e),maxSize:t})}function c(e,t={}){let{signed:n}=t;t.size&&s(e,{size:t.size});let r=BigInt(e);if(!n)return r;let i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function u(e,t={}){let n=e;if(t.size&&(s(n,{size:t.size}),n=(0,o.f)(n)),"0x00"===(0,o.f)(n))return!1;if("0x01"===(0,o.f)(n))return!0;throw new r.Cd(n)}function l(e,t={}){let n=c(e,t),i=Number(n);if(!Number.isSafeInteger(i))throw new r.J5({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return i}function d(e,t={}){let n=(0,a.nr)(e);return t.size&&(s(n,{size:t.size}),n=(0,o.f)(n,{dir:"right"})),new TextDecoder().decode(n)}},44659:function(e,t,n){"use strict";n.d(t,{O0:function(){return u},nr:function(){return f},qX:function(){return h}});var r=n(81544),i=n(93610),o=n(8796),a=n(72932),s=n(59455);let c=new TextEncoder;function u(e,t={}){return"number"==typeof e||"bigint"==typeof e?f((0,s.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,a.Yf)(n,{size:t.size}),(0,o.vk)(n,{size:t.size})):n}(e,t):(0,i.v)(e)?f(e,t):h(e,t)}let l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let n=e;t.size&&((0,a.Yf)(n,{size:t.size}),n=(0,o.vk)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,c=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let n=d(i.charCodeAt(t++)),o=d(i.charCodeAt(t++));if(void 0===n||void 0===o)throw new r.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);c[e]=16*n+o}return c}function h(e,t={}){let n=c.encode(e);return"number"==typeof t.size?((0,a.Yf)(n,{size:t.size}),(0,o.vk)(n,{dir:"right",size:t.size})):n}},59455:function(e,t,n){"use strict";n.d(t,{$G:function(){return f},C4:function(){return c},NC:function(){return s},ci:function(){return u},eC:function(){return l}});var r=n(63152),i=n(8796),o=n(72932);let a=Array.from({length:256},(e,t)=>t.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?c(e,t):u(e,t)}function c(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Yf)(n,{size:t.size}),(0,i.vk)(n,{size:t.size})):n}function u(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=a[e[t]];let r=`0x${n}`;return"number"==typeof t.size?((0,o.Yf)(r,{size:t.size}),(0,i.vk)(r,{dir:"right",size:t.size})):r}function l(e,t={}){let n;let{signed:o,size:a}=t,s=BigInt(e);
30a?n=o?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof n&&o?-n-1n:0;if(n&&s>n||s<c){let t="bigint"==typeof e?"n":"";throw new r.J5({max:n?`${n}${t}`:void 0,min:`${c}${t}`,signed:o,size:a,value:`${e}${t}`})}let u=`0x${(o&&s<0?(1n<<BigInt(8*a))+BigInt(s):s).toString(16)}`;return a?(0,i.vk)(u,{size:a}):u}let d=new TextEncoder;function f(e,t={}){return u(d.encode(e),t)}},70044:function(e,t,n){"use strict";n.d(t,{LV:function(){return s}});var r=n(81544),i=n(46033),o=n(44659),a=n(59455);function s(e,t="hex"){let n=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),n=c(t);return{length:t<=55?1+t:1+n+t,encode(r){for(let{encode:i}of(t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t)),e))i(r)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,o.nr)(e):e,n=c(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),r=(0,i.q)(new Uint8Array(n.length));return(n.encode(r),"hex"===t)?(0,a.ci)(r.bytes):r.bytes}function c(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new r.G("Length is too large.")}},65358:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(93610);function i(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,r.v)(t)?t:null}},83348:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(81544),i=n(20010);function o(e){if(!(e instanceof r.G))return!1;let t=e.walk(e=>e instanceof i.Lu);return t instanceof i.Lu&&(t.data?.errorName==="HttpError"||t.data?.errorName==="ResolverError"||t.data?.errorName==="ResolverNotContract"||t.data?.errorName==="ResolverNotFound"||t.data?.errorName==="ReverseAddressMismatch"||t.data?.errorName==="UnsupportedResolverProfile")}},7143:function(e,t,n){"use strict";n.d(t,{w:function(){return m},M:function(){return b}});var r=n(98158),i=n(55246),o=n(87721),a=n(65531),s=n(89256),c=n(10464),u=n(30056),l=n(7275),d=n(64043);let f="/docs/contract/encodeErrorResult";function h(e){let{abi:t,errorName:n,args:r}=e,i=t[0];if(n){let e=(0,d.mE)({abi:t,args:r,name:n});if(!e)throw new a.MS(n,{docsPath:f});i=e}if("error"!==i.type)throw new a.MS(void 0,{docsPath:f});let o=(0,l.t)(i),h=(0,c.C)(o),p="0x";if(r&&r.length>0){if(!i.inputs)throw new a.Zh(i.name,{docsPath:f});p=(0,u.E)(i.inputs,r)}return(0,s.SM)([h,p])}let p="/docs/contract/encodeFunctionResult",b="x-batch-gateway:true";async function m(e){let{data:t,ccipRequest:n}=e,{args:[s]}=(0,o.p)({abi:r.Yi,data:t}),c=[],l=[];return await Promise.all(s.map(async(e,t)=>{try{l[t]=e.urls.includes(b)?await m({data:e.data,ccipRequest:n}):await n(e),c[t]=!1}catch(e){c[t]=!0,l[t]="HttpRequestError"===e.name&&e.status?h({abi:r.Yi,errorName:"HttpError",args:[e.status,e.shortMessage]}):h({abi:[i.Up],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}})),function(e){let{abi:t,functionName:n,result:r}=e,i=t[0];if(n){let e=(0,d.mE)({abi:t,name:n});if(!e)throw new a.xL(n,{docsPath:p});i=e}if("function"!==i.type)throw new a.xL(void 0,{docsPath:p});if(!i.outputs)throw new a.MX(i.name,{docsPath:p});let o=(()=>{if(0===i.outputs.length)return[];if(1===i.outputs.length)return[r];if(Array.isArray(r))return r;throw new a.hn(r)})();return(0,u.E)(i.outputs,o)}({abi:r.Yi,functionName:"query",result:[c,l]})}},21721:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(89256),i=n(44659),o=n(59455),a=n(34763),s=n(65358);function c(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.ci)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let o=(0,s.i)(n[e]),c=o?(0,i.O0)(o):(0,a.w)((0,i.qX)(n[e]),"bytes");t=(0,a.w)((0,r.zo)([t,c]),"bytes")}return(0,o.ci)(t)}},89997:function(e,t,n){"use strict";let r,i,o,a,s,c,u,l,d,f,h,p,b,m,y;n.d(t,{F:function(){return $}});let g=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function w(e){var t;let n;return t=function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,o=[0,1];for(let e=1;e<r;e++)o.push(i+=n());let a=n(),s=t;t+=a;let c=0,u=0;function l(){return 0==c&&(u=u<<8|e[t++],c=8),u>>--c&1}let d=2147483648-1,f=0;for(let e=0;e<31;e++)f=f<<1|l();let h=[],p=0,b=2147483648;for(;;){let e=Math.floor(((f-p+1)*i-1)/b),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<o[r]?n=r:t=r}if(0==t)break;h.push(t);let a=p+Math.floor(b*o[t]/i),s=p+Math.floor(b*o[t+1]/i)-1;for(;((a^s)&1073741824)==0;)f=f<<1&d|l(),a=a<<1&d,s=s<<1&d|1;for(;a&~s&536870912;)f=1073741824&f|f<<1&d>
30>>1|l(),a=a<<1^1073741824,s=(1073741824^s)<<1|1073741825;p=a,b=1+s-a}let m=r-4;return h.map(t=>{switch(t-m){case 3:return m+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return m+256+(e[s++]<<8|e[s++]);case 1:return m+e[s++];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,o=0,a=0,s=0;i<n;i++)s=s<<6|t[e.charCodeAt(i)],(a+=6)>=8&&(r[o++]=s>>(a-=8));return r}(e)),n=0,()=>t[n++]}function v(e,t=0){let n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let e=0;e<i;e++)n.push(t+e);t+=i+1}return n}function A(e){return C(()=>{let t=v(e);if(t.length)return t})}function x(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(function(e,t){let n=1+t(),r=t(),i=C(t);return E(i.length,1+e,t).flatMap((e,t)=>{let[o,...a]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*r;return[o+t*n,a.map(e=>e+i)]})})}(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(E(1+e(),1+n,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function C(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function E(e,t,n){let r=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let n=Array(e);for(let i=0,o=0;i<e;i++){var r;n[i]=o+=1&(r=t())?~r>>1:r>>1}return n})(e,n).forEach((e,t)=>r[t].push(e));return r}function I(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function P(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join("")}function k(e,t){let n=e.length,r=n-t.length;for(let i=0;0==r&&i<n;i++)r=e[i]-t[i];return r}function B(e){return e>>24&255}function S(e){return 16777215&e}function O(e){return e>=44032&&e<55204}function M(e){r||function(){let e=w("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");for(let[t,n]of(r=new Map(A(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),i=new Set(v(e)),o=new Map,a=new Map,x(e))){if(!i.has(t)&&2==n.length){let[e,r]=n,i=a.get(e);i||(i=new Map,a.set(e,i)),i.set(r,t)}o.set(t,n.reverse())}}();let t=[],n=[],s=!1;function c(e){let n=r.get(e);n&&(s=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(O(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,i=e%28;c(4352+t),c(4449+n),i>0&&c(4519+i)}else{let e=o.get(r);e?n.push(...e):c(r)}if(!n.length)break;r=n.pop()}if(s&&t.length>1){let e=B(t[0]);for(let n=1;n<t.length;n++){let r=B(t[n]);if(0==r||e<=r){e=r;continue}let i=n-1;for(;;){let n=t[i+1];if(t[i+1]=t[i],t[i]=n,!i||(e=B(t[--i]))<=r)break}e=B(t[n])}}return t}function N(e){return function(e){let t=[],n=[],r=-1,i=0;for(let o of e){let e=B(o),s=S(o);if(-1==r)0==e?r=s:t.push(s);else if(i>0&&i>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),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(O(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let n=a.get(e);return n&&(n=n.get(t))?n:-1}}(r,s);o>=0?r=o:0==i&&0==e?(t.push(r),r=s):(n.push(s),i=e)}}return r>=0&&t.push(r,...n),t}(M(e))}let R=e=>Array.from(e);function F(e,t){return e.P.has(t)||e.Q.has(t)}class T extends Array{get is_emoji(){return!0}}function G(){let e,t;if(s)return;let n=w("
vendor: 20,100 bytes, line 30
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
30"),r=()=>v(n),i=()=>new Set(r()),o=(e,t)=>t.forEach(t=>e.add(t));s=new Map(x(n)),c=i(),u=r(),l=new Set(r().map(e=>u[e])),u=new Set(u),d=i(),i();let a=A(n),g=n(),E=()=>{let e=new Set;return r().forEach(t=>o(e,a[t])),o(e,r()),e};f=C(e=>{let t=C(n).map(e=>e+96);if(t.length){let r=e>=g;return t[0]-=32,t=P(t),r&&(t=`Restricted[${t}]`),{N:t,P:E(),Q:E(),M:!n(),R:r}}}),h=i(),p=new Map;let I=r().concat(R(h)).sort((e,t)=>e-t);for(let{V:e,M:t}of(I.forEach((e,t)=>{let r=n(),i=I[t]=r?I[t-r]:{V:[],M:new Map};i.V.push(e),h.has(e)||p.set(e,i)}),new Set(p.values()))){let n=[];for(let t of e){let e=f.filter(e=>F(e,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),o(r.G,e)}let r=n.flatMap(e=>R(e.G));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)}}b=new Set;let B=new Set,O=e=>b.has(e)?B.add(e):b.add(e);for(let e of f){for(let t of e.P)O(t);for(let t of e.Q)O(t)}for(let e of b)p.has(e)||B.has(e)||p.set(e,1);for(let r of(o(b,M(b).map(S)),m=(e=[],t=v(n),function t({S:n,B:r},i,o){if(!(4&n)||o!==i[i.length-1])for(let a of(2&n&&(o=i[i.length-1]),1&n&&e.push(i),r))for(let e of a.Q)t(a,[...i,e],o)}(function e(r){return{S:n(),B:C(()=>{let r=v(n).map(e=>t[e]);if(r.length)return e(r)}),Q:r}}([]),[]),e).map(e=>T.from(e)).sort(k),y=new Map,m)){let e=[y];for(let t of r){let n=e.map(e=>{let n=e.get(t);return n||(n=new Map,e.set(t,n)),n});65039===t?e.push(...n):e=n}for(let t of e)t.V=r}}function U(e){return(D(e)?"":`${L(j([e]))} `)+I(e)}function L(e){return`"${e}"\u200E`}function j(e,t=1/0,n=I){var r;let i=[];r=e[0],G(),u.has(r)&&i.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let o=0,a=e.length;for(let t=0;t<a;t++){let r=e[t];D(r)&&(i.push(P(e.slice(o,t))),i.push(n(r)),o=t+1)}return i.push(P(e.slice(o,a))),i.join("")}function D(e){return G(),d.has(e)}function z(e){return Error(`disallowed character: ${U(e)}`)}function q(e,t){let n=U(t),r=f.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),Error(`illegal mixture: ${e.N} + ${n}`)}function W(e){return Error(`illegal placement: ${e}`)}function Q(e){return e.filter(e=>65039!=e)}function $(e){var t;return(t=function(e,t,n){if(!e)return[];G();let r=0;return e.split(".").map(e=>{let i=function(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}(e),o={input:i,offset:r};r+=i.length+1;try{let e,r=o.tokens=function(e,t,n){let r=[],i=[];for(e=e.slice().reverse();e.length;){let o=function(e,t){let n,r=y,i=e.length;for(;i&&(r=r.get(e[--i]));){let{V:t}=r;t&&(n=t,e.length=i)}return n}(e);if(o)i.length&&(r.push(t(i)),i=[]),r.push(n(o));else{let t=e.pop();if(b.has(t))i.push(t);else{let e=s.get(t);if(e)i.push(...e);else if(!c.has(t))throw z(t)}}}return i.length&&r.push(t(i)),r}(i,t,n),a=r.length;if(!a)throw Error("empty label");let d=o.output=r.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(d),!(o.emoji=a>1||r[0].is_emoji)&&d.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${P(e.slice(0,4))}"`)}(d),e="ASCII";else{let t=r.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(u.has(d[0]))throw W("leading combining mark");for(let e=1;e<a;e++){let t=r[e];
30if(!t.is_emoji&&u.has(t[0]))throw W(`emoji + combining mark: "${P(r[e-1])} + ${j([t[0]])}"`)}!function(e){let t=e[0],n=g.get(t);if(n)throw W(`leading ${n}`);let r=e.length,i=-1;for(let o=1;o<r;o++){t=e[o];let r=g.get(t);if(r){if(i==o)throw W(`${n} + ${r}`);i=o+1,n=r}}if(i==r)throw W(`trailing ${n}`)}(d);let n=R(new Set(t)),[i]=function(e){let t=f;for(let n of e){let e=t.filter(e=>F(e,n));if(!e.length){if(f.some(e=>F(e,n)))throw q(t[0],n);throw z(n)}if(t=e,1==e.length)break}return t}(n);(function(e,t){for(let n of t)if(!F(e,n))throw q(e,n);if(e.M){let e=M(t).map(S);for(let t=1,n=e.length;t<n;t++)if(l.has(e[t])){let r=t+1;for(let i;r<n&&l.has(i=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==i)throw Error(`duplicate non-spacing marks: ${U(i)}`);if(r-t>4)throw Error(`excessive non-spacing marks: ${L(j(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(i,t),function(e,t){let n;let r=[];for(let e of t){let t=p.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(n=n?n.filter(e=>r.has(e)):R(r)).length)return}else r.push(e)}if(n){for(let t of n)if(r.every(e=>F(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(i,n),e=i.N}else e="Emoji"}o.type=e}catch(e){o.error=e}return o})}(e,N,Q)).map(({input:e,error:n,output:r})=>{if(n){let r=n.message;throw Error(1==t.length?r:`Invalid label ${L(j(e,63))}: ${r}`)}return P(r)}).join(".")}},98707:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(44659),i=n(59455),o=n(34763),a=n(65358);function s(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,r.qX)(t).byteLength+2),s=0,c=t.split(".");for(let e=0;e<c.length;e++){let t=(0,r.qX)(c[e]);if(t.byteLength>255){var u;t=(0,r.qX)((u=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.i)(e)||(0,o.w)((0,r.qX)(e)):(0,i.ci)(t)}(c[e]),`[${u.slice(2)}]`))}n[s]=t.length,n.set(t,s+1),s+=t.length+1}return n.byteLength!==s+1?n.slice(0,s+1):n}},14015:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(20010),i=n(78125),o=n(18856);function a(e,{docsPath:t,...n}){let a=(()=>{let t=(0,o.k)(e,n);return t instanceof i.cj?e:t})();return new r.cg(a,{docsPath:t,...n})}},34180:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var r=n(65531),i=n(81544),o=n(20010),a=n(17057),s=n(77014);function c(e,{abi:t,address:n,args:c,docsPath:u,functionName:l,sender:d}){let f=e instanceof o.VQ?e:e instanceof i.G?e.walk(e=>"data"in e)||e.walk():{},{code:h,data:p,details:b,message:m,shortMessage:y}=f,g=e instanceof r.wb?new o.Dk({functionName:l,cause:e}):[3,s.XS.code].includes(h)&&(p||b||m||y)||h===s.yR.code&&"execution reverted"===b&&p?new o.Lu({abi:t,data:"object"==typeof p?p.data:p,functionName:l,message:f instanceof a.bs?b:y??m,cause:e}):e;return new o.uq(g,{abi:t,args:c,contractAddress:n,docsPath:u,functionName:l,sender:d})}},18856:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(81544),i=n(78125);function o(e,t){let n=(e.details||"").toLowerCase(),o=e instanceof r.G?e.walk(e=>e?.code===i.M_.code):e;return o instanceof r.G?new i.M_({cause:e,message:o.details}):i.M_.nodeMessage.test(n)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(n)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(n)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(n)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(n)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(n)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(n)?new i.C_({cause:e}):i.WF.nodeMessage.test(n)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(n)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(n)?new i.pZ({cause:e}):i.cs.nodeMessage.test(n)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},59069:function(e,t,n){"use strict";n.d(t,{G:function(){return a},Z:function(){return o}});var r=n(94870),i=n(27481);function o(e,t){let n=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,i.Tr)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLim
30it?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:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let a=(0,r.$)("block",o)},70878:function(e,t,n){"use strict";function r(e,{format:t}){if(!t)return{};let n={};return!function t(r){for(let i of Object.keys(r))i in e&&(n[i]=e[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&t(r[i])}(t(e||{})),n}n.d(t,{K:function(){return r}})},94870:function(e,t,n){"use strict";function r(e,t){return({exclude:n,format:r})=>({exclude:n,format:(e,i)=>{let o=t(e,i);if(n)for(let e of n)delete o[e];return{...o,...r(e,i)}},type:e})}n.d(t,{$:function(){return r}})},55668: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,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,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}})},27481:function(e,t,n){"use strict";n.d(t,{Tr:function(){return a},c8:function(){return o},y_:function(){return s}});var r=n(72932),i=n(94870);let o={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function a(e,t){let n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...null!=e.blockTimestamp&&{blockTimestamp:BigInt(e.blockTimestamp)},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,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):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?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 e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}let s=(0,i.$)("transaction",a)},13550:function(e,t,n){"use strict";n.d(t,{dI:function(){return u},ew:function(){return s},fA:function(){return c}});var r=n(72932),i=n(94870),o=n(55668),a=n(27481);let s={"0x0":"reverted","0x1":"success"};function c(e,t){let n={...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,r.ly)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.c8[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}let u=(0,i.$)("transactionReceipt",c)},92614:function(e,t,n){"use strict";n.d(t,{tG:function(){return o}});var r=n(59455);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function o(e,t){let n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,r.eC)(BigInt(e.r)):e.r,s:e.s?(0,r.eC)(BigInt(e.s)):e.s,chainId:(0,r.eC)(e.chainId),nonce:(0,r.eC)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.eC)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.eC)(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>(0,r.ci)(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=(0,r.eC)(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=(0,r.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=(0,r.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=(0,r.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=(0,r.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=(0,r.eC)(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=i[e.type]),void 0!==e.value&&(n.value=(0,r.eC)(e.value)),n}},82645:function(e,t,n){"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let i=e[n];return"function"==typeof i?i:n=>t(e,n)}n.d(t,{s:function(){return r}})},34763:function(e,t,n){"use strict";n.d(t,{w:function(){return E}});var r=n(42802),i=n(61714);let o=BigInt(0),a=BigInt(1),s=BigInt(2),c=BigInt(7),u=BigInt(256),l=BigInt(113),d=[],f=[],h=[];for(let e=0,t=a,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],d.push(2*(5*r+n)),f.push((e+1)*(e+2)/2%64);let i=o;for(let e=0;e<7;e++)(t=(t<<a^(t>>c)*l)%u)&s&&(i^=a<<(a<<BigInt(e))-a);h.push(i)}let p=(0,r.Vl)(h,!0),b=p[0],m=p[1],y=(e,t,n)=>n>
3032?(0,r.SD)(e,t,n):(0,r.EP)(e,t,n),g=(e,t,n)=>n>32?(0,r.mk)(e,t,n):(0,r.gm)(e,t,n);class w extends i.kb{constructor(e,t,n,r=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=o,(0,i.k8)(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.Jq)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.Ux)(this.state32),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,o=n[i],a=n[i+1],s=y(o,a,1)^n[r],c=g(o,a,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=f[n],o=y(t,i,r),a=g(t,i,r),s=d[n];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}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]^=b[r],e[1]^=m[r]}(0,i.ru)(n)}(this.state32,this.rounds),(0,i.Ux)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.$h)(this),e=(0,i.O0)(e),(0,i.gk)(e);let{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){let o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,(128&t)!=0&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,i.$h)(this,!1),(0,i.gk)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.k8)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.eB)(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,(0,i.ru)(this.state)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new w(t,n,r,o,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=o,e.destroyed=this.destroyed,e}}let v=(0,i.V1)(()=>new w(136,1,32));var A=n(93610),x=n(44659),C=n(59455);function E(e,t){let n=v((0,A.v)(e,{strict:!1})?(0,x.O0)(e):e);return"bytes"===(t||"hex")?n:(0,C.NC)(n)}},45392:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});let r=n(40176).r},10464:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(69921),i=n(40176);let o=e=>(0,r.tP)((0,i.r)(e),0,4)},40176:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var r=n(44659),i=n(34763);let o=e=>(0,i.w)((0,r.O0)(e));var a=n(1678),s=n(81544);let c=e=>(function(e){let t=!0,n="",r=0,i="",o=!1;for(let a=0;a<e.length;a++){let s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t){if(0===r){if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){o=!0;break}continue}if(" "===s){","!==e[a-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=s,n+=s}}if(!o)throw new s.G("Unable to normalize signature.");return i})("string"==typeof e?e:(0,a.t)(e));function u(e){return o(c(e))}},82061:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}},36478:function(e,t,n){"use strict";n.d(t,{N7:function(){return a}});let r=new Map,i=new Map,o=0;function a(e,t,n){let a=++o,s=()=>r.get(e)||[],c=()=>{let t=s();r.set(e,t.filter(e=>e.id!==a))},u=()=>{let t=s();if(!t.some(e=>e.id===a))return;let n=i.get(e);if(1===t.length&&n){let e=n();e instanceof Promise&&e.catch(()=>{})}c()},l=s();if(r.set(e,[...l,{id:a,fns:t}]),l&&l.length>0)return u;let d={};for(let e in t)d[e]=(...t)=>{let n=s();if(0!==n.length)for(let r of n)r.fns[e]?.(...t)};let f=n(d);return"function"==typeof f&&i.set(e,f),u}},41495:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(33457);function i(e,{emitOnBegin:t,initialWaitTime:n,interval:i}){let o=!0,a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));let c=await n?.(s)??i;await (0,r.D)(c);let u=async()=>{o&&(await e({unpoll:a}),await (0,r.D)(i),u())};u()})(),a}},43226:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(56921);let i=new Map;
30function o({fn:e,id:t,shouldSplitBatch:n,wait:o=0,sort:a}){let s=async()=>{let t=l();c();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{a&&Array.isArray(e)&&e.sort(a);for(let n=0;n<t.length;n++){let{resolve:r}=t[n];r?.([e[n],e])}}).catch(e=>{for(let n=0;n<t.length;n++){let{reject:r}=t[n];r?.(e)}})},c=()=>i.delete(t),u=()=>l().map(({args:e})=>e),l=()=>i.get(t)||[],d=e=>i.set(t,[...l(),e]);return{flush:c,async schedule(e){let{promise:t,resolve:i,reject:a}=(0,r.n)();return(n?.([...u(),e])&&s(),l().length>0)?d({args:e,resolve:i,reject:a}):(d({args:e,resolve:i,reject:a}),setTimeout(s,o)),t}}}},56921:function(e,t,n){"use strict";function r(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}n.d(t,{n:function(){return r}})},49287:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(33457);function i(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0}={}){return new Promise((o,a)=>{let s=async({count:c=0}={})=>{let u=async({error:e})=>{let n="function"==typeof t?t({count:c,error:e}):t;n&&await (0,r.D)(n),s({count:c+1})};try{let t=await e();o(t)}catch(e){if(c<n&&await i({count:c,error:e}))return u({error:e});a(e)}};s()})}},39504:function(e,t,n){"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:r}){return new Promise((i,o)=>{(async()=>{let a;try{let s=new AbortController;n>0&&(a=setTimeout(()=>{r?s.abort():o(t)},n)),i(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&o(t),o(e)}finally{clearTimeout(a)}})()})}n.d(t,{F:function(){return r}})},23251:function(e,t,n){"use strict";n.d(t,{Ow:function(){return r},eL:function(){return i},lh:function(){return o}});let r=/^(.*)\[([0-9]*)\]$/,i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^(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)?$/},15566:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(34763),i=n(89256),o=n(20556),a=n(59455);function s(e,t){return(0,r.w)(function(e){let t="string"==typeof e?(0,a.$G)(e):"string"==typeof e.raw?e.raw:(0,a.ci)(e.raw),n=(0,a.$G)(`\x19Ethereum Signed Message:
31${(0,o.d)(t)}`);return(0,i.zo)([n,t])}(e),t)}},86044:function(e,t,n){"use strict";n.d(t,{Jv:function(){return y}});var r=n(30056),i=n(89256),o=n(59455),a=n(34763),s=n(65531),c=n(10052),u=n(31853),l=n(81544);class d extends l.G{constructor({domain:e}){super(`Invalid domain "${(0,u.P)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class f extends l.G{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class h extends l.G{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var p=n(4012),b=n(20556),m=n(23251);function y(e){let{domain:t={},message:n,primaryType:r}=e,u={EIP712Domain:function({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}({domain:t}),...e.types};!function(e){let{domain:t,message:n,primaryType:r,types:i}=e,a=(e,t)=>{for(let n of e){let{name:e,type:r}=n,u=t[e],l=r.match(m.lh);if(l&&("number"==typeof u||"bigint"==typeof u)){let[e,t,n]=l;(0,o.eC)(u,{signed:"int"===t,size:Number.parseInt(n,10)/8})}if("address"===r&&"string"==typeof u&&!(0,p.U)(u))throw new c.b({address:u});let d=r.match(m.eL);if(d){let[e,t]=d;if(t&&(0,b.d)(u)!==Number.parseInt(t,10))throw new s.KY({expectedSize:Number.parseInt(t,10),givenSize:(0,b.d)(u)})}let f=i[r];f&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new h({type:e})}(r),a(f,u))}};if(i.EIP712Domain&&t){if("object"!=typeof t)throw new d({domain:t});a(i.EIP712Domain,t)}if("EIP712Domain"!==r){if(i[r])a(i[r],n);else throw new f({primaryType:r,types:i})}}({domain:t,message:n,primaryType:r,types:u});let l=["0x1901"];return t&&l.push(function({domain:e,types:t}){return g({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:u})),"EIP712Domain"!==r&&l.push(g({data:n,primaryType:r,types:u})),(0,a.w)((0,i.zo)(l))}function g({data:e,primaryType:t,types:n}){let i=function e({data:t,primaryType:n,types:i}){let s=[{type:"bytes32"}],c=[function({primaryType:e,types:t}){let n=(0,o.NC)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let i=t.match(/^\w*/u),o=i?.[0];if(r.has(o)||void 0===n[o])return r;for(let t of(r.add(o),n[o]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});for(let i of(r.delete(e),[e,...Array.from(r).sort()]))n+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,a.w)(n)}({primaryType:n,types:i})];for(let u of i[n]){let[n,l]=function t({types:n,name:i,type:s,value:c}){if(void 0!==n[s])return[{type:"bytes32"},(0,a.w)(e({data:c,primaryType:s,types:n}))];if("bytes"===s)return[{type:"bytes32"},(0,a.w)(c)];if("string"===s)return[{type:"bytes32"},(0,a.w)((0,o.NC)(c))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),o=c.map(r=>
31t({name:i,type:e,types:n,value:r}));return[{type:"bytes32"},(0,a.w)((0,r.E)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:s},c]}({types:i,name:u.name,type:u.type,value:t[u.name]});s.push(n),c.push(l)}return(0,r.E)(s,c)}({data:e,primaryType:t,types:n});return(0,a.w)(i)}},77911:function(e,t,n){"use strict";n.d(t,{mF:function(){return u}});var r=n(10052),i=n(47116),o=n(29625),a=n(4012),s=n(59455);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new i.W_({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function u(e){if(!e)return;let t={};for(let{address:n,...i}of e){if(!(0,a.U)(n,{strict:!1}))throw new r.b({address:n});if(t[n])throw new o.Nc({address:n});t[n]=function(e){let{balance:t,nonce:n,state:r,stateDiff:i,code:a}=e,u={};if(void 0!==a&&(u.code=a),void 0!==t&&(u.balance=(0,s.eC)(t)),void 0!==n&&(u.nonce=(0,s.eC)(n)),void 0!==r&&(u.state=c(r)),void 0!==i){if(u.state)throw new o.Z8;u.stateDiff=c(i)}return u}(i)}return t}},31853:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},54605:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var r=n(19775),i=n(75018),o=n(10052),a=n(78125),s=n(4012);function c(e){let{account:t,maxFeePerGas:n,maxPriorityFeePerGas:c,to:u}=e,l=t?(0,r.T)(t):void 0;if(l&&!(0,s.U)(l.address))throw new o.b({address:l.address});if(u&&!(0,s.U)(u))throw new o.b({address:u});if(n&&n>i.zL)throw new a.Hh({maxFeePerGas:n});if(c&&n&&c>n)throw new a.cs({maxFeePerGas:n,maxPriorityFeePerGas:c})}},90683:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(63228);function i(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";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 r.j3({transaction:e})}},78217:function(e,t,n){"use strict";let r;n.d(t,{h:function(){return o}});let i=256;function o(e=11){if(!r||i+e>512){r="",i=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(i,i+++e)}},71282:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(98173),i=n(39502);function o(e,t="wei"){return(0,i.b)(e,r.ez[t])}},29707:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(98173),i=n(39502);function o(e,t="wei"){return(0,i.b)(e,r.Zn[t])}},39502:function(e,t,n){"use strict";function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,o]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${o?`.${o}`:""}`}n.d(t,{b:function(){return r}})},33457:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},10846:function(e,t,n){"use strict";n.d(t,{secp256k1:function(){return eE}});var r=n(10058),i=n(61714);class o extends i.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,i.z3)(e);let n=(0,i.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,o=new Uint8Array(r);o.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,i.ru)(o)}update(e){return(0,i.$h)(this),this.iHash.update(e),this}digestInto(e){(0,i.$h)(this),(0,i.gk)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let a=(e,t,n)=>new o(e,t).update(n).digest();a.create=(e,t)=>
vendor: 4,963 bytes, line 31
31new o(e,t);let s=BigInt(0),c=BigInt(1);function u(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function l(e){if(!u(e))throw Error("Uint8Array expected")}function d(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}function f(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function h(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?s:BigInt("0x"+e)}let p="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,b=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function m(e){if(l(e),p)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=b[e[n]];return t}let y={_0:48,_9:57,A:65,F:70,a:97,f:102};function g(e){return e>=y._0&&e<=y._9?e-y._0:e>=y.A&&e<=y.F?e-(y.A-10):e>=y.a&&e<=y.f?e-(y.a-10):void 0}function w(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(p)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){let n=g(e.charCodeAt(i)),o=g(e.charCodeAt(i+1));if(void 0===n||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);r[t]=16*n+o}return r}function v(e){return h(m(e))}function A(e){return l(e),h(m(Uint8Array.from(e).reverse()))}function x(e,t){return w(e.toString(16).padStart(2*t,"0"))}function C(e,t){return x(e,t).reverse()}function E(e,t,n){let r;if("string"==typeof t)try{r=w(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(u(t))r=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let i=r.length;if("number"==typeof n&&i!==n)throw Error(e+" of length "+n+" expected, got "+i);return r}function I(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];l(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}let P=e=>"bigint"==typeof e&&s<=e;function k(e,t,n){return P(e)&&P(t)&&P(n)&&t<=e&&e<n}function B(e,t,n,r){if(!k(t,n,r))throw Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}let S=e=>(c<<BigInt(e))-c,O=e=>new Uint8Array(e),M=e=>Uint8Array.from(e),N={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||u(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 R(e,t,n={}){let r=(t,n,r)=>{let i=N[n];if("function"!=typeof i)throw Error("invalid validator function");let o=e[t];if((!r||void 0!==o)&&!i(o,e))throw Error("param "+String(t)+" is invalid. Expected "+n+", got "+o)};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}function F(e){let t=new WeakMap;return(n,...r)=>{let i=t.get(n);if(void 0!==i)return i;let o=e(n,...r);return t.set(n,o),o}}let T=BigInt(0),G=BigInt(1),U=BigInt(2),L=BigInt(3),j=BigInt(4),D=BigInt(5),z=BigInt(8);function q(e,t){let n=e%t;return n>=T?n:t+n}function W(e,t,n){let r=e;for(;t-- >T;)r*=r,r%=n;return r}function Q(e,t){if(e===T)throw Error("invert: expected non-zero number");if(t<=T)throw Error("invert: expected positive modulus, got "+t);let n=q(e,t),r=t,i=T,o=G,a=G,s=T;for(;n!==T;){let e=r/n,t=r%n,c=i-a*e,u=o-s*e;r=n,n=t,i=a,o=s,a=c,s=u}if(r!==G)throw Error("invert: does not exist");return q(i,t)}function $(e,t){let n=(e.ORDER+G)/j,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw Error("Cannot find square root");return r}function H(e,t){let n=(e.ORDER-D)/z,r=e.mul(t,U),i=e.pow(r,n),o=e.mul(t,i),a=e.mul(e.mul(o,U),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),t))throw Error("Cannot find square root");return s}let V=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function K(e,t,n=!1){let r=Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),o=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),o),r}function J(e,t){let n=(e.ORDER-G)/U,r=e.pow(t,n),i=e.eql(r,e.ONE),o=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!i&&!o&&!a)throw Error("invalid Legendre symbol result");return i?1:o?0:-1}function Z(e,t){void 0!==t&&(0,i.k8)(t);let n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Y(e,t,n=!1,r={}){let i;if(e<=T)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:o,nByteLength:a}=Z(e,t);if(a>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let s=Object.freeze({ORDER:e,isLE:n,BITS:o,BYTES:a,MASK:S(o),ZERO:T,ONE:G,create:t=>q(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return T<=t&&t<e},is0:e=>e===T,isOdd:e=>(e&G)===G,neg:t=>q(-t,e),eql:(e,t)=>
vendor: 17,856 bytes, line 31
31e===t,sqr:t=>q(t*t,e),add:(t,n)=>q(t+n,e),sub:(t,n)=>q(t-n,e),mul:(t,n)=>q(t*n,e),pow:(e,t)=>(function(e,t,n){if(n<T)throw Error("invalid exponent, negatives unsupported");if(n===T)return e.ONE;if(n===G)return t;let r=e.ONE,i=t;for(;n>T;)n&G&&(r=e.mul(r,i)),i=e.sqr(i),n>>=G;return r})(s,e,t),div:(t,n)=>q(t*Q(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>Q(t,e),sqrt:r.sqrt||(t=>(!i&&(i=e%j===L?$:e%z===D?H:function(e){if(e<BigInt(3))throw Error("sqrt is not defined for small field");let t=e-G,n=0;for(;t%U===T;)t/=U,n++;let r=U,i=Y(e);for(;1===J(i,r);)if(r++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===n)return $;let o=i.pow(r,t),a=(t+G)/U;return function(e,r){if(e.is0(r))return r;if(1!==J(e,r))throw Error("Cannot find square root");let i=n,s=e.mul(e.ONE,o),c=e.pow(r,t),u=e.pow(r,a);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw Error("Cannot find square root");let r=G<<BigInt(i-t-1),o=e.pow(s,r);i=t,s=e.sqr(o),c=e.mul(c,s),u=e.mul(u,o)}return u}}(e)),i(s,t))),toBytes:e=>n?C(e,a):x(e,a),fromBytes:e=>{if(e.length!==a)throw Error("Field.fromBytes: expected "+a+" bytes, got "+e.length);return n?A(e):v(e)},invertBatch:e=>K(s,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(s)}function X(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function _(e){let t=X(e);return t+Math.ceil(t/2)}let ee=BigInt(0),et=BigInt(1);function en(e,t){let n=t.negate();return e?n:t}function er(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function ei(e,t){er(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e;return{windows:n,windowSize:r,mask:S(e),maxNumber:i,shiftBy:BigInt(e)}}function eo(e,t,n){let{windowSize:r,mask:i,maxNumber:o,shiftBy:a}=n,s=Number(e&i),c=e>>a;s>r&&(s-=o,c+=et);let u=t*r,l=u+Math.abs(s)-1;return{nextN:c,offset:l,isZero:0===s,isNeg:s<0,isNegF:t%2!=0,offsetF:u}}let ea=new WeakMap,es=new WeakMap;function ec(e){return es.get(e)||1}function eu(e){return R(e.Fp,V.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),R(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Z(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function el(e){void 0!==e.lowS&&d("lowS",e.lowS),void 0!==e.prehash&&d("prehash",e.prehash)}class ed extends Error{constructor(e=""){super(e)}}let ef={Err:ed,_tlv:{encode:(e,t)=>{let{Err:n}=ef;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");let r=t.length/2,i=f(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");let o=r>127?f(i.length/2|128):"";return f(e)+o+i+t},decode(e,t){let{Err:n}=ef,r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");let i=t[r++],o=0;if(128&i){let e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let a=t.subarray(r,r+e);if(a.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===a[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of a)o=o<<8|e;if(r+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=i;let a=t.subarray(r,r+o);if(a.length!==o)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(r+o)}}},_int:{encode(e){let{Err:t}=ef;if(e<eh)throw new t("integer: negative integers are not allowed");let n=f(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:t}=ef;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return v(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=ef,i=E("signature",e),{v:o,l:a}=r.decode(48,i);if(a.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:c}=r.decode(2,o),{v:u,l:l}=r.decode(2,c);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(u)}},hexFromSig(e){let{_tlv:t,_int:n}=ef,r=t.encode(2,n.encode(e.r)),i=t.encode(2,n.encode(e.s));return t.encode(48,r+i)}},eh=BigInt(0),ep=BigInt(1),eb=(BigInt(2),BigInt(3)),em=BigInt(4),ey=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),eg=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ew=BigInt(0),ev=BigInt(1),eA=BigInt(2),ex=(e,t)=>(e+t/eA)/t,eC=Y(ey,void 0,void 0,{sqrt:function(e){let t=BigInt(3),n=BigInt(6),r=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),s=BigInt(88),c=e*e*e%ey,u=c*c*e%ey,l=W(u,t,ey)*u%ey,d=W(l,t,ey)*u%ey,f=W(d,eA,ey)*c%ey,h=W(f,r,ey)*f%ey,p=W(h,i,ey)*h%ey,b=W(p,a,ey)*p%ey,m=W(b,s,ey)*b%ey,y=W(m,a,ey)*p%ey,g=W(y,t,ey)*u%ey,w=W(g,o,ey)*h%ey,v=W(w,n,ey)*c%ey,A=W(v,eA,ey);if(!eC.eql(eC.sqr(A),e))throw Error("Cannot find square root");return A}}),eE=function(e,t){let n=t=>(function(e){let t=function(e){let t=eu(e);return R(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r,nByteLength:i,nBitLength:o}=t,a=n.BYTES+1,l=2*n.BYTES+1;function f(e){return q(e,r)}let{ProjectivePoint:h,normPrivateKeyToScalar:p,weierstrassEquation:b,isWithinCurveOrder:y}=function(e){var t;let n=function(e){let t=eu(e);R(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:r}=n,i=Y(n.n,n.nBitLength),o=n.toBytes||((e,t,n)=>{let i=t.toAffine();return I(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),a=n.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function l(e){let{a:t,b:i}=n,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,t)),i)}function f(e,t){let n=r.sqr(t),i=l(e);return r.eql(n,i)}if(!f(n.Gx,n.Gy))throw Error("bad curve params: generator point");let h=r.mul(r.pow(n.a,eb),em),p=r.mul(r.sqr(n.b),BigInt(27));if(r.is0(r.add(h,p)))throw Error("bad curve params: a or b");function b(e){let t;let{allowedPrivateKeyLengths:r,nByteLength:i,wrapPrivateKey:o,n:a}=n;if(r&&"bigint"!=typeof e){if(u(e)&&(e=m(e)),"string"!=typeof e||!r.includes(e.length))throw Error("invalid private key");e=e.padStart(2*i,"0")}try{t="bigint"==typeof e?e:v(E("private key",e,i))}catch(t){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof e)}return o&&(t=q(t,a)),B("private key",t,ep,a),t}function y(e){if(!(e instanceof A))throw Error("ProjectivePoint expected")}let g=F((e,t)=>{let{px:n,py:i,pz:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};let a=e.is0();null==t&&(t=a?r.ONE:r.inv(o));let s=r.mul(n,t),c=r.mul(i,t),u=r.mul(o,t);if(a)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error("invZ was invalid");return{x:s,y:c}}),w=F(e=>{if(e.is0()){if(n.allowInfinityPoint&&!r.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:i}=e.toAffine();if(!r.isValid(t)||!r.isValid(i))throw Error("bad point: x or y not FE");if(!f(t,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class A{constructor(e,t,n){if(null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required");this.px=e,this.py=t,this.pz=n,Object.freeze(this)}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof A)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?A.ZERO:new A(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=K(r,e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(A.fromAffine)}static fromHex(e){let t=A.fromAffine(a(E("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return A.BASE.multiply(b(e))}static msm(e,t){return function(e,t,n,r){!function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw Error("invalid point at index "+n)})}(n,e),function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+n)})}(r,t);let i=n.length,o=r.length;if(i!==o)throw Error("arrays of points and scalars must have equal length");let a=e.ZERO,u=function(e){let t;for(t=0;e>s;e>>=c,t+=1);return t}(BigInt(i)),l=1;u>12?l=u-3:u>4?l=u-2:u>0&&(l=2);let d=S(l),f=Array(Number(d)+1).fill(a),h=Math.floor((t.BITS-1)/l)*l,p=a;for(let e=h;e>=0;e-=l){f.fill(a);for(let t=0;t<o;t++){let i=Number(r[t]>>BigInt(e)&d);f[i]=f[i].add(n[t])}let t=a;for(let e=f.length-1,n=a;e>0;e--)n=n.add(f[e]),t=t.add(n);if(p=p.add(t),0!==e)for(let e=0;e<l;e++)p=p.double()}return p}(A,i,e,t)}_setWindowSize(e){P.setWindowSize(this,e)}assertValidity(){w(this)}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,c=r.eql(r.mul(t,s),r.mul(o,i)),u=r.eql(r.mul(n,s),r.mul(a,i));return c&&u}negate(){return new A(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:t}=n,i=r.mul(t,eb),{px:o,py:a,pz:s}=this,c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(o,o),f=r.mul(a,a),h=r.mul(s,s),p=r.mul(o,a);return p=r.add(p,p),l=r.mul(o,s),l=r.add(l,l),c=r.mul(e,l),u=r.mul(i,h),u=r.add(c,u),c=r.sub(f,u),u=r.add(f,u),u=r.mul(c,u),c=r.mul(p,c),l=r.mul(i,l),h=r.mul(e,h),p=r.sub(d,h),p=r.mul(e,p),p=r.add(p,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,h),d=r.mul(d,p),u=r.add(u,d),h=r.mul(a,s),h=r.add(h,h),d=r.mul(h,p),c=r.sub(c,d),l=r.mul(h,f),l=r.add(l,l),new A(c,u,l=r.add(l,l))}add(e){y(e);let{px:t,py:i,pz:o}=this,{px:a,py:s,pz:c}=e,u=r.ZERO,l=r.ZERO,d=r.ZERO,f=n.a,h=r.mul(n.b,eb),p=r.mul(t,a),b=r.mul(i,s),m=r.mul(o,c),g=r.add(t,i),w=r.add(a,s);g=r.mul(g,w),w=r.add(p,b),g=r.sub(g,w),w=r.add(t,o);let v=r.add(a,c);return w=r.mul(w,v),v=r.add(p,m),w=r.sub(w,v),v=r.add(i,o),u=r.add(s,c),v=r.mul(v,u),u=r.add(b,m),v=r.sub(v,u),d=r.mul(f,w),u=r.mul(h,m),d=r.add(u,d),u=r.sub(b,d),d=r.add(b,d),l=r.mul(u,d),b=r.add(p,p),b=r.add(b,p),m=r.mul(f,m),w=r.mul(h,w),b=r.add(b,m),m=r.sub(p,m),m=r.mul(f,m),w=r.add(w,m),p=r.mul(b,w),l=r.add(l,p),p=r.mul(v,w),u=r.mul(g,u),u=r.sub(u,p),p=r.mul(g,b),d=r.mul(v,d),new A(u,l,d=r.add(d,p))}subtract(e){return this.add(e.negate())}is0(){return this.equals(A.ZERO)}wNAF(e){return P.wNAFCached(this,e,A.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:i}=n;B("scalar",e,eh,i);let o=A.ZERO;if(e===eh)return o;if(this.is0()||e===ep)return this;if(!t||P.hasPrecomputes(this))return P.wNAFCachedUnsafe(this,e,A.normalizeZ);let{k1neg:a,k1:s,k2neg:c,k2:u}=t.splitScalar(e),l=o,d=o,f=this;for(;s>eh||u>eh;)s&ep&&(l=l.add(f)),u&ep&&(d=d.add(f)),f=f.double(),s>>=ep,u>>=ep;return a&&(l=l.negate()),c&&(d=d.negate()),d=new A(r.mul(d.px,t.beta),d.py,d.pz),l.add(d)}multiply(e){let t,i;let{endo:o,n:a}=n;if(B("scalar",e,ep,a),o){let{k1neg:n,k1:a,k2neg:s,k2:c}=o.splitScalar(e),{p:u,f:l}=this.wNAF(a),{p:d,f:f}=this.wNAF(c);u=P.constTimeNegate(n,u),d=P.constTimeNegate(s,d),d=new A(r.mul(d.px,o.beta),d.py,d.pz),t=u.add(d),i=l.add(f)}else{let{p:n,f:r}=this.wNAF(e);t=n,i=r}return A.normalizeZ([t,i])[0]}multiplyAndAddUnsafe(e,t,n){let r=A.BASE,i=(e,t)=>t!==eh&&t!==ep&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,n));return o.is0()?void 0:o}toAffine(e){return g(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=n;if(e===ep)return!0;if(t)return t(A,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=n;return e===ep?this:t?t(A,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return d("isCompressed",e),this.assertValidity(),o(A,this,e)}toHex(e=!0){return d("isCompressed",e),m(this.toRawBytes(e))}}A.BASE=new A(n.Gx,n.Gy,r.ONE),A.ZERO=new A(r.ZERO,r.ONE,r.ZERO);let{endo:x,nBitLength:C}=n,P=(t=x?Math.ceil(C/2):C,{constTimeNegate:en,hasPrecomputes:e=>1!==ec(e),unsafeLadder(e,t,n=A.ZERO){let r=e;for(;t>ee;)t&et&&(n=n.add(r)),r=r.double(),t>>=et;return n},precomputeWindow(e,n){let{windows:r,windowSize:i}=ei(n,t),o=[],a=e,s=a;for(let e=0;e<r;e++){s=a,o.push(s);for(let e=1;e<i;e++)s=s.add(a),o.push(s);a=s.double()}return o},wNAF(e,n,r){let i=A.ZERO,o=A.BASE,a=ei(e,t);for(let e=0;e<a.windows;e++){let{nextN:t,offset:s,isZero:c,isNeg:u,isNegF:l,offsetF:d}=eo(r,e,a);r=t,c?o=o.add(en(l,n[d])):i=i.add(en(u,n[s]))}return{p:i,f:o}},wNAFUnsafe(e,n,r,i=A.ZERO){let o=ei(e,t);for(let e=0;e<o.windows&&r!==ee;e++){let{nextN:t,offset:a,isZero:s,isNeg:c}=eo(r,e,o);if(r=t,!s){let e=n[a];i=i.add(c?e.negate():e)}}return i},getPrecomputes(e,t,n){let r=ea.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&ea.set(t,n(r))),r},wNAFCached(e,t,n){let r=ec(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){let i=ec(e);return 1===i?this.unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)},setWindowSize(e,n){er(n,t),es.set(e,n),ea.delete(e)}});return{CURVE:n,ProjectivePoint:A,normPrivateKeyToScalar:b,weierstrassEquation:l,isWithinCurveOrder:function(e){return k(e,ep,n.n)}}}({...t,toBytes(e,t,r){let i=t.toAffine(),o=n.toBytes(i.x);return(d("isCompressed",r),r)?I(Uint8Array.from([t.hasEvenY()?2:3]),o):I(Uint8Array.from([4]),o,n.toBytes(i.y))},fromBytes(e){let t=e.length,r=e[0],i=e.subarray(1);if(t===a&&(2===r||3===r)){let e;let t=v(i);if(!k(t,ep,n.ORDER))throw Error("Point is not on curve");let o=b(t);try{e=n.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&ep)===ep)&&(e=n.neg(e)),{x:t,y:e}}if(t===l&&4===r)return{x:n.fromBytes(i.subarray(0,n.BYTES)),y:n.fromBytes(i.subarray(n.BYTES,2*n.BYTES))};throw Error("invalid Point, expected length of "+a+", or uncompressed "+l+", got "+t)}}),g=(e,t,n)=>v(e.slice(t,n));class P{constructor(e,t,n){B("r",e,ep,r),B("s",t,ep,r),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){return new P(g(e=E("compactSignature",e,2*i),0,i),g(e,i,2*i))}static fromDER(e){let{r:t,s:n}=ef.toSig(E("DER",e));return new P(t,n)}assertValidity(){}addRecoveryBit(e){return new P(this.r,this.s,e)}recoverPublicKey(e){let{r:i,s:o,recovery:a}=this,s=U(E("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw Error("recovery id invalid");let c=2===a||3===a?i+t.n:i;if(c>=n.ORDER)throw Error("recovery id 2 or 3 invalid");let u=(1&a)==0?"02":"03",l=h.fromHex(u+m(x(c,n.BYTES))),d=Q(c,r),p=f(-s*d),b=f(o*d),y=h.BASE.multiplyAndAddUnsafe(l,p,b);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return this.s>r>>ep}normalizeS(){return this.hasHighS()?new P(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return w(this.toDERHex())}toDERHex(){return ef.hexFromSig(this)}toCompactRawBytes(){return w(this.toCompactHex())}toCompactHex(){return m(x(this.r,i))+m(x(this.s,i))}}function N(e){if("bigint"==typeof e)return!1;if(e instanceof h)return!0;let r=E("key",e).length,o=n.BYTES,a=o+1;if(!t.allowedPrivateKeyLengths&&i!==a)return r===a||r===2*o+1}let T=t.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=v(e),n=8*e.length-o;return n>0?t>>BigInt(n):t},U=t.bits2int_modN||function(e){return f(T(e))},L=S(o);function j(e){return B("num < 2^"+o,e,eh,L),x(e,i)}let D={lowS:t.lowS,prehash:!1},z={lowS:t.lowS,prehash:!1};return h.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return h.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(!0===N(e))throw Error("first arg must be private key");if(!1===N(t))throw Error("second arg must be public key");return h.fromHex(t).multiply(p(e)).toRawBytes(n)},sign:function(e,i,o=D){let{seed:a,k2sig:s}=function(e,i,o=D){if(["recovered","canonical"].some(e=>e in o))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:s}=t,{lowS:c,prehash:u,extraEntropy:l}=o;null==c&&(c=!0),e=E("msgHash",e),el(o),u&&(e=E("prehashed msgHash",a(e)));let d=U(e),b=p(i),m=[j(b),j(d)];if(null!=l&&!1!==l){let e=!0===l?s(n.BYTES):l;m.push(E("extraEntropy",e))}return{seed:I(...m),k2sig:function(e){let t=T(e);if(!y(t))return;let n=Q(t,r),i=h.BASE.multiply(t).toAffine(),o=f(i.x);if(o===eh)return;let a=f(n*f(d+o*b));if(a===eh)return;let s=(i.x===o?0:2)|Number(i.y&ep),u=a;if(c&&a>r>>ep)u=a>r>>ep?f(-a):a,s^=1;return new P(o,u,s)}}}(e,i,o);return(function(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=O(e),i=O(e),o=0,a=()=>{r.fill(1),i.fill(0),o=0},s=(...e)=>n(i,r,...e),c=(e=O(0))=>{i=s(M([0]),e),r=s(),0!==e.length&&(i=s(M([1]),e),r=s())},u=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,n=[];for(;e<t;){let t=(r=s()).slice();n.push(t),e+=r.length}return I(...n)};return(e,t)=>{let n;for(a(),c(e);!(n=t(u()));)c();return a(),n}})(t.hash.outputLen,t.nByteLength,t.hmac)(a,s)},verify:function(e,n,i,o=z){let a,s;n=E("msgHash",n),i=E("publicKey",i);let{lowS:c,prehash:l,format:d}=o;if(el(o),"strict"in o)throw Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw Error("format must be compact or der");
31let p="string"==typeof e||u(e),b=!p&&!d&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!p&&!b)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(b&&(s=new P(e.r,e.s)),p){try{"compact"!==d&&(s=P.fromDER(e))}catch(e){if(!(e instanceof ef.Err))throw e}s||"der"===d||(s=P.fromCompact(e))}a=h.fromHex(i)}catch(e){return!1}if(!s||c&&s.hasHighS())return!1;l&&(n=t.hash(n));let{r:m,s:y}=s,g=U(n),w=Q(y,r),v=f(g*w),A=f(m*w),x=h.BASE.multiplyAndAddUnsafe(a,v,A)?.toAffine();return!!x&&f(x.x)===m},ProjectivePoint:h,Signature:P,utils:{isValidPrivateKey(e){try{return p(e),!0}catch(e){return!1}},normPrivateKeyToScalar:p,randomPrivateKey:()=>{let e=_(t.n);return function(e,t,n=!1){let r=e.length,i=X(t),o=_(t);if(r<16||r<o||r>1024)throw Error("expected "+o+"-1024 bytes of input, got "+r);let a=q(n?A(e):v(e),t-G)+G;return n?C(a,i):x(a,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=h.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...n)=>a(t,e,(0,i.eV)(...n)),randomBytes:i.O6});return{...n(t),create:n}}({a:ew,b:BigInt(7),Fp:eC,n:eg,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-ev*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),o=ex(t*e,eg),a=ex(-n*e,eg),s=q(e-o*t-a*r,eg),c=q(-o*n-a*t,eg),u=s>i,l=c>i;if(u&&(s=eg-s),l&&(c=eg-c),s>i||c>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:s,k2neg:l,k2:c}}}},r.JQ)},42802:function(e,t,n){"use strict";n.d(t,{$p:function(){return d},EP:function(){return f},FL:function(){return l},Fn:function(){return g},IH:function(){return m},Iq:function(){return s},NI:function(){return a},Ou:function(){return u},SD:function(){return p},Vl:function(){return o},Xb:function(){return w},ac:function(){return y},gm:function(){return h},m_:function(){return c},mk:function(){return b},pp:function(){return x},u8:function(){return v},zP:function(){return A}});let r=BigInt(4294967296-1),i=BigInt(32);function o(e,t=!1){let n=e.length,o=new Uint32Array(n),a=new Uint32Array(n);for(let s=0;s<n;s++){let{h:n,l:c}=function(e,t=!1){return t?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}(e[s],t);[o[s],a[s]]=[n,c]}return[o,a]}let a=(e,t,n)=>e>>>n,s=(e,t,n)=>e<<32-n|t>>>n,c=(e,t,n)=>e>>>n|t<<32-n,u=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e<<64-n|t>>>n-32,d=(e,t,n)=>e>>>n-32|t<<64-n,f=(e,t,n)=>e<<n|t>>>32-n,h=(e,t,n)=>t<<n|e>>>32-n,p=(e,t,n)=>t<<n-32|e>>>64-n,b=(e,t,n)=>e<<n-32|t>>>64-n;function m(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/4294967296|0)|0,l:0|i}}let y=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),g=(e,t,n,r)=>t+n+r+(e/4294967296|0)|0,w=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),v=(e,t,n,r,i)=>t+n+r+i+(e/4294967296|0)|0,A=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),x=(e,t,n,r,i,o)=>t+n+r+i+o+(e/4294967296|0)|0},10058:function(e,t,n){"use strict";n.d(t,{JQ:function(){return d}});var r=n(61714);class i extends r.kb{constructor(e,t,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,r.GL)(this.buffer)}update(e){(0,r.$h)(this),e=(0,r.O0)(e),(0,r.gk)(e);let{view:t,buffer:n,blockLen:i}=this,o=e.length;for(let a=0;a<o;){let s=Math.min(i-this.pos,o-a);if(s===i){let t=(0,r.GL)(e);for(;i<=o-a;a+=i)this.process(t,a);continue}n.set(e.subarray(a,a+s),this.pos),this.pos+=s,a+=s,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.$h)(this),(0,r.eB)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:i,isLE:o}=this,{pos:a}=this;t[a++]=128,(0,r.ru)(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let e=a;
vendor: 3,748 bytes, line 31
31e<i;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);let i=BigInt(32),o=BigInt(4294967295),a=Number(n>>i&o),s=Number(n&o),c=r?4:0,u=r?0:4;e.setUint32(t+c,a,r),e.setUint32(t+u,s,r)}(n,i-8,BigInt(8*this.length),o),this.process(n,0);let s=(0,r.GL)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,l=this.get();if(u>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)s.setUint32(4*e,l[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:a}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=a,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}let o=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);var a=n(42802);let s=Uint32Array.from([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]),c=new Uint32Array(64);class u extends i{constructor(e=32){super(64,e,8,!1),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4],this.F=0|o[5],this.G=0|o[6],this.H=0|o[7]}get(){let{A:e,B:t,C:n,D:r,E:i,F:o,G:a,H:s}=this;return[e,t,n,r,i,o,a,s]}set(e,t,n,r,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)c[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],n=c[e-2],i=(0,r.np)(t,7)^(0,r.np)(t,18)^t>>>3,o=(0,r.np)(n,17)^(0,r.np)(n,19)^n>>>10;c[e]=o+c[e-7]+i+c[e-16]|0}let{A:n,B:i,C:o,D:a,E:u,F:l,G:d,H:f}=this;for(let e=0;e<64;e++){var h,p,b,m;let t=f+((0,r.np)(u,6)^(0,r.np)(u,11)^(0,r.np)(u,25))+((h=u)&l^~h&d)+s[e]+c[e]|0,y=((0,r.np)(n,2)^(0,r.np)(n,13)^(0,r.np)(n,22))+((p=n)&(b=i)^p&(m=o)^b&m)|0;f=d,d=l,l=u,u=a+t|0,a=o,o=i,i=n,n=t+y|0}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,u=u+this.E|0,l=l+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(n,i,o,a,u,l,d,f)}roundClean(){(0,r.ru)(c)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,r.ru)(this.buffer)}}let l=a.Vl(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
315771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e)));l[0],l[1];let d=(0,r.V1)(()=>new u)},61714:function(e,t,n){"use strict";n.d(t,{kb:function(){return m},gk:function(){return o},$h:function(){return s},z3:function(){return a},k8:function(){return i},eB:function(){return c},ru:function(){return l},eV:function(){return b},V1:function(){return y},GL:function(){return d},O6:function(){return g},np:function(){return f},Ux:function(){return h},O0:function(){return p},Jq:function(){return u}});let r="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function o(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)}function s(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 c(e,t){o(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}function u(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function l(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function f(e,t){return e<<32-t|e>>>t}let h=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]?e=>e:function(e){for(let n=0;n<e.length;n++){var t;e[n]=(t=e[n])<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}return e};function p(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),o(e),e}function b(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];o(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}class m{}function y(e){let t=t=>e().update(p(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function g(e=32){if(r&&"function"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"==typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}},89472:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(55911),i=n(2265),o=n(12364);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onConnect:t,onDisconnect:n}=e,a=(0,o.Z)(e);(0,i.useEffect)(()=>(0,r.u)(a,{onChange(e,r){if(("reconnecting"===r.status||"connecting"===r.status&&void 0===r.address)&&"connected"===e.status){let{address:n,addresses:i,chain:o,chainId:a,connector:s}=e,c="reconnecting"===r.status||void 0===r.status;null==t||t({address:n,addresses:i,chain:o,chainId:a,connector:s,isReconnected:c})}else"connected"===r.status&&"disconnected"===e.status&&(null==n||n())}}),[a,t,n])}},52618:function(e,t,n){"use strict";n.d(t,{K:function(){return A}});var r=n(72932),i=n(36826),o=n(39502),a=n(32807),s=n(44199),c=n(98173);function u(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(c.Bd[e])}var l=n(20010),d=n(94797);async function f(e,t){let{allowFailure:n=!0,chainId:r,contracts:i,...o}=t,a=e.getClient({chainId:r});return(0,s.s)(a,d.A,"multicall")({allowFailure:n,contracts:i,...o})}var h=n(37691);async function p(e,t){let{allowFailure:n=!0,blockNumber:r,blockTag:i,...o}=t,a=t.contracts;try{let t={};for(let[n,r]of a.entries()){let i=r.chainId??e.state.chainId;t[i]||(t[i]=[]),t[i]?.push({contract:r,index:n})}let s=(await Promise.all(Object.entries(t).map(([t,a])=>
31f(e,{...o,allowFailure:n,blockNumber:r,blockTag:i,chainId:Number.parseInt(t,10),contracts:a.map(({contract:e})=>e)})))).flat(),c=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return s.reduce((e,t,n)=>(e&&(e[c[n]]=t),e),[])}catch(o){if(o instanceof l.uq)throw o;let t=()=>a.map(t=>(0,h.L)(e,{...t,blockNumber:r,blockTag:i}));if(n)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}async function b(e,t){let{address:n,blockNumber:c,blockTag:l,chainId:d,token:f,unit:h="ether"}=t;if(f)try{return await m(e,{balanceAddress:n,chainId:d,symbolType:"string",tokenAddress:f})}catch(t){if("ContractFunctionExecutionError"===t.name){let t=await m(e,{balanceAddress:n,chainId:d,symbolType:"bytes32",tokenAddress:f}),o=(0,r.rR)((0,i.f)(t.symbol,{dir:"right"}));return{...t,symbol:o}}throw t}let p=e.getClient({chainId:d}),b=(0,s.s)(p,a.s,"getBalance"),y=await b(c?{address:n,blockNumber:c}:{address:n,blockTag:l}),g=e.chains.find(e=>e.id===d)??p.chain;return{decimals:g.nativeCurrency.decimals,formatted:(0,o.b)(y,u(h)),symbol:g.nativeCurrency.symbol,value:y}}async function m(e,t){let{balanceAddress:n,chainId:r,symbolType:i,tokenAddress:a,unit:s}=t,c={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:a},[l,d,f]=await p(e,{allowFailure:!1,contracts:[{...c,functionName:"balanceOf",args:[n],chainId:r},{...c,functionName:"decimals",chainId:r},{...c,functionName:"symbol",chainId:r}]}),h=(0,o.b)(l??"0",u(s??d));return{decimals:d,formatted:h,symbol:f,value:l}}var y=n(27534),g=n(24432),w=n(44005),v=n(12364);function A(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:r,query:i={}}=n,o=(0,v.Z)(n),a=(0,w.x)({config:o}),s=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...i}=t[1];if(!n)throw Error("address is required");return await b(e,{...i,address:n})??null},queryKey:function(e={}){return["balance",(0,y.OP)(e)]}(t)}}(o,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:a}),c=!!(r&&(null===(t=i.enabled)||void 0===t||t));return(0,g.aM)({...i,...s,enabled:c})}},44005:function(e,t,n){"use strict";function r(e){return e.state.chainId}n.d(t,{x:function(){return a}});var i=n(2265),o=n(12364);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.Z)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(e=>e.chainId,n)})(t,{onChange:e}),()=>r(t),()=>r(t))}},60542:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(21770),i=n(13102);async function o(e,t){let n;if((n="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new i.wi;try{e.setState(e=>({...e,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});let{connector:r,...i}=t,o=await n.connect(i);return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",n.id),e.setState(e=>({...e,connections:new Map(e.connections).set(n.uid,{accounts:i.withCapabilities?o.accounts.map(e=>"object"==typeof e?e.address:e):o.accounts,chainId:o.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:i.withCapabilities?o.accounts.map(e=>"object"==typeof e?e:{address:e,capabilities:{}}):o.accounts,chainId:o.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var a=n(2265),s=n(12364);let c=[];function u(e){let t=e.connectors;return c.length===t.length&&c.every((e,n)=>e===t[n])?c:(c=t,t)}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,s.Z)(e),{mutate:i,mutateAsync:c,...l}=(0,r.D)({...t,mutationFn:e=>o(n,e),mutationKey:["connect"]});return(0,a.useEffect)(()=>n.subscribe(e=>{let{status:t}=e;return t},(e,t)=>{"connected"===t&&"disconnected"===e&&l.reset()}
31),[n,l.reset]),{...l,connect:i,connectAsync:c,connectors:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.Z)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})})(t,{onChange:e}),()=>u(t),()=>u(t))}({config:n})}}},99778:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var r=n(21770);async function i(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:t,current:r}=e.state,i=t.get(r);n=i?.connector}let r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(e=>{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let n=e.state.connections.get(t)?.connector;if(!n)return;await e.storage?.setItem("recentConnectorId",n.id)}}var o=n(12364),a=n(52123);let s=[];function c(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,a.v)(s,t)?s:(s=t,t)}var u=n(2265);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,o.Z)(e),{mutate:s,mutateAsync:l,...d}=(0,r.D)({...t,mutationFn:e=>i(n,e),mutationKey:["disconnect"]});return{...d,connectors:(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.Z)(e);return(0,u.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>c(e),n,{equalityFn:a.v})})(t,{onChange:e}),()=>c(t),()=>c(t))})({config:n}).map(e=>e.connector),disconnect:s,disconnectAsync:l}}},33507:function(e,t,n){"use strict";n.d(t,{c:function(){return u}});var r=n(96698),i=n(44199),o=n(27534),a=n(24432),s=n(44005),c=n(12364);function u(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:u,query:l={}}=n,d=(0,c.Z)(n),f=(0,s.x)({config:d}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{name:n,scopeKey:o,...a}=t[1];if(!n)throw Error("name is required");return function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.r,"getEnsAvatar")(o)}(e,{...a,name:n})},queryKey:function(e={}){return["ensAvatar",(0,o.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),p=!!(u&&(null===(t=l.enabled)||void 0===t||t));return(0,a.aM)({...l,...h,enabled:p})}},77861:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(72609),i=n(44199),o=n(27534),a=n(24432),s=n(44005),c=n(12364);function u(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:u,query:l={}}=n,d=(0,c.Z)(n),f=(0,s.x)({config:d}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:o,...a}=t[1];if(!n)throw Error("address is required");return function(e,t){let{chainId:n,...o}=t,a=e.getClient({chainId:n});return(0,i.s)(a,r.w,"getEnsName")(o)}(e,{...a,address:n})},queryKey:function(e={}){return["ensName",(0,o.OP)(e)]}(t)}}(d,{...n,chainId:null!==(e=n.chainId)&&void 0!==e?e:f}),p=!!(u&&(null===(t=l.enabled)||void 0===t||t));return(0,a.aM)({...l,...h,enabled:p})}},53882:function(e,t,n){"use strict";n.d(t,{t:function(){return s}});var r=n(12500);function i(e,t={}){let n=function(e,t={}){try{return e.getClient(t)}catch{return}}(e,t);return n?.extend(r.I)}var o=n(35195),a=n(12364);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.Z)(e);return(0,o.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>i(e),n,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>i(t,e),()=>i(t,e),e=>e,(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid))}},10882:function(e,t,n){"use strict";n.d(t,{Q:function(){return f}});var r=n(21770),i=n(19775),o=n(65704),a=n(59455);async function s(e,{account:t=e.account,message:n}){if(!t)throw new o.o({docsPath:"/docs/actions/wallet/signMessage"});let r=(0,i.T)(t);
31if(r.signMessage)return r.signMessage({message:n});let s="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:[s,r.address]},{retryCount:0})}var c=n(44199),u=n(18849);async function l(e,t){let n;let{account:r,connector:i,...o}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await (0,u.e)(e,{account:r,connector:i}),(0,c.s)(n,s,"signMessage")({...o,...r?{account:r}:{}})}var d=n(12364);function f(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:n}=t,i=(e=(0,d.Z)(t),{mutationFn:t=>l(e,t),mutationKey:["signMessage"]}),{mutate:o,mutateAsync:a,...s}=(0,r.D)({...n,...i});return{...s,signMessage:o,signMessageAsync:a}}},59233:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(21770),i=n(13102),o=n(14478);async function a(e,t){let{addEthereumChainParameter:n,chainId:r}=t,a=e.state.connections.get(t.connector?.uid??e.state.current);if(a){let e=a.connector;if(!e.switchChain)throw new o.O({connector:e});return await e.switchChain({addEthereumChainParameter:n,chainId:r})}let s=e.chains.find(e=>e.id===r);if(!s)throw new i.X4;return e.setState(e=>({...e,chainId:r})),s}var s=n(52123);let c=[];function u(e){let t=e.chains;return(0,s.v)(c,t)?c:(c=t,t)}var l=n(2265),d=n(12364);function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,n=(0,d.Z)(e),{mutate:i,mutateAsync:o,...s}=(0,r.D)({...t,mutationFn:e=>a(n,e),mutationKey:["switchChain"]});return{...s,chains:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,d.Z)(e);return(0,l.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((e,t)=>{n(e,t)})})(t,{onChange:e}),()=>u(t),()=>u(t))}({config:n}),switchChain:i,switchChainAsync:o}}},24432:function(e,t,n){"use strict";n.d(t,{aM:function(){return o}});var r=n(11713),i=n(27534);function o(e){let t=(0,r.a)({...e,queryKeyHashFn:i.kq});return t.queryKey=e.queryKey,t}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.