1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{9391:function(e,t,r){"use strict";r.d(t,{Zb:function(){return eE},Wt:function(){return rr},II:function(){return rv},GG:function(){return tf},Ph:function(){return nn},$j:function(){return ef},m4:function(){return nz},Wb:function(){return M},mq:function(){return L}});var n,o,i=r(67294),a=r(41686),s=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],c=function(e){return e?6:5},l=function(e,t,r,n,o){clearTimeout(n.current),t(e),r.current=e,o&&o({state:s[e]})},u=function(e){var t,r,n=void 0===e?{}:e,o=n.enter,a=void 0===o||o,u=n.exit,d=void 0===u||u,f=n.preEnter,h=n.preExit,p=n.timeout,m=n.initialEntered,g=n.mountOnEnter,b=n.unmountOnExit,v=n.onChange,y=(0,i.useState)(m?2:c(g)),w=y[0],E=y[1],x=(0,i.useRef)(w),C=(0,i.useRef)();"object"==typeof p?(t=p.enter,r=p.exit):t=r=p;var A=(0,i.useCallback)(function(){var e;switch(x.current){case 1:case 0:e=2;break;case 4:case 3:e=c(b)}void 0!==e&&l(e,E,x,C,v)},[v,b]),P=(0,i.useCallback)(function(e){var n=function e(n){switch(l(n,E,x,C,v),n){case 1:t>=0&&(C.current=setTimeout(A,t));break;case 4:r>=0&&(C.current=setTimeout(A,r));break;case 0:case 3:C.current=setTimeout(function(){return e(n+1)},0)}},o=x.current<=2;"boolean"!=typeof e&&(e=!o),e?o||n(a?f?0:1:2):o&&n(d?h?3:4:c(b))},[A,v,a,d,f,h,t,r,b]);return(0,i.useEffect)(function(){return function(){return clearTimeout(C.current)}},[]),[s[w],P,A]},d=r(73935);let f=a.ZP.div(({theme:e,$shape:t,$noBorder:r})=>a.iv` 2 ${()=>{switch(t){case"circle":return a.iv` 3 border-radius: ${e.radii.full}; 4 &:after { 5 border-radius: ${e.radii.full}; 6 } 7 `;case"square":return a.iv` 8 border-radius: ${e.radii["2xLarge"]} 9 &:after { 10 border-radius: ${e.radii["2xLarge"]} 11 } 12 `;default:return a.iv``}}} 13 14 ${!r&&a.iv` 15 &::after { 16 box-shadow: ${e.shadows["-px"]} ${e.colors.backgroundSecondary}; 17 content: ''; 18 inset: 0; 19 position: absolute; 20 } 21 `} 22 23 background-color: ${e.colors.backgroundSecondary}; 24 25 width: 100%; 26 padding-bottom: 100%; 27 28 > * { 29 position: absolute; 30 top: 0; 31 left: 0; 32 width: 100%; 33 height: 100%; 34 } 35 36 overflow: hidden; 37 position: relative; 38 `),h=a.ZP.div(({theme:e,$url:t,$disabled:r})=>a.iv` 39 background: ${t||e.colors.gradients.blue}; 40 41 display: flex; 42 align-items: center; 43 justify-content: center; 44 width: 100%; 45 height: 100%; 46 47 ${r&&a.iv` 48 filter: grayscale(1); 49 `} 50 `),p=a.ZP.img(({$shown:e,$disabled:t})=>a.iv` 51 height: 100%; 52 width: 100%; 53 object-fit: cover; 54 display: none; 55 56 ${e&&a.iv` 57 display: block; 58 `} 59 60 ${t&&a.iv` 61 filter: grayscale(1); 62 `} 63 `),m=({label:e,noBorder:t=!1,shape:r="circle",src:n,placeholder:o,decoding:a="async",disabled:s=!1,overlay:c,...l})=>{let u=i.useRef(null),[d,m]=i.useState(!!n),g=i.useCallback(()=>{m(!0)},[m]),b=i.useCallback(()=>{m(!1)},[m]);i.useEffect(()=>{let e=u.current;return e&&(e.addEventListener("load",g),e.addEventListener("loadstart",b),e.addEventListener("error",b)),()=>{e&&(e.removeEventListener("load",g),e.removeEventListener("loadstart",b),e.removeEventListener("error",b))}},[u,b,g]);let v=d&&!!n;return i.createElement(f,{$noBorder:!d||t,$shape:r},c,!v&&i.createElement(h,{$disabled:s,$url:o,"aria-label":e}),i.createElement(p,{...l,$disabled:s,$shown:v,alt:e,decoding:a,ref:u,src:n,onError:()=>m(!1),onLoad:()=>m(!0)}))};m.displayName="Avatar";let g=a.ZP.div(({theme:e,$state:t,$empty:r})=>a.iv` 64 width: 100vw; 65 height: 100vh; 66 position: fixed; 67 overflow: hidden; 68 z-index: 999; 69 top: 0; 70 left: 0; 71 transition: ${e.transitionDuration[300]} all 72 ${e.transitionTimingFunction.popIn}; 73 74 ${r||"entered"!==t?a.iv` 75 background-color: rgba(0, 0, 0, 0); 76 @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { 77 backdrop-filter: blur(0px); 78 } 79 `:a.iv` 80 background-color: rgba(0, 0, 0, ${e.opacity.overlayFallback}); 81 82 @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { 83 backdrop-filter: blur(16px); 84 background-color: rgba(0, 0, 0, ${e.opacity.overlay}); 85 } 86 `} 87 `),b={none:"none","-px":"inset 0 0 0 1px",0:"0 0 0 0","0.02":"0 2px 8px","0.25":"0 2px 12px","0.5":"0 0 0 0.125rem",1:"0 0 0 0.25rem",2:"0 0 0 0.5rem"},v=[50,100,300,400,500,750],y={Surface:50,Light:100,Bright:300,Primary:400,Dim:500,Active:750},w={blue:[216,100,61,{50:[215,100,97]}],indigo:[242,61,58],purple:[280,62,55],pink:[331,67,51,{100:[331,64,88]}],red:[7,76,44,{50:[0,60,94],100:[360,60,85]}
87],orange:[35,91,50,{100:[36,89,86]}],yellow:[47,86,49,{50:[48,100,90],100:[48,100,85]}],green:[162,72,40,{50:[157,37,93],100:[157,37,85]}],teal:[199,66,49],grey:[240,6,63,{50:[0,0,96],100:[0,0,91],500:[0,0,35],750:[0,0,15]}]},E={light:"0 0% 100%",dark:"0 0% 8%"},x={background:{hue:"grey",items:{primary:E,secondary:"Surface"}},text:{hue:"grey",items:{primary:"Active",secondary:"Dim",tertiary:"Primary",accent:{light:E.light,dark:E.light}}},border:{hue:"grey",items:{primary:"Light"}}},C={blue:"linear-gradient(330.4deg, #44BCF0 4.54%, #7298F8 59.2%, #A099FF 148.85%)",green:"linear-gradient(90deg, rgba(68,240,127,1) 4.54%, rgba(114,248,176,1) 59.2%, rgba(153,202,255,1) 148.85%)",red:"linear-gradient(90deg, rgba(240,68,87,1) 4.54%, rgba(248,114,149,1) 59.2%, rgba(212,153,255,1) 148.85%)",purple:"linear-gradient(323.31deg, #DE82FF -15.56%, #7F6AFF 108.43%)",grey:"linear-gradient(330.4deg, #DFDFDF 4.54%, #959595 59.2%, #474747 148.85%)"},A=(e,t,r)=>{"dark"===e&&(r=Object.fromEntries(Object.entries(r).map(([e],t,r)=>[e,r[r.length-t-1][1]])));let n=Object.fromEntries(Object.entries(y).map(([e,n])=>[`${t}${e}`,r[n]]));return{...n,[t]:n[`${t}Primary`]}},P=e=>`${e[0]} ${e[1]}% ${e[2]}%`,j=(e,t,r)=>{let n=Object.fromEntries(v.map(e=>{var t;if(null!=(t=r[3])&&t[e])return[e,P(r[3][e])];let n=r.slice(0,3);return n[2]=n[2]+(400-e)/10,[e,P(n)]}));return{normal:A(e,t,Object.fromEntries(Object.entries(n).map(([e,t])=>[e,`hsl(${t})`]))),raw:A(e,t,n)}},k=(e,t)=>({...C,accent:C[e]||t[e]}),O=(e,t)=>{let r=Object.entries({...w,accent:w[e]}).reduce((e,r)=>
87{let[n,o]=r,i=j(t,n,o);return{...e,...i.normal,raw:{...e.raw,...i.raw}}},{}),n=Object.entries(x).reduce((e,n)=>{let[o,i]=n;for(let[n,a]of Object.entries(i.items)){let s=`${o}${n.replace(/^[a-z]/,e=>e.toUpperCase())}`,c="string"==typeof a?r.raw[`${i.hue}${a}`]:a[t];e[s]=`hsl(${c})`,e.raw[s]=c,"primary"===n&&(e[o]=`hsl(${c})`,e.raw[o]=c)}return e},r);return{...n,gradients:k(e,n)}},S={light:O(n="blue","light"),dark:O(n,"dark")},I={headingOne:"2.25rem",headingTwo:"1.875rem",headingThree:"1.625rem",headingFour:"1.375rem",extraLarge:"1.25rem",large:"1.125rem",body:"1rem",small:"0.875rem",extraSmall:"0.75rem"},T={light:"300",normal:"500",bold:"700",extraBold:"830"},B={headingOne:"3rem",headingTwo:"2.5rem",headingThree:"2.125rem",headingFour:"1.875rem",extraLarge:"1.625rem",large:"1.5rem",body:"1.25rem",small:"1.25rem",extraSmall:"1rem"},_={xs:360,sm:640,md:768,lg:1024,xl:1280},D={light:{0:`${b[0]} ${S.light.backgroundSecondary}`,"0.02":`${b["0.02"]} ${S.light.backgroundSecondary}`,"0.25":`${b["0.25"]} ${S.light.backgroundSecondary}`,"0.5":`${b["0.5"]} ${S.light.backgroundSecondary}`,1:`${b[1]} ${S.light.backgroundSecondary}`},dark:{0:`${b[0]} ${S.dark.backgroundSecondary}`,"0.02":`${b["0.02"]} ${S.dark.backgroundSecondary}`,"0.25":`${b["0.25"]} ${S.dark.backgroundSecondary}`,"0.5":`${b["0.5"]} ${S.dark.backgroundSecondary}`,1:`${b[1]} ${S.dark.backgroundSecondary}`}},$={colors:S,boxShadows:D},M={borderStyles:{none:"none",solid:"solid"},borderWidths:{0:"0px",px:"1px","0.375":"0.09375rem","0.5":"0.125rem","0.75":"0.1875rem",1:"0.25rem","1.25":"0.3125rem","1.5":"0.375rem","1.75":"0.4375rem",2:"0.5rem"},fonts:{mono:'"iAWriter Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',sans:'"Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSizes:I,fontWeights:T,letterSpacings:{"-0.02":"-0.02em","-0.015":"-0.015em","-0.01":"-0.01em",normal:"0","0.03":"0.03em"},lineHeights:B,opacity:{overlay:"0.1",overlayFallback:"0.5"},radii:{none:"0",extraSmall:"2px",small:"4px",medium:"6px",large:"8px",almostExtraLarge:"10px",extraLarge:"12px","2xLarge":"16px","2.5xLarge":"20px","3xLarge":"24px","4xLarge":"40px",full:"9999px",input:"0.5rem",card:"1rem",checkbox:"0.25rem"},shadows:b,space:{0:"0",px:"1px","0.25":"0.0625rem","0.5":"0.125rem","0.75":"0.1875rem",1:"0.25rem","1.25":"0.3125rem","1.5":"0.375rem","1.75":"0.4375rem",2:"0.5rem","2.5":"0.625rem",3:"0.75rem","3.5":"0.875rem",4:"1rem","4.5":"1.125rem",5:"1.25rem","5.5":"1.375rem",6:"1.5rem",7:"1.75rem","7.5":"1.875rem",8:"2rem","8.5":"2.125rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",13:"3.25rem",14:"3.5rem",15:"3.75rem",16:"4rem",18:"4.5rem",20:"5rem","22.5":"5.625rem",24:"6rem",26:"6.5rem",28:"7rem",30:"7.5rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",45:"11.25rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem",112:"28rem",128:"32rem",144:"36rem",168:"42rem",192:"48rem",224:"56rem",256:"64rem",288:"72rem",320:"80rem","1/4":"25%","1/3":"33.333333%","1/2":"50%","2/3":"66.666667%","3/4":"75%",auto:"auto",full:"100%",fit:"fit-content",max:"max-content",min:"min-content",viewHeight:"100vh",viewWidth:"100vw",none:"0"},breakpoints:_,transitionDuration:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionTimingFunction:{linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)",inOut:"cubic-bezier(0.42, 0, 0.58, 1)",popIn:"cubic-bezier(0.15, 1.15, 0.6, 1)"},colors:$.colors.light,boxShadows:$.boxShadows.light,mode:"light"},R=($.colors.dark,$.boxShadows.dark,{min:"min-width",max:"max-width"}),N=Object.keys(_),F=Object.keys(R),L=N.reduce((e,t)=>(e[t]=F.reduce((e,r)=>(e[r]=e=>{let n="max"===r?_[t]-1:_[t];return a.iv` 88 @media (${R[r]}: ${n}px) { 89 ${e}; 90 } 91 `},e),{}),e),{}),U=Object.keys(I),z={headingOne:{weight:"extraBold"},headingTwo:{weight:"bold"},headingThree:{weight:"bold"},headingFour:{weight:"bold"}},H={label:{size:I.extraSmall,lineHeight:B.extraSmall,weight:T.normal},labelHeading:{size:I.small,lineHeight:B.small,weight:T.normal}},q={...H,...Object.fromEntries(U.map(e=>{var t;let r=(null==(t=z[e])?void 0:t.weight)||"normal";return[e,{size:I[e],lineHeight:B[e],weight:T[r]}]})),...Object.fromEntries(["extraLarge","large","body","small","extraSmall"].map(e=>[`${e}Bold`,{size:I[e],lineHeight:B[e],weight:T.bold}]))},G=e=>{var t;return null==(t=q[e])?void 0:t.size},W=e=>{var t;return null==(t=q[e])?void 0:t.lineHeight},K=e=>{var t;return null==(t=q[e])?void 0:t.weight},V=(e=>
91{let t=Object.keys(S[e].gradients),r=Object.fromEntries(t.map(t=>[`${t}Gradient`,S[e].gradients[t]])),n=Object.keys(S[e]).filter(([e])=>"gradients"!==e&&"raw"!==e),o=Object.fromEntries(n.map(t=>[t,S[e][t]]));return{...r,...o,tranparent:"transparent",initial:"initial",inherit:"inherit"}})("light"),Q=["accent","blue","indigo","purple","pink","red","orange","yellow","green","teal","grey"],Z=(e=>{let t=Object.fromEntries(Q.map(t=>[`${t}Primary`,{text:S[e].backgroundPrimary,background:S[e][`${t}Primary`],border:"transparent",hover:S[e][`${t}Bright`]}])),r=Object.fromEntries(Q.map(t=>[`${t}Secondary`,{text:S[e][`${t}Primary`],background:S[e][`${t}Surface`],border:"transparent",hover:S[e][`${t}Light`]}])),n=Object.keys(S[e].gradients),o=Object.fromEntries(n.map(t=>[`${t}Gradient`,{text:S[e].backgroundPrimary,background:S[e].gradients[t],border:"transparent",hover:S[e].gradients[t]}])),i={text:"initial",background:"transparent",border:"transparent",hover:S[e].greyLight},a={text:S[e].greyPrimary,background:S[e].greyLight,border:S[e].greyLight,hover:S[e].greyLight},s={text:S[e].textPrimary,background:S[e].backgroundPrimary,border:S[e].border,hover:S[e].backgroundSecondary};return{...t,...r,...o,transparent:i,disabled:a,background:s}})("light"),Y=e=>V[e],J=(e,t)=>{var r;return null==(r=Z[e])?void 0:r[t]},X=a.ZP.div(({theme:e,$ellipsis:t,$fontVariant:r="body",$color:n,$font:o,$weight:i})=>a.iv` 92 font-family: ${e.fonts.sans}; 93 line-height: ${e.lineHeights.body}; 94 color: ${Y(n)}; 95 96 ${t&&a.iv` 97 text-overflow: ellipsis; 98 overflow: hidden; 99 white-space: nowrap; 100 `} 101 102 ${r&&a.iv` 103 font-size: ${G(r)}; 104 font-weight: ${K(r)}; 105 line-height: ${W(r)}; 106 `} 107 108 ${"mono"===o&&a.iv` 109 font-family: ${e.fonts.mono}; 110 `} 111 112 ${i&&a.iv` 113 font-weight: ${e.fontWeights[i]}; 114 `}; 115 `),ee=i.forwardRef(({asProp:e,children:t,ellipsis:r,className:n,fontVariant:o="body",font:a="sans",color:s="text",weight:c,...l},u)=>i.createElement(X,{...l,$color:s,$ellipsis:!!r||void 0,$font:a,$fontVariant:o,$weight:c,as:e,className:n,ref:u},t));ee.displayName="Typography";let et=a.ZP.div(({theme:e,$alert:t,$hasAction:r})=>a.iv` 116 position: relative; 117 background: ${e.colors.backgroundPrimary}; 118 border: 1px solid ${e.colors.border}; 119 border-radius: ${e.radii["2xLarge"]}; 120 padding: ${e.space[4]}; 121 display: flex; 122 align-items: stretch; 123 gap: ${e.space[4]}; 124 width: ${e.space.full}; 125 transition: all 150ms ease-in-out; 126 127 ${L.sm.min(a.iv` 128 padding: ${e.space[6]}; 129 gap: ${e.space[6]}; 130 align-items: center; 131 `)} 132 133 ${r&&a.iv` 134 padding-right: ${e.space[8]}; 135 &:hover { 136 transform: translateY(-1px); 137 background: ${e.colors.greySurface}; 138 ${"error"===t&&a.iv` 139 background: ${e.colors.redLight}; 140 `} 141 ${"warning"===t&&a.iv` 142 background: ${e.colors.yellowLight}; 143 `} 144 } 145 `} 146 147 ${"error"===t&&a.iv` 148 background: ${e.colors.redSurface}; 149 border: 1px solid ${e.colors.redPrimary}; 150 `} 151 152 ${"warning"===t&&a.iv` 153 background: ${e.colors.yellowSurface}; 154 border: 1px solid ${e.colors.yellowPrimary}; 155 `}; 156 `),er=a.ZP.div(({theme:e})=>a.iv` 157 flex: 1; 158 display: flex; 159 flex-direction: column; 160 justify-content: center; 161 gap: ${e.space[1]}; 162 `),en=a.ZP.div(({theme:e,$alert:t,$type:r})=>a.iv` 163 width: ${e.space[8]}; 164 height: ${e.space[8]}; 165 flex: 0 0 ${e.space[8]}; 166 167 svg { 168 display: block; 169 width: 100%; 170 height: 100%; 171 } 172 173 ${L.sm.min(a.iv` 174 width: ${e.space[10]}; 175 height: ${e.space[10]}; 176 flex: 0 0 ${e.space[10]}; 177 `)} 178 179 ${"filledCircle"===r&&a.iv` 180 color: ${e.colors.backgroundPrimary}; 181 border-radius: ${e.radii.full}; 182 183 svg { 184 transform: scale(0.5); 185 } 186 187 ${"info"===t&&a.iv` 188 background: ${e.colors.text}; 189 `} 190 `} 191 192 ${"error"===t&&a.iv` 193 background: ${e.colors.redPrimary}; 194 `} 195 196 ${"warning"===t&&a.iv` 197 background: ${e.colors.yellowPrimary}; 198 `} 199 `),eo=a.ZP.button(({theme:e})=>a.iv` 200 position: absolute; 201 top: 0; 202 right: 0; 203 padding: ${e.space[2]}; 204 `),ei=a.ZP.div(({theme:e,$alert:t,$hasAction:r})=>a.iv` 205 width: ${e.space[5]}; 206 height: ${e.space[5]}; 207 border-radius: ${e.radii.full}; 208 background: ${e.colors.accentSurface}; 209 color: ${e.colors.accentPrimary}; 210 transition: all 150ms ease-in-out; 211 212 display: flex; 213 align-items: center; 214 justify-content: center; 215 216 svg { 217 display: block; 218 width: ${e.space[3]}; 219 height: ${e.space[3]}; 220 } 221 222 ${"error"===t&&a.iv` 223 background: ${e.colors.backgroundPrimary}; 224 color: ${e.colors.redPrimary}; 225 `} 226 227 ${"warning"===t&&a.iv` 228 background: ${e.colors.backgroundPrimary}; 229 color: ${e.colors.yellowPrimary}; 230 `} 231 232 ${r&&a.iv` 233 cursor: pointer; 234 &:hover { 235 transform: translateY(-1px); 236 background: ${e.colors.accentLight}; 237 color: ${e.colors.accentDim}; 238 ${"error"===t&&a.iv` 239 background: ${e.colors.redLight}; 240 color: ${e.colors.redDim}; 241 `} 242 ${"warning"===t&&a.iv` 243 background: ${e.colors.yellowLight}; 244 color: ${e.colors.yellowDim}; 245 `} 246 } 247 `} 248 `),ea=({alert:e="info",icon:t,hasHref:r,onDismiss:n})=>n?i.createElement(eo,{onClick:()=>n()},i.createElement(ei,{$alert:e,$hasAction:!0}
248,t||i.createElement(ts,null))):r||t?i.createElement(eo,{as:"div"},i.createElement(ei,{$alert:e},t||i.createElement(th,null))):null,es=(e,t)=>"info"!==e?"filledCircle":t?"normal":"none",ec=i.forwardRef(({title:e,alert:t="info",icon:r,iconType:n,as:o,children:a,onDismiss:s,...c},l)=>{let u=r||(t&&["error","warning"].includes(t)?i.createElement(ti,null):i.createElement(tu,null)),d=!!c.href,f=d||!!c.onClick,h=n||es(t,r);return i.createElement(et,{...c,$alert:t,$hasAction:f,as:o,ref:l},"none"!==h&&i.createElement(en,{$alert:t,$type:h},u),i.createElement(er,null,e&&i.createElement(ee,{fontVariant:"largeBold"},e),i.createElement(ee,null,a)),i.createElement(ea,{alert:t,hasHref:d,icon:c.actionIcon,onDismiss:s}))});ec.displayName="Banner";let el=a.ZP.div(()=>a.iv` 249 border-width: 0; 250 height: 1px; 251 margin: -1px; 252 overflow: hidden; 253 padding: 0; 254 position: absolute; 255 white-space: nowrap; 256 width: 1px; 257 `),eu=a.F4` 258 100% { 259 transform: rotate(1turn); 260 } 261`,ed=a.ZP.div(({theme:e,$color:t,$size:r})=>a.iv` 262 animation: ${eu} 1.1s linear infinite; 263 264 color: ${e.colors[t]}; 265 stroke: ${e.colors[t]}; 266 267 ${()=>{switch(r){case"small":return a.iv` 268 height: ${e.space[4]}; 269 width: ${e.space[4]}; 270 stroke-width: ${e.space[1]}; 271 `;case"medium":return a.iv` 272 height: ${e.space[6]}; 273 stroke-width: ${e.space["1.25"]}; 274 width: ${e.space[6]}; 275 `;case"large":return a.iv` 276 height: ${e.space[16]}; 277 stroke-width: ${e.space[1]}; 278 width: ${e.space[16]}; 279 `;default:return""}}} 280 281 svg { 282 display: block; 283 height: 100%; 284 width: 100%; 285 } 286 `),ef=i.forwardRef(({accessibilityLabel:e,size:t="small",color:r="text",...n},o)=>i.createElement(ed,{$color:r,$size:t,ref:o,...n},e&&i.createElement(el,null,e),i.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"9",strokeDasharray:"42",strokeLinecap:"round"}),i.createElement("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"9",strokeLinecap:"round"}))));ef.displayName="Spinner";let eh=a.ZP.button(({theme:e,$pressed:t,$shadow:r,$size:n,$colorStyle:o="accentPrimary",$shape:i,$hasCounter:s,$width:c})=>a.iv` 287 position: relative; 288 cursor: pointer; 289 display: flex; 290 align-items: center; 291 justify-content: center; 292 gap: ${e.space[2]}; 293 294 transition-property: all; 295 transition-duration: ${e.transitionDuration[150]}; 296 transition-timing-function: ${e.transitionTimingFunction.inOut}; 297 width: 100%; 298 border-radius: ${e.radii.large}; 299 font-weight: ${e.fontWeights.bold}; 300 border-width: ${e.borderWidths.px}; 301 border-style: ${e.borderStyles.solid}; 302 303 background: ${J(o,"background")}; 304 color: ${J(o,"text")}; 305 border-color: ${J(o,"border")}; 306 307 /* solves sticky problem */ 308 @media (hover: hover) { 309 &:hover { 310 transform: translateY(-1px); 311 background: ${J(o,"hover")}; 312 } 313 &:active { 314 transform: translateY(0px); 315 } 316 } 317 @media (hover: none) { 318 &:active { 319 transform: translateY(-1px); 320 background: ${J(o,"hover")}; 321 } 322 } 323 324 &:disabled { 325 cursor: not-allowed; 326 background: ${J("disabled","background")}; 327 transform: none; 328 color: ${J("disabled","text")}; 329 border-color: transparent; 330 } 331 332 ${t&&a.iv` 333 background: ${J(o,"hover")}; 334 `}; 335 336 ${r&&a.iv` 337 box-shadow: ${e.shadows["0.25"]} ${e.colors.grey}; 338 `}; 339 340 ${"small"===n&&a.iv` 341 font-size: ${e.fontSizes.small}; 342 line-height: ${e.lineHeights.small}; 343 height: ${e.space[10]}; 344 padding: 0 ${e.space["3.5"]}; 345 svg { 346 display: block; 347 width: ${e.space[3]}; 348 height: ${e.space[3]}; 349 color: ${J(o,"text")}; 350 } 351 `} 352 353 ${"medium"===n&&a.iv` 354 font-size: ${e.fontSizes.body}; 355 line-height: ${e.lineHeights.body}; 356 height: ${e.space[12]}; 357 padding: 0 ${e.space[4]}; 358 svg { 359 display: block; 360 width: ${e.space[4]}; 361 height: ${e.space[4]}; 362 color: ${J(o,"text")}; 363 } 364 `} 365 366 &:disabled svg { 367 color: ${J("disabled","text")}; 368 } 369 370 ${("circle"===i||"rounded"===i)&&a.iv` 371 border-radius: ${e.radii.full}; 372 `} 373 374 ${("circle"===i||"square"===i)&&"small"===n&&a.iv` 375 width: ${e.space[10]}; 376 `} 377 378 ${("circle"===i||"square"===i)&&"medium"===n&&a.iv` 379 width: ${e.space[12]}; 380 `} 381 382 ${s&&a.iv` 383 padding: 0 ${e.space[12]}; 384 `} 385 386 ${c&&a.iv` 387 width: ${e.space[c]}; 388 `} 389 `),ep=a.ZP.div(({$fullWidth:e})=>a.iv` 390 overflow: hidden; 391 text-overflow: ellipsis; 392 white-space: nowrap; 393 394 ${e&&a.iv` 395 width: 100%; 396 `} 397 `),em=a.ZP.div(({theme:e})=>a.iv` 398 position: absolute; 399 top: 0; 400 right: 0; 401 height: 100%; 402 padding-right: ${e.space[3]}; 403 404 display: flex; 405 align-items: center; 406 justify-content: flex-end; 407 pointer-events: none; 408 `),eg=a.ZP.div(({theme:e,$visible:t})=>a.iv` 409 display: flex; 410 padding: 0 ${e.space[1]}; 411 justify-content: center;
412 align-items: center; 413 border: 2px solid white; 414 border-radius: ${e.radii.full}; 415 font-size: ${e.space[3]}; 416 min-width: ${e.space[6]}; 417 height: ${e.space[6]}; 418 box-sizing: border-box; 419 transform: scale(1); 420 opacity: 1; 421 transition: all 0.3s ease-in-out; 422 423 ${!t&&a.iv` 424 transform: scale(0.3); 425 opacity: 0; 426 `} 427 `),eb=a.ZP.div` 428 display: flex; 429 align-items: center; 430 justify-content: center; 431 background: #e9b911; 432 border-radius: 50%; 433 width: 24px; 434 height: 24px; 435 position: absolute; 436 right: -10px; 437 top: -10px; 438 color: white; 439`,ev=i.forwardRef(({children:e,disabled:t,href:r,prefix:n,loading:o,rel:a,shape:s,size:c="medium",suffix:l,tabIndex:u,target:d,colorStyle:f="accentPrimary",type:h="button",zIndex:p,onClick:m,pressed:g=!1,shadow:b=!1,width:v,fullWidthContent:y,count:w,shouldShowTooltipIndicator:E,as:x,...C},A)=>{let P;let j=i.createElement(ep,{$fullWidth:y},e),k=t?"greyPrimary":"backgroundPrimary";if("circle"===s||"square"===s)P=o?i.createElement(ef,{color:k}):j;else{let e=!!n,t=!e&&!l,r=!e&&!!l,a=n;o&&e?a=i.createElement(ef,{color:k}):o&&t&&(a=i.createElement(ef,{color:k}));let s=l;o&&r&&(s=i.createElement(ef,{color:k})),P=i.createElement(i.Fragment,null,!!a&&a,j,!!s&&s)}return i.createElement(eh,{...C,$colorStyle:f,$hasCounter:!!w,$pressed:g,$shadow:b,$shape:s,$size:c,$width:v,as:x,disabled:t,href:r,position:p&&"relative",ref:A,rel:a,tabIndex:u,target:d,type:h,zIndex:p,onClick:m},E&&i.createElement(eb,{"data-testid":"tooltip-indicator"},"?"),P,i.createElement(em,null,i.createElement(eg,{$visible:!!w},w)))});ev.displayName="Button";let ey=a.ZP.div(({theme:e})=>a.iv` 440 display: flex; 441 flex-direction: column; 442 gap: ${e.space[4]}; 443 444 padding: ${e.space[4]}; 445 border-radius: ${e.radii["2xLarge"]}; 446 background-color: ${e.colors.backgroundPrimary}; 447 border: 1px solid ${e.colors.border}; 448 449 ${L.sm.min(a.iv` 450 padding: ${e.space[6]}; 451 `)} 452 `),ew=a.ZP.div(({theme:e})=>a.iv` 453 width: calc(100% + 2 * ${e.space[4]}); 454 height: 1px; 455 background: ${e.colors.border}; 456 margin: 0 -${e.space[4]}; 457 ${L.sm.min(a.iv` 458 margin: 0 -${e.space[6]}; 459 width: calc(100% + 2 * ${e.space[6]}); 460 `)} 461 `),eE=({title:e,children:t,...r})=>i.createElement(ey,{...r},e&&i.createElement(ee,{fontVariant:"headingFour"},e),t);eE.displayName="Card",eE.Divider=ew;let ex=({children:e,className:t,el:r="div",renderCallback:n})=>{let[o]=i.useState(document.createElement(r));return t&&o.classList.add(t),i.useEffect(()=>(document.body.appendChild(o),null==n||n(),()=>{document.body.removeChild(o)}),[n]),d.createPortal(e,o)};ex.displayName="Portal";let eC=(e,t,r,n,o)=>{let i=t.top-r.height-n-o,a=t.left-r.width-n-o,s=window.innerWidth-t.left-t.width-r.width-n-o,c=window.innerHeight-t.top-t.height-r.height-n-o;return"top"===e&&i<0&&c>i?"bottom":"right"===e&&s<0&&a>s?"left":"bottom"===e&&c<0&&i>c?"top":"left"===e&&a<0&&s>a?"right":e},eA=(e,t,r,n)=>({translate:"top"===r?`translate(0, -${t}px)`:"right"===r?`translate(${e}px, 0)`:"bottom"===r?`translate(0, ${t}px)`:`translate(-${e}px, 0);`,mobileTranslate:"top"===n?`translate(0, -${t}px)`:"right"===n?`translate(${e}px, 0)`:"bottom"===n?`translate(0, ${t}px)`:`translate(-${e}px, 0);`}),eP=e=>"number"==typeof e?`${e}px`:e,ej=a.ZP.div(({$state:e,$translate:t,$mobileTranslate:r,$width:n,$mobileWidth:o,$x:i,$y:s,$isControlled:c,$transitionDuration:l,$hideOverflow:u})=>[a.iv` 462 /* stylelint-disable */ 463 -webkit-backface-visibility: hidden; 464 -moz-backface-visibility: hidden; 465 -webkit-transform: translate3d(0, 0, 0); 466 -moz-transform: translate3d(0, 0, 0); 467 /* stylelint-enable */ 468 469 /* Default state is unmounted */ 470 display: block; 471 box-sizing: border-box; 472 visibility: hidden; 473 position: absolute; 474 z-index: 99999; 475 width: ${eP(o)}; 476 transform: translate3d(0, 0, 0) ${r}; 477 transition: none; 478 opacity: 0; 479 pointer-events: none; 480 top: 0; 481 left: 0; 482 483 ${u&&a.iv` 484 overflow: hidden; 485 `} 486 487 ${"preEnter"===e&&a.iv` 488 display: block; 489 visibility: visible; 490 top: ${s}px; 491 left: ${i}px; 492 `} 493 494 ${"entering"===e&&a.iv` 495 display: block; 496 visibility: visible; 497 opacity: 1; 498 transition: opacity ${l}ms ease-in-out; 499 top: ${s}px; 500 left: ${i}px; 501 `} 502 503 ${"entered"===e&&a.iv` 504 display: block; 505 visibility: visible; 506 opacity: 1; 507 transition: opacity ${l}ms ease-in-out; 508 top: ${s}px; 509 left: ${i}px; 510 511 ${c&&a.iv` 512 pointer-events: auto; 513 `} 514 `} 515 516 ${"exiting"===e&&a.iv` 517 display: block; 518 visibility: visible; 519 opacity: 0; 520 transition: all ${l}ms ease-in-out; 521 top: ${s}px; 522 left: ${i}px; 523 `} 524 `,L.sm.min(a.iv` 525 width: ${eP(n)}; 526 transform: translate3d(0, 0, 0) ${t}; 527 `)]),ek=({popover:e,placement:t="top",mobilePlacement:r="top",animationFn:n,anch
527orRef:o,onShowCallback:a,width:s=250,mobileWidth:c=150,useIdealPlacement:l=!1,additionalGap:d=0,transitionDuration:f=350,isOpen:h,align:p="center",hideOverflow:m})=>{let g=i.useRef(),b=void 0!==h,[v,y]=i.useState({top:100,left:100,horizontalClearance:100,verticalClearance:100,idealPlacement:t,idealMobilePlacement:r}),w=i.useCallback(()=>{let e=null==o?void 0:o.current,n=null==e?void 0:e.getBoundingClientRect(),i=null==g?void 0:g.current,a=null==i?void 0:i.getBoundingClientRect();if(!a||!n)return;let s=a.width/2,c=n.width/2,l=a.height/2,u=n.height/2;"top"===t||"bottom"===t?"start"===p?(s=0,c=0):"end"===p&&(s=a.width,c=n.width):"start"===p?(l=0,u=0):"end"===p&&(l=a.height,u=n.height);let f=window.scrollY+n.y+u-l,h=n.x+c-s,m=s+c+d+10,b=l+u+d+10,v=eC(t,n,a,0,0),w=eC(r,n,a,0,0);y({top:f,left:h,horizontalClearance:m,verticalClearance:b,idealPlacement:v,idealMobilePlacement:w})},[t,r,d,o,p]),E=i.useCallback(e=>{e&&(g.current=e,w())},[w]),x=i.useMemo(()=>n?(e,t,r,o)=>n(e,t,r,o):(e,t,r,n)=>eA(e,t,r,n),[n]);i.useEffect(()=>{let e,t;w();let r=()=>{w()},n=null==o?void 0:o.current;return b||(e=()=>{w(),A(!0),null==a||a()},t=()=>{A(!1)},null==n||n.addEventListener("mouseenter",e),null==n||n.addEventListener("mouseleave",t)),addEventListener("resize",r),()=>{b||(null==n||n.removeEventListener("mouseenter",e),null==n||n.removeEventListener("mouseleave",t)),removeEventListener("resize",r)}},[t,r,w,d,a,o,b]),i.useEffect(()=>{b&&A(h)},[b,h]);let[C,A]=u({preEnter:!0,exit:!0,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:f,exit:f}}),P=l?v.idealPlacement:t,j=l?v.idealMobilePlacement:r,{translate:k,mobileTranslate:O}=x(v.horizontalClearance,v.verticalClearance,P,j),S=i.useCallback(()=>{w(),null==a||a()},[w,a]);return"unmounted"===C?null:i.createElement(ex,{renderCallback:S},i.createElement(ej,{$hideOverflow:m,$isControlled:b,$mobileTranslate:O,$mobileWidth:c,$state:C,$transitionDuration:f,$translate:k,$width:s,$x:v.left,$y:v.top,"data-testid":"popoverContainer",id:"popoverContainer",ref:E},i.cloneElement(e,{placement:P,mobilePlacement:j,state:C})))};ek.displayName="DynamicPopover";let eO=(e,t,r,n)=>{let o=t=>{e.current&&!e.current.contains(t.target)&&r()};(0,i.useEffect)(()=>(n?document.addEventListener(t,o):document.removeEventListener(t,o),()=>{document.removeEventListener(t,o)}),[n])},eS="u">typeof window?i.useLayoutEffect:i.useEffect,eI={serverHandoffComplete:!1},eT=()=>{let[e,t]=i.useState(eI.serverHandoffComplete);return i.useEffect(()=>{e||t(!0)},[e]),i.useEffect(()=>{eI.serverHandoffComplete||(eI.serverHandoffComplete=!0)},[]),e},eB=0;function e_(){return++eB}let eD=()=>{let e=eT(),[t,r]=i.useState(e?e_:null);return eS(()=>{null===t&&r(e_())},[t]),null!=t?"thorin"+t:void 0},e$=({description:e,error:t,id:r}={})=>{let n=eD();return i.useMemo(()=>{let o,i,a;let s=`${n}${r?`-${r}`:""}`,c=`${s}-label`;return e&&(o=(i={id:`${s}-description`}).id),t&&(o=`${o?`${o} `:""}${(a={id:`${s}-error`}).id}`),{content:{"aria-describedby":o,"aria-labelledby":c,id:s},description:i,error:a,label:{htmlFor:s,id:c}}},[n,e,t,r])},eM=i.createContext(void 0),eR=a.ZP.label(({theme:e,$disabled:t,$readOnly:r,$required:n})=>a.iv` 528 display: flex; 529 flex-basis: auto; 530 flex-grow: 2; 531 flex-shrink: 1; 532 overflow: hidden; 533 position: relative; 534 cursor: pointer; 535 536 ${r&&a.iv` 537 cursor: default; 538 pointer-events: none; 539 `} 540 541 ${t&&a.iv` 542 cursor: not-allowed; 543 `} 544 545 ${n&&a.iv` 546 ::after { 547 content: ' *'; 548 white-space: pre; 549 color: ${e.colors.red}; 550 } 551 `} 552 `),eN=(0,a.ZP)(ee)(()=>a.iv` 553 width: 100%; 554 `),eF=(0,a.ZP)(ee)(()=>a.iv` 555 flex-basis: auto; 556 flex-grow: 0; 557 flex-shrink: 2; 558 text-align: right; 559 overflow: hidden; 560 position: relative; 561 `),eL=a.ZP.div(({theme:e,$inline:t})=>a.iv` 562 display: flex; 563 align-items: center; 564 padding: 0 ${t?"0":e.space[2]}; 565 overflow: hidden; 566 gap: ${e.space[2]}; 567 `),eU=({ids:e,label:t,labelSecondary:r,required:n,hideLabel:o,inline:a,disabled:s,readOnly:c})=>{let l=i.createElement(eL,{$inline:a},i.createElement(eR,{$disabled:s,$readOnly:c,$required:n,...e.label},i.createElement(eN,{color:"greyPrimary",ellipsis:!0,fontVariant:"bodyBold"},t,n&&i.createElement(el,null,"required"))),r&&i.createElement(eF,{color:"greyPrimary",ellipsis:!0,fontVariant:"extraSmall"},r));return o?i.createElement(el,null,l):l},ez=(0,a.ZP)(ee)(({theme:e,$inline:t})=>a.iv` 568 padding: 0 ${t?"0":e.space[2]}; 569 width: 100%; 570 overflow: hidden; 571 `),eH=(0,a.ZP)(ee)(({theme:e,$inline:t})=>` 572 padding: 0 ${t?"0":e.space[2]}; 573`),eq=({ids:e,error:t,description:r,hideLabel:n,inline:o,disabled:a})=>n?null:t?i.createElement(eH,{"aria-live":"polite",...e.error,$inline:o,color:"redPrimary",fontVariant:"smallBold"},t):r?i.createElement(ez,{$inline:o,...e.description,color:a?"greyPrimary":"textPrimary",colorScheme:a?"secondary":"primary",ellipsis:!0,fontVariant:"small"}
573,r):null,eG=a.ZP.div(({theme:e,$inline:t,$width:r,$reverse:n})=>a.iv` 574 position: relative; 575 display: flex; 576 flex-direction: column; 577 justify-content: flex-start; 578 align-items: 'normal'; 579 gap: ${e.space[2]}; 580 width: ${e.space[r]}; 581 582 ${t&&a.iv` 583 flex-direction: ${n?"row-reverse":"row"}; 584 align-items: 'flex-start'; 585 `} 586 `),eW=a.ZP.div(({theme:e})=>a.iv` 587 display: flex; 588 flex-direction: column; 589 gap: ${e.space[1]}; 590 flex: 1; 591 overflow: hidden; 592 `),eK=({children:e,description:t,error:r,hideLabel:n,id:o,label:a,labelSecondary:s,required:c,inline:l,readOnly:u,width:d="full",reverse:f=!1,disabled:h,...p})=>{let m;let g=e$({id:o,description:void 0!==t,error:void 0!==r});m="function"==typeof e?i.createElement(eM.Provider,{value:g},i.createElement(eM.Consumer,null,t=>e(t))):e?i.cloneElement(e,g.content):e;let b=i.createElement(eU,{...p,ids:g,label:a,labelSecondary:s,required:c,hideLabel:n,inline:l,disabled:h,readOnly:u}),v=i.createElement(eq,{ids:g,error:r,description:t,hideLabel:n,inline:l,disabled:h});return l?i.createElement(eG,{$inline:l,$reverse:f,$width:d},i.createElement("div",null,m),i.createElement(eW,null,b,v)):i.createElement(eG,{$width:d},b,m,v)};eK.displayName="Field";let eV=(e,t)=>{let r=null==t?void 0:t.split(", ");if(!r)return!0;let n=eQ(e);return r.some(e=>{let t=eQ(e);return t.type===n.type&&t.subtype===n.subtype})},eQ=e=>{let t=e.split("/");return{type:t[0],subtype:t[1]}},eZ={},eY=i.forwardRef(({accept:e,autoFocus:t,children:r,defaultValue:n,disabled:o,error:a,id:s,maxSize:c,name:l,required:u,tabIndex:d,onBlur:f,onChange:h,onError:p,onFocus:m,onReset:g,...b},v)=>{let y=i.useRef(null),w=v||y,[E,x]=i.useState(eZ),C=!!a||void 0,A=e$({id:s,error:C}),P=i.useCallback((e,t)=>{if(c&&e.size>1e6*c){null==t||t.preventDefault(),p&&p(`File is ${(e.size/1e6).toFixed(2)} MB. Must be smaller than ${c} MB`);return}x(t=>({...t,file:e,name:e.name,type:e.type})),h&&h(e)},[c,h,p]),j=i.useCallback(e=>{let t=e.target.files;null!=t&&t.length&&P(t[0],e)},[P]),k=i.useCallback(e=>{e.preventDefault(),x(e=>({...e,droppable:!0}))},[]),O=i.useCallback(e=>{e.preventDefault(),x(e=>({...e,droppable:!1}))},[]),S=i.useCallback(t=>{let r;if(t.preventDefault(),x(e=>({...e,droppable:!1})),t.dataTransfer.items){let e=t.dataTransfer.items;if((null==e?void 0:e[0].kind)!=="file"||!(r=e[0].getAsFile()))return}else{let e=t.dataTransfer.files;if(!(null!=e&&e.length))return;r=e[0]}eV(r.type,e)&&P(r,t)},[P,e]),I=i.useCallback(e=>{x(e=>({...e,focused:!0})),m&&m(e)},[m]),T=i.useCallback(e=>{x(e=>({...e,focused:!1})),f&&f(e)},[f]),B=i.useCallback(e=>{e.preventDefault(),x(eZ),w.current&&(w.current.value=""),g&&g()},[w,g]);return i.useEffect(()=>{n&&x({previewUrl:n.url,name:n.name,type:n.type})},[]),i.useEffect(()=>{if(!E.file)return;let e=URL.createObjectURL(E.file);return x(t=>({...t,previewUrl:e})),()=>URL.revokeObjectURL(e)},[E.file]),i.createElement("div",null,i.createElement(el,null,i.createElement("input",{...b,...A.content,accept:e,"aria-invalid":C,autoFocus:t,disabled:o,name:l,ref:w,required:u,tabIndex:d,type:"file",onBlur:T,onChange:j,onFocus:I})),i.createElement("label",{...A.label,onDragLeave:O,onDragOver:k,onDrop:S},r({...E,reset:B})))});eY.displayName="FileInput";let eJ=a.ZP.div(({theme:e,$textAlign:t,$textTransform:r,$level:n,$responsive:o,$color:i})=>a.iv` 593 ${t?a.iv` 594 text-align: ${t}; 595 `:""} 596 ${r?a.iv` 597 text-transform: ${r}; 598 `:""} 599 600 ${()=>{switch(n){case"1":return a.iv` 601 font-size: ${e.fontSizes.headingOne}; 602 font-weight: ${e.fontWeights.extraBold}; 603 line-height: ${e.lineHeights.headingOne}; 604 `;case"2":return a.iv` 605 font-size: ${e.fontSizes.headingTwo}; 606 font-weight: ${e.fontWeights.bold}; 607 line-height: ${e.lineHeights.headingTwo}; 608 `;default:return""}}} 609 610 ${()=>{if(o)switch(n){case"1":return a.iv` 611 font-size: ${e.fontSizes.headingTwo}; 612 line-height: ${e.lineHeights.headingTwo}; 613 ${L.lg.min(a.iv` 614 font-size: ${e.fontSizes.headingOne}; 615 line-height: ${e.lineHeights.headingOne}; 616 `)} 617 `;case"2":return a.iv` 618 font-size: ${e.fontSizes.extraLarge}; 619 line-height: ${e.lineHeights.extraLarge}; 620 ${L.sm.min(a.iv` 621 font-size: ${e.fontSizes.headingTwo}; 622 line-height: ${e.lineHeights.headingTwo}; 623 `)} 624 `;default:return""}}} 625 626 ${i&&a.iv` 627 color: ${Y(i)}; 628 `} 629 630 font-family: ${e.fonts.sans}; 631 `),eX=i.forwardRef(({align:e,children:t,as:r="h1",id:n,level:o="2",responsive:a,transform:s,color:c="text",...l},u)=>i.createElement(eJ,{...l,$color:c,$level:o,$responsive:a,$textAlign:e,$textTransform:s,as:r,id:n,ref:u},t));eX.displayName="Heading",a.ZP.button(({theme:e,$inline:t})=>a.iv` 632 display: flex; 633 align-items: flex-start; 634 635 gap: ${e.space[2]}; 636 padding: ${e.space["2.5"]} ${e.space[3]}; 637 width: 100%; 638 height: fit-content; 639 background: ${e.colors.greySurface}; 640 border: 1px solid ${e.colors.border}; 641 border-radius: ${e.radii.large}; 642 transition: all 150ms ease-in-out; 643 cursor: pointer; 644 645 ${t&&a.iv` 646 width: fit-content; 647 height: ${e.space[10]}; 648 `} 649 650 &:hover { 651 transform: translateY(-1px); 652 background: ${e.colors.greyLight}; 653 } 654 `),a.ZP.div(({theme:e,$inline:t,$size:r})=>a.iv` 655 display: flex; 656 gap: ${e.space[2]}; 657 align-items: flex-start; 658 width: ${"large"===r?e.space[30]:e.space["22.5"]}; 659 flex: 0 0 ${"large"===r?e.space[30]:e.space["22.5"]}; 660 661 ${t&&a.iv` 662 width: fit-content; 663 flex: initial; 664 `} 665 `),a.ZP.div(({theme:e,$inline:t})=>a.iv` 666 display: flex; 667 flex-direction: column; 668 align-items: flex-start; 669 gap: 0; 670 overflow: hidden; 671 672 ${t&&a.iv` 673 flex-direction: row; 674 gap: ${e.space[2]}; 675 align-items: center; 676 `} 677 `),(0,a.ZP)(ee)(()=>a.iv` 678 text-align: left; 679 width: 100%; 680 `),a.ZP.div(({theme:e})=>a.iv` 681 svg { 682 display: block; 683 width: ${e.space[5]}; 684 height: ${e.space[5]}; 685 } 686 `),(0,a.ZP)(ee)(({$inline:e})=>a.iv` 687 flex: 1; 688 text-align: left; 689 word-break: break-all; 690 691 ${e&&a.iv` 692 word-break: initial; 693 `} 694 `),a.ZP.svg(({theme:e,$rotate:t})=>a.iv` 695 display: block; 696 margin-top: ${e.space[1]}; 697 width: ${e.space[3]}; 698 height: ${e.space[3]}; 699 color: ${e.colors.greyPrimary}; 700 ${t&&a.iv` 701 transform: rotate(45deg); 702 `} 703 `);let e0=a.ZP.div(({theme:e,$showTop:t,$showBottom:r})=>a.iv` 704 overflow: auto; 705 position: relative; 706 707 border-color: ${e.colors.greyLight}; 708 transition: border-color 0.15s ease-in-out; 709 710 /* stylelint-disable-next-line selector-pseudo-element-no-unknown */ 711 &::-webkit-scrollbar-track { 712 background-color: transparent; 713 } 714 715 &::-webkit-scrollbar {
716 background-color: transparent; 717 } 718 719 &::-webkit-scrollbar:vertical { 720 width: ${e.space["1.5"]}; 721 background-color: transparent; 722 } 723 724 &::-webkit-scrollbar:horizontal { 725 height: ${e.space["1.5"]}; 726 background-color: transparent; 727 } 728 729 &::-webkit-scrollbar-thumb:vertical { 730 border: none; 731 border-radius: ${e.radii.full}; 732 border-right-style: inset; 733 border-right-width: calc(100vw + 100vh); 734 border-color: inherit; 735 } 736 737 &::-webkit-scrollbar-thumb:horizontal { 738 border: none; 739 border-radius: ${e.radii.full}; 740 border-bottom-style: inset; 741 border-bottom-width: calc(100vw + 100vh); 742 border-color: inherit; 743 } 744 745 &::-webkit-scrollbar-button { 746 display: none; 747 } 748 749 &:hover { 750 border-color: ${e.colors.greyBright}; 751 } 752 753 &::before, 754 &::after { 755 content: ''; 756 position: sticky; 757 left: 0; 758 width: 100%; 759 display: block; 760 height: ${e.space.px}; 761 background-color: hsla(${e.colors.raw.greyLight} / 0); 762 transition: background-color 0.15s ease-in-out; 763 } 764 765 &::before { 766 top: 0; 767 ${t&&a.iv` 768 background-color: hsla(${e.colors.raw.greyLight} / 1); 769 z-index: 100; 770 `} 771 } 772 &::after { 773 bottom: 0; 774 ${r&&a.iv` 775 background-color: hsla(${e.colors.raw.greyLight} / 1); 776 z-index: 100; 777 `} 778 } 779 `),e1=a.ZP.div(()=>a.iv` 780 display: block; 781 height: 0px; 782 `);i.createContext(void 0);let e2=a.F4` 783 to { 784 background-position-x: -200%; 785 } 786`;a.ZP.div(({theme:e,$active:t})=>a.iv` 787 ${t&&a.iv` 788 background: ${e.colors.greyLight} 789 linear-gradient( 790 110deg, 791 ${e.colors.greyLight} 8%, 792 ${e.colors.greySurface} 18%, 793 ${e.colors.greyLight} 33% 794 ); 795 background-size: 200% 100%; 796 animation: 1.5s ${e2} infinite linear; 797 border-radius: ${e.radii.medium}; 798 width: ${e.space.fit}; 799 `} 800 `),a.ZP.span(({$active:e})=>a.iv` 801 display: block; 802 ${e?a.iv` 803 visibility: hidden; 804 * { 805 visibility: hidden !important; 806 } 807 `:""} 808 `);let e6=a.ZP.div(({theme:e,$hover:t,$size:r,$colorStyle:n})=>a.iv` 809 align-items: center; 810 display: flex; 811 border-radius: ${e.radii.full}; 812 font-size: ${e.fontSizes.small}; 813 line-height: ${e.lineHeights.small}; 814 font-weight: ${e.fontWeights.bold}; 815 width: ${e.space.max}; 816 padding: ${e.space["0.5"]} ${e.space[2]}; 817 background: ${J(n,"background")}; 818 color: ${J(n,"text")}; 819 border: 1px solid ${J(n,"border")}; 820 cursor: default; 821 822 ${"small"===r&&a.iv` 823 font-size: ${e.fontSizes.extraSmall}; 824 line-height: ${e.lineHeights.extraSmall}; 825 `} 826 827 ${t&&a.iv` 828 transition-duration: ${e.transitionDuration[150]}; 829 transition-property: color, border-color, background-color; 830 transition-timing-function: ${e.transitionTimingFunction.inOut}; 831 832 &:hover, 833 &:active { 834 transform: translateY(-1px); 835 background-color: ${J(n,"hover")}; 836 } 837 `} 838 `),e3=({children:e,surface:t,onDismiss:r,noBackground:n=!1,className:o="modal",open:a,renderCallback:s})=>{let[c,l]=u({timeout:{enter:50,exit:300},mountOnEnter:!0,unmountOnExit:!0}),d=i.useRef(null),f=t||g;return i.useEffect(()=>{let{style:e,dataset:t}=document.body,r=()=>parseInt(t.backdrops||"0"),o=e=>t.backdrops=String(r()+e),i=(t,r,n)=>{e.width=t,e.position=r,e.top=n};if(l(a||!1),"u">typeof window&&!n&&a)return 0===r()&&i(`${document.body.clientWidth}px`,"fixed",`-${window.scrollY}px`),o(1),()=>{let t=-1*parseFloat(e.top||"0");1===r()&&(i("","",""),window.scroll({top:t})),o(-1)}},[a,n]),"unmounted"!==c?i.createElement(ex,{className:o,renderCallback:s},r&&i.createElement(f,{$empty:n,$state:c,ref:d,onClick:e=>e.target===d.current&&r&&r()}),e({state:c})):null};e3.displayName="Backdrop";let e5=(e="",t=10,r=5,n=5)=>e.length<t?e:`${e.slice(0,r)}...${e.slice(-n)}`,e8=(e,t)=>e["data-testid"]?String(e["data-testid"]):t,e4=a.ZP.input(({theme:e,$colorStyle:t="accentPrimary"})=>a.iv` 839 font: inherit; 840 display: grid; 841 position: relative; 842 place-content: center; 843 transition: transform 150ms ease-in-out, filter 150ms ease-in-out; 844 cursor: pointer; 845 846 width: ${e.space[5]}; 847 height: ${e.space[5]}; 848 border-radius: ${e.radii.small}; 849 background-color: ${e.colors.border}; 850 851 &:checked { 852 background: ${J(t,"background")}; 853 } 854 855 &::before { 856 content: ''; 857 background: ${e.colors.border}; 858 mask-image: ${'url(\'data:image/svg+xml; utf8, <svg width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 12.625L10.125 20.125L22 3.875" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" /></svg>\')'}; 859 mask-repeat: no-repeat; 860 width: ${e.space[3]}; 861 height: ${e.space[3]}; 862 transition: all 90ms ease-in-out; 863 } 864 865 &:hover { 866 transform: translateY(-1px); 867 } 868 869 &:hover::before, 870 &:checked::before { 871 background: ${J(t,"text")}; 872 } 873 874 &:disabled {
875 cursor: not-allowed; 876 } 877 878 &:disabled::before, 879 &:disabled:hover::before { 880 background: ${e.colors.border}; 881 } 882 883 &:disabled:checked, 884 &:disabled:checked:hover { 885 background: ${e.colors.border}; 886 } 887 888 &:disabled:checked::before, 889 &:disabled:checked:hover::before { 890 background: ${e.colors.greyPrimary}; 891 } 892 `),e7=i.forwardRef(({description:e,disabled:t,error:r,hideLabel:n,id:o,label:a,labelSecondary:s,inline:c=!0,name:l,required:u,tabIndex:d,value:f,checked:h,width:p,onBlur:m,onChange:g,onFocus:b,colorStyle:v="accentPrimary",...y},w)=>{let E=i.useRef(null);return i.createElement(eK,{description:e,disabled:t,error:r,hideLabel:n,id:o,inline:c,label:a,labelSecondary:s,required:u,width:p},i.createElement(e4,{...y,"data-testid":e8(y,"checkbox"),"aria-invalid":!!r||void 0,type:"checkbox",$colorStyle:v,checked:h,disabled:t,name:l,ref:w||E,tabIndex:d,value:f,onBlur:m,onChange:g,onFocus:b}))});e7.displayName="Checkbox";let e9=a.ZP.div(({theme:e,$color:t})=>a.iv` 893 position: relative; 894 width: 100%; 895 896 input ~ label:hover { 897 transform: translateY(-1px); 898 } 899 900 input ~ label:hover div#circle { 901 background: ${e.colors.border}; 902 } 903 904 input:checked ~ label { 905 background: ${e.colors[`${t}Surface`]}; 906 border-color: transparent; 907 } 908 909 input:disabled ~ label { 910 cursor: not-allowed; 911 } 912 913 input:checked ~ label div#circle { 914 background: ${e.colors[`${t}Primary`]}; 915 border-color: transparent; 916 } 917 918 input:disabled ~ label div#circle, 919 input:disabled ~ label:hover div#circle { 920 background: ${e.colors.greySurface}; 921 } 922 923 input:checked ~ label:hover div#circle { 924 background: ${e.colors[`${t}Bright`]}; 925 } 926 927 input:disabled ~ label, 928 input:disabled ~ label:hover { 929 background: ${e.colors.greySurface}; 930 transform: initial; 931 } 932 933 input:disabled ~ label div#circle svg, 934 input:disabled ~ label:hover div#circle svg { 935 color: ${e.colors.greySurface}; 936 } 937 938 input:disabled:checked ~ label div#circle, 939 input:disabled:checked ~ label:hover div#circle { 940 background: ${e.colors.border}; 941 } 942 943 input:disabled:checked ~ label div#circle svg, 944 input:disabled:checked ~ label:hover div#circle svg { 945 color: ${e.colors.greyPrimary}; 946 } 947 `),te=a.ZP.input(()=>a.iv` 948 position: absolute; 949 width: 1px; 950 height: 1px; 951 `),tt=a.ZP.label(({theme:e})=>a.iv` 952 display: flex; 953 align-items: center; 954 gap: ${e.space[4]}; 955 956 width: 100%; 957 height: 100%; 958 padding: ${e.space[4]}; 959 960 border-radius: ${e.space[2]}; 961 border: 1px solid ${e.colors.border}; 962 963 cursor: pointer; 964 965 transition: all 0.3s ease-in-out; 966 `),tr=a.ZP.div(({theme:e})=>a.iv` 967 display: flex; 968 align-items: center; 969 justify-content: center; 970 971 flex: 0 0 ${e.space[7]}; 972 width: ${e.space[7]}; 973 height: ${e.space[7]}; 974 border-radius: ${e.radii.full}; 975 border: 1px solid ${e.colors.border}; 976 977 transition: all 0.3s ease-in-out; 978 979 svg { 980 display: block; 981 color: ${e.colors.backgroundPrimary}; 982 width: ${e.space[4]}; 983 height: ${e.space[4]}; 984 } 985 `),tn=a.ZP.div(()=>a.iv` 986 display: flex; 987 flex-direction: column; 988 `),to=i.forwardRef(({label:e,subLabel:t,name:r,color:n="blue",disabled:o,...a},s)=>{let c=i.useRef(null),l=eD(),u=o?"grey":"text";return i.createElement(e9,{$color:n},i.createElement(te,{disabled:o,id:l,name:r,type:"checkbox",...a,ref:s||c}),i.createElement(tt,{htmlFor:l,id:"permissions-label"},i.createElement(tr,{id:"circle"},i.createElement(ta,null)),i.createElement(tn,null,i.createElement(ee,{color:u,fontVariant:"bodyBold"},e),t&&i.createElement(ee,{color:u,fontVariant:"small"},t))))});to.displayName="CheckboxRow";let ti=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{fill:"currentColor",d:"M48 30a6 6 0 0 1 6 6v12a6 6 0 0 1-12 0V36a6 6 0 0 1 6-6Zm6 34a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M58.873 7.242c-5.757-6.514-15.988-6.514-21.746 0-15.715 17.78-27.914 38.623-35.65 61.07-2.866 8.315 2.358 17.173 10.902 18.842 23.418 4.575 47.824 4.575 71.242 0 8.544-1.669 13.768-10.527 10.903-18.841-7.737-22.448-19.936-43.29-35.651-61.071Zm-12.754 7.947c.98-1.11 2.782-1.11 3.762 0C64.564 31.8 75.96 51.275 83.18 72.223c.461 1.34-.38 2.865-1.858 3.154-21.9 4.278-44.743 4.278-66.642 0-1.478-.289-2.32-1.815-1.858-3.154 7.22-20.948 18.615-40.422 33.298-57.034Z",clipRule:"evenodd"})),ta=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"
988currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{fill:"currentColor",d:"M88.455 28.019a6 6 0 1 0-8.91-8.038l-41.852 46.4L16.16 45.676a6 6 0 0 0-8.318 8.65L33.82 79.304l.094.09c.508.472 1.077.84 1.68 1.104a6.017 6.017 0 0 0 5.183-.177 5.984 5.984 0 0 0 1.7-1.325l45.98-50.977Z"})),ts=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{fill:"currentColor",d:"M17.757 26.243a6 6 0 1 1 8.486-8.486L48 39.515l21.757-21.758a6 6 0 1 1 8.486 8.486L56.485 48l21.758 21.757a6 6 0 1 1-8.486 8.486L48 56.485 26.243 78.243a6 6 0 1 1-8.486-8.486L39.515 48 17.757 26.243Z"})),tc=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{fill:"currentColor",d:"M66.243 29.757a6 6 0 0 1 0 8.486L56.485 48l9.758 9.757a6 6 0 1 1-8.486 8.486L48 56.485l-9.757 9.758a6 6 0 1 1-8.486-8.486L39.515 48l-9.758-9.757a6 6 0 1 1 8.486-8.486L48 39.515l9.757-9.758a6 6 0 0 1 8.486 0Z"}),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M48 96c26.51 0 48-21.49 48-48S74.51 0 48 0 0 21.49 0 48s21.49 48 48 48Zm0-12c19.882 0 36-16.118 36-36S67.882 12 48 12 12 28.118 12 48s16.118 36 36 36Z",clipRule:"evenodd"})),i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("rect",{width:96,height:96,fill:"#fff"})))),tl=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M52.243 70.243a6 6 0 0 1-8.486 0l-30-30a6 6 0 1 1 8.486-8.486L48 57.515l25.757-25.758a6 6 0 1 1 8.486 8.486l-30 30Z",clipRule:"evenodd"})),tu=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{fill:"currentColor",d:"M45.409 4.442 21.525 45.385a3 3 0 0 0 1.103 4.117l23.884 13.647a3 3 0 0 0 2.976 0l23.884-13.647a3 3 0 0 0 1.103-4.117L50.59 4.442c-1.157-1.984-4.025-1.984-5.182 0Z"}),i.createElement("path",{fill:"currentColor",d:"m22.559 59.656 22.983 32.833c1.195 1.706 3.721 1.706 4.916 0L73.44 59.655c.612-.874-.388-1.97-1.315-1.441l-23.63 13.502a1 1 0 0 1-.992 0l-23.63-13.502c-.927-.53-1.927.567-1.315 1.442Z"})),td=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{fill:"currentColor",d:"M54 26a6 6 0 1 1-12 0 6 6 0 0 1 12 0Zm0 16a6 6 0 0 0-10.633-3.812c-.758.921-2.302 1.963-4.176 2.867a26.883 26.883 0 0 1-2.823 1.166l-.142.047-.02.006A6 6 0 0 0 39.78 53.73l-1.766-5.687c1.766 5.687 1.768 5.687 1.768 5.687l.003-.001.005-.002.012-.004.033-.01a18.325 18.325 0 0 0 .395-.13 32.899 32.899 0 0 0 1.771-.66V70a6 6 0 0 0 12 0V42Z"}),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M48 96c26.51 0 48-21.49 48-48S74.51 0 48 0 0 21.49 0 48s21.49 48 48 48Zm0-12c19.882 0 36-16.118 36-36S67.882 12 48 12 12 28.118 12 48s16.118 36 36 36Z",clipRule:"evenodd"})),i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("rect",{width:96,height:96,fill:"#fff"})))),tf=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"
988currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{fill:"currentColor",d:"M50 4a6 6 0 0 0 0 12h21.515L33.757 53.757a6 6 0 1 0 8.486 8.486L80 24.485V46a6 6 0 0 0 12 0V10a6 6 0 0 0-6-6H50Z"}),i.createElement("path",{fill:"currentColor",d:"M16 42a6 6 0 0 1 6-6h8a6 6 0 0 0 0-12h-8c-9.941 0-18 8.059-18 18v32c0 9.941 8.059 18 18 18h32c9.941 0 18-8.059 18-18v-8a6 6 0 0 0-12 0v8a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6V42Z"})),th=({title:e,titleId:t,...r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 96 96",width:"1em",height:"1em",focusable:"false",shapeRendering:"geometricPrecision","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{fill:"currentColor",d:"M24 12a6 6 0 0 0 0 12h39.515L13.757 73.757a6 6 0 1 0 8.486 8.486L72 32.485V72a6 6 0 0 0 12 0V19c0-.175-.006-.349-.02-.52a5.986 5.986 0 0 0-1.737-4.723 5.987 5.987 0 0 0-4.722-1.738A7.065 7.065 0 0 0 77 12H24Z"})),tp=a.ZP.div(()=>a.iv` 989 position: relative; 990 `),tm=a.ZP.div(({theme:e,$disabled:t,$size:r})=>a.iv` 991 position: absolute; 992 display: flex; 993 align-items: center; 994 justify-content: center; 995 font-weight: ${e.fontWeights.extraBold}; 996 997 color: ${e.colors.accent}; 998 999 ${t&&a.iv` 1000 color: ${e.colors.greyLight}; 1001 `} 1002 1003 #countdown-complete-check { 1004 stroke-width: ${e.borderWidths["1.5"]}; 1005 overflow: visible; 1006 display: block; 1007 } 1008 1009 ${()=>{switch(r){case"small":return a.iv` 1010 height: ${e.space[16]}; 1011 width: ${e.space[16]}; 1012 `;case"large":return a.iv` 1013 font-size: ${e.fontSizes.extraLarge}; 1014 line-height: ${e.lineHeights.extraLarge}; 1015 margin-top: -${e.space["0.5"]}; 1016 height: ${e.space[24]}; 1017 width: ${e.space[24]}; 1018 `;default:return""}}} 1019 `),tg=a.ZP.div(({theme:e,$disabled:t,$size:r,$color:n})=>a.iv` 1020 stroke: ${e.colors.accent}; 1021 1022 color: ${e.colors[n]}; 1023 1024 ${t&&a.iv` 1025 color: ${e.colors.greyLight}; 1026 `} 1027 1028 ${()=>{switch(r){case"small":return a.iv` 1029 height: ${e.space[16]}; 1030 width: ${e.space[16]}; 1031 stroke-width: ${e.space[1]}; 1032 `;case"large":return a.iv` 1033 height: ${e.space[24]}; 1034 width: ${e.space[24]}; 1035 stroke-width: ${e.space[1]}; 1036 `;default:return""}}} 1037 `),tb=a.ZP.circle(({$finished:e})=>a.iv` 1038 transition: all 1s linear, stroke-width 0.2s ease-in-out 1s; 1039 1040 ${e&&a.iv` 1041 stroke-width: 0; 1042 `} 1043 `),tv=i.forwardRef(({accessibilityLabel:e,color:t="textSecondary",size:r="small",countdownSeconds:n,startTimestamp:o,disabled:a,callback:s,...c},l)=>{let u=i.useMemo(()=>Math.ceil((o||Date.now())/1e3),[o]),d=i.useMemo(()=>u+n,[u,n]),f=i.useCallback(()=>Math.max(d-Math.ceil(Date.now()/1e3),0),[d]),[h,p]=i.useState(n);return i.useEffect(()=>{if(!a){p(f());let e=setInterval(()=>{let t=f();0===t&&(clearInterval(e),s&&s()),p(t)},1e3);return()=>clearInterval(e)}},[f,s,n,a]),i.createElement(tp,{...c,"data-testid":e8(c,"countdown-circle")},i.createElement(tm,{$size:r,$disabled:a},a&&n,!a&&(h>0?h:i.createElement(ta,{"data-testid":"countdown-complete-check",id:"countdown-complete-check"}))),i.createElement(tg,{$color:t,$disabled:a,$size:r,ref:l},e&&i.createElement(el,null,e),i.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i.createElement(tb,{$finished:0===h,cx:"12",cy:"12",fill:"none",r:"9",strokeDasharray:`${48*(h/n)}, 56`,strokeLinecap:"round"}),i.createElement("circle",{cx:"12",cy:"12",fill:"none",opacity:a?"1":"0.25",r:"9",strokeLinecap:"round"}))))});tv.displayName="CountdownCircle";let ty={extraSmall:{width:"22.5",height:"7"},small:{width:"26",height:"10"},medium:{width:"32",height:"12"}},tw={extraSmall:{width:"10",height:"5.5",translateX:"5"},small:{width:"12",height:"8",translateX:"6"},medium:{width:"15",height:"10",translateX:"7.5"}},tE=a.ZP.div(({theme:e,$size:t})=>a.iv` 1044 position: relative; 1045 width: fit-content; 1046 1047 label { 1048 position: absolute; 1049 left: 50%; 1050 top: 50%; 1051 width: ${e.space[tw[t].width]}; 1052 height: ${e.space[tw[t].height]}; 1053 font-size: ${e.fontSizes.small}; 1054 font-weight: ${"extraSmall"===t?e.fontWeights.normal:e.fontWeights.bold}; 1055 display: flex; 1056 align-items: center; 1057 justify-content: center; 1058 transition: color 0.1s linear; 1059 cursor: pointer; 1060 } 1061 1062 label#eth { 1063 color: ${e.colors.textAccent}; 1064 transform: translate(-50%, -50%) 1065 translateX(-${e.space[tw[t].translateX]}); 1066 } 1067 1068 label#fiat { 1069 color: ${e.colors.greyPrimary}; 1070 transform: translate(-50%, -50%) 1071 translateX(${e.space[tw[t].translateX]}); 1072 } 1073 1074 input[type='checkbox']:checked ~ label#eth { 1075 color: ${e.colors.greyPrimary}; 1076 } 1077 1078 input[type='checkbox']:checked ~ label#fiat { 1079 color: ${e.colors.textAccent}; 1080 } 1081 1082 input[type='checkbox']:disabled ~ label#eth { 1083 color: ${e.colors.backgroundPrimary}; 1084 } 1085 1086 input[type='checkbox']:disabled ~ label#fiat { 1087 color: ${e.colors.greyPrimary}; 1088 } 1089 1090 input[type='checkbox']:disabled:checked ~ label#fiat { 1091 color: ${e.colors.backgroundPrimary}; 1092 } 1093 1094 input[type='checkbox']:disabled:checked ~ label#eth { 1095 color: ${e.colors.greyPrimary}; 1096 } 1097 1098 input[type='checkbox']:disabled ~ label {
1099 cursor: not-allowed; 1100 } 1101 `),tx=a.ZP.input(({theme:e,$size:t="medium"})=>a.iv` 1102 position: relative; 1103 background-color: ${e.colors.greySurface}; 1104 height: ${e.space[ty[t].height]}; 1105 width: ${e.space[ty[t].width]}; 1106 border-radius: ${"extraSmall"===t?e.radii.full:e.radii.large}; 1107 1108 display: flex; 1109 align-items: center; 1110 justify-content: center; 1111 1112 &::after { 1113 content: ''; 1114 display: block; 1115 position: absolute; 1116 background-color: ${e.colors.bluePrimary}; 1117 width: ${e.space[tw[t].width]}; 1118 height: ${e.space[tw[t].height]}; 1119 border-radius: ${"extraSmall"===t?e.radii.full:e.space["1.5"]}; 1120 transform: translateX(-${e.space[tw[t].translateX]}); 1121 transition: transform 0.3s ease-in-out, background-color 0.1s ease-in-out; 1122 } 1123 1124 &:checked::after { 1125 transform: translateX(${e.space[tw[t].translateX]}); 1126 } 1127 1128 &:disabled::after { 1129 background-color: ${e.colors.greyPrimary}; 1130 } 1131 `),tC=i.forwardRef(({size:e="medium",disabled:t,fiat:r="usd",...n},o)=>{let a=eD();return i.createElement(tE,{$size:e},i.createElement(tx,{disabled:t,id:a,ref:o,type:"checkbox",...n,$size:e}),i.createElement("label",{htmlFor:a,id:"eth"},"ETH"),i.createElement("label",{htmlFor:a,id:"fiat"},r.toLocaleUpperCase()))});tC.displayName="CurrencyToggle";var tA=Symbol("@ts-pattern/matcher"),tP="@ts-pattern/anonymous-select-key",tj=function(e){return!!(e&&"object"==typeof e)},tk=function(e){return e&&!!e[tA]},tO=function e(t,r,n){if(tj(t)){if(tk(t)){var o=t[tA]().match(r),i=o.matched,a=o.selections;return i&&a&&Object.keys(a).forEach(function(e){return n(e,a[e])}),i}if(!tj(r))return!1;if(Array.isArray(t))return!!Array.isArray(r)&&t.length===r.length&&t.every(function(t,o){return e(t,r[o],n)});if(t instanceof Map)return r instanceof Map&&Array.from(t.keys()).every(function(o){return e(t.get(o),r.get(o),n)});if(t instanceof Set){if(!(r instanceof Set))return!1;if(0===t.size)return 0===r.size;if(1===t.size){var s=Array.from(t.values())[0];return tk(s)?Array.from(r.values()).every(function(t){return e(s,t,n)}):r.has(s)}return Array.from(t.values()).every(function(e){return r.has(e)})}return Object.keys(t).every(function(o){var i=t[o];return(o in r||tk(i)&&"optional"===i[tA]().matcherType)&&e(i,r[o],n)})}return Object.is(r,t)},tS=function e(t){var r,n,o;return tj(t)?tk(t)?null!=(r=null==(n=(o=t[tA]()).getSelectionKeys)?void 0:n.call(o))?r:[]:Array.isArray(t)?tI(t,e):tI(Object.values(t),e):[]},tI=function(e,t){return e.reduce(function(e,r){return e.concat(t(r))},[])};function tT(e){var t;return(t={})[tA]=function(){return{match:function(t){var r={},n=function(e,t){r[e]=t};return void 0===t?(tS(e).forEach(function(e){return n(e,void 0)}),{matched:!0,selections:r}):{matched:tO(e,t,n),selections:r}},getSelectionKeys:function(){return tS(e)},matcherType:"optional"}},t}function tB(e){var t;return(t={})[tA]=function(){return{match:function(t){if(!Array.isArray(t))return{matched:!1};var r={};if(0===t.length)return tS(e).forEach(function(e){r[e]=[]}),{matched:!0,selections:r};var n=function(e,t){r[e]=(r[e]||[]).concat([t])};return{matched:t.every(function(t){return tO(e,t,n)}),selections:r}},getSelectionKeys:function(){return tS(e)}}},t}function t_(){var e,t=[].slice.call(arguments);return(e={})[tA]=function(){return{match:function(e){var r={},n=function(e,t){r[e]=t};return{matched:t.every(function(t){return tO(t,e,n)}),selections:r}},getSelectionKeys:function(){return tI(t,tS)},matcherType:"and"}},e}function tD(){var e,t=[].slice.call(arguments);return(e={})[tA]=function(){return{match:function(e){var r={},n=function(e,t){r[e]=t};return tI(t,tS).forEach(function(e){return n(e,void 0)}),{matched:t.some(function(t){return tO(t,e,n)}),selections:r}},getSelectionKeys:function(){return tI(t,tS)},matcherType:"or"}},e}function t$(e){var t;return(t={})[tA]=function(){return{match:function(t){return{matched:!tO(e,t,function(){})}},getSelectionKeys:function(){return[]},matcherType:"not"}},t}function tM(e){var t;return(t={})[tA]=function(){return{match:function(t){return{matched:!!e(t)}}}},t}function tR(){var e,t=[].slice.call(arguments),r="string"==typeof t[0]?t[0]:void 0,n=2===t.length?t[1]:"string"==typeof t[0]?void 0:t[0];return(e={})[tA]=function(){return{match:function(e){var t,o=((t={})[null!=r?r:tP]=e,t);return{matched:void 0===n||tO(n,e,function(e,t){o[e]=t}),selections:o}},getSelectionKeys:function(){return[null!=r?r:tP].concat(void 0===n?[]:tS(n))}}},e}var tN=tM(function(e){return!0}),tF=tM(function(e){return"string"==typeof e}),tL=tM(function(e){return"number"==typeof e}),tU=tM(function(e){return"boolean"==typeof e}),tz=tM(function(e){return"bigint"==typeof e}),tH=tM(function(e){return"symbol"==typeof e}),tq=tM(function(e){return null==e}),tG={__proto__:null,optional:tT,array:tB,intersection:t_,union:tD,not:t$,when:tM,select:tR,any:tN,_:tN,string:tF,number:tL,boolean:tU,bigint:tz,symbol
1131:tH,nullish:tq,instanceOf:function(e){return tM(function(t){return t instanceof e})},typed:function(){return{array:tB,optional:tT,intersection:t_,union:tD,not:t$,select:tR,when:tM}}},tW=function(){function e(e,t){this.value=void 0,this.cases=void 0,this.value=e,this.cases=t}var t=e.prototype;return t.with=function(){var t=[].slice.call(arguments),r=t[t.length-1],n=[t[0]],o=[];return 3===t.length&&"function"==typeof t[1]?(n.push(t[0]),o.push(t[1])):t.length>2&&n.push.apply(n,t.slice(1,t.length-1)),new e(this.value,this.cases.concat([{match:function(e){var t={},r=!!(n.some(function(r){return tO(r,e,function(e,r){t[e]=r})})&&o.every(function(t){return t(e)}));return{matched:r,value:r&&Object.keys(t).length?tP in t?t[tP]:t:e}},handler:r}]))},t.when=function(t,r){return new e(this.value,this.cases.concat([{match:function(e){return{matched:!!t(e),value:e}},handler:r}]))},t.otherwise=function(t){return new e(this.value,this.cases.concat([{match:function(e){return{matched:!0,value:e}},handler:t}])).run()},t.exhaustive=function(){return this.run()},t.run=function(){for(var e,t=this.value,r=void 0,n=0;n<this.cases.length;n++){var o=this.cases[n],i=o.match(this.value);if(i.matched){t=i.value,r=o.handler;break}}if(!r){try{e=JSON.stringify(this.value)}catch{e=this.value}throw Error("Pattern matching error: no pattern matches value "+e)}return r(t,this.value)},e}(),tK="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},tV={exports:{}};!/** 1132 * @license 1133 * Lodash <https://lodash.com/> 1134 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> 1135 * Released under MIT license <https://lodash.com/license> 1136 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 1137 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 1138 */function(e,t){(function(){var r,n="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=1/0,s=0/0,c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",d="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",v="[object Object]",y="[object Promise]",w="[object RegExp]",E="[object Set]",x="[object String]",C="[object Symbol]",A="[object WeakMap]",P="[object ArrayBuffer]",j="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",B="[object Uint8Array]",_="[object Uint8ClampedArray]",D="[object Uint16Array]",$="[object Uint32Array]",M=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,U=RegExp(F.source),z=RegExp(L.source),H=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(Q.source),Y=/^\s+/,J=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ee=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /,er=
1138/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,en=/[()=,{}\[\]\/\s]/,eo=/\\(\\)?/g,ei=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ea=/\w*$/,es=/^[-+]0x[0-9a-f]+$/i,ec=/^0b[01]+$/i,el=/^\[object .+?Constructor\]$/,eu=/^0o[0-7]+$/i,ed=/^(?:0|[1-9]\d*)$/,ef=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eh=/($^)/,ep=/['\n\r\u2028\u2029\\]/g,em="\ud800-\udfff",eg="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",eb="\\u2700-\\u27bf",ev="a-z\\xdf-\\xf6\\xf8-\\xff",ey="A-Z\\xc0-\\xd6\\xd8-\\xde",ew="\\ufe0e\\ufe0f",eE="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ex="['â]",eC="["+eE+"]",eA="["+eg+"]",eP="["+ev+"]",ej="[^"+em+eE+"\\d+"+eb+ev+ey+"]",ek="\ud83c[\udffb-\udfff]",eO="[^"+em+"]",eS="(?:\ud83c[\udde6-\uddff]){2}",eI="[\ud800-\udbff][\udc00-\udfff]",eT="["+ey+"]",eB="\\u200d",e_="(?:"+eP+"|"+ej+")",eD="(?:"+ex+"(?:d|ll|m|re|s|t|ve))?",e$="(?:"+ex+"(?:D|LL|M|RE|S|T|VE))?",eM="(?:"+eA+"|"+ek+")?",eR="["+ew+"]?",eN="(?:"+eB+"(?:"+[eO,eS,eI].join("|")+")"+eR+eM+")*",eF=eR+eM+eN,eL="(?:"+["["+eb+"]",eS,eI].join("|")+")"+eF,eU="(?:"+[eO+eA+"?",eA,eS,eI,"["+em+"]"].join("|")+")",ez=RegExp(ex,"g"),eH=RegExp(eA,"g"),eq=RegExp(ek+"(?="+ek+")|"+eU+eF,"g"),eG=RegExp([eT+"?"+eP+"+"+eD+"(?="+[eC,eT,"$"].join("|")+")","(?:"+eT+"|"+ej+")+"+e$+"(?="+[eC,eT+e_,"$"].join("|")+")",eT+"?"+e_+"+"+eD,eT+"+"+e$,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",eL].join("|"),"g"),eW=RegExp("["+eB+em+eg+ew+"]"),eK=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eV=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eQ=-1,eZ={};eZ[k]=eZ[O]=eZ[S]=eZ[I]=eZ[T]=eZ[B]=eZ[_]=eZ[D]=eZ[$]=!0,eZ[l]=eZ[u]=eZ[P]=eZ[d]=eZ[j]=eZ[f]=eZ[h]=eZ[p]=eZ[g]=eZ[b]=eZ[v]=eZ[w]=eZ[E]=eZ[x]=eZ[A]=!1;var eY={};eY[l]=eY[u]=eY[P]=eY[j]=eY[d]=eY[f]=eY[k]=eY[O]=eY[S]=eY[I]=eY[T]=eY[g]=eY[b]=eY[v]=eY[w]=eY[E]=eY[x]=eY[C]=eY[B]=eY[_]=eY[D]=eY[$]=!0,eY[h]=eY[p]=eY[A]=!1;var eJ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},eX=parseFloat,e0=parseInt,e1="object"==typeof tK&&tK&&tK.Object===Object&&tK,e2="object"==typeof self&&self&&self.Object===Object&&self,e6=e1||e2||Function("return this")(),e3=t&&!t.nodeType&&t,e5=e3&&e&&!e.nodeType&&e,e8=e5&&e5.exports===e3,e4=e8&&e1.process,e7=function(){try{return e5&&e5.require&&e5.require("util").types||e4&&e4.binding&&e4.binding("util")}catch{}}(),e9=e7&&e7.isArrayBuffer,te=e7&&e7.isDate,tt=e7&&e7.isMap,tr=e7&&e7.isRegExp,tn=e7&&e7.isSet,to=e7&&e7.isTypedArray;function ti(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ta(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function ts(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function tc(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function tl(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function tu(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function td(e,t){return!!(null==e?0:e.length)&&tE(e,t,0)>-1}function tf(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function th(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function tp(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function tm(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function tg(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function tb(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var tv=tP("length");function ty(e,t,r){var n;return r(e,function(e,r,o){if(t(e,r,o))return n=r,!1}),n}function tw(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return -1}function tE(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return -1}(e,t,r):tw(e,tC,r)}function tx(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return -1}function tC(e){return e!=e}function tA(e,t){var r=null==e?0:e.length;return r?tO(e,t)/r:s}function tP(e){return function(t){return null==t?r:t[e]}}function tj(e){return function(t){return null==e?r:e[t]}
vendor: 5,250 bytes, line 1138
1138}function tk(e,t,r,n,o){return o(e,function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)}),r}function tO(e,t){for(var n,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==r&&(n=n===r?a:n+a)}return n}function tS(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tI(e){return e&&e.slice(0,tW(e)+1).replace(Y,"")}function tT(e){return function(t){return e(t)}}function tB(e,t){return th(t,function(t){return e[t]})}function t_(e,t){return e.has(t)}function tD(e,t){for(var r=-1,n=e.length;++r<n&&tE(t,e[r],0)>-1;);return r}function t$(e,t){for(var r=e.length;r--&&tE(t,e[r],0)>-1;);return r}var tM=tj({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),tR=tj({"&":"&","<":"<",">":">",'"':""","'":"'"});function tN(e){return"\\"+eJ[e]}function tF(e){return eW.test(e)}function tL(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tU(e,t){return function(r){return e(t(r))}}function tz(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var s=e[r];(s===t||s===i)&&(e[r]=i,a[o++]=r)}return a}function tH(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tq(e){return tF(e)?function(e){for(var t=eq.lastIndex=0;eq.test(e);)++t;return t}(e):tv(e)}function tG(e){return tF(e)?e.match(eq)||[]:e.split("")}function tW(e){for(var t=e.length;t--&&J.test(e.charAt(t)););return t}var tV=tj({"&":"&","<":"<",">":">",""":'"',"'":"'"}),tQ=function e(t){var J,em,eg,eb,ev=(t=null==t?e6:tQ.defaults(e6.Object(),t,tQ.pick(e6,eV))).Array,ey=t.Date,ew=t.Error,eE=t.Function,ex=t.Math,eC=t.Object,eA=t.RegExp,eP=t.String,ej=t.TypeError,ek=ev.prototype,eO=eE.prototype,eS=eC.prototype,eI=t["__core-js_shared__"],eT=eO.toString,eB=eS.hasOwnProperty,e_=0,eD=(J=/[^.]+$/.exec(eI&&eI.keys&&eI.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",e$=eS.toString,eM=eT.call(eC),eR=e6._,eN=eA("^"+eT.call(eB).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eF=e8?t.Buffer:r,eL=t.Symbol,eU=t.Uint8Array,eq=eF?eF.allocUnsafe:r,eW=tU(eC.getPrototypeOf,eC),eJ=eC.create,e1=eS.propertyIsEnumerable,e2=ek.splice,e3=eL?eL.isConcatSpreadable:r,e5=eL?eL.iterator:r,e4=eL?eL.toStringTag:r,e7=function(){try{var e=ov(eC,"defineProperty");return e({},"",{}),e}catch{}}(),tv=t.clearTimeout!==e6.clearTimeout&&t.clearTimeout,tj=ey&&ey.now!==e6.Date.now&&ey.now,tK=t.setTimeout!==e6.setTimeout&&t.setTimeout,tZ=ex.ceil,tY=ex.floor,tJ=eC.getOwnPropertySymbols,tX=eF?eF.isBuffer:r,t0=t.isFinite,t1=ek.join,t2=tU(eC.keys,eC),t6=ex.max,t3=ex.min,t5=ey.now,t8=t.parseInt,t4=ex.random,t7=ek.reverse,t9=ov(t,"DataView"),re=ov(t,"Map"),rt=ov(t,"Promise"),rr=ov(t,"Set"),rn=ov(t,"WeakMap"),ro=ov(eC,"create"),ri=rn&&new rn,ra={},rs=oH(t9),rc=oH(re),rl=oH(rt),ru=oH(rr),rd=oH(rn),rf=eL?eL.prototype:r,rh=rf?rf.valueOf:r,rp=rf?rf.toString:r;function rm(e){if(iJ(e)&&!iU(e)&&!(e instanceof ry)){if(e instanceof rv)return e;if(eB.call(e,"__wrapped__"))return oq(e)}return new rv(e)}var rg=function(){function e(){}return function(t){if(!iY(t))return{};if(eJ)return eJ(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function rb(){}function rv(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function ry(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function rw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rE(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rx(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rC(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rx;++t<r;)this.add(e[t])}function rA(e){var t=this.__data__=new rE(e);this.size=t.size}function rP(e,t){var r=iU(e),n=!r&&iL(e),o=!r&&!n&&iG(e),i=!r&&!n&&!o&&i8(e),a=r||n||o||i,s=a?tS(e.length,eP):[],c=s.length;
1138for(var l in e)(t||eB.call(e,l))&&!(a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||oP(l,c)))&&s.push(l);return s}function rj(e){var t=e.length;return t?e[nf(0,t-1)]:r}function rk(e,t){return oL(nW(e),rM(t,0,e.length))}function rO(e){return oL(nW(e))}function rS(e,t,n){(n===r||iR(e[t],n))&&(n!==r||t in e)||rD(e,t,n)}function rI(e,t,n){var o=e[t];eB.call(e,t)&&iR(o,n)&&(n!==r||t in e)||rD(e,t,n)}function rT(e,t){for(var r=e.length;r--;)if(iR(e[r][0],t))return r;return -1}function rB(e,t,r,n){return rU(e,function(e,o,i){t(n,e,r(e),i)}),n}function r_(e,t){return e&&nK(t,av(t),e)}function rD(e,t,r){"__proto__"==t&&e7?e7(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function r$(e,t){for(var n=-1,o=t.length,i=ev(o),a=null==e;++n<o;)i[n]=a?r:ah(e,t[n]);return i}function rM(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function rR(e,t,n,o,i,a){var s,c=1&t,u=2&t,h=4&t;if(n&&(s=i?n(e,o,i,a):n(e)),s!==r)return s;if(!iY(e))return e;var y=iU(e);if(y){if(A=e.length,M=new e.constructor(A),A&&"string"==typeof e[0]&&eB.call(e,"index")&&(M.index=e.index,M.input=e.input),s=M,!c)return nW(e,s)}else{var A,M,R,N,F,L=oE(e),U=L==p||L==m;if(iG(e))return nL(e,c);
1138if(L==v||L==l||U&&!i){if(s=u||U?{}:oC(e),!c)return u?(R=(F=s)&&nK(e,ay(e),F),nK(e,ow(e),R)):(N=r_(s,e),nK(e,oy(e),N))}else{if(!eY[L])return i?e:{};s=function(e,t,r){var n,o,i=e.constructor;switch(t){case P:return nU(e);case d:case f:return new i(+e);case j:return n=r?nU(e.buffer):e.buffer,new e.constructor(n,e.byteOffset,e.byteLength);case k:case O:case S:case I:case T:case B:case _:case D:case $:return nz(e,r);case g:return new i;case b:case x:return new i(e);case w:return(o=new e.constructor(e.source,ea.exec(e))).lastIndex=e.lastIndex,o;case E:return new i;case C:return rh?eC(rh.call(e)):{}}}(e,L,c)}}a||(a=new rA);var z=a.get(e);if(z)return z;a.set(e,s),i6(e)?e.forEach(function(r){s.add(rR(r,t,n,r,e,a))}):iX(e)&&e.forEach(function(r,o){s.set(o,rR(r,t,n,o,e,a))});var H=h?u?od:ou:u?ay:av,q=y?r:H(e);return ts(q||e,function(r,o){q&&(r=e[o=r]),rI(s,o,rR(r,t,n,o,e,a))}),s}function rN(e,t,n){var o=n.length;if(null==e)return!o;for(e=eC(e);o--;){var i=n[o],a=t[i],s=e[i];if(s===r&&!(i in e)||!a(s))return!1}return!0}function rF(e,t,o){if("function"!=typeof e)throw new ej(n);return oM(function(){e.apply(r,o)},t)}function rL(e,t,r,n){var o=-1,i=td,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;r&&(t=th(t,tT(r))),n?(i=tf,a=!1):t.length>=200&&(i=t_,a=!1,t=new rC(t));e:for(;++o<s;){var u=e[o],d=null==r?u:r(u);if(u=n||0!==u?u:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else i(t,d,n)||c.push(u)}return c}rm.templateSettings={escape:H,evaluate:q,interpolate:G,variable:"",imports:{_:rm}},rm.prototype=rb.prototype,rm.prototype.constructor=rm,rv.prototype=rg(rb.prototype),rv.prototype.constructor=rv,ry.prototype=rg(rb.prototype),ry.prototype.constructor=ry,rw.prototype.clear=function(){this.__data__=ro?ro(null):{},this.size=0},rw.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rw.prototype.get=function(e){var t=this.__data__;if(ro){var n=t[e];return n===o?r:n}return eB.call(t,e)?t[e]:r},rw.prototype.has=function(e){var t=this.__data__;return ro?t[e]!==r:eB.call(t,e)},rw.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ro&&t===r?o:t,this},rE.prototype.clear=function(){this.__data__=[],this.size=0},rE.prototype.delete=function(e){var t=this.__data__,r=rT(t,e);return!(r<0)&&(r==t.length-1?t.pop():e2.call(t,r,1),--this.size,!0)},rE.prototype.get=function(e){var t=this.__data__,n=rT(t,e);return n<0?r:t[n][1]},rE.prototype.has=function(e){return rT(this.__data__,e)>-1},rE.prototype.set=function(e,t){var r=this.__data__,n=rT(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},rx.prototype.clear=function(){this.size=0,this.__data__={hash:new rw,map:new(re||rE),string:new rw}},rx.prototype.delete=function(e){var t=og(this,e).delete(e);return this.size-=t?1:0,t},rx.prototype.get=function(e){return og(this,e).get(e)},rx.prototype.has=function(e){return og(this,e).has(e)},rx.prototype.set=function(e,t){var r=og(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},rC.prototype.add=rC.prototype.push=function(e){return this.__data__.set(e,o),this},rC.prototype.has=function(e){return this.__data__.has(e)},rA.prototype.clear=function(){this.__data__=new rE,this.size=0},rA.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rA.prototype.get=function(e){return this.__data__.get(e)},rA.prototype.has=function(e){return this.__data__.has(e)},rA.prototype.set=function(e,t){var r=this.__data__;if(r instanceof rE){var n=r.__data__;if(!re||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rx(n)}return r.set(e,t),this.size=r.size,this};var rU=nZ(rQ),rz=nZ(rZ,!0);function rH(e,t){var r=!0;return rU(e,function(e,n,o){return r=!!t(e,n,o)}),r}function rq(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(c===r?s==s&&!i5(s):n(s,c)))var c=s,l=a}return l}function rG(e,t){var r=[];return rU(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r}function rW(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=oA),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?rW(s,t-1,r,n,o):tp(o,s):n||(o[o.length]=s)}return o}var rK=nY(),rV=nY(!0);function rQ(e,t){return e&&rK(e,t,av)}function rZ(e,t){return e&&rV(e,t,av)}function rY(e,t){return tu(t,function(t){return iV(e[t])})}function rJ(e,t){t=nR(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[oz(t[n++])];return n&&n==o?e:r}function rX(e,t,r){var n=t(e);return iU(e)?n:tp(n,r(e))}
1138function r0(e){return null==e?e===r?"[object Undefined]":"[object Null]":e4&&e4 in eC(e)?function(e){var t=eB.call(e,e4),n=e[e4];try{e[e4]=r;var o=!0}catch{}var i=e$.call(e);return o&&(t?e[e4]=n:delete e[e4]),i}(e):e$.call(e)}function r1(e,t){return e>t}function r2(e,t){return null!=e&&eB.call(e,t)}function r6(e,t){return null!=e&&t in eC(e)}function r3(e,t,n){for(var o=n?tf:td,i=e[0].length,a=e.length,s=a,c=ev(a),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=th(d,tT(t))),l=t3(d.length,l),c[s]=!n&&(t||i>=120&&d.length>=120)?new rC(s&&d):r}d=e[0];var f=-1,h=c[0];e:for(;++f<i&&u.length<l;){var p=d[f],m=t?t(p):p;if(p=n||0!==p?p:0,!(h?t_(h,m):o(u,m,n))){for(s=a;--s;){var g=c[s];if(!(g?t_(g,m):o(e[s],m,n)))continue e}h&&h.push(m),u.push(p)}}return u}function r5(e,t,n){t=nR(t,e);var o=null==(e=o_(e,t))?e:e[oz(o1(t))];return null==o?r:ti(o,e,n)}function r8(e){return iJ(e)&&r0(e)==l}function r4(e,t,n,o,i){return e===t||(null!=e&&null!=t&&(iJ(e)||iJ(t))?function(e,t,n,o,i,a){var s=iU(e),c=iU(t),p=s?u:oE(e),m=c?u:oE(t);p=p==l?v:p,m=m==l?v:m;var y=p==v,A=m==v,k=p==m;if(k&&iG(e)){if(!iG(t))return!1;s=!0,y=!1}if(k&&!y)return a||(a=new rA),s||i8(e)?oc(e,t,n,o,i,a):function(e,t,r,n,o,i,a){switch(r){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!i(new eU(e),new eU(t)));case d:case f:case b:return iR(+e,+t);case h:return e.name==t.name&&e.message==t.message;case w:case x:return e==t+"";case g:var s=tL;case E:var c=1&n;if(s||(s=tH),e.size!=t.size&&!c)break;var l=a.get(e);if(l)return l==t;n|=2,a.set(e,t);var u=oc(s(e),s(t),n,o,i,a);return a.delete(e),u;case C:if(rh)return rh.call(e)==rh.call(t)}return!1}(e,t,p,n,o,i,a);if(!(1&n)){var O=y&&eB.call(e,"__wrapped__"),S=A&&eB.call(t,"__wrapped__");
vendor: 11,643 bytes, line 1138
1138if(O||S){var I=O?e.value():e,T=S?t.value():t;return a||(a=new rA),i(I,T,n,o,a)}}return!!k&&(a||(a=new rA),function(e,t,n,o,i,a){var s=1&n,c=ou(e),l=c.length;if(l!=ou(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:eB.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<l;){var g=e[d=c[u]],b=t[d];if(o)var v=s?o(b,g,d,t,e,a):o(g,b,d,e,t,a);if(!(v===r?g===b||i(g,b,n,o,a):v)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,o,i,a))}(e,t,n,o,r4,i):e!=e&&t!=t)}function r7(e,t,n,o){var i=n.length,a=i,s=!o;if(null==e)return!a;for(e=eC(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var l=(c=n[i])[0],u=e[l],d=c[1];if(s&&c[2]){if(u===r&&!(l in e))return!1}else{var f=new rA;if(o)var h=o(u,d,l,e,t,f);if(!(h===r?r4(d,u,3,o,f):h))return!1}}return!0}function r9(e){return!(!iY(e)||eD&&eD in e)&&(iV(e)?eN:el).test(oH(e))}function ne(e){return"function"==typeof e?e:null==e?aq:"object"==typeof e?iU(e)?ni(e[0],e[1]):no(e):aX(e)}function nt(e){if(!oI(e))return t2(e);var t=[];for(var r in eC(e))eB.call(e,r)&&"constructor"!=r&&t.push(r);return t}function nr(e,t){return e<t}function nn(e,t){var r=-1,n=iH(e)?ev(e.length):[];return rU(e,function(e,o,i){n[++r]=t(e,o,i)}),n}function no(e){var t=ob(e);return 1==t.length&&t[0][2]?oT(t[0][0],t[0][1]):function(r){return r===e||r7(r,e,t)}}function ni(e,t){var n;return ok(e)&&(n=t)==n&&!iY(n)?oT(oz(e),t):function(n){var o=ah(n,e);return o===r&&o===t?ap(n,e):r4(t,o,3)}}function na(e,t,n,o,i){e!==t&&rK(t,function(a,s){if(i||(i=new rA),iY(a))!function(e,t,n,o,i,a,s){var c=oD(e,n),l=oD(t,n),u=s.get(l);if(u){rS(e,n,u);return}var d=a?a(c,l,n+"",e,t,s):r,f=d===r;if(f){var h=iU(l),p=!h&&iG(l),m=!h&&!p&&i8(l);d=l,h||p||m?iU(c)?d=c:iq(c)?d=nW(c):p?(f=!1,d=nL(l,!0)):m?(f=!1,d=nz(l,!0)):d=[]:i1(l)||iL(l)?(d=c,iL(c)?d=ao(c):(!iY(c)||iV(c))&&(d=oC(l))):f=!1}f&&(s.set(l,d),i(d,l,o,a,s),s.delete(l)),rS(e,n,d)}(e,t,s,n,na,o,i);else{var c=o?o(oD(e,s),a,s+"",e,t,i):r;c===r&&(c=a),rS(e,s,c)}},ay)}function ns(e,t){var n=e.length;if(n)return oP(t+=t<0?n:0,n)?e[t]:r}function nc(e,t,r){t=t.length?th(t,function(e){return iU(e)?function(t){return rJ(t,1===e.length?e[0]:e)}:e}):[aq];var n=-1;return t=th(t,tT(om())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(nn(e,function(e,r,o){return{criteria:th(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,a=o.length,s=r.length;++n<a;){var c=nH(o[n],i[n]);if(c){if(n>=s)return c;return c*("desc"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)})}function nl(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],s=rJ(e,a);r(s,a)&&nb(i,nR(a,e),s)}return i}function nu(e,t,r,n){var o=n?tx:tE,i=-1,a=t.length,s=e;for(e===t&&(t=nW(t)),r&&(s=th(e,tT(r)));++i<a;)for(var c=0,l=t[i],u=r?r(l):l;(c=o(s,u,c,n))>-1;)s!==e&&e2.call(s,c,1),e2.call(e,c,1);return e}function nd(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;oP(o)?e2.call(e,o,1):nS(e,o)}}return e}function nf(e,t){return e+tY(t4()*(t-e+1))}function nh(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do t%2&&(r+=e),(t=tY(t/2))&&(e+=e);while(t);return r}function np(e,t){return oR(oB(e,t,aq),e+"")}function nm(e){return rj(ak(e))}function ng(e,t){var r=ak(e);return oL(r,rM(t,0,r.length))}function nb(e,t,n,o){if(!iY(e))return e;t=nR(t,e);for(var i=-1,a=t.length,s=a-1,c=e;null!=c&&++i<a;){var l=oz(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(i!=s){var d=c[l];(u=o?o(d,l,c):r)===r&&(u=iY(d)?d:oP(t[i+1])?[]:{})}rI(c,l,u),c=c[l]}return e}var nv=ri?function(e,t){return ri.set(e,t),e}:aq,ny=e7?function(e,t){return e7(e,"toString",{configurable:!0,enumerable:!1,value:aU(t),writable:!0})}:aq;function nw(e){return oL(ak(e))}function nE(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=ev(o);++n<o;)i[n]=e[n+t];return i}function nx(e,t){var r;return rU(e,function(e,n,o){return!(r=t(e,n,o))}),!!r}function nC(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!i5(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return nA(e,t,aq,r)}function nA(e,t,n,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);for(var s=t!=t,c=null===t,l=i5(t),u=t===r;i<a;){var d=tY((i+a)/2),f=n(e[d]),h=f!==r,p=null===f,m=f==f,g=i5(f);if(s)var b=o||m;else b=u?m&&(o||h):c?m&&h&&(o||!p):l?m&&h&&!p&&(o||!g):!p&&!g&&(o?f<=t:f<t);b?i=d+1:a=d}return t3(a,4294967294)}function nP(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!iR(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function nj(e){return"number"==typeof e?e:i5(e)?s:+e}function nk(e){if("string"==typeof e)return e;if(iU(e))return th(e,nk)+"";if(i5(e))return rp?rp.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}function nO(e,t,r){var n=-1,o=td,i=e.length,a=!0,s=[],c=s;if(r)a=!1,o=tf;else if(i>=200){var l=t?null:or(e);if(l)return tH(l);a=!1,o=t_,c=new rC}else c=t?[]:s;e:for(;++n<i;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else o(c,d,r)||(c!==s&&c.push(d),s.push(u))}return s}function nS(e,t){return t=nR(t,e),null==(e=o_(e,t))||delete e[oz(o1(t))]}function nI(e,t,r,n){return nb(e,t,r(rJ(e,t)),n)}function nT(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?nE(e,n?0:i,n?i+1:o):nE(e,n?i+1:0,n?o:i)}function nB(e,t){var r=e;return r instanceof ry&&(r=r.value()),tm(t,function(e,t){return t.func.apply(t.thisArg,tp([e],t.args))},r)}function n_(e,t,r){var n=e.length;if(n<2)return n?nO(e[0]):[];for(var o=-1,i=ev(n);++o<n;)for(var a=e[o],s=-1;++s<n;)s!=o&&(i[o]=rL(i[o]||a,e[s],t,r));return nO(rW(i,1),t,r)}function nD(e,t,n){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var c=o<a?t[o]:r;n(s,e[o],c)}return s}function n$(e){return iq(e)?e:[]}function nM(e){return"function"==typeof e?e:aq}function nR(e,t){return iU(e)?e:ok(e,t)?[e]:oU(ai(e))}function nN(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:nE(e,t,n)}var nF=tv||function(e){return e6.clearTimeout(e)};function nL(e,t){if(t)return e.slice();var r=e.length,n=eq?eq(r):new e.constructor(r);return e.copy(n),n}function nU(e){var t=new e.constructor(e.byteLength);return new eU(t).set(new eU(e)),t}function nz(e,t){var r=t?nU(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nH(e,t){if(e!==t){var n=e!==r,o=null===e,i=e==e,a=i5(e),s=t!==r,c=null===t,l=t==t,u=i5(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||o&&s&&l||!n&&l||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||c&&n&&i||!s&&i||!l)return -1}return 0}function nq(e,t,r,n){for(var o=-1,i=e.length,a=r.length,s=-1,c=t.length,l=t6(i-a,0),u=ev(c+l),d=!n;++s<c;)u[s]=t[s];for(;++o<a;)(d||o<i)&&(u[r[o]]=e[o]);for(;l--;)u[s++]=e[o++];return u}function nG(e,t,r,n){for(var o=-1,i=e.length,a=-1,s=r.length,c=-1,l=t.length,u=t6(i-s,0),d=ev(u+l),f=!n;++o<u;)d[o]=e[o];for(var h=o;++c<l;)d[h+c]=t[c];for(;++a<s;)(f||o<i)&&(d[h+r[a]]=e[o++]);return d}function nW(e,t){var r=-1,n=e.length;for(t||(t=ev(n));++r<n;)t[r]=e[r];return t}function nK(e,t,n,o){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var c=t[a],l=o?o(n[c],e[c],c,n,e):r;l===r&&(l=e[c]),i?rD(n,c,l):rI(n,c,l)}return n}function nV(e,t){return function(r,n){var o=iU(r)?ta:rB,i=t?t():{};return o(r,e,om(n,2),i)}}function nQ(e){return np(function(t,n){var o=-1,i=n.length,a=i>1?n[i-1]:r,s=i>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(i--,a):r,s&&oj(n[0],n[1],s)&&(a=i<3?r:a,i=1),t=eC(t);++o<i;){var c=n[o];c&&e(t,c,o,a)}return t})}function nZ(e,t){return function(r,n){if(null==r)return r;if(!iH(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=eC(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function nY(e){return function(t,r,n){for(var o=-1,i=eC(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===r(i[c],c,i))break}return t}}function nJ(e){return function(t){var n=tF(t=ai(t))?tG(t):r,o=n?nN(n,1).join(""):t.slice(1);return(n?n[0]:t.charAt(0))[e]()+o}}function nX(e){return function(t){return tm(aN(aI(t).replace(ez,"")),e,"")}}function n0(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rg(e.prototype),n=e.apply(r,t);return iY(n)?n:r}}function n1(e){return function(t,n,o){var i=eC(t);if(!iH(t)){var a=om(n,3);t=av(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,o);return s>-1?i[a?t[s]:s]:r}}function n2(e){return ol(function(t){var o=t.length,i=o,a=rv.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new ej(n);if(a&&!c&&"wrapper"==oh(s))var c=new rv([],!0)}for(i=c?i:o;++i<o;){var l=oh(s=t[i]),u="wrapper"==l?of(s):r;c=u&&oO(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[oh(u[0])].apply(c,u[3]):1==s.length&&oO(s)?c[l]():c.thru(s)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&iU(r))return c.plant(r).value();for(var n=0,i=o?t[n].apply(this,e):r;++n<o;)i=t[n].call(this,i);return i}})}function n6(e,t,n,o,i,a,s,c,l,u){var d=128&t,f=1&t,h=2&t,p=24&t,m=512&t,g=h?r:n0(e);return function b(){for(var v=arguments.length,y=ev(v),w=v;w--;)y[w]=arguments[w];if(p)var E=op(b),x=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(y,E);if(o&&(y=nq(y,o,i,p)),a&&(y=nG(y,a,s,p)),v-=x,p&&v<u){var C=tz(y,E);return oe(e,t,n6,b.placeholder,n,y,C,c,l,u-v)}var A=f?n:this,P=h?A[e]:e;return v=y.length,c?y=function(e,t){for(var n=e.length,o=t3(t.length,n),i=nW(e);o--;){var a=t[o];e[o]=oP(a,n)?i[a]:r}return e}(y,c):m&&v>1&&y.reverse(),d&&l<v&&(y.length=l),this&&this!==e6&&this instanceof b&&(P=g||n0(P)),P.apply(A,y)}}function n3(e,t){return function(r,n){var o,i;return o=t(n),i={},rQ(r,function(t,r,n){e(i,o(t),r,n)}),i}}function n5(e,t){return function(n,o){var i;if(n===r&&o===r)return t;if(n!==r&&(i=n),o!==r){if(i===r)return o;"string"==typeof n||"string"==typeof o?(n=nk(n),o=nk(o)):(n=nj(n),o=nj(o)),i=e(n,o)}return i}}function n8(e){return ol(function(t){return t=th(t,tT(om())),np(function(r){var n=this;return e(t,function(e){return ti(e,n,r)})})})}function n4(e,t){var n=(t=t===r?" ":nk(t)).length;if(n<2)return n?nh(t,e):t;var o=nh(t,tZ(e/tq(t)));return tF(t)?nN(tG(o),0,e).join(""):o.slice(0,e)}function n7(e){return function(t,n,o){return o&&"number"!=typeof o&&oj(t,n,o)&&(n=o=r),t=ae(t),n===r?(n=t,t=0):n=ae(n),o=o===r?t<n?1:-1:ae(o),function(e,t,r,n){for(var o=-1,i=t6(tZ((t-e)/(r||1)),0),a=ev(i);i--;)a[n?i:++o]=e,e+=r;return a}(t,n,o,e)}}function n9(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=an(t),r=an(r)),e(t,r)}}function oe(e,t,n,o,i,a,s,c,l,u){var d=8&t,f=d?s:r,h=d?r:s,p=d?a:r,m=d?r:a;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var g=[e,t,i,p,f,m,h,c,l,u],b=n.apply(r,g);return oO(e)&&o$(b,g),b.placeholder=o,oN(b,e,t)}function ot(e){var t=ex[e];return function(e,r){if(e=an(e),(r=null==r?0:t3(at(r),292))&&t0(e)){var n=(ai(e)+"e").split("e");return+((n=(ai(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var or=rr&&1/tH(new rr([,-0]))[1]==a?function(e){return new rr(e)}:aQ;function on(e){return function(t){var r,n,o=oE(t);return o==g?tL(t):o==E?(r=-1,n=Array(t.size),t.forEach(function(e){n[++r]=[e,e]}
1138),n):th(e(t),function(e){return[e,t[e]]})}}function oo(e,t,o,a,s,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new ej(n);var f=a?a.length:0;if(f||(t&=-97,a=s=r),l=l===r?l:t6(at(l),0),u=u===r?u:at(u),f-=s?s.length:0,64&t){var h=a,p=s;a=s=r}var m=d?r:of(e),g=[e,t,o,a,s,h,p,c,l,u];if(m&&function(e,t){var r=e[1],n=t[1],o=r|n,a=o<131,s=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(a||s){1&n&&(e[2]=t[2],o|=1&r?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?nq(l,c,t[4]):c,e[4]=l?tz(e[3],i):t[4]}(c=t[5])&&(l=e[5],e[5]=l?nG(l,c,t[6]):c,e[6]=l?tz(e[5],i):t[6]),(c=t[7])&&(e[7]=c),128&n&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}}(g,m),e=g[0],t=g[1],o=g[2],a=g[3],s=g[4],(u=g[9]=g[9]===r?d?0:e.length:t6(g[9]-f,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?(b=e,v=t,y=u,w=n0(b),B=function e(){for(var t=arguments.length,n=ev(t),o=t,i=op(e);o--;)n[o]=arguments[o];var a=t<3&&n[0]!==i&&n[t-1]!==i?[]:tz(n,i);return(t-=a.length)<y?oe(b,v,n6,e.placeholder,r,n,a,r,r,y-t):ti(this&&this!==e6&&this instanceof e?w:b,this,n)}):32!=t&&33!=t||s.length?B=n6.apply(r,g):(E=e,x=t,C=o,A=a,P=1&x,j=n0(E),B=function e(){for(var t=-1,r=arguments.length,n=-1,o=A.length,i=ev(o+r),a=this&&this!==e6&&this instanceof e?j:E;++n<o;)i[n]=A[n];for(;r--;)i[n++]=arguments[++t];return ti(a,P?C:this,i)});else var b,v,y,w,E,x,C,A,P,j,k,O,S,I,T,B=(k=e,O=t,S=o,I=1&O,T=n0(k),function e(){return(this&&this!==e6&&this instanceof e?T:k).apply(I?S:this,arguments)});return oN((m?nv:o$)(B,g),e,t)}function oi(e,t,n,o){return e===r||iR(e,eS[n])&&!eB.call(o,n)?t:e}function oa(e,t,n,o,i,a){return iY(e)&&iY(t)&&(a.set(t,e),na(e,t,r,oa,a),a.delete(t)),e}function os(e){return i1(e)?r:e}function oc(e,t,n,o,i,a){var s=1&n,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=2&n?new rC:r;for(a.set(e,t),a.set(t,e);++f<c;){var m=e[f],g=t[f];if(o)var b=s?o(g,m,f,t,e,a):o(m,g,f,e,t,a);if(b!==r){if(b)continue;h=!1;break}if(p){if(!tb(t,function(e,t){if(!t_(p,t)&&(m===e||i(m,e,n,o,a)))return p.push(t)})){h=!1;break}}else if(!(m===g||i(m,g,n,o,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function ol(e){return oR(oB(e,r,oZ),e+"")}function ou(e){return rX(e,av,oy)}function od(e){return rX(e,ay,ow)}var of=ri?function(e){return ri.get(e)}:aQ;function oh(e){for(var t=e.name+"",r=ra[t],n=eB.call(ra,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function op(e){return(eB.call(rm,"placeholder")?rm:e).placeholder}function om(){var e=rm.iteratee||aG;return e=e===aG?ne:e,arguments.length?e(arguments[0],arguments[1]):e}function og(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function ob(e){for(var t=av(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,o==o&&!iY(o)]}return t}function ov(e,t){var n=null==e?r:e[t];return r9(n)?n:r}var oy=tJ?function(e){return null==e?[]:tu(tJ(e=eC(e)),function(t){return e1.call(e,t)})}:a2,ow=tJ?function(e){for(var t=[];e;)tp(t,oy(e)),e=eW(e);return t}:a2,oE=r0;function ox(e,t,r){t=nR(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=oz(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&iZ(o)&&oP(a,o)&&(iU(e)||iL(e))}function oC(e){return"function"!=typeof e.constructor||oI(e)?{}:rg(eW(e))}function oA(e){return iU(e)||iL(e)||!!(e3&&e&&e[e3])}function oP(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ed.test(e))&&e>-1&&e%1==0&&e<t}function oj(e,t,r){if(!iY(r))return!1;var n=typeof t;return("number"==n?!!(iH(r)&&oP(t,r.length)):"string"==n&&t in r)&&iR(r[t],e)}function ok(e,t){if(iU(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||i5(e))||K.test(e)||!W.test(e)||null!=t&&e in eC(t)}function oO(e){var t=oh(e),r=rm[t];if("function"!=typeof r||!(t in ry.prototype))return!1;if(e===r)return!0;var n=of(r);return!!n&&e===n[0]}(t9&&oE(new t9(new ArrayBuffer(1)))!=j||re&&oE(new re)!=g||rt&&oE(rt.resolve())!=y||rr&&oE(new rr)!=E||rn&&oE(new rn)!=A)&&(oE=function(e){var t=r0(e),n=t==v?e.constructor:r,o=n?oH(n):"";if(o)switch(o){case rs:return j;case rc:return g;case rl:return y;case ru:return E;case rd:return A}return t});var oS=eI?iV:a6;function oI(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||eS;return e===r}function oT(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in eC(n))}}
vendor: 3,772 bytes, lines 1138-1140
1138function oB(e,t,n){return t=t6(t===r?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=t6(r.length-t,0),a=ev(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=ev(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),ti(e,this,s)}}function o_(e,t){return t.length<2?e:rJ(e,nE(t,0,-1))}function oD(e,t){if(!("constructor"===t&&"function"==typeof e[t])&&"__proto__"!=t)return e[t]}var o$=oF(nv),oM=tK||function(e,t){return e6.setTimeout(e,t)},oR=oF(ny);function oN(e,t,r){var n,o,i=t+"";return oR(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(X,`{ 1139/* [wrapped with `+t+`] */ 1140`)}(i,(n=(o=i.match(ee))?o[1].split(et):[],ts(c,function(e){var t="_."+e[0];r&e[1]&&!td(n,t)&&n.push(t)}),n.sort())))}function oF(e){var t=0,n=0;return function(){var o=t5(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function oL(e,t){var n=-1,o=e.length,i=o-1;for(t=t===r?o:t;++n<t;){var a=nf(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var oU=(eg=(em=iT(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(V,function(e,r,n,o){t.push(n?o.replace(eo,"$1"):r||e)}),t},function(e){return 500===eg.size&&eg.clear(),e})).cache,em);function oz(e){if("string"==typeof e||i5(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function oH(e){if(null!=e){try{return eT.call(e)}catch{}try{return e+""}catch{}}return""}function oq(e){if(e instanceof ry)return e.clone();var t=new rv(e.__wrapped__,e.__chain__);return t.__actions__=nW(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var oG=np(function(e,t){return iq(e)?rL(e,rW(t,1,iq,!0)):[]}),oW=np(function(e,t){var n=o1(t);return iq(n)&&(n=r),iq(e)?rL(e,rW(t,1,iq,!0),om(n,2)):[]}),oK=np(function(e,t){var n=o1(t);return iq(n)&&(n=r),iq(e)?rL(e,rW(t,1,iq,!0),r,n):[]});function oV(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var o=null==r?0:at(r);return o<0&&(o=t6(n+o,0)),tw(e,om(t,3),o)}function oQ(e,t,n){var o=null==e?0:e.length;if(!o)return -1;var i=o-1;return n!==r&&(i=at(n),i=n<0?t6(o+i,0):t3(i,o-1)),tw(e,om(t,3),i,!0)}function oZ(e){return(null==e?0:e.length)?rW(e,1):[]}function oY(e){return e&&e.length?e[0]:r}var oJ=np(function(e){var t=th(e,n$);return t.length&&t[0]===e[0]?r3(t):[]}),oX=np(function(e){var t=o1(e),n=th(e,n$);return t===o1(n)?t=r:n.pop(),n.length&&n[0]===e[0]?r3(n,om(t,2)):[]}),o0=np(function(e){var t=o1(e),n=th(e,n$);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?r3(n,r,t):[]});function o1(e){var t=null==e?0:e.length;return t?e[t-1]:r}var o2=np(o6);function o6(e,t){return e&&e.length&&t&&t.length?nu(e,t):e}var o3=ol(function(e,t){var r=null==e?0:e.length,n=r$(e,t);return nd(e,th(t,function(e){return oP(e,r)?+e:e}).sort(nH)),n});function o5(e){return null==e?e:t7.call(e)}var o8=np(function(e){return nO(rW(e,1,iq,!0))}),o4=np(function(e){var t=o1(e);return iq(t)&&(t=r),nO(rW(e,1,iq,!0),om(t,2))}),o7=np(function(e){var t=o1(e);return t="function"==typeof t?t:r,nO(rW(e,1,iq,!0),r,t)});function o9(e){if(!(e&&e.length))return[];var t=0;return e=tu(e,function(e){if(iq(e))return t=t6(e.length,t),!0}),tS(t,function(t){return th(e,tP(t))})}function ie(e,t){if(!(e&&e.length))return[];var n=o9(e);return null==t?n:th(n,function(e){return ti(t,r,e)})}var it=np(function(e,t){return iq(e)?rL(e,t):[]}),ir=np(function(e){return n_(tu(e,iq))}),io=np(function(e){var t=o1(e);return iq(t)&&(t=r),n_(tu(e,iq),om(t,2))}),ii=np(function(e){var t=o1(e);return t="function"==typeof t?t:r,n_(tu(e,iq),r,t)}),ia=np(o9),is=np(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ie(e,n)});function ic(e){var t=rm(e);return t.__chain__=!0,t}function il(e,t){return t(e)}var iu=ol(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,
vendor: 5,613 bytes, line 1140
1140i=function(t){return r$(t,e)};return!(t>1)&&!this.__actions__.length&&o instanceof ry&&oP(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:il,args:[i],thisArg:r}),new rv(o,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(i)}),id=nV(function(e,t,r){eB.call(e,r)?++e[r]:rD(e,r,1)}),ih=n1(oV),ip=n1(oQ);function im(e,t){return(iU(e)?ts:rU)(e,om(t,3))}function ig(e,t){return(iU(e)?tc:rz)(e,om(t,3))}var ib=nV(function(e,t,r){eB.call(e,r)?e[r].push(t):rD(e,r,[t])}),iv=np(function(e,t,r){var n=-1,o="function"==typeof t,i=iH(e)?ev(e.length):[];return rU(e,function(e){i[++n]=o?ti(t,e,r):r5(e,t,r)}),i}),iy=nV(function(e,t,r){rD(e,r,t)});function iw(e,t){return(iU(e)?th:nn)(e,om(t,3))}var iE=nV(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),ix=np(function(e,t){if(null==e)return[];var r=t.length;return r>1&&oj(e,t[0],t[1])?t=[]:r>2&&oj(t[0],t[1],t[2])&&(t=[t[0]]),nc(e,rW(t,1),[])}),iC=tj||function(){return e6.Date.now()};function iA(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,oo(e,128,r,r,r,r,t)}function iP(e,t){var o;if("function"!=typeof t)throw new ej(n);return e=at(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var ij=np(function(e,t,r){var n=1;if(r.length){var o=tz(r,op(ij));n|=32}return oo(e,n,t,r,o)}),ik=np(function(e,t,r){var n=3;if(r.length){var o=tz(r,op(ik));n|=32}return oo(t,n,e,r,o)});function iO(e,t,o){var i,a,s,c,l,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new ej(n);function m(t){var n=i,o=a;return i=a=r,d=t,c=e.apply(o,n)}function g(e){var n=e-u,o=e-d;return u===r||n>=t||n<0||h&&o>=s}function b(){var e,r,n,o=iC();if(g(o))return v(o);l=oM(b,(e=o-u,r=o-d,n=t-e,h?t3(n,s-r):n))}function v(e){return l=r,p&&i?m(e):(i=a=r,c)}function y(){var e,n=iC(),o=g(n);if(i=arguments,a=this,u=n,o){if(l===r)return d=e=u,l=oM(b,t),f?m(e):c;if(h)return nF(l),l=oM(b,t),m(u)}return l===r&&(l=oM(b,t)),c}return t=an(t)||0,iY(o)&&(f=!!o.leading,s=(h="maxWait"in o)?t6(an(o.maxWait)||0,t):s,p="trailing"in o?!!o.trailing:p),y.cancel=function(){l!==r&&nF(l),d=0,i=u=a=l=r},y.flush=function(){return l===r?c:v(iC())},y}var iS=np(function(e,t){return rF(e,1,t)}),iI=np(function(e,t,r){return rF(e,an(t)||0,r)});function iT(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ej(n);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(iT.Cache||rx),r}function iB(e){if("function"!=typeof e)throw new ej(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}iT.Cache=rx;var i_=np(function(e,t){var r=(t=1==t.length&&iU(t[0])?th(t[0],tT(om())):th(rW(t,1),tT(om()))).length;return np(function(n){for(var o=-1,i=t3(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return ti(e,this,n)})}),iD=np(function(e,t){var n=tz(t,op(iD));return oo(e,32,r,t,n)}),i$=np(function(e,t){var n=tz(t,op(i$));return oo(e,64,r,t,n)}),iM=ol(function(e,t){return oo(e,256,r,r,r,t)});function iR(e,t){return e===t||e!=e&&t!=t}var iN=n9(r1),iF=n9(function(e,t){return e>=t}),iL=r8(function(){return arguments}())?r8:function(e){return iJ(e)&&eB.call(e,"callee")&&!e1.call(e,"callee")},iU=ev.isArray,iz=e9?tT(e9):function(e){return iJ(e)&&r0(e)==P};function iH(e){return null!=e&&iZ(e.length)&&!iV(e)}function iq(e){return iJ(e)&&iH(e)}var iG=tX||a6,iW=te?tT(te):function(e){return iJ(e)&&r0(e)==f};function iK(e){if(!iJ(e))return!1;var t=r0(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i1(e)}function iV(e){if(!iY(e))return!1;var t=r0(e);return t==p||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function iQ(e){return"number"==typeof e&&e==at(e)}function iZ(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function iY(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function iJ(e){return null!=e&&"object"==typeof e}var iX=tt?tT(tt):function(e){return iJ(e)&&oE(e)==g};function i0(e){return"number"==typeof e||iJ(e)&&r0(e)==b}function i1(e){if(!iJ(e)||r0(e)!=v)return!1;var t=eW(e);if(null===t)return!0;var r=eB.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eT.call(r)==eM}var i2=tr?tT(tr):function(e){return iJ(e)&&r0(e)==w},i6=tn?tT(tn):function(e){return iJ(e)&&oE(e)==E};function i3(e){return"string"==typeof e||!iU(e)&&iJ(e)&&r0(e)==x}function i5(e){return"symbol"==typeof e||iJ(e)&&r0(e)==C}var i8=to?tT(to):function(e){return iJ(e)&&iZ(e.length)&&!!eZ[r0(e)]},i4=n9(nr),i7=n9(function(e,t){return e<=t});function i9(e){if(!e)return[];if(iH(e))return i3(e)?tG(e):nW(e);if(e5&&e[e5])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[e5]());var t=oE(e);return(t==g?tL:t==E?tH:ak)(e)}function ae(e){return e?(e=an(e))===a||e===-a?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function at(e){var t=ae(e),r=t%1;return t==t?r?t-r:t:0}function ar(e){return e?rM(at(e),0,4294967295):0}function an(e){if("number"==typeof e)return e;if(i5(e))return s;if(iY(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=iY(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tI(e);var r=ec.test(e);return r||eu.test(e)?e0(e.slice(2),r?2:8):es.test(e)?s:+e}function ao(e){return nK(e,ay(e))}function ai(e){return null==e?"":nk(e)}var aa=nQ(function(e,t){if(oI(t)||iH(t)){nK(t,av(t),e);return}for(var r in t)eB.call(t,r)&&rI(e,r,t[r])}),as=nQ(function(e,t){nK(t,ay(t),e)}),ac=nQ(function(e,t,r,n){nK(t,ay(t),e,n)}
1140),al=nQ(function(e,t,r,n){nK(t,av(t),e,n)}),au=ol(r$),ad=np(function(e,t){e=eC(e);var n=-1,o=t.length,i=o>2?t[2]:r;for(i&&oj(t[0],t[1],i)&&(o=1);++n<o;)for(var a=t[n],s=ay(a),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===r||iR(d,eS[u])&&!eB.call(e,u))&&(e[u]=a[u])}return e}),af=np(function(e){return e.push(r,oa),ti(aE,r,e)});function ah(e,t,n){var o=null==e?r:rJ(e,t);return o===r?n:o}function ap(e,t){return null!=e&&ox(e,t,r6)}var am=n3(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=e$.call(t)),e[t]=r},aU(aq)),ag=n3(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=e$.call(t)),eB.call(e,t)?e[t].push(r):e[t]=[r]},om),ab=np(r5);function av(e){return iH(e)?rP(e):nt(e)}function ay(e){return iH(e)?rP(e,!0):function(e){if(!iY(e))return function(e){var t=[];if(null!=e)for(var r in eC(e))t.push(r);return t}(e);var t=oI(e),r=[];for(var n in e)"constructor"==n&&(t||!eB.call(e,n))||r.push(n);return r}(e)}var aw=nQ(function(e,t,r){na(e,t,r)}),aE=nQ(function(e,t,r,n){na(e,t,r,n)}),ax=ol(function(e,t){var r={};if(null==e)return r;var n=!1;t=th(t,function(t){return t=nR(t,e),n||(n=t.length>1),t}),nK(e,od(e),r),n&&(r=rR(r,7,os));for(var o=t.length;o--;)nS(r,t[o]);return r}),aC=ol(function(e,t){return null==e?{}:nl(e,t,function(t,r){return ap(e,r)})});function aA(e,t){if(null==e)return{};var r=th(od(e),function(e){return[e]});return t=om(t),nl(e,r,function(e,r){return t(e,r[0])})}var aP=on(av),aj=on(ay);function ak(e){return null==e?[]:tB(e,av(e))}var aO=nX(function(e,t,r){return t=t.toLowerCase(),e+(r?aS(t):t)});function aS(e){return aR(ai(e).toLowerCase())}function aI(e){return(e=ai(e))&&e.replace(ef,tM).replace(eH,"")}var aT=nX(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),aB=nX(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),a_=nJ("toLowerCase"),aD=nX(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),a$=nX(function(e,t,r){return e+(r?" ":"")+aR(t)}),aM=nX(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),aR=nJ("toUpperCase");function aN(e,t,n){var o;return e=ai(e),(t=n?r:t)===r?(o=e,eK.test(o))?e.match(eG)||[]:e.match(er)||[]:e.match(t)||[]}var aF=np(function(e,t){try{return ti(e,r,t)}catch(e){return iK(e)?e:new ew(e)}}),aL=ol(function(e,t){return ts(t,function(t){rD(e,t=oz(t),ij(e[t],e))}),e});function aU(e){return function(){return e}}var az=n2(),aH=n2(!0);function aq(e){return e}function aG(e){return ne("function"==typeof e?e:rR(e,1))}var aW=np(function(e,t){return function(r){return r5(r,e,t)}}),aK=np(function(e,t){return function(r){return r5(e,r,t)}});function aV(e,t,r){var n=av(t),o=rY(t,n);null!=r||iY(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=rY(t,av(t)));var i=!(iY(r)&&"chain"in r)||!!r.chain,a=iV(e);return ts(o,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=nW(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,tp([this.value()],arguments))})}),e}function aQ(){}var aZ=n8(th),aY=n8(tl),aJ=n8(tb);function aX(e){return ok(e)?tP(oz(e)):function(t){return rJ(t,e)}}var a0=n7(),a1=n7(!0);function a2(){return[]}function a6(){return!1}var a3=n5(function(e,t){return e+t},0),a5=ot("ceil"),a8=n5(function(e,t){return e/t},1),a4=ot("floor"),a7=n5(function(e,t){return e*t},1),a9=ot("round"),se=n5(function(e,t){return e-t},0);return rm.after=function(e,t){if("function"!=typeof t)throw new ej(n);return e=at(e),function(){if(--e<1)return t.apply(this,arguments)}},rm.ary=iA,rm.assign=aa,rm.assignIn=as,rm.assignInWith=ac,rm.assignWith=al,rm.at=au,rm.before=iP,rm.bind=ij,rm.bindAll=aL,rm.bindKey=ik,rm.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return iU(e)?e:[e]},rm.chain=ic,rm.chunk=function(e,t,n){t=(n?oj(e,t,n):t===r)?1:t6(at(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=ev(tZ(o/t));i<o;)s[a++]=nE(e,i,i+=t);return s},rm.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},rm.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ev(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];
vendor: 1,616 bytes, line 1140
1140return tp(iU(r)?nW(r):[r],rW(t,1))},rm.cond=function(e){var t=null==e?0:e.length,r=om();return e=t?th(e,function(e){if("function"!=typeof e[1])throw new ej(n);return[r(e[0]),e[1]]}):[],np(function(r){for(var n=-1;++n<t;){var o=e[n];if(ti(o[0],this,r))return ti(o[1],this,r)}})},rm.conforms=function(e){var t,r;return t=rR(e,1),r=av(t),function(e){return rN(e,t,r)}},rm.constant=aU,rm.countBy=id,rm.create=function(e,t){var r=rg(e);return null==t?r:r_(r,t)},rm.curry=function e(t,n,o){n=o?r:n;var i=oo(t,8,r,r,r,r,r,n);return i.placeholder=e.placeholder,i},rm.curryRight=function e(t,n,o){n=o?r:n;var i=oo(t,16,r,r,r,r,r,n);return i.placeholder=e.placeholder,i},rm.debounce=iO,rm.defaults=ad,rm.defaultsDeep=af,rm.defer=iS,rm.delay=iI,rm.difference=oG,rm.differenceBy=oW,rm.differenceWith=oK,rm.drop=function(e,t,n){var o=null==e?0:e.length;return o?nE(e,(t=n||t===r?1:at(t))<0?0:t,o):[]},rm.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?nE(e,0,(t=o-(t=n||t===r?1:at(t)))<0?0:t):[]},rm.dropRightWhile=function(e,t){return e&&e.length?nT(e,om(t,3),!0,!0):[]},rm.dropWhile=function(e,t){return e&&e.length?nT(e,om(t,3),!0):[]},rm.fill=function(e,t,n,o){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&oj(e,t,n)&&(n=0,o=i),function(e,t,n,o){var i=e.length;for((n=at(n))<0&&(n=-n>i?0:i+n),(o=o===r||o>i?i:at(o))<0&&(o+=i),o=n>o?0:ar(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},rm.filter=function(e,t){return(iU(e)?tu:rG)(e,om(t,3))},rm.flatMap=function(e,t){return rW(iw(e,t),1)},rm.flatMapDeep=function(e,t){return rW(iw(e,t),a)},rm.flatMapDepth=function(e,t,n){return n=n===r?1:at(n),rW(iw(e,t),n)}
vendor: 4,559 bytes, line 1140
1140,rm.flatten=oZ,rm.flattenDeep=function(e){return(null==e?0:e.length)?rW(e,a):[]},rm.flattenDepth=function(e,t){return(null==e?0:e.length)?rW(e,t=t===r?1:at(t)):[]},rm.flip=function(e){return oo(e,512)},rm.flow=az,rm.flowRight=aH,rm.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},rm.functions=function(e){return null==e?[]:rY(e,av(e))},rm.functionsIn=function(e){return null==e?[]:rY(e,ay(e))},rm.groupBy=ib,rm.initial=function(e){return(null==e?0:e.length)?nE(e,0,-1):[]},rm.intersection=oJ,rm.intersectionBy=oX,rm.intersectionWith=o0,rm.invert=am,rm.invertBy=ag,rm.invokeMap=iv,rm.iteratee=aG,rm.keyBy=iy,rm.keys=av,rm.keysIn=ay,rm.map=iw,rm.mapKeys=function(e,t){var r={};return t=om(t,3),rQ(e,function(e,n,o){rD(r,t(e,n,o),e)}),r},rm.mapValues=function(e,t){var r={};return t=om(t,3),rQ(e,function(e,n,o){rD(r,n,t(e,n,o))}),r},rm.matches=function(e){return no(rR(e,1))},rm.matchesProperty=function(e,t){return ni(e,rR(t,1))},rm.memoize=iT,rm.merge=aw,rm.mergeWith=aE,rm.method=aW,rm.methodOf=aK,rm.mixin=aV,rm.negate=iB,rm.nthArg=function(e){return e=at(e),np(function(t){return ns(t,e)})},rm.omit=ax,rm.omitBy=function(e,t){return aA(e,iB(om(t)))},rm.once=function(e){return iP(2,e)},rm.orderBy=function(e,t,n,o){return null==e?[]:(iU(t)||(t=null==t?[]:[t]),iU(n=o?r:n)||(n=null==n?[]:[n]),nc(e,t,n))},rm.over=aZ,rm.overArgs=i_,rm.overEvery=aY,rm.overSome=aJ,rm.partial=iD,rm.partialRight=i$,rm.partition=iE,rm.pick=aC,rm.pickBy=aA,rm.property=aX,rm.propertyOf=function(e){return function(t){return null==e?r:rJ(e,t)}},rm.pull=o2,rm.pullAll=o6,rm.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?nu(e,t,om(r,2)):e},rm.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?nu(e,t,r,n):e},rm.pullAt=o3,rm.range=a0,rm.rangeRight=a1,rm.rearg=iM,rm.reject=function(e,t){return(iU(e)?tu:rG)(e,iB(om(t,3)))},rm.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,o=[],i=e.length;for(t=om(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return nd(e,o),r},rm.rest=function(e,t){if("function"!=typeof e)throw new ej(n);return np(e,t=t===r?t:at(t))},rm.reverse=o5,rm.sampleSize=function(e,t,n){return t=(n?oj(e,t,n):t===r)?1:at(t),(iU(e)?rk:ng)(e,t)},rm.set=function(e,t,r){return null==e?e:nb(e,t,r)},rm.setWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:nb(e,t,n,o)},rm.shuffle=function(e){return(iU(e)?rO:nw)(e)},rm.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&oj(e,t,n)?(t=0,n=o):(t=null==t?0:at(t),n=n===r?o:at(n)),nE(e,t,n)):[]},rm.sortBy=ix,rm.sortedUniq=function(e){return e&&e.length?nP(e):[]},rm.sortedUniqBy=function(e,t){return e&&e.length?nP(e,om(t,2)):[]},rm.split=function(e,t,n){return n&&"number"!=typeof n&&oj(e,t,n)&&(t=n=r),(n=n===r?4294967295:n>>>0)?(e=ai(e))&&("string"==typeof t||null!=t&&!i2(t))&&!(t=nk(t))&&tF(e)?nN(tG(e),0,n):e.split(t,n):[]},rm.spread=function(e,t){if("function"!=typeof e)throw new ej(n);return t=null==t?0:t6(at(t),0),np(function(r){var n=r[t],o=nN(r,0,t);return n&&tp(o,n),ti(e,this,o)})},rm.tail=function(e){var t=null==e?0:e.length;return t?nE(e,1,t):[]},rm.take=function(e,t,n){return e&&e.length?nE(e,0,(t=n||t===r?1:at(t))<0?0:t):[]},rm.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?nE(e,(t=o-(t=n||t===r?1:at(t)))<0?0:t,o):[]},rm.takeRightWhile=function(e,t){return e&&e.length?nT(e,om(t,3),!1,!0):[]},rm.takeWhile=function(e,t){return e&&e.length?nT(e,om(t,3)):[]},rm.tap=function(e,t){return t(e),e},rm.throttle=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new ej(n);return iY(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),iO(e,t,{leading:o,maxWait:t,trailing:i})},rm.thru=il,rm.toArray=i9,rm.toPairs=aP,rm.toPairsIn=aj,rm.toPath=function(e){return iU(e)?th(e,oz):i5(e)?[e]:nW(oU(ai(e)))},rm.toPlainObject=ao,rm.transform=function(e,t,r){var n=iU(e),o=n||iG(e)||i8(e);if(t=om(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:iY(e)&&iV(i)?rg(eW(e)):{}}return(o?ts:rQ)(e,function(e,n,o){return t(r,e,n,o)}),r},rm.unary=function(e){return iA(e,1)},rm.union=o8,rm.unionBy=o4,rm.unionWith=o7,rm.uniq=function(e){return e&&e.length?nO(e):[]},rm.uniqBy=function(e,t){return e&&e.length?nO(e,om(t,2)):[]},rm.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?nO(e,r,t):[]},rm.unset=function(e,t){return null==e||nS(e,t)},rm.unzip=o9,rm.unzipWith=ie,rm.update=function(e,t,r){return null==e?e:nI(e,t,nM(r))},rm.updateWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:nI(e,t,nM(n),o)}
vendor: 4,936 bytes, line 1140
1140,rm.values=ak,rm.valuesIn=function(e){return null==e?[]:tB(e,ay(e))},rm.without=it,rm.words=aN,rm.wrap=function(e,t){return iD(nM(t),e)},rm.xor=ir,rm.xorBy=io,rm.xorWith=ii,rm.zip=ia,rm.zipObject=function(e,t){return nD(e||[],t||[],rI)},rm.zipObjectDeep=function(e,t){return nD(e||[],t||[],nb)},rm.zipWith=is,rm.entries=aP,rm.entriesIn=aj,rm.extend=as,rm.extendWith=ac,aV(rm,rm),rm.add=a3,rm.attempt=aF,rm.camelCase=aO,rm.capitalize=aS,rm.ceil=a5,rm.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=an(n))==n?n:0),t!==r&&(t=(t=an(t))==t?t:0),rM(an(e),t,n)},rm.clone=function(e){return rR(e,4)},rm.cloneDeep=function(e){return rR(e,5)},rm.cloneDeepWith=function(e,t){return rR(e,5,t="function"==typeof t?t:r)},rm.cloneWith=function(e,t){return rR(e,4,t="function"==typeof t?t:r)},rm.conformsTo=function(e,t){return null==t||rN(e,t,av(t))},rm.deburr=aI,rm.defaultTo=function(e,t){return null==e||e!=e?t:e},rm.divide=a8,rm.endsWith=function(e,t,n){e=ai(e),t=nk(t);var o=e.length,i=n=n===r?o:rM(at(n),0,o);return(n-=t.length)>=0&&e.slice(n,i)==t},rm.eq=iR,rm.escape=function(e){return(e=ai(e))&&z.test(e)?e.replace(L,tR):e},rm.escapeRegExp=function(e){return(e=ai(e))&&Z.test(e)?e.replace(Q,"\\$&"):e},rm.every=function(e,t,n){var o=iU(e)?tl:rH;return n&&oj(e,t,n)&&(t=r),o(e,om(t,3))},rm.find=ih,rm.findIndex=oV,rm.findKey=function(e,t){return ty(e,om(t,3),rQ)},rm.findLast=ip,rm.findLastIndex=oQ,rm.findLastKey=function(e,t){return ty(e,om(t,3),rZ)},rm.floor=a4,rm.forEach=im,rm.forEachRight=ig,rm.forIn=function(e,t){return null==e?e:rK(e,om(t,3),ay)},rm.forInRight=function(e,t){return null==e?e:rV(e,om(t,3),ay)},rm.forOwn=function(e,t){return e&&rQ(e,om(t,3))},rm.forOwnRight=function(e,t){return e&&rZ(e,om(t,3))},rm.get=ah,rm.gt=iN,rm.gte=iF,rm.has=function(e,t){return null!=e&&ox(e,t,r2)},rm.hasIn=ap,rm.head=oY,rm.identity=aq,rm.includes=function(e,t,r,n){e=iH(e)?e:ak(e),r=r&&!n?at(r):0;var o=e.length;return r<0&&(r=t6(o+r,0)),i3(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&tE(e,t,r)>-1},rm.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var o=null==r?0:at(r);return o<0&&(o=t6(n+o,0)),tE(e,t,o)},rm.inRange=function(e,t,n){var o,i,a;return t=ae(t),n===r?(n=t,t=0):n=ae(n),(o=e=an(e))>=t3(i=t,a=n)&&o<t6(i,a)},rm.invoke=ab,rm.isArguments=iL,rm.isArray=iU,rm.isArrayBuffer=iz,rm.isArrayLike=iH,rm.isArrayLikeObject=iq,rm.isBoolean=function(e){return!0===e||!1===e||iJ(e)&&r0(e)==d},rm.isBuffer=iG,rm.isDate=iW,rm.isElement=function(e){return iJ(e)&&1===e.nodeType&&!i1(e)},rm.isEmpty=function(e){if(null==e)return!0;if(iH(e)&&(iU(e)||"string"==typeof e||"function"==typeof e.splice||iG(e)||i8(e)||iL(e)))return!e.length;var t=oE(e);if(t==g||t==E)return!e.size;if(oI(e))return!nt(e).length;for(var r in e)if(eB.call(e,r))return!1;return!0},rm.isEqual=function(e,t){return r4(e,t)},rm.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:r)?n(e,t):r;return o===r?r4(e,t,r,n):!!o},rm.isError=iK,rm.isFinite=function(e){return"number"==typeof e&&t0(e)},rm.isFunction=iV,rm.isInteger=iQ,rm.isLength=iZ,rm.isMap=iX,rm.isMatch=function(e,t){return e===t||r7(e,t,ob(t))},rm.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,r7(e,t,ob(t),n)},rm.isNaN=function(e){return i0(e)&&e!=+e},rm.isNative=function(e){if(oS(e))throw new ew("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return r9(e)},rm.isNil=function(e){return null==e},rm.isNull=function(e){return null===e},rm.isNumber=i0,rm.isObject=iY,rm.isObjectLike=iJ,rm.isPlainObject=i1,rm.isRegExp=i2,rm.isSafeInteger=function(e){return iQ(e)&&e>=-9007199254740991&&e<=9007199254740991},rm.isSet=i6,rm.isString=i3,rm.isSymbol=i5,rm.isTypedArray=i8,rm.isUndefined=function(e){return e===r},rm.isWeakMap=function(e){return iJ(e)&&oE(e)==A},rm.isWeakSet=function(e){return iJ(e)&&"[object WeakSet]"==r0(e)},rm.join=function(e,t){return null==e?"":t1.call(e,t)},rm.kebabCase=aT,rm.last=o1,rm.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return -1;var i=o;return n!==r&&(i=(i=at(n))<0?t6(o+i,0):t3(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,i):tw(e,tC,i,!0)},rm.lowerCase=aB,rm.lowerFirst=a_,rm.lt=i4,rm.lte=i7,rm.max=function(e){return e&&e.length?rq(e,aq,r1):r},rm.maxBy=function(e,t){return e&&e.length?rq(e,om(t,2),r1):r},rm.mean=function(e){return tA(e,aq)},rm.meanBy=function(e,t){return tA(e,om(t,2))},rm.min=function(e){return e&&e.length?rq(e,aq,nr):r},rm.minBy=function(e,t){return e&&e.length?rq(e,om(t,2),nr):r},rm.stubArray=a2,rm.stubFalse=a6,rm.stubObject=function(){return{}},rm.stubString=function(){return""},rm.stubTrue=function(){return!0},rm.multiply=a7,rm.nth=function(e,t){return e&&e.length?ns(e,at(t)):r},rm.noConflict=function(){return e6._===this&&(e6._=eR),this},rm.noop=aQ,rm.now=iC,rm.pad=function(e,t,r){e=ai(e);var n=(t=at(t))?tq(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return n4(tY(o),r)+e+n4(tZ(o),r)},rm.padEnd=function(e,t,r){e=ai(e);var n=(t=at(t))?tq(e):0;
vendor: 4,438 bytes, lines 1140-1157
1140return t&&n<t?e+n4(t-n,r):e},rm.padStart=function(e,t,r){e=ai(e);var n=(t=at(t))?tq(e):0;return t&&n<t?n4(t-n,r)+e:e},rm.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),t8(ai(e).replace(Y,""),t||0)},rm.random=function(e,t,n){if(n&&"boolean"!=typeof n&&oj(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ae(e),t===r?(t=e,e=0):t=ae(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var i=t4();return t3(e+i*(t-e+eX("1e-"+((i+"").length-1))),t)}return nf(e,t)},rm.reduce=function(e,t,r){var n=iU(e)?tm:tk,o=arguments.length<3;return n(e,om(t,4),r,o,rU)},rm.reduceRight=function(e,t,r){var n=iU(e)?tg:tk,o=arguments.length<3;return n(e,om(t,4),r,o,rz)},rm.repeat=function(e,t,n){return t=(n?oj(e,t,n):t===r)?1:at(t),nh(ai(e),t)},rm.replace=function(){var e=arguments,t=ai(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rm.result=function(e,t,n){t=nR(t,e);var o=-1,i=t.length;for(i||(i=1,e=r);++o<i;){var a=null==e?r:e[oz(t[o])];a===r&&(o=i,a=n),e=iV(a)?a.call(e):a}return e},rm.round=a9,rm.runInContext=e,rm.sample=function(e){return(iU(e)?rj:nm)(e)},rm.size=function(e){if(null==e)return 0;if(iH(e))return i3(e)?tq(e):e.length;var t=oE(e);return t==g||t==E?e.size:nt(e).length},rm.snakeCase=aD,rm.some=function(e,t,n){var o=iU(e)?tb:nx;return n&&oj(e,t,n)&&(t=r),o(e,om(t,3))},rm.sortedIndex=function(e,t){return nC(e,t)},rm.sortedIndexBy=function(e,t,r){return nA(e,t,om(r,2))},rm.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=nC(e,t);if(n<r&&iR(e[n],t))return n}return -1},rm.sortedLastIndex=function(e,t){return nC(e,t,!0)},rm.sortedLastIndexBy=function(e,t,r){return nA(e,t,om(r,2),!0)},rm.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=nC(e,t,!0)-1;if(iR(e[r],t))return r}return -1},rm.startCase=a$,rm.startsWith=function(e,t,r){return e=ai(e),r=null==r?0:rM(at(r),0,e.length),t=nk(t),e.slice(r,r+t.length)==t},rm.subtract=se,rm.sum=function(e){return e&&e.length?tO(e,aq):0},rm.sumBy=function(e,t){return e&&e.length?tO(e,om(t,2)):0},rm.template=function(e,t,n){var o=rm.templateSettings;n&&oj(e,t,n)&&(t=r),e=ai(e),t=ac({},t,o,oi);var i,a,s=ac({},t.imports,o.imports,oi),c=av(s),l=tB(s,c),u=0,d=t.interpolate||eh,f="__p += '",h=eA((t.escape||eh).source+"|"+d.source+"|"+(d===G?ei:eh).source+"|"+(t.evaluate||eh).source+"|$","g"),p="//# sourceURL="+(eB.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eQ+"]")+` 1141`;e.replace(h,function(t,r,n,o,s,c){return n||(n=o),f+=e.slice(u,c).replace(ep,tN),r&&(i=!0,f+=`' + 1142__e(`+r+`) + 1143'`),s&&(a=!0,f+=`'; 1144`+s+`; 1145__p += '`),n&&(f+=`' + 1146((__t = (`+n+`)) == null ? '' : __t) + 1147'`),u=c+t.length,t}),f+=`'; 1148`;var m=eB.call(t,"variable")&&t.variable;if(m){if(en.test(m))throw new ew("Invalid `variable` option passed into `_.template`")}else f=`with (obj) { 1149`+f+` 1150} 1151`;f=(a?f.replace(M,""):f).replace(R,"$1").replace(N,"$1;"),f="function("+(m||"obj")+`) { 1152`+(m?"":`obj || (obj = {}); 1153`)+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?`, __j = Array.prototype.join; 1154function print() { __p += __j.call(arguments, '') } 1155`:`; 1156`)+f+`return __p 1157}`;var g=aF(function(){return eE(c,p+"return "+f).apply(r,l)});if(g.source=f,iK(g))throw g;return g},rm.times=function(e,t){if((e=at(e))<1||e>9007199254740991)return[];var r=4294967295,n=t3(e,4294967295);t=om(t),e-=4294967295;for(var o=tS(n,t);++r<e;)t(r);return o},rm.toFinite=ae,rm.toInteger=at,rm.toLength=ar,rm.toLower=function(e){return ai(e).toLowerCase()},rm.toNumber=an,rm.toSafeInteger=function(e){return e?rM(at(e),-9007199254740991,9007199254740991):0===e?e:0},rm.toString=ai,rm.toUpper=function(e){return ai(e).toUpperCase()},rm.trim=function(e,t,n){if((e=ai(e))&&(n||t===r))return tI(e);if(!e||!(t=nk(t)))return e;var o=tG(e),i=tG(t),a=tD(o,i),s=t$(o,i)+1;return nN(o,a,s).join("")},rm.trimEnd=function(e,t,n){if((e=ai(e))&&(n||t===r))return e.slice(0,tW(e)+1);if(!e||!(t=nk(t)))return e;var o=tG(e),i=t$(o,tG(t))+1;return nN(o,0,i).join("")},rm.trimStart=function(e,t,n){if((e=ai(e))&&(n||t===r))return e.replace(Y,"");if(!e||!(t=nk(t)))return e;var o=tG(e),i=tD(o,tG(t));return nN(o,i).join("")},rm.truncate=function(e,t){var n=30,o="...";if(iY(t)){var i="separator"in t?t.separator:i;n="length"in t?at(t.length):n,o="omission"in t?nk(t.omission):o}var a=(e=ai(e)).length;if(tF(e)){var s=tG(e);a=s.length}if(n>=a)return e;var c=n-tq(o);if(c<1)return o;var l=s?nN(s,0,c).join(""):e.slice(0,c);if(i===r)return l+o;
vendor: 4,276 bytes, line 1157
1157if(s&&(c+=l.length-c),i2(i)){if(e.slice(c).search(i)){var u,d=l;for(i.global||(i=eA(i.source,ai(ea.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;l=l.slice(0,f===r?c:f)}}else if(e.indexOf(nk(i),c)!=c){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+o},rm.unescape=function(e){return(e=ai(e))&&U.test(e)?e.replace(F,tV):e},rm.uniqueId=function(e){var t=++e_;return ai(e)+t},rm.upperCase=aM,rm.upperFirst=aR,rm.each=im,rm.eachRight=ig,rm.first=oY,aV(rm,(eb={},rQ(rm,function(e,t){eB.call(rm.prototype,t)||(eb[t]=e)}),eb),{chain:!1}),rm.VERSION="4.17.21",ts(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rm[e].placeholder=rm}),ts(["drop","take"],function(e,t){ry.prototype[e]=function(n){n=n===r?1:t6(at(n),0);var o=this.__filtered__&&!t?new ry(this):this.clone();return o.__filtered__?o.__takeCount__=t3(n,o.__takeCount__):o.__views__.push({size:t3(n,4294967295),type:e+(o.__dir__<0?"Right":"")}),o},ry.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),ts(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;ry.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:om(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),ts(["head","last"],function(e,t){var r="take"+(t?"Right":"");ry.prototype[e]=function(){return this[r](1).value()[0]}}),ts(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ry.prototype[e]=function(){return this.__filtered__?new ry(this):this[r](1)}}),ry.prototype.compact=function(){return this.filter(aq)},ry.prototype.find=function(e){return this.filter(e).head()},ry.prototype.findLast=function(e){return this.reverse().find(e)},ry.prototype.invokeMap=np(function(e,t){return"function"==typeof e?new ry(this):this.map(function(r){return r5(r,e,t)})}),ry.prototype.reject=function(e){return this.filter(iB(om(e)))},ry.prototype.slice=function(e,t){e=at(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ry(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=at(t))<0?n.dropRight(-t):n.take(t-e)),n)},ry.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ry.prototype.toArray=function(){return this.take(4294967295)},rQ(ry.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=rm[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(rm.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,c=t instanceof ry,l=s[0],u=c||iU(t),d=function(e){var t=i.apply(rm,tp([e],s));return o&&f?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,m=c&&!h;if(!a&&u){t=m?t:new ry(this);var g=e.apply(t,s);return g.__actions__.push({func:il,args:[d],thisArg:r}),new rv(g,f)}return p&&m?e.apply(this,s):(g=this.thru(d),p?o?g.value()[0]:g.value():g)})}),ts(["pop","push","shift","sort","splice","unshift"],function(e){var t=ek[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);rm.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(iU(o)?o:[],e)}return this[r](function(r){return t.apply(iU(r)?r:[],e)})}}),rQ(ry.prototype,function(e,t){var r=rm[t];if(r){var n=r.name+"";eB.call(ra,n)||(ra[n]=[]),ra[n].push({name:t,func:r})}}),ra[n6(r,2).name]=[{name:"wrapper",func:r}],ry.prototype.clone=function(){var e=new ry(this.__wrapped__);return e.__actions__=nW(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nW(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nW(this.__views__),e},ry.prototype.reverse=function(){if(this.__filtered__){var e=new ry(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},ry.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=iU(e),n=t<0,o=r?e.length:0,i=function(e,t,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=t3(t,e+a);break;case"takeRight":e=t6(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,l=n?s:a-1,u=this.__iteratees__,d=u.length,f=0,h=t3(c,this.__takeCount__);if(!r||!n&&o==c&&h==c)return nB(e,this.__actions__);var p=[];e:for(;c--&&f<h;){l+=t;
1157for(var m=-1,g=e[l];++m<d;){var b=u[m],v=b.iteratee,y=b.type,w=v(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}p[f++]=g}return p},rm.prototype.at=iu,rm.prototype.chain=function(){return ic(this)},rm.prototype.commit=function(){return new rv(this.value(),this.__chain__)},rm.prototype.next=function(){this.__values__===r&&(this.__values__=i9(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}},rm.prototype.plant=function(e){for(var t,n=this;n instanceof rb;){var o=oq(n);o.__index__=0,o.__values__=r,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},rm.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ry){var t=e;return this.__actions__.length&&(t=new ry(this)),(t=t.reverse()).__actions__.push({func:il,args:[o5],thisArg:r}),new rv(t,this.__chain__)}return this.thru(o5)},rm.prototype.toJSON=rm.prototype.valueOf=rm.prototype.value=function(){return nB(this.__wrapped__,this.__actions__)},rm.prototype.first=rm.prototype.head,e5&&(rm.prototype[e5]=function(){return this}),rm}();e5?((e5.exports=tQ)._=tQ,e3._=tQ):e6._=tQ}).call(tK)}(tV,tV.exports);let tQ=a.ZP.div(({theme:e})=>a.iv` 1158 width: 100%; 1159 flex-direction: column; 1160 padding: ${e.space["2.5"]}; 1161 gap: ${e.space["2.5"]}; 1162 display: flex; 1163 `),tZ=a.ZP.div(({theme:e})=>a.iv` 1164 border-radius: ${e.radii.large}; 1165 width: ${e.space.full}; 1166 text-align: center; 1167 display: flex; 1168 flex-direction: column; 1169 gap: ${e.space.px}; 1170 `),tY=a.ZP.div(({theme:e})=>a.iv` 1171 width: 100%; 1172 padding: 20px; 1173 position: relative; 1174 background: ${e.colors.backgroundPrimary}; 1175 1176 &:first-child { 1177 border-top-left-radius: ${e.radii.large}; 1178 border-top-right-radius: ${e.radii.large}; 1179 } 1180 &:last-child { 1181 border-bottom-left-radius: ${e.radii.large}; 1182 border-bottom-right-radius: ${e.radii.large}; 1183 } 1184 `),tJ=i.forwardRef(({isOpen:e,screenSize:t,items:r,setIsOpen:n,DropdownChild:o,cancelLabel:a},s)=>i.createElement(rw,{mobileOnly:!0,open:e,onDismiss:t<_.sm?()=>n(!1):void 0},i.createElement(tQ,{ref:s},i.createElement(tZ,null,null==r?void 0:r.map(e=>i.isValidElement(e)?o({item:e,setIsOpen:n}):i.createElement(tY,{key:e.label,onClick:()=>{var t;null==(t=null==e?void 0:e.onClick)||t.call(e,e.value),n(!1)}},i.createElement(ee,null,e.label)))),i.createElement(ev,{colorStyle:"greySecondary",onClick:()=>n(!1)},a)))),tX=a.ZP.div(({theme:e,$shortThrow:t,$direction:r,$state:n})=>a.iv` 1185 padding: ${e.space["1.5"]}; 1186 width: 100%; 1187 1188 ${"up"===r&&a.iv` 1189 bottom: 100%; 1190 `} 1191 1192 z-index: 0; 1193 opacity: 0; 1194 1195 ${"entered"===n&&a.iv` 1196 z-index: 1; 1197 `} 1198 1199 background-color: ${e.colors.background}; 1200 border-radius: ${e.radii["2xLarge"]}; 1201 1202 border: 1px solid ${e.colors.border}; 1203 transition: all 0.35s cubic-bezier(1, 0, 0.22, 1.6); 1204 margin-${"down"===r?"top":"bottom"}: ${e.space["1.5"]}; 1205 1206 transform: translateY(calc(${"down"===r?"-1":"1"} * ${e.space[12]})); 1207 1208 ${t&&a.iv` 1209 transform: translateY( 1210 calc(${"down"===r?"-1":"1"} * ${e.space["2.5"]}) 1211 ); 1212 `} 1213 1214 ${("entering"===n||"entered"===n)&&a.iv` 1215 transform: translateY(0); 1216 opacity: 1; 1217 `} 1218`),t0=({theme:e,$labelAlign:t})=>a.iv` 1219 display: flex; 1220 flex-direction: column; 1221 justify-content: center; 1222 align-items: center; 1223 gap: ${e.space[1]}; 1224 width: 100%; 1225 1226 ${t&&a.iv` 1227 & > * { 1228 justify-content: ${t}; 1229 } 1230 `} 1231`,t1=a.ZP.div(t0),t2=(0,a.ZP)(({hideDividers:e=!1,topTriggerPx:t=16,bottomTriggerPx:r=16,onReachedTop:n,onReachedBottom:o,children:a,...s})=>{let c=i.useRef(null),l=i.useRef(null),u=i.useRef(null),d="boolean"==typeof e?e:!!(null!=e&&e.top),f="boolean"==typeof e?e:!!(null!=e&&e.bottom),h=i.useRef({onReachedTop:n,onReachedBottom:o}),[p,m]=i.useState(!1),[g,b]=i.useState(!1),v=e=>{var t,r,n,o;let i=[!1,-1],a=[!1,-1];for(let t=0;t<e.length;t+=1){let r=e[t],n=r.target===l.current?i:a;r.time>n[1]&&(n[0]=r.isIntersecting,n[1]=r.time)}-1===i[1]||d||m(!i[0]),-1===a[1]||f||b(!a[0]),i[0]&&(null==(r=(t=h.current).onReachedTop)||r.call(t)),a[0]&&(null==(o=(n=h.current).onReachedBottom)||o.call(n))};return i.useEffect(()=>{let e;let n=c.current,o=l.current,i=u.current;return n&&o&&i&&((e=new IntersectionObserver(v,{root:n,threshold:1,rootMargin:`${t}px 0px ${r}px 0px`})).observe(o),e.observe(i)),()=>{e.disconnect()}},[r,t]),i.useEffect(()=>{h.current={onReachedTop:n,onReachedBottom:o}},[n,o]),i.createElement(e0,{$showBottom:g,$showTop:p,ref:c,...s},i.createElement(e1,{"data-testid":"scrollbox-top-intersect",ref:l}),a,i.createElement(e1,{"data-testid":"scrollbox-bottom-intersect",ref:u}))})(t0,({theme:e})=>a.iv` 1232 padding-right: ${e.space[1]}; 1233 `),t6=a.ZP.button(({theme:e,$color:t,disabled:r,$showIndicator:n})=>a.iv`
1234 align-items: center; 1235 cursor: pointer; 1236 display: flex; 1237 gap: ${e.space[2]}; 1238 width: ${e.space.full}; 1239 height: ${e.space[12]}; 1240 padding: ${e.space[3]}; 1241 border-radius: ${e.radii.large}; 1242 font-weight: ${e.fontWeights.normal}; 1243 transition-duration: 0.15s; 1244 transition-property: color, transform, filter; 1245 transition-timing-function: ease-in-out; 1246 1247 &:active { 1248 transform: translateY(0px); 1249 filter: brightness(1); 1250 } 1251 1252 color: ${e.colors[t||"textPrimary"]}; 1253 1254 svg { 1255 min-width: ${e.space[4]}; 1256 width: ${e.space[4]}; 1257 height: ${e.space[4]}; 1258 color: ${e.colors[t||"text"]}; 1259 } 1260 ${r&&a.iv` 1261 color: ${e.colors.textTertiary}; 1262 cursor: not-allowed; 1263 `} 1264 1265 justify-content: flex-start; 1266 1267 &:hover { 1268 background: ${e.colors.greySurface}; 1269 } 1270 1271 ${n&&a.iv` 1272 position: relative; 1273 padding-right: ${e.space[6]}; 1274 &::after { 1275 position: absolute; 1276 content: ''; 1277 top: 50%; 1278 right: ${e.space[3]}; 1279 transform: translateY(-50%); 1280 width: ${e.space[2]}; 1281 height: ${e.space[2]}; 1282 border-radius: ${e.radii.full}; 1283 background: ${e.colors["boolean"==typeof n?"accent":n]}; 1284 } 1285 `} 1286 `),t3=({setIsOpen:e,item:t})=>{let r=i.useRef(null),n=i.cloneElement(t,{...t.props,ref:r}),o=i.useCallback(()=>{e(!1)},[e]);return i.useEffect(()=>{let e=r.current;return null==e||e.addEventListener("click",o),()=>{null==e||e.removeEventListener("click",o)}},[o,t]),n},t5=i.forwardRef(({items:e,setIsOpen:t,shortThrow:r,labelAlign:n,direction:o,state:a,height:s,...c},l)=>{let u=e.map(e=>{if(i.isValidElement(e))return t3({item:e,setIsOpen:t});let{color:r,value:n,icon:o,label:a,onClick:s,disabled:c,as:l,wrapper:u,showIndicator:d}=e,f={$hasColor:!!r,$color:r,$showIndicator:d,disabled:c,onClick:()=>{t(!1),null==s||s(n)},as:l,children:i.createElement(i.Fragment,null,o,a)};return u?u(i.createElement(t6,{...f,type:"button"}),n||a):i.createElement(t6,{...f,key:n||a,type:"button"})}),d=i.useMemo(()=>({$shortThrow:r,$direction:o,$state:a,...c,"data-testid":"dropdown-menu",ref:l}),[r,o,a,c,l]);return s?i.createElement(tX,{...d},i.createElement(t2,{$labelAlign:n,style:{height:s}},u)):i.createElement(tX,{...d},i.createElement(t1,{$labelAlign:n},u))}),t8=(0,a.ZP)(e=>i.createElement(tl,{...e}))(({theme:e,$open:t,$direction:r})=>a.iv` 1287 margin-left: ${e.space[1]}; 1288 width: ${e.space[3]}; 1289 margin-right: ${e.space["0.5"]}; 1290 transition-duration: ${e.transitionDuration[200]}; 1291 transition-property: all; 1292 transition-timing-function: ${e.transitionTimingFunction.inOut}; 1293 transform: rotate(${"down"===r?"0deg":"180deg"}); 1294 display: flex; 1295 1296 & > svg { 1297 fill: currentColor; 1298 } 1299 fill: currentColor; 1300 1301 ${t&&a.iv` 1302 transform: rotate(${"down"===r?"180deg":"0deg"}); 1303 `} 1304 `),t4=({children:e,buttonRef:t,chevron:r,direction:n,isOpen:o,setIsOpen:s,label:c,items:l,buttonProps:u,indicatorColor:d})=>{let{colors:f}=(0,a.Fg)(),h=i.useMemo(()=>l.some(e=>"showIndicator"in e&&e.showIndicator),[l]),p=i.useMemo(()=>({...u,"data-indicator":h&&!o,style:{...null==u?void 0:u.style,"--indicator-color":d?f[d]:f.accent},className:`${null==u?void 0:u.className} indicator-container`}),[u,h,d,f,o]);return i.createElement(i.Fragment,null,e?i.Children.map(e,e=>i.isValidElement(e)?i.cloneElement(e,{...p,zindex:"10",pressed:o?"true":void 0,onClick:()=>s(e=>!e),ref:t}):null):i.createElement(ev,{"data-testid":"dropdown-btn",pressed:o,ref:t,suffix:r&&i.createElement(t8,{$direction:n,$open:o}),width:"fit",onClick:()=>s(e=>!e),...p},c))},t7=()=>{let[e,t]=i.useState(window.innerWidth);return i.useEffect(()=>{let e=tV.exports.debounce(()=>{t(window.innerWidth)},100),r=()=>{e()};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),e},t9=(e,t,r,n,o)=>{i.useEffect(()=>{let i=o=>{var i,a,s;null!=(i=e.current)&&i.contains(o.target)||null!=(a=t.current)&&a.contains(o.target)||null!=(s=r.current)&&s.contains(o.target)||n(!1)};return o?document.addEventListener("mousedown",i):document.removeEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[e,o,n,t,r])};a.ZP.fieldset(({theme:e})=>a.iv` 1305 display: flex; 1306 flex-direction: column; 1307 gap: ${e.space[4]}; 1308 `),a.ZP.div(({theme:e})=>a.iv` 1309 display: flex; 1310 flex-direction: column; 1311 gap: ${e.space[1]}; 1312 padding: 0 ${e.space[4]}; 1313 `),a.ZP.div(({theme:e})=>a.iv` 1314 display: flex; 1315 align-items: center; 1316 flex-direction: row; 1317 gap: ${e.space[3]}; 1318 `),a.ZP.div(({theme:e})=>a.iv` 1319 color: ${e.colors.textSecondary}; 1320 font-size: ${e.fontSizes.body}; 1321 line-height: ${e.lineHeights.body}; 1322 `),a.ZP.div(({theme:e})=>a.iv` 1323 display: flex; 1324 flex-direction: column; 1325 gap: ${e.space[4]}; 1326 `);let re=a.ZP.div(({theme:e,$type:t,$alignment:r})=>a.iv` 1327 width: ${e.space.full}; 1328 padding: ${e.space[6]} ${e.space[4]}; 1329 1330 display: flex; 1331 align-items: center; 1332 flex-direction: column; 1333 justify-content: center; 1334 gap: ${e.space[2]}; 1335 border-radius: ${e.radii.large}; 1336 1337 text-align: center; 1338 overflow-x: auto; 1339 1340 ${"horizontal"===r&&a.iv` 1341 flex-direction: row; 1342 justify-content: flex-start; 1343 gap: ${e.space[4]}; 1344 padding: ${e.space[4]}; 1345 text-align: left; 1346 `} 1347 1348 background-color: ${e.colors.blueSurface}; 1349 border: ${e.borderWidths.px} solid ${e.colors.blue}; 1350 1351 ${"warning"===t&&a.iv` 1352 background-color: ${e.colors.yellowSurface}; 1353 border-color: ${e.colors.yellow}; 1354 `} 1355 1356 ${"error"===t&&a.iv` 1357 background-color: ${e.colors.redSurface}; 1358 border-color: ${e.colors.red}; 1359 `} 1360 `),rt=a.ZP.div(({theme:e,$type:t})=>a.iv` 1361 width: ${e.space[6]}; 1362 height: ${e.space[6]}; 1363 1364 color: ${e.colors.blue}; 1365 1366 ${"warning"===t&&a.iv` 1367 color: ${e.colors.yellow}; 1368 `} 1369 ${"error"===t&&a.iv` 1370 color: ${e.colors.red}; 1371 `} 1372 `),rr=({type:e="info",alignment:t="vertical",children:r,...n})=>{let o="info"===e?td:ti;return i.createElement(re,{$alignment:t,$type:e,...n},i.createElement(rt,{$type:e,as:o}),r)};rr.displayName="Helper";let rn=(e,t)=>{var r,n;let o=null==(r=Object.getOwnPropertyDescriptor(e,"value"))?void 0:r.set,i=Object.getPrototypeOf(e),a=null==(n=Object.getOwnPropertyDescriptor(i,"value"))?void 0:n.set;if(a&&o!==a)a.call(e,t);else if(o)o.call(e,t);else throw Error("The given element does not have a value setter")},ro={small:{outerPadding:"3.5",gap:"2",icon:"3",iconPadding:"8.5",height:"10"},medium:{outerPadding:"4",gap:"2",icon:"4",iconPadding:"10",height:"12"},large:{outerPadding:"4",gap:"2",icon:"5",iconPadding:"11",height:"16"},extraLarge:{outerPadding:"6",gap:"2",icon:"6",iconPadding:"14",height:"20"}},ri=(e,t,r)=>e.space[ro[t][r]],ra=(e,t,r,n)=>r?n?`calc(-${e.space[ro[t].outerPadding]} - ${e.space[r]} - ${e.space[ro[t].gap]})`:`calc(${e.space[ro[t].outerPadding]} + ${e.space[r]} + ${e.space[ro[t].gap]})`:n?`-${e.space[ro[t].iconPadding]}`:e.space[ro[t].iconPadding],rs={small:"large",medium:"large",large:"2.5xLarge",extraLarge:"2.5xLarge"},rc=(e,t)=>e.radii[rs[t]],rl={small:"small",medium:"body",large:"large",extraLarge:"headingThree"},ru=e=>rl[e],rd=a.ZP.div(({theme:e,$size:t,$hasError:r,$userStyles:n,$validated:o,$showDot:i})=>a.iv` 1373 position: relative; 1374 height: ${ri(e,t,"height")}; 1375 display: flex; 1376 transition-duration: ${e.transitionDuration[150]}; 1377 transition-property: color, border-color, background-color; 1378 transition-timing-function: ${e.transitionTimingFunction.inOut}; 1379 1380 :after { 1381 content: ''; 1382 position: absolute; 1383 width: ${e.space[4]}; 1384 height: ${e.space[4]}; 1385 border: 2px solid ${e.colors.backgroundPrimary}; 1386 box-sizing: border-box; 1387 border-radius: 50%; 1388 right: -${e.space["1.5"]}; 1389 top: -${e.space["1.5"]}; 1390 transition: all 0.3s ease-out; 1391 transform: scale(0.3); 1392 opacity: 0; 1393 } 1394 1395 ${i&&o&&a.iv` 1396 :after { 1397 background: ${e.colors.greenPrimary}; 1398 transform: scale(1); 1399 opacity: 1; 1400 } 1401 `} 1402 1403 ${i&&!r&&a.iv` 1404 &:focus-within:after { 1405 background: ${e.colors.bluePrimary}; 1406 transform: scale(1); 1407 opacity: 1; 1408 } 1409 `} 1410 1411 ${r&&i&&a.iv` 1412 :after { 1413 background: ${e.colors.redPrimary}; 1414 transform: scale(1); 1415 opacity: 1; 1416 } 1417 `} 1418 1419 ${n} 1420 `),rf=a.ZP.label(({theme:e,$size:t})=>a.iv` 1421 display: flex; 1422 align-items: center; 1423 gap: ${e.space[2]}; 1424 1425 height: ${e.space.full}; 1426 color: ${e.colors.greyPrimary}; 1427 background: ${e.colors.greySurface}; 1428 font-size: ${G(ru(t))}; 1429 line-height: ${W(ru(t))}; 1430 font-weight: ${e.fontWeights.normal}; 1431 padding: 0 ${ri(e,t,"outerPadding")}; 1432 1433 svg { 1434 display: block; 1435 color: ${e.colors.greyPrimary}; 1436 } 1437 `),rh=(0,a.ZP)(rf)(()=>a.iv` 1438 order: -2; 1439 `),rp=a.ZP.div(({theme:e,$size:t,$iconWidth:r})=>a.iv` 1440 order: -1; 1441 padding-left: ${ri(e,t,"outerPadding")}; 1442 flex: 0 0 ${ra(e,t,r)}; 1443 margin-right: ${ra(e,t,r,!0)}; 1444 display: flex; 1445 align-items: center; 1446 justify-content: flex-start; 1447 pointer-events: none; 1448 svg { 1449 display: block; 1450 width: ${r?e.space[r]:ri(e,t,"icon")}; 1451 height: ${r?e.space[r]:ri(e,t,"icon")}; 1452 color: ${e.colors.greyPrimary}; 1453 } 1454 z-index: 1; 1455 `),rm=a.ZP.button(({theme:e,$size:t})=>a.iv` 1456 padding-right: ${ri(e,t,"outerPadding")}; 1457 margin-left: -${ri(e,t,"iconPadding")}; 1458 flex: 0 0 ${ri(e,t,"iconPadding")}; 1459 display: flex; 1460 justify-content: flex-end; 1461 align-items: center; 1462 transition: all 0.1s ease-in-out; 1463 transform: scale(1); 1464 opacity: 1; 1465 cursor: pointer; 1466 1467 svg { 1468 display: block; 1469 width: ${ri(e,t,"icon")}; 1470 height: ${ri(e,t,"icon")}; 1471 color: ${e.colors.greyPrimary}; 1472 transition: all 150ms ease-in-out; 1473 } 1474 1475 &:hover svg { 1476 color: ${e.colors.greyBright}; 1477 transform: translateY(-1px); 1478 } 1479 `),rg=a.ZP.input(({theme:e,$size:t,$hasIcon:r,$hasAction:n,$hasError:o,$iconWidth:i})=>a.iv` 1480 background-color: transparent; 1481 position: relative; 1482 width: ${e.space.full}; 1483 height: ${e.space.full}; 1484 font-weight: ${e.fontWeights.normal}; 1485 text-overflow: ellipsis; 1486 color: ${e.colors.textPrimary}; 1487 padding: 0 ${ri(e,t,"outerPadding")}; 1488 font-size: ${G(ru(t))}; 1489 line-height: ${W(ru(t))}; 1490 1491 ${r&&a.iv` 1492 padding-left: ${ra(e,t,i)}; 1493 `} 1494 1495 ${n&&a.iv` 1496 padding-right: ${ri(e,t,"iconPadding")}; 1497 `} 1498 1499 &::placeholder { 1500 color: ${e.colors.greyPrimary}; 1501 font-weight: ${"large"===t||"extraLarge"===t?e.fontWeights.bold:e.fontWeights.normal}; 1502 } 1503 1504 &:read-only { 1505 cursor: default; 1506 } 1507 1508 &:disabled { 1509 background: ${e.colors.greyLight};
1510 cursor: not-allowed; 1511 color: ${e.colors.greyPrimary}; 1512 } 1513 1514 ${o&&a.iv` 1515 color: ${e.colors.redPrimary}; 1516 `} 1517 `),rb=a.ZP.div(({theme:e,$size:t,$hasError:r,$disabled:n,$readOnly:o,$alwaysShowAction:i})=>a.iv` 1518 position: relative; 1519 background-color: ${e.colors.backgroundPrimary}; 1520 border-radius: ${rc(e,t)}; 1521 border-width: ${e.space.px}; 1522 border-color: ${e.colors.border}; 1523 color: ${e.colors.textPrimary}; 1524 overflow: hidden; 1525 width: 100%; 1526 height: 100%; 1527 display: flex; 1528 transition-duration: ${e.transitionDuration[150]}; 1529 transition-property: color, border-color, background-color; 1530 transition-timing-function: ${e.transitionTimingFunction.inOut}; 1531 1532 ${n&&a.iv` 1533 border-color: ${e.colors.border}; 1534 background-color: ${e.colors.greyLight}; 1535 `} 1536 1537 ${r&&a.iv` 1538 border-color: ${e.colors.redPrimary}; 1539 cursor: default; 1540 `} 1541 1542 ${!r&&!o&&a.iv` 1543 &:focus-within { 1544 border-color: ${e.colors.accentBright}; 1545 } 1546 `} 1547 1548 input ~ label { 1549 cursor: text; 1550 } 1551 1552 input:read-only ~ label, 1553 input:read-only ~ button { 1554 cursor: default; 1555 } 1556 1557 input:disabled ~ label, 1558 input:disabled ~ button { 1559 background: ${e.colors.greyLight}; 1560 cursor: not-allowed; 1561 } 1562 1563 input:disabled ~ button, 1564 input:read-only ~ button { 1565 opacity: 0; 1566 transform: scale(0.8); 1567 pointer-events: none; 1568 } 1569 1570 ${!i&&a.iv` 1571 input:placeholder-shown ~ button { 1572 opacity: 0; 1573 transform: scale(0.8); 1574 pointer-events: none; 1575 } 1576 `} 1577 `),rv=i.forwardRef(({autoFocus:e,autoComplete:t="off",autoCorrect:r,defaultValue:n,description:o,disabled:a,error:s,validated:c,showDot:l,hideLabel:u,id:d,inputMode:f,icon:h,iconWidth:p,actionIcon:m,alwaysShowAction:g=!1,label:b,labelSecondary:v,name:y="clear-button",placeholder:w,prefix:E,prefixAs:x,readOnly:C,required:A,spellCheck:P,suffix:j,suffixAs:k,clearable:O=!1,tabIndex:S,type:I="text",units:T,value:B,width:_,onBlur:D,onChange:$,onFocus:M,onClickAction:R,size:N="medium",parentStyles:F,...L},U)=>{let z=i.useRef(null),H=U||z,q=w?`${null!=w?w:""}${T?` ${T}`:""}`:void 0,G=!!s||void 0,W="email"===I?"text":I,K=O||!!R,V=e=>{var t;if(e.preventDefault(),e.stopPropagation(),R)return R(),null==(t=H.current)?void 0:t.focus();H.current&&(rn(H.current,""),H.current.dispatchEvent(new Event("input",{bubbles:!0})),H.current.focus())};return i.createElement(eK,{description:o,disabled:a,error:s,hideLabel:u,id:d,label:b,labelSecondary:v,readOnly:C,required:A,width:_},o=>i.createElement(rd,{$disabled:a,$hasError:G,$validated:c,$showDot:l,$suffix:void 0!==j,$size:N,$userStyles:F,$ids:o},i.createElement(rb,{$alwaysShowAction:g,$disabled:!!a,$hasError:!!s,$readOnly:!!C,$size:N},i.createElement(rg,{ref:H,...L,...null==o?void 0:o.content,"aria-invalid":G,$hasAction:K,$hasError:!!s,$hasIcon:!!h,$iconWidth:p,$size:N,autoComplete:t,autoCorrect:r,autoFocus:e,defaultValue:n,disabled:a,inputMode:f,name:y,placeholder:q,readOnly:C,spellCheck:P,tabIndex:S,type:W,value:B,onBlur:D,onChange:$,onFocus:M}),E&&i.createElement(rh,{"aria-hidden":"true",as:x,...null==o?void 0:o.label,$size:N},E),h&&i.createElement(rp,{$iconWidth:p,$size:N},h),K&&i.createElement(rm,{$size:N,"data-testid":"input-action-button",onClick:V,onMouseDown:e=>e.preventDefault()},m||i.createElement(tc,null)),j&&i.createElement(rf,{$size:N,"aria-hidden":"true",...null==o?void 0:o.label,...k?{as:k}:{}},j))))});rv.displayName="Input";let ry=a.ZP.div(({theme:e,$state:t,$alignTop:r,$mobileOnly:n})=>a.iv` 1578 width: 100%; 1579 1580 position: fixed; 1581 left: 0; 1582 z-index: 9999; 1583 1584 ${r?a.iv` 1585 top: 0; 1586 `:a.iv` 1587 bottom: 0; 1588 `} 1589 1590 display: flex; 1591 flex-direction: row; 1592 1593 ${L.sm.min(a.iv` 1594 ${!n&&a.iv` 1595 width: min-content; 1596 1597 top: 50%; 1598 left: 50%; 1599 transform: translate(-50%, -50%); 1600 bottom: initial; 1601 `} 1602 `)} 1603 1604 transition: ${e.transitionDuration[300]} all 1605 ${e.transitionTimingFunction.popIn}; 1606 1607 ${"entered"===t?a.iv` 1608 opacity: 1; 1609 transform: translateY(0px); 1610 `:a.iv` 1611 opacity: 0; 1612 transform: translateY(${r?"-":""}128px); 1613 `} 1614 `),rw=({children:e,backdropSurface:t,onDismiss:r,open:n,alignTop:o,renderCallback:a,mobileOnly:s=!1,...c})=>i.createElement(e3,{open:n,renderCallback:a,surface:t,onDismiss:r},({state:t})=>i.createElement(ry,{$alignTop:o,$mobileOnly:s,$state:t,...c},e));rw.displayName="Modal",a.ZP.div(({theme:e})=>a.iv` 1615 display: flex; 1616 flex-direction: row; 1617 align-items: center; 1618 justify-content: center; 1619 gap: ${e.space[2]}; 1620 flex-gap: ${e.space[2]}; 1621 `),a.ZP.button(({theme:e,$selected:t,$size:r})=>a.iv` 1622 background-color: ${e.colors.background}; 1623 transition: all 0.15s ease-in-out; 1624 cursor: pointer; 1625 font-size: ${e.fontSizes.body}; 1626 line-height: ${e.lineHeights.body}; 1627 font-weight: ${e.fontWeights.bold}; 1628 border-radius: ${e.radii.extraLarge}; 1629 1630 min-width: ${e.space[10]}; 1631 height: ${e.space[10]}; 1632 border: 1px solid ${e.colors.border}; 1633 padding: ${e.space[2]}; 1634 1635 ${t?a.iv` 1636 cursor: default; 1637 pointer-events: none; 1638 color: ${e.colors.accent}; 1639 `:a.iv` 1640 color: ${e.colors.greyPrimary}; 1641 &:hover { 1642 background-color: ${e.colors.greySurface}; 1643 } 1644 `} 1645 1646 ${"small"===r&&a.iv` 1647 font-size: ${e.fontSizes.small}; 1648 line-height: ${e.lineHeights.small}; 1649 border-radius: ${e.space[2]}; 1650 min-width: ${e.space[9]}; 1651 height: ${e.space[9]}; 1652 `} 1653 `),a.ZP.p(({theme:e})=>a.iv` 1654 font-size: ${e.fontSizes.small}; 1655 font-weight: ${e.fontWeights.bold}; 1656 color: ${e.colors.greyPrimary}; 1657 `);let rE=(e,t)=>"small"===t?e[10]:"medium"===t?e[45]:e[80],rx=(a.ZP.div(({theme:e,$size:t,$hasDropdown:r,$open:n})=>a.iv`
1658 align-items: center; 1659 display: flex; 1660 flex-direction: row; 1661 justify-content: flex-start; 1662 gap: ${e.space[2]}; 1663 border-radius: ${e.radii.full}; 1664 transition-duration: ${e.transitionDuration[150]}; 1665 transition-property: color, border-color, background-color, transform, 1666 filter; 1667 transition-timing-function: ${e.transitionTimingFunction.inOut}; 1668 position: relative; 1669 z-index: 10; 1670 padding: ${e.space[1]}; 1671 background-color: ${e.colors.backgroundPrimary}; 1672 width: fit-content; 1673 1674 ${r&&a.iv` 1675 cursor: pointer; 1676 &:hover { 1677 transform: translateY(-1px); 1678 filter: brightness(1.05); 1679 } 1680 `} 1681 1682 ${n&&a.iv` 1683 background-color: ${e.colors.border}; 1684 `} 1685 1686 width: ${rE(e.space,t)}; 1687 1688 ${"small"===t&&a.iv` 1689 height: ${e.space[10]}; 1690 padding: 0; 1691 border: none; 1692 `} 1693 1694 ${"medium"===t&&a.iv` 1695 height: ${e.space[12]}; 1696 padding-right: ${e.space[4]}; 1697 `} 1698 1699 ${"large"===t&&a.iv` 1700 width: fit-content; 1701 height: ${e.space[14]}; 1702 max-width: ${e.space[80]}; 1703 padding-right: ${e.space[5]}; 1704 `} 1705 `),a.ZP.div(({theme:e,$size:t})=>a.iv` 1706 width: ${e.space[10]}; 1707 flex: 0 0 ${e.space[10]}; 1708 ${"large"===t&&a.iv` 1709 width: ${e.space[12]}; 1710 flex: 0 0 ${e.space[12]}; 1711 `} 1712 `)),rC=a.ZP.div(({theme:e,$size:t})=>a.iv` 1713 display: ${"small"===t?"none":"block"}; 1714 min-width: ${e.space.none}; 1715 `),rA=(0,a.ZP)(ee)(()=>a.iv` 1716 line-height: initial; 1717 `),rP=a.ZP.input(({theme:e,$colorStyle:t})=>a.iv` 1718 cursor: pointer; 1719 font: inherit; 1720 border-radius: 50%; 1721 display: grid; 1722 place-content: center; 1723 transition: transform 150ms ease-in-out; 1724 width: ${e.space[5]}; 1725 flex: 0 0 ${e.space[5]}; 1726 height: ${e.space[5]}; 1727 background-color: ${e.colors.border}; 1728 1729 &::before { 1730 content: ''; 1731 width: ${e.space[3]}; 1732 height: ${e.space[3]}; 1733 border-radius: 50%; 1734 transition: all 150ms ease-in-out; 1735 background: ${e.colors.border}; 1736 background-size: 100% 100%; 1737 background-position: center; 1738 } 1739 1740 &:checked::before { 1741 background: ${J(t,"background")}; 1742 } 1743 1744 &:disabled { 1745 cursor: not-allowed; 1746 } 1747 1748 &:hover::before { 1749 background: ${e.colors.greyBright}; 1750 } 1751 1752 &:disabled::before { 1753 background: ${e.colors.border}; 1754 } 1755 1756 &:checked:hover::before { 1757 background: ${J(t,"hover")}; 1758 } 1759 1760 &:disabled:checked::before, 1761 &:disabled:checked:hover::before { 1762 background: ${e.colors.greyPrimary}; 1763 } 1764 1765 &:hover { 1766 transform: translateY(-1px); 1767 } 1768 1769 &:disabled:hover { 1770 transform: initial; 1771 } 1772 `),rj=i.forwardRef(({description:e,disabled:t,error:r,inline:n=!0,hideLabel:o,id:a,label:s,labelSecondary:c,name:l,required:u,tabIndex:d,value:f,checked:h,width:p,colorStyle:m="accentPrimary",onBlur:g,onChange:b,onFocus:v,...y},w)=>{let E=i.useRef(null);return i.createElement(eK,{description:e,error:r,hideLabel:o,id:a,inline:n,label:s,labelSecondary:c,required:u,width:p,disabled:t},i.createElement(rP,{$colorStyle:m,...y,"aria-invalid":!!r||void 0,"aria-selected":!!h||void 0,"data-testid":e8(y,"radio"),type:"radio",role:"radio",checked:h,disabled:t,name:l,ref:w||E,tabIndex:d,value:f,onBlur:g,onChange:b,onFocus:v}))});rj.displayName="RadioButton";let rk=e=>{let t=!1,r=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{r=!0,e.stopPropagation()},isPropagationStopped:()=>r,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},rO=a.ZP.div(({theme:e,$inline:t})=>a.iv` 1773 display: flex; 1774 flex-direction: ${t?"row":"column"}; 1775 gap: ${e.space[2]}; 1776 justify-content: flex-start; 1777 flex-wrap: ${t?"wrap":"nowrap"}; 1778 `),rS=i.forwardRef(({value:e,children:t,inline:r=!1,onChange:n,onBlur:o,...a},s)=>{let c=i.useRef(null),l=i.useRef(null),[u,d]=i.useState(!1),[f,h]=i.useState(e);i.useEffect(()=>{e&&e!=f&&h(e)},[e]);let p=e=>{h(e.target.value),n&&n(e)},m=e=>{o&&o(e)},g=(e,t="radiogroup")=>{if(n&&e){let r=document.createElement("input");r.value=e,r.name=t;let o=new Event("change",{bubbles:!0});Object.defineProperty(o,"target",{writable:!1,value:r});let i=rk(o);n(i)}};return i.createElement(rO,{$inline:r,...a,"data-testid":e8(a,"radiogroup"),ref:s||c,role:"radiogroup",onFocus:()=>{l.current&&l.current.focus()}},i.Children.map(t,e=>{e.props.checked&&!u&&(d(!0),f!==e.props.value&&(h(e.props.value),d(!0),g(e.props.value,e.props.name)));let t=e.props.value===f;return i.cloneElement(e,{ref:t?l:void 0,checked:t,onChange:p,onBlur:m})}))});rS.displayName="RadioButtonGroup";var rI="object"==typeof tK&&tK&&tK.Object===Object&&tK,rT="object"==typeof self&&self&&self.Object===Object&&self,rB=(rI||rT||Function("return this")()).Symbol,r_=Array.isArray,rD=Object.prototype,r$=rD.hasOwnProperty,rM=rD.toString,rR=rB?rB.toStringTag:void 0,rN=Object.prototype.toString,rF=function(e){var t=r$.call(e,rR),r=e[rR];try{e[rR]=void 0;var n=!0}catch{}var o=rM.call(e);return n&&(t?e[rR]=r:delete e[rR]),o},rL=rB?rB.toStringTag:void 0,rU=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},rz=function(e){var t;return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==(null==(t=e)?void 0===t?"[object Undef
1778ined]":"[object Null]":rL&&rL in Object(t)?rF(t):rN.call(t))},rH=1/0,rq=rB?rB.prototype:void 0,rG=rq?rq.toString:void 0,rW=function e(t){if("string"==typeof t)return t;if(r_(t))return rU(t,e)+"";if(rz(t))return rG?rG.call(t):"";var r=t+"";return"0"==r&&1/t==-rH?"-0":r},rK=0,rV=function(e){var t=++rK;return(null==e?"":rW(e))+t};let rQ="CREATE_OPTION_VALUE",rZ=a.ZP.div(({theme:e,$size:t,$showDot:r,$hasError:n,$validated:o,$open:i,$disabled:s,$readOnly:c})=>a.iv` 1779 cursor: pointer; 1780 position: relative; 1781 1782 height: ${e.space[12]}; 1783 font-size: ${e.fontSizes.body}; 1784 line-height: ${e.lineHeights.body}; 1785 1786 :after { 1787 content: ''; 1788 position: absolute; 1789 width: ${e.space[4]}; 1790 height: ${e.space[4]}; 1791 border: 2px solid ${e.colors.backgroundPrimary}; 1792 box-sizing: border-box; 1793 border-radius: 50%; 1794 right: -${e.space["1.5"]}; 1795 top: -${e.space["1.5"]}; 1796 transition: all 0.3s ease-out; 1797 transform: scale(0.3); 1798 opacity: 0; 1799 } 1800 1801 ${"small"===t&&a.iv` 1802 font-size: ${e.fontSizes.small}; 1803 line-height: ${e.lineHeights.small}; 1804 height: ${e.space[10]}; 1805 `} 1806 1807 ${r&&!s&&o&&!i&&a.iv` 1808 :after { 1809 background: ${e.colors.greenPrimary}; 1810 transform: scale(1); 1811 opacity: 1; 1812 } 1813 `} 1814 1815 ${r&&!s&&!n&&i&&a.iv` 1816 :after { 1817 background: ${e.colors.bluePrimary}; 1818 transform: scale(1); 1819 opacity: 1; 1820 } 1821 `} 1822 1823 ${n&&!s&&r&&a.iv` 1824 :after { 1825 background: ${e.colors.redPrimary}; 1826 transform: scale(1); 1827 opacity: 1; 1828 } 1829 `} 1830 1831 ${c&&a.iv` 1832 cursor: default; 1833 pointer-events: none; 1834 `} 1835 `),rY=a.ZP.div(({theme:e,$open:t,$hasError:r,$disabled:n,$size:o,$ids:i})=>a.iv` 1836 flex: 1; 1837 display: flex; 1838 align-items: center; 1839 height: 100%; 1840 gap: ${e.space[2]}; 1841 padding-left: ${e.space[4]}; 1842 background: ${e.colors.backgroundPrimary}; 1843 1844 overflow: hidden; 1845 border: 1px solid ${e.colors.border}; 1846 border-radius: ${e.radii.large}; 1847 1848 svg { 1849 display: block; 1850 } 1851 1852 ${t&&a.iv` 1853 border-color: ${e.colors.bluePrimary}; 1854 `} 1855 1856 ${r&&a.iv` 1857 border-color: ${e.colors.redPrimary}; 1858 label { 1859 color: ${e.colors.redPrimary}; 1860 } 1861 `} 1862 1863 ${"small"===o&&a.iv` 1864 padding-left: ${e.space["3.5"]}; 1865 `} 1866 1867 ${n&&a.iv` 1868 background: ${e.colors.greyLight}; 1869 color: ${e.colors.greyPrimary}; 1870 cursor: not-allowed; 1871 `} 1872 1873 input#${null==i?void 0:i.content.id} ~ button#chevron svg { 1874 color: ${e.colors.textPrimary}; 1875 } 1876 1877 input#${null==i?void 0:i.content.id}:placeholder-shown ~ button#chevron { 1878 svg { 1879 color: ${e.colors.greyPrimary}; 1880 } 1881 } 1882 1883 input#${null==i?void 0:i.content.id}:disabled ~ button#chevron { 1884 svg { 1885 color: ${e.colors.greyPrimary}; 1886 } 1887 } 1888 1889 input#${null==i?void 0:i.content.id}:disabled ~ * { 1890 color: ${e.colors.greyPrimary}; 1891 background: ${e.colors.greyLight}; 1892 cursor: not-allowed; 1893 } 1894 `),rJ=a.ZP.input(()=>a.iv` 1895 position: absolute; 1896 width: 1px; 1897 height: 1px; 1898 overflow: hidden; 1899 appearance: none; 1900 visibility: hidden; 1901 `),rX=a.ZP.div(()=>a.iv` 1902 flex: 1; 1903 white-space: nowrap; 1904 text-overflow: ellipsis; 1905 overflow: hidden; 1906 `),r0=(0,a.ZP)(rX)(({theme:e})=>a.iv` 1907 color: ${e.colors.greyPrimary}; 1908 pointer-events: none; 1909 `),r1=a.ZP.input(({theme:e})=>a.iv` 1910 flex: 1; 1911 background: transparent; 1912 padding-right: 0; 1913 height: 100%; 1914 color: ${e.colors.textPrimary}; 1915 1916 &::placeholder { 1917 color: ${e.colors.greyPrimary}; 1918 } 1919 `),r2=a.ZP.button(({theme:e,$size:t})=>a.iv` 1920 display: flex; 1921 justify-content: flex-end; 1922 align-items: center; 1923 height: 100%; 1924 margin: 0; 1925 padding: 0; 1926 padding-right: ${e.space[4]}; 1927 padding-left: ${e.space[2]}; 1928 1929 svg { 1930 display: block; 1931 width: ${"small"===t?e.space[3]:e.space[4]}; 1932 path { 1933 color: ${e.colors.greyPrimary}; 1934 } 1935 } 1936 1937 ${"small"===t&&a.iv` 1938 padding-right: ${e.space["3.5"]}; 1939 `} 1940 `),r6=(0,a.ZP)(r2)(({theme:e,$open:t,$direction:r})=>a.iv` 1941 display: flex; 1942 cursor: pointer; 1943 1944 svg { 1945 fill: currentColor; 1946 transform: ${"up"===r?"rotate(180deg)":"rotate(0deg)"}; 1947 transition-duration: ${e.transitionDuration[200]}; 1948 transition-property: all; 1949 transition-timing-function: ${e.transitionTimingFunction.inOut}; 1950 } 1951 fill: currentColor; 1952 1953 ${t&&a.iv` 1954 svg { 1955 transform: ${"up"===r?"rotate(0deg)":"rotate(180deg)"}; 1956 } 1957 `} 1958 `),r3=a.ZP.div(({theme:e,$state:t,$direction:r,$rows:n,$size:o,$align:i})=>a.iv` 1959 display: ${"exited"===t?"none":"block"}; 1960 position: absolute; 1961 visibility: hidden; 1962 opacity: 0; 1963 overflow: hidden; 1964 1965 border: 1px solid ${e.colors.border}; 1966 padding: ${e.space[2]}; 1967 min-width: ${e.space.full}; 1968 ${"right"===i?a.iv` 1969 right: 0; 1970 `:a.iv` 1971 left: 0; 1972 `} 1973 border-radius: ${e.radii["2xLarge"]}; 1974 background: ${e.colors.background}; 1975 transition: all 0.3s cubic-bezier(1, 0, 0.22, 1.6), z-index 0.3s linear; 1976 1977 font-size: ${e.fontSizes.body}; 1978 line-height: ${e.lineHeights.body}; 1979 1980 ${"small"===o&&a.iv` 1981 font-size: ${e.fontSizes.small}; 1982 `} 1983 1984 ${"entered"===t?a.iv` 1985 z-index: 20; 1986 visibility: visible; 1987 top: ${"up"===r?"auto":`calc(100% + ${e.space[2]})`}; 1988 bottom: ${"up"===r?`calc(100% + ${e.space[2]})`:"auto"}; 1989 opacity: 1; 1990 `:a.iv` 1991 z-index: 1; 1992 visibility: hidden; 1993 top: ${"up"===r?"auto":`calc(100% - ${e.space[12]})`}; 1994 bottom: ${"up"===r?`calc(100% - ${e.space[12]})`:"auto"}; 1995 opacity: 0; 1996 `} 1997 1998 ${n&&a.iv` 1999 padding-right: ${e.space[1]}; 2000 `} 2001 `),r5=(e,t,r)=>"small"===r?`calc(${e.space[9]} * ${t})`:`calc(${e.space[11]} * ${t})`,r8=a.ZP.div(({theme:e,$rows:t,$direction:r,$size:n})=>a.iv` 2002 display: flex; 2003 flex-direction: ${"up"===r?"column-reverse":"column"}; 2004 align-items: flex-start; 2005 justify-content: space-between; 2006 gap: ${e.space[1]}; 2007 overflow-y: ${t?"scroll":"hidden"}; 2008 overflow-x: hidden; 2009 width: 100%; 2010 height: 100%; 2011 ${t&&a.iv` 2012 max-height: ${r5(e,t,n)}; 2013 border-color: hsla(${e.colors.raw.greyActive} / 0.05); 2014 transition: border-color 0.15s ease-in-out; 2015 padding-right: ${e.space[1]}; 2016 2017 /* stylelint-disable-next-line selector-pseudo-element-no-unknown */ 2018 &::-webkit-scrollbar-track { 2019 background-color: transparent; 2020 } 2021 2022 &::-webkit-scrollbar {
2023 width: ${e.space["1.5"]}; 2024 background-color: transparent; 2025 } 2026 2027 &::-webkit-scrollbar-thumb { 2028 border: none; 2029 border-radius: ${e.radii.full}; 2030 border-right-style: inset; 2031 border-right-width: calc(100vw + 100vh); 2032 border-color: inherit; 2033 } 2034 2035 &::-webkit-scrollbar-button { 2036 display: none; 2037 } 2038 2039 &:hover { 2040 border-color: hsla(${e.colors.raw.greyActive} / 0.2); 2041 } 2042 `}; 2043 `),r4=a.ZP.button(({theme:e,$selected:t,$highlighted:r,$color:n,$size:o})=>a.iv` 2044 align-items: center; 2045 cursor: pointer; 2046 display: flex; 2047 gap: ${e.space[2]}; 2048 width: ${e.space.full}; 2049 height: ${e.space[11]}; 2050 flex: 0 0 ${e.space[11]}; 2051 padding: 0 ${e.space[3]}; 2052 justify-content: flex-start; 2053 transition-duration: ${e.transitionDuration[150]}; 2054 transition-property: all; 2055 transition-timing-function: ${e.transitionTimingFunction.inOut}; 2056 border-radius: ${e.radii.large}; 2057 white-space: nowrap; 2058 color: ${e.colors.textPrimary}; 2059 font-size: ${G("body")}; 2060 font-weight: ${K("body")}; 2061 line-height: ${W("body")}; 2062 text-align: left; 2063 2064 svg { 2065 display: block; 2066 width: ${e.space[4]}; 2067 height: ${e.space[4]}; 2068 color: ${e.colors.textPrimary}; 2069 } 2070 2071 ${n&&a.iv` 2072 color: ${e.colors[n]}; 2073 svg { 2074 color: ${e.colors[n]}; 2075 } 2076 `} 2077 2078 &:disabled { 2079 color: ${e.colors.greyPrimary}; 2080 cursor: not-allowed; 2081 2082 &:hover { 2083 background-color: transparent; 2084 } 2085 2086 svg { 2087 color: ${e.colors.greyPrimary}; 2088 } 2089 } 2090 2091 ${r&&a.iv` 2092 background-color: ${e.colors.greySurface}; 2093 `} 2094 2095 ${t&&a.iv` 2096 background-color: ${e.colors.greyLight}; 2097 `} 2098 2099 ${"small"===o&&a.iv` 2100 height: ${e.space[9]}; 2101 flex: 0 0 ${e.space[9]}; 2102 font-size: ${G("small")}; 2103 font-weight: ${K("small")}; 2104 line-height: ${W("small")}; 2105 `} 2106 `),r7=a.ZP.div(({theme:e})=>a.iv` 2107 align-items: center; 2108 display: flex; 2109 gap: ${e.space[3]}; 2110 width: ${e.space.full}; 2111 height: ${e.space[9]}; 2112 padding: 0 ${e.space[2]}; 2113 justify-content: flex-start; 2114 transition-duration: ${e.transitionDuration[150]}; 2115 transition-property: all; 2116 transition-timing-function: ${e.transitionTimingFunction.inOut}; 2117 border-radius: ${e.radii.medium}; 2118 margin: ${e.space["0.5"]} 0; 2119 font-style: italic; 2120 white-space: nowrap; 2121 `),r9=e=>(t,r)=>{if(r.label){let n=r.label.trim().toLowerCase();-1!==n.indexOf(e)&&t.options.push(r),n===e&&(t.exactMatch=!0)}return t};var ne=((o=ne||{}).ArrowUp="ArrowUp",o.ArrowDown="ArrowDown",o.Enter="Enter",o);let nt=(e,t,r)=>"string"==typeof r?r:(null==r?void 0:r[e])||t,nr=(e,t,r)=>"number"==typeof r?r:(null==r?void 0:r[e])||t,nn=i.forwardRef(({description:e,disabled:t,autocomplete:r=!1,createable:n=!1,createablePrefix:o="Add ",placeholder:a,direction:s="down",error:c,hideLabel:l,inline:d,id:f,label:h,labelSecondary:p,required:m,tabIndex:g=-1,readOnly:b=!1,width:v,onBlur:y,onChange:w,onFocus:E,onCreate:x,options:C,rows:A,emptyListMessage:P="No results",name:j,value:k,size:O="medium",padding:S,inputSize:I,align:T,validated:B,showDot:_=!1,...D},$)=>{let M=i.useRef(null),R=$||M,N=i.useRef(null),F=i.useRef(null),[L,U]=i.useState(""),[z,H]=i.useState(""),q=n&&""!==z,G=n||r,[W]=i.useState(f||rV()),[K,V]=i.useState("");i.useEffect(()=>{k!==K&&void 0!==k&&V(k)},[k]);let Q=(null==C?void 0:C.find(e=>e.value===K))||null,Z=(e,t)=>{if(!(null!=e&&e.disabled)){if((null==e?void 0:e.value)===rQ)x&&x(z);else if(null!=e&&e.value&&(V(null==e?void 0:e.value),t)){let r=t.nativeEvent||t,n=new r.constructor(r.type,r);Object.defineProperties(n,{target:{writable:!0,value:{value:e.value,name:j}},currentTarget:{writable:!0,value:{value:e.value,name:j}}}),w&&w(n)}}},Y=i.useMemo(()=>{if(!G||""===z)return C;let e=z.trim().toLowerCase(),{options:t,exactMatch:r}=(Array.isArray(C)?C:[C]).reduce(r9(e),{options:[],exactMatch:!1});return[...t,...q&&!r?[{label:`${o}"${z}"`,value:rQ}]:[]]},[C,q,G,z,o]),[J,X]=i.useState(-1),ee=i.useCallback(e=>{let t=Y[e];
2121if(t&&!t.disabled&&t.value!==rQ){X(e),U(t.label||"");return}U(z),X(e)},[Y,z,U,X]),et=e=>{var t;let r=J;do{if("previous"===e?r--:r++,r<0)return ee(-1);if(Y[r]&&!(null!=(t=Y[r])&&t.disabled))return ee(r)}while(Y[r])},er=e=>{let t=Y[J];t&&Z(t,e),eh()},[en,eo]=i.useState(!1),ei=!t&&en,ea=""!==z&&G,es=nr("min",4,I),ec=nr("max",20,I),el=Math.min(Math.max(es,z.length),ec),[eu,ed]=u({timeout:{enter:0,exit:300},preEnter:!0});(0,i.useEffect)(()=>{ed(ei)},[ei]),(0,i.useEffect)(()=>{en||"unmounted"!==eu||eh()},[en,eu]);let ef=nt("inner","small"===O?"3":"4",S),eh=()=>{H(""),U(""),X(-1)},ep=()=>{G&&!en&&eo(!0),G||eo(!en)},em=e=>{if(!en)return e.stopPropagation(),e.preventDefault(),eo(!0);e.key in ne&&(e.preventDefault(),e.stopPropagation(),"ArrowUp"===e.key?et("up"===s?"next":"previous"):"ArrowDown"===e.key&&et("up"===s?"previous":"next"),"Enter"===e.key&&(er(e),eo(!1)))},eg=e=>{let t=e.currentTarget.value;H(t),U(t),X(-1)},eb=e=>{e.stopPropagation(),H(""),U(""),X(-1)},ev=()=>{ee(-1)},ey=e=>t=>{t.stopPropagation(),Z(e,t),eo(!1)},ew=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));isNaN(t)||ee(t)};eO(N,"click",()=>eo(!1),en);let eE=({option:e,...t})=>e?i.createElement(i.Fragment,null,e.prefix&&i.createElement("div",null,e.prefix),i.createElement(rX,{...t},e.node?e.node:e.label||e.value)):null;return i.createElement(eK,{"data-testid":"select",description:e,disabled:t,error:c,hideLabel:l,id:W,inline:d,label:h,labelSecondary:p,readOnly:b,required:m,width:v},e=>i.createElement(rZ,{...D,"aria-controls":`listbox-${W}`,"aria-expanded":"true","aria-haspopup":"listbox","aria-invalid":!!c||void 0,"data-testid":"select-container",role:"combobox",onClick:ep,onKeyDown:em,$disabled:!!t,$hasError:!!c,$open:ei,$readOnly:b,$showDot:_,$size:O,$validated:!!B,id:`combo-${W}`,ref:N,tabIndex:g,onBlur:y,onFocus:E},i.createElement(rY,{$disabled:!!t,$hasError:!!c,$ids:e,$open:ei,$size:O},i.createElement(rJ,{ref:R,...null==e?void 0:e.content,"aria-hidden":!0,disabled:t,name:j,placeholder:a,readOnly:b,tabIndex:-1,value:K,onChange:e=>{let t=e.target.value,r=null==C?void 0:C.find(e=>e.value===t);r&&(V(r.value),w&&w(e))},onFocus:()=>{var e;
2121F.current?F.current.focus():null==(e=N.current)||e.focus()}}),G&&ei?i.createElement(r1,{autoCapitalize:"none",autoComplete:"off",autoFocus:!0,"data-testid":"select-input",placeholder:(null==Q?void 0:Q.label)||a,ref:F,size:el,spellCheck:"false",style:{flex:"1",height:"100%"},value:L,onChange:eg,onKeyDown:e=>em(e)}):Q?i.createElement(eE,{"data-testid":"selected",option:Q}):i.createElement(r0,null,a),ea?i.createElement(r2,{$size:O,type:"button",onClick:eb},i.createElement(tc,null)):b?null:i.createElement(r6,{$direction:s,$open:ei,$size:O,id:"chevron",type:"button",onClick:()=>eo(!en)},i.createElement(tl,null))),i.createElement(r3,{$align:T,$direction:s,$rows:A,$size:O,$state:eu,id:`listbox-${W}`,role:"listbox",tabIndex:-1,onMouseLeave:ev},i.createElement(r8,{$direction:s,$rows:A,$size:O},0===Y.length&&i.createElement(r7,null,P),Y.map((e,t)=>i.createElement(r4,{$selected:(null==e?void 0:e.value)===K,$highlighted:t===J,$gap:ef,$color:e.color,$size:O,"data-option-index":t,"data-testid":`select-option-${e.value}`,disabled:e.disabled,key:e.value,role:"option",type:"button",onClick:ey(e),onMouseOver:ew},i.createElement(eE,{option:e})))))))});nn.displayName="Select";let no=a.ZP.div(({theme:e})=>a.iv` 2122 width: ${e.space.full}; 2123 `),ni=({theme:e})=>a.iv` 2124 width: ${e.space[4]}; 2125 height: ${e.space[4]}; 2126 background: ${e.colors.accent}; 2127 border-radius: ${e.radii.full}; 2128 cursor: pointer; 2129 transition: filter 0.15s ease-in-out; 2130 filter: brightness(1); 2131 &:hover { 2132 filter: brightness(0.95); 2133 } 2134 &:active { 2135 filter: brightness(0.875); 2136 } 2137`,na=a.ZP.input(({theme:e,disabled:t})=>a.iv` 2138 appearance: none; 2139 width: ${e.space.full}; 2140 height: ${e.space["1.5"]}; 2141 background: hsla(${e.colors.raw.accent} / 0.4); 2142 border-radius: ${e.radii.full}; 2143 outline: none; 2144 2145 &::-webkit-slider-thumb { 2146 appearance: none; 2147 ${ni} 2148 } 2149 2150 &::-moz-range-thumb { 2151 ${ni} 2152 } 2153 2154 &:hover { 2155 background: hsla(${e.colors.raw.accent} / 0.45); 2156 } 2157 2158 ${t&&a.iv` 2159 opacity: 0.5; 2160 filter: grayscale(100%); 2161 cursor: not-allowed; 2162 `} 2163 `),ns=i.forwardRef(({label:e,description:t,error:r,hideLabel:n,inline:o,labelSecondary:a,required:s,width:c,defaultValue:l,disabled:u,id:d,name:f,readOnly:h,tabIndex:p,value:m,min:g=1,max:b=100,onChange:v,onBlur:y,onFocus:w,step:E="any",...x},C)=>{let A=i.useRef(null),P=C||A;return i.createElement(eK,{label:e,description:t,error:r,hideLabel:n,inline:o,labelSecondary:a,required:s,width:c,id:d},e=>i.createElement(no,null,i.createElement(na,{ref:P,type:"range",...x,...null==e?void 0:e.content,defaultValue:l,disabled:u,name:f,readOnly:h,tabIndex:p,value:m,min:g,max:b,onChange:v,onBlur:y,onFocus:w,step:E})))});ns.displayName="Slider";let nc=a.ZP.div(({theme:e,$error:t,$validated:r,$showDot:n,$alwaysShowAction:o,$disabled:i})=>a.iv` 2164 position: relative; 2165 background-color: ${e.colors.backgroundSecondary}; 2166 border-radius: ${e.radii.large}; 2167 color: ${e.colors.text}; 2168 display: flex; 2169 transition-duration: ${e.transitionDuration[150]}; 2170 transition-property: color, border-color, background-color; 2171 transition-timing-function: ${e.transitionTimingFunction.inOut}; 2172 2173 :after { 2174 content: ''; 2175 position: absolute; 2176 width: ${e.space[4]}; 2177 height: ${e.space[4]}; 2178 border: 2px solid ${e.colors.backgroundPrimary}; 2179 right: -${e.space["1.5"]}; 2180 top: -${e.space["1.5"]}; 2181 border-radius: ${e.radii.full}; 2182 transition: all 0.3s ease-in-out; 2183 transform: scale(0.3); 2184 opacity: 0; 2185 } 2186 2187 ${n&&!i&&t&&a.iv` 2188 &:after { 2189 background-color: ${e.colors.redPrimary}; 2190 transform: scale(1); 2191 opacity: 1; 2192 } 2193 `} 2194 2195 ${n&&!i&&r&&!t&&a.iv` 2196 &:after { 2197 background-color: ${e.colors.greenPrimary}; 2198 transform: scale(1); 2199 opacity: 1; 2200 } 2201 `} 2202 2203 ${n&&!t&&a.iv` 2204 &:focus-within::after { 2205 background-color: ${e.colors.bluePrimary}; 2206 transform: scale(1); 2207 opacity: 1; 2208 } 2209 `} 2210 2211 textarea:disabled ~ button { 2212 opacity: 0; 2213 transform: scale(0.8); 2214 } 2215 2216 ${!o&&a.iv` 2217 textarea:placeholder-shown ~ button { 2218 opacity: 0; 2219 transform: scale(0.8); 2220 } 2221 `} 2222 `),nl=a.ZP.textarea(({theme:e,$size:t,$hasAction:r,$error:n})=>a.iv` 2223 position: relative; 2224 color: ${e.colors.textPrimary}; 2225 background-color: ${e.colors.backgroundPrimary}; 2226 border-color: ${e.colors.border}; 2227 border-width: 1px; 2228 border-style: solid; 2229 2230 display: flex; 2231 font-family: ${e.fonts.sans}; 2232 font-size: ${e.fontSizes.body}; 2233 font-weight: ${e.fontWeights.normal}; 2234 min-height: ${e.space[14]}; 2235 padding: ${e.space["3.5"]} 2236 ${r?e.space[10]:e.space[4]} ${e.space["3.5"]} 2237 ${e.space[4]}; 2238 width: ${e.space.full}; 2239 border-radius: ${e.radii.large}; 2240 overflow: hidden; 2241 resize: none; 2242 outline: none; 2243 transition: all 0.3s ease-in-out; 2244 2245 &::placeholder { 2246 color: ${e.colors.greyPrimary}; 2247 } 2248 2249 &:disabled { 2250 color: ${e.colors.greyPrimary}; 2251 background: ${e.colors.greyLight}; 2252 } 2253 2254 ${"small"===t&&a.iv` 2255 font-size: ${e.fontSizes.small}; 2256 line-height: ${e.lineHeights.small}; 2257 padding: ${e.space["2.5"]} 2258 ${r?e.space[9]:e.space["3.5"]} 2259 ${e.space["2.5"]} ${e.space["3.5"]}; 2260 `} 2261 2262 ${n&&a.iv` 2263 border-color: ${e.colors.redPrimary}; 2264 color: ${e.colors.redPrimary}; 2265 `} 2266 2267 ${!n&&a.iv` 2268 &:focus-within { 2269 border-color: ${e.colors.bluePrimary}; 2270 } 2271 `} 2272 2273 &:read-only { 2274 border-color: ${e.colors.border}; 2275 cursor: default; 2276 } 2277 `),nu=a.ZP.button(({theme:e,$size:t})=>a.iv` 2278 position: absolute; 2279 top: 0; 2280 right: 0; 2281 width: ${"small"===t?e.space[10]:e.space[12]}; 2282 height: ${"small"===t?e.space[10]:e.space[12]}; 2283 transition: all 0.1s ease-in-out; 2284 cursor: pointer; 2285 2286 display: flex; 2287 justify-content: center;
2288 align-items: center; 2289 2290 svg { 2291 display: block; 2292 width: ${"small"===t?e.space[3]:e.space[4]}; 2293 height: ${"small"===t?e.space[3]:e.space[4]}; 2294 color: ${e.colors.greyPrimary}; 2295 transition: all 0.1s ease-in-out; 2296 } 2297 2298 &:hover svg { 2299 color: ${e.colors.greyBright}; 2300 transform: translateY(-1px); 2301 } 2302 `),nd=i.forwardRef(({autoCorrect:e,autoFocus:t,clearable:r=!1,defaultValue:n,description:o,disabled:a,error:s,validated:c,showDot:l,hideLabel:u,id:d,label:f,labelSecondary:h,maxLength:p,name:m="textarea",placeholder:g,readOnly:b,required:v,rows:y=5,size:w="medium",spellCheck:E,tabIndex:x,value:C,width:A,actionIcon:P,alwaysShowAction:j=!1,onClickAction:k,onChange:O,onBlur:S,onFocus:I,...T},B)=>{let _=i.useRef(null),D=B||_,$=!!s||void 0,M=r||!!k,R=()=>{var e,t;if(!O)return D.current&&(D.current.value=""),null==(e=D.current)?void 0:e.focus();let r=document.createElement("input");r.value="",r.name=m;let n=new Event("change",{bubbles:!0});Object.defineProperties(n,{target:{writable:!1,value:r},currentTarget:{writable:!1,value:r}});let o=rk(n);O(o),null==(t=D.current)||t.focus()},N=()=>{if(k)return k();R()};return i.createElement(eK,{description:o,disabled:a,error:s,hideLabel:u,id:d,label:f,labelSecondary:h,readOnly:b,required:v,width:A},o=>i.createElement(nc,{$alwaysShowAction:j,$disabled:a,$error:!!s,$showDot:l,$validated:c},i.createElement(nl,{...T,...null==o?void 0:o.content,"aria-invalid":$,$error:$,$hasAction:M,$showDot:l,$size:w,$validated:c,autoCorrect:e,autoFocus:t,defaultValue:n,disabled:a,maxLength:p,name:m,placeholder:g,readOnly:b,ref:D,rows:y,spellCheck:E,tabIndex:x,value:C,onBlur:S,onChange:O,onFocus:I}),(r||k)&&i.createElement(nu,{$size:w,type:"button",onClick:N},P||i.createElement(tc,null))))});nd.displayName="Textarea";let nf={small:{width:"12",height:"7"},medium:{width:"12",height:"8"},large:{width:"16",height:"10"}},nh={small:{diameter:"5",translateX:"2.5"},medium:{diameter:"6",translateX:"2"},large:{diameter:"8",translateX:"3"}},np=a.ZP.input(({theme:e,$size:t="medium"})=>a.iv` 2303 position: relative; 2304 background-color: ${e.colors.border}; 2305 height: ${e.space[nf[t].height]}; 2306 width: ${e.space[nf[t].width]}; 2307 border-radius: ${e.radii.full}; 2308 transition: background-color 0.1s ease-in-out; 2309 2310 display: flex; 2311 align-items: center; 2312 justify-content: center; 2313 2314 cursor: pointer; 2315 2316 &:checked { 2317 background-color: ${e.colors.bluePrimary}; 2318 } 2319 2320 &:disabled { 2321 cursor: not-allowed; 2322 } 2323 2324 &::after { 2325 content: ''; 2326 display: block; 2327 position: absolute; 2328 background-color: ${e.colors.backgroundPrimary}; 2329 width: ${e.space[nh[t].diameter]}; 2330 height: ${e.space[nh[t].diameter]}; 2331 border-radius: ${e.radii.full}; 2332 transform: translateX(-${e.space[nh[t].translateX]}); 2333 transition: transform 0.3s ease-in-out, background-color 0.1s ease-in-out; 2334 } 2335 2336 &:checked::after { 2337 transform: translateX(${e.space[nh[t].translateX]}); 2338 } 2339 2340 &:disabled::after { 2341 background-color: ${e.colors.greyPrimary}; 2342 } 2343 `),nm=i.forwardRef(({size:e="medium",...t},r)=>i.createElement(np,{ref:r,type:"checkbox",...t,$size:e}));nm.displayName="Toggle";let ng={top:` 2344 &:after { 2345 display: initial; 2346 content: ''; 2347 position: absolute; 2348 bottom: -18px; 2349 left: 0; 2350 right: 0; 2351 margin: 0 auto; 2352 width: 0; 2353 height: 0; 2354 border: 10px solid transparent; 2355 border-top-color: white; 2356 } 2357 `,bottom:` 2358 &:after { 2359 display: initial; 2360 content: ''; 2361 position: absolute; 2362 top: -18px; 2363 left: 0; 2364 right: 0; 2365 margin: 0 auto; 2366 width: 0; 2367 height: 0; 2368 border: 10px solid transparent; 2369 border-bottom-color: white; 2370 } 2371 `,left:` 2372 display: flex; 2373 align-items: center; 2374 &:before { 2375 display: initial; 2376 content: ''; 2377 position: absolute; 2378 right: -18px; 2379 width: 0; 2380 height: 0; 2381 border: 10px solid transparent; 2382 border-left-color: white; 2383 } 2384 `,right:` 2385 display: flex; 2386 align-items: center; 2387 &:before { 2388 display: initial; 2389 content: ''; 2390 position: absolute; 2391 left: -18px; 2392 width: 0; 2393 height: 0; 2394 border: 10px solid transparent; 2395 border-right-color: white; 2396 } 2397 `},nb=a.ZP.div(({theme:e,$placement:t,$mobilePlacement:r})=>a.iv` 2398 position: relative; 2399 pointer-events: none; 2400 box-sizing: border-box; 2401 filter: drop-shadow(0px 0px 1px #e8e8e8) 2402 drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2)); 2403 border-radius: ${e.radii.large}; 2404 padding: ${e.space["2.5"]} ${e.space["2.5"]} ${e.space["2.5"]} 2405 ${e.space["3.5"]}; 2406 background: ${e.colors.background}; 2407 2408 ${ng[r]} 2409 ${L.sm.min(a.iv` 2410 &:before { 2411 display: none; 2412 } 2413 &:after { 2414 display: none; 2415 } 2416 ${ng[t]} 2417 `)} 2418 `),nv=a.ZP.button(({theme:e})=>a.iv` 2419 position: absolute; 2420 top: ${e.space[2]}; 2421 right: ${e.space[2]}; 2422 width: ${e.space[8]}; 2423 height: ${e.space[8]}; 2424 display: flex; 2425 align-items: center; 2426 justify-content: center; 2427 cursor: pointer; 2428 transition-property: all; 2429 transition-duration: ${e.transitionDuration[150]}; 2430 transition-timing-function: ${e.transitionTimingFunction.inOut}; 2431 border-radius: ${e.radii.full}; 2432 background-color: transparent; 2433 2434 &:hover { 2435 background-color: ${e.colors.greySurface}; 2436 transform: translateY(-1px); 2437 } 2438 2439 svg { 2440 display: block; 2441 width: ${e.space[4]}; 2442 height: ${e.space[4]}; 2443 color: ${e.colors.greyPrimary}; 2444 } 2445 `),ny=a.ZP.div(({theme:e})=>a.iv` 2446 display: flex; 2447 flex-direction: column; 2448 align-items: center; 2449 gap: ${e.space[4]}; 2450 padding: ${e.space[4]}; 2451 border-radius: ${e.radii["3xLarge"]}; 2452 border-bottom-left-radius: 0; 2453 border-bottom-right-radius: 0; 2454 background-color: ${e.colors.background}; 2455 position: relative; 2456 width: 100%; 2457 ${L.sm.min(a.iv` 2458 min-width: ${e.space[64]}; 2459 max-width: 80vw; 2460 border-radius: ${e.radii["3xLarge"]}; 2461 padding: ${e.space[6]}; 2462 gap: ${e.space[6]}; 2463 `)} 2464 `),nw=a.ZP.div(({theme:e,$alert:t})=>a.iv` 2465 width: ${e.space[8]}; 2466 height: ${e.space[8]}; 2467 flex: 0 0 ${e.space[8]}; 2468 2469 svg { 2470 display: block; 2471 width: 100%; 2472 height: 100%; 2473 } 2474 2475 ${"error"===t&&a.iv` 2476 background: ${e.colors.redPrimary}; 2477 color: ${e.colors.backgroundPrimary}; 2478 border-radius: ${e.radii.full}; 2479 2480 svg { 2481 transform: scale(0.5); 2482 } 2483 `} 2484 2485 ${"warning"===t&&a.iv` 2486 background: ${e.colors.yellowPrimary}; 2487 color: ${e.colors.backgroundPrimary}; 2488 border-radius: ${e.radii.full}; 2489 2490 svg { 2491 transform: scale(0.5); 2492 } 2493 `} 2494 `),nE=({alert:e})=>{let t=!!e&&["error","warning"].includes(e);return i.createElement(nw,{$alert:e},t?i.createElement(ti,null):i.createElement(tu,null))},nx=(0,a.ZP)(ee)(()=>a.iv` 2495 text-align: center; 2496 `),nC=(0,a.ZP)(ee)(({theme:e})=>a.iv` 2497 font-size: ${e.fontSizes.body}; 2498 line-height: ${e.lineHeights.body}; 2499 font-weight: ${e.fontWeights.bold}; 2500 color: ${e.colors.textSecondary}; 2501 text-align: center; 2502 2503 padding: 0 ${e.space[4]}; 2504 max-width: ${e.space[72]}; 2505 `),nA=a.ZP.div(({theme:e})=>a.iv` 2506 display: flex; 2507 align-items: center; 2508 justify-content: stretch; 2509 flex-direction: column; 2510 gap: ${e.space[2]}; 2511 width: ${e.space.full}; 2512 ${L.sm.min(a.iv` 2513 flex-direction: row; 2514 `)} 2515 `),nP=a.ZP.div(({theme:e})=>a.iv` 2516 width: 100%; 2517 display: flex; 2518 flex-direction: column; 2519 align-items: center; 2520 gap: ${e.space[4]}; 2521 `),nj=a.ZP.div(({theme:e})=>a.iv` 2522 display: flex; 2523 flex-direction: column; 2524 align-items: center; 2525 justify-content: center; 2526 gap: ${e.space[1]}; 2527 `),nk=a.ZP.div(({theme:e})=>a.iv` 2528 display: flex; 2529 flex-direction: row; 2530 align-items: center; 2531 justify-content: center; 2532 gap: ${e.space[2]}; 2533 `),nO=a.ZP.div(({theme:e,$type:t})=>a.iv` 2534 border-radius: ${e.radii.full}; 2535 width: ${e.space["3.5"]}; 2536 height: ${e.space["3.5"]}; 2537 ${"notStarted"===t&&a.iv` 2538 border: ${e.borderWidths["0.5"]} ${e.borderStyles.solid} 2539 ${e.colors.border}; 2540 `} 2541 ${"inProgress"===t&&a.iv` 2542 border: ${e.borderWidths["0.5"]} ${e.borderStyles.solid} 2543 ${e.colors.accent}; 2544 `} 2545 ${"completed"===t&&a.iv` 2546 background-color: ${e.colors.accent}; 2547 `}
2548 `),nS=({title:e,subtitle:t,alert:r})=>i.createElement(nj,null,r&&i.createElement(nE,{alert:r}),e&&("string"!=typeof e&&e||i.createElement(nx,{fontVariant:"headingFour"},e)),t&&("string"!=typeof t&&t||i.createElement(nC,null,t))),nI=({leading:e,trailing:t,currentStep:r,stepCount:n,stepStatus:o})=>{let a=i.useCallback(e=>e===r?o||"inProgress":e<(r||0)?"completed":"notStarted",[r,o]),s=e||t;return s||n?i.createElement(nP,null,n&&i.createElement(nk,{"data-testid":"step-container"},Array.from({length:n},(e,t)=>i.createElement(nO,{$type:a(t),"data-testid":`step-item-${t}-${a(t)}`,key:t}))),s&&i.createElement(nA,null,e,t)):null},nT=({open:e,onDismiss:t,alert:r,title:n,subtitle:o,children:a,currentStep:s,stepCount:c,stepStatus:l,...u})=>i.createElement(rw,{...u,open:e,onDismiss:t},i.createElement(ny,null,i.createElement(nS,{alert:r,title:n,subtitle:o,currentStep:s,stepCount:c,stepStatus:l}),a)),nB=({onClick:e})=>i.createElement(nv,{"data-testid":"close-icon",onClick:e},i.createElement(ts,null)),n_=({children:e,onDismiss:t,onClose:r,open:n,variant:o="closable",...a})=>{if("actionable"===o){let{trailing:o,leading:s,alert:c,title:l,subtitle:u,center:d,currentStep:f,stepCount:h,stepStatus:p,...m}=a,g=r||t;return i.createElement(nT,{...m,alert:c,open:n,subtitle:u,title:l,onDismiss:t},e,i.createElement(nI,{leading:s,trailing:o,center:d,currentStep:f,stepCount:h,stepStatus:p}),g&&i.createElement(nB,{onClick:g}))}if("closable"===o){let{alert:o,title:s,subtitle:c,...l}=a,u=r||t;return i.createElement(nT,{...l,alert:o,open:n,subtitle:c,title:s,onDismiss:t},e,u&&i.createElement(nB,{onClick:u}))}return i.createElement(rw,{onDismiss:t,open:n},i.createElement(ny,null,e,r&&i.createElement(nB,{onClick:r})))};
2548n_.displayName="Dialog",n_.Footer=nI,n_.Heading=nS,n_.CloseButton=nB;let nD=a.ZP.svg(({theme:e})=>a.iv` 2549 position: absolute; 2550 top: ${e.space["2.5"]}; 2551 right: ${e.space["2.5"]}; 2552 width: ${e.space[9]}; 2553 height: ${e.space[9]}; 2554 padding: ${e.space["1.5"]}; 2555 opacity: 0.5; 2556 cursor: pointer; 2557 transition-property: all; 2558 transition-duration: ${e.transitionDuration[150]}; 2559 transition-timing-function: ${e.transitionTimingFunction.inOut}; 2560 2561 &:hover { 2562 opacity: 0.7; 2563 } 2564 `),n$=a.ZP.div(({theme:e,$state:t,$top:r,$left:n,$right:o,$bottom:i,$mobile:s,$popped:c})=>a.iv` 2565 position: fixed; 2566 z-index: 10000; 2567 2568 width: 92.5%; 2569 left: 3.75%; 2570 top: calc(100vh / 100 * 2.5); 2571 2572 ${c&&a.iv` 2573 width: 95%; 2574 left: 2.5%; 2575 touch-action: none; 2576 `} 2577 2578 ${!s&&a.iv` 2579 max-width: ${e.space[112]}; 2580 top: unset; 2581 left: unset; 2582 2583 ${r&&`top: ${e.space[r]};`} 2584 ${n&&`left: ${e.space[n]};`} 2585 ${o&&`right: ${e.space[o]};`} 2586 ${i&&`bottom: ${e.space[i]};`} 2587 `} 2588 2589 display: flex; 2590 flex-direction: column; 2591 align-items: flex-start; 2592 justify-content: center; 2593 padding: ${e.space["4.5"]}; 2594 2595 background: hsla(${e.colors.raw.backgroundPrimary} / 0.8); 2596 box-shadow: ${e.boxShadows["0.02"]}; 2597 border: ${e.borderWidths.px} solid ${e.colors.greySurface}; 2598 backdrop-filter: blur(16px); 2599 border-radius: ${e.radii["2xLarge"]}; 2600 2601 transition: ${e.transitionDuration[300]} all 2602 ${e.transitionTimingFunction.popIn}; 2603 2604 ${"entered"===t?a.iv` 2605 opacity: 1; 2606 transform: translateY(0px); 2607 `:a.iv` 2608 opacity: 0; 2609 transform: translateY(-64px); 2610 `} 2611 `),nM=(0,a.ZP)(ee)(({theme:e})=>a.iv` 2612 font-size: ${e.fontSizes.headingFour}; 2613 line-height: ${e.lineHeights.headingFour}; 2614 `),nR=a.ZP.div(({theme:e})=>a.iv` 2615 width: 100%; 2616 display: flex; 2617 align-items: center; 2618 justify-content: center; 2619 padding-top: ${e.space[3]}; 2620 margin-bottom: calc(-1 * ${e.space[2]}); 2621 `),nN=a.ZP.div(({theme:e})=>a.iv` 2622 width: ${e.space[8]}; 2623 height: ${e.space[1]}; 2624 border-radius: ${e.radii.full}; 2625 background: ${e.colors.border}; 2626 `),nF=()=>i.createElement(nR,null,i.createElement(nN,null)),nL=a.ZP.div(({theme:e})=>a.iv` 2627 margin-top: ${e.space[3]}; 2628 width: 100%; 2629 `),nU=(0,a.vJ)(({theme:e})=>a.iv` 2630 *, 2631 ::before, 2632 ::after { 2633 box-sizing: border-box; 2634 margin: 0; 2635 padding: 0; 2636 font-family: ${e.fonts.sans}; 2637 border-color: ${e.colors.greyLight}; 2638 border-style: ${e.borderStyles.solid}; 2639 border-width: 0; 2640 color: currentColor; 2641 font-size: 100%; 2642 font-feature-settings: 'ss01' on, 'ss03' on; 2643 vertical-align: baseline; 2644 } 2645 2646 [data-js-focus-visible] &:focus:not([data-focus-visible-added]) { 2647 outline: none; 2648 } 2649 2650 html { 2651 font-size: ${e.fontSizes.body}; 2652 color: ${e.colors.text}; 2653 text-rendering: optimizeLegibility; 2654 background: radial-gradient( 2655 40.48% 67.6% at 50% 32.4%, 2656 #ecf4ff 0%, 2657 #f7f7ff 52.77%, 2658 #f7f7f7 100% 2659 ), 2660 #ffffff; 2661 } 2662 2663 body { 2664 line-height: normal; 2665 } 2666 2667 article, 2668 aside, 2669 details, 2670 div, 2671 figcaption, 2672 figure, 2673 footer, 2674 header, 2675 hgroup, 2676 menu, 2677 nav, 2678 section { 2679 display: block; 2680 } 2681 2682 ul, 2683 ol { 2684 list-style: none; 2685 } 2686 2687 blockquote { 2688 quotes: none; 2689 2690 &::before, 2691 &::after { 2692 content: ''; 2693 } 2694 } 2695 2696 table { 2697 border-collapse: collapse; 2698 border-spacing: 0; 2699 } 2700 2701 fieldset { 2702 display: block; 2703 appearance: none; 2704 outline: none; 2705 &:placeholder { 2706 color: ${e.colors.text}; 2707 opacity: 1; 2708 } 2709 } 2710 2711 mark { 2712 background-color: transparent; 2713 color: inherit; 2714 } 2715 2716 select { 2717 display: block; 2718 appearance: none; 2719 outline: none; 2720 &:placeholder { 2721 color: ${e.colors.text}; 2722 opacity: 1; 2723 } 2724 2725 &:-ms-expand { 2726 display: none; 2727 } 2728 } 2729 2730 input { 2731 display: block; 2732 appearance: none; 2733 outline: none; 2734 &:placeholder { 2735 color: ${e.colors.text}; 2736 opacity: 1; 2737 } 2738 &::-webkit-outer-spin-button { 2739 webkit-appearance: none; 2740 } 2741 &::-webkit-inner-spin-button { 2742 webkit-appearance: none; 2743 } 2744 &::-ms-clear { 2745 display: none; 2746 } 2747 &::-webkit-search-cancel-button { 2748 webkit-appearance: none; 2749 } 2750 } 2751 2752 button { 2753 background: none; 2754 } 2755 2756 a { 2757 text-decoration: none; 2758 color: inherit; 2759 } 2760 2761 .indicator-container { 2762 position: relative; 2763 &::after { 2764 position: absolute; 2765 top: -${e.space["0.5"]}; 2766 right: -${e.space["0.5"]}; 2767 content: ''; 2768 width: ${e.space[4]}; 2769 height: ${e.space[4]}; 2770 background-color: var(--indicator-color); 2771 border-radius: ${e.radii.full}; 2772 border: ${e.space["0.5"]} solid ${e.colors.greySurface}; 2773 transform: scale(0); 2774 opacity: 0; 2775 transition: all 0.2s ease-in-out; 2776 } 2777 &[type='button']::after { 2778 top: -${e.space[1]}; 2779 right: -${e.space[1]}; 2780 } 2781 &[data-indicator='true']::after { 2782 transform: scale(1); 2783 opacity: 1; 2784 } 2785 } 2786 `),nz=nU},79082:function(e,t,r){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(41128),o=r(31717),i=r(96551);function a(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,o.concatBytes)(...r)),randomBytes:o.randomBytes}}t.getHash=a,t.createCurve=function(e,t){let r=t=>(0,i.weierstrass)({...e,...a(t)});return Object.freeze({...r(t),create:r})}},81525:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(94632),o=r(40219),i=BigInt(0),a=BigInt(1);t.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,o=t;for(;r>i;)r&a&&(n=n.add(o)),o=o.double(),r>>=a;return n},precomputeWindow(e,t){let{windows:r,windowSize:o}=n(t),i=[],a=e,s=a;for(let e=0;e<r;e++){s=a,i.push(s);for(let e=1;e<o;e++)s=s.add(a),i.push(s);a=s.double()}return i},wNAF(t,o,i){let{windows:s,windowSize:c}=n(t),l=e.ZERO,u=e.BASE,d=BigInt(2**t-1),f=2**t,h=BigInt(t);for(let e=0;e<s;e++){let t=e*c,n=Number(i&d);i>>=h,n>c&&(n-=f,i+=a);let s=t+Math.abs(n)-1,p=e%2!=0,m=n<0;0===n?u=u.add(r(p,o[t])):l=l.add(r(m,o[s]))}return{p:l,f:u}},wNAFCached(e,t,r,n){let o=e._WINDOW_SIZE||1,i=t.get(e);return i||(i=this.precomputeWindow(e,o),1!==o&&t.set(e,n(i))),this.wNAF(o,i,r)}}},t.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,o.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},15134:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;let n=r(94632),o=r(40219),i=o.bytesToNumberBE;function a(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function s(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected")}function c(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function l(e,t,r,n){s(e),s(t),c(r),t.length>255&&(t=n((0,o.concatBytes)((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:i,blockLen:l}=n,u=Math.ceil(r/i);if(u>255)throw Error("Invalid xmd length");let d=(0,o.concatBytes)(t,a(t.length,1)),f=a(0,l),h=a(r,2),p=Array(u),m=n((0,o.concatBytes)(f,e,h,a(0,1),d));p[0]=n((0,o.concatBytes)(m,a(1,1),d));for(let e=1;e<=u;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}(m,p[e-1]),a(e+1,1),d];p[e]=n((0,o.concatBytes)(...t))}let g=(0,o.concatBytes)(...p);return g.slice(0,r)}function u(e,t,r,n,i){if(s(e),s(t),c(r),t.length>255&&(t=i.create({dkLen:Math.ceil(2*n/8)}).update((0,o.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()),r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(a(r,2)).update(t).update(a(t.length,1)).digest()}function d(e,t,r){let a;(0,o.validateObject)(r,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:d,k:f,m:h,hash:p,expand:m,DST:g}=r;s(e),c(t);let b=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,o.utf8ToBytes)(e);throw Error("DST must be Uint8Array or string")}(g),v=d.toString(2).length,y=Math.ceil((v+f)/8),w=t*h*y;if("xmd"===m)a=l(e,b,w,p);else if("xof"===m)a=u(e,b,w,f,p);else if("_internal_pass"===m)a=e;else throw Error('expand must be "xmd" or "xof"');let E=Array(t);for(let e=0;e<t;e++){let t=Array(h);for(let r=0;r<h;r++){let o=y*(r+e*h),s=a.subarray(o,o+y);t[r]=(0,n.mod)(i(s),d)}E[e]=t}return E}t.expand_message_xmd=l,t.expand_message_xof=u,t.hash_to_field=d,t.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,n)=>{let[o,i,a,s]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return{x:t=e.div(o,i),y:n=e.mul(n,e.div(a,s))}}},t.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,o){let i=d(n,2,{...r,DST:r.DST,...o}),a=e.fromAffine(t(i[0])),s=e.fromAffine(t(i[1])),c=a.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,o){let i=d(n,1,{...r,DST:r.encodeDST,...o}),a=e.fromAffine(t(i[0])).clearCofactor();return a.assertValidity(),a}}}},94632:function(e,t,r){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0}),t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(40219),o=BigInt(0),i=BigInt(1),a=BigInt(2),s=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function d(e,t){let r=e%t;return r>=o?r:t+r}function f(e,t,r){if(r<=o||t<o)throw Error("Expected power/modulo > 0");if(r===i)return o;let n=i;for(;t>o;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function h(e,t){if(e===o||t<=o)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),n=t,a=o,s=i,c=i,l=o;for(;r!==o;){let e=n/r,t=n%r,o=a-c*e,i=s-l*e;n=r,r=t,a=c,s=l,c=o,l=i}let u=n;if(u!==i)throw Error("invert: does not exist");return d(a,t)}function p(e){let t,r,n;let s=(e-i)/a;for(t=e-i,r=0;t%a===o;t/=a,r++);for(n=a;n<e&&f(n,s,e)!==e-i;n++);if(1===r){let t=(e+i)/c;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let l=(t+i)/a;return function(e,o){if(e.pow(o,s)===e.neg(e.ONE))throw Error("Cannot find square root");let a=r,c=e.pow(e.mul(e.ONE,n),t),u=e.pow(o,l),d=e.pow(o,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(c,i<<BigInt(a-t-1));c=e.sqr(r),u=e.mul(u,r),d=e.mul(d,c),a=t}return u}}function m(e){if(e%c===s){let t=(e+i)/c;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%u===l){let t=(e-l)/u;return function(e,r){let n=e.mul(r,a),o=e.pow(n,t),i=e.mul(r,o),s=e.mul(e.mul(i,a),o),c=e.mul(i,e.sub(s,e.ONE));if(!e.eql(e.sqr(c),r))throw Error("Cannot find square root");return c}}return p(e)}BigInt(9),BigInt(16),t.mod=d,t.pow=f,t.pow2=function(e,t,r){let n=e;for(;t-- >o;)n*=n,n%=r;return n},t.invert=h,t.tonelliShanks=p,t.FpSqrt=m,t.isNegativeLE=(e,t)=>(d(e,t)&i)===i;let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e,t,r){if(r<o)throw Error("Expected power > 0");if(r===o)return e.ONE;if(r===i)return t;let n=e.ONE,a=t;for(;r>o;)r&i&&(n=e.mul(n,a)),a=e.sqr(a),r>>=i;return n}function v(e,t){let r=Array(t.length),n=t.reduce((t,n,o)=>e.is0(n)?t:(r[o]=t,e.mul(t,n)),e.ONE),o=e.inv(n);return t.reduceRight((t,n,o)=>e.is0(n)?t:(r[o]=e.mul(t,r[o]),e.mul(t,n)),o),r}function y(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}t.validateField=function(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},t.FpPow=b,t.FpInvertBatch=v,t.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},t.FpIsSquare=function(e){let t=(e.ORDER-i)/a;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},t.nLength=y,t.Field=function(e,t,r=!1,a={}){if(e<=o)throw Error(`Expected Fp ORDER > 0, got ${e}`);let{nBitLength:s,nByteLength:c}=y(e,t);if(c>2048)throw Error("Field lengths over 2048 bytes are not supported");let l=m(e),u=Object.freeze({ORDER:e,BITS:s,BYTES:c,MASK:(0,n.bitMask)(s),ZERO:o,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return o<=t&&t<e},is0:e=>e===o,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>b(u,e,t),div:(t,r)=>d(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:a.sqrt||(e=>l(u,e)),invertBatch:e=>v(u,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},t.hashToPrivateScalar=function(e,t,r=!1){e=(0,n.ensureBytes)("privateHash",e);let o=e.length,a=y(t).nByteLength+8;if(a<24||o<a||o>1024)throw Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${o}`);let s=r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e);return d(s,t-i)+i}},40219:function(e,t){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let r=BigInt(0),n=BigInt(1),o=BigInt(2),i=e=>e instanceof Uint8Array,a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e){if(!i(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=a[e[r]];return t}function c(e){let t=e.toString(16);return 1&t.length?`0${t}`:t}function l(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function u(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(e.length%2)throw Error("hex string is invalid: unpadded "+e.length);let t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){let n=2*r,o=e.slice(n,n+2),i=Number.parseInt(o,16);if(Number.isNaN(i)||i<0)throw Error("invalid byte sequence");t[r]=i}return t}function d(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!i(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}t.bytesToHex=s,t.numberToHexUnpadded=c,t.hexToNumber=l,t.hexToBytes=u,t.bytesToNumberBE=function(e){return l(s(e))},t.bytesToNumberLE=function(e){if(!i(e))throw Error("Uint8Array expected");return l(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=(e,t)=>u(e.toString(16).padStart(2*t,"0")),t.numberToBytesLE=(e,r)=>(0,t.numberToBytesBE)(e,r).reverse(),t.numberToVarBytesBE=e=>u(c(e)),t.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=u(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(i(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let o=n.length;if("number"==typeof r&&o!==r)throw Error(`${e} expected ${r} bytes, got ${o}`);return n},t.concatBytes=d,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.utf8ToBytes=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)},t.bitLen=function(e){let t;for(t=0;e>r;e>>=n,t+=1);return t},t.bitGet=(e,t)=>e>>BigInt(t)&n,t.bitSet=(e,t,o)=>e|(o?n:r)<<BigInt(t),t.bitMask=e=>(o<<BigInt(e-1))-n;let f=e=>new Uint8Array(e),h=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=f(e),o=f(e),i=0,a=()=>{n.fill(1),o.fill(0),i=0},s=(...e)=>r(o,n,...e),c=(e=f())=>{o=s(h([0]),e),n=s(),0!==e.length&&(o=s(h([1]),e),n=s())},l=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){n=s();let t=n.slice();r.push(t),e+=n.length}return d(...r)};return(e,t)=>{let r;for(a(),c(e);!(r=t(l()));)c();return a(),r}};let p={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let o=p[r];if("function"!=typeof o)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!n||void 0!==i)&&!o(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},96551:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(94632),o=r(40219),i=r(40219),a=r(81525),{bytesToNumberBE:s,hexToBytes:c}
2786=o;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");let n=e[1],o=e.subarray(2,n+2);if(!n||o.length!==n)throw new r("Invalid signature integer: wrong length");if(128&o[0])throw new r("Invalid signature integer: negative");if(0===o[0]&&!(128&o[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:s(o),l:e.subarray(n+2)}},toSig(e){let{Err:r}=t.DER,n="string"==typeof e?c(e):e;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let o=n.length;if(o<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==o-2)throw new r("Invalid signature: incorrect length");let{d:i,l:a}=t.DER._parseInt(n.subarray(2)),{d:s,l:l}=t.DER._parseInt(a);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:i,s}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),o=t(r(e.r)),i=n.length/2,a=o.length/2,s=r(i),c=r(a);return`30${r(a+i+4)}02${c}${o}02${s}${n}`}};let l=BigInt(0),u=BigInt(1),d=BigInt(2),f=BigInt(3),h=BigInt(4);function p(e){let t=function(e){let t=(0,a.validateBasic)(e);o.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,s=t.toBytes||((e,t,n)=>{let i=t.toAffine();return o.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),c=t.fromBytes||(e=>{let t=e.subarray(1),n=r.fromBytes(t.subarray(0,r.BYTES)),o=r.fromBytes(t.subarray(r.BYTES,2*r.BYTES));return{x:n,y:o}});function d(e){let{a:n,b:o}=t,i=r.sqr(e),a=r.mul(i,e);return r.add(r.add(a,r.mul(e,n)),o)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&l<e&&e<t.n}function p(e){if(!h(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function m(e){let r;let{allowedPrivateKeyLengths:a,nByteLength:s,wrapPrivateKey:c,n:l}=t;if(a&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=o.bytesToHex(e)),"string"!=typeof e||!a.includes(e.length))throw Error("Invalid key");e=e.padStart(2*s,"0")}try{r="bigint"==typeof e?e:o.bytesToNumberBE((0,i.ensureBytes)("private key",e,s))}catch(t){throw Error(`private key must be ${s} bytes, hex or bigint, not ${typeof e}`)}return c&&(r=n.mod(r,l)),p(r),r}let g=new Map;function b(e){if(!(e instanceof v))throw Error("ProjectivePoint expected")}class v{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required")}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 v)throw Error("projective point not allowed");let o=e=>r.eql(e,r.ZERO);return o(t)&&o(n)?v.ZERO:new v(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(v.fromAffine)}static fromHex(e){let t=v.fromAffine(c((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return v.BASE.multiply(m(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint)return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let o=r.sqr(n),i=d(e);if(!r.eql(o,i))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){b(e);let{px:t,py:n,pz:o}=this,{px:i,py:a,pz:s}=e,c=r.eql(r.mul(t,s),r.mul(i,o)),l=r.eql(r.mul(n,s),r.mul(a,o));return c&&l}negate(){return new v(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,o=r.mul(n,f),{px:i,py:a,pz:s}=this,c=r.ZERO,l=r.ZERO,u=r.ZERO,d=r.mul(i,i),h=r.mul(a,a),p=r.mul(s,s),m=r.mul(i,a);return m=r.add(m,m),u=r.mul(i,s),u=r.add(u,u),c=r.mul(e,u),l=r.mul(o,p),l=r.add(c,l),
2786c=r.sub(h,l),l=r.add(h,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(o,u),p=r.mul(e,p),m=r.sub(d,p),m=r.mul(e,m),m=r.add(m,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,m),l=r.add(l,d),p=r.mul(a,s),p=r.add(p,p),d=r.mul(p,m),c=r.sub(c,d),u=r.mul(p,h),u=r.add(u,u),u=r.add(u,u),new v(c,l,u)}add(e){b(e);let{px:n,py:o,pz:i}=this,{px:a,py:s,pz:c}=e,l=r.ZERO,u=r.ZERO,d=r.ZERO,h=t.a,p=r.mul(t.b,f),m=r.mul(n,a),g=r.mul(o,s),y=r.mul(i,c),w=r.add(n,o),E=r.add(a,s);w=r.mul(w,E),E=r.add(m,g),w=r.sub(w,E),E=r.add(n,i);let x=r.add(a,c);return E=r.mul(E,x),x=r.add(m,y),E=r.sub(E,x),x=r.add(o,i),l=r.add(s,c),x=r.mul(x,l),l=r.add(g,y),x=r.sub(x,l),d=r.mul(h,E),l=r.mul(p,y),d=r.add(l,d),l=r.sub(g,d),d=r.add(g,d),u=r.mul(l,d),g=r.add(m,m),g=r.add(g,m),y=r.mul(h,y),E=r.mul(p,E),g=r.add(g,y),y=r.sub(m,y),y=r.mul(h,y),E=r.add(E,y),m=r.mul(g,E),u=r.add(u,m),m=r.mul(x,E),l=r.mul(w,l),l=r.sub(l,m),m=r.mul(w,g),d=r.mul(x,d),d=r.add(d,m),new v(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(v.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(v.fromAffine)})}multiplyUnsafe(e){let n=v.ZERO;if(e===l)return n;if(p(e),e===u)return this;let{endo:o}=t;if(!o)return w.unsafeLadder(this,e);let{k1neg:i,k1:a,k2neg:s,k2:c}=o.splitScalar(e),d=n,f=n,h=this;for(;a>l||c>l;)a&u&&(d=d.add(h)),c&u&&(f=f.add(h)),h=h.double(),a>>=u,c>>=u;return i&&(d=d.negate()),s&&(f=f.negate()),f=new v(r.mul(f.px,o.beta),f.py,f.pz),d.add(f)}multiply(e){let n,o;p(e);let{endo:i}=t;if(i){let{k1neg:t,k1:a,k2neg:s,k2:c}=i.splitScalar(e),{p:l,f:u}=this.wNAF(a),{p:d,f:f}=this.wNAF(c);l=w.constTimeNegate(t,l),d=w.constTimeNegate(s,d),d=new v(r.mul(d.px,i.beta),d.py,d.pz),n=l.add(d),o=u.add(f)}else{let{p:t,f:r}=this.wNAF(e);n=t,o=r}return v.normalizeZ([n,o])[0]}multiplyAndAddUnsafe(e,t,r){let n=v.BASE,o=(e,t)=>t!==l&&t!==u&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=o(this,t).add(o(e,r));return i.is0()?void 0:i}toAffine(e){let{px:t,py:n,pz:o}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(o));let a=r.mul(t,e),s=r.mul(n,e),c=r.mul(o,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===u)return!0;if(r)return r(v,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===u?this:r?r(v,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),s(v,this,e)}toHex(e=!0){return o.bytesToHex(this.toRawBytes(e))}}v.BASE=new v(t.Gx,t.Gy,r.ONE),v.ZERO=new v(r.ZERO,r.ONE,r.ZERO);let y=t.nBitLength,w=(0,a.wNAF)(v,t.endo?Math.ceil(y/2):y);return{CURVE:t,ProjectivePoint:v,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:h}}function m(e,t){let r=e.ORDER,n=l;for(let e=r-u;e%d===l;e/=d)n+=u;let o=n,i=(r-u)/d**o,a=(i-u)/d,s=d**o-u,c=d**(o-u),p=e.pow(t,i),m=e.pow(t,(i+u)/d),g=(t,r)=>{let n=p,i=e.pow(r,s),l=e.sqr(i);l=e.mul(l,r);let f=e.mul(t,l);f=e.pow(f,a),f=e.mul(f,i),i=e.mul(f,r),l=e.mul(f,t);let h=e.mul(l,i);f=e.pow(h,c);let g=e.eql(f,e.ONE);i=e.mul(l,m),f=e.mul(h,n),l=e.cmov(i,l,g),h=e.cmov(f,h,g);for(let t=o;t>u;t--){let r=d**(t-d),o=e.pow(h,r),a=e.eql(o,e.ONE);i=e.mul(l,n),n=e.mul(n,n),o=e.mul(h,n),l=e.cmov(i,l,a),h=e.cmov(o,h,a)}return{isValid:g,value:l}};if(e.ORDER%h===f){let r=(e.ORDER-f)/h,n=e.sqrt(e.neg(t));g=(t,o)=>{let i=e.sqr(o),a=e.mul(t,o);i=e.mul(i,a);let s=e.pow(i,r);s=e.mul(s,a);let c=e.mul(s,n),l=e.mul(e.sqr(s),o),u=e.eql(l,t),d=e.cmov(c,s,u);return{isValid:u,value:d}}}return g}t.weierstrassPoints=p,t.weierstrass=function(e){let r=function(e){let t=(0,a.validateBasic)(e);return o.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:c}=r,d=s.BYTES+1,f=2*s.BYTES+1;function h(e){return n.mod(e,c)}function m(e){return n.invert(e,c)}let{ProjectivePoint:g,normPrivateKeyToScalar:b,weierstrassEquation:v,isWithinCurveOrder:y}=p({...r,toBytes(e,t,r){let n=t.toAffine(),i=s.toBytes(n.x),a=o.concatBytes;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,s.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===d&&(2===r||3===r)){let e=o.bytesToNumberBE(n);if(!(l<e&&e<s.ORDER))throw Error("Point is not on curve");let t=v(e),i=s.sqrt(t),a=(i&u)===u;return(1&r)==1!==a&&(i=s.neg(i)),{x:e,y:i}}if(t===f&&4===r){let e=s.fromBytes(n.subarray(0,s.BYTES)),t=s.fromBytes(n.subarray(s.BYTES,2*s.BYTES));return{x:e,y:t}}throw Error(`Point of length ${t}
2786 was invalid. Expected ${d} compressed bytes or ${f} uncompressed bytes`)}}),w=e=>o.bytesToHex(o.numberToBytesBE(e,r.nByteLength));function E(e){let t=c>>u;return e>t}let x=(e,t,r)=>o.bytesToNumberBE(e.slice(t,r));class C{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let t=r.nByteLength;return e=(0,i.ensureBytes)("compactSignature",e,2*t),new C(x(e,0,t),x(e,t,2*t))}static fromDER(e){let{r,s:n}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new C(r,n)}assertValidity(){if(!y(this.r))throw Error("r must be 0 < r < CURVE.n");if(!y(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new C(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:n,recovery:o}=this,a=j((0,i.ensureBytes)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");let c=2===o||3===o?t+r.n:t;if(c>=s.ORDER)throw Error("recovery id 2 or 3 invalid");let l=(1&o)==0?"02":"03",u=g.fromHex(l+w(c)),d=m(c),f=h(-a*d),p=h(n*d),b=g.BASE.multiplyAndAddUnsafe(u,f,p);if(!b)throw Error("point at infinify");return b.assertValidity(),b}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new C(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return o.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return o.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}function A(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===d||n===f:r?n===2*d||n===2*f:e instanceof g}let P=r.bits2int||function(e){let t=o.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},j=r.bits2int_modN||function(e){return h(P(e))},k=o.bitMask(r.nBitLength);function O(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(l<=e&&e<k))throw Error(`bigint expected < 2^${r.nBitLength}`);return o.numberToBytesBE(e,r.nByteLength)}let S={lowS:r.lowS,prehash:!1},I={lowS:r.lowS,prehash:!1};return g.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return g.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(A(e))throw Error("first arg must be private key");if(!A(t))throw Error("second arg must be public key");let n=g.fromHex(t);return n.multiply(b(e)).toRawBytes(r)},sign:function(e,t,n=S){let{seed:a,k2sig:c}=function(e,t,n=S){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:c}=r,{lowS:d,prehash:f,extraEntropy:p}=n;null==d&&(d=!0),e=(0,i.ensureBytes)("msgHash",e),f&&(e=(0,i.ensureBytes)("prehashed msgHash",a(e)));let v=j(e),w=b(t),x=[O(w),O(v)];if(null!=p){let e=!0===p?c(s.BYTES):p;x.push((0,i.ensureBytes)("extraEntropy",e,s.BYTES))}let A=o.concatBytes(...x);return{seed:A,k2sig:function(e){let t=P(e);if(!y(t))return;let r=m(t),n=g.BASE.multiply(t).toAffine(),o=h(n.x);if(o===l)return;let i=h(r*h(v+o*w));if(i===l)return;let a=(n.x===o?0:2)|Number(n.y&u),s=i;return d&&E(i)&&(s=E(i)?h(-i):i,a^=1),new C(o,s,a)}}}(e,t,n),d=o.createHmacDrbg(r.hash.outputLen,r.nByteLength,r.hmac);return d(a,c)},verify:function(e,n,o,a=I){let s,c;if(n=(0,i.ensureBytes)("msgHash",n),o=(0,i.ensureBytes)("publicKey",o),"strict"in a)throw Error("options.strict was renamed to lowS");let{lowS:l,prehash:u}=a;try{if("string"==typeof e||e instanceof Uint8Array)try{c=C.fromDER(e)}catch(r){if(!(r instanceof t.DER.Err))throw r;c=C.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;c=new C(t,r)}else throw Error("PARSE");s=g.fromHex(o)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(l&&c.hasHighS())return!1;u&&(n=r.hash(n));let{r:d,s:f}=c,p=j(n),b=m(f),v=h(p*b),y=h(d*b),w=g.BASE.multiplyAndAddUnsafe(s,v,y)?.toAffine();if(!w)return!1;let E=h(w.x);return E===d},ProjectivePoint:g,Signature:C,utils:{isValidPrivateKey(e){try{return b(e),!0}catch(e){return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{let e=r.randomBytes(s.BYTES+8),t=n.hashToPrivateScalar(e,c);return o.numberToBytesBE(t,r.nByteLength)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invali
2786d opts");let r=m(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let o,i,a,s,c,l,u,d;o=e.sqr(n),o=e.mul(o,t.Z),i=e.sqr(o),i=e.add(i,o),a=e.add(i,e.ONE),a=e.mul(a,t.B),s=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),s=e.mul(s,t.A),i=e.sqr(a),l=e.sqr(s),c=e.mul(l,t.A),i=e.add(i,c),i=e.mul(i,a),l=e.mul(l,s),c=e.mul(l,t.B),i=e.add(i,c),u=e.mul(o,a);let{isValid:f,value:h}=r(i,l);d=e.mul(o,n),d=e.mul(d,h),u=e.cmov(u,a,f),d=e.cmov(d,h,f);let p=e.isOdd(n)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),{x:u=e.div(u,s),y:d}}}},59892:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function o(e,...t){if(!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=o,t.hash=i,t.exists=a,t.output=s,t.default={number:r,bool:n,bytes:o,hash:i,exists:a,output:s}},18783:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;let n=r(59892),o=r(31717);class i extends o.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,o.createView)(this.buffer)}update(e){n.default.exists(this);let{view:t,buffer:r,blockLen:i}=this;e=(0,o.toBytes)(e);let a=e.length;for(let n=0;n<a;){let s=Math.min(i-this.pos,a-n);if(s===i){let t=(0,o.createView)(e);for(;i<=a-n;n+=i)this.process(t,n);continue}r.set(e.subarray(n,n+s),this.pos),this.pos+=s,n+=s,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){n.default.exists(this),n.default.output(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:i,isLE:a}=this,{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(r,0),s=0);for(let e=s;e<i;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let o=BigInt(32),i=BigInt(4294967295),a=Number(r>>o&i),s=Number(r&i),c=n?4:0,l=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+l,s,n)}(r,i-8,BigInt(8*this.length),a),this.process(r,0);let c=(0,o.createView)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=l/4,d=this.get();if(u>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,d[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:o,destroyed:i,pos:a}=this;return e.length=n,e.pos=a,e.finished=o,e.destroyed=i,n%t&&e.buffer.set(r),e}}t.SHA2=i},17564:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},41128:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;let n=r(59892),o=r(31717);class i extends o.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,n.default.hash(e);let r=(0,o.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),a.fill(0)}update(e){return n.default.exists(this),this.iHash.update(e),this}digestInto(e){n.default.exists(this),n.default.bytes(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:r,finished:n,destroyed:o,blockLen:i,outputLen:a}=this;return e.finished=n,e.destroyed=o,e.blockLen=i,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.hmac=(e,t,r)=>new i(e,t).update(r).digest(),t.hmac.create=(e,t)=>
2786new i(e,t)},97968:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;let n=r(18783),o=r(31717),i=(e,t,r)=>e&t^~e&r,a=(e,t,r)=>e&t^e&r^t&r,s=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),c=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);class u extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:r,D:n,E:o,F:i,G:a,H:s}=this;return[e,t,r,n,o,i,a,s]}set(e,t,r,n,o,i,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|i,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)l[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=l[e-15],r=l[e-2],n=(0,o.rotr)(t,7)^(0,o.rotr)(t,18)^t>>>3,i=(0,o.rotr)(r,17)^(0,o.rotr)(r,19)^r>>>10;l[e]=i+l[e-7]+n+l[e-16]|0}let{A:r,B:n,C:c,D:u,E:d,F:f,G:h,H:p}=this;for(let e=0;e<64;e++){let t=(0,o.rotr)(d,6)^(0,o.rotr)(d,11)^(0,o.rotr)(d,25),m=p+t+i(d,f,h)+s[e]+l[e]|0,g=(0,o.rotr)(r,2)^(0,o.rotr)(r,13)^(0,o.rotr)(r,22),b=g+a(r,n,c)|0;p=h,h=f,f=d,d=u+m|0,u=c,c=n,n=r,r=m+b|0}r=r+this.A|0,n=n+this.B|0,c=c+this.C|0,u=u+this.D|0,d=d+this.E|0,f=f+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,n,c,u,d,f,h,p)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class d extends u{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,o.wrapConstructor)(()=>new u),t.sha224=(0,o.wrapConstructor)(()=>new d)},31717:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(17564);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw Error("hexToBytes: received invalid unpadded hex");let t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){let n=2*r,o=e.slice(n,n+2),i=Number.parseInt(o,16);if(Number.isNaN(i)||i<0)throw Error("Invalid byte sequence");t[r]=i}return t};let i=async()=>{};async function a(e,r,n){let o=Date.now();for(let i=0;i<e;i++){n(i);let e=Date.now()-o;e>=0&&e<r||(await (0,t.nextTick)(),o+=e)}}function s(e){if("string"!=typeof e)throw TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}function c(e){if("string"==typeof e&&(e=s(e)),!(e instanceof Uint8Array))throw TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}t.nextTick=i,t.asyncLoop=a,t.utf8ToBytes=s,t.toBytes=c,t.concatBytes=function(...e){if(!e.every(e=>e instanceof Uint8Array))throw Error("Uint8Array list expected");if(1===e.length)return e[0];let t=e.reduce((e,t)=>
2786e+t.length,0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let o=e[t];r.set(o,n),n+=o.length}return r},t.Hash=class{clone(){return this._cloneInto()}};let l=e=>"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||!l(t)))throw TypeError("Options should be object or undefined");let r=Object.assign(e,t);return r},t.wrapConstructor=function(e){let t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(c(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},33497:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let o=r(97968),i=r(31717),a=r(94632),s=r(96551),c=r(40219),l=r(15134),u=r(79082),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(1),p=BigInt(2),m=(e,t)=>
2786(e+t/p)/t;function g(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),o=BigInt(22),i=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%d,u=l*l*e%d,f=(0,a.pow2)(u,t,d)*u%d,h=(0,a.pow2)(f,t,d)*u%d,m=(0,a.pow2)(h,p,d)*l%d,g=(0,a.pow2)(m,n,d)*m%d,v=(0,a.pow2)(g,o,d)*g%d,y=(0,a.pow2)(v,s,d)*v%d,w=(0,a.pow2)(y,c,d)*y%d,E=(0,a.pow2)(w,s,d)*v%d,x=(0,a.pow2)(E,t,d)*u%d,C=(0,a.pow2)(x,i,d)*g%d,A=(0,a.pow2)(C,r,d)*l%d,P=(0,a.pow2)(A,p,d);if(!b.eql(b.sqr(P),e))throw Error("Cannot find square root");return P}let b=(0,a.Field)(d,void 0,void 0,{sqrt:g});t.secp256k1=(0,u.createCurve)({a:BigInt(0),b:BigInt(7),Fp:b,n:f,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=BigInt("0x100000000000000000000000000000000"),i=m(t*e,f),s=m(-r*e,f),c=(0,a.mod)(e-i*t-s*n,f),l=(0,a.mod)(-i*r-s*t,f),u=c>o,d=l>o;if(u&&(c=f-c),d&&(l=f-l),c>o||l>o)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:c,k2neg:d,k2:l}}}},o.sha256);let v=BigInt(0),y=e=>"bigint"==typeof e&&v<e&&e<d,w=e=>"bigint"==typeof e&&v<e&&e<f,E={};function x(e,...t){let r=E[e];if(void 0===r){let t=(0,o.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,c.concatBytes)(t,t),E[e]=r}return(0,o.sha256)((0,c.concatBytes)(r,...t))}let C=e=>e.toRawBytes(!0).slice(1),A=e=>(0,c.numberToBytesBE)(e,32),P=e=>(0,a.mod)(e,d),j=e=>(0,a.mod)(e,f),k=t.secp256k1.ProjectivePoint,O=(e,t,r)=>k.BASE.multiplyAndAddUnsafe(e,t,r);function S(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=k.fromPrivateKey(r),o=n.hasEvenY()?r:j(-r);return{scalar:o,bytes:C(n)}}function I(e){if(!y(e))throw Error("bad x: need 0 < x < p");let t=P(e*e),r=P(t*e+BigInt(7)),n=g(r);n%p!==v&&(n=P(-n));let o=new k(e,n,h);return o.assertValidity(),o}function T(...e){return j((0,c.bytesToNumberBE)(x("BIP0340/challenge",...e)))}function B(e,t,r){let n=(0,c.ensureBytes)("signature",e,64),o=(0,c.ensureBytes)("message",t),i=(0,c.ensureBytes)("publicKey",r,32);try{let e=I((0,c.bytesToNumberBE)(i)),t=(0,c.bytesToNumberBE)(n.subarray(0,32));if(!y(t))return!1;let r=(0,c.bytesToNumberBE)(n.subarray(32,64));if(!w(r))return!1;let a=T(A(t),C(e),o),s=O(e,r,j(-a));if(!s||!s.hasEvenY()||s.toAffine().x!==t)return!1;return!0}catch(e){return!1}}t.schnorr={getPublicKey:function(e){return S(e).bytes},sign:function(e,t,r=(0,i.randomBytes)(32)){let n=(0,c.ensureBytes)("message",e),{bytes:o,scalar:a}=S(t),s=(0,c.ensureBytes)("auxRand",r,32),l=A(a^(0,c.bytesToNumberBE)(x("BIP0340/aux",s))),u=x("BIP0340/nonce",l,o,n),d=j((0,c.bytesToNumberBE)(u));if(d===v)throw Error("sign failed: k is zero");let{bytes:f,scalar:h}=S(d),p=T(f,o,n),m=new Uint8Array(64);if(m.set(f,0),m.set(A(j(h+p*a)),32),!B(m,n,o))throw Error("sign: Invalid signature produced");return m},verify:B,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:I,pointToBytes:C,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:x,mod:a.mod}};let _=l.isogenyMap(b,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>
2786BigInt(e)))),D=(0,s.mapToCurveSimpleSWU)(b,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:b.create(BigInt("-11"))});n=l.createHasher(t.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=D(b.create(e[0]));return _(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:b.ORDER,m:1,k:128,expand:"xmd",hash:o.sha256}),t.hashToCurve=n.hashToCurve,t.encodeToCurve=n.encodeToCurve},20378:function(e,t,r){let n=r(38798),o=r(48872),i=r(54422),a=r(30037);function s(e,t,r,i,a){let s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!n())throw Error("Callback required as last argument");if(l){if(c<2)throw Error("Too few arguments provided");2===c?(a=r,r=t,t=i=void 0):3===c&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=t,t=void 0))}else{if(c<1)throw Error("Too few arguments provided");return 1===c?(r=t,t=i=void 0):2!==c||t.getContext||(i=r,r=t,t=void 0),new Promise(function(n,a){try{let a=o.create(r,i);n(e(a,t,i))}catch(e){a(e)}})}try{let n=o.create(r,i);a(null,e(n,t,i))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,function(e,t,r){return a.render(e,r)})},38798:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}}
2786,723:function(e,t,r){let n=r(99434).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=n(e),o=145===r?26:2*Math.ceil((r-13)/(2*t-2)),i=[r-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){let r=[],n=t.getRowColCoords(e),o=n.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)(0!==e||0!==t)&&(0!==e||t!==o-1)&&(e!==o-1||0!==t)&&r.push([n[e],n[t]]);return r}},31991:function(e,t,r){let n=r(36915),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*o.indexOf(this.data[t]);r+=o.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},97544:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},98364:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){let o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},86303:function(e,t,r){let n=r(62378),o=r(36915);function i(e){this.mode=o.BYTE,this.data=new Uint8Array(n(e))}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=i},65781:function(e,t,r){let n=r(81034),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case n.L:return o[(e-1)*4+0];case n.M:return o[(e-1)*4+1];case n.Q:return o[(e-1)*4+2];case n.H:return o[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return i[(e-1)*4+0];case n.M:return i[(e-1)*4+1];case n.Q:return i[(e-1)*4+2];case n.H:return i[(e-1)*4+3];default:return}}},81034:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let r=e.toLowerCase();switch(r){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}}
2786,82315:function(e,t,r){let n=r(99434).getSymbolSize;t.getPositions=function(e){let t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},68761:function(e,t,r){let n=r(99434),o=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,i=r<<10;for(;n.getBCHDigit(i)-o>=0;)i^=1335<<n.getBCHDigit(i)-o;return(r<<10|i)^21522}},50999:function(e,t){let r=new Uint8Array(512),n=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,n[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},73122:function(e,t,r){let n=r(36915),o=r(99434);function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=o.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=i},78621:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,n=0,o=0,i=0,a=null,s=null;for(let c=0;c<t;c++){o=i=0,a=s=null;for(let l=0;l<t;l++){let t=e.get(c,l);t===a?o++:(o>=5&&(n+=r.N1+(o-5)),a=t,o=1),(t=e.get(l,c))===s?i++:(i>=5&&(n+=r.N1+(i-5)),s=t,i=1)}o>=5&&(n+=r.N1+(o-5)),i>=5&&(n+=r.N1+(i-5))}return n},t.getPenaltyN2=function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){let t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);(4===t||0===t)&&n++}return n*r.N2},t.getPenaltyN3=function(e){let t=e.size,n=0,o=0,i=0;for(let r=0;r<t;r++){o=i=0;for(let a=0;a<t;a++)o=o<<1&2047|e.get(r,a),a>=10&&(1488===o||93===o)&&n++,i=i<<1&2047|e.get(a,r),a>=10&&(1488===i||93===i)&&n++}return n*r.N3},t.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];let o=Math.abs(Math.ceil(100*t/n/5)-10);return o*r.N4},t.applyMask=function(e,r){let n=r.size;for(let o=0;o<n;o++)for(let i=0;i<n;i++)r.isReserved(i,o)||r.xor(i,o,function(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,i,o))},t.getBestMask=function(e,r){let n=Object.keys(t.Patterns).length,o=0,i=1/0;for(let a=0;a<n;a++){r(a),t.applyMask(a,e);let n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),n<i&&(i=n,o=a)}return o}},36915:function(e,t,r){let n=r(27695),o=r(31219);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!n.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");let r=e.toLowerCase();switch(r){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},45324:function(e,t,r){let n=r(36915);function o(e){this.mode=n.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let n=this.data.length-t;n>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*n+1))},e.exports=o},11119:function(e,t,r){let n=r(50999);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)r[o+i]^=n.mul(e[o],t[i]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let o=0;o<t.length;o++)r[o]^=n.mul(t[o],e);let o=0;for(;o<r.length&&0===r[o];)o++;r=r.slice(o)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let o=0;o<e;o++)r=t.mul(r,new Uint8Array([1,n.exp(o)]));return r}},48872:function(e,t,r){let n=r(99434),o=r(81034),i=r(97544),a=r(98364),s=r(723),c=r(82315),l=r(78621),u=r(65781),d=r(24978),f=r(43252),h=r(68761),p=r(36915),m=r(83431);function g(e,t,r){let n,o;let i=e.size,a=h.getEncodedBits(t,r);for(n=0;n<15;n++)o=(a>>
2786n&1)==1,n<6?e.set(n,8,o,!0):n<8?e.set(n+1,8,o,!0):e.set(i-15+n,8,o,!0),n<8?e.set(8,i-n-1,o,!0):n<9?e.set(8,15-n-1+1,o,!0):e.set(8,15-n-1,o,!0);e.set(i-8,8,1,!0)}t.create=function(e,t){let r,h;if(void 0===e||""===e)throw Error("No input text");let b=o.M;return void 0!==t&&(b=o.from(t.errorCorrectionLevel,o.M),r=f.from(t.version),h=l.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),function(e,t,r,o){let h;if(Array.isArray(e))h=m.fromArray(e);else if("string"==typeof e){let n=t;if(!n){let t=m.rawSplit(e);n=f.getBestVersionForData(t,r)}h=m.fromString(e,n||40)}else throw Error("Invalid data");let b=f.getBestVersionForData(h,r);if(!b)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<b)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+b+".\n")}else t=b;let v=function(e,t,r){let o=new i;r.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(o)});let a=n.getSymbolTotalCodewords(e),s=u.getTotalCodewordsCount(e,t),c=(a-s)*8;for(o.getLengthInBits()+4<=c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);let l=(c-o.getLengthInBits())/8;for(let e=0;e<l;e++)o.put(e%2?17:236,8);return function(e,t,r){let o,i;let a=n.getSymbolTotalCodewords(t),s=u.getTotalCodewordsCount(t,r),c=a-s,l=u.getBlocksCount(t,r),f=a%l,h=l-f,p=Math.floor(a/l),m=Math.floor(c/l),g=m+1,b=p-m,v=new d(b),y=0,w=Array(l),E=Array(l),x=0,C=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<h?m:g;w[e]=C.slice(y,y+t),E[e]=v.encode(w[e]),y+=t,x=Math.max(x,t)}let A=new Uint8Array(a),P=0;for(o=0;o<x;o++)for(i=0;i<l;i++)o<w[i].length&&(A[P++]=w[i][o]);for(o=0;o<b;o++)for(i=0;i<l;i++)A[P++]=E[i][o];return A}(o,e,t)}(t,r,h),y=n.getSymbolSize(t),w=new a(y);return function(e,t){let r=e.size,n=c.getPositions(t);for(let t=0;t<n.length;t++){let o=n[t][0],i=n[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1)&&!(r<=o+t))for(let n=-1;n<=7;n++)i+n<=-1||r<=i+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(o+t,i+n,!0,!0):e.set(o+t,i+n,!1,!0))}}(w,t),function(e){let t=e.size;for(let r=8;r<t-8;r++){let t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(w),function(e,t){let r=s.getPositions(t);for(let t=0;t<r.length;t++){let n=r[t][0],o=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,o+r,!0,!0):e.set(n+t,o+r,!1,!0)}}(w,t),g(w,r,0),t>=7&&function(e,t){let r,n,o;let i=e.size,a=f.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),n=t%3+i-8-3,o=(a>>t&1)==1,e.set(r,n,o,!0),e.set(n,r,o,!0)}(w,t),function(e,t){let r=e.size,n=-1,o=r-1,i=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(o,s-r)){let n=!1;a<t.length&&(n=(t[a]>>>i&1)==1),e.set(o,s-r,n),-1==--i&&(a++,i=7)}if((o+=n)<0||r<=o){o-=n,n=-n;break}}}(w,v),isNaN(o)&&(o=l.getBestMask(w,g.bind(null,w,r))),l.applyMask(o,w),g(w,r,o),{modules:w,version:t,errorCorrectionLevel:r,maskPattern:o,segments:h}}(e,r,b,h)}},24978:function(e,t,r){let n=r(11119);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),o=this.degree-r.length;if(o>0){let e=new Uint8Array(this.degree);return e.set(r,o),e}return r},e.exports=o},31219:function(e,t){let r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");let o="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";t.KANJI=RegExp(n,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(o,"g"),t.NUMERIC=RegExp(r,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let i=RegExp("^"+n+"$"),a=RegExp("^"+r+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},83431:function(e,t,r){let n=r(36915),o=r(45324),i=r(31991),a=r(86303),s=r(73122),c=r(31219),l=r(99434),u=r(65987);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,r){let n;let o=[];for(;null!==(n=e.exec(r));)o.push({data:n[0],index:n.index,mode:t,length:n[0].length});return o}function h(e){let t,r;let o=f(c.NUMERIC,n.NUMERIC,e),i=f(c.ALPHANUMERIC,n.ALPHANUMERIC,e);l.isKanjiModeEnabled()?(t=f(c.BYTE,n.BYTE,e),r=f(c.KANJI,n.KANJI,e)):(t=f(c.BYTE_KANJI,n.BYTE,e),r=[]);let a=o.concat(i,t,r);return a.sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case n.NUMERIC:return o.getBitsLength(e);case n.ALPHANUMERIC:return i.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function m(e,t){let r;let c=n.getBestModeForData(e);if((r=n.from(t,c))!==n.BYTE&&r.bit<c.bit)throw Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(c));switch(r!==n.KANJI||l.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new o(e);case n.ALPHANUMERIC:return new i(e);case n.KANJI:return new s(e);case n.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e},[])},t.fromString=function(e,r){let o=h(e,l.isKanjiModeEnabled()),i=function(e){let t=[];for(let r=0;r<e.length;r++){let o=e[r];switch(o.mode){case n.NUMERIC:t.push([o,{data:o.data,mode:n.ALPHANUMERIC,length:o.length},{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.ALPHANUMERIC:t.push([o,{data:o.data,mode:n.BYTE,length:o.length}]);break;case n.KANJI:t.push([o,{data:o.data,mode:n.BYTE,length:d(o.data)}]);break;case n.BYTE:t.push([{data:o.data,mode:n.BYTE,length:d(o.data)}])}}return t}(o),a=function(e,t){let r={},o={start:{}},i=["start"];for(let a=0;a<e.length;a++){let s=e[a],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=""+a+e;
vendor: 4,112 bytes, line 2786
2786c.push(u),r[u]={node:l,lastCount:0},o[u]={};for(let e=0;e<i.length;e++){let a=i[e];r[a]&&r[a].node.mode===l.mode?(o[a][u]=p(r[a].lastCount+l.length,l.mode)-p(r[a].lastCount,l.mode),r[a].lastCount+=l.length):(r[a]&&(r[a].lastCount=l.length),o[a][u]=p(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,t))}}i=c}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:r}}(i,r),s=u.find_path(a.map,"start","end"),c=[];for(let e=1;e<s.length-1;e++)c.push(a.table[s[e]].node);return t.fromArray(c.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(h(e,l.isKanjiModeEnabled()))}},99434:function(e,t){let r;let n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},27695:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},43252:function(e,t,r){let n=r(99434),o=r(65781),i=r(81034),a=r(36915),s=r(27695),c=n.getBCHDigit(7973);function l(e,t){return a.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);let i=n.getSymbolTotalCodewords(e),c=o.getTotalCodewordsCount(e,t),u=(i-c)*8;if(r===a.MIXED)return u;let d=u-l(r,e);switch(r){case a.NUMERIC:return Math.floor(d/10*3);case a.ALPHANUMERIC:return Math.floor(d/11*2);case a.KANJI:return Math.floor(d/13);case a.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(e,r){let n;let o=i.from(r,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++){let o=function(e,t){let r=0;return e.forEach(function(e){let n=l(e.mode,t);r+=n+e.getBitsLength()}),r}(e,n);if(o<=t.getCapacity(n,r,a.MIXED))return n}}(e,o);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let o=1;o<=40;o++)if(r<=t.getCapacity(o,n,e))return o}(n.mode,n.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;n.getBCHDigit(t)-c>=0;)t^=7973<<n.getBCHDigit(t)-c;return e<<12|t}},54422:function(e,t,r){let n=r(26727);t.render=function(e,t,r){var o;let i=r,a=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),i=n.getOptions(i);let s=n.getImageWidth(e.modules.size,i),c=a.getContext("2d"),l=c.createImageData(s,s);return n.qrToImageData(l.data,e,i),o=a,c.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px",c.putImageData(l,0,0),a},t.renderToDataURL=function(e,r,n){let o=n;void 0!==o||r&&r.getContext||(o=r,r=void 0),o||(o={});let i=t.render(e,r,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}},30037:function(e,t,r){let n=r(26727);function o(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function i(e,t,r){let n=e+t;return void 0!==r&&(n+=" "+r),n}t.render=function(e,t,r){let a=n.getOptions(t),s=e.modules.size,c=e.modules.data,l=s+2*a.margin,u=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+o(a.color.dark,"stroke")+' d="'+function(e,t,r){let n="",o=0,a=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);l||a||(a=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(n+=a?i("M",l+r,.5+u+r):i("m",o,0),o=0,a=!1),l+1<t&&e[c+1]||(n+=i("h",s),s=0)):o++}
2786return n}(c,s,a.margin)+'"/>',f=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",h='<svg xmlns="http://www.w3.org/2000/svg" '+f+('viewBox="0 0 '+l)+" "+l+'" shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof r&&r(null,h),h}},26727:function(e,t){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){let n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){let o=r.modules.size,i=r.modules.data,a=t.getScale(o,n),s=Math.floor((o+2*n.margin)*a),c=n.margin*a,l=[n.color.light,n.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let u=(t*s+r)*4,d=n.color.light;if(t>=c&&r>=c&&t<s-c&&r<s-c){let e=Math.floor((t-c)/a),n=Math.floor((r-c)/a);d=l[i[e*o+n]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},77777:function(e,t,r){"use strict";t.N=void 0;var n=r(7352);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return n.SafeAppProvider}})},7352:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppProvider=void 0;let n=r(17187),o=r(93080);class i extends n.EventEmitter{constructor(e,t){super(),this.submittedTxs=new Map,this.safe=e,this.sdk=t}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(e){let{method:t,params:r=[]}=e;switch(t){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{let[e,t]=r;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw Error("The address or message hash is invalid");let n=await this.sdk.txs.signMessage(e),o="signature"in n?n.signature:void 0;return o||"0x"}case"eth_sign":{let[e,t]=r;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase()||!t.startsWith("0x"))throw Error("The address or message hash is invalid");let n=await this.sdk.txs.signMessage(t),o="signature"in n?n.signature:void 0;return o||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{let[e,t]=r,n="string"==typeof t?JSON.parse(t):t;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase())throw Error("The address is invalid");let o=await this.sdk.txs.signTypedMessage(n),i="signature"in o?o.signature:void 0;return i||"0x"}case"eth_sendTransaction":let n=Object.assign({value:"0",data:"0x"},r[0]);"string"==typeof n.gas&&n.gas.startsWith("0x")&&(n.gas=parseInt(n.gas,16));let i=await this.sdk.txs.send({txs:[n],params:{safeTxGas:n.gas}});return this.submittedTxs.set(i.safeTxHash,{from:this.safe.safeAddress,hash:i.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:n.data,value:n.value,to:n.to,blockHash:null,blockNumber:null,transactionIndex:null}),i.safeTxHash;case"eth_blockNumber":let a=await this.sdk.eth.getBlockByNumber(["latest"]);return a.number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,o.getLowerCase)(r[0]),r[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,o.getLowerCase)(r[0]),r[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,o.getLowerCase)(r[0]),r[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,o.getLowerCase)(r[0]),r[1],r[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([r[0],r[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([r[0],r[1]]);case"eth_getTransactionByHash":let s=r[0];try{let e=await this.sdk.txs.getBySafeTxHash(s);s=e.txHash||s}catch(e){}if(this.submittedTxs.has(s))return this.submittedTxs.get(s);return this.sdk.eth.getTransactionByHash([s]).then(e=>(e&&(e.hash=r[0]),e));case"eth_getTransactionReceipt":{let e=r[0];try{let t=await this.sdk.txs.getBySafeTxHash(e);e=t.txHash||e}catch(e){}return this.sdk.eth.getTransactionReceipt([e]).then(e=>(e&&(e.transactionHash=r[0]),e))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(r[0]);case"eth_call":return this.sdk.eth.call([r[0],r[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([r[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(r[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([r[0]]);default:throw Error(`"${e.method}" not implemented`)}}send(e,t){e||t("Undefined request"),this.request(e).then(r=>t(null,{jsonrpc:"2.0",id:e.id,result:r})).catch(e=>t(e,null))}}t.SafeAppProvider=i},93080:function(e,t){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0}),t.getLowerCase=void 0,t.getLowerCase=function(e){return e?e.toLowerCase():e}},95068:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});let i=r(65938);t.default=class{constructor(e=null,t=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer="undefined"==typeof window,this.isValidMessage=({origin:e,data:t,source:r})=>{let n=!this.isServer&&r===window.parent,o=void 0!==t.version&&parseInt(t.version.split(".")[0]),i=!0;return Array.isArray(this.allowedOrigins)&&(i=void 0!==this.allowedOrigins.find(t=>t.test(e))),!!t&&n&&o>=1&&i},this.logIncomingMessage=e=>{console.info(`Safe Apps SDK v1: A message was received from origin ${e.origin}. `,e.data)},this.onParentMessage=e=>{this.isValidMessage(e)&&(this.debugMode&&this.logIncomingMessage(e),this.handleIncomingMessage(e.data))},this.handleIncomingMessage=e=>{let{id:t}=e,r=this.callbacks.get(t);r&&(r(e),this.callbacks.delete(t))},this.send=(e,t)=>{let r=i.MessageFormatter.makeRequest(e,t);if(this.isServer)throw Error("Window doesn't exist");return window.parent.postMessage(r,"*"),new Promise((e,t)=>{this.callbacks.set(r.id,r=>{if(!r.success){t(Error(r.error));return}e(r)})})},this.allowedOrigins=e,this.debugMode=t,this.isServer||window.addEventListener("message",this.onParentMessage)}},o(r(27473),t)},65938:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageFormatter=void 0;let n=r(55445),o=r(9331);class i{}t.MessageFormatter=i,i.makeRequest=(e,t)=>{let r=(0,o.generateRequestId)();return{id:r,method:e,params:t,env:{sdkVersion:(0,n.getSDKVersion)()}}},i.makeResponse=(e,t,r)=>({id:e,success:!0,version:r,data:t}),i.makeErrorResponse=(e,t,r)=>({id:e,success:!1,error:t,version:r})},27473:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictedMethods=t.Methods=void 0,(r=t.Methods||(t.Methods={})).sendTransactions="sendTransactions",r.rpcCall="rpcCall",r.getChainInfo="getChainInfo",r.getSafeInfo="getSafeInfo",r.getTxBySafeTxHash="getTxBySafeTxHash",r.getSafeBalances="getSafeBalances",r.signMessage="signMessage",r.signTypedMessage="signTypedMessage",r.getEnvironmentInfo="getEnvironmentInfo",r.getOffChainSignature="getOffChainSignature",r.requestAddressBook="requestAddressBook",r.wallet_getPermissions="wallet_getPermissions",r.wallet_requestPermissions="wallet_requestPermissions",(t.RestrictedMethods||(t.RestrictedMethods={})).requestAddressBook="requestAddressBook"},9331:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRequestId=void 0;let r=e=>e.toString(16).padStart(2,"0"),n=e=>{let t=new Uint8Array((e||40)/2);return window.crypto.getRandomValues(t),Array.from(t,r).join("")};t.generateRequestId=()=>"undefined"!=typeof window?n(10):new Date().getTime().toString(36)},23417:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(11285),o=r(51741),i=(e,t)=>t.some(t=>t.parentCapability===e);t.default=()=>(e,t,r)=>{let a=r.value;return r.value=async function(){let e=new n.Wallet(this.communicator),r=await e.getPermissions();if(i(t,r)||(r=await e.requestPermissions([{[t]:{}}])),!i(t,r))throw new o.PermissionsError("Permissions rejected",o.PERMISSIONS_REQUEST_REJECTED);return a.apply(this)},r}},46794:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPC_CALLS=void 0,t.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}},99750:function(e,t,r){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0}),t.Eth=void 0;let n=r(46794),o=r(27473),i={defaultBlockParam:(e="latest")=>e,returnFullTxObjectParam:(e=!1)=>e,blockNumberToHex:e=>Number.isInteger(e)?`0x${e.toString(16)}`:e};t.Eth=class{constructor(e){this.communicator=e,this.call=this.buildRequest({call:n.RPC_CALLS.eth_call,formatters:[null,i.defaultBlockParam]}),this.getBalance=this.buildRequest({call:n.RPC_CALLS.eth_getBalance,formatters:[null,i.defaultBlockParam]}),this.getCode=this.buildRequest({call:n.RPC_CALLS.eth_getCode,formatters:[null,i.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:n.RPC_CALLS.eth_getStorageAt,formatters:[null,i.blockNumberToHex,i.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:n.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:n.RPC_CALLS.eth_getBlockByHash,formatters:[null,i.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:n.RPC_CALLS.eth_getBlockByNumber,formatters:[i.blockNumberToHex,i.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:n.RPC_CALLS.eth_getTransactionCount,formatters:[null,i.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:n.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=e=>this.buildRequest({call:n.RPC_CALLS.eth_estimateGas})([e]),this.setSafeSettings=this.buildRequest({call:n.RPC_CALLS.safe_setSettings})}buildRequest(e){let{call:t,formatters:r}=e;return async e=>{r&&Array.isArray(e)&&r.forEach((t,r)=>{t&&(e[r]=t(e[r]))});let n=await this.communicator.send(o.Methods.rpcCall,{call:t,params:e||[]});return n.data}}}},40936:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;let a=i(r(66638));t.default=a.default,o(r(66638),t),o(r(8550),t),o(r(27473),t),o(r(65938),t);var s=r(55445);Object.defineProperty(t,"getSDKVersion",{enumerable:!0,get:function(){return s.getSDKVersion}})},89385:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Safe=void 0;let i=r(68995),a=r(61181),s=r(27473),c=r(46794),l=r(8550),u=o(r(23417));class d{constructor(e){this.communicator=e}async getChainInfo(){let e=await this.communicator.send(s.Methods.getChainInfo,void 0);return e.data}async getInfo(){let e=await this.communicator.send(s.Methods.getSafeInfo,void 0);return e.data}async experimental_getBalances({currency:e="usd"}={}){let t=await this.communicator.send(s.Methods.getSafeBalances,{currency:e});return t.data}async check1271Signature(e,t="0x"){let r=await this.getInfo(),n=(0,i.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),o={call:c.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:n},"latest"]};try{let e=await this.communicator.send(s.Methods.rpcCall,o);return e.data.slice(0,10).toLowerCase()===a.MAGIC_VALUE}catch(e){return!1}}async check1271SignatureBytes(e,t="0x"){let r=await this.getInfo(),n=(0,i.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),o={call:c.RPC_CALLS.eth_call,params:[{to:r.safeAddress,data:n},"latest"]};try{let e=await this.communicator.send(s.Methods.rpcCall,o);return e.data.slice(0,10).toLowerCase()===a.MAGIC_VALUE_BYTES}catch(e){return!1}}calculateMessageHash(e){return(0,i.hashMessage)(e)}calculateTypedMessageHash(e){let t="object"==typeof e.domain.chainId?e.domain.chainId.toNumber():Number(e.domain.chainId),r=e.primaryType;if(!r){let t=Object.values(e.types),n=Object.keys(e.types).filter(e=>t.every(t=>t.every(({type:t})=>t.replace("[","").replace("]","")!==e)));if(0===n.length||n.length>1)throw Error("Please specify primaryType");r=n[0]}return(0,i.hashTypedData)({message:e.message,domain:Object.assign(Object.assign({},e.domain),{chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt}),types:e.types,primaryType:r})}async getOffChainSignature(e){let t=await this.communicator.send(s.Methods.getOffChainSignature,e);return t.data}async isMessageSigned(e,t="0x"){let r;if("string"==typeof e&&(r=async()=>{let r=this.calculateMessageHash(e),n=await this.isMessageHashSigned(r,t);return n}),(0,l.isObjectEIP712TypedData)(e)&&(r=async()=>{let r=this.calculateTypedMessageHash(e),n=await this.isMessageHashSigned(r,t);return n}),r){let e=await r();return e}throw Error("Invalid message type")}async isMessageHashSigned(e,t="0x"){let r=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(let n of r){let r=await n(e,t);if(r)return!0}return!1}async getEnvironmentInfo(){let e=await this.communicator.send(s.Methods.getEnvironmentInfo,void 0);return e.data}async requestAddressBook(){let e=await this.communicator.send(s.Methods.requestAddressBook,void 0);return e.data}}n([(0,u.default)()],d.prototype,"requestAddressBook",null),t.Safe=d},61181:function(e,t){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0}),t.MAGIC_VALUE_BYTES=t.MAGIC_VALUE=void 0,t.MAGIC_VALUE="0x1626ba7e",t.MAGIC_VALUE_BYTES="0x20c13b0b"},66638:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(95068)),i=r(44070),a=r(99750),s=r(89385),c=r(11285);t.default=class{constructor(e={}){let{allowedDomains:t=null,debug:r=!1}=e;this.communicator=new o.default(t,r),this.eth=new a.Eth(this.communicator),this.txs=new i.TXs(this.communicator),this.safe=new s.Safe(this.communicator),this.wallet=new c.Wallet(this.communicator)}}},44070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TXs=void 0;let n=r(27473),o=r(8550);t.TXs=class{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw Error("Invalid safeTxHash");let t=await this.communicator.send(n.Methods.getTxBySafeTxHash,{safeTxHash:e});return t.data}async signMessage(e){let t=await this.communicator.send(n.Methods.signMessage,{message:e});return t.data}async signTypedMessage(e){if(!(0,o.isObjectEIP712TypedData)(e))throw Error("Invalid typed data");let t=await this.communicator.send(n.Methods.signTypedMessage,{typedData:e});return t.data}async send({txs:e,params:t}){if(!e||!e.length)throw Error("No transactions were passed");let r=await this.communicator.send(n.Methods.sendTransactions,{txs:e,params:t});return r.data}}},25946:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferDirection=t.TransactionStatus=t.TokenType=t.Operation=void 0;var n=r(18831);Object.defineProperty(t,"Operation",{enumerable:!0,get:function(){return n.Operation}}),Object.defineProperty(t,"TokenType",{enumerable:!0,get:function(){return n.TokenType}}),Object.defineProperty(t,"TransactionStatus",{enumerable:!0,get:function(){return n.TransactionStatus}}),Object.defineProperty(t,"TransferDirection",{enumerable:!0,get:function(){return n.TransferDirection}})},8550:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(71734),t),o(r(13788),t),o(r(25946),t),o(r(13754),t)},13754:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(27473)},51741:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionsError=t.PERMISSIONS_REQUEST_REJECTED=void 0,t.PERMISSIONS_REQUEST_REJECTED=4001;class r extends Error{constructor(e,t,n){super(e),this.code=t,this.data=n,Object.setPrototypeOf(this,r.prototype)}}t.PermissionsError=r},13788:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},71734:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectEIP712TypedData=void 0,t.isObjectEIP712TypedData=e=>"object"==typeof e&&null!=e&&"domain"in e&&"types"in e&&"message"in e},55445:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;let o=n(r(29242));t.getSDKVersion=()=>o.default.version.split("-")[0]},11285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;let n=r(27473),o=r(51741);t.Wallet=class{constructor(e){this.communicator=e}async getPermissions(){let e=await this.communicator.send(n.Methods.wallet_getPermissions,void 0);return e.data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new o.PermissionsError("Permissions request is invalid",o.PERMISSIONS_REQUEST_REJECTED);try{let t=await this.communicator.send(n.Methods.wallet_requestPermissions,e);return t.data}catch(e){throw new o.PermissionsError("Permissions rejected",o.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every(e=>"object"==typeof e&&Object.keys(e).every(e=>!!Object.values(n.RestrictedMethods).includes(e)))}}},1074:function(e,t){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BASE_URL=void 0,t.DEFAULT_BASE_URL="https://safe-client.safe.global"},76287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEndpoint=t.postEndpoint=void 0;let n=r(59136);function o(e,t,r,o){let i=(0,n.insertParams)(t,r),a=(0,n.stringifyQuery)(o);return`${e}${i}${a}`}t.postEndpoint=function(e,t,r){let i=o(e,t,null==r?void 0:r.path,null==r?void 0:r.query);return(0,n.fetchData)(i,null==r?void 0:r.body)},t.getEndpoint=function(e,t,r,i){if(i)return(0,n.fetchData)(i);let a=o(e,t,null==r?void 0:r.path,null==r?void 0:r.query);return(0,n.fetchData)(a)}},18831:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.getDelegates=t.confirmSafeMessage=t.proposeSafeMessage=t.getSafeMessage=t.getSafeMessages=t.getDecodedData=t.getMasterCopies=t.getSafeApps=t.getChainConfig=t.getChainsConfig=t.proposeTransaction=t.postSafeGasEstimation=t.getTransactionDetails=t.getTransactionQueue=t.getTransactionHistory=t.getCollectiblesPage=t.getCollectibles=t.getOwnedSafes=t.getFiatCurrencies=t.getBalances=t.getMultisigTransactions=t.getModuleTransactions=t.getIncomingTransfers=t.getSafeInfo=t.setBaseUrl=void 0;let i=r(76287),a=r(1074);o(r(32733),t),o(r(22394),t),o(r(17584),t),o(r(28996),t),o(r(23075),t),o(r(80247),t),o(r(83571),t),o(r(43150),t);let s=a.DEFAULT_BASE_URL;t.setBaseUrl=e=>{s=e},t.getSafeInfo=function(e,t){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:e,address:t}})},t.getIncomingTransfers=function(e,t,r,n){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:e,address:t},query:r},n)},t.getModuleTransactions=function(e,t,r,n){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:e,address:t},query:r},n)},t.getMultisigTransactions=function(e,t,r,n){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:e,address:t},query:r},n)},t.getBalances=function(e,t,r="usd",n={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:e,address:t,currency:r},query:n})},t.getFiatCurrencies=function(){return(0,i.getEndpoint)(s,"/v1/balances/supported-fiat-codes")},t.getOwnedSafes=function(e,t){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:e,address:t}})},t.getCollectibles=function(e,t,r={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:t},query:r})},t.getCollectiblesPage=function(e,t,r={},n){return(0,i.getEndpoint)(s,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:t},query:r},n)},t.getTransactionHistory=function(e,t,r){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:e,safe_address:t},query:{}},r)},t.getTransactionQueue=function(e,t,r,n){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:e,safe_address:t},query:{trusted:n}},r)},t.getTransactionDetails=function(e,t){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:e,transactionId:t}})},t.postSafeGasEstimation=function(e,t,r){return(0,i.postEndpoint)(s,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:e,safe_address:t},body:r})},t.proposeTransaction=function(e,t,r){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:e,safe_address:t},body:r})},t.getChainsConfig=function(e){return(0,i.getEndpoint)(s,"/v1/chains",{query:e})},t.getChainConfig=function(e){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}",{path:{chainId:e}})},t.getSafeApps=function(e,t={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safe-apps",{path:{chainId:e},query:t})},t.getMasterCopies=function(e){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:e}})},t.getDecodedData=function(e,t){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/data-decoder",{path:{chainId:e},body:{data:t}})},t.getSafeMessages=function(e,t,r){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:e,safe_address:t},query:{}},r)},t.getSafeMessage=function(e,t){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:e,message_hash:t}}
2786)},t.proposeSafeMessage=function(e,t,r){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:e,safe_address:t},body:r})},t.confirmSafeMessage=function(e,t,r){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:e,message_hash:t},body:r})},t.getDelegates=function(e,t={}){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/delegates",{path:{chainId:e},query:t})}},28996:function(e,t){"use strict";var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURES=t.GAS_PRICE_TYPE=t.RPC_AUTHENTICATION=void 0,(r=t.RPC_AUTHENTICATION||(t.RPC_AUTHENTICATION={})).API_KEY_PATH="API_KEY_PATH",r.NO_AUTHENTICATION="NO_AUTHENTICATION",r.UNKNOWN="UNKNOWN",(n=t.GAS_PRICE_TYPE||(t.GAS_PRICE_TYPE={})).ORACLE="ORACLE",n.FIXED="FIXED",n.UNKNOWN="UNKNOWN",(o=t.FEATURES||(t.FEATURES={})).ERC721="ERC721",o.SAFE_APPS="SAFE_APPS",o.CONTRACT_INTERACTION="CONTRACT_INTERACTION",o.DOMAIN_LOOKUP="DOMAIN_LOOKUP",o.SPENDING_LIMIT="SPENDING_LIMIT",o.EIP1559="EIP1559",o.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",o.TX_SIMULATION="TX_SIMULATION",o.EIP1271="EIP1271"},23075:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenType=void 0,(r=t.TokenType||(t.TokenType={})).ERC20="ERC20",r.ERC721="ERC721",r.NATIVE_TOKEN="NATIVE_TOKEN"},83571:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80247:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},22394:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}
2786),t.SafeAppSocialPlatforms=t.SafeAppFeatures=t.SafeAppAccessPolicyTypes=void 0,(r=t.SafeAppAccessPolicyTypes||(t.SafeAppAccessPolicyTypes={})).NoRestrictions="NO_RESTRICTIONS",r.DomainAllowlist="DOMAIN_ALLOWLIST",(t.SafeAppFeatures||(t.SafeAppFeatures={})).BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS",(n=t.SafeAppSocialPlatforms||(t.SafeAppSocialPlatforms={})).TWITTER="TWITTER",n.GITHUB="GITHUB",n.DISCORD="DISCORD"},32733:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationVersionState=void 0,(r=t.ImplementationVersionState||(t.ImplementationVersionState={})).UP_TO_DATE="UP_TO_DATE",r.OUTDATED="OUTDATED",r.UNKNOWN="UNKNOWN"},43150:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SafeMessageStatus=t.SafeMessageListItemType=void 0,(r=t.SafeMessageListItemType||(t.SafeMessageListItemType={})).DATE_LABEL="DATE_LABEL",r.MESSAGE="MESSAGE",(n=t.SafeMessageStatus||(t.SafeMessageStatus={})).NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",n.CONFIRMED="CONFIRMED"},17584:function(e,t){"use strict";var r,n,o,i,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.LabelValue=t.DetailedExecutionInfoType=t.TransactionListItemType=t.ConflictType=t.TransactionInfoType=t.SettingsInfoType=t.TransactionTokenType=t.TransferDirection=t.TransactionStatus=t.Operation=void 0,(r=t.Operation||(t.Operation={}))[r.CALL=0]="CALL",r[r.DELEGATE=1]="DELEGATE",(n=t.TransactionStatus||(t.TransactionStatus={})).AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",n.AWAITING_EXECUTION="AWAITING_EXECUTION",n.CANCELLED="CANCELLED",n.FAILED="FAILED",n.SUCCESS="SUCCESS",(o=t.TransferDirection||(t.TransferDirection={})).INCOMING="INCOMING",o.OUTGOING="OUTGOING",o.UNKNOWN="UNKNOWN",(i=t.TransactionTokenType||(t.TransactionTokenType={})).ERC20="ERC20",i.ERC721="ERC721",i.NATIVE_COIN="NATIVE_COIN",(a=t.SettingsInfoType||(t.SettingsInfoType={})).SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",a.ADD_OWNER="ADD_OWNER",a.REMOVE_OWNER="REMOVE_OWNER",a.SWAP_OWNER="SWAP_OWNER",a.CHANGE_THRESHOLD="CHANGE_THRESHOLD",a.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",a.ENABLE_MODULE="ENABLE_MODULE",a.DISABLE_MODULE="DISABLE_MODULE",a.SET_GUARD="SET_GUARD",a.DELETE_GUARD="DELETE_GUARD",(s=t.TransactionInfoType||(t.TransactionInfoType={})).TRANSFER="Transfer",s.SETTINGS_CHANGE="SettingsChange",s.CUSTOM="Custom",s.CREATION="Creation",(c=t.ConflictType||(t.ConflictType={})).NONE="None",c.HAS_NEXT="HasNext",c.END="End",(l=t.TransactionListItemType||(t.TransactionListItemType={})).TRANSACTION="TRANSACTION",l.LABEL="LABEL",l.CONFLICT_HEADER="CONFLICT_HEADER",l.DATE_LABEL="DATE_LABEL",(u=t.DetailedExecutionInfoType||(t.DetailedExecutionInfoType={})).MULTISIG="MULTISIG",u.MODULE="MODULE",(d=t.LabelValue||(t.LabelValue={})).Queued="Queued",d.Next="Next"},59136:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchData=t.stringifyQuery=t.insertParams=void 0;let i=o(r(54098)),a=e=>"object"==typeof e&&null!==e&&"code"in e&&"message"in e;t.insertParams=function(e,t){return t?Object.keys(t).reduce((e,r)=>{var n;return n=String(t[r]),e.replace(RegExp(`\\{${r}\\}`,"g"),n)},e):e},t.stringifyQuery=function(e){if(!e)return"";let t=new URLSearchParams;Object.keys(e).forEach(r=>{null!=e[r]&&t.append(r,String(e[r]))});let r=t.toString();return r?`?${r}`:""},t.fetchData=function(e,t){return n(this,void 0,void 0,function*(){let r,n;null!=t&&(r={method:"POST",body:"string"==typeof t?t:JSON.stringify(t),headers:{"Content-Type":"application/json"}});let o=yield(0,i.default)(e,r);try{n=yield o.json()}catch(e){if(o.headers&&"0"!==o.headers.get("content-length"))throw Error(`Invalid response content: ${o.statusText}`)}if(!o.ok){let e=a(n)?`${n.code}: ${n.message}`:o.statusText;throw Error(e)}return n})}},98099:function(e,t,r){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0});var n=r(97117);function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function l(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=o,t.writeInt16BE=o,t.writeUint16LE=i,t.writeInt16LE=i,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=c,t.readUint32LE=l,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=a(e,t),n=a(e,t+4);return 4294967296*r+n-(n>>31)*4294967296},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=l(e,t);return 4294967296*l(e,t+4)+r},t.writeUint64BE=f,t.writeInt64BE=f,t.writeUint64LE=h,t.writeInt64LE=h,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintBE: array is too short for the given b
2786itLength");for(var n=0,o=1,i=e/8+r-1;i>=r;i--)n+=t[i]*o,o*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var n=0,o=1,i=r;i<r+e/8;i++)n+=t[i]*o,o*=256;return n},t.writeUintBE=function(e,t,r,o){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===o&&(o=0),e%8!=0)throw Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintBE value must be an integer");for(var i=1,a=e/8+o-1;a>=o;a--)r[a]=t/i&255,i*=256;return r},t.writeUintLE=function(e,t,r,o){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===o&&(o=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var i=1,a=o;a<o+e/8;a++)r[a]=t/i&255,i*=256;return r},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},25439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(98099),o=r(17309);function i(e,t,r,i,a){if(void 0===a&&(a=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(i.length<r.length)throw Error("ChaCha: destination is shorter than source");if(0===a){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");c=(s=new Uint8Array(16)).length-t.length,s.set(t,c)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");s=t,c=a}for(var s,c,l=new Uint8Array(64),u=0;u<r.length;u+=64){!function(e,t,r){for(var o=r[3]<<24|r[2]<<16|r[1]<<8|r[0],i=r[7]<<24|r[6]<<16|r[5]<<8|r[4],a=r[11]<<24|r[10]<<16|r[9]<<8|r[8],s=r[15]<<24|r[14]<<16|r[13]<<8|r[12],c=r[19]<<24|r[18]<<16|r[17]<<8|r[16],l=r[23]<<24|r[22]<<16|r[21]<<8|r[20],u=r[27]<<24|r[26]<<16|r[25]<<8|r[24],d=r[31]<<24|r[30]<<16|r[29]<<8|r[28],f=t[3]<<24|t[2]<<16|t[1]<<8|t[0],h=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],m=t[15]<<24|t[14]<<16|t[13]<<8|t[12],g=1634760805,b=857760878,v=2036477234,y=1797285236,w=o,E=i,x=a,C=s,A=c,P=l,j=u,k=d,O=f,S=h,I=p,T=m,B=0;B<20;B+=2)O^=g=g+w|0,w^=A=A+(O=O>>>16|O<<16)|0,w=w>>>20|w<<12,S^=b=b+E|0,E^=P=P+(S=S>>>16|S<<16)|0,E=E>>>20|E<<12,I^=v=v+x|0,x^=j=j+(I=I>>>16|I<<16)|0,x=x>>>20|x<<12,T^=y=y+C|0,C^=k=k+(T=T>>>16|T<<16)|0,C=C>>>20|C<<12,I^=v=v+x|0,x^=j=j+(I=I>>>24|I<<8)|0,x=x>>>25|x<<7,T^=y=y+C|0,C^=k=k+(T=T>>>24|T<<8)|0,C=C>>>25|C<<7,S^=b=b+E|0,E^=P=P+(S=S>>>24|S<<8)|0,E=E>>>25|E<<7,O^=g=g+w|0,w^=A=A+(O=O>>>24|O<<8)|0,w=w>>>25|w<<7,T^=g=g+E|0,E^=j=j+(T=T>>>16|T<<16)|0,E=E>>>20|E<<12,O^=b=b+x|0,x^=k=k+(O=O>>>16|O<<16)|0,x=x>>>20|x<<12,S^=v=v+C|0,C^=A=A+(S=S>>>16|S<<16)|0,C=C>>>20|C<<12,I^=y=y+w|0,w^=P=P+(I=I>>>16|I<<16)|0,w=w>>>20|w<<12,S^=v=v+C|0,C^=A=A+(S=S>>>24|S<<8)|0,C=C>>>25|C<<7,I^=y=y+w|0,w^=P=P+(I=I>>>24|I<<8)|0,w=w>>>25|w<<7,O^=b=b+x|0,x^=k=k+(O=O>>>24|O<<8)|0,x=x>>>25|x<<7,T^=g=g+E|0,E^=j=j+(T=T>>>24|T<<8)|0,E=E>>>25|E<<7;n.writeUint32LE(g+1634760805|0,e,0),n.writeUint32LE(b+857760878|0,e,4),n.writeUint32LE(v+2036477234|0,e,8),n.writeUint32LE(y+1797285236|0,e,12),n.writeUint32LE(w+o|0,e,16),n.writeUint32LE(E+i|0,e,20),n.writeUint32LE(x+a|0,e,24),n.writeUint32LE(C+s|0,e,28),n.writeUint32LE(A+c|0,e,32),n.writeUint32LE(P+l|0,e,36),n.writeUint32LE(j+u|0,e,40),n.writeUint32LE(k+d|0,e,44),n.writeUint32LE(O+f|0,e,48),n.writeUint32LE(S+h|0,e,52),n.writeUint32LE(I+p|0,e,56),n.writeUint32LE(T+m|0,e,60)}(l,s,e);for(var d=u;d<u+64&&d<r.length;d++)i[d]=r[d]^l[d-u];!function(e,t,r){for(var n=1;r--;)n=n+(255&e[t])|0,e[t]=255&n,n>>>=8,t++;if(n>0)throw Error("ChaCha: counter overflow")}(s,0,c)}return o.wipe(l),0===a&&o.wipe(s),i}
2786t.streamXOR=i,t.stream=function(e,t,r,n){return void 0===n&&(n=0),o.wipe(r),i(e,t,r,r,n)}},15501:function(e,t,r){"use strict";var n=r(25439),o=r(63027),i=r(17309),a=r(98099),s=r(4153);t.Cv=32,t.WH=12,t.pg=16;var c=new Uint8Array(16),l=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,o){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var a,s=new Uint8Array(16);s.set(e,s.length-e.length);var c=new Uint8Array(32);n.stream(this._key,s,c,4);var l=t.length+this.tagLength;if(o){if(o.length!==l)throw Error("ChaCha20Poly1305: incorrect destination length");a=o}else a=new Uint8Array(l);return n.streamXOR(this._key,s,t,a,4),this._authenticate(a.subarray(a.length-this.tagLength,a.length),c,a.subarray(0,a.length-this.tagLength),r),i.wipe(s),a},e.prototype.open=function(e,t,r,o){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var a,c=new Uint8Array(16);c.set(e,c.length-e.length);var l=new Uint8Array(32);n.stream(this._key,c,l,4);var u=new Uint8Array(this.tagLength);if(this._authenticate(u,l,t.subarray(0,t.length-this.tagLength),r),!s.equal(u,t.subarray(t.length-this.tagLength,t.length)))return null;var d=t.length-this.tagLength;if(o){if(o.length!==d)throw Error("ChaCha20Poly1305: incorrect destination length");a=o}else a=new Uint8Array(d);return n.streamXOR(this._key,c,t.subarray(0,t.length-this.tagLength),a,4),i.wipe(c),a},e.prototype.clean=function(){return i.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,n){var s=new o.Poly1305(t);n&&(s.update(n),n.length%16>0&&s.update(c.subarray(n.length%16))),s.update(r),r.length%16>0&&s.update(c.subarray(r.length%16));var l=new Uint8Array(8);n&&a.writeUint64LE(n.length,l),s.update(l),a.writeUint64LE(r.length,l),s.update(l);for(var u=s.digest(),d=0;d<u.length;d++)e[d]=u[d];s.clean(),i.wipe(u),i.wipe(l)},e}();t.OK=l},4153:function(e,t){"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},79984:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},512:function(e,t,r){"use strict";var n=r(25629),o=r(17309),i=function(){function e(e,t,r,o){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=o;var i=n.hmac(this._hash,r,t);this._hmac=new n.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),o.wipe(this._buffer),o.wipe(this._counter),this._bufpos=0},e}();t.t=i},25629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79984),o=r(4153),i=r(17309),a=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var o=0;o<r.length;o++)r[o]^=54;this._inner.update(r);for(var o=0;o<r.length;o++)r[o]^=106;this._outer.update(r),n.isSerializableHash(this._inner)&&n.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),i.wipe(r)}return e.prototype.reset=function(){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){n.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),n.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!n.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!n.isSerializableHash(this._inner))throw Error("hmac: can't
2786cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=a,t.hmac=function(e,t,r){var n=new a(e,t);n.update(r);var o=n.digest();return n.clean(),o},t.equal=o.equal},97117:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},63027:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4153),o=r(17309);t.DIGEST_LENGTH=16;var i=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var o=e[4]|e[5]<<8;this._r[2]=(n>>>10|o<<6)&7939;var i=e[6]|e[7]<<8;this._r[3]=(o>>>7|i<<9)&8191;var a=e[8]|e[9]<<8;this._r[4]=(i>>>4|a<<12)&255,this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=(a>>>14|s<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(s>>>11|c<<5)&8065;var l=e[14]|e[15]<<8;this._r[8]=(c>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,o=this._h[0],i=this._h[1],a=this._h[2],s=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],d=this._h[7],f=this._h[8],h=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],b=this._r[3],v=this._r[4],y=this._r[5],w=this._r[6],E=this._r[7],x=this._r[8],C=this._r[9];r>=16;){var A,P=e[t+0]|e[t+1]<<8;o+=8191&P;var j=e[t+2]|e[t+3]<<8;i+=(P>>>13|j<<3)&8191;var k=e[t+4]|e[t+5]<<8;a+=(j>>>10|k<<6)&8191;var O=e[t+6]|e[t+7]<<8;s+=(k>>>7|O<<9)&8191;var S=e[t+8]|e[t+9]<<8;c+=(O>>>4|S<<12)&8191,l+=S>>>1&8191;var I=e[t+10]|e[t+11]<<8;u+=(S>>>14|I<<2)&8191;var T=e[t+12]|e[t+13]<<8;d+=(I>>>11|T<<5)&8191;var B=e[t+14]|e[t+15]<<8;f+=(T>>>8|B<<8)&8191,h+=B>>>5|n;var _=0;_=(A=0+o*p+i*(5*C)+a*(5*x)+s*(5*E)+c*(5*w))>>>13,A&=8191,A+=l*(5*y)+u*(5*v)+d*(5*b)+f*(5*g)+h*(5*m),_+=A>>>13,A&=8191;var D=_;D+=o*m+i*p+a*(5*C)+s*(5*x)+c*(5*E),_=D>>>13,D&=8191,D+=l*(5*w)+u*(5*y)+d*(5*v)+f*(5*b)+h*(5*g),_+=D>>>13,D&=8191;var $=_;$+=o*g+i*m+a*p+s*(5*C)+c*(5*x),_=$>>>13,$&=8191,$+=l*(5*E)+u*(5*w)+d*(5*y)+f*(5*v)+h*(5*b),_+=$>>>13,$&=8191;var M=_;M+=o*b+i*g+a*m+s*p+c*(5*C),_=M>>>13,M&=8191,M+=l*(5*x)+u*(5*E)+d*(5*w)+f*(5*y)+h*(5*v),_+=M>>>13,M&=8191;var R=_;R+=o*v+i*b+a*g+s*m+c*p,_=R>>>13,R&=8191,R+=l*(5*C)+u*(5*x)+d*(5*E)+f*(5*w)+h*(5*y),_+=R>>>13,R&=8191;var N=_;N+=o*y+i*v+a*b+s*g+c*m,_=N>>>13,N&=8191,N+=l*p+u*(5*C)+d*(5*x)+f*(5*E)+h*(5*w),_+=N>>>13,N&=8191;var F=_;F+=o*w+i*y+a*v+s*b+c*g,_=F>>>13,F&=8191,F+=l*m+u*p+d*(5*C)+f*(5*x)+h*(5*E),_+=F>>>13,F&=8191;var L=_;L+=o*E+i*w+a*y+s*v+c*b,_=L>>>13,L&=8191,L+=l*g+u*m+d*p+f*(5*C)+h*(5*x),_+=L>>>13,L&=8191;var U=_;U+=o*x+i*E+a*w+s*y+c*v,_=U>>>13,U&=8191,U+=l*b+u*g+d*m+f*p+h*(5*C),_+=U>>>13,U&=8191;var z=_;z+=o*C+i*x+a*E+s*w+c*y,_=z>>>13,z&=8191,z+=l*v+u*b+d*g+f*m+h*p,_+=z>>>13,z&=8191,A=8191&(_=(_=(_<<2)+_|0)+A|0),_>>>=13,D+=_,o=A,i=D,a=$,s=M,c=R,l=N,u=F,d=L,f=U,h=z,t+=16,r-=16}this._h[0]=o,this._h[1]=i,this._h[2]=a,this._h[3]=s,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=d,this._h[8]=f,this._h[9]=h},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,o,i,a=new Uint16Array(10);if(this._leftover){for(i=this._leftover,this._buffer[i++]=1;i<16;i++)this._buffer[i]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,i=2;i<10;i++)this._h[i]+=r,r=this._h[i]>>>13,this._h[i]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this._h[i]+r,r=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,n=(1^r)-1,i=0;i<10;i++)a[i]&=n;for(i=0,n=~n;i<10;i++)this._h[i]=this._h[i]&n|a[i];for(i=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,o=this._h[0]+this._pad[0],this._h[0]=65535&o;i<8;i++)o=(this._h[i]+this._pad[i]|0)+(o>>>16)|0,this._h[i]=65535&o;return e[t+0]=this._h[0]>>>
27860,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var o=0;o<t;o++)this._buffer[this._leftover+o]=e[r+o];if(n-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(var o=0;o<n;o++)this._buffer[this._leftover+o]=e[r+o];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return o.wipe(this._buffer),o.wipe(this._r),o.wipe(this._h),o.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=i,t.oneTimeAuth=function(e,t){var r=new i(e);r.update(t);var n=r.digest();return r.clean(),n},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&n.equal(e,r)}},31416:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let n=r(46008),o=r(98099),i=r(17309);function a(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(e=t.defaultRandomSource){let r=a(4,e),n=(0,o.readUint32LE)(r);return(0,i.wipe)(r),n};let s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=s,n=t.defaultRandomSource){if(r.length<2)throw Error("randomString charset is too short");if(r.length>256)throw Error("randomString charset is too long");let o="",c=r.length,l=256-256%c;for(;e>0;){let t=a(Math.ceil(256*e/l),n);for(let n=0;n<t.length&&e>0;n++){let i=t[n];i<l&&(o+=r.charAt(i%c),e--)}(0,i.wipe)(t)}return o}t.randomString=c,t.randomStringForEntropy=function(e,r=s,n=t.defaultRandomSource){let o=Math.ceil(e/(Math.log(r.length)/Math.LN2));return c(o,r,n)}},75455:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0,t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}},58871:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let n=r(17309);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error("NodeRandomSource: got fewer bytes than requested");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}},46008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let n=r(75455),o=r(58871);t.SystemRandomSource=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new o.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},73294:function(e,t,r){"use strict";var n=r(98099),o=r(17309);t.k=32,t.cn=64;var i=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){o.wipe(this._buffer),o.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=s(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,o=t%64<56?64:128;this._buffer[r]=128;for(var i=r+1;i<o-8;i++)this._buffer[i]=0;n.writeUint32BE(t/536870912|0,this._buffer,o-8),n.writeUint32BE(t<<3,this._buffer,o-4),s(this._temp,this._state,this._buffer,0,o),this._finished=!0}for(var i=0;i<this.digestLength/4;i++)n.writeUint32BE(this._state[i],e,4*i);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){o.wipe(e.state),e.buffer&&o.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=i;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
2786734187,3204031479,3329325298]);function s(e,t,r,o,i){for(;i>=64;){for(var s=t[0],c=t[1],l=t[2],u=t[3],d=t[4],f=t[5],h=t[6],p=t[7],m=0;m<16;m++){var g=o+4*m;e[m]=n.readUint32BE(r,g)}for(var m=16;m<64;m++){var b=e[m-2],v=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,y=((b=e[m-15])>>>7|b<<25)^(b>>>18|b<<14)^b>>>3;e[m]=(v+e[m-7]|0)+(y+e[m-16]|0)}for(var m=0;m<64;m++){var v=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&h)|0)+(p+(a[m]+e[m]|0)|0)|0,y=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&c^s&l^c&l)|0;p=h,h=f,f=d,d=u+v|0,u=l,l=c,c=s,s=v+y|0}t[0]+=s,t[1]+=c,t[2]+=l,t[3]+=u,t[4]+=d,t[5]+=f,t[6]+=h,t[7]+=p,o+=64,i-=64}return o}t.vp=function(e){var t=new i;t.update(e);var r=t.digest();return t.clean(),r}},17309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},57664:function(e,t,r){"use strict";t.gi=t.Au=t.KS=t.kz=void 0;let n=r(31416),o=r(17309);function i(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32;let a=new Uint8Array(32);a[0]=9;let s=i([56129,1]);function c(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function l(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let o=n&(e[r]^t[r]);e[r]^=o,t[r]^=o}}function u(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function d(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function f(e,t,r){let n,o,i=0,a=0,s=0,c=0,l=0,u=0,d=0,f=0,h=0,p=0,m=0,g=0,b=0,v=0,y=0,w=0,E=0,x=0,C=0,A=0,P=0,j=0,k=0,O=0,S=0,I=0,T=0,B=0,_=0,D=0,$=0,M=r[0],R=r[1],N=r[2],F=r[3],L=r[4],U=r[5],z=r[6],H=r[7],q=r[8],G=r[9],W=r[10],K=r[11],V=r[12],Q=r[13],Z=r[14],Y=r[15];i+=(n=t[0])*M,a+=n*R,s+=n*N,c+=n*F,l+=n*L,u+=n*U,d+=n*z,f+=n*H,h+=n*q,p+=n*G,m+=n*W,g+=n*K,b+=n*V,v+=n*Q,y+=n*Z,w+=n*Y,a+=(n=t[1])*M,s+=n*R,c+=n*N,l+=n*F,u+=n*L,d+=n*U,f+=n*z,h+=n*H,p+=n*q,m+=n*G,g+=n*W,b+=n*K,v+=n*V,y+=n*Q,w+=n*Z,E+=n*Y,s+=(n=t[2])*M,c+=n*R,l+=n*N,u+=n*F,d+=n*L,f+=n*U,h+=n*z,p+=n*H,m+=n*q,g+=n*G,b+=n*W,v+=n*K,y+=n*V,w+=n*Q,E+=n*Z,x+=n*Y,c+=(n=t[3])*M,l+=n*R,u+=n*N,d+=n*F,f+=n*L,h+=n*U,p+=n*z,m+=n*H,g+=n*q,b+=n*G,v+=n*W,y+=n*K,w+=n*V,E+=n*Q,x+=n*Z,C+=n*Y,l+=(n=t[4])*M,u+=n*R,d+=n*N,f+=n*F,h+=n*L,p+=n*U,m+=n*z,g+=n*H,b+=n*q,v+=n*G,y+=n*W,w+=n*K,E+=n*V,x+=n*Q,C+=n*Z,A+=n*Y,u+=(n=t[5])*M,d+=n*R,f+=n*N,h+=n*F,p+=n*L,m+=n*U,g+=n*z,b+=n*H,v+=n*q,y+=n*G,w+=n*W,E+=n*K,x+=n*V,C+=n*Q,A+=n*Z,P+=n*Y,d+=(n=t[6])*M,f+=n*R,h+=n*N,p+=n*F,m+=n*L,g+=n*U,b+=n*z,v+=n*H,y+=n*q,w+=n*G,E+=n*W,x+=n*K,C+=n*V,A+=n*Q,P+=n*Z,j+=n*Y,f+=(n=t[7])*M,h+=n*R,p+=n*N,m+=n*F,g+=n*L,b+=n*U,v+=n*z,y+=n*H,w+=n*q,E+=n*G,x+=n*W,C+=n*K,A+=n*V,P+=n*Q,j+=n*Z,k+=n*Y,h+=(n=t[8])*M,p+=n*R,m+=n*N,g+=n*F,b+=n*L,v+=n*U,y+=n*z,w+=n*H,E+=n*q,x+=n*G,C+=n*W,A+=n*K,P+=n*V,j+=n*Q,k+=n*Z,O+=n*Y,p+=(n=t[9])*M,m+=n*R,g+=n*N,b+=n*F,v+=n*L,y+=n*U,w+=n*z,E+=n*H,x+=n*q,C+=n*G,A+=n*W,P+=n*K,j+=n*V,k+=n*Q,O+=n*Z,S+=n*Y,m+=(n=t[10])*M,g+=n*R,b+=n*N,v+=n*F,y+=n*L,w+=n*U,E+=n*z,x+=n*H,C+=n*q,A+=n*G,P+=n*W,j+=n*K,k+=n*V,O+=n*Q,S+=n*Z,I+=n*Y,g+=(n=t[11])*M,b+=n*R,v+=n*N,y+=n*F,w+=n*L,E+=n*U,x+=n*z,C+=n*H,A+=n*q,P+=n*G,j+=n*W,k+=n*K,O+=n*V,S+=n*Q,I+=n*Z,T+=n*Y,b+=(n=t[12])*M,v+=n*R,y+=n*N,w+=n*F,E+=n*L,x+=n*U,C+=n*z,A+=n*H,P+=n*q,j+=n*G,k+=n*W,O+=n*K,S+=n*V,I+=n*Q,T+=n*Z,B+=n*Y,v+=(n=t[13])*M,y+=n*R,w+=n*N,E+=n*F,x+=n*L,C+=n*U,A+=n*z,P+=n*H,j+=n*q,k+=n*G,O+=n*W,S+=n*K,I+=n*V,T+=n*Q,B+=n*Z,_+=n*Y,y+=(n=t[14])*M,w+=n*R,E+=n*N,x+=n*F,C+=n*L,A+=n*U,P+=n*z,j+=n*H,k+=n*q,O+=n*G,S+=n*W,I+=n*K,T+=n*V,B+=n*Q,_+=n*Z,D+=n*Y,w+=(n=t[15])*M,E+=n*R,x+=n*N,C+=n*F,A+=n*L,P+=n*U,j+=n*z,k+=n*H,O+=n*q,S+=n*G,I+=n*W,T+=n*K,B+=n*V,_+=n*Q,D+=n*Z,$+=n*Y,i+=38*E,a+=38*x,s+=38*C,c+=38*A,l+=38*P,u+=38*j,d+=38*k,f+=38*O,h+=38*S,p+=38*I,m+=38*T,g+=38*B,b+=38*_,v+=38*D,y+=38*$,o=Math.floor((n=i+(o=1)+65535)/65536),i=n-65536*o,o=Math.floor((n=a+o+65535)/65536),a=n-65536*o,o=Math.floor((n=s+o+65535)/65536),s=n-65536*o,o=Math.floor((n=c+o+65535)/65536),c=n-65536*o,o=Math.floor((n=l+o+65535)/65536),l=n-65536*o,o=Math.floor((n=u+o+65535)/65536),u=n-65536*o,o=Math.floor((n=d+o+65535)/65536),d=n-65536*o,o=Math.floor((n=f+o+65535)/65536),f=n-65536*o,o=Math.floor((n=h+o+65535)/65536),h=n-65536*o,o=Math.floor((n=p+o+65535)/65536),p=n-65536*o,o=Math.floor((n=m+o+65535)/65536),m=n-65536*o,o=Math.floor((n=g+o+65535)/65536),g=n-65536*o,o=Math.floor((n=b+o+65535)/65536),b=n-65536*o,o=Math.floor((n=v+o+65535)/65536),v=n-6
27865536*o,o=Math.floor((n=y+o+65535)/65536),y=n-65536*o,o=Math.floor((n=w+o+65535)/65536),w=n-65536*o,i+=o-1+37*(o-1),o=Math.floor((n=i+(o=1)+65535)/65536),i=n-65536*o,o=Math.floor((n=a+o+65535)/65536),a=n-65536*o,o=Math.floor((n=s+o+65535)/65536),s=n-65536*o,o=Math.floor((n=c+o+65535)/65536),c=n-65536*o,o=Math.floor((n=l+o+65535)/65536),l=n-65536*o,o=Math.floor((n=u+o+65535)/65536),u=n-65536*o,o=Math.floor((n=d+o+65535)/65536),d=n-65536*o,o=Math.floor((n=f+o+65535)/65536),f=n-65536*o,o=Math.floor((n=h+o+65535)/65536),h=n-65536*o,o=Math.floor((n=p+o+65535)/65536),p=n-65536*o,o=Math.floor((n=m+o+65535)/65536),m=n-65536*o,o=Math.floor((n=g+o+65535)/65536),g=n-65536*o,o=Math.floor((n=b+o+65535)/65536),b=n-65536*o,o=Math.floor((n=v+o+65535)/65536),v=n-65536*o,o=Math.floor((n=y+o+65535)/65536),y=n-65536*o,o=Math.floor((n=w+o+65535)/65536),w=n-65536*o,i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=m,e[11]=g,e[12]=b,e[13]=v,e[14]=y,e[15]=w}function h(e,t){let r=new Uint8Array(32),n=new Float64Array(80),o=i(),a=i(),h=i(),p=i(),m=i(),g=i();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(n,t);for(let e=0;e<16;e++)a[e]=n[e];o[0]=p[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;l(o,a,t),l(h,p,t),u(m,o,h),d(o,o,h),u(h,a,p),d(a,a,p),f(p,m,m),f(g,o,o),f(o,h,o),f(h,a,m),u(m,o,h),d(o,o,h),f(a,o,o),d(h,p,g),f(o,h,s),u(o,o,p),f(h,h,o),f(o,p,g),f(p,a,n),f(a,m,m),l(o,a,t),l(h,p,t)}for(let e=0;e<16;e++)n[e+16]=o[e],n[e+32]=h[e],n[e+48]=a[e],n[e+64]=p[e];let b=n.subarray(32),v=n.subarray(16);!function(e,t){let r=i();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)f(r,r,r),2!==e&&4!==e&&f(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(b,b),f(v,v,b);let y=new Uint8Array(32);return!function(e,t){let r=i(),n=i();for(let e=0;e<16;e++)n[e]=t[e];c(n),c(n),c(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,l(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}(y,v),y}t.Au=function(e){let r=(0,n.randomBytes)(32,e),i=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e),n=h(r,a);return{publicKey:n,secretKey:r}}(r);return(0,o.wipe)(r),i},t.gi=function(e,r,n=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let o=h(e,r);if(n){let e=0;for(let t=0;t<o.length;t++)e|=o[t];if(0===e)throw Error("X25519: invalid shared key")}return o}},61882:function(){},36900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(70655);n.__exportStar(r(46869),t),n.__exportStar(r(88033),t)},46869:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},88033:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},66736:function(e,t,r){"use strict";
2786Object.defineProperty(t,"__esModule",{value:!0});let n=r(70655);n.__exportStar(r(44273),t),n.__exportStar(r(47001),t),n.__exportStar(r(52939),t),n.__exportStar(r(36900),t)},52939:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(70655);n.__exportStar(r(88766),t)},88766:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0,t.IWatch=class{}},83207:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(36900);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},83873:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},44273:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(70655);n.__exportStar(r(83873),t),n.__exportStar(r(83207),t)},47001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e),r=t.elapsed||Date.now()-t.started;return r}}t.Watch=r,t.default=r},50778:function(e,t,r){"use strict";r.d(t,{AW:function(){return y},rV:function(){return x},gn:function(){return en},H1:function(){return Y},hF:function(){return J},WG:function(){return O},pe:function(){return I},m$:function(){return P},vB:function(){return T},HI:function(){return S},E0:function(){return ei},Gq:function(){return et},$0:function(){return K},Z4:function(){return ee},Bv:function(){return eb},Au:function(){return C},jd:function(){return A},gu:function(){return g},D:function(){return W},Z7:function(){return eD},cO:function(){return el},_H:function(){return ec},fc:function(){return eO},D6:function(){return e$},Hh:function(){return es},Ym:function(){return j},rj:function(){return k},jU:function(){return q},gp:function(){return eS},rF:function(){return e7},Bw:function(){return eo},UG:function(){return z},xW:function(){return eq},b$:function(){return H},Ih:function(){return eU},h1:function(){return eG},Q8:function(){return D},o8:function(){return eN},qt:function(){return eM},Dd:function(){return eW},$t:function(){return e1},nf:function(){return e3},Q0:function(){return eX},in:function(){return eZ},p8:function(){return e5},sI:function(){return e4},al:function(){return e8},L5:function(){return eR},EJ:function(){return e0},Z2:function(){return eY},PM:function(){return eJ},hH:function(){return e2},ON:function(){return te},n:function(){return eQ},JT:function(){return e6},M_:function(){return eF},jv:function(){return eH},KC:function(){return Q},eG:function(){return ea},fK:function(){return eT},IP:function(){return Z},iP:function(){return er},M:function(){return eI},he:function(){return eg},Ll:function(){return B},EN:function(){return _}});var n=r(15501),o=r(512),i=r(31416),a=r(73294),s=r(57664),c=r(37466),l=r(43631),u=r(66736),d=r(62873),f=r(65755),h=r(66151);r(61882);let p={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var m=r(83454);function g(e,t=[]){let r=[];return Object.keys(e).forEach(n=>{if(t.length&&!t.includes(n))return;let o=e[n];
2786r.push(...o.accounts)}),r}function b(e,t){return e.includes(":")?[e]:t.chains||[]}let v="base10",y="base16",w="base64pad",E="utf8",x=1;function C(){let e=s.Au();return{privateKey:(0,c.BB)(e.secretKey,y),publicKey:(0,c.BB)(e.publicKey,y)}}function A(){let e=(0,i.randomBytes)(32);return(0,c.BB)(e,y)}function P(e,t){let r=s.gi((0,c.mL)(e,y),(0,c.mL)(t,y)),n=new o.t(a.mE,r).expand(32);return(0,c.BB)(n,y)}function j(e){let t=(0,a.vp)((0,c.mL)(e,y));return(0,c.BB)(t,y)}function k(e){let t=(0,a.vp)((0,c.mL)(e,E));return(0,c.BB)(t,y)}function O(e){return Number((0,c.BB)(e,v))}function S(e){var t;let r=(t="u">typeof e.type?e.type:0,(0,c.mL)(`${t}`,v));if(O(r)===x&&typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let o="u">typeof e.senderPublicKey?(0,c.mL)(e.senderPublicKey,y):void 0,a="u">typeof e.iv?(0,c.mL)(e.iv,y):(0,i.randomBytes)(12),s=new n.OK((0,c.mL)(e.symKey,y)).seal(a,(0,c.mL)(e.message,E));return function(e){if(O(e.type)===x){if(typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return(0,c.BB)((0,c.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),w)}return(0,c.BB)((0,c.zo)([e.type,e.iv,e.sealed]),w)}({type:r,sealed:s,iv:a,senderPublicKey:o})}function I(e){let t=new n.OK((0,c.mL)(e.symKey,y)),{sealed:r,iv:o}=T(e.encoded),i=t.open(o,r);if(null===i)throw Error("Failed to decrypt");return(0,c.BB)(i,E)}function T(e){let t=(0,c.mL)(e,w),r=t.slice(0,1);if(O(r)===x){let e=t.slice(1,33),n=t.slice(33,45),o=t.slice(45);return{type:r,sealed:o,iv:n,senderPublicKey:e}}let n=t.slice(1,13),o=t.slice(13);return{type:r,sealed:o,iv:n}}function B(e,t){let r=T(e);return _({type:O(r.type),senderPublicKey:"u">typeof r.senderPublicKey?(0,c.BB)(r.senderPublicKey,y):void 0,receiverPublicKey:t?.receiverPublicKey})}function _(e){let t=e?.type||0;if(t===x){if(typeof e?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function D(e){return e.type===x&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var $=Object.defineProperty,M=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,F=(e,t,r)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t||(t={}))R.call(t,r)&&F(e,r,t[r]);if(M)for(var r of M(t))N.call(t,r)&&F(e,r,t[r]);return e};let U={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function z(){return"u">typeof m&&"u">typeof m.versions&&"u">typeof m.versions.node}function H(){return!(0,d.getDocument)()&&!!(0,d.getNavigator)()&&"ReactNative"===navigator.product}function q(){return!z()&&!!(0,d.getNavigator)()}function G(){return H()?U.reactNative:z()?U.node:q()?U.browser:U.unknown}function W(){return(0,f.D)()||{name:"",description:"",url:"",icons:[""]}}function K({protocol:e,version:t,relayUrl:n,sdkVersion:o,auth:i,projectId:a,useOnCloseEvent:s}){var c;let u;let f=n.split("?"),p=function(e,t,n){let o=function(){if(G()===U.reactNative&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Platform)){let{OS:e,Version:t}=r.g.Platform;return[e,t].join("-")}let e=(0,l.qY)();if(null===e)return"unknown";let t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),i=function(){var e;let t=G();return t===U.browser?[t,(null==(e=(0,d.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),["js",n].join("-"),o,i].join("/")}(e,t,o),m=(c=f[1]||"",u=L(L({},u=h.parse(c)),{auth:i,ua:p,projectId:a,useOnCloseEvent:s||void 0}),c=h.stringify(u));return f[0]+"?"+m}function V(e,t){return e.filter(e=>t.includes(e)).length===e.length}function Q(e){return Object.fromEntries(e.entries())}function Z(e){return new Map(Object.entries(e))}function Y(e=u.FIVE_MINUTES,t){let r,n,o;let i=(0,u.toMiliseconds)(e||u.FIVE_MINUTES);return{resolve:e=>{o&&r&&(clearTimeout(o),r(e))},reject:e=>{o&&n&&(clearTimeout(o),n(e))},done:()=>new Promise((e,a)=>{o=setTimeout(()=>{a(Error(t))},i),r=e,n=a})}}function J(e,t,r){return new Promise(async(n,o)=>{let i=setTimeout(()=>
2786o(Error(r)),t);try{let t=await e;n(t)}catch(e){o(e)}clearTimeout(i)})}function X(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw Error(`Unknown expirer target type: ${e}`)}function ee(e){return X("topic",e)}function et(e){return X("id",e)}function er(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof r)n.topic=r;else if("id"===t&&Number.isInteger(Number(r)))n.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function en(e,t){return(0,u.fromMiliseconds)((t||Date.now())+(0,u.toMiliseconds)(e))}function eo(e){return Date.now()>=(0,u.toMiliseconds)(e)}function ei(e,t){return`${e}${t?`:${t}`:""}`}function ea(e=[],t=[]){return[...new Set([...e,...t])]}async function es({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;let o="string"==typeof n?JSON.parse(n):n,i=o?.href;if("string"!=typeof i)return;i.endsWith("/")&&(i=i.slice(0,-1));let a=`${i}/wc?requestId=${e}&sessionTopic=${t}`,s=G();s===U.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===U.reactNative&&"u">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(a)}catch(e){console.error(e)}}function ec(e){return e?.relay||{protocol:"irn"}}function el(e){let t=p[e];if(typeof t>"u")throw Error(`Relay Protocol not supported: ${e}`);return t}var eu=Object.defineProperty,ed=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable,ep=(e,t,r)=>t in e?eu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,em=(e,t)=>{for(var r in t||(t={}))ef.call(t,r)&&ep(e,r,t[r]);if(ed)for(var r of ed(t))eh.call(t,r)&&ep(e,r,t[r]);return e};function eg(e){var t;let r=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,o=e.substring(0,r),i=e.substring(r+1,n).split("@"),a="u">typeof n?e.substring(n):"",s=h.parse(a);return{protocol:o,topic:(t=i[0]).startsWith("//")?t.substring(2):t,version:parseInt(i[1],10),symKey:s.symKey,relay:function(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(t=>{if(t.startsWith(n)){let o=t.replace(n,""),i=e[t];r[o]=i}}),r}(s)}}function eb(e){return`${e.protocol}:${e.topic}@${e.version}?`+h.stringify(em({symKey:e.symKey},function(e,t="-"){let r={};return Object.keys(e).forEach(n=>{e[n]&&(r["relay"+t+n]=e[n])}),r}(e.relay)))}var ev=Object.defineProperty,ey=Object.defineProperties,ew=Object.getOwnPropertyDescriptors,eE=Object.getOwnPropertySymbols,ex=Object.prototype.hasOwnProperty,eC=Object.prototype.propertyIsEnumerable,eA=(e,t,r)=>t in e?ev(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eP=(e,t)=>{for(var r in t||(t={}))ex.call(t,r)&&eA(e,r,t[r]);if(eE)for(var r of eE(t))eC.call(t,r)&&eA(e,r,t[r]);return e},ej=(e,t)=>ey(e,ew(t));function ek(e){let t=[];return e.forEach(e=>{let[r,n]=e.split(":");t.push(`${r}:${n}`)}),t}function eO(e,t){let r=eZ(e,t);if(r)throw Error(r.message);let n={};for(let[t,r]of Object.entries(e))n[t]={methods:r.methods,events:r.events,chains:r.accounts.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)};return n}function eS(e){return e.includes(":")}function eI(e){return eS(e)?e.split(":")[0]:e}function eT(e){var t,r,n;let o={};if(!eR(e))return o;for(let[i,a]of Object.entries(e)){let e=eS(i)?[i]:a.chains,s=a.methods||[],c=a.events||[],l=eI(i);o[l]=ej(eP({},o[l]),{chains:ea(e,null==(t=o[l])?void 0:t.chains),methods:ea(s,null==(r=o[l])?void 0:r.methods),events:ea(c,null==(n=o[l])?void 0:n.events)})}return o}let eB={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},e_={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function eD(e,t){let{message:r,code:n}=e_[e];return{message:t?`${r} ${t}`:r,code:n}}function e$(e,t){let{message:r,code:n}=eB[e];return{message:t?`${r} ${t}`:r,code:n}}function eM(e,t){return!!Array.isArray(e)&&(!("u">typeof t)||!e.length||e.every(t))}function eR(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function eN(e){return typeof e>"u"}function eF(e,t){return!!(t&&eN(e))||"string"==typeof e&&!!e.trim().length}function eL(e,t){return!!(t&&eN(e))||"number"==typeof e&&!isNaN(e)}function eU(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),o=Object.keys(r),i=!0;return!!V(o,n)&&(n.forEach(t=>{let{accounts:n,methods:o,events:a}=e.namespaces[t],s=ek(n),c=r[t];V(b(t,c),s)&&V(c.methods,o)&&V(c.events,a)||(i=!1)}),i)}function ez(e){return!!(eF(e,!1)&&e.includes(":"))&&2===e.split(":").length}function eH(e){if(eF(e,!1))try{return"u">typeof new URL(e)}catch{}return!1}function eq(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}
2786function eG(e){return e?.topic}function eW(e,t){let r=null;return eF(e?.publicKey,!1)||(r=eD("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function eK(e){let t=!0;return eM(e)?e.length&&(t=e.every(e=>eF(e,!1))):t=!1,t}function eV(e,t){let r=null;return Object.values(e).forEach(e=>{var n;let o;if(r)return;let i=(n=`${t}, namespace`,o=null,eK(e?.methods)?eK(e?.events)||(o=e$("UNSUPPORTED_EVENTS",`${n}, events should be an array of strings or empty array for no events`)):o=e$("UNSUPPORTED_METHODS",`${n}, methods should be an array of strings or empty array for no methods`),o);i&&(r=i)}),r}function eQ(e,t,r){let n=null;if(e&&eR(e)){let o;let i=eV(e,t);i&&(n=i);let a=(o=null,Object.entries(e).forEach(([e,n])=>{var i,a;let s;if(o)return;let c=(i=b(e,n),a=`${t} ${r}`,s=null,eM(i)&&i.length?i.forEach(e=>{s||ez(e)||(s=e$("UNSUPPORTED_CHAINS",`${a}, chain ${e} should be a string and conform to "namespace:chainId" format`))}):ez(e)||(s=e$("UNSUPPORTED_CHAINS",`${a}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),s);c&&(o=c)}),o);a&&(n=a)}else n=eD("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function eZ(e,t){let r=null;if(e&&eR(e)){let n;let o=eV(e,t);o&&(r=o);let i=(n=null,Object.values(e).forEach(e=>{var r,o;let i;if(n)return;let a=(r=e?.accounts,o=`${t} namespace`,i=null,eM(r)?r.forEach(e=>{i||function(e){if(eF(e,!1)&&e.includes(":")){let t=e.split(":");if(3===t.length){let e=t[0]+":"+t[1];return!!t[2]&&ez(e)}}return!1}(e)||(i=e$("UNSUPPORTED_ACCOUNTS",`${o}, account ${e} should be a string and conform to "namespace:chainId:address" format`))}):i=e$("UNSUPPORTED_ACCOUNTS",`${o}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),i);a&&(n=a)}),n);i&&(r=i)}else r=eD("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function eY(e){return eF(e.protocol,!0)}function eJ(e,t){let r=!1;return t&&!e?r=!0:e&&eM(e)&&e.length&&e.forEach(e=>{r=eY(e)}),r}function eX(e){return"number"==typeof e}function e0(e){return"u">typeof e}function e1(e){return!(!e||"object"!=typeof e||!e.code||!eL(e.code,!1)||!e.message||!eF(e.message,!1))}function e2(e){return!(eN(e)||!eF(e.method,!1))}function e6(e){return!(eN(e)||eN(e.result)&&eN(e.error)||!eL(e.id,!1)||!eF(e.jsonrpc,!1))}function e3(e){return!(eN(e)||!eF(e.name,!1))}function e5(e,t){return!(!ez(t)||!(function(e){let t=[];return Object.values(e).forEach(e=>{t.push(...ek(e.accounts))}),t})(e).includes(t))}function e8(e,t,r){return!!eF(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{ek(e.accounts).includes(t)&&r.push(...e.methods)}),r})(e,t).includes(r)}function e4(e,t,r){return!!eF(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{ek(e.accounts).includes(t)&&r.push(...e.events)}),r})(e,t).includes(r)}function e7(e,t,r){let n=null,o=function(e){let t={};return Object.keys(e).forEach(r=>{var n;r.includes(":")?t[r]=e[r]:null==(n=e[r].chains)||n.forEach(n=>{t[n]={methods:e[r].methods,events:e[r].events}})}),t}(e),i=function(e){let t={};return Object.keys(e).forEach(r=>{if(r.includes(":"))t[r]=e[r];else{let n=ek(e[r].accounts);n?.forEach(n=>{t[n]={accounts:e[r].accounts.filter(e=>e.includes(`${n}:`)),methods:e[r].methods,events:e[r].events}})}}),t}(t),a=Object.keys(o),s=Object.keys(i),c=e9(Object.keys(e)),l=e9(Object.keys(t)),u=c.filter(e=>!l.includes(e));return u.length&&(n=eD("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces. 2787 Required: ${u.toString()} 2788 Received: ${Object.keys(t).toString()}`)),V(a,s)||(n=eD("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces. 2789 Required: ${a.toString()} 2790 Approved: ${s.toString()}`)),Object.keys(t).forEach(e=>{if(!e.includes(":")||n)return;let o=ek(t[e].accounts);o.includes(e)||(n=eD("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e} 2791 Required: ${e} 2792 Approved: ${o.toString()}`))}
2792),a.forEach(e=>{n||(V(o[e].methods,i[e].methods)?V(o[e].events,i[e].events)||(n=eD("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):n=eD("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))}),n}function e9(e){return[...new Set(e.map(e=>e.includes(":")?e.split(":")[0]:e))]}function te(e,t){return eL(e,!1)&&e<=t.max&&e>=t.min}},66151:function(e,t,r){"use strict";let n=r(70610),o=r(44020),i=r(80500),a=r(92806),s=e=>null==e,c=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(e,t){return t.decode?o(e):e}function f(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function h(e){e=f(e);let t=e.indexOf("?");return -1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function m(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let o="string"==typeof r&&r.includes(e.arrayFormatSeparator),i="string"==typeof r&&!o&&d(r,e).includes(e.arrayFormatSeparator);r=i?d(r,e):r;let a=o||i?r.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===r?r:d(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{let o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o){n[t]=r?d(r,e):r;return}let i=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>d(t,e));if(void 0===n[t]){n[t]=i;return}n[t]=[].concat(n[t],i)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:d(a,t),r(d(e,t),a,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=h,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[",o,"]"].join("")]:[...r,[u(t,e),"[",u(o,e),"]=",u(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[]"].join("")]:[...r,[u(t,e),"[]=",u(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),":list="].join("")]:[...r,[u(t,e),":list=",u(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length)?[[u(r,e),t,u(o,e)].join("")]:[[n,u(o,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,u(t,e)]:[...r,[u(t,e),"=",u(n,e)].join("")]}}(t),o={};for(let t of Object.keys(e))r(t)||(o[t]=e[t]);let i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(r=>{let o=e[r];return void 0===o?"":null===o?u(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?u(r,t)+"[]":o.reduce(n(r),[]).join("&"):u(r,t)+"="+u(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>
2792{t=Object.assign({decode:!0},t);let[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(h(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[c]:!0},r);let n=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query),s=t.stringify(a,r);s&&(s=`?${s}`);let l=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(l=`#${r[c]?u(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${s}${l}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!1},n);let{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:a(i,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},62873:function(e,t){"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},65755:function(e,t,r){"use strict";t.D=void 0;let n=r(62873);t.D=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function o(...t){let r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){let n=r[e],o=["itemprop","property","name"].map(e=>n.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(o.length&&o){let e=n.getAttribute("content");if(e)return e}}return""}let i=((r=o("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),a=function(){let e=o("description","og:description","twitter:description","keywords");return e}(),s=t.origin,c=function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e<r.length;e++){let o=r[e],i=o.getAttribute("rel");if(i&&i.toLowerCase().indexOf("icon")>-1){let e=o.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop();let o=n.join("/");r+=o+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}}return n}();return{description:a,url:s,icons:c,name:i}}},54098:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function i(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=u(t);return t.readAsArrayBuffer(e),r}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=l(this);if(n)return n;
vendor: 4,350 bytes, line 2792
2792if(this._bodyBlob)return e=this._bodyBlob,r=u(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=i(e),t=a(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[i(e)]},c.prototype.get=function(e){return e=i(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(i(e))},c.prototype.set=function(e,t){this.map[i(e)]=a(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),s(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),s(e)},t.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){var r,n,o=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),p.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},h.call(m.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];b.redirect=function(e,t){if(-1===v.indexOf(t))throw RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function y(r,n){return new Promise(function(o,i){var a=new m(r,n);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}}),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var n="response"in s?s.response:s.responseText;o(new b(n,r))},s.onerror=function(){i(TypeError("Network request failed"))},s.ontimeout=function(){i(TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEac
2792h(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}y.polyfill=!0,n.fetch||(n.fetch=y,n.Headers=c,n.Request=m,n.Response=b),e.Headers=c,e.Request=m,e.Response=b,e.fetch=y,Object.defineProperty(e,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},44020:function(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},o=n.exec(e);o;){try{t[o[0]]=decodeURIComponent(o[0])}catch(e){var i=function(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),o=t.slice(r);return Array.prototype.concat.call([],e(n),e(o))})(t,n).join("")).match(r)||[];return e}}(o[0]);i!==o[0]&&(t[o[0]]=i)}o=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(RegExp(c,"g"),t[c])}return e}(e)}}},43631:function(e,t,r){"use strict";r.d(t,{qY:function(){return h}});var n=r(83454),o=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},i=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},a=function(e){this.version=e,this.type="node",this.name="node",this.os=n.platform},s=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type="bot-device"},c=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(e){return e?p(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==n&&n.version?new a(n.version.slice(1)):null}function p(e){var t=""!==e&&d.reduce(function(t,r){var n=r[0],o=r[1];if(t)return t;var i=o.exec(e);return!!i&&[n,i]},!1);if(!t)return null;var r=t[0],n=t[1];if("searchbot"===r)return new c;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length<3&&(a=o(o([],a,!0),function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(3-a.length),!0)):a=[];var l=a.join("."),h=function(e){for(var t=0,r=f.length;t<r;t++){var n=f[t],o=n[0];if(n[1].exec(e))return o}return null}(e),p=u.exec(e);return p&&p[1]?new s(r,l,h,p[1]):new i(r,l,h)}},65987:function(e){"use strict";var t={single_source_shortest_paths:function(e,r,n){var o,i,a,s,c,l,u,d={},f={};f[r]=0;var h=t.PriorityQueue.make();for(h.push(r,0);!h.empty();)for(a in i=(o=h.pop()).value,s=o.cost,c=e[i]||{})c.hasOwnProperty(a)&&(l=s+c[a],u=f[a],(void 0===f[a]||u>l)&&(f[a]=l,h.push(a,l),d[a]=i));if(void 0!==n&&void 0===f[n])throw Error(["Could not find a path from ",r," to ",n,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var o=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,o={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(o[r]=n[r]);return o.queue=[],o.sorter=e.sorter||n.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},62378:function(e){"use strict";e.exports=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var o=e.charCodeAt(n);if(o>=55296&&o<=56319&&r>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(o=(o-55296)*1024+i-56320+65536,n+=1)}if(o<128){t.push(o);continue}if(o<2048){t.push(o>>6|192),t.push(63&o|128);continue}if(o<55296||o>=57344&&o<65536){t.push(o>>
279212|224),t.push(o>>6&63|128),t.push(63&o|128);continue}if(o>=65536&&o<=1114111){t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new o(n,i||e,a),c=r?r+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 n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,a),!0}for(l=1,c=Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var f,h=u.length;for(l=0;l<h;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,o);break;default:if(!c)for(f=1,c=Array(d-1);f<d;f++)c[f-1]=arguments[f];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||n&&s[c].context!==n)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},17187:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&"function"==typeof e.on&&m(e,"error",o,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var o,i,a,l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=u.bind(n);return o.listener=r,n.wrapFn=o,o}function f(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):p(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
2792,set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else for(var l=c.length,u=p(c,l),r=0;r<l;++r)n(u[r],this,t);return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},92806:function(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var a=n[i],s=e[a];(o?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},2962:function(e,t,r){"use strict";r.d(t,{PB:function(){return m},lX:function(){return p}});var n=r(67294),o=r(9008),i=r.n(o);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var c=["keyOverride"],l=["crossOrigin"],u={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},d=function(e,t,r){void 0===t&&(t=[]);var o=void 0===r?{}:r,i=o.defaultWidth,a=o.defaultHeight;return t.reduce(function(t,r,o){return t.push(n.createElement("meta",{key:"og:"+e+":0"+o,property:"og:"+e,content:r.url})),r.alt&&t.push(n.createElement("meta",{key:"og:"+e+":alt0"+o,property:"og:"+e+":alt",content:r.alt})),r.secureUrl&&t.push(n.createElement("meta",{key:"og:"+e+":secure_url0"+o,property:"og:"+e+":secure_url",content:r.secureUrl.toString()})),r.type&&t.push(n.createElement("meta",{key:"og:"+e+":type0"+o,property:"og:"+e+":type",content:r.type.toString()})),r.width?t.push(n.createElement("meta",{key:"og:"+e+":width0"+o,property:"og:"+e+":width",content:r.
2792width.toString()})):i&&t.push(n.createElement("meta",{key:"og:"+e+":width0"+o,property:"og:"+e+":width",content:i.toString()})),r.height?t.push(n.createElement("meta",{key:"og:"+e+":height"+o,property:"og:"+e+":height",content:r.height.toString()})):a&&t.push(n.createElement("meta",{key:"og:"+e+":height"+o,property:"og:"+e+":height",content:a.toString()})),t},[])},f=function(e){var t,r,o,i,f,h=[];e.titleTemplate&&(u.templateTitle=e.titleTemplate);var p="";e.title?(p=e.title,u.templateTitle&&(p=u.templateTitle.replace(/%s/g,function(){return p}))):e.defaultTitle&&(p=e.defaultTitle),p&&h.push(n.createElement("title",{key:"title"},p));var m=void 0===e.noindex?u.noindex||e.dangerouslySetAllPagesToNoIndex:e.noindex,g=void 0===e.nofollow?u.nofollow||e.dangerouslySetAllPagesToNoFollow:e.nofollow,b="";if(e.robotsProps){var v=e.robotsProps,y=v.nosnippet,w=v.maxSnippet,E=v.maxImagePreview,x=v.maxVideoPreview,C=v.noarchive,A=v.noimageindex,P=v.notranslate,j=v.unavailableAfter;b=(y?",nosnippet":"")+(w?",max-snippet:"+w:"")+(E?",max-image-preview:"+E:"")+(C?",noarchive":"")+(j?",unavailable_after:"+j:"")+(A?",noimageindex":"")+(x?",max-video-preview:"+x:"")+(P?",notranslate":"")}if(m||g?(e.dangerouslySetAllPagesToNoIndex&&(u.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(u.nofollow=!0),h.push(n.createElement("meta",{key:"robots",name:"robots",content:(m?"noindex":"index")+","+(g?"nofollow":"follow")+b}))):h.push(n.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+b})),e.description&&h.push(n.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&h.push(n.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&h.push(n.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){h.push(n.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&h.push(n.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&h.push(n.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&h.push(n.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&h.push(n.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||p)&&h.push(n.createElement("meta",{key:"og:title",property:"og:title",content:(null==(i=e.openGraph)?void 0:i.title)||p})),(null!=(r=e.openGraph)&&r.description||e.description)&&h.push(n.createElement("meta",{key:"og:description",property:"og:description",content:(null==(f=e.openGraph)?void 0:f.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&h.push(n.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var k=e.openGraph.type.toLowerCase();h.push(n.createElement("meta",{key:"og:type",property:"og:type",content:k})),"profile"===k&&e.openGraph.profile?(e.openGraph.profile.firstName&&h.push(n.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&h.push(n.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&h.push(n.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&h.push(n.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===k&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach(function(e,t){h.push(n.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&h.push(n.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&h.push(n.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEac
2792h(function(e,t){h.push(n.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===k&&e.openGraph.article?(e.openGraph.article.publishedTime&&h.push(n.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&h.push(n.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&h.push(n.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){h.push(n.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&h.push(n.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){h.push(n.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===k||"video.episode"===k||"video.tv_show"===k||"video.other"===k)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&h.push(n.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&h.push(n.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){h.push(n.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){h.push(n.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&h.push(n.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&h.push(n.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEac
2792h(function(e,t){h.push(n.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&h.push(n.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(u.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(u.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&h.push.apply(h,d("image",e.openGraph.images,{defaultWidth:u.defaultOpenGraphImageWidth,defaultHeight:u.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(u.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(u.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&h.push.apply(h,d("video",e.openGraph.videos,{defaultWidth:u.defaultOpenGraphVideoWidth,defaultHeight:u.defaultOpenGraphVideoHeight})),e.openGraph.audio&&h.push.apply(h,d("audio",e.openGraph.audio)),e.openGraph.locale&&h.push(n.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&h.push(n.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&h.push(n.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,r,o=e.keyOverride,i=s(e,c);h.push(n.createElement("meta",a({key:"meta:"+(null!=(t=null!=(r=null!=o?o:i.name)?r:i.property)?t:i.httpEquiv)},i)))}),null!=(o=e.additionalLinkTags)&&o.length&&e.additionalLinkTags.forEach(function(e){var t,r=e.crossOrigin,o=s(e,l);h.push(n.createElement("link",a({key:"link"+(null!=(t=o.keyOverride)?t:o.href)+o.rel},o,{crossOrigin:"anonymous"===r||"use-credentials"===r||""===r?r:void 0})))}),h},h=function(e){return n.createElement(i(),null,f(e))},p=function(e){var t=e.title,r=e.titleTemplate,o=e.defaultTitle,i=e.themeColor,a=e.dangerouslySetAllPagesToNoIndex,s=e.dangerouslySetAllPagesToNoFollow,c=e.description,l=e.canonical,u=e.facebook,d=e.openGraph,f=e.additionalMetaTags,p=e.twitter,m=e.defaultOpenGraphImageWidth,g=e.defaultOpenGraphImageHeight,b=e.defaultOpenGraphVideoWidth,v=e.defaultOpenGraphVideoHeight,y=e.mobileAlternate,w=e.languageAlternates,E=e.additionalLinkTags,x=e.robotsProps;return n.createElement(h,{title:t,titleTemplate:r,defaultTitle:o,themeColor:i,dangerouslySetAllPagesToNoIndex:void 0!==a&&a,dangerouslySetAllPagesToNoFollow:void 0!==s&&s,description:c,canonical:l,facebook:u,openGraph:d,additionalMetaTags:f,twitter:p,defaultOpenGraphImageWidth:m,defaultOpenGraphImageHeight:g,defaultOpenGraphVideoWidth:b,defaultOpenGraphVideoHeight:v,mobileAlternate:y,languageAlternates:w,additionalLinkTags:E,robotsProps:x})},m=function(e){var t=e.title,r=e.themeColor,o=e.noindex,i=e.nofollow,a=e.robotsProps,s=e.description,c=e.canonical,l=e.openGraph,u=e.facebook,d=e.twitter,f=e.additionalMetaTags,p=e.titleTemplate,m=e.defaultTitle,g=e.mobileAlternate,b=e.languageAlternates,v=e.additionalLinkTags;return n.createElement(n.Fragment,null,n.createElement(h,{title:t,themeColor:r,noindex:o,nofollow:i,robotsProps:a,description:s,canonical:c,facebook:u,openGraph:l,additionalMetaTags:f,twitter:d,titleTemplate:p,defaultTitle:m,mobileAlternate:g,languageAlternates:b,additionalLinkTags:v}))};RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g")},83454:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(87430)}])},87430:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var n=r(85893);r(50019);var o=r(29870),i=r(41686),a=r(9391),s=r(69077);r(7952);var c=r(69783),l=r(2962),u=r(67294);let d=()=>{let[e,t]=(0,u.useState)(!1);return(0,u.useEffect)(()=>(t(!0),()=>t(!1)),[]),e};var f={defaultTitle:"ENS Name Lookup",description:"Quickly test all types of ENS names on different test networks",openGraph:{type:"website",locale:"en_US"},additionalLinkTags:[{rel:"icon",href:"https://app.ens.domains/favicon-32x32.png",sizes:"32x32",type:"image/png"},{rel:"icon",href:"https://app.ens.domains/favicon-16x16.png",sizes:"16x16",type:"image/png"}]};function h(e){let{Component:t,pageProps:r}=e,u=d();return(0,n.jsx)(s.eM,{config:c.g,children:(0,n.jsxs)(i.f6,{theme:a.Wb,children:[(0,n.jsx)(a.m4,{}),(0,n.jsxs)(o.pj,{chains:c.p,children:[(0,n.jsx)(l.lX,{...f}),u&&(0,n.jsx)(t,{...r})]})]})})}},69783:function(e,t,r){"use strict";r.d(t,{p:function(){return ex},g:function(){return ej}});var n,o,i,a,s,c,l,u,d,f,h,p,m,g,b,v,y,w,E,x,C,A,P,j,k,O,S,I,T=r(6264);class B extends T.G{constructor({network:e,supportedNetworks:t,details:r}){super(`Unsupported network: ${e}
2792`,{metaMessages:[`- Supported networks: ${t.join(", ")}`],details:r}),Object.defineProperty(this,"network",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"supportedNetworks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedNetworkError"}),this.network=e,this.supportedNetworks=t}}class _ extends T.G{constructor(){super("No chain provided"),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NoChainError"})}}let D=["homestead","goerli","sepolia","holesky"],$={homestead:{ensBaseRegistrarImplementation:{address:"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"},ensBulkRenewal:{address:"0xa12159e5131b1eEf6B4857EEE3e1954744b5033A"},ensDnsRegistrar:{address:"0xB32cB5677a7C971689228EC835800432B339bA2B"},ensDnssecImpl:{address:"0x0fc3152971714E5ed7723FAFa650F86A4BaF30C5"},ensEthRegistrarController:{address:"0x253553366Da8546fC250F225fe3d25d0C782303b"},ensNameWrapper:{address:"0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401"},ensPublicResolver:{address:"0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63"},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensReverseRegistrar:{address:"0xa58E81fe9b61B5c3fE2AFD33CF304c454AbFc7Cb"},ensUniversalResolver:{address:"0x8cab227b1162f03b8338331adaad7aadc83b895e"}},goerli:{ensBaseRegistrarImplementation:{address:"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"},ensBulkRenewal:{address:"0x6d9F26FfBcF1c6f0bAe9F2C1f7fBe8eE6B1d8d4d"},ensDnsRegistrar:{address:"0x8edc487D26F6c8Fa76e032066A3D4F87E273515d"},ensDnssecImpl:{address:"0xF427c4AdED8B6dfde604865c1a7E953B160C26f0"},ensEthRegistrarController:{address:"0xCc5e7dB10E65EED1BBD105359e7268aa660f6734"},ensNameWrapper:{address:"0x114D4603199df73e7D157787f8778E21fCd13066"},ensPublicResolver:{address:"0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750"},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensReverseRegistrar:{address:"0x6d9F26FfBcF1c6f0bAe9F2C1f7fBe8eE6B1d8d4d"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1"}},sepolia:{ensBaseRegistrarImplementation:{address:"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"},ensBulkRenewal:{address:"0x4EF77b90762Eddb33C8Eba5B5a19558DaE53D7a1"},ensDnsRegistrar:{address:"0x5a07C75Ae469Bf3ee2657B588e8E6ABAC6741b4f"},ensDnssecImpl:{address:"0xe62E4b6cE018Ad6e916fcC24545e20a33b9d8653"},ensEthRegistrarController:{address:"0xFED6a969AaA60E4961FCD3EBF1A2e8913ac65B72"},ensNameWrapper:{address:"0x0635513f179D50A207757E05759CbD106d7dFcE8"},ensPublicResolver:{address:"0x8FADE66B79cC9f707aB26799354482EB93a5B7dD"},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensReverseRegistrar:{address:"0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6"},ensUniversalResolver:{address:"0xBaBC7678D7A63104f1658c11D6AE9A21cdA09725"}},holesky:{ensBaseRegistrarImplementation:{address:"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"},ensBulkRenewal:{address:"0xbc4cfB363F948E64Cd73Da6438F64CB37E2e33d1"},ensDnsRegistrar:{address:"0x458d278AEd4cE82BAeC384170f39198b01B8351c"},ensDnssecImpl:{address:"0x283af0b28c62c092c9727f1ee09c02ca627eb7f5"},ensEthRegistrarController:{address:"0x179Be112b24Ad4cFC392eF8924DfA08C20Ad8583"},ensNameWrapper:{address:"0xab50971078225D365994dc1Edcb9b7FD72Bb4862"},ensPublicResolver:{address:"0x9010A27463717360cAD99CEA8bD39b8705CCA238"},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensReverseRegistrar:{address:"0x132AC0B116a73add4225029D1951A9A707Ef673f"},ensUniversalResolver:{address:"0x2548a7E09deE955c4d97688dcB6C5b24085725f5"}}},M={homestead:{ens:{url:"https://api.thegraph.com/subgraphs/name/ensdomains/ens"}},goerli:{ens:{url:"https://api.thegraph.com/subgraphs/name/ensdomains/ensgoerli"}},sepolia:{ens:{url:"https://api.studio.thegraph.com/query/49574/enssepoli
2792a/version/latest"}},holesky:{ens:{url:"https://api.studio.thegraph.com/query/49574/ensholesky/version/latest"}}},R=e=>{if(!e)throw new _;if(!D.includes(e.network))throw new B({network:e.network,supportedNetworks:D});return{...e,contracts:{...e.contracts,...$[e.network]},subgraphs:{...M[e.network]}}};var N=r(29870),F=r(16343),L=r(50778),U=r(92221),z=r(42455),H=r(67629),q=r(19575),G=r(46872),W="eip155",K="requestedChains",V="wallet_addEthereumChain",Q=class extends F.wR{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),(0,F.Ko)(this,i),(0,F.Ko)(this,s),(0,F.Ko)(this,l),(0,F.Ko)(this,d),(0,F.Ko)(this,h),(0,F.Ko)(this,m),(0,F.Ko)(this,b),(0,F.Ko)(this,y),(0,F.Ko)(this,E),(0,F.ov)(this,"id","walletConnect"),(0,F.ov)(this,"name","WalletConnect"),(0,F.ov)(this,"ready",!0),(0,F.Ko)(this,n,void 0),(0,F.Ko)(this,o,void 0),(0,F.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,U.K)(e[0])})}),(0,F.ov)(this,"onChainChanged",e=>{let t=Number(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,F.ov)(this,"onDisconnect",()=>{(0,F.U9)(this,m,g).call(this,[]),this.emit("disconnect")}),(0,F.ov)(this,"onDisplayUri",e=>{this.emit("message",{type:"display_uri",data:e})}),(0,F.ov)(this,"onConnect",()=>{this.emit("connect",{})}),(0,F.U9)(this,i,a).call(this)}async connect({chainId:e,pairingTopic:t}={}){try{let r=e;if(!r){let e=this.storage?.getItem("store"),t=e?.state?.data?.chain?.id;r=t&&!this.isChainUnsupported(t)?t:this.chains[0]?.id}if(!r)throw Error("No chains found on connector.");let n=await this.getProvider();(0,F.U9)(this,d,f).call(this);let o=(0,F.U9)(this,l,u).call(this);if(n.session&&o&&await n.disconnect(),!n.session||o){let e=this.chains.filter(e=>e.id!==r).map(e=>e.id);this.emit("message",{type:"connecting"}),await n.connect({pairingTopic:t,chains:[r],optionalChains:e.length?e:void 0}),(0,F.U9)(this,m,g).call(this,this.chains.map(({id:e})=>e))}let i=await n.enable(),a=(0,U.K)(i[0]),s=await this.getChainId(),c=this.isChainUnsupported(s);return{account:a,chain:{id:s,unsupported:c}}}catch(e){if(/user rejected/i.test(e?.message))throw new z.ab(e);throw e}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{(0,F.U9)(this,h,p).call(this),(0,F.U9)(this,m,g).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();return(0,U.K)(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return(0,F.ac)(this,n)||await (0,F.U9)(this,i,a).call(this),e&&await this.switchChain(e),(0,F.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,H.K)({account:r,chain:n,transport:(0,q.P)(t)})}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),r=(0,F.U9)(this,l,u).call(this);if(!e)return!1;if(r&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(t=>t.id===e);if(!t)throw new z.x3(Error("chain not found on connector."));try{let r=await this.getProvider(),n=(0,F.U9)(this,y,w).call(this),o=(0,F.U9)(this,E,x).call(this),i=n.includes(e);if(!i&&o.includes(V)){await r.request({method:V,params:[{chainId:(0,G.eC)(t.id),blockExplorerUrls:[t.blockExplorers?.default?.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});let n=(0,F.U9)(this,b,v).call(this);n.push(e),(0,F.U9)(this,m,g).call(this,n)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,G.eC)(e)}]}),t}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new z.ab(t);throw new z.x3(t)}}};n=new WeakMap,o=new WeakMap,i=new WeakSet,a=async function(){return(0,F.ac)(this,o)||"undefined"==typeof window||(0,F.qx)(this,o,(0,F.U9)(this,s,c).call(this)),(0,F.ac)(this,o)},s=new WeakSet,c=async function(){let{EthereumProvider:e,OPTIONAL_EVENTS:t,OPTIONAL_METHODS:o}=await r.e(8618).then(r.bind(r,88618)),[i,...a]=this.chains.map(({id:e})=>e);if(i){let{projectId:r,showQrModal:s=!0,qrModalOptions:c,metadata:l,relayUrl:u}=this.options;(0,F.qx)(this,n,await e.init({showQrModal:s,qrModalOptions:c,projectId:r,optionalMethods:o,optionalEvents:t,chains:[i],optionalChains:a.length?a:void 0,rpcMap:Object.fromEntries(this.chains.map(e=>[e.id,e.rpcUrls.default.http[0]])),metadata:l,relayUrl:u}))}},l=new WeakSet,u=function(){let e=(0,F.U9)(this,E,x).call(this);if(e.includes(V)||!this.options.isNewChainsStale)return!1;let t=(0,F.U9)(this,b,v).call(this),r=this.chains.map(({id:e})=>e),n=(0,F.U9)(this,y,w).call(this);return(!n.length||!!n.some(e=>r.includes(e)))&&!r.every(e=>t.includes(e))},d=new WeakSet,f=function(){(0,F.ac)(this,n)&&((0,F.U9)(this,h,p).call(this),(0,F.ac)(this,n).on("accountsChanged",this.onAccountsChanged),(0,F.ac)(this,n).on("chainChanged",this.onChainChanged),(0,F.ac)(this,n).on("disconnect",this.onDisconnect),(0,F.ac)(this,n).on("session_delete",this.onDisconnect),(0,F.ac)(this,n).on("display_uri",this.onDisplayUri),(0,F.ac)(this,n).on("connect",this.onConnect))},h=new WeakSet,p=function(){(0,F.ac)(this,n)&&((0,F.ac)(this,n).removeListener("accountsChanged",this.onAccountsChanged),(0,F.ac)(this,n).removeListener("chainChanged",this.onChainChanged),(0,F.ac)(this,n).removeListener("disconnect",this.onDisconnect),(0,F.ac)(this,n).removeListener("session_delete",this.onDisconnect),(0,F.ac)(this,n).removeListener("display_uri",this.onDisplayUri),(0,F.ac)(this,n).removeListener("connect",this.onConnect))},m=new WeakSet,g=function(e){this.storage?.setItem(K,e)},b=new WeakSet,v=function(){return this.storage?.getItem(K)??[]},y=new WeakSet,w=function(){if(!(0,F.ac)(this,n))return[];let e=F.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,L.fK)(e),r=t[W]?.chains?.map(e=>parseInt(e.split(":")[1]||""));return r??[]},E=new WeakSet,x=function(){if(!(0,F.ac)(this,n))return[];let e=F.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,L.fK)(e),r=t[W]?.methods;return r??[]};var Z=r(55210),Y=r(11588),J=r(53516),X=class extends F.wR{constructor({chains:e,options:t}){super({chains:e,options:{reloadOnDisconnect:!1,...t}}),(0,F.ov)(this,"id","coinbaseWallet"),(0,F.ov)(this,"name","Coinbase Wallet"),(0,F.ov)(this,"ready",!0),(0,F.Ko)(this,C,void 0),(0,F.Ko)(this,A,void 0),(0,F.ov)(this,"onAccountsChanged",e=>
2792{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,U.K)(e[0])})}),(0,F.ov)(this,"onChainChanged",e=>{let t=(0,J.J)(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,F.ov)(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect({chainId:e}={}){try{let t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});let r=await t.enable(),n=(0,U.K)(r[0]),o=await this.getChainId(),i=this.isChainUnsupported(o);if(e&&o!==e){let t=await this.switchChain(e);o=t.id,i=this.isChainUnsupported(o)}return{account:n,chain:{id:o,unsupported:i}}}catch(e){if(/(user closed modal|accounts received is empty)/i.test(e.message))throw new z.ab(e);throw e}}async disconnect(){if(!(0,F.ac)(this,A))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let e=await this.getProvider();return(0,U.K)((await e.request({method:"eth_accounts"}))[0])}async getChainId(){let e=await this.getProvider(),t=(0,J.J)(e.chainId);return t}
2792async getProvider(){if(!(0,F.ac)(this,A)){let e=(await Promise.all([r.e(8764),r.e(5811),r.e(5439)]).then(r.t.bind(r,45811,19))).default;"function"!=typeof e&&"function"==typeof e.default&&(e=e.default),(0,F.qx)(this,C,new e(this.options));let t=F.ac(this,C).walletExtension?.getChainId(),n=this.chains.find(e=>this.options.chainId?e.id===this.options.chainId:e.id===t)||this.chains[0],o=this.options.chainId||n?.id,i=this.options.jsonRpcUrl||n?.rpcUrls.default.http[0];(0,F.qx)(this,A,(0,F.ac)(this,C).makeWeb3Provider(i,o))}return(0,F.ac)(this,A)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,H.K)({account:r,chain:n,transport:(0,q.P)(t)})}async isAuthorized(){try{let e=await this.getAccount();return!!e}catch{return!1}}async switchChain(e){let t=await this.getProvider(),r=(0,G.eC)(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(o){let n=this.chains.find(t=>t.id===e);if(!n)throw new Y.B({chainId:e,connectorId:this.id});if(4902===o.code)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:n.name,nativeCurrency:n.nativeCurrency,rpcUrls:[n.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(n)}]}),n}catch(e){throw new z.ab(e)}throw new z.x3(o)}}async watchAsset({address:e,decimals:t=18,image:r,symbol:n}){let o=await this.getProvider();return o.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:r,symbol:n}}})}};C=new WeakMap,A=new WeakMap;var ee=class extends Z._{constructor({chains:e,options:t}={}){let r={name:"MetaMask",shimDisconnect:!0,getProvider(){function e(e){let t=!!e?.isMetaMask;if(t&&(!e.isBraveWallet||e._events||e._state)&&!e.isApexWallet&&!e.isAvalanche&&!e.isBitKeep&&!e.isBlockWallet&&!e.isMathWallet&&!e.isOkxWallet&&!e.isOKExWallet&&!e.isOneInchIOSWallet&&!e.isOneInchAndroidWallet&&!e.isOpera&&!e.isPortal&&!e.isRabby&&!e.isDefiant&&!e.isTokenPocket&&!e.isTokenary&&!e.isZerion)return e}if("undefined"==typeof window)return;let t=window.ethereum;return t?.providers?t.providers.find(e):e(t)},...t};super({chains:e,options:r}),(0,F.ov)(this,"id","metaMask"),(0,F.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`),(0,F.Ko)(this,P,void 0),(0,F.qx)(this,P,r.UNSTABLE_shimOnConnectSelectAccount)}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new Y.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let r=null;if((0,F.ac)(this,P)&&this.options?.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey)){r=await this.getAccount().catch(()=>null);let e=!!r;if(e)try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),r=await this.getAccount()}catch(e){if(this.isUserRejectedRequestError(e))throw new z.ab(e);if(e.code===new z.pT(e).code)throw e}}if(!r){let e=await t.request({method:"eth_requestAccounts"});r=(0,U.K)(e[0])}let n=await this.getChainId(),o=this.isChainUnsupported(n);if(e&&n!==e){let t=await this.switchChain(e);n=t.id,o=this.isChainUnsupported(n)}return this.options?.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:r,chain:{id:n,unsupported:o},provider:t}}catch(e){if(this.isUserRejectedRequestError(e))throw new z.ab(e);if(-32002===e.code)throw new z.pT(e);throw e}}};P=new WeakMap;var et=/(imtoken|metamask|rainbow|trust wallet|uniswap wallet|ledger)/i,er=class extends F.wR{constructor(){super(...arguments),(0,F.Ko)(this,k),(0,F.ov)(this,"id","walletConnectLegacy"),(0,F.ov)(this,"name","WalletConnectLegacy"),(0,F.ov)(this,"ready",!0),(0,F.Ko)(this,j,void 0),(0,F.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,U.K)(e[0])})}),(0,F.ov)(this,"onChainChanged",e=>{let t=(0,J.J)(e),r=this.isChainUnsupported(t);
2792this.emit("change",{chain:{id:t,unsupported:r}})}),(0,F.ov)(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect({chainId:e}={}){try{let t=e;if(!t){let e=this.storage?.getItem("store"),r=e?.state?.data?.chain?.id;r&&!this.isChainUnsupported(r)&&(t=r)}let r=await this.getProvider({chainId:t,create:!0});r.on("accountsChanged",this.onAccountsChanged),r.on("chainChanged",this.onChainChanged),r.on("disconnect",this.onDisconnect),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let n=await r.enable(),o=(0,U.K)(n[0]),i=await this.getChainId(),a=this.isChainUnsupported(i),s=r.connector?.peerMeta?.name??"";return et.test(s)&&(this.switchChain=(0,F.U9)(this,k,O)),{account:o,chain:{id:i,unsupported:a}}}catch(e){if(/user closed modal/i.test(e.message))throw new z.ab(e);throw e}}async disconnect(){let e=await this.getProvider();await e.disconnect(),e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")}async getAccount(){let e=await this.getProvider();return(0,U.K)(e.accounts[0])}async getChainId(){let e=await this.getProvider(),t=(0,J.J)(e.chainId);return t}async getProvider({chainId:e,create:t}={}){if(!(0,F.ac)(this,j)||e||t){let t=this.options?.infuraId?{}:this.chains.reduce((e,t)=>({...e,[t.id]:t.rpcUrls.default.http[0]}),{}),n=(await Promise.all([r.e(8764),r.e(81),r.e(7619)]).then(r.bind(r,17619))).default;(0,F.qx)(this,j,new n({...this.options,chainId:e,rpc:{...t,...this.options?.rpc}})),(0,F.ac)(this,j).http=await (0,F.ac)(this,j).setHttpProvider(e)}return(0,F.ac)(this,j)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,H.K)({account:r,chain:n,transport:(0,q.P)(t)})}async isAuthorized(){try{let e=await this.getAccount();return!!e}catch{return!1}}};j=new WeakMap,k=new WeakSet,O=async function(e){let t=await this.getProvider(),r=(0,G.eC)(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise(t=>this.on("change",({chain:r})=>{r?.id===e&&t(e)}))]),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new z.ab(t);throw new z.x3(t)}};var en=r(77777),eo=r(40936),ei=class extends F.wR{constructor({chains:e,options:t}){let r={shimDisconnect:!1,...t};super({chains:e,options:r}),(0,F.ov)(this,"id","safe"),(0,F.ov)(this,"name","Safe"),(0,F.ov)(this,"ready","undefined"!=typeof window&&window?.parent!==window),(0,F.Ko)(this,S,void 0),(0,F.Ko)(this,I,void 0),(0,F.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`);let n=eo;"function"!=typeof eo&&"function"==typeof eo.default&&(n=eo.default),(0,F.qx)(this,I,new n(r))}async connect(){let e=await this.getProvider();if(!e)throw new Y.N;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let t=await this.getAccount(),r=await this.getChainId();return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:t,chain:{id:r,unsupported:this.isChainUnsupported(r)}}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new Y.N;return(0,U.K)((await e.request({method:"eth_accounts"}))[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new Y.N;return(0,J.J)(e.chainId)}
2792async getProvider(){if(!(0,F.ac)(this,S)){let e=await (0,F.ac)(this,I).safe.getInfo();if(!e)throw Error("Could not load Safe information");(0,F.qx)(this,S,new en.N(e,(0,F.ac)(this,I)))}return(0,F.ac)(this,S)}async getWalletClient({chainId:e}={}){let t=await this.getProvider(),r=await this.getAccount(),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,H.K)({account:r,chain:n,transport:(0,q.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let e=await this.getAccount();return!!e}catch{return!1}}onAccountsChanged(e){}onChainChanged(e){}onDisconnect(){this.emit("disconnect")}};S=new WeakMap,I=new WeakMap,r(67294);var ea=e=>()=>{let t=-1,r=[],n=[],o=[],i=[];e.forEach(({groupName:e,wallets:r},i)=>{r.forEach(r=>{if(t++,(null==r?void 0:r.iconAccent)&&!(0,N.A7)(null==r?void 0:r.iconAccent))throw Error(`Property \`iconAccent\` is not a hex value for wallet: ${r.name}`);let a={...r,groupIndex:i,groupName:e,index:t};"function"==typeof r.hidden?o.push(a):n.push(a)})});let a=[...n,...o];return a.forEach(({createConnector:e,groupIndex:t,groupName:n,hidden:o,index:a,...s})=>{let c;if("function"==typeof o){let e=o({wallets:[...i.map(({connector:e,id:t,installed:r,name:n})=>({connector:e,id:t,installed:r,name:n}))]});if(e)return}let{connector:l,...u}=Object.fromEntries(Object.entries(e()).filter(([e,t])=>void 0!==t));if("walletConnect"===s.id&&u.qrCode&&!(0,N.tq)()){let{chains:e,options:t}=l;c=new Q({chains:e,options:{...t,showQrModal:!0}}),r.push(c)}let d={connector:l,groupIndex:t,groupName:n,index:a,walletConnectModalConnector:c,...s,...u};i.push(d),r.includes(l)||(r.push(l),l._wallets=[]),l._wallets.push(d)}),r},es=({chains:e,...t})=>{var n;return{id:"brave",name:"Brave Wallet",iconUrl:async()=>(await r.e(6847).then(r.bind(r,86847))).default,iconBackground:"#fff",installed:"undefined"!=typeof window&&(null==(n=window.ethereum)?void 0:n.isBraveWallet)===!0,downloadUrls:{},createConnector:()=>({connector:new Z._({chains:e,options:t})})}},ec=({appName:e,chains:t,...n})=>{var o;let i="undefined"!=typeof window&&(null==(o=window.ethereum)?void 0:o.isCoinbaseWallet)===!0;return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",iconUrl:async()=>(await r.e(1950).then(r.bind(r,41950))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:i||void 0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},createConnector:()=>{let r=(0,N.gn)(),o=new X({chains:t,options:{appName:e,headlessMode:!0,...n}}),i=async()=>(await o.getProvider()).qrUrl;return{connector:o,...r?{}:{qrCode:{getUri:i,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"We recommend putting Coinbase Wallet on your home screen for quicker access.",step:"install",title:"Open the Coinbase Wallet app"},{description:"You can easily backup your wallet using the cloud backup feature.",step:"create",title:"Create or Import a Wallet"},{description:"After you scan, a connection prompt will appear for you to connect your wallet.",step:"scan",title:"Tap the scan button"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",step:"install",title:"Install the Coinbase Wallet extension"},{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",step:"create",title:"Create or Import a Wallet"},{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",step:"refresh",title:"Refresh your browser"}]}}}}}}},el=({chains:e,...t})=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>
2792(await r.e(1088).then(r.bind(r,81088))).default,iconBackground:"#fff",hidden:({wallets:e})=>e.some(e=>e.installed&&e.name===e.connector.name&&(e.connector instanceof Z._||"coinbase"===e.id)),createConnector:()=>({connector:new Z._({chains:e,options:t})})});async function eu(e,t){let r=await e.getProvider();return"2"===t?new Promise(e=>r.once("display_uri",e)):r.connector.uri}var ed=new Map;function ef({chains:e,options:t={},projectId:r,version:n="2"}){let o="21fef48091f12692cad574a6f7753643";if("2"===n){if(r&&""!==r)("YOUR_PROJECT_ID"===r||r===o)&&console.warn("Invalid projectId. Please create a unique WalletConnect Cloud projectId for your dApp https://www.rainbowkit.com/docs/installation#configure");else throw Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure")}let i={chains:e,options:"1"===n?{qrcode:!1,...t}:{projectId:"YOUR_PROJECT_ID"===r?o:r,showQrModal:!1,...t}},a=JSON.stringify(i),s=ed.get(a);return null!=s?s:function(e,t){let r="1"===e?new er(t):new Q(t);return ed.set(JSON.stringify(t),r),r}(n,i)}function eh(e){return!!(null==e?void 0:e.isMetaMask)&&(!e.isBraveWallet||!!e._events||!!e._state)&&!e.isApexWallet&&!e.isAvalanche&&!e.isBackpack&&!e.isBifrost&&!e.isBitKeep&&!e.isBitski&&!e.isBlockWallet&&!e.isCoinbaseWallet&&!e.isDawn&&!e.isEnkrypt&&!e.isExodus&&!e.isFrame&&!e.isFrontier&&!e.isGamestop&&!e.isHyperPay&&!e.isImToken&&!e.isKuCoinWallet&&!e.isMathWallet&&!e.isOkxWallet&&!e.isOKExWallet&&!e.isOneInchIOSWallet&&!e.isOneInchAndroidWallet&&!e.isOpera&&!e.isPhantom&&!e.isPortal&&!e.isRabby&&!e.isRainbow&&!e.isStatus&&!e.isTalisman&&!e.isTally&&!e.isTokenPocket&&!e.isTokenary&&!e.isTrust&&!e.isTrustWallet&&!e.isXDEFI&&!e.isZerion}var ep=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:o="2",...i})=>{var a,s;let c="undefined"!=typeof window&&(null==(a=window.ethereum)?void 0:a.providers),l="undefined"!=typeof window&&void 0!==window.ethereum&&((null==(s=window.ethereum.providers)?void 0:s.some(eh))||window.ethereum.isMetaMask),u=!l;return{id:"metaMask",name:"MetaMask",iconUrl:async()=>(await r.e(4419).then(r.bind(r,84419))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:u?void 0:l,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},createConnector:()=>{let r=u?ef({projectId:t,chains:e,version:o,options:n}):new ee({chains:e,options:{getProvider:()=>c?c.find(eh):"undefined"!=typeof window?window.ethereum:void 0,...i}}),a=async()=>{let e=await eu(r,o);return(0,N.Dt)()?e:(0,N.gn)()?`metamask://wc?uri=${encodeURIComponent(e)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(e)}`};return{connector:r,mobile:{getUri:u?a:void 0},qrCode:u?{getUri:a,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"We recommend putting MetaMask on your home screen for quicker access.",step:"install",title:"Open the MetaMask app"},{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",step:"create",title:"Create or Import a Wallet"},{description:"After you scan, a connection prompt will appear for you to connect your wallet.",step:"scan",title:"Tap the scan button"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"We recommend pinning MetaMask to your taskbar for quicker access to your wallet.",step:"install",title:"Install the MetaMask extension"},{description:"Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",step:"create",title:"Create or Import a Wallet"},{description:"Once you set up your wallet, click below to refresh the browser and load up the extension.",step:"refresh",title:"Refresh your browser"}]}}}}}}
2792,em=({chains:e,projectId:t,walletConnectOptions:n,walletConnectVersion:o="2",...i})=>{let a="undefined"!=typeof window&&void 0!==window.ethereum&&function(e){let t=!!e.isRainbow;return!!t}(window.ethereum),s=!a;return{id:"rainbow",name:"Rainbow",iconUrl:async()=>(await r.e(1608).then(r.bind(r,31608))).default,iconBackground:"#0c2f78",installed:s?void 0:a,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},createConnector:()=>{let r=s?ef({projectId:t,chains:e,version:o,options:n}):new Z._({chains:e,options:i}),a=async()=>{let e=await eu(r,o);return(0,N.Dt)()?e:(0,N.gn)()?`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`};return{connector:r,mobile:{getUri:s?a:void 0},qrCode:s?{getUri:a,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"We recommend putting Rainbow on your home screen for faster access to your wallet.",step:"install",title:"Open the Rainbow app"},{description:"You can easily backup your wallet using our backup feature on your phone.",step:"create",title:"Create or Import a Wallet"},{description:"After you scan, a connection prompt will appear for you to connect your wallet.",step:"scan",title:"Tap the scan button"}]}}:void 0}}}},eg=({chains:e,...t})=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await r.e(514).then(r.bind(r,60514))).default,installed:"undefined"!=typeof window&&(null==window?void 0:window.parent)!==window,downloadUrls:{},createConnector:()=>({connector:new ei({chains:e,options:t})})}),eb=({chains:e,options:t,projectId:n,version:o="2"})=>({id:"walletConnect",name:"WalletConnect",iconUrl:async()=>(await r.e(3525).then(r.bind(r,33525))).default,iconBackground:"#3b99fc",createConnector:()=>{let r=(0,N.gn)(),i="1"===o?ef({version:"1",chains:e,options:{qrcode:r,...t}}):ef({version:"2",chains:e,projectId:n,options:{showQrModal:r,...t}}),a=async()=>eu(i,o);return{connector:i,...r?{}:{mobile:{getUri:a},qrCode:{getUri:a}}}}});N.xZ,N.Bg,N.VQ,N.UG;var ev=r(31407),ey=r(48526),ew=r(69077);let eE="d6c989fb5e87a19a4c3c14412d5a7672";if(!eE)throw Error("Missing NEXT_PUBLIC_WALLETCONNECT_ID");let ex=[R(ev.RJ),R(ev.Fo),R(ev.ws),ev.cO],{publicClient:eC,webSocketPublicClient:eA}=(0,ey.QB)(ex,[function({rpc:e}){return function(t){let r=e(t);return r&&""!==r.http?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[r.http]}}},rpcUrls:{http:[r.http],webSocket:r.webSocket?[r.webSocket]:void 0}}:null}}({rpc:e=>({http:31337===e.id?"http://127.0.0.1:8545/":11155111===e.id?"https://rpc.ankr.com/eth_sepolia":5===e.id?"https://rpc.ankr.com/eth_goerli":"https://rpc.ankr.com/eth"})}),function(e){return e.rpcUrls.public.http[0]?{chain:e,rpcUrls:e.rpcUrls.public}:null}]),{connectors:eP}=(({appName:e,chains:t,projectId:r})=>{let n=[{groupName:"Popular",wallets:[el({chains:t}),eg({chains:t}),em({chains:t,projectId:r}),ec({appName:e,chains:t}),ep({chains:t,projectId:r}),eb({chains:t,projectId:r}),es({chains:t})]}];return{connectors:ea(n),wallets:n}})({appName:"ENS Name Lookup",projectId:eE,chains:ex}),ej=(0,ew._g)({autoConnect:!0,connectors:eP,publicClient:eC,webSocketPublicClient:eA})},50019:function(){},7952:function(){},77663:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){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===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c=[],l=!1,u=-1;function d(){l&&n&&(l=!1,n.length?c=n.concat(c):u=-1,c.length&&f())}function f(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(n=c,c=[];++u<t;)n&&n[u].run();u=-1,t=c.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);
2792if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(229);e.exports=o}()},9008:function(e,t,r){e.exports=r(42636)},96774:function(e){e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=r?r.call(n,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0}},80500:function(e){"use strict";e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},41686:function(e,t,r){"use strict";r.d(t,{f6:function(){return to},vJ:function(){return th},iv:function(){return tl},ZP:function(){return td},F4:function(){return tp},Fg:function(){return tn}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var i=r(67294),a=r(96774),s=r.n(a),c="-ms-",l="-moz-",u="-webkit-",d="comm",f="rule",h="decl",p="@keyframes",m=Math.abs,g=String.fromCharCode,b=Object.assign;function v(e,t){return(e=t.exec(e))?e[0]:e}function y(e,t,r){return e.replace(t,r)}function w(e,t){return e.indexOf(t)}function E(e,t){return 0|e.charCodeAt(t)}function x(e,t,r){return e.slice(t,r)}function C(e){return e.length}function A(e,t){return t.push(e),e}function P(e,t){return e.filter(function(e){return!v(e,t)})}var j=1,k=1,O=0,S=0,I=0,T="";function B(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:j,column:k,length:a,return:"",siblings:s}}function _(e,t){return b(B("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function D(e){for(;e.root;)e=_(e.root,{children:[e]});A(e,e.siblings)}function $(){return I=S<O?E(T,S++):0,k++,10===I&&(k=1,j++),I}function M(){return E(T,S)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function N(e){var t,r;return(t=S-1,r=function e(t){for(;$();)switch(I){case t:return S;case 34:case 39:34!==t&&39!==t&&e(I);break;case 40:41===t&&e(t);break;case 92:$()}return S}(91===e?e+2:40===e?e+1:e),x(T,t,r)).trim()}function F(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function L(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case h:return e.return=e.return||e.value;case d:return"";case p:return e.return=e.value+"{"+F(e.children,n)+"}";case f:if(!C(e.value=e.props.join(",")))return""}return C(r=F(e.children,n))?e.return=e.value+"{"+r+"}":""}function U(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h:e.return=function e(t,r,n){var o;switch(o=r,45^E(t,0)?(((o<<2^E(t,0))<<2^E(t,1))<<2^E(t,2))<<2^E(t,3):0){case 5103:return u+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+t+t;case 4789:return l+t+t;
vendor: 11,938 bytes, line 2792
2792case 5349:case 4246:case 4810:case 6968:case 2756:return u+t+l+t+c+t+t;case 5936:switch(E(t,r+11)){case 114:return u+t+c+y(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return u+t+c+y(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return u+t+c+y(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return u+t+c+t+t;case 6165:return u+t+c+"flex-"+t+t;case 5187:return u+t+y(t,/(\w+).+(:[^]+)/,u+"box-$1$2"+c+"flex-$1$2")+t;case 5443:return u+t+c+"flex-item-"+y(t,/flex-|-self/g,"")+(v(t,/flex-|baseline/)?"":c+"grid-row-"+y(t,/flex-|-self/g,""))+t;case 4675:return u+t+c+"flex-line-pack"+y(t,/align-content|flex-|-self/g,"")+t;case 5548:return u+t+c+y(t,"shrink","negative")+t;case 5292:return u+t+c+y(t,"basis","preferred-size")+t;case 6060:return u+"box-"+y(t,"-grow","")+u+t+c+y(t,"grow","positive")+t;case 4554:return u+y(t,/([^-])(transform)/g,"$1"+u+"$2")+t;case 6187:return y(y(y(t,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),t,"")+t;case 5495:case 3959:return y(t,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return y(y(t,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+t+t;case 4200:if(!v(t,/flex-|baseline/))return c+"grid-column-align"+x(t,r)+t;break;case 2592:case 3360:return c+y(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,v(e.props,/grid-\w+-end/)}))return~w(t+(n=n[r].value),"span")?t:c+y(t,"-start","")+t+c+"grid-row-span:"+(~w(n,"span")?v(n,/\d+/):+v(n,/\d+/)-+v(t,/\d+/))+";";return c+y(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return v(e.props,/grid-\w+-start/)})?t:c+y(y(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return y(t,/(.+)-inline(.+)/,u+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(t)-1-r>6)switch(E(t,r+1)){case 109:if(45!==E(t,r+4))break;case 102:return y(t,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+l+(108==E(t,r+3)?"$3":"$2-$3"))+t;case 115:return~w(t,"stretch")?e(y(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return y(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,o,i,a,s){return c+r+":"+n+s+(o?c+r+"-span:"+(i?a:+a-+n)+s:"")+t});case 4949:if(121===E(t,r+6))return y(t,":",":"+u)+t;break;case 6444:switch(E(t,45===E(t,14)?18:11)){case 120:return y(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===E(t,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+c+"$2box$3")+t;case 100:return y(t,":",":"+c)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return y(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case p:return F([_(e,{value:y(e.value,"@","@"+u)})],n);case f:if(e.length)return(r=e.props).map(function(t){switch(v(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":D(_(e,{props:[y(t,/:(read-\w+)/,":"+l+"$1")]})),D(_(e,{props:[t]})),b(e,{props:P(r,n)});break;case"::placeholder":D(_(e,{props:[y(t,/:(plac\w+)/,":"+u+"input-$1")]})),D(_(e,{props:[y(t,/:(plac\w+)/,":"+l+"$1")]})),D(_(e,{props:[y(t,/:(plac\w+)/,c+"input-$1")]})),D(_(e,{props:[t]})),b(e,{props:P(r,n)})}return""}).join("")}}function z(e,t,r,n,o,i,a,s,c,l,u,d){for(var h=o-1,p=0===o?i:[""],g=p.length,b=0,v=0,w=0;b<n;++b)for(var E=0,C=x(e,h+1,h=m(v=a[b])),A=e;E<g;++E)(A=(v>0?p[E]+" "+C:y(C,/&\f/g,p[E])).trim())&&(c[w++]=A);return B(e,t,r,0===o?f:s,c,l,u,d)}function H(e,t,r,n,o){return B(e,t,r,h,x(e,0,n),x(e,n+1,-1),n,o)}var q={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},G=r(83454),W=void 0!==G&&void 0!==G.env&&(G.env.REACT_APP_SC_ATTR||G.env.SC_ATTR)||"data-styled",K="undefined"!=typeof window&&"HTMLElement"in window,V=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==G&&void 0!==G.env&&void 0!==G.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==G.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==G.env.REACT_APP_SC_DISABLE_SPEEDY&&G.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==G&&void 0!==G.env&&void 0!==G.env.SC_DISABLE_SPEEDY&&""!==G.env.SC_DISABLE_SPEEDY&&"false"!==G.env.SC_DISABLE_SPEEDY&&G.env.SC_DISABLE_SPEEDY),Q={},Z=Object.freeze([]),Y=Object.freeze({});function J(e,t,r){return void 0===r&&(r=Y),e.theme!==r.theme&&e.theme||t||r.theme}var X=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ee=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,et=/(^-|-$)/g;function er(e){return e.replace(ee,"-").replace(et,"")}var en=/(a)(d)/gi,eo=function(e){return String.fromCharCode(e+(e>25?39:97))};function ei(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=eo(t%52)+r;return(eo(t%52)+r).replace(en,"$1-$2")}var ea,es=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ec=function(e){return es(5381,e)};function el(e){return ei(ec(e)>>>0)}function eu(e){return"string"==typeof e}var ed="function"==typeof Symbol&&Symbol.for,ef=ed?Symbol.for("react.memo"):60115,eh=ed?Symbol.for("react.forward_ref"):60112,ep={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},em={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eb=((ea={})[eh]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ea[ef]=eg,ea);function ev(e){return("type"in e&&e.type.$$typeof)===ef?eg:"$$typeof"in e?eb[e.$$typeof]:ep}var ey=Object.defineProperty,ew=Object.getOwnPropertyNames,eE=Object.getOwnPropertySymbols,ex=Object.getOwnPropertyDescriptor,eC=Object.getPrototypeOf,eA=Object.prototype;function eP(e){return"function"==typeof e}function ej(e){return"object"==typeof e&&"styledComponentId"in e}function ek(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eO(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function eS(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eI(e,t){Object.defineProperty(e,"toString",{value:t})}function eT(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var eB=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw eT(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat("/*!sc*/\n");return t},e}(),e_=new Map,eD=new Map,e$=1,eM=function(e){if(e_.has(e))return e_.get(e);for(;eD.has(e$);)e$++;var t=e$++;return e_.set(e,t),eD.set(t,e),t},eR=function(e,t){e_.set(e,t),eD.set(t,e)},eN="style[".concat(W,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),eF=new RegExp("^".concat(W,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eL=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},eU=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split("/*!sc*/\n"),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var c=s.match(eF);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(eR(u,l),eL(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}},ez=function(e){var t,n=document.head,o=e||n,i=document.createElement("style"),a=(t=Array.from(o.querySelectorAll("style[".concat(W,"]"))))[t.length-1],s=void 0!==a?a.nextSibling:null;i.setAttribute(W,"active"),i.setAttribute("data-styled-version","6.0.7");var c=r.nc;return c&&i.setAttribute("nonce",c),o.insertBefore(i,s),i},eH=function(){function e(e){this.element=ez(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw eT(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eq=function(){function e(e){this.element=ez(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eG=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eW=K,eK={isServer:!K,useCSSOMInjection:!V},eV=function(){function e(e,t,r){void 0===e&&(e=Y),void 0===t&&(t={});var o=this;this.options=n(n({},eK),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&K&&eW&&(eW=!1,function(e){for(var t=document.querySelectorAll(eN),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(W)&&(eU(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),eI(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++)(function(r){var o=eD.get(r);if(void 0!==o){var i=e.names.get(o),a=t.getGroup(r);if(void 0!==i&&0!==a.length){var s="".concat(W,".g").concat(r,'[id="').concat(o,'"]'),c="";
2792void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(c,'"}').concat("/*!sc*/\n")}}})(o);return n}(o)})}return e.registerId=function(e){return eM(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(r=(t=this.options).useCSSOMInjection,n=t.target,e=t.isServer?new eG(n):r?new eH(n):new eq(n),new eB(e)))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(eM(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(eM(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(eM(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),eQ=/&/g,eZ=/^\s*\/\/.*$/gm;function eY(e){var t,r,n,o=void 0===e?Y:e,i=o.options,a=void 0===i?Y:i,s=o.plugins,c=void 0===s?Z:s,l=function(e,n,o){return o===r||o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(eQ,r).replace(n,l))}),a.prefix&&u.push(U),u.push(L);var h=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=RegExp("\\".concat(r,"\\b"),"g");var c,l,f,h,p,m=e.replace(eZ,""),b=(p=function e(t,r,n,o,i,a,s,c,l){for(var u,f=0,h=0,p=s,m=0,b=0,v=0,P=1,O=1,_=1,D=0,F="",L=i,U=a,q=o,G=F;O;)switch(v=D,D=$()){case 40:if(108!=v&&58==E(G,p-1)){-1!=w(G+=y(N(D),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:G+=N(D);break;case 9:case 10:case 13:case 32:G+=function(e){for(;I=M();)if(I<33)$();else break;return R(e)>2||R(I)>3?"":" "}(v);break;case 92:G+=function(e,t){for(var r;--t&&$()&&!(I<48)&&!(I>102)&&(!(I>57)||!(I<65))&&(!(I>70)||!(I<97)););return r=S+(t<6&&32==M()&&32==$()),x(T,e,r)}(S-1,7);continue;case 47:switch(M()){case 42:case 47:A(B(u=function(e,t){for(;$();)if(e+I===57)break;else if(e+I===84&&47===M())break;return"/*"+x(T,t,S-1)+"*"+g(47===e?e:$())}($(),S),r,n,d,g(I),x(u,2,-2),0,l),l);break;default:G+="/"}break;case 123*P:c[f++]=C(G)*_;case 125*P:case 59:case 0:switch(D){case 0:case 125:O=0;case 59+h:-1==_&&(G=y(G,/\f/g,"")),b>0&&C(G)-p&&A(b>32?H(G+";",o,n,p-1,l):H(y(G," ","")+";",o,n,p-2,l),l);break;case 59:G+=";";default:if(A(q=z(G,r,n,f,h,i,c,F,L=[],U=[],p,a),a),123===D){if(0===h)e(G,r,q,q,L,a,p,c,U);else switch(99===m&&110===E(G,3)?100:m){case 100:case 108:case 109:case 115:e(t,q,q,o&&A(z(t,q,q,0,0,i,c,F,i,L=[],p,U),U),i,U,p,c,o?L:U);break;default:e(G,q,q,q,[""],U,0,c,U)}}}f=h=b=0,P=_=1,F=G="",p=s;break;case 58:p=1+C(G),b=v;default:if(P<1){if(123==D)--P;else if(125==D&&0==P++&&125==(I=S>0?E(T,--S):0,k--,10===I&&(k=1,j--),I))continue}switch(G+=g(D),D*P){case 38:_=h>0?1:(G+="\f",-1);break;case 44:c[f++]=(C(G)-1)*_,_=1;break;case 64:45===M()&&(G+=N($())),m=M(),h=p=C(F=G+=function(e){for(;!R(M());)$();return x(T,e,S)}(S)),D++;break;case 45:45===v&&2==C(G)&&(P=0)}}return a}("",null,null,null,[""],(h=f=i||o?"".concat(i," ").concat(o," { ").concat(m," }"):m,j=k=1,O=C(T=h),S=0,f=[]),0,[0],f),T="",p);a.namespace&&(b=function e(t,r){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(r," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(r," ")),t.props=t.props.map(function(e){return"".concat(r," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,r)),t})}(b,a.namespace));var v=[];return F(b,(l=(c=u.concat(function(e){var t;!e.root&&(e=e.return)&&(t=e,v.push(t))})).length,function(e,t,r,n){for(var o="",i=0;i<l;i++)o+=c[i](e,t,r,n)||"";return o})),v};return h.hash=c.length?c.reduce(function(e,t){return t.name||eT(15),es(e,t.name)},5381).toString():"",h}var eJ=new eV,eX=eY(),e0=i.createContext({shouldForwardProp:void 0,styleSheet:eJ,stylis:eX}),e1=(e0.Consumer,i.createContext(void 0));function e2(){return(0,i.useContext)(e0)}function e6(e){var t=(0,i.useState)(e.stylisPlugins),r=t[0],n=t[1],o=e2().styleSheet,a=(0,i.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,o]),c=(0,i.useMemo)(function(){return eY({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);return(0,i.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),i.createElement(e0.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:c}},i.createElement(e1.Provider,{value:c},e.children))}var e3=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=eX);var n=r.name+t.hash;
2792e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eI(this,function(){throw eT(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=eX),this.name+e.hash},e}();function e5(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;n>="A"&&n<="Z"?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var e8=function(e){return null==e||!1===e||""===e},e4=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!e8(n)&&(Array.isArray(n)&&n.isCss||eP(n)?t.push("".concat(e5(r),":"),n,";"):eS(n)?t.push.apply(t,o(o(["".concat(r," {")],e4(n),!1),["}"],!1)):t.push("".concat(e5(r),": ").concat(null==n||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||r in q||r.startsWith("--")?String(n).trim():"".concat(n,"px"),";")))}return t};function e7(e,t,r,n){return e8(e)?[]:ej(e)?[".".concat(e.styledComponentId)]:eP(e)?!eP(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:e7(e(t),t,r,n):e instanceof e3?r?(e.inject(r,n),[e.getName(n)]):[e]:eS(e)?e4(e):Array.isArray(e)?Array.prototype.concat.apply(Z,e.map(function(e){return e7(e,t,r,n)})):[e.toString()]}function e9(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(eP(r)&&!ej(r))return!1}return!0}var te=ec("6.0.7"),tt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&e9(e),this.componentId=t,this.baseHash=es(te,t),this.baseStyle=r,eV.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ek(n,this.staticRulesId);else{var o=eO(e7(this.rules,e,t,r)),i=ei(es(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=ek(n,i),this.staticRulesId=i}}else{for(var s=es(this.baseHash,r.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var d=eO(e7(u,e,t,r));s=es(s,d),c+=d}}if(c){var f=ei(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,r(c,".".concat(f),void 0,this.componentId)),n=ek(n,f)}}return n},e}(),tr=i.createContext(void 0);function tn(){var e=(0,i.useContext)(tr);if(!e)throw eT(18);return e}function to(e){var t=i.useContext(tr),r=(0,i.useMemo)(function(){return function(e,t){if(!e)throw eT(14);if(eP(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw eT(8);return t?n(n({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?i.createElement(tr.Provider,{value:r},e.children):null}tr.Consumer;var ti={};function ta(e,t,r){var o,a,s,c,l=ej(e),u=!eu(e),d=t.attrs,f=void 0===d?Z:d,h=t.componentId,p=void 0===h?(o=t.displayName,a=t.parentComponentId,ti[s="string"!=typeof o?"sc":er(o)]=(ti[s]||0)+1,c="".concat(s,"-").concat(el("6.0.7"+s+ti[s])),a?"".concat(a,"-").concat(c):c):h,m=(void 0===t.displayName&&(eu(e)||e.displayName||e.name),t.displayName&&t.componentId?"".concat(er(t.displayName),"-").concat(t.componentId):t.componentId||p),g=l&&e.attrs?e.attrs.concat(f).filter(Boolean):f,b=t.shouldForwardProp;if(l&&e.shouldForwardProp){var v=e.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;b=function(e,t){return v(e,t)&&y(e,t)}}else b=v}var w=new tt(r,m,l?e.componentStyle:void 0),E=i.forwardRef(function(e,t){return function(e,t,r){var o,a=e.attrs,s=e.componentStyle,c=e.defaultProps,l=e.foldedComponentIds,u=e.styledComponentId,d=e.target,f=i.useContext(tr),h=e2(),p=e.shouldForwardProp||h.shouldForwardProp,m=function(e,t,r){for(var o,i=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=eP(o=e[a])?o(i):o;for(var c in s)i[c]="className"===c?ek(i[c],s[c]):"style"===c?n(n({},i[c]),s[c]):s[c]}return t.className&&(i.className=ek(i.className,t.className)),i}(a,t,J(t,f,c)||Y),g=m.as||d,b={};for(var v in m)void 0===m[v]||"$"===v[0]||"as"===v||"theme"===v||("forwardedAs"===v?b.as=m.forwardedAs:p&&!p(v,g)||(b[v]=m[v]));var y=(o=e2(),s.generateAndInjectStyles(m,o.styleSheet,o.stylis)),w=ek(l,u);return y&&(w+=" "+y),m.className&&(w+=" "+m.className),b[eu(g)&&!X.has(g)?"class":"className"]=w,b.ref=r,(0,i.createElement)(g,b)}(E,e,t)});return E.attrs=g,E.componentStyle=w,E.shouldForwardProp=b,E.foldedComponentIds=l?ek(e.foldedComponentIds,e.styledComponentId):"",E.styledComponentId=m,E.target=l?e.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=l?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)(function e(t,r,n){if(void 0===n&&(n=!1),!n&&!eS(t)&&!Array.isArray(t))return r;if(Array.isArray(r))for(var o=0;o<r.length;o++)t[o]=e(t[o],r[o]);else if(eS(r))for(var o in r)t[o]=e(t[o],r[o]);return t})(e,t[n],!0);return e}({},e.defaultProps,t):t}}),eI(E,function(){return".".concat(E.styledComponentId)}),u&&function e(t,r,n){if("string"!=typeof r){if(eA){var o=eC(r);o&&o!==eA&&e(t,o,n)}var i=ew(r);eE&&(i=i.concat(eE(r)));for(var a=ev(t),s=ev(r),c=0;c<i.length;++c){var l=i[c];if(!(l in em||n&&n[l]||s&&l in s||a&&l in a)){var u=ex(r,l);try{ey(t,l,u)}catch(e){}}}}return t}(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function ts(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var tc=function(e){return Object.assign(e,{isCss:!0})};function tl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return eP(e)||eS(e)?tc(e7(ts(Z,o([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?e7(e):tc(e7(ts(e,t)))}var tu=function(e){return function e(t,r,i){if(void 0===i&&(i=Y),!r)throw eT(1,r);var a=function(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return t(r,i,tl.apply(void 0,o([e],n,!1)))};return a.attrs=function(o){return e(t,r,n(n({}
2792,i),{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a.withConfig=function(o){return e(t,r,n(n({},i),o))},a}(ta,e)},td=tu;X.forEach(function(e){td[e]=tu(e)});var tf=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=e9(e),eV.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(eO(e7(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&eV.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function th(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=tl.apply(void 0,o([e],t,!1)),s="sc-global-".concat(el(JSON.stringify(a))),c=new tf(a,s),l=function(e){var t=e2(),r=i.useContext(tr),n=i.useRef(t.styleSheet.allocateGSInstance(s)).current;return t.styleSheet.server&&u(n,e,t.styleSheet,r,t.stylis),i.useLayoutEffect(function(){if(!t.styleSheet.server)return u(n,e,t.styleSheet,r,t.stylis),function(){return c.removeStyles(n,t.styleSheet)}},[n,e,t.styleSheet,r,t.stylis]),null};function u(e,t,r,o,i){if(c.isStatic)c.renderStyles(e,Q,r,i);else{var a=n(n({},t),{theme:J(t,o,l.defaultProps)});c.renderStyles(e,a,r,i)}}return i.memo(l)}function tp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=eO(tl.apply(void 0,o([e],t,!1))),i=el(n);return new e3(i,n)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=r.nc,o=eO([n&&'nonce="'.concat(n,'"'),"".concat(W,'="true"'),"".concat("data-styled-version",'="').concat("6.0.7",'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw eT(2);return e._emitSheetCSS()}
2792,this.getStyleElement=function(){if(e.sealed)throw eT(2);var t,o=((t={})[W]="",t["data-styled-version"]="6.0.7",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),a=r.nc;return a&&(o.nonce=a),[i.createElement("style",n({},o,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eV({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw eT(2);return i.createElement(e6,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw eT(3)}}()},70655:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return i},__asyncDelegator:function(){return w},__asyncGenerator:function(){return y},__asyncValues:function(){return E},__await:function(){return v},__awaiter:function(){return u},__classPrivateFieldGet:function(){return P},__classPrivateFieldSet:function(){return j},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return o},__generator:function(){return d},__importDefault:function(){return A},__importStar:function(){return C}
vendor: 6,126 bytes, lines 2792-2805
2792,__makeTemplateObject:function(){return x},__metadata:function(){return l},__param:function(){return c},__read:function(){return m},__rest:function(){return a},__spread:function(){return g},__spreadArrays:function(){return b},__values:function(){return p}});/*! ***************************************************************************** 2793Copyright (c) Microsoft Corporation. 2794 2795Permission to use, copy, modify, and/or distribute this software for any 2796purpose with or without fee is hereby granted. 2797 2798THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 2799REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 2800AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 2801INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 2802LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 2803OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2804PERFORMANCE OF THIS SOFTWARE. 2805***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function b(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=o[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,l):u(i[0][2],r)}catch(e){u(i[0][3],e)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
2805function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function j(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},53250:function(e,t,r){"use strict";/** 2806 * @license React 2807 * use-sync-external-store-shim.production.min.js 2808 * 2809 * Copyright (c) Facebook, Inc. and its affiliates. 2810 * 2811 * This source code is licensed under the MIT license found in the 2812 * LICENSE file in the root directory of this source tree. 2813 */var n=r(67294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,u=n[1];return s(function(){o.value=r,o.getSnapshot=t,l(o)&&u({inst:o})},[e,r,t]),a(function(){return l(o)&&u({inst:o}),e(function(){l(o)&&u({inst:o})})},[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},50139:function(e,t,r){"use strict";/** 2814 * @license React 2815 * use-sync-external-store-shim/with-selector.production.min.js 2816 * 2817 * Copyright (c) Facebook, Inc. and its affiliates. 2818 * 2819 * This source code is licensed under the MIT license found in the 2820 * LICENSE file in the root directory of this source tree. 2821 */var n=r(67294),o=r(61688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=n.useRef,c=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!c){if(c=!0,a=e,e=n(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(a=e,s=r)}var a,s,c=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,o]);var h=a(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=h},[h]),u(h),h}},61688:function(e,t,r){"use strict";e.exports=r(53250)},52798:function(e,t,r){"use strict";e.exports=r(50139)},71427:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function o(e,...t){if(!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=o,t.hash=i,t.exists=a,t.output=s,t.default={number:r,bool:n,bytes:o,hash:i,exists:a,output:s}},30066:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;let r=BigInt(4294967296-1),n=BigInt(32);function o(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function i(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:a,l:s}=o(e[i],t);[r[i],n[i]]=[a,s]}return[r,n]}function a(e,t,r,n){let o=(t>>>0)+(n>>>0);return{h:e+r+(o/4294967296|0)|0,l:0|o}}t.fromBig=o,t.split=i,t.toBig=(e,t)=>
2821BigInt(e>>>0)<<n|BigInt(t>>>0),t.add=a;let s={fromBig:o,split:i,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:a,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/4294967296|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,o)=>t+r+n+o+(e/4294967296|0)|0,add5H:(e,t,r,n,o,i)=>t+r+n+o+i+(e/4294967296|0)|0,add5L:(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0)};t.default=s},922:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},7217:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;let n=r(71427),o=r(30066),i=r(74574),[a,s,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),d=BigInt(2),f=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=u,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],a.push(2*(5*n+r)),s.push((e+1)*(e+2)/2%64);let o=l;for(let e=0;e<7;e++)(t=(t<<u^(t>>f)*p)%h)&d&&(o^=u<<(u<<BigInt(e))-u);c.push(o)}let[m,g]=o.default.split(c,!0),b=(e,t,r)=>r>32?o.default.rotlBH(e,t,r):o.default.rotlSH(e,t,r),v=(e,t,r)=>r>32?o.default.rotlBL(e,t,r):o.default.rotlSL(e,t,r);function y(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,o=(t+2)%10,i=r[o],a=r[o+1],s=b(i,a,1)^r[n],c=v(i,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],o=e[3];for(let r=0;r<24;r++){let n=s[r],i=b(t,o,n),c=v(t,o,n),l=a[r];t=e[l],o=e[l+1],e[l]=i,e[l+1]=c}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=m[n],e[1]^=g[n]}r.fill(0)}t.keccakP=y;class w extends i.Hash{constructor(e,t,r,o=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=o,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){y(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){n.default.exists(this);let{blockLen:t,state:r}=this;e=(0,i.toBytes)(e);let o=e.length;for(let n=0;n<o;){let i=Math.min(t-this.pos,o-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){n.default.exists(this,!1),n.default.bytes(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,o=e.length;n<o;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,o-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return n.default.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(n.default.output(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:o,enableXOF:i}=this;return e||(e=new w(t,r,n,i,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=w;let E=(e,t,r)=>(0,i.wrapConstructor)(()=>new w(t,e,r));t.sha3_224=E(6,144,28),t.sha3_256=E(6,136,32),t.sha3_384=E(6,104,48),t.sha3_512=E(6,72,64),t.keccak_224=E(1,144,28),t.keccak_256=E(1,136,32),t.keccak_384=E(1,104,48),t.keccak_512=E(1,72,64);let x=(e,t,r)=>(0,i.wrapConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=x(31,168,16),t.shake256=x(31,136,32)},74574:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esMo
2821dule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(922);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw Error("hexToBytes: received invalid unpadded hex");let t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){let n=2*r,o=e.slice(n,n+2),i=Number.parseInt(o,16);if(Number.isNaN(i)||i<0)throw Error("Invalid byte sequence");t[r]=i}return t};let i=async()=>{};async function a(e,r,n){let o=Date.now();for(let i=0;i<e;i++){n(i);let e=Date.now()-o;e>=0&&e<r||(await (0,t.nextTick)(),o+=e)}}function s(e){if("string"!=typeof e)throw TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}function c(e){if("string"==typeof e&&(e=s(e)),!(e instanceof Uint8Array))throw TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}t.nextTick=i,t.asyncLoop=a,t.utf8ToBytes=s,t.toBytes=c,t.concatBytes=function(...e){if(!e.every(e=>e instanceof Uint8Array))throw Error("Uint8Array list expected");if(1===e.length)return e[0];let t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let o=e[t];r.set(o,n),n+=o.length}return r},t.Hash=class{clone(){return this._cloneInto()}};let l=e=>"[object Object]"===Object.prototype.toString.call(e)&&e.constructor===Object;t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||!l(t)))throw TypeError("Options should be object or undefined");let r=Object.assign(e,t);return r},t.wrapConstructor=function(e){let t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(c(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},35883:function(){},3975:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccount=void 0,t.parseAccount=function(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},3417:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=void 0;let n=r(36556),o=r(75225);t.publicKeyToAddress=function(e){let t=(0,o.keccak256)(`0x${e.substring(4)}`).substring(26);return(0,n.checksumAddress)(`0x${t}`)}},22440:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAddress=void 0;let n=r(28669),o=r(76286),i=r(22836),a=r(47797),s=r(80475),c=r(86308),l=r(19662),u=r(77863),d=r(72126),f=r(33531);async function h(e,{blockNumber:t,blockTag:r,coinType:h,name:p,universalResolverAddress:m}){let g=m;if(!g){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");g=(0,a.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=(0,i.encodeFunctionData)({abi:n.addressResolverAbi,functionName:"addr",...null!=h?{args:[(0,u.namehash)(p),BigInt(h)]}:{args:[(0,u.namehash)(p)]}}),l=await (0,f.readContract)(e,{address:g,abi:n.universalResolverResolveAbi,functionName:"resolve",args:[(0,c.toHex)((0,d.packetToBytes)(p)),a],blockNumber:t,blockTag:r});if("0x"===l[0])return null;let m=(0,s.trim)((0,o.decodeFunctionResult)({abi:n.addressResolverAbi,args:null!=h?[(0,u.namehash)(
2821p),BigInt(h)]:void 0,functionName:"addr",data:l[0]}));if("0x"===m||"0x00"===(0,s.trim)(m))return null;return m}catch(e){if((0,l.isNullUniversalResolverError)(e,"resolve"))return null;throw e}}t.getEnsAddress=h},32637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsAvatar=void 0;let n=r(18467),o=r(43896);async function i(e,{blockNumber:t,blockTag:r,gatewayUrls:i,name:a,universalResolverAddress:s}){let c=await (0,o.getEnsText)(e,{blockNumber:t,blockTag:r,key:"avatar",name:a,universalResolverAddress:s});if(!c)return null;try{return await (0,n.parseAvatarRecord)(e,{record:c,gatewayUrls:i})}catch{return null}}t.getEnsAvatar=i},59593:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsName=void 0;let n=r(28669),o=r(47797),i=r(86308),a=r(19662),s=r(72126),c=r(33531);async function l(e,{address:t,blockNumber:r,blockTag:l,universalResolverAddress:u}){let d=u;if(!d){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");d=(0,o.getChainContractAddress)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}let f=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let t=await (0,c.readContract)(e,{address:d,abi:n.universalResolverReverseAbi,functionName:"reverse",args:[(0,i.toHex)((0,s.packetToBytes)(f))],blockNumber:r,blockTag:l});return t[0]}catch(e){if((0,a.isNullUniversalResolverError)(e,"reverse"))return null;throw e}}t.getEnsName=l},12429:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsResolver=void 0;let n=r(47797),o=r(86308),i=r(72126),a=r(33531);async function s(e,{blockNumber:t,blockTag:r,name:s,universalResolverAddress:c}){let l=c;if(!l){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");l=(0,n.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[u]=await (0,a.readContract)(e,{address:l,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,o.toHex)((0,i.packetToBytes)(s))],blockNumber:t,blockTag:r});return u}t.getEnsResolver=s},43896:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEnsText=void 0;let n=r(28669),o=r(76286),i=r(22836),a=r(47797),s=r(86308),c=r(19662),l=r(77863),u=r(72126),d=r(33531);async function f(e,{blockNumber:t,blockTag:r,name:f,key:h,universalResolverAddress:p}){let m=p;if(!m){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");m=(0,a.getChainContractAddress)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=await (0,d.readContract)(e,{address:m,abi:n.universalResolverResolveAbi,functionName:"resolve",args:[(0,s.toHex)((0,u.packetToBytes)(f)),(0,i.encodeFunctionData)({abi:n.textResolverAbi,functionName:"text",args:[(0,l.namehash)(f),h]})],blockNumber:t,blockTag:r});if("0x"===a[0])return null;let c=(0,o.decodeFunctionResult)({abi:n.textResolverAbi,functionName:"text",data:a[0]});return""===c?null:c}catch(e){if((0,c.isNullUniversalResolverError)(e,"resolve"))return null;throw e}}t.getEnsText=f},28690:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventParameters=t.getFunctionParameters=t.getContract=void 0;let n=r(99985),o=r(37346),i=r(33531),a=r(63747),s=r(49488),c=r(97747);function l(e){let t=e.length&&Array.isArray(e[0]),r=t?e[0]:[],n=(t?e[1]:e[0])??{};return{args:r,options:n}}function u(e,t){let r=!1;Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some(e=>e.indexed):2===e.length&&(r=!0);let n=r?e[0]:void 0,o=(r?e[1]:e[0])??{};return{args:n,options:o}}t.getContract=function({abi:e,address:t,publicClient:r,walletClient:d}){let f=null!=r,h=null!=d,p={},m=!1,g=!1,b=!1;for(let t of e)if("function"===t.type?"view"===t.stateMutability||"pure"===t.stateMutability?m=!0:g=!0:"event"===t.type&&(b=!0),m&&g&&b)break;return f&&(m&&(p.read=new Proxy({},{get:(n,o)=>(...n)=>{let{args:a,options:s}=l(n);return(0,i.readContract)(r,{abi:e,address:t,functionName:o,args:a,...s})}})),g&&(p.simulate=new Proxy({},{get:(n,o)=>(...n)=>{let{args:i,options:s}=l(n);return(0,a.simulateContract)(r,{abi:e,address:t,functionName:o,args:i,...s})}})),b&&(p.createEventFilter=new Proxy({},{get:(o,i)=>(...o)=>{let a=e.find(e=>"event"===e.type&&e.name===i),{args:s,options:c}=u(o,a);return(0,n.createContractEventFilter)(r,{abi:e,address:t,eventName:i,args:s,...c})}}),p.watchEvent=new Proxy({},{get:(n,o)=>(...n)=>{let i=e.find(e=>"event"===e.type&&e.name===o),{args:a,options:c}=u(n,i);return(0,s.watchContractEvent)(r,{abi:e,address:t,eventName:o,args:a,...c})}}))),h&&g&&(p.write=new Proxy({},{get:(r,n)=>(...r)=>{let{args:o,options:i}=l(r);return(0,c.writeContract)(d,{abi:e,address:t,functionName:n,args:o,...i})}})),(f||h)&&g&&(p.estimateGas=new Proxy({},{get:(n,i)=>(...n)=>{let{args:a,options:s}=l(n),c=r??d;return(0,o.estimateContractGas)(c,{abi:e,address:t,functionName:i,args:a,...s,account:s.account??d.account})}})),p.address=t,p.abi=e,p},t.getFunctionParameters=l,t.getEventParameters=u},11273:function(e,t,r){"use strict";
2821Object.defineProperty(t,"__esModule",{value:!0}),t.getRevertErrorData=t.call=void 0;let n=r(3975),o=r(28669),i=r(83984),a=r(26456),s=r(91363),c=r(9996),l=r(76286),u=r(22836),d=r(47797),f=r(86308),h=r(10133),p=r(82320),m=r(33270),g=r(48170),b=r(5434);async function v(e,t){let{account:o,batch:a=!!e.batch?.multicall,blockNumber:c,blockTag:l="latest",accessList:u,data:d,gas:g,gasPrice:v,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:C,to:A,value:P,...j}=t,k=o?(0,n.parseAccount)(o):void 0;try{(0,b.assertRequest)(t);let r=c?(0,f.numberToHex)(c):void 0,n=r||l,o=e.chain?.formatters?.transactionRequest?.format||m.formatTransactionRequest,h=o({...(0,p.extract)(j,{format:o}),from:k?.address,accessList:u,data:d,gas:g,gasPrice:v,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:C,to:A,value:P});if(a&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith(i.aggregate3Signature))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:h}))try{return await y(e,{...h,blockNumber:c,blockTag:l})}catch(e){if(!(e instanceof s.ClientChainNotConfiguredError)&&!(e instanceof s.ChainDoesNotSupportContract))throw e}let w=await e.request({method:"eth_call",params:n?[h,n]:[h]});if("0x"===w)return{data:void 0};return{data:w}}catch(a){let n=w(a),{offchainLookup:o,offchainLookupSignature:i}=await Promise.resolve().then(r.bind(r,64045));if(n?.slice(0,10)===i&&A)return{data:await o(e,{data:n,to:A})};throw(0,h.getCallError)(a,{...t,account:k,chain:e.chain})}}async function y(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:a="latest",data:h,multicallAddress:p,to:m}=t,b=p;if(!b){if(!e.chain)throw new s.ClientChainNotConfiguredError;b=(0,d.getChainContractAddress)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let v=i?(0,f.numberToHex)(i):void 0,y=v||a,{schedule:w}=(0,g.createBatchScheduler)({id:`${e.uid}.${y}`,wait:n,shouldSplitBatch(e){let t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*r},fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,u.encodeFunctionData)({abi:o.multicall3Abi,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:b},y]});return(0,l.decodeFunctionResult)({abi:o.multicall3Abi,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:E,success:x}]=await w({data:h,to:m});if(!x)throw new c.RawContractError({data:E});return"0x"===E?{data:void 0}:{data:E}}function w(e){if(!(e instanceof a.BaseError))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}t.call=v,t.getRevertErrorData=w},46376:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBlockFilter=void 0;let n=r(44929);async function o(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}t.createBlockFilter=o},99985:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createContractEventFilter=void 0;let n=r(7534),o=r(86308),i=r(44929);async function a(e,{address:t,abi:r,args:a,eventName:s,fromBlock:c,strict:l,toBlock:u}){let d=(0,i.createFilterRequestScope)(e,{method:"eth_newFilter"}),f=s?(0,n.encodeEventTopics)({abi:r,args:a,eventName:s}):void 0,h=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,o.numberToHex)(c):c,toBlock:"bigint"==typeof u?(0,o.numberToHex)(u):u,topics:f}]});return{abi:r,args:a,eventName:s,id:h,request:d(h),strict:l,type:"event"}}t.createContractEventFilter=a},3200:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventFilter=void 0;let n=r(7534),o=r(86308),i=r(44929);async function a(e,{address:t,args:r,event:a,events:s,fromBlock:c,strict:l,toBlock:u}={}){let d=s??(a?[a]:void 0),f=(0,i.createFilterRequestScope)(e,{method:"eth_newFilter"}),h=[];d&&(h=[d.flatMap(e=>(0,n.encodeEventTopics)({abi:[e],eventName:e.name,args:r}))],a&&(h=h[0]));let p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof c?(0,o.numberToHex)(c):c,toBlock:"bigint"==typeof u?(0,o.numberToHex)(u):u,...h.length?{topics:h}:{}}]});return{abi:d,args:r,eventName:a?a.name:void 0,fromBlock:c,id:p,request:f(p),strict:l,toBlock:u,type:"event"}}t.createEventFilter=a},99792:function(e,t,r){"use strict";
2821Object.defineProperty(t,"__esModule",{value:!0}),t.createPendingTransactionFilter=void 0;let n=r(44929);async function o(e){let t=(0,n.createFilterRequestScope)(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}t.createPendingTransactionFilter=o},37346:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateContractGas=void 0;let n=r(3975),o=r(22836),i=r(90042),a=r(23337);async function s(e,{abi:t,address:r,args:s,functionName:c,...l}){let u=(0,o.encodeFunctionData)({abi:t,args:s,functionName:c});try{let t=await (0,a.estimateGas)(e,{data:u,to:r,...l});return t}catch(o){let e=l.account?(0,n.parseAccount)(l.account):void 0;throw(0,i.getContractError)(o,{abi:t,address:r,args:s,docsPath:"/docs/contract/simulateContract",functionName:c,sender:e?.address})}}t.estimateContractGas=s},23337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.estimateGas=void 0;let n=r(3975),o=r(26175),i=r(86308),a=r(54141),s=r(82320),c=r(33270),l=r(5434),u=r(40623);async function d(e,t){let r=t.account??e.account;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/public/estimateGas"});let d=(0,n.parseAccount)(r);try{let{accessList:r,blockNumber:n,blockTag:o,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g,to:b,value:v,...y}="local"===d.type?await (0,u.prepareRequest)(e,t):t,w=n?(0,i.numberToHex)(n):void 0,E=w||o;(0,l.assertRequest)(t);let x=e.chain?.formatters?.transactionRequest?.format||c.formatTransactionRequest,C=x({...(0,s.extract)(y,{format:x}),from:d.address,accessList:r,data:a,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g,to:b,value:v}),A=await e.request({method:"eth_estimateGas",params:E?[C,E]:[C]});return BigInt(A)}catch(r){throw(0,a.getEstimateGasError)(r,{...t,account:d,chain:e.chain})}}t.estimateGas=d},85233:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBalance=void 0;let n=r(86308);async function o(e,{address:t,blockNumber:r,blockTag:o="latest"}){let i=r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,i||o]});return BigInt(a)}t.getBalance=o},29086:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlock=void 0;let n=r(54907),o=r(86308),i=r(23604);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,includeTransactions:s}={}){let c=s??!1,l=void 0!==r?(0,o.numberToHex)(r):void 0,u=null;if(!(u=t?await e.request({method:"eth_getBlockByHash",params:[t,c]}):await e.request({method:"eth_getBlockByNumber",params:[l||(a??"latest"),c]})))throw new n.BlockNotFoundError({blockHash:t,blockNumber:r});let d=e.chain?.formatters?.block?.format||i.formatBlock;return d(u)}t.getBlock=a},99284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockNumber=t.getBlockNumberCache=void 0;let n=r(38447),o=e=>`blockNumber.${e}`;async function i(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){let i=await (0,n.withCache)(()=>e.request({method:"eth_blockNumber"}),{cacheKey:o(e.uid),cacheTime:r??t});return BigInt(i)}t.getBlockNumberCache=function(e){return(0,n.getCache)(o(e))},t.getBlockNumber=i},47480:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBlockTransactionCount=void 0;let n=r(57114),o=r(86308);async function i(e,{blockHash:t,blockNumber:r,blockTag:i="latest"}={}){let a;let s=void 0!==r?(0,o.numberToHex)(r):void 0;return a=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||i]}),(0,n.hexToNumber)(a)}t.getBlockTransactionCount=i},88352:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBytecode=void 0;let n=r(86308);async function o(e,{address:t,blockNumber:r,blockTag:o="latest"}){let i=void 0!==r?(0,n.numberToHex)(r):void 0,a=await e.request({method:"eth_getCode",params:[t,i||o]});if("0x"!==a)return a}t.getBytecode=o},42659:function(e,t,r){"use strict";
2821Object.defineProperty(t,"__esModule",{value:!0}),t.getChainId=void 0;let n=r(57114);async function o(e){let t=await e.request({method:"eth_chainId"});return(0,n.hexToNumber)(t)}t.getChainId=o},6560:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeeHistory=void 0;let n=r(86308),o=r(92736);async function i(e,{blockCount:t,blockNumber:r,blockTag:i="latest",rewardPercentiles:a}){let s=r?(0,n.numberToHex)(r):void 0,c=await e.request({method:"eth_feeHistory",params:[(0,n.numberToHex)(t),s||i,a]});return(0,o.formatFeeHistory)(c)}t.getFeeHistory=i},36696:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterChanges=void 0;let n=r(4403),o=r(81912),i=r(80330);async function a(e,{filter:t}){let r="strict"in t&&t.strict,a=await t.request({method:"eth_getFilterChanges",params:[t.id]});return a.map(e=>{if("string"==typeof e)return e;try{let{eventName:n,args:a}="abi"in t&&t.abi?(0,o.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,i.formatLog)(e,{args:a,eventName:n})}catch(a){let r,o;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,o=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,i.formatLog)(e,{args:o?[]:{},eventName:r})}}).filter(Boolean)}t.getFilterChanges=a},43675:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilterLogs=void 0;let n=r(4403),o=r(81912),i=r(80330);async function a(e,{filter:t}){let r=t.strict??!1,a=await t.request({method:"eth_getFilterLogs",params:[t.id]});return a.map(e=>{try{let{eventName:n,args:a}="abi"in t&&t.abi?(0,o.decodeEventLog)({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,i.formatLog)(e,{args:a,eventName:n})}catch(a){let r,o;if(a instanceof n.DecodeLogDataMismatch||a instanceof n.DecodeLogTopicsMismatch){if("strict"in t&&t.strict)return;r=a.abiItem.name,o=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,i.formatLog)(e,{args:o?[]:{},eventName:r})}}).filter(Boolean)}t.getFilterLogs=a},89984:function(e,t){"use strict";async function r(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.getGasPrice=void 0,t.getGasPrice=r},96374:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=void 0;let n=r(4403),o=r(81912),i=r(7534),a=r(86308),s=r(80330);async function c(e,{address:t,blockHash:r,fromBlock:c,toBlock:l,event:u,events:d,args:f,strict:h}={}){let p=h??!1,m=d??(u?[u]:void 0),g=[];return m&&(g=[m.flatMap(e=>(0,i.encodeEventTopics)({abi:[e],eventName:e.name,args:f}))],u&&(g=g[0])),(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:g,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:g,fromBlock:"bigint"==typeof c?(0,a.numberToHex)(c):c,toBlock:"bigint"==typeof l?(0,a.numberToHex)(l):l}]})).map(e=>{try{let{eventName:t,args:r}=m?(0,o.decodeEventLog)({abi:m,data:e.data,topics:e.topics,strict:p}):{eventName:void 0,args:void 0};return(0,s.formatLog)(e,{args:r,eventName:t})}catch(o){let t,r;if(o instanceof n.DecodeLogDataMismatch||o instanceof n.DecodeLogTopicsMismatch){if(p)return;t=o.abiItem.name,r=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,s.formatLog)(e,{args:r?[]:{},eventName:t})}}).filter(Boolean)}t.getLogs=c},69894:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorageAt=void 0;let n=r(86308);async function o(e,{address:t,blockNumber:r,blockTag:o="latest",slot:i}){let a=void 0!==r?(0,n.numberToHex)(r):void 0,s=await e.request({method:"eth_getStorageAt",params:[t,i,a||o]});return s}t.getStorageAt=o},37960:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransaction=void 0;let n=r(70270),o=r(86308),i=r(1982);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,hash:s,index:c}){let l=a||"latest",u=void 0!==r?(0,o.numberToHex)(r):void 0,d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,o.numberToHex)(c)]}):(u||l)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[u||l,(0,o.numberToHex)(c)]})),!d)throw new n.TransactionNotFoundError({blockHash:t,blockNumber:r,blockTag:l,hash:s,index:c});let f=e.chain?.formatters?.transaction?.format||i.formatTransaction;return f(d)}t.getTransaction=a},44725:function(e,t,r){"use strict";
2821Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionConfirmations=void 0;let n=r(99284),o=r(37960);async function i(e,{hash:t,transactionReceipt:r}){let[i,a]=await Promise.all([(0,n.getBlockNumber)(e),t?(0,o.getTransaction)(e,{hash:t}):void 0]),s=r?.blockNumber||a?.blockNumber;return s?i-s+1n:0n}t.getTransactionConfirmations=i},92530:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionCount=void 0;let n=r(57114),o=r(86308);async function i(e,{address:t,blockTag:r="latest",blockNumber:i}){let a=await e.request({method:"eth_getTransactionCount",params:[t,i?(0,o.numberToHex)(i):r]});return(0,n.hexToNumber)(a)}t.getTransactionCount=i},60148:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionReceipt=void 0;let n=r(70270),o=r(5840);async function i(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new n.TransactionReceiptNotFoundError({hash:t});let i=e.chain?.formatters?.transactionReceipt?.format||o.formatTransactionReceipt;return i(r)}t.getTransactionReceipt=i},46580:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicall=void 0;let n=r(28669),o=r(4403),i=r(9996),a=r(76286),s=r(22836),c=r(47797),l=r(90042),u=r(33531);async function d(e,t){let{allowFailure:r=!0,batchSize:d,blockNumber:f,blockTag:h,contracts:p,multicallAddress:m}=t,g=d??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),b=m;if(!b){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");b=(0,c.getChainContractAddress)({blockNumber:f,chain:e.chain,contract:"multicall3"})}let v=[[]],y=0,w=0;for(let e=0;e<p.length;e++){let{abi:t,address:n,args:o,functionName:i}=p[e];try{let e=(0,s.encodeFunctionData)({abi:t,args:o,functionName:i});w+=e.length,g>0&&w>g&&(y++,w=(e.length-2)/2,v[y]=[]),v[y]=[...v[y],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=(0,l.getContractError)(a,{abi:t,address:n,args:o,docsPath:"/docs/contract/multicall",functionName:i});if(!r)throw e;v[y]=[...v[y],{allowFailure:!0,callData:"0x",target:n}]}}let E=await Promise.all(v.map(t=>(0,u.readContract)(e,{abi:n.multicall3Abi,address:b,args:[t],blockNumber:f,blockTag:h,functionName:"aggregate3"})));return E.flat().map(({returnData:e,success:t},n)=>{let{callData:s}=v.flat()[n],{abi:c,address:u,functionName:d,args:f}=p[n];try{if("0x"===s)throw new o.AbiDecodingZeroDataError;if(!t)throw new i.RawContractError({data:e});let n=(0,a.decodeFunctionResult)({abi:c,args:f,data:e,functionName:d});return r?{result:n,status:"success"}:n}catch(t){let e=(0,l.getContractError)(t,{abi:c,address:u,args:f,docsPath:"/docs/contract/multicall",functionName:d});if(!r)throw e;return{error:e,result:void 0,status:"failure"}}})}t.multicall=d},33531:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readContract=void 0;let n=r(76286),o=r(22836),i=r(90042),a=r(11273);async function s(e,{abi:t,address:r,args:s,functionName:c,...l}){let u=(0,o.encodeFunctionData)({abi:t,args:s,functionName:c});try{let{data:o}=await (0,a.call)(e,{data:u,to:r,...l});return(0,n.decodeFunctionResult)({abi:t,args:s,functionName:c,data:o||"0x"})}catch(e){throw(0,i.getContractError)(e,{abi:t,address:r,args:s,docsPath:"/docs/contract/readContract",functionName:c})}}t.readContract=s},63747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.simulateContract=void 0;let n=r(3975),o=r(76286),i=r(22836),a=r(90042),s=r(11273);async function c(e,{abi:t,address:r,args:c,dataSuffix:l,functionName:u,...d}){let f=d.account?(0,n.parseAccount)(d.account):void 0,h=(0,i.encodeFunctionData)({abi:t,args:c,functionName:u});try{let{data:n}=await (0,s.call)(e,{batch:!1,data:`${h}${l?l.replace("0x",""):""}`,to:r,...d}),i=(0,o.decodeFunctionResult)({abi:t,args:c,functionName:u,data:n||"0x"});return{result:i,request:{abi:t,address:r,args:c,dataSuffix:l,functionName:u,...d}}}catch(e){throw(0,a.getContractError)(e,{abi:t,address:r,args:c,docsPath:"/docs/contract/simulateContract",functionName:u,sender:f?.address})}}t.simulateContract=c},28553:function(e,t){"use strict";async function r(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}
2821Object.defineProperty(t,"__esModule",{value:!0}),t.uninstallFilter=void 0,t.uninstallFilter=r},8123:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyHash=void 0;let n=r(28669),o=r(41930),i=r(9996),a=r(56770),s=r(50634),c=r(11273);async function l(e,{address:t,hash:r,signature:l,...u}){let d=(0,s.isHex)(l)?l:(0,s.toHex)(l);try{let{data:i}=await (0,c.call)(e,{data:(0,s.encodeDeployData)({abi:n.universalSignatureValidatorAbi,args:[t,r,d],bytecode:o.universalSignatureValidatorByteCode}),...u});return(0,a.isBytesEqual)(i??"0x0","0x1")}catch(e){if(e instanceof i.CallExecutionError)return!1;throw e}}t.verifyHash=l},97859:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;let n=r(50634),o=r(8123);async function i(e,{address:t,message:r,signature:i,...a}){let s=(0,n.hashMessage)(r);return(0,o.verifyHash)(e,{address:t,hash:s,signature:i,...a})}t.verifyMessage=i},96273:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;let n=r(70834),o=r(8123);async function i(e,{address:t,signature:r,message:i,primaryType:a,types:s,domain:c,...l}){let u=(0,n.hashTypedData)({message:i,primaryType:a,types:s,domain:c});return(0,o.verifyHash)(e,{address:t,hash:u,signature:r,...l})}t.verifyTypedData=i},60789:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitForTransactionReceipt=void 0;let n=r(70270),o=r(36999),i=r(89514),a=r(58),s=r(29086),c=r(37960),l=r(60148),u=r(52489);async function d(e,{confirmations:t=1,hash:r,onReplaced:d,pollingInterval:f=e.pollingInterval,timeout:h}){let p,m,g;let b=(0,a.stringify)(["waitForTransactionReceipt",e.uid,r]),v=!1;return new Promise((a,y)=>{h&&setTimeout(()=>y(new n.WaitForTransactionReceiptTimeoutError({hash:r})),h);let w=(0,o.observe)(b,{onReplaced:d,resolve:a,reject:y},o=>{let a=(0,u.watchBlockNumber)(e,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:f,async onBlockNumber(u){if(v)return;let d=u,f=e=>{a(),e(),w()};try{if(g){if(d-g.blockNumber+1n<t)return;f(()=>o.resolve(g));return}if(p||(v=!0,await (0,i.withRetry)(async()=>{(p=await (0,c.getTransaction)(e,{hash:r})).blockNumber&&(d=p.blockNumber)},{delay:({count:e})=>200*~~(1<<e),retryCount:6}),v=!1),g=await (0,l.getTransactionReceipt)(e,{hash:r}),t>0&&d-g.blockNumber+1n<t)return;f(()=>o.resolve(g))}catch(r){if(p&&(r instanceof n.TransactionNotFoundError||r instanceof n.TransactionReceiptNotFoundError)){m=p;let r=await (0,s.getBlock)(e,{blockNumber:d,includeTransactions:!0}),n=r.transactions.find(({from:e,nonce:t})=>e===m.from&&t===m.nonce);if(!n||d-(g=await (0,l.getTransactionReceipt)(e,{hash:n.hash})).blockNumber+1n<t)return;let i="replaced";n.to===m.to&&n.value===m.value?i="repriced":n.from===n.to&&0n===n.value&&(i="cancelled"),f(()=>{o.onReplaced?.({reason:i,replacedTransaction:m,transaction:n,transactionReceipt:g}),o.resolve(g)})}else f(()=>o.reject(r))}}})})})}t.waitForTransactionReceipt=d},52489:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlockNumber=void 0;let n=r(57114),o=r(36999),i=r(7760),a=r(58),s=r(99284);t.watchBlockNumber=function(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:c,onError:l,poll:u,pollingInterval:d=e.pollingInterval}){let f,h,p;let m=void 0!==u?u:"webSocket"!==e.transport.type;return m?(()=>{let n=(0,a.stringify)(["watchBlockNumber",e.uid,t,r,d]);return(0,o.observe)(n,{onBlockNumber:c,onError:l},n=>(0,i.poll)(async()=>{try{let t=await (0,s.getBlockNumber)(e,{cacheTime:0});if(f){if(t===f)return;if(t-f>1&&r)for(let e=f+1n;e<t;e++)n.onBlockNumber(e,f),f=e}(!f||t>f)&&(n.onBlockNumber(t,f),f=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:d}))})():(h=!0,p=()=>h=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!h)return;let t=(0,n.hexToBigInt)(e.result?.number);c(t,f),f=t},onError(e){l?.(e)}});p=t,h||p()}catch(e){l?.(e)}})(),p)}},70517:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchBlocks=void 0;let n=r(23604),o=r(36999),i=r(7760),a=r(58),s=r(29086);t.watchBlocks=function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:c=!1,onBlock:l,onError:u,includeTransactions:d,poll:f,pollingInterval:h=e.pollingInterval}){let p,m,g;let b=void 0!==f?f:"webSocket"!==e.transport.type,v=d??!1;return b?(()=>{let n=(0,a.stringify)(["watchBlocks",e.uid,r,c,v,h]);return(0,o.observe)(n,{onBlock:l,onError:u},n=>(0,i.poll)(async()=>{try{let o=await (0,s.getBlock)(e,{blockTag:t,includeTransactions:v});if(o.number&&p?.number){if(o.number===p.number)return;if(o.number-p.number>1&&r)for(let t=p?.number+1n;t<o.number;t++){let r=await (0,s.getBlock)(e,{blockNumber:t,includeTransactions:v});n.onBlock(r,p),p=r}}(!p?.number||"pending"===t&&!o?.number||o.number&&o.number>p.number)&&(n.onBlock(o,p),p=o)}catch(e){n.onError?.(e)}},{emitOnBegin:c,interval:h}))})():(m=!0,g=()=>m=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!m)return;let r=e.chain?.formatters?.block?.format||n.formatBlock,o=r(t.result);l(o,p),p=o},onError(e){u?.(e)}});g=t,m||g()}catch(e){u?.(e)}})(),g)}},49488:function(e,t,r){"use strict";
2821Object.defineProperty(t,"__esModule",{value:!0}),t.watchContractEvent=void 0;let n=r(95481),o=r(36999),i=r(7760),a=r(58),s=r(68995),c=r(99985),l=r(99284),u=r(36696),d=r(96374),f=r(28553);t.watchContractEvent=function(e,{abi:t,address:r,args:h,batch:p=!0,eventName:m,onError:g,onLogs:b,pollingInterval:v=e.pollingInterval,strict:y}){let w=(0,a.stringify)(["watchContractEvent",r,h,p,e.uid,m,v]),E=y??!1;return(0,o.observe)(w,{onLogs:b,onError:g},o=>{let a,g;let b=!1,y=(0,i.poll)(async()=>{if(!b){try{g=await (0,c.createContractEventFilter)(e,{abi:t,address:r,args:h,eventName:m,strict:E})}catch{}b=!0;return}try{let i;if(g)i=await (0,u.getFilterChanges)(e,{filter:g});else{let o=await (0,l.getBlockNumber)(e);i=a&&a!==o?await (0,d.getLogs)(e,{address:r,args:h,fromBlock:a+1n,toBlock:o,event:(0,n.getAbiItem)({abi:t,name:m})}):[],a=o}if(0===i.length)return;p?o.onLogs(i):i.forEach(e=>o.onLogs([e]))}catch(e){g&&e instanceof s.InvalidInputRpcError&&(b=!1),o.onError?.(e)}},{emitOnBegin:!0,interval:v});return async()=>{g&&await (0,f.uninstallFilter)(e,{filter:g}),y()}})}},63558:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchEvent=void 0;let n=r(36999),o=r(7760),i=r(58),a=r(60793),s=r(3200),c=r(99284),l=r(36696),u=r(96374),d=r(28553);t.watchEvent=function(e,{address:t,args:r,batch:f=!0,event:h,events:p,onError:m,onLogs:g,pollingInterval:b=e.pollingInterval,strict:v}){let y=(0,i.stringify)(["watchEvent",t,r,f,e.uid,h,b]),w=v??!1;return(0,n.observe)(y,{onLogs:g,onError:m},n=>{let i,m;let g=!1,v=(0,o.poll)(async()=>{if(!g){try{m=await (0,s.createEventFilter)(e,{address:t,args:r,event:h,events:p,strict:w})}catch{}g=!0;return}try{let o;if(m)o=await (0,l.getFilterChanges)(e,{filter:m});else{let n=await (0,c.getBlockNumber)(e);o=i&&i!==n?await (0,u.getLogs)(e,{address:t,args:r,event:h,events:p,fromBlock:i+1n,toBlock:n}):[],i=n}if(0===o.length)return;f?n.onLogs(o):o.forEach(e=>n.onLogs([e]))}catch(e){m&&e instanceof a.InvalidInputRpcError&&(g=!1),n.onError?.(e)}},{emitOnBegin:!0,interval:b});return async()=>{m&&await (0,d.uninstallFilter)(e,{filter:m}),v()}})}},52674:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.watchPendingTransactions=void 0;let n=r(36999),o=r(7760),i=r(58),a=r(99792),s=r(36696),c=r(28553);t.watchPendingTransactions=function(e,{batch:t=!0,onError:r,onTransactions:l,poll:u,pollingInterval:d=e.pollingInterval}){let f,h;let p=void 0!==u?u:"webSocket"!==e.transport.type;return p?(()=>{let u=(0,i.stringify)(["watchPendingTransactions",e.uid,t,d]);return(0,n.observe)(u,{onTransactions:l,onError:r},r=>{let n;let i=(0,o.poll)(async()=>{try{if(!n)try{n=await (0,a.createPendingTransactionFilter)(e);return}catch(e){throw i(),e}let o=await (0,s.getFilterChanges)(e,{filter:n});if(0===o.length)return;t?r.onTransactions(o):o.forEach(e=>r.onTransactions([e]))}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{n&&await (0,c.uninstallFilter)(e,{filter:n}),i()}})})():(f=!0,h=()=>f=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!f)return;let t=e.result;l([t])},onError(e){r?.(e)}});h=t,f||h()}catch(e){r?.(e)}})(),h)}},90233:function(e,t){"use strict";async function r(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.dropTransaction=void 0,t.dropTransaction=r},79340:function(e,t){"use strict";async function r(e){return"ganache"===e.mode?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}Object.defineProperty(t,"__esModule",{value:!0}),t.getAutomine=void 0,t.getAutomine=r},36822:function(e,t){"use strict";async function r(e){return await e.request({method:"txpool_content"})}Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolContent=void 0,t.getTxpoolContent=r},31125:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTxpoolStatus=void 0;let n=r(57114);async function o(e){let{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:(0,n.hexToNumber)(t),queued:(0,n.hexToNumber)(r)}}t.getTxpoolStatus=o},48328:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}
2821Object.defineProperty(t,"__esModule",{value:!0}),t.impersonateAccount=void 0,t.impersonateAccount=r},86437:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.increaseTime=void 0;let n=r(86308);async function o(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[(0,n.numberToHex)(t)]})}t.increaseTime=o},19741:function(e,t){"use strict";async function r(e){return await e.request({method:"txpool_inspect"})}Object.defineProperty(t,"__esModule",{value:!0}),t.inspectTxpool=void 0,t.inspectTxpool=r},564:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mine=void 0;let n=r(86308);async function o(e,{blocks:t,interval:r}){"ganache"===e.mode?await e.request({method:"evm_mine",params:[{blocks:(0,n.numberToHex)(t)}]}):await e.request({method:`${e.mode}_mine`,params:[(0,n.numberToHex)(t),(0,n.numberToHex)(r||0)]})}t.mine=o},86619:function(e,t){"use strict";async function r(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}Object.defineProperty(t,"__esModule",{value:!0}),t.removeBlockTimestampInterval=void 0,t.removeBlockTimestampInterval=r},48702:function(e,t){"use strict";async function r(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}Object.defineProperty(t,"__esModule",{value:!0}),t.reset=void 0,t.reset=r},33921:function(e,t){"use strict";async function r(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.revert=void 0,t.revert=r},93631:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendUnsignedTransaction=void 0;let n=r(82320),o=r(33270);async function i(e,t){let{accessList:r,data:i,from:a,gas:s,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:f,value:h,...p}=t,m=e.chain?.formatters?.transactionRequest?.format||o.formatTransactionRequest,g=m({...(0,n.extract)(p,{format:m}),accessList:r,data:i,from:a,gas:s,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:f,value:h}),b=await e.request({method:"eth_sendUnsignedTransaction",params:[g]});return b}t.sendUnsignedTransaction=i},1029:function(e,t){"use strict";async function r(e,t){"ganache"===e.mode?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setAutomine=void 0,t.setAutomine=r},86128:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBalance=void 0;let n=r(86308);async function o(e,{address:t,value:r}){"ganache"===e.mode?await e.request({method:"evm_setAccountBalance",params:[t,(0,n.numberToHex)(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,(0,n.numberToHex)(r)]})}t.setBalance=o},68923:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockGasLimit=void 0;let n=r(86308);async function o(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[(0,n.numberToHex)(t)]})}t.setBlockGasLimit=o},58892:function(e,t){"use strict";async function r(e,{interval:t}){await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setBlockTimestampInterval=void 0,t.setBlockTimestampInterval=r},18954:function(e,t){"use strict";async function r(e,{address:t,bytecode:r}){await e.request({method:`${e.mode}_setCode`,params:[t,r]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCode=void 0,t.setCode=r},68335:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setCoinbase=void 0,t.setCoinbase=r},3332:function(e,t){"use strict";async function r(e,{interval:t}){await e.request({method:"evm_setIntervalMining",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setIntervalMining=void 0,t.setIntervalMining=r},49895:function(e,t){"use strict";async function r(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}
2821Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingEnabled=void 0,t.setLoggingEnabled=r},82900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMinGasPrice=void 0;let n=r(86308);async function o(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[(0,n.numberToHex)(t)]})}t.setMinGasPrice=o},25912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockBaseFeePerGas=void 0;let n=r(86308);async function o(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[(0,n.numberToHex)(t)]})}t.setNextBlockBaseFeePerGas=o},26605:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNextBlockTimestamp=void 0;let n=r(86308);async function o(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[(0,n.numberToHex)(t)]})}t.setNextBlockTimestamp=o},58942:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=void 0;let n=r(86308);async function o(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,(0,n.numberToHex)(r)]})}t.setNonce=o},58499:function(e,t){"use strict";async function r(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.setRpcUrl=void 0,t.setRpcUrl=r},65972:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageAt=void 0;let n=r(86308);async function o(e,{address:t,index:r,value:o}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,"number"==typeof r?(0,n.numberToHex)(r):r,o]})}t.setStorageAt=o},68183:function(e,t){"use strict";async function r(e){return await e.request({method:"evm_snapshot"})}Object.defineProperty(t,"__esModule",{value:!0}),t.snapshot=void 0,t.snapshot=r},9619:function(e,t){"use strict";async function r(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.stopImpersonatingAccount=void 0,t.stopImpersonatingAccount=r},86247:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addChain=void 0;let n=r(86308);async function o(e,{chain:t}){let{id:r,name:o,nativeCurrency:i,rpcUrls:a,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,n.numberToHex)(r),chainName:o,nativeCurrency:i,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]})}t.addChain=o},33266:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deployContract=void 0;let n=r(77833),o=r(66773);t.deployContract=function(e,{abi:t,args:r,bytecode:i,...a}){let s=(0,n.encodeDeployData)({abi:t,args:r,bytecode:i}
2821);return(0,o.sendTransaction)(e,{...a,data:s})}},42386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddresses=void 0;let n=r(36556);async function o(e){let t=await e.request({method:"eth_accounts"});return t.map(e=>(0,n.checksumAddress)(e))}t.getAddresses=o},41978:function(e,t){"use strict";async function r(e){let t=await e.request({method:"wallet_getPermissions"});return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getPermissions=void 0,t.getPermissions=r},94265:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestAddresses=void 0;let n=r(36556);async function o(e){let t=await e.request({method:"eth_requestAccounts"});return t.map(e=>(0,n.getAddress)(e))}t.requestAddresses=o},38315:function(e,t){"use strict";async function r(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}Object.defineProperty(t,"__esModule",{value:!0}),t.requestPermissions=void 0,t.requestPermissions=r},66773:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendTransaction=void 0;let n=r(3975),o=r(26175),i=r(47797),a=r(72533),s=r(82320),c=r(33270),l=r(5434),u=r(40623),d=r(42659);async function f(e,t){let{account:r=e.account,chain:f=e.chain,accessList:h,data:p,gas:m,gasPrice:g,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:y,to:w,value:E,...x}=t;if(!r)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});let C=(0,n.parseAccount)(r);try{let r;if((0,l.assertRequest)(t),null!==f&&(r=await (0,d.getChainId)(e),(0,i.assertCurrentChain)({currentChainId:r,chain:f})),"local"===C.type){let t=await (0,u.prepareRequest)(e,{account:C,accessList:h,chain:f,data:p,gas:m,gasPrice:g,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:y,to:w,value:E,...x});r||(r=await (0,d.getChainId)(e));let n=f?.serializers?.transaction,o=await C.signTransaction({...t,chainId:r},{serializer:n});return await e.request({method:"eth_sendRawTransaction",params:[o]})}let n=f?.formatters?.transactionRequest?.format||c.formatTransactionRequest,o=n({...(0,s.extract)(x,{format:n}),accessList:h,data:p,from:C.address,gas:m,gasPrice:g,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:y,to:w,value:E});return await e.request({method:"eth_sendTransaction",params:[o]})}catch(e){throw(0,a.getTransactionError)(e,{...t,account:C,chain:t.chain||void 0})}}t.sendTransaction=f},73753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signMessage=void 0;let n=r(3975),o=r(26175),i=r(86308);async function a(e,{account:t=e.account,message:r}){if(!t)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});let a=(0,n.parseAccount)(t);if("local"===a.type)return a.signMessage({message:r});let s="string"==typeof r?(0,i.stringToHex)(r):r.raw instanceof Uint8Array?(0,i.toHex)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,a.address]})}t.signMessage=a},58070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signTypedData=void 0;let n=r(3975),o=r(26175),i=r(77116),a=r(58),s=r(42586);async function c(e,{account:t=e.account,domain:r,message:c,primaryType:l,types:u}){if(!t)throw new o.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});let d=(0,n.parseAccount)(t),f={EIP712Domain:["string"==typeof r?.name&&{name:"name",type:"string"},r?.version&&{name:"version",type:"string"},"number"==typeof r?.chainId&&{name:"chainId",type:"uint256"},r?.verifyingContract&&{name:"verifyingContract",type:"address"},r?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...u};if((0,s.validateTypedData)({domain:r,message:c,primaryType:l,types:f}),"local"===d.type)return d.signTypedData({domain:r,primaryType:l,types:f,message:c});let h=(0,a.stringify)({domain:r??{},primaryType:l,types:f,message:c},(e,t)=>(0,i.isHex)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[d.address,h]})}t.signTypedData=c},70173:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchChain=void 0;let n=r(86308);async function o(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]})}t.switchChain=o},82840:function(e,t){"use strict";async function r(e,t){let r=await e.request({method:"wallet_watchAsset",params:t});return r}
2821Object.defineProperty(t,"__esModule",{value:!0}),t.watchAsset=void 0,t.watchAsset=r},97747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.writeContract=void 0;let n=r(22836),o=r(66773);async function i(e,{abi:t,address:r,args:i,dataSuffix:a,functionName:s,...c}){let l=(0,n.encodeFunctionData)({abi:t,args:i,functionName:s}),u=await (0,o.sendTransaction)(e,{data:`${l}${a?a.replace("0x",""):""}`,to:r,...c});return u}t.writeContract=i},23259:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=void 0;let n=r(43817),o=r(41217);t.createClient=function(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,key:i="base",name:a="Base Client",pollingInterval:s=4e3,type:c="base"}=e,l=e.chain,u=e.account?(0,n.parseAccount)(e.account):void 0,{config:d,request:f,value:h}=e.transport({chain:l,pollingInterval:s}),p={...d,...h},m={account:u,batch:t,cacheTime:r,chain:l,key:i,name:a,pollingInterval:s,request:f,transport:p,type:c,uid:(0,o.uid)()};return Object.assign(m,{extend:function e(t){return r=>{let n=r(t);for(let e in m)delete n[e];let o={...t,...n};return Object.assign(o,{extend:e(o)})}}(m)})}},86610:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPublicClient=void 0;let n=r(23259),o=r(8980);t.createPublicClient=function(e){let{key:t="public",name:r="Public Client"}=e,i=(0,n.createClient)({...e,key:t,name:r,type:"publicClient"});return i.extend(o.publicActions)}},34223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTestClient=void 0;let n=r(23259),o=r(49467);t.createTestClient=function(e){let{key:t="test",name:r="Test Client",mode:i}=e,a=(0,n.createClient)({...e,key:t,name:r,type:"testClient"});return a.extend(e=>({mode:i,...(0,o.testActions)({mode:i})(e)}))}},32415:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWalletClient=void 0;let n=r(23259),o=r(47839);t.createWalletClient=function(e){let{key:t="wallet",name:r="Wallet Client",transport:i}=e,a=(0,n.createClient)({...e,key:t,name:r,transport:e=>i({...e,retryCount:0}),type:"walletClient"});return a.extend(o.walletActions)}},8980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicActions=void 0;let n=r(22440),o=r(32637),i=r(59593),a=r(12429),s=r(43896),c=r(11273),l=r(46376),u=r(99985),d=r(3200),f=r(99792),h=r(37346),p=r(23337),m=r(85233),g=r(29086),b=r(99284),v=r(47480),y=r(88352),w=r(42659),E=r(6560),x=r(36696),C=r(43675),A=r(89984),P=r(96374),j=r(69894),k=r(37960),O=r(44725),S=r(92530),I=r(60148),T=r(46580),B=r(33531),_=r(63747),D=r(28553),$=r(97859),M=r(96273),R=r(60789),N=r(52489),F=r(70517),L=r(49488),U=r(63558),z=r(52674);t.publicActions=function(e){return{call:t=>(0,c.call)(e,t),createBlockFilter:()=>(0,l.createBlockFilter)(e),createContractEventFilter:t=>(0,u.createContractEventFilter)(e,t),createEventFilter:t=>(0,d.createEventFilter)(e,t),createPendingTransactionFilter:()=>(0,f.createPendingTransactionFilter)(e),estimateContractGas:t=>(0,h.estimateContractGas)(e,t),estimateGas:t=>(0,p.estimateGas)(e,t),getBalance:t=>(0,m.getBalance)(e,t),getBlock:t=>(0,g.getBlock)(e,t),getBlockNumber:t=>(0,b.getBlockNumber)(e,t),getBlockTransactionCount:t=>(0,v.getBlockTransactionCount)(e,t),getBytecode:t=>(0,y.getBytecode)(e,t),getChainId:()=>(0,w.getChainId)(e),getEnsAddress:t=>(0,n.getEnsAddress)(e,t),getEnsAvatar:t=>(0,o.getEnsAvatar)(e,t),getEnsName:t=>(0,i.getEnsName)(e,t),getEnsResolver:t=>(0,a.getEnsResolver)(e,t),getEnsText:t=>(0,s.getEnsText)(e,t),getFeeHistory:t=>(0,E.getFeeHistory)(e,t),getFilterChanges:t=>(0,x.getFilterChanges)(e,t),getFilterLogs:t=>(0,C.getFilterLogs)(e,t),getGasPrice:()=>(0,A.getGasPrice)(e),getLogs:t=>(0,P.getLogs)(e,t),getStorageAt:t=>(0,j.getStorageAt)(e,t),getTransaction:t=>(0,k.getTransaction)(e,t),getTransactionConfirmations:t=>(0,O.getTransactionConfirmations)(e,t),getTransactionCount:t=>(0,S.getTransactionCount)(e,t),getTransactionReceipt:t=>(0,I.getTransactionReceipt)(e,t),multicall:t=>(0,T.multicall)(e,t),readContract:t=>(0,B.readContract)(e,t),simulateContract:t=>(0,_.simulateContract)(e,t),verifyMessage:t=>(0,$.verifyMessage)(e,t),verifyTypedData:t=>(0,M.verifyTypedData)(e,t),uninstallFilter:t=>(0,D.uninstallFilter)(e,t),waitForTransactionReceipt:t=>(0,R.waitForTransactionReceipt)(e,t),watchBlocks:t=>(0,F.watchBlocks)(e,t),watchBlockNumber:t=>(0,N.watchBlockNumber)(e,t),watchContractEvent:t=>(0,L.watchContractEvent)(e,t),watchEvent:t=>(0,U.watchEvent)(e,t),watchPendingTransactions:t=>(0,z.watchPendingTransactions)(e,t)}}},49467:function(e,t,r){"use strict";
2821Object.defineProperty(t,"__esModule",{value:!0}),t.testActions=void 0;let n=r(90233),o=r(79340),i=r(36822),a=r(31125),s=r(48328),c=r(86437),l=r(19741),u=r(564),d=r(86619),f=r(48702),h=r(33921),p=r(93631),m=r(1029),g=r(86128),b=r(68923),v=r(58892),y=r(18954),w=r(68335),E=r(3332),x=r(49895),C=r(82900),A=r(25912),P=r(26605),j=r(58942),k=r(58499),O=r(65972),S=r(68183),I=r(9619);t.testActions=function({mode:e}){return t=>{let r=t.extend(()=>({mode:e}));return{dropTransaction:e=>(0,n.dropTransaction)(r,e),getAutomine:()=>(0,o.getAutomine)(r),getTxpoolContent:()=>(0,i.getTxpoolContent)(r),getTxpoolStatus:()=>(0,a.getTxpoolStatus)(r),impersonateAccount:e=>(0,s.impersonateAccount)(r,e),increaseTime:e=>(0,c.increaseTime)(r,e),inspectTxpool:()=>(0,l.inspectTxpool)(r),mine:e=>(0,u.mine)(r,e),removeBlockTimestampInterval:()=>(0,d.removeBlockTimestampInterval)(r),reset:e=>(0,f.reset)(r,e),revert:e=>(0,h.revert)(r,e),sendUnsignedTransaction:e=>(0,p.sendUnsignedTransaction)(r,e),setAutomine:e=>(0,m.setAutomine)(r,e),setBalance:e=>(0,g.setBalance)(r,e),setBlockGasLimit:e=>(0,b.setBlockGasLimit)(r,e),setBlockTimestampInterval:e=>(0,v.setBlockTimestampInterval)(r,e),setCode:e=>(0,y.setCode)(r,e),setCoinbase:e=>(0,w.setCoinbase)(r,e),setIntervalMining:e=>(0,E.setIntervalMining)(r,e),setLoggingEnabled:e=>(0,x.setLoggingEnabled)(r,e),setMinGasPrice:e=>(0,C.setMinGasPrice)(r,e),setNextBlockBaseFeePerGas:e=>(0,A.setNextBlockBaseFeePerGas)(r,e),setNextBlockTimestamp:e=>(0,P.setNextBlockTimestamp)(r,e),setNonce:e=>(0,j.setNonce)(r,e),setRpcUrl:e=>(0,k.setRpcUrl)(r,e),setStorageAt:e=>(0,O.setStorageAt)(r,e),snapshot:()=>(0,S.snapshot)(r),stopImpersonatingAccount:e=>(0,I.stopImpersonatingAccount)(r,e)}}}},47839:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletActions=void 0;let n=r(42659),o=r(86247),i=r(33266),a=r(42386),s=r(41978),c=r(94265),l=r(38315),u=r(66773),d=r(73753),f=r(58070),h=r(70173),p=r(82840),m=r(97747);t.walletActions=function(e){return{addChain:t=>(0,o.addChain)(e,t),deployContract:t=>(0,i.deployContract)(e,t),getAddresses:()=>(0,a.getAddresses)(e),getChainId:()=>(0,n.getChainId)(e),getPermissions:()=>(0,s.getPermissions)(e),requestAddresses:()=>(0,c.requestAddresses)(e),requestPermissions:t=>(0,l.requestPermissions)(e,t),sendTransaction:t=>(0,u.sendTransaction)(e,t),signMessage:t=>(0,d.signMessage)(e,t),signTypedData:t=>(0,f.signTypedData)(e,t),switchChain:t=>(0,h.switchChain)(e,t),watchAsset:t=>(0,p.watchAsset)(e,t),writeContract:t=>(0,m.writeContract)(e,t)}}},42255:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransport=void 0;let n=r(25056);t.createTransport=function({key:e,name:t,request:r,retryCount:o=3,retryDelay:i=150,timeout:a,type:s},c){return{config:{key:e,name:t,request:r,retryCount:o,retryDelay:i,timeout:a,type:s},request:(0,n.buildRequest)(r,{retryCount:o,retryDelay:i}),value:c}}},99161:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.custom=void 0;let n=r(42255);t.custom=function(e,t={}){let{key:r="custom",name:o="Custom Provider",retryDelay:i}=t;return({retryCount:a})=>(0,n.createTransport)({key:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:i,type:"custom"})}},72826:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rankTransports=t.fallback=void 0;let n=r(25056),o=r(78967),i=r(42255);function a({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:i=1e3,transports:a,weights:s={}}){let{stability:c=.7,latency:l=.3}=s,u=[],d=async()=>{let s=await Promise.all(a.map(async t=>{let r,n;let o=t({chain:e,retryCount:0,timeout:i}),a=Date.now();try{await o.request({method:"net_listening"}),n=1}catch{n=0}finally{r=Date.now()}let s=r-a;return{latency:s,success:n}}));u.push(s),u.length>n&&u.shift();let f=Math.max(...u.map(e=>Math.max(...e.map(({latency:e})=>e)))),h=a.map((e,t)=>{let r=u.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,o=u.map(e=>e[t].success),i=o.reduce((e,t)=>e+t,0)/o.length;return 0===i?[0,t]:[l*(1-n/f)+c*i,t]}).sort((e,t)=>t[0]-e[0]);r(h.map(([,e])=>a[e])),await (0,o.wait)(t),d()};d()}t.fallback=function(e,t={}){let{key:r="fallback",name:o="Fallback",rank:s=!1,retryCount:c,retryDelay:l}=t;return({chain:t,pollingInterval:u=4e3,timeout:d})=>{let f=e,h=()=>{},p=(0,i.createTransport)({key:r,name:o,async request({method:e,params:r}){let o=async(i=0)=>{let a=f[i]({chain:t,retryCount:0,timeout:d});try{let t=await a.request({method:e,params:r});return h({method:e,params:r,response:t,transport:a,status:"success"}),t}catch(t){if(h({error:t,method:e,params:r,transport:a,status:"error"}),(0,n.isDeterministicError)(t)||i===f.length-1)throw t;return o(i+1)}};return o()},retryCount:c,retryDelay:l,type:"fallback"},{onResponse:e=>h=e,transports:f.map(e=>e({chain:t,retryCount:0}))});if(s){let e="object"==typeof s?s:{};a({chain:t,interval:e.interval??u,onTransports:e=>
2821f=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:f,weights:e.weights})}return p}},t.rankTransports=a},28216:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.http=void 0;let n=r(72782),o=r(44681),i=r(48170),a=r(82530),s=r(42255);t.http=function(e,t={}){let{batch:r,fetchOptions:c,key:l="http",name:u="HTTP JSON-RPC",retryDelay:d}=t;return({chain:f,retryCount:h,timeout:p})=>{let{batchSize:m=1e3,wait:g=0}="object"==typeof r?r:{},b=t.retryCount??h,v=p??t.timeout??1e4,y=e||f?.rpcUrls.default.http[0];if(!y)throw new o.UrlRequiredError;return(0,s.createTransport)({key:l,name:u,async request({method:t,params:o}){let s={method:t,params:o},{schedule:l}=(0,i.createBatchScheduler)({id:`${e}`,wait:g,shouldSplitBatch:e=>e.length>m,fn:e=>a.rpc.http(y,{body:e,fetchOptions:c,timeout:v})}),u=async e=>r?l(e):[await a.rpc.http(y,{body:e,fetchOptions:c,timeout:v})],[{error:d,result:f}]=await u(s);if(d)throw new n.RpcRequestError({body:s,error:d,url:y});return f},retryCount:b,retryDelay:d,timeout:v,type:"http"},{url:e})}}},37003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webSocket=void 0;let n=r(72782),o=r(44681),i=r(82530),a=r(42255);t.webSocket=function(e,t={}){let{key:r="webSocket",name:s="WebSocket JSON-RPC",retryDelay:c}=t;return({chain:l,retryCount:u,timeout:d})=>{let f=t.retryCount??u,h=d??t.timeout??1e4,p=e||l?.rpcUrls.default.webSocket?.[0];if(!p)throw new o.UrlRequiredError;return(0,a.createTransport)({key:r,name:s,async request({method:e,params:t}){let r={method:e,params:t},o=await (0,i.getSocket)(p),{error:a,result:s}
2821=await i.rpc.webSocketAsync(o,{body:r,timeout:h});if(a)throw new n.RpcRequestError({body:r,error:a,url:p});return s},retryCount:f,retryDelay:c,timeout:h,type:"webSocket"},{getSocket:()=>(0,i.getSocket)(p),async subscribe({params:e,onData:t,onError:r}){let n=await (0,i.getSocket)(p),{result:o}=await new Promise((o,a)=>i.rpc.webSocket(n,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){a(e.error),r?.(e.error);return}if("number"==typeof e.id){o(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:o,unsubscribe:async()=>new Promise(e=>i.rpc.webSocket(n,{body:{method:"eth_unsubscribe",params:[o]},onResponse:e}))}}})}}},28669:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorAbi=t.smartAccountAbi=t.addressResolverAbi=t.textResolverAbi=t.universalResolverReverseAbi=t.universalResolverResolveAbi=t.multicall3Abi=void 0,t.multicall3Abi=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}];let r=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}];t.universalResolverResolveAbi=[...r,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],t.universalResolverReverseAbi=[...r,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],t.textResolverAbi=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],t.addressResolverAbi=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],t.smartAccountAbi=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],t.universalSignatureValidatorAbi=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},77243:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroAddress=void 0,t.zeroAddress="0x0000000000000000000000000000000000000000"},83984:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate3Signature=void 0,t.aggregate3Signature="0x82ad56cb"},41930:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.universalSignatureValidatorByteCode=void 0,t.universalSignatureValidatorByteCode="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b8152
282160206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b60008060006060848
282160312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},84387:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=void 0,t.maxInt8=2n**(8n-1n),t.maxInt16=2n**(16n-1n),t.maxInt24=2n**(24n-1n),t.maxInt32=2n**(32n-1n),t.maxInt40=2n**(40n-1n),t.maxInt48=2n**(48n-1n),t.maxInt56=2n**(56n-1n),t.maxInt64=2n**(64n-1n),t.maxInt72=2n**(72n-1n),t.maxInt80=2n**(80n-1n),t.maxInt88=2n**(88n-1n),t.maxInt96=2n**(96n-1n),t.maxInt104=2n**(104n-1n),t.maxInt112=2n**(112n-1n),t.maxInt120=2n**(120n-1n),t.maxInt128=2n**(128n-1n),t.maxInt136=2n**(136n-1n),t.maxInt144=2n**(144n-1n),t.maxInt152=2n**(152n-1n),t.maxInt160=2n**(160n-1n),t.maxInt168=2n**(168n-1n),t.maxInt176=2n**(176n-1n),t.maxInt184=2n**(184n-1n),t.maxInt192=2n**(192n-1n),t.maxInt200=2n**(200n-1n),t.maxInt208=2n**(208n-1n),t.maxInt216=2n**(216n-1n),t.maxInt224=2n**(224n-1n),t.maxInt232=2n**(232n-1n),t.maxInt240=2n**(240n-1n),t.maxInt248=2n**(248n-1n),t.maxInt256=2n**(256n-1n),t.minInt8=-(2n**8n),t.minInt16=-(2n**16n),t.minInt24=-(2n**24n),t.minInt32=-(2n**32n),t.minInt40=-(2n**40n),t.minInt48=-(2n**48n),t.minInt56=-(2n**56n),t.minInt64=-(2n**64n),t.minInt72=-(2n**72n),t.minInt80=-(2n**80n),t.minInt88=-(2n**88n),t.minInt96=-(2n**96n),t.minInt104=-(2n**104n),t.minInt112=-(2n**112n),t.minInt120=-(2n**120n),t.minInt128=-(2n**128n),t.minInt136=-(2n**136n),t.minInt144=-(2n**144n),t.minInt152=-(2n**152n),t.minInt160=-(2n**160n),t.minInt168=-(2n**168n),t.minInt176=-(2n**176n),t.minInt184=-(2n**184n),t.minInt192=-(2n**192n),t.minInt200=-(2n**200n),t.minInt208=-(2n**208n),t.minInt216=-(2n**216n),t.minInt224=-(2n**224n),t.minInt232=-(2n**232n),t.minInt240=-(2n**240n),t.minInt248=-(2n**248n),t.minInt256=-(2n**256n),t.maxUint8=2n**8n,t.maxUint16=2n**16n,t.maxUint24=2n**24n,t.maxUint32=2n**32n,t.maxUint40=2n**40n,t.maxUint48=2n**48n,t.maxUint56=2n**56n,t.maxUint64=2n**64n,t.maxUint72=2n**72n,t.maxUint80=2n**80n,t.maxUint88=2n**88n,t.maxUint96=2n**96n,t.maxUint104=2n**104n,t.maxUint112=2n**112n,t.maxUint120=2n**120n,t.maxUint128=2n**128n,t.maxUint136=2n**136n,t.maxUint144=2n**144n,t.maxUint152=2n**152n,t.maxUint160=2n**160n,t.maxUint168=2n**168n,t.maxUint176=2n**176n,t.maxUint184=2n**184n,t.maxUint192=2n**192n,t.maxUint200=2n**200n,t.maxUint208=2n**208n,t.maxUint216=2n**216n,t.maxUint224=2n**224n,t.maxUint232=2n**232n,t.maxUint240=2n**240n,t.maxUint248=2n**248n,t.maxUint256=2n**256n},6049:function(e,t){"use strict";
2821Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPanic=t.solidityError=t.panicReasons=void 0,t.panicReasons={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},t.solidityError={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},t.solidityPanic={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},99225:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.weiUnits=t.gweiUnits=t.etherUnits=void 0,t.etherUnits={gwei:9,wei:18},t.gweiUnits={ether:-9,wei:9},t.weiUnits={ether:-18,gwei:-9}},4403:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedPackedAbiType=t.InvalidDefinitionTypeError=t.InvalidArrayError=t.InvalidAbiDecodingTypeError=t.InvalidAbiEncodingTypeError=t.DecodeLogTopicsMismatch=t.DecodeLogDataMismatch=t.BytesSizeMismatchError=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingBytesSizeMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeTooSmallError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=void 0;let n=r(16759),o=r(66859),i=r(26456);class a extends i.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}t.AbiConstructorNotFoundError=a;class s extends i.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}t.AbiConstructorParamsNotFoundError=s;class c extends i.BaseError{constructor({data:e,size:t}){super(`Data size of ${t}
2821 bytes is invalid. 2822Size must be in increments of 32 bytes (size % 32 === 0).`,{metaMessages:[`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeInvalidError"})}}t.AbiDecodingDataSizeInvalidError=c;class l extends i.BaseError{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}t.AbiDecodingDataSizeTooSmallError=l;class u extends i.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}t.AbiDecodingZeroDataError=u;class d extends i.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. 2823Expected length: ${e} 2824Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}t.AbiEncodingArrayLengthMismatchError=d;class f extends i.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,o.size)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}t.AbiEncodingBytesSizeMismatchError=f;class h extends i.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 2825Expected length (params): ${e} 2826Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}t.AbiEncodingLengthMismatchError=h;class p extends i.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 2827Cannot encode error result without knowing what the parameter types are. 2828Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorInputsNotFoundError"})}}t.AbiErrorInputsNotFoundError=p;class m extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 2829Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorNotFoundError"})}}t.AbiErrorNotFoundError=m;class g extends i.BaseError{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. 2830Make sure you are using the correct ABI and that the error exists on it. 2831You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}t.AbiErrorSignatureNotFoundError=g;class b extends i.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}t.AbiEventSignatureEmptyTopicsError=b;class v extends i.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 2832Make sure you are using the correct ABI and that the event exists on it. 2833You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}t.AbiEventSignatureNotFoundError=v;class y extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 2834Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}t.AbiEventNotFoundError=y;class w extends i.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 2835Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}t.AbiFunctionNotFoundError=w;class E extends i.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 2836Cannot decode function result without knowing what the parameter types are. 2837Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}t.AbiFunctionOutputsNotFoundError=E;class x extends i.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 2838Make sure you are using the correct ABI and that the function exists on it. 2839You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionSignatureNotFoundError"})}}t.AbiFunctionSignatureNotFoundError=x;class C extends i.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}t.BytesSizeMismatchError=C;class A extends i.BaseError{constructor({abiItem:e,data:t,params:r,size:o}){super(`Data size of ${o} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.formatAbiParams)(r,{includeName:!0})})`,`Data: ${t} (${o} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=o}}t.DecodeLogDataMismatch=A;class P extends i.BaseError{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.formatAbiItem)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}t.DecodeLogTopicsMismatch=P;class j extends i.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 2840Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}t.InvalidAbiEncodingTypeError=j;class k extends i.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 2841Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}t.InvalidAbiDecodingTypeError=k;class O extends i.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}t.InvalidArrayError=O;class S extends i.BaseError{constructor(e){super(`"${e}" is not a valid definition type. 2842Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}t.InvalidDefinitionTypeError=S;class I extends i.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedPackedAbiType"})}}t.UnsupportedPackedAbiType=I},26175:function(e,t,r){"use strict";
2842Object.defineProperty(t,"__esModule",{value:!0}),t.AccountNotFoundError=void 0;let n=r(26456);class o extends n.BaseError{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}t.AccountNotFoundError=o},56293:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAddressError=void 0;let n=r(26456);class o extends n.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}t.InvalidAddressError=o},26456:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(54834);class o extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.getVersion)()});let r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof o&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://viem.sh${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,r):r?null:t}(this,e)}}t.BaseError=o},54907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockNotFoundError=void 0;let n=r(26456);class o extends n.BaseError{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}t.BlockNotFoundError=o},67409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OffchainLookupSenderMismatchError=t.OffchainLookupResponseMalformedError=t.OffchainLookupError=void 0;let n=r(58),o=r(26456),i=r(54834);class a extends o.BaseError{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:o,urls:a}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",a&&[" Gateway URL(s):",...a.map(e=>` ${(0,i.getUrl)(e)}`)],` Sender: ${o}`,` Data: ${r}`,` Callback selector: ${e}`,` Extra data: ${n}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}t.OffchainLookupError=a;class s extends o.BaseError{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,i.getUrl)(t)}`,`Response: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}t.OffchainLookupResponseMalformedError=s;class c extends o.BaseError{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}t.OffchainLookupSenderMismatchError=c},91363:function(e,t,r){"use strict";
2842Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainNotFoundError=t.ChainMismatchError=t.ChainDoesNotSupportContract=void 0;let n=r(26456);class o extends n.BaseError{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}t.ChainDoesNotSupportContract=o;class i extends n.BaseError{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} â ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} â ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}t.ChainMismatchError=i;class a extends n.BaseError{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}t.ChainNotFoundError=a;class s extends n.BaseError{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}t.ClientChainNotConfiguredError=s;class c extends n.BaseError{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}t.InvalidChainIdError=c},9996:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=void 0;let n=r(3975),o=r(6049),i=r(31293),a=r(16759),s=r(87541),c=r(95481),l=r(90686),u=r(22386),d=r(4403),f=r(26456),h=r(70270),p=r(54834);class m extends f.BaseError{constructor(e,{account:t,docsPath:r,chain:o,data:i,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:f,to:p,value:m}){let g=t?(0,n.parseAccount)(t):void 0,b=(0,h.prettyPrint)({from:g?.address,to:p,value:void 0!==m&&`${(0,l.formatEther)(m)} ${o?.nativeCurrency.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==s&&`${(0,u.formatGwei)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,u.formatGwei)(c)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,u.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}t.CallExecutionError=m;class g extends f.BaseError{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:i,sender:l}){let u=(0,c.getAbiItem)({abi:t,args:r,name:i}),d=u?(0,s.formatAbiItemWithArgs)({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=u?(0,a.formatAbiItem)(u,{includeName:!0}):void 0,m=(0,h.prettyPrint)({address:n&&(0,p.getContractAddress)(n),function:f,args:d&&"()"!==d&&`${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:l});super(e.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",m].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=i,this.sender=l}}t.ContractFunctionExecutionError=g;class b extends f.BaseError{constructor({abi:e,data:t,functionName:r,message:n}){let c,l,u,f,h;if(t&&"0x"!==t)try{h=(0,i.decodeErrorResult)({abi:e,data:t});let{abiItem:r,errorName:n,args:c}=h;if("Error"===n)u=c[0];else if("Panic"===n){let[e]=c;u=o.panicReasons[e]}else{let e=r?(0,a.formatAbiItem)(r,{includeName:!0}):void 0,t=r&&c?(0,s.formatAbiItemWithArgs)({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){c=e}else n&&(u=n);c instanceof d.AbiErrorSignatureNotFoundError&&(l=[`Unable to decode signature "${f=c.signature}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`]),super(u&&"execution reverted"!==u||f?[`The contract function "${r}" reverted with the following ${f?"signature":"reason"}:`,u||f].join("\n"):`The contract function "${r}" reverted.`,{cause:c,metaMessages:l}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=h,this.reason=u,this.signature=f}}t.ContractFunctionRevertedError=b;class v extends f.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}t.ContractFunctionZeroDataError=v;class y extends f.BaseError{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}t.RawContractError=y},68377:function(e,t,r){"use strict";
2842Object.defineProperty(t,"__esModule",{value:!0}),t.SizeExceedsPaddingSizeError=t.SliceOffsetOutOfBoundsError=void 0;let n=r(26456);class o extends n.BaseError{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}t.SliceOffsetOutOfBoundsError=o;class i extends n.BaseError{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}t.SizeExceedsPaddingSizeError=i},26425:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeOverflowError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.IntegerOutOfRangeError=t.DataLengthTooShortError=t.DataLengthTooLongError=void 0;let n=r(26456);class o extends n.BaseError{constructor({consumed:e,length:t}){super(`Consumed bytes (${e}) is shorter than data length (${t-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooLongError"})}}t.DataLengthTooLongError=o;class i extends n.BaseError{constructor({length:e,dataLength:t}){super(`Data length (${t-1}) is shorter than prefix length (${e-1}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DataLengthTooShortError"})}}t.DataLengthTooShortError=i;class a extends n.BaseError{constructor({max:e,min:t,signed:r,size:n,value:o}){super(`Number "${o}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}t.IntegerOutOfRangeError=a;class s extends n.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}t.InvalidBytesBooleanError=s;class c extends n.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}t.InvalidHexBooleanError=c;class l extends n.BaseError{constructor(e){super(`Hex value "${e}" is an odd length (${e.length}). It must be an even length.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexValueError"})}}t.InvalidHexValueError=l;class u extends n.BaseError{constructor({nextOffset:e,offset:t}){super(`Next offset (${e}) is greater than previous offset + consumed bytes (${t})`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffsetOutOfBoundsError"})}}t.OffsetOutOfBoundsError=u;class d extends n.BaseError{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}t.SizeOverflowError=d},80733:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsAvatarUnsupportedNamespaceError=t.EnsAvatarUriResolutionError=t.EnsAvatarInvalidNftUriError=t.EnsAvatarInvalidMetadataError=void 0;let n=r(26456);class o extends n.BaseError{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}t.EnsAvatarInvalidMetadataError=o;class i extends n.BaseError{constructor({reason:e}
2842){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}t.EnsAvatarInvalidNftUriError=i;class a extends n.BaseError{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}t.EnsAvatarUriResolutionError=a;class s extends n.BaseError{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}t.EnsAvatarUnsupportedNamespaceError=s},78966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimateGasExecutionError=void 0;let n=r(90686),o=r(22386),i=r(26456),a=r(70270);class s extends i.BaseError{constructor(e,{account:t,docsPath:r,chain:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=(0,a.prettyPrint)({from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${i?.nativeCurrency.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==l&&`${(0,o.formatGwei)(l)} gwei`,maxFeePerGas:void 0!==u&&`${(0,o.formatGwei)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,o.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}t.EstimateGasExecutionError=s},79189:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterTypeNotSupportedError=void 0;let n=r(26456);class o extends n.BaseError{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}t.FilterTypeNotSupportedError=o},72695:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNodeError=t.TipAboveFeeCapError=t.TransactionTypeNotSupportedError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.NonceMaxValueError=t.NonceTooLowError=t.NonceTooHighError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=void 0;let n=r(22386),o=r(26456);class i extends o.BaseError{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(i,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/}),t.ExecutionRevertedError=i;class a extends o.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/}),t.FeeCapTooHighError=a;class s extends o.BaseError{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.formatGwei)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/}),t.FeeCapTooLowError=s;class c extends o.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/}),t.NonceTooHighError=c;class l extends o.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
2843Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported/}),t.NonceTooLowError=l;class u extends o.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/}),t.NonceMaxValueError=u;class d extends o.BaseError{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/}),t.InsufficientFundsError=d;class f extends o.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/}),t.IntrinsicGasTooHighError=f;class h extends o.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/}),t.IntrinsicGasTooLowError=h;class p extends o.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/}),t.TransactionTypeNotSupportedError=p;class m extends o.BaseError{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.formatGwei)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.formatGwei)(r)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/}),t.TipAboveFeeCapError=m;class g extends o.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.message}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}t.UnknownNodeError=g},72782:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=t.RpcRequestError=t.WebSocketRequestError=t.HttpRequestError=void 0;let n=r(58),o=r(26456),i=r(54834);class a extends o.BaseError{constructor({body:e,details:t,headers:r,status:o,url:a}){super("HTTP request failed.",{details:t,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,i.getUrl)(a)}`,e&&`Request body: ${(0,n.stringify)(e)}
2843`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=o,this.url=a}}t.HttpRequestError=a;class s extends o.BaseError{constructor({body:e,details:t,url:r}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,i.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}t.WebSocketRequestError=s;class c extends o.BaseError{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,i.getUrl)(r)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}t.RpcRequestError=c;class l extends o.BaseError{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,i.getUrl)(t)}`,`Request body: ${(0,n.stringify)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}t.TimeoutError=l},60793:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownRpcError=t.SwitchChainError=t.ChainDisconnectedError=t.ProviderDisconnectedError=t.UnsupportedProviderMethodError=t.UnauthorizedProviderError=t.UserRejectedRequestError=t.JsonRpcVersionUnsupportedError=t.LimitExceededRpcError=t.MethodNotSupportedRpcError=t.TransactionRejectedRpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.InvalidParamsRpcError=t.MethodNotFoundRpcError=t.InvalidRequestRpcError=t.ParseRpcError=t.ProviderRpcError=t.RpcError=void 0;let n=r(26456),o=r(72782);class i extends n.BaseError{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:i}){super(i,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof o.RpcRequestError?e.code:t??-1}}t.RpcError=i;class a extends i{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}t.ProviderRpcError=a;class s extends i{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),t.ParseRpcError=s;class c extends i{constructor(e){super(e,{code:c.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),t.InvalidRequestRpcError=c;class l extends i{constructor(e){super(e,{code:l.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),t.MethodNotFoundRpcError=l;class u extends i{constructor(e){super(e,{code:u.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),t.InvalidParamsRpcError=u;class d extends i{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),t.InternalRpcError=d;class f extends i{constructor(e){super(e,{code:f.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),t.InvalidInputRpcError=f;
2843class h extends i{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),t.ResourceNotFoundRpcError=h;class p extends i{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),t.ResourceUnavailableRpcError=p;class m extends i{constructor(e){super(e,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),t.TransactionRejectedRpcError=m;class g extends i{constructor(e){super(e,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),t.MethodNotSupportedRpcError=g;class b extends i{constructor(e){super(e,{code:b.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),t.LimitExceededRpcError=b;class v extends i{constructor(e){super(e,{code:v.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),t.JsonRpcVersionUnsupportedError=v;class y extends a{constructor(e){super(e,{code:y.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001}),t.UserRejectedRequestError=y;class w extends a{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100}),t.UnauthorizedProviderError=w;class E extends a{constructor(e){super(e,{code:E.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200}),t.UnsupportedProviderMethodError=E;class x extends a{constructor(e){super(e,{code:x.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900}),t.ProviderDisconnectedError=x;class C extends a{constructor(e){super(e,{code:C.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901}),t.ChainDisconnectedError=C;class A extends a{constructor(e){super(e,{code:A.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902}),t.SwitchChainError=A,t.UnknownRpcError=class extends i{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},70270:function(e,t,r){"use strict";
2843Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidStorageKeySizeError=t.InvalidSerializedTransactionError=t.InvalidSerializedTransactionTypeError=t.InvalidSerializableTransactionError=t.InvalidLegacyVError=t.FeeConflictError=t.prettyPrint=void 0;let n=r(90686),o=r(22386),i=r(26456);function a(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}t.prettyPrint=a;class s extends i.BaseError{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}t.FeeConflictError=s;class c extends i.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}t.InvalidLegacyVError=c;class l extends i.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}t.InvalidSerializableTransactionError=l;class u extends i.BaseError{constructor({serializedType:e}){super(`Serialized transaction type "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=e}}t.InvalidSerializedTransactionTypeError=u;class d extends i.BaseError{constructor({attributes:e,serializedTransaction:t,type:r}){let n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=t,this.type=r}}t.InvalidSerializedTransactionError=d;class f extends i.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}t.InvalidStorageKeySizeError=f;class h extends i.BaseError{constructor(e,{account:t,docsPath:r,chain:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=a({chain:i&&`${i?.name} (id: ${i?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.formatEther)(p)} ${i?.nativeCurrency.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==l&&`${(0,o.formatGwei)(l)} gwei`,maxFeePerGas:void 0!==u&&`${(0,o.formatGwei)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,o.formatGwei)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}t.TransactionExecutionError=h;class p extends i.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:o}){let i="Transaction";r&&void 0!==o&&(i=`Transaction at block time "${r}" at index "${o}"`),e&&void 0!==o&&(i=`Transaction at block hash "${e}" at index "${o}"`),t&&void 0!==o&&(i=`Transaction at block number "${t}" at index "${o}"`),n&&(i=`Transaction with hash "${n}"`),super(`${i} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}t.TransactionNotFoundError=p;class m extends i.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}t.TransactionReceiptNotFoundError=m;class g extends i.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}t.WaitForTransactionReceiptTimeoutError=g},44681:function(e,t,r){"use strict";
2843Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRequiredError=void 0;let n=r(26456);class o extends n.BaseError{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}t.UrlRequiredError=o},54834:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVersion=t.getUrl=t.getContractAddress=void 0;let n=r(59477);t.getContractAddress=e=>e,t.getUrl=e=>e,t.getVersion=()=>`viem@${n.version}`},59477:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.5.3"},68995:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxInt112=t.maxInt104=t.maxInt96=t.maxInt88=t.maxInt80=t.maxInt72=t.maxInt64=t.maxInt56=t.maxInt48=t.maxInt40=t.maxInt32=t.maxInt24=t.maxInt16=t.maxInt8=t.weiUnits=t.gweiUnits=t.etherUnits=t.zeroAddress=t.multicall3Abi=t.webSocket=t.createWalletClient=t.createTransport=t.walletActions=t.testActions=t.publicActions=t.createTestClient=t.createPublicClient=t.http=t.fallback=t.custom=t.createClient=t.getContract=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.UnknownSignatureError=t.UnknownTypeError=t.SolidityProtectedKeywordError=t.InvalidStructSignatureError=t.InvalidSignatureError=t.InvalidParenthesisError=t.InvalidParameterError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.InvalidAbiItemError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=t.CircularReferenceError=void 0,t.maxUint256=t.maxUint248=t.maxUint240=t.maxUint232=t.maxUint224=t.maxUint216=t.maxUint208=t.maxUint200=t.maxUint192=t.maxUint184=t.maxUint176=t.maxUint168=t.maxUint160=t.maxUint152=t.maxUint144=t.maxUint136=t.maxUint128=t.maxUint120=t.maxUint112=t.maxUint104=t.maxUint96=t.maxUint88=t.maxUint80=t.maxUint72=t.maxUint64=t.maxUint56=t.maxUint48=t.maxUint40=t.maxUint32=t.maxUint24=t.maxUint16=t.maxUint8=t.maxInt256=t.maxInt248=t.maxInt240=t.maxInt232=t.maxInt224=t.maxInt216=t.maxInt208=t.maxInt200=t.maxInt192=t.maxInt184=t.maxInt176=t.maxInt168=t.maxInt160=t.maxInt152=t.maxInt144=t.maxInt136=t.maxInt128=t.maxInt120=void 0,t.InvalidAbiEncodingTypeError=t.InvalidAbiDecodingTypeError=t.DecodeLogTopicsMismatch=t.AbiFunctionSignatureNotFoundError=t.AbiFunctionOutputsNotFoundError=t.AbiFunctionNotFoundError=t.AbiEventSignatureNotFoundError=t.AbiEventSignatureEmptyTopicsError=t.AbiEventNotFoundError=t.AbiErrorSignatureNotFoundError=t.AbiErrorNotFoundError=t.AbiErrorInputsNotFoundError=t.AbiEncodingLengthMismatchError=t.AbiEncodingArrayLengthMismatchError=t.AbiDecodingZeroDataError=t.AbiDecodingDataSizeInvalidError=t.AbiConstructorParamsNotFoundError=t.AbiConstructorNotFoundError=t.minInt256=t.minInt248=t.minInt240=t.minInt232=t.minInt224=t.minInt216=t.minInt208=t.minInt200=t.minInt192=t.minInt184=t.minInt176=t.minInt168=t.minInt160=t.minInt152=t.minInt144=t.minInt136=t.minInt128=t.minInt120=t.minInt112=t.minInt104=t.minInt96=t.minInt88=t.minInt80=t.minInt72=t.minInt64=t.minInt56=t.minInt48=t.minInt40=t.minInt32=t.minInt24=t.minInt16=t.minInt8=void 0,t.NonceTooLowError=t.NonceTooHighError=t.NonceMaxValueError=t.IntrinsicGasTooLowError=t.IntrinsicGasTooHighError=t.InsufficientFundsError=t.FeeCapTooLowError=t.FeeCapTooHighError=t.ExecutionRevertedError=t.EstimateGasExecutionError=t.EnsAvatarUriResolutionError=t.OffsetOutOfBoundsError=t.InvalidHexValueError=t.InvalidHexBooleanError=t.InvalidBytesBooleanError=t.DataLengthTooShortError=t.DataLengthTooLongError=t.InvalidChainIdError=t.ClientChainNotConfiguredError=t.ChainDoesNotSupportContract=t.UserRejectedRequestError=t.UnsupportedProviderMethodError=t.UnknownRpcError=t.UnauthorizedProviderError=t.SwitchChainError=t.TransactionRejectedRpcError=t.RpcError=t.ResourceUnavailableRpcError=t.ResourceNotFoundRpcError=t.ProviderRpcError=t.ProviderDisconnectedError=t.ParseRpcError=t.MethodNotSupportedRpcError=t.MethodNotFoundRpcError=t.LimitExceededRpcError=t.JsonRpcVersionUnsupportedError=t.InvalidRequestRpcError=t.InvalidParamsRpcError=t.InvalidInputRpcError=t.InternalRpcError=t.ChainDisconnectedError=t.RawContractError=t.ContractFunctionZeroDataError=t.ContractFunctionRevertedError=t.ContractFunctionExecutionError=t.CallExecutionError=t.BlockNotFoundError=t.BaseError=t.InvalidDefinitionTypeError=t.InvalidArrayError=void 0,t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hexToSignature=t.hashTypedData=t.getTransactionType=t.getSerializedTransactionType=t.getCreateAddress=t.getCreate2Address=t.getContractAddress=t.getAbiItem=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.transactionType=t.formatTransaction=t.defineTransaction=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeDeployData=t.decodeAbiParameters=t.formatLog=t.formatBlock=t.defineBlock=t.namehash=t.labelhash=t.UrlRequiredError=t.SizeExceedsPaddingSizeError=t.WaitForTransactionReceiptTimeoutError=t.TransactionReceiptNotFoundError=t.TransactionNotFoundError=t.TransactionExecutionError=t.InvalidLegacyVError=t.InvalidAddressError=t.WebSocketRequestError=t.TimeoutError=t.RpcRequestError=t.HttpRequestError=t.FilterTypeNotSupportedError=t.UnknownNodeError=t.TransactionTypeNotSupportedError=t.TipAboveFeeCapError=void 0,t.isAddressEqual=t.isAddress=t.hashMessage=t.getFunctionSelector=t.getEventSelector=t.getContractError=t.getAddress=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.formatUnits=t.formatGwei=t.formatEther=t.encodePacked=t.defineChain=t.assertCurrentChain=t.concatHex=t.concatBytes=t.concat=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.toHex=t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toBytes=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.verifyTypedData=t.verifyMessage=t.toRlp=t.signatureToHex=t.recoverTypedDataAddress=void 0,t.validateTypedData=t.trim=t.stringify=t.sliceHex=t.sliceBytes=t.slice=t.size=t.serializeTransaction=t.serializeAccessList=t.prepareRequest=t.parseUnits=t.parseTransaction=t.parseGwei=t.parseEther=t.padHex=t.padBytes=t.pad=t.keccak256=t.isHex=t.isHash=t.isBytes=void 0;var n=r(48661);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return n.CircularReferenceError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return n.InvalidAbiParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return n.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return n.InvalidAbiItemError}}),Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return n.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return n.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return n.InvalidModifierError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return n.InvalidParameterError}}),Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return n.InvalidParenthesisError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return n.InvalidSignatureError}}),Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return n.InvalidStructSignatureError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return n.SolidityProtectedKeywordError}}),Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return n.UnknownTypeError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return n.UnknownSignatureError}}),Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return n.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return n.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return n.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return n.parseAbiParameters}});var o=r(28690);Object.defineProperty(t,"getContract",{enumerable:!0,get:function(){return o.getContract}});var i=r(23259);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return i.createClient}});var a=r(99161);Object.defineProperty(t,"custom",{enumerable:!0,get:function(){return a.custom}});var s=r(72826);Object.defineProperty(t,"fallback",{enumerable:!0,get:function(){return s.fallback}});var c=r(28216);Object.defineProperty(t,"http",{enumerable:!0,get:function(){return c.http}});var l=r(86610);Object.defineProperty(t,"createPublicClient",{enumerable:!0,get:function(){return l.createPublicClient}});var u=r(34223);Object.defineProperty(t,"createTestClient",{enumerable:!0,get:function(){return u.createTestClient}});var d=r(8980);Object.defineProperty(t,"publicActions",{enumerable:!0,get:function(){return d.publicActions}});var f=r(49467);Object.defineProperty(t,"testActions",{enumerable:!0,get:function(){return f.testActions}});var h=r(47839);Object.defineProperty(t,"walletActions",{enumerable:!0,get:function(){return h.walletActions}});var p=r(42255);Object.defineProperty(t,"createTransport",{enumerable:!0,get:function(){return p.createTransport}});var m=r(32415);Object.defineProperty(t,"createWalletClient",{enumerable:!0,get:function(){return m.createWalletClient}});var g=r(37003);Object.defineProperty(t,"webSocket",{enumerable:!0,get:function(){return g.webSocket}});var b=r(28669);Object.defineProperty(t,"multicall3Abi",{enumerable:!0,get:function(){return b.multicall3Abi}});var v=r(77243);Object.defineProperty(t,"zeroAddress",{enumerable:!0,get:function(){return v.zeroAddress}});var y=r(99225);Object.defineProperty(t,"etherUnits",{enumerable:!0,get:function(){return y.etherUnits}}),Object.defineProperty(t,"gweiUnits",{enumerable:!0,get:function(){return y.gweiUnits}}),Object.defineProperty(t,"weiUnits",{enumerable:!0,get:function(){return y.weiUnits}});var w=r(84387);Object.defineProperty(t,"maxInt8",{enumerable:!0,get:function(){return w.maxInt8}}),Object.defineProperty(t,"maxInt16",{enumerable:!0,get:function(){return w.maxInt16}}),Object.defineProperty(t,"maxInt24",{enumerable:!0,get:function(){return w.maxInt24}}),Object.defineProperty(t,"maxInt32",{enumerable:!0,get:function(){return w.maxInt32}}),Object.defineProperty(t,"maxInt40",{enumerable:!0,get:function(){return w.maxInt40}}),Object.defineProperty(t,"maxInt48",{enumerable:!0,get:function(){return w.maxInt48}}),Object.defineProperty(t,"maxInt56",{enumerable:!0,get:function(){return w.maxInt56}}),Object.defineProperty(t,"maxInt64",{enumerable:!0,get:function(){return w.maxInt64}}),Object.defineProperty(t,"maxInt72",{enumerable:!0,get:function(){return w.maxInt72}}),Object.defineProperty(t,"maxInt80",{enumerable:!0,get:function(){return w.maxInt80}}),Object.defineProperty(t,"maxInt88",{enumerable:!0,get:function(){return w.maxInt88}}),Object.defineProperty(t,"maxInt96",{enumerable:!0,get:function(){return w.maxInt96}}),Object.defineProperty(t,"maxInt104",{enumerable:!0,get:function(){return w.maxInt104}}),Object.defineProperty(t,"maxInt112",{enumerable:!0,get:function(){return w.maxInt112}}),Object.defineProperty(t,"maxInt120",{enumerable:!0,get:function(){return w.maxInt120}}),Object.defineProperty(t,"maxInt128",{enumerable:!0,get:function(){return w.maxInt128}}),Object.defineProperty(t,"maxInt136",{enumerable:!0,get:function(){return w.maxInt136}}),Object.defineProperty(t,"maxInt144",{enumerable:!0,get:function(){return w.maxInt144}}),Object.defineProperty(t,"maxInt152",{enumerable:!0,get:function(){return w.maxInt152}}),Object.defineProperty(t,"maxInt160",{enumerable:!0,get:function(){return w.maxInt160}}),Object.defineProperty(t,"maxInt168",{enumerable:!0,get:function(){return w.maxInt168}}),Object.defineProperty(t,"maxInt176",{enumerable:!0,get:function(){return w.maxInt176}}),Object.defineProperty(t,"maxInt184",{enumerable:!0,get:function(){return w.maxInt184}}),Object.defineProperty(t,"maxInt192",{enumerable:!0,get:function(){return w.maxInt192}}),Object.defineProperty(t,"maxInt200",{enumerable:!0,get:function(){return w.maxInt200}}),Object.defineProperty(t,"maxInt208",{enumerable:!0,get:function(){return w.maxInt208}}),Object.defineProperty(t,"maxInt216",{enumerable:!0,get:function(){return w.maxInt216}}),Object.defineProperty(t,"maxInt224",{enumerable:!0,get:function(){return w.maxInt224}}),Object.defineProperty(t,"maxInt232",{enumerable:!0,get:function(){return w.maxInt232}}),Object.defineProperty(t,"maxInt240",{enumerable:!0,get:function(){return w.maxInt240}}),Object.defineProperty(t,"maxInt248",{enumerable:!0,get:function(){return w.maxInt248}}),Object.defineProperty(t,"maxInt256",{enumerable:!0,get:function(){return w.maxInt256}}),Object.defineProperty(t,"maxUint8",{enumerable:!0,get:function(){return w.maxUint8}}),Object.defineProperty(t,"maxUint16",{enumerable:!0,get:function(){return w.maxUint16}}),Object.defineProperty(t,"maxUint24",{enumerable:!0,get:function(){return w.maxUint24}}
2843),Object.defineProperty(t,"maxUint32",{enumerable:!0,get:function(){return w.maxUint32}}),Object.defineProperty(t,"maxUint40",{enumerable:!0,get:function(){return w.maxUint40}}),Object.defineProperty(t,"maxUint48",{enumerable:!0,get:function(){return w.maxUint48}}),Object.defineProperty(t,"maxUint56",{enumerable:!0,get:function(){return w.maxUint56}}),Object.defineProperty(t,"maxUint64",{enumerable:!0,get:function(){return w.maxUint64}}),Object.defineProperty(t,"maxUint72",{enumerable:!0,get:function(){return w.maxUint72}}),Object.defineProperty(t,"maxUint80",{enumerable:!0,get:function(){return w.maxUint80}}),Object.defineProperty(t,"maxUint88",{enumerable:!0,get:function(){return w.maxUint88}}),Object.defineProperty(t,"maxUint96",{enumerable:!0,get:function(){return w.maxUint96}}),Object.defineProperty(t,"maxUint104",{enumerable:!0,get:function(){return w.maxUint104}}),Object.defineProperty(t,"maxUint112",{enumerable:!0,get:function(){return w.maxUint112}}),Object.defineProperty(t,"maxUint120",{enumerable:!0,get:function(){return w.maxUint120}}),Object.defineProperty(t,"maxUint128",{enumerable:!0,get:function(){return w.maxUint128}}),Object.defineProperty(t,"maxUint136",{enumerable:!0,get:function(){return w.maxUint136}}),Object.defineProperty(t,"maxUint144",{enumerable:!0,get:function(){return w.maxUint144}}),Object.defineProperty(t,"maxUint152",{enumerable:!0,get:function(){return w.maxUint152}}),Object.defineProperty(t,"maxUint160",{enumerable:!0,get:function(){return w.maxUint160}}),Object.defineProperty(t,"maxUint168",{enumerable:!0,get:function(){return w.maxUint168}}),Object.defineProperty(t,"maxUint176",{enumerable:!0,get:function(){return w.maxUint176}}),Object.defineProperty(t,"maxUint184",{enumerable:!0,get:function(){return w.maxUint184}}),Object.defineProperty(t,"maxUint192",{enumerable:!0,get:function(){return w.maxUint192}}),Object.defineProperty(t,"maxUint200",{enumerable:!0,get:function(){return w.maxUint200}}),Object.defineProperty(t,"maxUint208",{enumerable:!0,get:function(){return w.maxUint208}}),Object.defineProperty(t,"maxUint216",{enumerable:!0,get:function(){return w.maxUint216}}),Object.defineProperty(t,"maxUint224",{enumerable:!0,get:function(){return w.maxUint224}}),Object.defineProperty(t,"maxUint232",{enumerable:!0,get:function(){return w.maxUint232}}),Object.defineProperty(t,"maxUint240",{enumerable:!0,get:function(){return w.maxUint240}}),Object.defineProperty(t,"maxUint248",{enumerable:!0,get:function(){return w.maxUint248}}),Object.defineProperty(t,"maxUint256",{enumerable:!0,get:function(){return w.maxUint256}}),Object.defineProperty(t,"minInt8",{enumerable:!0,get:function(){return w.minInt8}}),Object.defineProperty(t,"minInt16",{enumerable:!0,get:function(){return w.minInt16}}),Object.defineProperty(t,"minInt24",{enumerable:!0,get:function(){return w.minInt24}}),Object.defineProperty(t,"minInt32",{enumerable:!0,get:function(){return w.minInt32}}),Object.defineProperty(t,"minInt40",{enumerable:!0,get:function(){return w.minInt40}}),Object.defineProperty(t,"minInt48",{enumerable:!0,get:function(){return w.minInt48}}),Object.defineProperty(t,"minInt56",{enumerable:!0,get:function(){return w.minInt56}}),Object.defineProperty(t,"minInt64",{enumerable:!0,get:function(){return w.minInt64}}),Object.defineProperty(t,"minInt72",{enumerable:!0,get:function(){return w.minInt72}}),Object.defineProperty(t,"minInt80",{enumerable:!0,get:function(){return w.minInt80}}),Object.defineProperty(t,"minInt88",{enumerable:!0,get:function(){return w.minInt88}}),Object.defineProperty(t,"minInt96",{enumerable:!0,get:function(){return w.minInt96}}),Object.defineProperty(t,"minInt104",{enumerable:!0,get:function(){return w.minInt104}}),Object.defineProperty(t,"minInt112",{enumerable:!0,get:function(){return w.minInt112}}),Object.defineProperty(t,"minInt120",{enumerable:!0,get:function(){return w.minInt120}}),Object.defineProperty(t,"minInt128",{enumerable:!0,get:function(){return w.minInt128}}),Object.defineProperty(t,"minInt136",{enumerable:!0,get:function(){return w.minInt136}}),Object.defineProperty(t,"minInt144",{enumerable:!0,get:function(){return w.minInt144}}),Object.defineProperty(t,"minInt152",{enumerable:!0,get:function(){return w.minInt152}}),Object.defineProperty(t,"minInt160",{enumerable:!0,get:function(){return w.minInt160}}),Object.defineProperty(t,"minInt168",{enumerable:!0,get:function(){return w.minInt168}}),Object.defineProperty(t,"minInt176",{enumerable:!0,get:function(){return w.minInt176}}),Object.defineProperty(t,"minInt184",{enumerable:!0,get:function(){return w.minInt184}}),Object.defineProperty(t,"minInt192",{enumerable:!0,get:function(){return w.minInt192}}),Object.defineProperty(t,"minInt200",{enumerable:!0,get:function(){return w.minInt200}}),Object.defineProperty(t,"minInt208",{enumerable:!0,get:function(){return w.minInt208}}),Object.defineProperty(t,"minInt216",{enumerable:!0,get:function(){return w.minInt216}}),Object.defineProperty(t,"minInt224",{enumerable:!0,get:function(){return w.minInt224}}),Object.defineProperty(t,"minInt232",{enumerable:!0,get:function(){return w.minInt232}}),Object.defineProperty(t,"minInt240",{enumerable:!0,get:function(){return w.minInt240}}),Object.defineProperty(t,"minInt248",{enumerable:!0,get:function(){return w.minInt248}}),Object.defineProperty(t,"minInt256",{enumerable:!0,get:function(){return w.minInt256}});var E=r(4403);Object.defineProperty(t,"AbiConstructorNotFoundError",{enumerable:!0,get:function(){return E.AbiConstructorNotFoundError}}),Object.defineProperty(t,"AbiConstructorParamsNotFoundError",{enumerable:!0,get:function(){return E.AbiConstructorParamsNotFoundError}}),Object.defineProperty(t,"AbiDecodingDataSizeInvalidError",{enumerable:!0,get:function(){return E.AbiDecodingDataSizeInvalidError}}),Object.defineProperty(t,"AbiDecodingZeroDataError",{enumerable:!0,get:function(){return E.AbiDecodingZeroDataError}}
2843),Object.defineProperty(t,"AbiEncodingArrayLengthMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingArrayLengthMismatchError}}),Object.defineProperty(t,"AbiEncodingLengthMismatchError",{enumerable:!0,get:function(){return E.AbiEncodingLengthMismatchError}}),Object.defineProperty(t,"AbiErrorInputsNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorInputsNotFoundError}}),Object.defineProperty(t,"AbiErrorNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorNotFoundError}}),Object.defineProperty(t,"AbiErrorSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiErrorSignatureNotFoundError}}),Object.defineProperty(t,"AbiEventNotFoundError",{enumerable:!0,get:function(){return E.AbiEventNotFoundError}}),Object.defineProperty(t,"AbiEventSignatureEmptyTopicsError",{enumerable:!0,get:function(){return E.AbiEventSignatureEmptyTopicsError}}),Object.defineProperty(t,"AbiEventSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiEventSignatureNotFoundError}}),Object.defineProperty(t,"AbiFunctionNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionNotFoundError}}),Object.defineProperty(t,"AbiFunctionOutputsNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionOutputsNotFoundError}}),Object.defineProperty(t,"AbiFunctionSignatureNotFoundError",{enumerable:!0,get:function(){return E.AbiFunctionSignatureNotFoundError}}),Object.defineProperty(t,"DecodeLogTopicsMismatch",{enumerable:!0,get:function(){return E.DecodeLogTopicsMismatch}}),Object.defineProperty(t,"InvalidAbiDecodingTypeError",{enumerable:!0,get:function(){return E.InvalidAbiDecodingTypeError}}),Object.defineProperty(t,"InvalidAbiEncodingTypeError",{enumerable:!0,get:function(){return E.InvalidAbiEncodingTypeError}}),Object.defineProperty(t,"InvalidArrayError",{enumerable:!0,get:function(){return E.InvalidArrayError}}),Object.defineProperty(t,"InvalidDefinitionTypeError",{enumerable:!0,get:function(){return E.InvalidDefinitionTypeError}});var x=r(26456);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return x.BaseError}});var C=r(54907);Object.defineProperty(t,"BlockNotFoundError",{enumerable:!0,get:function(){return C.BlockNotFoundError}});var A=r(9996);Object.defineProperty(t,"CallExecutionError",{enumerable:!0,get:function(){return A.CallExecutionError}}),Object.defineProperty(t,"ContractFunctionExecutionError",{enumerable:!0,get:function(){return A.ContractFunctionExecutionError}}),Object.defineProperty(t,"ContractFunctionRevertedError",{enumerable:!0,get:function(){return A.ContractFunctionRevertedError}}),Object.defineProperty(t,"ContractFunctionZeroDataError",{enumerable:!0,get:function(){return A.ContractFunctionZeroDataError}}),Object.defineProperty(t,"RawContractError",{enumerable:!0,get:function(){return A.RawContractError}});var P=r(60793);Object.defineProperty(t,"ChainDisconnectedError",{enumerable:!0,get:function(){return P.ChainDisconnectedError}}),Object.defineProperty(t,"InternalRpcError",{enumerable:!0,get:function(){return P.InternalRpcError}}),Object.defineProperty(t,"InvalidInputRpcError",{enumerable:!0,get:function(){return P.InvalidInputRpcError}}),Object.defineProperty(t,"InvalidParamsRpcError",{enumerable:!0,get:function(){return P.InvalidParamsRpcError}}),Object.defineProperty(t,"InvalidRequestRpcError",{enumerable:!0,get:function(){return P.InvalidRequestRpcError}}),Object.defineProperty(t,"JsonRpcVersionUnsupportedError",{enumerable:!0,get:function(){return P.JsonRpcVersionUnsupportedError}}),Object.defineProperty(t,"LimitExceededRpcError",{enumerable:!0,get:function(){return P.LimitExceededRpcError}}),Object.defineProperty(t,"MethodNotFoundRpcError",{enumerable:!0,get:function(){return P.MethodNotFoundRpcError}}),Object.defineProperty(t,"MethodNotSupportedRpcError",{enumerable:!0,get:function(){return P.MethodNotSupportedRpcError}}),Object.defineProperty(t,"ParseRpcError",{enumerable:!0,get:function(){return P.ParseRpcError}}),Object.defineProperty(t,"ProviderDisconnectedError",{enumerable:!0,get:function(){return P.ProviderDisconnectedError}}),Object.defineProperty(t,"ProviderRpcError",{enumerable:!0,get:function(){return P.ProviderRpcError}}),Object.defineProperty(t,"ResourceNotFoundRpcError",{enumerable:!0,get:function(){return P.ResourceNotFoundRpcError}}),Object.defineProperty(t,"ResourceUnavailableRpcError",{enumerable:!0,get:function(){return P.ResourceUnavailableRpcError}}),Object.defineProperty(t,"RpcError",{enumerable:!0,get:function(){return P.RpcError}}),Object.defineProperty(t,"TransactionRejectedRpcError",{enumerable:!0,get:function(){return P.TransactionRejectedRpcError}}),Object.defineProperty(t,"SwitchChainError",{enumerable:!0,get:function(){return P.
2843SwitchChainError}}),Object.defineProperty(t,"UnauthorizedProviderError",{enumerable:!0,get:function(){return P.UnauthorizedProviderError}}),Object.defineProperty(t,"UnknownRpcError",{enumerable:!0,get:function(){return P.UnknownRpcError}}),Object.defineProperty(t,"UnsupportedProviderMethodError",{enumerable:!0,get:function(){return P.UnsupportedProviderMethodError}}),Object.defineProperty(t,"UserRejectedRequestError",{enumerable:!0,get:function(){return P.UserRejectedRequestError}});var j=r(91363);Object.defineProperty(t,"ChainDoesNotSupportContract",{enumerable:!0,get:function(){return j.ChainDoesNotSupportContract}}),Object.defineProperty(t,"ClientChainNotConfiguredError",{enumerable:!0,get:function(){return j.ClientChainNotConfiguredError}}),Object.defineProperty(t,"InvalidChainIdError",{enumerable:!0,get:function(){return j.InvalidChainIdError}});var k=r(26425);Object.defineProperty(t,"DataLengthTooLongError",{enumerable:!0,get:function(){return k.DataLengthTooLongError}}),Object.defineProperty(t,"DataLengthTooShortError",{enumerable:!0,get:function(){return k.DataLengthTooShortError}}),Object.defineProperty(t,"InvalidBytesBooleanError",{enumerable:!0,get:function(){return k.InvalidBytesBooleanError}}),Object.defineProperty(t,"InvalidHexBooleanError",{enumerable:!0,get:function(){return k.InvalidHexBooleanError}}),Object.defineProperty(t,"InvalidHexValueError",{enumerable:!0,get:function(){return k.InvalidHexValueError}}),Object.defineProperty(t,"OffsetOutOfBoundsError",{enumerable:!0,get:function(){return k.OffsetOutOfBoundsError}});var O=r(80733);Object.defineProperty(t,"EnsAvatarUriResolutionError",{enumerable:!0,get:function(){return O.EnsAvatarUriResolutionError}});var S=r(78966);Object.defineProperty(t,"EstimateGasExecutionError",{enumerable:!0,get:function(){return S.EstimateGasExecutionError}});var I=r(72695);Object.defineProperty(t,"ExecutionRevertedError",{enumerable:!0,get:function(){return I.ExecutionRevertedError}}),Object.defineProperty(t,"FeeCapTooHighError",{enumerable:!0,get:function(){return I.FeeCapTooHighError}}),Object.defineProperty(t,"FeeCapTooLowError",{enumerable:!0,get:function(){return I.FeeCapTooLowError}}),Object.defineProperty(t,"InsufficientFundsError",{enumerable:!0,get:function(){return I.InsufficientFundsError}}),Object.defineProperty(t,"IntrinsicGasTooHighError",{enumerable:!0,get:function(){return I.IntrinsicGasTooHighError}}),Object.defineProperty(t,"IntrinsicGasTooLowError",{enumerable:!0,get:function(){return I.IntrinsicGasTooLowError}}),Object.defineProperty(t,"NonceMaxValueError",{enumerable:!0,get:function(){return I.NonceMaxValueError}}),Object.defineProperty(t,"NonceTooHighError",{enumerable:!0,get:function(){return I.NonceTooHighError}}),Object.defineProperty(t,"NonceTooLowError",{enumerable:!0,get:function(){return I.NonceTooLowError}}),Object.defineProperty(t,"TipAboveFeeCapError",{enumerable:!0,get:function(){return I.TipAboveFeeCapError}}),Object.defineProperty(t,"TransactionTypeNotSupportedError",{enumerable:!0,get:function(){return I.TransactionTypeNotSupportedError}}),Object.defineProperty(t,"UnknownNodeError",{enumerable:!0,get:function(){return I.UnknownNodeError}});var T=r(79189);Object.defineProperty(t,"FilterTypeNotSupportedError",{enumerable:!0,get:function(){return T.FilterTypeNotSupportedError}});var B=r(72782);Object.defineProperty(t,"HttpRequestError",{enumerable:!0,get:function(){return B.HttpRequestError}}),Object.defineProperty(t,"RpcRequestError",{enumerable:!0,get:function(){return B.RpcRequestError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return B.TimeoutError}}),Object.defineProperty(t,"WebSocketRequestError",{enumerable:!0,get:function(){return B.WebSocketRequestError}});var _=r(56293);Object.defineProperty(t,"InvalidAddressError",{enumerable:!0,get:function(){return _.InvalidAddressError}});var D=r(70270);Object.defineProperty(t,"InvalidLegacyVError",{enumerable:!0,get:function(){return D.InvalidLegacyVError}}),Object.defineProperty(t,"TransactionExecutionError",{enumerable:!0,get:function(){return D.TransactionExecutionError}}),Object.defineProperty(t,"TransactionNotFoundError",{enumerable:!0,get:function(){return D.TransactionNotFoundError}}),Object.defineProperty(t,"TransactionReceiptNotFoundError",{enumerable:!0,get:function(){return D.TransactionReceiptNotFoundError}}),Object.defineProperty(t,"WaitForTransactionReceiptTimeoutError",{enumerable:!0,get:function(){return D.WaitForTransactionReceiptTimeoutError}});var $=r(68377);Object.defineProperty(t,"SizeExceedsPaddingSizeError",{enumerable:!0,get:function(){return $.SizeExceedsPaddingSizeError}});var M=r(44681);Object.defineProperty(t,"UrlRequiredError",{enumerable:!0,get:function(){return M.UrlRequiredError}});var R=r(41311);Object.defineProperty(t,"labelhash",{enumerable:!0,get:function(){return R.labelhash}});var N=r(77863);Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return N.namehash}});var F=r(23604);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return F.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return F.formatBlock}});var L=r(80330);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return L.formatLog}});var U=r(14722);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return U.decodeAbiParameters}});var z=r(9385);Object.defineProperty(t,"decodeDeployData",{enumerable:!0,get:function(){return z.decodeDeployData}});var H=r(31293);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return H.decodeErrorResult}});var q=r(81912);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return q.decodeEventLog}});var G=r(14338);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return G.decodeFunctionData}});
2843var W=r(76286);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return W.decodeFunctionResult}});var K=r(24837);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return K.encodeAbiParameters}});var V=r(77833);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return V.encodeDeployData}});var Q=r(59094);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return Q.encodeErrorResult}});var Z=r(7534);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return Z.encodeEventTopics}});var Y=r(22836);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return Y.encodeFunctionData}});var J=r(72097);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return J.encodeFunctionResult}});var X=r(1982);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return X.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return X.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return X.transactionType}});var ee=r(5840);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return ee.defineTransactionReceipt}});var et=r(33270);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return et.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return et.formatTransactionRequest}});var er=r(95481);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return er.getAbiItem}});var en=r(82668);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return en.getContractAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return en.getCreate2Address}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return en.getCreateAddress}});var eo=r(19768);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return eo.getSerializedTransactionType}});var ei=r(76547);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return ei.getTransactionType}});var ea=r(70834);Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return ea.hashTypedData}});var es=r(91281);Object.defineProperty(t,"hexToSignature",{enumerable:!0,get:function(){return es.hexToSignature}});var ec=r(34159);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return ec.recoverAddress}});var el=r(77753);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return el.recoverMessageAddress}});var eu=r(57275);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return eu.recoverPublicKey}});var ed=r(80206);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return ed.recoverTypedDataAddress}});var ef=r(24366);Object.defineProperty(t,"signatureToHex",{enumerable:!0,get:function(){return ef.signatureToHex}});var eh=r(28913);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return eh.toRlp}});var ep=r(19338);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return ep.verifyMessage}});var em=r(92774);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return em.verifyTypedData}});var eg=r(5434);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return eg.assertRequest}});var eb=r(26825);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return eb.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return eb.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return eb.assertTransactionLegacy}});var ev=r(52387);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return ev.boolToBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return ev.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return ev.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return ev.stringToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return ev.toBytes}});var ey=r(86308);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return ey.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return ey.bytesToHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return ey.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return ey.stringToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return ey.toHex}});var ew=r(54328);Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return ew.bytesToBigint}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return ew.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return ew.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return ew.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return ew.fromBytes}});var eE=r(64045);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return eE.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return eE.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return eE.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return eE.offchainLookupSignature}});var ex=r(1501);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return ex.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return ex.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return ex.concatHex}});var eC=r(47797);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return eC.assertCurrentChain}}),Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return eC.defineChain}});var eA=r(33362);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return eA.encodePacked}});var eP=r(90686);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return eP.formatEther}});var ej=r(22386);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return ej.formatGwei}});var ek=r(88162);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return ek.formatUnits}});var eO=r(57114);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return eO.fromHex}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return eO.hexToBigInt}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return eO.hexToBool}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return eO.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return eO.hexToString}});var eS=r(92237);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return eS.fromRlp}});var eI=r(36556);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return eI.getAddress}});var eT=r(90042);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return eT.getContractError}});var eB=r(79148);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return eB.getEventSelector}});var e_=r(18546);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return e_.getFunctionSelector}});var eD=r(67475);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return eD.hashMessage}});var e$=r(21041);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return e$.isAddress}});var eM=r(13711);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return eM.isAddressEqual}});var eR=r(43848);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return eR.isBytes}});var eN=r(95056);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return eN.isHash}});var eF=r(77116);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return eF.isHex}});var eL=r(75225);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return eL.keccak256}});var eU=r(54405);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return eU.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return eU.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return eU.padHex}});var ez=r(39118);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return ez.parseEther}});var eH=r(31187);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return eH.parseGwei}});var eq=r(53858);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return eq.parseTransaction}});var eG=r(73956);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return eG.parseUnits}});var eW=r(40623);Object.defineProperty(t,"prepareRequest",{enumerable:!0,get:function(){return eW.prepareRequest}});var eK=r(99435);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return eK.serializeAccessList}});var eV=r(52932);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return eV.serializeTransaction}});var eQ=r(66859);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return eQ.size}});var eZ=r(53462);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return eZ.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return eZ.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return eZ.sliceHex}});var eY=r(58);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return eY.stringify}});var eJ=r(80475);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return eJ.trim}});var eX=r(42586);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return eX.validateTypedData}
2843})},14722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeAbiParameters=void 0;let n=r(4403),o=r(36556),i=r(66859),a=r(53462),s=r(80475),c=r(57114),l=r(24837);function u(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(u);let r=(0,l.getArrayComponents)(e.type);return!!(r&&u({...e,type:r[1]}))}t.decodeAbiParameters=function(e,t){if("0x"===t&&e.length>0)throw new n.AbiDecodingZeroDataError;if((0,i.size)(t)&&32>(0,i.size)(t))throw new n.AbiDecodingDataSizeTooSmallError({data:t,params:e,size:(0,i.size)(t)});return function({data:e,params:t}){let r=[],d=0;for(let f=0;f<t.length;f++){if(d>=(0,i.size)(e))throw new n.AbiDecodingDataSizeTooSmallError({data:e,params:t,size:(0,i.size)(e)});let h=t[f],{consumed:p,value:m}=function e({data:t,param:r,position:i}){let d=(0,l.getArrayComponents)(r.type);if(d){let[n,o]=d;return function(t,{param:r,length:n,position:o}){if(!n){let n=(0,c.hexToNumber)((0,a.slice)(t,o,o+32,{strict:!0})),i=(0,c.hexToNumber)((0,a.slice)(t,n,n+32,{strict:!0})),s=0,l=[];for(let o=0;o<i;++o){let o=e({data:(0,a.slice)(t,n+32),param:r,position:s});s+=o.consumed,l.push(o.value)}return{value:l,consumed:32}}if(u(r)){let i=(0,l.getArrayComponents)(r.type),s=!i?.[0],u=0,d=[];for(let i=0;i<n;++i){let n=(0,c.hexToNumber)((0,a.slice)(t,o,o+32,{strict:!0})),l=e({data:(0,a.slice)(t,n),param:r,position:s?u:32*i});u+=l.consumed,d.push(l.value)}return{value:d,consumed:32}}let i=0,s=[];for(let a=0;a<n;++a){let n=e({data:t,param:r,position:o+i});i+=n.consumed,s.push(n.value)}return{value:s,consumed:i}}(t,{length:n,param:{...r,type:o},position:i})}if("tuple"===r.type)return function(t,{param:r,position:n}){let o=0===r.components.length||r.components.some(({name:e})=>!e),i=o?[]:{},s=0;if(u(r)){let l=(0,c.hexToNumber)((0,a.slice)(t,n,n+32,{strict:!0}));for(let n=0;n<r.components.length;++n){let c=r.components[n],u=e({data:(0,a.slice)(t,l),param:c,position:s});s+=u.consumed,i[o?n:c?.name]=u.value}return{consumed:32,value:i}}for(let a=0;a<r.components.length;++a){let c=r.components[a],l=e({data:t,param:c,position:n+s});s+=l.consumed,i[o?a:c?.name]=l.value}return{consumed:s,value:i}}(t,{param:r,position:i});if("string"===r.type)return function(e,{position:t}){let r=(0,c.hexToNumber)((0,a.slice)(e,t,t+32,{strict:!0})),n=(0,c.hexToNumber)((0,a.slice)(e,r,r+32,{strict:!0}));if(0===n)return{consumed:32,value:""};let o=(0,c.hexToString)((0,s.trim)((0,a.slice)(e,r+32,r+32+n,{strict:!0})));return{consumed:32,value:o}}(t,{position:i});if(r.type.startsWith("bytes"))return function(e,{param:t,position:r}){let[n,o]=t.type.split("bytes");if(!o){let t=(0,c.hexToNumber)((0,a.slice)(e,r,r+32,{strict:!0})),n=(0,c.hexToNumber)((0,a.slice)(e,t,t+32,{strict:!0}));if(0===n)return{consumed:32,value:"0x"};let o=(0,a.slice)(e,t+32,t+32+n,{strict:!0});return{consumed:32,value:o}}let i=(0,a.slice)(e,r,r+parseInt(o),{strict:!0});return{consumed:32,value:i}}(t,{param:r,position:i});let f=(0,a.slice)(t,i,i+32,{strict:!0});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,{param:t}){let r=t.type.startsWith("int"),n=parseInt(t.type.split("int")[1]||"256");return{consumed:32,value:n>48?(0,c.hexToBigInt)(e,{signed:r}):(0,c.hexToNumber)(e,{signed:r})}}(f,{param:r});if("address"===r.type)return{consumed:32,value:(0,o.checksumAddress)((0,a.slice)(f,-20))};if("bool"===r.type)return{consumed:32,value:(0,c.hexToBool)(f)};throw new n.InvalidAbiDecodingTypeError(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:h,position:d});r.push(m),d+=p}return r}({data:t,params:e})}},9385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeDeployData=void 0;let n=r(4403),o=r(14722),i="/docs/contract/decodeDeployData";t.decodeDeployData=function({abi:e,bytecode:t,data:r}){if(r===t)return{bytecode:t};let a=e.find(e=>"type"in e&&"constructor"===e.type);if(!a)throw new n.AbiConstructorNotFoundError({docsPath:i});if(!("inputs"in a)||!a.inputs||0===a.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:i});let s=(0,o.decodeAbiParameters)(a.inputs,`0x${r.replace(t,"")}`);return{args:s,bytecode:t}}},31293:function(e,t,r){"use strict";
2843Object.defineProperty(t,"__esModule",{value:!0}),t.decodeErrorResult=void 0;let n=r(6049),o=r(4403),i=r(53462),a=r(18546),s=r(14722),c=r(16759);t.decodeErrorResult=function({abi:e,data:t}){let r=(0,i.slice)(t,0,4);if("0x"===r)throw new o.AbiDecodingZeroDataError;let l=[...e||[],n.solidityError,n.solidityPanic],u=l.find(e=>"error"===e.type&&r===(0,a.getFunctionSelector)((0,c.formatAbiItem)(e)));if(!u)throw new o.AbiErrorSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.decodeAbiParameters)(u.inputs,(0,i.slice)(t,4)):void 0,errorName:u.name}}},81912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeEventLog=void 0;let n=r(4403),o=r(79148),i=r(14722),a=r(16759),s="/docs/contract/decodeEventLog";t.decodeEventLog=function({abi:e,data:t,strict:r,topics:c}){let l=r??!0,[u,...d]=c;if(!u)throw new n.AbiEventSignatureEmptyTopicsError({docsPath:s});let f=e.find(e=>"event"===e.type&&u===(0,o.getEventSelector)((0,a.formatAbiItem)(e)));if(!(f&&"name"in f)||"event"!==f.type)throw new n.AbiEventSignatureNotFoundError(u,{docsPath:s});let{name:h,inputs:p}=f,m=p?.some(e=>!("name"in e&&e.name)),g=m?[]:{},b=p.filter(e=>"indexed"in e&&e.indexed);if(d.length>0)for(let e=0;e<b.length;e++){let t=b[e],r=d[e];if(!r)throw new n.DecodeLogTopicsMismatch({abiItem:f,param:t});g[t.name||e]=function({param:e,value:t}){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;let r=(0,i.decodeAbiParameters)([e],t)||[];return r[0]}({param:t,value:r})}let v=p.filter(e=>!("indexed"in e&&e.indexed));if(v.length>0){if(t&&"0x"!==t)try{let e=(0,i.decodeAbiParameters)(v,t);if(e){if(m)g=[...g,...e];else for(let t=0;t<v.length;t++)g[v[t].name]=e[t]}}catch(e){if(l){if(e instanceof n.AbiDecodingDataSizeTooSmallError)throw new n.DecodeLogDataMismatch({abiItem:f,data:e.data,params:e.params,size:e.size});throw e}}else if(l)throw new n.DecodeLogDataMismatch({abiItem:f,data:"0x",params:v,size:0})}return{eventName:h,args:Object.values(g).length>0?g:void 0}}},14338:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionData=void 0;let n=r(4403),o=r(53462),i=r(18546),a=r(14722),s=r(16759);t.decodeFunctionData=function({abi:e,data:t}){let r=(0,o.slice)(t,0,4),c=e.find(e=>"function"===e.type&&r===(0,i.getFunctionSelector)((0,s.formatAbiItem)(e)));if(!c)throw new n.AbiFunctionSignatureNotFoundError(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,a.decodeAbiParameters)(c.inputs,(0,o.slice)(t,4)):void 0}}},76286:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeFunctionResult=void 0;let n=r(4403),o=r(14722),i=r(95481),a="/docs/contract/decodeFunctionResult";t.decodeFunctionResult=function({abi:e,args:t,functionName:r,data:s}){let c=e[0];if(r&&!(c=(0,i.getAbiItem)({abi:e,args:t,name:r})))throw new n.AbiFunctionNotFoundError(r,{docsPath:a});if("function"!==c.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:a});if(!c.outputs)throw new n.AbiFunctionOutputsNotFoundError(c.name,{docsPath:a});let l=(0,o.decodeAbiParameters)(c.outputs,s);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},24837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayComponents=t.encodeAbiParameters=void 0;let n=r(4403),o=r(56293),i=r(21041),a=r(1501),s=r(54405),c=r(66859),l=r(53462),u=r(86308);function d(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:o}=e[r];n?t+=32:t+=(0,c.size)(o)}let r=[],n=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:s}=e[i];a?(r.push((0,u.numberToHex)(t+o,{size:32})),n.push(s),o+=(0,c.size)(s)):r.push(s)}return(0,a.concat)([...r,...n])}function f(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}t.encodeAbiParameters=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});let r=function({params:e,values:t}){let r=[];for(let h=0;h<e.length;h++)r.push(function e({param:t,value:r}){let h=f(t.type);if(h){let[o,i]=h;return function(t,{length:r,param:o}){let i=null===r;if(!Array.isArray(t))throw new n.InvalidArrayError(t);
2843if(!i&&t.length!==r)throw new n.AbiEncodingArrayLengthMismatchError({expectedLength:r,givenLength:t.length,type:`${o.type}[${r}]`});let s=!1,c=[];for(let r=0;r<t.length;r++){let n=e({param:o,value:t[r]});n.dynamic&&(s=!0),c.push(n)}if(i||s){let e=d(c);if(i){let t=(0,u.numberToHex)(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?(0,a.concat)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.concat)(c.map(({encoded:e})=>e))}}(r,{length:o,param:{...t,type:i}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,o=[];for(let i=0;i<r.components.length;i++){let a=r.components[i],s=Array.isArray(t)?i:a.name,c=e({param:a,value:t[s]});o.push(c),c.dynamic&&(n=!0)}return{dynamic:n,encoded:n?d(o):(0,a.concat)(o.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,i.isAddress)(e))throw new o.InvalidAddressError({address:e});return{dynamic:!1,encoded:(0,s.padHex)(e.toLowerCase())}}(r);if("bool"===t.type)return{dynamic:!1,encoded:(0,s.padHex)((0,u.boolToHex)(r))};if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int");return function(e,{signed:t}){return{dynamic:!1,encoded:(0,u.numberToHex)(e,{size:32,signed:t})}}(r,{signed:e})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),o=(0,c.size)(e);if(!r){let t=e;return o%32!=0&&(t=(0,s.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.concat)([(0,s.padHex)((0,u.numberToHex)(o,{size:32})),t])}}if(o!==parseInt(r))throw new n.AbiEncodingBytesSizeMismatchError({expectedSize:parseInt(r),value:e});return{dynamic:!1,encoded:(0,s.padHex)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,u.stringToHex)(e),r=Math.ceil((0,c.size)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,s.padHex)((0,l.slice)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,a.concat)([(0,s.padHex)((0,u.numberToHex)((0,c.size)(t),{size:32})),...n])}}(r);throw new n.InvalidAbiEncodingTypeError(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[h],value:t[h]}));return r}({params:e,values:t}),h=d(r);return 0===h.length?"0x":h},t.getArrayComponents=f},77833:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeDeployData=void 0;let n=r(4403),o=r(1501),i=r(24837),a="/docs/contract/encodeDeployData";t.encodeDeployData=function({abi:e,args:t,bytecode:r}){if(!t||0===t.length)return r;let s=e.find(e=>"type"in e&&"constructor"===e.type);if(!s)throw new n.AbiConstructorNotFoundError({docsPath:a});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new n.AbiConstructorParamsNotFoundError({docsPath:a});let c=(0,i.encodeAbiParameters)(s.inputs,t);return(0,o.concatHex)([r,c])}},59094:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeErrorResult=void 0;let n=r(4403),o=r(1501),i=r(18546),a=r(24837),s=r(16759),c=r(95481),l="/docs/contract/encodeErrorResult";t.encodeErrorResult=function({abi:e,errorName:t,args:r}){let u=e[0];if(t&&!(u=(0,c.getAbiItem)({abi:e,args:r,name:t})))throw new n.AbiErrorNotFoundError(t,{docsPath:l});if("error"!==u.type)throw new n.AbiErrorNotFoundError(void 0,{docsPath:l});let d=(0,s.formatAbiItem)(u),f=(0,i.getFunctionSelector)(d),h="0x";if(r&&r.length>0){if(!u.inputs)throw new n.AbiErrorInputsNotFoundError(u.name,{docsPath:l});h=(0,a.encodeAbiParameters)(u.inputs,r)}return(0,o.concatHex)([f,h])}},7534:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeEventTopics=void 0;let n=r(4403),o=r(79189),i=r(52387),a=r(79148),s=r(75225),c=r(24837),l=r(16759),u=r(95481);function d({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,s.keccak256)((0,i.toBytes)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new o.FilterTypeNotSupportedError(e.type);return(0,c.encodeAbiParameters)([e],[t])}t.encodeEventTopics=function({abi:e,eventName:t,args:r}){let o=e[0];if(t&&!(o=(0,u.getAbiItem)({abi:e,args:r,name:t})))throw new n.AbiEventNotFoundError(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==o.type)throw new n.AbiEventNotFoundError(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let i=(0,l.formatAbiItem)(o),s=(0,a.getEventSelector)(i),c=[];if(r&&"inputs"in o){let e=o.inputs?.filter(e=>
2843"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(c=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,o)=>d({param:e,value:t[r][o]})):t[r]?d({param:e,value:t[r]}):null)??[])}return[s,...c]}},22836:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionData=void 0;let n=r(4403),o=r(1501),i=r(18546),a=r(24837),s=r(16759),c=r(95481);t.encodeFunctionData=function({abi:e,args:t,functionName:r}){let l=e[0];if(r&&!(l=(0,c.getAbiItem)({abi:e,args:t,name:r})))throw new n.AbiFunctionNotFoundError(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==l.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let u=(0,s.formatAbiItem)(l),d=(0,i.getFunctionSelector)(u),f="inputs"in l&&l.inputs?(0,a.encodeAbiParameters)(l.inputs,t??[]):void 0;return(0,o.concatHex)([d,f??"0x"])}},72097:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeFunctionResult=void 0;let n=r(4403),o=r(24837),i=r(95481);t.encodeFunctionResult=function({abi:e,functionName:t,result:r}){let a=e[0];if(t&&!(a=(0,i.getAbiItem)({abi:e,name:t})))throw new n.AbiFunctionNotFoundError(t,{docsPath:"/docs/contract/encodeFunctionResult"});if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:"/docs/contract/encodeFunctionResult"});if(!a.outputs)throw new n.AbiFunctionOutputsNotFoundError(a.name,{docsPath:"/docs/contract/encodeFunctionResult"});let s=Array.isArray(r)?r:[r];return 0!==a.outputs.length||s[0]||(s=[]),(0,o.encodeAbiParameters)(a.outputs,s)}},33362:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacked=void 0;let n=r(4403),o=r(56293),i=r(21041),a=r(1501),s=r(54405),c=r(86308),l=r(27678);t.encodePacked=function(e,t){if(e.length!==t.length)throw new n.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:t.length});let r=[];for(let u=0;u<e.length;u++){let d=e[u],f=t[u];r.push(function e(t,r,u=!1){if("address"===t){if(!(0,i.isAddress)(r))throw new o.InvalidAddressError({address:r});return(0,s.pad)(r.toLowerCase(),{size:u?32:null})}if("string"===t)return(0,c.stringToHex)(r);if("bytes"===t)return r;if("bool"===t)return(0,s.pad)((0,c.boolToHex)(r),{size:u?32:1});let d=t.match(l.integerRegex);if(d){let[e,t,n="256"]=d,o=parseInt(n)/8;return(0,c.numberToHex)(r,{size:u?32:o,signed:"int"===t})}let f=t.match(l.bytesRegex);if(f){let[e,t]=f;if(parseInt(t)!==(r.length-2)/2)throw new n.BytesSizeMismatchError({expectedSize:parseInt(t),givenSize:(r.length-2)/2});return(0,s.pad)(r,{dir:"right",size:u?32:null})}let h=t.match(l.arrayRegex);if(h&&Array.isArray(r)){let[t,n]=h,o=[];for(let t=0;t<r.length;t++)o.push(e(n,r[t],!0));return 0===o.length?"0x":(0,a.concat)(o)}throw new n.UnsupportedPackedAbiType(t)}(d,f))}return(0,a.concat)(r)}},16759:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParams=t.formatAbiItem=void 0;let n=r(4403);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?", ":","):""}t.formatAbiItem=function(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.InvalidDefinitionTypeError(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`},t.formatAbiParams=o},87541:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItemWithArgs=void 0;let n=r(58);t.formatAbiItemWithArgs=function({abiItem:e,args:t,includeFunctionName:r=!0,includeName:o=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${o&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,n.stringify)(t[r]):t[r]}`).join(", ")})`}}
2843,95481:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArgOfType=t.getAbiItem=void 0;let n=r(21041);function o(e,t){let r=typeof e,i=t.type;switch(i){case"address":return(0,n.isAddress)(e);case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"components"in t)return Object.values(t.components).every((t,r)=>o(Object.values(e)[r],t));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||e instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(e)&&e.every(e=>o(e,{...t,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}t.getAbiItem=function({abi:e,args:t=[],name:r}){let n=e.filter(e=>"name"in e&&e.name===r);if(0!==n.length){if(1===n.length)return n[0];for(let e of n){if(!("inputs"in e))continue;if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs||0===e.inputs.length||e.inputs.length!==t.length)continue;let r=t.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&o(t,n)});if(r)return e}return n[0]}},t.isArgOfType=o},43817:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publicKeyToAddress=t.parseAccount=void 0;var n=r(3975);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return n.parseAccount}});var o=r(3417);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return o.publicKeyToAddress}})},36556:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAddress=t.checksumAddress=void 0;let n=r(56293),o=r(52387),i=r(75225),a=r(21041);function s(e,t){let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,i.keccak256)((0,o.stringToBytes)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&n[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());return`0x${a.join("")}`}t.checksumAddress=s,t.getAddress=function(e,t){if(!(0,a.isAddress)(e))throw new n.InvalidAddressError({address:e});return s(e,t)}},82668:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=t.getContractAddress=void 0;let n=r(1501),o=r(43848),i=r(54405),a=r(53462),s=r(52387),c=r(28913),l=r(75225),u=r(36556);function d(e){let t=(0,s.toBytes)((0,u.getAddress)(e.from)),r=(0,s.toBytes)(e.nonce);return 0===r[0]&&(r=new Uint8Array([])),(0,u.getAddress)(`0x${(0,l.keccak256)((0,c.toRlp)([t,r],"bytes")).slice(26)}`)}function f(e){let t=(0,s.toBytes)((0,u.getAddress)(e.from)),r=(0,i.pad)((0,o.isBytes)(e.salt)?e.salt:(0,s.toBytes)(e.salt),{size:32}),c=(0,s.toBytes)((0,l.keccak256)((0,o.isBytes)(e.bytecode)?e.bytecode:(0,s.toBytes)(e.bytecode)));return(0,u.getAddress)((0,a.slice)((0,l.keccak256)((0,n.concat)([(0,s.toBytes)("0xff"),t,r,c])),12))}t.getContractAddress=function(e){return"CREATE2"===e.opcode?f(e):d(e)},t.getCreateAddress=d,t.getCreate2Address=f},21041:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=void 0;let r=/^0x[a-fA-F0-9]{40}$/;t.isAddress=function(e){return r.test(e)}},13711:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAddressEqual=void 0;let n=r(56293),o=r(21041);t.isAddressEqual=function(e,t){if(!(0,o.isAddress)(e))throw new n.InvalidAddressError({address:e});if(!(0,o.isAddress)(t))throw new n.InvalidAddressError({address:t});return e.toLowerCase()===t.toLowerCase()}},25056:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRequest=t.isDeterministicError=void 0;let n=r(26456),o=r(72782),i=r(60793),a=r(89514);t.isDeterministicError=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof o.HttpRequestError&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status,t.buildRequest=function(e,{retryDelay:r=150,retryCount:s=3}={}){return async c=>(0,a.withRetry)(async()=>{try{return await e(c)}catch(e){switch(e.code){case i.ParseRpcError.code:throw new i.ParseRpcError(e);case i.InvalidRequestRpcError.code:throw new i.InvalidRequestRpcError(e);case i.MethodNotFoundRpcError.code:throw new i.MethodNotFoundRpcError(e);case i.InvalidParamsRpcError.code:throw new i.InvalidParamsRpcError(e);case i.InternalRpcError.code:throw new i.InternalRpcError(e);case i.InvalidInputRpcError.code:throw new i.InvalidInputRpcError(e);case i.ResourceNotFoundRpcError.code:throw new i.ResourceNotFoundRpcError(e);case i.ResourceUnavailableRpcError.code:throw new i.ResourceUnavailableRpcError(e);case i.TransactionRejectedRpcError.code:throw new i.TransactionRejectedRpcError(e);case i.MethodNotSupportedRpcError.code:throw new i.MethodNotSupportedRpcError(e);case i.LimitExceededRpcError.code:throw new i.LimitExceededRpcError(e);case i.JsonRpcVersionUnsupportedError.code:throw new i.JsonRpcVersionUnsupportedError(e);case i.UserRejectedRequestError.code:throw new i.UserRejectedRequestError(e);case i.UnauthorizedProviderError.code:throw new i.UnauthorizedProviderError(e);case i.UnsupportedProviderMethodError.code:throw new i.UnsupportedProviderMethodError(e);case i.ProviderDisconnectedError.code:throw new i.ProviderDisconnectedError(e);case i.ChainDisconnectedError.code:throw new i.ChainDisconnectedError(e);case i.SwitchChainError.code:throw new i.SwitchChainError(e);default:if(e instanceof n.BaseError)throw e;throw new i.UnknownRpcError(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof o.HttpRequestError){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<<e)*r},retryCount:s,shouldRetry:({error:e})=>!(0,t.isDeterministicError)(e)})}},64045:function(e,t,r){"use strict";
2843Object.defineProperty(t,"__esModule",{value:!0}),t.ccipFetch=t.offchainLookup=t.offchainLookupAbiItem=t.offchainLookupSignature=void 0;let n=r(11273),o=r(67409),i=r(72782),a=r(31293),s=r(24837),c=r(13711),l=r(1501),u=r(77116),d=r(58);async function f(e,{blockNumber:r,blockTag:i,data:u,to:d}){let{args:f}=(0,a.decodeErrorResult)({data:u,abi:[t.offchainLookupAbiItem]}),[p,m,g,b,v]=f;try{if(!(0,c.isAddressEqual)(d,p))throw new o.OffchainLookupSenderMismatchError({sender:p,to:d});let t=await h({data:g,sender:p,urls:m}),{data:a}=await (0,n.call)(e,{blockNumber:r,blockTag:i,data:(0,l.concat)([b,(0,s.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[t,v])]),to:d});return a}catch(e){throw new o.OffchainLookupError({callbackSelector:b,cause:e,data:u,extraData:v,sender:p,urls:m})}}async function h({data:e,sender:t,urls:r}){let n=Error("An unknown error occurred.");for(let a=0;a<r.length;a++){let s=r[a],c=s.includes("{sender}")||s.includes("{data}")?"GET":"POST",l="POST"===c?{data:e,sender:t}:void 0;try{let r;let a=await fetch(s.replace("{sender}",t).replace("{data}",e),{body:JSON.stringify(l),method:c});if(r=a.headers.get("Content-Type")?.startsWith("application/json")?(await a.json()).data:await a.text(),!a.ok){n=new i.HttpRequestError({body:l,details:(0,d.stringify)(r.error)||a.statusText,headers:a.headers,status:a.status,url:s});continue}if(!(0,u.isHex)(r)){n=new o.OffchainLookupResponseMalformedError({result:r,url:s});continue}return r}catch(e){n=new i.HttpRequestError({body:l,details:e.message,url:s})}}throw n}t.offchainLookupSignature="0x556f1830",t.offchainLookupAbiItem={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]},t.offchainLookup=f,t.ccipFetch=h},47797:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=t.defineChain=t.assertCurrentChain=void 0;let n=r(91363);t.assertCurrentChain=function({chain:e,currentChainId:t}){if(!e)throw new n.ChainNotFoundError;if(t!==e.id)throw new n.ChainMismatchError({chain:e,currentChainId:t})},t.defineChain=function(e,t){return{...e,formatters:t?.formatters,serializers:t?.serializers}},t.getChainContractAddress=function({blockNumber:e,chain:t,contract:r}){let o=t?.contracts?.[r];if(!o)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:r}});if(e&&o.blockCreated&&o.blockCreated>e)throw new n.ChainDoesNotSupportContract({blockNumber:e,chain:t,contract:{name:r,blockCreated:o.blockCreated}});return o.address}},35914:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.extractFunctionParts=void 0;let r=/((function|event)\s)?(.*)(\((.*)\))/;function n(e){let t=e.match(r),n=t?.[2]||void 0,o=t?.[3],i=t?.[5]||void 0;return{type:n,name:o,params:i}}t.extractFunctionParts=n,t.extractFunctionName=function(e){return n(e).name},t.extractFunctionParams=function(e){let t=n(e).params,r=t?.split(",").map(e=>e.trim().split(" "));return r?.map(e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}}))},t.extractFunctionType=function(e){return n(e).type}},1501:function(e,t){"use strict";function r(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=void 0,t.concat=function(e){return"string"==typeof e[0]?n(e):r(e)},t.concatBytes=r,t.concatHex=n},43848:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=void 0,t.isBytes=function(e){return!!e&&"object"==typeof e&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name}},56770:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBytesEqual=void 0;let n=r(68995),o=r(40219);t.isBytesEqual=function(e,t){let r=(0,n.isHex)(e)?(0,n.toBytes)(e):e,i=(0,n.isHex)(t)?(0,n.toBytes)(t):t;return(0,o.equalBytes)(r,i)}},77116:function(e,t){"use strict";
2843Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=void 0,t.isHex=function(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},54405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.padHex=t.pad=void 0;let n=r(68377);function o(e,{dir:t,size:r=32}={}){if(null===r)return e;let o=e.replace("0x","");if(o.length>2*r)throw new n.SizeExceedsPaddingSizeError({size:Math.ceil(o.length/2),targetSize:r,type:"hex"});return`0x${o["right"===t?"padEnd":"padStart"](2*r,"0")}`}function i(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"bytes"});let o=new Uint8Array(r);for(let n=0;n<r;n++){let i="right"===t;o[i?n:r-n-1]=e[i?n:e.length-n-1]}return o}t.pad=function(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):i(e,{dir:t,size:r})},t.padHex=o,t.padBytes=i},66859:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.size=void 0;let n=r(77116);t.size=function(e){return(0,n.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},53462:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sliceHex=t.sliceBytes=t.slice=void 0;let n=r(68377),o=r(77116),i=r(66859);function a(e,t){if("number"==typeof t&&t>0&&t>(0,i.size)(e)-1)throw new n.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,i.size)(e)})}function s(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,i.size)(e)!==r-t)throw new n.SliceOffsetOutOfBoundsError({offset:r,position:"end",size:(0,i.size)(e)})}function c(e,t,r,{strict:n}={}){a(e,t);let o=e.slice(t,r);return n&&s(o,t,r),o}function l(e,t,r,{strict:n}={}){a(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&s(o,t,r),o}t.slice=function(e,t,r,{strict:n}={}){return(0,o.isHex)(e,{strict:!1})?l(e,t,r,{strict:n}):c(e,t,r,{strict:n})},t.sliceBytes=c,t.sliceHex=l},80475:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trim=void 0,t.trim=function(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}},54328:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.fromBytes=void 0;let n=r(26425),o=r(80475),i=r(57114),a=r(86308);function s(e,t={}){void 0!==t.size&&(0,i.assertSize)(e,{size:t.size});let r=(0,a.bytesToHex)(e,t);return(0,i.hexToBigInt)(r)}function c(e,t={}){let r=e;if(void 0!==t.size&&((0,i.assertSize)(r,{size:t.size}),r=(0,o.trim)(r)),r.length>1||r[0]>1)throw new n.InvalidBytesBooleanError(r);return!!r[0]}function l(e,t={}){void 0!==t.size&&(0,i.assertSize)(e,{size:t.size});let r=(0,a.bytesToHex)(e,t);return(0,i.hexToNumber)(r)}function u(e,t={}){let r=e;return void 0!==t.size&&((0,i.assertSize)(r,{size:t.size}),r=(0,o.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}t.fromBytes=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?l(e,r):"bigint"===n?s(e,r):"boolean"===n?c(e,r):"str
2843ing"===n?u(e,r):(0,a.bytesToHex)(e,r)},t.bytesToBigint=s,t.bytesToBool=c,t.bytesToNumber=l,t.bytesToString=u},57114:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.assertSize=void 0;let n=r(26425),o=r(66859),i=r(80475),a=r(52387);function s(e,{size:t}){if((0,o.size)(e)>t)throw new n.SizeOverflowError({givenSize:(0,o.size)(e),maxSize:t})}function c(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let o=(e.length-2)/2,i=(1n<<8n*BigInt(o)-1n)-1n;return n<=i?n:n-BigInt(`0x${"f".padStart(2*o,"f")}`)-1n}function l(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,i.trim)(r)),"0x00"===(0,i.trim)(r))return!1;if("0x01"===(0,i.trim)(r))return!0;throw new n.InvalidHexBooleanError(r)}function u(e,t={}){return Number(c(e,t))}function d(e,t={}){let r=(0,a.hexToBytes)(e);return t.size&&(s(r,{size:t.size}),r=(0,i.trim)(r,{dir:"right"})),new TextDecoder().decode(r)}t.assertSize=s,t.fromHex=function(e,t){let r="string"==typeof t?{to:t}:t,n=r.to;
2843return"number"===n?u(e,r):"bigint"===n?c(e,r):"string"===n?d(e,r):"boolean"===n?l(e,r):(0,a.hexToBytes)(e,r)},t.hexToBigInt=c,t.hexToBool=l,t.hexToNumber=u,t.hexToString=d},92237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRlp=void 0;let n=r(26425),o=r(54328),i=r(52387),a=r(86308);t.fromRlp=function(e,t){let r=function(e){if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new n.InvalidHexValueError(e);return(0,i.hexToBytes)(e)}return e}(e),[s,c]=function e(t,r=0){if(0===t.length)return[new Uint8Array([]),0];let i=t[r];if(i<=127)return[new Uint8Array([t[r]]),1];if(i<=183){let e=i-128,o=r+1;if(o+e>t.length)throw new n.DataLengthTooShortError({length:o+e,dataLength:t.length});return[t.slice(o,o+e),1+e]}if(i<=191){let e=i-183,a=r+1,s=(0,o.bytesToNumber)(t.slice(a,a+e));if(a+e+s>t.length)throw new n.DataLengthTooShortError({length:e+s,dataLength:t.length-e});return[t.slice(a+e,a+e+s),1+e+s]}let a=0,s=i-192;i>247&&(a=i-247,s=(0,o.bytesToNumber)(t.slice(r+1,r+1+a)));let c=r+1+a;if(c>t.length)throw new n.DataLengthTooShortError({length:c,dataLength:t.length});let l=1+a+s,u=[];for(;c<r+l;){let o=e(t,c);if(u.push(o[0]),(c+=o[1])>r+l)throw new n.OffsetOutOfBoundsError({nextOffset:c,offset:r+l})}return[u,l]}(r);if(c<r.length)throw new n.DataLengthTooLongError({consumed:c,length:r.length});return function e(t,r){return Array.isArray(t)?t.map(t=>e(t,r)):"hex"===r?(0,a.bytesToHex)(t):t}(s,t)}},52387:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.toBytes=void 0;let n=r(26456),o=r(77116),i=r(54405),a=r(57114),s=r(86308),c=new TextEncoder;function l(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.assertSize)(r,{size:t.size}),(0,i.pad)(r,{size:t.size})):r}function u(e,t={}){let r=e;t.size&&((0,a.assertSize)(r,{size:t.size}),r=(0,i.pad)(r,{dir:"right",size:t.size}));let o=r.slice(2);o.length%2&&(o=`0${o}`);let s=new Uint8Array(o.length/2);for(let e=0;e<s.length;e++){let t=2*e,r=o.slice(t,t+2),i=Number.parseInt(r,16);if(Number.isNaN(i)||i<0)throw new n.BaseError(`Invalid byte sequence ("${r}" in "${o}").`);s[e]=i}return s}function d(e,t){let r=(0,s.numberToHex)(e,t);return u(r)}function f(e,t={}){let r=c.encode(e);return"number"==typeof t.size?((0,a.assertSize)(r,{size:t.size}),(0,i.pad)(r,{dir:"right",size:t.size})):r}t.toBytes=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?d(e,t):"boolean"==typeof e?l(e,t):(0,o.isHex)(e)?u(e,t):f(e,t)},t.boolToBytes=l,t.hexToBytes=u,t.numberToBytes=d,t.stringToBytes=f},86308:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toHex=void 0;let n=r(26425),o=r(54405),i=r(57114),a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,i.assertSize)(r,{size:t.size}),(0,o.pad)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=a[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,i.assertSize)(n,{size:t.size}),(0,o.pad)(n,{dir:"right",size:t.size})):n}function l(e,t={}){let r;let{signed:i,size:a}=t,s=BigInt(e);a?r=i?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof r&&i?-r-1n:0;if(r&&s>r||s<c){let t="bigint"==typeof e?"n":"";throw new n.IntegerOutOfRangeError({max:r?`${r}${t}`:void 0,min:`${c}${t}`,signed:i,size:a,value:`${e}${t}`})}let l=`0x${(i&&s<0?(1n<<BigInt(8*a))+BigInt(s):s).toString(16)}`;return a?(0,o.pad)(l,{size:a}):l}t.toHex=function(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?d(e,t):"boolean"==typeof e?s(e,t):c(e,t)},t.boolToHex=s,t.bytesToHex=c,t.numberToHex=l;let u=new TextEncoder;function d(e,t={}){let r=u.encode(e);return c(r,t)}t.stringToHex=d},28913:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToRlp=t.toRlp=void 0;let n=r(1501),o=r(52387),i=r(86308);
2843function a(e){if(Array.isArray(e)){let t=(0,n.concat)(e.map(a));return new Uint8Array([...s(t.length,192),...t])}return 1===e.length&&e[0]<128?e:new Uint8Array([...s(e.length,128),...e])}function s(e,t){return e<56?[t+e]:[(0,o.toBytes)(e).length+t+55,...(0,o.toBytes)(e)]}t.toRlp=function(e,t){let r=t||"hex";return function(e,t="bytes"){return"hex"===t?(0,i.bytesToHex)(e):e}(a(function e(t){return Array.isArray(t)?t.map(e):"string"==typeof t?(0,o.toBytes)(t):t}(e)),r)},t.bytesToRlp=a},18467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAvatarRecord=void 0;let n=r(46393);async function o(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?i(e,{gatewayUrls:t,record:r}):(0,n.parseAvatarUri)({uri:r,gatewayUrls:t})}async function i(e,{gatewayUrls:t,record:r}){let o=(0,n.parseNftUri)(r),i=await (0,n.getNftTokenUri)(e,{nft:o}),{uri:a,isOnChain:s,isEncoded:c}=(0,n.resolveAvatarUri)({uri:i,gatewayUrls:t});if(s&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){let e=c?atob(a.replace("data:application/json;base64,","")):a,r=JSON.parse(e);return(0,n.parseAvatarUri)({uri:(0,n.getJsonImage)(r),gatewayUrls:t})}let l=o.tokenID;return"erc1155"===o.namespace&&(l=l.replace("0x","").padStart(64,"0")),(0,n.getMetadataAvatarUri)({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,l)})}t.parseAvatarRecord=o},46393:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNftTokenUri=t.parseNftUri=t.parseAvatarUri=t.getMetadataAvatarUri=t.getJsonImage=t.resolveAvatarUri=t.getGateway=t.isImageUri=void 0;let n=r(33531),o=r(80733),i=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,a=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,s=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,c=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function l(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function u(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function d({uri:e,gatewayUrls:t}){let r=s.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=u(t?.ipfs,"https://ipfs.io"),l=u(t?.arweave,"https://arweave.net"),d=e.match(i),{protocol:f,subpath:h,target:p,subtarget:m=""}=d?.groups||{},g="ipns:/"===f||"ipns/"===h,b="ipfs:/"===f||"ipfs/"===h||a.test(e);if(e.startsWith("http")&&!g&&!b){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((g||b)&&p)return{uri:`${n}/${g?"ipns":"ipfs"}/${p}${m}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&p)return{uri:`${l}/${p}${m||""}`,isOnChain:!1,isEncoded:!1};let v=e.replace(c,"");if(v.startsWith("<svg")&&(v=`data:image/svg+xml;base64,${btoa(v)}`),v.startsWith("data:")||v.startsWith("{"))return{uri:v,isOnChain:!0,isEncoded:!1};throw new o.EnsAvatarUriResolutionError({uri:e})}function f(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new o.EnsAvatarInvalidMetadataError({data:e});return e.image||e.image_url||e.image_data}async function h({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json()),n=await p({gatewayUrls:e,uri:f(r)});return n}catch{throw new o.EnsAvatarUriResolutionError({uri:t})}}async function p({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=d({uri:t,gatewayUrls:e});if(n)return r;let i=await l(r);if(i)return r;throw new o.EnsAvatarUriResolutionError({uri:t})}async function m(e,{nft:t}){if("erc721"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.readContract)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}
2843],functionName:"uri",args:[BigInt(t.tokenID)]});throw new o.EnsAvatarUnsupportedNamespaceError({namespace:t.namespace})}t.isImageUri=l,t.getGateway=u,t.resolveAvatarUri=d,t.getJsonImage=f,t.getMetadataAvatarUri=h,t.parseAvatarUri=p,t.parseNftUri=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,i]=t.split("/"),[a,s]=r.split(":"),[c,l]=n.split(":");if(!a||"eip155"!==a.toLowerCase())throw new o.EnsAvatarInvalidNftUriError({reason:"Only EIP-155 supported"});if(!s)throw new o.EnsAvatarInvalidNftUriError({reason:"Chain ID not found"});if(!l)throw new o.EnsAvatarInvalidNftUriError({reason:"Contract address not found"});if(!i)throw new o.EnsAvatarInvalidNftUriError({reason:"Token ID not found"});if(!c)throw new o.EnsAvatarInvalidNftUriError({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:c.toLowerCase(),contractAddress:l,tokenID:i}},t.getNftTokenUri=m},17398:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeLabelhash=void 0,t.encodeLabelhash=function(e){return`[${e.slice(2)}]`}},7367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodedLabelToLabelhash=void 0;let n=r(50634);t.encodedLabelToLabelhash=function(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.isHex)(t)?t:null}},19662:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullUniversalResolverError=void 0;let n=r(6049),o=r(26456),i=r(9996);t.isNullUniversalResolverError=function(e,t){if(!(e instanceof o.BaseError))return!1;let r=e.walk(e=>e instanceof i.ContractFunctionRevertedError);return r instanceof i.ContractFunctionRevertedError&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===n.panicReasons[50])}},41311:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.labelhash=void 0;let n=r(52387),o=r(86308),i=r(75225),a=r(7367);t.labelhash=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.encodedLabelToLabelhash)(e)||(0,i.keccak256)((0,n.stringToBytes)(e)):(0,o.bytesToHex)(t)}},77863:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namehash=void 0;let n=r(1501),o=r(52387),i=r(86308),a=r(75225),s=r(7367);t.namehash=function(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,i.bytesToHex)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let i=(0,s.encodedLabelToLabelhash)(r[e]),c=i?(0,o.toBytes)(i):(0,a.keccak256)((0,o.stringToBytes)(r[e]),"bytes");t=(0,a.keccak256)((0,n.concat)([t,c]),"bytes")}return(0,i.bytesToHex)(t)}},72126:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packetToBytes=void 0;let n=r(52387),o=r(17398),i=r(41311);t.packetToBytes=function(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,n.stringToBytes)(t).byteLength+2),a=0,s=t.split(".");for(let e=0;e<s.length;e++){let t=(0,n.stringToBytes)(s[e]);t.byteLength>255&&(t=(0,n.stringToBytes)((0,o.encodeLabelhash)((0,i.labelhash)(s[e])))),r[a]=t.length,r.set(t,a+1),a+=t.length+1}return r.byteLength!==a+1?r.slice(0,a+1):r}},10133:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCallError=void 0;let n=r(9996),o=r(53951);t.getCallError=function(e,{docsPath:t,...r}){let i=e;return(0,o.containsNodeError)(e)&&(i=(0,o.getNodeError)(e,r)),new n.CallExecutionError(i,{docsPath:t,...r})}},90042:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContractError=void 0;let n=r(4403),o=r(26456),i=r(9996);t.getContractError=function(e,{abi:t,address:r,args:a,docsPath:s,functionName:c,sender:l}){let{code:u,data:d,message:f,shortMessage:h}=e instanceof i.RawContractError?e:e instanceof o.BaseError?e.walk(e=>"data"in e)||e.walk():{},p=e;return e instanceof n.AbiDecodingZeroDataError?p=new i.ContractFunctionZeroDataError({functionName:c}):3===u&&(d||f||h)&&(p=new i.ContractFunctionRevertedError({abi:t,data:"object"==typeof d?d.data:d,functionName:c,message:h??f})),new i.ContractFunctionExecutionError(p,{abi:t,args:a,contractAddress:r,docsPath:s,functionName:c,sender:l})}},54141:function(e,t,r){"use strict";
2843Object.defineProperty(t,"__esModule",{value:!0}),t.getEstimateGasError=void 0;let n=r(78966),o=r(53951);t.getEstimateGasError=function(e,{docsPath:t,...r}){let i=e;return(0,o.containsNodeError)(e)&&(i=(0,o.getNodeError)(e,r)),new n.EstimateGasExecutionError(i,{docsPath:t,...r})}},53951:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeError=t.containsNodeError=void 0;let n=r(72695),o=r(72782),i=r(60793);t.containsNodeError=function(e){return e instanceof i.TransactionRejectedRpcError||e instanceof i.InvalidInputRpcError||e instanceof o.RpcRequestError&&e.code===n.ExecutionRevertedError.code},t.getNodeError=function(e,t){let r=e.details.toLowerCase();if(n.FeeCapTooHighError.nodeMessage.test(r))return new n.FeeCapTooHighError({cause:e,maxFeePerGas:t?.maxFeePerGas});if(n.FeeCapTooLowError.nodeMessage.test(r))return new n.FeeCapTooLowError({cause:e,maxFeePerGas:t?.maxFeePerGas});if(n.NonceTooHighError.nodeMessage.test(r))return new n.NonceTooHighError({cause:e,nonce:t?.nonce});if(n.NonceTooLowError.nodeMessage.test(r))return new n.NonceTooLowError({cause:e,nonce:t?.nonce});if(n.NonceMaxValueError.nodeMessage.test(r))return new n.NonceMaxValueError({cause:e,nonce:t?.nonce});if(n.InsufficientFundsError.nodeMessage.test(r))return new n.InsufficientFundsError({cause:e});if(n.IntrinsicGasTooHighError.nodeMessage.test(r))return new n.IntrinsicGasTooHighError({cause:e,gas:t?.gas});else if(n.IntrinsicGasTooLowError.nodeMessage.test(r))return new n.IntrinsicGasTooLowError({cause:e,gas:t?.gas});else if(n.TransactionTypeNotSupportedError.nodeMessage.test(r))return new n.TransactionTypeNotSupportedError({cause:e});else if(n.TipAboveFeeCapError.nodeMessage.test(r))return new n.TipAboveFeeCapError({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas});else if(r.match(n.ExecutionRevertedError.nodeMessage)||"code"in e.cause&&e.cause?.code===n.ExecutionRevertedError.code)return new n.ExecutionRevertedError({cause:e,message:e.cause.details||e.details});return new n.UnknownNodeError({cause:e.cause.cause})}},72533:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionError=void 0;let n=r(70270),o=r(53951);t.getTransactionError=function(e,{docsPath:t,...r}){let i=e;return(0,o.containsNodeError)(e)&&(i=(0,o.getNodeError)(e,r)),new n.TransactionExecutionError(i,{docsPath:t,...r})}},44929:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterRequestScope=void 0,t.createFilterRequestScope=function(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:o,transport:i})=>{"success"===o&&t===e&&(r[n]=i.request)}),t=>r[t]||e.request}},23604:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineBlock=t.formatBlock=void 0;let n=r(74373),o=r(1982);function i(e){let t=e.transactions?.map(e=>"string"==typeof e?e:o.formatTransaction(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}t.formatBlock=i,t.defineBlock=(0,n.defineFormatter)("block",i)},82320:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extract=void 0,t.extract=function(e,{format:t}){if(!t)return{};let r=Object.keys(t({}));return r.reduce((t,r)=>(e?.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}},92736:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatFeeHistory=void 0,t.formatFeeHistory=function(e){return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(e=>e.map(e=>BigInt(e)))}}},74373:function(e,t){"use strict";
2843Object.defineProperty(t,"__esModule",{value:!0}),t.defineFormatter=void 0,t.defineFormatter=function(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{let o=t(e);if(r)for(let e of r)delete o[e];return{...o,...n(e)}},type:e})}},80330:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLog=void 0,t.formatLog=function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}},1982:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransaction=t.formatTransaction=t.transactionType=void 0;let n=r(57114),o=r(74373);function i(e){let r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.hexToNumber)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.hexToNumber)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?t.transactionType[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return"legacy"===r.type&&(delete r.accessList,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),"eip2930"===r.type&&(delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r}t.transactionType={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"},t.formatTransaction=i,t.defineTransaction=(0,o.defineFormatter)("transaction",i)},5840:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionReceipt=t.formatTransactionReceipt=void 0;let n=r(57114),o=r(74373),i=r(80330),a=r(1982),s={"0x0":"reverted","0x1":"success"};function c(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,i.formatLog)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.hexToNumber)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.transactionType[e.type]||e.type:null}}t.formatTransactionReceipt=c,t.defineTransactionReceipt=(0,o.defineFormatter)("transactionReceipt",c)},33270:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineTransactionRequest=t.formatTransactionRequest=void 0;let n=r(86308),o=r(74373);function i(e){return{...e,gas:void 0!==e.gas?(0,n.numberToHex)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,n.numberToHex)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,n.numberToHex)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,n.numberToHex)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,n.numberToHex)(e.nonce):void 0,value:void 0!==e.value?(0,n.numberToHex)(e.value):void 0}}t.formatTransactionRequest=i,t.defineTransactionRequest=(0,o.defineFormatter)("transactionRequest",i)},79148:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventSelector=void 0;let n=r(81887);t.getEventSelector=e=>"string"==typeof e?(0,n.hashFunction)(e):(0,n.hashAbiItem)(e)},18546:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionSelector=void 0;let n=r(53462),o=r(81887);t.getFunctionSelector=e=>"string"==typeof e?(0,n.slice)((0,o.hashFunction)(e),0,4):(0,n.slice)((0,o.hashAbiItem)(e),0,4)},81887:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashAbiItem=t.hashFunction=void 0;let n=r(16759),o=r(35914),i=r(52387),a=r(75225),s=e=>(0,a.keccak256)((0,i.toBytes)(e));t.hashFunction=function(e){let t=(0,o.extractFunctionName)(e),r=(0,o.extractFunctionParams)(e)||[];return s(`${t}(${r.map(({type:e})=>e).join(",")})`)},t.hashAbiItem=function(e){return s((0,n.formatAbiItem)(e))}},95056:function(e,t,r){"use strict";
2843Object.defineProperty(t,"__esModule",{value:!0}),t.isHash=void 0;let n=r(77116),o=r(66859);t.isHash=function(e){return(0,n.isHex)(e)&&32===(0,o.size)(e)}},75225:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;let n=r(7217),o=r(77116),i=r(52387),a=r(86308);t.keccak256=function(e,t){let r=(0,n.keccak_256)((0,o.isHex)(e,{strict:!1})?(0,i.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,a.toHex)(r)}},50634:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=t.extractFunctionParts=t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.isAddressEqual=t.isAddress=t.getAddress=t.getCreate2Address=t.getCreateAddress=t.getContractAddress=t.publicKeyToAddress=t.parseAccount=t.formatAbiParams=t.formatAbiItem=t.formatAbiItemWithArgs=t.encodePacked=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.getAbiItem=t.encodeFunctionResult=t.encodeFunctionData=t.encodeEventTopics=t.encodeErrorResult=t.encodeDeployData=t.encodeAbiParameters=t.decodeFunctionResult=t.decodeFunctionData=t.decodeEventLog=t.decodeErrorResult=t.decodeAbiParameters=t.validateTypedData=t.stringify=t.rpc=t.getSocket=t.integerRegex=t.bytesRegex=t.arrayRegex=t.getChainContractAddress=t.defineChain=t.assertCurrentChain=t.offchainLookupSignature=t.offchainLookupAbiItem=t.offchainLookup=t.ccipFetch=t.buildRequest=void 0,t.getEventSelector=t.defineFormatter=t.getTransactionError=t.getEstimateGasError=t.getContractError=t.getCallError=t.getNodeError=t.containsNodeError=t.fromRlp=t.hexToString=t.hexToNumber=t.hexToBigInt=t.hexToBool=t.fromHex=t.fromBytes=t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.stringToHex=t.numberToHex=t.toHex=t.bytesToHex=t.boolToHex=t.stringToBytes=t.numberToBytes=t.hexToBytes=t.toBytes=t.boolToBytes=t.toRlp=t.extract=t.formatTransactionRequest=t.defineTransactionRequest=t.defineTransactionReceipt=t.formatLog=t.transactionType=t.formatTransaction=t.defineTransaction=t.formatBlock=t.defineBlock=t.trim=t.sliceHex=t.sliceBytes=t.slice=t.size=t.padHex=t.padBytes=t.pad=t.isHex=t.isBytes=void 0,t.parseGwei=t.parseEther=t.parseUnits=t.formatUnits=t.formatGwei=t.formatEther=t.serializeAccessList=t.serializeTransaction=t.prepareRequest=t.parseTransaction=t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=t.assertRequest=t.getTransactionType=t.getSerializedTransactionType=t.hashMessage=t.verifyTypedData=t.verifyMessage=t.recoverTypedDataAddress=t.recoverPublicKey=t.recoverMessageAddress=t.recoverAddress=t.hashTypedData=t.keccak256=t.isHash=t.getFunctionSelector=void 0;var n=r(25056);Object.defineProperty(t,"buildRequest",{enumerable:!0,get:function(){return n.buildRequest}});var o=r(64045);Object.defineProperty(t,"ccipFetch",{enumerable:!0,get:function(){return o.ccipFetch}}),Object.defineProperty(t,"offchainLookup",{enumerable:!0,get:function(){return o.offchainLookup}}),Object.defineProperty(t,"offchainLookupAbiItem",{enumerable:!0,get:function(){return o.offchainLookupAbiItem}}),Object.defineProperty(t,"offchainLookupSignature",{enumerable:!0,get:function(){return o.offchainLookupSignature}});var i=r(47797);Object.defineProperty(t,"assertCurrentChain",{enumerable:!0,get:function(){return i.assertCurrentChain}}),Object.defineProperty(t,"defineChain",{enumerable:!0,get:function(){return i.defineChain}}),Object.defineProperty(t,"getChainContractAddress",{enumerable:!0,get:function(){return i.getChainContractAddress}});var a=r(27678);Object.defineProperty(t,"arrayRegex",{enumerable:!0,get:function(){return a.arrayRegex}}),Object.defineProperty(t,"bytesRegex",{enumerable:!0,get:function(){return a.bytesRegex}}),Object.defineProperty(t,"integerRegex",{enumerable:!0,get:function(){return a.integerRegex}});var s=r(82530);Object.defineProperty(t,"getSocket",{enumerable:!0,get:function(){return s.getSocket}}),Object.defineProperty(t,"rpc",{enumerable:!0,get:function(){return s.rpc}});var c=r(58);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}});var l=r(42586);Object.defineProperty(t,"validateTypedData",{enumerable:!0,get:function(){return l.validateTypedData}
2843});var u=r(14722);Object.defineProperty(t,"decodeAbiParameters",{enumerable:!0,get:function(){return u.decodeAbiParameters}});var d=r(31293);Object.defineProperty(t,"decodeErrorResult",{enumerable:!0,get:function(){return d.decodeErrorResult}});var f=r(81912);Object.defineProperty(t,"decodeEventLog",{enumerable:!0,get:function(){return f.decodeEventLog}});var h=r(14338);Object.defineProperty(t,"decodeFunctionData",{enumerable:!0,get:function(){return h.decodeFunctionData}});var p=r(76286);Object.defineProperty(t,"decodeFunctionResult",{enumerable:!0,get:function(){return p.decodeFunctionResult}});var m=r(24837);Object.defineProperty(t,"encodeAbiParameters",{enumerable:!0,get:function(){return m.encodeAbiParameters}});var g=r(77833);Object.defineProperty(t,"encodeDeployData",{enumerable:!0,get:function(){return g.encodeDeployData}});var b=r(59094);Object.defineProperty(t,"encodeErrorResult",{enumerable:!0,get:function(){return b.encodeErrorResult}});var v=r(7534);Object.defineProperty(t,"encodeEventTopics",{enumerable:!0,get:function(){return v.encodeEventTopics}});var y=r(22836);Object.defineProperty(t,"encodeFunctionData",{enumerable:!0,get:function(){return y.encodeFunctionData}});var w=r(72097);Object.defineProperty(t,"encodeFunctionResult",{enumerable:!0,get:function(){return w.encodeFunctionResult}});var E=r(95481);Object.defineProperty(t,"getAbiItem",{enumerable:!0,get:function(){return E.getAbiItem}});var x=r(48661);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return x.parseAbi}}),Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return x.parseAbiItem}}),Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return x.parseAbiParameter}}),Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return x.parseAbiParameters}});var C=r(33362);Object.defineProperty(t,"encodePacked",{enumerable:!0,get:function(){return C.encodePacked}});var A=r(87541);Object.defineProperty(t,"formatAbiItemWithArgs",{enumerable:!0,get:function(){return A.formatAbiItemWithArgs}});var P=r(16759);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return P.formatAbiItem}}),Object.defineProperty(t,"formatAbiParams",{enumerable:!0,get:function(){return P.formatAbiParams}});var j=r(3975);Object.defineProperty(t,"parseAccount",{enumerable:!0,get:function(){return j.parseAccount}});var k=r(3417);Object.defineProperty(t,"publicKeyToAddress",{enumerable:!0,get:function(){return k.publicKeyToAddress}});var O=r(82668);Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return O.getContractAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return O.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return O.getCreate2Address}});var S=r(36556);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return S.getAddress}});var I=r(21041);Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return I.isAddress}});var T=r(13711);Object.defineProperty(t,"isAddressEqual",{enumerable:!0,get:function(){return T.isAddressEqual}});var B=r(35914);Object.defineProperty(t,"extractFunctionName",{enumerable:!0,get:function(){return B.extractFunctionName}}),Object.defineProperty(t,"extractFunctionParams",{enumerable:!0,get:function(){return B.extractFunctionParams}}),Object.defineProperty(t,"extractFunctionType",{enumerable:!0,get:function(){return B.extractFunctionType}}),Object.defineProperty(t,"extractFunctionParts",{enumerable:!0,get:function(){return B.extractFunctionParts}});var _=r(1501);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return _.concat}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return _.concatBytes}}),Object.defineProperty(t,"concatHex",{enumerable:!0,get:function(){return _.concatHex}});var D=r(43848);Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return D.isBytes}});var $=r(77116);Object.defineProperty(t,"isHex",{enumerable:!0,get:function(){return $.isHex}});var M=r(54405);Object.defineProperty(t,"pad",{enumerable:!0,get:function(){return M.pad}}),Object.defineProperty(t,"padBytes",{enumerable:!0,get:function(){return M.padBytes}}),Object.defineProperty(t,"padHex",{enumerable:!0,get:function(){return M.padHex}});var R=r(66859);Object.defineProperty(t,"size",{enumerable:!0,get:function(){return R.size}});var N=r(53462);Object.defineProperty(t,"slice",{enumerable:!0,get:function(){return N.slice}}),Object.defineProperty(t,"sliceBytes",{enumerable:!0,get:function(){return N.sliceBytes}}),Object.defineProperty(t,"sliceHex",{enumerable:!0,get:function(){return N.sliceHex}});
2843var F=r(80475);Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return F.trim}});var L=r(23604);Object.defineProperty(t,"defineBlock",{enumerable:!0,get:function(){return L.defineBlock}}),Object.defineProperty(t,"formatBlock",{enumerable:!0,get:function(){return L.formatBlock}});var U=r(1982);Object.defineProperty(t,"defineTransaction",{enumerable:!0,get:function(){return U.defineTransaction}}),Object.defineProperty(t,"formatTransaction",{enumerable:!0,get:function(){return U.formatTransaction}}),Object.defineProperty(t,"transactionType",{enumerable:!0,get:function(){return U.transactionType}});var z=r(80330);Object.defineProperty(t,"formatLog",{enumerable:!0,get:function(){return z.formatLog}});var H=r(5840);Object.defineProperty(t,"defineTransactionReceipt",{enumerable:!0,get:function(){return H.defineTransactionReceipt}});var q=r(33270);Object.defineProperty(t,"defineTransactionRequest",{enumerable:!0,get:function(){return q.defineTransactionRequest}}),Object.defineProperty(t,"formatTransactionRequest",{enumerable:!0,get:function(){return q.formatTransactionRequest}});var G=r(82320);Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return G.extract}});var W=r(28913);Object.defineProperty(t,"toRlp",{enumerable:!0,get:function(){return W.toRlp}});var K=r(52387);Object.defineProperty(t,"boolToBytes",{enumerable:!0,get:function(){return K.boolToBytes}}),Object.defineProperty(t,"toBytes",{enumerable:!0,get:function(){return K.toBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return K.hexToBytes}}),Object.defineProperty(t,"numberToBytes",{enumerable:!0,get:function(){return K.numberToBytes}}),Object.defineProperty(t,"stringToBytes",{enumerable:!0,get:function(){return K.stringToBytes}});var V=r(86308);Object.defineProperty(t,"boolToHex",{enumerable:!0,get:function(){return V.boolToHex}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return V.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return V.toHex}}),Object.defineProperty(t,"numberToHex",{enumerable:!0,get:function(){return V.numberToHex}}),Object.defineProperty(t,"stringToHex",{enumerable:!0,get:function(){return V.stringToHex}});var Q=r(54328);Object.defineProperty(t,"bytesToBigint",{enumerable:!0,get:function(){return Q.bytesToBigint}}),Object.defineProperty(t,"bytesToBool",{enumerable:!0,get:function(){return Q.bytesToBool}}),Object.defineProperty(t,"bytesToNumber",{enumerable:!0,get:function(){return Q.bytesToNumber}}),Object.defineProperty(t,"bytesToString",{enumerable:!0,get:function(){return Q.bytesToString}}),Object.defineProperty(t,"fromBytes",{enumerable:!0,get:function(){return Q.fromBytes}});var Z=r(57114);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return Z.fromHex}}),Object.defineProperty(t,"hexToBool",{enumerable:!0,get:function(){return Z.hexToBool}}),Object.defineProperty(t,"hexToBigInt",{enumerable:!0,get:function(){return Z.hexToBigInt}}),Object.defineProperty(t,"hexToNumber",{enumerable:!0,get:function(){return Z.hexToNumber}}),Object.defineProperty(t,"hexToString",{enumerable:!0,get:function(){return Z.hexToString}});var Y=r(92237);Object.defineProperty(t,"fromRlp",{enumerable:!0,get:function(){return Y.fromRlp}});var J=r(53951);Object.defineProperty(t,"containsNodeError",{enumerable:!0,get:function(){return J.containsNodeError}}),Object.defineProperty(t,"getNodeError",{enumerable:!0,get:function(){return J.getNodeError}});var X=r(10133);Object.defineProperty(t,"getCallError",{enumerable:!0,get:function(){return X.getCallError}});var ee=r(90042);Object.defineProperty(t,"getContractError",{enumerable:!0,get:function(){return ee.getContractError}});var et=r(54141);Object.defineProperty(t,"getEstimateGasError",{enumerable:!0,get:function(){return et.getEstimateGasError}});var er=r(72533);Object.defineProperty(t,"getTransactionError",{enumerable:!0,get:function(){return er.getTransactionError}});var en=r(74373);Object.defineProperty(t,"defineFormatter",{enumerable:!0,get:function(){return en.defineFormatter}});var eo=r(79148);Object.defineProperty(t,"getEventSelector",{enumerable:!0,get:function(){return eo.getEventSelector}});var ei=r(18546);Object.defineProperty(t,"getFunctionSelector",{enumerable:!0,get:function(){return ei.getFunctionSelector}});var ea=r(95056);Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return ea.isHash}});var es=r(75225);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return es.keccak256}});var ec=r(70834);Object.defineProperty(t,"hashTypedData",{enumerable:!0,get:function(){return ec.hashTypedData}
2843});var el=r(34159);Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return el.recoverAddress}});var eu=r(77753);Object.defineProperty(t,"recoverMessageAddress",{enumerable:!0,get:function(){return eu.recoverMessageAddress}});var ed=r(57275);Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return ed.recoverPublicKey}});var ef=r(80206);Object.defineProperty(t,"recoverTypedDataAddress",{enumerable:!0,get:function(){return ef.recoverTypedDataAddress}});var eh=r(19338);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return eh.verifyMessage}});var ep=r(92774);Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return ep.verifyTypedData}});var em=r(67475);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return em.hashMessage}});var eg=r(19768);Object.defineProperty(t,"getSerializedTransactionType",{enumerable:!0,get:function(){return eg.getSerializedTransactionType}});var eb=r(76547);Object.defineProperty(t,"getTransactionType",{enumerable:!0,get:function(){return eb.getTransactionType}});var ev=r(5434);Object.defineProperty(t,"assertRequest",{enumerable:!0,get:function(){return ev.assertRequest}});var ey=r(26825);Object.defineProperty(t,"assertTransactionEIP1559",{enumerable:!0,get:function(){return ey.assertTransactionEIP1559}}),Object.defineProperty(t,"assertTransactionEIP2930",{enumerable:!0,get:function(){return ey.assertTransactionEIP2930}}),Object.defineProperty(t,"assertTransactionLegacy",{enumerable:!0,get:function(){return ey.assertTransactionLegacy}});var ew=r(53858);Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return ew.parseTransaction}});var eE=r(40623);Object.defineProperty(t,"prepareRequest",{enumerable:!0,get:function(){return eE.prepareRequest}});var ex=r(52932);Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return ex.serializeTransaction}});var eC=r(99435);Object.defineProperty(t,"serializeAccessList",{enumerable:!0,get:function(){return eC.serializeAccessList}});var eA=r(90686);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return eA.formatEther}});var eP=r(22386);Object.defineProperty(t,"formatGwei",{enumerable:!0,get:function(){return eP.formatGwei}});var ej=r(88162);Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return ej.formatUnits}});var ek=r(73956);Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return ek.parseUnits}});var eO=r(39118);Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return eO.parseEther}});var eS=r(31187);Object.defineProperty(t,"parseGwei",{enumerable:!0,get:function(){return eS.parseGwei}})},36999:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observe=t.cleanupCache=t.listenersCache=void 0,t.listenersCache=new Map,t.cleanupCache=new Map;let r=0;t.observe=function(e,n,o){let i=++r,a=()=>t.listenersCache.get(e)||[],s=()=>{let r=a();t.listenersCache.set(e,r.filter(e=>e.id!==i))},c=()=>{let r=t.cleanupCache.get(e);1===a().length&&r&&r(),s()},l=a();if(t.listenersCache.set(e,[...l,{id:i,fns:n}]),l&&l.length>0)return c;let u={};for(let e in n)u[e]=(...t)=>{let r=a();0!==r.length&&r.forEach(r=>r.fns[e]?.(...t))};let d=o(u);return"function"==typeof d&&t.cleanupCache.set(e,d),c}},7760:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.poll=void 0;let n=r(78967);t.poll=function(e,{emitOnBegin:t,initialWaitTime:r,interval:o}){let i=!0,a=()=>i=!1,s=async()=>{let s;t&&(s=await e({unpoll:a}));let c=await r?.(s)??o;await (0,n.wait)(c);let l=async()=>{i&&(await e({unpoll:a}),await (0,n.wait)(o),l())};l()};return s(),a}},48170:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBatchScheduler=void 0;let r=new Map;t.createBatchScheduler=function({fn:e,id:t,shouldSplitBatch:n,wait:o=0}){let i=async()=>{let t=c();a();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{t.forEach(({pendingPromise:t},r)=>t.resolve?.([e[r],e]))}).catch(e=>{t.forEach(({pendingPromise:t})=>t.reject?.(e))})},a=()=>r.delete(t),s=()=>c().map(({args:e})=>e),c=()=>r.get(t)||[],l=e=>r.set(t,[...c(),e]);return{flush:a,async schedule(e){let t={},r=new Promise((e,r)=>{t.resolve=e,t.reject=r}),a=n?.([...s(),e]);a&&i();let u=c().length>0;return u?l({args:e,pendingPromise:t}):(l({args:e,pendingPromise:t}),setTimeout(i,o)),r}}}},38447:function(e,t){"use strict";function r(e){let r=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}
2843),n=r(e,t.promiseCache),o=r(e,t.responseCache);return{clear:()=>{n.clear(),o.clear()},promise:n,response:o}}async function n(e,{cacheKey:t,cacheTime:n=1/0}){let o=r(t),i=o.response.get();if(i&&n>0){let e=new Date().getTime()-i.created.getTime();if(e<n)return i.data}let a=o.promise.get();a||(a=e(),o.promise.set(a));try{let e=await a;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}}Object.defineProperty(t,"__esModule",{value:!0}),t.withCache=t.getCache=t.responseCache=t.promiseCache=void 0,t.promiseCache=new Map,t.responseCache=new Map,t.getCache=r,t.withCache=n},89514:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withRetry=void 0;let n=r(78967);t.withRetry=function(e,{delay:t=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((i,a)=>{let s=async({count:c=0}={})=>{let l=async({error:e})=>{let r="function"==typeof t?t({count:c,error:e}):t;r&&await (0,n.wait)(r),s({count:c+1})};try{let t=await e();i(t)}catch(e){if(c<r&&await o({count:c,error:e}))return l({error:e});a(e)}};s()})}},64290:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0,t.withTimeout=function(e,{errorInstance:t,timeout:r,signal:n}){return new Promise((o,i)=>{(async()=>{let a;try{let s=new AbortController;r>0&&(a=setTimeout(()=>{n?s.abort():i(t)},r)),o(await e({signal:s?.signal}))}catch(e){"AbortError"===e.name&&i(t),i(e)}finally{clearTimeout(a)}})()})}},27678:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.integerRegex=t.bytesRegex=t.arrayRegex=void 0,t.arrayRegex=/^(.*)\[([0-9]*)\]$/,t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},82530:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rpc=t.getSocket=void 0;let n=r(72782),o=r(48170),i=r(64290),a=r(58),s=0;async function c(e,{body:t,fetchOptions:r={},timeout:o=1e4}){let{headers:c,method:l,signal:u}=r;try{let d;let f=await (0,i.withTimeout)(async({signal:n})=>{let i=await fetch(e,{...r,body:Array.isArray(t)?(0,a.stringify)(t.map(e=>({jsonrpc:"2.0",id:s++,...e}))):(0,a.stringify)({jsonrpc:"2.0",id:s++,...t}),headers:{...c,"Content-Type":"application/json"},method:l||"POST",signal:u||(o>0?n:void 0)});return i},{errorInstance:new n.TimeoutError({body:t,url:e}),timeout:o,signal:!0});if(d=f.headers.get("Content-Type")?.startsWith("application/json")?await f.json():await f.text(),!f.ok)throw new n.HttpRequestError({body:t,details:(0,a.stringify)(d.error)||f.statusText,headers:f.headers,status:f.status,url:e});return d}catch(r){if(r instanceof n.HttpRequestError||r instanceof n.TimeoutError)throw r;throw new n.HttpRequestError({body:t,details:r.message,url:e})}}let l=new Map;async function u(e){let t=new URL(e),n=t.toString(),i=l.get(n);if(i)return i;let{schedule:a}=(0,o.createBatchScheduler)({id:n,fn:async()=>{let e=await r.e(6792).then(r.bind(r,46792));e=e.default?.constructor?e.default:e.WebSocket;let o=new e(t),a=new Map,s=new Map,c=({data:e})=>{let t=JSON.parse(e),r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,o=r?s:a,i=o.get(n);i&&i({data:e}),r||o.delete(n)},u=()=>{l.delete(n),o.removeEventListener("close",u),o.removeEventListener("message",c)};return o.addEventListener("close",u),o.addEventListener("message",c),o.readyState===e.CONNECTING&&await new Promise((e,t)=>{o&&(o.onopen=e,o.onerror=t)}),i=Object.assign(o,{requests:a,subscriptions:s}),l.set(n,i),[i]}}),[s,[c]]=await a();return c}async function d(e,{body:r,timeout:o=1e4}){return(0,i.withTimeout)(()=>new Promise(n=>t.rpc.webSocket(e,{body:r,onResponse:n})),{errorInstance:new n.TimeoutError({body:r,url:e.url}),timeout:o})}t.getSocket=u,t.rpc={http:c,webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new n.WebSocketRequestError({body:t,url:e.url,details:"Socket is closed."});let o=s++,i=({data:n})=>{let a=JSON.parse(n);("number"!=typeof a.id||o===a.id)&&(r?.(a),"eth_subscribe"===t.method&&"string"==typeof a.result&&e.subscriptions.set(a.result,i
2843),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(o,i),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:o})),e},webSocketAsync:d}},67475:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashMessage=void 0;let n=r(1501),o=r(52387),i=r(75225);t.hashMessage=function(e,t){let r="string"==typeof e?(0,o.stringToBytes)(e):e.raw instanceof Uint8Array?e.raw:(0,o.toBytes)(e.raw),a=(0,o.stringToBytes)(`\x19Ethereum Signed Message: 2844${r.length}`);return(0,i.keccak256)((0,n.concat)([a,r]),t)}},70834:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashTypedData=void 0;let n=r(24837),o=r(1501),i=r(86308),a=r(75225),s=r(42586);function c({data:e,primaryType:t,types:r}){let o=function e({data:t,primaryType:r,types:o}){let s=[{type:"bytes32"}],c=[function({primaryType:e,types:t}){let r=(0,i.toHex)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let o=t.match(/^\w*/u)?.[0];if(n.has(o)||void 0===r[o])return n;for(let t of(n.add(o),r[o]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});n.delete(e);let o=[e,...Array.from(n).sort()];for(let e of o)r+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,a.keccak256)(r)}({primaryType:r,types:o})];for(let l of o[r]){let[r,u]=function t({types:r,name:o,type:s,value:c}){if(void 0!==r[s])return[{type:"bytes32"},(0,a.keccak256)(e({data:c,primaryType:s,types:r}))];if("bytes"===s){let e=c.length%2?"0":"";return c=`0x${e+c.slice(2)}`,[{type:"bytes32"},(0,a.keccak256)(c)]}if("string"===s)return[{type:"bytes32"},(0,a.keccak256)((0,i.toHex)(c))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),i=c.map(n=>t({name:o,type:e,types:r,value:n}));return[{type:"bytes32"},(0,a.keccak256)((0,n.encodeAbiParameters)(i.map(([e])=>e),i.map(([,e])=>e)))]}return[{type:s},c]}({types:o,name:l.name,type:l.type,value:t[l.name]});s.push(r),c.push(u)}return(0,n.encodeAbiParameters)(s,c)}({data:e,primaryType:t,types:r});return(0,a.keccak256)(o)}t.hashTypedData=function({domain:e,message:t,primaryType:r,types:n}){let i=void 0===e?{}:e,l={EIP712Domain:["string"==typeof i?.name&&{name:"name",type:"string"},i?.version&&{name:"version",type:"string"},"number"==typeof i?.chainId&&{name:"chainId",type:"uint256"},i?.verifyingContract&&{name:"verifyingContract",type:"address"},i?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...n};(0,s.validateTypedData)({domain:i,message:t,primaryType:r,types:l});let u=["0x1901"];return i&&u.push(function({domain:e,types:t}){return c({data:e,primaryType:"EIP712Domain",types:t})}({domain:i,types:l})),"EIP712Domain"!==r&&u.push(c({data:t,primaryType:r,types:l})),(0,a.keccak256)((0,o.concat)(u))}},91281:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToSignature=void 0;let n=r(33497),o=r(86308);t.hexToSignature=function(e){let{r:t,s:r}=n.secp256k1.Signature.fromCompact(e.slice(2,130)),i=BigInt(`0x${e.slice(130)}`);return{r:(0,o.numberToHex)(t),s:(0,o.numberToHex)(r),v:i}}},34159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=void 0;let n=r(3417),o=r(57275);async function i({hash:e,signature:t}){return(0,n.publicKeyToAddress)(await (0,o.recoverPublicKey)({hash:e,signature:t}))}t.recoverAddress=i},77753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverMessageAddress=void 0;let n=r(67475),o=r(34159);async function i({message:e,signature:t}){return(0,o.recoverAddress)({hash:(0,n.hashMessage)(e),signature:t})}t.recoverMessageAddress=i},57275:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverPublicKey=void 0;let n=r(77116),o=r(57114),i=r(86308);async function a({hash:e,signature:t}){let a=(0,n.isHex)(t)?t:(0,i.toHex)(t),s=(0,n.isHex)(e)?e:(0,i.toHex)(e),c=(0,o.hexToNumber)(`0x${a.slice(130)}`);(0===c||1===c)&&(c+=27);let{secp256k1:l}=await r.e(9459).then(r.bind(r,49459)),u=l.Signature.fromCompact(a.substring(2,130)).addRecoveryBit(c-27).recoverPublicKey(s.substring(2)).toHex(!1);return`0x${u}`}t.recoverPublicKey=a},80206:function(e,t,r){"use strict";
2844Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedDataAddress=void 0;let n=r(70834),o=r(34159);async function i({domain:e,message:t,primaryType:r,signature:i,types:a}){return(0,o.recoverAddress)({hash:(0,n.hashTypedData)({domain:e,message:t,primaryType:r,types:a}),signature:i})}t.recoverTypedDataAddress=i},24366:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signatureToHex=void 0;let n=r(33497),o=r(57114),i=r(86308);t.signatureToHex=function({r:e,s:t,v:r}){return`0x${new n.secp256k1.Signature((0,o.hexToBigInt)(e),(0,o.hexToBigInt)(t)).toCompactHex()}${(0,i.toHex)(r).slice(2)}`}},19338:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=void 0;let n=r(36556),o=r(13711),i=r(77753);async function a({address:e,message:t,signature:r}){return(0,o.isAddressEqual)((0,n.getAddress)(e),await (0,i.recoverMessageAddress)({message:t,signature:r}))}t.verifyMessage=a},92774:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=void 0;let n=r(36556),o=r(13711),i=r(80206);async function a({address:e,domain:t,message:r,primaryType:a,signature:s,types:c}){return(0,o.isAddressEqual)((0,n.getAddress)(e),await (0,i.recoverTypedDataAddress)({domain:t,message:r,primaryType:a,signature:s,types:c}))}t.verifyTypedData=a},58:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0,t.stringify=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},5434:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=void 0;let n=r(3975),o=r(56293),i=r(72695),a=r(70270),s=r(21041);t.assertRequest=function(e){let{account:t,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:l,to:u}=e,d=t?(0,n.parseAccount)(t):void 0;if(d&&!(0,s.isAddress)(d.address))throw new o.InvalidAddressError({address:d.address});if(u&&!(0,s.isAddress)(u))throw new o.InvalidAddressError({address:u});if(void 0!==r&&(void 0!==c||void 0!==l))throw new a.FeeConflictError;if(c&&c>2n**256n-1n)throw new i.FeeCapTooHighError({maxFeePerGas:c});if(l&&c&&l>c)throw new i.TipAboveFeeCapError({maxFeePerGas:c,maxPriorityFeePerGas:l})}},26825:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=void 0;let n=r(56293),o=r(26456),i=r(91363),a=r(72695),s=r(21041);t.assertTransactionEIP1559=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:l,to:u}=e;if(t<=0)throw new i.InvalidChainIdError({chainId:t});if(u&&!(0,s.isAddress)(u))throw new n.InvalidAddressError({address:u});if(c)throw new o.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(l&&l>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:l});if(r&&l&&r>l)throw new a.TipAboveFeeCapError({maxFeePerGas:l,maxPriorityFeePerGas:r})},t.assertTransactionEIP2930=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:l,to:u}=e;if(t<=0)throw new i.InvalidChainIdError({chainId:t});if(u&&!(0,s.isAddress)(u))throw new n.InvalidAddressError({address:u});if(r||l)throw new o.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c})},t.assertTransactionLegacy=function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:l,to:u,accessList:d}=e;if(u&&!(0,s.isAddress)(u))throw new n.InvalidAddressError({address:u});if(void 0!==t&&t<=0)throw new i.InvalidChainIdError({chainId:t});if(r||l)throw new o.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c});if(d)throw new o.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}},19768:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=void 0;let n=r(70270),o=r(53462),i=r(57114);t.getSerializedTransactionType=function(e){let t=(0,o.sliceHex)(e,0,1);if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";
2844if("0x"!==t&&(0,i.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})}},76547:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=void 0;let n=r(70270);t.getTransactionType=function(e){if(e.type)return e.type;if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.InvalidSerializableTransactionError({transaction:e})}},53858:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransaction=void 0;let n=r(56293),o=r(70270),i=r(21041),a=r(77116),s=r(54405),c=r(80475),l=r(57114),u=r(92237),d=r(95056),f=r(26825),h=r(19768);function p(e){let t=[];for(let r=0;r<e.length;r++){let[o,a]=e[r];if(!(0,i.isAddress)(o))throw new n.InvalidAddressError({address:o});t.push({address:o,storageKeys:a.map(e=>(0,d.isHash)(e)?e:(0,c.trim)(e))})}return t}function m(e){let t=e.slice(-3),r="0x"===t[0]||0n===(0,l.hexToBigInt)(t[0])?27n:28n;return{r:(0,s.padHex)(t[1],{size:32}),s:(0,s.padHex)(t[2],{size:32}),v:r,yParity:27n===r?0:1}}t.parseTransaction=function(e){let t=(0,h.getSerializedTransactionType)(e);return"eip1559"===t?function(e){let t=(0,u.fromRlp)(`0x${e.slice(4)}`,"hex"),[r,n,i,s,c,d,h,g,b,v,y,w]=t;if(!(9===t.length||12===t.length))throw new o.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:i,maxFeePerGas:s,gas:c,to:d,value:h,data:g,accessList:b,...t.length>9?{v,r:y,s:w}:{}},serializedTransaction:e,type:"eip1559"});let E={chainId:(0,l.hexToNumber)(r),type:"eip1559"};(0,a.isHex)(d)&&"0x"!==d&&(E.to=d),(0,a.isHex)(c)&&"0x"!==c&&(E.gas=(0,l.hexToBigInt)(c)),(0,a.isHex)(g)&&"0x"!==g&&(E.data=g),(0,a.isHex)(n)&&"0x"!==n&&(E.nonce=(0,l.hexToNumber)(n)),(0,a.isHex)(h)&&"0x"!==h&&(E.value=(0,l.hexToBigInt)(h)),(0,a.isHex)(s)&&"0x"!==s&&(E.maxFeePerGas=(0,l.hexToBigInt)(s)),(0,a.isHex)(i)&&"0x"!==i&&(E.maxPriorityFeePerGas=(0,l.hexToBigInt)(i)),0!==b.length&&"0x"!==b&&(E.accessList=p(b)),(0,f.assertTransactionEIP1559)(E);let x=12===t.length?m(t):void 0;return{...x,...E}}(e):"eip2930"===t?function(e){let t=(0,u.fromRlp)(`0x${e.slice(4)}`,"hex"),[r,n,i,s,c,d,h,g,b,v,y]=t;if(!(8===t.length||11===t.length))throw new o.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:i,gas:s,to:c,value:d,data:h,accessList:g,...t.length>8?{v:b,r:v,s:y}:{}},serializedTransaction:e,type:"eip2930"});let w={chainId:(0,l.hexToNumber)(r),type:"eip2930"};(0,a.isHex)(c)&&"0x"!==c&&(w.to=c),(0,a.isHex)(s)&&"0x"!==s&&(w.gas=(0,l.hexToBigInt)(s)),(0,a.isHex)(h)&&"0x"!==h&&(w.data=h),(0,a.isHex)(n)&&"0x"!==n&&(w.nonce=(0,l.hexToNumber)(n)),(0,a.isHex)(d)&&"0x"!==d&&(w.value=(0,l.hexToBigInt)(d)),(0,a.isHex)(i)&&"0x"!==i&&(w.gasPrice=(0,l.hexToBigInt)(i)),0!==g.length&&"0x"!==g&&(w.accessList=p(g)),(0,f.assertTransactionEIP2930)(w);let E=11===t.length?m(t):void 0;return{...E,...w}}(e):function(e){let t=(0,u.fromRlp)(e,"hex"),[r,n,i,s,c,d,h,p,m]=t;if(!(6===t.length||9===t.length))throw new o.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:i,to:s,value:c,data:d,...t.length>6?{v:h,r:p,s:m}:{}},serializedTransaction:e,type:"legacy"});let g={type:"legacy"};
2844if((0,a.isHex)(s)&&"0x"!==s&&(g.to=s),(0,a.isHex)(i)&&"0x"!==i&&(g.gas=(0,l.hexToBigInt)(i)),(0,a.isHex)(d)&&"0x"!==d&&(g.data=d),(0,a.isHex)(r)&&"0x"!==r&&(g.nonce=(0,l.hexToNumber)(r)),(0,a.isHex)(c)&&"0x"!==c&&(g.value=(0,l.hexToBigInt)(c)),(0,a.isHex)(n)&&"0x"!==n&&(g.gasPrice=(0,l.hexToBigInt)(n)),(0,f.assertTransactionLegacy)(g),6===t.length)return g;let b=(0,a.isHex)(h)&&"0x"!==h?(0,l.hexToBigInt)(h):0n;if("0x"===m&&"0x"===p)return b>0&&(g.chainId=Number(b)),g;let v=Number((b-35n)/2n);if(v>0)g.chainId=v;else if(27n!==b&&28n!==b)throw new o.InvalidLegacyVError({v:b});return g.v=b,g.s=m,g.r=p,g}(e)}},40623:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareRequest=t.defaultTip=void 0;let n=r(3975),o=r(23337),i=r(29086),a=r(89984),s=r(92530),c=r(26175),l=r(26456),u=r(5434);async function d(e,r){let{account:d,gas:f,gasPrice:h,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:g}=r;if(!d)throw new c.AccountNotFoundError;let b=(0,n.parseAccount)(d),v=await (0,i.getBlock)(e,{blockTag:"latest"}),y={...r,from:b.address};if(void 0===g&&(y.nonce=await (0,s.getTransactionCount)(e,{address:b.address,blockTag:"pending"})),"bigint"==typeof v.baseFeePerGas){if(void 0!==h)throw new l.BaseError("Chain does not support legacy `gasPrice`.");if(void 0===p)y.maxPriorityFeePerGas=m??t.defaultTip,y.maxFeePerGas=120n*v.baseFeePerGas/100n+y.maxPriorityFeePerGas;else{if(void 0===m&&p<t.defaultTip)throw new l.BaseError("`maxFeePerGas` cannot be less than the default `maxPriorityFeePerGas` (1.5 gwei).");y.maxFeePerGas=p,y.maxPriorityFeePerGas=m??t.defaultTip}}else{if(void 0!==p||void 0!==m)throw new l.BaseError("Chain does not support EIP-1559 fees.");void 0===h&&(y.gasPrice=await (0,a.getGasPrice)(e)*120n/100n)}return void 0===f&&(y.gas=await (0,o.estimateGas)(e,{...y,account:{address:b.address,type:"json-rpc"}})),(0,u.assertRequest)(y),y}t.defaultTip=1500000000n,t.prepareRequest=d},99435:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAccessList=void 0;let n=r(56293),o=r(70270),i=r(21041);t.serializeAccessList=function(e){if(!e||0===e.length)return[];let t=[];for(let r=0;r<e.length;r++){let{address:a,storageKeys:s}=e[r];for(let e=0;e<s.length;e++)if(s[e].length-2!=64)throw new o.InvalidStorageKeySizeError({storageKey:s[e]});if(!(0,i.isAddress)(a))throw new n.InvalidAddressError({address:a});t.push([a,s])}return t}},52932:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTransaction=void 0;let n=r(70270),o=r(1501),i=r(80475),a=r(86308),s=r(28913),c=r(26825),l=r(76547),u=r(99435);t.serializeTransaction=function(e,t){let r=(0,l.getTransactionType)(e);return"eip1559"===r?function(e,t){let{chainId:r,gas:n,nonce:l,to:d,value:f,maxFeePerGas:h,maxPriorityFeePerGas:p,accessList:m,data:g}=e;(0,c.assertTransactionEIP1559)(e);let b=(0,u.serializeAccessList)(m),v=[(0,a.toHex)(r),l?(0,a.toHex)(l):"0x",p?(0,a.toHex)(p):"0x",h?(0,a.toHex)(h):"0x",n?(0,a.toHex)(n):"0x",d??"0x",f?(0,a.toHex)(f):"0x",g??"0x",b];return t&&v.push(27n===t.v?"0x":(0,a.toHex)(1),(0,i.trim)(t.r),(0,i.trim)(t.s)),(0,o.concatHex)(["0x02",(0,s.toRlp)(v)])}(e,t):"eip2930"===r?function(e,t){let{chainId:r,gas:n,data:i,nonce:l,to:d,value:f,accessList:h,gasPrice:p}=e;(0,c.assertTransactionEIP2930)(e);let m=(0,u.serializeAccessList)(h),g=[(0,a.toHex)(r),l?(0,a.toHex)(l):"0x",p?(0,a.toHex)(p):"0x",n?(0,a.toHex)(n):"0x",d??"0x",f?(0,a.toHex)(f):"0x",i??"0x",m];return t&&g.push(27n===t.v?"0x":(0,a.toHex)(1),t.r,t.s),(0,o.concatHex)(["0x01",(0,s.toRlp)(g)])}(e,t):function(e,t){let{chainId:r=0,gas:o,data:i,nonce:l,to:u,value:d,gasPrice:f}=e;(0,c.assertTransactionLegacy)(e);let h=[l?(0,a.toHex)(l):"0x",f?(0,a.toHex)(f):"0x",o?(0,a.toHex)(o):"0x",u??"0x",d?(0,a.toHex)(d):"0x",i??"0x"];if(t){let e=27n+(27n===t.v?0n:1n);if(r>0)e=BigInt(2*r)+BigInt(35n+t.v-27n);else if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});h=[...h,(0,a.toHex)(e),t.r,t.s]}else r>0&&(h=[...h,(0,a.toHex)(r),"0x","0x"]);return(0,s.toRlp)(h)}(e,t)}},42586:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTypedData=void 0;let n=r(4403),o=r(56293),i=r(21041),a=r(66859),s=r(86308),c=r(27678);t.validateTypedData=function({domain:e,message:t,primaryType:r,types:l}){let u=(e,t)=>
2844{for(let r of e){let{name:e,type:d}=r,f=t[e],h=d.match(c.integerRegex);if(h&&("number"==typeof f||"bigint"==typeof f)){let[e,t,r]=h;(0,s.numberToHex)(f,{signed:"int"===t,size:parseInt(r)/8})}if("address"===d&&"string"==typeof f&&!(0,i.isAddress)(f))throw new o.InvalidAddressError({address:f});let p=d.match(c.bytesRegex);if(p){let[e,t]=p;if(t&&(0,a.size)(f)!==parseInt(t))throw new n.BytesSizeMismatchError({expectedSize:parseInt(t),givenSize:(0,a.size)(f)})}let m=l[d];m&&u(m,f)}};if(l.EIP712Domain&&e&&u(l.EIP712Domain,e),"EIP712Domain"!==r){let e=l[r];u(e,t)}}},41217:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.uid=void 0;let n=256;t.uid=function(e=11){if(!r||n+e>512){r="",n=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(n,n+++e)}},90686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=void 0;let n=r(99225),o=r(88162);t.formatEther=function(e,t="wei"){return(0,o.formatUnits)(e,n.etherUnits[t])}},22386:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=void 0;let n=r(99225),o=r(88162);t.formatGwei=function(e,t="wei"){return(0,o.formatUnits)(e,n.gweiUnits[t])}},88162:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=void 0,t.formatUnits=function(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[o,i]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${o||"0"}${i?`.${i}`:""}`}},39118:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=void 0;let n=r(99225),o=r(73956);t.parseEther=function(e,t="wei"){return(0,o.parseUnits)(e,n.etherUnits[t])}},31187:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=void 0;let n=r(99225),o=r(73956);t.parseGwei=function(e,t="wei"){return(0,o.parseUnits)(e,n.gweiUnits[t])}},73956:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=void 0,t.parseUnits=function(e,t){let[r,n="0"]=e.split("."),o=r.startsWith("-");if(o&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,o,i]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${o}.${i}`));(n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${o?"-":""}${r}${n}`)}},78967:function(e,t){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.wait=void 0,t.wait=r},25611:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseError=void 0;let n=r(20691);class o extends Error{constructor(e,t={}){let r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof o&&t.cause.docsPath||t.docsPath,a=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${n.version}`].join("\n");super(a),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}t.BaseError=o},2149:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSolidityTypeError=t.UnknownTypeError=t.InvalidAbiItemError=void 0;let n=r(25611);class o extends n.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}t.InvalidAbiItemError=o;class i extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}t.UnknownTypeError=i;class a extends n.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}t.UnknownSolidityTypeError=a},93669:function(e,t,r){"use strict";
2844Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidAbiTypeParameterError=t.InvalidFunctionModifierError=t.InvalidModifierError=t.SolidityProtectedKeywordError=t.InvalidParameterError=t.InvalidAbiParametersError=t.InvalidAbiParameterError=void 0;let n=r(25611);class o extends n.BaseError{constructor({param:e}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}t.InvalidAbiParameterError=o;class i extends n.BaseError{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human.html#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}t.InvalidAbiParametersError=i;class a extends n.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}t.InvalidParameterError=a;class s extends n.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}t.SolidityProtectedKeywordError=s;class c extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}t.InvalidModifierError=c;class l extends n.BaseError{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}t.InvalidFunctionModifierError=l;class u extends n.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}t.InvalidAbiTypeParameterError=u},53584:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStructSignatureError=t.UnknownSignatureError=t.InvalidSignatureError=void 0;let n=r(25611);class o extends n.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}t.InvalidSignatureError=o;class i extends n.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}t.UnknownSignatureError=i;class a extends n.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}t.InvalidStructSignatureError=a},71808:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParenthesisError=void 0;let n=r(25611);class o extends n.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}t.InvalidParenthesisError=o},98738:function(e,t,r){"use strict";
2844Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=void 0;let n=r(25611);class o extends n.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}t.CircularReferenceError=o},97601:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbi=void 0;let n=r(30717);t.formatAbi=function(e){let t=[],r=e.length;for(let o=0;o<r;o++){let r=e[o],i=(0,n.formatAbiItem)(r);t.push(i)}return t}},30717:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiItem=void 0;let n=r(94359);t.formatAbiItem=function(e){return"function"===e.type?`function ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${(0,n.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,n.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,n.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable"}},17321:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameter=void 0;let n=r(11575),o=/^tuple(?<array>(\[(\d*)\])*)$/;t.formatAbiParameter=function e(t){let r=t.type;if(o.test(t.type)&&"components"in t){r="(";let i=t.components.length;for(let n=0;n<i;n++){let o=t.components[n];r+=e(o),n<i-1&&(r+=", ")}let a=(0,n.execTyped)(o,t.type);return r+=`)${a?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
2844 indexed`),t.name)?`${r} ${t.name}`:r}},94359:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAbiParameters=void 0;let n=r(17321);t.formatAbiParameters=function(e){let t="",r=e.length;for(let o=0;o<r;o++){let i=e[o];t+=(0,n.formatAbiParameter)(i),o!==r-1&&(t+=", ")}return t}},76719:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbi=void 0;let n=r(97677),o=r(21518),i=r(30123);t.parseAbi=function(e){let t=(0,o.parseStructs)(e),r=[],a=e.length;for(let o=0;o<a;o++){let a=e[o];(0,n.isStructSignature)(a)||r.push((0,i.parseSignature)(a,t))}return r}},97462:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiItem=void 0;let n=r(48661),o=r(97677),i=r(21518),a=r(30123);t.parseAbiItem=function(e){let t;if("string"==typeof e)t=(0,a.parseSignature)(e);else{let r=(0,i.parseStructs)(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if(!(0,o.isStructSignature)(n)){t=(0,a.parseSignature)(n,r);break}}}if(!t)throw new n.InvalidAbiItemError({signature:e});return t}},88919:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameter=void 0;let n=r(48661),o=r(97677),i=r(21518),a=r(30123);t.parseAbiParameter=function(e){let t;if("string"==typeof e)t=(0,a.parseAbiParameter)(e,{modifiers:o.modifiers});else{let r=(0,i.parseStructs)(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if(!(0,o.isStructSignature)(n)){t=(0,a.parseAbiParameter)(n,{modifiers:o.modifiers,structs:r});break}}}if(!t)throw new n.InvalidAbiParameterError({param:e});return t}},56229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAbiParameters=void 0;let n=r(48661),o=r(97677),i=r(21518),a=r(30123),s=r(30123);t.parseAbiParameters=function(e){let t=[];if("string"==typeof e){let r=(0,a.splitParameters)(e),n=r.length;for(let e=0;e<n;e++)t.push((0,s.parseAbiParameter)(r[e],{modifiers:o.modifiers}))}else{let r=(0,i.parseStructs)(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if((0,o.isStructSignature)(n))continue;let c=(0,a.splitParameters)(n),l=c.length;for(let e=0;e<l;e++)t.push((0,s.parseAbiParameter)(c[e],{modifiers:o.modifiers,structs:r}))}}if(0===t.length)throw new n.InvalidAbiParametersError({params:e});return t}},37879:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterCache=t.getParameterCacheKey=void 0,t.getParameterCacheKey=function(e,t){return t?`${t}:${e}`:e},t.parameterCache=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}]])},97677:function(e,t,r){"use strict";
2844Object.defineProperty(t,"__esModule",{value:!0}),t.functionModifiers=t.eventModifiers=t.modifiers=t.isReceiveSignature=t.isFallbackSignature=t.execConstructorSignature=t.isConstructorSignature=t.execStructSignature=t.isStructSignature=t.execFunctionSignature=t.isFunctionSignature=t.execEventSignature=t.isEventSignature=t.execErrorSignature=t.isErrorSignature=void 0;let n=r(11575),o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;t.isErrorSignature=function(e){return o.test(e)},t.execErrorSignature=function(e){return(0,n.execTyped)(o,e)};let i=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;t.isEventSignature=function(e){return i.test(e)},t.execEventSignature=function(e){return(0,n.execTyped)(i,e)};let a=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;t.isFunctionSignature=function(e){return a.test(e)},t.execFunctionSignature=function(e){return(0,n.execTyped)(a,e)};let s=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;t.isStructSignature=function(e){return s.test(e)},t.execStructSignature=function(e){return(0,n.execTyped)(s,e)};let c=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;t.isConstructorSignature=function(e){return c.test(e)},t.execConstructorSignature=function(e){return(0,n.execTyped)(c,e)};let l=/^fallback\(\)$/;t.isFallbackSignature=function(e){return l.test(e)};let u=/^receive\(\) external payable$/;t.isReceiveSignature=function(e){return u.test(e)},t.modifiers=new Set(["memory","indexed","storage","calldata"]),t.eventModifiers=new Set(["indexed"]),t.functionModifiers=new Set(["calldata","memory","storage"])},21518:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStructs=void 0;let n=r(11575),o=r(2149),i=r(93669),a=r(53584),s=r(98738),c=r(97677),l=r(30123);t.parseStructs=function(e){let t={},r=e.length;for(let n=0;n<r;n++){let r=e[n];if(!(0,c.isStructSignature)(r))continue;let o=(0,c.execStructSignature)(r);if(!o)throw new a.InvalidSignatureError({signature:r,type:"struct"});let i=o.properties.split(";"),s=[],u=i.length;for(let e=0;e<u;e++){let t=i[e],r=t.trim();if(!r)continue;let n=(0,l.parseAbiParameter)(r,{type:"struct"});s.push(n)}if(!s.length)throw new a.InvalidStructSignatureError({signature:r});t[o.name]=s}let d={},f=Object.entries(t),h=f.length;for(let e=0;e<h;e++){let[r,a]=f[e];d[r]=function e(t,r,a=new Set){let c=[],d=t.length;for(let f=0;f<d;f++){let d=t[f],h=n.isTupleRegex.test(d.type);if(h)c.push(d);else{let t=(0,n.execTyped)(u,d.type);if(!t?.type)throw new i.InvalidAbiTypeParameterError({abiParameter:d});let{array:f,type:h}=t;if(h in r){if(a.has(h))throw new s.CircularReferenceError({type:h});c.push({...d,type:`tuple${f??""}`,components:e(r[h]??[],r,new Set([...a,h]))})}else if((0,l.isSolidityType)(h))c.push(d);else throw new o.UnknownTypeError({type:h})}}return c}(a,t)}return d};let u=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},30123:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDataLocation=t.isSolidityKeyword=t.isSolidityType=t.splitParameters=t.parseAbiParameter=t.parseSignature=void 0;let n=r(11575),o=r(2149),i=r(93669),a=r(53584),s=r(71808),c=r(37879),l=r(97677);t.parseSignature=function(e,t={}){if((0,l.isFunctionSignature)(e)){let r=(0,l.execFunctionSignature)(e);if(!r)throw new a.InvalidSignatureError({signature:e,type:"function"});let n=p(r.parameters),o=[],i=n.length;for(let e=0;e<i;e++)o.push(h(n[e],{modifiers:l.functionModifiers,structs:t,type:"function"}));let s=[];if(r.returns){let e=p(r.returns),n=e.length;for(let r=0;r<n;r++)s.push(h(e[r],{modifiers:l.functionModifiers,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:o,outputs:s}}if((0,l.isEventSignature)(e)){let r=(0,l.execEventSignature)(e);if(!r)throw new a.InvalidSignatureError({signature:e,type:"event"});let n=p(r.parameters),o=[],i=n.length;for(let e=0;e<i;e++)o.push(h(n[e],{modifiers:l.eventModifiers,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:o}}if((0,l.isErrorSignature)(e)){let r=(0,l.execErrorSignature)(e);if(!r)throw new a.InvalidSignatureError({signature:e,type:"error"});let n=p(r.parameters),o=[],i=n.length;for(let e=0;e<i;e++)o.push(h(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:o}}if((0,l.isConstructorSignature)(e)){let r=(0,l.execConstructorSignature)(e);if(!r)throw new a.InvalidSignatureError({signature:e,type:"constructor"});let n=p(r.parameters),o=[],i=n.length;for(let e=0;e<i;e++)o.push(h(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:o}}if((0,l.isFallbackSignature)(e))return{type:"fallback"};if((0,l.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new a.UnknownSignatureError({signature:e})};let u=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,d=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^u?int$/;function h(e,t){let r;let a=(0,c.getParameterCacheKey)(e,t?.type);if(c.parameterCache.has(a))return c.parameterCache.get(a);let s=n.isTupleRegex.test(e),g=(0,n.execTyped)(s?d:u,e);if(!g)throw new i.InvalidParameterError({param:e});if(g.name&&b(g.name))throw new i.SolidityProtectedKeywordError({param:e,name:g.name});let y=g.name?{name:g.name}:{},w="indexed"===g.modifier?{indexed:!0}:{},E=t?.structs??{},x={};if(s){r="tuple";let e=p(g.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(h(e[r],{structs:E}));x={components:t}}else if(g.type in E)r="tuple",x={components:E[g.type]};else if(f.test(g.type))r=`${g.type}256`;else if(r=g.type,t?.type!=="struct"&&!m(r))throw new o.UnknownSolidityTypeError({type:r});if(g.modifier){if(!t?.modifiers?.has?.(g.modifier))throw new i.InvalidModifierError({param:e,type:t?.type,modifier:g.modifier});if(l.functionModifiers.has(g.modifier)&&!v(r,!!g.array))throw new i.InvalidFunctionModifierError({param:e,type:t?.type,modifier:g.modifier})}let C={type:`${r}${g.array??""}`,...y,...w,...x};return c.parameterCache.set(a,C),C}function p(e,t=[],r="",n=0){if(""===e){if(""===r)return t;if(0!==n)throw new s.InvalidParenthesisError({current:r,depth:n});return t.push(r.trim()),t}let o=e.length;for(let i=0;i<o;i++){let o=e[i],a=e.slice(i+1);switch(o){case",":return 0===n?p(a,[...t,r.trim()]):p(a,t,`${r}${o}`,n);case"(":return p(a,t,`${r}${o}`,n+1);case")":return p(a,t,`${r}${o}`,n-1);default:return p(a,t,`${r}${o}`,n)}}return[]}function m(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)}t.parseAbiParameter=h,t.splitParameters=p,t.isSolidityType=m;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)$/;function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||n.bytesRegex.test(e)||n.integerRegex.test(e)||g.test(e)}function v(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}t.isSolidityKeyword=b,t.isValidDataLocation=v},48661:function(e,t,r){"use strict";
2844Object.defineProperty(t,"__esModule",{value:!0}),t.CircularReferenceError=t.InvalidParenthesisError=t.UnknownSignatureError=t.InvalidSignatureError=t.InvalidStructSignatureError=t.InvalidAbiParameterError=t.InvalidAbiParametersError=t.InvalidParameterError=t.SolidityProtectedKeywordError=t.InvalidModifierError=t.InvalidFunctionModifierError=t.InvalidAbiTypeParameterError=t.UnknownSolidityTypeError=t.InvalidAbiItemError=t.UnknownTypeError=t.parseAbiParameters=t.parseAbiParameter=t.parseAbiItem=t.parseAbi=t.formatAbiParameters=t.formatAbiParameter=t.formatAbiItem=t.formatAbi=t.narrow=t.BaseError=void 0;var n=r(25611);Object.defineProperty(t,"BaseError",{enumerable:!0,get:function(){return n.BaseError}});var o=r(68831);Object.defineProperty(t,"narrow",{enumerable:!0,get:function(){return o.narrow}});var i=r(97601);Object.defineProperty(t,"formatAbi",{enumerable:!0,get:function(){return i.formatAbi}});var a=r(30717);Object.defineProperty(t,"formatAbiItem",{enumerable:!0,get:function(){return a.formatAbiItem}});var s=r(17321);Object.defineProperty(t,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var c=r(94359);Object.defineProperty(t,"formatAbiParameters",{enumerable:!0,get:function(){return c.formatAbiParameters}});var l=r(76719);Object.defineProperty(t,"parseAbi",{enumerable:!0,get:function(){return l.parseAbi}});var u=r(97462);Object.defineProperty(t,"parseAbiItem",{enumerable:!0,get:function(){return u.parseAbiItem}});var d=r(88919);Object.defineProperty(t,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=r(56229);Object.defineProperty(t,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var h=r(2149);Object.defineProperty(t,"UnknownTypeError",{enumerable:!0,get:function(){return h.UnknownTypeError}}),Object.defineProperty(t,"InvalidAbiItemError",{enumerable:!0,get:function(){return h.InvalidAbiItemError}}),Object.defineProperty(t,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return h.UnknownSolidityTypeError}});var p=r(93669);Object.defineProperty(t,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return p.InvalidAbiTypeParameterError}}),Object.defineProperty(t,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return p.InvalidFunctionModifierError}}),Object.defineProperty(t,"InvalidModifierError",{enumerable:!0,get:function(){return p.InvalidModifierError}}),Object.defineProperty(t,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return p.SolidityProtectedKeywordError}}),Object.defineProperty(t,"InvalidParameterError",{enumerable:!0,get:function(){return p.InvalidParameterError}}),Object.defineProperty(t,"InvalidAbiParametersError",{enumerable:!0,get:function(){return p.InvalidAbiParametersError}}),Object.defineProperty(t,"InvalidAbiParameterError",{enumerable:!0,get:function(){return p.InvalidAbiParameterError}});var m=r(53584);Object.defineProperty(t,"InvalidStructSignatureError",{enumerable:!0,get:function(){return m.InvalidStructSignatureError}}),Object.defineProperty(t,"InvalidSignatureError",{enumerable:!0,get:function(){return m.InvalidSignatureError}}),Object.defineProperty(t,"UnknownSignatureError",{enumerable:!0,get:function(){return m.UnknownSignatureError}});var g=r(71808);Object.defineProperty(t,"InvalidParenthesisError",{enumerable:!0,get:function(){return g.InvalidParenthesisError}});var b=r(98738);Object.defineProperty(t,"CircularReferenceError",{enumerable:!0,get:function(){return b.CircularReferenceError}})},68831:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.narrow=void 0,t.narrow=function(e){return e}},11575:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleRegex=t.integerRegex=t.bytesRegex=t.execTyped=void 0,t.execTyped=function(e,t){let r=e.exec(t);return r?.groups},t.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,t.integerRegex=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,t.isTupleRegex=/^\(.+?\).*?$/},20691:function(e,t){"use strict";
2844Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.9.3"},36516:function(e,t,r){"use strict";function n(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),o=1,i=[0,1];for(let e=1;e<n;e++)i.push(o+=r());let a=r(),s=t;t+=a;let c=0,l=0;function u(){return 0==c&&(l=l<<8|e[t++],c=8),l>>--c&1}let d=2147483648-1,f=0;for(let e=0;e<31;e++)f=f<<1|u();let h=[],p=0,m=2147483648;for(;;){let e=Math.floor(((f-p+1)*o-1)/m),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<i[n]?r=n:t=n}if(0==t)break;h.push(t);let a=p+Math.floor(m*i[t]/o),s=p+Math.floor(m*i[t+1]/o)-1;for(;((a^s)&1073741824)==0;)f=f<<1&d|u(),a=a<<1&d,s=s<<1&d|1;for(;a&~s&536870912;)f=1073741824&f|f<<1&d>>>1|u(),a=a<<1^1073741824,s=(1073741824^s)<<1|1073741825;p=a,m=1+s-a}let g=n-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return g+256+(e[s++]<<8|e[s++]);case 1:return g+e[s++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>
28443);for(let o=0,i=0,a=0,s=0;o<r;o++)s=s<<6|t[e.charCodeAt(o)],(a+=6)>=8&&(n[i++]=s>>(a-=8));return n}(e)),r=0,()=>t[r++]}function o(e,t=0){let r=[];for(;;){let n=e(),o=e();if(!o)break;t+=n;for(let e=0;e<o;e++)r.push(t+e);t+=o+1}return r}function i(e){return s(()=>{let t=o(e);if(t.length)return t})}function a(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),o=s(t);return c(o.length,1+e,t).flatMap((e,t)=>{let[i,...a]=e;return Array(o[t]).fill().map((e,t)=>{let o=t*n;return[i+t*r,a.map(e=>e+o)]})})}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(c(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function s(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function c(e,t,r){let n=Array(e).fill().map(()=>[]);for(let o=0;o<t;o++)(function(e,t){let r=Array(e);for(let o=0,i=0;o<e;o++){var n;r[o]=i+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}r.d(t,{Q6:function(){return G}});var l=n("AEgSbwjEDVYByQKaAQsBOQDpATQAngDUAHsAoABoANQAagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXAA0ADgAWAA8AFAAVBFsF1QEXE0o3xAXUALIArkABaACmAgPGAK6AMDAwMAE/qAYK7P4HQAblMgVYBVkAPSw5Afa3EgfJwgAPA8meNALGCjACjqIChtk/j2+KAsXMAoPzASDgCgDyrgFCAi6OCkCQAOQA4woWABjVuskNDD6eBBx4AP4COhi+D+wKBirqBgSCaA0cBy4ArABqku+mnIAAXAaUJAbqABwAPAyUFvyp/Mo8INAIvCoDshQ8APcubKQAon4ZABgEJtgXAR4AuhnOBPsKIE04CZgJiR8cVlpM5INDABQADQAWAA9sVQAiAA8ASO8W2T30OVnKluYvChEeX05ZPe0AFAANABYAD2wgXUCYAMPsABwAOgzGFryp/AHauQVcBeMC0KACxLEKTR2kZhR0Gm5M9gC8DmgC4gAMLjSKF8qSAoF8ARMcAL4OaALiAAwuAUlQJpJMCwMt/AUpCthqGK4B2EQAciwSeAIyFiIDKCi6OGwAOuIB9iYAyA7MtgEcZIIAsgYABgCK1EoFHNZsGACoKNIBogAAAAAAKy4DnABoAQoaPu43dQQZGACrAcgCIgDgLBJ0OvRQsTOiKDVJBfsoBVoFWbC5BWo7XkITO1hCmHuUZmCh+QwUA8YIJvJ4JASkTAJUVAJ2HKwoAZCkpjZcA0YYBIRiCgDSBqxAMCQHKgI6XgBsAWIgcgCEHhoAlgFKuAAoahgBsMYDOC4iRFQBcFoGZgJmAPJKGAMqAgYASkIArABeAHQALLYGCPTwGo6AAAAKIgAqALQcSAHSAdwIDDKXeYHpAAsAEgA1AD4AOTR3etTBEGAQXQJNCkxtOxUMAq0PpwvmERYM0irM09kANKoH7ANUB+wDVANUB+wH7ANUB+wDVANUA1QDVBwL8BvUwRBgD0kEbgWPBYwE1wiEJkoRggcpCNNUDnQfHEgDRgD9IyZJHTuUMwwlQ0wNTQQH/TZDbKh9OQNIMaxU9pCjA8wyUDltAh5yEqEAKw90HTW2Tn96SHGhCkxPr7WASWNOaAK/Oqk/+QoiCZRvvHdPBj4QGCeiEPQMMAGyATgN6kvVBO4GOATGH3oZFg/KlZkIoi3aDOom4C6egFcj8iqABepL8TzaC0pRZQ9WC2IJ4DpggUsDHgEKIogK2g02CGoQ8ArGaA3iEUIHNgPSSZcAogb+Cw4dMhWyJg1iqQsGOXQG+BrzC4wmrBMmevkF0BoeBkoBJhr8AMwu5IWtWi5cGU9cBgALIiPEFKVQHQ0iQLR4RRoYBxIlpgKOQ21KhFEzHpAh8zw6DWMuEFF5B/I8AhlMC348m0aoRQsRzz6KPUUiRkwpBDJ8LCwniAnMD4IMtnxvAVYJHgmuDG4TLhEUN8IINgcWKpchJxIIHkaSYJcE9JwD8BPOAwgFPAk+BxADshwqEysVJgUKgSHUAvA20i6wAoxWfQEUBcgPIh/cEE1H3Q7mCJgCYgOAJegAKhUeABQimAhAYABcj9VTAi7ICMRqaSNxA2QU5F4RcAeODlQHpBwwFbwc3nDFXgiGBSigrAlYAXIJlgFcBOAIBjVYjJ0gPmdQi1UYmCBeQTxd+QIuDGIVnES6h3UCiA9oEhgBMgFwBzYM/gJ0EeoRaBCSCOiGATWyM/U6IgRMIYAgDgokA0xsywskJvYM9WYBoBJfAwk0OnfrZ6hgsyEX+gcWMsJBXSHuC49PygyZGr4YP1QrGeEHvAPwGvAn50FUBfwDoAAQOkoz6wS6C2YIiAk8AEYOoBQH1BhnCm6MzQEuiAG0lgNUjoACbIwGNAcIAGQIhAV24gAaAqQIoAACAMwDVAA2AqoHmgAWAII+AToDJCwBHuICjAOQCC7IAZIsAfAmBBjADBIA9DRuRwLDrgKAZ2afBdpVAosCRjIBSiIEAktETgOsbt4A2ABIBhDcRAESqEfIF+BAAdxsKADEAPgAAjIHAj4BygHwagC0AVwLLgmfsLIBSuYmAIAAEmgB1AKGANoAMgB87gFQAEoFVvYF0AJMRgEOLhUoVF4BuAMcATABCgB2BsiKosYEHARqB9ACEBgV3gLvKweyAyLcE8pCwgK921IAMhMKNQqkCqNgWF0wAy5vPU0ACx+lPsQ/SwVOO1A7VTtQO1U7UDtVO1A7VTtQO1UDlLzfvN8KaV9CYegMow3RRMU6RhPYYE5gLxPFLbQUvhXLJVMZOhq5JwIl4VUGDwEt0GYtCCk0che5ADwpZYM+Y4MeLQpIHORTjlT1LRgArkufM6wNqRsSRD0FRHXqYicWCwofAmR+AmI/WEqsWDcdAqH0AmiVAmYGAp+BOBgIAmY4AmYjBGsEfAN/EAN+jzkDOXQUOX86ICACbBoCMjM4BwJtxAJtq+yHMGRCKAFkANsA3gBHAgeVDIoA+wi/AAqyAncsAnafPAJ5SEACeLcaWdhFq0bwAnw8AnrFAn0GAnztR/1IemAhACgSSVVKWBIUSskC0P4C0MlLJAOITAOH40TCkS8C8p5dAAMDq0vLTCoiAMxNSU2sAos8AorVvhgEGkBkArQCjjQCjlk9lH4CjtYCjll1UbFTMgdS0VSCApP4ApMJAOYAGVUbVaxVzQMsGCmSgzLeeGNFODYCl5wC769YHqUAViIClowClnmZAKZZqVoGfkoAOAKWsgKWS1xBXM4CmcgCmWFcx10EFgKcmDm/OpoCnBMCn5gCnrWHABoMLicMAp3uAp6PALI6YTFh7AKe0AKgawGmAp6cHAKeS6JjxWQkIigCJ6wCJnsCoPgCoEnUAqYsAqXLAqf8AHoCp+9oeWiuAABGahlqzgKs4AKsqwKtZAKs/wJXGgJV2QKx3tQDH0tslAKyugoCsuUUbN1tYG1FXAMlygK2WTg8bo0DKUICuFsCuUQSArkndHAzcN4CvRYDLa8DMg4CvoVx/wMzbgK+F3Mfc0wCw8gCwwFzf3RIMkJ03QM8pAM8lwM9vALFeQLGRALGDYYCyGZOAshBAslMAskrAmSaAt3PeHZeeKt5IkvNAxigZv8CYfEZ8JUhewhej164DgLPaALPaSxIUM/wEJwAw6oCz3ABJucDTg9+SAIC3CQC24cC0kwDUlkDU1wA/gNViYCGPMgT6l1CcoLLg4oC2sQC2duEDYRGpzkDhqIALANkC4ZuVvYAUgLfYgLetXB0AuIs7REB8y0kAfSYAfLPhALr8ALpbXYC6vY
2844C6uEA9kQBtgLuhgLrmZanlwAC7jwDhd2YdnDdcZ4C8wAAZgOOE5mQAvcQA5FrA5KEAveVAvnWAvhjmhmaqLg0mxsDnYAC/vcBGAA2nxmfsAMFigOmZwOm1gDOwgMGZ6GFogIGAwxGAQwBHAdqBl62ZAIAuARovA6IHrAKABRyNgAgAzASSgOGfAFgJB4AjOwAHgDmoAScjgi0BhygwgCoBRK86h4+PxZ5BWk4P0EsQiJCtV9yEl+9AJbGBTMAkE0am7o7J2AzErrQDjAYxxiKyfcFWAVZBVgFWQVkBVkFWAVZBVgFWQVYBVkFWAVZRxYI2IZoAwMDCmVe6iwEygOyBjC8vAC8BKi8AOhBKhazBUc+aj5xQkBCt192OF/pAFgSM6wAjP/MbMv9puhGez4nJAUsFyg3Nn5u32vB8hnDLGoBbNdvMRgFYAVrycLJuQjQSlwBAQEKfV5+jL8AND+CAAQW0gbmriQGAIzEDAMCDgDlZh4+JSBLQrJCvUI5JF8oYDcoOSQJwj4KRT9EPnk+gj5xPnICikK9SkM8X8xPUGtOCy1sVTBrDG8gX+E0OxwJaJwKYyQsPR4nQqxCvSzMAsv9X8oPIC8KCQoAACN+nt9rOy5LGMmsya0JZsLMzQphQWAP5hCkEgCTjh5GQiYbqm06zjkKND9EPnFCQBwICx5NSG1cLS5a4rwTCn7uHixCQBxeCUsKDzRVREM4BTtEnC0KghwuQkAb9glUIyQZMTIBBo9i8F8KcmTKYAxgLiRvAERgGjoDHB9gtAcDbBFmT2BOEgIAZOhgFmCWYH5gtGBMYJJpFhgGtg/cVqq8WwtDF6wBvCzOwgMgFgEdBB8BegJtMDGWU4EBiwq5SBsA5SR0jwvLDqdN6wGcAoidUAVBYAD4AD4LATUXWHsMpg0lILuwSABQDTUAFhO4NVUC0wxLZhEcANlPBnYECx9bADIAtwKbKAsWcKwzOaAaAVwBhwn9A9ruEAarBksGugAey1aqWwq7YhOKCy1ADrwBvAEjA0hbKSkpIR8gIi0TJwciDY4AVQJvWJFKlgJvIA9ySAHUdRDPUiEaqrFN6wcSBU1gAPgAPgsBewAHJW0LiAymOTEuyLBXDgwAYL0MAGRKaFAiIhzAADIAtwKbKC08D88CkRh8ULxYyXRzjtilnA72mhU+G+0S2hIHDxwByAk7EJQGESwNNwwAPAC0zwEDAKUA4gCbizAAFQBcG8cvbXcrDsIRAzwlRNTiHR8MG34CfATCC6vxbQA4Oi4Opzkuz6IdB7wKABA7Ls8SGgB9rNsdD7wbSBzOoncfAT4qYB0C7KAJBE3z5R9mDL0M+wg9Cj8ABcELPgJMDbwIvQ09CT0KvS7PoisOvAaYAhwPjBriBBwLvBY8AKELPBC8BRihe90AO2wMPQACpwm9BRzR9QYFB2/LBnwAB7wSXBISvQECAOsCAAB1FVwHFswV/HAXvBg8AC68AuyovAAevAJWISuAAAG8AALkFT0VvCvso7zJqDwEAp8nTAACXADn3hm8CaVcD7/FAPUafAiiBQv/cQDfvKe8GNwavKOMeXMG/KmchAASvAcbDAADlABtvAcAC7ynPAIaPLsIopzLDvwHwak8AOF8L7dtvwNJAAPsABW8AAb8AAm8AGmMABq8AA68Axi8jmoV/AABXAAObAAuTB8ABrwAF7wIIgANSwC6vCcAA7wADpwq7ACyWwAcHAAbvAAB7AqiAAXHCxYV3AAHnABCvAEDAGm8AAt8AB28AAi8CaIABcsAbqAZ1gCSCCIABcsAATwAB9wAHZwIIgAGmwAJfAAbLABtHADmvIEACFwACDwAFLwAaPwJIgAGywDjjAAJPAuiDsX7YAAHPABunUBJAEgACrwFAAM8AAmuAzgABxwAGXwAAgym/AAKHAAKPAAJ/KfsBrwACRwAAwwAEDwBABQ8ABFsAA+MAA3sAA28ABkMBxYcABU8AG6cFrQBvAC7ABM8BABpLAsA4UwAAjwABFMAF3wFHAAG0QAYvB8BfClTADpGALAJBw4McwApK3EBpQYIXwJtJA0ACghwTG1gK4oggRVjLjcDogq1AALZABcC/ARvAXdzSFMVIgNQAhY/AS0GBHRHvnxTe0EAKgAyAvwAVAvcAHyRLQEsAHfmDhIzRwJLAFgGAAJRAQiLzQB5PAQhpgBbANcWAJZpOCCMAM5ssgDQ1RcJw3Z0HBlXHgrSAYmRrCNUVE5JEz3DivoAgB04QSos4RKYUABzASosMSlDGhADMVYE+MbvAExm3QBrAnICQBF7Osh4LzXWBhETIAUVCK6v/xPNACYAAQIbAIYAiQCONgDjALQA1QCdPQC7AKsApgChAOcAnwDTAJwA4AEBAPwAwAB6AFsAywDNAPwA1wDrAIkAogEqAOMA2ADVBAIIKzTT09PTtb/bzM/NQjEWAUsBVS5GAVMBYgFhAVQBRUpCRGcMAUwUBgkEMzcMBwAgDSQmKCs3OTk8PDw9Pg0/HVBQUFBSUlFSKFNUVlVVHFxgYF9hYCNlZ29ucXFxcXFxc3Nzc3Nzc3Nzc3N1dXZ1dFsAPesAQgCTAHEAKwBf8QCHAFAAUAAwAm/oAIT+8fEAXQCM6wCYAEgAWwBd+PipAH4AfgBiAE8AqgAdAK8AfAI5AjwA9QDgAPcA9wDhAPgA4gDiAOEA3wAoAnQBSgE5ATcBTQE3ATcBNwEyATEBMQExARUBURAAKgkBAEwYCxcEFhcPAIcAjwCfAEoAYxkCKgBvAGgAkAMOAyArAxpCP0gqAIoCSADAAlACnQC5Ao8CjwKPAo8CjwKPAoQCjwKPAo8CjwKPAo8CjgKOApECmQKQAo8CjwKNAo0CjQKNAosCjgJuAc0CkAKYAo8CjwKOF3oMAPcGA5gCWgIzGAFNETYC2xILLBQBRzgUTpIBdKU9AWJaAP4DOkgA/wCSKh4ZkGsAKmEAagAvAIoDlcyM8K+FWwa7LA/DEgKe1nUrCwQkWwGzAN5/gYB/gX+Cg4N/hIeFf4aJh4GIg4mDin+Lf4x/jYuOf49/kIORf5J/k3+Uf5WElomXg5h/AIMloQCEBDwEOQQ7BD4EPARCBD8EOgRABEIEQQQ9BD8EQgCkA4gAylIA0AINAPdbAPcBGgD3APUA9QD2APXVhSRmvwD3APUA9QD2APUdAIpbAPcAigEaAPcAigLtAPcAitWFJGa/HQD4WwEaAPcA9wD1APUA9gD1APgA9QD1APYA9dWFJGa/HQCKWwEaAPcAigD3AIoC7QD3AIrVhSRmvx0CRAE3AksBOgJMwgOfAu0Dn9WFJGa/HQCKWwEaA58AigOfAIoC7QOfAIrVhSRmvx0EMQCKBDIAigeOMm4hLQCKAT9vBCQA/gDHWwMAVVv/FDMDAIoDPtkASgMAigMAl2dBtv/TrfLzakaPh3aztmIuZQrR3ER2n5Yo+qNR2jK/aP/V04UK1njIJXLgkab9PjOxyJDVbIN3R/FZLoZVl2kYFQIZ7V6LpRqGDt9OdDohnJKp5yX/HLj0voPpLrneDaN11t5W3sSM4ALscgSw8fyWLVkKa/cNcQmjYOgTLZUgOLi2F05g4TR0RfgZ4PBdntxdV3qvdxQt8DeaMMgjJMgwUxYN3tUNpUNx21AvwADDAIa0+raTWaoBXmShAl5AThpMi282o+WzOKMlxjHj7a+DI6AM6VI9w+xyh3Eyg/1XvPmbqjeg2MGXugHt8wW03DQMRTd5iqqOhjLvyOCcKtViGwAHVLyl86KqvxVX7MxSW8HLq6KCrLpB8SspAOHO9IuOwCh9poLoMEha9CHCxlRAXJNDobducWjqhFHqCkzjTM2V9CHslwq4iU19IxqhIFZMve15lDTiMVZIPdADXGxTqzSTv0dDWyk1ht430yvaYCy9qY0MQ3cC5c1uw4mHcTGkMHTAGC99TkNXFAiLQgw9ZWhwKJjGCe+J5FIaMpYhhyUnEgfrF3zEtzn40DdgCIJUJfZ0mo3eXsDwneJ8AYCr7Vx2eHFnt2H6ZEyAHs9JoQ4Lzh5zBoGOGwAz37NOPuqSNmZf51hBEovtpm2T1wI79OBWDyvCFYkONqAKGVYgIL0F+uxTcMLSPtFbiNDbBPFgip8MGDmLLHbSyGXdCMO6f7teiW9EEmorZ+75KzanZwvUySgjoUQBTfHlOIerJs6Y9wLlgDw18AB1ne0tZRNgGjcrqHbtubSUooEpy4hWpDzTSrmvqw0H9AoXQLolMt9eOM+l9RitBB1OBnrdC1XL4yLFyXqZSgZhv7FnnDEXLUeffb4nVDqYTLY6X7gHVaK4ZZlepja2Oe6OhLDI/Ve5SQTCmJdH3HJeb14cw99XsBQAlDy5s5kil2sGezZA3tFok2IsNja7QuFgM30Hff3NGSsSVFYZLOcTBOvlPx8vLhjJrSI7xrNMA/BOzpBIJrdR1+v+zw4RZ7ry6aq4/tFfvPQxQCPDsXlcRvIZYl+E5g3kJ+zLMZon0yElBvEOQTh6SaAdIO6BwdqJqfvgU+e8Y65FQhdiHkZMVt9/39N2jGd26J6cNjq8cQIyp6RonRPgVn2fl89uRDcQ27GacaN0MPrcNyRlbUWelKfDfyrNVVGBG5sjd3jXzTx06ywyzuWn5jbvEfPPCTbpClkgEu9oPLKICxU5HuDe3jA1XnvU85IYYhaEtOU1YVWYhEFsa4/TQj3rHdsU2da2eVbF8YjSI0m619/8bLMZu3xildwqM7zf1cjn4Whx0PSYXcY5bR7wEQfGC7CTOXwZdmsdTO8q3uGm7Rh/RfCWwpzBHCAaVfjxgibL5vUeL0pH6bzDmI9yCXKC/okkmbc28OJvI87L/bjFzpq0DHepw4kT1Od+fL7cyuFaRgfaUWB2++TCFvz11J0leEtrGkpccfX9z2LY39sph4PBHCjNOOkd0ybUm+ZzS8GkFbqMpq8uiX2yHpa0jllTLfGTDBMYR6FT5FWLLDPMkYxt1Q0eyMvxJWztDjy0m6VvZPvamrFXj
2844HmPpU6WxrZqH6WW//I37RwvqPQhPz8I3RPuXAk1C94ZprQWm9iGM/KgiGDO6SV9sjp+Jmk4TBajMNJ5zzWZ1k1jrteQQBp9C2dOvmbIeeEME8y573Q8TgGe+ZCzutM45gYLBzYm2LNvgq2kebAbMpHRDSyh6dQ27GbsAAdCqQVVXWC1C+zpwBM2Lr4eqtobmmu1vJEDlIQR1iN8CUWpztq50z7FFQBn3SKViX6wSqzVQCoYvAjByjeSa+h1PRnYWvBinTDB9cHt4eqDsPS4jcD3FwXJKT0RQsl8EvslI2SFaz2OtmYLFV8FwgvWroZ3fKmh7btewX9tfL2upXsrsqpLJzpzNGyNlnuZyetg7DIOxQTMBR7dqlrTlZ6FWi1g4j1NSjA2j1Yd7fzTH6k9LxCyUCneAKYCU581bnvKih6KJTeTeCX4Zhme/QIz7w2o+AdSgtLAkdrLS9nfweYEqrMLsrGGSWXtgWamAWp6+x6GM/Z8jNw3BqPNQ39hrzYLECn3tPvh/LqKbRSCiDGauDKBBj/kGbpnM1Bb/my8hv4NWStclkwjfl57y4oNDgw1JAG9VOti3QVVoSziMEsSdfEjaCPIDb7SgpLXykQsM+nbqbt97I0mIlzWv0uqFobLMAq8Rd9pszUBKxFhBPwOjf//gVOz2r7URJ2OnpviCXv9iz3a4X/YLBYbXoYwxBv/Kq0a5s4utQHzoTerJ7PmFW/no/ZAsid/hRIV82tD+Qabh5F1ssIM8Ri3chu0PuPD3sSJRMjDoxLAbwUbroiPAz/V52e8s3DIixxlO7OrvhMj3qfzA0kKxzwicr5wJmZwJxTXgrwYsqhRvpgC2Nfdyd+TYYxJSZgk+gk2g9KyHSlwQVAyPtWWgvVGyVBqsU2LpDlLNosSAtolC1uBKt5pQZLhAxTjeGCWIC/HVpagc5rRwkgpCHKEsjA8d+scp8aiMewwQBhp5dYTV5t/Nvl+HbDMu8F3S0psPyZb1bSnqlHPFUnMQeQqSqwDBT23fJO9gO3aVaa1icrXU0PKwlMM5K+iL3ATcVq2fFWKk0irCTF4LDVDG4gUpkyplq6efcZS+WDR1woApjD18x+2JQR9oOXzuA7uy4b+/91WsJd/tSd1QcAH8PVPXApieA37B7YXPhDPH1azP3PKR+HfHmOoDYLeuKsIi/ssSsdYs62qJo14Hw1P2N/6zpr8F3FTWmJ4ysAVcl84Iv/tl///Z8FaAWbBQbyMNDZjrZ2JwdRjtd1jOeNumSodFtr4/Zf45iRJf/8HSW+KIB/+GlKu8Rv1BPLr/4duoL+kFPRqrstEr41gfJupoJRf4hcYDWX93FOcfEBiIivxtjtV8g7mvOReiamYWKE7vfPbv3v2L9Kwq3cIDFGLyhyfOGuf/9vA5muH6Pjg7B4SUj2ydDXra9fSBI+DrsNHA6l51wfHssJb+11TfNk7B8OleUe3Y+ZmHboMFHdv7FFP2cfISFyeAQR0sk/Xv62HBTdW4HmnGSLFk/cqyWVVFJkdIIa+4hos3JRHcqLoRKM5h2Qtk1RZtzISMtlXTfTqIc77YsCCgQD0r61jtxskCctwJOtjE/pL8wC4LBD4AZFjh2wzzFCrT/PNqW0/DeBbkfMfzVm9yy06WiF+1mTdNNEAytVtohBKg3brWd2VQa+aF+cQ0mW5CvbwOlWCT07liX226PjiVLwFCRs/Ax2/u+ZNPjrNFIWIPf5GjHyUKp60OeXe9F01f7IaPf/SDTvyDAf7LSWWejtiZcsqtWZjrdn6A2MqBwnSeKhrZOlUMmgMionmiCIvXqKZfmhGZ1MwD3uMF4n9KJcfWLA3cL5pq48tm5NDYNh3SS/TKUtmFSlQR89MR4+kxcqJgpGbhm9gXneDELkyqAN5nitmIzTscKeJRXqd64RiaOALR2d295NWwbjHRNG2AU5oR9OS2oJg/5CY6BFPc1JvD2Mxdhp2/MZdI8dLePxiP4KRIp8VXmqfg+jqd/RNG7GNuq1U2SiI4735Bdc0MVFx6mH5UOWEa5HuhYykd6t4M1gYLVS8m1B+9bUqi5DziQq7qT8d94cxB6AB4WqMCOF/zPPtRSZUUaMSsvHOWxGASufywTX8ogy6HgUf9p+Z30wUEosl8qgmwm6o2AV6nO9HKQjRHpN6SUegI5pvR61RLnUJ1lqCtmfcsRQutEizVpAaPXN7xMp5UQ5OSZK6tniCK9CpyMd7LjR6+MxfoMEDPpWdf2p2m5N3KO4QMxf+V7vGdYjemQczQ+m2MGIkFNYDMf0Yop2eSx81sP36WHUczqEhKysp2iJSYAvfgJjinKwToPvRKb+HBi+7cJ96S5ngfLOXaHAFRLkulo4TnXTFO51gX0TCCo4ZUHdbpdgkMEwUZAPjh6M+hA8DzycbtxAgH3uD6i0nN1aTiIuQ4BYCE9dEHHwAmINU+4YEWx4EC3OZwFGfYZMPLScVlb+BAAJeARUh+gdWA3/gRqCrf1jecgqeFf1MdzrrP4SVlGm5mMihSP+zYYksAB7O+SBPwNQqSNMiLnkviY/klwgcRmvqtCqeWeA0gjuir4CMZqmw/ntP6M+l0pdN8/P9xI53aP7x/zavJbbKOz8VzO/nXxIr1tjparMnqd6iWdByHKw4lF4p/u57Yv07WeZPDnRl7wgmDVZZ44fQsjdYO/gmXQ+940PRGst8UMQApFC4OOV22e4N+lVOPyFLAOj4t8R3PFw/FjbSWy0ELuAFReNkee8ORcBOT2NPDcs7OfpUmzvn/F9Czk9o9naMyVYy/j8I5qVFmQDFcptBp65J/+sJA3w/j6y/eqUkKxTsf0CZjtNdRSBEmJ2tmfgmJbqpcsSagk+Ul9qdyV+NnqFBIJZFCB1XwPvWGDBOjVUmpWGHsWA5uDuMgLUNKZ4vlq5qfzY1LnRhCc/mh5/EX+hzuGdDy5aYYx4BAdwTTeZHcZpl3X0YyuxZFWNE6wFNppYs3LcFJePOyfKZ8KYb7dmRyvDOcORLPH0sytC6mH1US3JVj6paYM1GEr+CUmyHRnabHPqLlh6Kl0/BWd3ebziDfvpRQpPoR7N+LkUeYWtQ6Rn5v5+NtNeBPs2+DKDlzEVR5aYbTVPrZekJsZ9UC9qtVcP99thVIt1GREnN8zXP8mBfzS+wKYym8fcW6KqrE702Zco+hFQAEIR7qimo7dd7wO8B7R+QZPTuCWm1UAwblDTyURSbd85P4Pz+wBpQyGPeEpsEvxxIZkKsyfSOUcfE3UqzMFwZKYijb7sOkzpou+tC4bPXey5GI1GUAg9c3vLwIwAhcdPHRsYvpAfzkZHWY20vWxxJO0lvKfj6sG2g/pJ1vd/X2EBZkyEjLN4nUZOpOO7MewyHCrxQK8d5aF7rCeQlFX+XksK6l6z971BPuJqwdjj68ULOj9ZTDdOLopMdOLL0PFSS792SXE/EC9EDnIXZGYhr52aQb+9b2zEdBSnpkxAdBUkwJDqGCpZk/HkRidjdp0zKv/Cm52EenmfeKX6HkLUJgMbTTxxIZkIeL/6xuAaAAHbA7mONVduTHNX/UJj1nJEaI7f3HlUyiqKn7VfBE+bdb4HWln1HPJx001Ulq1tOxFf8WZEARvq5Da1+pE7fPVxLntGACz3nkoLsKcPdUqdCwwiyWkmXTd5+bv3j7HaReRt3ESn783Ew3SWsvkEjKtbocNksbrLmV+GVZn1+Uneo35MT1/4r8fngQX5/ptORfgmWfF6KSB/ssJmUSijXxQqUpzkANEkSkYgYj560OOjJr6uqckFuO15TRNgABEwNDjus1V3q2huLPYERMCLXUNmJJpbMrUQsSO7Qnxta55TvPWL6gWmMOvFknqETzqzFVO8SVkovEdYatypLGmDy9VWfgAc0KyIChiOhbd7UlbAeVLPZyEDp4POXKBwN/KP5pT6Cyqs6yaI00vXMn1ubk9OWT9Q/O2t/C25qlnO/zO0xcBzpMBCAB8vsdsh3U8fnPX1XlPEWfaYJxKVaTUgfCESWl4CCkIyjE6iQ5JFcwU6S4/IH0/Agacp8d5Gzq2+GzPnJ7+sqk40mfFQpKrDbAKwLlr3ONEati2k/ycLMSUu7V/7BBkDlNyXoN9tvqXCbbMc4SSQXgC/DBUY9QjtrCtQ+susEomCq8xcNJNNMWCH31GtlTw2BdCXkJBjT+/QNWlBWwQ5SWCh1LdQ99QVii/DyTxjSR6rmdap3l3L3aiplQpPYlrzNm9er88fXd2+ao+YdUNjtqmxiVxmyYPzJxl67OokDcTezEGqldkGgPbRdXA+fGcuZVkembZByo7J1dMnkGNjwwCny+FNcVcWvWYL9mg8oF7jACVWI3bA64EXpdM8bSIEVIAs5JJH+LHXgnCsgcMGPZyAAVBncvbLiexzg9YozcytjPXVlAbQAC7Tc4S0C8QN4LlAGjj4pQAVWrwkaDoUYGxxvkCWKRRHkdzJB5zpREleBDL1oDKEvAqmkDibVC4kTqF89YO6laUjgtJPebBfzr16tg4t10GmN1sJ5vezk2sUOq8blCn5mPZyT3ltaDcddKupQjqusNM9wtFVD0ABzv17fZDn7GPT1nkCtdcgYejcK1qOcTGtPxnCX1rErEjVWCnEJv5HaOAUjgpiKQjUKkQi64D5g2COgwas8FcgIl0Pw95H9dWxE3QG0VbMNffh6BPlAojLDf4es2/5Xfq7hw5NGcON2g8Qsy2UQm94KddKyy3kdJxWgpNaEc15xcylb
2844LC3vnT26u8qS90qc2MU8LdOJc5VPF5KnSpXIhnj1eJJ/jszjZ01oR6JDFJRoeTPO/wh4IPFbdG9KljuSzeuI92p8JF/bpgDE8wG86/W2EBKgPrmzdLijxssQn8mM44ky/KLGOJcrSwXIpZa/Z3v7W6HCRk7ewds99LTsUW1LbeJytw8Q/BFZVZyfO9BUHOCe2suuEkO8DU4fLX0IQSQ2TdOkKXDtPf3sNV9tYhYFueuPRhfQlEEy+aYM/MCz7diDNmFSswYYlZZPmKr2Q5AxLsSVEqqBtn6hVl1BCFOFExnqnIsmyY/NA8jXnDaNzr7Zv3hu+I1Mf/PJjk0gALN2G8ABzdf9FNvWHvZHhv6xIoDCXf964MxG92vGZtx/LYU5PeZqgly8tT5tGeQGeJzMMsJc5p+a5Rn2PtEhiRzo/5Owjy1n0Lzx3ev8GHQmeWb8vagG6O5Qk5nrZuQTiKODI4UqL0LLAusS2Ve7j1Ivdxquu1BR9Rc4QkOiUPwQXJv6du2E8i5pDhVoQpUhyMWGUT2O2YODIhjAfI71gxep5r5zAY7GBUZpy51hAw0pcCCrhOmU8Wp6ujQTdZQsCjtq6SHX8QAMNiPCIIkoxhHEZPgsBcOlP4aErJZPhF7qvx6gHrn8hEwPwYbx8YmT/n7lbcmTip1v8kgsrIjFTAlvLY4Nuil0KDmgz3svYs0ZJ3O3Is/vSx4xpxF1e2VAtZE8dJxGYEIhCSuPvCjP54l/NSNDnwlKvAW8mG+AQkgp7a87Igh26uKMFGD0PoPHTSvoWxiHuk+su8XkQiHIjeYKl/RdcOHpxhQH3zHCNE3aARm83Bl6zGxU/vMltlVPQhubcqhW4RYkl6uXk5JdP/QpzaKFpw2M8zvysv2qj7xaQECuu2akM0Cssj/uB9+wDR7uA6XOnLNaoczalHoMj33eiiu+DRaFsUmlmUZuh9bjDY4INMNSSAivSh03uJvny4Gj+D+neudoa7iJi7c4VFlZ/J5gUR82308zSNAt/ZroBXDWw0fV3eVPAn3aX0mtJabF6RsUZmL+Ehn+wn51/4QipMjD+6y64t7bjL6bjENan2prQ4h7++hBJ9NXvX8CUocJqMC937IasLzm5K0qwXeFMAimMHkEIQIQI2LrQ9sLBfXuyp66zWvlsh74GPv7Xpabj993pRNNDuFud5oIcn/92isbADXdpRPbjmbCNOrwRbxGZx2XmYNGMiV5kjF4IKyxCBvKier9U4uVoheCdmk83rp5G0PihAm2fAtczI4b9BWqX+nrZTrJX5kSwQddi93NQrXG+Cl3eBGNkM77VBsMpEolhXex1MVvMkZN9fG59GGbciH11FEXaY1MxrArovaSjE/lUUqBg2cZBNmiWbvzCHCPJ4RVGFK2dTbObM1m+gJyEX53fa7u3+TZpm74mNEzWbkVL4vjNwfL9uzRCu1cgbrNx5Yv5dDruNrIOgwIk+UZWwJfdbu/WHul6PMmRflVCIzd7B37Pgm/Up/NuCiQW7RXyafevN3AL6ycciCc4ZPlTRzEu+aURGlUBOJbUEsheX7PPyrrhdUt5JAG12EEEZpY/N3Vhbl5uLAfT0CbC2XmpnryFkxZmBTs5prvEeuf0bn73i3O82WTiQtJWEPLsBXnQmdnKhB06NbbhLtlTZYJMxDMJpFeajSNRDB2v61BMUHqXggUwRJ19m6p5zl51v11q34T74lTXdJURuV6+bg2D6qpfGnLy7KGLuLZngobM4pIouz4+n0/UzFKxDgLM4h+fUwKZozQ9UGrHjcif51Ruonz7oIVZ56xWtZS8z7u5zay6J2LD4gCYh2RXoBRLDKsUlZ80R8kmoxlJiL8aZCy2wCAonnucFxCLT1HKoMhbPKt34D97EXPPh0joO93iJVF1Uruew61Qoy3ZUVNX9uIJDt9AQWKLLo+mSzmTibyLHq0D6hhzpvgUgI6ekyVEL3FD+Fi5R3A8MRHPXspN1VyKkfRlC+OGiNgPC4NREZpFETgVmdXrQ2TxChuS3aY+Ndc7CiYv5+CmzfiqeZrWIQJW/C4RvjbGUoJFf1K6ZdR2xL/bG4kVq1+I4jQWX+26YUijpp+lpN7o5c6ZodXJCF56UkFGsqz44sIg8jrdWvbjRCxi2Bk0iyM3a7ecAV93zB6h1Ei38c0s6+8nrbkopArccGP8vntQe1bFeEh2nJIFOHX/k3/UHb5PtKGpnzbkmnRETMX+9X/QduLZWw/feklW/kH/JnzToJe9Kgu9Hct1UGbH5BPCLo4OOtQnZonW0xnyCcdtKyPQ/sbLiSTYJdSx4sJqWLMnfn6fIqPB3WAgk00J+fCOkomPHqtS67pf0mFmKoItYZUlJu6BihSZ8qve8+/X+LX1MhQXF95AshfUleCtmdn6l6QFXzLg2sgLn1oyVFuZecv7fzsIHzoRlAGp0gwYDOn1S4qabWvB5xUaE+Svw4KmjWtxdnuQbI32dw87D4N95u8qQRJTSQg0wLxOLkxSrPMLEn1UIhNKjAa9VLs3WLaXGrtCIt8bKY2AQP/ZdyRU6zT/E8qP2ltyBE2CCZPgWgEYDoJJO4n92y61ylNaSFXKohJhLjkfvYWm592539sIpmBNLlDo1bExFBfmHJJ0lFEiC/fj8v42OoMC9Mo3whIoWvyHfq6Uacqq55mzFf/EGC+NP/gHjhd6urc6R0hES27VXux7UY8CGKPohplWIZtTrFSaPWslCWy78E22Pw8fvReSUZx/txqLtHrFqg1DY/Eus6Iq1heZdrdcqE0/c971Bz1HW/XNXHsXpUIbI4kHdOfCc6T5zHZzvzQJB0ggMFL6IGPAilU9bj/ASdPk6fNvNtZqPuwEDhMBtBnhCexo6D6VAGIOPvJPPV523Y8R8a9vCqZbswSZKzOT1291BsUbmUWehtbb1fdRX9hiJKXvwr1QX6GjnZMgyMvnwOo2Dr24amr7FqEAbVeJAjRNOceM2EQ1Mna9fInqPJ5mh5X8CzT1aDOv08An0blz0fF5Gq4mS2cwq5glwIOlY5nznE8X4j/UdZ3FJsVIXte1JH0A7iibuPfazStM5O/Vo3KXIpXBeGORV0M9XDXFvsYZUHGvFCUubWzTw248EHE0cpQM2zNg6rjavreq3NHCAWsoZ7wvVy7l5gvtKRmIj1MnvfWEm0yFnGcuOq192350a5WefpfKCcX3Sn+AgHU+qnpstNtddbdVebagJU390lq9ko4aI9rqdaWXYG8tv5O/ZQHSqDRYHC6zfH10l5z++opso7aOSaIczlQ13iAzXvLdEu0V7kwNUZ1c8Y8aq7SeIEe5p902FlNkW8DnwHyueHchbK8vVFJfmr9mz7P8nUSccl1ULaoWMRSI1ls32kvlK0h46h3J25Yd9AzfcJbp9qYF/SEt3H5j69mMdcsNxZcAzT/A89ov3tglTX54y/EwjMfuoDoxPwLJDm5I7q6F9Kp469yNy1zSxz0N4HbRRBj9xFFuogvBspv7DXUNIsGxTINEQfmctb42XImWAODgARNo7dfcTqFKq6aTfivmvunLmzP9f8yLsJvXD3JbcPcDGNriMAcjzeDTNr65t8YB5tsnFDFLa0Uwmd2OvUdkLMX9TsAUYUfooSv47sw5J88j7CpahRjjO3/UhOXjTS39W5YZAel2KTbQd1h7INOw9P23GW7GDAe4agIUFHP48MZr7ubq0efFmmtwYMyk7D0r1oeG/CGOODgb9Ur+JMHxkwzPbtCX2ZnENQuI0RN5SyTIZuoY4XS9Rd/tPe3vNAZGSHM/YYwqs9xkkENx0O+eC2YVW1cwOJ3ckE890nbQeHLKlW15L0P0W2VliyYrfNr0nrIYddoRyGaCtj4OYd2MT7ebApqZOAQIaSHJM4mphhfjNjtnjg6YRyx9qM2FT3xOiYIMqXPFWdzhSgFF8ItocqVV09CmIoO8k6U/oJB7++wSX/YksxfPXHyjSgAGZOj1aKEq9fSvXBqtp2wu8/FxEf5AxapAD06pPGuLVUYLdgEzHR8wqRGYEwiUO9MyYbgswstuLYhwYFpSVKOdzAihZ9LuHtD598EGhINU9xc9xhL+QgTLAstmPIvvm2xyRw/WTUPXkP3ZHu6GyPmj5xFH9/QGpkglKXRVUBgVmLOJx8uZO2AstxQYocZH2JhORlxawj66BAXUEs7K/gPxINIRAFyK3WLuyq9oBTF9wEbnmCot82WjIg7CPNwYK3KrZMrKAz5yFszg4wCVLJVnIL8+OYA0xRDH8cHQjQUiQ2i1mr/be32k/3Xej9sdf3iuGvZHyLFSJvPSqz/wltnxumTJYKZsrWXtx/Rmu39jjV9lFaJttfFn57/No2h/unsJmMHbrnZ8csxkp5HQ4xR1s0HH+t3Iz82a3iQWTUDGq/+l2W3TUYLE8zNdL8Y+5oXa
2844IH/Y2UUcX67cXeN4WvENZjz4+8q7vjhowOI3rSjFhGZ6KzwmU7+5nFV+kGWAZ5z2UWvzq0TK0pk1hPwAN4jbw//1CApRvIaIjhSGhioY6TUmsToek9cF9XjJdHvLPcyyCV3lbR5Jiz/ts46ay2F820VjTXvllElwrGzKcNSyvQlWDXdwrUINXmHorAM3fE19ngLZmgeUaCJLsSITf2VcfAOuWwX7mTPdP8Zb/04KqRniufCpwnDUk7sP0RX6cud/sanFMagnzKInSRVey0YzlVSOtA/AjrofmSH6RYbJQ8b4NDeTkIGc6247+Mnbez/qhJ9GAv9fGNFercPnnrf285Qgs+UqThLRgflcAKFuqWhLzZaR4QqvSwa3xe0LPkqj9xJWub195r7NrrR0e78FR+0mRBNMPsraqZctAUVAJfYKehTDV1MGGQSeDsOK9J3sbUuKRIS/WilX/64CBms9jCZocBlsBSZaIAjWm/SUZ8daWL2a/cJFyUOFqE3Epc2RWbtjNyPwOGpWtzu32kUooUqsJud7IV4E8rstUBXM7tGEtBx99x60g1duhyvxeKJSl8s5E34HTMmADT0836aEdg5Dv9rVyCz8i2REOmiz6wtIVFN0HsjAoN37SrY0bV1Ms8CRUILhvZvvRaDzoVCaSI0u8EPuTe4b7OPowgRGODl22UBBmHSTUY8e4DyL+Bc7bngo+2T8HtNvzyATSL5iJZgFPKpmUyZv54vVL90+/RQGATUmNKnrIvcJMYON9fl83naW5sf6hRkbbTC9RUEE6XADwjgA46wWfUQ+QWZl0J4PVTWAln/YfAz/SV3q3J9+yCYDleruoN5uoc/wT2f4YONGTb6zTGq3V+3JqzmCOjwebKln+fExVLN7sqtqfMnsKVXWbb2Ai5m3D/fCTgX7oKYzTZvj+m28XnDqPbXuP4MyWdmPezcesdrh7rCzA7BWdObiuyDEKjjzBbQ0qnuwjliz+b+j7aPMKlkXyIznV3tGzAfYwIbzGGt098oh4eq3ruDjdgHtjxfFCjHrjjRbHajoz/YOY4raojPFQ910GIlBV7hq47UDgpyajBxQUmD8NctiLV1rTSLAEsQDLTeRKcmPBMVMFF0SPBBhZ5oXoxtD3lMhuAQXmA+57OcciczVW9e9zwSIAHS+FJmvfXMJGF1dMBsIUMaPjvgaVqUc3p32qVCMQYFEiRLzlVSOGMCmv/HJIxAHe3mL/XnoZ1IkWLeRZfgyByjnDbbeRK5KL7bYHSVJZ9UFq+yCiNKeRUaYjgbC3hVUvfJAhy/QNl/JqLKVvGMk9ZcfyGidNeo/VTxK9vUpodzfQI9Z2eAre4nmrkzgxKSnT5IJ1D69oHuUS5hp7pK9IAWuNrAOtOH0mAuwCrY8mXAtVXUeaNK3OXr6PRvmWg4VQqFSy+a1GZfFYgdsJELG8N0kvqmzvwZ02Plf5fH9QTy6br0oY/IDsEA+GBf9pEVWCIuBCjsup3LDSDqI+5+0IKSUFr7A96A2f0FbcU9fqljdqvsd8sG55KcKloHIFZem2Wb6pCLXybnVSB0sjCXzdS8IKvE");let u=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function d(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function f(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let r=[];for(let n=0;n<t;)r.push(String.fromCodePoint(...e.slice(n,n+=4096)));return r.join("")}var h=n
vendor: 7,465 bytes, line 2844
2844("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");function
2844p(e){return e>>24&255}function m(e){return 16777215&e}let g=new Map(i(h).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),b=new Set(o(h)),v=new Map,y=new Map;for(let[e,t]of a(h)){if(!b.has(e)&&2==t.length){let[r,n]=t,o=y.get(r);o||(o=new Map,y.set(r,o)),o.set(n,e)}v.set(e,t.reverse())}function w(e){return e>=44032&&e<55204}function E(e){let t=[],r=[],n=!1;function o(e){let r=g.get(e);r&&(n=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(w(n)){let e=n-44032,t=e/588|0,r=e%588/28|0,i=e%28;o(4352+t),o(4449+r),i>0&&o(4519+i)}else{let e=v.get(n);e?r.push(...e):o(n)}if(!r.length)break;n=r.pop()}if(n&&t.length>1){let e=p(t[0]);for(let r=1;r<t.length;r++){let n=p(t[r]);if(0==n||e<=n){e=n;continue}let o=r-1;for(;;){let r=t[o+1];if(t[o+1]=t[o],t[o]=r,!o||(e=p(t[--o]))<=n)break}e=p(t[r])}}return t}function x(e){return function(e){let t=[],r=[],n=-1,o=0;for(let i of e){let e=p(i),a=m(i);if(-1==n)0==e?n=a:t.push(a);else if(o>0&&o>=e)0==e?(t.push(n,...r),r.length=0,n=a):r.push(a),o=e;else{let i=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(w(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let r=y.get(e);return r&&(r=r.get(t))?r:-1}}(n,a);i>=0?n=i:0==o&&0==e?(t.push(n),n=a):(r.push(a),o=e)}}return n>=0&&t.push(n,...r),t}(E(e))}function C(){return new Set(o(l))}let A=new Map(a(l)),P=C(),j=C(),k=new Set(o(l).map(function(e){return this[e]},[...j])),O=C();C();let S=i(l);function I(){return new Set([o(l).map(e=>S[e]),o(l)].flat(2))}let T=l(),B=s(e=>{let t=s(l).map(e=>e+96);if(t.length){let r=e>=T;t[0]-=32,t=f(t),r&&(t=`Restricted[${t}]`);let n=I(),o=[...n,...I()].sort((e,t)=>e-t);return{N:t,P:n,M:!l(),R:r,V:new Set(o)}}}),_=C(),D=new Map;for(let{V:e,M:t}of([..._,...C()].sort((e,t)=>e-t).map((e,t,r)=>{let n=l(),o=r[t]=n?r[t-n]:{V:[],M:new Map};o.V.push(e),_.has(e)||D.set(e,o)}),new Set(D.values()))){let r=[];for(let t of e){let e=B.filter(e=>e.V.has(t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),e.forEach(e=>n.G.add(e))}let n=r.flatMap(({G:e})=>[...e]);for(let{G:e,V:o}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of o)t.set(e,r)}}let $=new Set,M=new Set;for(let e of B)for(let t of e.V)($.has(t)?M:$).add(t);for(let e of $)D.has(e)||M.has(e)||D.set(e,1);let R=new Set([...$,...E($).map(m)]),N=o(l),F=function e(t){let r=s(()=>
2844{let t=o(l).map(e=>N[e]);if(t.length)return e(t)}).sort((e,t)=>t.Q.size-e.Q.size),n=l();return{B:r,V:n%3,F:1&(n=n/3|0),S:1&(n>>=1),C:2&n,Q:new Set(t)}}([]);class L extends Array{get is_emoji(){return!0}}function U(e,t=d){var r;let n=[];r=e[0],j.has(r)&&n.push("â");let o=0,i=e.length;for(let r=0;r<i;r++){let i=e[r];O.has(i)&&(n.push(f(e.slice(o,r))),n.push(t(i)),o=r+1)}return n.push(f(e.slice(o,i))),n.join("")}function z(e){return(O.has(e)?"":`${H(U([e]))} `)+d(e)}function H(e){return`"${e}"\u200E`}function q(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}function G(e){var t;let r;return(r=0,t=e.split(".").map(e=>{let t,n=function(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}(e),o={input:n,offset:r};r+=n.length+1;try{let e,r=o.tokens=function(e,t){let r=[],n=[];for(e=e.slice().reverse();e.length;){let o=function(e,t){let r,n,o=F,i=[],a=e.length;for(t&&(t.length=0);a;){let s=e[--a];if(!(o=o.B.find(e=>e.Q.has(s))))break;if(o.S)n=s;else if(o.C&&s===n)break;i.push(s),o.F&&(i.push(65039),a>0&&65039==e[a-1]&&a--),o.V&&(r=function(e,t){let r=L.from(e);return 2==t.V&&r.splice(1,1),r}(i,o),t&&t.push(...e.slice(a).reverse()),e.length=a)}return r}(e);if(o)n.length&&(r.push(t(n)),n=[]),r.push(o);else{let t=e.pop();if(R.has(t))n.push(t);else{let e=A.get(t);if(e)n.push(...e);else if(!P.has(t))throw W(t)}}}return n.length&&r.push(t(n)),r}(n,x),i=r.length;if(i){let n=r[0],a=i>1||n.is_emoji;if(!a&&n.every(e=>e<128))t=n,q(t),function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error("invalid label extension")}(t),e="ASCII";else if(a&&(o.emoji=!0,n=r.flatMap(e=>e.is_emoji?[]:e)),t=r.flatMap(e=>e.is_emoji?e.filter(e=>65039!=e):e),q(t),n.length){if(j.has(t[0]))throw V("leading combining mark");for(let e=1;e<i;e++){let t=r[e];
2844if(!t.is_emoji&&j.has(t[0]))throw V(`emoji + combining mark: "${f(r[e-1])} + ${U([t[0]])}"`)}!function(e){let t=e[0],r=u.get(t);if(r)throw V(`leading ${r}`);let n=e.length,o=-1;for(let i=1;i<n;i++){t=e[i];let n=u.get(t);if(n){if(o==i)throw V(`${r} + ${n}`);o=i+1,r=n}}if(o==n)throw V(`trailing ${r}`)}(t);let o=[...new Set(n)],[a]=function(e){let t=B;for(let r of e){let e=t.filter(e=>e.V.has(r));if(!e.length){if(t===B)throw W(r);throw K(t[0],r)}if(t=e,1==e.length)break}return t}(o);(function(e,t){let{V:r,M:n}=e;for(let n of t)if(!r.has(n))throw K(e,n);if(n){let e=E(t).map(m);for(let t=1,r=e.length;t<r;t++)if(k.has(e[t])){let n=t+1;for(let o;n<r&&k.has(o=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==o)throw Error(`non-spacing marks: repeated ${z(o)}`);if(n-t>4)throw Error(`non-spacing marks: too many ${H(U(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(a,n),function(e,t){let r;let n=[];for(let e of t){let t=D.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):[...n]).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>t.V.has(e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(a,o),e=a.N}else e="Emoji"}else throw Error("empty label");o.type=e}catch(e){o.error=e}return o.output=t,o})).map(({input:e,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==t.length?n:`Invalid label ${H(U(e))}: ${n}`)}return f(n)}).join(".")}function W(e){return Error(`disallowed character: ${z(e)}`)}function K(e,t){let r=z(t),n=B.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function V(e){return Error(`illegal placement: ${e}`)}},6264:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});let n=()=>"@ensdomains/[email protected]";class o extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{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:"EnsJsError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:n()});let r=t.cause instanceof o?t.cause.details:t.cause?.message??t.details;this.message=[e||"An error occurred","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Details: ${r}`,""]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.metaMessages=t.metaMessages,this.shortMessage=e}}},27499:function(e,t,r){"use strict";r.d(t,{FF:function(){return C},S5:function(){return h},Wd:function(){return g},bytesToNumberBE:function(){return u},ci:function(){return s},dQ:function(){return v},eV:function(){return m},hexToBytes:function(){return l},iY:function(){return b},n$:function(){return E},ql:function(){return p},tL:function(){return f},ty:function(){return d}}),BigInt(0);let n=BigInt(1),o=BigInt(2),i=e=>e instanceof Uint8Array,a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e){if(!i(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=a[e[r]];return t}function c(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function l(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(e.length%2)throw Error("hex string is invalid: unpadded "+e.length);let t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){let n=2*r,o=e.slice(n,n+2),i=Number.parseInt(o,16);if(Number.isNaN(i)||i<0)throw Error("invalid byte sequence");t[r]=i}return t}function u(e){return c(s(e))}function d(e){if(!i(e))throw Error("Uint8Array expected");return c(s(Uint8Array.from(e).reverse()))}let f=(e,t)=>l(e.toString(16).padStart(2*t,"0")),h=(e,t)=>f(e,t).reverse();function p(e,t,r){let n;if("string"==typeof t)try{n=l(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(i(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let o=n.length;if("number"==typeof r&&o!==r)throw Error(`${e} expected ${r} bytes, got ${o}`);return n}function m(...e){let t=new Uint8Array(e.reduce((e,t)=>
2844e+t.length,0)),r=0;return e.forEach(e=>{if(!i(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}function g(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function b(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}let v=e=>(o<<BigInt(e-1))-n,y=e=>new Uint8Array(e),w=e=>Uint8Array.from(e);function E(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=y(e),o=y(e),i=0,a=()=>{n.fill(1),o.fill(0),i=0},s=(...e)=>r(o,n,...e),c=(e=y())=>{o=s(w([0]),e),n=s(),0!==e.length&&(o=s(w([1]),e),n=s())},l=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){n=s();let t=n.slice();r.push(t),e+=n.length}return m(...r)};return(e,t)=>{let r;for(a(),c(e);!(r=t(l()));)c();return a(),r}}let x={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function C(e,t,r={}){let n=(t,r,n)=>{let o=x[r];if("function"!=typeof o)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!n||void 0!==i)&&!o(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},29870:function(e,t,r){"use strict";r.d(t,{xZ:function(){return rH},UG:function(){return rG},pj:function(){return tq},Bg:function(){return tQ},VQ:function(){return tZ},Dt:function(){return eC},A7:function(){return rE},gn:function(){return eA},tq:function(){return eP}});var n,o,i,a,s,c,l,u='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',d={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${u}`,system:u},f={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"}},h={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},p=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:r="none"})=>({blurs:{modalOverlay:h[r].modalOverlay},fonts:{body:d[t]},radii:{actionButton:f[e].actionButton,connectButton:f[e].connectButton,menuButton:f[e].connectButton,modal:f[e].modal,modalMobile:f[e].modalMobile}}),m={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"}},g=m.blue,b=({accentColor:e=g.accentColor,accentColorForeground:t=g.accentColorForeground,...r}={})=>({...p(r),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"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)",menuItemBackgroun
2844d:"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)"}});b.accentColors=m;var v=r(67294),y=function(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e};function w(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");return y(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 r={};for(var n in t.responsiveArray)null!=e[n]&&(r[t.responsiveArray[n]]=e[n]);return r}return e},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var C=e=>function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Object.assign({},...r.map(e=>e.styles)),i=Object.keys(o),a=i.filter(e=>"mappings"in o[e]);return Object.assign(t=>{var r=[],n={},i=x({},t),s=!1;for(var c of a){var l=t[c];if(null!=l)for(var u of(s=!0,o[c].mappings))n[u]=l,null==i[u]&&delete i[u]}var d=s?x(x({},n),i):t;for(var f in d){var h=d[f],p=o[f];try{if(p.mappings)continue;if("string"==typeof h||"number"==typeof h)r.push(p.values[h].defaultClass);else if(Array.isArray(h))for(var m=0;m<h.length;m++){var g=h[m];if(null!=g){var b=p.responsiveArray[m];r.push(p.values[g].conditions[b])}}else for(var v in h){var y=h[v];null!=y&&r.push(p.values[y].conditions[v])}}catch(e){throw e}}return e(r.join(" "))},{properties:new Set(i)})},A=e=>e,P=r(69077);function j(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n}var k=r(31407),O=r(73935),S=function(){return(S=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var I="right-scroll-bar-position",T="width-before-scroll-bar",B=function(){return(B=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var _=(void 0===n&&(n={}),void 0===o&&(o=function(e){return e}),i=[],a=!1,(s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,a);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){a=!0;var t=[];if(i.length){var r=i;i=[],r.forEach(e),t=i}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=B({async:!0,ssr:!1},n),s),D=function(){},$=v.forwardRef(function(e,t){var r,n,o,i=v.useRef(null),a=v.useState({onScrollCapture:D,onWheelCapture:D,onTouchMoveCapture:D}),s=a[0],c=a[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,p=e.shards,m=e.sideCar,g=e.noIsolation,b=e.inert,y=e.allowPinchZoom,w=e.as,E=void 0===w?"div":w,x=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=(r=[i,t],n=function(e){return r.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(o=(0,v.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,o.facade),A=S(S({},x),s);return v.createElement(v.Fragment,null,h&&v.createElement(m,{sideCar:_,removeScrollBar:f,shards:p,noIsolation:g,inert:b,setCallbacks:c,allowPinchZoom:!!y,lockRef:i}),l?v.cloneElement(v.Children.only(u),S(S({},A),{ref:C})):v.createElement(E,S({},A,{className:d,ref:C}),u))});$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},$.classNames={fullWidth:T,zeroRight:I};var M=function(e){var t=e.sideCar,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return v.createElement(n,B({},r))};
2844M.isSideCarExport=!0;var R=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},N=function(){var e=R();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},F=function(){var e=N();return function(t){return e(t.styles,t.dynamic),null}},L={left:0,top:0,right:0,gap:0},U=function(e){return parseInt(e||"",10)||0},z=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[U(r),U(n),U(o)]},H=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return L;var t=z(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},q=F(),G=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(I," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(T," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(I," .").concat(I," {\n right: 0 ").concat(n,";\n }\n \n .").concat(T," .").concat(T," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},W=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n,i=v.useMemo(function(){return H(o)},[o]);return v.createElement(q,{styles:G(i,!t,o,r?"":"!important")})},K=!1;if("undefined"!=typeof window)try{var V=Object.defineProperty({},"passive",{get:function(){return K=!0,!0}});window.addEventListener("test",V,V),window.removeEventListener("test",V,V)}catch(e){K=!1}var Q=!!K&&{passive:!1},Z=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},Y=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},J=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),X(e,r)){var n=ee(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},X=function(e,t){return"v"===e?Z(t):Y(t)},ee=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},et=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*n,c=r.target,l=t.contains(c),u=!1,d=s>0,f=0,h=0;do{var p=ee(e,c),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&X(e,c)&&(f+=g,h+=m),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return d&&(o&&0===f||!o&&s>f)?u=!0:!d&&(o&&0===h||!o&&-s>h)&&(u=!0),u},er=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},en=function(e){return[e.deltaX,e.deltaY]},eo=function(e){return e&&"current"in e?e.current:e},ei=0,ea=[],es=(_.useMedium(function(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),o=v.useState(ei++)[0],i=v.useState(function(){return F()})[0],a=v.useRef(e);v.useEffect(function(){a.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}
2844)([e.lockRef.current],(e.shards||[]).map(eo),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=er(e),s=r.current,c="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=J(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=J(d,u)),!f)return!1;if(!n.current&&"changedTouches"in e&&(c||l)&&(n.current=o),!o)return!0;var h=n.current||o;return et(h,t,e,"h"===h?c:l,!0)},[]),c=v.useCallback(function(e){if(ea.length&&ea[ea.length-1]===i){var r="deltaY"in e?en(e):er(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.preventDefault();return}if(!n){var o=(a.current.shards||[]).map(eo).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),l=v.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=v.useCallback(function(e){r.current=er(e),n.current=void 0},[]),d=v.useCallback(function(t){l(t.type,en(t),t.target,s(t,e.lockRef.current))},[]),f=v.useCallback(function(t){l(t.type,er(t),t.target,s(t,e.lockRef.current))},[]);v.useEffect(function(){return ea.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Q),document.addEventListener("touchmove",c,Q),document.addEventListener("touchstart",u,Q),function(){ea=ea.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Q),document.removeEventListener("touchmove",c,Q),document.removeEventListener("touchstart",u,Q)}},[]);var h=e.removeScrollBar,p=e.inert;return v.createElement(v.Fragment,null,p?v.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?v.createElement(W,{gapMode:"margin"}):null)}),M),ec=v.forwardRef(function(e,t){return v.createElement($,S({},e,{ref:t,sideCar:es}))});function el(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function eu(e,t){var r={};if("object"==typeof t)!function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=t.constructor();for(var i in t){var a=t[i],s=[...n,i];"string"==typeof a||"number"==typeof a||null==a?o[i]=r(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,'"')):o[i]=e(a,r,s)}return o}(t,(t,n)=>{r[el(function(e,t){var r=e;for(var n of t){if(!(n in r))throw Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}(e,n))]=String(t)});else for(var n in e)r[el(n)]=e[n];return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map(e=>"".concat(e,":").concat(this[e])).join(";")},writable:!1}),r}ec.classNames=$.classNames;var ed=r(42455),ef=r(20378),eh=function(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");var r=w(e);return y(function(e,n){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return n(e,t.defaultCondition)}var o=Array.isArray(e)?r(e):e,i={};for(var a in o)null!=o[a]&&(i[a]=n(o[a],a));return i},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),ep=w({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),em=function(){return C(A)(...arguments)}({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9c",hover:"ju367v9d",active:"ju367v9e"},defaultClass:"ju367v9c"},accentColorForeground:{conditions:{base:"ju367v9f",hover:"ju367v9g",active:"ju367v9h"},defaultClass:"ju367v9f"},actionButtonBorder:{conditions:{base:"ju367v9i",hover:"ju367v9j",active:"ju367v9k"},defaultClass:"ju367v9i"},actionButtonBorderMobile:{conditions:{base:"ju367v9l",hover:"ju367v9m",active:"ju367v9n"},defaultClass:"ju367v9l"}
2844,actionButtonSecondaryBackground:{conditions:{base:"ju367v9o",hover:"ju367v9p",active:"ju367v9q"},defaultClass:"ju367v9o"},closeButton:{conditions:{base:"ju367v9r",hover:"ju367v9s",active:"ju367v9t"},defaultClass:"ju367v9r"},closeButtonBackground:{conditions:{base:"ju367v9u",hover:"ju367v9v",active:"ju367v9w"},defaultClass:"ju367v9u"},connectButtonBackground:{conditions:{base:"ju367v9x",hover:"ju367v9y",active:"ju367v9z"},defaultClass:"ju367v9x"},connectButtonBackgroundError:{conditions:{base:"ju367va0",hover:"ju367va1",active:"ju367va2"},defaultClass:"ju367va0"},connectButtonInnerBackground:{conditions:{base:"ju367va3",hover:"ju367va4",active:"ju367va5"},defaultClass:"ju367va3"},connectButtonText:{conditions:{base:"ju367va6",hover:"ju367va7",active:"ju367va8"},defaultClass:"ju367va6"},connectButtonTextError:{conditions:{base:"ju367va9",hover:"ju367vaa",active:"ju367vab"},defaultClass:"ju367va9"},connectionIndicator:{conditions:{base:"ju367vac",hover:"ju367vad",active:"ju367vae"},defaultClass:"ju367vac"},downloadBottomCardBackground:{conditions:{base:"ju367vaf",hover:"ju367vag",active:"ju367vah"},defaultClass:"ju367vaf"},downloadTopCardBackground:{conditions:{base:"ju367vai",hover:"ju367vaj",active:"ju367vak"},defaultClass:"ju367vai"},error:{conditions:{base:"ju367val",hover:"ju367vam",active:"ju367van"},defaultClass:"ju367val"},generalBorder:{conditions:{base:"ju367vao",hover:"ju367vap",active:"ju367vaq"},defaultClass:"ju367vao"},generalBorderDim:{conditions:{base:"ju367var",hover:"ju367vas",active:"ju367vat"},defaultClass:"ju367var"}
2844,menuItemBackground:{conditions:{base:"ju367vau",hover:"ju367vav",active:"ju367vaw"},defaultClass:"ju367vau"},modalBackdrop:{conditions:{base:"ju367vax",hover:"ju367vay",active:"ju367vaz"},defaultClass:"ju367vax"},modalBackground:{conditions:{base:"ju367vb0",hover:"ju367vb1",active:"ju367vb2"},defaultClass:"ju367vb0"},modalBorder:{conditions:{base:"ju367vb3",hover:"ju367vb4",active:"ju367vb5"},defaultClass:"ju367vb3"},modalText:{conditions:{base:"ju367vb6",hover:"ju367vb7",active:"ju367vb8"},defaultClass:"ju367vb6"},modalTextDim:{conditions:{base:"ju367vb9",hover:"ju367vba",active:"ju367vbb"},defaultClass:"ju367vb9"},modalTextSecondary:{conditions:{base:"ju367vbc",hover:"ju367vbd",active:"ju367vbe"},defaultClass:"ju367vbc"},profileAction:{conditions:{base:"ju367vbf",hover:"ju367vbg",active:"ju367vbh"},defaultClass:"ju367vbf"},profileActionHover:{conditions:{base:"ju367vbi",hover:"ju367vbj",active:"ju367vbk"},defaultClass:"ju367vbi"},profileForeground:{conditions:{base:"ju367vbl",hover:"ju367vbm",active:"ju367vbn"},defaultClass:"ju367vbl"},selectedOptionBorder:{conditions:{base:"ju367vbo",hover:"ju367vbp",active:"ju367vbq"},defaultClass:"ju367vbo"},standby:{conditions:{base:"ju367vbr",hover:"ju367vbs",active:"ju367vbt"},defaultClass:"ju367vbr"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vbu",hover:"ju367vbv",active:"ju367vbw"},defaultClass:"ju367vbu"},accentColorForeground:{conditions:{base:"ju367vbx",hover:"ju367vby",active:"ju367vbz"},defaultClass:"ju367vbx"},actionButtonBorder:{conditions:{base:"ju367vc0",hover:"ju367vc1",active:"ju367vc2"},defaultClass:"ju367vc0"},actionButtonBorderMobile:{conditions:{base:"ju367vc3",hover:"ju367vc4",active:"ju367vc5"},defaultClass:"ju367vc3"},actionButtonSecondaryBackground:{conditions:{base:"ju367vc6",hover:"ju367vc7",active:"ju367vc8"},defaultClass:"ju367vc6"},closeButton:{conditions:{base:"ju367vc9",hover:"ju367vca",active:"ju367vcb"},defaultClass:"ju367vc9"},closeButtonBackground:{conditions:{base:"ju367vcc",hover:"ju367vcd",active:"ju367vce"},defaultClass:"ju367vcc"},connectButtonBackground:{conditions:{base:"ju367vcf",hover:"ju367vcg",active:"ju367vch"},defaultClass:"ju367vcf"},connectButtonBackgroundError:{conditions:{base:"ju367vci",hover:"ju367vcj",active:"ju367vck"},defaultClass:"ju367vci"},connectButtonInnerBackground:{conditions:{base:"ju367vcl",hover:"ju367vcm",active:"ju367vcn"},defaultClass:"ju367vcl"},connectButtonText:{conditions:{base:"ju367vco",hover:"ju367vcp",active:"ju367vcq"},defaultClass:"ju367vco"},connectButtonTextError:{conditions:{base:"ju367vcr",hover:"ju367vcs",active:"ju367vct"},defaultClass:"ju367vcr"},connectionIndicator:{conditions:{base:"ju367vcu",hover:"ju367vcv",active:"ju367vcw"},defaultClass:"ju367vcu"},downloadBottomCardBackground:{conditions:{base:"ju367vcx",hover:"ju367vcy",active:"ju367vcz"},defaultClass:"ju367vcx"},downloadTopCardBackground:{conditions:{base:"ju367vd0",hover:"ju367vd1",active:"ju367vd2"},defaultClass:"ju367vd0"},error:{conditions:{base:"ju367vd3",hover:"ju367vd4",active:"ju367vd5"},defaultClass:"ju367vd3"},generalBorder:{conditions:{base:"ju367vd6",hover:"ju367vd7",active:"ju367vd8"},defaultClass:"ju367vd6"},generalBorderDim:{conditions:{base:"ju367vd9",hover:"ju367vda",active:"ju367vdb"},defaultClass:"ju367vd9"}
2844,menuItemBackground:{conditions:{base:"ju367vdc",hover:"ju367vdd",active:"ju367vde"},defaultClass:"ju367vdc"},modalBackdrop:{conditions:{base:"ju367vdf",hover:"ju367vdg",active:"ju367vdh"},defaultClass:"ju367vdf"},modalBackground:{conditions:{base:"ju367vdi",hover:"ju367vdj",active:"ju367vdk"},defaultClass:"ju367vdi"},modalBorder:{conditions:{base:"ju367vdl",hover:"ju367vdm",active:"ju367vdn"},defaultClass:"ju367vdl"},modalText:{conditions:{base:"ju367vdo",hover:"ju367vdp",active:"ju367vdq"},defaultClass:"ju367vdo"},modalTextDim:{conditions:{base:"ju367vdr",hover:"ju367vds",active:"ju367vdt"},defaultClass:"ju367vdr"},modalTextSecondary:{conditions:{base:"ju367vdu",hover:"ju367vdv",active:"ju367vdw"},defaultClass:"ju367vdu"},profileAction:{conditions:{base:"ju367vdx",hover:"ju367vdy",active:"ju367vdz"},defaultClass:"ju367vdx"},profileActionHover:{conditions:{base:"ju367ve0",hover:"ju367ve1",active:"ju367ve2"},defaultClass:"ju367ve0"},profileForeground:{conditions:{base:"ju367ve3",hover:"ju367ve4",active:"ju367ve5"},defaultClass:"ju367ve3"},selectedOptionBorder:{conditions:{base:"ju367ve6",hover:"ju367ve7",active:"ju367ve8"},defaultClass:"ju367ve6"},standby:{conditions:{base:"ju367ve9",hover:"ju367vea",active:"ju367veb"},defaultClass:"ju367ve9"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367vec",hover:"ju367ved",active:"ju367vee"},defaultClass:"ju367vec"},dialog:{conditions:{base:"ju367vef",hover:"ju367veg",active:"ju367veh"},defaultClass:"ju367vef"},profileDetailsAction:{conditions:{base:"ju367vei",hover:"ju367vej",active:"ju367vek"},defaultClass:"ju367vei"},selectedOption:{conditions:{base:"ju367vel",hover:"ju367vem",active:"ju367ven"},defaultClass:"ju367vel"},selectedWallet:{conditions:{base:"ju367veo",hover:"ju367vep",active:"ju367veq"},defaultClass:"ju367veo"},walletLogo:{conditions:{base:"ju367ver",hover:"ju367ves",active:"ju367vet"},defaultClass:"ju367ver"}}},color:{values:{accentColor:{conditions:{base:"ju367veu",hover:"ju367vev",active:"ju367vew"},defaultClass:"ju367veu"},accentColorForeground:{conditions:{base:"ju367vex",hover:"ju367vey",active:"ju367vez"},defaultClass:"ju367vex"},actionButtonBorder:{conditions:{base:"ju367vf0",hover:"ju367vf1",active:"ju367vf2"},defaultClass:"ju367vf0"},actionButtonBorderMobile:{conditions:{base:"ju367vf3",hover:"ju367vf4",active:"ju367vf5"},defaultClass:"ju367vf3"},actionButtonSecondaryBackground:{conditions:{base:"ju367vf6",hover:"ju367vf7",active:"ju367vf8"},defaultClass:"ju367vf6"},closeButton:{conditions:{base:"ju367vf9",hover:"ju367vfa",active:"ju367vfb"},defaultClass:"ju367vf9"},closeButtonBackground:{conditions:{base:"ju367vfc",hover:"ju367vfd",active:"ju367vfe"},defaultClass:"ju367vfc"},connectButtonBackground:{conditions:{base:"ju367vff",hover:"ju367vfg",active:"ju367vfh"},defaultClass:"ju367vff"},connectButtonBackgroundError:{conditions:{base:"ju367vfi",hover:"ju367vfj",active:"ju367vfk"},defaultClass:"ju367vfi"},connectButtonInnerBackground:{conditions:{base:"ju367vfl",hover:"ju367vfm",active:"ju367vfn"},defaultClass:"ju367vfl"},connectButtonText:{conditions:{base:"ju367vfo",hover:"ju367vfp",active:"ju367vfq"},defaultClass:"ju367vfo"},connectButtonTextError:{conditions:{base:"ju367vfr",hover:"ju367vfs",active:"ju367vft"},defaultClass:"ju367vfr"},connectionIndicator:{conditions:{base:"ju367vfu",hover:"ju367vfv",active:"ju367vfw"},defaultClass:"ju367vfu"},downloadBottomCardBackground:{conditions:{base:"ju367vfx",hover:"ju367vfy",active:"ju367vfz"},defaultClass:"ju367vfx"},downloadTopCardBackground:{conditions:{base:"ju367vg0",hover:"ju367vg1",active:"ju367vg2"},defaultClass:"ju367vg0"},error:{conditions:{base:"ju367vg3",hover:"ju367vg4",active:"ju367vg5"},defaultClass:"ju367vg3"},generalBorder:{conditions:{base:"ju367vg6",hover:"ju367vg7",active:"ju367vg8"},defaultClass:"ju367vg6"},generalBorderDim:{conditions:{base:"ju367vg9",hover:"ju367vga",active:"ju367vgb"},defaultClass:"ju367vg9"}
2844,menuItemBackground:{conditions:{base:"ju367vgc",hover:"ju367vgd",active:"ju367vge"},defaultClass:"ju367vgc"},modalBackdrop:{conditions:{base:"ju367vgf",hover:"ju367vgg",active:"ju367vgh"},defaultClass:"ju367vgf"},modalBackground:{conditions:{base:"ju367vgi",hover:"ju367vgj",active:"ju367vgk"},defaultClass:"ju367vgi"},modalBorder:{conditions:{base:"ju367vgl",hover:"ju367vgm",active:"ju367vgn"},defaultClass:"ju367vgl"},modalText:{conditions:{base:"ju367vgo",hover:"ju367vgp",active:"ju367vgq"},defaultClass:"ju367vgo"},modalTextDim:{conditions:{base:"ju367vgr",hover:"ju367vgs",active:"ju367vgt"},defaultClass:"ju367vgr"},modalTextSecondary:{conditions:{base:"ju367vgu",hover:"ju367vgv",active:"ju367vgw"},defaultClass:"ju367vgu"},profileAction:{conditions:{base:"ju367vgx",hover:"ju367vgy",active:"ju367vgz"},defaultClass:"ju367vgx"},profileActionHover:{conditions:{base:"ju367vh0",hover:"ju367vh1",active:"ju367vh2"},defaultClass:"ju367vh0"},profileForeground:{conditions:{base:"ju367vh3",hover:"ju367vh4",active:"ju367vh5"},defaultClass:"ju367vh3"},selectedOptionBorder:{conditions:{base:"ju367vh6",hover:"ju367vh7",active:"ju367vh8"},defaultClass:"ju367vh6"},standby:{conditions:{base:"ju367vh9",hover:"ju367vha",active:"ju367vhb"},defaultClass:"ju367vh9"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"}}},flexDirection:{values:{row:{defaultClass:"ju367vz"},column:{defaultClass:"ju367v10"}}},fontFamily:{values:{body:{defaultClass:"ju367v11"}}},fontSize:{values:{12:{defaultClass:"ju367v12"},13:{defaultClass:"ju367v13"},14:{defaultClass:"ju367v14"},16:{defaultClass:"ju367v15"},18:{defaultClass:"ju367v16"},20:{defaultClass:"ju367v17"},23:{defaultClass:"ju367v18"}}},fontWeight:{values:{regular:{defaultClass:"ju367v19"},medium:{defaultClass:"ju367v1a"},semibold:{defaultClass:"ju367v1b"},bold:{defaultClass:"ju367v1c"},heavy:{defaultClass:"ju367v1d"}}},gap:{values:{0:{defaultClass:"ju367v1e"},1:{defaultClass:"ju367v1f"},2:{defaultClass:"ju367v1g"},3:{defaultClass:"ju367v1h"},4:{defaultClass:"ju367v1i"},5:{defaultClass:"ju367v1j"},6:{defaultClass:"ju367v1k"},8:{defaultClass:"ju367v1l"},10:{defaultClass:"ju367v1m"},12:{defaultClass:"ju367v1n"},14:{defaultClass:"ju367v1o"},16:{defaultClass:"ju367v1p"},18:{defaultClass:"ju367v1q"},20:{defaultClass:"ju367v1r"},24:{defaultClass:"ju367v1s"},28:{defaultClass:"ju367v1t"},32:{defaultClass:"ju367v1u"},36:{defaultClass:"ju367v1v"},44:{defaultClass:"ju367v1w"},64:{defaultClass:"ju367v1x"},"-1":{defaultClass:"ju367v1y"}}},height:{values:{1:{defaultClass:"ju367v1z"},2:{defaultClass:"ju367v20"},4:{defaultClass:"ju367v21"},8:{defaultClass:"ju367v22"},12:{defaultClass:"ju367v23"},20:{defaultClass:"ju367v24"},24:{defaultClass:"ju367v25"},28:{defaultClass:"ju367v26"},30:{defaultClass:"ju367v27"},32:{defaultClass:"ju367v28"},34:{defaultClass:"ju367v29"},36:{defaultClass:"ju367v2a"},40:{defaultClass:"ju367v2b"},44:{defaultClass:"ju367v2c"},48:{defaultClass:"ju367v2d"},54:{defaultClass:"ju367v2e"},60:{defaultClass:"ju367v2f"},200:{defaultClass:"ju367v2g"},full:{defaultClass:"ju367v2h"},max:{defaultClass:"ju367v2i"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2j"},"flex-end":{defaultClass:"ju367v2k"},center:{defaultClass:"ju367v2l"},"space-between":{defaultClass:"ju367v2m"},"space-around":{defaultClass:"ju367v2n"}}},textAlign:{values:{left:{defaultClass:"ju367v2o"},center:{defaultClass:"ju367v2p"},inherit:{defaultClass:"ju367v2q"}}},marginBottom:{values:{0:{defaultClass:"ju367v2r"}
2844,1:{defaultClass:"ju367v2s"},2:{defaultClass:"ju367v2t"},3:{defaultClass:"ju367v2u"},4:{defaultClass:"ju367v2v"},5:{defaultClass:"ju367v2w"},6:{defaultClass:"ju367v2x"},8:{defaultClass:"ju367v2y"},10:{defaultClass:"ju367v2z"},12:{defaultClass:"ju367v30"},14:{defaultClass:"ju367v31"},16:{defaultClass:"ju367v32"},18:{defaultClass:"ju367v33"},20:{defaultClass:"ju367v34"},24:{defaultClass:"ju367v35"},28:{defaultClass:"ju367v36"},32:{defaultClass:"ju367v37"},36:{defaultClass:"ju367v38"},44:{defaultClass:"ju367v39"},64:{defaultClass:"ju367v3a"},"-1":{defaultClass:"ju367v3b"}}},marginLeft:{values:{0:{defaultClass:"ju367v3c"},1:{defaultClass:"ju367v3d"},2:{defaultClass:"ju367v3e"},3:{defaultClass:"ju367v3f"},4:{defaultClass:"ju367v3g"},5:{defaultClass:"ju367v3h"},6:{defaultClass:"ju367v3i"},8:{defaultClass:"ju367v3j"},10:{defaultClass:"ju367v3k"},12:{defaultClass:"ju367v3l"},14:{defaultClass:"ju367v3m"},16:{defaultClass:"ju367v3n"},18:{defaultClass:"ju367v3o"},20:{defaultClass:"ju367v3p"},24:{defaultClass:"ju367v3q"},28:{defaultClass:"ju367v3r"},32:{defaultClass:"ju367v3s"},36:{defaultClass:"ju367v3t"},44:{defaultClass:"ju367v3u"},64:{defaultClass:"ju367v3v"},"-1":{defaultClass:"ju367v3w"}}},marginRight:{values:{0:{defaultClass:"ju367v3x"},1:{defaultClass:"ju367v3y"},2:{defaultClass:"ju367v3z"},3:{defaultClass:"ju367v40"},4:{defaultClass:"ju367v41"},5:{defaultClass:"ju367v42"},6:{defaultClass:"ju367v43"},8:{defaultClass:"ju367v44"},10:{defaultClass:"ju367v45"},12:{defaultClass:"ju367v46"},14:{defaultClass:"ju367v47"},16:{defaultClass:"ju367v48"},18:{defaultClass:"ju367v49"},20:{defaultClass:"ju367v4a"},24:{defaultClass:"ju367v4b"},28:{defaultClass:"ju367v4c"},32:{defaultClass:"ju367v4d"},36:{defaultClass:"ju367v4e"},44:{defaultClass:"ju367v4f"},64:{defaultClass:"ju367v4g"},"-1":{defaultClass:"ju367v4h"}}},marginTop:{values:{0:{defaultClass:"ju367v4i"},1:{defaultClass:"ju367v4j"},2:{defaultClass:"ju367v4k"},3:{defaultClass:"ju367v4l"},4:{defaultClass:"ju367v4m"},5:{defaultClass:"ju367v4n"},6:{defaultClass:"ju367v4o"},8:{defaultClass:"ju367v4p"},10:{defaultClass:"ju367v4q"},12:{defaultClass:"ju367v4r"},14:{defaultClass:"ju367v4s"},16:{defaultClass:"ju367v4t"},18:{defaultClass:"ju367v4u"},20:{defaultClass:"ju367v4v"},24:{defaultClass:"ju367v4w"},28:{defaultClass:"ju367v4x"},32:{defaultClass:"ju367v4y"},36:{defaultClass:"ju367v4z"},44:{defaultClass:"ju367v50"},64:{defaultClass:"ju367v51"},"-1":{defaultClass:"ju367v52"}}},maxWidth:{values:{1:{defaultClass:"ju367v53"},2:{defaultClass:"ju367v54"},4:{defaultClass:"ju367v55"},8:{defaultClass:"ju367v56"},12:{defaultClass:"ju367v57"},20:{defaultClass:"ju367v58"},24:{defaultClass:"ju367v59"},28:{defaultClass:"ju367v5a"},30:{defaultClass:"ju367v5b"},32:{defaultClass:"ju367v5c"},34:{defaultClass:"ju367v5d"},36:{defaultClass:"ju367v5e"},40:{defaultClass:"ju367v5f"},44:{defaultClass:"ju367v5g"},48:{defaultClass:"ju367v5h"},54:{defaultClass:"ju367v5i"},60:{defaultClass:"ju367v5j"},200:{defaultClass:"ju367v5k"},full:{defaultClass:"ju367v5l"},max:{defaultClass:"ju367v5m"}}},minWidth:{values:{1:{defaultClass:"ju367v5n"},2:{defaultClass:"ju367v5o"},4:{defaultClass:"ju367v5p"},8:{defaultClass:"ju367v5q"},12:{defaultClass:"ju367v5r"},20:{defaultClass:"ju367v5s"},24:{defaultClass:"ju367v5t"},28:{defaultClass:"ju367v5u"},30:{defaultClass:"ju367v5v"},32:{defaultClass:"ju367v5w"},34:{defaultClass:"ju367v5x"},36:{defaultClass:"ju367v5y"},40:{defaultClass:"ju367v5z"},44:{defaultClass:"ju367v60"},48:{defaultClass:"ju367v61"},54:{defaultClass:"ju367v62"},60:{defaultClass:"ju367v63"},200:{defaultClass:"ju367v64"},full:{defaultClass:"ju367v65"},max:{defaultClass:"ju367v66"}}},overflow:{values:{hidden:{defaultClass:"ju367v67"}}},paddingBottom:{values:{0:{defaultClass:"ju367v68"},1:{defaultClass:"ju367v69"},2:{defaultClass:"ju367v6a"},3:{defaultClass:"ju367v6b"},4:{defaultClass:"ju367v6c"},5:{defaultClass:"ju367v6d"},6:{defaultClass:"ju367v6e"},8:{defaultClass:"ju367v6f"},10:{defaultClass:"ju367v6g"},12:{defaultClass:"ju367v6h"},14:{defaultClass:"ju367v6i"},16:{defaultClass:"ju367v6j"},18:{defaultClass:"ju367v6k"},20:{defaultClass:"ju367v6l"},24:{defaultClass:"ju367v6m"},28:{defaultClass:"ju367v6n"},32:{defaultClass:"ju367v6o"},36:{defaultClass:"ju367v6p"},44:{defaultClass:"ju367v6q"},64:{defaultClass:"ju367v6r"},"-1":{defaultClass:"ju367v6s"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6t"},1:{defaultClass:"ju367v6u"},2:{defaultClass:"ju367v6v"},3:{defaultClass:"ju367v6w"},4:{defaultClass:"ju367v6x"},5:{defaultClass:"ju367v6y"},6:{defaultClass:"ju367v6z"},8:{defaultClass:"ju367v70"},10:{defaultClass:"ju367v71"},12:{defaultClass:"ju367v72"},14:{defaultClass:"ju367v73"},16:{defaultClass:"ju367v74"},18:{defaultClass:"ju367v75"},20:{defaultClass:"ju367v76"},24:{defaultClass:"ju367v77"},28:{defaultClass:"ju367v78"},32:{defaultClass:"ju367v79"},36:{defaultClass:"ju367v7a"},44:{defaultClass:"ju367v7b"},64:{defaultClass:"ju367v7c"},"-1":{defaultClass:"ju367v7d"}}},paddingRight:{values:{0:{defaultClass:"ju367v7e"},1:{defaultClass:"ju367v7f"},2:{defaultClass:"ju367v7g"},3:{defaultClass:"ju367v7h"},4:{defaultClass:"ju367v7i"},5:{defaultClass:"ju367v7j"},6:{defaultClass:"ju367v7k"},8:{defaultClass:"ju367v7l"},10:{defaultClass:"ju367v7m"},12:{defaultClass:"ju367v7n"},14:{defaultClass:"ju367v7o"},16:{defaultClass:"ju367v7p"},18:{defaultClass:"ju367v7q"},20:{defaultClass:"ju367v7r"},24:{defaultClass:"ju367v7s"},28:{defaultClass:"ju367v7t"},32:{defaultClass:"ju367v7u"},36:{defaultClass:"ju367v7v"},44:{defaultClass:"ju367v7w"},64:{defaultClass:"ju367v7x"},"-1":{defaultClass:"ju367v7y"}}},paddingTop:{values:{0:{defaultClass:"ju367v7z"},1:{defaultClass:"ju367v80"},2:{defaultClass:"ju367v81"},3:{defaultClass:"ju367v82"}
2844,4:{defaultClass:"ju367v83"},5:{defaultClass:"ju367v84"},6:{defaultClass:"ju367v85"},8:{defaultClass:"ju367v86"},10:{defaultClass:"ju367v87"},12:{defaultClass:"ju367v88"},14:{defaultClass:"ju367v89"},16:{defaultClass:"ju367v8a"},18:{defaultClass:"ju367v8b"},20:{defaultClass:"ju367v8c"},24:{defaultClass:"ju367v8d"},28:{defaultClass:"ju367v8e"},32:{defaultClass:"ju367v8f"},36:{defaultClass:"ju367v8g"},44:{defaultClass:"ju367v8h"},64:{defaultClass:"ju367v8i"},"-1":{defaultClass:"ju367v8j"}}},position:{values:{absolute:{defaultClass:"ju367v8k"},fixed:{defaultClass:"ju367v8l"},relative:{defaultClass:"ju367v8m"}}},right:{values:{0:{defaultClass:"ju367v8n"}}},transition:{values:{default:{defaultClass:"ju367v8o"},transform:{defaultClass:"ju367v8p"}}},userSelect:{values:{none:{defaultClass:"ju367v8q"}}},width:{values:{1:{defaultClass:"ju367v8r"},2:{defaultClass:"ju367v8s"},4:{defaultClass:"ju367v8t"},8:{defaultClass:"ju367v8u"},12:{defaultClass:"ju367v8v"},20:{defaultClass:"ju367v8w"},24:{defaultClass:"ju367v8x"},28:{defaultClass:"ju367v8y"},30:{defaultClass:"ju367v8z"},32:{defaultClass:"ju367v90"},34:{defaultClass:"ju367v91"},36:{defaultClass:"ju367v92"},40:{defaultClass:"ju367v93"},44:{defaultClass:"ju367v94"},48:{defaultClass:"ju367v95"},54:{defaultClass:"ju367v96"},60:{defaultClass:"ju367v97"},200:{defaultClass:"ju367v98"},full:{defaultClass:"ju367v99"},max:{defaultClass:"ju367v9a"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9b"}}}}}),eg={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackgroun
2844d:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},eb={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},ev={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function ey({active:e,hover:t}){return["_12cbo8i3 ju367v8m",t&&ev[t],eb[e]]}var ew=(0,v.createContext)(null);function eE(){var e;let t=(0,v.useContext)(ew);return null!=(e=null==t?void 0:t.status)?e:null}function ex(){let e=eE(),{isConnected:t}=(0,P.mA)();return t?e&&("loading"===e||"unauthenticated"===e)?e:"connected":"disconnected"}function eC(){return"undefined"!=typeof navigator&&/android/i.test(navigator.userAgent)}function eA(){return"undefined"!=typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!=typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function eP(){return eC()||eA()}var ej={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},ek=({reset:e,...t})=>{if(!e)return em(t);let r=ej[e],n=em(t);return j("iekbcc0",r,n)},eO=v.forwardRef(({as:e="div",className:t,testId:r,...n},o)=>{let i={},a={};for(let e in n)em.properties.has(e)?i[e]=n[e]:a[e]=n[e];let s=ek({reset:"string"==typeof e?e:"div",...i});return v.createElement(e,{className:j(s,t),...a,"data-testid":r?`rk-${r.replace(/^rk-/,"")}`:void 0,ref:o})});eO.displayName="Box";var eS=new Map,eI=new Map;async function eT(e){let t=eI.get(e);if(t)return t;let r=async()=>e().then(async t=>(eS.set(e,t),t)),n=r().catch(t=>r().catch(t=>{eI.delete(e)}));return eI.set(e,n),n}async function eB(...e){return await Promise.all(e.map(e=>"function"==typeof e?eT(e):e))}function e_(e){let t="function"==typeof e?eS.get(e):void 0,r=function(){let[,e]=(0,v.useReducer)(e=>e+1,0);return e}();return(0,v.useEffect)(()=>{"function"!=typeof e||t||eT(e).then(r)},[e,t,r]),"function"==typeof e?t:e}function eD({alt:e,background:t,borderColor:r,borderRadius:n,boxShadow:o,height:i,src:a,width:s}){let c=e_(a),l=c&&/^http/.test(c),[u,d]=(0,v.useReducer)(()=>!0,!1);return v.createElement(eO,{"aria-label":e,borderRadius:n,boxShadow:o,height:"string"==typeof i?i:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:"number"==typeof i?i:void 0,width:"number"==typeof s?s:void 0},width:"string"==typeof s?s:void 0},v.createElement(eO,{...l?{"aria-hidden":!0,as:"img",onLoad:d,src:c}:{backgroundSize:"cover"},height:"full",position:"absolute",style:{touchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...l?{opacity:u?1:0}:{backgroundImage:c?`url(${c})`:void 0,backgroundRepeat:"no-repeat",opacity:c?1:0}},width:"full"}),r?v.createElement(eO,{..."object"==typeof r&&"custom"in r?{style:{borderColor:r.custom}}:{borderColor:r},borderRadius:n,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var e$=e=>(0,v.useMemo)(()=>`${e}_${Math.round(1e9*Math.random())}`,[e]),eM=({height:e=21,width:t=21})=>{let r=e$("spinner");return v.createElement("svg",{className:"_1luule42",fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},v.createElement("clipPath",{id:r},v.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),v.createElement("foreignObject",{clipPath:`url(#${r})`,height:"21",width:"21",x:"0",y:"0"},v.createElement("div",{className:"_1luule43"})))},eR=[{color:"#FC5C54",emoji:"\uD83C\uDF36"},{color:"#FFD95A",emoji:"\uD83E\uDD11"},{color:"#E95D72",emoji:"\uD83D\uDC19"},{color:"#6A87C8",emoji:"\uD83E\uDED0"},{color:"#5FD0F3",emoji:"\uD83D\uDC33"},{color:"#FC5C54",emoji:"\uD83E\uDD36"},{color:"#75C06B",emoji:"\uD83C\uDF32"},{color:"#FFDD86",emoji:"\uD83C\uDF1E"},{color:"#5FC6D4",emoji:"\uD83D\uDC12"},{color:"#FF949A",emoji:"\uD83D\uDC35"},{color:"#FF8024",emoji:"\uD83E\uDD8A"},{color:"#9BA1A4",emoji:"\uD83D\uDC3C"},{color:"#EC66FF",emoji:"\uD83E\uDD84"},{color:"#FF8CBC",emoji:"\uD83D\uDC37"},{color:"#FF9A23",emoji:"\uD83D\uDC27"},{color:"#FF949A",emoji:"\uD83E\uDDA9"},{color:"#C5DADB",emoji:"\uD83D\uDC7D"},{color:"#FC5C54",emoji:"\uD83C\uDF88"},{color:"#FF949A",emoji:"\uD83C\uDF49"},{color:"#FFD95A",emoji:"\uD83C\uDF89"},{color:"#A8CE63",emoji:"\uD83D\uDC32"},{color:"#71ABFF",emoji:"\uD83C\uDF0E"},{color:"#FFE279",emoji:"\uD83C\uDF4A"},{color:"#B6B1B6",emoji:"\uD83D\uDC2D"},{color:"#FF6780",emoji:"\uD83C\uDF63"},{color:"#FFD95A",emoji:"\uD83D\uDC25"},{color:"#A575FF",emoji:"\uD83D\uDC7E"},{color:"#A8CE63",emoji:"\uD83E\uDD66"},{color:"#FC5C54",emoji:"\uD83D\uDC79"},{color:"#FFE279",emoji:"\uD83D\uDE40"},{color:"#5FD0F3",emoji:"â±"},{color:"#4D82FF",emoji:"âµï¸"},{color:"#FFE279",emoji:"\uD83E\uDD73"},{color:"#FF949A",emoji:"\uD83E\uDD2F"},{color:"#FFB35A",emoji:"\uD83E\uDD20"}],eN=({address:e,ensImage:t,size:r})=>{let[n,o]=(0,v.useState)(!1);(0,v.useEffect)(()=>
2844{if(t){let e=new Image;e.src=t,e.onload=()=>o(!0)}},[t]);let{color:i,emoji:a}=(0,v.useMemo)(()=>(function(e){let t=Math.abs(function(e){let t=0;if(0===e.length)return t;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t=(t<<5)-t+n|0}return t}(("string"==typeof e?e:"").toLowerCase())%eR.length);return eR[null!=t?t:0]})(e),[e]);return t?n?v.createElement(eO,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:r,width:r}}):v.createElement(eO,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:r,width:r}},v.createElement(eM,null)):v.createElement(eO,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:i},height:r,width:r}},a)},eF=(0,v.createContext)(eN);function eL({address:e,imageUrl:t,loading:r,size:n}){let o=(0,v.useContext)(eF);return v.createElement(eO,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${n}px`,width:`${n}px`},userSelect:"none"},v.createElement(eO,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(.55*n)}px`,height:`${n}px`,transform:r?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:r?void 0:".1s",width:`${n}px`,willChange:"transform"},userSelect:"none"},v.createElement(o,{address:e,ensImage:t,size:n})),"boolean"==typeof r&&v.createElement(eO,{color:"accentColor",display:"flex",height:"full",position:"absolute",style:{opacity:r?1:0,transition:r?"0.6s ease":"0.2s ease",transitionDelay:r?".05s":void 0},width:"full"},v.createElement(eM,{height:"100%",width:"100%"})))}var eU=()=>v.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"}));function ez(e){return null!=e}var eH={iconBackground:"#96bedc",iconUrl:async()=>(await r.e(1727).then(r.bind(r,1727))).default},eq={iconBackground:"#e84141",iconUrl:async()=>(await r.e(6237).then(r.bind(r,36237))).default},eG={iconBackground:"#0052ff",iconUrl:async()=>(await r.e(1711).then(r.bind(r,41711))).default},eW={iconBackground:"#ebac0e",iconUrl:async()=>(await r.e(4253).then(r.bind(r,84253))).default},eK={iconBackground:"#002D74",iconUrl:async()=>(await r.e(5939).then(r.bind(r,95939))).default},eV={iconBackground:"#484c50",iconUrl:async()=>(await r.e(5488).then(r.bind(r,85488))).default},eQ={iconBackground:"#ff5a57",iconUrl:async()=>(await r.e(704).then(r.bind(r,60704))).default},eZ={iconBackground:"#9f71ec",iconUrl:async()=>(await r.e(8881).then(r.bind(r,48881))).default},eY={iconBackground:"#000000",iconUrl:async()=>(await r.e(5119).then(r.bind(r,65119))).default},eJ=Object.fromEntries(Object.values({arbitrum:{chainId:42161,name:"Arbitrum",...eH},arbitrumGoerli:{chainId:421613,...eH},avalanche:{chainId:43114,...eq},avalancheFuji:{chainId:43113,...eq},base:{chainId:8453,...eG},baseGoerli:{chainId:84531,...eG},bsc:{chainId:56,name:"BSC",...eW},bscTestnet:{chainId:97,...eW},cronos:{chainId:25,...eK},cronosTestnet:{chainId:338,...eK},goerli:{chainId:5,...eV},hardhat:{chainId:31337,iconBackground:"#f9f7ec",iconUrl:async()=>(await r.e(6253).then(r.bind(r,26253))).default},kovan:{chainId:42,...eV},localhost:{chainId:1337,...eV},mainnet:{chainId:1,...eV},optimism:{chainId:10,name:"Optimism",...eQ},optimismGoerli:{chainId:420,...eQ},optimismKovan:{chainId:69,...eQ},polygon:{chainId:137,...eZ},polygonMumbai:{chainId:80001,...eZ},rinkeby:{chainId:4,...eV},ropsten:{chainId:3,...eV},sepolia:{chainId:11155111,...eV},zora:{chainId:7777777,...eY},zoraTestnet:{chainId:999,...eY}}).filter(ez).map(({chainId:e,...t})=>[e,t])),eX=e=>e.map(e=>{var t;return{...e,...null!=(t=eJ[e.id])?t:{}}}),e0=(0,v.createContext)({chains:[]});function e1({chains:e,children:t,initialChain:r}){return v.createElement(e0.Provider,{value:(0,v.useMemo)(()=>({chains:eX(e),initialChainId:"number"==typeof r?r:null==r?void 0:r.id}),[e,r])},t)}var e2=()=>(0,v.useContext)(e0).chains,e6=()=>(0,v.useContext)(e0).initialChainId,e3=()=>{let e=e2();return(0,v.useMemo)(()=>{let t={};
2844return e.forEach(e=>{t[e.id]=e}),t},[e])},e5=()=>{let[e,t]=(0,v.useReducer)(()=>!0,!1);return(0,v.useEffect)(t,[t]),e};function e8(){let e=k.RJ.id,t=(0,P.t_)(),r=Array.isArray(t.chains)?t.chains:[],n=null==r?void 0:r.some(t=>(null==t?void 0:t.id)===e);return{chainId:e,enabled:n}}function e4(e){let{chainId:t,enabled:r}=e8(),{data:n}=(0,P.c9)({chainId:t,enabled:r,name:e});return n}function e7(e){let{chainId:t,enabled:r}=e8(),{data:n}=(0,P.F6)({address:e,chainId:t,enabled:r});return n}function e9(){var e;let{chain:t}=(0,P.LN)();return null!=(e=null==t?void 0:t.id)?e:null}var te="rk-transactions";function tt(){return function(e){try{let t=e?JSON.parse(e):{};return"object"==typeof t?t:{}}catch(e){return{}}}("undefined"!=typeof localStorage?localStorage.getItem(te):null)}var tr=/^0x([A-Fa-f0-9]{64})$/,tn=(0,v.createContext)(null);function to({children:e}){let t=(0,P.t_)(),{address:r}=(0,P.mA)(),n=e9(),[o]=(0,v.useState)(()=>null!=l?l:l=function({provider:e}){let t=tt(),r=e,n=new Set,o=new Map;function i(e,r){var n,o;return null!=(o=null==(n=t[e])?void 0:n[r])?o:[]}async function a(e,t){await Promise.all(i(e,t).filter(e=>"pending"===e.status).map(async n=>{let{confirmations:i,hash:a}=n,c=o.get(a);if(c)return await c;let l=r.waitForTransactionReceipt({confirmations:i,hash:a}).then(({status:r})=>{var n;o.delete(a),void 0!==r&&(n=0===r||"reverted"===r?"failed":"confirmed",s(e,t,e=>e.map(e=>e.hash===a?{...e,status:n}:e)))});return o.set(a,l),await l}))}function s(e,r,o){var i,s;(t=tt())[e]=null!=(i=t[e])?i:{};let c=0,l=o(null!=(s=t[e][r])?s:[]).filter(({status:e})=>"pending"===e||c++<=10);t[e][r]=l.length>0?l:void 0,localStorage.setItem(te,JSON.stringify(t)),n.forEach(e=>e()),a(e,r)}return{addTransaction:function(e,t,r){let n=function(e){let t=[];return tr.test(e.hash)||t.push("Invalid transaction hash"),"string"!=typeof e.description&&t.push("Transaction must have a description"),void 0!==e.confirmations&&(!Number.isInteger(e.confirmations)||e.confirmations<1)&&t.push("Transaction confirmations must be a positiver integer"),t}(r);if(n.length>0)throw Error(["Unable to add transaction",...n].join("\n"));s(e,t,e=>[{...r,status:"pending"},...e.filter(({hash:e})=>e!==r.hash)])},clearTransactions:function(e,t){s(e,t,()=>[])},getTransactions:i,onChange:function(e){return n.add(e),()=>{n.delete(e)}},setProvider:function(e){r=e},waitForPendingTransactions:a}}({provider:t}));return(0,v.useEffect)(()=>{o.setProvider(t)},[o,t]),(0,v.useEffect)(()=>{r&&n&&o.waitForPendingTransactions(r,n)},[o,r,n]),v.createElement(tn.Provider,{value:o},e)}function ti(){let e=(0,v.useContext)(tn);if(!e)throw Error("Transaction hooks must be used within RainbowKitProvider");return e}function ta(){let e=ti(),{address:t}=(0,P.mA)(),r=e9(),[n,o]=(0,v.useState)(()=>e&&t&&r?e.getTransactions(t,r):[]);return(0,v.useEffect)(()=>{if(e&&t&&r)return o(e.getTransactions(t,r)),e.onChange(()=>{o(e.getTransactions(t,r))})},[e,t,r]),n}var ts=e=>"function"==typeof e?e():e;function tc(e,t={}){return Object.entries(function(e,{extends:t}={}){let r={...eu(eg,ts(e))};if(!t)return r;let n=eu(eg,ts(t)),o=Object.fromEntries(Object.entries(r).filter(([e,t])=>t!==n[e]));return o}(e,t)).map(([e,t])=>`${e}:${t.replace(/[:;{}</>]/g,"")};`).join("")}var tl=()=>{let[e,t]=(0,v.useState)({height:void 0,width:void 0});return(0,v.useEffect)(()=>{function e(){t({height:window.innerHeight,width:window.innerWidth})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e},tu={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},td=(0,v.createContext)(tu),tf=(0,v.createContext)(!1),th={COMPACT:"compact",WIDE:"wide"},tp=(0,v.createContext)(th.WIDE),tm=(0,v.createContext)(!1);function tg(){return"undefined"!=typeof navigator&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function tb(){var e;if("undefined"==typeof navigator)return"Browser";let t=navigator.userAgent.toLowerCase();if(null==(e=navigator.brave)?void 0:e.isBrave)return"Brave";if(t.indexOf("edg/")>-1)return"Edge";if(t.indexOf("op")>-1)return"Opera";if("undefined"!=typeof document&&""!==getComputedStyle(document.body).getPropertyValue("--arc-palette-focus"))return"Arc";if(t.indexOf("chrome")>-1)return"Chrome";if(t.indexOf("firefox")>-1)return"Firefox";if(tg())return"Safari";return"Browser"}var tv=e=>{var t,r,n,o,i,a,s,c,l,u,d,f;let h=tb();return null!=(f=({Arc:null==(t=null==e?void 0:e.downloadUrls)?void 0:t.chrome,Brave:null==(r=null==e?void 0:e.downloadUrls)?void 0:r.chrome,Chrome:null==(n=null==e?void 0:e.downloadUrls)?void 0:n.chrome,Edge:(null==(o=null==e?void 0:e.downloadUrls)?void 0:o.edge)||(null==(i=null==e?void 0:e.downloadUrls)?void 0:i.chrome),Firefox:null==(a=null==e?void 0:e.downloadUrls)?void 0:a.firefox,Opera:(null==(s=null==e?void 0:e.downloadUrls)?void 0:s.opera)||(null==(c=null==e?void 0:e.downloadUrls)?void 0:c.chrome),Safari:null==(l=null==e?void 0:e.downloadUrls)?void 0:l.safari,Browser:null==(u=null==e?void 0:e.downloadUrls)?void 0:u.browserExtension})[h])?f:null==(d=null==e?void 0:e.downloadUrls)?void 0:d.browserExtension},ty=e=>{var t,r,n,o;let i=eA();return null!=(o=i?null==(t=null==e?void 0:e.downloadUrls)?void 0:t.ios:null==(r=null==e?void 0:e.downloadUrls)?void 0:r.android)?o:null==(n=null==e?void 0:e.downloadUrls)?void 0:n.mobile},tw="rk-recent";function tE(){return"undefined"!=typeof localStorage?function(e){try{let t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch(e){return[]}}(localStorage.getItem(tw)):[]}function tx(){let e=e2(),t=e6(),{connectAsync:r,connectors:n}=(0,P.$4)();async function o(n,o){var i,a,s;let c=await o.getChainId(),l=await r({chainId:null!=(s=null!=t?t:null==(i=e.find(({id:e})=>e===c))?void 0:i.id)?s:null==(a=e[0])?void 0:a.id,connector:o});return l&&function(e){var t;let r=(t=[e,...tE()],[...new Set(t)]);localStorage.setItem(tw,JSON.stringify(r))}(n),l}async function i(e,t){try{return await o(e,t)}catch(t){let e="UserRejectedRequestError"===t.name||"Connection request reset. Please try again."===t.message;if(!e)throw t}}let a=(function(e){let t=[];for(let r of e)t.push(...r);return t})(n.map(e=>{var t;return null!=(t=e._wallets)?t:[]})).sort((e,t)=>
2844e.index-t.index),s=function(e,t){let r={};return e.forEach(e=>{let n=t(e);n&&(r[n]=e)}),r}(a,e=>e.id),c=tE().map(e=>s[e]).filter(ez).slice(0,3),l=[...c,...a.filter(e=>!c.includes(e))],u=[];return l.forEach(e=>{var t;if(!e)return;let r=c.includes(e);u.push({...e,connect:()=>e.connector.showQrModal?i(e.id,e.connector):o(e.id,e.connector),extensionDownloadUrl:tv(e),groupName:e.groupName,mobileDownloadUrl:ty(e),onConnecting:t=>e.connector.on("message",({type:e})=>"connecting"===e?t():void 0),ready:(null==(t=e.installed)||t)&&e.connector.ready,recent:r,showWalletConnectModal:e.walletConnectModalConnector?()=>i(e.id,e.walletConnectModalConnector):void 0})}),u}var tC=async()=>(await r.e(794).then(r.bind(r,20794))).default,tA=()=>eB(tC),tP=()=>v.createElement(eD,{background:"#d0d5de",borderRadius:"10",height:"48",src:tC,width:"48"}),tj=async()=>(await r.e(3200).then(r.bind(r,26936))).default,tk=()=>eB(tj),tO=()=>v.createElement(eD,{background:"#d0d5de",borderRadius:"10",height:"48",src:tj,width:"48"}),tS=v.forwardRef(({as:e="div",children:t,className:r,color:n,display:o,font:i="body",id:a,size:s="16",style:c,tabIndex:l,textAlign:u="inherit",weight:d="regular"},f)=>v.createElement(eO,{as:e,className:r,color:n,display:o,fontFamily:i,fontSize:s,fontWeight:d,id:a,ref:f,style:c,tabIndex:l,textAlign:u},t));tS.displayName="Text";var tI={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function tT({disabled:e=!1,href:t,label:r,onClick:n,rel:o="noreferrer noopener",size:i="medium",target:a="_blank",testId:s,type:c="primary"}){let l="primary"===c,u="large"!==i,d=eP(),f=e?"actionButtonSecondaryBackground":l?"accentColor":u?"actionButtonSecondaryBackground":null,{fontSize:h,height:p,paddingX:m,paddingY:g}=tI[i];return v.createElement(eO,{...t?e?{}:{as:"a",href:t,rel:o,target:a}:{as:"button",type:"button"},onClick:e?void 0:n,...d&&u?{}:{borderColor:!d||u||l?"actionButtonBorder":"actionButtonBorderMobile",borderStyle:"solid",borderWidth:"1"},borderRadius:"actionButton",className:!e&&ey({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:m,paddingY:g,style:{willChange:"transform"},testId:s,textAlign:"center",transition:"transform",...f?{background:f}:{},...p?{height:p}:{}},v.createElement(tS,{color:e?"modalTextSecondary":l?"accentColorForeground":"accentColor",size:h,weight:"bold"},r))}var tB=()=>eP()?v.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):v.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),t_=({"aria-label":e="Close",onClose:t})=>{let r=eP();return v.createElement(eO,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:r?"0":"1",className:ey({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:r?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:r?"30":"28"},v.createElement(tB,null))},tD=async()=>(await r.e(2898).then(r.bind(r,92898))).default;function t$({onClose:e}){let[{status:t,...r},n]=v.useState({status:"idle"}),o=function(){var e;let{adapter:t}=null!=(e=(0,v.useContext)(ew))?e:{};
2844if(!t)throw Error("No authentication adapter found");return t}(),i=(0,v.useCallback)(async()=>{try{let e=await o.getNonce();n(t=>({...t,nonce:e}))}catch(e){n(e=>({...e,errorMessage:"Error preparing message, please retry!",status:"idle"}))}},[o]),a=(0,v.useRef)(!1);v.useEffect(()=>{a.current||(a.current=!0,i())},[i]);let s=eP(),{address:c}=(0,P.mA)(),{chain:l}=(0,P.LN)(),{signMessageAsync:u}=(0,P.QW)(),{disconnect:d}=(0,P.qL)(),f=()=>d(),h=async()=>{try{let e;let t=null==l?void 0:l.id,{nonce:i}=r;if(!c||!t||!i)return;n(e=>({...e,errorMessage:void 0,status:"signing"}));let a=o.createMessage({address:c,chainId:t,nonce:i});try{e=await u({message:o.getMessageBody({message:a})})}catch(e){if(e instanceof ed.ab)return n(e=>({...e,status:"idle"}));return n(e=>({...e,errorMessage:"Error signing message, please retry!",status:"idle"}))}n(e=>({...e,status:"verifying"}));try{let t=await o.verify({message:a,signature:e});if(t)return;throw Error()}catch(e){return n(e=>({...e,errorMessage:"Error verifying signature, please retry!",status:"idle"}))}}catch(e){n({errorMessage:"Oops, something went wrong!",status:"idle"})}};return v.createElement(eO,{position:"relative"},v.createElement(eO,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},v.createElement(t_,{onClose:e})),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:s?"60px":"36px"}},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"6":"4",style:{maxWidth:s?320:280}},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"32":"16"},v.createElement(eD,{height:40,src:tD,width:40}),v.createElement(tS,{color:"modalText",size:s?"20":"18",textAlign:"center",weight:"heavy"},"Verify your account")),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:s?"16":"12"},v.createElement(tS,{color:"modalTextSecondary",size:s?"16":"14",textAlign:"center"},"To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account."),"idle"===t&&r.errorMessage?v.createElement(tS,{color:"error",size:s?"16":"14",textAlign:"center",weight:"bold"},r.errorMessage):null)),v.createElement(eO,{alignItems:s?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},v.createElement(tT,{disabled:!r.nonce||"signing"===t||"verifying"===t,label:r.nonce?"signing"===t?"Waiting for signature...":"verifying"===t?"Verifying signature...":"Send message":"Preparing message...",onClick:h,size:s?"large":"medium",testId:"auth-message-button"}),s?v.createElement(tT,{label:"Cancel",onClick:f,size:"large",type:"secondary"}):v.createElement(eO,{as:"button",borderRadius:"full",className:ey({active:"shrink",hover:"grow"}),display:"block",onClick:f,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},v.createElement(tS,{color:"closeButton",size:s?"16":"14",weight:"bold"},"Cancel")))))}var tM="WALLETCONNECT_DEEPLINK_CHOICE";function tR(){localStorage.removeItem(tM)}var tN=(0,v.createContext)(void 0),tF="data-rk",tL=e=>({[tF]:e||""}),tU=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw Error(`Invalid ID: ${e}`);return e?`[${tF}="${e}"]`:`[${tF}]`},tz=()=>{let e=(0,v.useContext)(tN);return tL(e)},tH=b();function tq({appInfo:e,avatar:t,chains:r,children:n,coolMode:o=!1,id:i,initialChain:a,modalSize:s=th.WIDE,showRecentTransactions:c=!1,theme:l=tH}){if(!function(){let e=e2(),t=tx(),r="unauthenticated"===eE(),n=(0,v.useCallback)(()=>{eB(...t.map(e=>e.iconUrl),...e.map(e=>e.iconUrl).filter(ez)),eP()||(tA(),tk()),r&&eB(tD)},[t,e,r]);(0,v.useEffect)(()=>{n()},[n])}(),(0,P.mA)({onDisconnect:tR}),"function"==typeof l)throw Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');let u=tU(i),d={...tu,...e},f=null!=t?t:eN,{width:h}=tl();return v.createElement(e1,{chains:r,initialChain:a},v.createElement(tf.Provider,{value:o},v.createElement(tp.Provider,{value:h&&h<768?th.COMPACT:s},v.createElement(tm.Provider,{value:c},v.createElement(to,null,v.createElement(eF.Provider,{value:f},v.createElement(td.Provider,{value:d},v.createElement(tN.Provider,{value:i},v.createElement(rZ,null,l?v.createElement("div",{...tL(i)},v.createElement("style",{dangerouslySetInnerHTML:{__html:[`${u}{${tc("lightMode"in l?l.lightMode:l)}}`,"darkMode"in l?`@media(prefers-color-scheme:dark){${u}{${tc(l.darkMode,{extends:l.lightMode})}}}`:null].join("")}}),n):n)))))))))}var tG=(e,t)=>{let r=e.querySelectorAll("button:not(:disabled), a[href]");0!==r.length&&r["end"===t?r.length-1:0].focus()};function tW(e){let t=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let e=document.activeElement;return()=>{var t;
2844null==(t=e.focus)||t.call(e)}},[]),(0,v.useEffect)(()=>{if(t.current){let e=t.current.querySelector("[data-auto-focus]");e?e.focus():t.current.focus()}},[t]),v.createElement(v.Fragment,null,v.createElement("div",{onFocus:(0,v.useCallback)(()=>t.current&&tG(t.current,"end"),[]),tabIndex:0}),v.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),v.createElement("div",{onFocus:(0,v.useCallback)(()=>t.current&&tG(t.current,"start"),[]),tabIndex:0}))}var tK=e=>e.stopPropagation();function tV({children:e,onClose:t,open:r,titleId:n}){(0,v.useEffect)(()=>{let e=e=>r&&"Escape"===e.key&&t();return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,t]);let[o,i]=(0,v.useState)(!0);(0,v.useEffect)(()=>{i("hidden"!==getComputedStyle(window.document.body).overflow)},[]);let a=(0,v.useCallback)(()=>t(),[t]),s=tz(),c=eP();return v.createElement(v.Fragment,null,r?(0,O.createPortal)(v.createElement(ec,{enabled:o},v.createElement(eO,{...s},v.createElement(eO,{...s,alignItems:c?"flex-end":"center","aria-labelledby":n,"aria-modal":!0,className:"_9pm4ki3 ju367v9b ju367vax ju367va ju367v2l ju367v8l",onClick:a,position:"fixed",role:"dialog"},v.createElement(tW,{className:"_9pm4ki5 ju367va ju367v10 ju367v8m",onClick:tK,role:"document"},e)))),document.body):null)}var tQ="_1ckjpok1 ju367vb0 ju367vdl ju367vp ju367vt ju367vv ju367vef ju367va ju367v10 ju367v67 ju367v8m",tZ="_1ckjpok6 ju367vq";function tY({bottomSheetOnMobile:e=!1,children:t,marginTop:r,padding:n="16",wide:o=!1}){let i=eP(),a=(0,v.useContext)(tp),s=a===th.COMPACT;return v.createElement(eO,{marginTop:r},v.createElement(eO,{className:[o?i?"_1ckjpok2 _1ckjpok1 ju367vb0 ju367vdl ju367vp ju367vt ju367vv ju367vef ju367va ju367v10 ju367v67 ju367v8m":s?"_1ckjpok4 _1ckjpok1 ju367vb0 ju367vdl ju367vp ju367vt ju367vv ju367vef ju367va ju367v10 ju367v67 ju367v8m":"_1ckjpok3 _1ckjpok1 ju367vb0 ju367vdl ju367vp ju367vt ju367vv ju367vef ju367va ju367v10 ju367v67 ju367v8m":tQ,i?tZ:null,i&&e?"_1ckjpok7":null].join(" ")},v.createElement(eO,{padding:n},t)))}var tJ=["k","m","b","t"];function tX(e,t=1){return e.toString().replace(RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function t0(e){if(e<1)return tX(e,3);if(e<100)return tX(e,2);if(e<1e4)return new Intl.NumberFormat().format(parseFloat(tX(e,1)));let t=String(e);for(let r=tJ.length-1;r>=0;r--){let n=10**((r+1)*3);if(n<=e){t=tX(e=10*e/n/10,1)+tJ[r];break}}return t}function t1(e){return e.length<8?e:`${e.substring(0,4)}\u2026${e.substring(e.length-4)}`}function t2(e){let t=e.split("."),r=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${r}`}var t6=()=>v.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),t3=()=>v.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),t5=()=>v.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.
28446354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"})),t8=e=>{var t,r;return null==(r=null==(t=null==e?void 0:e.blockExplorers)?void 0:t.default)?void 0:r.url},t4=()=>v.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),t7=()=>v.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),t9=()=>v.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),re=e=>
2844{switch(e){case"pending":default:return eM;case"confirmed":return t9;case"failed":return t7}};function rt({tx:e}){let t=eP(),r=re(e.status),n="failed"===e.status?"error":"accentColor",{chain:o}=(0,P.LN)(),i="confirmed"===e.status?"Confirmed":"failed"===e.status?"Failed":"Pending",a=t8(o);return v.createElement(v.Fragment,null,v.createElement(eO,{...a?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ey({active:"shrink"}),href:`${a}/tx/${e.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},v.createElement(eO,{color:n},v.createElement(r,null)),v.createElement(eO,{display:"flex",flexDirection:"column",gap:t?"3":"1"},v.createElement(eO,null,v.createElement(tS,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},null==e?void 0:e.description)),v.createElement(eO,null,v.createElement(tS,{color:"pending"===e.status?"modalTextSecondary":n,font:"body",
2844size:"14",weight:t?"medium":"regular"},i)))),a&&v.createElement(eO,{alignItems:"center",color:"modalTextDim",display:"flex"},v.createElement(t4,null))))}function rr({address:e}){let t=ta(),r=function(){let e=ti(),{address:t}=(0,P.mA)(),r=e9();return(0,v.useCallback)(()=>{if(!t||!r)throw Error("No address or chain ID found");e.clearTransactions(t,r)},[e,t,r])}(),{chain:n}=(0,P.LN)(),o=t8(n),i=t.slice(0,3),a=i.length>0,s=eP(),{appName:c}=(0,v.useContext)(td);return v.createElement(v.Fragment,null,v.createElement(eO,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:s?"8":"18"},a&&v.createElement(eO,{paddingBottom:s?"4":"0",paddingTop:"8",paddingX:s?"12":"6"},v.createElement(eO,{display:"flex",justifyContent:"space-between"},v.createElement(tS,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},"Recent Transactions"),v.createElement(eO,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},v.createElement(eO,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:ey({active:"shrink"}),onClick:r,paddingX:s?"8":"12",paddingY:s?"4":"5",transition:"default",type:"button"},v.createElement(tS,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},"Clear All"))))),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4"},a?i.map(e=>v.createElement(rt,{key:e.hash,tx:e})):v.createElement(v.Fragment,null,v.createElement(eO,{padding:s?"12":"8"},v.createElement(tS,{color:"modalTextDim",size:s?"16":"14",weight:s?"medium":"bold"},null!=c?c:"Your"," transactions will appear here...")),s&&v.createElement(eO,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),o&&v.createElement(eO,{paddingBottom:"18",paddingX:s?"8":"18"},v.createElement(eO,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:ey({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${o}/address/${e}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...s?{paddingLeft:"12"}:{}}
2844,v.createElement(tS,{color:"modalText",font:"body",size:s?"16":"14",weight:s?"semibold":"bold"},"View more on Explorer"),v.createElement(t4,null))))}function rn({action:e,icon:t,label:r,testId:n,url:o}){let i=eP();return v.createElement(eO,{...o?{as:"a",href:o,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...i?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:ey({active:"shrinkSm",hover:i?void 0:"grow"}),display:"flex",onClick:e,padding:i?"6":"8",style:{willChange:"transform"},testId:n,transition:"default",width:"full"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},v.createElement(eO,{color:"modalText",height:"max"},t),v.createElement(eO,null,v.createElement(tS,{color:"modalText",size:i?"12":"13",weight:"semibold"},r))))}function ro({address:e,balanceData:t,ensAvatar:r,ensName:n,onClose:o,onDisconnect:i}){let a=(0,v.useContext)(tm),[s,c]=(0,v.useState)(!1),l=(0,v.useCallback)(()=>{e&&(navigator.clipboard.writeText(e),c(!0))},[e]);if((0,v.useEffect)(()=>{if(s){let e=setTimeout(()=>{c(!1)},1500);return()=>clearTimeout(e)}},[s]),!e)return null;let u=n?t2(n):t1(e),d=null==t?void 0:t.formatted,f=d?t0(parseFloat(d)):void 0,h="rk_profile_title",p=eP();return v.createElement(v.Fragment,null,v.createElement(eO,{display:"flex",flexDirection:"column"},v.createElement(eO,{background:"profileForeground",padding:"16"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:p?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},v.createElement(eO,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},v.createElement(t_,{onClose:o}))," ",v.createElement(eO,{marginTop:p?"24":"0"},v.createElement(eL,{address:e,imageUrl:r,size:p?82:74})),v.createElement(eO,{display:"flex",flexDirection:"column",gap:p?"4":"0",textAlign:"center"},v.createElement(eO,{textAlign:"center"},v.createElement(tS,{as:"h1",color:"modalText",id:h,size:p?"20":"18",weight:"heavy"},u)),t&&v.createElement(eO,{textAlign:"center"},v.createElement(tS,{as:"h1",color:"modalTextSecondary",id:h,size:p?"16":"14",weight:"semibold"},f," ",t.symbol)))),v.createElement(eO,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},v.createElement(rn,{action:l,icon:s?v.createElement(t6,null):v.createElement(t3,null),label:s?"Copied!":"Copy Address"}),v.createElement(rn,{action:i,icon:v.createElement(t5,null),label:"Disconnect",testId:"disconnect-button"}))),a&&v.createElement(v.Fragment,null,v.createElement(eO,{background:"generalBorder",height:"1",marginTop:"-1"}),v.createElement(eO,null,v.createElement(rr,{address:e})))))}function ri({onClose:e,open:t}){let{address:r}=(0,P.mA)(),{data:n}=(0,P.KQ)({address:r}),o=e7(r),i=e4(o),{disconnect:a}=(0,P.qL)();return r?v.createElement(v.Fragment,null,r&&v.createElement(tV,{onClose:e,open:t,titleId:"rk_account_modal_title"},v.createElement(tY,{bottomSheetOnMobile:!0,padding:"0"},v.createElement(ro,{address:r,balanceData:n,ensAvatar:i,ensName:o,onClose:e,onDisconnect:a})))):null}var ra=({size:e})=>v.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),rs=v.forwardRef(({children:e,currentlySelected:t=!1,onClick:r,testId:n,...o},i)=>{let a=eP();return v.createElement(eO,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:r,ref:i,testId:n,type:"button"},v.createElement(eO,{borderRadius:"menuButton",className:[a?"v9horb0":void 0,!t&&ey({active:"shrink"})],padding:a?"8":"6",transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}
2844:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...o},e))});function rc({onClose:e,open:t}){var r;let{chain:n}=(0,P.LN)(),{chains:o,pendingChainId:i,reset:a,switchNetwork:s}=(0,P.g0)({onSettled:()=>{a(),e()}}),{disconnect:c}=(0,P.qL)(),l="rk_chain_modal_title",u=eP(),d=null!=(r=null==n?void 0:n.unsupported)&&r,f=u?"36":"28",{appName:h}=(0,v.useContext)(td),p=e2();return n&&(null==n?void 0:n.id)?v.createElement(tV,{onClose:e,open:t,titleId:l},v.createElement(tY,{bottomSheetOnMobile:!0},v.createElement(eO,{display:"flex",flexDirection:"column",gap:"14"},v.createElement(eO,{display:"flex",flexDirection:"row",justifyContent:"space-between"},u&&v.createElement(eO,{width:"30"}),v.createElement(eO,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},v.createElement(tS,{as:"h1",color:"modalText",id:l,size:u?"20":"18",weight:"heavy"},"Switch Networks")),v.createElement(t_,{onClose:e})),d&&v.createElement(eO,{marginX:"8",textAlign:u?"center":"left"},v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},"Wrong network detected, switch or disconnect to continue.")),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4",padding:"2"},s?p.map(({iconBackground:e,iconUrl:t,id:r,name:a},c)=>{let l=o.find(e=>e.id===r);if(!l)return null;let d=l.id===(null==n?void 0:n.id),h=!d&&l.id===i;return v.createElement(v.Fragment,{key:l.id},v.createElement(rs,{currentlySelected:d,onClick:d?void 0:()=>s(l.id),testId:`chain-option-${l.id}`},v.createElement(eO,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:f},t&&v.createElement(eO,{height:"full",marginRight:"8"},v.createElement(eD,{alt:null!=a?a:l.name,background:e,borderRadius:"full",height:f,src:t,width:f})),v.createElement("div",null,null!=a?a:l.name)),d&&v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},v.createElement(tS,{color:"accentColorForeground",size:"14",weight:"medium"},"Connected"),v.createElement(eO,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),h&&v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},v.createElement(tS,{color:"modalText",size:"14",weight:"medium"},"Confirm in Wallet"),v.createElement(eO,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),u&&c<p.length-1&&v.createElement(eO,{background:"generalBorderDim",height:"1",marginX:"8"}))}):v.createElement(eO,{background:"generalBorder",borderRadius:"menuButton",paddingX:"18",paddingY:"12"},v.createElement(tS,{color:"modalText",size:"14",weight:"medium"},"Your wallet does not support switching networks from"," ",null!=h?h:"this app",". Try switching networks from within your wallet instead.")),d&&v.createElement(v.Fragment,null,v.createElement(eO,{background:"generalBorderDim",height:"1",marginX:"8"}),v.createElement(rs,{onClick:()=>c(),testId:"chain-option-disconnect"},v.createElement(eO,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:f},v.createElement(eO,{alignItems:"center",color:"error",height:f,justifyContent:"center",marginRight:"8"},v.createElement(ra,{size:Number(f)})),v.createElement("div",null,"Disconnect")))))))))):null}rs.displayName="MenuButton";var rl=({children:e,href:t})=>v.createElement(eO,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),ru=({children:e})=>v.createElement(tS,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function rd({compactModeEnabled:e=!1,getWallet:t}){let{disclaimer:r,learnMoreUrl:n}=(0,v.useContext)(td);return v.createElement(v.Fragment,null,v.createElement(eO,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},v.createElement(eO,{marginBottom:"10"},!e&&v.createElement(tS,{color:"modalText",size:"18",weight:"heavy"},"What is a Wallet?")),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},v.createElement(eO,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},v.createElement(tP,null)),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4"},v.createElement(tS,{color:"modalText",size:"14",weight:"bold"},"A Home for your Digital Assets"),v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},"Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."))),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},v.createElement(eO,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},v.createElement(tO,null)),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4"},v.createElement(tS,{color:"modalText",size:"14",weight:"bold"},"A New Way to Log In"),v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},"Instead of creating new accounts and passwords on every website, just connect your wallet.")))),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},v.createElement(tT,{label:"Get a Wallet",onClick:t}),v.createElement(eO,{as:"a",className:ey({active:"shrink",hover:"grow"}),display:"block",href:n,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},v.createElement(tS,{color:"accentColor",size:"14",weight:"bold"},"Learn More"))),r&&!e&&v.createElement(eO,{marginBottom:"8",marginTop:"12",textAlign:"center"},v.createElement(r,{Link:rl,Text:ru}))))}var rf=()=>v.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.912
28441 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),rh=()=>v.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),rp=({"aria-label":e="Info",onClick:t})=>{let r=eP();return v.createElement(eO,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:r?"0":"1",className:ey({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:r?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:r?"30":"28"},v.createElement(rh,null))},rm=e=>{let t=(0,v.useRef)(null),r=(0,v.useContext)(tf),n=e_(e);return(0,v.useEffect)(()=>{if(r&&t.current&&n)return function(e,t){let r;rb++;let n=[15,20,25,35,45],o=[],i=!1,a=0,s=0,c=rg();!function e(){i&&o.length<35&&function(){let e=n[Math.floor(Math.random()*n.length)],r=360*Math.random(),i=s-e/2,l=a-e/2,u=document.createElement("div");u.innerHTML=`<img src="${t}" width="${e}" height="${e}" style="border-radius: 25%">`,u.setAttribute("style",`position:absolute;will-change:transform;top:${i}px;left:${l}px;transform:rotate(${r}deg)`),c.appendChild(u),o.push({direction:.5>=Math.random()?-1:1,element:u,left:l,size:e,speedHorz:10*Math.random(),speedUp:25*Math.random(),spinSpeed:35*Math.random()*(.5>=Math.random()?-1:1),spinVal:r,top:i})}(),o.forEach(e=>{e.left=e.left-e.speedHorz*e.direction,e.top=e.top-e.speedUp,e.speedUp=Math.min(e.size,e.speedUp-1),e.spinVal=e.spinVal+e.spinSpeed,e.top>=Math.max(window.innerHeight,document.body.clientHeight)+e.size&&(o=o.filter(t=>t!==e),e.element.remove()),e.element.setAttribute("style",`position:absolute;will-change:transform;top:${e.top}px;left:${e.left}px;transform:rotate(${e.spinVal}deg)`)}),r=requestAnimationFrame(e)}();let l="ontouchstart"in window||navigator.msMaxTouchPoints,u=l?"touchstart":"mousedown",d=l?"touchend":"mouseup",f=l?"touchmove":"mousemove",h=e=>{var t,r;"touches"in e?(a=null==(t=e.touches)?void 0:t[0].clientX,s=null==(r=e.touches)?void 0:r[0].clientY):(a=e.clientX,s=e.clientY)},p=e=>{h(e),i=!0},m=()=>{i=!1};return e.addEventListener(f,h,{passive:!1}),e.addEventListener(u,p),e.addEventListener(d,m),e.addEventListener("mouseleave",m),()=>{e.removeEventListener(f,h),e.removeEventListener(u,p),e.removeEventListener(d,m),e.removeEventListener("mouseleave",m);let t=setInterval(()=>{r&&0===o.length&&(cancelAnimationFrame(r),clearInterval(t),0==--rb&&c.remove())},500)}}(t.current,n)},[r,n]),t},rg=()=>{let e="_rk_coolMode",t=document.getElementById(e);if(t)return t;let r=document.createElement("div");return r.setAttribute("id",e),r.setAttribute("style","overflow:hidden;position:fixed;height:100%;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:2147483647"),document.body.appendChild(r),r}
2844,rb=0,rv=({as:e="button",currentlySelected:t=!1,iconBackground:r,iconUrl:n,name:o,onClick:i,ready:a,recent:s,testId:c,...l})=>{let u=rm(n),[d,f]=(0,v.useState)(!1);return v.createElement(eO,{display:"flex",flexDirection:"column",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),ref:u},v.createElement(eO,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:["g5kl0l0",ey({active:"shrink"})],disabled:t,onClick:i,padding:"5",style:{willChange:"transform"},testId:c,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...l},v.createElement(eO,{color:t?"accentColorForeground":"modalText",disabled:!a,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},v.createElement(eD,{background:r,...d?{}:{borderColor:"actionButtonBorder"},borderRadius:"6",height:"28",src:n,width:"28"}),v.createElement(eO,null,v.createElement(eO,{style:{marginTop:s?-2:void 0}},o),s&&v.createElement(tS,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},"Recent"))))))};rv.displayName="ModalSelection";var ry=(e,t=1)=>{let r=e.replace("#","");3===r.length&&(r=`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`);let n=parseInt(r.substring(0,2),16),o=parseInt(r.substring(2,4),16),i=parseInt(r.substring(4,6),16);return t>1&&t<=100&&(t/=100),`rgba(${n},${o},${i},${t})`},rw=e=>e?[ry(e,.2),ry(e,.14),ry(e,.1)]:null,rE=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),rx=async()=>(await r.e(8137).then(r.bind(r,68137))).default,rC=()=>eB(rx),rA=()=>v.createElement(eD,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:rx,width:"48"}),rP=async()=>(await r.e(1748).then(r.bind(r,31748))).default,rj=()=>eB(rP),rk=()=>v.createElement(eD,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:rP,width:"48"}),rO=async()=>(await r.e(5806).then(r.bind(r,75806))).default,rS=()=>eB(rO),rI=()=>v.createElement(eD,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:rO,width:"48"}),rT=(e,t)=>{let r=Array.prototype.slice.call(ef.create(e,{errorCorrectionLevel:t}).modules.data,0),n=Math.sqrt(r.length);return r.reduce((e,t,r)=>(r%n==0?e.push([t]):e[e.length-1].push(t))&&e,[])};function rB({ecl:e="M",logoBackground:t,logoMargin:r=10,logoSize:n=50,logoUrl:o,size:i=200,uri:a}){let s=i-2*parseInt("20",10),c=(0,v.useMemo)(()=>{let t=[],r=rT(a,e),o=s/r.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:e,y:n})=>{let i=(r.length-7)*o*e,a=(r.length-7)*o*n;for(let r=0;r<3;r++)t.push(v.createElement("rect",{fill:r%2!=0?"white":"black",height:o*(7-2*r),key:`${r}-${e}-${n}`,rx:-((r-2)*5)+(0===r?2:0),ry:-((r-2)*5)+(0===r?2:0),width:o*(7-2*r),x:i+o*r,y:a+o*r}))});let i=Math.floor((n+25)/o),c=r.length/2-i/2,l=r.length/2+i/2-1;return r.forEach((e,n)=>{e.forEach((e,i)=>{!r[n][i]||n<7&&i<7||n>r.length-8&&i<7||n<7&&i>r.length-8||n>c&&n<l&&i>c&&i<l||t.push(v.createElement("circle",{cx:n*o+o/2,cy:i*o+o/2,fill:"black",key:`circle-${n}-${i}`,r:o/3}))})}),t},[e,n,s,a]),l=s/2-n/2,u=n+2*r;return v.createElement(eO,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:"_1vwt0cg0",padding:"20",width:"max"},v.createElement(eO,{style:{height:s,userSelect:"none",width:s},userSelect:"none"},v.createElement(eO,{display:"flex",justifyContent:"center",position:"relative",style:{height:0,top:l,width:s},width:"full"},v.createElement(eD,{background:t,borderColor:{custom:"rgba(0, 0, 0, 0.06)"},borderRadius:"13",height:n,src:o,width:n})),v.createElement("svg",{height:s,style:{all:"revert"},width:s},v.createElement("defs",null,v.createElement("clipPath",{id:"clip-wrapper"},v.createElement("rect",{height:u,width:u})),v.createElement("clipPath",{id:"clip-logo"},v.createElement("rect",{height:n,width:n}))),v.createElement("rect",{fill:"transparent",height:s,width:s}),c)))}var r_=async()=>{let e=tb();switch(e){case"Arc":return(await r.e(6328).then(r.bind(r,76328))).default;case"Brave":return(await r.e(6551).then(r.bind(r,86551))).default;case"Chrome":return(await r.e(7682).then(r.bind(r,57682))).default;case"Edge":return(await r.e(934).then(r.bind(r,60934))).default;case"Firefox":return(await r.e(9223).then(r.bind(r,99223))).default;case"Opera":return(await r.e(9941).then(r.bind(r,89941))).default;case"Safari":return(await r.e(2604).then(r.bind(r,62604))).default;default:return(await r.e(2746).then(r.bind(r,92746))).default}},rD=()=>eB(r_);function r$({getWalletDownload:e}){let t=tx(),r=t.splice(0,5);return v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},null==r?void 0:r.filter(e=>{var t;return e.extensionDownloadUrl||e.qrCode&&(null==(t=e.downloadUrls)?void 0:t.qrCode)}).map(t=>
2844{let{downloadUrls:r,iconBackground:n,iconUrl:o,id:i,name:a,qrCode:s}=t,c=(null==r?void 0:r.qrCode)&&s,l=!!t.extensionDownloadUrl,u=(null==r?void 0:r.qrCode)&&l;return v.createElement(eO,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:t.id,width:"full"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},v.createElement(eD,{background:n,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:o,width:"48"}),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"2"},v.createElement(tS,{color:"modalText",size:"14",weight:"bold"},a),v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},u?"Mobile Wallet and Extension":c?"Mobile Wallet":l?"Browser Extension":null))),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4"},v.createElement(tT,{label:"GET",onClick:()=>e(i),type:"secondary"})))})),v.createElement(eO,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},v.createElement(tS,{color:"modalText",size:"14",weight:"bold"},"Not what youâre looking for?"),v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},"Select a wallet on the left to get started with a different wallet provider.")))}function rM({changeWalletStep:e,compactModeEnabled:t,connectionError:r,onClose:n,qrCodeUri:o,reconnect:i,wallet:a}){var s;let{downloadUrls:c,iconBackground:l,iconUrl:u,name:d,qrCode:f,ready:h,showWalletConnectModal:p}=a,m=null==(s=a.desktop)?void 0:s.getUri,g=tg(),b=!!a.extensionDownloadUrl,y=(null==c?void 0:c.qrCode)&&b,w=f&&o,E=p?{description:`Need the ${t?"":"official"} WalletConnect modal?`,label:"OPEN",onClick:()=>{n(),p()}}:w?{description:`Don\u2019t have ${d}?`,label:"GET",onClick:()=>e(y?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:x}=tl();return(0,v.useEffect)(()=>{rD()},[]),v.createElement(eO,{display:"flex",flexDirection:"column",height:"full",width:"full"},w?v.createElement(eO,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},v.createElement(rB,{logoBackground:l,logoSize:t?60:72,logoUrl:u,size:t?318:x&&x<768?Math.max(280,Math.min(x-308,382)):382,uri:o})):v.createElement(eO,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},v.createElement(eO,{borderRadius:"10",height:"44",overflow:"hidden"},v.createElement(eD,{height:"44",src:u,width:"44"})),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},v.createElement(tS,{color:"modalText",size:"18",weight:"bold"},h?`Opening ${d}...`:b?`${d} is not installed`:`${d} is not available`),!h&&b?v.createElement(eO,{paddingTop:"20"},v.createElement(tT,{href:a.extensionDownloadUrl,label:"INSTALL",type:"secondary"})):null,h&&!w&&v.createElement(v.Fragment,null,v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},v.createElement(tS,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},"Confirm connection in the extension")),v.createElement(eO,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},r?v.createElement(tT,{label:"RETRY",onClick:m?async()=>{let e=await m();window.open(e,g?"_blank":"_self")}:()=>{i(a)}}):v.createElement(eO,{color:"modalTextSecondary"},v.createElement(eM,null))))))),v.createElement(eO,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},h&&E&&v.createElement(v.Fragment,null,v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},E.description),v.createElement(tT,{label:E.label,onClick:E.onClick,type:"secondary"}))))}var rR=({actionLabel:e,description:t,iconAccent:r,iconBackground:n,iconUrl:o,isCompact:i,onAction:a,title:s,url:c,variant:l})=>{let u="browser"===l,d=!u&&r&&rw(r);return v.createElement(eO,{alignItems:"center",borderRadius:"13",dis
2844play:"flex",justifyContent:"center",overflow:"hidden",paddingX:i?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},v.createElement(eO,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),u&&v.createElement(eO,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},v.createElement(eO,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},v.createElement(eO,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},v.createElement(eD,{borderRadius:"full",height:"200",src:o,width:"200"})),v.createElement(eO,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},v.createElement(eD,{borderRadius:"full",height:"200",src:o,width:"200"})))),!u&&d&&v.createElement(eO,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},v.createElement(eO,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${d[0]} 0%, ${d[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),v.createElement(eO,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${d[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),v.createElement(eO,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},v.createElement(eO,null,v.createElement(eD,{height:"60",src:o,width:"60",...n?{background:n,borderColor:"generalBorder",borderRadius:"10"}:null})),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},v.createElement(tS,{color:"modalText",size:"14",weight:"bold"},s),v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},t),v.createElement(eO,{marginTop:"14",width:"max"},v.createElement(tT,{href:c,label:e,onClick:a,size:"medium"})))))};function rN({changeWalletStep:e,wallet:t}){let r=tb(),n=(0,v.useContext)(tp),o="compact"===n,{extension:i,extensionDownloadUrl:a,mobileDownloadUrl:s}=t;return(0,v.useEffect)(()=>{rC(),rS(),rj()},[]),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},a&&v.createElement(rR,{actionLabel:`Add to ${r}`,description:"Access your wallet right from your favorite web browser.",iconUrl:r_,isCompact:o,onAction:()=>e((null==i?void 0:i.instructions)?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:`${t.name} for ${r}`,url:a,variant:"browser"}),s&&v.createElement(rR,{actionLabel:"Get the app",description:"Use the mobile wallet to explore the world of Ethereum.",iconAccent:t.iconAccent,iconBackground:t.iconBackground,iconUrl:t.iconUrl,isCompact:o,onAction:()=>{e("DOWNLOAD")},title:`${t.name} for Mobile`,variant:"app"})))}function rF({changeWalletStep:e,wallet:t}){let{downloadUrls:r,qrCode:n}=t;return(0,v.useEffect)(()=>{rC(),rS()},[]),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},v.createElement(eO,{style:{maxWidth:220,textAlign:"center"}},v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"semibold"},"Scan with your phone to download on iOS or Android")),v.createElement(eO,{height:"full"},(null==r?void 0:r.qrCode)?v.createElement(rB,{logoSize:0,size:268,uri:r.qrCode}):null),v.createElement(eO,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},v.createElement(tT,{label:"Continue",onClick:()=>e((null==n?void 0:n.instructions)?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var rL={create:()=>v.createElement(rA,null),install:e=>
2844v.createElement(eD,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>v.createElement(rk,null),scan:()=>v.createElement(rI,null)};function rU({connectWallet:e,wallet:t}){var r,n,o,i;return v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},v.createElement(eO,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},null==(n=null==(r=null==t?void 0:t.qrCode)?void 0:r.instructions)?void 0:n.steps.map((e,r)=>{var n;return v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:r},v.createElement(eO,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},null==(n=rL[e.step])?void 0:n.call(rL,t)),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4"},v.createElement(tS,{color:"modalText",size:"14",weight:"bold"},e.title),v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},e.description)))})),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},v.createElement(tT,{label:"Connect",onClick:()=>e(t)}),v.createElement(eO,{as:"a",className:ey({active:"shrink",hover:"grow"}),display:"block",href:null==(i=null==(o=null==t?void 0:t.qrCode)?void 0:o.instructions)?void 0:i.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},v.createElement(tS,{color:"accentColor",size:"14",weight:"bold"},"Learn More"))))}function rz({wallet:e}){var t,r,n,o;return v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},v.createElement(eO,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},null==(r=null==(t=null==e?void 0:e.extension)?void 0:t.instructions)?void 0:r.steps.map((t,r)=>{var n;return v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:r},v.createElement(eO,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},null==(n=rL[t.step])?void 0:n.call(rL,e)),v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4"},v.createElement(tS,{color:"modalText",size:"14",weight:"bold"},t.title),v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},t.description)))})),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},v.createElement(tT,{label:"Refresh",onClick:window.location.reload.bind(window.location)}),v.createElement(eO,{as:"a",className:ey({active:"shrink",hover:"grow"}),display:"block",href:null==(o=null==(n=null==e?void 0:e.extension)?void 0:n.instructions)?void 0:o.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},v.createElement(tS,{color:"accentColor",size:"14",weight:"bold"},"Learn More"))))}function rH({onClose:e}){let t;let r=tg(),[n,o]=(0,v.useState)(),[i,a]=(0,v.useState)(),[s,c]=(0,v.useState)(),l=!!(null==i?void 0:i.qrCode)&&s,[u,d]=(0,v.useState)(!1),f=(0,v.useContext)(tp),h=f===th.COMPACT,{disclaimer:p}=(0,v.useContext)(td),m=tx().filter(e=>e.ready||!!e.extensionDownloadUrl).sort((e,t)=>e.groupIndex-t.groupIndex),g=function(e,t){let r={};return e.forEach(e=>{let n=t(e);n&&(r[n]||(r[n]=[]),r[n].push(e))}),r}(m,e=>e.groupName),b=e=>{var t,n,o;if(d(!1),e.ready){null==(n=null==(t=null==e?void 0:e.connect)?void 0:t.call(e))||n.catch(()=>{d(!0)});let i=null==(o=e.desktop)?void 0:o.getUri;i&&setTimeout(async()=>{let e=await i();window.open(e,r?"_blank":"_self")},0)}},y=e=>{var t;if(b(e),o(e.id),e.ready){let r=!1;null==(t=null==e?void 0:e.onConnecting)||t.call(e,async()=>{var t,n;if(r)return;r=!0;let o=m.find(t=>e.id===t.id),i=await (null==(t=null==o?void 0:o.qrCode)?void 0:t.getUri());c(i),setTimeout(()=>{a(o),E("CONNECT")},i?0:50);let s=await (null==o?void 0:o.connector.getProvider()),l=null==(n=null==s?void 0:s.signer)?void 0:n.connection;if((null==l?void 0:l.on)&&(null==l?void 0:l.off)){let t=()=>{r(),y(e)}
2844,r=()=>{l.off("close",t),l.off("open",r)};l.on("close",t),l.on("open",r)}})}else a(e),E((null==e?void 0:e.extensionDownloadUrl)?"DOWNLOAD_OPTIONS":"CONNECT")},w=()=>{o(void 0),a(void 0),c(void 0)},E=(e,t=!1)=>{t&&"GET"===e&&"GET"===x?w():t||"GET"!==e?t||"CONNECT"!==e||C("CONNECT"):C("GET"),P(e)},[x,C]=(0,v.useState)("NONE"),[A,P]=(0,v.useState)("NONE"),j=null,k=null,O=null;(0,v.useEffect)(()=>{d(!1)},[A,i]);let S=!!(null==i?void 0:i.extensionDownloadUrl),I=!!(S&&(null==i?void 0:i.mobileDownloadUrl));switch(A){case"NONE":j=v.createElement(rd,{getWallet:()=>E("GET")});break;case"LEARN_COMPACT":j=v.createElement(rd,{compactModeEnabled:h,getWallet:()=>E("GET")}),k="What is a Wallet?",O="NONE";break;case"GET":j=v.createElement(r$,{getWalletDownload:e=>{var t;o(e);let r=m.find(t=>e===t.id),n=null==(t=null==r?void 0:r.downloadUrls)?void 0:t.qrCode,i=!!(null==r?void 0:r.extensionDownloadUrl);a(r),n&&i?E("DOWNLOAD_OPTIONS"):n?E("DOWNLOAD"):E("INSTRUCTIONS_EXTENSION")}}),k="Get a Wallet",O=h?"LEARN_COMPACT":"NONE";break;case"CONNECT":j=i&&v.createElement(rM,{changeWalletStep:E,compactModeEnabled:h,connectionError:u,onClose:e,qrCodeUri:s,reconnect:b,wallet:i}),k=l&&`Scan with ${"WalletConnect"===i.name?"your phone":i.name}`,O=h?"NONE":null,t=h?w:()=>{};break;case"DOWNLOAD_OPTIONS":j=i&&v.createElement(rN,{changeWalletStep:E,wallet:i}),k=i&&`Get ${i.name}`,O=I?x:null;break;case"DOWNLOAD":j=i&&v.createElement(rF,{changeWalletStep:E,wallet:i}),k=i&&`Install ${i.name}`,O=I?"DOWNLOAD_OPTIONS":x;break;case"INSTRUCTIONS_MOBILE":j=i&&v.createElement(rU,{connectWallet:y,wallet:i}),k=i&&`Get started with ${h&&i.shortName||i.name}`,O="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":j=i&&v.createElement(rz,{wallet:i}),k=i&&`Get started with ${h&&i.shortName||i.name}`,O="DOWNLOAD_OPTIONS"}return v.createElement(eO,{display:"flex",flexDirection:"row",style:{maxHeight:h?468:504}},(!h||"NONE"===A)&&v.createElement(eO,{className:h?"_1vwt0cg4":"_1vwt0cg3",display:"flex",flexDirection:"column",marginTop:"16"},v.createElement(eO,{display:"flex",justifyContent:"space-between"},h&&p&&v.createElement(eO,{marginLeft:"16",width:"28"},v.createElement(rp,{onClick:()=>E("LEARN_COMPACT")})),h&&!p&&v.createElement(eO,{marginLeft:"16",width:"28"}),v.createElement(eO,{marginLeft:h?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},v.createElement(tS,{as:"h1",color:"modalText",id:"rk_connect_title",size:"18",weight:"heavy"},"Connect a Wallet")),h&&v.createElement(eO,{marginRight:"16"},v.createElement(t_,{onClose:e}))),v.createElement(eO,{className:"_1vwt0cg2 ju367v75 ju367v7q",paddingBottom:"18"},Object.entries(g).map(([e,t],r)=>t.length>0&&v.createElement(v.Fragment,{key:r},e?v.createElement(eO,{marginBottom:"8",marginTop:"16",marginX:"6"},v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"bold"},e)):null,v.createElement(eO,{display:"flex",flexDirection:"column",gap:"4"},t.map(e=>v.createElement(rv,{currentlySelected:e.id===n,iconBackground:e.iconBackground,iconUrl:e.iconUrl,key:e.id,name:e.name,onClick:()=>y(e),ready:e.ready,recent:e.recent,testId:`wallet-option-${e.id}`})))))),h&&v.createElement(v.Fragment,null,v.createElement(eO,{background:"generalBorder",height:"1",marginTop:"-1"}),p?v.createElement(eO,{paddingX:"24",paddingY:"16",textAlign:"center"},v.createElement(p,{Link:rl,Text:ru})):v.createElement(eO,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},v.createElement(eO,{paddingY:"4"},v.createElement(tS,{color:"modalTextSecondary",size:"14",weight:"medium"},"New to Ethereum wallets?")),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},v.createElement(eO,{className:ey({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>E("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},v.createElement(tS,{color:"accentColor",size:"14",weight:"bold"},"Learn More")))))),(!h||"NONE"!==A)&&v.createElement(v.Fragment,null,!h&&v.createElement(eO,{background:"generalBorder",minWidth:"1",width:"1"}),v.createElement(eO,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},v.createElement(eO,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},v.createElement(eO,{width:"28"},O&&v.createElement(eO,{as:"button",className:ey({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{O&&E(O,!0),null==t||t()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},v.createElement(rf,null))),v.createElement(eO,{display:"flex",justifyContent:"center",style:{flexGrow:1}},k&&v.createElement(tS,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},k)),v.createElement(t_,{onClose:e})),v.createElement(eO,{display:"flex",flexDirection:"column",style:{minHeight:h?396:432}},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},j)))))}function rq({onClose:e,wallet:t}
2844){let{connect:r,connector:n,iconBackground:o,iconUrl:i,id:a,mobile:s,name:c,onConnecting:l,ready:u,shortName:d}=t,f=null==s?void 0:s.getUri,h=rm(i);return v.createElement(eO,{as:"button",color:u?"modalText":"modalTextSecondary",disabled:!u,fontFamily:"body",key:a,onClick:(0,v.useCallback)(async()=>{"walletConnect"===a&&(null==e||e()),null==r||r();let t=!1;null==l||l(async()=>{if(!t&&(t=!0,f)){let e=await f();if(("walletConnect"===n.id||"walletConnectLegacy"===n.id)&&function({mobileUri:e,name:t}){localStorage.setItem(tM,JSON.stringify({href:e.split("?")[0],name:t}))}({mobileUri:e,name:c}),e.startsWith("http")){let t=document.createElement("a");t.href=e,t.target="_blank",t.rel="noreferrer noopener",t.click()}else window.location.href=e}})},[n,r,f,l,e,c,a]),ref:h,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${a}`,type:"button",width:"full"},v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},v.createElement(eO,{paddingBottom:"8",paddingTop:"10"},v.createElement(eD,{background:o,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:i,width:"60"})),v.createElement(eO,{display:"flex",flexDirection:"column",textAlign:"center"},v.createElement(tS,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},v.createElement(eO,{as:"span",position:"relative"},null!=d?d:c,!t.ready&&" (unsupported)")),t.recent&&v.createElement(tS,{color:"accentColor",size:"12",weight:"medium"},"Recent"))))}function rG({onClose:e}){var t;let r=tx(),{disclaimer:n,learnMoreUrl:o}=(0,v.useContext)(td),i=null,a=null,s=!1,c=null,[l,u]=(0,v.useState)("CONNECT"),d=eA();switch(l){case"CONNECT":i="Connect a Wallet",s=!0,a=v.createElement(eO,null,v.createElement(eO,{background:"profileForeground",className:"_1am14410",display:"flex",paddingBottom:"20",paddingTop:"6"},v.createElement(eO,{display:"flex",style:{margin:"0 auto"}},r.filter(e=>e.ready).map(t=>v.createElement(eO,{key:t.id,paddingX:"20"},v.createElement(eO,{width:"60"},v.createElement(rq,{onClose:e,wallet:t})))))),v.createElement(eO,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},v.createElement(eO,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},v.createElement(tS,{color:"modalText",size:"16",weight:"bold"},"What is a Wallet?"),v.createElement(tS,{color:"modalTextSecondary",size:"16"},"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\xa0every\xa0website."))),v.createElement(eO,{paddingTop:"32",paddingX:"20"},v.createElement(eO,{display:"flex",gap:"14",justifyContent:"center"},v.createElement(tT,{label:"Get a Wallet",onClick:()=>u("GET"),size:"large",type:"secondary"}),v.createElement(tT,{href:o,label:"Learn More",size:"large",type:"secondary"}))),n&&v.createElement(eO,{marginTop:"28",marginX:"32",textAlign:"center"},v.createElement(n,{Link:rl,Text:ru})));break;case"GET":{i="Get a Wallet",c="CONNECT";let e=null==(t=null==r?void 0:r.filter(e=>{var t,r,n;return(null==(t=e.downloadUrls)?void 0:t.ios)||(null==(r=e.downloadUrls)?void 0:r.android)||(null==(n=e.downloadUrls)?void 0:n.mobile)}))?void 0:t.splice(0,3);a=v.createElement(eO,null,v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},e.map((t,r)=>{let{downloadUrls:n,iconBackground:o,iconUrl:i,name:a}=t;return(null==n?void 0:n.ios)||(null==n?void 0:n.android)||(null==n?void 0:n.mobile)?v.createElement(eO,{display:"flex",gap:"16",key:t.id,paddingX:"20",width:"full"},v.createElement(eO,{style:{minHeight:48,minWidth:48}},v.createElement(eD,{background:o,borderColor:"generalBorder",borderRadius:"10",height:"48",src:i,width:"48"})),v.createElement(eO,{display:"flex",flexDirection:"column",width:"full"},v.createElement(eO,{alignItems:"center",display:"flex",height:"48"},v.createElement(eO,{width:"full"},v.createElement(tS,{color:"modalText",size:"18",weight:"bold"},a)),v.createElement(tT,{href:(d?null==n?void 0:n.ios:null==n?void 0:n.android)||(null==n?void 0:n.mobile),label:"GET",size:"small",type:"secondary"})),r<e.length-1&&v.createElement(eO,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"}))):null})),v.createElement(eO,{style:{marginBottom:"42px"}}),v.createElement(eO,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},v.createElement(eO,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},v.createElement(tS,{color:"modalText",size:"16",weight:"bold"},"Not what youâre looking for?"),v.createElement(tS,{color:"modalTextSecondary",size:"16"},"Select a wallet on the main screen to get started with a different wallet provider."))))}}return v.createElement(eO,{display:"flex",flexDirection:"column",paddingBottom:"36"},v.createElement(eO,{background:s?"profileForeground":"modalBackgroun
2844d",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},v.createElement(eO,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},c&&v.createElement(eO,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},v.createElement(eO,{alignItems:"center",as:"button",className:ey({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>u(c),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},v.createElement(rf,null))),v.createElement(eO,{marginTop:"4",textAlign:"center",width:"full"},v.createElement(tS,{as:"h1",color:"modalText",id:"rk_connect_title",size:"20",weight:"bold"},i)),v.createElement(eO,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},v.createElement(eO,{style:{marginBottom:-20,marginTop:-20}},v.createElement(t_,{onClose:e}))))),v.createElement(eO,{display:"flex",flexDirection:"column"},a))}function rW({onClose:e}){return eP()?v.createElement(rG,{onClose:e}):v.createElement(rH,{onClose:e})}function rK({onClose:e,open:t}){let r="rk_connect_title",n=ex();return"disconnected"===n?v.createElement(tV,{onClose:e,open:t,titleId:r},v.createElement(tY,{bottomSheetOnMobile:!0,padding:"0",wide:!0},v.createElement(rW,{onClose:e}))):"unauthenticated"===n?v.createElement(tV,{onClose:e,open:t,titleId:r},v.createElement(tY,{bottomSheetOnMobile:!0,padding:"0"},v.createElement(t$,{onClose:e}))):null}function rV(){let[e,t]=(0,v.useState)(!1);return{closeModal:(0,v.useCallback)(()=>t(!1),[]),isModalOpen:e,openModal:(0,v.useCallback)(()=>t(!0),[])}}var rQ=(0,v.createContext)({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1});function rZ({children:e}){let{closeModal:t,isModalOpen:r,openModal:n}=rV(),{closeModal:o,isModalOpen:i,openModal:a}=rV(),{closeModal:s,isModalOpen:c,openModal:l}=rV(),u=ex(),{chain:d}=(0,P.LN)(),f=!(null==d?void 0:d.unsupported);
2844function h({keepConnectModalOpen:e=!1}={}){e||t(),o(),s()}let p="unauthenticated"===eE();return(0,P.mA)({onConnect:()=>h({keepConnectModalOpen:p}),onDisconnect:()=>h()}),v.createElement(rQ.Provider,{value:(0,v.useMemo)(()=>({accountModalOpen:i,chainModalOpen:c,connectModalOpen:r,openAccountModal:f&&"connected"===u?a:void 0,openChainModal:"connected"===u?l:void 0,openConnectModal:"disconnected"===u||"unauthenticated"===u?n:void 0}),[u,f,i,c,r,a,l,n])},e,v.createElement(rK,{onClose:t,open:r}),v.createElement(ri,{onClose:o,open:i}),v.createElement(rc,{onClose:s,open:c}))}var rY=()=>{};function rJ({children:e}){var t,r,n,o;let i=e5(),{address:a}=(0,P.mA)(),s=e7(a),c=e4(s),{data:l}=(0,P.KQ)({address:a}),{chain:u}=(0,P.LN)(),d=e3(),f=null!=(t=eE())?t:void 0,h=u?d[u.id]:void 0,p=null!=(r=null==h?void 0:h.name)?r:void 0,m=null!=(n=null==h?void 0:h.iconUrl)?n:void 0,g=null!=(o=null==h?void 0:h.iconBackground)?o:void 0,b=e_(m),y=(0,v.useContext)(tm),w=ta().some(({status:e})=>"pending"===e)&&y,E=l?`${t0(parseFloat(l.formatted))} ${l.symbol}`:void 0,{openConnectModal:x}=function(){let{connectModalOpen:e,openConnectModal:t}=(0,v.useContext)(rQ);return{connectModalOpen:e,openConnectModal:t}}(),{openChainModal:C}=function(){let{chainModalOpen:e,openChainModal:t}=(0,v.useContext)(rQ);return{chainModalOpen:e,openChainModal:t}}(),{openAccountModal:A}=function(){let{accountModalOpen:e,openAccountModal:t}=(0,v.useContext)(rQ);return{accountModalOpen:e,openAccountModal:t}}(),{accountModalOpen:j,chainModalOpen:k,connectModalOpen:O}=function(){let{accountModalOpen:e,chainModalOpen:t,connectModalOpen:r}=(0,v.useContext)(rQ);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:r}}();return v.createElement(v.Fragment,null,e({account:a?{address:a,balanceDecimals:null==l?void 0:l.decimals,balanceFormatted:null==l?void 0:l.formatted,balanceSymbol:null==l?void 0:l.symbol,displayBalance:E,displayName:s?t2(s):t1(a),ensAvatar:null!=c?c:void 0,ensName:null!=s?s:void 0,hasPendingTransactions:w}:void 0,accountModalOpen:j,authenticationStatus:f,chain:u?{hasIcon:!!m,iconBackground:g,iconUrl:b,id:u.id,name:null!=p?p:u.name,unsupported:u.unsupported}:void 0,chainModalOpen:k,connectModalOpen:O,mounted:i,openAccountModal:null!=A?A:rY,openChainModal:null!=C?C:rY,openConnectModal:null!=x?x:rY}))}rJ.displayName="ConnectButton.Custom";var rX={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function r0({accountStatus:e=rX.accountStatus,chainStatus:t=rX.chainStatus,label:r=rX.label,showBalance:n=rX.showBalance}){let o=e2(),i=ex();return v.createElement(rJ,null,({account:a,chain:s,mounted:c,openAccountModal:l,openChainModal:u,openConnectModal:d})=>{var f,h,p;let m=c&&"loading"!==i,g=null!=(f=null==s?void 0:s.unsupported)&&f;return v.createElement(eO,{display:"flex",gap:"12",...!m&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},m&&a&&"connected"===i?v.createElement(v.Fragment,null,s&&(o.length>1||g)&&v.createElement(eO,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:g?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:ey({active:"shrink",hover:"grow"}),color:g?"connectButtonTextError":"connectButtonText",display:eh(t,e=>"none"===e?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:g?"unsupported":"supported",onClick:u,paddingX:"10",paddingY:"8",testId:g?"wrong-network-button":"chain-button",transition:"default",type:"button"},g?v.createElement(eO,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},"Wrong network"):v.createElement(eO,{alignItems:"center",display:"flex",gap:"6"},s.hasIcon?v.createElement(eO,{display:eh(t,e=>"full"===e||"icon"===e?"block":"none"),height:"24",width:"24"},v.createElement(eD,{alt:null!=(h=s.name)?h:"Chain icon",background:s.iconBackground,borderRadius:"full",height:"24",src:s.iconUrl,width:"24"})):null,v.createElement(eO,{display:eh(t,e=>"icon"!==e||s.iconUrl?"full"===e||"name"===e?"block":"none":"block")},null!=(p=s.name)?p:s.id)),v.createElement(eU,null)),!g&&v.createElement(eO,{alignItems:"center",as:"button",background:"connectButtonBackgroun
2844d",borderRadius:"connectButton",boxShadow:"connectButton",className:ey({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:l,testId:"account-button",transition:"default",type:"button"},a.displayBalance&&v.createElement(eO,{display:eh(n,e=>e?"block":"none"),padding:"8",paddingLeft:"12"},a.displayBalance),v.createElement(eO,{background:ep(n)[eP()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},v.createElement(eO,{alignItems:"center",display:"flex",gap:"6",height:"24"},v.createElement(eO,{display:eh(e,e=>"full"===e||"avatar"===e?"block":"none")},v.createElement(eL,{address:a.address,imageUrl:a.ensAvatar,loading:a.hasPendingTransactions,size:24})),v.createElement(eO,{alignItems:"center",display:"flex",gap:"6"},v.createElement(eO,{display:eh(e,e=>"full"===e||"address"===e?"block":"none")},a.displayName),v.createElement(eU,null)))))):v.createElement(eO,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:ey({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:d,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},r))})}r0.__defaultProps=rX,r0.Custom=rJ},31407:function(e,t,r){"use strict";r.d(t,{$$:function(){return ey},$X:function(){return v},AE:function(){return f},AQ:function(){return eF},Ag:function(){return ev},Ai:function(){return J},B$:function(){return ez},DG:function(){return b},DM:function(){return i},E0:function(){return eh},E7:function(){return eL},EA:function(){return eM},Fg:function(){return ec},Fo:function(){return ed},HM:function(){return ex},Hf:function(){return eO},Hp:function(){return eR},IY:function(){return ew},J0:function(){return u},J9:function(){return S},Jn:function(){return o},K9:function(){return eA},KH:function(){return R},LC:function(){return eg},N:function(){return ef},NJ:function(){return eE},OQ:function(){return B},P7:function(){return k},Pl:function(){return el},Q0:function(){return j},Q7:function(){return a},Q8:function(){return z},QO:function(){return eD},Qi:function(){return eN},RJ:function(){return W},Rp:function(){return x},Sz:function(){return q},UW:function(){return eI},Vy:function(){return $},WZ:function(){return U},Yu:function(){return ea},_1:function(){return H},ac:function(){return ee},cO:function(){return F},ci:function(){return P},cj:function(){return ej},cn:function(){return c},d2:function(){return m},dL:function(){return e_},dV:function(){return G},eF:function(){return X},eG:function(){return p},eb:function(){return I},fN:function(){return eq},fX:function(){return h},gr:function(){return eu},hv:function(){return em},iF:function(){return g},jM:function(){return eU},jO:function(){return d},jt:function(){return eC},kI:function(){return A},kk:function(){return eT},l7:function(){return en},lO:function(){return eS},lx:function(){return eH},mN:function(){return et},mn:function(){return es},ov:function(){return V},pL:function(){return s},pk:function(){return D},qU:function(){return y},q_:function(){return Z},qv:function(){return N},r7:function(){return E},rl:function(){return Q},sV:function(){return C},st:function(){return e$},tL:function(){return _},tb:function(){return Y},tg:function(){return w},tm:function(){return K},ue:function(){return l},uy:function(){return eb},v$:function(){return L},v4:function(){return er},v8:function(){return ei},vA:function(){return T},vk:function(){return ep},vo:function(){return eP},ws:function(){return M},xB:function(){return ek},y1:function(){return O},yS:function(){return eB},yX:function(){return n},yu:function(){return eo}});var n={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]}
2844,default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},o={id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0},i={id:1313161554,name:"Aurora",network:"aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-mainnet.infura.io/v3"]},default:{http:["https://mainnet.aurora.dev"]},public:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://aurorascan.dev"},default:{name:"Aurorascan",url:"https://aurorascan.dev"}}},a={id:1313161555,name:"Aurora Testnet",network:"aurora-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-testnet.infura.io/v3"]},default:{http:["https://testnet.aurora.dev"]},public:{http:["https://testnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"},default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"}},testnet:!0},s={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}},c={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0},l={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Base",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://developer-access-mainnet.base.org"]},public:{http:["https://developer-access-mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},u={id:84531,network:"base-goerli",name:"Base Goerli",nativeCurrency:{name:"Base Goerli",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]},public:{http:["https://goerli.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://goerli.basescan.org"},default:{name:"Basescan",url:"https://goerli.basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988}},testnet:!0},d={id:288,name:"Boba Network",network:"boba",nativeCurrency:{decimals:18,name:"Boba",symbol:"BOBA"},rpcUrls:{default:{http:["https://mainnet.boba.network"]},public:{http:["https://mainnet.boba.network"]}},blockExplorers:{etherscan:{name:"BOBAScan",url:"https://bobascan.com"},default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}
2844,f={id:1039,name:"Bronos",network:"bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]},public:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}},h={id:1038,name:"Bronos Testnet",network:"bronos-testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]},public:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0},p={id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}},m={id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0},g={id:7700,name:"Canto",network:"canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]},public:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}},b={id:42220,name:"Celo",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1},v={id:44787,name:"Alfajores",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0},y={id:17323,name:"Cannoli",network:"celo-cannoli",nativeCurrency:{decimals:18,name:"CELO",symbol:"C-CELO"},rpcUrls:{default:{http:["https://forno.cannoli.celo-testnet.org"]},public:{http:["https://forno.cannoli.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/cannoli"}},contracts:{multicall3:{address:"0x5Acb0aa8BF4E8Ff0d882Ee187140713C12BF9718",blockCreated:87429}},testnet:!0},w={id:25,name:"Cronos",network:"cronos",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://node.croswap.com/rpc"]},public:{http:["https://node.croswap.com/rpc"]}},blockExplorers:{default:{name:"CronosScan",url:"https://cronoscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}},E={id:3737,network:"crossbell",name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]},public:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io"}},contracts:{multicall3:{address:"0xBB9759009cDaC82774EfC84D94cD9F7440f75Fcf",blockCreated:23499787}}},x={id:53935,name:"DFK Chain",network:"dfk",nativeCurrency:{decimals:18,name:"Jewel",symbol
2844:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]},public:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{etherscan:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"},default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}}},C={id:2e3,name:"Dogechain",network:"dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]},public:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{etherscan:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"},default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"}}},A={id:9001,name:"Evmos",network:"evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]},public:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}},P={id:9e3,name:"Evmos Testnet",network:"evmos-testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]},public:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}},j={id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}},k={id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}},O={id:314,name:"Filecoin Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}},S={id:314159,name:"Filecoin Calibration",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}},I={id:3141,name:"Filecoin Hyperspace",network:"filecoin-hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]},public:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"},filscan:{name:"Filscan",url:"https://hyperspace.filscan.io"}}},T={id:14,name:"Flare Mainnet",network:"flare-mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]},public:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network"}}}
2844,B={id:114,name:"Coston2",network:"coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]},public:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network"}},testnet:!0},_={id:31337,name:"Foundry",network:"foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}},D={id:4689,name:"IoTeX",network:"iotex",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]},public:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}}},$={id:4690,name:"IoTeX Testnet",network:"iotex-testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]},public:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}}},M={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},R={id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"]},public:{http:["https://rpc.gnosischain.com"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}}},N={id:10200,name:"Gnosis Chiado",network:"chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"]},public:{http:["https://rpc.chiadochain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net"}}},F={id:31337,name:"Hardhat",network:"hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}},L={id:16666e5,name:"Harmony One",network:"harmony",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{public:{http:["https://rpc.ankr.com/harmony"]},default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}},U={id:11235,name:"HAQQ Mainnet",network:"haqq-mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]},public:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network"}}},z={id:54211,name:"HAQQ Testedge 2",network:"haqq-testedge-2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]},public:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network"}}},H={id:8217,name:"Klaytn",network:"klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://cypress.fautor.app/archive"]},public:{http:["https://cypress.fautor.app/archive"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://scope.klaytn.com"},default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}}},q={id:59140,name:"Linea Goerli Testnet",network:"linea-testnet",n
2844ativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://consensys-zkevm-goerli-prealpha.infura.io/v3"],webSocket:["wss://consensys-zkevm-goerli-prealpha.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"BlockScout",url:"https://explorer.goerli.linea.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0},G={id:1337,name:"Localhost",network:"localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}},W={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},K={id:1088,name:"Metis",network:"andromeda",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]},public:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}},V={id:599,name:"Metis Goerli",network:"metis-goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]},public:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}},Q={id:7518,network:"MEVerse",name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]},public:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}},Z={id:4759,network:"MEVerse Testnet",name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]},public:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0},Y={id:1287,name:"Moonbase Alpha",network:"moonbase-alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]},public:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonbase.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0},J={id:1284,name:"Moonbeam",network:"moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{public:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}
2844,default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1},X={id:1285,name:"Moonriver",network:"moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{public:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]},default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonriver.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1},ee={id:4242,name:"Nexi",network:"nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]},public:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{etherscan:{name:"NexiScan",url:"https://www.nexiscan.com"},default:{name:"NexiScan",url:"https://www.nexiscan.com"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}},et={id:66,name:"OKC",network:"okc",nativeCurrency:{decimals:18,name:"OKT",symbol
2844:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]},public:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}},er={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},en={id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},eo={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},ei={id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://matic-mumbai.chainstacklabs.com"]},public:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0},ea={id:1442,name:"Polygon zkEVM Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]},public:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://explorer.public.zkevm-test.net"},default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}},es={id:1101,name:"Polygon zkEVM",network:"polygon-zkevm",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]},public:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}},ec={id:369,network:"pulsechain",name:"PulseChain",nativeCurrency:{name:"Pulse",symbol
2844:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]},public:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},el={id:943,network:"pulsechainV4",name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]},public:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},eu={id:534353,name:"Scroll Testnet",network:"scroll-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]},public:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io"}},testnet:!0},ed={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},ef={id:391845894,name:"SKALE | Block Brawlers",network:"skale-brawl",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"]},public:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}},eh={id:1564830818,name:"SKALE | Calypso NFT Hub",network:"skale-calypso",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"]},public:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{}},ep={id:344106930,name:"SKALE | Calypso NFT Hub Testnet",network:"skale-calypso-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"}},contracts:{},testnet:!0},em={id:1351057110,name:"SKALE | Chaos Testnet",network:"skale-chaos-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"}},contracts:{},testnet:!0},eg={id:1026062157,name:"SKALE | CryptoBlades",network:"skale-cryptoblades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"]},public:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}},eb={id:2046399126,name:"SKALE | Crypto Colosseum",network:"skale-crypto-coloseeum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"]},public:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}},ev={id:2046399126,name:"SKALE | Europa Liquidity Hub",network:"skale-europa",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"]},public:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{}},ey={id:476158412,name:"SKALE | Europa Liquidity Hub Testnet",network:"skale-europa-testnet",n
2844ativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"}},contracts:{},testnet:!0},ew={id:2139927552,name:"SKALE | Exorde",network:"skale-exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"]},public:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}},eE={id:1273227453,name:"SKALE | Human Protocol",network:"skale-human-protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"]},public:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}},ex={id:1482601649,name:"SKALE | Nebula Gaming Hub",network:"skale-nebula",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"]},public:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{}},eC={id:503129905,name:"SKALE | Nebula Gaming Hub Testnet",network:"skale-nebula-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"}},contracts:{},testnet:!0},eA={id:278611351,name:"SKALE | Razor Network",network:"skale-razor",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"]},public:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}},eP={id:1350216234,name:"SKALE | Titan Community Hub",network:"skale-titan",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"]},public:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{}},ej={id:1517929550,name:"SKALE | Titan Community Hub Testnet",network:"skale-titan-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"]}},blockExplorers:{etherscan:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"}},contracts:{},testnet:!0},ek={id:19,name:"Songbird Mainnet",network:"songbird-mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]},public:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network"}}}
2844,eO={id:16,name:"Coston",network:"coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]},public:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network"}},testnet:!0},eS={id:8082,name:"Shardeum Sphinx",network:"shmSphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]},public:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0},eI={id:57,name:"Syscoin Mainnet",network:"syscoin",nativeCurrency:{decimals:8,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"]},public:{http:["https://rpc.syscoin.org"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org"}},contracts:{multicall3:{address:"0x000562033783B1136159E10d976B519C929cdE8e",blockCreated:80637}}},eT={id:841,name:"Taraxa Mainnet",network:"taraxa",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]},public:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}},eB={id:842,name:"Taraxa Testnet",network:"taraxa-testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]},public:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0},e_={id:40,name:"Telos",network:"telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]},public:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}},eD={id:41,name:"Telos",network:"telosTestnet",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]},public:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0},e$={id:997,name:"5ireChain Thunder Testnet",network:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]},public:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0},eM={id:888,name:"Wanchain",network:"wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]},public:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{etherscan:{name:"WanScan",url:"https://wanscan.org"},default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}},eR={id:999,name:"Wanchain Testnet",network:"wanchainTestnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]},public:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{etherscan:{name:"WanScanTest",url:"https://wanscan.org"},default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0},eN={id:50,name:"XinFin Network",network:"xdc",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]},public:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}}},eF={id:51,name:"Apothem Network",network:"xdc-testnet",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]},public:{http:["https://erpc.apothem.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.apothem.network"},default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}}},eL={id:1337803,network:"zhejiang",name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol
2844:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]},public:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{beaconchain:{name:"Etherscan",url:"https://zhejiang.beaconcha.in"},blockscout:{name:"Blockscout",url:"https://blockscout.com/eth/zhejiang-testnet"},default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0},eU={id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},ez={id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]},public:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},eH={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882}}},eq={id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123}},testnet:!0}},53516:function(e,t,r){"use strict";function n(e){return"string"==typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"==typeof e?Number(e):e}r.d(t,{J:function(){return n}})},55210:function(e,t,r){"use strict";r.d(t,{_:function(){return f}});var n,o=r(11588),i=r(53516),a=r(16343),s=r(92221),c=r(42455),l=r(67629),u=r(19575),d=r(46872),f=class extends a.wR{constructor({chains:e,options:t}={}
2844){let r={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;let e=window.ethereum;return e?.providers?e.providers[0]:e},...t};super({chains:e,options:r}),(0,a.ov)(this,"id","injected"),(0,a.ov)(this,"name"),(0,a.ov)(this,"ready"),(0,a.Ko)(this,n,void 0),(0,a.ov)(this,"shimDisconnectKey",`${this.id}.shimDisconnect`),(0,a.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,s.K)(e[0])})}),(0,a.ov)(this,"onChainChanged",e=>{let t=(0,i.J)(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,a.ov)(this,"onDisconnect",async e=>{if(1013===e.code){let e=await this.getProvider();if(e){let e=await this.getAccount();if(e)return}}this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey)});let o=r.getProvider();if("string"==typeof r.name)this.name=r.name;else if(o){let e=function(e){if(!e)return"Injected";let t=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isStatus?"Status":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0;if(e.providers?.length){let r=new Set,n=1;for(let o of e.providers){let e=t(o);e||(e=`Unknown Wallet #${n}`,n+=1),r.add(e)}let o=[...r];return o.length?o:o[0]??"Injected"}return t(e)??"Injected"}(o);r.name?this.name=r.name(e):"string"==typeof e?this.name=e:this.name=e[0]}else this.name="Injected";this.ready=!!o}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new o.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let r=await t.request({method:"eth_requestAccounts"}),n=(0,s.K)(r[0]),i=await this.getChainId(),a=this.isChainUnsupported(i);if(e&&i!==e){let t=await this.switchChain(e);i=t.id,a=this.isChainUnsupported(i)}return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:n,chain:{id:i,unsupported:a}}}catch(e){if(this.isUserRejectedRequestError(e))throw new c.ab(e);if(-32002===e.code)throw new c.pT(e);throw e}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new o.N;return(0,s.K)((await e.request({method:"eth_accounts"}))[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new o.N;return e.request({method:"eth_chainId"}).then(i.J)}async getProvider(){let e=this.options.getProvider();return e&&(0,a.qx)(this,n,e),(0,a.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,l.K)({account:r,chain:n,transport:(0,u.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let e=await this.getProvider();if(!e)throw new o.N;let t=await this.getAccount();return!!t}catch{return!1}}async switchChain(e){let t=await this.getProvider();if(!t)throw new o.N;let r=(0,d.eC)(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise(t=>this.on("change",({chain:r})=>{r?.id===e&&t()}))]),this.chains.find(t=>
2844t.id===e)??{id:e,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(i){let n=this.chains.find(t=>t.id===e);if(!n)throw new o.B({chainId:e,connectorId:this.id});if(4902===i.code||i?.data?.originalError?.code===4902)try{await t.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:n.name,nativeCurrency:n.nativeCurrency,rpcUrls:[n.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(n)}]});let o=await this.getChainId();if(o!==e)throw new c.ab(Error("User rejected switch after adding network."));return n}catch(e){throw new c.ab(e)}if(this.isUserRejectedRequestError(i))throw new c.ab(i);throw new c.x3(i)}}async watchAsset({address:e,decimals:t=18,image:r,symbol:n}){let i=await this.getProvider();if(!i)throw new o.N;return i.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:r,symbol:n}}})}isUserRejectedRequestError(e){return 4001===e.code}};n=new WeakMap},16343:function(e,t,r){"use strict";r.d(t,{wR:function(){return b},Ko:function(){return p},ac:function(){return h},U9:function(){return g},qx:function(){return m},ov:function(){return d}});var n=r(26729),o=r(31407),i=r(61786);r(90169),r(46872),r(86101),r(94216),r(4656),r(23822),r(92960),r(69977),r(21973),r(66054),r(97451),r(9040);var a=(r(26873),r(41327));r(54574),o.yX,o.Jn,o.DM,o.Q7,o.pL,o.cn,o.ue,o.J0,o.jO,o.AE,o.fX,o.eG,o.d2,o.iF,o.DG,o.$X,o.qU,o.tg,o.r7,o.Rp,o.sV,o.kI,o.ci,o.Q0,o.P7,o.y1,o.J9,o.eb,o.vA,o.OQ,o.tL,o.pk,o.Vy;let s=(0,i.ax)(o.ws);o.KH,o.qv,o.WZ,o.Q8,o.cO,o.v$,o._1,o.Sz,o.dV;let c=(0,i.ax)(o.RJ);o.tm,o.ov,o.rl,o.q_,o.tb,o.Ai,o.eF,o.ac,o.mN,o.v4,o.l7,o.yu,o.v8,o.mn,o.Yu,o.Fg,o.Pl,o.gr,o.Fo,o.N,o.E0,o.vk,o.hv,o.LC,o.uy,o.Ag,o.$$,o.IY,o.NJ,o.HM,o.jt,o.K9,o.vo,o.cj,o.xB,o.Hf,o.lO,o.UW,o.kk,o.yS,o.dL,o.QO,o.st,o.EA,o.Hp,o.Qi,o.AQ,o.E7,o.jM,o.B$,o.lx,o.fN;var l=Object.defineProperty,u=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t,r)=>(u(e,"symbol"!=typeof t?t+"":t,r),r),f=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},h=(e,t,r)=>(f(e,t,"read from private field"),r?r.call(e):t.get(e)),p=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},m=(e,t,r,n)=>(f(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),g=(e,t,r)=>(f(e,t,"access private method"),r),b=class extends n{constructor({chains:e=[c,s],options:t}){super(),d(this,"chains"),d(this,"options"),d(this,"storage"),this.chains=e,this.options=t}getBlockExplorerUrls(e){let{default:t,...r}=e.blockExplorers??{};if(t)return[t.url,...Object.values(r).map(e=>e.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}}},11588:function(e,t,r){"use strict";r.d(t,{B:function(){return o},N:function(){return i}});var n=r(16343),o=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),(0,n.ov)(this,"name","ChainNotConfiguredForConnectorError")}},i=class extends Error{constructor(){super(...arguments),(0,n.ov)(this,"name","ConnectorNotFoundError"),(0,n.ov)(this,"message","Connector not found")}}},48526:function(e,t,r){"use strict";r.d(t,{QB:function(){return t$},$j:function(){return tJ},_g:function(){return tZ},o6:function(){return tK},vZ:function(){return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){let n,o;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)&&Array.isArray(r)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();let i=Object.keys(t);if((n=i.length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(n&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}},zP:function(){return tX},EG:function(){return re},RQ:function(){return rl},w6:function(){return rs},Lk:function(){return rc},D0:function(){return rt},Hy:function(){return rr},uV:function(){return t2},jr:function(){return t3},wp:function(){return tW},l:function(){return rn},If:function(){return ro},uH:function(){return ri},QC:function(){return ra},pC:function(){return t5},fq:function(){return t8}});var n,o,i,a,s,c=r(55210),l=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},u=(e,t,r)=>(l(e,t,"read from private field"),r?r.call(e):t.get(e)),d=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},f=(e,t,r,n)=>(l(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),h=(e,t,r)=>(l(e,t,"access private method"),r),p=r(48439),m=r(1920),g=r(31826),b=r(96606),v=r(61786),y=r(26873),w=r(46872),E=r(35554),x=r(69977),C=r(90722);function A(e,t){if(!(e instanceof x.G))return!1;let r=e.walk(e=>e instanceof C.Lu);return r instanceof C.Lu&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===E.$[50])}var P=r(9040),j=r(41327),k=r(90707),O=r(43474);function S(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,w.ci)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let n=(0,O.i)(r[e]),o=n?(0,j.O0)(n):(0,k.w)((0,j.qX)(r[e]),"bytes");t=(0,k.w)((0,P.zo)([t,o]),"bytes")}return(0,w.ci)(t)}var I=r(30514);function T(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,j.qX)(t).byteLength+2),n=0,o=t.split(".");for(let e=0;e<o.length;e++){let t=(0,j.qX)(o[e]);t.byteLength>255&&(t=(0,j.qX)(`[${(0,I.d)(o[e]).slice(2)}]`)),r[n]=t.length,r.set(t,n+1),n+=t.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}var B=r(30826),_=r(83161);async function D(e,{abi:t,address:r,args:n,functionName:o,...i}){let a=(0,b.R)({abi:t,args:n,functionName:o});try{let{data:s}=await (0,_.R)(e,{data:a,to:r,...i});return(0,g.k)({abi:t,args:n,functionName:o,data:s||"0x"})}catch(e){throw(0,B.S)(e,{abi:t,address:r,args:n,docsPath:"/docs/contract/readContract",functionName:o})}}async function $(e,{blockNumber:t,blockTag:r,coinType:n,name:o,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,v.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let i=(0,b.R)({abi:m.X$,functionName:"addr",...null!=n?{args:[S(o),BigInt(n)]}:{args:[S(o)]}}),s=await D(e,{address:a,abi:m.k3,functionName:"resolve",args:[(0,w.NC)(T(o
2844)),i],blockNumber:t,blockTag:r});if("0x"===s[0])return null;let c=(0,y.f)((0,g.k)({abi:m.X$,args:null!=n?[S(o),BigInt(n)]:void 0,functionName:"addr",data:s[0]}));if("0x"===c||"0x00"===(0,y.f)(c))return null;return c}catch(e){if(A(e,"resolve"))return null;throw e}}class M extends x.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class R extends x.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class N extends x.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class F extends x.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}let L=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,U=/^(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>\/.*)?$/,z=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,H=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function q(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function G(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function W({uri:e,gatewayUrls:t}){let r=z.test(e);
2844if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=G(t?.ipfs,"https://ipfs.io"),o=G(t?.arweave,"https://arweave.net"),i=e.match(L),{protocol:a,subpath:s,target:c,subtarget:l=""}=i?.groups||{},u="ipns:/"===a||"ipns/"===s,d="ipfs:/"===a||"ipfs/"===s||U.test(e);if(e.startsWith("http")&&!u&&!d){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((u||d)&&c)return{uri:`${n}/${u?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&c)return{uri:`${o}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(H,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new N({uri:e})}function K(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new M({data:e});return e.image||e.image_url||e.image_data}async function V({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json()),n=await Q({gatewayUrls:e,uri:K(r)});return n}catch{throw new N({uri:t})}}async function Q({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=W({uri:t,gatewayUrls:e});if(n)return r;let o=await q(r);if(o)return r;throw new N({uri:t})}async function Z(e,{nft:t}){if("erc721"===t.namespace)return D(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return D(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new F({namespace:t.namespace})}async function Y(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?J(e,{gatewayUrls:t,record:r}):Q({uri:r,gatewayUrls:t})}async function J(e,{gatewayUrls:t,record:r}){let n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,o]=t.split("/"),[i,a]=r.split(":"),[s,c]=n.split(":");if(!i||"eip155"!==i.toLowerCase())throw new R({reason:"Only EIP-155 supported"});if(!a)throw new R({reason:"Chain ID not found"});if(!c)throw new R({reason:"Contract address not found"});if(!o)throw new R({reason:"Token ID not found"});if(!s)throw new R({reason:"ERC namespace not found"});return{chainID:parseInt(a),namespace:s.toLowerCase(),contractAddress:c,tokenID:o}}(r),o=await Z(e,{nft:n}),{uri:i,isOnChain:a,isEncoded:s}=W({uri:o,gatewayUrls:t});if(a&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){let e=s?atob(i.replace("data:application/json;base64,","")):i,r=JSON.parse(e);return Q({uri:K(r),gatewayUrls:t})}let c=n.tokenID;return"erc1155"===n.namespace&&(c=c.replace("0x","").padStart(64,"0")),V({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,c)})}async function X(e,{blockNumber:t,blockTag:r,name:n,key:o,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,v.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let i=await D(e,{address:a,abi:m.k3,functionName:"resolve",args:[(0,w.NC)(T(n)),(0,b.R)({abi:m.nZ,functionName:"text",args:[S(n),o]})],blockNumber:t,blockTag:r});if("0x"===i[0])return null;let s=(0,g.k)({abi:m.nZ,functionName:"text",data:i[0]});return""===s?null:s}catch(e){if(A(e,"resolve"))return null;throw e}}async function ee(e,{blockNumber:t,blockTag:r,gatewayUrls:n,name:o,universalResolverAddress:i}){let a=await X(e,{blockNumber:t,blockTag:r,key:"avatar",name:o,universalResolverAddress:i});if(!a)return null;try{return await Y(e,{record:a,gatewayUrls:n})}catch{return null}}async function et(e,{address:t,blockNumber:r,blockTag:n,universalResolverAddress:o}){let i=o;if(!i){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");i=(0,v.LI)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}let a=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let t=await D(e,{address:i,abi:m.du,functionName:"reverse",args:[(0,w.NC)(T(a))],blockNumber:r,blockTag:n});return t[0]}catch(e){if(A(e,"reverse"))return null;throw e}}async function er(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:o}){let i=o;if(!i){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");i=(0,v.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[a]=await D(e,{address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,w.NC)(T(n))],blockNumber:t,blockTag:r});return a}function en(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:o,transport:i})=>{"success"===o&&t===e&&(r[n]=i.request)}),t=>r[t]||e.request}async function eo(e){let t=en(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}var ei=r(5555);class ea extends x.G{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var es=r(56143);let ec=e=>"string"==typeof e?(0,es.F)(e):(0,es.J)(e);var el=r(62546),eu=r(21494),ed=r(28604);function ef({abi:e,eventName:t,args:r}){let n=e[0];if(t&&!(n=(0,ed.m)({abi:e,args:r,name:t})))throw new ei.mv(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==n.type)throw new ei.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let o=(0,eu.t)(n),i=ec(o),a=[];if(r&&"inputs"in n){let e=n.inputs?.filter(e=>
2844"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(a=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,o)=>eh({param:e,value:t[r][o]})):t[r]?eh({param:e,value:t[r]}):null)??[])}return[i,...a]}function eh({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,k.w)((0,j.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new ea(e.type);return(0,el.E)([e],[t])}async function ep(e,{address:t,abi:r,args:n,eventName:o,fromBlock:i,strict:a,toBlock:s}){let c=en(e,{method:"eth_newFilter"}),l=o?ef({abi:r,args:n,eventName:o}):void 0,u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof i?(0,w.eC)(i):i,toBlock:"bigint"==typeof s?(0,w.eC)(s):s,topics:l}]});return{abi:r,args:n,eventName:o,id:u,request:c(u),strict:a,type:"event"}}async function em(e,{address:t,args:r,event:n,events:o,fromBlock:i,strict:a,toBlock:s}={}){let c=o??(n?[n]:void 0),l=en(e,{method:"eth_newFilter"}),u=[];c&&(u=[c.flatMap(e=>ef({abi:[e],eventName:e.name,args:r}))],n&&(u=u[0]));let d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof i?(0,w.eC)(i):i,toBlock:"bigint"==typeof s?(0,w.eC)(s):s,...u.length?{topics:u}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:i,id:d,request:l(d),strict:a,toBlock:s,type:"event"}}async function eg(e){let t=en(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}var eb=r(21431),ev=r(14828);async function ey(e,{abi:t,address:r,args:n,functionName:o,...i}){let a=(0,b.R)({abi:t,args:n,functionName:o});try{let t=await (0,ev.Q)(e,{data:a,to:r,...i});return t}catch(a){let e=i.account?(0,eb.T)(i.account):void 0;throw(0,B.S)(a,{abi:t,address:r,args:n,docsPath:"/docs/contract/simulateContract",functionName:o,sender:e?.address})}}async function ew(e,{address:t,blockNumber:r,blockTag:n="latest"}){let o=r?(0,w.eC)(r):void 0,i=await e.request({method:"eth_getBalance",params:[t,o||n]});return BigInt(i)}var eE=r(33910);let ex=new Map,eC=new Map;async function eA(e,{cacheKey:t,cacheTime:r=1/0}){let n=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,ex),n=t(e,eC);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),o=n.response.get();if(o&&r>0){let e=new Date().getTime()-o.created.getTime();if(e<r)return o.data}let i=n.promise.get();i||(i=e(),n.promise.set(i));try{let e=await i;return n.response.set({created:new Date,data:e}),e}finally{n.promise.clear()}}let eP=e=>`blockNumber.${e}`;async function ej(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){let n=await eA(()=>e.request({method:"eth_blockNumber"}),{cacheKey:eP(e.uid),cacheTime:r??t});return BigInt(n)}var ek=r(90169);async function eO(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){let o;let i=void 0!==r?(0,w.eC)(r):void 0;return o=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||n]}),(0,ek.ly)(o)}async function eS(e,{address:t,blockNumber:r,blockTag:n="latest"}){let o=void 0!==r?(0,w.eC)(r):void 0,i=await e.request({method:"eth_getCode",params:[t,o||n]});if("0x"!==i)return i}var eI=r(29251);async function eT(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:o}){let i=r?(0,w.eC)(r):void 0,a=await e.request({method:"eth_feeHistory",params:[(0,w.eC)(t),i||n,o]});return{baseFeePerGas:a.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:a.gasUsedRatio,oldestBlock:BigInt(a.oldestBlock),reward:a.reward?.map(e=>e.map(e=>BigInt(e)))}}var eB=r(70558);let e_="/docs/contract/decodeEventLog";function eD({abi:e,data:t,strict:r,topics:n}){let o=r??!0,[i,...a]=n;if(!i)throw new ei.FM({docsPath:e_});let s=e.find(e=>"event"===e.type&&i===ec((0,eu.t)(e)));if(!(s&&"name"in s)||"event"!==s.type)throw new ei.lC(i,{docsPath:e_});let{name:c,inputs:l}=s,u=l?.some(e=>!("name"in e&&e.name)),d=u?[]:{},f=l.filter(e=>"indexed"in e&&e.indexed);if(a.length>0)for(let e=0;e<f.length;e++){let t=f[e],r=a[e];if(!r)throw new ei.Gy({abiItem:s,param:t});d[t.name||e]=function({param:e,value:t}
2844){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;let r=(0,eB.r)([e],t)||[];return r[0]}({param:t,value:r})}let h=l.filter(e=>!("indexed"in e&&e.indexed));if(h.length>0){if(t&&"0x"!==t)try{let e=(0,eB.r)(h,t);if(e){if(u)d=[...d,...e];else for(let t=0;t<h.length;t++)d[h[t].name]=e[t]}}catch(e){if(o){if(e instanceof ei.xB)throw new ei.SM({abiItem:s,data:e.data,params:e.params,size:e.size});throw e}}else if(o)throw new ei.SM({abiItem:s,data:"0x",params:h,size:0})}return{eventName:c,args:Object.values(d).length>0?d:void 0}}var e$=r(18829);async function eM(e,{filter:t}){let r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});return n.map(e=>{if("string"==typeof e)return e;try{let{eventName:n,args:o}="abi"in t&&t.abi?eD({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,e$.U)(e,{args:o,eventName:n})}catch(o){let r,n;if(o instanceof ei.SM||o instanceof ei.Gy){if("strict"in t&&t.strict)return;r=o.abiItem.name,n=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,e$.U)(e,{args:n?[]:{},eventName:r})}}).filter(Boolean)}async function eR(e,{filter:t}){let r=t.strict??!1,n=await t.request({method:"eth_getFilterLogs",params:[t.id]});return n.map(e=>{try{let{eventName:n,args:o}="abi"in t&&t.abi?eD({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return(0,e$.U)(e,{args:o,eventName:n})}catch(o){let r,n;if(o instanceof ei.SM||o instanceof ei.Gy){if("strict"in t&&t.strict)return;r=o.abiItem.name,n=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,e$.U)(e,{args:n?[]:{},eventName:r})}}).filter(Boolean)}var eN=r(48671);async function eF(e,{address:t,blockHash:r,fromBlock:n,toBlock:o,event:i,events:a,args:s,strict:c}={}){let l=c??!1,u=a??(i?[i]:void 0),d=[];return u&&(d=[u.flatMap(e=>ef({abi:[e],eventName:e.name,args:s}))],i&&(d=d[0])),(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof n?(0,w.eC)(n):n,toBlock:"bigint"==typeof o?(0,w.eC)(o):o}]})).map(e=>{try{let{eventName:t,args:r}=u?eD({abi:u,data:e.data,topics:e.topics,strict:l}):{eventName:void 0,args:void 0};return(0,e$.U)(e,{args:r,eventName:t})}catch(n){let t,r;if(n instanceof ei.SM||n instanceof ei.Gy){if(l)return;t=n.abiItem.name,r=n.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,e$.U)(e,{args:r?[]:{},eventName:t})}}).filter(Boolean)}async function eL(e,{address:t,blockNumber:r,blockTag:n="latest",slot:o}){let i=void 0!==r?(0,w.eC)(r):void 0,a=await e.request({method:"eth_getStorageAt",params:[t,o,i||n]});return a}var eU=r(54574),ez=r(94216);async function eH(e,{blockHash:t,blockNumber:r,blockTag:n,hash:o,index:i}){let a=n||"latest",s=void 0!==r?(0,w.eC)(r):void 0,c=null;if(o?c=await e.request({method:"eth_getTransactionByHash",params:[o]}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,w.eC)(i)]}):(s||a)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||a,(0,w.eC)(i)]})),!c)throw new eU.Bh({blockHash:t,blockNumber:r,blockTag:a,hash:o,index:i});let l=e.chain?.formatters?.transaction?.format||ez.Tr;return l(c)}async function eq(e,{hash:t,transactionReceipt:r}){let[n,o]=await Promise.all([ej(e),t?eH(e,{hash:t}):void 0]),i=r?.blockNumber||o?.blockNumber;return i?n-i+1n:0n}var eG=r(89784),eW=r(4656);async function eK(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new eU.Yb({hash:t});let n=e.chain?.formatters?.transactionReceipt?.format||eW.f;return n(r)}async function eV(e,t){let{allowFailure:r=!0,batchSize:n,blockNumber:o,blockTag:i,contracts:a,multicallAddress:s}=t,c=n??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),l=s;if(!l){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");l=(0,v.LI)({blockNumber:o,chain:e.chain,contract:"multicall3"})}let u=[[]],d=0,f=0;for(let e=0;e<a.length;e++){let{abi:t,address:n,args:o,functionName:i}=a[e];try{let e=(0,b.R)({abi:t,args:o,functionName:i});f+=e.length,c>0&&f>
2844c&&(d++,f=(e.length-2)/2,u[d]=[]),u[d]=[...u[d],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=(0,B.S)(a,{abi:t,address:n,args:o,docsPath:"/docs/contract/multicall",functionName:i});if(!r)throw e;u[d]=[...u[d],{allowFailure:!0,callData:"0x",target:n}]}}let h=await Promise.all(u.map(t=>D(e,{abi:m.F8,address:l,args:[t],blockNumber:o,blockTag:i,functionName:"aggregate3"})));return h.flat().map(({returnData:e,success:t},n)=>{let{callData:o}=u.flat()[n],{abi:i,address:s,functionName:c,args:l}=a[n];try{if("0x"===o)throw new ei.wb;if(!t)throw new C.VQ({data:e});let n=(0,g.k)({abi:i,args:l,data:e,functionName:c});return r?{result:n,status:"success"}:n}catch(t){let e=(0,B.S)(t,{abi:i,address:s,args:l,docsPath:"/docs/contract/multicall",functionName:c});if(!r)throw e;return{error:e,result:void 0,status:"failure"}}})}async function eQ(e,{abi:t,address:r,args:n,dataSuffix:o,functionName:i,...a}){let s=a.account?(0,eb.T)(a.account):void 0,c=(0,b.R)({abi:t,args:n,functionName:i});try{let{data:s}=await (0,_.R)(e,{batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:r,...a}),l=(0,g.k)({abi:t,args:n,functionName:i,data:s||"0x"});return{result:l,request:{abi:t,address:r,args:n,dataSuffix:o,functionName:i,...a}}}catch(e){throw(0,B.S)(e,{abi:t,address:r,args:n,docsPath:"/docs/contract/simulateContract",functionName:i,sender:s?.address})}}async function eZ(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}var eY=r(25493),eJ=r(27499),eX=r(99353);async function e0(e,{address:t,hash:r,signature:n,...o}){let i=(0,eY.v)(n)?n:(0,w.NC)(n);try{let{data:n}=await (0,_.R)(e,{data:(0,eX.w)({abi:m.$o,args:[t,r,i],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b6200056584602083
28440160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...o});return function(e,t){let r=(0,eY.v)(e)?(0,j.O0)(e):e,n=(0,eY.v)(t)?(0,j.O0)(t):t;return(0,eJ.Wd)(r,n)}(n??"0x0","0x1")}catch(e){if(e instanceof C.cg)return!1;throw e}}async function e1(e,{address:t,message:r,signature:n,...o}){let i=function(e,t){let r="string"==typeof e?(0,j.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,j.O0)(e.raw),n=(0,j.qX)(`\x19Ethereum Signed Message: 2845${r.length}`);return(0,k.w)((0,P.zo)([n,r]),void 0)}(r);return e0(e,{address:t,hash:i,signature:n,...o})}var e2=r(61539);function e6({data:e,primaryType:t,types:r}){let n=function e({data:t,primaryType:r,types:n}){let o=[{type:"bytes32"}],i=[function({primaryType:e,types:t}){let r=(0,w.NC)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let o=t.match(/^\w*/u)?.[0];if(n.has(o)||void 0===r[o])return n;for(let t of(n.add(o),r[o]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});n.delete(e);let o=[e,...Array.from(n).sort()];for(let e of o)r+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,k.w)(r)}({primaryType:r,types:n})];for(let a of n[r]){let[r,s]=function t({types:r,name:n,type:o,value:i}){if(void 0!==r[o])return[{type:"bytes32"},(0,k.w)(e({data:i,primaryType:o,types:r}))];if("bytes"===o){let e=i.length%2?"0":"";return i=`0x${e+i.slice(2)}`,[{type:"bytes32"},(0,k.w)(i)]}if("string"===o)return[{type:"bytes32"},(0,k.w)((0,w.NC)(i))];if(o.lastIndexOf("]")===o.length-1){let e=o.slice(0,o.lastIndexOf("[")),a=i.map(o=>t({name:n,type:e,types:r,value:o}));return[{type:"bytes32"},(0,k.w)((0,el.E)(a.map(([e])=>e),a.map(([,e])=>e)))]}return[{type:o},i]}({types:n,name:a.name,type:a.type,value:t[a.name]});o.push(r),i.push(s)}return(0,el.E)(o,i)}({data:e,primaryType:t,types:r});return(0,k.w)(n)}async function e3(e,{address:t,signature:r,message:n,primaryType:o,types:i,domain:a,...s}){let c=function({domain:e,message:t,primaryType:r,types:n}){let o=void 0===e?{}:e,i={EIP712Domain:["string"==typeof o?.name&&{name:"name",type:"string"},o?.version&&{name:"version",type:"string"},"number"==typeof o?.chainId&&{name:"chainId",type:"uint256"},o?.verifyingContract&&{name:"verifyingContract",type:"address"},o?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...n};(0,e2.i)({domain:o,message:t,primaryType:r,types:i});let a=["0x1901"];return o&&a.push(function({domain:e,types:t}){return e6({data:e,primaryType:"EIP712Domain",types:t})}({domain:o,types:i})),"EIP712Domain"!==r&&a.push(e6({data:t,primaryType:r,types:i})),(0,k.w)((0,P.zo)(a))}({message:n,primaryType:o,types:i,domain:a});return e0(e,{address:t,hash:c,signature:r,...s})}let e5=new Map,e8=new Map,e4=0;function e7(e,t,r){let n=++e4,o=()=>e5.get(e)||[],i=()=>
2845{let t=o();e5.set(e,t.filter(e=>e.id!==n))},a=()=>{let t=e8.get(e);1===o().length&&t&&t(),i()},s=o();if(e5.set(e,[...s,{id:n,fns:t}]),s&&s.length>0)return a;let c={};for(let e in t)c[e]=(...t)=>{let r=o();0!==r.length&&r.forEach(r=>r.fns[e]?.(...t))};let l=r(c);return"function"==typeof l&&e8.set(e,l),a}var e9=r(11941),te=r(61344),tt=r(40482);function tr(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let o=!0,i=()=>o=!1,a=async()=>{let a;t&&(a=await e({unpoll:i}));let s=await r?.(a)??n;await (0,tt.D)(s);let c=async()=>{o&&(await e({unpoll:i}),await (0,tt.D)(n),c())};c()};return a(),i}function tn(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:o,poll:i,pollingInterval:a=e.pollingInterval}){let s,c,l;let u=void 0!==i?i:"webSocket"!==e.transport.type;return u?(()=>{let i=(0,te.P)(["watchBlockNumber",e.uid,t,r,a]);return e7(i,{onBlockNumber:n,onError:o},n=>tr(async()=>{try{let t=await ej(e,{cacheTime:0});if(s){if(t===s)return;if(t-s>1&&r)for(let e=s+1n;e<t;e++)n.onBlockNumber(e,s),s=e}(!s||t>s)&&(n.onBlockNumber(t,s),s=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:a}))})():(c=!0,l=()=>c=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!c)return;let t=(0,ek.y_)(e.result?.number);n(t,s),s=t},onError(e){o?.(e)}});l=t,c||l()}catch(e){o?.(e)}})(),l)}async function to(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:o=e.pollingInterval,timeout:i}){let a,s,c;let l=(0,te.P)(["waitForTransactionReceipt",e.uid,r]),u=!1;return new Promise((d,f)=>{i&&setTimeout(()=>f(new eU.mc({hash:r})),i);let h=e7(l,{onReplaced:n,resolve:d,reject:f},n=>{let i=tn(e,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(o){if(u)return;let l=o,d=e=>{i(),e(),h()};try{if(c){if(l-c.blockNumber+1n<t)return;d(()=>n.resolve(c));return}if(a||(u=!0,await (0,e9.J)(async()=>{(a=await eH(e,{hash:r})).blockNumber&&(l=a.blockNumber)},{delay:({count:e})=>200*~~(1<<e),retryCount:6}),u=!1),c=await eK(e,{hash:r}),t>0&&l-c.blockNumber+1n<t)return;d(()=>n.resolve(c))}catch(r){if(a&&(r instanceof eU.Bh||r instanceof eU.Yb)){s=a;let r=await (0,eE.Q)(e,{blockNumber:l,includeTransactions:!0}),o=r.transactions.find(({from:e,nonce:t})=>e===s.from&&t===s.nonce);if(!o||l-(c=await eK(e,{hash:o.hash})).blockNumber+1n<t)return;let i="replaced";o.to===s.to&&o.value===s.value?i="repriced":o.from===o.to&&0n===o.value&&(i="cancelled"),d(()=>{n.onReplaced?.({reason:i,replacedTransaction:s,transaction:o,transactionReceipt:c}),n.resolve(c)})}else d(()=>n.reject(r))}}})})})}var ti=r(86101),ta=r(42455);function ts(e){return{call:t=>(0,_.R)(e,t),createBlockFilter:()=>eo(e),createContractEventFilter:t=>ep(e,t),createEventFilter:t=>em(e,t),createPendingTransactionFilter:()=>eg(e),estimateContractGas:t=>ey(e,t),estimateGas:t=>(0,ev.Q)(e,t),getBalance:t=>ew(e,t),getBlock:t=>(0,eE.Q)(e,t),getBlockNumber:t=>ej(e,t),getBlockTransactionCount:t=>eO(e,t),getBytecode:t=>eS(e,t),getChainId:()=>(0,eI.L)(e),getEnsAddress:t=>$(e,t),getEnsAvatar:t=>ee(e,t),getEnsName:t=>et(e,t),getEnsResolver:t=>er(e,t),getEnsText:t=>X(e,t),getFeeHistory:t=>eT(e,t),getFilterChanges:t=>eM(e,t),getFilterLogs:t=>eR(e,t),getGasPrice:()=>(0,eN.o)(e),getLogs:t=>eF(e,t),getStorageAt:t=>eL(e,t),getTransaction:t=>eH(e,t),getTransactionConfirmations:t=>eq(e,t),getTransactionCount:t=>(0,eG.K)(e,t),getTransactionReceipt:t=>eK(e,t),multicall:t=>eV(e,t),readContract:t=>D(e,t),simulateContract:t=>eQ(e,t),verifyMessage:t=>e1(e,t),verifyTypedData:t=>e3(e,t),uninstallFilter:t=>eZ(e,t),waitForTransactionReceipt:t=>to(e,t),watchBlocks:t=>(function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:o,onError:i,includeTransactions:a,poll:s,pollingInterval:c=e.pollingInterval}){let l,u,d;let f=void 0!==s?s:"webSocket"!==e.transport.type,h=a??!1;return f?(()=>{let a=(0,te.P)(["watchBlocks",e.uid,r,n,h,c]);return e7(a,{onBlock:o,onError:i},o=>tr(async()=>{try{let n=await (0,eE.Q)(e,{blockTag:t,includeTransactions:h});if(n.number&&l?.number){if(n.number===l.number)return;if(n.number-l.number>1&&r)for(let t=l?.number+1n;t<n.number;t++){let r=await (0,eE.Q)(e,{blockNumber:t,includeTransactions:h});o.onBlock(r,l),l=r}}(!l?.number||"pending"===t&&!n?.number||n.number&&n.number>l.number)&&(o.onBlock(n,l),l=n)}catch(e){o.onError?.(e)}},{emitOnBegin:n,interval:c}))})():(u=!0,d=()=>u=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!u)return;let r=e.chain?.formatters?.block?.format||ti.Z,n=r(t.result);o(n,l),l=n},onError(e){i?.(e)}});d=t,u||d()}catch(e){i?.(e)}})(),d)})(e,t),watchBlockNumber:t=>tn(e,t),watchContractEvent:t=>(function(e,{abi:t,address:r,args:n,batch:o=!0,eventName:i,onError:a,onLogs:s,pollingInterval:c=e.pollingInterval,strict:l}){let u=(0,te.P)(["watchContractEvent",r,n,o,e.uid,i,c]),d=l??!1;return e7(u,{onLogs:s,onError:a},a=>{let s,l;let u=!1,f=tr(async()=>
2845{if(!u){try{l=await ep(e,{abi:t,address:r,args:n,eventName:i,strict:d})}catch{}u=!0;return}try{let c;if(l)c=await eM(e,{filter:l});else{let o=await ej(e);c=s&&s!==o?await eF(e,{address:r,args:n,fromBlock:s+1n,toBlock:o,event:(0,ed.m)({abi:t,name:i})}):[],s=o}if(0===c.length)return;o?a.onLogs(c):c.forEach(e=>a.onLogs([e]))}catch(e){l&&e instanceof ta.yR&&(u=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{l&&await eZ(e,{filter:l}),f()}})})(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:n=!0,event:o,events:i,onError:a,onLogs:s,pollingInterval:c=e.pollingInterval,strict:l}){let u=(0,te.P)(["watchEvent",t,r,n,e.uid,o,c]),d=l??!1;return e7(u,{onLogs:s,onError:a},a=>{let s,l;let u=!1,f=tr(async()=>{if(!u){try{l=await em(e,{address:t,args:r,event:o,events:i,strict:d})}catch{}u=!0;return}try{let c;if(l)c=await eM(e,{filter:l});else{let n=await ej(e);c=s&&s!==n?await eF(e,{address:t,args:r,event:o,events:i,fromBlock:s+1n,toBlock:n}):[],s=n}if(0===c.length)return;n?a.onLogs(c):c.forEach(e=>a.onLogs([e]))}catch(e){l&&e instanceof ta.yR&&(u=!1),a.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{l&&await eZ(e,{filter:l}),f()}})})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:r,onTransactions:n,poll:o,pollingInterval:i=e.pollingInterval}){let a,s;let c=void 0!==o?o:"webSocket"!==e.transport.type;return c?(()=>{let o=(0,te.P)(["watchPendingTransactions",e.uid,t,i]);return e7(o,{onTransactions:n,onError:r},r=>{let n;let o=tr(async()=>{try{if(!n)try{n=await eg(e);return}catch(e){throw o(),e}let i=await eM(e,{filter:n});if(0===i.length)return;t?r.onTransactions(i):i.forEach(e=>r.onTransactions([e]))}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:i});return async()=>{n&&await eZ(e,{filter:n}),o()}})})():(a=!0,s=()=>a=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!a)return;let t=e.result;n([t])},onError(e){r?.(e)}});s=t,a||s()}catch(e){r?.(e)}})(),s)})(e,t)}}function tc(e){let{key:t="public",name:r="Public Client"}=e,n=(0,p.e)({...e,key:t,name:r,type:"publicClient"});return n.extend(ts)}var tl=r(62635),tu=r(14160);function td(e,t={}){let{key:r="fallback",name:n="Fallback",rank:o=!1,retryCount:i,retryDelay:a}=t;return({chain:t,pollingInterval:s=4e3,timeout:c})=>{let l=e,u=()=>{},d=(0,tu.q)({key:r,name:n,async request({method:e,params:r}){let n=async(o=0)=>{let i=l[o]({chain:t,retryCount:0,timeout:c});try{let t=await i.request({method:e,params:r});return u({method:e,params:r,response:t,transport:i,status:"success"}),t}catch(t){if(u({error:t,method:e,params:r,transport:i,status:"error"}),(0,tl.y)(t)||o===l.length-1)throw t;return n(o+1)}};return n()},retryCount:i,retryDelay:a,type:"fallback"},{onResponse:e=>u=e,transports:l.map(e=>e({chain:t,retryCount:0}))});if(o){let e="object"==typeof o?o:{};!function({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:o=1e3,transports:i,weights:a={}}){let{stability:s=.7,latency:c=.3}=a,l=[],u=async()=>{let a=await Promise.all(i.map(async t=>{let r,n;let i=t({chain:e,retryCount:0,timeout:o}),a=Date.now();try{await i.request({method:"net_listening"}),n=1}catch{n=0}finally{r=Date.now()}let s=r-a;return{latency:s,success:n}}));l.push(a),l.length>n&&l.shift();let d=Math.max(...l.map(e=>Math.max(...e.map(({latency:e})=>e)))),f=i.map((e,t)=>{let r=l.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,o=l.map(e=>e[t].success),i=o.reduce((e,t)=>e+t,0)/o.length;return 0===i?[0,t]:[c*(1-n/d)+s*i,t]}).sort((e,t)=>t[0]-e[0]);r(f.map(([,e])=>i[e])),await (0,tt.D)(t),u()};u()}({chain:t,interval:e.interval??s,onTransports:e=>l=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:l,weights:e.weights})}return d}}var tf=r(88822);class th extends x.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var tp=r(68583);function tm(e,{errorInstance:t,timeout:r,signal:n}){return new Promise((o,i)=>{(async()=>{let a;try{let s=new AbortController;r>0&&(a=setTimeout(()=>{n?s.abort():i(t)},r)),o(await e({signal:s?.signal}))}catch(e){"AbortError"===e.name&&i(t),i(e)}finally{clearTimeout(a)}})()})}let tg=0;async function tb(e,{body:t,fetchOptions:r={},timeout:n=1e4}){let{headers:o,method:i,signal:a}=r;try{let s;let c=await tm(async({signal:s})=>{let c=await fetch(e,{...r,body:Array.isArray(t)?(0,te.P)(t.map(e=>({jsonrpc:"2.0",id:tg++,...e}))):(0,te.P)({jsonrpc:"2.0",id:tg++,...t}),headers:{...o,"Content-Type":"application/json"},method:i||"POST",signal:a||(n>
28450?s:void 0)});return c},{errorInstance:new tf.W5({body:t,url:e}),timeout:n,signal:!0});if(s=c.headers.get("Content-Type")?.startsWith("application/json")?await c.json():await c.text(),!c.ok)throw new tf.Gg({body:t,details:(0,te.P)(s.error)||c.statusText,headers:c.headers,status:c.status,url:e});return s}catch(r){if(r instanceof tf.Gg||r instanceof tf.W5)throw r;throw new tf.Gg({body:t,details:r.message,url:e})}}let tv=new Map;async function ty(e){let t=new URL(e),n=t.toString(),o=tv.get(n);if(o)return o;let{schedule:i}=(0,tp.S)({id:n,fn:async()=>{let e=await r.e(6792).then(r.bind(r,46792));e=e.default?.constructor?e.default:e.WebSocket;let i=new e(t),a=new Map,s=new Map,c=({data:e})=>{let t=JSON.parse(e),r="eth_subscription"===t.method,n=r?t.params.subscription:t.id,o=r?s:a,i=o.get(n);i&&i({data:e}),r||o.delete(n)},l=()=>{tv.delete(n),i.removeEventListener("close",l),i.removeEventListener("message",c)};return i.addEventListener("close",l),i.addEventListener("message",c),i.readyState===e.CONNECTING&&await new Promise((e,t)=>{i&&(i.onopen=e,i.onerror=t)}),o=Object.assign(i,{requests:a,subscriptions:s}),tv.set(n,o),[o]}}),[a,[s]]=await i();return s}async function tw(e,{body:t,timeout:r=1e4}){return tm(()=>new Promise(r=>tE.webSocket(e,{body:t,onResponse:r})),{errorInstance:new tf.W5({body:t,url:e.url}),timeout:r})}let tE={http:tb,webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new tf.c9({body:t,url:e.url,details:"Socket is closed."});let n=tg++,o=({data:i})=>{let a=JSON.parse(i);("number"!=typeof a.id||n===a.id)&&(r?.(a),"eth_subscribe"===t.method&&"string"==typeof a.result&&e.subscriptions.set(a.result,o),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(n,o),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:n})),e},webSocketAsync:tw};var tx=r(11588),tC=r(58617);let tA=e=>(t,r,n)=>{let o=n.subscribe;n.subscribe=(e,t,r)=>{let i=e;if(t){let o=(null==r?void 0:r.equalityFn)||Object.is,a=e(n.getState());i=r=>{let n=e(r);if(!o(a,n)){let e=a;t(a=n,e)}},(null==r?void 0:r.fireImmediately)&&t(a,a)}return o(i)};let i=e(t,r,n);return i},tP=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>tP(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>tP(t)(e)}}},tj=(e,t)=>(r,n,o)=>{let i,a,s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,l=new Set,u=new Set;try{i=s.getStorage()}catch(e){}if(!i)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...e)},n,o);let d=tP(s.serialize),f=()=>{let e;let t=s.partialize({...n()}),r=d({state:t,version:s.version}).then(e=>i.setItem(s.name,e)).catch(t=>{e=t});if(e)throw e;return r},h=o.setState;o.setState=(e,t)=>{h(e,t),f()};let p=e((...e)=>{r(...e),f()},n,o),m=()=>{var e;if(!i)return;c=!1,l.forEach(e=>e(n()));let t=(null==(e=s.onRehydrateStorage)?void 0:e.call(s,n()))||void 0;return tP(i.getItem.bind(i))(s.name).then(e=>{if(e)return s.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return e.state;if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(a=s.merge(e,null!=(t=n())?t:p),!0),f()}).then(()=>{null==t||t(a,void 0),c=!0,u.forEach(e=>e(a))}).catch(e=>{null==t||t(void 0,e)})};return o.persist={setOptions:e=>{s={...s,...e},e.getStorage&&(i=e.getStorage())},clearStorage:()=>{null==i||i.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},m(),a||p},tk=(e,t)=>(r,n,o)=>{let i,a={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(n=r.getItem(e))?n:null;return i instanceof Promise?i.then(o):o(i)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>
2845({...t,...e}),...t},s=!1,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)},n,o);let d=()=>{let e=a.partialize({...n()});return u.setItem(a.name,{state:e,version:a.version})},f=o.setState;o.setState=(e,t)=>{f(e,t),d()};let h=e((...e)=>{r(...e),d()},n,o),p=()=>{var e,t;if(!u)return;s=!1,c.forEach(e=>{var t;return e(null!=(t=n())?t:h)});let o=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=n())?e:h))||void 0;return tP(u.getItem.bind(u))(a.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(i=a.merge(e,null!=(t=n())?t:h),!0),d()}).then(()=>{null==o||o(i,void 0),i=n(),s=!0,l.forEach(e=>e(i))}).catch(e=>{null==o||o(void 0,e)})};return o.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||p(),i||h},tO=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),tj(e,t)):tk(e,t),tS=e=>{let t;let r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,i={setState:n,getState:o,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,o,i),i},tI=e=>e?tS(e):tS;var tT=r(60263);function tB(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[r,n]of e)if(!Object.is(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}var t_=r(36516),tD=r(92221);function t$(e,t,{batch:r={multicall:{wait:32}},pollingInterval:n=4e3,rank:o,retryCount:i,retryDelay:a,stallTimeout:s}={}){if(!e.length)throw Error("must have at least one chain");let c=[],l={},u={};for(let r of e){let e=!1;for(let n of t){let t=n(r);t&&(e=!0,c.some(({id:e})=>e===r.id)||(c=[...c,t.chain]),l[r.id]=[...l[r.id]||[],...t.rpcUrls.http],t.rpcUrls.webSocket&&(u[r.id]=[...u[r.id]||[],...t.rpcUrls.webSocket]))}if(!e)throw Error(`Could not find valid provider configuration for chain "${r.name}". 2846 2847You may need to add \`jsonRpcProvider\` to \`configureChains\` with the chain's RPC URLs. 2848Read more: https://wagmi.sh/core/providers/jsonRpc`)}return{chains:c,publicClient:({chainId:t})=>{let u=c.find(e=>e.id===t)??e[0],d=l[u.id];if(!d||!d[0])throw Error(`No providers configured for chain "${u.id}"`);let f=tc({batch:r,chain:u,transport:td(d.map(e=>(function(e,t={}){let{batch:r,fetchOptions:n,key:o="http",name:i="HTTP JSON-RPC",retryDelay:a}=t;return({chain:s,retryCount:c,timeout:l})=>{let{batchSize:u=1e3,wait:d=0}="object"==typeof r?r:{},f=t.retryCount??c,h=l??t.timeout??1e4,p=e||s?.rpcUrls.default.http[0];if(!p)throw new th;return(0,tu.q)({key:o,name:i,async request({method:t,params:o}){let i={method:t,params:o},{schedule:a}=(0,tp.S)({id:`${e}`,wait:d,shouldSplitBatch:e=>e.length>u,fn:e=>tE.http(p,{body:e,fetchOptions:n,timeout:h})}),s=async e=>r?a(e):[await tE.http(p,{body:e,fetchOptions:n,timeout:h})],[{error:c,result:l}]=await s(i);if(c)throw new tf.bs({body:i,error:c,url:p});return l},retryCount:f,retryDelay:a,timeout:h,type:"http"},{url:e})}})(e,{timeout:s}
2848)),{rank:o,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(f,{chains:c})},webSocketPublicClient:({chainId:t})=>{let l=c.find(e=>e.id===t)??e[0],d=u[l.id];if(!d||!d[0])return;let f=tc({batch:r,chain:l,transport:td(d.map(e=>(function(e,t={}){let{key:r="webSocket",name:n="WebSocket JSON-RPC",retryDelay:o}=t;return({chain:i,retryCount:a,timeout:s})=>{let c=t.retryCount??a,l=s??t.timeout??1e4,u=e||i?.rpcUrls.default.webSocket?.[0];if(!u)throw new th;return(0,tu.q)({key:r,name:n,async request({method:e,params:t}){let r={method:e,params:t},n=await ty(u),{error:o,result:i}=await tE.webSocketAsync(n,{body:r,timeout:l});if(o)throw new tf.bs({body:r,error:o,url:u});return i},retryCount:c,retryDelay:o,timeout:l,type:"webSocket"},{getSocket:()=>ty(u),async subscribe({params:e,onData:t,onError:r}){let n=await ty(u),{result:o}=await new Promise((o,i)=>tE.webSocket(n,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){i(e.error),r?.(e.error);return}if("number"==typeof e.id){o(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:o,unsubscribe:async()=>new Promise(e=>tE.webSocket(n,{body:{method:"eth_unsubscribe",params:[o]},onResponse:e}))}}})}})(e,{timeout:s})),{rank:o,retryCount:i,retryDelay:a}),pollingInterval:n});return Object.assign(f,{chains:c})}}}var tM=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},tR=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},tN=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},tF=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}},tL=(e,{find:t,replace:r})=>e&&t(e)?r(e):"object"!=typeof e?e:Array.isArray(e)?e.map(e=>tL(e,{find:t,replace:r})):e instanceof Object?Object.entries(e).reduce((e,[n,o])=>({...e,[n]:tL(o,{find:t,replace:r})}),{}):e;function tU(e){let t=JSON.parse(e),r=tL(t,{find:e=>"string"==typeof e&&e.startsWith("#bigint."),replace:e=>BigInt(e.replace("#bigint.",""))});return r}function tz(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(tC.Bd[e])}function tH(e,t){return e.slice(0,t).join(".")||"."}function tq(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function tG(e,t,r,n){return JSON.stringify(e,function(e,t){let r="function"==typeof e,n="function"==typeof t,o=[],i=[];return function(a,s){if("object"==typeof s){if(o.length){let e=tq(o,this);0===e?o[o.length]=this:(o.splice(e),i.splice(e)),i[i.length]=a;let r=tq(o,s);if(0!==r)return n?t.call(this,a,s,tH(i,r)):`[ref=${tH(i,r)}]`}else o[0]=s,i[0]=a}return r?e.call(this,a,s):s}}((e,r)=>{let n="bigint"==typeof r?`#bigint.${r.toString()}`:r;return t?.(e,n)||n},n),r??void 0)}var tW={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function tK({deserialize:e=tU,key:t="wagmi",serialize:r=tG,storage:n}){return{...n,getItem:(r,o=null)=>{let i=n.getItem(`${t}.${r}`);try{return i?e(i):o}catch(e){return console.warn(e),o}},setItem:(e,o)=>{if(null===o)n.removeItem(`${t}.${e}`);else try{n.setItem(`${t}.${e}`,r(o))}catch(e){console.error(e)}},removeItem:e=>n.removeItem(`${t}.${e}`)}}var tV="store",tQ=class{constructor({autoConnect:e=!1,connectors:t=[new c._],publicClient:r,storage:s=tK({storage:"undefined"!=typeof window?window.localStorage:tW}),logger:l={warn:console.warn},webSocketPublicClient:u}){let p;d(this,i),this.publicClients=new Map,this.webSocketPublicClients=new Map,d(this,n,void 0),d(this,o,void 0),this.args={autoConnect:e,connectors:t,logger:l,publicClient:r,storage:s,webSocketPublicClient:u};let m="disconnected";if(e)try{let e=s.getItem(tV),t=e?.state?.data;m=t?.account?"reconnecting":"connecting",p=t?.chain?.id}catch(e){}let g="function"==typeof t?t():t;g.forEach(e=>e.setStorage(s)),this.store=tI(tA(tO(()=>({connectors:g,publicClient:this.getPublicClient({chainId:p}),status:m,webSocketPublicClient:this.getWebSocketPublicClient({chainId:p})}),{name:tV,storage:s,partialize:t=>({...e&&{data:{account:t?.data?.account,chain:t?.data?.chain}},chains:t?.chains}),version:2}))),this.storage=s,f(this,o,s?.getItem("wallet")),h(this,i,a).call(this),e&&"undefined"!=typeof window&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}
2848get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){let t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),f(this,n,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(u(this,n))return;f(this,n,!0),this.setState(e=>({...e,status:e.data?.account?"reconnecting":"connecting"}));let e=u(this,o)?[...this.connectors].sort(e=>e.id===u(this,o)?-1:1):this.connectors,t=!1;for(let r of e){if(!r.ready||!r.isAuthorized)continue;let e=await r.isAuthorized();if(!e)continue;let n=await r.connect();this.setState(e=>({...e,connector:r,chains:r?.chains,data:n,status:"connected"})),t=!0;break}return t||this.setState(e=>({...e,data:void 0,status:"disconnected"})),f(this,n,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};let t="function"==typeof e?e():e;t.forEach(e=>e.setStorage(this.args.storage)),this.setState(e=>({...e,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&t?.chain.id===e||(t=this.publicClients.get(e??-1)))return t;let{publicClient:r}=this.args;return t="function"==typeof r?r({chainId:e}):r,this.publicClients.set(e??-1,t),t}setPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(e=>({...e,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&t?.chain.id===e||(t=this.webSocketPublicClients.get(e??-1)))return t;let{webSocketPublicClient:r}=this.args;return(t="function"==typeof r?r({chainId:e}):r)&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(e=>({...e,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){this.storage?.setItem("wallet",e)}};function tZ(e){let t=new tQ(e);return s=t,t}function tY(){if(!s)throw Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return s}async function tJ({chainId:e,connector:t}){let r=tY(),n=r.connector;if(n&&t.id===n.id)throw new tR;try{r.setState(e=>({...e,status:"connecting"}));let n=await t.connect({chainId:e});return r.setLastUsedConnector(t.id),r.setState(e=>({...e,connector:t,chains:t?.chains,data:n,status:"connected"})),r.storage.setItem("connected",!0),{...n,connector:t}}catch(e){throw r.setState(e=>({...e,status:e.connector?"connected":"disconnected"})),e}}async function tX(){let e=tY();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}n=new WeakMap,o=new WeakMap,i=new WeakSet,a=function(){let e=e=>{this.setState(t=>({...t,data:{...t.data,...e}}))},t=()=>{this.clearState()},r=e=>{this.setState(t=>({...t,error:e}))};this.store.subscribe(({connector:e})=>e,(n,o)=>{o?.off?.("change",e),o?.off?.("disconnect",t),o?.off?.("error",r),n&&(n.on?.("change",e),n.on?.("disconnect",t),n.on?.("error",r))});let{publicClient:n,webSocketPublicClient:o}=this.args;("function"==typeof n||"function"==typeof o)&&this.store.subscribe(({data:e})=>e?.chain?.id,e=>{this.setState(t=>({...t,publicClient:this.getPublicClient({chainId:e}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))})};var t0=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}
2848],t1=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function t2({chainId:e}={}){let t=tY();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function t6({chainId:e}={}){let t=tY(),r=await t.connector?.getWalletClient?.({chainId:e})||null;return r}function t3({chainId:e}={}){let t=tY();return e&&t.getWebSocketPublicClient({chainId:e})||t.webSocketPublicClient}function t5(e,t){let r=tY(),n=async()=>t(t2(e)),o=r.subscribe(({publicClient:e})=>e,n);return o}function t8(e,t){let r=tY(),n=async()=>t(t3(e)),o=r.subscribe(({webSocketPublicClient:e})=>e,n);return o}async function t4({chainId:e,contracts:t,blockNumber:r,blockTag:n,...o}){let i=t2({chainId:e});if(!i.chains)throw new tN;if(e&&i.chain.id!==e)throw new tM({chainId:e});return i.multicall({allowFailure:o.allowFailure??!0,blockNumber:r,blockTag:n,contracts:t})}async function t7({address:e,account:t,chainId:r,abi:n,args:o,functionName:i,blockNumber:a,blockTag:s}){let c=t2({chainId:r});return c.readContract({abi:n,address:e,account:t,functionName:i,args:o,blockNumber:a,blockTag:s})}async function t9({contracts:e,blockNumber:t,blockTag:r,...n}){let{allowFailure:o=!0}=n;try{let n=t2(),i=e.reduce((e,t,r)=>{let o=t.chainId??n.chain.id;return{...e,[o]:[...e[o]||[],{contract:t,index:r}]}},{}),a=(await Promise.all(Object.entries(i).map(([e,n])=>t4({allowFailure:o,chainId:parseInt(e),contracts:n.map(({contract:e})=>e),blockNumber:t,blockTag:r})))).flat(),s=Object.values(i).flatMap(e=>e.map(({index:e})=>e));return a.reduce((e,t,r)=>(e&&(e[s[r]]=t),e),[])}catch(i){if(i instanceof C.uq)throw i;let n=()=>e.map(e=>t7({...e,blockNumber:t,blockTag:r}));if(o)return(await Promise.allSettled(n())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(n())}}async function re({address:e,chainId:t,formatUnits:r,token:n}){let o=tY(),i=t2({chainId:t});if(n){let o=async({abi:o})=>{let i={abi:o,address:n,chainId:t},[a,s,c]=await t9({allowFailure:!1,contracts:[{...i,functionName:"balanceOf",args:[e]},{...i,functionName:"decimals"},{...i,functionName:"symbol"}]});return{decimals:s,formatted:(0,tT.b)(a??"0",tz(r??s)),symbol:c,value:a}};try{return await o({abi:t0})}catch(e){if(e instanceof C.uq){let{symbol:e,...t}=await o({abi:t1});return{symbol:(0,ek.rR)((0,y.f)(e,{dir:"right"})),...t}}throw e}}let a=[...o.publicClient.chains||[],...o.chains??[]],s=await i.getBalance({address:e}),c=a.find(e=>e.id===i.chain.id);return{decimals:c?.nativeCurrency.decimals??18,formatted:(0,tT.b)(s??"0",tz(r??18)),symbol:c?.nativeCurrency.symbol??"ETH",value:s}}function rt(){let{data:e,connector:t,status:r}
2848=tY();switch(r){case"connected":return{address:e?.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:r};case"reconnecting":return{address:e?.account,connector:t,isConnected:!!e?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:r};case"connecting":return{address:e?.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:r};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:r}}}function rr(){let e=tY(),t=e.data?.chain?.id,r=e.chains??[],n=[...e.publicClient?.chains||[],...r].find(e=>e.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...n,...e.data?.chain,id:t}:void 0,chains:r}}async function rn(e){let t=await t6();if(!t)throw new tx.N;return await t.signMessage({message:e.message})}async function ro({chainId:e}){let{connector:t}=tY();if(!t)throw new tx.N;if(!t.switchChain)throw new tF({connector:t});return t.switchChain(e)}function ri(e,{selector:t=e=>e}={}){let r=tY(),n=r.subscribe(({data:e,connector:r,status:n})=>t({address:e?.account,connector:r,status:n}),()=>e(rt()),{equalityFn:tB});return n}function ra(e,{selector:t=e=>e}={}){let r=tY(),n=r.subscribe(({data:e,chains:r})=>t({chainId:e?.chain?.id,chains:r}),()=>e(rr()),{equalityFn:tB});return n}async function rs({name:e,chainId:t}){let r=t2({chainId:t}),n=await r.getEnsAvatar({name:(0,t_.Q6)(e)});return n}async function rc({address:e,chainId:t}){let r=t2({chainId:t});return r.getEnsName({address:(0,tD.K)(e)})}async function rl({chainId:e}={}){let t=t2({chainId:e}),r=await t.getBlockNumber();return r}},53160:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(16867);function o(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},20605:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(53160),o=r(16867);function i(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,n.E)(t),i=0;for(let t of e)r.set(t,i),i+=t.length;return(0,o.P)(r)}},52217:function(e,t,r){"use strict";r.d(t,{m:function(){return i}});var n=r(73149),o=r(16867);function i(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?(0,o.P)(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}},37466:function(e,t,r){"use strict";r.d(t,{BB:function(){return i.B},mL:function(){return o.m},zo:function(){return n.z}});var n=r(20605),o=r(52217),i=r(92263)},92263:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});var n=r(73149);function o(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},16867:function(e,t,r){"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:function(){return n}})},73149:function(e,t,r){"use strict";r.d(t,{Z:function(){return eQ}});var n={};r.r(n),r.d(n,{identity:function(){return B}});var o={};r.r(o),r.d(o,{base2:function(){return _}});var i={};r.r(i),r.d(i,{base8:function(){return D}});var a={};r.r(a),r.d(a,{base10:function(){return $}});var s={};r.r(s),r.d(s,{base16:function(){return M},base16upper:function(){return R}});var c={};r.r(c),r.d(c,{base32:function(){return N},base32hex:function(){return z},base32hexpad:function(){return q},base32hexpadupper:function(){return G},base32hexupper:function(){return H},base32pad:function(){return L},base32padupper:function(){return U},base32upper:function(){return F},base32z:function(){return W}});var l={};r.r(l),r.d(l,{base36:function(){return K},base36upper:function(){return V}});var u={};r.r(u),r.d(u,{base58btc:function(){return Q},base58flickr:function(){return Z}});var d={};r.r(d),r.d(d,{base64:function(){return Y},base64pad:function(){return J},base64url:function(){return X},base64urlpad:function(){return ee}});var f={};r.r(f),r.d(f,{base256emoji:function(){return eo}});var h={};r.r(h),r.d(h,{sha256:function(){return ev},sha512:function(){return ey}});var p={};r.r(p),r.d(p,{identity:function(){return ew}});var m={};r.r(m),r.d(m,{code:function(){return ex},decode:function(){return eA},encode:function(){return eC},name:function(){return eE}});var g={};r.r(g),r.d(g,{code:function(){return eO},decode:function(){return eI},encode:function(){return eS},name:function(){return ek}});var b=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");
2848for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),a=i.charCodeAt(0);if(255!==r[a])throw TypeError(i+" is ambiguous");r[a]=o}var s=e.length,c=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,o=0;e[t]===c;)n++,t++;for(var i=(e.length-t)*l+1>>>0,a=new Uint8Array(i);e[t];){var u=r[e.charCodeAt(t)];if(255===u)return;for(var d=0,f=i-1;(0!==u||d<o)&&-1!==f;f--,d++)u+=s*a[f]>>>0,a[f]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");o=d,t++}if(" "!==e[t]){for(var h=i-o;h!==i&&0===a[h];)h++;for(var p=new Uint8Array(n+(i-h)),m=n;h!==i;)p[m++]=a[h++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,o=0,i=t.length;o!==i&&0===t[o];)o++,r++;for(var a=(i-o)*u+1>>>0,l=new Uint8Array(a);o!==i;){for(var d=t[o],f=0,h=a-1;(0!==d||f<n)&&-1!==h;h--,f++)d+=256*l[h]>>>0,l[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");n=f,o++}for(var p=a-n;p!==a&&0===l[p];)p++;for(var m=c.repeat(r);p<a;++p)m+=e.charAt(l[p]);return m},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let v=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},y=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},w=e=>new TextEncoder().encode(e),E=e=>new TextDecoder().decode(e);class x{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class C{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return P(this,e)}}class A{constructor(e){this.decoders=e}or(e){return P(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let P=(e,t)=>new A({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class j{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new x(e,t,r),this.decoder=new C(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let k=({name:e,prefix:t,encode:r,decode:n})=>new j(e,t,r,n),O=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:o}=b(r,t);return k({prefix:e,name:t,encode:n,decode:e=>y(o(e))})},S=(e,t,r,n)=>{let o={};for(let e=0;e<t.length;++e)o[t[e]]=e;let i=e.length;for(;"="===e[i-1];)--i;let a=new Uint8Array(i*r/8|0),s=0,c=0,l=0;for(let t=0;t<i;++t){let i=o[e[t]];if(void 0===i)throw SyntaxError(`Non-${n} character`);c=c<<r|i,(s+=r)>=8&&(s-=8,a[l++]=255&c>>s)}if(s>=r||255&c<<8-s)throw SyntaxError("Unexpected end of data");return a},I=(e,t,r)=>{let n="="===t[t.length-1],o=(1<<r)-1,i="",a=0,s=0;for(let n=0;n<e.length;++n)for(s=s<<8|e[n],a+=8;a>r;)a-=r,i+=t[o&s>>a];if(a&&(i+=t[o&s<<r-a]),n)for(;i.length*r&7;)i+="=";return i},T=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>k({prefix:t,name:e,encode:e=>I(e,n,r),decode:t=>S(t,n,r,e)}),B=k({prefix:"\x00",name:"identity",encode:e=>E(e),decode:e=>w(e)}),_=T({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),D=T({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),$=O({prefix:"9",name:"base10",alphabet:"0123456789"}),M=T({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),R=T({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),N=T({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),F=T({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),L=T({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),U=T({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),z=T({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),H=T({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),q=T({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),G=T({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),W=T({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),K=O({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),V=O({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}
2848),Q=O({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Z=O({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Y=T({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),J=T({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),X=T({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ee=T({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),et=Array.from("\uD83D\uDE80\uD83E\uDE90â\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09â\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02â¤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09âº\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9Eââ¨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2Dâ£\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33â\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13ââ
\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6â\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90â¹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20â\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2Bâ½\uD83E\uDD19â\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81â¡\uD83C\uDF1E\uD83C\uDF88ââ\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2Câ\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74â¶â¡â\uD83D\uDC8E\uD83D\uDCB8â¬\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7Aâ \uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37â\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51â\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),er=et.reduce((e,t,r)=>(e[r]=t,e),[]),en=et.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),eo=k({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=er[t],"")},decode:function(e){let t=[];for(let r of e){let e=en[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});function ei(e,t,r){t=t||[];for(var n=r=r||0;e>=2147483648;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,ei.bytes=r-n+1,t}function ea(e,t){var r,n=0,t=t||0,o=0,i=t,a=e.length;do{if(i>=a)throw ea.bytes=0,RangeError("Could not decode varint");r=e[i++],n+=o<28?(127&r)<<o:(127&r)*Math.pow(2,o),o+=7}while(r>=128);return ea.bytes=i-t,n}var es={encode:ei,decode:ea,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10}};let ec=(e,t=0)=>{let r=es.decode(e,t);return[r,es.decode.bytes]},el=(e,t,r=0)=>(es.encode(e,t,r),t),eu=e=>es.encodingLength(e),ed=(e,t)=>{let r=t.byteLength,n=eu(e),o=n+eu(r),i=new Uint8Array(o+r);return el(e,i,0),el(r,i,n),i.set(t,o),new ep(e,r,t,i)},ef=e=>{let t=y(e),[r,n]=ec(t),[o,i]=ec(t.subarray(n)),a=t.subarray(n+i);if(a.byteLength!==o)throw Error("Incorrect length");return new ep(r,o,a,t)},eh=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&v(e.bytes,t.bytes);
2848class ep{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let em=({name:e,code:t,encode:r})=>new eg(e,t,r);class eg{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?ed(this.code,t):t.then(e=>ed(this.code,e))}throw Error("Unknown type, must be binary type")}}let eb=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ev=em({name:"sha2-256",code:18,encode:eb("SHA-256")}),ey=em({name:"sha2-512",code:19,encode:eb("SHA-512")}),ew={code:0,name:"identity",encode:y,digest:e=>ed(0,y(e))},eE="raw",ex=85,eC=e=>y(e),eA=e=>y(e),eP=new TextEncoder,ej=new TextDecoder,ek="json",eO=512,eS=e=>eP.encode(JSON.stringify(e)),eI=e=>JSON.parse(ej.decode(e));class eT{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eL,byteLength:eL,code:eF,version:eF,multihash:eF,bytes:eF,_baseCache:eL,asCID:eL})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==e$)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eM)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eT.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=ed(e,t);return eT.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&eh(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?e_(t,n,e||Q.encoder):eD(t,n,e||N.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return eU(/^0\.0/,ez),!!(e&&(e[eN]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eT)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:o}=e;return new eT(t,r,n,o||eR(t,r,n.bytes))}if(null==e||!0!==e[eN])return null;{let{version:t,multihash:r,code:n}=e,o=ef(r);return eT.create(t,n,o)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===e$)return new eT(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${e$}) block encoding`);case 1:{let n=eR(e,t,r.bytes);return new eT(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return eT.create(0,e$,e)}static createV1(e,t){return eT.create(1,e,t)}static decode(e){let[t,r]=eT.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eT.inspectBytes(e),r=t.size-t.multihashSize,n=y(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let o=n.subarray(t.multihashSize-t.digestSize),i=new ep(t.multihashCode,t.digestSize,o,n),a=0===t.version?eT.createV0(i):eT.createV1(t.codec,i);return[a,e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=ec(e.subarray(t));return t+=n,r},n=r(),o=e$;if(18===n?(n=0,t=0):1===n&&(o=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let i=t,a=r(),s=r(),c=t+s;return{version:n,codec:o,multihashCode:a,digestSize:s,multihashSize:c-i,size:c}}static parse(e,t){let[r,n]=eB(e,t),o=eT.decode(n);return o._baseCache.set(r,e),o}}let eB=(e,t)=>{switch(e[0]){case"Q":return[Q.prefix,(t||Q).decode(`${Q.prefix}${e}`)];case Q.prefix:return[Q.prefix,(t||Q).decode(e)];case N.prefix:return[N.prefix,(t||N).decode(e)];default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},e_=(e,t,r)=>{let{prefix:n}=r;if(n!==Q.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let o=t.get(n);if(null!=o)return o;{let o=r.encode(e).slice(1);return t.set(n,o),o}},eD=(e,t,r)=>{let{prefix:n}=r,o=t.get(n);if(null!=o)return o;{let o=r.encode(e);return t.set(n,o),o}},e$=112,eM=18,eR=(e,t,r)=>{let n=eu(e),o=n+eu(t),i=new Uint8Array(o+r.byteLength);return el(e,i,0),el(t,i,n),i.set(r,o),i}
2848,eN=Symbol.for("@ipld/js-cid/CID"),eF={writable:!1,configurable:!1,enumerable:!0},eL={writable:!1,enumerable:!1,configurable:!1},eU=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},ez=`CID.isCID(v) is deprecated and will be removed in the next major release. 2849Following code pattern: 2850 2851if (CID.isCID(value)) { 2852 doSomethingWithCID(value) 2853} 2854 2855Is replaced with: 2856 2857const cid = CID.asCID(value) 2858if (cid) { 2859 // Make sure to use cid instead of value 2860 doSomethingWithCID(cid) 2861} 2862`,eH={...n,...o,...i,...a,...s,...c,...l,...u,...d,...f};({...h,...p});var eq=r(53160);function eG(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let eW=eG("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{let t=new TextEncoder;return t.encode(e.substring(1))}),eK=eG("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=(0,eq.E)(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),eV={utf8:eW,"utf-8":eW,hex:eH.base16,latin1:eK,ascii:eK,binary:eK,...eH};var eQ=eV},21431:function(e,t,r){"use strict";function n(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}r.d(t,{T:function(){return n}})},83161:function(e,t,r){"use strict";r.d(t,{R:function(){return b}});var n=r(21431),o=r(1920),i=r(69977),a=r(21973),s=r(90722),c=r(31826),l=r(96606),u=r(61786),d=r(46872),f=r(90968),h=r(91019),p=r(23822),m=r(68583),g=r(13134);async function b(e,t){let{account:o,batch:c=!!e.batch?.multicall,blockNumber:l,blockTag:u="latest",accessList:m,data:b,gas:y,gasPrice:w,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:C,to:A,value:P,...j}=t,k=o?(0,n.T)(o):void 0;try{(0,g.F)(t);let r=l?(0,d.eC)(l):void 0,n=r||u,o=e.chain?.formatters?.transactionRequest?.format||p.t,i=o({...(0,h.K)(j,{format:o}),from:k?.address,accessList:m,data:b,gas:y,gasPrice:w,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:C,to:A,value:P});if(c&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:i}))try{return await v(e,{...i,blockNumber:l,blockTag:u})}catch(e){if(!(e instanceof a.pZ)&&!(e instanceof a.mm))throw e}let s=await e.request({method:"eth_call",params:n?[i,n]:[i]});if("0x"===s)return{data:void 0};return{data:s}}catch(c){let n=function(e){if(!(e instanceof i.G))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}(c),{offchainLookup:o,offchainLookupSignature:a}=await r.e(3646).then(r.bind(r,33646));if(n?.slice(0,10)===a&&A)return{data:await o(e,{data:n,to:A})};throw function(e,{docsPath:t,...r}){let n=e;return(0,f.B)(e)&&(n=(0,f.k)(e,r)),new s.cg(n,{docsPath:t,...r})}(c,{...t,account:k,chain:e.chain})}}async function v(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:f="latest",data:h,multicallAddress:p,to:g}=t,b=p;if(!b){if(!e.chain)throw new a.pZ;b=(0,u.LI)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let v=i?(0,d.eC)(i):void 0,y=v||f,{schedule:w}=(0,m.S)({id:`${e.uid}.${y}`,wait:n,shouldSplitBatch(e){let t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*r},fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,l.R)({abi:o.F8,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:b},y]});return(0,c.k)({abi:o.F8,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:E,success:x}]=await w({data:h,to:g});if(!x)throw new s.VQ({data:E});return"0x"===E?{data:void 0}:{data:E}}},14828:function(e,t,r){"use strict";r.d(t,{Q:function(){return g}});var n=r(21431),o=r(25071),i=r(46872),a=r(6665),s=r(56283),c=r(69977),l=r(54574);class u extends c.G{constructor(e,{account:t,docsPath:r,chain:n,data:o,gas:i,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=(0,l.xr)({from:t?.address,to:h,value:void 0!==p&&`${(0,a.d)(p)} ${n?.nativeCurrency.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==c&&`${(0,s.o)(c)} gwei`,maxFeePerGas:void 0!==u&&`${(0,s.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,s.o)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(
2862Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var d=r(90968),f=r(91019),h=r(23822),p=r(13134),m=r(59920);async function g(e,t){let r=t.account??e.account;if(!r)throw new o.o({docsPath:"/docs/actions/public/estimateGas"});let a=(0,n.T)(r);try{let{accessList:r,blockNumber:n,blockTag:o,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:g,to:b,value:v,...y}="local"===a.type?await (0,m.h)(e,t):t,w=n?(0,i.eC)(n):void 0,E=w||o;(0,p.F)(t);let x=e.chain?.formatters?.transactionRequest?.format||h.t,C=x({...(0,f.K)(y,{format:x}),from:a.address,accessList:r,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:g,to:b,value:v}),A=await e.request({method:"eth_estimateGas",params:E?[C,E]:[C]});return BigInt(A)}catch(r){throw function(e,{docsPath:t,...r}){let n=e;return(0,d.B)(e)&&(n=(0,d.k)(e,r)),new u(n,{docsPath:t,...r})}(r,{...t,account:a,chain:e.chain})}}},33910:function(e,t,r){"use strict";r.d(t,{Q:function(){return s}});var n=r(69977);class o extends n.G{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}var i=r(46872),a=r(86101);async function s(e,{blockHash:t,blockNumber:r,blockTag:n,includeTransactions:s}={}){let c=s??!1,l=void 0!==r?(0,i.eC)(r):void 0,u=null;if(!(u=t?await e.request({method:"eth_getBlockByHash",params:[t,c]}):await e.request({method:"eth_getBlockByNumber",params:[l||(n??"latest"),c]})))throw new o({blockHash:t,blockNumber:r});let d=e.chain?.formatters?.block?.format||a.Z;return d(u)}},29251:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(90169);async function o(e){let t=await e.request({method:"eth_chainId"});return(0,n.ly)(t)}},48671:function(e,t,r){"use strict";async function n(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}r.d(t,{o:function(){return n}})},89784:function(e,t,r){"use strict";r.d(t,{K:function(){return i}});var n=r(90169),o=r(46872);async function i(e,{address:t,blockTag:r="latest",blockNumber:i}){let a=await e.request({method:"eth_getTransactionCount",params:[t,i?(0,o.eC)(i):r]});return(0,n.ly)(a)}},48439:function(e,t,r){"use strict";let n;r.d(t,{e:function(){return a}});var o=r(21431);let i=256;function a(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,key:a="base",name:s="Base Client",pollingInterval:c=4e3,type:l="base"}=e,u=e.chain,d=e.account?(0,o.T)(e.account):void 0,{config:f,request:h,value:p}=e.transport({chain:u,pollingInterval:c}),m={...f,...p},g={account:d,batch:t,cacheTime:r,chain:u,key:a,name:s,pollingInterval:c,request:h,transport:m,type:l,uid:function(e=11){if(!n||i+e>512){n="",i=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(i,i+++e)}()};return Object.assign(g,{extend:function e(t){return r=>{let n=r(t);for(let e in g)delete n[e];let o={...t,...n};return Object.assign(o,{extend:e(o)})}}(g)})}},67629:function(e,t,r){"use strict";r.d(t,{K:function(){return _}});var n=r(48439),o=r(29251),i=r(46872);async function a(e,{chain:t}){let{id:r,name:n,nativeCurrency:o,rpcUrls:a,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,i.eC)(r),chainName:n,nativeCurrency:o,rpcUrls:a.default.http,blockExplorerUrls:s?Object.values(s).map(({url:e})=>e):void 0}]})}var s=r(99353),c=r(21431),l=r(25071),u=r(61786),d=r(54574),f=r(90968),h=r(91019),p=r(23822),m=r(13134),g=r(59920);async function b(e,t){let{account:r=e.account,chain:n=e.chain,accessList:i,data:a,gas:s,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:y,nonce:w,to:E,value:x,...C}=t;if(!r)throw new l.o({docsPath:"/docs/actions/wallet/sendTransaction"});let A=(0,c.T)(r);try{let r;if((0,m.F)(t),null!==n&&(r=await (0,o.L)(e),(0,u.qg)({currentChainId:r,chain:n})),"local"===A.type){let t=await (0,g.h)(e,{account:A,accessList:i,chain:n,data:a,gas:s,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:y,nonce:w,to:E,value:x,...C});r||(r=await (0,o.L)(e));let c=n?.serializers?.transaction,l=await A.signTransaction({...t,chainId:r}
2862,{serializer:c});return await e.request({method:"eth_sendRawTransaction",params:[l]})}let c=n?.formatters?.transactionRequest?.format||p.t,l=c({...(0,h.K)(C,{format:c}),accessList:i,data:a,from:A.address,gas:s,gasPrice:b,maxFeePerGas:v,maxPriorityFeePerGas:y,nonce:w,to:E,value:x});return await e.request({method:"eth_sendTransaction",params:[l]})}catch(e){throw function(e,{docsPath:t,...r}){let n=e;return(0,f.B)(e)&&(n=(0,f.k)(e,r)),new d.mk(n,{docsPath:t,...r})}(e,{...t,account:A,chain:t.chain||void 0})}}var v=r(92221);async function y(e){let t=await e.request({method:"eth_accounts"});return t.map(e=>(0,v.x)(e))}async function w(e){let t=await e.request({method:"wallet_getPermissions"});return t}async function E(e){let t=await e.request({method:"eth_requestAccounts"});return t.map(e=>(0,v.K)(e))}async function x(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function C(e,{account:t=e.account,message:r}){if(!t)throw new l.o({docsPath:"/docs/actions/wallet/signMessage"});let n=(0,c.T)(t);if("local"===n.type)return n.signMessage({message:r});let o="string"==typeof r?(0,i.$G)(r):r.raw instanceof Uint8Array?(0,i.NC)(r.raw):r.raw;return e.request({method:"personal_sign",params:[o,n.address]})}var A=r(25493),P=r(61344),j=r(61539);async function k(e,{account:t=e.account,domain:r,message:n,primaryType:o,types:i}){if(!t)throw new l.o({docsPath:"/docs/actions/wallet/signTypedData"});let a=(0,c.T)(t),s={EIP712Domain:["string"==typeof r?.name&&{name:"name",type:"string"},r?.version&&{name:"version",type:"string"},"number"==typeof r?.chainId&&{name:"chainId",type:"uint256"},r?.verifyingContract&&{name:"verifyingContract",type:"address"},r?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...i};if((0,j.i)({domain:r,message:n,primaryType:o,types:s}),"local"===a.type)return a.signTypedData({domain:r,primaryType:o,types:s,message:n});let u=(0,P.P)({domain:r??{},primaryType:o,types:s,message:n},(e,t)=>(0,A.v)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[a.address,u]})}async function O(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,i.eC)(t)}]})}async function S(e,t){let r=await e.request({method:"wallet_watchAsset",params:t});return r}var I=r(96606);async function T(e,{abi:t,address:r,args:n,dataSuffix:o,functionName:i,...a}){let s=(0,I.R)({abi:t,args:n,functionName:i}),c=await b(e,{data:`${s}${o?o.replace("0x",""):""}`,to:r,...a});return c}function B(e){return{addChain:t=>a(e,t),deployContract:t=>(function(e,{abi:t,args:r,bytecode:n,...o}){let i=(0,s.w)({abi:t,args:r,bytecode:n});return b(e,{...o,data:i})})(e,t),getAddresses:()=>y(e),getChainId:()=>(0,o.L)(e),getPermissions:()=>w(e),requestAddresses:()=>E(e),requestPermissions:t=>x(e,t),sendTransaction:t=>b(e,t),signMessage:t=>C(e,t),signTypedData:t=>k(e,t),switchChain:t=>O(e,t),watchAsset:t=>S(e,t),writeContract:t=>T(e,t)}}function _(e){let{key:t="wallet",name:r="Wallet Client",transport:o}=e,i=(0,n.e)({...e,key:t,name:r,transport:e=>o({...e,retryCount:0}),type:"walletClient"});return i.extend(B)}},14160:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});var n=r(62635);function o({key:e,name:t,request:r,retryCount:o=3,retryDelay:i=150,timeout:a,type:s},c){return{config:{key:e,name:t,request:r,retryCount:o,retryDelay:i,timeout:a,type:s},request:(0,n.n)(r,{retryCount:o,retryDelay:i}),value:c}}},19575:function(e,t,r){"use strict";r.d(t,{P:function(){return o}});var n=r(14160);function o(e,t={}){let{key:r="custom",name:o="Custom Provider",retryDelay:i}=t;return({retryCount:a})=>(0,n.q)({key:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:i,type:"custom"})}},1920:function(e,t,r){"use strict";r.d(t,{$o:function(){return l},F8:function(){return n},X$:function(){return c},du:function(){return a},k3:function(){return i},nZ:function(){return s}});let n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],o=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],i=[...o,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],a=[...o,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{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=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},35554:function(e,t,r){"use strict";r.d(t,{$:function(){return n},Up:function(){return o},hZ:function(){return i}});
2862let n={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},o={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},i={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},58617:function(e,t,r){"use strict";r.d(t,{Bd:function(){return i},Zn:function(){return o},ez:function(){return n}});let n={gwei:9,wei:18},o={ether:-9,wei:9},i={ether:-18,gwei:-9}},5555:function(e,t,r){"use strict";r.d(t,{CI:function(){return C},FM:function(){return p},Gy:function(){return E},KY:function(){return y},M4:function(){return d},MX:function(){return v},SM:function(){return w},cO:function(){return s},dh:function(){return x},fM:function(){return a},fs:function(){return f},gr:function(){return u},hn:function(){return A},lC:function(){return m},mv:function(){return g},wM:function(){return P},wb:function(){return l},xB:function(){return c},xL:function(){return b},yP:function(){return h}});var n=r(21494),o=r(51756),i=r(69977);class a extends i.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class s extends i.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class c extends i.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class l extends i.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class u extends i.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. 2863Expected length: ${e} 2864Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class d extends i.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,o.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class f extends i.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 2865Expected length (params): ${e} 2866Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class h extends i.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. 2867Make sure you are using the correct ABI and that the error exists on it. 2868You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends i.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class m extends i.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 2869Make sure you are using the correct ABI and that the event exists on it. 2870You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends i.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 2871Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class b extends i.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 2872Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class v extends i.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 2873Cannot decode function result without knowing what the parameter types are. 2874Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class y extends i.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class w extends i.G{constructor({abiItem:e,data:t,params:r,size:o}){super(`Data size of ${o} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data: ${t} (${o} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=o}}class E extends i.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.t)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class x extends i.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 2875Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class C extends i.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 2876Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class A extends i.G{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class P extends i.G{constructor(e){super(`"${e}" is not a valid definition type. 2877Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},25071:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(69977);class o extends n.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},92960:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(69977);class o extends n.G{constructor({address:e}){super(`Address "${e}
2877" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},69977:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});var n=r(20966);class o extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.bo)()});let r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof o&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://viem.sh${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,r):r?null:t}(this,e)}}},21973:function(e,t,r){"use strict";r.d(t,{Bk:function(){return a},Yl:function(){return i},hJ:function(){return c},mm:function(){return o},pZ:function(){return s}});var n=r(69977);class o extends n.G{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class i extends n.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} â ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} â ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class a extends n.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class s extends n.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class c extends n.G{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},90722:function(e,t,r){"use strict";r.d(t,{cg:function(){return g},uq:function(){return b},Lu:function(){return v},Dk:function(){return y},VQ:function(){return w}});var n=r(21431),o=r(35554),i=r(11856),a=r(21494),s=r(61344);function c({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,s.P)(t[r]):t[r]}`).join(", ")})`}var l=r(28604),u=r(6665),d=r(56283),f=r(5555),h=r(69977),p=r(54574),m=r(20966);class g extends h.G{constructor(e,{account:t,docsPath:r,chain:o,data:i,gas:a,gasPrice:s,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:f,to:h,value:m}){let g=t?(0,n.T)(t):void 0,b=(0,p.xr)({from:g?.address,to:h,value:void 0!==m&&`${(0,u.d)(m)} ${o?.nativeCurrency.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==c&&`${(0,d.o)(c)}
2877 gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,d.o)(l)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class b extends h.G{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:i,sender:s}){let u=(0,l.m)({abi:t,args:r,name:i}),d=u?c({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=u?(0,a.t)(u,{includeName:!0}):void 0,h=(0,p.xr)({address:n&&(0,m.CR)(n),function:f,args:d&&"()"!==d&&`${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",h].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=i,this.sender=s}}class v extends h.G{constructor({abi:e,data:t,functionName:r,message:n}){let s,l,u,d,h;if(t&&"0x"!==t)try{h=(0,i.p)({abi:e,data:t});let{abiItem:r,errorName:n,args:s}=h;if("Error"===n)u=s[0];else if("Panic"===n){let[e]=s;u=o.$[e]}else{let e=r?(0,a.t)(r,{includeName:!0}):void 0,t=r&&s?c({abiItem:r,args:s,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else n&&(u=n);s instanceof f.yP&&(l=[`Unable to decode signature "${d=s.signature}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(u&&"execution reverted"!==u||d?[`The contract function "${r}" reverted with the following ${d?"signature":"reason"}:`,u||d].join("\n"):`The contract function "${r}" reverted.`,{cause:s,metaMessages:l}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=h,this.reason=u,this.signature=d}}class y extends h.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class w extends h.G{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},98309:function(e,t,r){"use strict";r.d(t,{$:function(){return i},m:function(){return o}});var n=r(69977);class o extends n.G{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class i extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},89466:function(e,t,r){"use strict";r.d(t,{Cd:function(){return i},J5:function(){return o},M6:function(){return a}});var n=r(69977);class o extends n.G{constructor({max:e,min:t,signed:r,size:n,value:o}){super(`Number "${o}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class i extends n.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class a extends n.G{constructor({givenSize:e,maxSize:t}
2877){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},66054:function(e,t,r){"use strict";r.d(t,{C_:function(){return d},G$:function(){return s},Hh:function(){return a},M_:function(){return i},WF:function(){return f},ZI:function(){return c},cj:function(){return g},cs:function(){return m},dR:function(){return h},pZ:function(){return p},se:function(){return u},vU:function(){return l}});var n=r(56283),o=r(69977);class i extends o.G{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(i,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class a extends o.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class s extends o.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends o.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class l extends o.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. 2878Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported/});class u extends o.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends o.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class f extends o.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}
2878Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends o.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends o.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends o.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.o)(r)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends o.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.message}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},88822:function(e,t,r){"use strict";r.d(t,{Gg:function(){return a},W5:function(){return l},bs:function(){return c},c9:function(){return s}});var n=r(61344),o=r(69977),i=r(20966);class a extends o.G{constructor({body:e,details:t,headers:r,status:o,url:a}){super("HTTP request failed.",{details:t,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,i.Gr)(a)}`,e&&`Request body: ${(0,n.P)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=o,this.url=a}}class s extends o.G{constructor({body:e,details:t,url:r}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,i.Gr)(r)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class c extends o.G{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,i.Gr)(r)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class l extends o.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,i.Gr)(t)}`,`Request body: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},42455:function(e,t,r){"use strict";r.d(t,{B:function(){return c},GD:function(){return v},I0:function(){return C},KB:function(){return m},LX:function(){return l},Og:function(){return h},PE:function(){return w},Pv:function(){return b},Ts:function(){return E},XS:function(){return d},ab:function(){return y},gS:function(){return g},ir:function(){return P},nY:function(){return u},pT:function(){return p},s7:function(){return s},u5:function(){return x},x3:function(){return A},yR:function(){return f}});var n=r(69977),o=r(88822);class i extends n.G{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:i}
2878){super(i,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof o.bs?e.code:t??-1}}class a extends i{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends i{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends i{constructor(e){super(e,{code:c.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class l extends i{constructor(e){super(e,{code:l.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends i{constructor(e){super(e,{code:u.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends i{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends i{constructor(e){super(e,{code:f.code,shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class h extends i{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends i{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends i{constructor(e){super(e,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends i{constructor(e){super(e,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class b extends i{constructor(e){super(e,{code:b.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class v extends i{constructor(e){super(e,{code:v.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class y extends a{constructor(e){super(e,{code:y.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends a{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class E extends a{constructor(e){super(e,{code:E.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends a{constructor(e){super(e,{code:x.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class C extends a{constructor(e){super(e,{code:C.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class A extends a{constructor(e){super(e,{code:A.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class P extends i{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},54574:function(e,t,r){"use strict";r.d(t,{Bh:function(){return f},JC:function(){return u},Yb:function(){return h},j3:function(){return l},mc:function(){return p},mk:function(){return d},vl:function(){return c},xY:function(){return s},xr:function(){return a}});var n=r(6665),o=r(56283),i=r(69977);function a(e){let t=Object.entries(e).map(([e,t])=>
2878void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(r+1)} ${t}`).join("\n")}class s extends i.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class c extends i.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class l extends i.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class u extends i.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class d extends i.G{constructor(e,{account:t,docsPath:r,chain:i,data:s,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){let m=a({chain:i&&`${i?.name} (id: ${i?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,n.d)(p)} ${i?.nativeCurrency.symbol||"ETH"}`,data:s,gas:c,gasPrice:void 0!==l&&`${(0,o.o)(l)} gwei`,maxFeePerGas:void 0!==u&&`${(0,o.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,o.o)(d)} gwei`,nonce:f});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class f extends i.G{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:o}){let i="Transaction";r&&void 0!==o&&(i=`Transaction at block time "${r}" at index "${o}"`),e&&void 0!==o&&(i=`Transaction at block hash "${e}" at index "${o}"`),t&&void 0!==o&&(i=`Transaction at block number "${t}" at index "${o}"`),n&&(i=`Transaction with hash "${n}"`),super(`${i} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class h extends i.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class p extends i.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},20966:function(e,t,r){"use strict";r.d(t,{CR:function(){return n},Gr:function(){return o},bo:function(){return i}});let n=e=>e,o=e=>e,i=()=>"[email protected]"},70558:function(e,t,r){"use strict";r.d(t,{r:function(){return u}});var n=r(5555),o=r(92221),i=r(51756),a=r(33283),s=r(26873),c=r(90169),l=r(62546);function u(e,t){if("0x"===t&&e.length>0)throw new n.wb;if((0,i.d)(t)&&32>(0,i.d)(t))throw new n.xB({data:t,params:e,size:(0,i.d)(t)});return function({data:e,params:t}){let r=[],u=0;for(let f=0;f<t.length;f++){if(u>=(0,i.d)(e))throw new n.xB({data:e,params:t,size:(0,i.d)(e)});let h=t[f],{consumed:p,value:m}=function e({data:t,param:r,position:i}){let u=(0,l.S)(r.type);if(u){let[n,o]=u;return function(t,{param:r,length:n,position:o}){if(!n){let n=(0,c.ly)((0,a.tP)(t,o,o+32,{strict:!0})),i=(0,c.ly)((0,a.tP)(t,n,n+32,{strict:!0})),s=0,l=[];for(let o=0;o<i;++o){let o=e({data:(0,a.tP)(t,n+32),param:r,position:s});s+=o.consumed,l.push(o.value)}return{value:l,consumed:32}}if(d(r)){let i=(0,l.S)(r.type),s=!i?.[0],u=0,d=[];for(let i=0;i<n;++i){let n=(0,c.ly)((0,a.tP)(t,o,o+32,{strict:!0})),l=e({data:(0,a.tP)(t,n),param:r,position:s?u:32*i});u+=l.consumed,d.push(l.value)}return{value:d,consumed:32}}let i=0,s=[];for(let a=0;a<n;++a){let n=e({data:t,param:r,position:o+i});i+=n.consumed,s.push(n.value)}return{value:s,consumed:i}}(t,{length:n,param:{...r,type:o},position:i})}if("tuple"===r.type)return function(t,{param:r,position:n}){let o=0===r.components.length||r.components.some(({name:e})=>!e),i=o?[]:{},s=0;if(d(r)){let l=(0,c.ly)((0,a.tP)(t,n,n+32,{strict:!0}));for(let n=0;n<r.components.length;++n){let c=r.components[n],u=e({data:(0,a.tP)(t,l),param:c,position:s});s+=u.consumed,i[o?n:c?.name]=u.value}return{consumed:32,value:i}}for(let a=0;a<r.components.length;++a){let c=r.components[a],l=e({data:t,param:c,position:n+s});s+=l.consumed,i[o?a:c?.name]=l.value}return{consumed:s,value:i}}(t,{param:r,position:i});if("string"===r.type)return function(e,{position:t}){let r=(0,c.ly)((0,a.tP)(e,t,t+32,{strict:!0})),n=(0,c.ly)((0,a.tP)(e,r,r+32,{strict:!0}));if(0===n)return{consumed:32,value:""};let o=(0,c.rR)((0,s.f)((0,a.tP)(e,r+32,r+32+n,{strict:!0})));return{consumed:32,value:o}}(t,{position:i});if(r.type.startsWith("bytes"))return function(e,{param:t,position:r}){let[n,o]=t.type.split("bytes");if(!o){let t=(0,c.ly)((0,a.tP)(e,r,r+32,{strict:!0})),n=(0,c.ly)((0,a.tP)(e,t,t+32,{strict:!0}));
2878if(0===n)return{consumed:32,value:"0x"};let o=(0,a.tP)(e,t+32,t+32+n,{strict:!0});return{consumed:32,value:o}}let i=(0,a.tP)(e,r,r+parseInt(o),{strict:!0});return{consumed:32,value:i}}(t,{param:r,position:i});let f=(0,a.tP)(t,i,i+32,{strict:!0});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,{param:t}){let r=t.type.startsWith("int"),n=parseInt(t.type.split("int")[1]||"256");return{consumed:32,value:n>48?(0,c.y_)(e,{signed:r}):(0,c.ly)(e,{signed:r})}}(f,{param:r});if("address"===r.type)return{consumed:32,value:(0,o.x)((0,a.tP)(f,-20))};if("bool"===r.type)return{consumed:32,value:(0,c.XA)(f)};throw new n.CI(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:h,position:u});r.push(m),u+=p}return r}({data:t,params:e})}function d(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(d);let r=(0,l.S)(e.type);return!!(r&&d({...e,type:r[1]}))}},11856:function(e,t,r){"use strict";r.d(t,{p:function(){return l}});var n=r(35554),o=r(5555),i=r(33283),a=r(80507),s=r(70558),c=r(21494);function l({abi:e,data:t}){let r=(0,i.tP)(t,0,4);if("0x"===r)throw new o.wb;let l=[...e||[],n.Up,n.hZ],u=l.find(e=>"error"===e.type&&r===(0,a.o)((0,c.t)(e)));if(!u)throw new o.yP(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.r)(u.inputs,(0,i.tP)(t,4)):void 0,errorName:u.name}}},31826:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var n=r(5555),o=r(70558),i=r(28604);let a="/docs/contract/decodeFunctionResult";function s({abi:e,args:t,functionName:r,data:s}){let c=e[0];if(r&&!(c=(0,i.m)({abi:e,args:t,name:r})))throw new n.xL(r,{docsPath:a});if("function"!==c.type)throw new n.xL(void 0,{docsPath:a});if(!c.outputs)throw new n.MX(c.name,{docsPath:a});let l=(0,o.r)(c.outputs,s);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},62546:function(e,t,r){"use strict";r.d(t,{E:function(){return d},S:function(){return h}});var n=r(5555),o=r(92960),i=r(97451),a=r(9040),s=r(28795),c=r(51756),l=r(33283),u=r(46872);function d(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=function({params:e,values:t}){let r=[];for(let d=0;d<e.length;d++)r.push(function e({param:t,value:r}){let d=h(t.type);if(d){let[o,i]=d;return function(t,{length:r,param:o}){let i=null===r;if(!Array.isArray(t))throw new n.hn(t);if(!i&&t.length!==r)throw new n.gr({expectedLength:r,givenLength:t.length,type:`${o.type}[${r}]`});let s=!1,c=[];for(let r=0;r<t.length;r++){let n=e({param:o,value:t[r]});n.dynamic&&(s=!0),c.push(n)}if(i||s){let e=f(c);if(i){let t=(0,u.eC)(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?(0,a.zo)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.zo)(c.map(({encoded:e})=>e))}}(r,{length:o,param:{...t,type:i}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,o=[];for(let i=0;i<r.components.length;i++){let a=r.components[i],s=Array.isArray(t)?i:a.name,c=e({param:a,value:t[s]});o.push(c),c.dynamic&&(n=!0)}return{dynamic:n,encoded:n?f(o):(0,a.zo)(o.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,i.U)(e))throw new o.b({address:e});return{dynamic:!1,encoded:(0,s.gc)(e.toLowerCase())}}(r);if("bool"===t.type)return{dynamic:!1,encoded:(0,s.gc)((0,u.C4)(r))};if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int");return function(e,{signed:t}){return{dynamic:!1,encoded:(0,u.eC)(e,{size:32,signed:t})}}(r,{signed:e})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),o=(0,c.d)(e);if(!r){let t=e;return o%32!=0&&(t=(0,s.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.zo)([(0,s.gc)((0,u.eC)(o,{size:32})),t])}}if(o!==parseInt(r))throw new n.M4({expectedSize:parseInt(r),value:e});return{dynamic:!1,encoded:(0,s.gc)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,u.$G)(e),r=Math.ceil((0,c.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,s.gc)((0,l.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,a.zo)([(0,s.gc)((0,u.eC)((0,c.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[d],value:t[d]}));return r}({params:e,values:t}),d=f(r);return 0===d.length?"0x":d}function f(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:o}=e[r];n?t+=32:t+=(0,c.d)(o)}let r=[],n=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:s}=e[i];a?(r.push((0,u.eC)(t+o,{size:32})),n.push(s),o+=(0,c.d)(s)):r.push(s)}return(0,a.zo)([...r,...n])}function h(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},99353:function(e,t,r){"use strict";r.d(t,{w:function(){return s}});var n=r(5555),o=r(9040),i=r(62546);let a="/docs/contract/encodeDeployData";function s({abi:e,args:t,bytecode:r}){if(!t||0===t.length)return r;let s=e.find(e=>"type"in e&&"constructor"===e.type);if(!s)throw new n.fM({docsPath:a});if(!("inputs"in s)||!s.inputs||0===s.inputs.length)throw new n.cO({docsPath:a});let c=(0,i.E)(s.inputs,t);return(0,o.SM)([r,c])}},96606:function(e,t,r){"use strict";r.d(t,{R:function(){return l}});var n=r(5555),o=r(9040),i=r(80507),a=r(62546),s=r(21494),c=r(28604);function l({abi:e,args:t,functionName:r}){let l=e[0];if(r&&!(l=(0,c.m)({abi:e,args:t,name:r})))throw new n.xL(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==l.type)throw new n.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let u=(0,s.t)(l),d=(0,i.o)(u),f="inputs"in l&&l.inputs?(0,a.E)(l.inputs,t??[]):void 0;return(0,o.SM)([d,f??"0x"])}},21494:function(e,t,r){"use strict";r.d(t,{h:function(){return i},t:function(){return o}});var n=r(5555);function o(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.wM(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`}function i(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${i(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},28604:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(97451);function o({abi:e,args:t=[],name:r}){let o=e.filter(e=>"name"in e&&e.name===r);if(0!==o.length){if(1===o.length)return o[0];for(let e of o){if(!("inputs"in e))continue;if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs||0===e.inputs.length||e.inputs.length!==t.length)continue;let r=t.every((t,r)=>
2878{let o="inputs"in e&&e.inputs[r];return!!o&&function e(t,r){let o=typeof t,i=r.type;switch(i){case"address":return(0,n.U)(t);case"bool":return"boolean"===o;case"function":case"string":return"string"===o;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===o||"bigint"===o;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===o||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,o)});if(r)return e}return o[0]}}},92221:function(e,t,r){"use strict";r.d(t,{K:function(){return c},x:function(){return s}});var n=r(92960),o=r(41327),i=r(90707),a=r(97451);function s(e,t){let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,i.w)((0,o.qX)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&n[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());return`0x${a.join("")}`}function c(e,t){if(!(0,a.U)(e))throw new n.b({address:e});return s(e,t)}},97451:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});let n=/^0x[a-fA-F0-9]{40}$/;function o(e){return n.test(e)}},62635:function(e,t,r){"use strict";r.d(t,{n:function(){return c},y:function(){return s}});var n=r(69977),o=r(88822),i=r(42455),a=r(11941);let s=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof o.Gg&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status;function c(e,{retryDelay:t=150,retryCount:r=3}={}){return async c=>(0,a.J)(async()=>{try{return await e(c)}catch(e){switch(e.code){case i.s7.code:throw new i.s7(e);case i.B.code:throw new i.B(e);case i.LX.code:throw new i.LX(e);case i.nY.code:throw new i.nY(e);case i.XS.code:throw new i.XS(e);case i.yR.code:throw new i.yR(e);case i.Og.code:throw new i.Og(e);case i.pT.code:throw new i.pT(e);case i.KB.code:throw new i.KB(e);case i.gS.code:throw new i.gS(e);case i.Pv.code:throw new i.Pv(e);case i.GD.code:throw new i.GD(e);case i.ab.code:throw new i.ab(e);case i.PE.code:throw new i.PE(e);case i.Ts.code:throw new i.Ts(e);case i.u5.code:throw new i.u5(e);case i.I0.code:throw new i.I0(e);case i.x3.code:throw new i.x3(e);default:if(e instanceof n.G)throw e;throw new i.ir(e)}}},{delay:({count:e,error:r})=>{if(r&&r instanceof o.Gg){let e=r?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<<e)*t},retryCount:r,shouldRetry:({error:e})=>!s(e)})}},61786:function(e,t,r){"use strict";r.d(t,{LI:function(){return a},ax:function(){return i},qg:function(){return o}});var n=r(21973);function o({chain:e,currentChainId:t}){if(!e)throw new n.Bk;if(t!==e.id)throw new n.Yl({chain:e,currentChainId:t})}function i(e,t){return{...e,formatters:t?.formatters,serializers:t?.serializers}}function a({blockNumber:e,chain:t,contract:r}){let o=t?.contracts?.[r];if(!o)throw new n.mm({chain:t,contract:{name:r}});if(e&&o.blockCreated&&o.blockCreated>e)throw new n.mm({blockNumber:e,chain:t,contract:{name:r,blockCreated:o.blockCreated}});return o.address}},9040:function(e,t,r){"use strict";function n(e){return"string"==typeof e[0]?o(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function o(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}r.d(t,{SM:function(){return o},zo:function(){return n}})},25493:function(e,t,r){"use strict";function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}r.d(t,{v:function(){return n}})},28795:function(e,t,r){"use strict";r.d(t,{gc:function(){return i},vk:function(){return o}});var n=r(98309);function o(e,{dir:t,size:r=32}={}){return"string"==typeof e?i(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.$({size:e.length,targetSize:r,type:"bytes"});let o=new Uint8Array(r);for(let n=0;n<r;n++){let i="right"===t;o[i?n:r-n-1]=e[i?n:e.length-n-1]}return o}(e,{dir:t,size:r})}function i(e,{dir:t,size:r=32}={}){if(null===r)return e;let o=e.replace("0x","");if(o.length>2*r)throw new n.$({size:Math.ceil(o.length/2),targetSize:r,type:"hex"});return`0x${o["right"===t?"padEnd":"padStart"](2*r,"0")}`}}
2878,51756:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(25493);function o(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},33283:function(e,t,r){"use strict";r.d(t,{tP:function(){return a}});var n=r(98309),o=r(25493),i=r(51756);function a(e,t,r,{strict:n}={}){return(0,o.v)(e,{strict:!1})?function(e,t,r,{strict:n}={}){s(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&c(o,t,r),o}(e,t,r,{strict:n}):function(e,t,r,{strict:n}={}){s(e,t);let o=e.slice(t,r);return n&&c(o,t,r),o}(e,t,r,{strict:n})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,i.d)(e)-1)throw new n.m({offset:t,position:"start",size:(0,i.d)(e)})}function c(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,i.d)(e)!==r-t)throw new n.m({offset:r,position:"end",size:(0,i.d)(e)})}},26873:function(e,t,r){"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}r.d(t,{f:function(){return n}})},90169:function(e,t,r){"use strict";r.d(t,{XA:function(){return l},Yf:function(){return s},ly:function(){return u},rR:function(){return d},y_:function(){return c}});var n=r(89466),o=r(51756),i=r(26873),a=r(41327);function s(e,{size:t}){if((0,o.d)(e)>t)throw new n.M6({givenSize:(0,o.d)(e),maxSize:t})}function c(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let o=(e.length-2)/2,i=(1n<<8n*BigInt(o)-1n)-1n;return n<=i?n:n-BigInt(`0x${"f".padStart(2*o,"f")}`)-1n}function l(e,t={}){let r=e;if(t.size&&(s(r,{size:t.size}),r=(0,i.f)(r)),"0x00"===(0,i.f)(r))return!1;if("0x01"===(0,i.f)(r))return!0;throw new n.Cd(r)}function u(e,t={}){return Number(c(e,t))}function d(e,t={}){let r=(0,a.nr)(e);return t.size&&(s(r,{size:t.size}),r=(0,i.f)(r,{dir:"right"})),new TextDecoder().decode(r)}},41327:function(e,t,r){"use strict";r.d(t,{O0:function(){return l},nr:function(){return u},qX:function(){return d}});var n=r(69977),o=r(25493),i=r(28795),a=r(90169),s=r(46872);let c=new TextEncoder;function l(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){let r=(0,s.eC)(e,t);return u(r)}(e,t):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.Yf)(r,{size:t.size}),(0,i.vk)(r,{size:t.size})):r}(e,t):(0,o.v)(e)?u(e,t):d(e,t)}function u(e,t={}){let r=e;t.size&&((0,a.Yf)(r,{size:t.size}),r=(0,i.vk)(r,{dir:"right",size:t.size}));let o=r.slice(2);o.length%2&&(o=`0${o}`);let s=new Uint8Array(o.length/2);for(let e=0;e<s.length;e++){let t=2*e,r=o.slice(t,t+2),i=Number.parseInt(r,16);if(Number.isNaN(i)||i<0)throw new n.G(`Invalid byte sequence ("${r}" in "${o}").`);s[e]=i}return s}function d(e,t={}){let r=c.encode(e);return"number"==typeof t.size?((0,a.Yf)(r,{size:t.size}),(0,i.vk)(r,{dir:"right",size:t.size})):r}},46872:function(e,t,r){"use strict";r.d(t,{$G:function(){return f},C4:function(){return c},NC:function(){return s},ci:function(){return l},eC:function(){return u}});var n=r(89466),o=r(28795),i=r(90169);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?u(e,t):"string"==typeof e?f(e,t):"boolean"==typeof e?c(e,t):l(e,t)}function c(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,i.Yf)(r,{size:t.size}),(0,o.vk)(r,{size:t.size})):r}function l(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=a[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,i.Yf)(n,{size:t.size}),(0,o.vk)(n,{dir:"right",size:t.size})):n}function u(e,t={}){let r;let{signed:i,size:a}=t,s=BigInt(e);a?r=i?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let c="bigint"==typeof r&&i?-r-1n:0;if(r&&s>r||s<c){let t="bigint"==typeof e?"n":"";throw new n.J5({max:r?`${r}${t}`:void 0,min:`${c}${t}`,signed:i,size:a,value:`${e}${t}`})}let l=`0x${(i&&s<0?(1n<<BigInt(8*a))+BigInt(s):s).toString(16)}`;return a?(0,o.vk)(l,{size:a}):l}let d=new TextEncoder;function f(e,t={}){let r=d.encode(e);return l(r,t)}},43474:function(e,t,r){"use strict";r.d(t,{i:function(){return o}});var n=r(25493);function o(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.v)(t)?t:null}},30514:function(e,t,r){"use strict";r.d(t,{d:function(){return s}});var n=r(41327),o=r(46872),i=r(90707),a=r(43474);function s(e){let t=new Uint8Array(32).fill(0);return e?(0,a.i)(e)||(0,i.w)((0,n.qX)(e)):(0,o.ci)(t)}},30826:function(e,t,r){"use strict";r.d(t,{S:function(){return a}});var n=r(5555),o=r(69977),i=r(90722);function a(e,{abi:t,address:r,args:a,docsPath:s,functionName:c,sender:l}){let{code:u,data:d,message:f,shortMessage:h}=e instanceof i.VQ?e:e instanceof o.G?e.walk(e=>"data"in e)||e.walk():{},p=e;return e instanceof n.wb?p=new i.Dk({functionName:c}):3===u&&(d||f||h)&&(p=new i.Lu({abi:t,data:"object"==typeof d?d.data:d,functionName:c,message:h??f})),new i.uq(p,{abi:t,args:a,contractAddress:r,docsPath:s,functionName:c,sender:l})}},90968:function(e,t,r){"use strict";r.d(t,{B:function(){return a},k:function(){return s}});
2878var n=r(66054),o=r(88822),i=r(42455);function a(e){return e instanceof i.KB||e instanceof i.yR||e instanceof o.bs&&e.code===n.M_.code}function s(e,t){let r=e.details.toLowerCase();if(n.Hh.nodeMessage.test(r))return new n.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas});if(n.G$.nodeMessage.test(r))return new n.G$({cause:e,maxFeePerGas:t?.maxFeePerGas});if(n.ZI.nodeMessage.test(r))return new n.ZI({cause:e,nonce:t?.nonce});if(n.vU.nodeMessage.test(r))return new n.vU({cause:e,nonce:t?.nonce});if(n.se.nodeMessage.test(r))return new n.se({cause:e,nonce:t?.nonce});if(n.C_.nodeMessage.test(r))return new n.C_({cause:e});if(n.WF.nodeMessage.test(r))return new n.WF({cause:e,gas:t?.gas});else if(n.dR.nodeMessage.test(r))return new n.dR({cause:e,gas:t?.gas});else if(n.pZ.nodeMessage.test(r))return new n.pZ({cause:e});else if(n.cs.nodeMessage.test(r))return new n.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas});else if(r.match(n.M_.nodeMessage)||"code"in e.cause&&e.cause?.code===n.M_.code)return new n.M_({cause:e,message:e.cause.details||e.details});return new n.cj({cause:e.cause.cause})}},86101:function(e,t,r){"use strict";r.d(t,{G:function(){return a},Z:function(){return i}});var n=r(75491),o=r(94216);function i(e){let t=e.transactions?.map(e=>"string"==typeof e?e:o.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let a=(0,n.$)("block",i)},91019:function(e,t,r){"use strict";function n(e,{format:t}){if(!t)return{};let r=Object.keys(t({}));return r.reduce((t,r)=>(e?.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}r.d(t,{K:function(){return n}})},75491:function(e,t,r){"use strict";function n(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{let o=t(e);if(r)for(let e of r)delete o[e];return{...o,...n(e)}},type:e})}r.d(t,{$:function(){return n}})},18829:function(e,t,r){"use strict";function n(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}r.d(t,{U:function(){return n}})},94216:function(e,t,r){"use strict";r.d(t,{Tr:function(){return a},c8:function(){return i},y_:function(){return s}});var n=r(90169),o=r(75491);let i={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function a(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?i[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}let s=(0,o.$)("transaction",a)},4656:function(e,t,r){"use strict";r.d(t,{d:function(){return l},f:function(){return c}});var n=r(90169),o=r(75491),i=r(18829),a=r(94216);let s={"0x0":"reverted","0x1":"success"};function c(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,i.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.ly)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.c8[e.type]||e.type:null}}let l=(0,o.$)("transactionReceipt",c)},23822:function(e,t,r){"use strict";r.d(t,{i:function(){return a},t:function(){return i}});
2878var n=r(46872),o=r(75491);function i(e){return{...e,gas:void 0!==e.gas?(0,n.eC)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,n.eC)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,n.eC)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,n.eC)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,n.eC)(e.nonce):void 0,value:void 0!==e.value?(0,n.eC)(e.value):void 0}}let a=(0,o.$)("transactionRequest",i)},80507:function(e,t,r){"use strict";r.d(t,{o:function(){return i}});var n=r(33283),o=r(56143);let i=e=>"string"==typeof e?(0,n.tP)((0,o.F)(e),0,4):(0,n.tP)((0,o.J)(e),0,4)},56143:function(e,t,r){"use strict";r.d(t,{J:function(){return u},F:function(){return l}});var n=r(21494);let o=/((function|event)\s)?(.*)(\((.*)\))/;function i(e){let t=e.match(o),r=t?.[2]||void 0,n=t?.[3],i=t?.[5]||void 0;return{type:r,name:n,params:i}}var a=r(41327),s=r(90707);let c=e=>(0,s.w)((0,a.O0)(e));function l(e){let t=i(e).name,r=function(e){let t=i(e).params,r=t?.split(",").map(e=>e.trim().split(" "));return r?.map(e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}}))}(e)||[];return c(`${t}(${r.map(({type:e})=>e).join(",")})`)}function u(e){return c((0,n.t)(e))}},90707:function(e,t,r){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function o(e,...t){if(!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}r.d(t,{w:function(){return D}});var i={number:n,bool:function(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)},bytes:o,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)},exists:function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},output:function(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}};let a=BigInt(4294967296-1),s=BigInt(32);function c(e,t=!1){return t?{h:Number(e&a),l:Number(e>>s&a)}:{h:0|Number(e>>s&a),l:0|Number(e&a)}}var l={fromBig:c,split:function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:i,l:a}=c(e[o],t);[r[o],n[o]]=[i,a]}return[r,n]},toBig:(e,t)=>BigInt(e>>>0)<<s|BigInt(t>>>0),shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:function(e,t,r,n){let o=(t>>>0)+(n>>>0);return{h:e+r+(o/4294967296|0)|0,l:0|o}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/4294967296|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,o)=>t+r+n+o+(e/4294967296|0)|0,add5H:(e,t,r,n,o,i)=>t+r+n+o+i+(e/4294967296|0)|0,add5L:(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0)};let u=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),d=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!d)throw Error("Non little-endian hardware is not supported");function f(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}(e)),!(e instanceof Uint8Array))throw TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));class h{clone(){return this._cloneInto()}}let[p,m,g]=[[],[],[]],b=BigInt(0),v=BigInt(1),y=BigInt(2),w=BigInt(7),E=BigInt(256),x=BigInt(113);for(let e=0,t=v,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],p.push(2*(5*n+r)),m.push((e+1)*(e+2)/2%64);let o=b;for(let e=0;e<7;e++)(t=(t<<v^(t>>w)*x)%E)&y&&(o^=v<<(v<<BigInt(e))-v);g.push(o)}let[C,A]=l.split(g,!0),P=(e,t,r)=>r>32?l.rotlBH(e,t,r):l.rotlSH(e,t,r),j=(e,t,r)=>r>32?l.rotlBL(e,t,r):l.rotlSL(e,t,r);class k extends h{constructor(e,t,r,n=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,i.number(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u(this.state)}keccak(){!function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,o=(t+2)%10,i=r[o],a=r[o+1],s=P(i,a,1)^r[n],c=j(i,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=c}let t=e[2],o=e[3];for(let r=0;r<24;r++){let n=m[r],i=P(t,o,n),a=j(t,o,n),s=p[r];t=e[s],o=e[s+1],e[s]=i,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=C[n],e[1]^=A[n]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){i.exists(this);let{blockLen:t,state:r}=this;e=f(e);let n=e.length;for(let o=0;o<n;){let i=Math.min(t-this.pos,n-o);for(let t=0;t<i;t++)r[this.pos++]^=e[o++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){i.exists(this,!1),i.bytes(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,o=e.length;n<o;){this.posOut>=r&&this.keccak();let i=Math.min(r-this.posOut,o-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return i.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(i.output(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:o,enableXOF:i}=this;return e||(e=new k(t,r,n,i,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}let O=(e,t,r)=>(function(e){let t=t=>e().update(f(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t})(()=>new k(t,e,r));O(6,144,28),O(6,136,32),O(6,104,48),O(6,72,64),O(1,144,28);let S=O(1,136,32);O(1,104,48),O(1,72,64);let I=(e,t,r)=>(function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t})((n={})=>new k(t,e,void 0===n.dkLen?r:n.dkLen,!0));I(31,168,16),I(31,136,32);var T=r(25493),B=r(41327),_=r(46872);function D(e,t){let r=S((0,T.v)(e,{strict:!1})?(0,B.O0)(e):e);return"bytes"===(t||"hex")?r:(0,_.NC)(r)}},68583:function(e,t,r){"use strict";r.d(t,{S:function(){return o}});let n=new Map;function o({fn:e,id:t,shouldSplitBatch:r,wait:o=0}){let i=async()=>{let t=c();a();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{t.forEach(({pendingPromise:t},r)=>t.resolve?.([e[r],e]))}).catch(e=>{t.forEach(({pendingPromise:t})=>t.reject?.(e))})},a=()=>n.delete(t),s=()=>c().map(({args:e})=>e),c=()=>n.get(t)||[],l=e=>n.set(t,[...c(),e]);return{flush:a,async schedule(e){let t={},n=new Promise((e,r)=>{t.resolve=e,t.reject=r}),a=r?.([...s(),e]);a&&i();let u=c().length>0;return u?l({args:e,pendingPromise:t}):(l({args:e,pendingPromise:t}),setTimeout(i,o)),n}}}},11941:function(e,t,r){"use strict";r.d(t,{J:function(){return o}});var n=r(40482);function o(e,{delay:t=100,retryCount:r=2,shouldRetry:o=()=>!0}={}){return new Promise((i,a)=>{let s=async({count:c=0}={})=>{let l=async({error:e})=>{let r="function"==typeof t?t({count:c,error:e}):t;r&&await (0,n.D)(r),s({count:c+1})};try{let t=await e();i(t)}catch(e){if(c<r&&await o({count:c,error:e}))return l({error:e});a(e)}};s()})}},61344:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});let n=(e,t,r)=>
2878JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},13134:function(e,t,r){"use strict";r.d(t,{F:function(){return c}});var n=r(21431),o=r(92960),i=r(66054),a=r(54574),s=r(97451);function c(e){let{account:t,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:l,to:u}=e,d=t?(0,n.T)(t):void 0;if(d&&!(0,s.U)(d.address))throw new o.b({address:d.address});if(u&&!(0,s.U)(u))throw new o.b({address:u});if(void 0!==r&&(void 0!==c||void 0!==l))throw new a.xY;if(c&&c>2n**256n-1n)throw new i.Hh({maxFeePerGas:c});if(l&&c&&l>c)throw new i.cs({maxFeePerGas:c,maxPriorityFeePerGas:l})}},59920:function(e,t,r){"use strict";r.d(t,{h:function(){return d}});var n=r(21431),o=r(14828),i=r(33910),a=r(48671),s=r(89784),c=r(25071),l=r(69977),u=r(13134);async function d(e,t){let{account:r,gas:d,gasPrice:f,maxFeePerGas:h,maxPriorityFeePerGas:p,nonce:m}=t;if(!r)throw new c.o;let g=(0,n.T)(r),b=await (0,i.Q)(e,{blockTag:"latest"}),v={...t,from:g.address};if(void 0===m&&(v.nonce=await (0,s.K)(e,{address:g.address,blockTag:"pending"})),"bigint"==typeof b.baseFeePerGas){if(void 0!==f)throw new l.G("Chain does not support legacy `gasPrice`.");if(void 0===h)v.maxPriorityFeePerGas=p??1500000000n,v.maxFeePerGas=120n*b.baseFeePerGas/100n+v.maxPriorityFeePerGas;else{if(void 0===p&&h<1500000000n)throw new l.G("`maxFeePerGas` cannot be less than the default `maxPriorityFeePerGas` (1.5 gwei).");v.maxFeePerGas=h,v.maxPriorityFeePerGas=p??1500000000n}}else{if(void 0!==h||void 0!==p)throw new l.G("Chain does not support EIP-1559 fees.");void 0===f&&(v.gasPrice=await (0,a.o)(e)*120n/100n)}return void 0===d&&(v.gas=await (0,o.Q)(e,{...v,account:{address:g.address,type:"json-rpc"}})),(0,u.F)(v),v}},61539:function(e,t,r){"use strict";r.d(t,{i:function(){return u}});var n=r(5555),o=r(92960),i=r(97451),a=r(51756),s=r(46872);let c=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,l=/^(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)?$/;function u({domain:e,message:t,primaryType:r,types:u}){let d=(e,t)=>{for(let r of e){let{name:e,type:f}=r,h=t[e],p=f.match(l);if(p&&("number"==typeof h||"bigint"==typeof h)){let[e,t,r]=p;(0,s.eC)(h,{signed:"int"===t,size:parseInt(r)/8})}if("address"===f&&"string"==typeof h&&!(0,i.U)(h))throw new o.b({address:h});let m=f.match(c);if(m){let[e,t]=m;if(t&&(0,a.d)(h)!==parseInt(t))throw new n.KY({expectedSize:parseInt(t),givenSize:(0,a.d)(h)})}let g=u[f];g&&d(g,h)}};if(u.EIP712Domain&&e&&d(u.EIP712Domain,e),"EIP712Domain"!==r){let e=u[r];d(e,t)}}},6665:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(58617),o=r(60263);function i(e,t="wei"){return(0,o.b)(e,n.ez[t])}},56283:function(e,t,r){"use strict";r.d(t,{o:function(){return i}});var n=r(58617),o=r(60263);function i(e,t="wei"){return(0,o.b)(e,n.Zn[t])}},60263:function(e,t,r){"use strict";function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[o,i]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${o||"0"}${i?`.${i}`:""}`}r.d(t,{b:function(){return n}})},40482:function(e,t,r){"use strict";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{D:function(){return n}})},69077:function(e,t,r){"use strict";let n;function o(){}r.d(t,{eM:function(){return ew},_g:function(){return eb},mA:function(){return eD},KQ:function(){return eM},xx:function(){return eS},$4:function(){return eF},qL:function(){return ez},c9:function(){return eY},F6:function(){return eX},LN:function(){return eH},t_:function(){return eO},aM:function(){return ej},QW:function(){return eW},g0:function(){return eQ}});let i="undefined"==typeof window||"Deno"in window;function a(){}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,r){return E(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function u(e,t,r){return E(e)?"function"==typeof t?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function d(e,t,r){return E(e)?[{...t,queryKey:e},r]:[e||{},t]}function f(e,t){let{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;
2878if(E(a)){if(n){if(t.queryHash!==p(a,t.options))return!1}else{if(!g(t.queryKey,a))return!1}}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(void 0===o||o===t.state.fetchStatus)&&(!i||!!i(t))}function h(e,t){let{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(E(i)){if(!t.options.mutationKey)return!1;if(r){if(m(t.options.mutationKey)!==m(i))return!1}else{if(!g(t.options.mutationKey,i))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!o||!!o(t))}function p(e,t){let r=(null==t?void 0:t.queryKeyHashFn)||m;return r(e)}function m(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!g(e[r],t[r]))}function b(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(w(r)&&r.hasOwnProperty("isPrototypeOf"))}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return Array.isArray(e)}function x(e){return new Promise(t=>{setTimeout(t,e)})}function C(e){x(0).then(e)}function A(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=v(t)&&v(r);if(n||y(t)&&y(r)){let o=n?t.length:Object.keys(t).length,i=n?r:Object.keys(r),a=i.length,s=n?[]:{},c=0;for(let o=0;o<a;o++){let a=n?o:i[o];s[a]=e(t[a],r[a]),s[a]===t[a]&&c++}return o===a&&c===o?t:s}return r}(e,t):t}let P=console,j=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=n=>{t?e.push(n):C(()=>{r(n)})},i=()=>{let t=e;e=[],t.length&&C(()=>{n(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||i()}return r},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e}}}();class k{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let O=new class extends k{constructor(){super(),this.setup=e=>{if(!i&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},S=["online","offline"],I=new class extends k{constructor(){super(),this.setup=e=>{if(!i&&window.addEventListener){let t=()=>e();return S.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{S.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let t=this.online!==e;t&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function T(e){return Math.min(1e3*2**e,3e4)}function B(e){return(null!=e?e:"online")!=="online"||I.isOnline()}class _{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function D(e){return e instanceof _}function $(e){let t,r,n,o=!1,i=0,a=!1,s=new Promise((e,t)=>
2878{r=e,n=t}),c=()=>!O.isFocused()||"always"!==e.networkMode&&!I.isOnline(),l=n=>{a||(a=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},u=r=>{a||(a=!0,null==e.onError||e.onError(r),null==t||t(),n(r))},d=()=>new Promise(r=>{t=e=>{let t=a||!c();return t&&r(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,a||null==e.onContinue||e.onContinue()}),f=()=>{let t;if(!a){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{var r,n;if(a)return;let s=null!=(r=e.retry)?r:3,l=null!=(n=e.retryDelay)?n:T,h="function"==typeof l?l(i,t):l,p=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);if(o||!p){u(t);return}i++,null==e.onFail||e.onFail(i,t),x(h).then(()=>{if(c())return d()}).then(()=>{o?u(t):f()})})}};return B(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{a||(u(new _(t)),null==e.abort||e.abort())},continue:()=>{let e=null==t?void 0:t();return e?s:Promise.resolve()},cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}class M{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),s(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:i?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class R extends M{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||P,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let r=A(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(a).catch(a):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!c(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n,o,i;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);let a=function(){if("function"==typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>
2878{if(a)return this.abortSignalConsumed=!0,a.signal}})};c(s);let l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};c(l),null==(r=this.options.behavior)||r.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=l.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(i=l.fetchOptions)?void 0:i.meta});let u=e=>{if(D(e)&&e.silent||this.dispatch({type:"error",error:e}),!D(e)){var t,r,n,o;null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(o=this.cache.config).onSettled)||n.call(o,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=$({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,r,n,o;if(void 0===e){u(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(o=this.cache.config).onSettled)||n.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:B(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let o=e.error;if(D(o)&&o.revert&&this.revertState)return{...this.revertState};return{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),j.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class N extends k{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;let o=t.queryKey,i=null!=(n=t.queryHash)?n:p(o,t),a=this.get(i);return a||(a=new R({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){j.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=d(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>f(r,e))}findAll(e,t){let[r]=d(e,t);return Object.keys(r).length>0?this.queries.filter(e=>f(r,e)):this.queries}notify(e){j.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){j.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){j.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class F extends M{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||P,this.observers=[],this.state=e.state||L(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,r,n,o,i,a,s,c,l,u,d,f,h,p,m,g,b,v,y;let w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(c=(l=this.mutationCache.config).onMutate)?void 0:c.call(l,this.state.variables,this));let e=await (null==(u=(d=this.options).onMutate)?void 0:u.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}
2878let f=await (()=>{var e;return this.retryer=$({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,f,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,f,this.state.variables,this.state.context)),await (null==(o=(i=this.mutationCache.config).onSettled)?void 0:o.call(i,f,null,this.state.variables,this.state.context,this)),await (null==(a=(s=this.options).onSettled)?void 0:a.call(s,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{throw await (null==(f=(h=this.mutationCache.config).onError)?void 0:f.call(h,e,this.state.variables,this.state.context,this)),await (null==(p=(m=this.options).onError)?void 0:p.call(m,e,this.state.variables,this.state.context)),await (null==(g=(b=this.mutationCache.config).onSettled)?void 0:g.call(b,void 0,e,this.state.variables,this.state.context,this)),await (null==(v=(y=this.options).onSettled)?void 0:v.call(y,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!B(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),j.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function L(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class U extends k{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new F({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){j.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>h(e,t))}findAll(e){return this.mutations.filter(t=>h(e,t))}notify(e){j.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>
2878e.state.isPaused);return j.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(a)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function z(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class H{constructor(e={}){this.queryCache=e.queryCache||new N,this.mutationCache=e.mutationCache||new U,this.logger=e.logger||P,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=O.subscribe(()=>{O.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=I.subscribe(()=>{I.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[r]=d(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){let n=l(e,t,r),o=this.getQueryData(n.queryKey);return o?Promise.resolve(o):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let r=t.data;return[e,r]})}setQueryData(e,t,r){let n=this.queryCache.find(e),o=null==n?void 0:n.state.data,i="function"==typeof t?t(o):t;if(void 0===i)return;let a=l(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return j.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=d(e,t),n=this.queryCache;j.batch(()=>{n.findAll(r).forEach(e=>{n.remove(e)})})}resetQueries(e,t,r){let[n,o]=d(e,t,r),i=this.queryCache,a={type:"active",...n};return j.batch(()=>(i.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(a,o)))}cancelQueries(e,t,r){let[n,o={}]=d(e,t,r);void 0===o.revert&&(o.revert=!0);let i=j.batch(()=>this.queryCache.findAll(n).map(e=>e.cancel(o)));return Promise.all(i).then(a).catch(a)}invalidateQueries(e,t,r){let[n,o]=d(e,t,r);return j.batch(()=>{var e,t;if(this.queryCache.findAll(n).forEach(e=>{e.invalidate()}),"none"===n.refetchType)return Promise.resolve();let r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,o)})}refetchQueries(e,t,r){let[n,o]=d(e,t,r),i=j.batch(()=>this.queryCache.findAll(n).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})})),s=Promise.all(i).then(a);return null!=o&&o.throwOnError||(s=s.catch(a)),s}fetchQuery(e,t,r){let n=l(e,t,r),o=this.defaultQueryOptions(n);void 0===o.retry&&(o.retry=!1);let i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(a).catch(a)}fetchInfiniteQuery(e,t,r){let n=l(e,t,r);return n.behavior={onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,i,a,s;let c;let l=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,u=null==(n=e.fetchOptions)?void 0:null==(o=n.meta)?void 0:o.fetchMore,d=null==u?void 0:u.pageParam,f=(null==u?void 0:u.direction)==="forward",h=(null==u?void 0:u.direction)==="backward",p=(null==(i=e.state.data)?void 0:i.pages)||[],m=(null==(a=e.state.data)?void 0:a.pageParams)||[],g=m,b=!1,v=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?b=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{b=!0}),e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(e,t,r,n)=>(g=n?[t,...g]:[...g,t],n?[r,...e]:[...e,r]),E=(t,r,n,o)=>{if(b)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let i={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};v(i);let a=y(i),s=Promise.resolve(a).then(e=>w(t,n,e,o));return s};if(p.length){if(f){let t=void 0!==d,r=t?d:z(e.options,p);c=E(p,t,r)}else if(h){let t=void 0!==d,r=t?d:null==(s=e.options).getPreviousPageParam?void 0:s.getPreviousPageParam(p[0],p);c=E(p,t,r,!0)}else{g=[];let t=void 0===e.options.getNextPageParam,r=!l||!p[0]||l(p[0],0,p);c=r?E([],t,m[0]):Promise.resolve(w([],m[0],p[0]));for(let r=1;r<p.length;r++)c=c.then(n=>{let o=!l||!p[r]||l(p[r],r,p);if(o){let o=t?m[r]:z(e.options,n);return E(n,t,o)}return Promise.resolve(w(n,m[r],p[r]))})}}else c=E([]);let x=c.then(e=>({pages:e,pageParams:g}));return x}}},this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(a).catch(a)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>m(e)===m(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>g(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>m(e)===m(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>g(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=p(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}
2878function q(e){return e.state.isPaused}function G(e){return"success"===e.state.status}let W=["added","removed","updated"];function K(e){return W.includes(e)}async function V({queryClient:e,persister:t,maxAge:r=864e5,buster:n="",hydrateOptions:o}){try{let i=await t.restoreClient();if(i){if(i.timestamp){let a=Date.now()-i.timestamp>r,s=i.buster!==n;a||s?t.removeClient():function(e,t,r){if("object"!=typeof t||null===t)return;let n=e.getMutationCache(),o=e.getQueryCache(),i=t.mutations||[],a=t.queries||[];i.forEach(t=>{var o;n.build(e,{...null==r?void 0:null==(o=r.defaultOptions)?void 0:o.mutations,mutationKey:t.mutationKey},t.state)}),a.forEach(t=>{var n;let i=o.get(t.queryHash),a={...t.state,fetchStatus:"idle"};if(i){i.state.dataUpdatedAt<a.dataUpdatedAt&&i.setState(a);return}o.build(e,{...null==r?void 0:null==(n=r.defaultOptions)?void 0:n.queries,queryKey:t.queryKey,queryHash:t.queryHash},a)})}(e,i.clientState,o)}else t.removeClient()}}catch(e){t.removeClient()}}async function Q({queryClient:e,persister:t,buster:r="",dehydrateOptions:n}){let o={buster:r,timestamp:Date.now(),clientState:function(e,t={}){let r=[],n=[];if(!1!==t.dehydrateMutations){let n=t.shouldDehydrateMutation||q;e.getMutationCache().getAll().forEach(e=>{n(e)&&r.push({mutationKey:e.options.mutationKey,state:e.state})})}if(!1!==t.dehydrateQueries){let r=t.shouldDehydrateQuery||G;e.getQueryCache().getAll().forEach(e=>{r(e)&&n.push({state:e.state,queryKey:e.queryKey,queryHash:e.queryHash})})}return{mutations:r,queries:n}}(e,n)};await t.persistClient(o)}var Z=r(48526),Y=r(67294);let J=Y.createContext(void 0),X=Y.createContext(!1);function ee(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=J),window.ReactQueryClientContext):J)}let et=({context:e}={})=>{let t=Y.useContext(ee(e,Y.useContext(X)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},er=({client:e,children:t,context:r,contextSharing:n=!1})=>{Y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let o=ee(r,n);return Y.createElement(X.Provider,{value:!r&&n},Y.createElement(o.Provider,{value:e},t))},en=Y.createContext(!1),eo=()=>Y.useContext(en);en.Provider;let ei=Y.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),ea=()=>Y.useContext(ei);var es=r(61688);class ec extends k{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let r=this.options;this.options=this.client.defaultMutationOptions(e),b(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:L(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){j.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,o,i,a,s,c;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(o=this.mutateOptions).onSettled)||n.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(i=(a=this.mutateOptions).onError)||i.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(c=this.mutateOptions).onSettled)||s.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}
2878e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}let el=es.useSyncExternalStore;function eu(){}class ed extends k{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),ef(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eh(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),b(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let o=this.hasListeners();o&&ep(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),o&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let i=this.computeRefetchInterval();o&&(this.currentQuery!==n||this.options.enabled!==r.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),r=this.createResult(t,e);return!e.keepPreviousData&&(void 0!==e.placeholderData?r.isPlaceholderData:this.getCurrentResult()!==r)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(a)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),i||this.currentResult.isStale||!s(this.options.staleTime))return;let e=c(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!i&&!1!==this.options.enabled&&s(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||O.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let r;let n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,c=e!==n,l=c?e.state:this.currentQueryInitialState,u=c?this.currentResult:this.previousQueryResult,{state:d}=e,{dataUpdatedAt:f,error:h,errorUpdatedAt:p,fetchStatus:m,status:g}=d,b=!1,v=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&ef(e,t),a=r&&ep(e,n,t,o);(i||a)&&(m=B(e.options.networkMode)?"fetching":"paused",f||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!d.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==g)r=u.data,f=u.dataUpdatedAt,g=u.status,b=!0;else if(t.select&&void 0!==d.data){if(i&&d.data===(null==a?void 0:a.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(d.data),r=A(null==i?void 0:i.data,r,t),this.selectResult=r,this.selectError=null}catch(e){this.selectError=e}}else r=d.data;if(void 0!==t.placeholderData&&void 0===r&&"loading"===g){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",r=A(null==i?void 0:i.data,e,t),v=!0)}this.selectError&&(h=this.selectError,r=this.selectResult,p=Date.now(),g="error");let y="fetching"===m,w="loading"===g,E="error"===g,x={status:g,fetchStatus:m,isLoading:w,isSuccess:"success"===g,isError:E,isInitialLoading:w&&y,data:r,dataUpdatedAt:f,error:h,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdate
2878Count:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!w,isLoadingError:E&&0===d.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:v,isPreviousData:b,isRefetchError:E&&0!==d.dataUpdatedAt,isStale:em(e,t),refetch:this.refetch,remove:this.remove};return x}updateResult(e){let t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,b(r,t))return;this.currentResult=r;let n={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.trackedProps.size)return!0;let n=new Set(null!=r?r:this.trackedProps);return this.options.useErrorBoundary&&n.add("error"),Object.keys(this.currentResult).some(e=>{let r=this.currentResult[e]!==t[e];return r&&n.has(e)})})()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||D(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){j.batch(()=>{var t,r,n,o,i,a,s,c;e.onSuccess?(null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(o=this.options).onSettled)||n.call(o,this.currentResult.data,null)):e.onError&&(null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(s=(c=this.options).onSettled)||s.call(c,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function ef(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&eh(e,t,t.refetchOnMount)}function eh(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&em(e,t)}return!1}function ep(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&em(e,r)}function em(e,t){return e.isStaleByTime(t.staleTime)}var eg=r(52798);function eb({queryClient:e=new H({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=(0,Z.o6)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:Z.wp}),persister:r="undefined"!=typeof window?function({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:n=JSON.stringify,deserialize:i=JSON.parse,retry:a}){if(e){let o=r=>{try{e.setItem(t,n(r));return}catch(e){return e}};return{persistClient:function(e,t=100){let r,n=null;return function(...o){r=o,null===n&&(n=setTimeout(()=>{e(...r),n=null},t))}}(e=>{let t=e,r=o(t),n=0;for(;r&&t;)n++,(t=null==a?void 0:a({persistedClient:t,error:r,errorCount:n}))&&(r=o(t))},r),restoreClient:()=>{let r=e.getItem(t);if(r)return i(r)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:o,restoreClient:()=>void 0,removeClient:o}}({key:"cache",storage:t,serialize:e=>e,deserialize:e=>e}):void 0,...n}){let i=(0,Z._g)({...n,storage:t});return r&&function(e){V(e).then(()=>{(function(e){let t=e.queryClient.getQueryCache().subscribe(t=>{K(t.type)&&Q(e)}),r=e.queryClient.getMutationCache().subscribe(t=>{K(t.type)&&Q(e)})})(e)})}({queryClient:e,persister:r,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime&&!1!==e.queryKey[0].persist}}),Object.assign(i,{queryClient:e})}var ev=Y.createContext(void 0),ey=Y.createContext(void 0);function ew({children:e,config:t}){return Y.createElement(ev.Provider,{children:Y.createElement(er,{children:e,client:t.queryClient,context:e
2878y}),value:t})}function eE(){let e=Y.useContext(ev);if(!e)throw Error("`useConfig` must be used within `WagmiConfig`.\n\nRead more: https://wagmi.sh/react/WagmiConfig");return e}var ex=es.useSyncExternalStore;function eC(e){return"[object Object]"===Object.prototype.toString.call(e)}function eA(e){return JSON.stringify(e,(e,t)=>!function(e){if(!eC(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(eC(r)&&r.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}))}function eP(e,t,r){let n=u(e,t,r);return function(e,t,r){var n,o;let i=u(e,void 0,void 0),a=et({context:i.context}),[s]=Y.useState(()=>new ec(a,i));Y.useEffect(()=>{s.setOptions(i)},[s,i]);let c=el(Y.useCallback(e=>s.subscribe(j.batchCalls(e)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),l=Y.useCallback((e,t)=>{s.mutate(e,t).catch(eu)},[s]);if(c.error&&(n=s.options.useErrorBoundary,o=[c.error],"function"==typeof n?n(...o):!!n))throw c.error;return{...c,mutate:l,mutateAsync:c.mutate}}({context:ey,...n})}function ej(e,t,r){let n=Array.isArray(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e,o=function(e,t){var r,n;let o=et({context:e.context}),i=eo(),a=ea(),s=o.defaultQueryOptions({...e,queryKeyHashFn:eA});s._optimisticResults=i?"isRestoring":"optimistic",s.onError&&(s.onError=j.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=j.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=j.batchCalls(s.onSettled)),s.suspense&&"number"!=typeof s.staleTime&&(s.staleTime=1e3),(s.suspense||s.useErrorBoundary)&&!a.isReset()&&(s.retryOnMount=!1);let[c]=Y.useState(()=>new t(o,s)),l=c.getOptimisticResult(s);if(ex(Y.useCallback(e=>i?()=>void 0:c.subscribe(j.batchCalls(e)),[c,i]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),Y.useEffect(()=>{a.clearReset()},[a]),Y.useEffect(()=>{c.setOptions(s,{listeners:!1})},[s,c]),s.suspense&&l.isLoading&&l.isFetching&&!i)throw c.fetchOptimistic(s).then(({data:e})=>{s.onSuccess?.(e),s.onSettled?.(e,null)}).catch(e=>{a.clearReset(),s.onError?.(e),s.onSettled?.(void 0,e)});if(l.isError&&!a.isReset()&&!l.isFetching&&(r=s.useErrorBoundary,n=[l.error,c.getCurrentQuery()],"function"==typeof r?r(...n):!!r))throw l.error;let u="loading"===l.status&&"idle"===l.fetchStatus?"idle":l.status,d="loading"===u&&"fetching"===l.fetchStatus;return{...l,defaultedOptions:s,isIdle:"idle"===u,isLoading:d,observer:c,status:u}}({context:ey,...n},ed),i={data:o.data,error:o.error,fetchStatus:o.fetchStatus,isError:o.isError,isFetched:o.isFetched,isFetchedAfterMount:o.isFetchedAfterMount,isFetching:o.isFetching,isIdle:o.isIdle,isLoading:o.isLoading,isRefetching:o.isRefetching,isSuccess:o.isSuccess,refetch:o.refetch,status:o.status,internal:{dataUpdatedAt:o.dataUpdatedAt,errorUpdatedAt:o.errorUpdatedAt,failureCount:o.failureCount,isFetchedAfterMount:o.isFetchedAfterMount,isLoadingError:o.isLoadingError,isPaused:o.isPaused,isPlaceholderData:o.isPlaceholderData,isPreviousData:o.isPreviousData,isRefetchError:o.isRefetchError,isStale:o.isStale,remove:o.remove}};return o.defaultedOptions.notifyOnChangeProps?i:function(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(n),e[n])})}),r}(i,o.observer)}var ek=()=>et({context:ey});function eO({chainId:e}={}){return(0,eg.useSyncExternalStoreWithSelector)(t=>(0,Z.pC)({chainId:e},t),()=>(0,Z.uV)({chainId:e}),()=>(0,Z.uV)({chainId:e}),e=>e,(e,t)=>e.uid===t.uid)}function eS({chainId:e}={}){let t=eO({chainId:e});return t.chain.id}function eI({chainId:e,scopeKey:t}){return[{entity:"blockNumber",chainId:e,scopeKey:t}]}function eT({queryKey:[{chainId:e}]}){return(0,Z.RQ)({chainId:e})}var eB=e=>"object"==typeof e&&!Array.isArray(e);function e_(e,t,r=t,n=Z.vZ){let o=Y.useRef([]),i=(0,eg.useSyncExternalStoreWithSelector)(e,t,r,e=>e,(e,t)=>{if(eB(e)&&eB(t)&&o.current.length){for(let r of o.current){let o=n(e[r],t[r]);if(!o)return!1}return!0}return n(e,t)});if(eB(i)){let e={...i};return Object.defineProperties(e,Object.entries(e).reduce((e,[t,r])=>({...e,[t]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(t)||o.current.push(t),r)}}),{})),e}return i}function eD({onConnect:e,onDisconnect:t}={}){let r=eE(),n=Y.useCallback(e=>(0,Z.uH)(e),[r]),o=e_(n,Z.D0),i=Y.useRef(),a=i.current;return Y.useEffect(()=>{a?.status!=="connected"&&"connected"===o.status&&e?.({address:o.address,connector:o.connector,isReconnected:a?.status==="reconnecting"||a?.status===void 0}),a?.status==="connected"&&"disconnected"===o.status&&t?.(),i.current=o},[e,t,a,o]),o}function e$({queryKey:[{address:e,chainId:t,formatUnits:r,token:n}]}){if(!e)throw Error("address is required");return(0,Z.EG)({address:e,chainId:t,formatUnits:r,token:n})}function eM({address:e,cacheTime:t,chainId:r,enabled:n=!0,formatUnits:o,scopeKey:i,staleTime:a,suspense:s,token:c,watch:l,onError:u,onSettled:d,onSuccess:f}={}){let h=eS({chainId:r}),p=Y.useMemo(()=>(function({address:e,chainId:t,formatUnits:r,scopeKey:n,token:o}){return[{entity:"balance",address:e,chainId:t,formatUnits:r,scopeKey:n,token:o}]})({address:e,chainId:h,formatUnits:o,scopeKey:i,token:c}),[e,h,o,i,c]),m=ej(p,e$,{cacheTime:t,enabled:!!(n&&e),staleTime:a,suspense:s,onError:u,onSettled:d,onSuccess:f});return!function({chainId:e,enabled:t,queryKey:r}){let n=ek(),o=Y.useCallback(()=>n.invalidateQueries({queryKey:r},{cancelRefetch:!1}),[n,r]);
2878!function({cacheTime:e=0,chainId:t,enabled:r=!0,scopeKey:n,staleTime:o,suspense:i,watch:a=!1,onBlock:s,onError:c,onSettled:l,onSuccess:u}={}){let d=eS({chainId:t}),f=eO({chainId:d}),h=function({chainId:e}={}){return(0,eg.useSyncExternalStoreWithSelector)(t=>(0,Z.fq)({chainId:e},t),()=>(0,Z.jr)({chainId:e}),()=>(0,Z.jr)({chainId:e}),e=>e,(e,t)=>e?.uid===t?.uid)}({chainId:d}),p=ek();Y.useEffect(()=>{if(!r||!a&&!s)return;let e=h??f,t=e.watchBlockNumber({onBlockNumber:e=>{a&&p.setQueryData(eI({chainId:d,scopeKey:n}),e),s&&s(e)},emitOnBegin:!0});return t},[d,n,s,f,p,a,h,r]),ej(eI({scopeKey:n,chainId:d}),eT,{cacheTime:e,enabled:r,staleTime:o,suspense:i,onError:c,onSettled:l,onSuccess:u})}({chainId:e,enabled:t,onBlock:t?o:void 0,scopeKey:t?void 0:"idle"})}({chainId:h,enabled:!!(n&&l&&e),queryKey:p}),m}var eR=e=>[{entity:"connect",...e}],eN=e=>{let{connector:t,chainId:r}=e;if(!t)throw Error("connector is required");return(0,Z.$j)({connector:t,chainId:r})};function eF({chainId:e,connector:t,onError:r,onMutate:n,onSettled:o,onSuccess:i}={}){let a=eE(),{data:s,error:c,isError:l,isIdle:u,isLoading:d,isSuccess:f,mutate:h,mutateAsync:p,reset:m,status:g,variables:b}=eP(eR({connector:t,chainId:e}),eN,{onError:r,onMutate:n,onSettled:o,onSuccess:i}),v=Y.useCallback(r=>h({chainId:r?.chainId??e,connector:r?.connector??t}),[e,t,h]),y=Y.useCallback(r=>p({chainId:r?.chainId??e,connector:r?.connector??t}),[e,t,p]);return{connect:v,connectAsync:y,connectors:a.connectors,data:s,error:c,isError:l,isIdle:u,isLoading:d,isSuccess:f,pendingConnector:b?.connector,reset:m,status:g,variables:b}}var eL=[{entity:"disconnect"}],eU=()=>(0,Z.zP)();function ez({onError:e,onMutate:t,onSettled:r,onSuccess:n}={}){let{error:o,isError:i,isIdle:a,isLoading:s,isSuccess:c,mutate:l,mutateAsync:u,reset:d,status:f}
2878=eP(eL,eU,{...e?{onError(t,r,n){e(t,n)}}:{},onMutate:t,...r?{onSettled(e,t,n,o){r(t,o)}}:{},...n?{onSuccess(e,t,r){n(r)}}:{}});return{disconnect:l,disconnectAsync:u,error:o,isError:i,isIdle:a,isLoading:s,isSuccess:c,reset:d,status:f}}function eH(){let e=eE(),t=(0,Y.useCallback)(e=>(0,Z.QC)(e),[e]);return e_(t,Z.Hy)}var eq=e=>[{entity:"signMessage",...e}],eG=e=>{let{message:t}=e;if(!t)throw Error("message is required");return(0,Z.l)({message:t})};function eW({message:e,onError:t,onMutate:r,onSettled:n,onSuccess:o}={}){let{data:i,error:a,isError:s,isIdle:c,isLoading:l,isSuccess:u,mutate:d,mutateAsync:f,reset:h,status:p,variables:m}=eP(eq({message:e}),eG,{onError:t,onMutate:r,onSettled:n,onSuccess:o}),g=Y.useCallback(t=>d(t||{message:e}),[e,d]),b=Y.useCallback(t=>f(t||{message:e}),[e,f]);return{data:i,error:a,isError:s,isIdle:c,isLoading:l,isSuccess:u,reset:h,signMessage:g,signMessageAsync:b,status:p,variables:m}}var eK=e=>[{entity:"switchNetwork",...e}],eV=e=>{let{chainId:t}=e;if(!t)throw Error("chainId is required");return(0,Z.If)({chainId:t})};function eQ({chainId:e,throwForSwitchChainNotSupported:t,onError:r,onMutate:n,onSettled:o,onSuccess:i}={}){let a,s;let c=eE(),l=function(){let[,e]=Y.useReducer(e=>e+1,0);return e}(),{data:u,error:d,isError:f,isIdle:h,isLoading:p,isSuccess:m,mutate:g,mutateAsync:b,reset:v,status:y,variables:w}=eP(eK({chainId:e}),eV,{onError:r,onMutate:n,onSettled:o,onSuccess:i}),E=Y.useCallback(t=>g({chainId:t??e}),[e,g]),x=Y.useCallback(t=>b({chainId:t??e}),[e,b]);Y.useEffect(()=>{let e=c.subscribe(({chains:e,connector:t})=>({chains:e,connector:t}),l);return e},[c,l]);let C=!!c.connector?.switchChain;return(t||C)&&(a=E,s=x),{chains:c.chains??[],data:u,error:d,isError:f,isIdle:h,isLoading:p,isSuccess:m,pendingChainId:w?.chainId,reset:v,status:y,switchNetwork:a,switchNetworkAsync:s,variables:w}}function eZ({queryKey:[{name:e,chainId:t}]}){if(!e)throw Error("name is required");return(0,Z.w6)({name:e,chainId:t})}function eY({cacheTime:e,chainId:t,enabled:r=!0,name:n,scopeKey:o,staleTime:i=864e5,suspense:a,onError:s,onSettled:c,onSuccess:l}={}){let u=eS({chainId:t});return ej(function({name:e,chainId:t,scopeKey:r}){return[{entity:"ensAvatar",name:e,chainId:t,scopeKey:r}]}({name:n,chainId:u,scopeKey:o}),eZ,{cacheTime:e,enabled:!!(r&&n&&u),staleTime:i,suspense:a,onError:s,onSettled:c,onSuccess:l})}function eJ({queryKey:[{address:e,chainId:t}]}){if(!e)throw Error("address is required");return(0,Z.Lk)({address:e,chainId:t})}function eX({address:e,cacheTime:t,chainId:r,enabled:n=!0,scopeKey:o,staleTime:i=864e5,suspense:a,onError:s,onSettled:c,onSuccess:l}={}){let u=eS({chainId:r});return ej(function({address:e,chainId:t,scopeKey:r}){return[{entity:"ensName",address:e,chainId:t,scopeKey:r}]}({address:e,chainId:u,scopeKey:o}),eJ,{cacheTime:t,enabled:!!(n&&e&&u),staleTime:i,suspense:a,onError:s,onSettled:c,onSuccess:l})}},29242:function(e){"use strict";e.exports=JSON.parse('{"name":"@safe-global/safe-apps-sdk","version":"8.0.0","description":"SDK developed to integrate third-party apps with Safe app.","main":"dist/src/index.js","typings":"dist/src/index.d.ts","_files":["dist/**/*","src/**/*","CHANGELOG.md","README.md"],"keywords":["Safe","sdk","apps"],"scripts":{"test":"jest","format-dist":"sed -i \'s/\\"files\\":/\\"_files\\":/\' dist/package.json","build":"yarn rimraf dist && tsc && yarn format-dist"},"author":"Safe (https://safe.global)","license":"MIT","dependencies":{"@safe-global/safe-gateway-typescript-sdk":"^3.5.3","viem":"^1.0.0"},"devDependencies":{"rimraf":"^3.0.2"},"repository":{"type":"git","url":"git+https://github.com/safe-global/safe-apps-sdk.git"},"bugs":{"url":"https://github.com/safe-global/safe-apps-sdk/issues"},"homepage":"https://github.com/safe-global/safe-apps-sdk#readme","publishConfig":{"access":"public"}}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(96885)}),_N_E=e.O()}]);
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.