(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{69361:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,a=String.fromCharCode,s=Object.assign;function o(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function l(e,t,n){return e.slice(t,n)}function d(e){return e.length}function h(e,t){return t.push(e),e}var f=1,p=1,m=0,g=0,y=0,b="";function v(e,t,n,r,i,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:f,column:p,length:s,return:""}}function w(e,t){return s(v("",null,null,"",null,null,0),e,{length:-e.length},t)}function _(){return y=g<m?c(b,g++):0,p++,10===y&&(p=1,f++),y}function E(){return c(b,g)}function A(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 x(e){return f=p=1,m=d(b=e),g=0,[]}function C(e){var t,n;return(t=g-1,n=function e(t){for(;_();)switch(y){case t:return g;case 34:case 39:34!==t&&39!==t&&e(y);break;case 40:41===t&&e(t);break;case 92:_()}return g}(91===e?e+2:40===e?e+1:e),l(b,t,n)).trim()}var S="-ms-",k="-moz-",D="-webkit-",I="comm",O="rule",T="decl",P="@keyframes";function F(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function R(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case T:return e.return=e.return||e.value;case I:return"";case P:return e.return=e.value+"{"+F(e.children,r)+"}";case O:e.value=e.props.join(",")}return d(n=F(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r,a,s,u,c,d,h,f){for(var p=a-1,m=0===a?s:[""],g=m.length,y=0,b=0,w=0;y<r;++y)for(var _=0,E=l(e,p+1,p=i(b=u[y])),A=e;_<g;++_)(A=(b>0?m[_]+" "+E:o(E,/&\f/g,m[_])).trim())&&(d[w++]=A);return v(e,t,n,0===a?O:c,d,h,f)}function B(e,t,n,r){return v(e,t,n,T,l(e,0,r),l(e,r+1,-1),r)}var M=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!A(i);)_();return l(b,e,g)},j=function(e,t){var n=-1,r=44;do switch(A(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=M(g-1,t,n);break;case 2:e[n]+=C(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}while(r=_());return e},L=function(e,t){var n;return n=j(x(e),t),b="",n},U=new WeakMap,z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||U.get(n))&&!r){U.set(e,!0);for(var i=[],a=L(t,i),s=n.props,o=0,u=0;o<a.length;o++)for(var c=0;c<s.length;c++,u++)e.props[u]=i[o]?a[o].replace(/&\f/g,s[c]):s[c]+" "+a[o]}}},q=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},G=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case T:e.return=function e(t,n){switch(45^c(t,0)?(((n<<2^c(t,0))<<2^c(t,1))<<2^c(t,2))<<2^c(t,3):0){case 5103:return D+"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 D+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return D+t+k+t+S+t+t;case 6828:case 4268:return D+t+S+t+t;case 6165:return D+t+S+"flex-"+t+t;case 5187:return D+t+o(t,/(\w+).+(:[^]+)/,D+"box-$1$2"+S+"flex-$1$2")+t;case 5443:return D+t+S+"flex-item-"+o(t,/flex-|-self/,"")+t;case 4675:return D+t+S+"flex-line-pack"+o(t,/align-content|flex-|-self/,"")+t;case 5548:return D+t+S+o(t,"shrink","negative")+t;case 5292:return D+t+S+o(t,"basis","preferred-size")+t;case 6060:return D+"box-"+o(t,"-grow","")+D+t+S+o(t,"grow","positive")+t;case 4554:return D+o(t,/([^-])(transform)/g,"$1"+D+"$2")+t;case 6187:return o(o(o(t,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),t,"")+t;case 5495:case 3959:return o(t,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return o(o(t,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+t+t;case 4095:case 3583:case 4068:case 2532:return o(t,/(.+)-inline(.+)/,D+"$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(d(t)-1-n>6)switch(c(t,n+1)){case 109:if(45!==c(t,n+4))break;case 102:return o(t,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+k+(108==c(t,n+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(o(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==c(t,n+1))break;case 6444:switch(c(t,d(t)-3-(~u(t,"!important")&&10))){case 107:return o(t,":",":"+D)+t;case 101:return o(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===c(t,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+S+"$2box$3")+t}break;case 5936:switch(c(t,n+11)){case 114:return D+t+S+o(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return D+t+S+o(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return D+t+S+o(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return D+t+S+t+t}return t}(e.value,e.length);break;case P:return F([w(e,{value:o(e.value,"@","@"+D)})],r);case O:if(e.length)return e.props.map(function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return F([w(e,{props:[o(t,/:(read-\w+)/,":"+k+"$1")]})],r);case"::placeholder":return F([w(e,{props:[o(t,/:(plac\w+)/,":"+D+"input-$1")]}),w(e,{props:[o(t,/:(plac\w+)/,":"+k+"$1")]}),w(e,{props:[o(t,/:(plac\w+)/,S+"input-$1")]})],r)}return""}).join("")}}],Z=function(e){var t,n,i,s,m,w=e.key;if("css"===w){var S=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(S,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var k=e.stylisPlugins||G,D={},O=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)D[t[n]]=!0;O.push(e)});var T=(n=(t=[z,q].concat(k,[R,(i=function(e){m.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,a){for(var s="",o=0;o<n;o++)s+=t[o](e,r,i,a)||"";return s}),P=function(e){var t,n;return F((n=function e(t,n,r,i,s,m,w,x,S){for(var k,D=0,O=0,T=w,P=0,F=0,R=0,M=1,j=1,L=1,U=0,z="",q=s,G=m,Z=i,W=z;j;)switch(R=U,U=_()){case 40:if(108!=R&&58==c(W,T-1)){-1!=u(W+=o(C(U),"&","&\f"),"&\f")&&(L=-1);break}case 34:case 39:case 91:W+=C(U);break;case 9:case 10:case 13:case 32:W+=function(e){for(;y=E();)if(y<33)_();else break;return A(e)>2||A(y)>3?"":" "}(R);break;case 92:W+=function(e,t){for(var n;--t&&_()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>70)||!(y<97)););return n=g+(t<6&&32==E()&&32==_()),l(b,e,n)}(g-1,7);continue;case 47:switch(E()){case 42:case 47:h(v(k=function(e,t){for(;_();)if(e+y===57)break;else if(e+y===84&&47===E())break;return"/*"+l(b,t,g-1)+"*"+a(47===e?e:_())}(_(),g),n,r,I,a(y),l(k,2,-2),0),S);break;default:W+="/"}break;case 123*M:x[D++]=d(W)*L;case 125*M:case 59:case 0:switch(U){case 0:case 125:j=0;case 59+O:-1==L&&(W=o(W,/\f/g,"")),F>0&&d(W)-T&&h(F>32?B(W+";",i,r,T-1):B(o(W," ","")+";",i,r,T-2),S);break;case 59:W+=";";default:if(h(Z=N(W,n,r,D,O,s,x,z,q=[],G=[],T),m),123===U){if(0===O)e(W,n,Z,Z,q,m,T,x,G);else switch(99===P&&110===c(W,3)?100:P){case 100:case 108:case 109:case 115:e(t,Z,Z,i&&h(N(t,Z,Z,0,0,s,x,z,s,q=[],T),G),s,G,T,x,i?q:G);break;default:e(W,Z,Z,Z,[""],G,0,x,G)}}}D=O=F=0,M=L=1,z=W="",T=w;break;case 58:T=1+d(W),F=R;default:if(M<1){if(123==U)--M;else if(125==U&&0==M++&&125==(y=g>0?c(b,--g):0,p--,10===y&&(p=1,f--),y))continue}switch(W+=a(U),U*M){case 38:L=O>0?1:(W+="\f",-1);break;case 44:x[D++]=(d(W)-1)*L,L=1;break;case 64:45===E()&&(W+=C(_())),P=E(),O=T=d(z=W+=function(e){for(;!A(E());)_();return l(b,e,g)}(g)),U++;break;case 45:45===R&&2==d(W)&&(M=0)}}return m}("",null,null,null,[""],t=x(t=e),0,[0],t),b="",n),T)},M={key:w,sheet:new r({key:w,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:D,registered:{},insert:function(e,t,n,r){m=n,P(e?e+"{"+t.styles+"}":t.styles),r&&(M.inserted[t.name]=!0)}};return M.sheet.hydrate(O),M}},96119:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},38381:function(e,t,n){"use strict";n.d(t,{C:function(){return d},E:function(){return y},T:function(){return f},c:function(){return m},h:function(){return c},i:function(){return u},w:function(){return h}});var r=n(52983),i=n(69361),a=n(68116),s=n(42623),o=n(78070),u=!0,c={}.hasOwnProperty,l=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),d=l.Provider,h=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(l),n)})};u||(h=function(e){return function(t){var n=(0,r.useContext)(l);return null===n?(n=(0,i.Z)({key:"css"}),r.createElement(l.Provider,{value:n},e(t,n))):e(t,n)}});var f=r.createContext({}),p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var n={};for(var r in t)c.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,a.hC)(t,n,r),(0,o.L)(function(){return(0,a.My)(t,n,r)}),null},y=h(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[p],u=[i],l="";"string"==typeof e.className?l=(0,a.fp)(t.registered,u,e.className):null!=e.className&&(l=e.className+" ");var d=(0,s.O)(u,void 0,r.useContext(f));l+=t.key+"-"+d.name;var h={};for(var m in e)c.call(e,m)&&"css"!==m&&m!==p&&(h[m]=e[m]);return h.ref=n,h.className=l,r.createElement(r.Fragment,null,r.createElement(g,{cache:t,serialized:d,isStringTag:"string"==typeof o}),r.createElement(o,h))})},64070:function(e,t,n){"use strict";n.d(t,{F4:function(){return l},iv:function(){return c},xB:function(){return u}});var r=n(38381),i=n(52983),a=n(68116),s=n(78070),o=n(42623);n(69361),n(10063);var u=(0,r.w)(function(e,t){var n=e.styles,u=(0,o.O)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,l=u.name,d=u.styles,h=u.next;void 0!==h;)l+=" "+h.name,d+=h.styles,h=h.next;var f=!0===t.compat,p=t.insert("",{name:l,styles:d},t.sheet,f);return f?null:i.createElement("style",((c={})["data-emotion"]=t.key+"-global "+l,c.dangerouslySetInnerHTML={__html:p},c.nonce=t.sheet.nonce,c))}var m=i.useRef();return(0,s.j)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),m.current=[n,r],function(){n.flush()}},[t]),(0,s.j)(function(){var e=m.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==u.next&&(0,a.My)(t,u.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",u,n,!1)},[t,u.name]),null});function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.O)(t)}var l=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},27409:function(e,t,n){"use strict";n.d(t,{BX:function(){return o},HY:function(){return a},tZ:function(){return s}});var r=n(97458),i=n(38381);n(52983),n(69361),n(10063),n(42623),n(78070);var a=r.Fragment;function s(e,t,n){return i.h.call(t,"css")?r.jsx(i.E,(0,i.c)(e,t),n):r.jsx(e,t,n)}function o(e,t,n){return i.h.call(t,"css")?r.jsxs(i.E,(0,i.c)(e,t),n):r.jsxs(e,t,n)}},42623:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r,i={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},a=n(96119),s=/[A-Z]|^ms/g,o=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},l=(0,a.Z)(function(e){return u(e)?e:e.replace(s,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(o,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=h(e,t,n[i])+";";else for(var a in n){var s=n[a];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":c(s)&&(r+=l(a)+":"+d(a,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var o=0;o<s.length;o++)c(s[o])&&(r+=l(a)+":"+d(a,s[o])+";");else{var u=h(e,t,s);switch(a){case"animation":case"animationName":r+=l(a)+":"+u+";";break;default:r+=a+"{"+u+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var a=r,s=n(e);return r=a,h(e,t,s)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}var f=/label:\s*([^\s;\n{]+)\s*(;|$)/g,p=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,a=!0,s="";r=void 0;var o=e[0];null==o||void 0===o.raw?(a=!1,s+=h(n,t,o)):s+=o[0];for(var u=1;u<e.length;u++)s+=h(n,t,e[u]),a&&(s+=o[u]);f.lastIndex=0;for(var c="";null!==(i=f.exec(s));)c+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(s)+c,styles:s,next:r}}},78070:function(e,t,n){"use strict";n.d(t,{L:function(){return s},j:function(){return o}});var r,i=n(52983),a=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,s=a||function(e){return e()},o=a||i.useLayoutEffect},68116:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}n.d(t,{My:function(){return a},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next;while(void 0!==a)}}},30791:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(53341);n(52983);var i=n(64070),a=n(97458);function s(e){let{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?n:e):t;return(0,a.jsx)(i.xB,{styles:r})}var o=n(95545),u=function({styles:e,themeId:t,defaultTheme:n={}}){let r=(0,o.Z)(n),i="function"==typeof e?e(t&&r[t]||r):e;return(0,a.jsx)(s,{styles:i})},c=n(94612),l=n(90301),d=function(e){return(0,a.jsx)(u,(0,r.Z)({},e,{defaultTheme:c.Z,themeId:l.Z}))}},75160:function(e,t){"use strict";t.Z={black:"#000",white:"#fff"}},9084:function(e,t){"use strict";t.Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},21596:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(53341),i=n(1792),a=n(52983);let s=a.createContext(null);function o(){let e=a.useContext(s);return e}let u="function"==typeof Symbol&&Symbol.for;var c=u?Symbol.for("mui.nested"):"__THEME_NESTED__",l=n(97458),d=function(e){let{children:t,theme:n}=e,i=o(),u=a.useMemo(()=>{let e=null===i?n:function(e,t){if("function"==typeof t){let n=t(e);return n}return(0,r.Z)({},e,t)}(i,n);return null!=e&&(e[c]=null!==i),e},[n,i]);return(0,l.jsx)(s.Provider,{value:u,children:t})},h=n(38381),f=n(67659);let p={};function m(e,t,n,i=!1){return a.useMemo(()=>{let a=e&&t[e]||t;if("function"==typeof n){let s=n(a),o=e?(0,r.Z)({},t,{[e]:s}):s;return i?()=>o:o}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var g=function(e){let{children:t,theme:n,themeId:r}=e,i=(0,f.Z)(p),a=o()||p,s=m(r,i,n),u=m(r,a,n,!0);return(0,l.jsx)(d,{theme:u,children:(0,l.jsx)(h.T.Provider,{value:s,children:t})})},y=n(90301);let b=["theme"];function v(e){let{theme:t}=e,n=(0,i.Z)(e,b),a=t[y.Z];return(0,l.jsx)(g,(0,r.Z)({},n,{themeId:a?y.Z:void 0,theme:a||t}))}},27454:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(53341),i=n(1792),a=n(44946),s=n(6410),o=n(42952),u=n(43713),c=n(90741),l=n(80177),d=n(75160),h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b=n(9084);let v=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.Z.white,default:d.Z.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:d.Z.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.Z.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){let i=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,l.$n)(e.main,i):"dark"===t&&(e.dark=(0,l._j)(e.main,a)))}let A=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],x={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function S(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let k=["none",S(0,2,1,-1,0,1,1,0,0,1,3,0),S(0,3,1,-2,0,2,2,0,0,1,5,0),S(0,3,3,-2,0,3,4,0,0,1,8,0),S(0,2,4,-1,0,4,5,0,0,1,10,0),S(0,3,5,-1,0,5,8,0,0,1,14,0),S(0,3,5,-1,0,6,10,0,0,1,18,0),S(0,4,5,-2,0,7,10,1,0,2,16,1),S(0,5,5,-3,0,8,10,1,0,3,14,2),S(0,5,6,-3,0,9,12,1,0,3,16,2),S(0,6,6,-3,0,10,14,1,0,4,18,3),S(0,6,7,-4,0,11,15,1,0,4,20,3),S(0,7,8,-4,0,12,17,2,0,5,22,4),S(0,7,8,-4,0,13,19,2,0,5,24,4),S(0,7,9,-4,0,14,21,2,0,5,26,4),S(0,8,9,-5,0,15,22,2,0,6,28,5),S(0,8,10,-5,0,16,24,2,0,6,30,5),S(0,8,11,-5,0,17,26,2,0,6,32,5),S(0,9,11,-5,0,18,28,2,0,7,34,6),S(0,9,12,-6,0,19,29,2,0,7,36,6),S(0,10,13,-6,0,20,31,3,0,8,38,7),S(0,10,13,-6,0,21,33,3,0,8,40,7),S(0,10,14,-6,0,22,35,3,0,8,42,7),S(0,11,14,-7,0,23,36,3,0,9,44,8),S(0,11,15,-7,0,24,38,3,0,9,46,8)];var D=n(25292),I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let O=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var T=function(e={},...t){var n;let{mixins:S={},palette:T={},transitions:P={},typography:F={}}=e,R=(0,i.Z)(e,O);if(e.vars)throw Error((0,a.Z)(18));let N=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,u=(0,i.Z)(e,v),c=e.primary||function(e="light"){return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),A=e.secondary||function(e="light"){return"dark"===e?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),x=e.error||function(e="light"){return"dark"===e?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),C=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),S=e.success||function(e="light"){return"dark"===e?{main:b.Z[400],light:b.Z[300],dark:b.Z[700]}:{main:b.Z[800],light:b.Z[500],dark:b.Z[900]}}(t),k=e.warning||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function D(e){let t=(0,l.mi)(e,_.text.primary)>=n?_.text.primary:w.text.primary;return t}let I=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:s=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw Error((0,a.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw Error((0,a.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return E(e,"light",i,o),E(e,"dark",s,o),e.contrastText||(e.contrastText=D(e.main)),e},O=(0,s.Z)((0,r.Z)({common:(0,r.Z)({},d.Z),mode:t,primary:I({color:c,name:"primary"}),secondary:I({color:A,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:I({color:x,name:"error"}),warning:I({color:k,name:"warning"}),info:I({color:C,name:"info"}),success:I({color:S,name:"success"}),grey:h,contrastThreshold:n,getContrastText:D,augmentColor:I,tonalOffset:o},{dark:_,light:w}[t]),u);return O}(T),B=(0,o.Z)(e),M=(0,s.Z)(B,{mixins:(n=B.breakpoints,(0,r.Z)({toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}}},S)),palette:N,shadows:k.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:a=C,fontSize:o=14,fontWeightLight:u=300,fontWeightRegular:c=400,fontWeightMedium:l=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:f,pxToRem:p}=n,m=(0,i.Z)(n,A),g=o/14,y=p||(e=>`${e/h*g}rem`),b=(e,t,n,i,s)=>(0,r.Z)({fontFamily:a,fontWeight:e,fontSize:y(t),lineHeight:n},a===C?{letterSpacing:`${Math.round(1e5*(i/t))/1e5}em`}:{},s,f),v={h1:b(u,96,1.167,-1.5),h2:b(u,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(l,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(l,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(l,14,1.75,.4,x),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,x),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.Z)((0,r.Z)({htmlFontSize:h,pxToRem:y,fontFamily:a,fontSize:o,fontWeightLight:u,fontWeightRegular:c,fontWeightMedium:l,fontWeightBold:d},v),m,{clone:!1})}(N,F),transitions:(0,D.ZP)(P),zIndex:(0,r.Z)({},I)});return M=(0,s.Z)(M,R),(M=t.reduce((e,t)=>(0,s.Z)(e,t),M)).unstable_sxConfig=(0,r.Z)({},u.Z,null==R?void 0:R.unstable_sxConfig),M.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},M}},25292:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l},x9:function(){return o}});var r=n(1792),i=n(53341);let a=["duration","easing","delay"],s={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function l(e){let t=(0,i.Z)({},s,e.easing),n=(0,i.Z)({},o,e.duration);return(0,i.Z)({getAutoHeightDuration:c,create:(e=["all"],i={})=>{let{duration:s=n.standard,easing:o=t.easeInOut,delay:c=0}=i;return(0,r.Z)(i,a),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof s?s:u(s)} ${o} ${"string"==typeof c?c:u(c)}`).join(",")}},e,{easing:t,duration:n})}},94612:function(e,t,n){"use strict";var r=n(27454);let i=(0,r.Z)();t.Z=i},90301:function(e,t){"use strict";t.Z="$$material"},52020:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(70744),i=n(94612),a=n(90301);function s({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:i.Z,themeId:a.Z})}},59188:function(e,t,n){"use strict";n.d(t,{L7:function(){return u},P$:function(){return l},VO:function(){return i},W8:function(){return o},dt:function(){return c},k9:function(){return s}});var r=n(6410);let i={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function s(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||a;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){let e=r.breakpoints||a;return Object.keys(t).reduce((r,a)=>{if(-1!==Object.keys(e.values||i).indexOf(a)){let i=e.up(a);r[i]=n(t[a],a)}else r[a]=t[a];return r},{})}let s=n(t);return s}function o(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function u(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}function c(e,...t){let n=o(e),i=[n,...t].reduce((e,t)=>(0,r.Z)(e,t),{});return u(Object.keys(n),i)}function l({values:e,breakpoints:t,base:n}){let r;let i=n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),a=Object.keys(i);return 0===a.length?e:a.reduce((t,n,i)=>(Array.isArray(e)?(t[n]=null!=e[i]?e[i]:e[r],r=i):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t),{})}},80177:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return c},_4:function(){return h},_j:function(){return l},mi:function(){return u}});var r=n(44946);function i(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function a(e){let t;if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),i=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw Error((0,r.Z)(9,e));let s=e.substring(n+1,e.length-1);if("color"===i){if(t=(s=s.split(" ")).shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,r.Z)(10,t))}else s=s.split(",");return{type:i,values:s=s.map(e=>parseFloat(e)),colorSpace:t}}function s(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function o(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){e=a(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),u=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),s({type:c,values:l})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){let n=o(e),r=o(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=a(e),t=i(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function l(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function d(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return o(e)>.5?l(e,t):d(e,t)}},42952:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(53341),i=n(1792),a=n(6410);let s=["values","unit","step"],o=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,r.Z)({},e,{[t.key]:t.val}),{})};var u={borderRadius:4},c=n(70870),l=n(90741),d=n(43713);let h=["breakpoints","palette","spacing","shape"];var f=function(e={},...t){let{breakpoints:n={},palette:f={},spacing:p,shape:m={}}=e,g=(0,i.Z)(e,h),y=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,u=(0,i.Z)(e,s),c=o(t),l=Object.keys(c);function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function h(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-a/100}${n})`}function f(e,r){let i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-a/100}${n})`}return(0,r.Z)({keys:l,values:c,up:d,down:h,between:f,only:function(e){return l.indexOf(e)+1<l.length?f(e,l[l.indexOf(e)+1]):d(e)},not:function(e){let t=l.indexOf(e);return 0===t?d(l[1]):t===l.length-1?h(l[t]):f(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},u)}(n),b=function(e=8){if(e.mui)return e;let t=(0,c.hB)({spacing:e}),n=(...e)=>{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}(p),v=(0,a.Z)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},f),spacing:b,shape:(0,r.Z)({},u,m)},g);return(v=t.reduce((e,t)=>(0,a.Z)(e,t),v)).unstable_sxConfig=(0,r.Z)({},d.Z,null==g?void 0:g.unstable_sxConfig),v.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},v}},81360:function(e,t,n){"use strict";var r=n(6410);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},70870:function(e,t,n){"use strict";n.d(t,{hB:function(){return p},eI:function(){return f},NA:function(){return m},e6:function(){return y},o3:function(){return b}});var r=n(59188),i=n(99495),a=n(81360);let s={m:"margin",p:"padding"},o={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!u[e])return[e];e=u[e]}let[t,n]=e.split(""),r=s[t],i=o[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),l=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...l,...d];function f(e,t,n,r){var a;let s=null!=(a=(0,i.DW)(e,t,!1))?a:n;return"number"==typeof s?e=>"string"==typeof e?e:s*e:Array.isArray(s)?e=>"string"==typeof e?e:s[e]:"function"==typeof s?s:()=>void 0}function p(e){return f(e,"spacing",8,"spacing")}function m(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){let n=p(e.theme);return Object.keys(e).map(i=>(function(e,t,n,i){if(-1===t.indexOf(n))return null;let a=c(n),s=e[n];return(0,r.k9)(e,s,e=>a.reduce((t,n)=>(t[n]=m(i,e),t),{}))})(e,t,i,n)).reduce(a.Z,{})}function y(e){return g(e,l)}function b(e){return g(e,d)}function v(e){return g(e,h)}y.propTypes={},y.filterProps=l,b.propTypes={},b.filterProps=d,v.propTypes={},v.filterProps=h},99495:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return s}});var r=n(6077),i=n(59188);function a(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function s(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(i=t(i,r,e)),i}t.ZP=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:o,transform:u}=e,c=e=>{if(null==e[t])return null;let c=e[t],l=e.theme,d=a(l,o)||{};return(0,i.k9)(e,c,e=>{let i=s(d,u,e);return(e===i&&"string"==typeof e&&(i=s(d,u,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n)?i:{[n]:i}})};return c.propTypes={},c.filterProps=[t],c}},43713:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(70870),i=n(99495),a=n(81360),s=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,a.Z)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n},o=n(59188);function u(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,i.ZP)({prop:"border",themeKey:"borders",transform:u}),l=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:u}),d=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:u}),h=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:u}),f=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:u}),p=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),v=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,o.k9)(e,e.borderRadius,e=>({borderRadius:(0,r.NA)(t,e)}))}return null};v.propTypes={},v.filterProps=["borderRadius"],s(c,l,d,h,f,p,m,g,y,b,v);let w=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,o.k9)(e,e.gap,e=>({gap:(0,r.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["gap"];let _=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,o.k9)(e,e.columnGap,e=>({columnGap:(0,r.NA)(t,e)}))}return null};_.propTypes={},_.filterProps=["columnGap"];let E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,o.k9)(e,e.rowGap,e=>({rowGap:(0,r.NA)(t,e)}))}return null};E.propTypes={},E.filterProps=["rowGap"];let A=(0,i.ZP)({prop:"gridColumn"}),x=(0,i.ZP)({prop:"gridRow"}),C=(0,i.ZP)({prop:"gridAutoFlow"}),S=(0,i.ZP)({prop:"gridAutoColumns"}),k=(0,i.ZP)({prop:"gridAutoRows"}),D=(0,i.ZP)({prop:"gridTemplateColumns"}),I=(0,i.ZP)({prop:"gridTemplateRows"}),O=(0,i.ZP)({prop:"gridTemplateAreas"}),T=(0,i.ZP)({prop:"gridArea"});function P(e,t){return"grey"===t?t:e}s(w,_,E,A,x,C,S,k,D,I,O,T);let F=(0,i.ZP)({prop:"color",themeKey:"palette",transform:P}),R=(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:P}),N=(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:P});function B(e){return e<=1&&0!==e?`${100*e}%`:e}s(F,R,N);let M=(0,i.ZP)({prop:"width",transform:B}),j=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,o.k9)(e,e.maxWidth,t=>{var n,r;let i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||o.VO[t];return i?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:B(t)}}):null;j.filterProps=["maxWidth"];let L=(0,i.ZP)({prop:"minWidth",transform:B}),U=(0,i.ZP)({prop:"height",transform:B}),z=(0,i.ZP)({prop:"maxHeight",transform:B}),q=(0,i.ZP)({prop:"minHeight",transform:B});(0,i.ZP)({prop:"size",cssProperty:"width",transform:B}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:B});let G=(0,i.ZP)({prop:"boxSizing"});s(M,j,L,U,z,q,G);let Z={border:{themeKey:"borders",transform:u},borderTop:{themeKey:"borders",transform:u},borderRight:{themeKey:"borders",transform:u},borderBottom:{themeKey:"borders",transform:u},borderLeft:{themeKey:"borders",transform:u},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:v},color:{themeKey:"palette",transform:P},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:P},backgroundColor:{themeKey:"palette",transform:P},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:w},rowGap:{style:E},columnGap:{style:_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:B},maxWidth:{style:j},minWidth:{transform:B},height:{transform:B},maxHeight:{transform:B},minHeight:{transform:B},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var W=Z},90741:function(e,t,n){"use strict";var r=n(6077),i=n(81360),a=n(99495),s=n(59188),o=n(43713);let u=function(){function e(e,t,n,i){let o={[e]:t,theme:n},u=i[e];if(!u)return{[e]:t};let{cssProperty:c=e,themeKey:l,transform:d,style:h}=u;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};let f=(0,a.DW)(n,l)||{};return h?h(o):(0,s.k9)(o,t,t=>{let n=(0,a.Jq)(f,d,t);return(t===n&&"string"==typeof t&&(n=(0,a.Jq)(f,d,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c)?n:{[c]:n}})}return function t(n){var r;let{sx:a,theme:u={}}=n||{};if(!a)return null;let c=null!=(r=u.unstable_sxConfig)?r:o.Z;function l(n){let r=n;if("function"==typeof n)r=n(u);else if("object"!=typeof n)return n;if(!r)return null;let a=(0,s.W8)(u.breakpoints),o=Object.keys(a),l=a;return Object.keys(r).forEach(n=>{var a;let o="function"==typeof(a=r[n])?a(u):a;if(null!=o){if("object"==typeof o){if(c[n])l=(0,i.Z)(l,e(n,o,u,c));else{let e=(0,s.k9)({theme:u},o,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(e,o)?l[n]=t({sx:o,theme:u}):l=(0,i.Z)(l,e)}}else l=(0,i.Z)(l,e(n,o,u,c))}}),(0,s.L7)(o,l)}return Array.isArray(a)?a.map(l):l(a)}}();u.filterProps=["sx"],t.Z=u},95545:function(e,t,n){"use strict";var r=n(42952),i=n(67659);let a=(0,r.Z)();t.Z=function(e=a){return(0,i.Z)(e)}},24034:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(905);function i(e){let{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}},70744:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(24034),i=n(95545);function a({props:e,name:t,defaultTheme:n,themeId:a}){let s=(0,i.Z)(n);a&&(s=s[a]||s);let o=(0,r.Z)({theme:s,name:t,props:e});return o}},67659:function(e,t,n){"use strict";var r=n(52983),i=n(38381);t.Z=function(e=null){let t=r.useContext(i.T);return t&&0!==Object.keys(t).length?t:e}},6077:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(44946);function i(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},6410:function(e,t,n){"use strict";n.d(t,{P:function(){return i},Z:function(){return function e(t,n,a={clone:!0}){let s=a.clone?(0,r.Z)({},t):t;return i(t)&&i(n)&&Object.keys(n).forEach(r=>{"__proto__"!==r&&(i(n[r])&&r in t&&i(t[r])?s[r]=e(t[r],n[r],a):a.clone?s[r]=i(n[r])?function e(t){if(!i(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:s[r]=n[r])}),s}}});var r=n(53341);function i(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},44946:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},905:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n){let i=(0,r.Z)({},n);return Object.keys(t).forEach(a=>{if(a.toString().match(/^(components|slots)$/))i[a]=(0,r.Z)({},t[a],i[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){let s=t[a]||{},o=n[a];i[a]={},o&&Object.keys(o)?s&&Object.keys(s)?(i[a]=(0,r.Z)({},o),Object.keys(s).forEach(t=>{i[a][t]=e(s[t],o[t])})):i[a]=o:i[a]=s}else void 0===i[a]&&(i[a]=t[a])}),i}}});var r=n(53341)},5372:function(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(i),n(e)}).catch(r)})}function i(e,t,n){var i=function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}};return new Promise(function(e){return setTimeout(e,n)}).then(function(){return r(i(),1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}n.d(t,{FJ:function(){return r},UI:function(){return i}})},30429:function(e,t,n){"use strict";n.d(t,{Y:function(){return u},_:function(){return c}});var r=n(50836),i=n(23034),a=n(43112),s=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,i,s=(0,a.pi)((0,a.pi)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete s.time;var o=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[o]&&(o="".concat(o,"-").concat(Math.random())),(0,a.pi)((0,a.pi)({},e),((n={})[o]=s,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),o=n(34911),u=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},c=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new o.i),void 0===i&&(i=new s),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new u({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if((null===(n=this.event.integrations)||void 0===n?void 0:n[r])===!1)return this.event}return(0,i.N)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},55988:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var r=function(){function e(){this.callbacks={}}return e.prototype.on=function(e,t){return this.callbacks[e]?this.callbacks[e].push(t):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];n.off(e,r),t.apply(n,i)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter(function(e){return e!==t});return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach(function(e){e.apply(n,r)}),this},e}()},60522:function(e,t,n){"use strict";n.d(t,{M:function(){return a},Z:function(){return s}});var r=n(43112),i=n(55988),a="onRemoveFromFuture",s=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.ZT)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map(function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e){var t,n,r,i,s=this;if(0===this.getAttempts(e))return this.push(e)[0];var o=this.updateAttempts(e);return!(o>this.maxAttempts||this.includes(e))&&(setTimeout(function(){s.queue.push(e),s.future=s.future.filter(function(t){return t.id!==e.id}),s.emit(a)},(n=(t={attempt:o-1}).minTimeout,Math.min((Math.random()+1)*(void 0===n?500:n)*Math.pow(void 0===(r=t.factor)?2:r,t.attempt),void 0===(i=t.maxTimeout)?1/0:i))),this.future.push(e),!0)},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||!!this.queue.find(function(t){return t.id===e.id})||!!this.future.find(function(t){return t.id===e.id})},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.Q)},53315:function(e,t,n){"use strict";n.d(t,{a:function(){return a},z:function(){return s}});var r=n(43112),i=n(30429);function a(e,t){e.log("debug","plugin",{plugin:t.name});var n=new Date().getTime(),a=t[e.event.type];return void 0===a?Promise.resolve(e):(function(e){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e()];case 1:return[2,t.sent()];case 2:return[2,Promise.reject(t.sent())];case 3:return[2]}})})})(function(){return a.apply(t,[e])}).then(function(e){var r=new Date().getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof i.Y&&"middleware_cancellation"===n.type)throw n;return n instanceof i.Y?e.log("warn",n.type,{plugin:t.name,error:n}):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)])),n})}function s(e,t){return a(e,t).then(function(t){if(t instanceof i._)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},34911:function(e,t,n){"use strict";n.d(t,{i:function(){return a},s:function(){return i}});var r=n(43112),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,r.pi)((0,r.pi)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:({gauge:"g",counter:"c"})[e.type],e:e.timestamp}})},e}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},24284:function(e,t,n){"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function a(e){return"function"==typeof e}function s(e){return null!=e}function o(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Gg:function(){return s},HD:function(){return r},PO:function(){return o},hj:function(){return i},mf:function(){return a}})},15564:function(e,t,n){"use strict";n.d(t,{G:function(){return i},s:function(){return a}});var r=n(9986);function i(){return!(0,r.j)()||window.navigator.onLine}function a(){return!i()}},82468:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var r="api.segment.io/v1"},55083:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(43112),i=n(30429),a=n(17099),s=function(e){function t(t,n){return e.call(this,t,n,new a.j)||this}return(0,r.ZT)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i._)},9986:function(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{j:function(){return r},s:function(){return i}})},60072:function(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{a:function(){return r}})},17099:function(e,t,n){"use strict";n.d(t,{j:function(){return f}});var r,i=n(43112),a=n(34911),s=n(25773),o=n(73577),u=n(85281),c=n(82468),l=function(e,t,n){var r=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});return{type:"Counter",metric:e,value:1,tags:(0,i.pi)((0,i.pi)({},r),{library:"analytics.js",library_version:"web"===n?"next-".concat(o.i):"npm:next-".concat(o.i)})}};function d(e){console.error("Error sending segment performance metrics",e)}var h=function(){function e(e){var t,n,r,i,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:c.U,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.queue=[],this.sampleRate>0){var s=!1,o=function(){s||(s=!0,a.flush().catch(d),s=!1,setTimeout(o,a.flushTimer))};o()}}return e.prototype.increment=function(e,t){if(!(!e.includes("analytics_js.")||0===t.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=l(e,t,(0,u.B)());this.queue.push(n),e.includes("error")&&this.flush().catch(d)}},e.prototype.flush=function(){return(0,i.mG)(this,void 0,void 0,function(){var e=this;return(0,i.Jh)(this,function(t){switch(t.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(t){d(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,i.mG)(this,void 0,void 0,function(){var e,t,n;return(0,i.Jh)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,(0,s.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.initRemoteMetrics=function(e){r=new h(e)},t.prototype.increment=function(t,n,i){e.prototype.increment.call(this,t,n,i),null==r||r.increment(t,null!=i?i:[])},t}(a.s)},73577:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="1.56.0"},25773:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(78635),i=n.n(r),a=n(72508),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,a.R)();return(n&&n.fetch||i()).apply(void 0,e)}},72508:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},10720:function(e,t,n){"use strict";n.d(t,{jV:function(){return a},ql:function(){return s},wI:function(){return i}});var r="analytics";function i(){return window[r]}function a(e){r=e}function s(e){window[r]=e}},49613:function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function i(e,t){var n=r(e);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(e,t){n.addEventListener("load",function(){return e(n)}),n.addEventListener("error",function(e){return t(e)})})}return new Promise(function(n,r){var i,a=window.document.createElement("script");a.type="text/javascript",a.src=e,a.async=!0,a.setAttribute("status","loading");for(var s=0,o=Object.entries(null!=t?t:{});s<o.length;s++){var u=o[s],c=u[0],l=u[1];a.setAttribute(c,l)}a.onload=function(){a.onerror=a.onload=null,a.setAttribute("status","loaded"),n(a)},a.onerror=function(){a.onerror=a.onload=null,a.setAttribute("status","error"),r(Error("Failed to load ".concat(e)))};var d=window.document.getElementsByTagName("script")[0];null===(i=d.parentElement)||void 0===i||i.insertBefore(a,d)})}function a(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{t:function(){return a},v:function(){return i}})},21194:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(43112);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce(function(e,t){var n,i,a=t[0],s=t[1];return"object"==typeof s?(0,r.pi)((0,r.pi)({},e),((n={})[a]=s,n)):(0,r.pi)((0,r.pi)({},e),((i={})[a]={},i))},{});return Object.entries(e.integrations).reduce(function(e,t){var n,a=t[0],s=t[1];return(0,r.pi)((0,r.pi)({},e),((n={})[a]=(0,r.pi)((0,r.pi)({},s),i[a]),n))},{})}},10911:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(43112),i=function(e,t){return(0,r.mG)(void 0,void 0,void 0,function(){var n;return(0,r.Jh)(this,function(i){return[2,(n=function(i){return(0,r.mG)(void 0,void 0,void 0,function(){var a;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!e(i))return[3,2];return a=n,[4,t()];case 1:return[2,a.apply(void 0,[r.sent()])];case 2:return[2]}})})})(void 0)]})})}},20833:function(e,t,n){"use strict";n.d(t,{Kg:function(){return l},UH:function(){return u},Vl:function(){return c}});var r,i=n(10720),a=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,s=function(){var e;return Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(t){var n,r=null!==(n=t.getAttribute("src"))&&void 0!==n?n:"",i=a.exec(r);i&&i[1]&&(e=i[1])}),e},o=function(){var e;return null!=r?r:null===(e=(0,i.wI)())||void 0===e?void 0:e._cdn},u=function(e){var t=(0,i.wI)();t&&(t._cdn=e),r=e},c=function(){var e=o();return e?e:s()||"https://cdn.segment.com"},l=function(){var e=c();return"".concat(e,"/next-integrations")}},31069:function(e,t,n){"use strict";n.d(t,{$:function(){return h}});var r=n(43112),i=n(60522),a=n(55083),s=n(9986),o={getItem:function(){},setItem:function(){},removeItem:function(){}};try{o=(0,s.j)()&&window.localStorage?window.localStorage:o}catch(e){console.warn("Unable to access localStorage",e)}function u(e){var t=o.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new a._(e.event,e.id)})}function c(e){var t=o.getItem(e);return t?JSON.parse(t):{}}function l(e){o.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=o.getItem(r),a=i?JSON.parse(i):null,s=null===a||new Date().getTime()>a;if(s){o.setItem(r,JSON.stringify(new Date().getTime()+50)),t(),o.removeItem(r);return}!s&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var h=function(e){function t(t,n){var i=e.call(this,t,[])||this,a="persisted-queue:v1:".concat(n,":items"),s="persisted-queue:v1:".concat(n,":seen"),h=[],f={};return d(n,function(){try{h=u(a),f=c(s),l(a),l(s),i.queue=(0,r.ev)((0,r.ev)([],h,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},f),i.seen)}catch(e){console.error(e)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{d(n,function(){var t,n,l,d;t=u(a),n=(0,r.ev)((0,r.ev)([],e,!0),t,!0).reduce(function(e,t){var n;return(0,r.pi)((0,r.pi)({},e),((n={})[t.id]=t,n))},{}),o.setItem(a,JSON.stringify(Object.values(n))),l=i.seen,d=c(s),o.setItem(s,JSON.stringify((0,r.pi)((0,r.pi)({},d),l)))})}catch(e){console.error(e)}}}),i}return(0,r.ZT)(t,e),t}(i.Z)},38292:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(5779);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},85281:function(e,t,n){"use strict";function r(){return"npm"}n.d(t,{B:function(){return r}})},53873:function(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:function(){return s},sourceMiddlewarePlugin:function(){return o}});var r=n(43112),i=n(30429),a=n(38292);function s(e,t,n){return(0,r.mG)(this,void 0,void 0,function(){var i,s,o,u;return(0,r.Jh)(this,function(c){switch(c.label){case 0:i=(0,a.D)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,o=n,c.label=1;case 1:if(!(s<o.length))return[3,4];return[4,function(t,n){return(0,r.mG)(this,void 0,void 0,function(){var i,s,o;return(0,r.Jh)(this,function(u){switch(u.label){case 0:return i=!1,s=null,[4,n({payload:(0,a.D)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(s=null),e&&(s=e.obj)}})];case 1:return u.sent(),i||null===s||(s.integrations=(0,r.pi)((0,r.pi)({},t.integrations),((o={})[e]=!1,o))),[2,s]}})})}(i,o[s])];case 2:if(null===(u=c.sent()))return[2,null];i=u,c.label=3;case 3:return s++,[3,1];case 4:return[2,i]}})})}function o(e,t){function n(n){return(0,r.mG)(this,void 0,void 0,function(){var s;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return s=!1,[4,e({payload:(0,a.D)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){s=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!s)throw new i.Y({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,identify:n,alias:n,group:n}}},13589:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(19434));function a(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=a("postalCode","zip"),e.country=a("country"),e.street=a("street"),e.state=a("state"),e.city=a("city"),e.region=a("region")}},2329:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(67483)),a=n(72851);function s(e,t){a.Facade.call(this,e,t)}t.Alias=s,i.default(s,a.Facade),s.prototype.action=function(){return"alias"},s.prototype.type=s.prototype.action,s.prototype.previousId=function(){return this.field("previousId")||this.field("from")},s.prototype.from=s.prototype.previousId,s.prototype.userId=function(){return this.field("userId")||this.field("to")},s.prototype.to=s.prototype.userId},55534:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},63884:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(67483)),a=n(72851);function s(e,t){a.Facade.call(this,e,t)}t.Delete=s,i.default(s,a.Facade),s.prototype.type=function(){return"delete"}},72851:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(13589)),a=n(55534),s=r(n(3269)),o=r(n(41862)),u=r(n(19434)),c=r(n(58651));function l(e,t){t=t||{},this.raw=a.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=a.clone(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=o.default(e.timestamp):e.timestamp=new Date,t.traverse&&c.default(e),this.opts=t,this.obj=e}t.Facade=l;var d=l.prototype;function h(e){return a.clone(e)}d.proxy=function(e){var t,n=e.split("."),r=this[e=n.shift()]||this.obj[e];return r?("function"==typeof r&&(r=r.call(this)||{}),0===n.length||(r=u.default(r,n.join("."))),this.opts.clone?(t=r,a.clone(t)):r):r},d.field=function(e){var t,n=this.obj[e];return this.opts.clone?(t=n,a.clone(t)):n},l.proxy=function(e){return function(){return this.proxy(e)}},l.field=function(e){return function(){return this.field(e)}},l.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?a.clone(n):n]),n||[]}},l.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");if(Array.isArray(n))return n[0]}},d.json=function(){var e=this.opts.clone?a.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?a.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||u.default(r,e);return"object"!=typeof i&&(i=u.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&s.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=l.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");("object"!=typeof e||null===e)&&(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=l.proxy("context.userAgent"),d.timezone=l.proxy("context.timezone"),d.timestamp=l.field("timestamp"),d.channel=l.field("channel"),d.ip=l.proxy("context.ip"),d.userId=l.field("userId"),i.default(d)},1296:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(67483)),a=r(n(57939)),s=r(n(41862)),o=n(72851);function u(e,t){o.Facade.call(this,e,t)}t.Group=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"group"},c.type=c.action,c.groupId=o.Facade.field("groupId"),c.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return s.default(e)},c.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(a.default(t))return t},c.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},c.name=o.Facade.proxy("traits.name"),c.industry=o.Facade.proxy("traits.industry"),c.employees=o.Facade.proxy("traits.employees"),c.properties=function(){return this.field("traits")||this.field("properties")||{}}},3316:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(72851),a=r(n(19434)),s=r(n(67483)),o=r(n(57939)),u=r(n(41862)),c=function(e){return e.trim()};function l(e,t){i.Facade.call(this,e,t)}t.Identify=l,s.default(l,i.Facade);var d=l.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(o.default(t))return t},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return u.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return u.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return c(e);var t=this.firstName(),n=this.lastName();if(t&&n)return c(t+" "+n)},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return c(e);var t=this.proxy("traits.name");if("string"==typeof t)return c(t).split(" ")[0]},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return c(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=c(t).indexOf(" ");if(-1!==n)return c(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=a.default(this.traits(),"age");return null!=t?t:e instanceof Date?new Date().getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return a.default(e,"avatar")||a.default(e,"photoUrl")||a.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return a.default(e,"position")||a.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},5779:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(72851);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var a=n(2329);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return a.Alias}});var s=n(1296);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return s.Group}});var o=n(3316);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return o.Identify}});var u=n(50160);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return u.Track}});var c=n(56697);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return c.Page}});var l=n(27201);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return l.Screen}});var d=n(63884);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},i.Facade),{Alias:a.Alias,Group:s.Group,Identify:o.Identify,Track:u.Track,Page:c.Page,Screen:l.Screen,Delete:d.Delete})},57939:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},3269:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},56697:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(67483)),a=n(72851),s=n(50160),o=r(n(57939));function u(e,t){a.Facade.call(this,e,t)}t.Page=u,i.default(u,a.Facade);var c=u.prototype;c.action=function(){return"page"},c.type=c.action,c.category=a.Facade.field("category"),c.name=a.Facade.field("name"),c.title=a.Facade.proxy("properties.title"),c.path=a.Facade.proxy("properties.path"),c.url=a.Facade.proxy("properties.url"),c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=null==this[i]?this.proxy("properties."+i):this[i]();if(null==a)continue;t[e[i]]=a,i!==e[i]&&delete t[i]}return t},c.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(o.default(t))return t},c.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},c.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},c.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new s.Track(t,this.opts)}},27201:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(67483)),a=n(56697),s=n(50160);function o(e,t){a.Page.call(this,e,t)}t.Screen=o,i.default(o,a.Page),o.prototype.action=function(){return"screen"},o.prototype.type=o.prototype.action,o.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},o.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new s.Track(t,this.opts)}},50160:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(67483)),a=n(72851),s=n(3316),o=r(n(57939)),u=r(n(19434));function c(e,t){a.Facade.call(this,e,t)}t.Track=c,i.default(c,a.Facade);var l=c.prototype;l.action=function(){return"track"},l.type=l.action,l.event=a.Facade.field("event"),l.value=a.Facade.proxy("properties.value"),l.category=a.Facade.proxy("properties.category"),l.id=a.Facade.proxy("properties.id"),l.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},l.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},l.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},l.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},l.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},l.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},l.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},l.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},l.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},l.sku=a.Facade.proxy("properties.sku"),l.tax=a.Facade.proxy("properties.tax"),l.name=a.Facade.proxy("properties.name"),l.price=a.Facade.proxy("properties.price"),l.total=a.Facade.proxy("properties.total"),l.repeat=a.Facade.proxy("properties.repeat"),l.coupon=a.Facade.proxy("properties.coupon"),l.shipping=a.Facade.proxy("properties.shipping"),l.discount=a.Facade.proxy("properties.discount"),l.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},l.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},l.description=a.Facade.proxy("properties.description"),l.plan=a.Facade.proxy("properties.plan"),l.subtotal=function(){var e=u.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},l.products=function(){var e=this.properties(),t=u.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},l.quantity=function(){return(this.obj.properties||{}).quantity||1},l.currency=function(){return(this.obj.properties||{}).currency||"USD"},l.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},l.query=a.Facade.proxy("options.query"),l.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},l.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},l.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(o.default(t))return t},l.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e&&("number"==typeof e||"string"==typeof e&&!isNaN(e=parseFloat(e=e.replace(/\$/g,"")))))return e}(e)},l.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},l.identify=function(){var e=this.json();return e.traits=this.traits(),new s.Identify(e,this.opts)}},58651:function(e,t,n){"use strict";var r=n(70632);e.exports=function e(t,n){var i,a;return(void 0===n&&(n=!0),t&&"object"==typeof t)?(i=n,Object.keys(t).forEach(function(n){t[n]=e(t[n],i)}),t):Array.isArray(t)?(a=n,t.forEach(function(n,r){t[r]=e(n,a)}),t):r.is(t,n)?r.parse(t):t}},70632:function(e,t){"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var a,s=0;a=t[s];s++)r[a]=parseInt(r[a],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=new Date().getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var o=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(o)},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},38260:function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:function(){return i},n:function(){return r}})},14826:function(e,t,n){"use strict";n.d(t,{KV:function(){return a},l$:function(){return s}});var r=n(38260);e=n.hmd(e);var i=n(73656);function a(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function s(e,t){return e.require(t)}},76153:function(e,t,n){"use strict";n.d(t,{Z1:function(){return d},ph:function(){return l},yW:function(){return c}});var r=n(14826),i=n(59075);e=n.hmd(e);let a=(0,i.Rf)(),s={nowSeconds:()=>Date.now()/1e3},o=(0,r.KV)()?function(){try{let t=(0,r.l$)(e,"perf_hooks");return t.performance}catch(e){return}}():function(){let{performance:e}=a;if(!e||!e.now)return;let t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}(),u=void 0===o?s:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},c=s.nowSeconds.bind(s),l=u.nowSeconds.bind(u),d=(()=>{let{performance:e}=a;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+t-n):36e5;return r<36e5||s<36e5?r<=s?e.timeOrigin:i:n})()},59075:function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return a},YO:function(){return s},n2:function(){return i}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function a(){return i}function s(e,t,n){let r=n||i,a=r.__SENTRY__=r.__SENTRY__||{},s=a[e]||(a[e]=t());return s}},87689:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79159);function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function a(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function s(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function o(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function u(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function h(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),l(e/4294967296>>>0,t,n),l(e>>>0,t,n+4),t}function f(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=a,t.writeInt16LE=a,t.readInt32BE=s,t.readUint32BE=o,t.readInt32LE=u,t.readUint32LE=c,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=s(e,t),r=s(e,t+4);return 4294967296*n+r-(r>>31)*4294967296},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*o(e,t)+o(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=u(e,t);return 4294967296*u(e,t+4)+n-(n>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,a=e/8+n-1;a>=n;a--)r+=t[a]*i,i*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,a=n;a<n+e/8;a++)r+=t[a]*i,i*=256;return r},t.writeUintBE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error("writeUintBE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw Error("writeUintBE value must be an integer");for(var a=1,s=e/8+i-1;s>=i;s--)n[s]=t/a&255,a*=256;return n},t.writeUintLE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var a=1,s=i;s<i+e/8;s++)n[s]=t/a&255,a*=256;return n},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,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e),t},t.writeFloat32LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e,!0),t},t.writeFloat64BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e),t},t.writeFloat64LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e,!0),t}},77279:function(e,t,n){"use strict";var r=n(2787),i=n(50329),a=n(19044),s=n(87689),o=n(23653);t.Cv=32,t.WH=12,t.pg=16;var u=new Uint8Array(16),c=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,n,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var s,o=new Uint8Array(16);o.set(e,o.length-e.length);var u=new Uint8Array(32);r.stream(this._key,o,u,4);var c=t.length+this.tagLength;if(i){if(i.length!==c)throw Error("ChaCha20Poly1305: incorrect destination length");s=i}else s=new Uint8Array(c);return r.streamXOR(this._key,o,t,s,4),this._authenticate(s.subarray(s.length-this.tagLength,s.length),u,s.subarray(0,s.length-this.tagLength),n),a.wipe(o),s},e.prototype.open=function(e,t,n,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var s,u=new Uint8Array(16);u.set(e,u.length-e.length);var c=new Uint8Array(32);r.stream(this._key,u,c,4);var l=new Uint8Array(this.tagLength);if(this._authenticate(l,c,t.subarray(0,t.length-this.tagLength),n),!o.equal(l,t.subarray(t.length-this.tagLength,t.length)))return null;var d=t.length-this.tagLength;if(i){if(i.length!==d)throw Error("ChaCha20Poly1305: incorrect destination length");s=i}else s=new Uint8Array(d);return r.streamXOR(this._key,u,t.subarray(0,t.length-this.tagLength),s,4),a.wipe(u),s},e.prototype.clean=function(){return a.wipe(this._key),this},e.prototype._authenticate=function(e,t,n,r){var o=new i.Poly1305(t);r&&(o.update(r),r.length%16>0&&o.update(u.subarray(r.length%16))),o.update(n),n.length%16>0&&o.update(u.subarray(n.length%16));var c=new Uint8Array(8);r&&s.writeUint64LE(r.length,c),o.update(c),s.writeUint64LE(n.length,c),o.update(c);for(var l=o.digest(),d=0;d<l.length;d++)e[d]=l[d];o.clean(),a.wipe(l),a.wipe(c)},e}();t.OK=c},2787:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(87689),i=n(19044);function a(e,t,n,a,s){if(void 0===s&&(s=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(a.length<n.length)throw Error("ChaCha: destination is shorter than source");if(0===s){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");u=(o=new Uint8Array(16)).length-t.length,o.set(t,u)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");o=t,u=s}for(var o,u,c=new Uint8Array(64),l=0;l<n.length;l+=64){!function(e,t,n){for(var i=n[3]<<24|n[2]<<16|n[1]<<8|n[0],a=n[7]<<24|n[6]<<16|n[5]<<8|n[4],s=n[11]<<24|n[10]<<16|n[9]<<8|n[8],o=n[15]<<24|n[14]<<16|n[13]<<8|n[12],u=n[19]<<24|n[18]<<16|n[17]<<8|n[16],c=n[23]<<24|n[22]<<16|n[21]<<8|n[20],l=n[27]<<24|n[26]<<16|n[25]<<8|n[24],d=n[31]<<24|n[30]<<16|n[29]<<8|n[28],h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=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,y=857760878,b=2036477234,v=1797285236,w=i,_=a,E=s,A=o,x=u,C=c,S=l,k=d,D=h,I=f,O=p,T=m,P=0;P<20;P+=2)D^=g=g+w|0,w^=x=x+(D=D>>>16|D<<16)|0,w=w>>>20|w<<12,I^=y=y+_|0,_^=C=C+(I=I>>>16|I<<16)|0,_=_>>>20|_<<12,O^=b=b+E|0,E^=S=S+(O=O>>>16|O<<16)|0,E=E>>>20|E<<12,T^=v=v+A|0,A^=k=k+(T=T>>>16|T<<16)|0,A=A>>>20|A<<12,O^=b=b+E|0,E^=S=S+(O=O>>>24|O<<8)|0,E=E>>>25|E<<7,T^=v=v+A|0,A^=k=k+(T=T>>>24|T<<8)|0,A=A>>>25|A<<7,I^=y=y+_|0,_^=C=C+(I=I>>>24|I<<8)|0,_=_>>>25|_<<7,D^=g=g+w|0,w^=x=x+(D=D>>>24|D<<8)|0,w=w>>>25|w<<7,T^=g=g+_|0,_^=S=S+(T=T>>>16|T<<16)|0,_=_>>>20|_<<12,D^=y=y+E|0,E^=k=k+(D=D>>>16|D<<16)|0,E=E>>>20|E<<12,I^=b=b+A|0,A^=x=x+(I=I>>>16|I<<16)|0,A=A>>>20|A<<12,O^=v=v+w|0,w^=C=C+(O=O>>>16|O<<16)|0,w=w>>>20|w<<12,I^=b=b+A|0,A^=x=x+(I=I>>>24|I<<8)|0,A=A>>>25|A<<7,O^=v=v+w|0,w^=C=C+(O=O>>>24|O<<8)|0,w=w>>>25|w<<7,D^=y=y+E|0,E^=k=k+(D=D>>>24|D<<8)|0,E=E>>>25|E<<7,T^=g=g+_|0,_^=S=S+(T=T>>>24|T<<8)|0,_=_>>>25|_<<7;r.writeUint32LE(g+1634760805|0,e,0),r.writeUint32LE(y+857760878|0,e,4),r.writeUint32LE(b+2036477234|0,e,8),r.writeUint32LE(v+1797285236|0,e,12),r.writeUint32LE(w+i|0,e,16),r.writeUint32LE(_+a|0,e,20),r.writeUint32LE(E+s|0,e,24),r.writeUint32LE(A+o|0,e,28),r.writeUint32LE(x+u|0,e,32),r.writeUint32LE(C+c|0,e,36),r.writeUint32LE(S+l|0,e,40),r.writeUint32LE(k+d|0,e,44),r.writeUint32LE(D+h|0,e,48),r.writeUint32LE(I+f|0,e,52),r.writeUint32LE(O+p|0,e,56),r.writeUint32LE(T+m|0,e,60)}(c,o,e);for(var d=l;d<l+64&&d<n.length;d++)a[d]=n[d]^c[d-l];!function(e,t,n){for(var r=1;n--;)r=r+(255&e[t])|0,e[t]=255&r,r>>>=8,t++;if(r>0)throw Error("ChaCha: counter overflow")}(o,0,u)}return i.wipe(c),0===s&&i.wipe(o),a}t.streamXOR=a,t.stream=function(e,t,n,r){return void 0===r&&(r=0),i.wipe(n),a(e,t,n,n,r)}},23653:function(e,t){"use strict";function n(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r<e.length;r++)n|=e[r]^t[r];return 1&n-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},87353: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}},4759:function(e,t,n){"use strict";var r=n(62679),i=n(19044),a=function(){function e(e,t,n,i){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var a=r.hmac(this._hash,n,t);this._hmac=new r.HMAC(e,a),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),n=0;n<t.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[n]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),i.wipe(this._buffer),i.wipe(this._counter),this._bufpos=0},e}();t.t=a},62679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(87353),i=n(23653),a=n(19044),s=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 n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(var i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),r.isSerializableHash(this._inner)&&r.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),a.wipe(n)}return e.prototype.reset=function(){if(!r.isSerializableHash(this._inner)||!r.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(){r.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),r.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(!r.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(!r.isSerializableHash(this._inner)||!r.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(!r.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=s,t.hmac=function(e,t,n){var r=new s(e,t);r.update(n);var i=r.digest();return r.clean(),i},t.equal=i.equal},79159:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16&65535)*r+n*(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}},50329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23653),i=n(19044);t.DIGEST_LENGTH=16;var a=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 n=e[0]|e[1]<<8;this._r[0]=8191&n;var r=e[2]|e[3]<<8;this._r[1]=(n>>>13|r<<3)&8191;var i=e[4]|e[5]<<8;this._r[2]=(r>>>10|i<<6)&7939;var a=e[6]|e[7]<<8;this._r[3]=(i>>>7|a<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(a>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var o=e[10]|e[11]<<8;this._r[6]=(s>>>14|o<<2)&8191;var u=e[12]|e[13]<<8;this._r[7]=(o>>>11|u<<5)&8065;var c=e[14]|e[15]<<8;this._r[8]=(u>>>8|c<<8)&8191,this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var r=this._fin?0:2048,i=this._h[0],a=this._h[1],s=this._h[2],o=this._h[3],u=this._h[4],c=this._h[5],l=this._h[6],d=this._h[7],h=this._h[8],f=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],b=this._r[4],v=this._r[5],w=this._r[6],_=this._r[7],E=this._r[8],A=this._r[9];n>=16;){var x,C=e[t+0]|e[t+1]<<8;i+=8191&C;var S=e[t+2]|e[t+3]<<8;a+=(C>>>13|S<<3)&8191;var k=e[t+4]|e[t+5]<<8;s+=(S>>>10|k<<6)&8191;var D=e[t+6]|e[t+7]<<8;o+=(k>>>7|D<<9)&8191;var I=e[t+8]|e[t+9]<<8;u+=(D>>>4|I<<12)&8191,c+=I>>>1&8191;var O=e[t+10]|e[t+11]<<8;l+=(I>>>14|O<<2)&8191;var T=e[t+12]|e[t+13]<<8;d+=(O>>>11|T<<5)&8191;var P=e[t+14]|e[t+15]<<8;h+=(T>>>8|P<<8)&8191,f+=P>>>5|r;var F=0;F=(x=0+i*p+a*(5*A)+s*(5*E)+o*(5*_)+u*(5*w))>>>13,x&=8191,x+=c*(5*v)+l*(5*b)+d*(5*y)+h*(5*g)+f*(5*m),F+=x>>>13,x&=8191;var R=F;R+=i*m+a*p+s*(5*A)+o*(5*E)+u*(5*_),F=R>>>13,R&=8191,R+=c*(5*w)+l*(5*v)+d*(5*b)+h*(5*y)+f*(5*g),F+=R>>>13,R&=8191;var N=F;N+=i*g+a*m+s*p+o*(5*A)+u*(5*E),F=N>>>13,N&=8191,N+=c*(5*_)+l*(5*w)+d*(5*v)+h*(5*b)+f*(5*y),F+=N>>>13,N&=8191;var B=F;B+=i*y+a*g+s*m+o*p+u*(5*A),F=B>>>13,B&=8191,B+=c*(5*E)+l*(5*_)+d*(5*w)+h*(5*v)+f*(5*b),F+=B>>>13,B&=8191;var M=F;M+=i*b+a*y+s*g+o*m+u*p,F=M>>>13,M&=8191,M+=c*(5*A)+l*(5*E)+d*(5*_)+h*(5*w)+f*(5*v),F+=M>>>13,M&=8191;var j=F;j+=i*v+a*b+s*y+o*g+u*m,F=j>>>13,j&=8191,j+=c*p+l*(5*A)+d*(5*E)+h*(5*_)+f*(5*w),F+=j>>>13,j&=8191;var L=F;L+=i*w+a*v+s*b+o*y+u*g,F=L>>>13,L&=8191,L+=c*m+l*p+d*(5*A)+h*(5*E)+f*(5*_),F+=L>>>13,L&=8191;var U=F;U+=i*_+a*w+s*v+o*b+u*y,F=U>>>13,U&=8191,U+=c*g+l*m+d*p+h*(5*A)+f*(5*E),F+=U>>>13,U&=8191;var z=F;z+=i*E+a*_+s*w+o*v+u*b,F=z>>>13,z&=8191,z+=c*y+l*g+d*m+h*p+f*(5*A),F+=z>>>13,z&=8191;var q=F;q+=i*A+a*E+s*_+o*w+u*v,F=q>>>13,q&=8191,q+=c*b+l*y+d*g+h*m+f*p,F+=q>>>13,q&=8191,x=8191&(F=(F=(F<<2)+F|0)+x|0),F>>>=13,R+=F,i=x,a=R,s=N,o=B,u=M,c=j,l=L,d=U,h=z,f=q,t+=16,n-=16}this._h[0]=i,this._h[1]=a,this._h[2]=s,this._h[3]=o,this._h[4]=u,this._h[5]=c,this._h[6]=l,this._h[7]=d,this._h[8]=h,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,r,i,a,s=new Uint16Array(10);if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=n,n=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,s[0]=this._h[0]+5,n=s[0]>>>13,s[0]&=8191,a=1;a<10;a++)s[a]=this._h[a]+n,n=s[a]>>>13,s[a]&=8191;for(s[9]-=8192,r=(1^n)-1,a=0;a<10;a++)s[a]&=r;for(a=0,r=~r;a<10;a++)this._h[a]=this._h[a]&r|s[a];for(a=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,i=this._h[0]+this._pad[0],this._h[0]=65535&i;a<8;a++)i=(this._h[a]+this._pad[a]|0)+(i>>>16)|0,this._h[a]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[n+i];if(r-=t,n+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(r>=16&&(t=r-r%16,this._blocks(e,n,t),n+=t,r-=t),r){for(var i=0;i<r;i++)this._buffer[this._leftover+i]=e[n+i];this._leftover+=r}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 i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=a,t.oneTimeAuth=function(e,t){var n=new a(e);n.update(t);var r=n.digest();return n.clean(),r},t.equal=function(e,n){return e.length===t.DIGEST_LENGTH&&n.length===t.DIGEST_LENGTH&&r.equal(e,n)}},80900:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let r=n(12716),i=n(87689),a=n(19044);function s(e,n=t.defaultRandomSource){return n.randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=s,t.randomUint32=function(e=t.defaultRandomSource){let n=s(4,e),r=(0,i.readUint32LE)(n);return(0,a.wipe)(n),r};let o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function u(e,n=o,r=t.defaultRandomSource){if(n.length<2)throw Error("randomString charset is too short");if(n.length>256)throw Error("randomString charset is too long");let i="",u=n.length,c=256-256%u;for(;e>0;){let t=s(Math.ceil(256*e/c),r);for(let r=0;r<t.length&&e>0;r++){let a=t[r];a<c&&(i+=n.charAt(a%u),e--)}(0,a.wipe)(t)}return i}t.randomString=u,t.randomStringForEntropy=function(e,n=o,r=t.defaultRandomSource){let i=Math.ceil(e/(Math.log(n.length)/Math.LN2));return u(i,n,r)}},55244: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}}},30922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let r=n(19044);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=n(73804);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 n=new Uint8Array(e);for(let e=0;e<n.length;e++)n[e]=t[e];return(0,r.wipe)(t),n}}},12716:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let r=n(55244),i=n(30922);t.SystemRandomSource=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new r.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new i.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)}}},58161:function(e,t,n){"use strict";var r=n(87689),i=n(19044);t.k=32,t.cn=64;var a=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(){i.wipe(this._buffer),i.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 n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(o(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=o(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t%64<56?64:128;this._buffer[n]=128;for(var a=n+1;a<i-8;a++)this._buffer[a]=0;r.writeUint32BE(t/536870912|0,this._buffer,i-8),r.writeUint32BE(t<<3,this._buffer,i-4),o(this._temp,this._state,this._buffer,0,i),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)r.writeUint32BE(this._state[a],e,4*a);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){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=a;var s=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function o(e,t,n,i,a){for(;a>=64;){for(var o=t[0],u=t[1],c=t[2],l=t[3],d=t[4],h=t[5],f=t[6],p=t[7],m=0;m<16;m++){var g=i+4*m;e[m]=r.readUint32BE(n,g)}for(var m=16;m<64;m++){var y=e[m-2],b=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[m]=(b+e[m-7]|0)+(v+e[m-16]|0)}for(var m=0;m<64;m++){var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(p+(s[m]+e[m]|0)|0)|0,v=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&u^o&c^u&c)|0;p=f,f=h,h=d,d=l+b|0,l=c,c=u,u=o,o=b+v|0}t[0]+=o,t[1]+=u,t[2]+=c,t[3]+=l,t[4]+=d,t[5]+=h,t[6]+=f,t[7]+=p,i+=64,a-=64}return i}t.vp=function(e){var t=new a;t.update(e);var n=t.digest();return t.clean(),n}},19044: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}},5796:function(e,t,n){"use strict";t.gi=t.Au=t.KS=t.kz=void 0;let r=n(80900),i=n(19044);function a(e){let t=new Float64Array(16);if(e)for(let n=0;n<e.length;n++)t[n]=e[n];return t}t.kz=32,t.KS=32;let s=new Uint8Array(32);s[0]=9;let o=a([56129,1]);function u(e){let t=1;for(let n=0;n<16;n++){let r=e[n]+t+65535;t=Math.floor(r/65536),e[n]=r-65536*t}e[0]+=t-1+37*(t-1)}function c(e,t,n){let r=~(n-1);for(let n=0;n<16;n++){let i=r&(e[n]^t[n]);e[n]^=i,t[n]^=i}}function l(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]+n[r]}function d(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]-n[r]}function h(e,t,n){let r,i,a=0,s=0,o=0,u=0,c=0,l=0,d=0,h=0,f=0,p=0,m=0,g=0,y=0,b=0,v=0,w=0,_=0,E=0,A=0,x=0,C=0,S=0,k=0,D=0,I=0,O=0,T=0,P=0,F=0,R=0,N=0,B=n[0],M=n[1],j=n[2],L=n[3],U=n[4],z=n[5],q=n[6],G=n[7],Z=n[8],W=n[9],$=n[10],H=n[11],Q=n[12],V=n[13],K=n[14],J=n[15];a+=(r=t[0])*B,s+=r*M,o+=r*j,u+=r*L,c+=r*U,l+=r*z,d+=r*q,h+=r*G,f+=r*Z,p+=r*W,m+=r*$,g+=r*H,y+=r*Q,b+=r*V,v+=r*K,w+=r*J,s+=(r=t[1])*B,o+=r*M,u+=r*j,c+=r*L,l+=r*U,d+=r*z,h+=r*q,f+=r*G,p+=r*Z,m+=r*W,g+=r*$,y+=r*H,b+=r*Q,v+=r*V,w+=r*K,_+=r*J,o+=(r=t[2])*B,u+=r*M,c+=r*j,l+=r*L,d+=r*U,h+=r*z,f+=r*q,p+=r*G,m+=r*Z,g+=r*W,y+=r*$,b+=r*H,v+=r*Q,w+=r*V,_+=r*K,E+=r*J,u+=(r=t[3])*B,c+=r*M,l+=r*j,d+=r*L,h+=r*U,f+=r*z,p+=r*q,m+=r*G,g+=r*Z,y+=r*W,b+=r*$,v+=r*H,w+=r*Q,_+=r*V,E+=r*K,A+=r*J,c+=(r=t[4])*B,l+=r*M,d+=r*j,h+=r*L,f+=r*U,p+=r*z,m+=r*q,g+=r*G,y+=r*Z,b+=r*W,v+=r*$,w+=r*H,_+=r*Q,E+=r*V,A+=r*K,x+=r*J,l+=(r=t[5])*B,d+=r*M,h+=r*j,f+=r*L,p+=r*U,m+=r*z,g+=r*q,y+=r*G,b+=r*Z,v+=r*W,w+=r*$,_+=r*H,E+=r*Q,A+=r*V,x+=r*K,C+=r*J,d+=(r=t[6])*B,h+=r*M,f+=r*j,p+=r*L,m+=r*U,g+=r*z,y+=r*q,b+=r*G,v+=r*Z,w+=r*W,_+=r*$,E+=r*H,A+=r*Q,x+=r*V,C+=r*K,S+=r*J,h+=(r=t[7])*B,f+=r*M,p+=r*j,m+=r*L,g+=r*U,y+=r*z,b+=r*q,v+=r*G,w+=r*Z,_+=r*W,E+=r*$,A+=r*H,x+=r*Q,C+=r*V,S+=r*K,k+=r*J,f+=(r=t[8])*B,p+=r*M,m+=r*j,g+=r*L,y+=r*U,b+=r*z,v+=r*q,w+=r*G,_+=r*Z,E+=r*W,A+=r*$,x+=r*H,C+=r*Q,S+=r*V,k+=r*K,D+=r*J,p+=(r=t[9])*B,m+=r*M,g+=r*j,y+=r*L,b+=r*U,v+=r*z,w+=r*q,_+=r*G,E+=r*Z,A+=r*W,x+=r*$,C+=r*H,S+=r*Q,k+=r*V,D+=r*K,I+=r*J,m+=(r=t[10])*B,g+=r*M,y+=r*j,b+=r*L,v+=r*U,w+=r*z,_+=r*q,E+=r*G,A+=r*Z,x+=r*W,C+=r*$,S+=r*H,k+=r*Q,D+=r*V,I+=r*K,O+=r*J,g+=(r=t[11])*B,y+=r*M,b+=r*j,v+=r*L,w+=r*U,_+=r*z,E+=r*q,A+=r*G,x+=r*Z,C+=r*W,S+=r*$,k+=r*H,D+=r*Q,I+=r*V,O+=r*K,T+=r*J,y+=(r=t[12])*B,b+=r*M,v+=r*j,w+=r*L,_+=r*U,E+=r*z,A+=r*q,x+=r*G,C+=r*Z,S+=r*W,k+=r*$,D+=r*H,I+=r*Q,O+=r*V,T+=r*K,P+=r*J,b+=(r=t[13])*B,v+=r*M,w+=r*j,_+=r*L,E+=r*U,A+=r*z,x+=r*q,C+=r*G,S+=r*Z,k+=r*W,D+=r*$,I+=r*H,O+=r*Q,T+=r*V,P+=r*K,F+=r*J,v+=(r=t[14])*B,w+=r*M,_+=r*j,E+=r*L,A+=r*U,x+=r*z,C+=r*q,S+=r*G,k+=r*Z,D+=r*W,I+=r*$,O+=r*H,T+=r*Q,P+=r*V,F+=r*K,R+=r*J,w+=(r=t[15])*B,_+=r*M,E+=r*j,A+=r*L,x+=r*U,C+=r*z,S+=r*q,k+=r*G,D+=r*Z,I+=r*W,O+=r*$,T+=r*H,P+=r*Q,F+=r*V,R+=r*K,N+=r*J,a+=38*_,s+=38*E,o+=38*A,u+=38*x,c+=38*C,l+=38*S,d+=38*k,h+=38*D,f+=38*I,p+=38*O,m+=38*T,g+=38*P,y+=38*F,b+=38*R,v+=38*N,i=Math.floor((r=a+(i=1)+65535)/65536),a=r-65536*i,i=Math.floor((r=s+i+65535)/65536),s=r-65536*i,i=Math.floor((r=o+i+65535)/65536),o=r-65536*i,i=Math.floor((r=u+i+65535)/65536),u=r-65536*i,i=Math.floor((r=c+i+65535)/65536),c=r-65536*i,i=Math.floor((r=l+i+65535)/65536),l=r-65536*i,i=Math.floor((r=d+i+65535)/65536),d=r-65536*i,i=Math.floor((r=h+i+65535)/65536),h=r-65536*i,i=Math.floor((r=f+i+65535)/65536),f=r-65536*i,i=Math.floor((r=p+i+65535)/65536),p=r-65536*i,i=Math.floor((r=m+i+65535)/65536),m=r-65536*i,i=Math.floor((r=g+i+65535)/65536),g=r-65536*i,i=Math.floor((r=y+i+65535)/65536),y=r-65536*i,i=Math.floor((r=b+i+65535)/65536),b=r-65536*i,i=Math.floor((r=v+i+65535)/65536),v=r-65536*i,i=Math.floor((r=w+i+65535)/65536),w=r-65536*i,a+=i-1+37*(i-1),i=Math.floor((r=a+(i=1)+65535)/65536),a=r-65536*i,i=Math.floor((r=s+i+65535)/65536),s=r-65536*i,i=Math.floor((r=o+i+65535)/65536),o=r-65536*i,i=Math.floor((r=u+i+65535)/65536),u=r-65536*i,i=Math.floor((r=c+i+65535)/65536),c=r-65536*i,i=Math.floor((r=l+i+65535)/65536),l=r-65536*i,i=Math.floor((r=d+i+65535)/65536),d=r-65536*i,i=Math.floor((r=h+i+65535)/65536),h=r-65536*i,i=Math.floor((r=f+i+65535)/65536),f=r-65536*i,i=Math.floor((r=p+i+65535)/65536),p=r-65536*i,i=Math.floor((r=m+i+65535)/65536),m=r-65536*i,i=Math.floor((r=g+i+65535)/65536),g=r-65536*i,i=Math.floor((r=y+i+65535)/65536),y=r-65536*i,i=Math.floor((r=b+i+65535)/65536),b=r-65536*i,i=Math.floor((r=v+i+65535)/65536),v=r-65536*i,i=Math.floor((r=w+i+65535)/65536),w=r-65536*i,a+=i-1+37*(i-1),e[0]=a,e[1]=s,e[2]=o,e[3]=u,e[4]=c,e[5]=l,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=m,e[11]=g,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function f(e,t){let n=new Uint8Array(32),r=new Float64Array(80),i=a(),s=a(),f=a(),p=a(),m=a(),g=a();for(let t=0;t<31;t++)n[t]=e[t];n[31]=127&e[31]|64,n[0]&=248,function(e,t){for(let n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(r,t);for(let e=0;e<16;e++)s[e]=r[e];i[0]=p[0]=1;for(let e=254;e>=0;--e){let t=n[e>>>3]>>>(7&e)&1;c(i,s,t),c(f,p,t),l(m,i,f),d(i,i,f),l(f,s,p),d(s,s,p),h(p,m,m),h(g,i,i),h(i,f,i),h(f,s,m),l(m,i,f),d(i,i,f),h(s,i,i),d(f,p,g),h(i,f,o),l(i,i,p),h(f,f,i),h(i,p,g),h(p,s,r),h(s,m,m),c(i,s,t),c(f,p,t)}for(let e=0;e<16;e++)r[e+16]=i[e],r[e+32]=f[e],r[e+48]=s[e],r[e+64]=p[e];let y=r.subarray(32),b=r.subarray(16);!function(e,t){let n=a();for(let e=0;e<16;e++)n[e]=t[e];for(let e=253;e>=0;e--)h(n,n,n),2!==e&&4!==e&&h(n,n,t);for(let t=0;t<16;t++)e[t]=n[t]}(y,y),h(b,b,y);let v=new Uint8Array(32);return!function(e,t){let n=a(),r=a();for(let e=0;e<16;e++)r[e]=t[e];u(r),u(r),u(r);for(let e=0;e<2;e++){n[0]=r[0]-65517;for(let e=1;e<15;e++)n[e]=r[e]-65535-(n[e-1]>>16&1),n[e-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);let e=n[15]>>16&1;n[14]&=65535,c(r,n,1-e)}for(let t=0;t<16;t++)e[2*t]=255&r[t],e[2*t+1]=r[t]>>8}(v,b),v}t.Au=function(e){let n=(0,r.randomBytes)(32,e),a=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let n=new Uint8Array(e),r=f(n,s);return{publicKey:r,secretKey:n}}(n);return(0,i.wipe)(n),a},t.gi=function(e,n,r=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(n.length!==t.kz)throw Error("X25519: incorrect public key length");let i=f(e,n);if(r){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw Error("X25519: invalid shared key")}return i}},35064:function(){},8041:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(33569);r.__exportStar(n(14889),t),r.__exportStar(n(40392),t)},14889: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},40392: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},89727:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(33569);r.__exportStar(n(27592),t),r.__exportStar(n(85759),t),r.__exportStar(n(95026),t),r.__exportStar(n(8041),t)},95026:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(33569);r.__exportStar(n(46713),t)},46713:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0,t.IWatch=class{}},38358:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let r=n(8041);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},32042: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)})}},27592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(33569);r.__exportStar(n(32042),t),r.__exportStar(n(38358),t)},85759:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class n{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 n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}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),n=t.elapsed||Date.now()-t.started;return n}}t.Watch=n,t.default=n},25119:function(e,t,n){"use strict";n.d(t,{AW:function(){return O},O6:function(){return tg},rV:function(){return F},gn:function(){return ep},H1:function(){return eu},hF:function(){return ec},WG:function(){return L},pe:function(){return z},m$:function(){return B},vB:function(){return q},HI:function(){return U},E0:function(){return eg},Gq:function(){return eh},$0:function(){return ei},Z4:function(){return ed},Bv:function(){return eD},Au:function(){return R},jd:function(){return N},gu:function(){return k},D:function(){return er},Z7:function(){return eW},cO:function(){return ew},_H:function(){return ev},fc:function(){return eL},D6:function(){return e$},Hh:function(){return eb},Ym:function(){return M},rj:function(){return j},jU:function(){return et},gp:function(){return eU},rF:function(){return tc},Bw:function(){return em},UG:function(){return X},Gg:function(){return th},xW:function(){return e1},b$:function(){return ee},Ih:function(){return eY},h1:function(){return e2},Q8:function(){return W},o8:function(){return eV},qt:function(){return eH},Dd:function(){return e5},$t:function(){return tn},nf:function(){return ta},Q0:function(){return te},in:function(){return e4},p8:function(){return ts},sI:function(){return tu},al:function(){return to},L5:function(){return eQ},EJ:function(){return tt},Z2:function(){return e9},PM:function(){return e7},hH:function(){return tr},ON:function(){return td},n:function(){return e8},JT:function(){return ti},M_:function(){return eK},jv:function(){return e0},KC:function(){return es},eG:function(){return ey},fK:function(){return eq},IP:function(){return eo},DQ:function(){return S},iP:function(){return ef},M:function(){return ez},he:function(){return ek},uw:function(){return tp},Ll:function(){return G},EN:function(){return Z}});var r=n(77279),i=n(4759),a=n(80900),s=n(58161),o=n(5796),u=n(42772),c=n(73656),l=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},d=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},h=function(e){this.version=e,this.type="node",this.name="node",this.os=c.platform},f=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},p=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},m=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},g=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,y=[["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/]],b=[["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 v(e){var t=""!==e&&y.reduce(function(t,n){var r=n[0],i=n[1];if(t)return t;var a=i.exec(e);return!!a&&[r,a]},!1);if(!t)return null;var n=t[0],r=t[1];if("searchbot"===n)return new p;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<3&&(i=l(l([],i,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-i.length),!0)):i=[];var a=i.join("."),s=function(e){for(var t=0,n=b.length;t<n;t++){var r=b[t],i=r[0];if(r[1].exec(e))return i}return null}(e),o=g.exec(e);return o&&o[1]?new f(n,a,s,o[1]):new d(n,a,s)}var w=n(89727),_=n(21846),E=n(64390),A=n(68496);n(35064);let x={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 C=n(73656);function S(e){let[t,n]=e.split(":");return{namespace:t,reference:n}}function k(e,t=[]){let n=[];return Object.keys(e).forEach(r=>{if(t.length&&!t.includes(r))return;let i=e[r];n.push(...i.accounts)}),n}function D(e,t){return e.includes(":")?[e]:t.chains||[]}let I="base10",O="base16",T="base64pad",P="utf8",F=1;function R(){let e=o.Au();return{privateKey:(0,u.BB)(e.secretKey,O),publicKey:(0,u.BB)(e.publicKey,O)}}function N(){let e=(0,a.randomBytes)(32);return(0,u.BB)(e,O)}function B(e,t){let n=o.gi((0,u.mL)(e,O),(0,u.mL)(t,O),!0),r=new i.t(s.mE,n).expand(32);return(0,u.BB)(r,O)}function M(e){let t=(0,s.vp)((0,u.mL)(e,O));return(0,u.BB)(t,O)}function j(e){let t=(0,s.vp)((0,u.mL)(e,P));return(0,u.BB)(t,O)}function L(e){return Number((0,u.BB)(e,I))}function U(e){var t;let n=(t="u">typeof e.type?e.type:0,(0,u.mL)(`${t}`,I));if(L(n)===F&&typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let i="u">typeof e.senderPublicKey?(0,u.mL)(e.senderPublicKey,O):void 0,s="u">typeof e.iv?(0,u.mL)(e.iv,O):(0,a.randomBytes)(12),o=new r.OK((0,u.mL)(e.symKey,O)).seal(s,(0,u.mL)(e.message,P));return function(e){if(L(e.type)===F){if(typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return(0,u.BB)((0,u.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),T)}return(0,u.BB)((0,u.zo)([e.type,e.iv,e.sealed]),T)}({type:n,sealed:o,iv:s,senderPublicKey:i})}function z(e){let t=new r.OK((0,u.mL)(e.symKey,O)),{sealed:n,iv:i}=q(e.encoded),a=t.open(i,n);if(null===a)throw Error("Failed to decrypt");return(0,u.BB)(a,P)}function q(e){let t=(0,u.mL)(e,T),n=t.slice(0,1);if(L(n)===F){let e=t.slice(1,33),r=t.slice(33,45),i=t.slice(45);return{type:n,sealed:i,iv:r,senderPublicKey:e}}let r=t.slice(1,13),i=t.slice(13);return{type:n,sealed:i,iv:r}}function G(e,t){let n=q(e);return Z({type:L(n.type),senderPublicKey:"u">typeof n.senderPublicKey?(0,u.BB)(n.senderPublicKey,O):void 0,receiverPublicKey:t?.receiverPublicKey})}function Z(e){let t=e?.type||0;if(t===F){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 W(e){return e.type===F&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var $=Object.defineProperty,H=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,K=(e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))Q.call(t,n)&&K(e,n,t[n]);if(H)for(var n of H(t))V.call(t,n)&&K(e,n,t[n]);return e};let Y={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function X(){return"u">typeof C&&"u">typeof C.versions&&"u">typeof C.versions.node}function ee(){return!(0,_.getDocument)()&&!!(0,_.getNavigator)()&&"ReactNative"===navigator.product}function et(){return!X()&&!!(0,_.getNavigator)()}function en(){return ee()?Y.reactNative:X()?Y.node:et()?Y.browser:Y.unknown}function er(){return(0,E.D)()||{name:"",description:"",url:"",icons:[""]}}function ei({protocol:e,version:t,relayUrl:r,sdkVersion:i,auth:a,projectId:s,useOnCloseEvent:o}){var u;let l;let d=r.split("?"),f=function(e,t,r){let i=function(){var e;if(en()===Y.reactNative&&"u">typeof n.g&&"u">typeof(null==n.g?void 0:n.g.Platform)){let{OS:e,Version:t}=n.g.Platform;return[e,t].join("-")}let t=e?v(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new m:"undefined"!=typeof navigator?v(navigator.userAgent):void 0!==c&&c.version?new h(c.version.slice(1)):null;if(null===t)return"unknown";let r=t.os?t.os.replace(" ","").toLowerCase():"unknown";return"browser"===t.type?[r,t.name,t.version].join("-"):[r,t.version].join("-")}(),a=function(){var e;let t=en();return t===Y.browser?[t,(null==(e=(0,_.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),["js",r].join("-"),i,a].join("/")}(e,t,i),p=(u=d[1]||"",l=J(J({},l=A.parse(u)),{auth:a,ua:f,projectId:s,useOnCloseEvent:o||void 0}),u=A.stringify(l));return d[0]+"?"+p}function ea(e,t){return e.filter(e=>t.includes(e)).length===e.length}function es(e){return Object.fromEntries(e.entries())}function eo(e){return new Map(Object.entries(e))}function eu(e=w.FIVE_MINUTES,t){let n,r,i;let a=(0,w.toMiliseconds)(e||w.FIVE_MINUTES);return{resolve:e=>{i&&n&&(clearTimeout(i),n(e))},reject:e=>{i&&r&&(clearTimeout(i),r(e))},done:()=>new Promise((e,s)=>{i=setTimeout(()=>{s(Error(t))},a),n=e,r=s})}}function ec(e,t,n){return new Promise(async(r,i)=>{let a=setTimeout(()=>i(Error(n)),t);try{let t=await e;r(t)}catch(e){i(e)}clearTimeout(a)})}function el(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 ed(e){return el("topic",e)}function eh(e){return el("id",e)}function ef(e){let[t,n]=e.split(":"),r={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)r.topic=n;else if("id"===t&&Number.isInteger(Number(n)))r.id=Number(n);else throw Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);return r}function ep(e,t){return(0,w.fromMiliseconds)((t||Date.now())+(0,w.toMiliseconds)(e))}function em(e){return Date.now()>=(0,w.toMiliseconds)(e)}function eg(e,t){return`${e}${t?`:${t}`:""}`}function ey(e=[],t=[]){return[...new Set([...e,...t])]}async function eb({id:e,topic:t,wcDeepLink:r}){try{if(!r)return;let i="string"==typeof r?JSON.parse(r):r,a=i?.href;if("string"!=typeof a)return;a.endsWith("/")&&(a=a.slice(0,-1));let s=`${a}/wc?requestId=${e}&sessionTopic=${t}`,o=en();o===Y.browser?s.startsWith("https://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"):o===Y.reactNative&&"u">typeof(null==n.g?void 0:n.g.Linking)&&await n.g.Linking.openURL(s)}catch(e){console.error(e)}}function ev(e){return e?.relay||{protocol:"irn"}}function ew(e){let t=x[e];if(typeof t>"u")throw Error(`Relay Protocol not supported: ${e}`);return t}var e_=Object.defineProperty,eE=Object.getOwnPropertySymbols,eA=Object.prototype.hasOwnProperty,ex=Object.prototype.propertyIsEnumerable,eC=(e,t,n)=>t in e?e_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eS=(e,t)=>{for(var n in t||(t={}))eA.call(t,n)&&eC(e,n,t[n]);if(eE)for(var n of eE(t))ex.call(t,n)&&eC(e,n,t[n]);return e};function ek(e){var t;let n=e.indexOf(":"),r=-1!==e.indexOf("?")?e.indexOf("?"):void 0,i=e.substring(0,n),a=e.substring(n+1,r).split("@"),s="u">typeof r?e.substring(r):"",o=A.parse(s);return{protocol:i,topic:(t=a[0]).startsWith("//")?t.substring(2):t,version:parseInt(a[1],10),symKey:o.symKey,relay:function(e,t="-"){let n={},r="relay"+t;return Object.keys(e).forEach(t=>{if(t.startsWith(r)){let i=t.replace(r,""),a=e[t];n[i]=a}}),n}(o)}}function eD(e){return`${e.protocol}:${e.topic}@${e.version}?`+A.stringify(eS({symKey:e.symKey},function(e,t="-"){let n={};return Object.keys(e).forEach(r=>{e[r]&&(n["relay"+t+r]=e[r])}),n}(e.relay)))}var eI=Object.defineProperty,eO=Object.defineProperties,eT=Object.getOwnPropertyDescriptors,eP=Object.getOwnPropertySymbols,eF=Object.prototype.hasOwnProperty,eR=Object.prototype.propertyIsEnumerable,eN=(e,t,n)=>t in e?eI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eB=(e,t)=>{for(var n in t||(t={}))eF.call(t,n)&&eN(e,n,t[n]);if(eP)for(var n of eP(t))eR.call(t,n)&&eN(e,n,t[n]);return e},eM=(e,t)=>eO(e,eT(t));function ej(e){let t=[];return e.forEach(e=>{let[n,r]=e.split(":");t.push(`${n}:${r}`)}),t}function eL(e,t){let n=e4(e,t);if(n)throw Error(n.message);let r={};for(let[t,n]of Object.entries(e))r[t]={methods:n.methods,events:n.events,chains:n.accounts.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)};return r}function eU(e){return e.includes(":")}function ez(e){return eU(e)?e.split(":")[0]:e}function eq(e){var t,n,r;let i={};if(!eQ(e))return i;for(let[a,s]of Object.entries(e)){let e=eU(a)?[a]:s.chains,o=s.methods||[],u=s.events||[],c=ez(a);i[c]=eM(eB({},i[c]),{chains:ey(e,null==(t=i[c])?void 0:t.chains),methods:ey(o,null==(n=i[c])?void 0:n.methods),events:ey(u,null==(r=i[c])?void 0:r.events)})}return i}let eG={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}},eZ={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 eW(e,t){let{message:n,code:r}=eZ[e];return{message:t?`${n} ${t}`:n,code:r}}function e$(e,t){let{message:n,code:r}=eG[e];return{message:t?`${n} ${t}`:n,code:r}}function eH(e,t){return!!Array.isArray(e)&&(!("u">typeof t)||!e.length||e.every(t))}function eQ(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function eV(e){return typeof e>"u"}function eK(e,t){return!!(t&&eV(e))||"string"==typeof e&&!!e.trim().length}function eJ(e,t){return!!(t&&eV(e))||"number"==typeof e&&!isNaN(e)}function eY(e,t){let{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),i=Object.keys(n),a=!0;return!!ea(i,r)&&(r.forEach(t=>{let{accounts:r,methods:i,events:s}=e.namespaces[t],o=ej(r),u=n[t];ea(D(t,u),o)&&ea(u.methods,i)&&ea(u.events,s)||(a=!1)}),a)}function eX(e){return!!(eK(e,!1)&&e.includes(":"))&&2===e.split(":").length}function e0(e){if(eK(e,!1))try{return"u">typeof new URL(e)}catch{}return!1}function e1(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}function e2(e){return e?.topic}function e5(e,t){let n=null;return eK(e?.publicKey,!1)||(n=eW("MISSING_OR_INVALID",`${t} controller public key should be a string`)),n}function e3(e){let t=!0;return eH(e)?e.length&&(t=e.every(e=>eK(e,!1))):t=!1,t}function e6(e,t){let n=null;return Object.values(e).forEach(e=>{var r;let i;if(n)return;let a=(r=`${t}, namespace`,i=null,e3(e?.methods)?e3(e?.events)||(i=e$("UNSUPPORTED_EVENTS",`${r}, events should be an array of strings or empty array for no events`)):i=e$("UNSUPPORTED_METHODS",`${r}, methods should be an array of strings or empty array for no methods`),i);a&&(n=a)}),n}function e8(e,t,n){let r=null;if(e&&eQ(e)){let i;let a=e6(e,t);a&&(r=a);let s=(i=null,Object.entries(e).forEach(([e,r])=>{var a,s;let o;if(i)return;let u=(a=D(e,r),s=`${t} ${n}`,o=null,eH(a)&&a.length?a.forEach(e=>{o||eX(e)||(o=e$("UNSUPPORTED_CHAINS",`${s}, chain ${e} should be a string and conform to "namespace:chainId" format`))}):eX(e)||(o=e$("UNSUPPORTED_CHAINS",`${s}, 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"] }`)),o);u&&(i=u)}),i);s&&(r=s)}else r=eW("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return r}function e4(e,t){let n=null;if(e&&eQ(e)){let r;let i=e6(e,t);i&&(n=i);let a=(r=null,Object.values(e).forEach(e=>{var n,i;let a;if(r)return;let s=(n=e?.accounts,i=`${t} namespace`,a=null,eH(n)?n.forEach(e=>{a||function(e){if(eK(e,!1)&&e.includes(":")){let t=e.split(":");if(3===t.length){let e=t[0]+":"+t[1];return!!t[2]&&eX(e)}}return!1}(e)||(a=e$("UNSUPPORTED_ACCOUNTS",`${i}, account ${e} should be a string and conform to "namespace:chainId:address" format`))}):a=e$("UNSUPPORTED_ACCOUNTS",`${i}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),a);s&&(r=s)}),r);a&&(n=a)}else n=eW("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return n}function e9(e){return eK(e.protocol,!0)}function e7(e,t){let n=!1;return t&&!e?n=!0:e&&eH(e)&&e.length&&e.forEach(e=>{n=e9(e)}),n}function te(e){return"number"==typeof e}function tt(e){return"u">typeof e}function tn(e){return!(!e||"object"!=typeof e||!e.code||!eJ(e.code,!1)||!e.message||!eK(e.message,!1))}function tr(e){return!(eV(e)||!eK(e.method,!1))}function ti(e){return!(eV(e)||eV(e.result)&&eV(e.error)||!eJ(e.id,!1)||!eK(e.jsonrpc,!1))}function ta(e){return!(eV(e)||!eK(e.name,!1))}function ts(e,t){return!(!eX(t)||!(function(e){let t=[];return Object.values(e).forEach(e=>{t.push(...ej(e.accounts))}),t})(e).includes(t))}function to(e,t,n){return!!eK(n,!1)&&(function(e,t){let n=[];return Object.values(e).forEach(e=>{ej(e.accounts).includes(t)&&n.push(...e.methods)}),n})(e,t).includes(n)}function tu(e,t,n){return!!eK(n,!1)&&(function(e,t){let n=[];return Object.values(e).forEach(e=>{ej(e.accounts).includes(t)&&n.push(...e.events)}),n})(e,t).includes(n)}function tc(e,t,n){let r=null,i=function(e){let t={};return Object.keys(e).forEach(n=>{var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach(r=>{t[r]={methods:e[n].methods,events:e[n].events}})}),t}(e),a=function(e){let t={};return Object.keys(e).forEach(n=>{if(n.includes(":"))t[n]=e[n];else{let r=ej(e[n].accounts);r?.forEach(r=>{t[r]={accounts:e[n].accounts.filter(e=>e.includes(`${r}:`)),methods:e[n].methods,events:e[n].events}})}}),t}(t),s=Object.keys(i),o=Object.keys(a),u=tl(Object.keys(e)),c=tl(Object.keys(t)),l=u.filter(e=>!c.includes(e));return l.length&&(r=eW("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces.
      Required: ${l.toString()}
      Received: ${Object.keys(t).toString()}`)),ea(s,o)||(r=eW("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces.
      Required: ${s.toString()}
      Approved: ${o.toString()}`)),Object.keys(t).forEach(e=>{if(!e.includes(":")||r)return;let i=ej(t[e].accounts);i.includes(e)||(r=eW("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${e}
        Required: ${e}
        Approved: ${i.toString()}`))}),s.forEach(e=>{r||(ea(i[e].methods,a[e].methods)?ea(i[e].events,a[e].events)||(r=eW("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${e}`)):r=eW("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${e}`))}),r}function tl(e){return[...new Set(e.map(e=>e.includes(":")?e.split(":")[0]:e))]}function td(e,t){return eJ(e,!1)&&e<=t.max&&e>=t.min}function th(){let e=en();return new Promise(t=>{switch(e){case Y.browser:t(et()&&navigator?.onLine);break;case Y.reactNative:t(tf());break;case Y.node:default:t(!0)}})}async function tf(){if(ee()&&"u">typeof n.g&&null!=n.g&&n.g.NetInfo){let e=await (null==n.g?void 0:n.g.NetInfo.fetch());return e?.isConnected}return!0}function tp(e){switch(en()){case Y.browser:et()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)));break;case Y.reactNative:ee()&&"u">typeof n.g&&null!=n.g&&n.g.NetInfo&&n.g?.NetInfo.addEventListener(t=>e(t?.isConnected));case Y.node:}}let tm={};class tg{static get(e){return tm[e]}static set(e,t){tm[e]=t}static delete(e){delete tm[e]}}},21846:function(e,t){"use strict";function n(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function r(e){let t=n(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=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},64390:function(e,t,n){"use strict";t.D=void 0;let r=n(21846);t.D=function(){let e,t,n;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(e){return null}function i(...t){let n=e.getElementsByTagName("meta");for(let e=0;e<n.length;e++){let r=n[e],i=["itemprop","property","name"].map(e=>r.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=r.getAttribute("content");if(e)return e}}return""}let a=((n=i("name","og:site_name","og:title","twitter:title"))||(n=e.title),n),s=function(){let e=i("description","og:description","twitter:description","keywords");return e}(),o=t.origin,u=function(){let n=e.getElementsByTagName("link"),r=[];for(let e=0;e<n.length;e++){let i=n[e],a=i.getAttribute("rel");if(a&&a.toLowerCase().indexOf("icon")>-1){let e=i.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{let r=t.pathname.split("/");r.pop();let i=r.join("/");n+=i+"/"+e}r.push(n)}else if(0===e.indexOf("//")){let n=t.protocol+e;r.push(n)}else r.push(e)}}}return r}();return{description:s,url:o,icons:u,name:a}}},65140:function(e){"use strict";var t="%[a-f0-9]{2}",n=RegExp("("+t+")|([^%]+?)","gi"),r=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var a=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=(function e(t,n){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;n=n||1;var r=t.slice(0,n),i=t.slice(n);return Array.prototype.concat.call([],e(r),e(i))})(t,r).join("")).match(n)||[];return e}}(i[0]);a!==i[0]&&(t[i[0]]=a)}i=r.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),o=0;o<s.length;o++){var u=s[o];e=e.replace(RegExp(u,"g"),t[u])}return e}(e)}}},21883:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new i(r,a||e,s),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],o]:e._events[u].push(o):(e._events[u]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=Array(a);i<a;i++)s[i]=r[i].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,i,a,s){var o=n?n+e:e;if(!this._events[o])return!1;var u,c,l=this._events[o],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,a),!0;case 6:return l.fn.call(l.context,t,r,i,a,s),!0}for(c=1,u=Array(d-1);c<d;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,f=l.length;for(c=0;c<f;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),d){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,i);break;default:if(!u)for(h=1,u=Array(d-1);h<d;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},o.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||s(this,a);else{for(var u=0,c=[],l=o.length;u<l;u++)(o[u].fn!==t||i&&!o[u].once||r&&o[u].context!==r)&&c.push(o[u]);c.length?this._events[a]=1===c.length?c[0]:c:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o},22475:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;a<r.length;a++){var s=r[a],o=e[s];(i?-1!==t.indexOf(s):t(s,o,e))&&(n[s]=o)}return n}},10063:function(e,t,n){"use strict";var r=n(99415),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function u(e){return r.isMemo(e)?s:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=s;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var s=l(n);d&&(s=s.concat(d(n)));for(var o=u(t),m=u(n),g=0;g<s.length;++g){var y=s[g];if(!a[y]&&!(r&&r[y])&&!(m&&m[y])&&!(o&&o[y])){var b=h(n,y);try{c(t,y,b)}catch(e){}}}}return t}},67483:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},41862:function(e,t,n){"use strict";var r=n(70632),i=n(37239),a=n(22600),s=Object.prototype.toString;e.exports=function(e){return"[object Date]"===s.call(e)?e:"[object Number]"===s.call(e)?new Date(e<315576e5?1e3*e:e):r.is(e)?r.parse(e):i.is(e)?i.parse(e):a.is(e)?a.parse(e):new Date(e)}},37239:function(e,t){"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},22600:function(e,t){"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},78635:function(e){"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},21807:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(41264)}])},67057:function(e,t,n){"use strict";n.d(t,{ZP:function(){return eM}});var r,i,a=n(43112),s=n(73656);function o(){return void 0!==s&&s.env?s.env:{}}var u=n(20833),c=n(25773),l=n(24284);function d(e,t,n,r){var i,a=[e,t,n,r],s=(0,l.PO)(e)?e.event:e;if(!s||!(0,l.HD)(s))throw Error("Event missing");var o=(0,l.PO)(e)?null!==(i=e.properties)&&void 0!==i?i:{}:(0,l.PO)(t)?t:{},u={};return(0,l.mf)(n)||(u=null!=n?n:{}),(0,l.PO)(e)&&!(0,l.mf)(t)&&(u=null!=t?t:{}),[s,o,u,a.find(l.mf)]}function h(e,t,n,r,i){var a,s,o=null,u=null,c=[e,t,n,r,i],d=c.filter(l.HD);void 0!==d[0]&&void 0!==d[1]&&(o=d[0],u=d[1]),1===d.length&&(o=null,u=d[0]);var h=c.find(l.mf),f=c.filter(function(e){return null===u?(0,l.PO)(e):(0,l.PO)(e)||null===e});return[o,u,null!==(a=f[0])&&void 0!==a?a:{},null!==(s=f[1])&&void 0!==s?s:{},h]}var f=function(e){return function(){for(var t,n,r,i,a,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var u=null;u=null!==(r=null!==(t=s.find(l.HD))&&void 0!==t?t:null===(n=s.find(l.hj))||void 0===n?void 0:n.toString())&&void 0!==r?r:e.id();var c=s.filter(function(e){return null===u?(0,l.PO)(e):(0,l.PO)(e)||null===e});return[u,null!==(i=c[0])&&void 0!==i?i:{},null!==(a=c[1])&&void 0!==a?a:{},s.find(l.mf)]}};function p(e,t,n,r){(0,l.hj)(e)&&(e=e.toString()),(0,l.hj)(t)&&(t=t.toString());var i=[e,t,n,r],a=i.filter(l.HD),s=a[0],o=void 0===s?e:s,u=a[1],c=i.filter(l.PO)[0];return[o,void 0===u?null:u,void 0===c?{}:c,i.find(l.mf)]}var m=n(15564),g=n(55083),y=n(5372),b=n(55988),v=n(50836),w=n(23034),_=n(229),E=n.n(_),A=function(){function e(e){this.user=e}return e.prototype.track=function(e,t,n,r){return this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),{event:e,type:"track",properties:t,options:(0,a.pi)({},n),integrations:(0,a.pi)({},r)}))},e.prototype.page=function(e,t,n,r,i){var s,o={type:"page",properties:(0,a.pi)({},n),options:(0,a.pi)({},r),integrations:(0,a.pi)({},i)};return null!==e&&(o.category=e,o.properties=null!==(s=o.properties)&&void 0!==s?s:{},o.properties.category=e),null!==t&&(o.name=t),this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),o))},e.prototype.screen=function(e,t,n,r,i){var s={type:"screen",properties:(0,a.pi)({},n),options:(0,a.pi)({},r),integrations:(0,a.pi)({},i)};return null!==e&&(s.category=e),null!==t&&(s.name=t),this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),s))},e.prototype.identify=function(e,t,n,r){return this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),{type:"identify",userId:e,traits:t,options:(0,a.pi)({},n),integrations:(0,a.pi)({},r)}))},e.prototype.group=function(e,t,n,r){return this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),{type:"group",traits:t,options:(0,a.pi)({},n),integrations:(0,a.pi)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){var i={userId:e,type:"alias",options:(0,a.pi)({},n),integrations:(0,a.pi)({},r)};return(null!==t&&(i.previousId=t),void 0===e)?this.normalize((0,a.pi)((0,a.pi)({},i),this.baseEvent())):this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),i))},e.prototype.baseEvent=function(){var e={integrations:{},options:{}},t=this.user;return t.id()&&(e.userId=t.id()),t.anonymousId()&&(e.anonymousId=t.anonymousId()),e},e.prototype.context=function(e){var t,n,r,i=["integrations","anonymousId","timestamp","userId"],a=null!==(t=e.options)&&void 0!==t?t:{};delete a.integrations;var s=Object.keys(a),o=null!==(r=null===(n=e.options)||void 0===n?void 0:n.context)&&void 0!==r?r:{},u={};return s.forEach(function(e){"context"!==e&&(i.includes(e)?(0,w.N)(u,e,a[e]):(0,w.N)(o,e,a[e]))}),[o,u]},e.prototype.normalize=function(e){(null===(t=e.options)||void 0===t?void 0:t.anonymousId)&&this.user.anonymousId(e.options.anonymousId);var t,n,r,i=Object.keys(null!==(n=e.integrations)&&void 0!==n?n:{}).reduce(function(t,n){var r,i;return(0,a.pi)((0,a.pi)({},t),((r={})[n]=!!(null===(i=e.integrations)||void 0===i?void 0:i[n]),r))},{}),s=(0,a.pi)((0,a.pi)({},i),null===(r=e.options)||void 0===r?void 0:r.integrations),o=this.context(e),u=o[0],c=o[1];e.options;var l=(0,a._T)(e,["options"]),d=(0,a.pi)((0,a.pi)((0,a.pi)({timestamp:new Date},l),{context:u,integrations:s}),c),h="ajs-next-"+E().hash(JSON.stringify(d)+(0,v.v4)());return(0,a.pi)((0,a.pi)({},d),{messageId:h})},e}(),x=n(31069),C=n(60522),S=n(30429),k=function(){var e,t,n=0;return{done:function(){return e},run:function(r){var i=r();return"object"==typeof i&&null!==i&&"then"in i&&"function"==typeof i.then&&(1==++n&&(e=new Promise(function(e){return t=e})),i.finally(function(){return 0==--n&&t()})),i}}},D=n(53315),I=function(e){function t(t){return e.call(this,"string"==typeof t?new x.$(4,t):t)||this}return(0,a.ZT)(t,e),t.prototype.flush=function(){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return(0,m.s)()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(function(e){function t(t){var n=e.call(this)||this;return n.criticalTasks=k(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=t,n.queue.on(C.M,function(){n.scheduleFlush(0)}),n}return(0,a.ZT)(t,e),t.prototype.register=function(e,t,n){return(0,a.mG)(this,void 0,void 0,function(){var r=this;return(0,a.Jh)(this,function(i){switch(i.label){case 0:return[4,Promise.resolve(t.load(e,n)).then(function(){r.plugins.push(t)}).catch(function(n){if("destination"===t.type){r.failedInitializations.push(t.name),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n});return}throw n})];case 1:return i.sent(),[2]}})})},t.prototype.deregister=function(e,t,n){return(0,a.mG)(this,void 0,void 0,function(){var r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!t.unload)return[3,2];return[4,Promise.resolve(t.unload(e,n))];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,a.mG)(this,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,a.mG)(this,void 0,void 0,function(){var t=this;return(0,a.Jh)(this,function(n){return[2,new Promise(function(n){var r=function(i,a){i.isSame(e)&&(t.off("flush",r),n(i))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,a.mG)(this,void 0,void 0,function(){var t=this;return(0,a.Jh)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){return(0,a.mG)(this,void 0,void 0,function(){var t,n,r,i;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return[4,this.criticalTasks.done()];case 1:a.sent(),t=Date.now(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=a.sent(),n=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",n),e.log("debug","Delivered",e.event),[2,e];case 4:throw i=r=a.sent(),e.log("error","Failed to deliver",i),this.emit("delivery_failure",e,i),e.stats.increment("delivery_failed"),r;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return(!(e instanceof S.Y)||!!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,a.mG)(this,void 0,void 0,function(){var e,t;return(0,a.Jh)(this,function(n){switch(n.label){case 0:if(0===this.queue.length||!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=n.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=n.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,r=(t="type",n={},this.plugins.filter(function(t){if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var n,r,i,a=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(a=e[t])}),null!==(i=null!==(r=e[t.name])&&void 0!==r?r:a)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)}).forEach(function(e){var r,i=void 0;if("string"==typeof t){var s=e[t];i="string"!=typeof s?JSON.stringify(s):s}else t instanceof Function&&(i=t(e));void 0!==i&&(n[i]=(0,a.ev)((0,a.ev)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[e],!1))}),n),i=r.before,s=r.enrichment,o=r.destination,u=r.after;return{before:void 0===i?[]:i,enrichment:void 0===s?[]:s,destinations:void 0===o?[]:o,after:void 0===u?[]:u}},t.prototype.flushOne=function(e){var t,n;return(0,a.mG)(this,void 0,void 0,function(){var r,i,s,o,u,c,l,d,h,f,p,m,g;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(!this.isReady())throw Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),i=(r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{})).before,s=r.enrichment,o=0,u=i,a.label=1;case 1:if(!(o<u.length))return[3,4];return c=u[o],[4,(0,D.z)(e,c)];case 2:(l=a.sent())instanceof S._&&(e=l),this.emit("message_enriched",e,c),a.label=3;case 3:return o++,[3,1];case 4:d=0,h=s,a.label=5;case 5:if(!(d<h.length))return[3,8];return f=h[d],[4,(0,D.a)(e,f)];case 6:(l=a.sent())instanceof S._&&(e=l),this.emit("message_enriched",e,f),a.label=7;case 7:return d++,[3,5];case 8:return m=(p=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{})).destinations,g=p.after,[4,new Promise(function(t,n){setTimeout(function(){Promise.all(m.map(function(t){return(0,D.a)(e,t)})).then(t).catch(n)},0)})];case 9:return a.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),[4,Promise.all(g.map(function(t){return(0,D.a)(e,t)}))];case 10:return a.sent(),[2,e]}})})},t}(b.Q));function O(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);a&&"function"==typeof a.value&&(e[i]=e[i].bind(e))}}return e}var T={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},P=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(t=i.get(e)))return t}catch(t){console.warn("Can't access ".concat(e,": ").concat(t))}}return null},e.prototype.set=function(e,t){this.stores.forEach(function(n){try{n.set(e,t)}catch(t){console.warn("Can't set ".concat(e,": ").concat(t))}})},e.prototype.clear=function(e){this.stores.forEach(function(t){try{t.remove(e)}catch(t){console.warn("Can't remove ".concat(e,": ").concat(t))}})},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),F=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function R(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(e){return Object.values(T).includes(e)})}/*! js-cookie v3.0.1 | MIT */function N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var B=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=N({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+a}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var a=n[i].split("="),s=a.slice(1).join("=");try{var o=decodeURIComponent(a[0]);if(r[o]=t.read(s,o),e===o)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",N({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,N({},this.attributes,t))},withConverter:function(t){return e(N({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function M(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0||t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),r=0;r<n.length;++r){var i="__tld__",a=n[r],s={domain:"."+a};try{if(B.set(i,"1",s),B.get(i))return B.remove(i,s),a}catch(e){return}}}var j=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,a.pi)((0,a.pi)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:M(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=B.get(e);if(null==n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?B.set(e,t,this.opts()):null===t?B.remove(e,this.opts()):B.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return B.remove(e,this.opts())},e}(),L=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function U(e){return e.map(function(e){var t,n;switch("object"==typeof e&&void 0!==e.name?(t=e.name,n=e.settings):t=e,t){case T.Cookie:return new j(n);case T.LocalStorage:return new L;case T.Memory:return new F;default:throw Error("Unknown Store Type: ".concat(e))}})}function z(e,t){return e.map(function(e){return t&&e===T.Cookie?{name:e,settings:t}:e})}var q={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},G=function(){function e(e,t){void 0===e&&(e=q);var n,r,i,s,o=this;this.options={},this.id=function(e){if(o.options.disable)return null;var t=o.identityStore.getAndSync(o.idKey);void 0!==e&&(o.identityStore.set(o.idKey,e),e!==t&&null!==t&&null!==e&&o.anonymousId(null));var n=o.identityStore.getAndSync(o.idKey);if(n)return n;var r=o.legacyUserStore.get(q.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(o.options.disable)return null;if(void 0===e){var r=null!==(t=o.identityStore.getAndSync(o.anonKey))&&void 0!==t?t:null===(n=o.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?o.identityStore.set(o.anonKey,null):o.identityStore.set(o.anonKey,null!=e?e:(0,v.v4)()),o.identityStore.getAndSync(o.anonKey)},this.traits=function(e){var t;if(!o.options.disable)return null===e&&(e={}),e&&o.traitsStore.set(o.traitsKey,null!=e?e:{}),null!==(t=o.traitsStore.get(o.traitsKey))&&void 0!==t?t:{}},this.options=(0,a.pi)((0,a.pi)({},q),e),this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:q.cookie.key,this.traitsKey=null!==(s=null===(i=e.localStorage)||void 0===i?void 0:i.key)&&void 0!==s?s:q.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,function(e){return e===T.Cookie}),this.traitsStore=this.createStorage(this.options,t,function(e){return e!==T.Cookie});var u=this.legacyUserStore.get(q.cookie.oldKey);u&&"object"==typeof u&&(u.id&&this.id(u.id),u.traits&&this.traits(u.traits)),O(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();(null===n||n===e)&&(t=(0,a.pi)((0,a.pi)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[T.LocalStorage,T.Cookie,T.Memory];return e.disable?new P([]):e.persist?(void 0!==e.storage&&null!==e.storage&&R(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter(function(e){return e!==T.LocalStorage})),n&&(r=r.filter(n)),new P(U(z(r,t)))):new P([new F])},e.defaults=q,e}(),Z={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},W=function(e){function t(t,n){void 0===t&&(t=Z);var r=e.call(this,(0,a.pi)((0,a.pi)({},Z),t),n)||this;return r.anonymousId=function(e){},O(r),r}return(0,a.ZT)(t,e),t}(G),$=n(73577),H=n(72508),Q=n(10720),V="This is being deprecated and will be not be available in future releases of Analytics JS",K=(0,H.R)(),J=null==K?void 0:K.analytics;function Y(){console.warn(V)}var X=function(e){function t(t,n,r,i,s){var o,u,c,l,d,h,f,p,m=this;(m=e.call(this)||this)._debug=!1,m.initialized=!1,m.user=function(){return m._user},m.init=m.initialize.bind(m),m.log=Y,m.addIntegrationMiddleware=Y,m.listeners=Y,m.addEventListener=Y,m.removeAllListeners=Y,m.removeListener=Y,m.removeEventListener=Y,m.hasListeners=Y,m.add=Y,m.addIntegration=Y;var g=null==n?void 0:n.cookie,y=null!==(h=null==n?void 0:n.disableClientPersistence)&&void 0!==h&&h;m.settings=t,m.settings.timeout=null!==(f=m.settings.timeout)&&void 0!==f?f:300,m.queue=null!=r?r:(o="".concat(t.writeKey,":event-queue"),void 0===(u=null==n?void 0:n.retryQueue)&&(u=!1),void 0===(c=y)&&(c=!1),l=u?4:1,d=c?new C.Z(l,[]):new x.$(l,o),new I(d));var b=null==n?void 0:n.storage;return m._universalStorage=m.createStore(y,b,g),m._user=null!=i?i:new G((0,a.pi)({persist:!y,storage:null==n?void 0:n.storage},null==n?void 0:n.user),g).load(),m._group=null!=s?s:new W((0,a.pi)({persist:!y,storage:null==n?void 0:n.storage},null==n?void 0:n.group),g).load(),m.eventFactory=new A(m._user),m.integrations=null!==(p=null==n?void 0:n.integrations)&&void 0!==p?p:{},m.options=null!=n?n:{},O(m),m}return(0,a.ZT)(t,e),t.prototype.createStore=function(e,t,n){return new P(e?[new F]:t&&R(t)?U(z(t.stores,n)):U([T.LocalStorage,{name:T.Cookie,settings:n},T.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t,n,r,i,s,o,u=this;return(0,a.Jh)(this,function(a){return n=(t=d.apply(void 0,e))[0],r=t[1],i=t[2],s=t[3],o=this.eventFactory.track(n,r,i,this.integrations),[2,this._dispatch(o,s).then(function(e){return u.emit("track",n,e.event.properties,e.event.options),e})]})})},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t,n,r,i,s,o,u,c=this;return(0,a.Jh)(this,function(a){return n=(t=h.apply(void 0,e))[0],r=t[1],i=t[2],s=t[3],o=t[4],u=this.eventFactory.page(n,r,i,s,this.integrations),[2,this._dispatch(u,o).then(function(e){return c.emit("page",n,r,e.event.properties,e.event.options),e})]})})},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t,n,r,i,s,o,u=this;return(0,a.Jh)(this,function(a){return n=(t=f(this._user).apply(void 0,e))[0],r=t[1],i=t[2],s=t[3],this._user.identify(n,r),o=this.eventFactory.identify(this._user.id(),this._user.traits(),i,this.integrations),[2,this._dispatch(o,s).then(function(e){return u.emit("identify",e.event.userId,e.event.traits,e.event.options),e})]})})},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return this._group;var r=f(this._group).apply(void 0,t),i=r[0],a=r[1],s=r[2],o=r[3];this._group.identify(i,a);var u=this._group.id(),c=this._group.traits(),l=this.eventFactory.group(u,c,s,this.integrations);return this._dispatch(l,o).then(function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t})},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t,n,r,i,s,o,u=this;return(0,a.Jh)(this,function(a){return n=(t=p.apply(void 0,e))[0],r=t[1],i=t[2],s=t[3],o=this.eventFactory.alias(n,r,i,this.integrations),[2,this._dispatch(o,s).then(function(e){return u.emit("alias",n,r,e.event.options),e})]})})},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t,n,r,i,s,o,u,c=this;return(0,a.Jh)(this,function(a){return n=(t=h.apply(void 0,e))[0],r=t[1],i=t[2],s=t[3],o=t[4],u=this.eventFactory.screen(n,r,i,s,this.integrations),[2,this._dispatch(u,o).then(function(e){return c.emit("screen",n,r,e.event.properties,e.event.options),e})]})})},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(119).then(n.bind(n,13216))];case 1:return[2,(t=r.sent().link).call.apply(t,(0,a.ev)([this],e,!1))]}})})},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(119).then(n.bind(n,13216))];case 1:return[2,(t=r.sent().link).call.apply(t,(0,a.ev)([this],e,!1))]}})})},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(119).then(n.bind(n,13216))];case 1:return[2,(t=r.sent().form).call.apply(t,(0,a.ev)([this],e,!1))]}})})},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e(119).then(n.bind(n,13216))];case 1:return[2,(t=r.sent().form).call.apply(t,(0,a.ev)([this],e,!1))]}})})},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t,n=this;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return t=g._.system(),[4,Promise.all(e.map(function(e){return n.queue.register(t,e,n)}))];case 1:return r.sent(),[2,t]}})})},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,function(){var t,n=this;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return t=g._.system(),[4,Promise.all(e.map(function(e){var r=n.queue.plugins.find(function(t){return t.name===e});if(r)return n.queue.deregister(t,r,n);t.log("warn","plugin ".concat(e," not found"))}))];case 1:return r.sent(),[2,t]}})})},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n;return(0,a.Jh)(this,function(r){return(n=new g._(e),(0,m.s)()&&!this.options.retryQueue)?[2,n]:[2,function(e,t,n,r){return(0,a.mG)(this,void 0,void 0,function(){var i,s;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(n.emit("dispatch_start",e),i=Date.now(),!t.isEmpty())return[3,2];return[4,t.dispatchSingle(e)];case 1:return s=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:s=a.sent(),a.label=4;case 4:var o,u;if(!(null==r?void 0:r.callback))return[3,6];return[4,(0,y.UI)(s,r.callback,(o=i,Math.max((null!=(u=r.timeout)?u:300)-(Date.now()-o),0)))];case 5:s=a.sent(),a.label=6;case 6:return(null==r?void 0:r.debug)&&s.flush(),[2,s]}})})}(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(e){return(0,a.mG)(this,void 0,void 0,function(){var t=this;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,a.mG)(t,void 0,void 0,function(){var t,r,i;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return[4,Promise.resolve().then(n.bind(n,53873))];case 1:return t=a.sent().sourceMiddlewarePlugin,r={},this.queue.plugins.forEach(function(e){if("destination"===e.type)return r[e.name]=!0}),i=t(e,r),[4,this.register(i)];case 2:return a.sent(),[2]}})})})];case 1:return r.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter(function(t){return t.name.toLowerCase()===e.toLowerCase()}).forEach(function(e){e.addMiddleware.apply(e,t)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:if(!1===this.options.useQueryString)return[2,[]];return[4,n.e(96).then(n.bind(n,25332))];case 1:return[2,(0,t.sent().queryString)(this,e)]}})})},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(e){return e.ready?e.ready():Promise.resolve()})).then(function(t){return e(t),t})]})})},t.prototype.noConflict=function(){return console.warn(V),(0,Q.ql)(null!=J?J:this),this},t.prototype.normalize=function(e){return console.warn(V),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(V),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return $.i},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(e){return console.warn(V),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return console.warn(V),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(V),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(V),this.queue.plugins.filter(function(e){return"destination"===e.type}).reduce(function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?e[t.name]=i:e[t.name]=r,e},{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();(!t||this[t])&&this[t].apply(this,e)},t}(b.Q),ee=n(21194),et=function(){var e,t,n=new Promise(function(n,r){e=n,t=r});return{resolve:e,reject:t,promise:n}},en=n(85281),er=n(60072);function ei(){var e=document.querySelector("link[rel='canonical']");if(e)return e.getAttribute("href")||void 0}var ea=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return e.instance=n,Promise.resolve()},this.enrich=function(t){var n,i,s,o,u,c,l,d,h,f,p,m,g=t.event,y=null!==(h=g.context)&&void 0!==h?h:g.context={},b={path:function(){var e=ei();if(!e)return window.location.pathname;var t=document.createElement("a");return t.href=e,t.pathname.startsWith("/")?t.pathname:"/"+t.pathname}(),referrer:document.referrer,search:location.search,title:document.title,url:function(e){void 0===e&&(e="");var t=ei();if(t)return t.includes("?")?t:"".concat(t).concat(e);var n=window.location.href,r=n.indexOf("#");return -1===r?n:n.slice(0,r)}(location.search)};"page"===g.type&&(m=g.properties&&(c=g.properties,l=Object.keys(b),Object.assign.apply(Object,(0,a.ev)([{}],l.map(function(e){var t;if(c&&Object.prototype.hasOwnProperty.call(c,e))return(t={})[e]=c[e],t}),!1))),g.properties=(0,a.pi)((0,a.pi)((0,a.pi)({},b),g.properties),g.name?{name:g.name}:{})),y.page=(0,a.pi)((0,a.pi)((0,a.pi)({},b),m),y.page);var v=y.page.search||"";y.userAgent=navigator.userAgent;var w=navigator.userLanguage||navigator.language;void 0===y.locale&&void 0!==w&&(y.locale=w),null!==(f=y.library)&&void 0!==f||(y.library={name:"analytics.js",version:"".concat("web"===(0,en.B)()?"next":"npm:next","-").concat($.i)}),v&&!y.campaign&&(y.campaign=((d=v).startsWith("?")&&(d=d.substring(1)),(d=d.replace(/\?/g,"&")).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1];if(r.includes("utm_")&&r.length>4){var a=r.substr(4);"campaign"===a&&(a="name"),e[a]=(0,er.a)(void 0===i?"":i)}return e},{})));var _=function(){var e=B.get("_ga");if(e&&e.startsWith("amp"))return e}();return _&&(y.amp={id:_}),n=null!==(p=e.instance.options.disableClientPersistence)&&void 0!==p&&p,o=(s=new P(n?[]:[new j(function(){if(r)return r;var e=M(window.location.href);return r={expires:31536e6,secure:!1,path:"/"},e&&(r.domain=e),r}())])).get("s:context.referrer"),(u=null!==(i=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=(e=e.replace(/\?/g,"&")).split("&"),r=0;r<n.length;r++){var i=n[r].split("="),a=i[0],s=i[1];if(t[a])return{id:s,type:t[a]}}}(v))&&void 0!==i?i:o)&&(y&&(y.referrer=(0,a.pi)((0,a.pi)({},y.referrer),u)),s.set("s:context.referrer",u)),t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},es=n(49613),eo=n(53873),eu=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,a.mG)(this,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(n){switch(n.label){case 0:return[4,(0,eo.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new S.Y({retry:!1,reason:"dropped by destination middleware"})),[2,new g._(t)]}})})},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,a.mG)(t,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(r){switch(r.label){case 0:if(!this.action[e])return[2,n];if(t=n,"destination"!==this.type)return[3,2];return[4,this.transform(n)];case 1:t=r.sent(),r.label=2;case 2:return[4,this.action[e](t)];case 3:return r.sent(),[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},e.prototype.load=function(e,t){return this.action.load(e,t)},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}(),ec=n(38292),el=function(e){var t=!1;window.addEventListener("pagehide",function(){t||e(t=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(t)return;t=!0}else t=!1;e(t)})};function ed(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}var eh=n(10911);function ef(e,t,n,r){var i=this;e||setTimeout(function(){return(0,a.mG)(i,void 0,void 0,function(){var e,i;return(0,a.Jh)(this,function(s){switch(s.label){case 0:return e=!0,[4,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n,r=this;return(0,a.Jh)(this,function(i){switch(i.label){case 0:if(n=[],(0,m.s)())return[2,t];return[4,(0,eh.x)(function(){return t.length>0&&!(0,m.s)()},function(){return(0,a.mG)(r,void 0,void 0,function(){var r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:if(!(r=t.pop()))return[2];return[4,(0,D.a)(r,e)];case 1:return i.sent() instanceof g._||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}(n,t)];case 1:return i=s.sent(),e=!1,t.todo>0&&r(e,i,n,r),[2]}})})},5e3*Math.random())}var ep=n(82468),em=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,a.ZT)(t,e),t}(Error),eg="is not a string",ey="is nil";function eb(e){var t,n=e.event;!function(e){if(!(0,l.Gg)(e))throw new em("Event",ey);if("object"!=typeof e)throw new em("Event","is not an object")}(n),function(e){if(!(0,l.HD)(e.type))throw new em(".type",eg)}(n),"track"===n.type&&function(e){if(!(0,l.HD)(e.event))throw new em(".event",eg)}(n);var r=null!==(t=n.properties)&&void 0!==t?t:n.traits;if("alias"!==n.type&&!(0,l.PO)(r))throw new em(".properties","is not an object");return!function(e){var t,n,r,i=".userId/anonymousId/previousId/groupId",a=null!==(r=null!==(n=null!==(t=e.userId)&&void 0!==t?t:e.anonymousId)&&void 0!==n?n:e.groupId)&&void 0!==r?r:e.previousId;if((0,l.Gg)(a)){if(!(0,l.HD)(a))throw new em(i,eg)}else throw new em(i,ey)}(n),e}var ev={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:eb,identify:eb,page:eb,alias:eb,group:eb,screen:eb},ew=function(e,t,n){n.getCalls(e).forEach(function(e){eC(t,e).catch(console.error)})},e_=ew.bind(void 0,"on"),eE=ew.bind(void 0,"setAnonymousId"),eA=function(e,t){t.toArray().forEach(function(t){setTimeout(function(){eC(e,t).catch(console.error)},0)})},ex=function(){function e(){this._value={}}return e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this._value))},e.prototype.getCalls=function(e){var t;return null!==(t=this._value[e])&&void 0!==t?t:[]},e.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach(function(t){e._value[t.method]?e._value[t.method].push(t):e._value[t.method]=[t]}),this},e.prototype.clear=function(){return this._value={},this},e}();function eC(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:var a;if(i.trys.push([0,3,,4]),t.called)return[2,void 0];if(t.called=!0,!("object"==typeof(a=n=e[t.method].apply(e,t.args))&&null!==a&&"then"in a&&"function"==typeof a.then))return[3,2];return[4,n];case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}})})}var eS=function(){function e(e){var t=this;this._preInitBuffer=new ex,this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=$.i,this._promise=e(this._preInitBuffer),this._promise.then(function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r}).catch(function(){})}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?Promise.resolve((n=t.instance)[e].apply(n,r)):new Promise(function(n,i){t._preInitBuffer.push({method:e,args:r,resolve:n,reject:i,called:!1})})}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?(n=t.instance)[e].apply(n,r):t._preInitBuffer.push({method:e,args:r,resolve:function(){},reject:console.error,called:!1}),t}},e}();function ek(e){return{method:e[0],resolve:function(){},reject:console.error,args:e.slice(1),called:!1}}var eD=function(e){void 0===e&&(e=(0,Q.wI)());var t=e;return Array.isArray(t)?t.splice(0,t.length).map(ek):[]},eI=(0,H.R)(),eO=null!==(i=eI.__SEGMENT_INSPECTOR__)&&void 0!==i?i:eI.__SEGMENT_INSPECTOR__={},eT=function(e){var t;return null===(t=eO.attach)||void 0===t?void 0:t.call(eO,e)},eP=n(17099),eF=function(e){function t(){var t=this,r=et(),i=r.promise,s=r.resolve;return(t=e.call(this,function(e){return i.then(function(t){return function(e,t,r){var i,s,l,d,h,f,p;return void 0===t&&(t={}),(0,a.mG)(this,void 0,void 0,function(){var g,y,b,v,w,_,E,A,S,k,D;return(0,a.Jh)(this,function(I){var O,T,P,F;switch(I.label){case 0:if(t.globalAnalyticsKey&&(0,Q.jV)(t.globalAnalyticsKey),e.cdnURL&&(0,u.UH)(e.cdnURL),!(null!==(i=e.cdnSettings)&&void 0!==i))return[3,1];return y=i,[3,3];case 1:return[4,(O=e.writeKey,P=null!=(T=e.cdnURL)?T:(0,u.Vl)(),(0,c.h)("".concat(P,"/v1/projects/").concat(O,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:y=I.sent(),I.label=3;case 3:return g=y,t.updateCDNSettings&&(g=t.updateCDNSettings(g)),b=null===(l=null===(s=g.integrations["Segment.io"])||void 0===s?void 0:s.retryQueue)||void 0===l||l,v=(0,a.pi)({retryQueue:b},t),eT(w=new X(e,v)),_=null!==(d=e.plugins)&&void 0!==d?d:[],E=null!==(h=e.classicIntegrations)&&void 0!==h?h:[],eP.j.initRemoteMetrics(g.metrics),F=w,r.push.apply(r,eD()),eE(F,r),e_(F,r),[4,function(e,t,r,i,s,l,d){var h,f,p;return void 0===l&&(l=[]),(0,a.mG)(this,void 0,void 0,function(){var g,y,b,v,w,_,E,A,S,k,D,I,O,T,P=this;return(0,a.Jh)(this,function(F){var R,N,B;switch(F.label){case 0:if(g=null==l?void 0:l.filter(function(e){return"object"==typeof e}),y=null==l?void 0:l.filter(function(e){return"function"==typeof e&&"string"==typeof e.pluginName}),"test"===o().NODE_ENV||!((null!==(B=null===(N=null===(R=t.middlewareSettings)||void 0===R?void 0:R.routingRules)||void 0===N?void 0:N.length)&&void 0!==B?B:0)>0))return[3,2];return[4,n.e(604).then(n.bind(n,68838)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})];case 1:return v=F.sent(),[3,3];case 2:v=void 0,F.label=3;case 3:if(b=v,("test"===o().NODE_ENV||!(Object.keys(t.integrations).length>1))&&!(d.length>0))return[3,5];return[4,n.e(464).then(n.bind(n,56019)).then(function(n){return n.ajsDestinations(e,t,r.integrations,i,b,d)})];case 4:return _=F.sent(),[3,6];case 5:_=[],F.label=6;case 6:if(w=_,!t.legacyVideoPluginsEnabled)return[3,8];return[4,n.e(150).then(n.bind(n,17516)).then(function(e){return e.loadLegacyVideoPlugins(r)})];case 7:F.sent(),F.label=8;case 8:if(!(null===(h=i.plan)||void 0===h?void 0:h.track))return[3,10];return[4,n.e(493).then(n.bind(n,54565)).then(function(e){var n;return e.schemaFilter(null===(n=i.plan)||void 0===n?void 0:n.track,t)})];case 9:return A=F.sent(),[3,11];case 10:A=void 0,F.label=11;case 11:return E=A,S=(0,ee.o)(t,s),[4,(function(e,t,n,r,i,s){var o,c,l;return(0,a.mG)(this,void 0,void 0,function(){var d,h,f=this;return(0,a.Jh)(this,function(p){switch(p.label){case 0:return d=[],h=null!==(c=null===(o=e.middlewareSettings)||void 0===o?void 0:o.routingRules)&&void 0!==c?c:[],[4,Promise.all((null!==(l=e.remotePlugins)&&void 0!==l?l:[]).map(function(e){return(0,a.mG)(f,void 0,void 0,function(){var o,c,l,f,p;return(0,a.Jh)(this,function(m){switch(m.label){case 0:var g,y;if(g=t[e.creationName],y=t[e.name],!1===t.All&&!g&&!y||!1===g||!1===y)return[2];m.label=1;case 1:if(m.trys.push([1,6,,7]),c=null==s?void 0:s.find(function(t){return t.pluginName===e.name}))return[3,3];return[4,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n,r,i,s,o;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(n=RegExp("https://cdn.segment.(com|build)"),r=(0,u.Vl)(),!t)return[3,6];s=(i=e.url.split("/"))[i.length-2],o=e.url.replace(s,btoa(s).replace(/=/g,"")),a.label=1;case 1:return a.trys.push([1,3,,5]),[4,(0,es.v)(o.replace(n,r))];case 2:case 4:return a.sent(),[3,5];case 3:return a.sent(),[4,(0,es.v)(e.url.replace(n,r))];case 5:return[3,8];case 6:return[4,(0,es.v)(e.url.replace(n,r))];case 7:a.sent(),a.label=8;case 8:if("function"==typeof window[e.libraryName])return[2,window[e.libraryName]];return[2]}})})}(e,r)];case 2:c=m.sent(),m.label=3;case 3:if(!(o=c))return[3,5];return[4,o((0,a.pi)((0,a.pi)({},e.settings),n[e.name]))];case 4:(function(e){if(!Array.isArray(e))throw Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})})(f=Array.isArray(l=m.sent())?l:[l]),p=h.filter(function(t){return t.destinationName===e.creationName}),f.forEach(function(t){var n=new eu(e.creationName,t);p.length&&i&&"destination"===t.type&&n.addMiddleware(i),d.push(n)}),m.label=5;case 5:return[3,7];case 6:return console.warn("Failed to load Remote Plugin",m.sent()),[3,7];case 7:return[2]}})})}))];case 1:return p.sent(),[2,d.filter(Boolean)]}})})})(t,r.integrations,S,s.obfuscate,b,y).catch(function(){return[]})];case 12:if(k=F.sent(),D=(0,a.ev)((0,a.ev)((0,a.ev)([ev,ea],g,!0),w,!0),k,!0),E&&D.push(E),(null===(f=i.integrations)||void 0===f?void 0:f.All)===!1&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"])return[3,14];return O=(I=D).push,[4,function(e,t,n){var r,i,s;return(0,a.mG)(this,void 0,void 0,function(){var o,u,l,d,h,f,p,g,y,b,v;function w(r){return(0,a.mG)(this,void 0,void 0,function(){var i,s;return(0,a.Jh)(this,function(o){if((0,m.s)())return u.push(r),ef(d,u,v,ef),[2,r];if(l.add(r),i=r.event.type.charAt(0),b&&r.event.context&&(r.event.context.userAgentData=b),s=(0,ec.D)(r.event).json(),"track"===r.event.type&&delete s.traits,"alias"===r.event.type){var c,h,f,g,w,_;c=s,_=e.user(),c.previousId=null!==(g=null!==(f=null!==(h=c.previousId)&&void 0!==h?h:c.from)&&void 0!==f?f:_.id())&&void 0!==g?g:_.anonymousId(),c.userId=null!==(w=c.userId)&&void 0!==w?w:c.to,delete c.from,delete c.to,s=c}return[2,y.dispatch("".concat(p,"/").concat(i),function(e,t,n,r){var i,s=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||s.id(),t.anonymousId=t.anonymousId||s.anonymousId(),t.sentAt=new Date;var o=e.queue.failedInitializations||[];o.length>0&&(t._metadata={failedInitializations:o});var u=[],c=[];for(var l in r){var d=r[l];"Segment.io"===l&&u.push(l),"bundled"===d.bundlingStatus&&u.push(l),"unbundled"===d.bundlingStatus&&c.push(l)}for(var h=0,f=(null==n?void 0:n.unbundledIntegrations)||[];h<f.length;h++){var p=f[h];c.includes(p)||c.push(p)}var m=null!==(i=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==i?i:{},g=[];return u.sort().forEach(function(e){var t;(null!==(t=m[e])&&void 0!==t?t:[]).forEach(function(e){g.push(e)})}),(null==n?void 0:n.addBundledMetadata)!==!1&&(t._metadata=(0,a.pi)((0,a.pi)({},t._metadata),{bundled:u.sort(),unbundled:c.sort(),bundledIds:g})),t}(e,s,t,n)).then(function(){return r}).catch(function(){return u.pushWithBackoff(r),ef(d,u,v,ef),r}).finally(function(){l.delete(r)})]})})}return(0,a.Jh)(this,function(n){switch(n.label){case 0:var m;window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(l)),l.clear()}),o=null!==(r=null==t?void 0:t.apiKey)&&void 0!==r?r:"",u=e.options.disableClientPersistence?new C.Z(e.queue.queue.maxAttempts,[]):new x.$(e.queue.queue.maxAttempts,"".concat(o,":dest-Segment.io")),l=new Set,d=!1,h=null!==(i=null==t?void 0:t.apiHost)&&void 0!==i?i:ep.U,f=null!==(s=null==t?void 0:t.protocol)&&void 0!==s?s:"https",p="".concat(f,"://").concat(h),y=(null==(g=null==t?void 0:t.deliveryStrategy)?void 0:g.strategy)==="batching"?function(e,t){var n,r,i,s=[],o=!1,u=null!==(n=null==t?void 0:t.size)&&void 0!==n?n:10,l=null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:5e3;function d(t){if(0!==t.length){var n,r=null===(n=t[0])||void 0===n?void 0:n.writeKey,i=t.map(function(e){return e.sentAt,(0,a._T)(e,["sentAt"])});return(0,c.h)("https://".concat(e,"/b"),{keepalive:o,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:r,batch:i,sentAt:new Date().toISOString()})})}}function h(){return(0,a.mG)(this,void 0,void 0,function(){var e;return(0,a.Jh)(this,function(t){return s.length?(e=s,s=[],[2,d(e)]):[2]})})}return el(function(e){if((o=e)&&s.length){var t,n;Promise.all((t=[],n=0,s.forEach(function(e){ed(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t).map(d)).catch(console.error)}}),{dispatch:function(e,t){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(e){return s.push(t),[2,s.length>=u||ed(s)>=450||o?h():void(i||(i=setTimeout(function(){i=void 0,h().catch(console.error)},l)))]})})}}}(h,g.config):(m=null==g?void 0:g.config,{dispatch:function(e,t){return(0,c.h)(e,{keepalive:null==m?void 0:m.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(t)})}}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,function(e){return(0,a.mG)(this,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}(e.options.highEntropyValuesClientHints)];case 2:return b=n.sent(),[3,4];case 3:return n.sent(),b=void 0,[3,4];case 4:return v={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:w,identify:w,page:w,alias:w,group:w,screen:w},u.todo&&ef(d,u,v,ef),[2,v]}})})}(r,S["Segment.io"],t.integrations)];case 13:O.apply(I,[F.sent()]),F.label=14;case 14:return[4,r.register.apply(r,D)];case 15:if(T=F.sent(),!Object.entries(null!==(p=t.enabledMiddleware)&&void 0!==p?p:{}).some(function(e){return e[1]}))return[3,17];return[4,n.e(214).then(n.bind(n,44098)).then(function(e){var n=e.remoteMiddlewares;return(0,a.mG)(P,void 0,void 0,function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:return[4,n(T,t,s.obfuscate)];case 1:return[2,Promise.all(e.sent().map(function(e){return r.addSourceMiddleware(e)}))]}})})})];case 16:F.sent(),F.label=17;case 17:return[2,T]}})})}(e.writeKey,g,w,v,t,_,E)];case 4:if(A=I.sent(),S=null!==(f=window.location.search)&&void 0!==f?f:"",k=null!==(p=window.location.hash)&&void 0!==p?p:"",!(D=S.length?S:k.replace(/(?=#).*(?=\?)/,"")).includes("ajs_"))return[3,6];return[4,w.queryString(D).catch(console.error)];case 5:I.sent(),I.label=6;case 6:return w.initialized=!0,w.emit("initialize",e,t),t.initialPageview&&w.page().catch(console.error),[4,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(n){switch(n.label){case 0:return t.push.apply(t,eD()),[4,(0,a.mG)(void 0,void 0,void 0,function(){var n,r;return(0,a.Jh)(this,function(i){switch(i.label){case 0:n=0,r=t.getCalls("addSourceMiddleware"),i.label=1;case 1:if(!(n<r.length))return[3,4];return[4,eC(e,r[n]).catch(console.error)];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}})})];case 1:return n.sent(),t.push.apply(t,eD()),eA(e,t),t.clear(),[2]}})})}(w,r)];case 7:return I.sent(),[2,[w,A]]}})})}(t[0],t[1],e)})})||this)._resolveLoadStart=function(e,t){return s([e,t])},t}return(0,a.ZT)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),new t().load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(eS),eR=n(52983);let eN=!!window.Cypress;class eB{static getInstance(e){return this.instance||(!eN&&e?this.instance=eF.load({writeKey:e},{initialPageview:!0}):(console.warn("Segment not initialized. No-op instance provided instead."),this.instance=eF.load({writeKey:"NOOP"}))),this.instance}}eB.instance=null;var eM=()=>{let e="LbNprkWqimdFWQvBVCKqYcrPQics3cnj";return(0,eR.useMemo)(()=>eB.getInstance(e),[e])}},41264:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eC},wagmiChains:function(){return e_}});var r,i,a,s,o,u,c,l,d,h,f,p,m,g,y,b,v,w,_,E,A=n(27409),x=n(38381),C=n(53341),S=n(52983),k=n(52020),D=n(30791),I=n(97458);let O=(e,t)=>(0,C.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),T=e=>(0,C.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),P=(e,t=!1)=>{var n;let r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,n])=>{var i;r[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(i=n.palette)?void 0:i.mode}});let i=(0,C.Z)({html:O(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,C.Z)({margin:0},T(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r),a=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(i=[i,a]),i};var F=function(e){let t=(0,k.Z)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,I.jsxs)(S.Fragment,{children:[(0,I.jsx)(D.Z,{styles:e=>P(e,r)}),n]})},R=n(21596),N=n(41235),B=n(29202),M=n(236),j=n(21883),L=n(71442),U=n(38544),z=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},q=(e,t,n)=>(z(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Z=(e,t,n,r)=>(z(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),W=(e,t,n)=>(z(e,t,"access private method"),n),$=class extends j{constructor({chains:e=[L.R,U.w],options:t}){super(),this.chains=e,this.options=t}getBlockExplorerUrls(e){let{default:t,...n}=e.blockExplorers??{};if(t)return[t.url,...Object.values(n).map(e=>e.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}},H=n(25119),Q=n(61918),V=n(79895),K=n(35219),J=n(77490),Y=n(36493),X="eip155",ee="requestedChains",et="wallet_addEthereumChain",en=class extends ${constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),G(this,a),G(this,o),G(this,c),G(this,d),G(this,f),G(this,m),G(this,y),G(this,v),G(this,_),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,G(this,r,void 0),G(this,i,void 0),this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,Q.K)(e[0])})},this.onChainChanged=e=>{let t=Number(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{W(this,m,g).call(this,[]),this.emit("disconnect")},this.onDisplayUri=e=>{this.emit("message",{type:"display_uri",data:e})},this.onConnect=()=>{this.emit("connect",{})},W(this,a,s).call(this)}async connect({chainId:e,pairingTopic:t}={}){try{let n=e;if(!n){let e=this.storage?.getItem("store"),t=e?.state?.data?.chain?.id;n=t&&!this.isChainUnsupported(t)?t:this.chains[0]?.id}if(!n)throw Error("No chains found on connector.");let r=await this.getProvider();W(this,d,h).call(this);let i=W(this,c,l).call(this);if(r.session&&i&&await r.disconnect(),!r.session||i){let e=this.chains.filter(e=>e.id!==n).map(e=>e.id);this.emit("message",{type:"connecting"}),await r.connect({pairingTopic:t,chains:[n],optionalChains:e.length?e:void 0}),W(this,m,g).call(this,this.chains.map(({id:e})=>e))}let a=await r.enable(),s=(0,Q.K)(a[0]),o=await this.getChainId(),u=this.isChainUnsupported(o);return{account:s,chain:{id:o,unsupported:u}}}catch(e){if(/user rejected/i.test(e?.message))throw new V.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{W(this,f,p).call(this),W(this,m,g).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();return(0,Q.K)(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return q(this,r)||await W(this,a,s).call(this),e&&await this.switchChain(e),q(this,r)}async getWalletClient({chainId:e}={}){let[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,K.K)({account:n,chain:r,transport:(0,J.P)(t)})}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=W(this,c,l).call(this);if(!e)return!1;if(n&&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 V.x3(Error("chain not found on connector."));try{let n=await this.getProvider(),r=W(this,v,w).call(this),i=W(this,_,E).call(this),a=r.includes(e);if(!a&&i.includes(et)){await n.request({method:et,params:[{chainId:(0,Y.eC)(t.id),blockExplorerUrls:[t.blockExplorers?.default?.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});let r=W(this,y,b).call(this);r.push(e),W(this,m,g).call(this,r)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,Y.eC)(e)}]}),t}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new V.ab(t);throw new V.x3(t)}}};r=new WeakMap,i=new WeakMap,a=new WeakSet,s=async function(){return q(this,i)||"undefined"==typeof window||Z(this,i,W(this,o,u).call(this)),q(this,i)},o=new WeakSet,u=async function(){let{EthereumProvider:e,OPTIONAL_EVENTS:t,OPTIONAL_METHODS:i}=await Promise.all([n.e(34),n.e(653)]).then(n.bind(n,52653)),[a,...s]=this.chains.map(({id:e})=>e);if(a){let{projectId:n,showQrModal:o=!0,qrModalOptions:u,metadata:c,relayUrl:l}=this.options;Z(this,r,await e.init({showQrModal:o,qrModalOptions:u,projectId:n,optionalMethods:i,optionalEvents:t,chains:[a],optionalChains:s.length?s:void 0,rpcMap:Object.fromEntries(this.chains.map(e=>[e.id,e.rpcUrls.default.http[0]])),metadata:c,relayUrl:l}))}},c=new WeakSet,l=function(){let e=W(this,_,E).call(this);if(e.includes(et)||!this.options.isNewChainsStale)return!1;let t=W(this,y,b).call(this),n=this.chains.map(({id:e})=>e),r=W(this,v,w).call(this);return(!r.length||!!r.some(e=>n.includes(e)))&&!n.every(e=>t.includes(e))},d=new WeakSet,h=function(){q(this,r)&&(W(this,f,p).call(this),q(this,r).on("accountsChanged",this.onAccountsChanged),q(this,r).on("chainChanged",this.onChainChanged),q(this,r).on("disconnect",this.onDisconnect),q(this,r).on("session_delete",this.onDisconnect),q(this,r).on("display_uri",this.onDisplayUri),q(this,r).on("connect",this.onConnect))},f=new WeakSet,p=function(){q(this,r)&&(q(this,r).removeListener("accountsChanged",this.onAccountsChanged),q(this,r).removeListener("chainChanged",this.onChainChanged),q(this,r).removeListener("disconnect",this.onDisconnect),q(this,r).removeListener("session_delete",this.onDisconnect),q(this,r).removeListener("display_uri",this.onDisplayUri),q(this,r).removeListener("connect",this.onConnect))},m=new WeakSet,g=function(e){this.storage?.setItem(ee,e)},y=new WeakSet,b=function(){return this.storage?.getItem(ee)??[]},v=new WeakSet,w=function(){if(!q(this,r))return[];let e=q(this,r).session?.namespaces;if(!e)return[];let t=(0,H.fK)(e),n=t[X]?.chains?.map(e=>parseInt(e.split(":")[1]||""));return n??[]},_=new WeakSet,E=function(){if(!q(this,r))return[];let e=q(this,r).session?.namespaces;if(!e)return[];let t=(0,H.fK)(e),n=t[X]?.methods;return n??[]};var er=n(42687),ei=n(12679),ea=n.n(ei),es=n(20050),eo=n(69361);let eu="undefined"!=typeof document;var ec=n(67057);let el={isConnected:!1};var ed=e=>{let{analyticsBrowser:t}=e,{connector:n,isConnected:r,address:i}=(0,es.mA)(),{chain:a}=(0,es.LN)(),{track:s,reset:o}=t,u=(0,S.useCallback)(e=>t.identify(e.address,{walletAddress:e.address}),[t]),c=(0,S.useMemo)(()=>({...r&&n&&i?{isConnected:!0,address:i,connector:n.name,connectorId:n.id,...a?{network:a.name,networkId:a.id}:{}}:el}),[r,n,i,a]),[l,d]=(0,S.useState)(el);(0,S.useEffect)(()=>{c!==l&&(c.isConnected!==l.isConnected?c.isConnected?s("Wallet Connected",c).then(()=>u(c)):s("Wallet Disconnected",c).then(()=>o()):c.isConnected&&l.isConnected&&(c.networkId!=l.networkId&&s("Wallet Network Changed",c),c.address!=l.address&&s("Wallet Account Changed",c).then(()=>o()).then(()=>u(c))),d(c))},[c])},eh=n(61045).Z;let ef=eh.networks.reduce((e,t)=>(e[t.chainId]="https://rpc-endpoints.superfluid.dev/".concat(t.name),e),{});var ep=n(11432),em=n.n(ep),eg=n(27454);let ey=(0,eg.Z)({palette:{primary:{main:"#1DB227",light:"#ECFAEF",dark:"#16891D",contrastText:"#fff"},secondary:{main:"#19857b"},warning:{main:"#F3A002",light:"#FDF1D9"},error:{main:"#D22525",light:"#FBE6E7"},grey:{100:"#DBDEE2",500:"#8995A1",700:"#656E78",800:"#656E78",900:"#2E3A47"},text:{primary:"#000",secondary:"#656E78"},background:{default:"#EAEFF4"},divider:"#DBDEE2"},typography:{fontSize:16,htmlFontSize:16,fontFamily:em().style.fontFamily,button:{textTransform:"none"},h1:{fontSize:"clamp(2rem, 1.5rem + 2.5vw, 3rem)",fontWeight:700,lineHeight:1},h2:{fontSize:"2.625rem",fontWeight:500,lineHeight:1},h3:{fontSize:"2rem",fontWeight:500,lineHeight:1.25},h4:{fontSize:"1.75rem",fontWeight:500,lineHeight:1.25},h5:{fontSize:"1.5rem",fontWeight:500,lineHeight:1.25},subtitle1:{fontSize:"1.25rem",fontWeight:500,lineHeight:1.5},subtitle2:{fontSize:"1.125rem",fontWeight:400,lineHeight:1.5},body1:{fontSize:"1rem",lineHeight:1.5},body2:{fontSize:"1rem",lineHeight:1.5},caption:{fontSize:"0.875rem",lineHeight:1.25,fontWeight:400}},shape:{borderRadius:10},components:{MuiButton:{defaultProps:{disableElevation:!0,translate:"yes"},styleOverrides:{sizeLarge:{paddingTop:"0.75rem",paddingBottom:"0.75rem"},outlinedSizeLarge:{paddingTop:"0.6875rem",paddingBottom:"0.6875rem"}}},MuiFormLabel:{styleOverrides:{root:{fontSize:"1rem",lineHeight:1.5,fontWeight:500,color:"#000"}}},MuiTabPanel:{styleOverrides:{root:{padding:28}}},MuiTab:{styleOverrides:{root:{textTransform:"uppercase",fontSize:"1rem"}}}}}),eb="09fae26cada6e7e6886b5fc37861f1d3",{chains:ev,publicClient:ew}=(0,B.QB)(N.S7,[function({rpc:e}){return function(t){let n=e(t);return n&&""!==n.http?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[n.http]}}},rpcUrls:{http:[n.http],webSocket:n.webSocket?[n.webSocket]:void 0}}:null}}({rpc:e=>{let t=ef[e.id];return t?{http:t}:null}}),function({projectId:e}){return function({rpc:e}){return function(t){let n=e(t);return n&&""!==n.http?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[n.http]}}},rpcUrls:{http:[n.http],webSocket:n.webSocket?[n.webSocket]:void 0}}:null}}({rpc:t=>{var n;return[1,3,4,5,10,42,56,69,97,100,137,280,324,420,42161,42220,43114,80001,421611,421613,1313161554,1313161555].includes(t.id)?{http:`https://rpc.walletconnect.com/v1/?chainId=eip155:${t.id}&projectId=${e}`}:{http:t.rpcUrls.default.http[0],webSocket:null==(n=t.rpcUrls.default.webSocket)?void 0:n[0]}}})}({projectId:eb}),function(e){return e.rpcUrls.public.http[0]?{chain:e,rpcUrls:e.rpcUrls.public}:null}]),e_=ev,eE=(0,es._g)({autoConnect:!1,connectors:function({chains:e,projectId:t}){return[new en({chains:e,options:{projectId:t,showQrModal:!1}}),new M._({chains:e,options:{shimDisconnect:!0}})]}({projectId:eb,chains:e_}),publicClient:ew}),eA=new class{constructor(e,t){this.wagmi={},this.chains=[],this.namespace="eip155",this.disconnect=B.zP,this.getAccount=B.D0,this.watchAccount=B.uH,this.fetchBalance=B.EG,this.getNetwork=B.Hy,this.watchNetwork=B.QC,this.switchNetwork=B.If,this.fetchEnsName=B.Lk,this.fetchEnsAvatar=B.w6,this.wagmi=e,this.chains=t}getWalletConnectConnector(){let e=this.wagmi.connectors.find(e=>"walletConnect"===e.id);if(!e)throw Error("WalletConnectConnector is required");return e}async connectWalletConnectProvider(e,t){return await e.getProvider(),new Promise(n=>{e.once("message",e=>{"display_uri"===e.type&&(t(e.data),n())})})}getConnectorById(e){let t=this.wagmi.connectors.find(t=>t.id===e);if(!t)throw Error(`Connector for id ${e} was not found`);return t}getConnectors(){return this.wagmi.connectors.filter(e=>!e.id.includes("walletConnect"))}async connectWalletConnect(e,t){let n=this.getWalletConnectConnector(),r={connector:n};return t&&(r.chainId=t),Promise.all([(0,B.$j)(r),this.connectWalletConnectProvider(n,e)])}async connectConnector(e,t){let n={connector:this.getConnectorById(e)};return t&&(n.chainId=t),await (0,B.$j)(n)}isInjectedProviderInstalled(){return"u">typeof window.ethereum}safeCheckInjectedProvider(e){var t;try{let n=String(e);return!!(null==(t=window.ethereum)?void 0:t[n])}catch(e){return console.error(e),!1}}async getConnectedChainIds(){var e,t,n;let r=null==(t=null==(e=(await this.getWalletConnectConnector().getProvider()).signer)?void 0:e.session)?void 0:t.namespaces,i=null==(n=r?.[this.namespace])?void 0:n.methods;if(null!=i&&i.includes("wallet_addEthereumChain"))return"ALL";if(r){let e=[];return Object.keys(r).forEach(t=>{t.includes(this.namespace)&&e.push(...r[t].accounts)}),e?.map(e=>e.split(":")[1])}return"ALL"}}(eE,N.S7),ex=function(){let e;if(eu){let t=document.querySelector('meta[name="emotion-insertion-point"]');e=null!=t?t:void 0}return(0,eo.Z)({key:"mui-style",insertionPoint:e})}();function eC(e){let{Component:t,emotionCache:n=ex,pageProps:r}=e;return(0,A.BX)(x.C,{value:n,children:[(0,A.BX)(ea(),{children:[(0,A.tZ)("title",{children:"Superfluid Checkout Builder | Web3 Subscriptions Toolkit"}),(0,A.tZ)("meta",{name:"viewport",content:"initial-scale=1, width=device-width"})]}),(0,A.BX)(R.Z,{theme:ey,children:[(0,A.tZ)(F,{}),(0,A.BX)(es.eM,{config:eE,children:[(0,A.tZ)(t,{...r}),(0,A.tZ)(eS,{})]}),(0,A.tZ)(er.Eg,{projectId:eb,ethereumClient:eA,themeVariables:{"--w3m-z-index":"1210"}})]})]})}function eS(){let e=(0,ec.ZP)();return ed({analyticsBrowser:e}),null}},73703:function(e,t,n){"use strict";let r,i,a,s,o,u,c,l,d,h,f,p,m,g;let y=Object.prototype.toString;function b(e){switch(y.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return D(e,Error)}}function v(e,t){return y.call(e)===`[object ${t}]`}function w(e){return v(e,"ErrorEvent")}function _(e){return v(e,"DOMError")}function E(e){return v(e,"String")}function A(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function x(e){return v(e,"Object")}function C(e){return"undefined"!=typeof Event&&D(e,Event)}function S(e){return!!(e&&e.then&&"function"==typeof e.then)}function k(e){return"number"==typeof e&&e!=e}function D(e,t){try{return e instanceof t}catch(e){return!1}}function I(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}var O,T,P,F,R,N,B,M,j,L,U,z,q,G,Z,W,$,H,Q,V=n(59075);let K=(0,V.Rf)();function J(e,t={}){try{let n,r=e,i=[],a=0,s=0,o=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&a++<5&&(n=function(e,t){let n,r,i,a,s;let o=[];if(!e||!e.tagName)return"";o.push(e.tagName.toLowerCase());let u=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(u&&u.length)u.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&o.push(`#${e.id}`),(n=e.className)&&E(n))for(s=0,r=n.split(/\s+/);s<r.length;s++)o.push(`.${r[s]}`);let c=["aria-label","type","name","title","alt"];for(s=0;s<c.length;s++)i=c[s],(a=e.getAttribute(i))&&o.push(`[${i}="${a}"]`);return o.join("")}(r,o),"html"!==n&&(!(a>1)||!(s+3*i.length+n.length>=u)));)i.push(n),s+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function Y(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function X(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{I(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ee(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!E(e)&&(v(t,"RegExp")?t.test(e):!!E(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function et(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&er(i,r),e[t]=i}function en(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(e){}}function er(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,en(e,"__sentry_original__",t)}catch(e){}}function ei(e){return e.__sentry_original__}function ea(e){if(b(e))return{message:e.message,name:e.name,stack:e.stack,...eo(e)};if(!C(e))return e;{let t={type:e.type,target:es(e.target),currentTarget:es(e.currentTarget),...eo(e)};return"undefined"!=typeof CustomEvent&&D(e,CustomEvent)&&(t.detail=e.detail),t}}function es(e){try{return"undefined"!=typeof Element&&D(e,Element)?J(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function eo(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function eu(e){let t=new Map;return function e(t,n){if(x(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,t)}function ec(){let e=V.n2,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function el(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ed(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function eh(e,t){let n=el(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function ef(e){if(e&&e.__sentry_captured__)return!0;try{en(e,"__sentry_captured__",!0)}catch(e){}return!1}function ep(e){return Array.isArray(e)?e:[e]}var em=n(76153);let eg=["debug","info","warn","error","log","assert","trace"],ey={};!function(){let e={enable:()=>{},disable:()=>{}};eg.forEach(t=>{e[t]=()=>void 0})}();let eb="production";function ev(e){return new e_(t=>{t(e)})}function ew(e){return new e_((t,n)=>{n(e)})}(O=U||(U={}))[O.PENDING=0]="PENDING",O[O.RESOLVED=1]="RESOLVED",O[O.REJECTED=2]="REJECTED";class e_{constructor(e){e_.prototype.__init.call(this),e_.prototype.__init2.call(this),e_.prototype.__init3.call(this),e_.prototype.__init4.call(this),this._state=U.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new e_((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new e_((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(U.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(U.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===U.PENDING){if(S(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===U.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===U.RESOLVED&&e[1](this._value),this._state===U.REJECTED&&e[2](this._value),e[0]=!0)})}}}function eE(){return(0,V.YO)("globalEventProcessors",()=>[])}function eA(e){eE().push(e)}function ex(e,t,n,r=0){return new e_((i,a)=>{let s=e[r];if(null===t||"function"!=typeof s)i(t);else{let o=s({...t},n);S(o)?o.then(t=>ex(e,t,n,r+1).then(i)).then(null,a):ex(e,o,n,r+1).then(i).then(null,a)}})}function eC(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,em.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ec()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class eS{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ek()}static clone(e){let t=new eS;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&eC(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof eS?t:this}return e instanceof eS?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):x(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=ek(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,em.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};let n=t.name;n&&(e.tags={transaction:n,...e.tags})}}this._applyFingerprint(e);let r=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...r];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},ex([...n||[],...eE(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?ep(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function ek(){return{traceId:ec(),spanId:ec().substring(16)}}class eD{constructor(e,t=new eS,n=4){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=eS.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:ec(),r=Error("Sentry syntheticException");return this._withClient((i,a)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},a)}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:ec(),i=Error(e);return this._withClient((a,s)=>{a.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},s)}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:ec();return e.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let s=(0,em.yW)(),o={timestamp:s,...e},u=i?function(e){if(!("console"in V.n2))return e();let t=V.n2.console,n={},r=Object.keys(ey);r.forEach(e=>{let r=ey[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}(()=>i(o,t)):o;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,t),n.addBreadcrumb(u,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=eO(this);try{e(this)}finally{eO(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(e){return null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop(),t=e.scope,n=t.getSession();if(n){var r;let e;e={},r?e={status:r}:"ok"===n.status&&(e={status:"exited"}),eC(n,e)}this._sendSessionUpdate(),t.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=eb}=n&&n.getOptions()||{},{userAgent:a}=V.n2.navigator||{},s=function(e){let t=(0,em.ph)(),n={sid:ec(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>eu({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&eC(n,e),n}({release:r,environment:i,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&eC(o,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=eI(),r=n.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t)}}function eI(){return V.n2.__SENTRY__=V.n2.__SENTRY__||{extensions:{},hub:void 0},V.n2}function eO(e){let t=eI(),n=eP(t);return eF(t,e),n}function eT(){let e=eI();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=eI()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||eP(e).isOlderThan(4))&&eF(e,new eD),eP(e)}(e)}function eP(e){return(0,V.YO)("hub",()=>new eD,e)}function eF(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function eR(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=eT().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}let eN=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function eB(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function eM(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}class ej{static __initStatic(){this.id="RewriteFrames"}constructor(e={}){ej.prototype.__init.call(this),this.name=ej.id,e.root&&(this._root=e.root),this._prefix=e.prefix||"app:///",e.iteratee&&(this._iteratee=e.iteratee)}setupOnce(e,t){e(e=>{let n=t().getIntegration(ej);return n?n.process(e):e})}process(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=this._processExceptionsEvent(t)),t}__init(){this._iteratee=e=>{if(!e.filename)return e;let t=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),n=/^\//.test(e.filename);if(t||n){var r;let n;let i=t?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,a=this._root?function(e,t){e=eB(e).slice(1),t=eB(t).slice(1);let n=eM(e.split("/")),r=eM(t.split("/")),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let s=[];for(let e=a;e<n.length;e++)s.push("..");return(s=s.concat(r.slice(a))).join("/")}(this._root,i):(n=function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=eN.exec(t);return n?n.slice(1):[]}(i)[2],r&&n.slice(-1*r.length)===r&&(n=n.slice(0,n.length-r.length)),n);e.filename=`${this._prefix}${a}`}return e}}_processExceptionsEvent(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:this._processStacktrace(e.stacktrace)}}))}}}catch(t){return e}}_processStacktrace(e){return{...e,frames:e&&e.frames&&e.frames.map(e=>this._iteratee(e))}}}ej.__initStatic();let eL="7.72.0",eU=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],ez=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class eq{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=eq.id,this._options=e}setupOnce(e,t){let n=e=>{let n=t();if(n){let t=n.getIntegration(eq);if(t){var r;let i=n.getClient(),a=i?i.getOptions():{},s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:eU],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:ez],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,a);return s.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)||(r=s.ignoreErrors,!e.type&&r&&r.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(e).some(e=>ee(e,r)))||function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&ee(n,t)}(e,s.ignoreTransactions)||function(e,t){if(!t||!t.length)return!1;let n=eG(e);return!!n&&ee(n,t)}(e,s.denyUrls)||!function(e,t){if(!t||!t.length)return!0;let n=eG(e);return!n||ee(n,t)}(e,s.allowUrls)?null:e}}return e};n.id=this.name,e(n)}}function eG(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(e){return null}}eq.__initStatic();class eZ{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=eZ.id}setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ei(this)||this;return r.apply(t,e)}}catch(e){}}}eZ.__initStatic();let eW=[];function e$(e,t,n){if(n[t.name]=t,-1===eW.indexOf(t.name)&&(t.setupOnce(eA,eT),eW.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}}let eH=/\(error: (.*)\)/,eQ=/captureMessage|captureException/;function eV(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let r=[],i=e.split("\n");for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let a=eH.test(n)?n.replace(eH,"$1"):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),eQ.test(t[t.length-1].function||"")&&(t.pop(),eQ.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(r)}}let eK="<anonymous>";function eJ(e){try{if(!e||"function"!=typeof e)return eK;return e.name||eK}catch(e){return eK}}let eY=(0,V.Rf)();function eX(){if(!("fetch"in eY))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function e0(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let e1=(0,V.Rf)(),e2=(0,V.Rf)(),e5="__sentry_xhr_v2__",e3={},e6={};function e8(e,t){e3[e]=e3[e]||[],e3[e].push(t),function(e){if(!e6[e])switch(e6[e]=!0,e){case"console":"console"in V.n2&&eg.forEach(function(e){e in V.n2.console&&et(V.n2.console,e,function(t){return ey[e]=t,function(...t){e4("console",{args:t,level:e});let n=ey[e];n&&n.apply(V.n2.console,t)}})});break;case"dom":(function(){if(!e2.document)return;let e=e4.bind(null,"dom"),t=te(e,!0);e2.document.addEventListener("click",t,!1),e2.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=e2[t]&&e2[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(et(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=te(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),et(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})})();break;case"xhr":(function(){if(!e2.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;et(e,"open",function(e){return function(...t){let n=t[1],r=this[e5]={method:E(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};E(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let e=this[e5];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}e4("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?et(this,"onreadystatechange",function(e){return function(...t){return i(),e.apply(this,t)}}):this.addEventListener("readystatechange",i),et(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[e5];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),et(e,"send",function(e){return function(...t){let n=this[e5];return n&&void 0!==t[0]&&(n.body=t[0]),e4("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})})();break;case"fetch":!function(){if(!eX())return!1;if(e0(eY.fetch))return!0;let e=!1,t=eY.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=e0(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){}return e}()||et(V.n2,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:e7(t),method:e9(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:e7(t),method:e9(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return e4("fetch",{...i}),e.apply(V.n2,t).then(e=>(e4("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw e4("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}});break;case"history":(function(){if(!function(){let e=e1.chrome,t=e&&e.app&&e.app.runtime,n="history"in e1&&!!e1.history.pushState&&!!e1.history.replaceState;return!t&&n}())return;let e=e2.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=i,t=String(n);i=t,e4("history",{from:e,to:t})}return e.apply(this,t)}}e2.onpopstate=function(...t){let n=e2.location.href,r=i;if(i=n,e4("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},et(e2.history,"pushState",t),et(e2.history,"replaceState",t)})();break;case"error":tt=e2.onerror,e2.onerror=function(e,t,n,r,i){return e4("error",{column:r,error:i,line:n,msg:e,url:t}),!!tt&&!tt.__SENTRY_LOADER__&&tt.apply(this,arguments)},e2.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":tn=e2.onunhandledrejection,e2.onunhandledrejection=function(e){return e4("unhandledrejection",e),!tn||!!tn.__SENTRY_LOADER__||tn.apply(this,arguments)},e2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return}}(e)}function e4(e,t){if(e&&e3[e])for(let n of e3[e]||[])try{n(t)}catch(e){}}function e9(e,t){return!!e&&"object"==typeof e&&!!e[t]}function e7(e){return"string"==typeof e?e:e?e9(e,"url")?e.url:e.toString?e.toString():"":""}function te(e,t=!1){return n=>{if(!n||s===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;let r="keypress"===n.type?"input":n.type;void 0===a?(e({event:n,name:r,global:t}),s=n):function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(s,n)&&(e({event:n,name:r,global:t}),s=n),clearTimeout(a),a=e2.setTimeout(()=>{a=void 0},1e3)}}let tt=null,tn=null,tr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ti(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:u}=e;return`${o}://${u}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}function ta(e){let t=tr.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return}let[n,r,i="",a,s="",o]=t.slice(1),u="",c=o,l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return ts({host:a,pass:i,path:u,projectId:c,port:s,protocol:n,publicKey:r})}function ts(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function to(e,t=100,r=Infinity){try{return function e(t,r,i=Infinity,a=Infinity,s=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){let r=t[e];if(r===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[o,u]=s;if(null==r||["number","boolean","string"].includes(typeof r)&&!k(r))return r;let c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(I(t))return"[VueViewModel]";if(x(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${eJ(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!c.startsWith("[object "))return c;if(r.__sentry_skip_normalization__)return r;let l="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===l)return c.replace("object ","");if(o(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,l-1,a,s)}catch(e){}let d=Array.isArray(r)?[]:{},h=0,f=ea(r);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(h>=a){d[t]="[MaxProperties ~]";break}let n=f[t];d[t]=e(t,n,l-1,a,s),h++}return u(r),d}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tu(e,t=[]){return[e,t]}function tc(e,t){let n=e[1];for(let e of n){let n=e[0].type,r=t(e,n);if(r)return!0}return!1}function tl(e,t){let n=t||new TextEncoder;return n.encode(e)}let td={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function th(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function tf(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&{dsn:ti(r)},...i&&{trace:eu({...i})}}}class tp extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function tm(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=eu({environment:r.environment||eb,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function tg(e,t,n,r,i){let{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,o={...t,event_id:t.event_id||n.event_id||ec(),timestamp:t.timestamp||(0,em.yW)()},u=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:eb),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Y(e.message,a));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Y(s.value,a));let o=e.request;o&&o.url&&(o.url=Y(o.url,a))})(o,e),u.length>0&&(o.sdk=o.sdk||{},o.sdk.integrations=[...o.sdk.integrations||[],...u]),void 0===t.type&&function(e,t){let n;let r=V.n2._sentryDebugIds;if(!r)return;let i=ty.get(t);i?n=i:(n=new Map,ty.set(t,n));let a=Object.keys(r).reduce((e,i)=>{let a;let s=n.get(i);s?a=s:(a=t(i),n.set(i,a));for(let t=a.length-1;t>=0;t--){let n=a[t];if(n.filename){e[n.filename]=r[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=a[e.filename])})})}catch(e){}}(o,e.stackParser);let c=r;n.captureContext&&(c=eS.clone(c).update(n.captureContext));let l=ev(o),d=i&&i.getEventProcessors?i.getEventProcessors():[];if(c){if(c.getAttachments){let e=[...n.attachments||[],...c.getAttachments()];e.length&&(n.attachments=e)}l=c.applyToEvent(o,n,d)}else l=ex([...d,...eE()],o,n);return l.then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof a&&a>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:to(e.data,t,n)}}))},...e.user&&{user:to(e.user,t,n)},...e.contexts&&{contexts:to(e.contexts,t,n)},...e.extra&&{extra:to(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=to(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>(e.data&&(e.data=to(e.data,t,n)),e))),r}(e,a,s):e)}let ty=new WeakMap;class tb{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn&&(this._dsn=function(e){let t="string"==typeof e?ta(e):ts(e);if(t)return t}(e.dsn)),this._dsn){let t=function(e,t={}){var n;let r="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${Object.keys(n={sentry_key:e.publicKey,sentry_version:"7",...i&&{sentry_client:`${i.name}/${i.version}`}}).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&")}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(ef(e))return;let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,a=A(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(a.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&ef(t.originalException))return;let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(e=>{r=e})),r}captureSession(e){this._isEnabled()&&("string"!=typeof e.release||(this.sendSession(e),eC(e,{init:!1})))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e)):ev(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&e$(e,t,n)}),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(e){return null}}addIntegration(e){e$(this,e,this._integrations)}sendEvent(e,t={}){if(this.emit("beforeSendEvent",e,t),this._dsn){let n=function(e,t,n,r){var i;let a=th(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let o=tf(e,a,r,t);delete e.sdkProcessingMetadata;let u=[{type:s},e];return tu(o,[u])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e,t){let n="string"==typeof e.data?tl(e.data,t):e.data;return[eu({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}}sendSession(e){if(this._dsn){let t=function(e,t,n,r){let i=th(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:ti(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return tu(a,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let a="ok"===e.status,s=a&&0===e.errors||a&&n;s&&(eC(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new e_(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),tg(r,e,t,n,this).then(e=>{if(null===e)return e;let{propagationContext:t}=e.sdkProcessingMetadata||{},r=e.contexts&&e.contexts.trace;if(!r&&t){let{traceId:r,spanId:i,parentSpanId:a,dsc:s}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:a},...e.contexts};let o=s||tm(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return ew(new tp("SDK not enabled, will not capture event.","log"));let a=tw(e),s=tv(e),o=e.type||"error",u=`before send for type \`${o}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),ew(new tp(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new tp("An event processor returned `null`, will not send event.","log");let i=t.data&&!0===t.data.__sentry__;if(i)return n;let a=function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return tv(t)&&r?r(t,n):tw(t)&&i?i(t,n):t}(r,n,t);return function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(S(e))return e.then(e=>{if(!x(e)&&null!==e)throw new tp(n);return e},e=>{throw new tp(`${t} rejected with ${e}`)});if(!x(e)&&null!==e)throw new tp(n);return e}(a,u)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new tp(`${u} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!a&&i&&this._updateSessionFromEvent(i,r);let s=r.transaction_info;return a&&s&&r.transaction!==e.transaction&&(r.transaction_info={...s,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof tp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new tp(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,e=>{})}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function tv(e){return void 0===e.type}function tw(e){return"transaction"===e.type}var t_=n(38260);function tE(e,t){let n=tx(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tA(e,t){return{exception:{values:[tE(e,t)]}}}function tx(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(tC.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}let tC=/Minified React error #\d+;/i;function tS(e,t,n,r,i){let a;if(w(t)&&t.error)return tA(e,t.error);if(_(t)||v(t,"DOMException")){if("stack"in t)a=tA(e,t);else{let i=t.name||(_(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;ed(a=tk(e,s,n,r),s)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return b(t)?tA(e,t):(x(t)||C(t)?eh(a=function(e,t,n,r){let i=eT(),a=i.getClient(),s=a&&a.getOptions().normalizeDepth,o={exception:{values:[{type:C(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(ea(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Y(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return Y(r,t)}}return""}(e),r=t?"promise rejection":"exception";if(w(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(C(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:{__serialized__:function e(t,n=3,r=102400){let i=to(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,s)}};if(n){let t=tx(e,n);t.length&&(o.exception.values[0].stacktrace={frames:t})}return o}(e,t,n,i),{synthetic:!0}):(ed(a=tk(e,t,n,r),`${t}`,void 0),eh(a,{synthetic:!0})),a)}function tk(e,t,n,r){let i={message:t};if(r&&n){let r=tx(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}let tD=V.n2,tI=0;function tO(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(ei(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>tO(e,t));return e.apply(this,i)}catch(e){throw tI++,setTimeout(()=>{tI--}),eT().withScope(n=>{n.addEventProcessor(e=>(t.mechanism&&(ed(e,void 0,void 0),eh(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),eT().captureException(e,{captureContext:void 0})}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}er(r,e),en(e,"__sentry_wrapped__",r);try{let t=Object.getOwnPropertyDescriptor(r,"name");t.configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class tT extends tb{constructor(e){let t=tD.SENTRY_SDK_SOURCE||(0,t_.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:eL}],version:eL},super(e),e.sendClientReports&&tD.document&&tD.document.addEventListener("visibilitychange",()=>{"hidden"===tD.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=n&&n.syntheticException||void 0,a=tS(e,t,i,r);return eh(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),ev(a)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let a=r&&r.syntheticException||void 0,s=tk(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),ev(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:ti(r)}},a=[{type:"user_report"},e];return tu(i,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length||!this._dsn)return;let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,em.yW)(),discarded_events:e}];return tu(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&ti(this._dsn));this._sendEnvelope(t)}}class tP{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=tP.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:tF,onunhandledrejection:tR}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let t in e){let n=this._installFunc[t];n&&e[t]&&(n(),this._installFunc[t]=void 0)}}}function tF(){e8("error",e=>{let[t,n,r]=tM();if(!t.getIntegration(tP))return;let{msg:i,url:a,line:s,column:o,error:u}=e;if(tI>0||u&&u.__sentry_own_request__)return;let c=void 0===u&&E(i)?function(e,t,n,r){let i=w(e)?e.message:e,a="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(a=s[1],i=s[2]);let o={exception:{values:[{type:a,value:i}]}};return tN(o,t,n,r)}(i,a,s,o):tN(tS(n,u||i,void 0,r,!1),a,s,o);c.level="error",tB(t,u,c,"onerror")})}function tR(){e8("unhandledrejection",e=>{let[t,n,r]=tM();if(!t.getIntegration(tP))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(tI>0||i&&i.__sentry_own_request__)return!0;let a=A(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:tS(n,i,void 0,r,!0);a.level="error",tB(t,i,a,"onunhandledrejection")})}function tN(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},u=o.frames=o.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=E(t)&&t.length>0?t:function(){try{return K.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:l}),e}function tB(e,t,n,r){eh(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function tM(){let e=eT(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}tP.__initStatic();let tj=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class tL{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=tL.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&et(tD,"setTimeout",tU),this._options.setInterval&&et(tD,"setInterval",tU),this._options.requestAnimationFrame&&et(tD,"requestAnimationFrame",tz),this._options.XMLHttpRequest&&"XMLHttpRequest"in tD&&et(XMLHttpRequest.prototype,"send",tq);let e=this._options.eventTarget;if(e){let t=Array.isArray(e)?e:tj;t.forEach(tG)}}}function tU(e){return function(...t){let n=t[0];return t[0]=tO(n,{mechanism:{data:{function:eJ(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tz(e){return function(t){return e.apply(this,[tO(t,{mechanism:{data:{function:"requestAnimationFrame",handler:eJ(e)},handled:!1,type:"instrument"}})])}}function tq(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&et(n,e,function(t){let n={mechanism:{data:{function:e,handler:eJ(t)},handled:!1,type:"instrument"}},r=ei(t);return r&&(n.mechanism.data.handler=eJ(r)),tO(t,n)})}),e.apply(this,t)}}function tG(e){let t=tD[e]&&tD[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(et(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=tO(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:eJ(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,tO(r,{mechanism:{data:{function:"addEventListener",handler:eJ(r),target:e},handled:!1,type:"instrument"}}),i])}}),et(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}tL.__initStatic();let tZ=["fatal","error","warning","log","info","debug"];function tW(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}class t${static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=t$.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;if(this.options.console&&e8("console",tQ),this.options.dom&&e8("dom",(e=this.options.dom,function(t){let n;let r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(i=1024),"string"==typeof r&&(r=[r]);try{let e=t.event;n=e&&e.target?J(e.target,{keyAttrs:r,maxStringLength:i}):J(e,{keyAttrs:r,maxStringLength:i})}catch(e){n="<unknown>"}0!==n.length&&eT().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&e8("xhr",tV),this.options.fetch&&e8("fetch",tK),this.options.history&&e8("history",tJ),this.options.sentry){let e=eT().getClient();e&&e.on&&e.on("beforeSendEvent",tH)}}}function tH(e){eT().addBreadcrumb({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:function(e){let{message:t,event_id:n}=e;if(t)return t;let r=el(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}(e)},{event:e})}function tQ(e){var t;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":tZ.includes(t)?t:"log",message:X(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${X(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}eT().addBreadcrumb(n,{input:e.args,level:e.level})}function tV(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[e5];if(!t||!n||!r)return;let{method:i,url:a,status_code:s,body:o}=r,u={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};eT().addBreadcrumb({category:"xhr",data:{method:i,url:a,status_code:s},type:"http"},u)}function tK(e){let{startTimestamp:t,endTimestamp:n}=e;if(!(!n||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};eT().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};eT().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}}function tJ(e){let t=e.from,n=e.to,r=tW(tD.location.href),i=tW(t),a=tW(n);i.path||(i=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),eT().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function tY(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function tX(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}t$.__initStatic();class t0{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=t0.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){let r=n.getOptions();!function(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!D(s.originalException,Error))return;let o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=(function e(t,n,r,i,a,s,o,u){if(s.length>=r+1)return s;let c=[...s];if(D(i[a],Error)){tY(o,u);let s=t(n,i[a]),l=c.length;tX(s,a,l,u),c=e(t,n,r,i[a],a,[s,...c],s,l)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if(D(i,Error)){tY(o,u);let l=t(n,i),d=c.length;tX(l,`errors[${s}]`,d,u),c=e(t,n,r,i,a,[l,...c],l,d)}}),c})(e,t,i,s.originalException,r,a.exception.values,o,0).map(e=>(e.value&&(e.value=Y(e.value,n)),e)))}(tE,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}}t0.__initStatic();class t1{static __initStatic(){this.id="HttpContext"}constructor(){this.name=t1.id}setupOnce(){}preprocessEvent(e){if(!tD.navigator&&!tD.location&&!tD.document)return;let t=e.request&&e.request.url||tD.location&&tD.location.href,{referrer:n}=tD.document||{},{userAgent:r}=tD.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}t1.__initStatic();class t2{static __initStatic(){this.id="Dedupe"}constructor(){this.name=t2.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{var t;if((t=this._previousEvent)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&t3(e,t)&&t5(e,t))}(e,t)||function(e,t){let n=t6(t),r=t6(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&t3(e,t)&&t5(e,t))}(e,t)))return null}catch(e){}return this._previousEvent=e}}function t5(e,t){let n=t8(e),r=t8(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function t3(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function t6(e){return e.exception&&e.exception.values&&e.exception.values[0]}function t8(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}function t4(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}t2.__initStatic();let t9=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,t7=/\((\S*)(?::(\d+))(?::(\d+))\)/,ne=[30,e=>{let t=t9.exec(e);if(t){let e=t[2]&&0===t[2].indexOf("eval");if(e){let e=t7.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[n,r]=no(t[1]||"?",t[2]);return t4(r,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],nt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nr=[50,e=>{let t=nt.exec(e);if(t){let e=t[3]&&t[3].indexOf(" > eval")>-1;if(e){let e=nn.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let n=t[3],r=t[1]||"?";return[r,n]=no(r,n),t4(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],ni=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,na=[40,e=>{let t=ni.exec(e);return t?t4(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],ns=eV(...[ne,nr,na]),no=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function nu(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return ew(new tp("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new e_((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{ev(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){let a=[];if(tc(i,(t,n)=>{let i=td[n];if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,i)){let r=nc(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else a.push(t)}),0===a.length)return ev();let s=tu(i[0],a),o=t=>{tc(s,(n,r)=>{let i=nc(n,r);e.recordDroppedEvent(t,td[r],i)})};return n.add(()=>t({body:function(e,t){let[n,r]=e,i=JSON.stringify(n);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[tl(i,t),e]:i.push("string"==typeof e?tl(e,t):e)}for(let e of r){let[t,n]=e;if(a(`
${JSON.stringify(t)}
`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(to(n))}a(e)}}return"string"==typeof i?i:function(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(i)}(s,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode),r=function(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n]=e.split(":",2),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))i[e]=r+s;else i.all=r+s}else s?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw o("network_error"),e})).then(e=>e,e=>{if(e instanceof tp)return o("queue_overflow"),ev();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function nc(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function nl(e,t=function(){if(p)return p;if(e0(tD.fetch))return p=tD.fetch.bind(tD);let e=tD.document,t=tD.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){}return p=t.bind(tD)}()){let n=0,r=0;return nu(e,function(i){let a=i.body.length;n+=a,r++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return p=void 0,n-=a,r--,ew(e)}})}function nd(e){return nu(e,function(t){return new e_((n,r)=>{let i=new XMLHttpRequest;for(let t in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}let nh=[new eq,new eZ,new tL,new t$,new tP,new t0,new t2,new t1];function nf(e){e.startSession({ignoreDuration:!0}),e.captureSession()}let np="baggage",nm="sentry-",ng=/^sentry-/;function ny(e){if(!e)return;let t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${nm}${t}`]=n),e),{});return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===r?i:`${e},${i}`;return a.length>8192?e:a},"")}(t)}function nb(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}let nv=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function nw(e,t){let n=function(e){let t;if(!e)return;let n=e.match(nv);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=function(e){if(!E(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=nb(t);return{...e,...n}},{});else{if(!e)return;t=nb(e)}let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(ng)){let r=t.slice(nm.length);e[r]=n}return e},{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{},o={traceId:i||ec(),spanId:ec().substring(16),sampled:s};return a&&(o.parentSpanId=a),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function n_(e=ec(),t=ec().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}class nE{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class nA{constructor(e={}){this.traceId=e.traceId||ec(),this.spanId=e.spanId||ec().substring(16),this.startTimestamp=e.startTimestamp||(0,em.ph)(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let t=new nA({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});return t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){this.endTimestamp="number"==typeof e?e:(0,em.ph)()}toTraceparent(){return n_(this.traceId,this.spanId,this.sampled)}toContext(){return eu({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return eu({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return eu({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}class nx extends nA{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||eT(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new nE(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(this.name="<unlabeled transaction>"),super.finish(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled){t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&e.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e).endTimestamp);let r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}},a=Object.keys(this._measurements).length>0;return a&&(i.measurements=this._measurements),this._hub.captureEvent(i)}toContext(){let e=super.toContext();return eu({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||eT(),t=e.getClient();if(!t)return{};let n=e.getScope(),r=tm(this.traceId,t,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);let a=this.metadata.source;return a&&"url"!==a&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(e){this._hub=e}}let nC={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class nS extends nE{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,em.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class nk extends nx{constructor(e,t,n=nC.idleTimeout,r=nC.finalTimeout,i=nC.heartbeatInterval,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",a&&t.configureScope(e=>e.setSpan(this)),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.finish())},this._finalTimeout)}finish(e=(0,em.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){for(let t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"));let n=t.startTimestamp<e,r=(this._finalTimeout+this._idleTimeout)/1e3,i=t.endTimestamp-this.startTimestamp<r;return n&&i})}if(this._onScope){let e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){this.spanRecorder||(this.spanRecorder=new nS(e=>{this._finished||this._pushActivity(e)},e=>{this._finished||this._popActivity(e)},this.spanId,e),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.finish(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),this.activities[e]=!0}_popActivity(e){if(this.activities[e]&&delete this.activities[e],0===Object.keys(this.activities).length){let e=(0,em.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason="cancelled",this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.finish()):this._pingHeartbeat()}_pingHeartbeat(){setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function nD(e){let t=e||eT(),n=t.getScope();return n.getTransaction()}let nI=!1;function nO(){let e=nD();e&&e.setStatus("internal_error")}function nT(){let e=this.getScope(),t=e.getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function nP(e,t,n){var r;let i;return eR(t)?void 0!==e.sampled?e.setMetadata({sampleRate:Number(e.sampled)}):("function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setMetadata({sampleRate:Number(i)})):(i=1,e.setMetadata({sampleRate:i})),k(r=i)||"number"!=typeof r&&"boolean"!=typeof r||r<0||r>1||!i)?e.sampled=!1:(e.sampled=Math.random()<i,e.sampled):e.sampled=!1,e}function nF(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(e.sampled=!1);let s=new nx(e,this);return(s=nP(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t})).sampled&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function nR(e,t,n,r,i,a,s){let o=e.getClient(),u=o&&o.getOptions()||{},c=new nk(t,e,n,r,s,i);return(c=nP(c,u,{parentSampled:t.parentSampled,transactionContext:t,...a})).sampled&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",c),c}nO.tag="sentry_tracingErrorCallback";let nN=V.n2,nB=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},nM=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,nj=()=>{let e=nN.performance.timing,t=nN.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n},nL=()=>nN.__WEB_VITALS_POLYFILL__?nN.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||nj()):nN.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nU=()=>{let e=nL();return e&&e.activationStart||0},nz=(e,t)=>{let n=nL(),r="navigate";return n&&(r=nN.document.prerendering||nU()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:nM(),navigationType:r}},nq=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},nG=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===nN.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},nZ=e=>{let t;let n=nz("CLS",0),r=0,i=[],a=e=>{e.forEach(e=>{if(!e.hadRecentInput){let a=i[0],s=i[i.length-1];r&&0!==i.length&&e.startTime-s.startTime<1e3&&e.startTime-a.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>n.value&&(n.value=r,n.entries=i,t&&t())}})},s=nq("layout-shift",a);if(s){t=nB(e,n);let r=()=>{a(s.takeRecords()),t(!0)};return nG(r),r}},nW=-1,n$=()=>"hidden"!==nN.document.visibilityState||nN.document.prerendering?1/0:0,nH=()=>{nG(({timeStamp:e})=>{nW=e},!0)},nQ=()=>(nW<0&&(nW=n$(),nH()),{get firstHiddenTime(){return nW}}),nV=e=>{let t;let n=nQ(),r=nz("FID"),i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))},a=e=>{e.forEach(i)},s=nq("first-input",a);t=nB(e,r),s&&nG(()=>{a(s.takeRecords()),s.disconnect()},!0)},nK={},nJ=e=>{let t;let n=nQ(),r=nz("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-nU(),0);e<n.firstHiddenTime&&(r.value=e,r.entries=[i],t())}},a=nq("largest-contentful-paint",i);if(a){t=nB(e,r);let n=()=>{nK[r.id]||(i(a.takeRecords()),a.disconnect(),nK[r.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{addEventListener(e,n,{once:!0,capture:!0})}),nG(n,!0),n}};function nY(e){return"number"==typeof e&&isFinite(e)}function nX(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function n0(e){return e/1e3}function n1(){return nN&&nN.addEventListener&&nN.performance}let n2=0,n5={};function n3(e,t,n,r,i,a){let s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];o&&s&&nX(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+n0(o),endTimestamp:r+n0(s)})}let n6=["localhost",/^\/(?!\/)/],n8={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:n6,tracePropagationTargets:n6};function n4(e){let t=e.data.url,n=new PerformanceObserver(r=>{let i=r.getEntries();i.forEach(r=>{if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)){let t=function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),em.Z1)?[...r,["http.request.redirect_start",n9(e.redirectStart)],["http.request.fetch_start",n9(e.fetchStart)],["http.request.domain_lookup_start",n9(e.domainLookupStart)],["http.request.domain_lookup_end",n9(e.domainLookupEnd)],["http.request.connect_start",n9(e.connectStart)],["http.request.secure_connection_start",n9(e.secureConnectionStart)],["http.request.connection_end",n9(e.connectEnd)],["http.request.request_start",n9(e.requestStart)],["http.request.response_start",n9(e.responseStart)],["http.request.response_end",n9(e.responseEnd)]]:r}(r);t.forEach(t=>e.setData(...t)),n.disconnect()}})});n.observe({entryTypes:["resource"]})}function n9(e=0){return((em.Z1||performance.timeOrigin)+e)/1e3}function n7(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(np,n)}catch(e){}}let re={...nC,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){let r;if(!nN||!nN.location)return;let i=nN.location.href;t&&(r=e({name:nN.location.pathname,startTimestamp:em.Z1?em.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&e8("history",({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,r&&r.finish(),r=e({name:nN.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...n8};class rt{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,function(){let e=eI();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=nF),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=nT),nI||(nI=!0,e8("error",nO),e8("unhandledrejection",nO)))}(),this.options={...re,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=function(){let e=n1();if(e&&em.Z1){e.mark&&nN.performance.mark("sentry-tracing-init"),nV(e=>{let t=e.entries.pop();if(!t)return;let n=n0(em.Z1),r=n0(t.startTime);n5.fid={value:e.value,unit:"millisecond"},n5["mark.fid"]={value:n+r,unit:"second"}});let t=nZ(e=>{let t=e.entries.pop();t&&(n5.cls={value:e.value,unit:""},u=t)}),n=nJ(e=>{let t=e.entries.pop();t&&(n5.lcp={value:e.value,unit:"millisecond"},o=t)});return()=>{t&&t(),n&&n()}}return()=>void 0}(),this.options.enableLongTask&&nq("longtask",e=>{for(let t of e){let e=nD();if(!e)return;let n=n0(em.Z1+t.startTime),r=n0(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}),this.options._experiments.enableInteractions&&nq("event",e=>{for(let t of e){let e=nD();if(!e)return;if("click"===t.name){let n=n0(em.Z1+t.startTime),r=n0(t.duration);e.startChild({description:J(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}},{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;let n=t(),r=n.getClient(),i=r&&r.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:o,markBackgroundTransactions:u,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:h,_experiments:f}=this.options,p=i&&i.tracePropagationTargets,m=p||this.options.tracePropagationTargets;a(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},o,s),u&&nN&&nN.document&&nN.document.addEventListener("visibilitychange",()=>{let e=nD();nN.document.hidden&&e&&(e.status||e.setStatus("cancelled"),e.setTag("visibilitychange","document.hidden"),e.finish())}),f.enableInteractions&&this._registerInteractionListener(),function(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:n8.traceFetch,traceXHR:n8.traceXHR,...e},o="function"==typeof a?a:e=>!0,u=e=>ee(e,r||i||n6),c={};t&&e8("fetch",e=>{let t=function(e,t,n,r){if(!eR()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let t=e.fetchData.__span;if(!t)return;let n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);let t=e.response&&e.response.headers&&e.response.headers.get("content-length"),r=parseInt(t);r>0&&n.setData("http.response_content_length",r)}else e.error&&n.setStatus("internal_error");n.finish(),delete r[t]}return}let a=eT(),s=a.getScope(),o=a.getClient(),u=s.getSpan(),{method:c,url:l}=e.fetchData,d=i&&u?u.startChild({data:{url:l,type:"fetch","http.method":c},description:`${c} ${l}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(e.fetchData.__span=d.spanId,r[d.spanId]=d),n(e.fetchData.url)&&o){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let a=i||n.getSpan(),s=a&&a.transaction,{traceId:o,sampled:u,dsc:c}=n.getPropagationContext(),l=a?a.toTraceparent():n_(o,void 0,u),d=s?s.getDynamicSamplingContext():c||tm(o,t,n),h=ny(d),f="undefined"!=typeof Request&&D(e,Request)?e.headers:r.headers;if(!f)return{"sentry-trace":l,baggage:h};if("undefined"!=typeof Headers&&D(f,Headers)){let e=new Headers(f);return e.append("sentry-trace",l),h&&e.append(np,h),e}if(Array.isArray(f)){let e=[...f,["sentry-trace",l]];return h&&e.push([np,h]),e}{let e="baggage"in f?f.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),h&&t.push(h),{...f,"sentry-trace":l,baggage:t.length>0?t.join(","):void 0}}}(t,o,s,n,d)}return d}(e,o,u,c);s&&t&&n4(t)}),n&&e8("xhr",e=>{let t=function(e,t,n,r){let i=e.xhr,a=i&&i[e5];if(!eR()||i&&i.__sentry_own_request__||!i||!a)return;let s=t(a.url);if(e.endTimestamp&&s){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&(t.setHttpStatus(a.status_code),t.finish(),delete r[e]);return}let o=eT(),u=o.getScope(),c=u.getSpan(),l=s&&c?c.startChild({data:{...a.data,type:"xhr","http.method":a.method,url:a.url},description:`${a.method} ${a.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(l&&(i.__sentry_xhr_span_id__=l.spanId,r[i.__sentry_xhr_span_id__]=l),i.setRequestHeader&&n(a.url)){if(l){let e=l&&l.transaction,t=e&&e.getDynamicSamplingContext(),n=ny(t);n7(i,l.toTraceparent(),n)}else{let e=o.getClient(),{traceId:t,sampled:n,dsc:r}=u.getPropagationContext(),a=n_(t,void 0,n),s=r||(e?tm(t,e,u):void 0),c=ny(s);n7(i,a,c)}}return l}(e,o,u,c);s&&t&&n4(t)})}({traceFetch:c,traceXHR:l,tracePropagationTargets:m,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub)return;let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="pageload"===e.op,c=s?rn("sentry-trace"):"",l=s?rn("baggage"):"",{traceparentData:d,dynamicSamplingContext:h,propagationContext:f}=nw(c,l),p={...e,...d,metadata:{...e.metadata,dynamicSamplingContext:d&&!h?{}:h},trimEnd:!0},m="function"==typeof n?n(p):p,g=void 0===m?{...p,sampled:!1}:m;g.metadata=g.name!==p.name?{...g.metadata,source:"custom"}:g.metadata,this._latestRouteName=g.name,this._latestRouteSource=g.metadata&&g.metadata.source,g.sampled;let{location:y}=nN,b=nR(t,g,r,i,!0,{location:y},a),v=t.getScope();return s&&d?v.setPropagationContext(f):v.setPropagationContext({traceId:b.traceId,spanId:b.spanId,parentSpanId:b.parentSpanId,sampled:b.sampled}),b.registerBeforeFinishCallback(e=>{this._collectWebVitals(),function(e){let t,n;let r=n1();if(!r||!nN.performance.getEntries||!em.Z1)return;let i=n0(em.Z1),a=r.getEntries();if(a.slice(n2).forEach(r=>{let a=n0(r.startTime),s=n0(r.duration);if("navigation"!==e.op||!(i+a<e.startTimestamp))switch(r.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(t=>{n3(e,r,t,i)}),n3(e,r,"secureConnection",i,"TLS/SSL","connectEnd"),n3(e,r,"fetch",i,"cache","domainLookupStart"),n3(e,r,"domainLookup",i,"DNS"),nX(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:i+n0(r.requestStart),endTimestamp:i+n0(r.responseEnd)}),nX(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:i+n0(r.responseStart),endTimestamp:i+n0(r.responseEnd)}),t=i+n0(r.responseStart),n=i+n0(r.requestStart);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let a=i+n;nX(e,{description:t.name,endTimestamp:a+r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})})(e,r,a,s,i);let t=nQ(),n=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&n&&(n5.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&n&&(n5.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":{let t=r.name.replace(nN.location.origin,"");(function(e,t,n,r,i,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s={};"transferSize"in t&&(s["http.response_transfer_size"]=t.transferSize),"encodedBodySize"in t&&(s["http.response_content_length"]=t.encodedBodySize),"decodedBodySize"in t&&(s["http.decoded_response_content_length"]=t.decodedBodySize),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);let o=a+r,u=o+i;nX(e,{description:n,endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:s})})(e,r,t,a,s,i)}}}),n2=Math.max(a.length-1,0),function(e){let t=nN.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),nY(n.rtt)&&(n5["connection.rtt"]={value:n.rtt,unit:"millisecond"})),nY(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),nY(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof t&&(n5.ttfb={value:(t-e.startTimestamp)*1e3,unit:"millisecond"},"number"==typeof n&&n<=t&&(n5["ttfb.requestTime"]={value:(t-n)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(t=>{if(!n5[t]||i>=e.startTimestamp)return;let n=n5[t].value,r=i+n0(n),a=Math.abs((r-e.startTimestamp)*1e3);n5[t].value=a});let r=n5["mark.fid"];r&&n5.fid&&(nX(e,{description:"first input delay",endTimestamp:r.value+n0(n5.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:r.value}),delete n5["mark.fid"]),"fcp"in n5||delete n5.cls,Object.keys(n5).forEach(t=>{e.setMeasurement(t,n5[t].value,n5[t].unit)}),o&&(o.element&&e.setTag("lcp.element",J(o.element)),o.id&&e.setTag("lcp.id",o.id),o.url&&e.setTag("lcp.url",o.url.trim().slice(0,200)),e.setTag("lcp.size",o.size)),u&&u.sources&&u.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,J(t.node)))}o=void 0,u=void 0,n5={}}(e)}),b}_registerInteractionListener(){let e;let t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i=nD();if(i&&i.op&&["navigation","pageload"].includes(i.op)||(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub||!this._latestRouteName))return;let a=this._getCurrentHub(),{location:s}=nN,o={name:this._latestRouteName,op:"ui.action.click",trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=nR(a,o,t,n,!0,{location:s},r)};["click"].forEach(e=>{addEventListener(e,t,{once:!1,capture:!0})})}}function rn(e){var t;let n=(t=`meta[name=${e}]`,K.document&&K.document.querySelector?K.document.querySelector(t):null);return n?n.getAttribute("content"):void 0}function rr(e,t,n={}){return Array.isArray(t)?ri(e,t,n):r=>{let i=t(r);if(e.allowExclusionByUser){let t=i.find(t=>t.name===e.name);if(!t)return i}return ri(e,i,n)}}function ri(e,t,n){let r=t.find(t=>t.name===e.name);if(r){for(let[e,t]of Object.entries(n))!function e(t,n,r){let i=n.match(/([a-z_]+)\.(.*)/i);if(null===i)t[n]=r;else{let n=t[i[1]];e(n,i[2],r)}}(r,e,t);return t}return[...t,e]}var ra=n(73656),rs=n(26253),ro=n.n(rs);let ru={"routing.instrumentation":"next-router"},rc=eT().getClient();function rl(e,t=!0,n=!0){let{route:r,params:i,sentryTrace:a,baggage:s}=function(){let e;let t=tD.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){}if(!e)return{};let n={},{page:r,query:i,props:a}=e;return n.route=r,n.params=i,a&&a.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),{traceparentData:o,dynamicSamplingContext:u,propagationContext:c}=nw(a,s);eT().getScope().setPropagationContext(c),g=r||tD.location.pathname,t&&(m=e({name:g,op:"pageload",tags:ru,...i&&rc&&rc.getOptions().sendDefaultPii&&{data:i},...o,metadata:{source:r?"route":"url",dynamicSamplingContext:o&&!u?{}:u}})),n&&ro().events.on("routeChangeStart",t=>{let n,r;let i=t.split(/[\?#]/,1)[0],a=function(e){let t=(tD.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(i);a?(n=a,r="route"):(n=i,r="url");let s={...ru,from:g};g=n,m&&m.finish();let o=e({name:n,op:"navigation",tags:s,metadata:{source:r}});if(o){let e=o.startChild({op:"ui.nextjs.route-change",description:"Next.js Route Change",origin:"auto.navigation.nextjs"}),t=()=>{e.finish(),ro().events.off("routeChangeComplete",t)};ro().events.on("routeChangeComplete",t)}})}let rd=n.g,rh=n.g;var rf=n(14826),rp=n(73656);let rm=V.n2,rg="sentryReplaySession",ry="Unable to send Replay";function rb(e){let t=null==e?void 0:e.host;return!!(t&&t.shadowRoot&&t.shadowRoot===e)}function rv({maskInputOptions:e,tagName:t,type:n}){"option"===t.toLowerCase()&&(t="select");let r="string"==typeof n?n.toLowerCase():void 0;return e[t.toLowerCase()]||r&&e[r]||"password"===r||"input"===t&&!n&&e.text}function rw({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:r,tagName:i,type:a,value:s,maskInputFn:o}){let u=s||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(a="password"),(rv({maskInputOptions:r,tagName:i,type:a})||t&&e.matches(t))&&(u=o?o(u):"*".repeat(u.length))),u}(T=z||(z={}))[T.Document=0]="Document",T[T.DocumentType=1]="DocumentType",T[T.Element=2]="Element",T[T.Text=3]="Text",T[T.CDATA=4]="CDATA",T[T.Comment=5]="Comment";let r_="__rrweb_original__";function rE(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function rA(e,t,n){return("string"==typeof n&&n.toLowerCase(),"INPUT"===t&&("radio"===n||"checkbox"===n))?e.getAttribute("value")||"":e.value}let rx=1,rC=RegExp("[^a-z0-9-_:]");function rS(e){return e?e.replace(/[\S]/g,"*"):""}function rk(e){try{let t=e.rules||e.cssRules;return t?Array.from(t).map(rD).join(""):null}catch(e){return null}}function rD(e){let t=e.cssText;if("styleSheet"in e)try{t=rk(e.styleSheet)||t}catch(e){}return rI(t)}function rI(e){return e.indexOf(":")>-1?e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"):e}let rO=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,rT=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,rP=/^(data:)([^,]*),(.*)/i;function rF(e,t){return(e||"").replace(rO,(e,n,r,i,a,s)=>{let o=r||a||s,u=n||i||"";if(!o)return e;if(!rT.test(o)||rP.test(o))return`url(${u}${o}${u})`;if("/"===o[0])return`url(${u}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${u})`;let c=t.split("/"),l=o.split("/");for(let e of(c.pop(),l))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${u}${c.join("/")}${u})`})}let rR=/^[^ \t\n\r\u000c]+/,rN=/^[, \t\n\r\u000c]+/;function rB(e,t){if(!t||""===t.trim())return t;let n=e.createElement("a");return n.href=t,n.href}function rM(){let e=document.createElement("a");return e.href="",e.href}function rj(e,t,n,r,i,a,s,o){if(!i)return i;let u=r.toLowerCase(),c=n.toLowerCase();if("src"===u||"href"===u||"xlink:href"===u&&"#"!==i[0]||"background"===u&&("table"===c||"td"===c||"th"===c))return rB(e,i);if("srcset"===u)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(rN),!(n>=t.length);){let a=r(rR);if(","===a.slice(-1))a=rB(e,a.substring(0,a.length-1)),i.push(a);else{let r="";a=rB(e,a);let s=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((a+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,i.push((a+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return i.join(", ")}(e,i);if("style"===u)return rF(i,rM());if("object"===c&&"data"===u)return rB(e,i);if(a&&!(s&&t.matches(s))&&(["placeholder","title","aria-label"].indexOf(u)>-1||"input"===c&&"value"===u&&t.hasAttribute("type")&&["submit","button"].indexOf(t.getAttribute("type").toLowerCase())>-1))return o?o(i):rS(i);return i}function rL(e,t,n,r,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return rL(e.parentNode,t,n,r,i);if(r&&(e.matches(r)||e.closest(r)))return!1;if(i)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){let r=e.classList[n];if(t.test(r))return!0}return!!(n&&e.matches(n))||rL(e.parentNode,t,n,r,i)}function rU(e){return null==e?"":e.toLowerCase()}function rz(e,t){let n;let{doc:r,map:i,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:f=!1,inlineStylesheet:p=!0,maskInputSelector:m,unmaskInputSelector:g,maskAllText:y,maskInputOptions:b={},maskTextFn:v,maskInputFn:w,slimDOMOptions:_,dataURLOptions:E={},inlineImages:A=!1,recordCanvas:x=!1,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:k=5e3,keepIframeSrcFn:D=()=>!1}=t,{preserveWhiteSpace:I=!0}=t,O=function(e,t){let n;let{doc:r,blockClass:i,blockSelector:a,unblockSelector:s,maskTextClass:o,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:h,maskInputSelector:f,unmaskInputSelector:p,maskAllText:m,maskInputOptions:g={},maskTextFn:y,maskInputFn:b,dataURLOptions:v={},inlineImages:w,recordCanvas:_,keepIframeSrcFn:E}=t;if(r.__sn){let e=r.__sn.id;n=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:z.Document,childNodes:[],compatMode:e.compatMode,rootId:n};return{type:z.Document,childNodes:[],rootId:n};case e.DOCUMENT_TYPE_NODE:return{type:z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:n};case e.ELEMENT_NODE:let A=function(e,t,n,r){if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){let r=e.classList[n];if(t.test(r))return!0}return!!n&&e.matches(n)}(e,i,a,s),x=function(e){if(e instanceof HTMLFormElement)return"form";let t=e.tagName.toLowerCase().trim();return rC.test(t)?"div":t}(e),C={};for(let{name:t,value:n}of Array.from(e.attributes)){var S,k;("video"===x||"audio"===x)&&"autoplay"===t||(C[t]=rj(r,e,x,t,n,m,d,y))}if("link"===x&&h){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=rk(t)),n&&(delete C.rel,delete C.href,C._cssText=rF(n,t.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=rk(e.sheet);t&&(C._cssText=rF(t,rM()))}if("input"===x||"textarea"===x||"select"===x||"option"===x){let t=rE(e),n=rA(e,x.toUpperCase(),t),r=e.checked;"submit"!==t&&"button"!==t&&n&&(C.value=rw({input:e,type:t,tagName:x,value:n,maskInputSelector:f,unmaskInputSelector:p,maskInputOptions:g,maskInputFn:b})),r&&(C.checked=r)}if("option"===x&&(e.selected&&!g.select?C.selected=!0:delete C.selected),"canvas"===x&&_){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=r_ in i?i[r_]:i,s=new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer);if(s.some(e=>0!==e))return!1}return!0}(e)&&(C.rr_dataURL=e.toDataURL(v.type,v.quality));else if(!("__context"in e)){let t=e.toDataURL(v.type,v.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;let r=n.toDataURL(v.type,v.quality);t!==r&&(C.rr_dataURL=t)}}if("img"===x&&w){c||(l=(c=r.createElement("canvas")).getContext("2d"));let t=e.crossOrigin;e.crossOrigin="anonymous";let n=()=>{try{c.width=e.naturalWidth,c.height=e.naturalHeight,l.drawImage(e,0,0),C.rr_dataURL=c.toDataURL(v.type,v.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}t?C.crossOrigin=t:delete C.crossOrigin};e.complete&&0!==e.naturalWidth?n():e.onload=n}if(("audio"===x||"video"===x)&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop),A){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}return"iframe"!==x||E(C.src)||(e.contentDocument||(C.rr_src=C.src),delete C.src),{type:z.Element,tagName:x,attributes:C,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:A,rootId:n};case e.TEXT_NODE:let D=e.parentNode&&e.parentNode.tagName,I=e.textContent,O="STYLE"===D||void 0,T="SCRIPT"===D||void 0;if(O&&I){try{e.nextSibling||e.previousSibling||(null===(S=e.parentNode.sheet)||void 0===S?void 0:S.cssRules)&&(I=(k=e.parentNode.sheet).cssRules?Array.from(k.cssRules).map(e=>e.cssText?rI(e.cssText):"").join(""):"")}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}I=rF(I,rM())}if(T&&(I="SCRIPT_PLACEHOLDER"),"TEXTAREA"===D&&I)I="";else if("OPTION"===D&&I){let t=e.parentNode;I=rw({input:t,type:null,tagName:D,value:I,maskInputSelector:f,unmaskInputSelector:p,maskInputOptions:g,maskInputFn:b})}else!O&&!T&&rL(e,o,u,d,m)&&I&&(I=y?y(I):rS(I));return{type:z.Text,textContent:I||"",isStyle:O,rootId:n};case e.CDATA_SECTION_NODE:return{type:z.CDATA,textContent:"",rootId:n};case e.COMMENT_NODE:return{type:z.Comment,textContent:e.textContent||"",rootId:n};default:return!1}}(e,{doc:r,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputSelector:m,unmaskInputSelector:g,maskAllText:y,maskInputOptions:b,maskTextFn:v,maskInputFn:w,dataURLOptions:E,inlineImages:A,recordCanvas:x,keepIframeSrcFn:D});if(!O)return console.warn(e,"not serialized"),null;n="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===z.Comment)return!0;if(e.type===z.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js"))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(rU(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===rU(e.attributes.name)||"icon"===rU(e.attributes.rel)||"apple-touch-icon"===rU(e.attributes.rel)||"shortcut icon"===rU(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&rU(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(rU(e.attributes.property).match(/^(og|twitter|fb):/)||rU(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===rU(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===rU(e.attributes.name)||"googlebot"===rU(e.attributes.name)||"bingbot"===rU(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===rU(e.attributes.name)||"generator"===rU(e.attributes.name)||"framework"===rU(e.attributes.name)||"publisher"===rU(e.attributes.name)||"progid"===rU(e.attributes.name)||rU(e.attributes.property).match(/^article:/)||rU(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===rU(e.attributes.name)||"yandex-verification"===rU(e.attributes.name)||"csrf-token"===rU(e.attributes.name)||"p:domain_verify"===rU(e.attributes.name)||"verify-v1"===rU(e.attributes.name)||"verification"===rU(e.attributes.name)||"shopify-checkout-api-token"===rU(e.attributes.name)))return!0}}return!1}(O,_)&&(I||O.type!==z.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?rx++:-2;let T=Object.assign(O,{id:n});if(e.__sn=T,-2===n)return null;i[n]=e,C&&C(e);let P=!f;if(T.type===z.Element&&(P=P&&!T.needBlock,delete T.needBlock,e.shadowRoot&&(T.isShadowHost=!0)),(T.type===z.Document||T.type===z.Element)&&P){_.headWhitespace&&O.type===z.Element&&"head"===O.tagName&&(I=!1);let t={doc:r,map:i,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:f,inlineStylesheet:p,maskInputSelector:m,unmaskInputSelector:g,maskAllText:y,maskInputOptions:b,maskTextFn:v,maskInputFn:w,slimDOMOptions:_,dataURLOptions:E,inlineImages:A,recordCanvas:x,preserveWhiteSpace:I,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:k,keepIframeSrcFn:D};for(let n of Array.from(e.childNodes)){let e=rz(n,t);e&&T.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let e=rz(n,t);e&&(e.isShadow=!0,T.childNodes.push(e))}}return e.parentNode&&rb(e.parentNode)&&(T.isShadow=!0),T.type===z.Element&&"iframe"===T.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let a=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=setTimeout(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{clearTimeout(r),a=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src){setTimeout(t,0);return}e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&S){let n=rz(t,{doc:t,map:i,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputSelector:m,unmaskInputSelector:g,maskAllText:y,maskInputOptions:b,maskTextFn:v,maskInputFn:w,slimDOMOptions:_,dataURLOptions:E,inlineImages:A,recordCanvas:x,preserveWhiteSpace:I,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:k,keepIframeSrcFn:D});n&&S(e,n)}},k),T}function rq(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}(P=q||(q={}))[P.DomContentLoaded=0]="DomContentLoaded",P[P.Load=1]="Load",P[P.FullSnapshot=2]="FullSnapshot",P[P.IncrementalSnapshot=3]="IncrementalSnapshot",P[P.Meta=4]="Meta",P[P.Custom=5]="Custom",P[P.Plugin=6]="Plugin",(F=G||(G={}))[F.Mutation=0]="Mutation",F[F.MouseMove=1]="MouseMove",F[F.MouseInteraction=2]="MouseInteraction",F[F.Scroll=3]="Scroll",F[F.ViewportResize=4]="ViewportResize",F[F.Input=5]="Input",F[F.TouchMove=6]="TouchMove",F[F.MediaInteraction=7]="MediaInteraction",F[F.StyleSheetRule=8]="StyleSheetRule",F[F.CanvasMutation=9]="CanvasMutation",F[F.Font=10]="Font",F[F.Log=11]="Log",F[F.Drag=12]="Drag",F[F.StyleDeclaration=13]="StyleDeclaration",(R=Z||(Z={}))[R.MouseUp=0]="MouseUp",R[R.MouseDown=1]="MouseDown",R[R.Click=2]="Click",R[R.ContextMenu=3]="ContextMenu",R[R.DblClick=4]="DblClick",R[R.Focus=5]="Focus",R[R.Blur=6]="Blur",R[R.TouchStart=7]="TouchStart",R[R.TouchMove_Departed=8]="TouchMove_Departed",R[R.TouchEnd=9]="TouchEnd",R[R.TouchCancel=10]="TouchCancel",(N=W||(W={}))[N["2D"]=0]="2D",N[N.WebGL=1]="WebGL",N[N.WebGL2=2]="WebGL2",(B=$||($={}))[B.Play=0]="Play",B[B.Pause=1]="Pause",B[B.Seeked=2]="Seeked",B[B.VolumeChange=3]="VolumeChange",(M=H||(H={})).Start="start",M.Pause="pause",M.Resume="resume",M.Resize="resize",M.Finish="finish",M.FullsnapshotRebuilded="fullsnapshot-rebuilded",M.LoadStylesheetStart="load-stylesheet-start",M.LoadStylesheetEnd="load-stylesheet-end",M.SkipStart="skip-start",M.SkipEnd="skip-end",M.MouseInteraction="mouse-interaction",M.EventCast="event-cast",M.CustomEvent="custom-event",M.Flush="flush",M.StateChange="state-change",M.PlayBack="play-back";let rG="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",rZ={map:{},getId:()=>(console.error(rG),-1),getNode:()=>(console.error(rG),null),removeNodeFromMap(){console.error(rG)},has:()=>(console.error(rG),!1),reset(){console.error(rG)}};function rW(e,t,n={}){let r=null,i=0;return function(a){let s=Date.now();i||!1!==n.leading||(i=s);let o=t-(s-i),u=this,c=arguments;o<=0||o>t?(r&&(clearTimeout(r),r=null),i=s,e.apply(u,c)):r||!1===n.trailing||(r=setTimeout(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(u,c)},o))}}function r$(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>r$(e,t,a||{},!0)}function rH(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}function rQ(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function rV(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function rK(e,t,n,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let i=!1,a=r&&e.matches(r);return"string"==typeof t?i=void 0!==e.closest?!a&&null!==e.closest("."+t):!a&&e.classList.contains(t):a||e.classList.forEach(e=>{t.test(e)&&(i=!0)}),!i&&n&&(i=e.matches(n)),!a&&i||rK(e.parentNode,t,n,r)}return e.nodeType,e.TEXT_NODE,rK(e.parentNode,t,n,r)}function rJ(e){return"__sn"in e&&-2===e.__sn.id}function rY(e){return!!e.changedTouches}function rX(e){return"__sn"in e&&e.__sn.type===z.Element&&"iframe"===e.__sn.tagName}function r0(e){return!!(null==e?void 0:e.shadowRoot)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rZ=new Proxy(rZ,{get:(e,t,n)=>("map"===t&&console.error(rG),Reflect.get(e,t,n))}));class r1{constructor(){this.length=0,this.head=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}let r2=(e,t)=>`${e}@${t}`;class r5{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new r1,n=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},r=r=>{var i,a,s,o,u;let c=r.getRootNode?null===(i=r.getRootNode())||void 0===i?void 0:i.host:null,l=c;for(;null===(s=null===(a=null==l?void 0:l.getRootNode)||void 0===a?void 0:a.call(l))||void 0===s?void 0:s.host;)l=(null===(u=null===(o=null==l?void 0:l.getRootNode)||void 0===o?void 0:o.call(l))||void 0===u?void 0:u.host)||null;let d=!this.doc.contains(r)&&(!l||!this.doc.contains(l));if(!r.parentNode||d)return;let h=rb(r.parentNode)?this.mirror.getId(c):this.mirror.getId(r.parentNode),f=n(r);if(-1===h||-1===f)return t.addNode(r);let p=rz(r,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{rX(e)&&this.iframeManager.addIframe(e),r0(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});p&&e.push({parentId:h,nextId:f,node:p})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!r6(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&r(e);for(let e of this.addedSet)r8(this.droppedSet,e)||r6(this.removes,e,this.mirror)?r8(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let i=null;for(;t.length;){let e=null;if(i){let t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e)for(let r=t.length-1;r>=0;r--){let i=t.get(r);if(i){let t=this.mirror.getId(i.value.parentNode),r=n(i.value);if(-1!==t&&-1!==r){e=i;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}i=e.previous,t.removeNode(e.value),r(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>({id:this.mirror.getId(e.node),attributes:e.attributes})).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!rJ(e.target))switch(e.type){case"characterData":{let t=e.target.textContent;rK(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:rL(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=t.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=rw({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:t.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),rK(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let r=this.attributes.find(t=>t.node===e.target);if(r||(r={node:e.target,attributes:{}},this.attributes.push(r)),"type"===e.attributeName&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),"style"===e.attributeName){let n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),(void 0===r.attributes.style||null===r.attributes.style)&&(r.attributes.style={});try{let e=r.attributes.style;for(let r of Array.from(t.style)){let i=t.style.getPropertyValue(r),a=t.style.getPropertyPriority(r);(i!==n.style.getPropertyValue(r)||a!==n.style.getPropertyPriority(r))&&(""===a?e[r]=i:e[r]=[i,a])}for(let r of Array.from(n.style))""===t.style.getPropertyValue(r)&&(e[r]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{let t=e.target;r.attributes[e.attributeName]=rj(this.doc,t,t.tagName,e.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=rb(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);rK(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||rJ(t)||(this.addedSet.has(t)?(r3(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(rb(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[r2(n,r)]?r3(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!rb(e.target)||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!(t&&rK(t,this.blockClass,this.blockSelector,this.unblockSelector))){if("__sn"in e){if(rJ(e))return;this.movedSet.add(e);let n=null;t&&"__sn"in t&&(n=t.__sn.id),n&&(this.movedMap[r2(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);rK(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach(e=>this.genAdds(e))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function r3(e,t){e.delete(t),t.childNodes.forEach(t=>r3(e,t))}function r6(e,t,n){let{parentNode:r}=t;if(!r)return!1;let i=n.getId(r);return!!e.some(e=>e.id===i)||r6(e,r,n)}function r8(e,t){let{parentNode:n}=t;return!!n&&(!!e.has(n)||r8(e,n))}let r4=e=>(...t)=>{try{return e(...t)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},r9=[];function r7(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function ie(e,t){var n,r;let i=new r5;r9.push(i),i.init(e);let a=window.MutationObserver||window.__rrMutationObserver,s=null===(r=null===(n=null==window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");s&&window[s]&&(a=window[s]);let o=new a(r4(t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function it({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){let o=rW(s=>{let o=r7(s);if(!o||rK(o,r,i,a))return;let u=n.getId(o);if(o===t){let n=t.scrollingElement||t.documentElement;r4(e)({id:u,x:n.scrollLeft,y:n.scrollTop})}else r4(e)({id:u,x:o.scrollLeft,y:o.scrollTop})},s.scroll||100);return rq("scroll",r4(o),t)}function ir(e,t){let n=Object.assign({},e);return t||delete n.userTriggered,n}let ii=["INPUT","TEXTAREA","SELECT"],ia=new WeakMap;function is(e){return function(e,t){if(iu("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||iu("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||iu("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||iu("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules),r=n.indexOf(e);t.unshift(r)}else{let n=Array.from(e.parentStyleSheet.cssRules),r=n.indexOf(e);t.unshift(r)}return t}(e,[])}function io(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){let{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:s,inputCb:o,mediaInteractionCb:u,styleSheetRuleCb:c,styleDeclarationCb:l,canvasMutationCb:d,fontCb:h}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),i(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),a(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),s(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),o(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),u(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),l(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),h(...e)}}(e,t);let r=ie(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],u=rW(t=>{let n=Date.now()-i;r4(e)(o.map(e=>(e.timeOffset-=n,e)),t),o=[],i=null},s),c=rW(e=>{let t=r7(e),{clientX:n,clientY:a}=rY(e)?e.changedTouches[0]:e;i||(i=Date.now()),o.push({x:n,y:a,id:r.getId(t),timeOffset:Date.now()-i}),u("undefined"!=typeof DragEvent&&e instanceof DragEvent?G.Drag:e instanceof MouseEvent?G.MouseMove:G.TouchMove)},a,{trailing:!1}),l=[rq("mousemove",r4(c),n),rq("touchmove",r4(c),n),rq("drag",r4(c),n)];return r4(()=>{l.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],c=t=>s=>{let o=r7(s);if(rK(o,r,i,a))return;let u=rY(s)?s.changedTouches[0]:s;if(!u)return;let c=n.getId(o),{clientX:l,clientY:d}=u;r4(e)({type:Z[t],id:c,x:l,y:d})};return Object.keys(Z).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(e=>{let n=e.toLowerCase(),r=r4(c(e));u.push(rq(n,r,t))}),r4(()=>{u.forEach(e=>e())})}(e),s=it(e),o=function({viewportResizeCb:e}){let t=-1,n=-1,r=rW(()=>{let r=rQ(),i=rV();(t!==r||n!==i)&&(r4(e)({width:Number(i),height:Number(r)}),t=r,n=i)},200);return rq("resize",r4(r),window)}(e),u=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:o,maskInputSelector:u,unmaskInputSelector:c,maskInputOptions:l,maskInputFn:d,sampling:h,userTriggeredOnInput:f}){function p(e){let n=r7(e),h=n&&n.tagName,p=e.isTrusted;if("OPTION"===h&&(n=n.parentElement),!n||!h||0>ii.indexOf(h)||rK(n,r,i,a))return;let g=n,y=rE(g);if(g.classList.contains(s)||o&&g.matches(o))return;let b=rA(g,h,y),v=!1;("radio"===y||"checkbox"===y)&&(v=n.checked),function({tagName:e,type:t,maskInputOptions:n,maskInputSelector:r}){return r||rv({maskInputOptions:n,tagName:e,type:t})}({maskInputOptions:l,maskInputSelector:u,tagName:h,type:y})&&(b=rw({input:g,maskInputOptions:l,maskInputSelector:u,unmaskInputSelector:c,tagName:h,type:y,value:b,maskInputFn:d})),m(n,r4(ir)({text:b,isChecked:v,userTriggered:p},f));let w=n.name;"radio"===y&&w&&v&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=rw({input:e,maskInputOptions:l,maskInputSelector:u,unmaskInputSelector:c,tagName:h,type:y,value:rA(e,h,y),maskInputFn:d});m(e,r4(ir)({text:t,isChecked:!v,userTriggered:!1},f))}})}function m(t,r){let i=ia.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){ia.set(t,r);let i=n.getId(t);e(Object.assign(Object.assign({},r),{id:i}))}}let g="last"===h.input?["change"]:["input","change"],y=g.map(e=>rq(e,r4(p),t)),b=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),v=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...v.map(e=>r$(e[0],e[1],{set(){r4(p)({target:this})}}))),r4(()=>{y.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a}){let s=s=>rW(r4(a=>{let o=r7(a);if(!o||rK(o,t,n,r))return;let{currentTime:u,volume:c,muted:l}=o;e({type:s,id:i.getId(o),currentTime:u,volume:c,muted:l})}),a.media||500),o=[rq("play",s(0)),rq("pause",s(1)),rq("seeked",s(2)),rq("volumechange",s(3))];return r4(()=>{o.forEach(e=>e())})}(e),l=function({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let r=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:r4((n,r,i)=>{let[a,s]=i,o=t.getId(r.ownerNode);return -1!==o&&e({id:o,adds:[{rule:a,index:s}]}),n.apply(r,i)})});let i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:r4((n,r,i)=>{let[a]=i,s=t.getId(r.ownerNode);return -1!==s&&e({id:s,removes:[{index:a}]}),n.apply(r,i)})});let a={};ic("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(ic("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),ic("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),ic("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));let s={};return Object.entries(a).forEach(([n,r])=>{s[n]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(s[n].insertRule,{apply:r4((n,r,i)=>{let[a,s]=i,o=t.getId(r.parentStyleSheet.ownerNode);return -1!==o&&e({id:o,adds:[{rule:a,index:[...is(r),s||0]}]}),n.apply(r,i)})}),r.prototype.deleteRule=new Proxy(s[n].deleteRule,{apply:r4((n,r,i)=>{let[a]=i,s=t.getId(r.parentStyleSheet.ownerNode);return -1!==s&&e({id:s,removes:[{index:[...is(r),a]}]}),n.apply(r,i)})})}),r4(()=>{n.CSSStyleSheet.prototype.insertRule=r,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(a).forEach(([e,t])=>{t.prototype.insertRule=s[e].insertRule,t.prototype.deleteRule=s[e].deleteRule})})}(e,{win:n}),d=function({styleDeclarationCb:e,mirror:t},{win:n}){let r=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(r,{apply:r4((n,r,i)=>{var a,s;let[o,u,c]=i,l=t.getId(null===(s=null===(a=r.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return -1!==l&&e({id:l,set:{property:o,value:u,priority:c},index:is(r.parentRule)}),n.apply(r,i)})});let i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:r4((n,r,i)=>{var a,s;let[o]=i,u=t.getId(null===(s=null===(a=r.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return -1!==u&&e({id:u,remove:{property:o},index:is(r.parentRule)}),n.apply(r,i)})}),r4(()=>{n.CSSStyleDeclaration.prototype.setProperty=r,n.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),h=e.collectFonts?function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let s=rH(t.fonts,"add",function(t){return function(n){return setTimeout(()=>{let t=i.get(n);t&&(e(t),i.delete(n))},0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(s),r4(()=>{r.forEach(e=>e())})}(e):()=>{},f=[];for(let t of e.plugins)f.push(t.observer(t.callback,n,t.options));return r4(()=>{r9.forEach(e=>e.reset()),r.disconnect(),i(),a(),s(),o(),u(),c();try{l(),d()}catch(e){}h(),f.forEach(e=>e())})}function iu(e){return void 0!==window[e]}function ic(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class il{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class id{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;let t=this;this.restorePatches.push(rH(HTMLElement.prototype,"attachShadow",function(e){return function(){let n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}}))}addShadowRoot(e,t){ie(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),it(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){let t=this;this.restorePatches.push(rH(e.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){let r=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}}))}}reset(){this.restorePatches.forEach(e=>e())}}for(var ih="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ip="undefined"==typeof Uint8Array?[]:new Uint8Array(256),im=0;im<ih.length;im++)ip[ih.charCodeAt(im)]=im;var ig=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=ih[n[t]>>2]+ih[(3&n[t])<<4|n[t+1]>>4]+ih[(15&n[t+1])<<2|n[t+2]>>6]+ih[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let iy=new Map,ib=(e,t,n)=>{let r;if(!e||!(iw(e,t)||"object"==typeof e))return;let i=e.constructor.name,a=((r=iy.get(n))||(r=new Map,iy.set(n,r)),r.has(i)||r.set(i,[]),r.get(i)),s=a.indexOf(e);return -1===s&&(s=a.length,a.push(e)),s},iv=(e,t,n)=>[...e].map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){let e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(t instanceof ArrayBuffer){let e=t.constructor.name,n=ig(t);return{rr_type:e,base64:n}}else if(t instanceof DataView){let i=t.constructor.name;return{rr_type:i,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]}}else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof ImageData){let i=t.constructor.name;return{rr_type:i,args:[e(t.data,n,r),t.width,t.height]}}else if(iw(t,n)||"object"==typeof t){let e=t.constructor.name,i=ib(t,n,r);return{rr_type:e,index:i}}return t})(e,t,n)),iw=(e,t)=>{let n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return!!n.find(n=>e instanceof t[n])};function i_(e,t,n,r,i,a,s,o){let u=[],c=Object.getOwnPropertyNames(e);for(let l of c)try{if("function"!=typeof e[l])continue;let c=rH(e,l,function(u){return function(...c){let d=u.apply(this,c);if(ib(d,o,e),!rK(this.canvas,r,a,i)){s.getId(this.canvas);let r=iv([...c],o,e),i={type:t,property:l,args:r};n(this.canvas,i)}return d}});u.push(c)}catch(i){let r=r$(e,l,{set(e){n(this.canvas,{type:t,property:l,args:[e],setter:!0})}});u.push(r)}return u}class iE{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){let n=this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId;(n||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass,e.blockSelector,e.unblockSelector)}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=function(e,t,n,r){let i=[];try{let a=rH(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...a){return rK(this,t,n,r)||"__context"in this||(this.__context=i),e.apply(this,[i,...a])}});i.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}(e,t,r,n),a=function(e,t,n,r,i,a){let s=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let a of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;let o=rH(t.CanvasRenderingContext2D.prototype,a,function(t){return function(...s){return rK(this.canvas,n,i,r)||setTimeout(()=>{let t=[...s];if("drawImage"===a&&t[0]&&t[0]instanceof HTMLCanvasElement){let e=t[0],n=e.getContext("2d"),r=null==n?void 0:n.getImageData(0,0,e.width,e.height),i=null==r?void 0:r.data;t[0]=JSON.stringify(i)}e(this.canvas,{type:W["2D"],property:a,args:t})},0),t.apply(this,s)}});s.push(o)}catch(r){let n=r$(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:W["2D"],property:a,args:[t],setter:!0})}});s.push(n)}return()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror),s=function(e,t,n,r,i,a){let s=[];return s.push(...i_(t.WebGLRenderingContext.prototype,W.WebGL,e,n,r,i,a,t)),void 0!==t.WebGL2RenderingContext&&s.push(...i_(t.WebGL2RenderingContext.prototype,W.WebGL2,e,n,r,i,a,t)),()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.resetObservers=()=>{i(),a(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["type"]);return t}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}function iA(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let ix={map:{},getId:e=>e&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){let t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function iC(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:u="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:f=null,maskInputSelector:p=null,unmaskTextSelector:m=null,unmaskInputSelector:g=null,inlineStylesheet:y=!0,maskAllText:b=!1,maskAllInputs:v,maskInputOptions:w,slimDOMOptions:_,maskInputFn:E,maskTextFn:A,hooks:x,packFn:C,sampling:S={},mousemoveWait:k,recordCanvas:D=!1,userTriggeredOnInput:I=!1,collectFonts:O=!1,inlineImages:T=!1,plugins:P,keepIframeSrcFn:F=()=>!1,onMutation:R}=e;if(!n)throw Error("emit function is required");void 0!==k&&void 0===S.mousemove&&(S.mousemove=k);let N=!0===v?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==w?w:{},B=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw TypeError("1 argument is required");do if(this===e)return!0;while(e=e&&e.parentNode);return!1})}();let M=0,j=e=>{for(let t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&(e=C(e)),e};d=(e,a)=>{var s;if((null===(s=r9[0])||void 0===s?void 0:s.isFrozen())&&e.type!==q.FullSnapshot&&!(e.type===q.IncrementalSnapshot&&e.data.source===G.Mutation)&&r9.forEach(e=>e.unfreeze()),n(j(e),a),e.type===q.FullSnapshot)t=e,M=0;else if(e.type===q.IncrementalSnapshot){if(e.data.source===G.Mutation&&e.data.isAttachIframe)return;M++;let n=i&&M>=i,a=r&&e.timestamp-t.timestamp>r;(n||a)&&h(!0)}};let L=e=>{d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.Mutation},e)}))},U=e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.Scroll},e)})),z=e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.CanvasMutation},e)})),Z=new il({mutationCb:L}),W=new iE({recordCanvas:D,mutationCb:z,win:window,blockClass:a,blockSelector:s,unblockSelector:o,mirror:ix}),$=new id({mutationCb:L,scrollCb:U,bypassOptions:{onMutation:R,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:l,maskTextSelector:f,unmaskTextSelector:m,maskInputSelector:p,unmaskInputSelector:g,inlineStylesheet:y,maskAllText:b,maskInputOptions:N,maskTextFn:A,maskInputFn:E,recordCanvas:D,inlineImages:T,sampling:S,slimDOMOptions:B,iframeManager:Z,canvasManager:W},mirror:ix});h=(e=!1)=>{var t,n,r,i;d(iA({type:q.Meta,data:{href:window.location.href,width:rV(),height:rQ()}}),e),r9.forEach(e=>e.lock());let[u,c]=function(e,t){let{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:s=null,unmaskTextSelector:o=null,inlineStylesheet:u=!0,inlineImages:c=!1,recordCanvas:l=!1,maskInputSelector:d=null,unmaskInputSelector:h=null,maskAllText:f=!1,maskAllInputs:p=!1,maskTextFn:m,maskInputFn:g,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:v,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E,keepIframeSrcFn:A=()=>!1}=t||{},x={},C=!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,S=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y;return[rz(e,{doc:e,map:x,blockClass:n,blockSelector:r,unblockSelector:i,maskTextClass:a,maskTextSelector:s,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:h,maskAllText:f,maskInputOptions:C,maskTextFn:m,maskInputFn:g,slimDOMOptions:S,dataURLOptions:b,inlineImages:c,recordCanvas:l,preserveWhiteSpace:v,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E,keepIframeSrcFn:A}),x]}(document,{blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:l,maskTextSelector:f,unmaskTextSelector:m,maskInputSelector:p,unmaskInputSelector:g,inlineStylesheet:y,maskAllText:b,maskAllInputs:N,maskTextFn:A,slimDOM:B,recordCanvas:D,inlineImages:T,onSerialize:e=>{rX(e)&&Z.addIframe(e),r0(e)&&$.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),$.observeAttachShadow(e)},keepIframeSrcFn:F});if(!u)return console.warn("Failed to snapshot the document");ix.map=c,d(iA({type:q.FullSnapshot,data:{node:u,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null==document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null==document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==document?void 0:document.documentElement.scrollTop)||(null===(i=null===(r=null==document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===i?void 0:i.scrollTop)||(null==document?void 0:document.body.scrollTop)||0}}})),r9.forEach(e=>e.unlock())};try{let e=[];e.push(rq("DOMContentLoaded",()=>{d(iA({type:q.DomContentLoaded,data:{}}))}));let t=e=>{var t;return r4(io)({onMutation:R,mutationCb:L,mousemoveCb:(e,t)=>d(iA({type:q.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.MouseInteraction},e)})),scrollCb:U,viewportResizeCb:e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.ViewportResize},e)})),inputCb:e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.Input},e)})),mediaInteractionCb:e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.MediaInteraction},e)})),styleSheetRuleCb:e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.StyleSheetRule},e)})),styleDeclarationCb:e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.StyleDeclaration},e)})),canvasMutationCb:z,fontCb:e=>d(iA({type:q.IncrementalSnapshot,data:Object.assign({source:G.Font},e)})),blockClass:a,ignoreClass:u,ignoreSelector:c,maskTextClass:l,maskTextSelector:f,unmaskTextSelector:m,maskInputSelector:p,unmaskInputSelector:g,maskInputOptions:N,inlineStylesheet:y,sampling:S,recordCanvas:D,inlineImages:T,userTriggeredOnInput:I,collectFonts:O,doc:e,maskAllText:b,maskInputFn:E,maskTextFn:A,blockSelector:s,unblockSelector:o,slimDOMOptions:B,mirror:ix,iframeManager:Z,shadowDomManager:$,canvasManager:W,plugins:(null===(t=null==P?void 0:P.filter(e=>e.observer))||void 0===t?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>d(iA({type:q.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},x)};Z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{h(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(rq("load",()=>{d(iA({type:q.Load,data:{}})),n()},window)),()=>{e.forEach(e=>e())}}catch(e){console.warn(e)}}function iS(e){return e>9999999999?e:1e3*e}function ik(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:q.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:to(t,10,1e3)}}),"console"===t.category)))}function iD(e){let t=iI(e);if(!t||!(t instanceof Element))return t;let n=t.closest("button,a");return n||t}function iI(e){return"object"==typeof e&&e&&"target"in e?e.target:e}iC.addCustomEvent=(e,t)=>{if(!d)throw Error("please add custom event after start recording");d(iA({type:q.Custom,data:{tag:e,payload:t}}))},iC.freezePage=()=>{r9.forEach(e=>e.freeze())},iC.takeFullSnapshot=e=>{if(!h)throw Error("please take full snapshot after start recording");h(e)},iC.mirror=ix;class iO{constructor(e,t,n=ik){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=()=>{this._lastScroll=iP()},n=(e=()=>{this._lastMutation=iP()},f||(f=[],et(rm,"open",function(e){return function(...t){if(f)try{f.forEach(e=>e())}catch(e){}return e.apply(rm,t)}})),f.push(e),()=>{let t=f?f.indexOf(e):-1;t>-1&&f.splice(t,1)}),r=e=>{if(!e.target)return;let t=iD(e);t&&this._handleMultiClick(t)},i=new MutationObserver(()=>{this._lastMutation=iP()});i.observe(rm.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),rm.addEventListener("scroll",t,{passive:!0}),rm.addEventListener("click",r,{passive:!0}),this._teardown=()=>{rm.removeEventListener("scroll",t),rm.removeEventListener("click",r),n(),i.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n,r;if(r=this._ignoreSelector,!iT.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||r&&t.matches(r)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let i={timestamp:(n=e.timestamp)>9999999999?n/1e3:n,clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===i.node&&1>Math.abs(e.timestamp-i.timestamp))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=iP();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:a}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:rm.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:rm.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}let iT=["A","BUTTON","INPUT"];function iP(){return Date.now()/1e3}function iF(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(j=Q||(Q={}))[j.Document=0]="Document",j[j.DocumentType=1]="DocumentType",j[j.Element=2]="Element",j[j.Text=3]="Text",j[j.CDATA=4]="CDATA",j[j.Comment=5]="Comment";let iR=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]),iN=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?iD(e.event):iI(e.event),t=J(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return iF({category:`ui.${e.name}`,...iB(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r&&t.event;!r||!e.clickDetector||!i||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,iD(t.event)),ik(e,n)};function iB(e,t){let n=e&&"__sn"in e&&e.__sn.type===Q.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map(e=>"__sn"in e&&e.__sn.type===Q.Text&&e.__sn.textContent).filter(Boolean).map(e=>e.trim()).join(""):"",attributes:function(e){let t={};for(let n in e)if(iR.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(n.attributes)}}:{}}}let iM=["name","type","startTime","transferSize","duration"];function ij(e){return function(t){return iM.every(n=>e[n]===t[n])}}let iL=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;class iU extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class iz{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new iU;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?iS(e):null}}class iq{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let a=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",a),!t.success){i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class iG{constructor(e){this._worker=new iq(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=iS(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new iU):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class iZ{constructor(e){this._fallback=new iz,this._compression=new iG(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){}}}function iW(){try{return"sessionStorage"in rm&&!!rm.sessionStorage}catch(e){return!1}}function i$(e){return void 0!==e&&Math.random()<e}function iH(e){if(iW())try{rm.sessionStorage.setItem(rg,JSON.stringify(e))}catch(e){}}function iQ(e){let t=Date.now(),n=e.id||ec(),r=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,s=e.sampled,o=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:a,sampled:s,previousSessionId:o}}function iV({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=i$(e)?"session":!!t&&"buffer",a=iQ({sampled:i,previousSessionId:r});return n&&iH(a),a}function iK(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function iJ(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return iK(e.started,t,r)||iK(e.lastActivity,n,r)}function iY(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!iJ(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function iX({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){let a=i.stickySession&&function(e){if(!iW())return null;try{let e=rm.sessionStorage.getItem(rg);if(!e)return null;let t=JSON.parse(e);return iQ(t)}catch(e){return null}}(0);return a?iY(a,{sessionIdleExpire:t,maxReplayDuration:n})?iV(i,{previousSessionId:a.id}):a:iV(i,{previousSessionId:r})}function i0(e,t,n){return!!i2(e,t)&&(i1(e,t,n),!0)}async function i1(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===q.Custom)return t(e)}catch(e){return null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(r){let t=r&&r instanceof iU?"addEventSizeExceeded":"addEvent";await e.stop({reason:t});let n=eT().getClient();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function i2(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=iS(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(e.getOptions()._experiments.traceInternals,!1))}function i5(e){return"transaction"===e.type}function i3(e){let t=function(){let e=eT().getClient();if(!e)return!1;let t=e.getTransport();return!!t&&(t.send.__sentry__baseTransport__||!1)}();return(n,r)=>{if(!e.isEnabled()||n.type&&!i5(n))return;let i=r&&r.statusCode;if(!t||i&&!(i<200)&&!(i>=300)){if(i5(n)){!function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n);return}!function(e,t){let n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"===e.recordingMode&&t.tags&&t.tags.replayId&&setTimeout(()=>{e.sendBufferedReplayOrFlush()})}(e,n)}}}function i6(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let s=e.throttledAddEvent({type:q.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return"string"==typeof s?Promise.resolve(null):s})}function i8(e,t){e.isEnabled()&&null!==t&&!function(e){let t=eT().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(t.name)&&e.addUpdate(()=>(i6(e,[t]),!0))}let i4=["true","false","null"];function i9(e){let t=function(e){let t=[];for(let n=0;n<e.length;n++)!function(e,t,n){let r=e[e.length-1],i=t[n];if(!/\s/.test(i)){if('"'===i&&!function e(t,n){let r=t[n-1];return"\\"===r&&!e(t,n-1)}(t,n)){!function(e,t){if(14===t){e.pop(),e.push(15);return}if(22===t){e.pop(),e.push(23);return}if(13===t){e.push(14);return}if(21===t){e.push(22);return}if(10===t){e.push(12);return}12===t&&(e.pop(),e.push(11))}(e,r);return}switch(i){case"{":!function(e,t){if(!t||13===t){e.push(10);return}21===t&&e.push(10),20===t&&e.push(10)}(e,r);break;case"[":!function(e,t){if(!t||13===t){e.push(20),e.push(21);return}21===t&&(e.push(20),e.push(21)),20===t&&(e.push(20),e.push(21))}(e,r);break;case":":11===r&&(e.pop(),e.push(13));break;case",":!function(e,t){if(13===t){e.pop();return}if(15===t){e.pop(),e.pop();return}21!==t&&23===t&&e.pop()}(e,r);break;case"}":10===r&&e.pop(),13===r&&(e.pop(),e.pop()),15===r&&(e.pop(),e.pop(),e.pop()),13===e[e.length-1]&&e.push(15),21===e[e.length-1]&&e.push(23);break;case"]":20===r&&e.pop(),21===r&&(e.pop(),e.pop()),23===r&&(e.pop(),e.pop(),e.pop()),13===e[e.length-1]&&e.push(15),21===e[e.length-1]&&e.push(23)}}}(t,e,n);return t}(e);return function(e,t){if(!t.length)return e;let n=e,r=t.length-1,i=t[r];n=function(e,t){switch(t){case 10:return`${e}"~~":"~~"`;case 11:return`${e}:"~~"`;case 12:return`${e}~~":"~~"`;case 13:return function(e){let t=e.lastIndexOf(":"),n=e.slice(t+1);return i4.includes(n.trim())?`${e},"~~":"~~"`:`${e.slice(0,t+1)}"~~"`}(e);case 14:case 22:return`${e}~~"`;case 15:return`${e},"~~":"~~"`;case 20:return`${e}"~~"`;case 21:return function(e){let t=function(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(","===n||"["===n)return t}return -1}(e);if(t>-1){let n=e.slice(t+1);return i4.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case 23:return`${e},"~~"`}return e}(n,i);for(let e=r;e>=0;e--){let r=t[e];switch(r){case 10:n=`${n}}`;break;case 20:n=`${n}]`}}return n}(e,t)}function i7(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=as(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function ae(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function at(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?as(e):void 0}function an(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:s,request:o,response:u}=t,c={type:e,start:n/1e3,end:r/1e3,name:i,data:eu({method:a,statusCode:s,request:o,response:u})};return c}function ar(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ai(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};let t=e.length>15e4;if(function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e))try{let n=t?i9(e.slice(0,15e4)):e,r=JSON.parse(n);return{body:r,warnings:t?["JSON_TRUNCATED"]:[]}}catch(n){return{body:t?`${e.slice(0,15e4)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,15e4)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(n);return r.body=i,a.length>0&&(r._meta={warnings:a}),r}function aa(e,t){return Object.keys(e).reduce((n,r)=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function as(e){return new URLSearchParams(e).toString()}function ao(e,t){let n=function(e,t=rm.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(rm.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return ee(n,t)}async function au(e,t,n){try{let r=await ac(e,t,n),i=an("resource.fetch",r);i8(n.replay,i)}catch(e){}}async function ac(e,t,n){let{startTimestamp:r,endTimestamp:i}=t,{url:a,method:s,status_code:o=0,request_body_size:u,response_body_size:c}=e.data,l=ao(a,n.networkDetailAllowUrls)&&!ao(a,n.networkDetailDenyUrls),d=l?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=1===n.length&&"string"!=typeof n[0]?ap(n[0],t):2===n.length?ap(n[1],t):{};if(!e)return ai(i,r,void 0);let a=ah(n),s=at(a);return ai(i,r,s)}(n,t.input,u):ar(u),h=await al(l,n,t.response,c);return{startTimestamp:r,endTimestamp:i,url:a,method:s,statusCode:o,request:d,response:h}}async function al(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,a){if(!e&&void 0!==a)return ar(a);let s=af(i.headers,r);if(!t&&void 0!==a)return ai(s,a,void 0);try{let r=i.clone(),o=await ad(r),u=o&&o.length&&void 0===a?i7(o,n):a;if(!e)return ar(u);if(t)return ai(s,u,o);return ai(s,u,void 0)}catch(e){return ai(s,a,void 0)}}async function ad(e){try{return await e.text()}catch(e){return}}function ah(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function af(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function ap(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?af(n,t):Array.isArray(n)?{}:aa(n,t):{}}async function am(e,t,n){try{let r=function(e,t,n){let{startTimestamp:r,endTimestamp:i,input:a,xhr:s}=t,{url:o,method:u,status_code:c=0,request_body_size:l,response_body_size:d}=e.data;if(!o)return null;if(!ao(o,n.networkDetailAllowUrls)||ao(o,n.networkDetailDenyUrls)){let e=ar(l),t=ar(d);return{startTimestamp:r,endTimestamp:i,url:o,method:u,statusCode:c,request:e,response:t}}let h=s[e5],f=h?aa(h.request_headers,n.networkRequestHeaders):{},p=aa(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e},{}):{}}(s),n.networkResponseHeaders),m=ai(f,l,n.networkCaptureBodies?at(a):void 0),g=ai(p,d,n.networkCaptureBodies?t.xhr.responseText:void 0);return{startTimestamp:r,endTimestamp:i,url:o,method:u,statusCode:c,request:m,response:g}}(e,t,n),i=an("resource.xhr",r);i8(n.replay,i)}catch(e){}}let ag=null,ay=e=>t=>{if(!e.isEnabled())return;let n=function(e){let t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return ag!==t&&t?(ag=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return iF(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=to(e,7),r=JSON.stringify(t);if(r.length>5e3){let e=i9(r.slice(0,5e3)),t=JSON.parse(e);return n=!0,t}return t}catch(e){}return e});return iF({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):iF(t):null}(t);n&&ik(e,n)};async function ab(e){try{return Promise.all(i6(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(rm.performance.memory)]))}catch(e){return[]}}let av={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:a_(a),end:a_(i),name:r,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=a_(i);return{type:n,name:r,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:d,redirectCount:h,startTime:f,transferSize:p,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:a_(f),end:a_(a),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:d,domComplete:a,redirectCount:h}}},"largest-contentful-paint":function(e){let{entryType:t,startTime:n,size:r}=e,i=0;if(rm.performance){let e=rm.performance.getEntriesByType("navigation")[0];i=e&&e.activationStart||0}let a=Math.max(n-i,0),s=a_(i)+a/1e3;return{type:t,name:t,start:s,end:s,data:{value:a,size:r,nodeId:iC.mirror.getId(e.element)}}}};function aw(e){return void 0===av[e.entryType]?null:av[e.entryType](e)}function a_(e){return((em.Z1||rm.performance.timeOrigin)+e)/1e3}async function aE({client:e,scope:t,replayId:n,event:r}){let i="object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations),a={event_id:n,integrations:i};e.emit&&e.emit("preprocessEvent",r,a);let s=await tg(e.getOptions(),r,a,t,e);if(!s)return null;s.platform=s.platform||"javascript";let o=e.getSdkMetadata&&e.getSdkMetadata(),{name:u,version:c}=o&&o.sdk||{};return s.sdk={...s.sdk,name:u||"sentry.javascript.unknown",version:c||"0.0.0"},s}async function aA({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){var s;let o;let u=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)}
`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder,i=t.encode(r);(n=new Uint8Array(i.length+e.length)).set(i),n.set(e,i.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:l,traceIds:d,initialTimestamp:h}=r,f=eT(),p=f.getClient(),m=f.getScope(),g=p&&p.getTransport(),y=p&&p.getDsn();if(!p||!g||!y||!a.sampled)return;let b={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:l,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:a.sampled},v=await aE({scope:m,client:p,replayId:t,event:b});if(!v){p.recordDroppedEvent("event_processor","replay",b);return}delete v.sdkProcessingMetadata;let w=(s=p.getOptions().tunnel,tu(tf(v,th(v),s,y),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof u?new TextEncoder().encode(u).length:u.length},u]]));try{o=await g.send(w)}catch(t){let e=Error(ry);try{e.cause=t}catch(e){}throw e}if(!o)return o;if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new ax(o.statusCode);return o}class ax extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function aC(e,t={count:0,interval:5e3}){let{recordingData:n,options:r}=e;if(n.length)try{return await aA(e),!0}catch(n){var i;if(n instanceof ax)throw n;if(i={_retryCount:t.count},eT().setContext("Replays",i),t.count>=3){let e=Error(`${ry} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{setTimeout(async()=>{try{await aC(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let aS="__THROTTLED";class ak{constructor({options:e,recordingOptions:t}){ak.prototype.__init.call(this),ak.prototype.__init2.call(this),ak.prototype.__init3.call(this),ak.prototype.__init4.call(this),ak.prototype.__init5.call(this),ak.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEvents=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,a;let s=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return u(),r=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function c(){return i&&clearTimeout(i),i=setTimeout(o,t),s&&void 0===a&&(a=setTimeout(o,s)),r}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==a?o():r},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),s=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),a()>=300){let e=s;return s=!0,e?"__SKIPPED":aS}s=!1;let o=r.get(n)||0;return r.set(n,o+1),e(...t)}}((e,t)=>i2(this,e)?i1(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new iO(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options;if(!(t<=0)||!(n<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.recordingMode,this._options._experiments.traceInternals,this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");this._options._experiments.traceInternals;let e=iX({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");this._options._experiments.traceInternals;let e=iX({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;this._stopRecording=iC({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!i0(e,n,i))return!0;if(!i)return!1;if(i&&e.session&&0===e.session.segmentId&&i0(e,function(e){let t=e.getOptions();return{type:q.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(e.getOptions()._experiments.traceInternals,e.session.started=t,e.getOptions().stickySession&&iH(e.session))}return"session"===e.recordingMode&&e.flush(),!0})}),onMutation:this._onMutationHandler})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{this._options._experiments.traceInternals,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(iW())try{rm.sessionStorage.removeItem(rg)}catch(e){}}(),this.session=void 0}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();this._options._experiments.traceInternals,await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&iK(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${rm.location.pathname}${rm.location.hash}${rm.location.search}`,t=`${rm.location.origin}${e}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===aS){let e=iF({category:"replay.throttled"});this.addUpdate(()=>!i0(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastTransaction||eT().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e}){if(e&&window.Worker)try{let e=function(){let e=new Blob([iL]);return URL.createObjectURL(e)}(),t=new Worker(e);return new iZ(t)}catch(e){}return new iz}({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=iX({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!iY(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{rm.document.addEventListener("visibilitychange",this._handleVisibilityChange),rm.addEventListener("blur",this._handleWindowBlur),rm.addEventListener("focus",this._handleWindowFocus),rm.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=eT().getScope(),n=eT().getClient();t.addScopeListener(ay(e)),e8("dom",iN(e)),e8("history",t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(i6(e,[n]),!1)))}),function(e){let t=eT().getClient();try{let n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),u={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t,n){let{xhr:r,input:i}=t,a=i7(i,n.textEncoder),s=r.getResponseHeader("content-length")?ae(r.getResponseHeader("content-length")):i7(r.response,n.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==s&&(e.data.response_body_size=s)}(t,n,e),am(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t,n){let{input:r,response:i}=t,a=ah(r),s=i7(a,n.textEncoder),o=i?ae(i.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}(t,n,e),au(t,n,e))}catch(e){}})(u,e,t)):(e8("fetch",t=>{if(!e.isEnabled())return;let n=function(e){let{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;let{method:a,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:a,statusCode:i?i.status:void 0}}}(t);i8(e,n)}),e8("xhr",t=>{if(!e.isEnabled())return;let n=function(e){let{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[e5];if(!t||!n||!i)return null;let{method:a,url:s,status_code:o}=i;return void 0===s?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:a,statusCode:o}}}(t);i8(e,n)}))}catch(e){}}(e);let r=function(e,t=!1){let n=t?i3(e):void 0;return Object.assign((t,r)=>{if(!e.isEnabled())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!i5(t))return t;let i=e.checkAndHandleExpiredSession();if(!i)return t;if(!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&(r.originalException&&r.originalException.__rrweb__||t.exception.values.some(e=>!!e.stacktrace&&!!e.stacktrace.frames&&!!e.stacktrace.frames.length&&e.stacktrace.frames.some(e=>e.filename&&e.filename.includes("/rrweb/src/"))))&&!e.getOptions()._experiments.captureExceptions)return null;let a="buffer"===e.recordingMode&&t.message!==ry&&!!t.exception&&!t.type&&i$(e.getOptions().errorSampleRate),s=a||"session"===e.recordingMode;return s&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t},{id:"Replay"})}(e,!(n&&n.on));n&&n.addEventProcessor?n.addEventProcessor(r):eA(r),n&&n.on&&(n.on("afterSendEvent",i3(e)),n.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(t.replay_id=n)}),n.on("startTransaction",t=>{e.lastTransaction=t}),n.on("finishTransaction",t=>{e.lastTransaction=t}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in rm&&(this._performanceObserver=function(e){let t=new PerformanceObserver(t=>{let n=function(e,t){let[n,r,i]=e.reduce((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e),[[],[],[]]),a=[],s=[],o=r.length?r[r.length-1]:void 0;return t.forEach(e=>{if("largest-contentful-paint"===e.entryType){(!o||o.startTime<e.startTime)&&(o=e);return}if("navigation"===e.entryType){!(e.duration>0)||n.find(ij(e))||s.find(ij(e))||s.push(e);return}a.push(e)}),[...o?[o]:[],...n,...i,...a,...s].sort((e,t)=>e.startTime-t.startTime)}(e.performanceEvents,t.getEntries());e.performanceEvents=n});return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(e=>{try{t.observe({type:e,buffered:!0})}catch(e){}}),t}(this))}_removeListeners(){try{rm.document.removeEventListener("visibilitychange",this._handleVisibilityChange),rm.removeEventListener("blur",this._handleWindowBlur),rm.removeEventListener("focus",this._handleWindowFocus),rm.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=void 0)}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===rm.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=iF({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=iF({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:a,key:s,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let u=1===s.length;if(!(n||i||a)&&u)return null;let c=J(o,{maxStringLength:200})||"<unknown>",l=iB(o,c);return iF({category:"ui.keyDown",message:c,data:{...l.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:a,key:s}})}(t);n&&ik(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;let t=iJ(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});t||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;let t=this.checkAndHandleExpiredSession();t&&e&&this._createCustomBreadcrumb(e)}_triggerFullSnapshot(e=!0){try{iC.takeFullSnapshot(e)}catch(e){this._handleException(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:q.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(i6(this,e.map(aw).filter(Boolean)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await ab(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await aC({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});let e=eT().getClient();e&&e.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now(),r=n-t;this._debouncedFlush.cancel();let i=r<this._options.minReplayDuration,a=r>this._options.maxReplayDuration+5e3;if(i||a){this._options._experiments.traceInternals,i&&this._debouncedFlush();return}let s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&this._options._experiments.traceInternals,!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(e){}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&iH(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=iF({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function aD(e,t,n,r){let i="string"==typeof r?r.split(","):[],a=[...e,...i,...t];return void 0!==n&&("string"==typeof n&&a.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),a.join(",")}function aI(){return"undefined"!=typeof window&&(!(0,rf.KV)()||void 0!==rp&&"renderer"===rp.type)}let aO='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',aT=["content-length","content-type","accept"],aP=!1;class aF{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:a=!0,_experiments:s={},sessionSampleRate:o,errorSampleRate:u,maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:h=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:b=!0,networkRequestHeaders:v=[],networkResponseHeaders:w=[],mask:_=[],unmask:E=[],block:A=[],unblock:x=[],ignore:C=[],maskFn:S,beforeAddRecordingEvent:k,blockClass:D,blockSelector:I,maskInputOptions:O,maskTextClass:T,maskTextSelector:P,ignoreClass:F}={}){if(this.name=aF.id,this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{...O||{},password:!0},maskTextFn:S,maskInputFn:S,...function({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:a,blockSelector:s,maskTextClass:o,maskTextSelector:u,ignoreClass:c}){let l=aD(e,[".sentry-mask","[data-sentry-mask]"],o,u),d=aD(t,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:l,unmaskTextSelector:d,maskInputSelector:l,unmaskInputSelector:d,blockSelector:aD(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,s),unblockSelector:aD(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:aD(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return a instanceof RegExp&&(h.blockClass=a),o instanceof RegExp&&(h.maskTextClass=o),h}({mask:_,unmask:E,block:A,unblock:x,ignore:C,blockClass:D,blockSelector:I,maskTextClass:T,maskTextSelector:P,ignoreClass:F}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:i,sessionSampleRate:o,errorSampleRate:u,useCompression:a,blockAllMedia:d,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:h,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:b,networkRequestHeaders:aR(v),networkResponseHeaders:aR(w),beforeAddRecordingEvent:k,_experiments:s},"number"==typeof o&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysSessionSampleRate: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof u&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${aO}`:aO),this._isInitialized&&aI())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return aP}set _isInitialized(e){aP=e}setupOnce(){aI()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){let e=function(e){let t=eT().getClient(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...eu(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate)):console.warn("SDK client is not available."),r}(this._initialOptions);this._replay=new ak({options:e,recordingOptions:this._recordingOptions})}}function aR(e){return[...aT,...e.map(e=>e.toLowerCase())]}aF.__initStatic();var aN=window;aN.__sentryRewritesTunnelPath__="/monitoring",aN.SENTRY_RELEASE={id:"551c116adb367350498331036bd38c14606328b8"},aN.__rewriteFramesAssetPrefixPath__="",function(e){let t=rd.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=ta(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(r){let i=r[1],a=`${t}?o=${i}&p=${n.projectId}`;e.tunnel=a}}}(L={dsn:"https://0ed6a2555c064c059d93175ffeeac59f@o717968.ingest.sentry.io/4505306156826624",tracesSampleRate:.2,debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:0,integrations:[new aF({maskAllText:!1,blockAllMedia:!1})]}),L._metadata=L._metadata||{},L._metadata.sdk=L._metadata.sdk||{name:"sentry.javascript.nextjs",packages:["nextjs","react"].map(e=>({name:`npm:@sentry/${e}`,version:eL})),version:eL},L.environment=L.environment||function(e){let t=e?"preview":ra.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",function(e){let t=e.integrations||[],n=rh.__rewriteFramesAssetPrefixPath__||"",r=new ej({iteratee:e=>{try{let{origin:t}=new URL(e.filename);e.filename=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=a(n)):("call"===i||"optionalCall"===i)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(t,"app://"),"access",e=>e.replace,"call",e=>e(n,"")])}catch(e){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e}});if(t=rr(r,t),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&eR(e)){let e=new rt({tracingOrigins:[...n8.tracingOrigins,/^(api\/)/],routingInstrumentation:rl});t=rr(e,t,{"options.routingInstrumentation":rl})}e.integrations=t}(L),L._metadata=L._metadata||{},L._metadata.sdk=L._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:eL}],version:eL},function(e={}){var t;void 0===e.defaultIntegrations&&(e.defaultIntegrations=nh),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),tD.SENTRY_RELEASE&&tD.SENTRY_RELEASE.id&&(e.release=tD.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);let n={...e,stackParser:Array.isArray(t=e.stackParser||ns)?eV(...t):t,integrations:function(e){let t;let n=e.defaultIntegrations||[],r=e.integrations;n.forEach(e=>{e.isDefaultInstance=!0}),t=Array.isArray(r)?[...n,...r]:"function"==typeof r?ep(r(n)):n;let i=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(t),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(i,e=>"Debug"===e.name);if(-1!==a){let[e]=i.splice(a,1);i.push(e)}return i}(e),transport:e.transport||(eX()?nl:nd)};(function(e,t){!0===t.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");let n=eT(),r=n.getScope();r.update(t.initialScope);let i=new e(t);n.bindClient(i)})(tT,n),e.autoSessionTracking&&function(){if(void 0===tD.document)return;let e=eT();e.captureSession&&(nf(e),e8("history",({from:e,to:t})=>{void 0===e||e===t||nf(eT())}))}()}(L),eT().configureScope(e=>{e.setTag("runtime","browser");let t=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;t.id="NextClient404Filter",e.addEventProcessor(t)})},11432:function(e){e.exports={style:{fontFamily:"'__Noto_Sans_80ff56', '__Noto_Sans_Fallback_80ff56', Helvetica, Arial, sans-serif",fontStyle:"normal"},className:"__className_80ff56"}},12679:function(e,t,n){e.exports=n(36288)},26253:function(e,t,n){e.exports=n(8085)},19434:function(e){function t(e){return function(t,n,r,a){var s,o=a&&"function"==typeof a.normalizer?a.normalizer:i;n=o(n);for(var u=!1;!u;)!function(){for(s in t){var e=o(s);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[s];if(null==i||!n.length){u=!0;return}t=i;return}}}s=void 0,u=!0}();if(s)return null==t?t:e(t,s,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,i,a){return t(r).call(this,e,n,i,a),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},73656:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u=[],c=!1,l=-1;function d(){c&&r&&(c=!1,r.length?u=r.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=o(d);c=!0;for(var t=u.length;t;){for(r=u,u=[];++l<t;)r&&r[l].run();l=-1,t=u.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||c||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},6961:function(e,t,n){"use strict";n.d(t,{jc:function(){return u},o5:function(){return o}}),Symbol();let r=Symbol(),i=Object.getPrototypeOf,a=new WeakMap,s=e=>e&&(a.has(e)?a.get(e):i(e)===Object.prototype||i(e)===Array.prototype),o=e=>s(e)&&e[r]||null,u=(e,t=!0)=>{a.set(e,t)}},68496:function(e,t,n){"use strict";let r=n(30309),i=n(65140),a=n(36897),s=n(22475),o=e=>null==e,u=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function d(e,t){return t.decode?i(e):e}function h(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function f(e){e=h(e);let t=e.indexOf("?");return -1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){r[e]=n;return}void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return(e,n,r)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[].concat(r[e],n)};case"colon-list-separator":return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){r[e]=n;return}if(void 0===r[e]){r[e]=[n];return}r[e]=[].concat(r[e],n)};case"comma":case"separator":return(t,n,r)=>{let i="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!i&&d(n,e).includes(e.arrayFormatSeparator);n=a?d(n,e):n;let s=i||a?n.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===n?n:d(n,e);r[t]=s};case"bracket-separator":return(t,n,r)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){r[t]=n?d(n,e):n;return}let a=null===n?[]:n.split(e.arrayFormatSeparator).map(t=>d(t,e));if(void 0===r[t]){r[t]=a;return}r[t]=[].concat(r[t],a)};default:return(e,t,n)=>{if(void 0===n[e]){n[e]=t;return}n[e]=[].concat(n[e],t)}}}(t),r=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return r;for(let i of e.split("&")){if(""===i)continue;let[e,s]=a(t.decode?i.replace(/\+/g," "):i,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:d(s,t),n(d(e,t),s,r)}for(let e of Object.keys(r)){let n=r[e];if("object"==typeof n&&null!==n)for(let e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return n&&"object"==typeof n&&!Array.isArray(n)?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}(n):e[t]=n,e},Object.create(null))}t.extract=f,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let n=n=>t.skipNull&&o(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{let i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",i,"]"].join("")]:[...n,[l(t,e),"[",l(i,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length)?[[l(n,e),t,l(i,e)].join("")]:[[r,l(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),i={};for(let t of Object.keys(e))n(t)||(i[t]=e[t]);let a=Object.keys(i);return!1!==t.sort&&a.sort(t.sort),a.map(n=>{let i=e[n];return void 0===i?"":null===i?l(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":i.reduce(r(n),[]).join("&"):l(n,t)+"="+l(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[n,r]=a(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:d(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[u]:!0},n);let r=h(e.url).split("?")[0]||"",i=t.extract(e.url),a=t.parse(i,{sort:!1}),s=Object.assign(a,e.query),o=t.stringify(s,n);o&&(o=`?${o}`);let c=function(e){let t="",n=e.indexOf("#");return -1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c=`#${n[u]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${o}${c}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[u]:!1},r);let{url:i,query:a,fragmentIdentifier:o}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:s(a,n),fragmentIdentifier:o},r)},t.exclude=(e,n,r)=>{let i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},4507:function(e,t){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case a:case o:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case u:return e;default:return t}}case i:return t}}}function E(e){return _(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||_(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===o},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},99415:function(e,t,n){"use strict";e.exports=n(4507)},229:function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n+=(r&i|~r&a)+t[0]-680876936|0,a+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0,i+=((a=(a<<12|a>>>20)+n|0)&n|~a&r)+t[2]+606105819|0,r+=((i=(i<<17|i>>>15)+a|0)&a|~i&n)+t[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&a)+t[4]-176418897|0,a+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0,i+=((a=(a<<12|a>>>20)+n|0)&n|~a&r)+t[6]-1473231341|0,r+=((i=(i<<17|i>>>15)+a|0)&a|~i&n)+t[7]-45705983|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&a)+t[8]+1770035416|0,a+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0,i+=((a=(a<<12|a>>>20)+n|0)&n|~a&r)+t[10]-42063|0,r+=((i=(i<<17|i>>>15)+a|0)&a|~i&n)+t[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&a)+t[12]+1804603682|0,a+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0,i+=((a=(a<<12|a>>>20)+n|0)&n|~a&r)+t[14]-1502002290|0,r+=((i=(i<<17|i>>>15)+a|0)&a|~i&n)+t[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+i|0)&a|i&~a)+t[1]-165796510|0,a+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0,i+=((a=(a<<9|a>>>23)+n|0)&r|n&~r)+t[11]+643717713|0,r+=((i=(i<<14|i>>>18)+a|0)&n|a&~n)+t[0]-373897302|0,n+=((r=(r<<20|r>>>12)+i|0)&a|i&~a)+t[5]-701558691|0,a+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0,i+=((a=(a<<9|a>>>23)+n|0)&r|n&~r)+t[15]-660478335|0,r+=((i=(i<<14|i>>>18)+a|0)&n|a&~n)+t[4]-405537848|0,n+=((r=(r<<20|r>>>12)+i|0)&a|i&~a)+t[9]+568446438|0,a+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0,i+=((a=(a<<9|a>>>23)+n|0)&r|n&~r)+t[3]-187363961|0,r+=((i=(i<<14|i>>>18)+a|0)&n|a&~n)+t[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+i|0)&a|i&~a)+t[13]-1444681467|0,a+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0,i+=((a=(a<<9|a>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0,r+=((i=(i<<14|i>>>18)+a|0)&n|a&~n)+t[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+i|0)^i^a)+t[5]-378558|0,a+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0,i+=((a=(a<<11|a>>>21)+n|0)^n^r)+t[11]+1839030562|0,r+=((i=(i<<16|i>>>16)+a|0)^a^n)+t[14]-35309556|0,n+=((r=(r<<23|r>>>9)+i|0)^i^a)+t[1]-1530992060|0,a+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0,i+=((a=(a<<11|a>>>21)+n|0)^n^r)+t[7]-155497632|0,r+=((i=(i<<16|i>>>16)+a|0)^a^n)+t[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+i|0)^i^a)+t[13]+681279174|0,a+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0,i+=((a=(a<<11|a>>>21)+n|0)^n^r)+t[3]-722521979|0,r+=((i=(i<<16|i>>>16)+a|0)^a^n)+t[6]+76029189|0,n+=((r=(r<<23|r>>>9)+i|0)^i^a)+t[9]-640364487|0,a+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0,i+=((a=(a<<11|a>>>21)+n|0)^n^r)+t[15]+530742520|0,r+=((i=(i<<16|i>>>16)+a|0)^a^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~a))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[7]+1126891415|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[3]-1894986606|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[15]-30611744|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[11]-1120210379|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=a+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function a(e){var t,i,a,s,o,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(n(l,a),t=0;t<16;t+=1)a[t]=0;return o=parseInt((s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(s[1],16)||0,a[14]=o,a[15]=u,n(l,a),l}function s(e){var n;for(n=0;n<e.length;n+=1)e[n]=function(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}(e[n]);return e.join("")}function o(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function c(){this.reset()}return s(a("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(t,n){var r,i,a,s,o=this.byteLength,u=e(t,o),c=o;return(void 0!==n&&(c=e(n,o)),u>c)?new ArrayBuffer(0):(r=c-u,i=new ArrayBuffer(r),a=new Uint8Array(i),s=new Uint8Array(this,u,r),a.set(s),i)}}(),c.prototype.append=function(e){return this.appendBinary(o(e)),this},c.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},c.prototype.end=function(e){var t,n,r=this._buff,i=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)a[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(a,i),n=s(this._hash),e&&(n=u(n)),this.reset(),n},c.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},c.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},c.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},c.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},c.prototype._finish=function(e,t){var r,i,a,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),a=parseInt(r[1],16)||0,e[14]=i,e[15]=a,n(this._hash,e)},c.hash=function(e,t){return c.hashBinary(o(e),t)},c.hashBinary=function(e,t){var n=s(a(e));return t?u(n):n},c.ArrayBuffer=function(){this.reset()},c.ArrayBuffer.prototype.append=function(e){var t,r,a,s=(t=this._buff.buffer,(r=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),r.set(new Uint8Array(e),t.byteLength),r),o=s.length;for(this._length+=e.byteLength,a=64;a<=o;a+=64)n(this._hash,i(s.subarray(a-64,a)));return this._buff=new Uint8Array(a-64<o?s.buffer.slice(a-64):0),this},c.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)a[t>>2]|=r[t]<<(t%4<<3);return this._finish(a,i),n=s(this._hash),e&&(n=u(n)),this.reset(),n},c.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},c.ArrayBuffer.prototype.getState=function(){var e,t=c.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},c.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,i=new ArrayBuffer(r),a=new Uint8Array(i);for(n=0;n<r;n+=1)a[n]=e.charCodeAt(n);return t?a:i}(e.buff,!0),c.prototype.setState.call(this,e)},c.ArrayBuffer.prototype.destroy=c.prototype.destroy,c.ArrayBuffer.prototype._finish=c.prototype._finish,c.ArrayBuffer.hash=function(e,t){var r=s(function(e){var t,r,a,s,o,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,i(e.subarray(t-64,t)));for(r=(e=t-64<c?e.subarray(t-64):new Uint8Array(0)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)a[t>>2]|=e[t]<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(n(l,a),t=0;t<16;t+=1)a[t]=0;return o=parseInt((s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(s[1],16)||0,a[14]=o,a[15]=u,n(l,a),l}(new Uint8Array(e)));return t?u(r):r},c}()},36897: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 n=e.indexOf(t);return -1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},30309:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},33569:function(e,t,n){"use strict";n.r(t),n.d(t,{__assign:function(){return a},__asyncDelegator:function(){return w},__asyncGenerator:function(){return v},__asyncValues:function(){return _},__await:function(){return b},__awaiter:function(){return l},__classPrivateFieldGet:function(){return C},__classPrivateFieldSet:function(){return S},__createBinding:function(){return h},__decorate:function(){return o},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return x},__importStar:function(){return A},__makeTemplateObject:function(){return E},__metadata:function(){return c},__param:function(){return u},__read:function(){return m},__rest:function(){return s},__spread:function(){return g},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{u(r.next(e))}catch(e){a(e)}}function o(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}u((r=r.apply(e,t||[])).next())})}function d(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}}function h(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)r[i]=a[s];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||o(e,t)})})}function o(e,t){try{var n;(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(a[0][2],n)}catch(e){l(a[0][3],e)}}function u(e){o("next",e)}function c(e){o("throw",e)}function l(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},31706:function(e,t,n){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(52983),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,s=r.useEffect,o=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return o(function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})},[e,n,t]),s(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},99165:function(e,t,n){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(52983),i=n(83576),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=o(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=c(function(){function e(e){if(!u){if(u=!0,s=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(s=e,o=n)}var s,o,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]);var f=s(e,d[0],d[1]);return u(function(){h.hasValue=!0,h.value=f},[f]),l(f),f}},83576:function(e,t,n){"use strict";e.exports=n(31706)},52014:function(e,t,n){"use strict";e.exports=n(99165)},73804:function(){},53341:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},1792:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},50836:function(e,t,n){"use strict";n.d(t,{v4:function(){return s}});for(var r,i=256,a=[];i--;)a[i]=(i+256).toString(16).substring(1);function s(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],6==t?n+=a[15&e|64]:8==t?n+=a[63&e|128]:n+=a[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},61045:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=[{name:"eth-goerli",isTestnet:!0,networkId:5,chainId:5,sfId:101,shortName:"goerli",uppercaseName:"ETH_GOERLI",humanReadableName:"Goerli",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0x5943f705abb6834cad767e6e4bb258bc48d9c947",contractsV1:{resolver:"0x3710AB3fDE2B61736B8BB0CE845D6c61F667a78E",host:"0x22ff293e14F1EC3A09B137e9e06084AFd63adDF9",governance:"0x3a648764a6d66440ca096343937c711a7ac1b1e9",cfaV1:"0xEd6BcbF6907D4feEEe8a8875543249bEa9D308E8",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0xfDdcdac21D64B639546f3Ce2868C7EF06036990c",gdaV1:"0x3dB8Abd8B696F6c4150212A85961f954825Dd4B9",superTokenFactory:"0x94f26B4c8AD12B18c12f38E878618f7664bdcCE2",constantOutflowNFT:"0xB18cbFeA12b5CB2626C74c94920dB1B37Ae91506",constantInflowNFT:"0xF07df8b66ed80399B1E00981D61aD34EB4293032",superfluidLoader:"0x74d860243Ff08A243d5485899f343117EbDa6eA8",toga:"0xa54FC15FC75693447d70a57262F37a70B614721b",flowScheduler:"0xf428308b426D7cD7Ad8eBE549d750f31C8E060Ca",vestingScheduler:"0xF9240F930d847F70ad900aBEE8949F25649Bf24a",autowrap:{manager:"0x0B82D14E9616ca4d260E77454834AdCf5887595F",wrapStrategy:"0xea49af829d3e28d3ec49e0e0a0ba1e7860a56f60"},existentialNFTCloneFactory:"0x3e5e8449477F80a3Dc0bA394882AeAB300c7F807"},startBlockV1:355e4,logsQueryRange:1e4,explorer:"https://goerli.etherscan.io",subgraphV1:{name:"protocol-v1-goerli",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-goerli"},subgraphVesting:{name:"vesting-v1-eth-goerli",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-eth-goerli"},subgraphFlowScheduler:{name:"scheduling-v1-eth-goerli",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-eth-goerli"},subgraphAutoWrap:{name:"auto-wrap-v1-eth-goerli",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-eth-goerli"},publicRPCs:["https://rpc.ankr.com/eth_goerli","https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"],trustedForwarders:["0xE041608922d06a4F26C0d4c27d8bCD01daf1f792","0xb539068872230f20456CF38EC52EF2f91AF4AE49","0xd8253782c45a12053594b9deB72d8e8aB2Fca54c"]},{name:"polygon-mumbai",isTestnet:!0,networkId:80001,chainId:80001,sfId:102,shortName:"mumbai",uppercaseName:"POLYGON_MUMBAI",humanReadableName:"Polygon Mumbai",nativeTokenSymbol:"MATIC",nativeTokenWrapper:"0x96B82B65ACF7072eFEb00502F45757F254c2a0D4",contractsV1:{resolver:"0x8C54C83FbDe3C59e59dd6E324531FB93d4F504d3",host:"0xEB796bdb90fFA0f28255275e16936D25d3418603",cfaV1:"0x49e565Ed1bdc17F3d220f72DF0857C26FA83F873",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x804348D4960a61f2d5F9ce9103027A3E849E09b8",gdaV1:"0x63ab406B6eF6c8be732c1edbd15464de16a8F46D",superTokenFactory:"0xB798553db6EB3D3C56912378409370145E97324B",constantOutflowNFT:"0x502CC982947216C0f94e433BC78c413806301C07",constantInflowNFT:"0x9906A7e948C642B6bc74b9A5EAfCddB3580b44e0",superfluidLoader:"0x0d56ED56b63382B0FC964490feB9AE438B6B4b79",toga:"0x38DD80876DBA048d0050D28828522c313967D073",superSpreader:"0x74CDF863b00789c29734F8dFd9F83423Bc55E4cE",flowScheduler:"0x59A3Ba9d34c387FB70b4f4e4Fbc9eD7519194139",vestingScheduler:"0x3962EE56c9f7176215D149938BA685F91aBB633B",autowrap:{manager:"0x3eAB3c6207F488E475b7955B631B564F0E6317B9",wrapStrategy:"0x544728AFDBeEafBeC9e1329031788edb53017bC4"},existentialNFTCloneFactory:"0xfC4E49AfcDDDcc2B90794DC214cc324d17B15619"},startBlockV1:81e5,logsQueryRange:1e4,explorer:"https://mumbai.polygonscan.com",subgraphV1:{name:"protocol-v1-mumbai",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-mumbai"},subgraphVesting:{name:"vesting-v1-polygon-mumbai",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-polygon-mumbai"},subgraphFlowScheduler:{name:"scheduling-v1-polygon-mumbai",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-polygon-mumbai"},subgraphAutoWrap:{name:"auto-wrap-v1-polygon-mumbai",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-polygon-mumbai"},publicRPCs:["https://rpc.ankr.com/polygon_mumbai","https://matic-mumbai.chainstacklabs.com"],trustedForwarders:["0x9399bb24dbb5c4b782c70c2969f58716ebbd6a3b","0x69015912AA33720b842dCD6aC059Ed623F28d9f7","0xb539068872230f20456CF38EC52EF2f91AF4AE49","0xd8253782c45a12053594b9deB72d8e8aB2Fca54c"]},{name:"optimism-goerli",isTestnet:!0,networkId:420,chainId:420,sfId:103,shortName:"opgoerli",uppercaseName:"OPTIMISM_GOERLI",humanReadableName:"Optimism Goerli",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0xE01F8743677Da897F4e7De9073b57Bf034FC2433",contractsV1:{resolver:"0x21d4E9fbB9DB742E6ef4f29d189a7C18B0b59136",host:"0xE40983C2476032A0915600b9472B3141aA5B5Ba9",cfaV1:"0xff48668fa670A85e55A7a822b352d5ccF3E7b18C",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x96215257F2FcbB00135578f766c0449d239bd92F",gdaV1:"0xe87F46A15C410F151309Bf7516e130087Fc6a5E5",superTokenFactory:"0xfafe31cf998Df4e5D8310B03EBa8fb5bF327Eaf5",constantOutflowNFT:"0xDF874BA132D8C68FEb5De513790f7612Fe20dDbd",constantInflowNFT:"0xf88dd7208438Fdc5Ad05857eA701b7b51cdae0a9",superfluidLoader:"0x5Bb5908dcCC9Bb0fC39a78CfDf9e47B4C08E9521",existentialNFTCloneFactory:"0xFCb633f4ff90241391aD92E4678eC2a11a94a990"},startBlockV1:34e4,logsQueryRange:5e4,explorer:"https://goerli-optimism.etherscan.io",subgraphV1:{name:"protocol-v1-optimism-goerli",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-goerli"},publicRPCs:["https://goerli.optimism.io","https://opt-goerli.g.alchemy.com/v2/demo"],trustedForwarders:["0x9C73373C70F23920EA54F7883dCB1F85b162Df40","0xb539068872230f20456CF38EC52EF2f91AF4AE49","0xd8253782c45a12053594b9deB72d8e8aB2Fca54c"]},{name:"arbitrum-goerli",isTestnet:!0,networkId:421613,chainId:421613,sfId:104,shortName:"arbgoerli",uppercaseName:"ARBITRUM_GOERLI",humanReadableName:"Arbitrum Goerli",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0xE01F8743677Da897F4e7De9073b57Bf034FC2433",contractsV1:{resolver:"0x21d4E9fbB9DB742E6ef4f29d189a7C18B0b59136",host:"0xE40983C2476032A0915600b9472B3141aA5B5Ba9",cfaV1:"0xff48668fa670A85e55A7a822b352d5ccF3E7b18C",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x96215257F2FcbB00135578f766c0449d239bd92F",gdaV1:"0xe87F46A15C410F151309Bf7516e130087Fc6a5E5",superTokenFactory:"0xfafe31cf998Df4e5D8310B03EBa8fb5bF327Eaf5",constantOutflowNFT:"0xDF874BA132D8C68FEb5De513790f7612Fe20dDbd",constantInflowNFT:"0xf88dd7208438Fdc5Ad05857eA701b7b51cdae0a9",superfluidLoader:"0x5Bb5908dcCC9Bb0fC39a78CfDf9e47B4C08E9521",existentialNFTCloneFactory:"0x22f391AB6755F0A8986AFD543289C43701beaCAa"},startBlockV1:93e3,logsQueryRange:5e4,explorer:"https://goerli.arbiscan.io",subgraphV1:{name:"protocol-v1-arbitrum-goerli",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-arbitrum-goerli"},publicRPCs:["https://goerli-rollup.arbitrum.io/rpc","https://arb-goerli.g.alchemy.com/v2/demo"],trustedForwarders:["0xb539068872230f20456CF38EC52EF2f91AF4AE49","0xd8253782c45a12053594b9deB72d8e8aB2Fca54c"]},{name:"avalanche-fuji",isTestnet:!0,networkId:43113,chainId:43113,sfId:105,shortName:"fuji",uppercaseName:"AVALANCHE_FUJI",humanReadableName:"Avalanche Fuji",nativeTokenSymbol:"AVAX",nativeTokenWrapper:"0xfFD0f6d73ee52c68BF1b01C8AfA2529C97ca17F3",contractsV1:{resolver:"0xf0ec6A8842Ca72Aec8A4D4573E731242389e18A8",host:"0x85Fe79b998509B77BF10A8BD4001D58475D29386",cfaV1:"0x16843ac25Ccc58Aa7960ba05f61cBB17b36b130A",cfaV1Forwarder:"0x2CDd45c5182602a36d391F7F16DD9f8386C3bD8D",idaV1:"0xA44dEC7A0Dde1a56AeDe4143C1ef89cf5d956782",gdaV1:"0x51f571D934C59185f13d17301a36c07A2268B814",superTokenFactory:"0x1C92042426B6bAAe497bEf461B6d8342D03aEc92",constantOutflowNFT:"0x49583f57EFeBe733EC872c5d5437116085a3eE3c",constantInflowNFT:"0x67d0Efab10b390206b356BA7FB453Ab56AAB7480",superfluidLoader:"0x96C3C2d23d143301cF363a02cB7fe3596d2834d7",autowrap:{manager:"0x30aE282CF477E2eF28B14d0125aCEAd57Fe1d7a1",wrapStrategy:"0x1D65c6d3AD39d454Ea8F682c49aE7744706eA96d"},existentialNFTCloneFactory:"0xF76529ddEE7AA7890323eCa40C212758DD93B888"},startBlockV1:322e4,logsQueryRange:5e4,explorer:"https://testnet.snowtrace.io",subgraphV1:{name:"protocol-v1-avalanche-fuji",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-avalanche-fuji"},publicRPCs:["https://api.avax-test.network/ext/bc/C/rpc","https://avalanche-fuji-c-chain.publicnode.com"],trustedForwarders:["0x6271Ca63D30507f2Dcbf99B52787032506D75BBF","0xb539068872230f20456CF38EC52EF2f91AF4AE49","0xd8253782c45a12053594b9deB72d8e8aB2Fca54c"]},{name:"eth-sepolia",isTestnet:!0,networkId:11155111,chainId:11155111,sfId:106,shortName:"sepolia",uppercaseName:"ETH_SEPOLIA",humanReadableName:"Sepolia",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0x30a6933Ca9230361972E413a15dC8114c952414e",contractsV1:{resolver:"0x6813edE4E78ecb830d380d0F7F684c12aAc95F02",host:"0x109412E3C84f0539b43d39dB691B08c90f58dC7c",cfaV1:"0x6836F23d6171D74Ef62FcF776655aBcD2bcd62Ef",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x9358C7dCCc6B8CA6F526311e8ac266F8C861B7ea",superTokenFactory:"0x254C2e152E8602839D288A7bccdf3d0974597193",constantOutflowNFT:"0xfBE332e001D6b54e1F4B63c2343B8E7746d99Ece",constantInflowNFT:"0xC95346B7394009ccEfaA62Eca28797804B2bCF1C",superfluidLoader:"0x554c06487bEc8c890A0345eb05a5292C1b1017Bd",existentialNFTCloneFactory:"0x0D1F0d4629B722b4dFabd195c14F12f2095418d9"},startBlockV1:3322400,logsQueryRange:1e4,explorer:"https://sepolia.etherscan.io",subgraphV1:{name:"protocol-v1-eth-sepolia",satsumaEndpoint:"https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/eth-sepolia/api"},publicRPCs:["https://rpc.sepolia.org","https://ethereum-sepolia.blockpi.network/v1/rpc/public"]},{name:"base-goerli",isTestnet:!0,networkId:84531,chainId:84531,sfId:107,shortName:"bgoerli",uppercaseName:"BASE_GOERLI",humanReadableName:"Base Goerli",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0x7fFCE315B2014546bA461d54eDed7AAc70DF4f53",contractsV1:{resolver:"0x598D5dB9902cbBd6e8Ee9CDb3A231377cdA2f018",host:"0x507c3a7C6Ccc253884A2e3a3ee2A211cC7E796a6",cfaV1:"0x4C476F2Fb27272680F2f6f2592E94d9e704691bC",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0xaa4FCc799B8857FA87b2945Dc6572D5d76b35485",superTokenFactory:"0x1015BE31D7711D95d2c3444708FB53cC851ba856",constantOutflowNFT:"0x4E89088Cd14064f38E5B2F309cFaB9C864F9a8e6",constantInflowNFT:"0xda6db863cb2EE39b196edB8159c38A1ed5c55344",superfluidLoader:"0x15F0Ca26781C3852f8166eD2ebce5D18265cceb7",existentialNFTCloneFactory:"0x42B332F56BCD15F0D7cd523E5eC26Cd0734621eD"},startBlockV1:5249500,logsQueryRange:1e4,explorer:"https://goerli.basescan.org/",subgraphV1:{name:"protocol-v1-base-goerli"},publicRPCs:["https://goerli.base.org","https://base-goerli.public.blastapi.io"],trustedForwarders:["0xb539068872230f20456CF38EC52EF2f91AF4AE49","0xd8253782c45a12053594b9deB72d8e8aB2Fca54c"]},{name:"polygon-zkevm-testnet",isTestnet:!0,networkId:1442,chainId:1442,sfId:108,shortName:"pzkevmtest",uppercaseName:"POLYGON_ZKEVM_TESTNET",humanReadableName:"Polygon zkEVM Testnet",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0x6345Aa6cec42a85160CF436810F97661e28c1876",contractsV1:{resolver:"0x642332562BC60a4Bd9681E7bb1588f7456A497aC",host:"0xe64f81d5dDdA1c7172e5C6d964E8ef1BD82D8704",cfaV1:"0x1EAa5ceA064aab2692AF257FB31f5291fdA3Cdee",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0xBf22019a4A4430bA67D3B0c8B4d5Edc48F913301",superTokenFactory:"0x0F3B163623F05b2BfF42956f7C7bd31456bd83a2",constantOutflowNFT:"0xDBD6f113E46A99D7BF95edfa47390c0c8127E922",constantInflowNFT:"0xcb05535bd212eCFC4B7b9db81d6C2C768b726776",superfluidLoader:"0xda6db863cb2EE39b196edB8159c38A1ed5c55344",existentialNFTCloneFactory:"0x70bbB7a057A13070dF11d533e8f299357D778637"},startBlockV1:726e3,logsQueryRange:2e4,explorer:"https://testnet-zkevm.polygonscan.org/",subgraphV1:{name:"protocol-v1-polygon-zkevm-testnet"},publicRPCs:["https://rpc.public.zkevm-test.net"],trustedForwarders:["0xb539068872230f20456CF38EC52EF2f91AF4AE49","0xd8253782c45a12053594b9deB72d8e8aB2Fca54c"]},{name:"xdai-mainnet",isTestnet:!1,networkId:100,chainId:100,sfId:1,shortName:"xdai",uppercaseName:"XDAI_MAINNET",humanReadableName:"Gnosis Chain",nativeTokenSymbol:"xDAI",nativeTokenWrapper:"0x59988e47A3503AaFaA0368b9deF095c818Fdca01",contractsV1:{resolver:"0xD2009765189164b495c110D61e4D301729079911",host:"0x2dFe937cD98Ab92e59cF3139138f18c823a4efE7",governance:"0xaCc7380323681fdb8a0B9F2FE7d69dDFf0664478",cfaV1:"0xEbdA4ceF883A7B12c4E669Ebc58927FBa8447C7D",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x7888ac96F987Eb10E291F34851ae0266eF912081",superTokenFactory:"0x23410e2659380784498509698ed70E414D384880",constantOutflowNFT:"0xfC00dEE8a980110c5608A823a5B3af3872635456",constantInflowNFT:"0x1497440B4E92DC4ca0F76223b28C20Cb9cB8a0f1",superfluidLoader:"0x21d4E9fbB9DB742E6ef4f29d189a7C18B0b59136",toga:"0xb7DE52F4281a7a276E18C40F94cd93159C4A2d22",batchLiquidator:"0x27636F8E129cdd4ccA0F30E2b4C116DDaC773bE5",superSpreader:"0x74CDF863b00789c29734F8dFd9F83423Bc55E4cE",flowScheduler:"0x9cC7fc484fF588926149577e9330fA5b2cA74336",vestingScheduler:"0x0170FFCC75d178d426EBad5b1a31451d00Ddbd0D",wrapManager:"0x7a2899D179a8F205C8EDAd2e52954cA5f6d48D1A",autowrap:{manager:"0x8082e58681350876aFe8f52d3Bf8672034A03Db0",wrapStrategy:"0x51FBAbD31A615E14b1bC12E9d887f60997264a4E"},existentialNFTCloneFactory:"0xCd67c5bC1dfA3FF7d86b5ABc62A65C912Cbd2DA7"},startBlockV1:1482e4,logsQueryRange:2e4,explorer:"https://gnosisscan.io",subgraphV1:{name:"protocol-v1-xdai",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-xdai",satsumaEndpoint:"https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/xdai/api"},subgraphVesting:{name:"vesting-v1-xdai-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-xdai-mainnet"},subgraphFlowScheduler:{name:"scheduling-v1-xdai-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-xdai-mainnet"},subgraphAutoWrap:{name:"auto-wrap-v1-xdai-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-xdai-mainnet"},publicRPCs:["https://rpc.gnosischain.com","https://gnosischain-rpc.gateway.pokt.network"],coinGeckoId:"xdai"},{name:"polygon-mainnet",isTestnet:!1,networkId:137,chainId:137,sfId:2,shortName:"matic",uppercaseName:"POLYGON_MAINNET",humanReadableName:"Polygon",nativeTokenSymbol:"MATIC",nativeTokenWrapper:"0x3aD736904E9e65189c3000c7DD2c8AC8bB7cD4e3",contractsV1:{resolver:"0xE0cc76334405EE8b39213E620587d815967af39C",host:"0x3E14dC1b13c488a8d5D310918780c983bD5982E7",governance:"0x3AD3f7A0965Ce6f9358AD5CCE86Bc2b05F1EE087",cfaV1:"0x6EeE6060f715257b970700bc2656De21dEdF074C",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1",superTokenFactory:"0x2C90719f25B10Fc5646c82DA3240C76Fa5BcCF34",constantOutflowNFT:"0x554e2bbaCF43FD87417b7201A9F1649a3ED89d68",constantInflowNFT:"0x55909bB8cd8276887Aae35118d60b19755201c68",superfluidLoader:"0x15F0Ca26781C3852f8166eD2ebce5D18265cceb7",toga:"0x6AEAeE5Fd4D05A741723D752D30EE4D72690A8f7",batchLiquidator:"0xA6Cdb472e7E22Bf30ae6fB752E4a13eBF3c12165",flowScheduler:"0x55F7758dd99d5e185f4CC08d4Ad95B71f598264D",vestingScheduler:"0xcFE6382B33F2AdaFbE46e6A26A88E0182ae32b0c",autowrap:{manager:"0x2581c27E7f6D6AF452E63fCe884EDE3EDd716b32",wrapStrategy:"0xb4afa36BAd8c76976Dc77a21c9Ad711EF720eE4b"},existentialNFTCloneFactory:"0x497aa106Da00BFa8f8BC266EF0793131930Fa630"},startBlockV1:11650500,logsQueryRange:1e4,explorer:"https://polygonscan.com",subgraphV1:{name:"protocol-v1-matic",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-matic",satsumaEndpoint:"https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/matic/api"},subgraphVesting:{name:"vesting-v1-polygon-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-polygon-mainnet"},subgraphFlowScheduler:{name:"scheduling-v1-polygon-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-polygon-mainnet"},subgraphAutoWrap:{name:"auto-wrap-v1-polygon-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-polygon-mainnet"},publicRPCs:["https://polygon-rpc.com","https://poly-rpc.gateway.pokt.network"],coinGeckoId:"polygon-pos"},{name:"optimism-mainnet",isTestnet:!1,networkId:10,chainId:10,sfId:3,shortName:"optimism",uppercaseName:"OPTIMISM_MAINNET",humanReadableName:"Optimism",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0x4ac8bD1bDaE47beeF2D1c6Aa62229509b962Aa0d",contractsV1:{resolver:"0x743B5f46BC86caF41bE4956d9275721E0531B186",host:"0x567c4B141ED61923967cA25Ef4906C8781069a10",governance:"0x0170FFCC75d178d426EBad5b1a31451d00Ddbd0D",cfaV1:"0x204C6f131bb7F258b2Ea1593f5309911d8E458eD",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0xc4ce5118C3B20950ee288f086cb7FC166d222D4c",superTokenFactory:"0x8276469A443D5C6B7146BED45e2abCaD3B6adad9",constantOutflowNFT:"0xFb2b126660BE2fdEBa254b1F6e4348644E8482e7",constantInflowNFT:"0x0C6D90a98426bfD572a5c5Be572a7f6Bd1C5ED76",superfluidLoader:"0x8E310ce29Ab7Fa2878944A65BB0eaF97B1853d40",toga:"0xA3c8502187fD7a7118eAD59dc811281448946C8f",batchLiquidator:"0x36Df169DBf5CE3c6f58D46f0addeF58F01381232",flowScheduler:"0x55c8fc400833eEa791087cF343Ff2409A39DeBcC",vestingScheduler:"0x65377d4dfE9c01639A41952B5083D58964782892",autowrap:{manager:"0x1fA76f2Cd0C3fe6c399A80111408d9C42C0CAC23",wrapStrategy:"0x0Cf060a501c0040e9CCC708eFE94079F501c6Bb4"},existentialNFTCloneFactory:"0xCb0Ff4D0cA186f0Fc0301258066Fe3fA258417a6"},startBlockV1:43e5,logsQueryRange:5e4,explorer:"https://optimistic.etherscan.io",subgraphV1:{name:"protocol-v1-optimism-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-mainnet"},subgraphVesting:{name:"vesting-v1-optimism-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-optimism-mainnet"},subgraphFlowScheduler:{name:"scheduling-v1-optimism-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-optimism-mainnet"},subgraphAutoWrap:{name:"auto-wrap-v1-optimism-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-optimism-mainnet"},publicRPCs:["https://mainnet.optimism.io","https://rpc.ankr.com/optimism"],coinGeckoId:"optimistic-ethereum"},{name:"arbitrum-one",isTestnet:!1,networkId:42161,chainId:42161,sfId:4,shortName:"arbone",uppercaseName:"ARBITRUM_ONE",humanReadableName:"Arbitrum One",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0xe6C8d111337D0052b9D88BF5d7D55B7f8385ACd3",contractsV1:{resolver:"0x609b9d9d6Ee9C3200745A79B9d3398DBd63d509F",host:"0xCf8Acb4eF033efF16E8080aed4c7D5B9285D2192",governance:"0x0170FFCC75d178d426EBad5b1a31451d00Ddbd0D",cfaV1:"0x731FdBB12944973B500518aea61942381d7e240D",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x2319C7e07EB063340D2a0E36709B0D65fda75986",superTokenFactory:"0x1C21Ead77fd45C84a4c916Db7A6635D0C6FF09D6",constantOutflowNFT:"0x051e766e2d8dc65ae2bFCF084A50AD0447634227",constantInflowNFT:"0x0043d7c85C8b96a49A72A92C0B48CdC4720437d7",superfluidLoader:"0xB99cA401e10D277345BcFb281AC148a2e16Db466",toga:"0xFC63B7C762B10670Eda15cF3ca3970bCDB28C9eF",batchLiquidator:"0x6C66e5c5D201A753ff497F2e9eC5D545631854d0",flowScheduler:"0x3fA8B653F9abf91428800C0ba0F8D145a71F97A1",vestingScheduler:"0x55c8fc400833eEa791087cF343Ff2409A39DeBcC",autowrap:{manager:"0xf01825eAFAe5CD1Dab5593EFAF218efC8968D272",wrapStrategy:"0x342076aA957B0ec8bC1d3893af719b288eA31e61"},existentialNFTCloneFactory:"0xF353978890204756fc5fa6dfbD16a91eac9E6f4d"},startBlockV1:76e5,logsQueryRange:5e4,explorer:"https://arbiscan.io",subgraphV1:{name:"protocol-v1-arbitrum-one",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-arbitrum-one"},subgraphVesting:{name:"vesting-v1-arbitrum-one",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-arbitrum-one"},subgraphFlowScheduler:{name:"scheduling-v1-arbitrum-one",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-arbitrum-one"},subgraphAutoWrap:{name:"auto-wrap-v1-arbitrum-one",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-arbitrum-one"},publicRPCs:["https://arb1.arbitrum.io/rpc","https://arbitrum.blockpi.network/v1/rpc/public"],coinGeckoId:"arbitrum-one"},{name:"avalanche-c",isTestnet:!1,networkId:43114,chainId:43114,sfId:5,shortName:"avalanche",uppercaseName:"AVALANCHE_C",humanReadableName:"Avalanche C",nativeTokenSymbol:"AVAX",nativeTokenWrapper:"0xBE916845D8678b5d2F7aD79525A62D7c08ABba7e",contractsV1:{resolver:"0x24a3F04F70B7f07B9673EadD3e146391BcfEa5c1",host:"0x60377C7016E4cdB03C87EF474896C11cB560752C",governance:"0xF74390BabA510ec2fE196c2e02B037380d7a6F12",cfaV1:"0x6946c5B38Ffea373b0a2340b4AEf0De8F6782e58",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x1fA9fFe8Db73F701454B195151Db4Abb18423cf2",superTokenFactory:"0x464AADdBB2B80f3Cb666522EB7381bE610F638b4",constantOutflowNFT:"0x4247bA6C3658Fa5C0F523BAcea8D0b97aF1a175e",constantInflowNFT:"0x82b9D8A91A5b333b5A6e78439551ea0E7da153E3",superfluidLoader:"0x2601E69a2D16C8Ccc8aEe8cE9F59d24a59986B9E",toga:"0x3D9A67D5ec1E72CEcA8157e028855056786b6159",batchLiquidator:"0xdddaD64A9Fe7709A729C4a5428617e369278e0b6",flowScheduler:"0xF7AfF590E9DE493D7ACb421Fca7f1E35C1ad4Ce5",vestingScheduler:"0x3fA8B653F9abf91428800C0ba0F8D145a71F97A1",autowrap:{manager:"0x8082e58681350876aFe8f52d3Bf8672034A03Db0",wrapStrategy:"0x51FBAbD31A615E14b1bC12E9d887f60997264a4E"},existentialNFTCloneFactory:"0x94aE5f52E401A5766b0877d2f030cFb9C3792BD7"},startBlockV1:147e5,logsQueryRange:5e4,explorer:"https://snowtrace.io",subgraphV1:{name:"protocol-v1-avalanche-c",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-avalanche-c"},subgraphVesting:{name:"vesting-v1-avalanche-c",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-avalanche-c"},subgraphFlowScheduler:{name:"scheduling-v1-avalanche-c",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-avalanche-c"},subgraphAutoWrap:{name:"auto-wrap-v1-avalanche-c",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-avalanche-c"},publicRPCs:["https://api.avax.network/ext/bc/C/rpc","https://rpc.ankr.com/avalanche"],coinGeckoId:"avalanche"},{name:"bsc-mainnet",isTestnet:!1,networkId:56,chainId:56,sfId:5,shortName:"bsc",uppercaseName:"BSC_MAINNET",humanReadableName:"BNB Smart Chain",nativeTokenSymbol:"BNB",nativeTokenWrapper:"0x529A4116F160c833c61311569D6B33dFF41fD657",contractsV1:{resolver:"0x69604aA4e9e8BF44A73C680997205Edb03A92E41",host:"0xd1e2cFb6441680002Eb7A44223160aB9B67d7E6E",governance:"0xee07D9fce4Cf2a891BC979E9d365929506C2982f",cfaV1:"0x49c38108870e74Cb9420C0991a85D3edd6363F75",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x594ed9Cd773584B645aC1F5B11020d3b32cDF07d",superTokenFactory:"0x8bde47397301F0Cd31b9000032fD517a39c946Eb",constantOutflowNFT:"0xcb05535bd212eCFC4B7b9db81d6C2C768b726776",constantInflowNFT:"0xbF7BCcE8D60A9C3F6bFaEc9346Aa85B9f781a4e9",superfluidLoader:"0x3C26e5bEbc68EaAf4efcd88F8E5A6Aeb77b65579",toga:"0xFCD84210f5d51Cd40a30443d44d6A5500d5D10dF",batchLiquidator:"0x5487d078CA8933e83d91d5E7AFBe3A7bfC3412d6",flowScheduler:"0x2f9e2A2A59405682d4F86779275CF5525AD7eC2B",vestingScheduler:"0x9B91c27f78376383003C6A12Ad12B341d016C5b9",autowrap:{manager:"0x2AcdD61ac1EFFe1535109449c31889bdE8d7f325",wrapStrategy:"0x9e308cb079ae130790F604b1030cDf386670f199"},existentialNFTCloneFactory:"0xe9F27eb8cdAaA0B01a4034e109496C3026b01bd9"},startBlockV1:188e5,logsQueryRange:5e3,explorer:"https://bscscan.com",subgraphV1:{name:"protocol-v1-bsc-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-bsc-mainnet"},subgraphVesting:{name:"vesting-v1-bsc-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-bsc-mainnet"},subgraphFlowScheduler:{name:"scheduling-v1-bsc-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-bsc-mainnet"},subgraphAutoWrap:{name:"auto-wrap-v1-bsc-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-bsc-mainnet"},publicRPCs:["https://bscrpc.com","https://bsc-dataseed.binance.org"],coinGeckoId:"binance-smart-chain"},{name:"eth-mainnet",isTestnet:!1,networkId:1,chainId:1,sfId:6,shortName:"mainnet",uppercaseName:"ETH_MAINNET",humanReadableName:"Ethereum",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0xC22BeA0Be9872d8B7B3933CEc70Ece4D53A900da",contractsV1:{resolver:"0xeE4cD028f5fdaAdeA99f8fc38e8bA8A57c90Be53",host:"0x4E583d9390082B65Bef884b629DFA426114CED6d",governance:"0xe2E14e2C4518cB06c32Cd0818B4C01f53E1Ba653",cfaV1:"0x2844c1BBdA121E9E43105630b9C8310e5c72744b",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0xbCF9cfA8Da20B591790dF27DE65C1254Bf91563d",superTokenFactory:"0x0422689cc4087b6B7280e0a7e7F655200ec86Ae1",superfluidLoader:"0x9775EEBdfF8AE845e7Ad3d1D04B85e6c6d284aCB",toga:"0x8B5a2CF69a56d7F8Fa027edcA23594cdDF544dDc",batchLiquidator:"0x554c06487bEc8c890A0345eb05a5292C1b1017Bd",flowScheduler:"0xAA0cD305eD020137E302CeCede7b18c0A05aCCDA",vestingScheduler:"0x39D5cBBa9adEBc25085a3918d36D5325546C001B",autowrap:{manager:"0x30aE282CF477E2eF28B14d0125aCEAd57Fe1d7a1",wrapStrategy:"0x1D65c6d3AD39d454Ea8F682c49aE7744706eA96d"}},startBlockV1:1587e4,logsQueryRange:1e4,explorer:"https://etherscan.io",subgraphV1:{name:"protocol-v1-eth-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-eth-mainnet",satsumaEndpoint:"https://subgraph.satsuma-prod.com/c5br3jaVlJI6/superfluid/eth-mainnet/api"},subgraphVesting:{name:"vesting-v1-eth-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/vesting-v1-eth-mainnet"},subgraphFlowScheduler:{name:"scheduling-v1-eth-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/scheduling-v1-eth-mainnet"},subgraphAutoWrap:{name:"auto-wrap-v1-eth-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/auto-wrap-v1-eth-mainnet"},publicRPCs:["https://cloudflare-eth.com","https://eth-rpc.gateway.pokt.network"],coinGeckoId:"ethereum"},{name:"celo-mainnet",isTestnet:!1,networkId:42220,chainId:42220,sfId:7,shortName:"celo",uppercaseName:"CELO_MAINNET",humanReadableName:"Celo",nativeTokenSymbol:"CELO",nativeTokenWrapper:"0x671425Ae1f272Bc6F79beC3ed5C4b00e9c628240",contractsV1:{resolver:"0x05eE721BD4D803d6d477Aa7607395452B65373FF",host:"0xA4Ff07cF81C02CFD356184879D953970cA957585",governance:"0x0170FFCC75d178d426EBad5b1a31451d00Ddbd0D",cfaV1:"0x9d369e78e1a682cE0F8d9aD849BeA4FE1c3bD3Ad",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x26747Fe93fAC8bF28E1e24A558a2bC7E4d9846cA",superTokenFactory:"0x36be86dEe6BC726Ed0Cbd170ccD2F21760BC73D9",constantOutflowNFT:"0xbe49ac1EadAc65dccf204D4Df81d650B50122aB2",constantInflowNFT:"0x0FB7694c990CF19001127391Dbe53924dd7a61c7",superfluidLoader:"0xAd6e6849d8eEa62AF9271808afb726610fB451a6",toga:"0x9bCa3a623e7b2e248510d88B2894F54898d88F91",batchLiquidator:"0x21d4E9fbB9DB742E6ef4f29d189a7C18B0b59136",existentialNFTCloneFactory:"0x051e766e2d8dc65ae2bFCF084A50AD0447634227"},startBlockV1:16393e3,logsQueryRange:2e4,explorer:"https://celoscan.io",subgraphV1:{name:"protocol-v1-celo-mainnet",hostedEndpoint:"https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-celo-mainnet"},publicRPCs:["https://forno.celo.org","https://rpc.ankr.com/celo"],coinGeckoId:"celo"},{name:"base-mainnet",isTestnet:!1,networkId:8453,chainId:8453,sfId:8,shortName:"base",uppercaseName:"BASE_MAINNET",humanReadableName:"Base",nativeTokenSymbol:"ETH",nativeTokenWrapper:"0x46fd5cfB4c12D87acD3a13e92BAa53240C661D93",contractsV1:{resolver:"0x6a214c324553F96F04eFBDd66908685525Da0E0d",host:"0x4C073B3baB6d8826b8C5b229f3cfdC1eC6E47E74",governance:"0x55F7758dd99d5e185f4CC08d4Ad95B71f598264D",cfaV1:"0x19ba78B9cDB05A877718841c574325fdB53601bb",cfaV1Forwarder:"0xcfA132E353cB4E398080B9700609bb008eceB125",idaV1:"0x66DF3f8e14CF870361378d8F61356D15d9F425C4",superTokenFactory:"0xe20B9a38E0c96F61d1bA6b42a61512D56Fea1Eb3",constantOutflowNFT:"0xD3C78bb5a16Ea4ab584844eeb8F90Ac710c16355",constantInflowNFT:"0x2d51962A9EE4D3C2819EF585eab7412c2a2C31Ac",superfluidLoader:"0x6B24A6F34ab96267Fef9F8AC9fe6CC104C228127",toga:"0xA87F76e99f6C8Ff8996d14f550ceF47f193D9A09",batchLiquidator:"0x889ebeCaD5F8C34Fd96023456d0fC5cE54eb74Cb",existentialNFTCloneFactory:"0x642332562BC60a4Bd9681E7bb1588f7456A497aC"},startBlockV1:1e6,logsQueryRange:2e4,explorer:"https://basescan.org",subgraphV1:{name:"protocol-v1-base-mainnet"},publicRPCs:["https://developer-access-mainnet.base.org"],coinGeckoId:"base"}],i={networks:r,mainnets:r.filter(e=>!e.isTestnet),testnets:r.filter(e=>e.isTestnet),getNetworkByChainId:function(e){return this.networks.filter(t=>t.chainId===e)[0]},getNetworkByName:function(e){return this.networks.filter(t=>t.name===e)[0]},getNetworkByShortName:function(e){return this.networks.filter(t=>t.shortName===e)[0]}}},236:function(e,t,n){"use strict";n.d(t,{_:function(){return v}});var r,i=n(93518);function a(e){return"string"==typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"==typeof e?Number(e):e}var s=n(21883),o=n(71442),u=n(38544),c=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},l=(e,t,n)=>(c(e,t,"read from private field"),n?n.call(e):t.get(e)),d=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},h=(e,t,n,r)=>(c(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),f=class extends s{constructor({chains:e=[o.R,u.w],options:t}){super(),this.chains=e,this.options=t}getBlockExplorerUrls(e){let{default:t,...n}=e.blockExplorers??{};if(t)return[t.url,...Object.values(n).map(e=>e.url)]}isChainUnsupported(e){return!this.chains.some(t=>t.id===e)}setStorage(e){this.storage=e}},p=n(61918),m=n(79895),g=n(35219),y=n(77490),b=n(36493),v=class extends f{constructor({chains:e,options:t}={}){let n={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;let e=window.ethereum;return e?.providers?e.providers[0]:e},...t};super({chains:e,options:n}),this.id="injected",d(this,r,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,p.K)(e[0])})},this.onChainChanged=e=>{let t=a(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=async e=>{if(1013===e.code){let e=await this.getProvider();if(e){let e=await this.getAccount();if(e)return}}this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey)};let i=n.getProvider();if("string"==typeof n.name)this.name=n.name;else if(i){let e=function(e){if(!e)return"Injected";let t=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0;if(e.providers?.length){let n=new Set,r=1;for(let i of e.providers){let e=t(i);e||(e=`Unknown Wallet #${r}`,r+=1),n.add(e)}let i=[...n];return i.length?i:i[0]??"Injected"}return t(e)??"Injected"}(i);n.name?this.name=n.name(e):"string"==typeof e?this.name=e:this.name=e[0]}else this.name="Injected";this.ready=!!i}async connect({chainId:e}={}){try{let t=await this.getProvider();if(!t)throw new i.N;t.on&&(t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),r=(0,p.K)(n[0]),a=await this.getChainId(),s=this.isChainUnsupported(a);if(e&&a!==e){let t=await this.switchChain(e);a=t.id,s=this.isChainUnsupported(a)}return this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:r,chain:{id:a,unsupported:s}}}catch(e){if(this.isUserRejectedRequestError(e))throw new m.ab(e);if(-32002===e.code)throw new m.pT(e);throw e}}async disconnect(){let e=await this.getProvider();e?.removeListener&&(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new i.N;return(0,p.K)((await e.request({method:"eth_accounts"}))[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new i.N;return e.request({method:"eth_chainId"}).then(a)}async getProvider(){let e=this.options.getProvider();return e&&h(this,r,e),l(this,r)}async getWalletClient({chainId:e}={}){let[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,g.K)({account:n,chain:r,transport:(0,y.P)(t)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;let e=await this.getProvider();if(!e)throw new i.N;let t=await this.getAccount();return!!t}catch{return!1}}async switchChain(e){let t=await this.getProvider();if(!t)throw new i.N;let n=(0,b.eC)(e);try{return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(t=>this.on("change",({chain:n})=>{n?.id===e&&t()}))]),this.chains.find(t=>t.id===e)??{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(a){let r=this.chains.find(t=>t.id===e);if(!r)throw new i.B({chainId:e,connectorId:this.id});if(4902===a.code||a?.data?.originalError?.code===4902)try{await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:r.name,nativeCurrency:r.nativeCurrency,rpcUrls:[r.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(r)}]});let i=await this.getChainId();if(i!==e)throw new m.ab(Error("User rejected switch after adding network."));return r}catch(e){throw new m.ab(e)}if(this.isUserRejectedRequestError(a))throw new m.ab(a);throw new m.x3(a)}}async watchAsset({address:e,decimals:t=18,image:n,symbol:r}){let a=await this.getProvider();if(!a)throw new i.N;return a.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:e,decimals:t,image:n,symbol:r}}})}isUserRejectedRequestError(e){return 4001===e.code}};r=new WeakMap},93518:function(e,t,n){"use strict";n.d(t,{B:function(){return r},N:function(){return i}});var r=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured for connector "${t}".`),this.name="ChainNotConfiguredForConnectorError"}},i=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}}},29202:function(e,t,n){"use strict";let r,i;n.d(t,{QB:function(){return n_},$j:function(){return nz},_g:function(){return nL},o6:function(){return nB},vZ:function(){return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,i;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let a=Object.keys(t);if((r=a.length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[i];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}},zP:function(){return nq},EG:function(){return n2},RQ:function(){return re},w6:function(){return n9},Lk:function(){return n7},D0:function(){return n5},_X:function(){return nI},Hy:function(){return n3},uV:function(){return nW},gY:function(){return nO},xz:function(){return n$},jr:function(){return nH},wp:function(){return nN},$q:function(){return nJ},a4:function(){return nX},JH:function(){return n0},If:function(){return n6},Mn:function(){return rt},uH:function(){return n8},QC:function(){return n4},pC:function(){return nQ},Tb:function(){return nV},fq:function(){return nK},n9:function(){return n1}});var a,s,o,u,c,l=n(236),d=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},h=(e,t,n)=>(d(e,t,"read from private field"),n?n.call(e):t.get(e)),f=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},p=(e,t,n,r)=>(d(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),m=(e,t,n)=>(d(e,t,"access private method"),n),g=n(23450),y=n(17142),b=n(41687),v=n(72938),w=n(8559),_=n(23540),E=n(36493),A=n(8877),x=n(35831),C=n(98955);function S(e,t){if(!(e instanceof x.G))return!1;let n=e.walk(e=>e instanceof C.Lu);return n instanceof C.Lu&&(!!(n.data?.errorName==="ResolverNotFound"||n.data?.errorName==="ResolverWildcardNotSupported"||n.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&n.reason===A.$[50])}var k=n(56232),D=n(17951),I=n(86607),O=n(99958);function T(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,O.v)(t)?t:null}function P(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,E.ci)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let r=T(n[e]),i=r?(0,D.O0)(r):(0,I.w)((0,D.qX)(n[e]),"bytes");t=(0,I.w)((0,k.zo)([t,i]),"bytes")}return(0,E.ci)(t)}function F(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,D.qX)(t).byteLength+2),r=0,i=t.split(".");for(let e=0;e<i.length;e++){let t=(0,D.qX)(i[e]);t.byteLength>255&&(t=(0,D.qX)(`[${(function(e){let t=new Uint8Array(32).fill(0);return e?T(e)||(0,I.w)((0,D.qX)(e)):(0,E.ci)(t)})(i[e]).slice(2)}]`)),n[r]=t.length,n.set(t,r+1),r+=t.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}var R=n(14437),N=n(79895);function B(e,{abi:t,address:n,args:r,docsPath:i,functionName:a,sender:s}){let{code:o,data:u,message:c,shortMessage:l}=e instanceof C.VQ?e:e instanceof x.G?e.walk(e=>"data"in e)||e.walk():{},d=e;return e instanceof R.wb?d=new C.Dk({functionName:a}):[3,N.XS.code].includes(o)&&(u||c||l)&&(d=new C.Lu({abi:t,data:"object"==typeof u?u.data:u,functionName:a,message:l??c})),new C.uq(d,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:s})}var M=n(37474);async function j(e,{abi:t,address:n,args:r,functionName:i,...a}){let s=(0,v.R)({abi:t,args:r,functionName:i});try{let{data:o}=await (0,M.R)(e,{data:s,to:n,...a});return(0,b.k)({abi:t,args:r,functionName:i,data:o||"0x"})}catch(e){throw B(e,{abi:t,address:n,args:r,docsPath:"/docs/contract/readContract",functionName:i})}}async function L(e,{blockNumber:t,blockTag:n,coinType:r,name:i,universalResolverAddress:a}){let s=a;if(!s){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");s=(0,w.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=(0,v.R)({abi:y.X$,functionName:"addr",...null!=r?{args:[P(i),BigInt(r)]}:{args:[P(i)]}}),o=await j(e,{address:s,abi:y.k3,functionName:"resolve",args:[(0,E.NC)(F(i)),a],blockNumber:t,blockTag:n});if("0x"===o[0])return null;let u=(0,b.k)({abi:y.X$,args:null!=r?[P(i),BigInt(r)]:void 0,functionName:"addr",data:o[0]});if("0x"===u||"0x00"===(0,_.f)(u))return null;return u}catch(e){if(S(e,"resolve"))return null;throw e}}class U 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 z 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 q 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 G 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 Z=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,W=/^(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>\/.*)?$/,$=/^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 n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function V(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function K({uri:e,gatewayUrls:t}){let n=$.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=V(t?.ipfs,"https://ipfs.io"),i=V(t?.arweave,"https://arweave.net"),a=e.match(Z),{protocol:s,subpath:o,target:u,subtarget:c=""}=a?.groups||{},l="ipns:/"===s||"ipns/"===o,d="ipfs:/"===s||"ipfs/"===o||W.test(e);if(e.startsWith("http")&&!l&&!d){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((l||d)&&u)return{uri:`${r}/${l?"ipns":"ipfs"}/${u}${c}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&u)return{uri:`${i}/${u}${c||""}`,isOnChain:!1,isEncoded:!1};let h=e.replace(H,"");if(h.startsWith("<svg")&&(h=`data:image/svg+xml;base64,${btoa(h)}`),h.startsWith("data:")||h.startsWith("{"))return{uri:h,isOnChain:!0,isEncoded:!1};throw new q({uri:e})}function J(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new U({data:e});return e.image||e.image_url||e.image_data}async function Y({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(e=>e.json()),r=await X({gatewayUrls:e,uri:J(n)});return r}catch{throw new q({uri:t})}}async function X({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=K({uri:t,gatewayUrls:e});if(r)return n;let i=await Q(n);if(i)return n;throw new q({uri:t})}async function ee(e,{nft:t}){if("erc721"===t.namespace)return j(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 j(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 G({namespace:t.namespace})}async function et(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?en(e,{gatewayUrls:t,record:n}):X({uri:n,gatewayUrls:t})}async function en(e,{gatewayUrls:t,record:n}){let r=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[n,r,i]=t.split("/"),[a,s]=n.split(":"),[o,u]=r.split(":");if(!a||"eip155"!==a.toLowerCase())throw new z({reason:"Only EIP-155 supported"});if(!s)throw new z({reason:"Chain ID not found"});if(!u)throw new z({reason:"Contract address not found"});if(!i)throw new z({reason:"Token ID not found"});if(!o)throw new z({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:o.toLowerCase(),contractAddress:u,tokenID:i}}(n),i=await ee(e,{nft:r}),{uri:a,isOnChain:s,isEncoded:o}=K({uri:i,gatewayUrls:t});if(s&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){let e=o?atob(a.replace("data:application/json;base64,","")):a,n=JSON.parse(e);return X({uri:J(n),gatewayUrls:t})}let u=r.tokenID;return"erc1155"===r.namespace&&(u=u.replace("0x","").padStart(64,"0")),Y({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,u)})}async function er(e,{blockNumber:t,blockTag:n,name:r,key:i,universalResolverAddress:a}){let s=a;if(!s){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");s=(0,w.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=await j(e,{address:s,abi:y.k3,functionName:"resolve",args:[(0,E.NC)(F(r)),(0,v.R)({abi:y.nZ,functionName:"text",args:[P(r),i]})],blockNumber:t,blockTag:n});if("0x"===a[0])return null;let o=(0,b.k)({abi:y.nZ,functionName:"text",data:a[0]});return""===o?null:o}catch(e){if(S(e,"resolve"))return null;throw e}}async function ei(e,{blockNumber:t,blockTag:n,gatewayUrls:r,name:i,universalResolverAddress:a}){let s=await er(e,{blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:a});if(!s)return null;try{return await et(e,{record:s,gatewayUrls:r})}catch{return null}}async function ea(e,{address:t,blockNumber:n,blockTag:r,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,w.LI)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}let s=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let t=await j(e,{address:a,abi:y.du,functionName:"reverse",args:[(0,E.NC)(F(s))],blockNumber:n,blockTag:r});return t[0]}catch(e){if(S(e,"reverse"))return null;throw e}}async function es(e,{blockNumber:t,blockTag:n,name:r,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");a=(0,w.LI)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}let[s]=await j(e,{address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,E.NC)(F(r))],blockNumber:t,blockTag:n});return s}function eo(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:i,transport:a})=>{"success"===i&&t===e&&(n[r]=a.request)}),t=>n[t]||e.request}async function eu(e){let t=eo(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}class ec 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 el=n(53004),ed=n(90368),eh=n(22388),ef=n(74967);function ep({abi:e,eventName:t,args:n}){let r=e[0];if(t&&!(r=(0,ef.m)({abi:e,args:n,name:t})))throw new R.mv(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==r.type)throw new R.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});let i=(0,eh.t)(r),a=(0,el.e)(i),s=[];if(n&&"inputs"in r){let e=r.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map(e=>n[e.name])??[]:[];t.length>0&&(s=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,i)=>em({param:e,value:t[n][i]})):t[n]?em({param:e,value:t[n]}):null)??[])}return[a,...s]}function em({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,I.w)((0,D.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new ec(e.type);return(0,ed.E)([e],[t])}async function eg(e,{address:t,abi:n,args:r,eventName:i,fromBlock:a,strict:s,toBlock:o}){let u=eo(e,{method:"eth_newFilter"}),c=i?ep({abi:n,args:r,eventName:i}):void 0,l=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof a?(0,E.eC)(a):a,toBlock:"bigint"==typeof o?(0,E.eC)(o):o,topics:c}]});return{abi:n,args:r,eventName:i,id:l,request:u(l),strict:s,type:"event"}}async function ey(e,{address:t,args:n,event:r,events:i,fromBlock:a,strict:s,toBlock:o}={}){let u=i??(r?[r]:void 0),c=eo(e,{method:"eth_newFilter"}),l=[];u&&(l=[u.flatMap(e=>ep({abi:[e],eventName:e.name,args:n}))],r&&(l=l[0]));let d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof a?(0,E.eC)(a):a,toBlock:"bigint"==typeof o?(0,E.eC)(o):o,...l.length?{topics:l}:{}}]});return{abi:u,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:c(d),strict:s,toBlock:o,type:"event"}}async function eb(e){let t=eo(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var ev=n(31892),ew=n(29248);async function e_(e,{abi:t,address:n,args:r,functionName:i,...a}){let s=(0,v.R)({abi:t,args:r,functionName:i});try{let t=await (0,ew.Q)(e,{data:s,to:n,...a});return t}catch(s){let e=a.account?(0,ev.T)(a.account):void 0;throw B(s,{abi:t,address:n,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:e?.address})}}var eE=n(83045),eA=n(42987);async function ex(e,{address:t,blockNumber:n,blockTag:r="latest"}){let i=n?(0,E.eC)(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,i||r]});return BigInt(a)}var eC=n(9106);let eS=new Map,ek=new Map;async function eD(e,{cacheKey:t,cacheTime:n=1/0}){let r=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,eS),r=t(e,ek);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(t),i=r.response.get();if(i&&n>0){let e=new Date().getTime()-i.created.getTime();if(e<n)return i.data}let a=r.promise.get();a||(a=e(),r.promise.set(a));try{let e=await a;return r.response.set({created:new Date,data:e}),e}finally{r.promise.clear()}}let eI=e=>`blockNumber.${e}`;async function eO(e,{cacheTime:t=e.cacheTime,maxAge:n}={}){let r=await eD(()=>e.request({method:"eth_blockNumber"}),{cacheKey:eI(e.uid),cacheTime:n??t});return BigInt(r)}var eT=n(59701);async function eP(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let i;let a=void 0!==n?(0,E.eC)(n):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]}),(0,eT.ly)(i)}async function eF(e,{address:t,blockNumber:n,blockTag:r="latest"}){let i=void 0!==n?(0,E.eC)(n):void 0,a=await e.request({method:"eth_getCode",params:[t,i||r]});if("0x"!==a)return a}var eR=n(57816),eN=n(61781);let eB="/docs/contract/decodeEventLog";function eM({abi:e,data:t,strict:n,topics:r}){let i=n??!0,[a,...s]=r;if(!a)throw new R.FM({docsPath:eB});let o=e.find(e=>"event"===e.type&&a===(0,el.e)((0,eh.t)(e)));if(!(o&&"name"in o)||"event"!==o.type)throw new R.lC(a,{docsPath:eB});let{name:u,inputs:c}=o,l=c?.some(e=>!("name"in e&&e.name)),d=l?[]:{},h=c.filter(e=>"indexed"in e&&e.indexed);if(s.length>0)for(let e=0;e<h.length;e++){let t=h[e],n=s[e];if(!n)throw new R.Gy({abiItem:o,param:t});d[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 n=(0,eN.r)([e],t)||[];return n[0]}({param:t,value:n})}let f=c.filter(e=>!("indexed"in e&&e.indexed));if(f.length>0){if(t&&"0x"!==t)try{let e=(0,eN.r)(f,t);if(e){if(l)d=[...d,...e];else for(let t=0;t<f.length;t++)d[f[t].name]=e[t]}}catch(e){if(i){if(e instanceof R.xB)throw new R.SM({abiItem:o,data:e.data,params:e.params,size:e.size});throw e}}else if(i)throw new R.SM({abiItem:o,data:"0x",params:f,size:0})}return{eventName:u,args:Object.values(d).length>0?d:void 0}}var ej=n(46174);async function eL(e,{address:t,blockHash:n,fromBlock:r,toBlock:i,event:a,events:s,args:o,strict:u}={}){let c=u??!1,l=s??(a?[a]:void 0),d=[];return l&&(d=[l.flatMap(e=>ep({abi:[e],eventName:e.name,args:o}))],a&&(d=d[0])),(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof r?(0,E.eC)(r):r,toBlock:"bigint"==typeof i?(0,E.eC)(i):i}]})).map(e=>{try{let{eventName:t,args:n}=l?eM({abi:l,data:e.data,topics:e.topics,strict:c}):{eventName:void 0,args:void 0};return(0,ej.U)(e,{args:n,eventName:t})}catch(r){let t,n;if(r instanceof R.SM||r instanceof R.Gy){if(c)return;t=r.abiItem.name,n=r.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,ej.U)(e,{args:n?[]:{},eventName:t})}}).filter(Boolean)}async function eU(e,{abi:t,address:n,args:r,blockHash:i,eventName:a,fromBlock:s,toBlock:o,strict:u}){let c=a?(0,ef.m)({abi:t,name:a}):void 0,l=c?void 0:t.filter(e=>"event"===e.type);return eL(e,{address:n,args:r,blockHash:i,event:c,events:l,fromBlock:s,toBlock:o,strict:u})}async function ez(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){let a=n?(0,E.eC)(n):void 0,s=await e.request({method:"eth_feeHistory",params:[(0,E.eC)(t),a||r,i]});return{baseFeePerGas:s.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:s.gasUsedRatio,oldestBlock:BigInt(s.oldestBlock),reward:s.reward?.map(e=>e.map(e=>BigInt(e)))}}async function eq(e,{filter:t}){let n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});return r.map(e=>{if("string"==typeof e)return e;try{let{eventName:r,args:i}="abi"in t&&t.abi?eM({abi:t.abi,data:e.data,topics:e.topics,strict:n}):{eventName:void 0,args:void 0};return(0,ej.U)(e,{args:i,eventName:r})}catch(i){let n,r;if(i instanceof R.SM||i instanceof R.Gy){if("strict"in t&&t.strict)return;n=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,ej.U)(e,{args:r?[]:{},eventName:n})}}).filter(Boolean)}async function eG(e,{filter:t}){let n=t.strict??!1,r=await t.request({method:"eth_getFilterLogs",params:[t.id]});return r.map(e=>{try{let{eventName:r,args:i}="abi"in t&&t.abi?eM({abi:t.abi,data:e.data,topics:e.topics,strict:n}):{eventName:void 0,args:void 0};return(0,ej.U)(e,{args:i,eventName:r})}catch(i){let n,r;if(i instanceof R.SM||i instanceof R.Gy){if("strict"in t&&t.strict)return;n=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return(0,ej.U)(e,{args:r?[]:{},eventName:n})}}).filter(Boolean)}var eZ=n(38213);async function eW(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){let a=void 0!==n?(0,E.eC)(n):void 0,s=await e.request({method:"eth_getStorageAt",params:[t,i,a||r]});return s}var e$=n(1740),eH=n(91409);async function eQ(e,{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a}){let s=r||"latest",o=void 0!==n?(0,E.eC)(n):void 0,u=null;if(i?u=await e.request({method:"eth_getTransactionByHash",params:[i]}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,E.eC)(a)]}):(o||s)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||s,(0,E.eC)(a)]})),!u)throw new e$.Bh({blockHash:t,blockNumber:n,blockTag:s,hash:i,index:a});let c=e.chain?.formatters?.transaction?.format||eH.Tr;return c(u)}async function eV(e,{hash:t,transactionReceipt:n}){let[r,i]=await Promise.all([eO(e),t?eQ(e,{hash:t}):void 0]),a=n?.blockNumber||i?.blockNumber;return a?r-a+1n:0n}var eK=n(53573),eJ=n(91810);async function eY(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!n)throw new e$.Yb({hash:t});let r=e.chain?.formatters?.transactionReceipt?.format||eJ.f;return r(n)}async function eX(e,t){let{allowFailure:n=!0,batchSize:r,blockNumber:i,blockTag:a,contracts:s,multicallAddress:o}=t,u=r??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),c=o;if(!c){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");c=(0,w.LI)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let l=[[]],d=0,h=0;for(let e=0;e<s.length;e++){let{abi:t,address:r,args:i,functionName:a}=s[e];try{let e=(0,v.R)({abi:t,args:i,functionName:a});h+=(e.length-2)/2,u>0&&h>u&&l[d].length>0&&(d++,h=(e.length-2)/2,l[d]=[]),l[d]=[...l[d],{allowFailure:!0,callData:e,target:r}]}catch(s){let e=B(s,{abi:t,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:a});if(!n)throw e;l[d]=[...l[d],{allowFailure:!0,callData:"0x",target:r}]}}let f=await Promise.allSettled(l.map(t=>j(e,{abi:y.F8,address:c,args:[t],blockNumber:i,blockTag:a,functionName:"aggregate3"}))),p=[];for(let e=0;e<f.length;e++){let t=f[e];if("rejected"===t.status){if(!n)throw t.reason;for(let n=0;n<l[e].length;n++)p.push({status:"failure",error:t.reason,result:void 0});continue}let r=t.value;for(let t=0;t<r.length;t++){let{returnData:i,success:a}=r[t],{callData:o}=l[e][t],{abi:u,address:c,functionName:d,args:h}=s[p.length];try{if("0x"===o)throw new R.wb;if(!a)throw new C.VQ({data:i});let e=(0,b.k)({abi:u,args:h,data:i,functionName:d});p.push(n?{result:e,status:"success"}:e)}catch(t){let e=B(t,{abi:u,address:c,args:h,docsPath:"/docs/contract/multicall",functionName:d});if(!n)throw e;p.push({error:e,result:void 0,status:"failure"})}}}if(p.length!==s.length)throw new x.G("multicall results mismatch");return p}async function e0(e,{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}){let o=s.account?(0,ev.T)(s.account):void 0,u=(0,v.R)({abi:t,args:r,functionName:a});try{let{data:o}=await (0,M.R)(e,{batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:n,...s}),c=(0,b.k)({abi:t,args:r,functionName:a,data:o||"0x"});return{result:c,request:{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}}}catch(e){throw B(e,{abi:t,address:n,args:r,docsPath:"/docs/contract/simulateContract",functionName:a,sender:o?.address})}}async function e1(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}BigInt(0),BigInt(1),BigInt(2);var e2=n(63693);async function e5(e,{address:t,hash:n,signature:r,...i}){let a=(0,O.v)(r)?r:(0,E.NC)(r);try{let{data:r}=await (0,M.R)(e,{data:(0,e2.w)({abi:y.$o,args:[t,n,a],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...i});return function(e,t){let n=(0,O.v)(e)?(0,D.O0)(e):e,r=(0,O.v)(t)?(0,D.O0)(t):t;return function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,r)}(r??"0x0","0x1")}catch(e){if(e instanceof C.cg)return!1;throw e}}async function e3(e,{address:t,message:n,signature:r,...i}){let a=function(e,t){let n="string"==typeof e?(0,D.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,D.O0)(e.raw),r=(0,D.qX)(`\x19Ethereum Signed Message:
${n.length}`);return(0,I.w)((0,k.zo)([r,n]),void 0)}(n);return e5(e,{address:t,hash:a,signature:r,...i})}var e6=n(49304);function e8({data:e,primaryType:t,types:n}){let r=function e({data:t,primaryType:n,types:r}){let i=[{type:"bytes32"}],a=[function({primaryType:e,types:t}){let n=(0,E.NC)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let i=t.match(/^\w*/u)?.[0];if(r.has(i)||void 0===n[i])return r;for(let t of(r.add(i),n[i]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});r.delete(e);let i=[e,...Array.from(r).sort()];for(let e of i)n+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,I.w)(n)}({primaryType:n,types:r})];for(let s of r[n]){let[n,o]=function t({types:n,name:r,type:i,value:a}){if(void 0!==n[i])return[{type:"bytes32"},(0,I.w)(e({data:a,primaryType:i,types:n}))];if("bytes"===i){let e=a.length%2?"0":"";return a=`0x${e+a.slice(2)}`,[{type:"bytes32"},(0,I.w)(a)]}if("string"===i)return[{type:"bytes32"},(0,I.w)((0,E.NC)(a))];if(i.lastIndexOf("]")===i.length-1){let e=i.slice(0,i.lastIndexOf("[")),s=a.map(i=>t({name:r,type:e,types:n,value:i}));return[{type:"bytes32"},(0,I.w)((0,ed.E)(s.map(([e])=>e),s.map(([,e])=>e)))]}return[{type:i},a]}({types:r,name:s.name,type:s.type,value:t[s.name]});i.push(n),a.push(o)}return(0,ed.E)(i,a)}({data:e,primaryType:t,types:n});return(0,I.w)(r)}async function e4(e,{address:t,signature:n,message:r,primaryType:i,types:a,domain:s,...o}){let u=function({domain:e,message:t,primaryType:n,types:r}){let i=void 0===e?{}:e,a={EIP712Domain:(0,e6.cj)({domain:i}),...r};(0,e6.iC)({domain:i,message:t,primaryType:n,types:a});let s=["0x1901"];return i&&s.push(function({domain:e,types:t}){return e8({data:e,primaryType:"EIP712Domain",types:t})}({domain:i,types:a})),"EIP712Domain"!==n&&s.push(e8({data:t,primaryType:n,types:a})),(0,I.w)((0,k.zo)(s))}({message:r,primaryType:i,types:a,domain:s});return e5(e,{address:t,hash:u,signature:n,...o})}let e9=new Map,e7=new Map,te=0;function tt(e,t,n){let r=++te,i=()=>e9.get(e)||[],a=()=>{let t=i();e9.set(e,t.filter(e=>e.id!==r))},s=()=>{let t=e7.get(e);1===i().length&&t&&t(),a()},o=i();if(e9.set(e,[...o,{id:r,fns:t}]),o&&o.length>0)return s;let u={};for(let e in t)u[e]=(...t)=>{let n=i();0!==n.length&&n.forEach(n=>n.fns[e]?.(...t))};let c=n(u);return"function"==typeof c&&e7.set(e,c),s}var tn=n(35146),tr=n(49197),ti=n(39255);function ta(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let i=!0,a=()=>i=!1,s=async()=>{let s;t&&(s=await e({unpoll:a}));let o=await n?.(s)??r;await (0,ti.D)(o);let u=async()=>{i&&(await e({unpoll:a}),await (0,ti.D)(r),u())};u()};return s(),a}function ts(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:i,poll:a,pollingInterval:s=e.pollingInterval}){let o,u,c;let l=void 0!==a?a:"webSocket"!==e.transport.type;return l?(()=>{let a=(0,tr.P)(["watchBlockNumber",e.uid,t,n,s]);return tt(a,{onBlockNumber:r,onError:i},r=>ta(async()=>{try{let t=await eO(e,{cacheTime:0});if(o){if(t===o)return;if(t-o>1&&n)for(let e=o+1n;e<t;e++)r.onBlockNumber(e,o),o=e}(!o||t>o)&&(r.onBlockNumber(t,o),o=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:s}))})():(u=!0,c=()=>u=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!u)return;let t=(0,eT.y_)(e.result?.number);r(t,o),o=t},onError(e){i?.(e)}});c=t,u||c()}catch(e){i?.(e)}})(),c)}async function to(e,{confirmations:t=1,hash:n,onReplaced:r,pollingInterval:i=e.pollingInterval,timeout:a}){let s,o,u;let c=(0,tr.P)(["waitForTransactionReceipt",e.uid,n]),l=!1;return new Promise((d,h)=>{a&&setTimeout(()=>h(new e$.mc({hash:n})),a);let f=tt(c,{onReplaced:r,resolve:d,reject:h},r=>{let a=ts(e,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(l)return;let c=i,d=e=>{a(),e(),f()};try{if(u){if(t>1&&(!u.blockNumber||c-u.blockNumber+1n<t))return;d(()=>r.resolve(u));return}if(s||(l=!0,await (0,tn.J)(async()=>{(s=await eQ(e,{hash:n})).blockNumber&&(c=s.blockNumber)},{delay:({count:e})=>200*~~(1<<e),retryCount:6}),l=!1),u=await eY(e,{hash:n}),t>1&&(!u.blockNumber||c-u.blockNumber+1n<t))return;d(()=>r.resolve(u))}catch(n){if(s&&(n instanceof e$.Bh||n instanceof e$.Yb))try{o=s;let n=await (0,eC.Q)(e,{blockNumber:c,includeTransactions:!0}),i=n.transactions.find(({from:e,nonce:t})=>e===o.from&&t===o.nonce);if(!i||(u=await eY(e,{hash:i.hash}),t>1&&(!u.blockNumber||c-u.blockNumber+1n<t)))return;let a="replaced";i.to===o.to&&i.value===o.value?a="repriced":i.from===i.to&&0n===i.value&&(a="cancelled"),d(()=>{r.onReplaced?.({reason:a,replacedTransaction:o,transaction:i,transactionReceipt:u}),r.resolve(u)})}catch(e){d(()=>r.reject(e))}else d(()=>r.reject(n))}}})})})}var tu=n(53936),tc=n(47025),tl=n(77552);function td(e){return{call:t=>(0,M.R)(e,t),createBlockFilter:()=>eu(e),createContractEventFilter:t=>eg(e,t),createEventFilter:t=>ey(e,t),createPendingTransactionFilter:()=>eb(e),estimateContractGas:t=>e_(e,t),estimateGas:t=>(0,ew.Q)(e,t),getBalance:t=>ex(e,t),getBlock:t=>(0,eC.Q)(e,t),getBlockNumber:t=>eO(e,t),getBlockTransactionCount:t=>eP(e,t),getBytecode:t=>eF(e,t),getChainId:()=>(0,eR.L)(e),getContractEvents:t=>eU(e,t),getEnsAddress:t=>L(e,t),getEnsAvatar:t=>ei(e,t),getEnsName:t=>ea(e,t),getEnsResolver:t=>es(e,t),getEnsText:t=>er(e,t),getFeeHistory:t=>ez(e,t),estimateFeesPerGas:t=>(0,eE.X)(e,t),getFilterChanges:t=>eq(e,t),getFilterLogs:t=>eG(e,t),getGasPrice:()=>(0,eZ.o)(e),getLogs:t=>eL(e,t),estimateMaxPriorityFeePerGas:t=>(0,eA._)(e,t),getStorageAt:t=>eW(e,t),getTransaction:t=>eQ(e,t),getTransactionConfirmations:t=>eV(e,t),getTransactionCount:t=>(0,eK.K)(e,t),getTransactionReceipt:t=>eY(e,t),multicall:t=>eX(e,t),prepareTransactionRequest:t=>(0,tc.Z)(e,t),readContract:t=>j(e,t),sendRawTransaction:t=>(0,tl.p)(e,t),simulateContract:t=>e0(e,t),verifyMessage:t=>e3(e,t),verifyTypedData:t=>e4(e,t),uninstallFilter:t=>e1(e,t),waitForTransactionReceipt:t=>to(e,t),watchBlocks:t=>(function(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:i,onError:a,includeTransactions:s,poll:o,pollingInterval:u=e.pollingInterval}){let c,l,d;let h=void 0!==o?o:"webSocket"!==e.transport.type,f=s??!1;return h?(()=>{let s=(0,tr.P)(["watchBlocks",e.uid,n,r,f,u]);return tt(s,{onBlock:i,onError:a},i=>ta(async()=>{try{let r=await (0,eC.Q)(e,{blockTag:t,includeTransactions:f});if(r.number&&c?.number){if(r.number===c.number)return;if(r.number-c.number>1&&n)for(let t=c?.number+1n;t<r.number;t++){let n=await (0,eC.Q)(e,{blockNumber:t,includeTransactions:f});i.onBlock(n,c),c=n}}(!c?.number||"pending"===t&&!r?.number||r.number&&r.number>c.number)&&(i.onBlock(r,c),c=r)}catch(e){i.onError?.(e)}},{emitOnBegin:r,interval:u}))})():(l=!0,d=()=>l=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newHeads"],onData(t){if(!l)return;let n=e.chain?.formatters?.block?.format||tu.Z,r=n(t.result);i(r,c),c=r},onError(e){a?.(e)}});d=t,l||d()}catch(e){a?.(e)}})(),d)})(e,t),watchBlockNumber:t=>ts(e,t),watchContractEvent:t=>(function(e,{abi:t,address:n,args:r,batch:i=!0,eventName:a,onError:s,onLogs:o,poll:u,pollingInterval:c=e.pollingInterval,strict:l}){let d,h;let f=void 0!==u?u:"webSocket"!==e.transport.type;return f?(()=>{let u=(0,tr.P)(["watchContractEvent",n,r,i,e.uid,a,c]),d=l??!1;return tt(u,{onLogs:o,onError:s},s=>{let o,u;let l=!1,h=ta(async()=>{if(!l){try{u=await eg(e,{abi:t,address:n,args:r,eventName:a,strict:d})}catch{}l=!0;return}try{let a;if(u)a=await eq(e,{filter:u});else{let i=await eO(e);a=o&&o!==i?await eU(e,{abi:t,address:n,args:r,fromBlock:o+1n,toBlock:i,strict:d}):[],o=i}if(0===a.length)return;i?s.onLogs(a):a.forEach(e=>s.onLogs([e]))}catch(e){u&&e instanceof N.yR&&(l=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await e1(e,{filter:u}),h()}})})():(d=!0,h=()=>d=!1,(async()=>{try{let i=a?ep({abi:t,eventName:a,args:r}):[],{unsubscribe:u}=await e.transport.subscribe({params:["logs",{address:n,topics:i}],onData(e){if(!d)return;let n=e.result;try{let{eventName:e,args:r}=eM({abi:t,data:n.data,topics:n.topics,strict:l}),i=(0,ej.U)(n,{args:r,eventName:e});o([i])}catch(i){let e,t;if(i instanceof R.SM||i instanceof R.Gy){if(l)return;e=i.abiItem.name,t=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,ej.U)(n,{args:t?[]:{},eventName:e});o([r])}},onError(e){s?.(e)}});h=u,d||h()}catch(e){s?.(e)}})(),h)})(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:i,events:a,onError:s,onLogs:o,poll:u,pollingInterval:c=e.pollingInterval,strict:l}){let d,h;let f=void 0!==u?u:"webSocket"!==e.transport.type,p=l??!1;return f?(()=>{let u=(0,tr.P)(["watchEvent",t,n,r,e.uid,i,c]);return tt(u,{onLogs:o,onError:s},s=>{let o,u;let l=!1,d=ta(async()=>{if(!l){try{u=await ey(e,{address:t,args:n,event:i,events:a,strict:p})}catch{}l=!0;return}try{let c;if(u)c=await eq(e,{filter:u});else{let r=await eO(e);c=o&&o!==r?await eL(e,{address:t,args:n,event:i,events:a,fromBlock:o+1n,toBlock:r}):[],o=r}if(0===c.length)return;r?s.onLogs(c):c.forEach(e=>s.onLogs([e]))}catch(e){u&&e instanceof N.yR&&(l=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:c});return async()=>{u&&await e1(e,{filter:u}),d()}})})():(d=!0,h=()=>d=!1,(async()=>{try{let r=a??(i?[i]:void 0),u=[];r&&(u=[r.flatMap(e=>ep({abi:[e],eventName:e.name,args:n}))],i&&(u=u[0]));let{unsubscribe:c}=await e.transport.subscribe({params:["logs",{address:t,topics:u}],onData(e){if(!d)return;let t=e.result;try{let{eventName:e,args:n}=eM({abi:r,data:t.data,topics:t.topics,strict:p}),i=(0,ej.U)(t,{args:n,eventName:e});o([i])}catch(i){let e,n;if(i instanceof R.SM||i instanceof R.Gy){if(l)return;e=i.abiItem.name,n=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,ej.U)(t,{args:n?[]:{},eventName:e});o([r])}},onError(e){s?.(e)}});h=c,d||h()}catch(e){s?.(e)}})(),h)})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:a=e.pollingInterval}){let s,o;let u=void 0!==i?i:"webSocket"!==e.transport.type;return u?(()=>{let i=(0,tr.P)(["watchPendingTransactions",e.uid,t,a]);return tt(i,{onTransactions:r,onError:n},n=>{let r;let i=ta(async()=>{try{if(!r)try{r=await eb(e);return}catch(e){throw i(),e}let a=await eq(e,{filter:r});if(0===a.length)return;t?n.onTransactions(a):a.forEach(e=>n.onTransactions([e]))}catch(e){n.onError?.(e)}},{emitOnBegin:!0,interval:a});return async()=>{r&&await e1(e,{filter:r}),i()}})})():(s=!0,o=()=>s=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!s)return;let t=e.result;r([t])},onError(e){n?.(e)}});o=t,s||o()}catch(e){n?.(e)}})(),o)})(e,t)}}function th(e){let{key:t="public",name:n="Public Client"}=e,r=(0,g.e)({...e,key:t,name:n,type:"publicClient"});return r.extend(td)}var tf=n(10115),tp=n(23967);function tm(e,t={}){let{key:n="fallback",name:r="Fallback",rank:i=!1,retryCount:a,retryDelay:s}=t;return({chain:t,pollingInterval:o=4e3,timeout:u})=>{let c=e,l=()=>{},d=(0,tp.q)({key:n,name:r,async request({method:e,params:n}){let r=async(i=0)=>{let a=c[i]({chain:t,retryCount:0,timeout:u});try{let t=await a.request({method:e,params:n});return l({method:e,params:n,response:t,transport:a,status:"success"}),t}catch(t){if(l({error:t,method:e,params:n,transport:a,status:"error"}),(0,tf.y)(t)||i===c.length-1)throw t;return r(i+1)}};return r()},retryCount:a,retryDelay:s,type:"fallback"},{onResponse:e=>l=e,transports:c.map(e=>e({chain:t,retryCount:0}))});if(i){let e="object"==typeof i?i:{};!function({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:i=1e3,transports:a,weights:s={}}){let{stability:o=.7,latency:u=.3}=s,c=[],l=async()=>{let s=await Promise.all(a.map(async t=>{let n,r;let a=t({chain:e,retryCount:0,timeout:i}),s=Date.now();try{await a.request({method:"net_listening"}),r=1}catch{r=0}finally{n=Date.now()}let o=n-s;return{latency:o,success:r}}));c.push(s),c.length>r&&c.shift();let d=Math.max(...c.map(e=>Math.max(...e.map(({latency:e})=>e)))),h=a.map((e,t)=>{let n=c.map(e=>e[t].latency),r=n.reduce((e,t)=>e+t,0)/n.length,i=c.map(e=>e[t].success),a=i.reduce((e,t)=>e+t,0)/i.length;return 0===a?[0,t]:[u*(1-r/d)+o*a,t]}).sort((e,t)=>t[0]-e[0]);n(h.map(([,e])=>a[e])),await (0,ti.D)(t),l()};l()}({chain:t,interval:e.interval??o,onTransports:e=>c=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:c,weights:e.weights})}return d}}var tg=n(83270);class ty 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 tb=n(49211),tv=null;"undefined"!=typeof WebSocket?tv=WebSocket:"undefined"!=typeof MozWebSocket?tv=MozWebSocket:void 0!==n.g?tv=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?tv=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(tv=self.WebSocket||self.MozWebSocket);var tw=tv;function t_(e,{errorInstance:t,timeout:n,signal:r}){return new Promise((i,a)=>{(async()=>{let s;try{let o=new AbortController;n>0&&(s=setTimeout(()=>{r?o.abort():a(t)},n)),i(await e({signal:o?.signal}))}catch(e){"AbortError"===e.name&&a(t),a(e)}finally{clearTimeout(s)}})()})}let tE=0;async function tA(e,{body:t,fetchOptions:n={},timeout:r=1e4}){let{headers:i,method:a,signal:s}=n;try{let o;let u=await t_(async({signal:o})=>{let u=await fetch(e,{...n,body:Array.isArray(t)?(0,tr.P)(t.map(e=>({jsonrpc:"2.0",id:e.id??tE++,...e}))):(0,tr.P)({jsonrpc:"2.0",id:t.id??tE++,...t}),headers:{...i,"Content-Type":"application/json"},method:a||"POST",signal:s||(r>0?o:void 0)});return u},{errorInstance:new tg.W5({body:t,url:e}),timeout:r,signal:!0});if(o=u.headers.get("Content-Type")?.startsWith("application/json")?await u.json():await u.text(),!u.ok)throw new tg.Gg({body:t,details:(0,tr.P)(o.error)||u.statusText,headers:u.headers,status:u.status,url:e});return o}catch(n){if(n instanceof tg.Gg||n instanceof tg.W5)throw n;throw new tg.Gg({body:t,details:n.message,url:e})}}let tx=new Map;async function tC(e){let t=tx.get(e);if(t)return t;let{schedule:n}=(0,tb.S)({id:e,fn:async()=>{let n=tw;tw.constructor||(n=tw.WebSocket);let r=new n(e),i=new Map,a=new Map,s=({data:e})=>{let t=JSON.parse(e),n="eth_subscription"===t.method,r=n?t.params.subscription:t.id,s=n?a:i,o=s.get(r);o&&o({data:e}),n||s.delete(r)},o=()=>{tx.delete(e),r.removeEventListener("close",o),r.removeEventListener("message",s)};return r.addEventListener("close",o),r.addEventListener("message",s),r.readyState===tw.CONNECTING&&await new Promise((e,t)=>{r&&(r.onopen=e,r.onerror=t)}),t=Object.assign(r,{requests:i,subscriptions:a}),tx.set(e,t),[t]}}),[r,[i]]=await n();return i}async function tS(e,{body:t,timeout:n=1e4}){return t_(()=>new Promise(n=>tk.webSocket(e,{body:t,onResponse:n})),{errorInstance:new tg.W5({body:t,url:e.url}),timeout:n})}let tk={http:tA,webSocket:function(e,{body:t,onResponse:n}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new tg.c9({body:t,url:e.url,details:"Socket is closed."});let r=tE++,i=({data:a})=>{let s=JSON.parse(a);("number"!=typeof s.id||r===s.id)&&(n?.(s),"eth_subscribe"===t.method&&"string"==typeof s.result&&e.subscriptions.set(s.result,i),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(r,i),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:r})),e},webSocketAsync:tS};var tD=n(93518),tI=n(79527);let tO=e=>(t,n,r)=>{let i=r.subscribe;r.subscribe=(e,t,n)=>{let a=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());a=n=>{let r=e(n);if(!i(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return i(a)};let a=e(t,n,r);return a},tT=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>tT(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>tT(t)(e)}}},tP=(e,t)=>(n,r,i)=>{let a,s,o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=new Set,l=new Set;try{a=o.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=tT(o.serialize),h=()=>{let e;let t=o.partialize({...r()}),n=d({state:t,version:o.version}).then(e=>a.setItem(o.name,e)).catch(t=>{e=t});if(e)throw e;return n},f=i.setState;i.setState=(e,t)=>{f(e,t),h()};let p=e((...e)=>{n(...e),h()},r,i),m=()=>{var e;if(!a)return;u=!1,c.forEach(e=>e(r()));let t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return tT(a.getItem.bind(a))(o.name).then(e=>{if(e)return o.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(s=o.merge(e,null!=(t=r())?t:p),!0),h()}).then(()=>{null==t||t(s,void 0),u=!0,l.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),s||p},tF=(e,t)=>(n,r,i)=>{let a,s={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(r=n.getItem(e))?r:null;return a instanceof Promise?a.then(i):i(a)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,u=new Set,c=new Set,l=s.storage;if(!l)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=s.partialize({...r()});return l.setItem(s.name,{state:e,version:s.version})},h=i.setState;i.setState=(e,t)=>{h(e,t),d()};let f=e((...e)=>{n(...e),d()},r,i),p=()=>{var e,t;if(!l)return;o=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:f)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=r())?e:f))||void 0;return tT(l.getItem.bind(l))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return e.state;if(s.migrate)return s.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(a=s.merge(e,null!=(t=r())?t:f),!0),d()}).then(()=>{null==i||i(a,void 0),a=r(),o=!0,c.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},s.skipHydration||p(),a||f},tR=(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."),tP(e,t)):tF(e,t),tN=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.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."),n.clear()}};return t=e(r,i,a),a},tB=e=>e?tN(e):tN;var tM=n(39674);function tj(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function tL(e){var t;let n;return t=function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,a=[0,1];for(let e=1;e<r;e++)a.push(i+=n());let s=n(),o=t;t+=s;let u=0,c=0;function l(){return 0==u&&(c=c<<8|e[t++],u=8),c>>--u&1}let d=2147483648-1,h=0;for(let e=0;e<31;e++)h=h<<1|l();let f=[],p=0,m=2147483648;for(;;){let e=Math.floor(((h-p+1)*i-1)/m),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<a[r]?n=r:t=r}if(0==t)break;f.push(t);let s=p+Math.floor(m*a[t]/i),o=p+Math.floor(m*a[t+1]/i)-1;for(;((s^o)&1073741824)==0;)h=h<<1&d|l(),s=s<<1&d,o=o<<1&d|1;for(;s&~o&536870912;)h=1073741824&h|h<<1&d>>>1|l(),s=s<<1^1073741824,o=(1073741824^o)<<1|1073741825;p=s,m=1+o-s}let g=r-4;return f.map(t=>{switch(t-g){case 3:return g+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return g+256+(e[o++]<<8|e[o++]);case 1:return g+e[o++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,n)=>t[e.charCodeAt(0)]=n);let n=e.length,r=new Uint8Array(6*n>>3);for(let i=0,a=0,s=0,o=0;i<n;i++)o=o<<6|t[e.charCodeAt(i)],(s+=6)>=8&&(r[a++]=o>>(s-=8));return r}(e)),n=0,()=>t[n++]}function tU(e,t=0){let n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let e=0;e<i;e++)n.push(t+e);t+=i+1}return n}function tz(e){return tG(()=>{let t=tU(e);if(t.length)return t})}function tq(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(function(e,t){let n=1+t(),r=t(),i=tG(t);return tZ(i.length,1+e,t).flatMap((e,t)=>{let[a,...s]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*r;return[a+t*n,s.map(e=>e+i)]})})}(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(tZ(1+e(),1+n,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function tG(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function tZ(e,t,n){let r=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let n=Array(e);for(let i=0,a=0;i<e;i++){var r;n[i]=a+=1&(r=t())?~r>>1:r>>1}return n})(e,n).forEach((e,t)=>r[t].push(e));return r}var tW=tL("AEITLAk1DSsBxwKEAQMBOQDpATAAngDUAHsAoABoAM4AagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXBOcF2QEXE943ygXaALgArkYBbgCsCAPMAK6GNjY2NgE/rgwQ8gAEB0YG6zgFXgVfAD0yOQf2vRgFDc/IABUDz546AswKNgKOqAKG3z+Vb5ACxdICg/kBJuYQAPK0AUgCNJQKRpYA6gDpChwAHtvAzxMSRKQEIn4BBAJAGMQP8hAGMPAMBIhuDSIHNACyAHCY76ychgBiBpoCKgbwACIAQgyaFwKqAspCINYIwjADuBRCAPc0cqoAqIQfAB4ELALeHQEkAMAZ1AUBECBTPgmeCY8lIlZgTOqDSQAaABMAHAAVclsAKAAVAE71HN89+gI5X8qc5jUKFyRfVAJfPfMAGgATABwAFXIgY0CeAMPyACIAQAzMFsKqAgHavwViBekC0KYCxLcCClMjpGwUehp0TPwAwhRuAugAEjQ0kBfQmAKBggETIgDEFG4C6AASNAFPUCyYTBEDLgIFLxDecB60Ad5KAHgyEn4COBYoAy4uwD5yAEDoAfwsAM4O0rwBImqIALgMAAwCAIraUAUi3HIeAKgu2AGoBgYGBgYrNAOiAG4BCiA+9Dd7BB8eALEBzgIoAgDmMhJ6OvpQtzOoLjVPBQAGAS4FYAVftr8FcDtkQhlBWEiee5pmZqH/EhoDzA4s+H4qBKpSAlpaAnwisi4BlqqsPGIDTB4EimgQANgCBrJGNioCBzACQGQAcgFoJngAiiQgAJwBUL4ALnAeAbbMAz40KEoEWgF2YAZsAmwA+FAeAzAIDABQSACyAABkAHoAMrwGDvr2IJSGBgAQKAAwALoiTgHYAeIOEjiXf4HvABEAGAA7AEQAPzp3gNrHEGYQYwgFTRBMc0EVEgKzD60L7BEcDNgq0tPfADSwB/IDWgfyA1oDWgfyB/IDWgfyA1oDWgNaA1ocEfAh2scQZg9PBHQFlQWSBN0IiiZQEYgHLwjZVBR0JRxOA0wBAyMsSSM7mjMSJUlME00KCAM2SWyufT8DTjGyVPyQqQPSMlY5cwgFHngSpwAxD3ojNbxOhXpOcacKUk+1tYZJaU5uAsU6rz//CigJmm/Cd1UGRBAeJ6gQ+gw2AbgBPg3wS9sE9AY+BMwfgBkcD9CVnwioLeAM8CbmLqSAXSP4KoYF8Ev3POALUFFrD1wLaAnmOmaBUQMkARAijgrgDTwIcBD2CsxuDegRSAc8A9hJnQCoBwQLFB04FbgmE2KvCww5egb+GvkLkiayEyx6/wXWGiQGUAEsGwIA0i7qhbNaNFwfT2IGBgsoI8oUq1AjDShAunhLGh4HGCWsApRDc0qKUTkeliH5PEANaS4WUX8H+DwIGVILhDyhRq5FERHVPpA9SyJMTC8EOIIsMieOCdIPiAy8fHUBXAkkCbQMdBM0ERo3yAg8BxwwlycnGAgkRphgnQT6ogP2E9QDDgVCCUQHFgO4HDATMRUsBRCBJ9oC9jbYLrYCklaDARoFzg8oH+IQU0fjDuwIngJoA4Yl7gAwFSQAGiKeCEZmAGKP21MILs4IympvI3cDahTqZBF2B5QOWgeqHDYVwhzkcMteDoYLKKayCV4BeAmcAWIE5ggMNV6MoyBEZ1aLWxieIGRBQl3/AjQMaBWiRMCHewKOD24SHgE4AXYHPA0EAnoR8BFuEJgI7oYHNbgz+zooBFIhhiAUCioDUmzRCyom/Az7bAGmEmUDDzRAd/FnrmC5JxgABxwyyEFjIfQLlU/QDJ8axBhFVDEZ5wfCA/Ya9iftQVoGAgOmBhY6UDPxBMALbAiOCUIATA6mGgfaGG0KdIzTATSOAbqcA1qUhgJykgY6Bw4Aag6KBXzoACACqgimAAgA0gNaADwCsAegABwAiEQBQAMqMgEk6AKSA5YINM4BmDIB9iwEHsYMGAD6Om5NAsO0AoBtZqUF4FsCkQJMOAFQKAQIUUpUA7J05ADeAE4GFuJKARiuTc4d5kYB4nIuAMoA/gAIOAcIRAHQAfZwALoBYgs0CaW2uAFQ7CwAhgAYbgHaAowA4AA4AIL0AVYAUAVc/AXWAlJMARQ0Gy5aZAG+AyIBNgEQAHwGzpCozAoiBHAH1gIQHhXkAu8xB7gEAyLiE9BCyAK94VgAMhkKOwqqCqlgXmM2CTR1PVMAER+rPso/UQVUO1Y7WztWO1s7VjtbO1Y7WztWO1sDmsLlwuUKb19IYe4MqQ3XRMs6TBPeYFRgNRPLLboUxBXRJVkZQBq/Jwgl51UMDwct1mYzCC80eBe/AEIpa4NEY4keMwpOHOpTlFT7LR4AtEulM7INrxsYREMFSnXwYi0WEQolAmSEAmJFXlCyAF43IwKh+gJomwJmDAKfhzgeDgJmPgJmKQRxBIIDfxYDfpU5CTl6GjmFOiYmAmwgAjI5OA0CbcoCbbHyjQI2akguAWoA4QDkAE0IB5sMkAEBDsUAELgCdzICdqVCAnlORgJ4vSBf3kWxRvYCfEICessCfQwCfPNIA0iAZicALhhJW0peGBpKzwLRBALQz0sqA4hSA4fpRMiRNQLypF0GAwOxS9FMMCgG0k1PTbICi0ICitvEHgogRmoIugKOOgKOX0OahAKO3AKOX3tRt1M4AA1S11SIApP+ApMPAOwAH1UhVbJV0wksHimYiTLkeGlFPjwCl6IC77VYJKsAXCgClpICln+fAKxZr1oMhFAAPgKWuAKWUVxHXNQCmc4CmWdczV0KHAKcnjnFOqACnBkCn54CnruNACASNC0SAp30Ap6VALhAYTdh8gKe1gKgcQGsAp6iIgKeUahjy2QqKC4CJ7ICJoECoP4CoE/aAqYyAqXRAqgCAIACp/Vof2i0AAZMah9q1AKs5gKssQKtagKtBQJXIAJV3wKx5NoDH1FsmgKywBACsusabONtZm1LYgMl0AK2Xz5CbpMDKUgCuGECuUoYArktenA5cOQCvRwDLbUDMhQCvotyBQMzdAK+HXMlc1ICw84CwwdzhXROOEh04wM8qgADPJ0DPcICxX8CxkoCxhOMAshsVALIRwLJUgLJMQJkoALd1Xh8ZHixeShL0wMYpmcFAmH3GfaVJ3sOXpVevhQCz24Cz28yTlbV9haiAMmwAs92ASztA04Vfk4IAtwqAtuNAtJSA1JfA1NiAQQDVY+AjEIDzhnwY0h4AoLRg5AC2soC2eGEE4RMpz8DhqgAMgNkEYZ0XPwAWALfaALeu3Z6AuIy7RcB8zMqAfSeAfLVigLr9gLpc3wCAur8AurnAPxKAbwC7owC65+WrZcGAu5CA4XjmHxw43GkAvMGAGwDjhmZlgL3FgORcQOSigL3mwL53AL4aZofmq6+OpshA52GAv79AR4APJ8fAJ+2AwWQA6ZtA6bcANTIAwZtoYuiCAwDDEwBEgEiB3AGZLxqCAC+BG7CFI4ethAAGng8ACYDNhJQA4yCAWYqJACM8gAkAOamCqKUCLoGIqbIBQCuBRjCBfAkREUEFn8Fbz5FRzJCKEK7X3gYX8MAlswFOQCQUyCbwDstYDkYutYONhjNGJDJ/QVeBV8FXgVfBWoFXwVeBV8FXgVfBV4FXwVeBV9NHAjejG4JCQkKa17wMgTQA7gGNsLCAMIErsIA7kcwFrkFTT5wPndCRkK9X3w+X+8AWBgzsgCNBcxyzAOm7kaBRC0qCzIdLj08fnTfccH4GckscAFy13U3HgVmBXHJyMm/CNZQYgcHBwqDXoSSxQA6P4gAChbYBuy0KgwAjMoSAwgUAOVsJEQrJlFCuELDSD8qXy5gPS4/KgnIRAUKSz9KPn8+iD53PngCkELDUElCX9JVVnFUETNyWzYCcQASdSZf5zpBIgluogppKjJDJC1CskLDMswIzANf0BUmNRAPEAMGAQYpfqTfcUE0UR7JssmzCWzI0tMKZ0FmD+wQqhgAk5QkTEIsG7BtQM4/Cjo/Sj53QkYcDhEkU05zYjM0Wui8GQqE9CQyQkYcZA9REBU6W0pJPgs7SpwzCogiNEJGG/wPWikqHzc4BwyPaPBlCnhk0GASYDQqdQZKYCBACSIlYLoNCXIXbFVgVBgIBQZk7mAcYJxghGC6YFJgmG8WHga8FdxcsLxhC0MdsgHCMtTICSYcByMKJQGAAnMBNjecWYcCAZEKv04hAOsqdJUR0RQErU3xAaICjqNWBUdmAP4ARBEHOx1egRKsEysmwbZOAFYTOwMAHBO+NVsC2RJLbBEiAN9VBnwEESVhADgAvQKhLgsWdrI5P6YgAWIBjQoDA+D0FgaxBlEGwAAky1ywYRC7aBOQCy1GDsIBwgEpCU4DYQUvLy8nJSYoMxktDSgTlABbAnVel1CcCHUmBA94TgHadRbVWCcgsLdN8QcYBVNmAP4ARBEHgQYNK3MRjhKsPzc0zrZdFBIAZsMSAGpKblAoIiLGADgAvQKhLi1CFdUClxiCAVDCWM90eY7epaIO/KAVRBvzEuASDQ8iAwHOCUEQmgwXMhM9EgBCALrVAQkAqwDoAJuRNgAbAGIbzTVzfTEUyAIXCUIrStroIyUSG4QCggTIEbHxcwA+QDQOrT8u1agjB8IQABBBLtUYIAB9suEjD8IhThzUqHclAUQqZiMC8qAPBFPz6x9sDMMNAQhDCkUABccLRAJSDcIIww1DCUMKwy7VqDEOwgyYCCIPkhroBCILwhZCAKcLQhDCCwUYp3vjADtyDEMAAq0JwwUi1/UMBQ110QaCAAfCEmIYEsMBCADxCAAAexViDRbSG/x2F8IYQgAuwgLyqMIAHsICXCcxhgABwgAC6hVDFcIr8qPCz6hCCgKlJ1IAAmIA5+QZwg+lYhW/ywD7GoIIqAUR/3cA38KnwhjiARrCo5J5eQcCqaKKABLCDRsSAAOaAG3CDQALwqdCCBpCAsEIqJzRDwIHx6lCBQDhgi+9bcUDTwAD8gAVwgAHAgAJwgBpkgAawgAOwgkYwo5wFgIAAWIADnIALlIlAAbCABfCCCgADVEAusItAAPCAA6iKvIAsmEAHCIAG8IAAfIKqAAFzQscFeIAB6IAQsIBCQBpwgALggAdwgAIwgmoAAXRAG6mGdwAmAgoAAXRAAFCAAfiAB2iCCgABqEACYIAGzIAbSIA5sKHAAhiAAhCABTCAwBpAgkoAAbRAOOSAAlCC6gOy/tmAAdCAG6jQE8ATgAKwgsAA0IACbQDPgAHIgAZggACEqcCAAoiAApCAAoCp/IGwgAJIgADEgAQQgcAFEIAEXIAD5IADfIADcIAGRINFiIAFUIAbqIWugHCAMEAE0IKAGkyEQDhUgACQgAEWQAXggUiAAbXABjCBCUBgi9ZAEBMALYPBxQMeQAvMXcBqwwIZQJzKhMGBBAOdlJzZjGQJgWHGwVpND0DqAq7BgjfAB0DAgp1AX15TlkbKANWAhxFATMGCnpNxIJZgUcAMAA4CAACAAAAWhHiAIKXMwEyAH3sFBg5TQhRAF4MAAhXAQ6R0wB/QgQnrABhAN0cAJxvPiaSANRyuADW2wEdD8l8eiIfXSQQ2AGPl7IpWlpUTxlDyZAAAACGIz5HMDLnGJ5WAHkBMCw3KUkgFgM3XAT+zPUAUmzjAHECeAJGEYE6zng1NdwCAQwXGSYLGw60tQIBAQEABQIEAgIAGdMCACwBAAUFBQUFBQQEBAQEBAMEBQYHCAMEBAQEAwEBIQCMAI8AlDwA6QC6ANsAo0MAwQCxAKwApwDtAKUA2QCiAOYBBwECAMYAgABhANEA0wECAN0A8QCPAKgBMADpAN4A2woACA4xOtnZ2dm7xeHS1dNINxwBUQFbNEwBWQFoAWcBWgFLUEhKbRIBUhoMDwo5PRINACYTKiwuMT0/P0JCQkNEE0UFI1ZWVlZYWFdYLllaXFtbImJmZmVnZilrbXV0d3d3d3d3eXl5eXl5eXl5eXl7e3x7emEAQ/EASACZAHcAMQBl9wCNAFYAVgA2AnXuAIoABPf3AGMAkvEAngBOAGEAY/7+rwCEAIQAaABVALAAIwC1AIICPwJCAPsA5gD9AP0A5wD+AOgA6ADnAOUALgJ6AVABPwE9AVMBPQE9AT0BOAE3ATcBNwEbAVcWADAPBwAAUh4RHQocHRUAjQCVAKUAUABpHwIwAHUAbgCWAxQDJjEDIEhFTjAAkAJOAMYCVgKjAL8ClQKVApUClQKVApUCigKVApUClQKVApUClQKUApQClwKfApYClQKVApMCkwKTApMCkQKUAnQB0wKWAp4ClQKVApQdgBIEAP0MA54CYAI5HgFTFzwC4RgRMhoBTT4aVJgBeqtDAWhgAQQDQE4BBQCYMB4flnEAMGcAcAA1AJADm8yS8LWLYQzBMhXJARgIpNx7MQsEKmFzAbkA5IWHhoWHhYiJiYWKjYuFjI+Nh46Jj4mQhZGFkoWTkZSFlYWWiZeFmIWZhZqFm4qcj52JnoUAiXMrc6cAinNzBEIEPwRBBEQEQgRIBEUEQARGBEgERwRDBEUESACqA45zANBYc3MA1nMCE3MA/WFzAP0BIAD9APsA+wD8APvbA4sqbMUA/QD7APsA/AD7I3NzAJBhcwD9AJABIAD9AJAC8wD9AJDbA4sqbMUjcwD+YXMBIAD9AP0A+wD7APwA+wD+APsA+wD8APvbA4sqbMUjc3MAkGFzASAA/QCQAP0AkALzAP0AkNsDiypsxSNzAkoBPXMCUQFAcwJSyHNzA6UC8wOl2wOLKmzFI3NzAJBhcwEgA6UAkAOlAJAC8wOlAJDbA4sqbMUjcwQ3cwCQBDgAkA2UOHQnATNz3QdFdQoqcwEEAM1hCXNzAFthAAUaOQlzcwCQCXNE3wBQc90JcwCdbXNzQ4CD8BW5tNbewS6T/Np1iIh1Iy3DtPDAAXjPx9ENpwOgreI1z2BewtbX8Yi21FG1bBeCk7aB4sFY/Hi+/ekcwwyBHP+f0YI9G/iFY/5bObtuyY4MTYyHeQiZ62eBq/P8+68/rJI6cCQTfucgoskxeeDzvfo6MGQtbufZbw0FPGPpUNSG9SSs7NDWGUbpnlDGReZvnpkqvyGbE9edMaFydt2lujOB9XLYEAXRfM2Kx0lHbXJ4cszHh5aoooqxDeYXz4qvSy3ahNyE6DBY8J7v31dfMFEdiyjfirJ6hX3Pa2ygMOeuVytsRijRhyF9mVnMu2RxuZv3hI/Amu/2xe54SmySPFpHGxTUY0pe8SZ3I+HauujP4GbIzZYg6enubuUlyP0funGhg8HHYTHFSQD9Hm7HGbFy4n0sziYcpwdArgmsyy41VMV2ppGXMiMR4deCi34NNmlnftVdxoyCJzK+r1GvJvWDtbf4dPnrf0G9qOgEs2CpD3n+1P6MHu+kHtsR6lMcf3NcCDlg2BVcCpSVRHQRiw7qolVbxHeM9xvBMbdwjpFKXi7QUZOi6YaKam2q+tP/4Q5El2aNNWkj5UfSZY4ugEdPUnNXG3TnvpCSZ5IpiIvjM/Q7pZNYYv80gD+OdT5J+D+8K7RPkhzH4w8mJHEG67poqLR0JygXeOe4Qz7fpS6uh/vOXaryaHpamD78JfCU/VdaCwy9bCrfgh13NQynhoIdWRr1IQREtBfsr9bRjkodN4IdiTUMDdlCuM8mKFhoQzu5fn+1PZwtWpT+RAfPcOYqFvyg15NH3r44CwuiNOuJa3QiXx/LenV02OWmQIs/SX/g9e97kXeFyzzC5o3GZEj1A4edoQL/Hfudd5DbKP9jRl8TN4J6Kc1PFyNVAX5Xac6bdFhUIzF/y2fxEOMqCLdbgMjAScVBfo62Fi65kWkU5AuSnpXNEa53A8jiHAFWPQRbvChz7XzIQ1/JFkW4oI8xBV6UfjKIPDLC7squNvW2nzcUx+fOUY3Ocin2ftqIvHfTUJTRNcd7Ke70yAIwvqOtwoyPaZMBpoXD8wnXXhGcZwxMUx5c5bPIUoEI0NmMFTasTLrC3msRFOTj05Bautfl1sY/SvMF/LAsyI9YLxLDyLAdk5DR3UM3aUic2osD5OeVdqZVW/Q1m1ebiFPdS2jIqNLulNQ8bGE2SLfELriR1KiTO9P5+lrvWYO1fSrGrUt2bWuylLbZPkwOvWGZpLOHyarck2ZRqWS6sCGey7WyzKtSLDf8N998dc1hh6BN4lUthsFzHww9KK8RpC1vUV1amMjRDMR+KvY6u8hOpZEzHdLMb13izFQP3ijwSQCEFVH7Js8hL21h1Vgxap8exSPY1CBI89DYkx6Tv5XhsKTqejQ6qbBFVPb0FeZ+D1SdjxYgqAq6uvJHq7PW8hluldBOJ7puqANPsXDOtG/su5LwU1PnRExiBpZNO+7blORJ7i9gQYmu2AXSSiKxSZIyyJ+0umdON6y4aPTTM0FbgQzMWfO3PXOymBuZ9DjNH4dcMJSwm9PsU05clrl3w1WkZ04jCxhragJpQ4w9q2B/PX0G25bXPNnUGKSL3EAHAUkcsOzO66BRomJQr0Z8uQAcdKYDE3iFkuZQy+yZq2C3vghrwhw2d8jCgn3V2SEF0Obph80afZ5zohDVBkZps5UEZmSaeyACcgZ6Ecj/Z3Shx0cxedqpF4rbvSD14by33Qb4gSiKqHx0WH7WjNWW+fZz2t1PtJAPWvC6IaLarFyTSGtiv46IG1Q3YMBw5bDrisQFBnBi22oUgsO/eSzcLI5+wpv1ZX3aTHBQ79qiLoPd5uu6JrnhGzEeM0/gRT5wwCJ6uPDv35Qi4MGUO2s9+aimuET6TexV/KC9BGv9ibvW0+9hFedmTLXfrk2/sgHRe5wZPR6ao7kFwN3Egab8d2ApFPLOUgTY+d32/+XKglFsszuassqJBzo6MTbCwlYKO4yYdfk2gfjuHXxxdIjaUUcqePg/jf4AWUOsz7EjkKaPqLCzwTwkuPoskO+HPvSSIj56NBqwhlukh/SUlBPCAvpc+1hWM5aIt7e+NWicwHeXmf7JihSLmAxjDWNDmv6lSpQAYgl3KGYcLR/SwD/UbzS+YBYGKLhVlwwyGYf2autLOFuC7hdVncxFH6lx4+53/q/z8ukeP5C9jWhZLQvvvXJkWbnwQUbH8WW8VDTl7dYYgEw/d8e8PZVIP8QO8aJwNBObbcAh1bZg/ev/mIcRpHqvapWZBZJccfvQ55WYxxTdBLqYbSDjLNfI0d/IB7j1JaX07Z1abn2SGfV7zm8TU65Tqui5ZG/m8fTS7ZJVkQbJqcHfdRPbFKgIm9Q6lqhbspKIufB0JN5lyRQHiZp5cOyRLL44fHhfM56Ukt8hCMN0cSOYZcp5mvcoAcpVNPjMcA/siqAhaIn3EO6j0+ArsfN/wEexl90dGjecxE+R4JAHU9hBGZrDrJJ0L3FasUPVvPdmvrRUYY0LSEJpgUBo4pykiQr4GRZ9cAVKhzBxs86T9E+h0iOclANvJaS1ozReL9coKT4XJH2R15ed78yO6xqF3vPVSvwW+hApUYHspT4xNknEfEBks2ZT80sBfcq+kKqQeraVh2FtwOkIyPZc2PIZqDVqS2OfSXUEJ+aPajbV+aVHDMxPd4ak0ln8Lm3mlBsJjoNzm1LCOw1FWMbUNFmAyj82fesmdYwbtO9hz97ErIjkGBD8ojAOzSZzPT7bq7FxmZzdfzjVX5lq0DgHNm/HtOP0Fha40VmytaL4VvkkkmaH1vfbxgid+hNPqf//ggLAH9wOu9cN3TPGf7RkhvnFBg9Ue9dEMIY0QnUn6WfZwgFnf37KcfXeA/7qvv2NJesfukMgngn3pyJLjhbJ8DGZvbF61Q19ZVHZ/HfiOf3XZwiD/xlEDb+fuGzUrWRq7IMm/Qsd6SJc6Lqt4i6YC+L5h62FwYHiS63//p0lyL3iAb18QEPtnpbEUty0Zrt0fktA9L/YFLfrzYT6atdQjL6OMhCrZ4O3UUaYR0yme/4GNO/yHHufyAVpH/OIPEf2OzptXJ19+tA+NpivJNqCKOwUsJHqTzrT2G77O9dBe4ZcGyF0mPkzzJEpTJOjkgCt47TXZnFahlCXR9VbZ0lb1c1wAqXTKUqyPVaxz4Eu3rPJHiM3IXQQ0NjTvzUPG258V7vbrgoezETHlADY7B1WeyNMFYVE/LaWY7bSfQb7lKJ/KMRmoFwCrkwMEEkDen5KTEXCfVJrN+v4OeBxxE44mtzJOKdlLb7tqPfXrxftovGQyuaJhwlI3qpYBgfatKX2BJFeGTK5b4b9aSrMIv0QoyWUKQxoWaM41bP4QW5RbSawNQdN/0wv7aL9Jkk5J66IDpo7KQGXAKznLFeMn7t0F83ZTXPCDUhEjgWM2SA9ChmM5YEHa5l1hI1fsf77dxeRWfVHKPsN3Pbl3Dy5b4QIYb6N4Pm9jAAQLmQlaBBhZw5Ia7PfQ+xKgKJFQbR4F32mFfupbsbWLM9jDeqYdACLyf6uAKgVu9AJQpYtNbCj5wj9nXAWUWbWQL1cXcTXoVZqxjtyS/BsoaURCQi3dk09KVzUA0V6ZlrQ53Kj5AnQOcl+5F45QK+I7z2+zhbRVGq2VwcLCugx3BCQZwoiwsqtS8RQRixu4k8uRiaKZ/k7rmghRah8nMGZhmN6r12o0TqdMaPiD/n4TLE9VhVaO0KPZEGCIhU8QX+UXBAqICxssIsyKn1OrvUgTYYTO4jXEpu2+kVS6L6T5gjC1tufk8YssX4CRRcvyMaWoJuzmhC3Bq/DBUCuPaMuhQPIQfcmps2oqp9AqlngtSCo26+n5fKqSzEU3lpH1SMPRDrw6OdD/LhpNrs1YTHgMmP068bb8qMgF+/ASQedI7CvWdu04rAtlsP7kSnTDkyMw2LiZnpMx+i+ayXB7c3ckJcjFuig7H00vq2OQzM5PPevRdYi+cZJifcz1t3cNSD0yuvsuFXD/Nk2j60H5RpUU+Zrlp99wSgKEAkuC8nBJJnZ9PR+DkXPe3s4UeOKoq99964VWB9Pnva6uKI779pgq9oaspNcGV8vSOMCM8ACQn9kUPweu9UwI2n5+goo05CFaR5kALF5jhYmybPavdtAxmaC//LVF0ZLRkIcU+NGJzY3OdUKILkQKUDGABumIZHHzKw/jCOmPL+Zl8t46Wkz0WFvi9Gu4zuSn4okuXcj0BSeDVzHIf7sqCBjmC4zCJ+jyS/+Gq2fPUkgfW0bxdgVFMY+zY3TQuMfygLLiF9MzfKQiZXIgzRm4z85AALjRtWp3nO7kFP7ApIqqe2zn0NfjROHgw/hqbhgKGKjsXzu+rrdu5HeSlhWO8hxwDmVaQObSdcyTFMG/YiFD6lJGKdFb4NNS1HnW8T1P6nNQPqraOBTSnQKxz5tTGqNrbaAE4Iio3Cj50ZUqo6/O5OAtJ6Bznp4gKMgBetgD11fCO++j1RdcFdTbD0tkgfxXgzJTUtWCUmdYjl93RR27ifZGYzgK23MdwF4zvKNem782m0dQnmh47Rxz3+2MVhiiS85nTOXxmaODvzAWBE2IQowSrbzE12IJ82fOrvritWvRIF0aLCLdEytK+NVdDxLvmdW+dFeKOa/ocw1Son0O6OzX0lBLmjYSMQSrFe5X5yf6WE2ehsLrv6M8Cqjvwr+u9X+kP/f3iAk31TV+K9yZKQqAn3QOWy+9Hz7iVWRMuM9hs35+avVy4pXASFbOjGdXM1fSQkLOWmFUhyadKWYPjRZoZo0g3CS0qhz+mjygAvmtkYRBcGNpYAEYoIDEwQaswtATb9HLzTetQL8aK79YSb0vJNPSYzsij3FcXbmfnMiaOJIGrrBJnAPRqg2lmCZFXOFah9l2GRBm8HJMGeiupFvR0aRN41otN6X6tGTxS53wk+2+w+Q5ABTdCd15LYZm/a/3bxe9RDQJ5HZhLzr5x1ccTkxBkbxlYBGd8AKvkL2IR3V283R5noyhAM5o/2rKEi4U6kxCV5efr8llvLFrgjPIwS8iES5jxmV5zyPzj7TyzJTJze+9tgDNGYRyyXPkU4mtAh8XUy9vMigfO+1+ZKYW2WCFjDUfvyNiplha4LliPPg8Rc890ZT+F9pMYPAmEg3JJVUm3fp5N0IPNMAYKmbdj8dkIpjDhDJUd6o3G858DgYwPhSC+z3a78QpEmqq+tRaHEcQ30ZN5KVVdASN8NMTnLKoA+IJdapqCRgooGTkhyjB1yEmjSy52110hPaqe1upiUeObsTXtGELTk2p2NZw/3PzU281tafWNmFUPAmooj83DhoQgKPIB7f+NGTDlTOtyPgN8pIB/lnFLL/gcwigZPKDW7p6hnW/GnAzyNS46gLJAl0Eyhqx6UWLeQTU7odMYORK5zf/FV79JGVPOQpNUA58rlB0ugHsyeub8Lnf9QQ4/N5sRKaUjEEhdpF28vfgPZACBbg5UHuVHl8Lby8mVGsrtI7TjL9U3mbtcF+cXQI/5AxT2i0MyciXEKZ8OjvPoQHHU/YSnCXtEp2r08SJxUAHIz1zM+FwdRCYPffQNi2NhkPWTiYTxJ00WVZIrHwmG7jzOLcfWnquJkpOmdPzXfAu+s5EADm0X4VmatqLjVa86dS7Os55qXuRa1Y7dWGvv57LjBlKKgqsbI7lwfyBN3qkKBqe7nwUDn6xqhGPiUPT7j7s+oD52AF6oj6SFXhYWlRXy+1FL7YSbjFxfFvJt5tVXMAr8/voIg8YRiBsKB6eLeIG5Y/KmGmFBxxYzSH7W0IaK3IId+cBlEk6H3Y5BqIBfvhOOBtInLWnsAoRpqlkxd7o/+LP9UXEahdcYlifFlURgUJl0Ly6LHjSZN1CfHB7OORacnBdpIM1lRpBcvwkeyXUvndU4zrfqwtuBEpxqvk4PZPJMByJXUbXie52mfUB689h9GRV99U4gzn1aTbHPWjbB0DQ0Aes2E/ZzoCTxCef56sExSu8ynaPxuDOOeD31OWT0zHo1XxSPQbclDivD+4/v1aWdhGXLR1Ui+NzuQK1NTedznX44c5T3b+2GZZjl5RqH8KR7FTVjLAXvg64Gpc1RROH24J9jrNDyvrMxY453DRUjZ/K3zYJC+M1JxcvLkuZALsXVQ4Z7sj0EuLbRnhTKzRGwFrpXcixvnCgRbJrCl3+RjyWVipph0VLB0nDop/tvjfFmysZ+d2/k6baJMxYoqnE7PFceicrxUYyoJ2LMxicgJqrgvSR3mNJTkvfTU8BIoZz3PpSIS+Y7Ey3MXecxcxYZTeX62egI5Nub2z8Bj4Eg71YCz8Oiapkinw4RRlL+0c2/6jDqc8UK4Zzi1X4aIpgYsPJQOEz2YWBdvH6z5CuY7UvWK2F0Mg4ofRVBArX1p9Gv5VLqWYyL/raRVWkPNI4FEv9+ePcdmBSQR4CFSO6TG13hIV+cm1dkd0/Nt3r28H4NU2knSniDCeozM/Btc4i/ni4H83S2/ktAAvUM7UKJPT+RO8LOlvxhuI8HQmAuJCzVH23R/0JovidxgdJ7g7whCdVQa9/TLFUJWmNSYAaPRAXW/kk2UBmAz6f6POK1zcMlmI8P9tqW2qVXABN0L0zHarXbWHlhtYpXMEda/pIHLwu8RHqmWWMgMzkyKicSFKK10UvZRdcO8fCiSijtFIY8qW7CscvtzpP92lm+c648urehw35v1EOfO3kdny+CQm/Y0u+zPuevhCrQKhTsUq4G1rNPoGuVzvhf2Ui1f8jzvx9fJbQR69A0ETLUUC2ndk1YFQNi22yLwyZyw4xU8P3RGLM5qojKNwHAZAMAEudzg8UdfV6i4VktOLbhhHUPqpCn6dtpnr16rINs5hWJGMYXaEn0irFCuoYnJEVhdJ4PZLKuTkrP1UUVWZ0SMgJ3F2I8YRhtLwK4dhh/oKk0hdVgEH/l2/0c+cLlF7kpDuF3lC4fsFw3V0QrwH3GLNb2waS18OmYB07yaLEqhd58bSaGJZzePoroV5v3UK46/sWdKczstFIiYLmmKeaVGRNo3IWk+dYUqWy5aJClXj5tf/v47ijlkmMDP+ROUxoGk7LFzne4/0CRPl/5SUyOa679jibvdVQFZ1o0H9kBux7OSC9B+qVKE1trxr4xqTkjc1ZGZBpY0zyKBiu8wr+/KXc37u0cdXGJwY/aTic3kGj4jt3y4ZwleKskyXMFHKGwVhqpFH3ba02boSzGHyPMAe/reVqWSTT2Uz47+uYvHZGNASqYQ23uZoxalHK+PGoH9trTVaw2KB4dH8fNrXRLhiyxGdRtS0x8k3feeOvsOdKEdaOf3IrfWCZM/n3+hVJizA4zoX8MzsIf6bDfuFXIIRR2RN0rICZcMRmnRxUXT+YMOid50gg+Nt4Uucemmbd9kvJG/O04PVC0vm5gGDlIY3THI2+l1rZcMOuSDWBp6I4Eltp7naHZCdaPUWnQ07VqO49znDgCmtu5Tb+SSEQJV+rJsiXgCqoeeQciher8cqF616P8qlZeonKihdVkj+RTnjOcnoERWubvyaeFO6Ub3dhh0qmm2RD4enszxE1JaAaiezuSoCayJQP931HGcy0NmuVr/UV0pvbwICLpBbVkxC6qebjLGRXucTG0dbQDFPz049hMem2pb/FOTGYRLR0uPCa0oIwc9Z/g+Iy/zYFDThHi1cqbK824savKGMLMj7j87RT9NMwxaI0eKTfMFioi9SyLq5sN9pV8be2FrOc7xMOdv6btXyqFx63y9fIGMBP2T9Wmeeg61ZGdTE4IwybcGlXLJ3qLbRRpQ8vSzcqFobN+QPtL+51hadAWtRbF6aJpeb7Gca4/Ldh7BDvEbrUuEm+gTyVMeRQ3Ypf9uyFjVstrQIcdY+aur3LC5I5OOnJck1zLUKxLobjy9slG3hv6zylhtKbAbpX5p8Hc910fCT7FNH5/t9xEJX9kkeZ9IMCHAk9zn7L3pXEGZVvdaf85NtlemPpY7iSgSC7zRGsI5W6/UEwX6jDtNVZ9VqPDBe/EqmEEsGcs7jZPQPhi3xpj9UXWQLiy6tsxv/ft9aKQnUg0Sps/x3AZ2uK3ETGTQogPTMQPOnoU6p5KuS3uY6DfW0GeGQ1wNpGzGoUdRJRvHP9MDQpWRSZqZkE/rcNnQ5lS9BmMDW/umgZQD1C2YXfZMy7fIVXo121293Gfx9n7DQP6OxSqiSTNx48KId9kfGYOnV2Wg2TQQywNBRB0mSmqa/jwoBDYVDl6B0XFrVEAwbnhLyqGp5BH9bzsWrrFlu0x285RpqTylTZk3rgcm57prav0DUAKUd02vXdYyNBf7sfX7VYn0Syug9++ey/dHoG7GQzMbhXhtEuRXv6YR20SQgSOrgDUGPR4HhS+Qvk2zOtyH8N/lHYfQxNKt/f7uCpsBBh5eGZaeWNRTBdOObWOvyKJMfD8FLEX1v/5ywtRV27weRzSNaHEQFE0hIzzS4VPzgWtg/4bcetwXpabsePP192muNPyXiRzRZkoeudA9D9x/oVWfRieLfjdXbi/41RGNB3aIj0IxCBHSvUN7LzntO6Oh910zV9u4Glrouyr5odjs8/fW9r0buiTMWTjjLbi2k5tZ3m/134ci/d9f8zuv+4BI7F13Mjb7DTTD5ukfqNTlNC4V9PnfbGAJdKLEDJgBPKyYXCaAL9U5Cxi2j5j+IWmNg6NSnWcATzmOO4+dNBmefy6ceyd8J9/Q7amUWVVkuNVSq3iWEb3UJP7kG+P8wfL4xS0ZNuSKYuo9KpdkJ3b4PYRNSzF+8OXKDWqXuWsan/wconybIRBoGWHMuCkb35BtGfiqZ4hc2CCapKiLmrWnBLlRT+9GA0Qcykkg1B6C3kESJMu2dWyGabbhRwxUeMxARHqbXzHmHpr4Z3vmOxHZ6b1q6MJ0Vb/XKkaPF4xn/VindEJ3S8/9xcGF+PNFuAXc2Jf9uZLLtjxDAEeohd7wjie66LHvcNT0UpWif4uCox2YR/liegMgx8vEbvQClJBMBub7zJQMCr1C/Vf8siWQASp0Ewd7D2uP6f9YTISdEaUAzF9rST9JTHxez310BfdgtWKU1ZYoRuDZvGn2tj9DPjXrkgCr/13OHsP4MOC5b6YqHSedYMW9bEfS5M3nO7zTGS85BzpLTIFqAGhZJLEyLFcZXS7hDhDYVvlm10RLEslMK0cUL/9xqTMOX2iR65umsC8dW4hT0Sg6Tf3T2HAxsHKcNzoqFwuM9k3/LpYekhRc0C+f1I+vMQ4thkfSotx9GUt/cdRosaE8XwqV0k+8ZtU+jv8nn3lbcNxfXXKi5l0SL5kMmrCdrxeVVqxBobrFF+tb0wtkN+DMm88I4jWH/DcdJOjcMOLEsN70vlsfIi+NexpaT0ZsnfewPoTvUSXqqfhRcRk3jA7AdYHEFk4l6O3fe65uZNIMf1lbtJNCNaK2+c5hGKLcTSrBmwWv9TP6JDfZ6UY96g4baayVCbrDpXePgXTG6xO3rT0DAXG9OuPxkSEPLJnqxQViyYQhCp36Q2yFpF6cR04RO7Ab5HPrECqGR0Fnr2gzmjx49XjQf8N5Bk5XH0dh8NOoB62acHwMhlBM8duW9tghc7CN7oz91UEyd8fOtwDK/j7SykdllCAN5kUrcawufMV9y/EqUoKHtP5i8MgQY9RlZFZzi0BeT9Ang4mMIvWAFChZCNnb4tT5cS20jeit8JEN4tz4mUmZxDwiWkEucI1KF/FyAnvE4wybWvbaxBYjT2jdhlzd4y/eTmTl3im5YImADc2unOtmNTcgMdOb9kUgJmgzY/hDaAxqvwLEulLsjq0bsfSE3tRYCRn6xb0uv5B5yFshhewdO5KgoLcaGeqeg0pa9k2RXM32g1jE1UDWO0CaMobavPk+4u26Tmgg6VindBdYdRxpGqlvkxai0K/atC5CWUxlHuukX5b+hg83khzsZK7AVRVptyVNicu0sfQToTDEeIeDdFvDrReJUiJGZcXAhpRL3OufhL4aDfO1zsCmfGq8qFspBiJe13lgS9GguiMsdmgpWOhHkSTVkWnMOnUeIJgqZks/AwL/1yKPm00t6x6qLXQrCJrysUwR+ILJdyyyuUN4BuEtCDUXMXPU5srsAnDUhSfFM/j4RK+cK01o6lXAVbhiOLaaQtpYN6mCOwtJNcVqEpyrxXuWxvE4mbVCytBu/qKO4X2BI1NUSlj/g6FQEiYsXMAQuM9wnHngXKLZRWFHcgroF7URRzLPrMQUfALjbga6S+tGc3Tshv6PA6xeSqRPDbLG+X+0qt9crNzbaxGbStSCfYhdRY4t5BSVY9Pxl9trcYFiUdsV1BSwaZM5u8K+hUm8HV6PoLD/jlsRRzgUq6O+Qw3asFkTKm3clSTo8VtXdpTdzFAZP+tVvAjkfGq3MkSLyTYi08pvQ3h/L9o0JpUnnQeKxXk3qIsGGsH1BXzcZT+voCNv39FSdg6gNY51z9Cyq5Dql8wER5ylTwnLVeHlHAn/HNwxGYeUqrrc2gcmIybVKVD1XAPXjKks2+oHZk4OXYP6+LwVaFEApqEMyEusTgVFTzdjVa2BAaELvpyVhOSMW/ae3NwMfWId4Ue28z5IzumOF/CmY1GmXBOWBf2hgp/r3qS0GU7nGETmj+7Tudbjd1cKhgP39tVtWogjxHt6NLXz8OCbV1nIBG+mmrrZDCbH/o4Vgn3gZkRkq+iHOVW82LunJPXBZjX/ntmptWsqP8nDZBSb3TzAD4vSQeQ1GmtgGWAYfB951YKUnFVJb0z1YRjQqVksL5VpD4N/Vy31vtYY/2g9TmyMADPgCwwA6MhjQ9bd1JFJ3Vls7lD2RYjdIwQwhWzBRPfrxpKcYeu03F0/odRbEc9RZ11TxVY8mXqgJx/vDk0eF4MPV7lgBxYqxoGfEtGZBC1kZlxbcez4Ts4/TuXJ/QsfWT95Fwpc4CtiGCgU4i7LHgoDalqmBabvzV5xvq2pMVourJYZ4paytzilEG+lADOGx7qf9O5/4cP5SqyTCMG4I16I/6I5o4Y/QkWX9ctABry/8Adxz+ZB8AI1yUyNXk1Z073ECiDJ1EuVT69eIDEAlbnv24j4DJGeqIV1b1GDCHJ+OFD4W0gXUs/1bMkNESNKl2ON6DZzAXvqmr8X68yRDgIReKbX1SUwtzYnyadBLhEWS0WTE7T1IxC2SHChb1NFD+2rtJSN8OPTIZRqiizaoh7OSSNpBXJMkKcUQZV8sXw8VkU5ea8j0WZ/YK35loUxE1aG30SL/JYxZWlUenDyKrfbHWJ+z6JOsV0e1Xfw7VGavtHACLwn0tTG9e3lf++w1MCVjFIyU57uOlbTkUSnxAjzmA71qvjTzHeMDWcK099tm9rS8cnfuwxq+YRWANkfmLbCl+74mg4bccPsNY5zz7cjbaFAL0hAwId61yM5uqhMBr4Wcew3b2spG5tkKFOnADeXkGkH4vk+f+an92mWXemOFCpjRsFeEnPEAIsLemM3QfMoME5/w+7Y48y/SvkBN6/KSRVmB7/rHiW7iVkXF6Y1T853OaDg66cIfWkD5TqCDugrlaXlEL1fFjxPoKRHkP5GD/xDiscNH+Dp2fXEKUpwAvC8JTNC+k9JpaMXUB7oj4p77qiAOjXD2pT4v/v0Ukid02LpuYsS7/ScDL1SxB9hxxbkeGOMyPyL4HZPAbyagOgP5Xe2pCqMPyj/KJ0blDHzFVBqzeLIO5D4yq7IpSi9p/QlHa50sCHzGoMqrBS8l9IfRyhq8IDQtOZzjgdvgQDwH7cqa/sybwdfcQse9THS08maKkkgnOi0ShO8Gyf+WL4K9DX11CF9uIbVwJUaCv8r/6FDVOdsEjeumisIJlLJQsjjkEL2QfEc68oqsevnNAEdp4YMJivwBJnE0R2GiBFRTJZNkq/MHDP9O5unQoRoivMJkPm+A0K8CQNXL6V3apC4ROBTyJSW9oOGNF4YrwoTFyz/pexIkeWQADpi+M7q8gBlmGRUune0k7cXyacdbOsD0Q1JQat9T8nmHhyO8PNd2k4qjZsQCs6lEcmaThpVUzGzWOJQGGf2oz7+F/bMfUMARo1PD0/yIhVDK+8MGRo/uByG5UAwPfNeHAd09gkMFpZmTN2rZgoqdSjwv1SbFnFRAqYuzwW8P4+Rk9fE3PVu80HKcXyIEvPfit+o+pnlHDUKKo32HapcVtQhsNiIdH80j/lRnJ2y5RYRbECyY4vl20j/NiBAD0Z5jxWWiL6xAZIonSEJb1qhwmdRp3hISLL9Q1QYOt6C/OixU3eUtXblgBu+fGPAQE0o");let t$=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function tH(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function tQ(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join("")}var tV=tL("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 tK(e){return e>>24&255}function tJ(e){return 16777215&e}let tY=new Map(tz(tV).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),tX=new Set(tU(tV)),t0=new Map,t1=new Map;for(let[e,t]of tq(tV)){if(!tX.has(e)&&2==t.length){let[n,r]=t,i=t1.get(n);i||(i=new Map,t1.set(n,i)),i.set(r,e)}t0.set(e,t.reverse())}function t2(e){return e>=44032&&e<55204}function t5(e){let t=[],n=[],r=!1;function i(e){let n=tY.get(e);n&&(r=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(t2(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,a=e%28;i(4352+t),i(4449+n),a>0&&i(4519+a)}else{let e=t0.get(r);e?n.push(...e):i(r)}if(!n.length)break;r=n.pop()}if(r&&t.length>1){let e=tK(t[0]);for(let n=1;n<t.length;n++){let r=tK(t[n]);if(0==r||e<=r){e=r;continue}let i=n-1;for(;;){let n=t[i+1];if(t[i+1]=t[i],t[i]=n,!i||(e=tK(t[--i]))<=r)break}e=tK(t[n])}}return t}function t3(e){return function(e){let t=[],n=[],r=-1,i=0;for(let a of e){let e=tK(a),s=tJ(a);if(-1==r)0==e?r=s:t.push(s);else if(i>0&&i>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),i=e;else{let a=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(t2(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let n=t1.get(e);return n&&(n=n.get(t))?n:-1}}(r,s);a>=0?r=a:0==i&&0==e?(t.push(r),r=s):(n.push(s),i=e)}}return r>=0&&t.push(r,...n),t}(t5(e))}function t6(){return new Set(tU(tW))}let t8=new Map(tq(tW)),t4=t6(),t9=t6(),t7=new Set(tU(tW).map(function(e){return this[e]},[...t9])),ne=t6();t6();let nt=tz(tW);function nn(){return new Set([tU(tW).map(e=>nt[e]),tU(tW)].flat(2))}let nr=tW(),ni=tG(e=>{let t=tG(tW).map(e=>e+96);if(t.length){let n=e>=nr;t[0]-=32,t=tQ(t),n&&(t=`Restricted[${t}]`);let r=nn(),i=[...r,...nn()].sort((e,t)=>e-t);return{N:t,P:r,M:!tW(),R:n,V:new Set(i)}}}),na=t6(),ns=new Map;for(let{V:e,M:t}of([...na,...t6()].sort((e,t)=>e-t).map((e,t,n)=>{let r=tW(),i=n[t]=r?n[t-r]:{V:[],M:new Map};i.V.push(e),na.has(e)||ns.set(e,i)}),new Set(ns.values()))){let n=[];for(let t of e){let e=ni.filter(e=>e.V.has(t)),r=n.find(({G:t})=>e.some(e=>t.has(e)));r||(r={G:new Set,V:[]},n.push(r)),r.V.push(t),e.forEach(e=>r.G.add(e))}let r=n.flatMap(({G:e})=>[...e]);for(let{G:e,V:i}of n){let n=new Set(r.filter(t=>!e.has(t)));for(let e of i)t.set(e,n)}}let no=new Set,nu=new Set;for(let e of ni)for(let t of e.V)(no.has(t)?nu:no).add(t);for(let e of no)ns.has(e)||nu.has(e)||ns.set(e,1);let nc=new Set([...no,...t5(no).map(tJ)]);class nl extends Array{get is_emoji(){return!0}}let nd=(r=[],i=tU(tW),function e({S:t,B:n},i,a){if(!(4&t)||a!==i[i.length-1])for(let s of(2&t&&(a=i[i.length-1]),1&t&&r.push(i),n))for(let t of s.Q)e(s,[...i,t],a)}(function e(t){return{S:tW(),B:tG(()=>{let t=tU(tW).map(e=>i[e]);if(t.length)return e(t)}),Q:t}}([]),[]),r).map(e=>nl.from(e)).sort(function(e,t){let n=e.length,r=n-t.length;for(let i=0;0==r&&i<n;i++)r=e[i]-t[i];return r}),nh=new Map;for(let e of nd){let t=[nh];for(let n of e){let e=t.map(e=>{let t=e.get(n);return t||(t=new Map,e.set(n,t)),t});65039===n?t.push(...e):t=e}for(let n of t)n.V=e}function nf(e,t=tH){var n;let r=[];n=e[0],t9.has(n)&&r.push("◌");let i=0,a=e.length;for(let n=0;n<a;n++){let a=e[n];ne.has(a)&&(r.push(tQ(e.slice(i,n))),r.push(t(a)),i=n+1)}return r.push(tQ(e.slice(i,a))),r.join("")}function np(e){return(ne.has(e)?"":`${nm(nf([e]))} `)+tH(e)}function nm(e){return`"${e}"\u200E`}function ng(e){return Error(`disallowed character: ${np(e)}`)}function ny(e,t){let n=np(t),r=ni.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),Error(`illegal mixture: ${e.N} + ${n}`)}function nb(e){return Error(`illegal placement: ${e}`)}function nv(e){return e.filter(e=>65039!=e)}var nw=n(61918);function n_(e,t,{batch:n={multicall:{wait:32}},pollingInterval:r=4e3,rank:i,retryCount:a,retryDelay:s,stallTimeout:o}={}){if(!e.length)throw Error("must have at least one chain");let u=[],c={},l={};for(let n of e){let e=!1;for(let r of t){let t=r(n);t&&(e=!0,u.some(({id:e})=>e===n.id)||(u=[...u,t.chain]),c[n.id]=[...c[n.id]||[],...t.rpcUrls.http],t.rpcUrls.webSocket&&(l[n.id]=[...l[n.id]||[],...t.rpcUrls.webSocket]))}if(!e)throw Error(`Could not find valid provider configuration for chain "${n.name}".

You may need to add \`jsonRpcProvider\` to \`configureChains\` with the chain's RPC URLs.
Read more: https://wagmi.sh/core/providers/jsonRpc`)}return{chains:u,publicClient:({chainId:t})=>{let l=u.find(e=>e.id===t)??e[0],d=c[l.id];if(!d||!d[0])throw Error(`No providers configured for chain "${l.id}"`);let h=th({batch:n,chain:l,transport:tm(d.map(e=>(function(e,t={}){let{batch:n,fetchOptions:r,key:i="http",name:a="HTTP JSON-RPC",retryDelay:s}=t;return({chain:o,retryCount:u,timeout:c})=>{let{batchSize:l=1e3,wait:d=0}="object"==typeof n?n:{},h=t.retryCount??u,f=c??t.timeout??1e4,p=e||o?.rpcUrls.default.http[0];if(!p)throw new ty;return(0,tp.q)({key:i,name:a,async request({method:t,params:i}){let a={method:t,params:i},{schedule:s}=(0,tb.S)({id:`${e}`,wait:d,shouldSplitBatch:e=>e.length>l,fn:e=>tk.http(p,{body:e,fetchOptions:r,timeout:f})}),o=async e=>n?s(e):[await tk.http(p,{body:e,fetchOptions:r,timeout:f})],[{error:u,result:c}]=await o(a);if(u)throw new tg.bs({body:a,error:u,url:p});return c},retryCount:h,retryDelay:s,timeout:f,type:"http"},{url:e})}})(e,{timeout:o})),{rank:i,retryCount:a,retryDelay:s}),pollingInterval:r});return Object.assign(h,{chains:u})},webSocketPublicClient:({chainId:t})=>{let c=u.find(e=>e.id===t)??e[0],d=l[c.id];if(!d||!d[0])return;let h=th({batch:n,chain:c,transport:tm(d.map(e=>(function(e,t={}){let{key:n="webSocket",name:r="WebSocket JSON-RPC",retryDelay:i}=t;return({chain:a,retryCount:s,timeout:o})=>{let u=t.retryCount??s,c=o??t.timeout??1e4,l=e||a?.rpcUrls.default.webSocket?.[0];if(!l)throw new ty;return(0,tp.q)({key:n,name:r,async request({method:e,params:t}){let n={method:e,params:t},r=await tC(l),{error:i,result:a}=await tk.webSocketAsync(r,{body:n,timeout:c});if(i)throw new tg.bs({body:n,error:i,url:l});return a},retryCount:u,retryDelay:i,timeout:c,type:"webSocket"},{getSocket:()=>tC(l),async subscribe({params:e,onData:t,onError:n}){let r=await tC(l),{result:i}=await new Promise((i,a)=>tk.webSocket(r,{body:{method:"eth_subscribe",params:e},onResponse(e){if(e.error){a(e.error),n?.(e.error);return}if("number"==typeof e.id){i(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:i,unsubscribe:async()=>new Promise(e=>tk.webSocket(r,{body:{method:"eth_unsubscribe",params:[i]},onResponse:e}))}}})}})(e,{timeout:o})),{rank:i,retryCount:a,retryDelay:s}),pollingInterval:r});return Object.assign(h,{chains:u})}}}var nE=class extends Error{constructor({activeChain:e,targetChain:t}){super(`Chain mismatch: Expected "${t}", received "${e}".`),this.name="ChainMismatchError"}},nA=class extends Error{constructor({chainId:e,connectorId:t}){super(`Chain "${e}" not configured${t?` for connector "${t}"`:""}.`),this.name="ChainNotConfigured"}},nx=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},nC=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."}},nS=class extends Error{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}},nk=(e,{find:t,replace:n})=>e&&t(e)?n(e):"object"!=typeof e?e:Array.isArray(e)?e.map(e=>nk(e,{find:t,replace:n})):e instanceof Object?Object.entries(e).reduce((e,[r,i])=>({...e,[r]:nk(i,{find:t,replace:n})}),{}):e;function nD(e){let t=JSON.parse(e),n=nk(t,{find:e=>"string"==typeof e&&e.startsWith("#bigint."),replace:e=>BigInt(e.replace("#bigint.",""))});return n}function nI(e){return{accessList:e.accessList,account:e.account,blockNumber:e.blockNumber,blockTag:e.blockTag,data:e.data,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,to:e.to,value:e.value}}function nO(e){return{accessList:e.accessList,account:e.account,data:e.data,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,to:e.to,value:e.value}}function nT(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(tI.Bd[e])}function nP(e,t){return e.slice(0,t).join(".")||"."}function nF(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function nR(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,i=[],a=[];return function(s,o){if("object"==typeof o){if(i.length){let e=nF(i,this);0===e?i[i.length]=this:(i.splice(e),a.splice(e)),a[a.length]=s;let n=nF(i,o);if(0!==n)return r?t.call(this,s,o,nP(a,n)):`[ref=${nP(a,n)}]`}else i[0]=o,a[0]=s}return n?e.call(this,s,o):o}}((e,n)=>{let r="bigint"==typeof n?`#bigint.${n.toString()}`:n;return t?.(e,r)||r},r),n??void 0)}var nN={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function nB({deserialize:e=nD,key:t="wagmi",serialize:n=nR,storage:r}){return{...r,getItem:(n,i=null)=>{let a=r.getItem(`${t}.${n}`);try{return a?e(a):i}catch(e){return console.warn(e),i}},setItem:(e,i)=>{if(null===i)r.removeItem(`${t}.${e}`);else try{r.setItem(`${t}.${e}`,n(i))}catch(e){console.error(e)}},removeItem:e=>r.removeItem(`${t}.${e}`)}}var nM="store",nj=class{constructor({autoConnect:e=!1,connectors:t=[new l._],publicClient:n,storage:r=nB({storage:"undefined"!=typeof window?window.localStorage:nN}),logger:i={warn:console.warn},webSocketPublicClient:c}){let d;f(this,o),this.publicClients=new Map,this.webSocketPublicClients=new Map,f(this,a,void 0),f(this,s,void 0),this.args={autoConnect:e,connectors:t,logger:i,publicClient:n,storage:r,webSocketPublicClient:c};let h="disconnected";if(e)try{let e=r.getItem(nM),t=e?.state?.data;h=t?.account?"reconnecting":"connecting",d=t?.chain?.id}catch(e){}let g="function"==typeof t?t():t;g.forEach(e=>e.setStorage(r)),this.store=tB(tO(tR(()=>({connectors:g,publicClient:this.getPublicClient({chainId:d}),status:h,webSocketPublicClient:this.getWebSocketPublicClient({chainId:d})}),{name:nM,storage:r,partialize:t=>({...e&&{data:{account:t?.data?.account,chain:t?.data?.chain}},chains:t?.chains}),version:2}))),this.storage=r,p(this,s,r?.getItem("wallet")),m(this,o,u).call(this),e&&"undefined"!=typeof window&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(e){let t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState(e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),p(this,a,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(h(this,a))return;p(this,a,!0),this.setState(e=>({...e,status:e.data?.account?"reconnecting":"connecting"}));let e=h(this,s)?[...this.connectors].sort(e=>e.id===h(this,s)?-1:1):this.connectors,t=!1;for(let n of e){if(!n.ready||!n.isAuthorized)continue;let e=await n.isAuthorized();if(!e)continue;let r=await n.connect();this.setState(e=>({...e,connector:n,chains:n?.chains,data:r,status:"connected"})),t=!0;break}return t||this.setState(e=>({...e,data:void 0,status:"disconnected"})),p(this,a,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};let t="function"==typeof e?e():e;t.forEach(e=>e.setStorage(this.args.storage)),this.setState(e=>({...e,connectors:t}))}getPublicClient({chainId:e}={}){let t=this.publicClients.get(-1);if(t&&t?.chain.id===e||(t=this.publicClients.get(e??-1)))return t;let{publicClient:n}=this.args;return t="function"==typeof n?n({chainId:e}):n,this.publicClients.set(e??-1,t),t}setPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState(e=>({...e,publicClient:this.getPublicClient({chainId:t})}))}getWebSocketPublicClient({chainId:e}={}){let t=this.webSocketPublicClients.get(-1);if(t&&t?.chain.id===e||(t=this.webSocketPublicClients.get(e??-1)))return t;let{webSocketPublicClient:n}=this.args;return(t="function"==typeof n?n({chainId:e}):n)&&this.webSocketPublicClients.set(e??-1,t),t}setWebSocketPublicClient(e){let t=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState(e=>({...e,webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})}))}setLastUsedConnector(e=null){this.storage?.setItem("wallet",e)}};function nL(e){let t=new nj(e);return c=t,t}function nU(){if(!c)throw Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return c}async function nz({chainId:e,connector:t}){let n=nU(),r=n.connector;if(r&&t.id===r.id)throw new nx;try{n.setState(e=>({...e,status:"connecting"}));let r=await t.connect({chainId:e});return n.setLastUsedConnector(t.id),n.setState(e=>({...e,connector:t,chains:t?.chains,data:r,status:"connected"})),n.storage.setItem("connected",!0),{...r,connector:t}}catch(e){throw n.setState(e=>({...e,status:e.connector?"connected":"disconnected"})),e}}async function nq(){let e=nU();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}a=new WeakMap,s=new WeakMap,o=new WeakSet,u=function(){let e=e=>{this.setState(t=>({...t,data:{...t.data,...e}}))},t=()=>{this.clearState()},n=e=>{this.setState(t=>({...t,error:e}))};this.store.subscribe(({connector:e})=>e,(r,i)=>{i?.off?.("change",e),i?.off?.("disconnect",t),i?.off?.("error",n),r&&(r.on?.("change",e),r.on?.("disconnect",t),r.on?.("error",n))});let{publicClient:r,webSocketPublicClient:i}=this.args;("function"==typeof r||"function"==typeof i)&&this.store.subscribe(({data:e})=>e?.chain?.id,e=>{this.setState(t=>({...t,publicClient:this.getPublicClient({chainId:e}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})}))})};var nG=[{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"}]}],nZ=[{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 nW({chainId:e}={}){let t=nU();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function n$({chainId:e}={}){let t=nU(),n=await t.connector?.getWalletClient?.({chainId:e})||null;return n}function nH({chainId:e}={}){let t=nU();return e&&t.getWebSocketPublicClient({chainId:e})||t.webSocketPublicClient}function nQ(e,t){let n=nU(),r=async()=>t(nW(e)),i=n.subscribe(({publicClient:e})=>e,r);return i}function nV({chainId:e},t){let n=nU(),r=async({chainId:n})=>{if(e&&n&&e!==n)return;let r=await n$({chainId:e});return nU().connector?t(r):t(null)},i=n.subscribe(({data:e,connector:t})=>({account:e?.account,chainId:e?.chain?.id,connector:t}),r,{equalityFn:tj});return i}function nK(e,t){let n=nU(),r=async()=>t(nH(e)),i=n.subscribe(({webSocketPublicClient:e})=>e,r);return i}async function nJ({abi:e,address:t,args:n,chainId:r,functionName:i,walletClient:a,...s}){let o=nW({chainId:r}),u=a??await n$({chainId:r});if(!u)throw new tD.N;r&&rn({chainId:r});let{account:c,accessList:l,blockNumber:d,blockTag:h,gas:f,gasPrice:p,maxFeePerGas:m,maxPriorityFeePerGas:g,nonce:y,value:b}=nI(s),{result:v,request:w}=await o.simulateContract({abi:e,address:t,functionName:i,args:n,account:c||u.account,accessList:l,blockNumber:d,blockTag:h,gas:f,gasPrice:p,maxFeePerGas:m,maxPriorityFeePerGas:g,nonce:y,value:b}),_=e.filter(e=>"name"in e&&e.name===i);return{mode:"prepared",request:{...w,abi:_,chainId:r},result:v}}async function nY({chainId:e,contracts:t,blockNumber:n,blockTag:r,...i}){let a=nW({chainId:e});if(!a.chains)throw new nC;if(e&&a.chain.id!==e)throw new nA({chainId:e});return a.multicall({allowFailure:i.allowFailure??!0,blockNumber:n,blockTag:r,contracts:t})}async function nX({address:e,account:t,chainId:n,abi:r,args:i,functionName:a,blockNumber:s,blockTag:o}){let u=nW({chainId:n});return u.readContract({abi:r,address:e,account:t,functionName:a,args:i,blockNumber:s,blockTag:o})}async function n0({contracts:e,blockNumber:t,blockTag:n,...r}){let{allowFailure:i=!0}=r;try{let r=nW(),a=e.reduce((e,t,n)=>{let i=t.chainId??r.chain.id;return{...e,[i]:[...e[i]||[],{contract:t,index:n}]}},{}),s=(await Promise.all(Object.entries(a).map(([e,r])=>nY({allowFailure:i,chainId:parseInt(e),contracts:r.map(({contract:e})=>e),blockNumber:t,blockTag:n})))).flat(),o=Object.values(a).flatMap(e=>e.map(({index:e})=>e));return s.reduce((e,t,n)=>(e&&(e[o[n]]=t),e),[])}catch(a){if(a instanceof C.uq)throw a;let r=()=>e.map(e=>nX({...e,blockNumber:t,blockTag:n}));if(i)return(await Promise.allSettled(r())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(r())}}async function n1(e){let t;let n=await n$({chainId:e.chainId});if(!n)throw new tD.N;if(e.chainId&&rn({chainId:e.chainId}),"prepared"===e.mode)t=e.request;else{let{chainId:n,mode:r,...i}=e,a=await nJ(i);t=a.request}let r=await n.writeContract({...t,chain:null});return{hash:r}}async function n2({address:e,chainId:t,formatUnits:n,token:r}){let i=nU(),a=nW({chainId:t});if(r){let i=async({abi:i})=>{let a={abi:i,address:r,chainId:t},[s,o,u]=await n0({allowFailure:!1,contracts:[{...a,functionName:"balanceOf",args:[e]},{...a,functionName:"decimals"},{...a,functionName:"symbol"}]});return{decimals:o,formatted:(0,tM.b)(s??"0",nT(n??o)),symbol:u,value:s}};try{return await i({abi:nG})}catch(e){if(e instanceof C.uq){let{symbol:e,...t}=await i({abi:nZ});return{symbol:(0,eT.rR)((0,_.f)(e,{dir:"right"})),...t}}throw e}}let s=[...i.publicClient.chains||[],...i.chains??[]],o=await a.getBalance({address:e}),u=s.find(e=>e.id===a.chain.id);return{decimals:u?.nativeCurrency.decimals??18,formatted:(0,tM.b)(o??"0",nT(n??18)),symbol:u?.nativeCurrency.symbol??"ETH",value:o}}function n5(){let{data:e,connector:t,status:n}=nU();switch(n){case"connected":return{address:e?.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};case"reconnecting":return{address:e?.account,connector:t,isConnected:!!e?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:e?.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function n3(){let e=nU(),t=e.data?.chain?.id,n=e.chains??[],r=[...e.publicClient?.chains||[],...n].find(e=>e.id===t)??{id:t,name:`Chain ${t}`,network:`${t}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:t?{...r,...e.data?.chain,id:t}:void 0,chains:n}}async function n6({chainId:e}){let{connector:t}=nU();if(!t)throw new tD.N;if(!t.switchChain)throw new nS({connector:t});return t.switchChain(e)}function n8(e,{selector:t=e=>e}={}){let n=nU(),r=n.subscribe(({data:e,connector:n,status:r})=>t({address:e?.account,connector:n,status:r}),()=>e(n5()),{equalityFn:tj});return r}function n4(e,{selector:t=e=>e}={}){let n=nU(),r=n.subscribe(({data:e,chains:n})=>t({chainId:e?.chain?.id,chains:n}),()=>e(n3()),{equalityFn:tj});return r}async function n9({name:e,chainId:t}){var n;let r=nW({chainId:t}),i=await r.getEnsAvatar({name:(n=function(e,t,n){if(!e)return[];let r=0;return e.split(".").map(e=>{let i,a=function(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}(e),s={input:a,offset:r};r+=a.length+1;try{let e,r=s.tokens=function(e,t,n){let r=[],i=[];for(e=e.slice().reverse();e.length;){let a=function(e,t){let n,r=nh,i=e.length;for(;i&&(r=r.get(e[--i]));){let{V:a}=r;a&&(n=a,t&&t.push(...e.slice(i).reverse()),e.length=i)}return n}(e);if(a)i.length&&(r.push(t(i)),i=[]),r.push(n(a));else{let t=e.pop();if(nc.has(t))i.push(t);else{let e=t8.get(t);if(e)i.push(...e);else if(!t4.has(t))throw ng(t)}}}return i.length&&r.push(t(i)),r}(a,t,n),o=r.length;if(o){if(i=r.flat(),!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(i),!(s.emoji=o>1||r[0].is_emoji)&&i.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${tQ(e.slice(0,4))}"`)}(i),e="ASCII";else{let t=r.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(t9.has(i[0]))throw nb("leading combining mark");for(let e=1;e<o;e++){let t=r[e];if(!t.is_emoji&&t9.has(t[0]))throw nb(`emoji + combining mark: "${tQ(r[e-1])} + ${nf([t[0]])}"`)}!function(e){let t=e[0],n=t$.get(t);if(n)throw nb(`leading ${n}`);let r=e.length,i=-1;for(let a=1;a<r;a++){t=e[a];let r=t$.get(t);if(r){if(i==a)throw nb(`${n} + ${r}`);i=a+1,n=r}}if(i==r)throw nb(`trailing ${n}`)}(i);let n=[...new Set(t)],[a]=function(e){let t=ni;for(let n of e){let e=t.filter(e=>e.V.has(n));if(!e.length){if(ni.some(e=>e.V.has(n)))throw ny(t[0],n);throw ng(n)}if(t=e,1==e.length)break}return t}(n);(function(e,t){let{V:n,M:r}=e;for(let r of t)if(!n.has(r))throw ny(e,r);if(r){let e=t5(t).map(tJ);for(let t=1,n=e.length;t<n;t++)if(t7.has(e[t])){let r=t+1;for(let i;r<n&&t7.has(i=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==i)throw Error(`duplicate non-spacing marks: ${np(i)}`);if(r-t>4)throw Error(`excessive non-spacing marks: ${nm(nf(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(a,t),function(e,t){let n;let r=[];for(let e of t){let t=ns.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(n=n?n.filter(e=>r.has(e)):[...r]).length)return}else r.push(e)}if(n){for(let t of n)if(r.every(e=>t.V.has(e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(a,n),e=a.N}else e="Emoji"}}else throw Error("empty label");s.type=e}catch(e){s.error=e}return s.output=i,s})}(e,t3,nv)).map(({input:e,error:t,output:r})=>{if(t){let r=t.message;throw Error(1==n.length?r:`Invalid label ${nm(nf(e))}: ${r}`)}return tQ(r)}).join(".")});return i}async function n7({address:e,chainId:t}){let n=nW({chainId:t});return n.getEnsName({address:(0,nw.K)(e)})}async function re({chainId:e}={}){let t=nW({chainId:e}),n=await t.getBlockNumber();return n}async function rt({chainId:e,confirmations:t=1,hash:n,onReplaced:r,timeout:i=0}){let a=nW({chainId:e}),s=await a.waitForTransactionReceipt({hash:n,confirmations:t,onReplaced:r,timeout:i});if("reverted"===s.status){let e=await a.getTransaction({hash:s.transactionHash}),t=await a.call({...e,gasPrice:"eip1559"!==e.type?e.gasPrice:void 0,maxFeePerGas:"eip1559"===e.type?e.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===e.type?e.maxPriorityFeePerGas:void 0}),n=(0,eT.rR)(`0x${t.substring(138)}`);throw Error(n)}return s}function rn({chainId:e}){let{chain:t,chains:n}=n3(),r=t?.id;if(r&&e!==r)throw new nE({activeChain:n.find(e=>e.id===r)?.name??`Chain ${r}`,targetChain:n.find(t=>t.id===e)?.name??`Chain ${e}`})}},9909:function(e,t,n){"use strict";let r;n.d(t,{AccountCtrl:function(){return C},Id:function(){return m},ConfigCtrl:function(){return E},zv:function(){return p},uA:function(){return b},ExplorerCtrl:function(){return Z},jb:function(){return Q},OptionsCtrl:function(){return w},AV:function(){return f},ThemeCtrl:function(){return en},ToastCtrl:function(){return ei},WcConnectionCtrl:function(){return $}});var i=n(6961);let a=e=>"object"==typeof e&&null!==e,s=new WeakMap,o=new WeakSet,u=(e=Object.is,t=(e,t)=>new Proxy(e,t),n=e=>a(e)&&!o.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>e.configurable&&e.enumerable&&e.writable,u=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},c=new WeakMap,l=(e,t,n=u)=>{let r=c.get(e);if((null==r?void 0:r[0])===t)return r[1];let a=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return(0,i.jc)(a,!0),c.set(e,[t,a]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(a,t))return;let r=Reflect.get(e,t),u={value:r,enumerable:!0,configurable:!0};if(o.has(r))(0,i.jc)(r,!1);else if(r instanceof Promise)delete u.value,u.get=()=>n(r);else if(s.has(r)){let[e,t]=s.get(r);u.value=l(e,t(),n)}Object.defineProperty(a,t,u)}),Object.preventExtensions(a)},d=new WeakMap,h=[1,1],f=u=>{if(!a(u))throw Error("object required");let c=d.get(u);if(c)return c;let p=h[0],m=new Set,g=(e,t=++h[0])=>{p!==t&&(p=t,m.forEach(n=>n(e,t)))},y=h[1],b=(e=++h[1])=>(y===e||m.size||(y=e,w.forEach(([t])=>{let n=t[1](e);n>p&&(p=n)})),p),v=e=>(t,n)=>{let r=[...t];r[1]=[e,...r[1]],g(r,n)},w=new Map,_=(e,t)=>{if(w.has(e))throw Error("prop listener already exists");if(m.size){let n=t[3](v(e));w.set(e,[t,n])}else w.set(e,[t])},E=e=>{var t;let n=w.get(e);n&&(w.delete(e),null==(t=n[1])||t.call(n))},A=e=>{m.add(e),1===m.size&&w.forEach(([e,t],n)=>{if(t)throw Error("remove already exists");let r=e[3](v(n));w.set(n,[e,r])});let t=()=>{m.delete(e),0===m.size&&w.forEach(([e,t],n)=>{t&&(t(),w.set(n,[e]))})};return t},x=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),C=(t,r,u,c,l)=>{if(t&&(e(r,c)||d.has(c)&&e(r,d.get(c))))return;E(u),a(c)&&(c=(0,i.o5)(c)||c);let h=c;if(c instanceof Promise)c.then(e=>{c.status="fulfilled",c.value=e,g(["resolve",[u],e])}).catch(e=>{c.status="rejected",c.reason=e,g(["reject",[u],e])});else{!s.has(c)&&n(c)&&(h=f(c));let e=!o.has(h)&&s.get(h);e&&_(u,e)}l(h),g(["set",[u],c,r])},S={deleteProperty(e,t){let n=Reflect.get(e,t);E(t);let r=Reflect.deleteProperty(e,t);return r&&g(["delete",[t],n]),r},set(e,t,n,r){let i=Reflect.has(e,t),a=Reflect.get(e,t,r);return C(i,a,t,n,n=>{Reflect.set(e,t,n,r)}),!0},defineProperty(e,t,n){if(r(n)){let i=Reflect.getOwnPropertyDescriptor(e,t);if(!i||r(i))return C(!!i&&"value"in i,null==i?void 0:i.value,t,n.value,r=>{Reflect.defineProperty(e,t,{...n,value:r})}),!0}return Reflect.defineProperty(e,t,n)}},k=t(x,S);d.set(u,k);let D=[x,b,l,A];return s.set(k,D),Reflect.ownKeys(u).forEach(e=>{let t=Object.getOwnPropertyDescriptor(u,e);"value"in t&&(k[e]=u[e],delete t.value,delete t.writable),Object.defineProperty(x,e,t)}),k})=>[f,s,o,e,t,n,r,u,c,l,d,h],[c]=u();function l(e={}){return c(e)}function d(e,t,n){let r;let i=s.get(e);i||console.warn("Please use proxy object");let a=[],o=i[3],u=!1,c=o(e=>{if(a.push(e),n){t(a.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,u&&t(a.splice(0))}))});return u=!0,()=>{u=!1,c()}}let h=l({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),f={state:h,subscribe:e=>d(h,()=>e(h)),push(e,t){e!==h.view&&(h.view=e,t&&(h.data=t),h.history.push(e))},reset(e){h.view=e,h.history=[e]},replace(e){h.history.length>1&&(h.history[h.history.length-1]=e,h.view=e)},goBack(){if(h.history.length>1){h.history.pop();let[e]=h.history.slice(-1);h.view=e}},setData(e){h.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",W3M_VERSION:"W3M_VERSION",W3M_PREFER_INJECTED_URL_FLAG:"w3mPreferInjected",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>"u">typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>p.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){let e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,n){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,n);let r=e;r.includes("://")||(r=`${r=e.replaceAll("/","").replaceAll(":","")}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,n);let i=encodeURIComponent(t);return`${r}wc?uri=${i}`},formatUniversalUrl(e,t,n){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,n);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,n);let i=encodeURIComponent(t);return`${r}wc?uri=${i}`},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{let[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setWeb3ModalVersionInStorage(){try{"u">typeof localStorage&&localStorage.setItem(p.W3M_VERSION,"2.7.1")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;let t=null==(e=f.state.data)?void 0:e.Wallet;if(!t)throw Error('Missing "Wallet" view data');return t},getSwitchNetworkRouterData(){var e;let t=null==(e=f.state.data)?void 0:e.SwitchNetwork;if(!t)throw Error('Missing "SwitchNetwork" view data');return t},isPreferInjectedFlag:()=>"u">typeof location&&new URLSearchParams(location.search).has(p.W3M_PREFER_INJECTED_URL_FLAG)},m={ethereumClient:void 0,setEthereumClient(e){r=e},client(){if(r)return r;throw Error("ClientCtrl has no client set")}},g="u">typeof location&&(location.hostname.includes("localhost")||location.protocol.includes("https")),y=l({enabled:g,userSessionId:"",events:[],connectedWalletId:void 0}),b={state:y,subscribe:e=>d(y.events,()=>e(function(e,t){let n=s.get(e);n||console.warn("Please use proxy object");let[r,i,a]=n;return a(r,i(),void 0)}(y.events[y.events.length-1]))),initialize(){y.enabled&&"u">typeof(null==crypto?void 0:crypto.randomUUID)&&(y.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){y.connectedWalletId=e},click(e){if(y.enabled){let t={type:"CLICK",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}},track(e){if(y.enabled){let t={type:"TRACK",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}},view(e){if(y.enabled){let t={type:"VIEW",name:e.name,userSessionId:y.userSessionId,timestamp:Date.now(),data:e};y.events.push(t)}}},v=l({selectedChain:void 0,chains:void 0,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,isPreferInjected:!1}),w={state:v,subscribe:e=>d(v,()=>e(v)),setChains(e){v.chains=e},getSelectedChain(){let e=m.client().getNetwork().chain;return e&&(v.selectedChain=e),v.selectedChain},setSelectedChain(e){v.selectedChain=e},setIsCustomDesktop(e){v.isCustomDesktop=e},setIsCustomMobile(e){v.isCustomMobile=e},setIsDataLoaded(e){v.isDataLoaded=e},setIsUiLoaded(e){v.isUiLoaded=e},setIsPreferInjected(e){v.isPreferInjected=e}},_=l({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,tokenContracts:void 0,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),E={state:_,subscribe:e=>d(_,()=>e(_)),setConfig(e){var t,n;b.initialize(),w.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),w.setIsCustomDesktop(!!(null==(n=e.desktopWallets)?void 0:n.length)),w.setChains(m.client().chains),w.setIsPreferInjected(m.client().isInjectedProviderInstalled()&&p.isPreferInjectedFlag()),e.defaultChain&&w.setSelectedChain(e.defaultChain),p.setWeb3ModalVersionInStorage(),Object.assign(_,e)}},A={async getIdentity(e,t){let{projectId:n}=E.state,r=`eip155:${t}`,i=`https://rpc.walletconnect.com/v1/identity/${e}?chainId=${r}&projectId=${n}`;return(await fetch(i)).json()}},x=l({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),C={state:x,subscribe:e=>d(x,()=>e(x)),getAccount(){let e=m.client().getAccount();x.address=e.address,x.isConnected=e.isConnected},async fetchProfile(e,t){var n;try{x.profileLoading=!0,x.profileName=null,x.profileAvatar=null;let r=t??x.address,i=null==(n=w.state.chains)?void 0:n.find(e=>1===e.id);if(r&&i){try{let e=await A.getIdentity(r,1);x.profileName=e.name,x.profileAvatar=e.avatar}catch{let e=await m.client().fetchEnsName({address:r,chainId:1});if(x.profileName=e,e){let t=await m.client().fetchEnsAvatar({name:e,chainId:1});x.profileAvatar=t}}x.profileAvatar&&await e(x.profileAvatar)}}finally{x.profileLoading=!1}},async fetchBalance(e){try{let t;let{chain:n}=m.client().getNetwork(),{tokenContracts:r}=E.state;n&&r&&(t=r[n.id]),x.balanceLoading=!0;let i=e??x.address;if(i){let e=await m.client().fetchBalance({address:i,token:t});x.balance={amount:e.formatted,symbol:e.symbol}}}finally{x.balanceLoading=!1}},setAddress(e){x.address=e},setIsConnected(e){x.isConnected=e},resetBalance(){x.balance=void 0},resetAccount(){x.address=void 0,x.isConnected=!1,x.profileName=void 0,x.profileAvatar=void 0,x.balance=void 0}};var S=Object.defineProperty,k=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,O=(e,t,n)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))D.call(t,n)&&O(e,n,t[n]);if(k)for(var n of k(t))I.call(t,n)&&O(e,n,t[n]);return e};let P="https://explorer-api.walletconnect.com",F="js-2.7.1";async function R(e,t){let n=T({sdkType:"w3m",sdkVersion:F},t),r=new URL(e,P);return r.searchParams.append("projectId",E.state.projectId),Object.entries(n).forEach(([e,t])=>{t&&r.searchParams.append(e,String(t))}),(await fetch(r)).json()}let N={getDesktopListings:async e=>R("/w3m/v1/getDesktopListings",e),getMobileListings:async e=>R("/w3m/v1/getMobileListings",e),getInjectedListings:async e=>R("/w3m/v1/getInjectedListings",e),getAllListings:async e=>R("/w3m/v1/getAllListings",e),getWalletImageUrl:e=>`${P}/w3m/v1/getWalletImage/${e}?projectId=${E.state.projectId}&sdkType=w3m&sdkVersion=${F}`,getAssetImageUrl:e=>`${P}/w3m/v1/getAssetImage/${e}?projectId=${E.state.projectId}&sdkType=w3m&sdkVersion=${F}`};var B=Object.defineProperty,M=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,U=(e,t,n)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||(t={}))j.call(t,n)&&U(e,n,t[n]);if(M)for(var n of M(t))L.call(t,n)&&U(e,n,t[n]);return e};let q=p.isMobile(),G=l({wallets:{listings:[],total:0,page:1},injectedWallets:[],search:{listings:[],total:0,page:1},recomendedWallets:[]}),Z={state:G,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=E.state;if("NONE"===e||"ALL"===t&&!e)return G.recomendedWallets;if(p.isArray(e)){let t={recommendedIds:e.join(",")},{listings:n}=await N.getAllListings(t),r=Object.values(n);r.sort((t,n)=>{let r=e.indexOf(t.id),i=e.indexOf(n.id);return r-i}),G.recomendedWallets=r}else{let e=p.isArray(t),n={page:1,entries:p.RECOMMENDED_WALLET_AMOUNT,version:2,excludedIds:e?t.join(","):void 0},{listings:r}=q?await N.getMobileListings(n):await N.getDesktopListings(n);G.recomendedWallets=Object.values(r)}return G.recomendedWallets},async getWallets(e){let t=z({},e),{explorerRecommendedWalletIds:n,explorerExcludedWalletIds:r}=E.state,{recomendedWallets:i}=G;if("ALL"===r)return G.wallets;i.length?t.excludedIds=i.map(e=>e.id).join(","):p.isArray(n)&&(t.excludedIds=n.join(",")),p.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(","));let{page:a,search:s}=e,{listings:o,total:u}=q?await N.getMobileListings(t):await N.getDesktopListings(t),c=Object.values(o),l=s?"search":"wallets";return G[l]={listings:[...G[l].listings,...c],total:u,page:a??1},{listings:c,total:u}},async getInjectedWallets(){let{listings:e}=await N.getInjectedListings({}),t=Object.values(e);return G.injectedWallets=t,G.injectedWallets},getWalletImageUrl:e=>N.getWalletImageUrl(e),getAssetImageUrl:e=>N.getAssetImageUrl(e),resetSearch(){G.search={listings:[],total:0,page:1}}},W=l({pairingEnabled:!1,pairingUri:"",pairingError:!1}),$={state:W,subscribe:e=>d(W,()=>e(W)),setPairingUri(e){W.pairingUri=e},setPairingError(e){W.pairingError=e},setPairingEnabled(e){W.pairingEnabled=e}},H=l({open:!1}),Q={state:H,subscribe:e=>d(H,()=>e(H)),open:async e=>new Promise(t=>{let{isUiLoaded:n,isDataLoaded:r,isPreferInjected:i,selectedChain:a}=w.state,{isConnected:s}=C.state,{enableNetworkView:o}=E.state;if($.setPairingEnabled(!0),s||p.removeWalletConnectDeepLink(),null!=e&&e.route)f.reset(e.route);else if(s)f.reset("Account");else if(o)f.reset("SelectNetwork");else if(i){m.client().connectConnector("injected",a?.id).catch(e=>console.error(e)),t();return}else f.reset("ConnectWallet");let{pairingUri:u}=$.state;if(n&&r&&(u||s))H.open=!0,t();else{let e=setInterval(()=>{let n=w.state,r=$.state;n.isUiLoaded&&n.isDataLoaded&&(r.pairingUri||s)&&(clearInterval(e),H.open=!0,t())},200)}}),close(){H.open=!1}};var V=Object.defineProperty,K=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,X=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t)=>{for(var n in t||(t={}))J.call(t,n)&&X(e,n,t[n]);if(K)for(var n of K(t))Y.call(t,n)&&X(e,n,t[n]);return e};let et=l({themeMode:"u">typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),en={state:et,subscribe:e=>d(et,()=>e(et)),setThemeConfig(e){let{themeMode:t,themeVariables:n}=e;t&&(et.themeMode=t),n&&(et.themeVariables=ee({},n))}},er=l({open:!1,message:"",variant:"success"}),ei={state:er,subscribe:e=>d(er,()=>e(er)),openToast(e,t){er.open=!0,er.message=e,er.variant=t},closeToast(){er.open=!1}}},42687:function(e,t,n){"use strict";n.d(t,{Eg:function(){return g},k_:function(){return A}});var r=n(52983),i=n(9909);Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var a=Object.defineProperty,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&c(e,n,t[n]);return e};function d(e){return r.createElement("w3m-modal",l({},e))}var h=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,m=(e,t)=>{var n={};for(var r in e)f.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&h)for(var r of h(e))0>t.indexOf(r)&&p.call(e,r)&&(n[r]=e[r]);return n};let g=(0,r.memo)(function(e){var{ethereumClient:t}=e,a=m(e,["ethereumClient"]);let s=(0,r.useCallback)(async()=>{i.ThemeCtrl.setThemeConfig(a),t&&i.Id.setEthereumClient(t),i.ConfigCtrl.setConfig(a),await Promise.all([n.e(886),n.e(895)]).then(n.bind(n,58895)),i.OptionsCtrl.setIsUiLoaded(!0)},[t,a]);return(0,r.useEffect)(()=>{s()},[s]),r.createElement(d,null)});Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var y=Object.defineProperty,b=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&_(e,n,t[n]);if(b)for(var n of b(t))w.call(t,n)&&_(e,n,t[n]);return e};function A(){let[e,t]=(0,r.useState)(i.jb.state);return(0,r.useEffect)(()=>{let e=i.jb.subscribe(e=>t(E({},e)));return()=>{e()}},[]),{isOpen:e.open,open:i.jb.open,close:i.jb.close,setDefaultChain:i.OptionsCtrl.setSelectedChain}}},23034:function(e,t,n){"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,a=0,s=t.length,o=e;a<s&&"__proto__"!==(i=t[a++])&&"constructor"!==i&&"prototype"!==i;)o=o[i]=a===s?n:typeof(r=o[i])==typeof t?r:0*t[a]!=0||~(""+t[a]).indexOf(".")?{}:[]}n.d(t,{N:function(){return r}})},43112:function(e,t,n){"use strict";n.d(t,{Jh:function(){return u},ZT:function(){return i},_T:function(){return s},ev:function(){return c},mG:function(){return o},pi:function(){return a}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{u(r.next(e))}catch(e){a(e)}}function o(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(u){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function c(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},79807:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(39634);function i(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,r.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},51685:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(79807),i=n(39634);function a(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let n=(0,r.E)(t),a=0;for(let t of e)n.set(t,a),a+=t.length;return(0,i.P)(n)}},38147:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(36816),i=n(39634);function a(e,t="utf8"){let n=r.Z[t];if(!n)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?(0,i.P)(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}},42772:function(e,t,n){"use strict";n.d(t,{BB:function(){return a.B},mL:function(){return i.m},zo:function(){return r.z}});var r=n(51685),i=n(38147),a=n(17199)},17199:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var r=n(36816);function i(e,t="utf8"){let n=r.Z[t];if(!n)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"):n.encoder.encode(e).substring(1)}},39634:function(e,t,n){"use strict";function r(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}n.d(t,{P:function(){return r}})},36816:function(e,t,n){"use strict";n.d(t,{Z:function(){return eV}});var r={};n.r(r),n.d(r,{identity:function(){return P}});var i={};n.r(i),n.d(i,{base2:function(){return F}});var a={};n.r(a),n.d(a,{base8:function(){return R}});var s={};n.r(s),n.d(s,{base10:function(){return N}});var o={};n.r(o),n.d(o,{base16:function(){return B},base16upper:function(){return M}});var u={};n.r(u),n.d(u,{base32:function(){return j},base32hex:function(){return q},base32hexpad:function(){return Z},base32hexpadupper:function(){return W},base32hexupper:function(){return G},base32pad:function(){return U},base32padupper:function(){return z},base32upper:function(){return L},base32z:function(){return $}});var c={};n.r(c),n.d(c,{base36:function(){return H},base36upper:function(){return Q}});var l={};n.r(l),n.d(l,{base58btc:function(){return V},base58flickr:function(){return K}});var d={};n.r(d),n.d(d,{base64:function(){return J},base64pad:function(){return Y},base64url:function(){return X},base64urlpad:function(){return ee}});var h={};n.r(h),n.d(h,{base256emoji:function(){return ei}});var f={};n.r(f),n.d(f,{sha256:function(){return eb},sha512:function(){return ev}});var p={};n.r(p),n.d(p,{identity:function(){return ew}});var m={};n.r(m),n.d(m,{code:function(){return eE},decode:function(){return ex},encode:function(){return eA},name:function(){return e_}});var g={};n.r(g),n.d(g,{code:function(){return eD},decode:function(){return eO},encode:function(){return eI},name:function(){return ek}});var y=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var a=e.charAt(i),s=a.charCodeAt(0);if(255!==n[s])throw TypeError(a+" is ambiguous");n[s]=i}var o=e.length,u=e.charAt(0),c=Math.log(o)/Math.log(256),l=Math.log(256)/Math.log(o);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 r=0,i=0;e[t]===u;)r++,t++;for(var a=(e.length-t)*c+1>>>0,s=new Uint8Array(a);e[t];){var l=n[e.charCodeAt(t)];if(255===l)return;for(var d=0,h=a-1;(0!==l||d<i)&&-1!==h;h--,d++)l+=o*s[h]>>>0,s[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var f=a-i;f!==a&&0===s[f];)f++;for(var p=new Uint8Array(r+(a-f)),m=r;f!==a;)p[m++]=s[f++];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 n=0,r=0,i=0,a=t.length;i!==a&&0===t[i];)i++,n++;for(var s=(a-i)*l+1>>>0,c=new Uint8Array(s);i!==a;){for(var d=t[i],h=0,f=s-1;(0!==d||h<r)&&-1!==f;f--,h++)d+=256*c[f]>>>0,c[f]=d%o>>>0,d=d/o>>>0;if(0!==d)throw Error("Non-zero carry");r=h,i++}for(var p=s-r;p!==s&&0===c[p];)p++;for(var m=u.repeat(n);p<s;++p)m+=e.charAt(c[p]);return m},decodeUnsafe:d,decode:function(e){var n=d(e);if(n)return n;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let b=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0},v=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=>new TextDecoder().decode(e);class E{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class A{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}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 C(this,e)}}class x{constructor(e){this.decoders=e}or(e){return C(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let C=(e,t)=>new x({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class S{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new E(e,t,n),this.decoder=new A(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let k=({name:e,prefix:t,encode:n,decode:r})=>new S(e,t,n,r),D=({prefix:e,name:t,alphabet:n})=>{let{encode:r,decode:i}=y(n,t);return k({prefix:e,name:t,encode:r,decode:e=>v(i(e))})},I=(e,t,n,r)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let a=e.length;for(;"="===e[a-1];)--a;let s=new Uint8Array(a*n/8|0),o=0,u=0,c=0;for(let t=0;t<a;++t){let a=i[e[t]];if(void 0===a)throw SyntaxError(`Non-${r} character`);u=u<<n|a,(o+=n)>=8&&(o-=8,s[c++]=255&u>>o)}if(o>=n||255&u<<8-o)throw SyntaxError("Unexpected end of data");return s},O=(e,t,n)=>{let r="="===t[t.length-1],i=(1<<n)-1,a="",s=0,o=0;for(let r=0;r<e.length;++r)for(o=o<<8|e[r],s+=8;s>n;)s-=n,a+=t[i&o>>s];if(s&&(a+=t[i&o<<n-s]),r)for(;a.length*n&7;)a+="=";return a},T=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>k({prefix:t,name:e,encode:e=>O(e,r,n),decode:t=>I(t,r,n,e)}),P=k({prefix:"\x00",name:"identity",encode:e=>_(e),decode:e=>w(e)}),F=T({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),R=T({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),N=D({prefix:"9",name:"base10",alphabet:"0123456789"}),B=T({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),M=T({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),j=T({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),L=T({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),U=T({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),z=T({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),q=T({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),G=T({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Z=T({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),W=T({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),$=T({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),H=D({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Q=D({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),V=D({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),K=D({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),J=T({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Y=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"),en=et.reduce((e,t,n)=>(e[n]=t,e),[]),er=et.reduce((e,t,n)=>(e[t.codePointAt(0)]=n,e),[]),ei=k({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=en[t],"")},decode:function(e){let t=[];for(let n of e){let e=er[n.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${n}`);t.push(e)}return new Uint8Array(t)}});function ea(e,t,n){t=t||[];for(var r=n=n||0;e>=2147483648;)t[n++]=255&e|128,e/=128;for(;-128&e;)t[n++]=255&e|128,e>>>=7;return t[n]=0|e,ea.bytes=n-r+1,t}function es(e,t){var n,r=0,t=t||0,i=0,a=t,s=e.length;do{if(a>=s)throw es.bytes=0,RangeError("Could not decode varint");n=e[a++],r+=i<28?(127&n)<<i:(127&n)*Math.pow(2,i),i+=7}while(n>=128);return es.bytes=a-t,r}var eo={encode:ea,decode:es,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 eu=(e,t=0)=>{let n=eo.decode(e,t);return[n,eo.decode.bytes]},ec=(e,t,n=0)=>(eo.encode(e,t,n),t),el=e=>eo.encodingLength(e),ed=(e,t)=>{let n=t.byteLength,r=el(e),i=r+el(n),a=new Uint8Array(i+n);return ec(e,a,0),ec(n,a,r),a.set(t,i),new ep(e,n,t,a)},eh=e=>{let t=v(e),[n,r]=eu(t),[i,a]=eu(t.subarray(r)),s=t.subarray(r+a);if(s.byteLength!==i)throw Error("Incorrect length");return new ep(n,i,s,t)},ef=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&b(e.bytes,t.bytes);class ep{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}let em=({name:e,code:t,encode:n})=>new eg(e,t,n);class eg{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}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 ey=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),eb=em({name:"sha2-256",code:18,encode:ey("SHA-256")}),ev=em({name:"sha2-512",code:19,encode:ey("SHA-512")}),ew={code:0,name:"identity",encode:v,digest:e=>ed(0,v(e))},e_="raw",eE=85,eA=e=>v(e),ex=e=>v(e),eC=new TextEncoder,eS=new TextDecoder,ek="json",eD=512,eI=e=>eC.encode(JSON.stringify(e)),eO=e=>JSON.parse(eS.decode(e));class eT{constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eU,byteLength:eU,code:eL,version:eL,multihash:eL,bytes:eL,_baseCache:eU,asCID:eU})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eN)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eB)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eT.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=ed(e,t);return eT.createV1(this.code,n)}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&&ef(this.multihash,e.multihash)}toString(e){let{bytes:t,version:n,_baseCache:r}=this;return 0===n?eF(t,r,e||V.encoder):eR(t,r,e||j.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 ez(/^0\.0/,eq),!!(e&&(e[ej]||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:n,multihash:r,bytes:i}=e;return new eT(t,n,r,i||eM(t,n,r.bytes))}if(null==e||!0!==e[ej])return null;{let{version:t,multihash:n,code:r}=e,i=eh(n);return eT.create(t,r,i)}}static create(e,t,n){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eN)return new eT(e,t,n,n.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eN}) block encoding`);case 1:{let r=eM(e,t,n.bytes);return new eT(e,t,n,r)}default:throw Error("Invalid version")}}static createV0(e){return eT.create(0,eN,e)}static createV1(e,t){return eT.create(1,e,t)}static decode(e){let[t,n]=eT.decodeFirst(e);if(n.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eT.inspectBytes(e),n=t.size-t.multihashSize,r=v(e.subarray(n,n+t.multihashSize));if(r.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=r.subarray(t.multihashSize-t.digestSize),a=new ep(t.multihashCode,t.digestSize,i,r),s=0===t.version?eT.createV0(a):eT.createV1(t.codec,a);return[s,e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[n,r]=eu(e.subarray(t));return t+=r,n},r=n(),i=eN;if(18===r?(r=0,t=0):1===r&&(i=n()),0!==r&&1!==r)throw RangeError(`Invalid CID version ${r}`);let a=t,s=n(),o=n(),u=t+o;return{version:r,codec:i,multihashCode:s,digestSize:o,multihashSize:u-a,size:u}}static parse(e,t){let[n,r]=eP(e,t),i=eT.decode(r);return i._baseCache.set(n,e),i}}let eP=(e,t)=>{switch(e[0]){case"Q":return[V.prefix,(t||V).decode(`${V.prefix}${e}`)];case V.prefix:return[V.prefix,(t||V).decode(e)];case j.prefix:return[j.prefix,(t||j).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)]}},eF=(e,t,n)=>{let{prefix:r}=n;if(r!==V.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);let i=t.get(r);if(null!=i)return i;{let i=n.encode(e).slice(1);return t.set(r,i),i}},eR=(e,t,n)=>{let{prefix:r}=n,i=t.get(r);if(null!=i)return i;{let i=n.encode(e);return t.set(r,i),i}},eN=112,eB=18,eM=(e,t,n)=>{let r=el(e),i=r+el(t),a=new Uint8Array(i+n.byteLength);return ec(e,a,0),ec(t,a,r),a.set(n,i),a},ej=Symbol.for("@ipld/js-cid/CID"),eL={writable:!1,configurable:!1,enumerable:!0},eU={writable:!1,enumerable:!1,configurable:!1},ez=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},eq=`CID.isCID(v) is deprecated and will be removed in the next major release.
Following code pattern:

if (CID.isCID(value)) {
  doSomethingWithCID(value)
}

Is replaced with:

const cid = CID.asCID(value)
if (cid) {
  // Make sure to use cid instead of value
  doSomethingWithCID(cid)
}
`,eG={...r,...i,...a,...s,...o,...u,...c,...l,...d,...h};({...f,...p});var eZ=n(79807);function eW(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}let e$=eW("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{let t=new TextEncoder;return t.encode(e.substring(1))}),eH=eW("ascii","a",e=>{let t="a";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},e=>{e=e.substring(1);let t=(0,eZ.E)(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}),eQ={utf8:e$,"utf-8":e$,hex:eG.base16,latin1:eH,ascii:eH,binary:eH,...eG};var eV=eQ},31892:function(e,t,n){"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:function(){return r}})},37474:function(e,t,n){"use strict";n.d(t,{R:function(){return b}});var r=n(31892),i=n(17142),a=n(35831),s=n(78868),o=n(98955),u=n(41687),c=n(72938),l=n(8559),d=n(36493),h=n(61173),f=n(16736),p=n(20581),m=n(56720),g=n(49211),y=n(26625);async function b(e,t){let{account:i=e.account,batch:u=!!e.batch?.multicall,blockNumber:c,blockTag:l="latest",accessList:g,data:b,gas:w,gasPrice:_,maxFeePerGas:E,maxPriorityFeePerGas:A,nonce:x,to:C,value:S,...k}=t,D=i?(0,r.T)(i):void 0;try{(0,y.F)(t);let n=c?(0,d.eC)(c):void 0,r=n||l,i=e.chain?.formatters?.transactionRequest?.format||m.tG,a=i({...(0,p.K)(k,{format:i}),from:D?.address,accessList:g,data:b,gas:w,gasPrice:_,maxFeePerGas:E,maxPriorityFeePerGas:A,nonce:x,to:C,value:S});if(u&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:a}))try{return await v(e,{...a,blockNumber:c,blockTag:l})}catch(e){if(!(e instanceof s.pZ)&&!(e instanceof s.mm))throw e}let o=await e.request({method:"eth_call",params:r?[a,r]:[a]});if("0x"===o)return{data:void 0};return{data:o}}catch(u){let r=function(e){if(!(e instanceof a.G))return;let t=e.walk();return"object"==typeof t.data?t.data.data:t.data}(u),{offchainLookup:i,offchainLookupSignature:s}=await n.e(368).then(n.bind(n,33368));if(r?.slice(0,10)===s&&C)return{data:await i(e,{data:r,to:C})};throw function(e,{docsPath:t,...n}){let r=(0,f.k)(e,n);return r instanceof h.cj&&(r=e),new o.cg(r,{docsPath:t,...n})}(u,{...t,account:D,chain:e.chain})}}async function v(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:h="latest",data:f,multicallAddress:p,to:m}=t,y=p;if(!y){if(!e.chain)throw new s.pZ;y=(0,l.LI)({blockNumber:a,chain:e.chain,contract:"multicall3"})}let b=a?(0,d.eC)(a):void 0,v=b||h,{schedule:w}=(0,g.S)({id:`${e.uid}.${v}`,wait:r,shouldSplitBatch(e){let t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*n},fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,c.R)({abi:i.F8,args:[n],functionName:"aggregate3"}),a=await e.request({method:"eth_call",params:[{data:r,to:y},v]});return(0,u.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:_,success:E}]=await w({data:f,to:m});if(!E)throw new o.VQ({data:_});return"0x"===_?{data:void 0}:{data:_}}},83045:function(e,t,n){"use strict";n.d(t,{C:function(){return u},X:function(){return o}});var r=n(37128),i=n(42987),a=n(9106),s=n(38213);async function o(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:o=e.chain,request:u,type:c="eip1559"}=t||{},l=await (async()=>"function"==typeof o?.fees?.baseFeeMultiplier?o.fees.baseFeeMultiplier({block:n,client:e,request:u}):o?.fees?.baseFeeMultiplier??1.2)();if(l<1)throw new r.Fz;let d=l.toString().split(".")[1]?.length??0,h=10**d,f=e=>e*BigInt(Math.ceil(l*h))/BigInt(h),p=n||await (0,a.Q)(e);if("function"==typeof o?.fees?.estimateFeesPerGas)return o.fees.estimateFeesPerGas({block:n,client:e,multiply:f,request:u,type:c});if("eip1559"===c){if("bigint"!=typeof p.baseFeePerGas)throw new r.e5;let t=u?.maxPriorityFeePerGas?u.maxPriorityFeePerGas:await (0,i.h)(e,{block:p,chain:o,request:u}),n=f(p.baseFeePerGas),a=u?.maxFeePerGas??n+t;return{maxFeePerGas:a,maxPriorityFeePerGas:t}}let m=u?.gasPrice??f(await (0,s.o)(e));return{gasPrice:m}}},29248:function(e,t,n){"use strict";n.d(t,{Q:function(){return y}});var r=n(31892),i=n(29149),a=n(36493),s=n(66579),o=n(54297),u=n(35831),c=n(1740);class l extends u.G{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:h,to:f,value:p}){let m=(0,c.xr)({from:t?.address,to:f,value:void 0!==p&&`${(0,s.d)(p)} ${r?.nativeCurrency.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==u&&`${(0,o.o)(u)} gwei`,maxFeePerGas:void 0!==l&&`${(0,o.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,o.o)(d)} gwei`,nonce:h});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var d=n(61173),h=n(16736),f=n(20581),p=n(56720),m=n(26625),g=n(47025);async function y(e,t){let n=t.account??e.account;if(!n)throw new i.o({docsPath:"/docs/actions/public/estimateGas"});let s=(0,r.T)(n);try{let{accessList:n,blockNumber:r,blockTag:i,data:o,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:h,to:y,value:b,...v}="local"===s.type?await (0,g.Z)(e,t):t,w=r?(0,a.eC)(r):void 0,_=w||i;(0,m.F)(t);let E=e.chain?.formatters?.transactionRequest?.format||p.tG,A=E({...(0,f.K)(v,{format:E}),from:s.address,accessList:n,data:o,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:h,to:y,value:b}),x=await e.request({method:"eth_estimateGas",params:_?[A,_]:[A]});return BigInt(x)}catch(n){throw function(e,{docsPath:t,...n}){let r=(0,h.k)(e,n);return r instanceof d.cj&&(r=e),new l(r,{docsPath:t,...n})}(n,{...t,account:s,chain:e.chain})}}},42987:function(e,t,n){"use strict";n.d(t,{_:function(){return o},h:function(){return u}});var r=n(37128),i=n(59701),a=n(9106),s=n(38213);async function o(e,t){return u(e,t)}async function u(e,t){let{block:n,chain:o=e.chain,request:u}=t||{};if("function"==typeof o?.fees?.defaultPriorityFee){let t=n||await (0,a.Q)(e);return o.fees.defaultPriorityFee({block:t,client:e,request:u})}if(o?.fees?.defaultPriorityFee)return o?.fees?.defaultPriorityFee;try{let t=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(t)}catch{let[t,i]=await Promise.all([n?Promise.resolve(n):(0,a.Q)(e),(0,s.o)(e)]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let o=i-t.baseFeePerGas;if(o<0n)return 0n;return o}}},9106:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(35831);class i extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}var a=n(36493),s=n(53936);async function o(e,{blockHash:t,blockNumber:n,blockTag:r,includeTransactions:o}={}){let u=o??!1,c=void 0!==n?(0,a.eC)(n):void 0,l=null;if(!(l=t?await e.request({method:"eth_getBlockByHash",params:[t,u]}):await e.request({method:"eth_getBlockByNumber",params:[c||(r??"latest"),u]})))throw new i({blockHash:t,blockNumber:n});let d=e.chain?.formatters?.block?.format||s.Z;return d(l)}},57816:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(59701);async function i(e){let t=await e.request({method:"eth_chainId"});return(0,r.ly)(t)}},38213:function(e,t,n){"use strict";async function r(e){let t=await e.request({method:"eth_gasPrice"});return BigInt(t)}n.d(t,{o:function(){return r}})},53573:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(59701),i=n(36493);async function a(e,{address:t,blockTag:n="latest",blockNumber:a}){let s=await e.request({method:"eth_getTransactionCount",params:[t,a?(0,i.eC)(a):n]});return(0,r.ly)(s)}},47025:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(31892),i=n(83045),a=n(29248),s=n(9106),o=n(53573),u=n(29149),c=n(37128),l=n(26625),d=n(910);async function h(e,t){let{account:n=e.account,chain:h,gas:f,nonce:p,type:m}=t;if(!n)throw new u.o;let g=(0,r.T)(n),y=await (0,s.Q)(e,{blockTag:"latest"}),b={...t,from:g.address};if(void 0===p&&(b.nonce=await (0,o.K)(e,{address:g.address,blockTag:"pending"})),void 0===m)try{b.type=(0,d.l)(b)}catch{b.type="bigint"==typeof y.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===b.type){let{maxFeePerGas:n,maxPriorityFeePerGas:r}=await (0,i.C)(e,{block:y,chain:h,request:b});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<r)throw new c.ld({maxPriorityFeePerGas:r});b.maxPriorityFeePerGas=r,b.maxFeePerGas=n}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new c.e5;let{gasPrice:n}=await (0,i.C)(e,{block:y,chain:h,request:b,type:"legacy"});b.gasPrice=n}return void 0===f&&(b.gas=await (0,a.Q)(e,{...b,account:{address:g.address,type:"json-rpc"}})),(0,l.F)(b),b}},77552:function(e,t,n){"use strict";async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}n.d(t,{p:function(){return r}})},38544:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(8559);let i=(0,r.ax)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0})},71442:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r=n(8559);let i=(0,r.ax)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},23450:function(e,t,n){"use strict";let r;n.d(t,{e:function(){return s}});var i=n(31892);let a=256;function s(e){let{batch:t,cacheTime:n=e.pollingInterval??4e3,key:s="base",name:o="Base Client",pollingInterval:u=4e3,type:c="base"}=e,l=e.chain,d=e.account?(0,i.T)(e.account):void 0,{config:h,request:f,value:p}=e.transport({chain:l,pollingInterval:u}),m={...h,...p},g={account:d,batch:t,cacheTime:n,chain:l,key:s,name:o,pollingInterval:u,request:f,transport:m,type:c,uid:function(e=11){if(!r||a+e>512){r="",a=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(a,a+++e)}()};return Object.assign(g,{extend:function e(t){return n=>{let r=n(t);for(let e in g)delete r[e];let i={...t,...r};return Object.assign(i,{extend:e(i)})}}(g)})}},35219:function(e,t,n){"use strict";n.d(t,{K:function(){return B}});var r=n(23450),i=n(57816),a=n(36493);async function s(e,{chain:t}){let{id:n,name:r,nativeCurrency:i,rpcUrls:s,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,a.eC)(n),chainName:r,nativeCurrency:i,rpcUrls:s.default.http,blockExplorerUrls:o?Object.values(o).map(({url:e})=>e):void 0}]})}var o=n(63693),u=n(31892),c=n(29149),l=n(8559),d=n(61173),h=n(1740),f=n(16736),p=n(20581),m=n(56720),g=n(26625),y=n(47025),b=n(77552);async function v(e,t){let{account:n=e.account,chain:r=e.chain,accessList:a,data:s,gas:o,gasPrice:v,maxFeePerGas:w,maxPriorityFeePerGas:_,nonce:E,to:A,value:x,...C}=t;if(!n)throw new c.o({docsPath:"/docs/actions/wallet/sendTransaction"});let S=(0,u.T)(n);try{let n;if((0,g.F)(t),null!==r&&(n=await (0,i.L)(e),(0,l.qg)({currentChainId:n,chain:r})),"local"===S.type){let t=await (0,y.Z)(e,{account:S,accessList:a,chain:r,data:s,gas:o,gasPrice:v,maxFeePerGas:w,maxPriorityFeePerGas:_,nonce:E,to:A,value:x,...C});n||(n=await (0,i.L)(e));let u=r?.serializers?.transaction,c=await S.signTransaction({...t,chainId:n},{serializer:u});return await (0,b.p)(e,{serializedTransaction:c})}let u=r?.formatters?.transactionRequest?.format||m.tG,c=u({...(0,p.K)(C,{format:u}),accessList:a,data:s,from:S.address,gas:o,gasPrice:v,maxFeePerGas:w,maxPriorityFeePerGas:_,nonce:E,to:A,value:x});return await e.request({method:"eth_sendTransaction",params:[c]})}catch(e){throw function(e,{docsPath:t,...n}){let r=(0,f.k)(e,n);return r instanceof d.cj&&(r=e),new h.mk(r,{docsPath:t,...n})}(e,{...t,account:S,chain:t.chain||void 0})}}var w=n(61918);async function _(e){let t=await e.request({method:"eth_accounts"});return t.map(e=>(0,w.x)(e))}async function E(e){let t=await e.request({method:"wallet_getPermissions"});return t}async function A(e){let t=await e.request({method:"eth_requestAccounts"});return t.map(e=>(0,w.K)(e))}async function x(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}async function C(e,{account:t=e.account,message:n}){if(!t)throw new c.o({docsPath:"/docs/actions/wallet/signMessage"});let r=(0,u.T)(t);if("local"===r.type)return r.signMessage({message:n});let i="string"==typeof n?(0,a.$G)(n):n.raw instanceof Uint8Array?(0,a.NC)(n.raw):n.raw;return e.request({method:"personal_sign",params:[i,r.address]})}async function S(e,t){let{account:n=e.account,chain:r=e.chain,...s}=t;if(!n)throw new c.o({docsPath:"/docs/actions/wallet/signTransaction"});let o=(0,u.T)(n);(0,g.F)({account:o,...t});let d=await (0,i.L)(e);null!==r&&(0,l.qg)({currentChainId:d,chain:r});let h=r?.formatters||e.chain?.formatters,f=h?.transactionRequest?.format||m.tG;return"local"===o.type?o.signTransaction({chainId:d,...s},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...f(s),chainId:(0,a.eC)(d),from:o.address}]})}var k=n(99958),D=n(49197),I=n(49304);async function O(e,{account:t=e.account,domain:n,message:r,primaryType:i,types:a}){if(!t)throw new c.o({docsPath:"/docs/actions/wallet/signTypedData"});let s=(0,u.T)(t),o={EIP712Domain:(0,I.cj)({domain:n}),...a};if((0,I.iC)({domain:n,message:r,primaryType:i,types:o}),"local"===s.type)return s.signTypedData({domain:n,primaryType:i,types:o,message:r});let l=(0,D.P)({domain:n??{},primaryType:i,types:o,message:r},(e,t)=>(0,k.v)(t)?t.toLowerCase():t);return e.request({method:"eth_signTypedData_v4",params:[s.address,l]})}async function T(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.eC)(t)}]})}async function P(e,t){let n=await e.request({method:"wallet_watchAsset",params:t});return n}var F=n(72938);async function R(e,{abi:t,address:n,args:r,dataSuffix:i,functionName:a,...s}){let o=(0,F.R)({abi:t,args:r,functionName:a}),u=await v(e,{data:`${o}${i?i.replace("0x",""):""}`,to:n,...s});return u}function N(e){return{addChain:t=>s(e,t),deployContract:t=>(function(e,{abi:t,args:n,bytecode:r,...i}){let a=(0,o.w)({abi:t,args:n,bytecode:r});return v(e,{...i,data:a})})(e,t),getAddresses:()=>_(e),getChainId:()=>(0,i.L)(e),getPermissions:()=>E(e),prepareTransactionRequest:t=>(0,y.Z)(e,t),requestAddresses:()=>A(e),requestPermissions:t=>x(e,t),sendRawTransaction:t=>(0,b.p)(e,t),sendTransaction:t=>v(e,t),signMessage:t=>C(e,t),signTransaction:t=>S(e,t),signTypedData:t=>O(e,t),switchChain:t=>T(e,t),watchAsset:t=>P(e,t),writeContract:t=>R(e,t)}}function B(e){let{key:t="wallet",name:n="Wallet Client",transport:i}=e,a=(0,r.e)({...e,key:t,name:n,transport:e=>i({...e,retryCount:0}),type:"walletClient"});return a.extend(N)}},23967:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(10115);function i({key:e,name:t,request:n,retryCount:i=3,retryDelay:a=150,timeout:s,type:o},u){return{config:{key:e,name:t,request:n,retryCount:i,retryDelay:a,timeout:s,type:o},request:(0,r.n)(n,{retryCount:i,retryDelay:a}),value:u}}},77490:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(23967);function i(e,t={}){let{key:n="custom",name:i="Custom Provider",retryDelay:a}=t;return({retryCount:s})=>(0,r.q)({key:n,name:i,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:a,type:"custom"})}},17142:function(e,t,n){"use strict";n.d(t,{$o:function(){return c},F8:function(){return r},X$:function(){return u},du:function(){return s},k3:function(){return a},nZ:function(){return o}});let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],a=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],s=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],o=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],u=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],c=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},8877:function(e,t,n){"use strict";n.d(t,{$:function(){return r},Up:function(){return i},hZ:function(){return a}});let r={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},a={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},79527:function(e,t,n){"use strict";n.d(t,{Bd:function(){return a},Zn:function(){return i},ez:function(){return r}});let r={gwei:9,wei:18},i={ether:-9,wei:9},a={ether:-18,gwei:-9}},14437:function(e,t,n){"use strict";n.d(t,{CI:function(){return A},FM:function(){return p},Gy:function(){return _},KY:function(){return v},M4:function(){return d},MX:function(){return b},SM:function(){return w},cO:function(){return o},dh:function(){return E},fM:function(){return s},fs:function(){return h},gr:function(){return l},hn:function(){return x},lC:function(){return m},mv:function(){return g},wM:function(){return C},wb:function(){return c},xB:function(){return u},xL:function(){return y},yP:function(){return f}});var r=n(22388),i=n(38857),a=n(35831);class s extends a.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class o extends a.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class u extends a.G{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.h)(t,{includeName:!0})})`,`Data:   ${e} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class c extends a.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class l extends a.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}.
Expected length: ${e}
Given length: ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class d extends a.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class h extends a.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
Expected length (params): ${e}
Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class f extends a.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
Make sure you are using the correct ABI and that the error exists on it.
You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends a.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class m extends a.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
Make sure you are using the correct ABI and that the event exists on it.
You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends a.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class y extends a.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class b extends a.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
Cannot decode function result without knowing what the parameter types are.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class v extends a.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class w extends a.G{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.h)(n,{includeName:!0})})`,`Data:   ${t} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=i}}class _ extends a.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.t)(e,{includeName:!0})}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class E extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class A extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
Please provide a valid ABI type.`,{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class x extends a.G{constructor(e){super(`Value "${e}" is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class C extends a.G{constructor(e){super(`"${e}" is not a valid definition type.
Valid types: "function", "event", "error"`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},29149:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(35831);class i extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient.",{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},13200:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(35831);class i extends r.G{constructor({address:e}){super(`Address "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},35831:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(40181);class i extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,r.bo)()});let n=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://viem.sh${a}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,n):n?null:t}(this,e)}}},78868:function(e,t,n){"use strict";n.d(t,{Bk:function(){return s},Yl:function(){return a},hJ:function(){return u},mm:function(){return i},pZ:function(){return o}});var r=n(35831);class i extends r.G{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain "${t.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${n.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class a extends r.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class s extends r.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class o extends r.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class u extends r.G{constructor({chainId:e}){super(`Chain ID "${e}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},98955:function(e,t,n){"use strict";n.d(t,{cg:function(){return g},uq:function(){return y},Lu:function(){return b},Dk:function(){return v},VQ:function(){return w}});var r=n(31892),i=n(8877),a=n(44588),s=n(22388),o=n(49197);function u({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,o.P)(t[n]):t[n]}`).join(", ")})`}var c=n(74967),l=n(66579),d=n(54297),h=n(14437),f=n(35831),p=n(1740),m=n(40181);class g extends f.G{constructor(e,{account:t,docsPath:n,chain:i,data:a,gas:s,gasPrice:o,maxFeePerGas:u,maxPriorityFeePerGas:c,nonce:h,to:f,value:m}){let g=t?(0,r.T)(t):void 0,y=(0,p.xr)({from:g?.address,to:f,value:void 0!==m&&`${(0,l.d)(m)} ${i?.nativeCurrency.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==o&&`${(0,d.o)(o)} gwei`,maxFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,nonce:h});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class y extends f.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:a,sender:o}){let l=(0,c.m)({abi:t,args:n,name:a}),d=l?u({abiItem:l,args:n,includeFunctionName:!1,includeName:!1}):void 0,h=l?(0,s.t)(l,{includeName:!0}):void 0,f=(0,p.xr)({address:r&&(0,m.CR)(r),function:h,args:d&&"()"!==d&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",f].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=a,this.sender=o}}class b extends f.G{constructor({abi:e,data:t,functionName:n,message:r}){let o,c,l,d,f;if(t&&"0x"!==t)try{f=(0,a.p)({abi:e,data:t});let{abiItem:n,errorName:r,args:o}=f;if("Error"===r)l=o[0];else if("Panic"===r){let[e]=o;l=i.$[e]}else{let e=n?(0,s.t)(n,{includeName:!0}):void 0,t=n&&o?u({abiItem:n,args:o,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){o=e}else r&&(l=r);o instanceof h.yP&&(c=[`Unable to decode signature "${d=o.signature}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(l&&"execution reverted"!==l||d?[`The contract function "${n}" reverted with the following ${d?"signature":"reason"}:`,l||d].join("\n"):`The contract function "${n}" reverted.`,{cause:o,metaMessages:c}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=f,this.reason=l,this.signature=d}}class v extends f.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 f.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}}},28998:function(e,t,n){"use strict";n.d(t,{$:function(){return a},m:function(){return i}});var r=n(35831);class i extends r.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class a extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},74888:function(e,t,n){"use strict";n.d(t,{Cd:function(){return a},J5:function(){return i},M6:function(){return s}});var r=n(35831);class i extends r.G{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class a extends r.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class s extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},37128:function(e,t,n){"use strict";n.d(t,{Fz:function(){return a},e5:function(){return s},ld:function(){return o}});var r=n(54297),i=n(35831);class a extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class s extends i.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class o extends i.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.o)(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}},61173:function(e,t,n){"use strict";n.d(t,{C_:function(){return d},G$:function(){return o},Hh:function(){return s},M_:function(){return a},WF:function(){return h},ZI:function(){return u},cj:function(){return g},cs:function(){return m},dR:function(){return f},pZ:function(){return p},se:function(){return l},vU:function(){return c}});var r=n(54297),i=n(35831);class a extends i.G{constructor({cause:e,message:t}={}){let n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},83270:function(e,t,n){"use strict";n.d(t,{Gg:function(){return s},W5:function(){return c},bs:function(){return u},c9:function(){return o}});var r=n(49197),i=n(35831),a=n(40181);class s extends i.G{constructor({body:e,details:t,headers:n,status:i,url:s}){super("HTTP request failed.",{details:t,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,a.Gr)(s)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=n,this.status=i,this.url=s}}class o extends i.G{constructor({body:e,details:t,url:n}){super("WebSocket request failed.",{details:t,metaMessages:[`URL: ${(0,a.Gr)(n)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class u extends i.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,a.Gr)(n)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class c extends i.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.Gr)(t)}`,`Request body: ${(0,r.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},79895:function(e,t,n){"use strict";n.d(t,{B:function(){return u},GD:function(){return b},I0:function(){return A},KB:function(){return m},LX:function(){return c},Og:function(){return f},PE:function(){return w},Pv:function(){return y},Ts:function(){return _},XS:function(){return d},ab:function(){return v},gS:function(){return g},ir:function(){return C},nY:function(){return l},pT:function(){return p},s7:function(){return o},u5:function(){return E},x3:function(){return x},yR:function(){return h}});var r=n(35831),i=n(83270);class a extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,shortMessage:a}){super(a,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof i.bs?e.code:t??-1}}class s extends a{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class o extends a{constructor(e){super(e,{code:o.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends a{constructor(e){super(e,{code:u.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends a{constructor(e){super(e,{code:c.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends a{constructor(e){super(e,{code:l.code,shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends a{constructor(e){super(e,{code:d.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class h extends a{constructor(e){super(e,{code:h.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(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class f extends a{constructor(e){super(e,{code:f.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends a{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends a{constructor(e){super(e,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends a{constructor(e){super(e,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends a{constructor(e){super(e,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class b extends a{constructor(e){super(e,{code:b.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends s{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends s{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class _ extends s{constructor(e){super(e,{code:_.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class E extends s{constructor(e){super(e,{code:E.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class A extends s{constructor(e){super(e,{code:A.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(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class x extends s{constructor(e){super(e,{code:x.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class C extends a{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},1740:function(e,t,n){"use strict";n.d(t,{Bh:function(){return h},JC:function(){return l},Yb:function(){return f},j3:function(){return c},mc:function(){return p},mk:function(){return d},vl:function(){return u},xY:function(){return o},xr:function(){return s}});var r=n(66579),i=n(54297),a=n(35831);function s(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(n+1)}  ${t}`).join("\n")}class o extends a.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class u extends a.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class c extends a.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",s(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class l extends a.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class d extends a.G{constructor(e,{account:t,docsPath:n,chain:a,data:o,gas:u,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:h,to:f,value:p}){let m=s({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:f,value:void 0!==p&&`${(0,r.d)(p)} ${a?.nativeCurrency.symbol||"ETH"}`,data:o,gas:u,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==l&&`${(0,i.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:h});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class h extends a.G{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:i}){let a="Transaction";n&&void 0!==i&&(a=`Transaction at block time "${n}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),r&&(a=`Transaction with hash "${r}"`),super(`${a} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class f extends a.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class p extends a.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},40181:function(e,t,n){"use strict";n.d(t,{CR:function(){return r},Gr:function(){return i},bo:function(){return a}});let r=e=>e,i=e=>e,a=()=>"viem@1.12.2"},61781:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(14437),i=n(61918),a=n(38857),s=n(53544),o=n(23540),u=n(59701),c=n(90368);function l(e,t){if("0x"===t&&e.length>0)throw new r.wb;if((0,a.d)(t)&&32>(0,a.d)(t))throw new r.xB({data:t,params:e,size:(0,a.d)(t)});return function({data:e,params:t}){let n=[],l=0;for(let h=0;h<t.length;h++){if(l>=(0,a.d)(e))throw new r.xB({data:e,params:t,size:(0,a.d)(e)});let f=t[h],{consumed:p,value:m}=function e({data:t,param:n,position:a}){let l=(0,c.S)(n.type);if(l){let[r,i]=l;return function(t,{param:n,length:r,position:i}){if(!r){let r=(0,u.ly)((0,s.tP)(t,i,i+32,{strict:!0})),a=(0,u.ly)((0,s.tP)(t,r,r+32,{strict:!0})),o=0,c=[];for(let i=0;i<a;++i){let i=e({data:(0,s.tP)(t,r+32),param:n,position:o});o+=i.consumed,c.push(i.value)}return{value:c,consumed:32}}if(d(n)){let a=(0,c.S)(n.type),o=!a?.[0],l=0,d=[];for(let a=0;a<r;++a){let r=(0,u.ly)((0,s.tP)(t,i,i+32,{strict:!0})),c=e({data:(0,s.tP)(t,r),param:n,position:o?l:32*a});l+=c.consumed,d.push(c.value)}return{value:d,consumed:32}}let a=0,o=[];for(let s=0;s<r;++s){let r=e({data:t,param:n,position:i+a});a+=r.consumed,o.push(r.value)}return{value:o,consumed:a}}(t,{length:r,param:{...n,type:i},position:a})}if("tuple"===n.type)return function(t,{param:n,position:r}){let i=0===n.components.length||n.components.some(({name:e})=>!e),a=i?[]:{},o=0;if(d(n)){let c=(0,u.ly)((0,s.tP)(t,r,r+32,{strict:!0}));for(let r=0;r<n.components.length;++r){let u=n.components[r],l=e({data:(0,s.tP)(t,c),param:u,position:o});o+=l.consumed,a[i?r:u?.name]=l.value}return{consumed:32,value:a}}for(let s=0;s<n.components.length;++s){let u=n.components[s],c=e({data:t,param:u,position:r+o});o+=c.consumed,a[i?s:u?.name]=c.value}return{consumed:o,value:a}}(t,{param:n,position:a});if("string"===n.type)return function(e,{position:t}){let n=(0,u.ly)((0,s.tP)(e,t,t+32,{strict:!0})),r=(0,u.ly)((0,s.tP)(e,n,n+32,{strict:!0}));if(0===r)return{consumed:32,value:""};let i=(0,u.rR)((0,o.f)((0,s.tP)(e,n+32,n+32+r,{strict:!0})));return{consumed:32,value:i}}(t,{position:a});if(n.type.startsWith("bytes"))return function(e,{param:t,position:n}){let[r,i]=t.type.split("bytes");if(!i){let t=(0,u.ly)((0,s.tP)(e,n,n+32,{strict:!0})),r=(0,u.ly)((0,s.tP)(e,t,t+32,{strict:!0}));if(0===r)return{consumed:32,value:"0x"};let i=(0,s.tP)(e,t+32,t+32+r,{strict:!0});return{consumed:32,value:i}}let a=(0,s.tP)(e,n,n+parseInt(i),{strict:!0});return{consumed:32,value:a}}(t,{param:n,position:a});let h=(0,s.tP)(t,a,a+32,{strict:!0});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,{param:t}){let n=t.type.startsWith("int"),r=parseInt(t.type.split("int")[1]||"256");return{consumed:32,value:r>48?(0,u.y_)(e,{signed:n}):(0,u.ly)(e,{signed:n})}}(h,{param:n});if("address"===n.type)return{consumed:32,value:(0,i.x)((0,s.tP)(h,-20))};if("bool"===n.type)return{consumed:32,value:(0,u.XA)(h)};throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}({data:e,param:f,position:l});n.push(m),l+=p}return n}({data:t,params:e})}function d(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(d);let n=(0,c.S)(e.type);return!!(n&&d({...e,type:n[1]}))}},44588:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(8877),i=n(14437),a=n(53544),s=n(32755),o=n(61781),u=n(22388);function c({abi:e,data:t}){let n=(0,a.tP)(t,0,4);if("0x"===n)throw new i.wb;let c=[...e||[],r.Up,r.hZ],l=c.find(e=>"error"===e.type&&n===(0,s.o)((0,u.t)(e)));if(!l)throw new i.yP(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,o.r)(l.inputs,(0,a.tP)(t,4)):void 0,errorName:l.name}}},41687:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(14437),i=n(61781),a=n(74967);let s="/docs/contract/decodeFunctionResult";function o({abi:e,args:t,functionName:n,data:o}){let u=e[0];if(n&&!(u=(0,a.m)({abi:e,args:t,name:n})))throw new r.xL(n,{docsPath:s});if("function"!==u.type)throw new r.xL(void 0,{docsPath:s});if(!u.outputs)throw new r.MX(u.name,{docsPath:s});let c=(0,i.r)(u.outputs,o);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},90368:function(e,t,n){"use strict";n.d(t,{E:function(){return d},S:function(){return f}});var r=n(14437),i=n(13200),a=n(56803),s=n(56232),o=n(61882),u=n(38857),c=n(53544),l=n(36493);function d(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=function({params:e,values:t}){let n=[];for(let d=0;d<e.length;d++)n.push(function e({param:t,value:n}){let d=f(t.type);if(d){let[i,a]=d;return function(t,{length:n,param:i}){let a=null===n;if(!Array.isArray(t))throw new r.hn(t);if(!a&&t.length!==n)throw new r.gr({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let o=!1,u=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(o=!0),u.push(r)}if(a||o){let e=h(u);if(a){let t=(0,l.eC)(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?(0,s.zo)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.zo)(u.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let a=0;a<n.components.length;a++){let s=n.components[a],o=Array.isArray(t)?a:s.name,u=e({param:s,value:t[o]});i.push(u),u.dynamic&&(r=!0)}return{dynamic:r,encoded:r?h(i):(0,s.zo)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,a.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,o.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return{dynamic:!1,encoded:(0,o.gc)((0,l.C4)(n))};if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int");return function(e,{signed:t}){return{dynamic:!1,encoded:(0,l.eC)(e,{size:32,signed:t})}}(n,{signed:e})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),i=(0,u.d)(e);if(!n){let t=e;return i%32!=0&&(t=(0,o.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.zo)([(0,o.gc)((0,l.eC)(i,{size:32})),t])}}if(i!==parseInt(n))throw new r.M4({expectedSize:parseInt(n),value:e});return{dynamic:!1,encoded:(0,o.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,l.$G)(e),n=Math.ceil((0,u.d)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,o.gc)((0,c.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.zo)([(0,o.gc)((0,l.eC)((0,u.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[d],value:t[d]}));return n}({params:e,values:t}),d=h(n);return 0===d.length?"0x":d}function h(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,u.d)(i)}let n=[],r=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:s,encoded:o}=e[a];s?(n.push((0,l.eC)(t+i,{size:32})),r.push(o),i+=(0,u.d)(o)):n.push(o)}return(0,s.zo)([...n,...r])}function f(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},63693:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(14437),i=n(56232),a=n(90368);let s="/docs/contract/encodeDeployData";function o({abi:e,args:t,bytecode:n}){if(!t||0===t.length)return n;let o=e.find(e=>"type"in e&&"constructor"===e.type);if(!o)throw new r.fM({docsPath:s});if(!("inputs"in o)||!o.inputs||0===o.inputs.length)throw new r.cO({docsPath:s});let u=(0,a.E)(o.inputs,t);return(0,i.SM)([n,u])}},72938:function(e,t,n){"use strict";n.d(t,{R:function(){return c}});var r=n(14437),i=n(56232),a=n(32755),s=n(90368),o=n(22388),u=n(74967);function c({abi:e,args:t,functionName:n}){let c=e[0];if(n&&!(c=(0,u.m)({abi:e,args:t,name:n})))throw new r.xL(n,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==c.type)throw new r.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});let l=(0,o.t)(c),d=(0,a.o)(l),h="inputs"in c&&c.inputs?(0,s.E)(c.inputs,t??[]):void 0;return(0,i.SM)([d,h??"0x"])}},22388:function(e,t,n){"use strict";n.d(t,{h:function(){return a},t:function(){return i}});var r=n(14437);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.wM(e.type);return`${e.name}(${a(e.inputs,{includeName:t})})`}function a(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${a(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},74967:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(99958),i=n(53004),a=n(32755),s=n(56803);function o({abi:e,args:t=[],name:n}){let o=(0,r.v)(n,{strict:!1}),u=e.filter(e=>o?"function"===e.type?(0,a.o)(e)===n:"event"===e.type&&(0,i.e)(e)===n:"name"in e&&e.name===n);if(0!==u.length){if(1===u.length)return u[0];for(let e of u){if(!("inputs"in e))continue;if(!t||0===t.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs||0===e.inputs.length||e.inputs.length!==t.length)continue;let n=t.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return(0,s.U)(t);case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)});if(n)return e}return u[0]}}},61918:function(e,t,n){"use strict";n.d(t,{K:function(){return u},x:function(){return o}});var r=n(13200),i=n(17951),a=n(86607),s=n(56803);function o(e,t){let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,a.w)((0,i.qX)(n),"bytes"),s=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&r[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());return`0x${s.join("")}`}function u(e,t){if(!(0,s.U)(e))throw new r.b({address:e});return o(e,t)}},56803:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});let r=/^0x[a-fA-F0-9]{40}$/;function i(e){return r.test(e)}},10115:function(e,t,n){"use strict";n.d(t,{n:function(){return u},y:function(){return o}});var r=n(35831),i=n(83270),a=n(79895),s=n(35146);let o=e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:e instanceof i.Gg&&!!e.status&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status;function u(e,{retryDelay:t=150,retryCount:n=3}={}){return async u=>(0,s.J)(async()=>{try{return await e(u)}catch(e){switch(e.code){case a.s7.code:throw new a.s7(e);case a.B.code:throw new a.B(e);case a.LX.code:throw new a.LX(e);case a.nY.code:throw new a.nY(e);case a.XS.code:throw new a.XS(e);case a.yR.code:throw new a.yR(e);case a.Og.code:throw new a.Og(e);case a.pT.code:throw new a.pT(e);case a.KB.code:throw new a.KB(e);case a.gS.code:throw new a.gS(e);case a.Pv.code:throw new a.Pv(e);case a.GD.code:throw new a.GD(e);case a.ab.code:throw new a.ab(e);case a.PE.code:throw new a.PE(e);case a.Ts.code:throw new a.Ts(e);case a.u5.code:throw new a.u5(e);case a.I0.code:throw new a.I0(e);case a.x3.code:throw new a.x3(e);case 5e3:throw new a.ab(e);default:if(e instanceof r.G)throw e;throw new a.ir(e)}}},{delay:({count:e,error:n})=>{if(n&&n instanceof i.Gg){let e=n?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<<e)*t},retryCount:n,shouldRetry:({error:e})=>!o(e)})}},8559:function(e,t,n){"use strict";n.d(t,{LI:function(){return s},ax:function(){return a},qg:function(){return i}});var r=n(78868);function i({chain:e,currentChainId:t}){if(!e)throw new r.Bk;if(t!==e.id)throw new r.Yl({chain:e,currentChainId:t})}function a(e,t={}){let{fees:n=e.fees,formatters:r=e.formatters,serializers:i=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:i}}function s({blockNumber:e,chain:t,contract:n}){let i=t?.contracts?.[n];if(!i)throw new r.mm({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new r.mm({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}},56232:function(e,t,n){"use strict";function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{SM:function(){return i},zo:function(){return r}})},99958:function(e,t,n){"use strict";function r(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}n.d(t,{v:function(){return r}})},61882:function(e,t,n){"use strict";n.d(t,{gc:function(){return a},vk:function(){return i}});var r=n(28998);function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?a(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.$({size:e.length,targetSize:n,type:"bytes"});let i=new Uint8Array(n);for(let r=0;r<n;r++){let a="right"===t;i[a?r:n-r-1]=e[a?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function a(e,{dir:t,size:n=32}={}){if(null===n)return e;let i=e.replace("0x","");if(i.length>2*n)throw new r.$({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},38857:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(99958);function i(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},53544:function(e,t,n){"use strict";n.d(t,{tP:function(){return s}});var r=n(28998),i=n(99958),a=n(38857);function s(e,t,n,{strict:r}={}){return(0,i.v)(e,{strict:!1})?function(e,t,n,{strict:r}={}){o(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&u(i,t,n),i}(e,t,n,{strict:r}):function(e,t,n,{strict:r}={}){o(e,t);let i=e.slice(t,n);return r&&u(i,t,n),i}(e,t,n,{strict:r})}function o(e,t){if("number"==typeof t&&t>0&&t>(0,a.d)(e)-1)throw new r.m({offset:t,position:"start",size:(0,a.d)(e)})}function u(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,a.d)(e)!==n-t)throw new r.m({offset:n,position:"end",size:(0,a.d)(e)})}},23540:function(e,t,n){"use strict";function r(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,r=0;for(let e=0;e<n.length-1&&"0"===n["left"===t?e:n.length-e-1].toString();e++)r++;return(n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"==typeof e)?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}n.d(t,{f:function(){return r}})},59701:function(e,t,n){"use strict";n.d(t,{XA:function(){return c},Yf:function(){return o},ly:function(){return l},rR:function(){return d},y_:function(){return u}});var r=n(74888),i=n(38857),a=n(23540),s=n(17951);function o(e,{size:t}){if((0,i.d)(e)>t)throw new r.M6({givenSize:(0,i.d)(e),maxSize:t})}function u(e,t={}){let{signed:n}=t;t.size&&o(e,{size:t.size});let r=BigInt(e);if(!n)return r;let i=(e.length-2)/2,a=(1n<<8n*BigInt(i)-1n)-1n;return r<=a?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let n=e;if(t.size&&(o(n,{size:t.size}),n=(0,a.f)(n)),"0x00"===(0,a.f)(n))return!1;if("0x01"===(0,a.f)(n))return!0;throw new r.Cd(n)}function l(e,t={}){return Number(u(e,t))}function d(e,t={}){let n=(0,s.nr)(e);return t.size&&(o(n,{size:t.size}),n=(0,a.f)(n,{dir:"right"})),new TextDecoder().decode(n)}},17951:function(e,t,n){"use strict";n.d(t,{O0:function(){return c},nr:function(){return l},qX:function(){return d}});var r=n(35831),i=n(99958),a=n(61882),s=n(59701),o=n(36493);let u=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){let n=(0,o.eC)(e,t);return l(n)}(e,t):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,s.Yf)(n,{size:t.size}),(0,a.vk)(n,{size:t.size})):n}(e,t):(0,i.v)(e)?l(e,t):d(e,t)}function l(e,t={}){let n=e;t.size&&((0,s.Yf)(n,{size:t.size}),n=(0,a.vk)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);let o=new Uint8Array(i.length/2);for(let e=0;e<o.length;e++){let t=2*e,n=i.slice(t,t+2),a=Number.parseInt(n,16);if(Number.isNaN(a)||a<0)throw new r.G(`Invalid byte sequence ("${n}" in "${i}").`);o[e]=a}return o}function d(e,t={}){let n=u.encode(e);return"number"==typeof t.size?((0,s.Yf)(n,{size:t.size}),(0,a.vk)(n,{dir:"right",size:t.size})):n}},36493:function(e,t,n){"use strict";n.d(t,{$G:function(){return h},C4:function(){return u},NC:function(){return o},ci:function(){return c},eC:function(){return l}});var r=n(74888),i=n(61882),a=n(59701);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function o(e,t={}){return"number"==typeof e||"bigint"==typeof e?l(e,t):"string"==typeof e?h(e,t):"boolean"==typeof e?u(e,t):c(e,t)}function u(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,a.Yf)(n,{size:t.size}),(0,i.vk)(n,{size:t.size})):n}function c(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let r=`0x${n}`;return"number"==typeof t.size?((0,a.Yf)(r,{size:t.size}),(0,i.vk)(r,{dir:"right",size:t.size})):r}function l(e,t={}){let n;let{signed:a,size:s}=t,o=BigInt(e);s?n=a?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof n&&a?-n-1n:0;if(n&&o>n||o<u){let t="bigint"==typeof e?"n":"";throw new r.J5({max:n?`${n}${t}`:void 0,min:`${u}${t}`,signed:a,size:s,value:`${e}${t}`})}let c=`0x${(a&&o<0?(1n<<BigInt(8*s))+BigInt(o):o).toString(16)}`;return s?(0,i.vk)(c,{size:s}):c}let d=new TextEncoder;function h(e,t={}){let n=d.encode(e);return c(n,t)}},16736:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(35831),i=n(61173);function a(e,t){let n=(e.details||"").toLowerCase(),a=e.walk(e=>e.code===i.M_.code);if(a instanceof r.G)return new i.M_({cause:e,message:a.details});if(i.M_.nodeMessage.test(n))return new i.M_({cause:e,message:e.details});if(i.Hh.nodeMessage.test(n))return new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas});if(i.G$.nodeMessage.test(n))return new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas});if(i.ZI.nodeMessage.test(n))return new i.ZI({cause:e,nonce:t?.nonce});if(i.vU.nodeMessage.test(n))return new i.vU({cause:e,nonce:t?.nonce});if(i.se.nodeMessage.test(n))return new i.se({cause:e,nonce:t?.nonce});else if(i.C_.nodeMessage.test(n))return new i.C_({cause:e});else if(i.WF.nodeMessage.test(n))return new i.WF({cause:e,gas:t?.gas});else if(i.dR.nodeMessage.test(n))return new i.dR({cause:e,gas:t?.gas});else if(i.pZ.nodeMessage.test(n))return new i.pZ({cause:e});else if(i.cs.nodeMessage.test(n))return new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas});return new i.cj({cause:e})}},53936:function(e,t,n){"use strict";n.d(t,{G:function(){return s},Z:function(){return a}});var r=n(29255),i=n(91409);function a(e){let t=e.transactions?.map(e=>"string"==typeof e?e:i.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let s=(0,r.$)("block",a)},20581:function(e,t,n){"use strict";function r(e,{format:t}){if(!t)return{};let n=Object.keys(t({}));return n.reduce((t,n)=>(e?.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}n.d(t,{K:function(){return r}})},29255:function(e,t,n){"use strict";function r(e,t){return({exclude:n,format:r})=>({exclude:n,format:e=>{let i=t(e);if(n)for(let e of n)delete i[e];return{...i,...r(e)}},type:e})}n.d(t,{$:function(){return r}})},46174:function(e,t,n){"use strict";function r(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}n.d(t,{U:function(){return r}})},91409:function(e,t,n){"use strict";n.d(t,{Tr:function(){return s},c8:function(){return a},y_:function(){return o}});var r=n(59701),i=n(29255);let a={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function s(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?a[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}let o=(0,i.$)("transaction",s)},91810:function(e,t,n){"use strict";n.d(t,{d:function(){return c},f:function(){return u}});var r=n(59701),i=n(29255),a=n(46174),s=n(91409);let o={"0x0":"reverted","0x1":"success"};function u(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,a.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.ly)(e.transactionIndex):null,status:e.status?o[e.status]:null,type:e.type?s.c8[e.type]||e.type:null}}let c=(0,i.$)("transactionReceipt",u)},56720:function(e,t,n){"use strict";n.d(t,{iy:function(){return o},tG:function(){return s}});var r=n(36493),i=n(29255);let a={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function s(e){return{...e,gas:void 0!==e.gas?(0,r.eC)(e.gas):void 0,gasPrice:void 0!==e.gasPrice?(0,r.eC)(e.gasPrice):void 0,maxFeePerGas:void 0!==e.maxFeePerGas?(0,r.eC)(e.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==e.maxPriorityFeePerGas?(0,r.eC)(e.maxPriorityFeePerGas):void 0,nonce:void 0!==e.nonce?(0,r.eC)(e.nonce):void 0,type:void 0!==e.type?a[e.type]:void 0,value:void 0!==e.value?(0,r.eC)(e.value):void 0}}let o=(0,i.$)("transactionRequest",s)},53004:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n(17951),i=n(29829);let a=e=>(0,i.r)(e);var s=n(86607);let o=e=>(0,s.w)((0,r.O0)(e)),u=e=>o(a(e))},32755:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(53544),i=n(17951),a=n(29829),s=n(86607);let o=e=>(0,s.w)((0,i.O0)(e)),u=e=>(0,r.tP)(o((0,a.r)(e)),0,4)},29829:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(22388);let i=/((function|event)\s)?(.*)(\((.*)\))/;function a(e){let t=e.match(i),n=t?.[2]||void 0,r=t?.[3],a=t?.[5]||void 0;return{type:n,name:r,params:a}}let s=e=>{if("string"==typeof e){let t=a(e).name,n=function(e){let t=a(e).params,n=t?.split(",").map(e=>e.trim().split(" "));return n?.map(e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}}))}(e)||[];return`${t}(${n.map(({type:e})=>e).join(",")})`}return(0,r.t)(e)}},86607:function(e,t,n){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}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")}n.d(t,{w:function(){return N}});let s=BigInt(4294967296-1),o=BigInt(32),u=(e,t,n)=>e<<n|t>>>32-n,c=(e,t,n)=>t<<n|e>>>32-n,l=(e,t,n)=>t<<n-32|e>>>64-n,d=(e,t,n)=>e<<n-32|t>>>64-n,h=e=>e instanceof Uint8Array,f=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),p=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!p)throw Error("Non little-endian hardware is not supported");function m(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),!h(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}class g{clone(){return this._cloneInto()}}let[y,b,v]=[[],[],[]],w=BigInt(0),_=BigInt(1),E=BigInt(2),A=BigInt(7),x=BigInt(256),C=BigInt(113);for(let e=0,t=_,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],y.push(2*(5*r+n)),b.push((e+1)*(e+2)/2%64);let i=w;for(let e=0;e<7;e++)(t=(t<<_^(t>>A)*C)%x)&E&&(i^=_<<(_<<BigInt(e))-_);v.push(i)}let[S,k]=function(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:a,l:u}=function(e,t=!1){return t?{h:Number(e&s),l:Number(e>>o&s)}:{h:0|Number(e>>o&s),l:0|Number(e&s)}}(e[i],t);[n[i],r[i]]=[a,u]}return[n,r]}(v,!0),D=(e,t,n)=>n>32?l(e,t,n):u(e,t,n),I=(e,t,n)=>n>32?d(e,t,n):c(e,t,n);class O extends g{constructor(e,t,n,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,r(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=f(this.state)}keccak(){!function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,a=n[i],s=n[i+1],o=D(a,s,1)^n[r],u=I(a,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=o,e[t+n+1]^=u}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=b[n],a=D(t,i,r),s=I(t,i,r),o=y[n];t=e[o],i=e[o+1],e[o]=a,e[o+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=S[r],e[1]^=k[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){a(this);let{blockLen:t,state:n}=this;e=m(e);let r=e.length;for(let i=0;i<r;){let a=Math.min(t-this.pos,r-i);for(let t=0;t<a;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,(128&t)!=0&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){a(this,!1),i(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return r(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(!function(e,t){i(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least ${n}`)}(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new O(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}let T=function(e){let t=t=>e().update(m(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}(()=>new O(136,1,32));var P=n(99958),F=n(17951),R=n(36493);function N(e,t){let n=T((0,P.v)(e,{strict:!1})?(0,F.O0)(e):e);return"bytes"===(t||"hex")?n:(0,R.NC)(n)}},49211:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});let r=new Map;function i({fn:e,id:t,shouldSplitBatch:n,wait:i=0}){let a=async()=>{let t=u();s();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{t.forEach(({pendingPromise:t},n)=>t.resolve?.([e[n],e]))}).catch(e=>{t.forEach(({pendingPromise:t})=>t.reject?.(e))})},s=()=>r.delete(t),o=()=>u().map(({args:e})=>e),u=()=>r.get(t)||[],c=e=>r.set(t,[...u(),e]);return{flush:s,async schedule(e){let t={},r=new Promise((e,n)=>{t.resolve=e,t.reject=n}),s=n?.([...o(),e]);s&&a();let l=u().length>0;return l?c({args:e,pendingPromise:t}):(c({args:e,pendingPromise:t}),setTimeout(a,i)),r}}}},35146:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(39255);function i(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0}={}){return new Promise((a,s)=>{let o=async({count:u=0}={})=>{let c=async({error:e})=>{let n="function"==typeof t?t({count:u,error:e}):t;n&&await (0,r.D)(n),o({count:u+1})};try{let t=await e();a(t)}catch(e){if(u<n&&await i({count:u,error:e}))return c({error:e});s(e)}};o()})}},49197:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},26625:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(31892),i=n(13200),a=n(61173),s=n(1740),o=n(56803);function u(e){let{account:t,gasPrice:n,maxFeePerGas:u,maxPriorityFeePerGas:c,to:l}=e,d=t?(0,r.T)(t):void 0;if(d&&!(0,o.U)(d.address))throw new i.b({address:d.address});if(l&&!(0,o.U)(l))throw new i.b({address:l});if(void 0!==n&&(void 0!==u||void 0!==c))throw new s.xY;if(u&&u>2n**256n-1n)throw new a.Hh({maxFeePerGas:u});if(c&&u&&c>u)throw new a.cs({maxFeePerGas:u,maxPriorityFeePerGas:c})}},910:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(1740);function i(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 r.j3({transaction:e})}},49304:function(e,t,n){"use strict";n.d(t,{cj:function(){return d},iC:function(){return l}});var r=n(14437),i=n(13200),a=n(56803),s=n(38857),o=n(36493);let u=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,c=/^(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 l({domain:e,message:t,primaryType:n,types:l}){let d=(e,t)=>{for(let n of e){let{name:e,type:h}=n,f=t[e],p=h.match(c);if(p&&("number"==typeof f||"bigint"==typeof f)){let[e,t,n]=p;(0,o.eC)(f,{signed:"int"===t,size:parseInt(n)/8})}if("address"===h&&"string"==typeof f&&!(0,a.U)(f))throw new i.b({address:f});let m=h.match(u);if(m){let[e,t]=m;if(t&&(0,s.d)(f)!==parseInt(t))throw new r.KY({expectedSize:parseInt(t),givenSize:(0,s.d)(f)})}let g=l[h];g&&d(g,f)}};if(l.EIP712Domain&&e&&d(l.EIP712Domain,e),"EIP712Domain"!==n){let e=l[n];d(e,t)}}function d({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},"number"==typeof e?.chainId&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},66579:function(e,t,n){"use strict";n.d(t,{d:function(){return a}});var r=n(79527),i=n(39674);function a(e,t="wei"){return(0,i.b)(e,r.ez[t])}},54297:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var r=n(79527),i=n(39674);function a(e,t="wei"){return(0,i.b)(e,r.Zn[t])}},39674:function(e,t,n){"use strict";function r(e,t){let n=e.toString(),r=n.startsWith("-");r&&(n=n.slice(1));let[i,a]=[(n=n.padStart(t,"0")).slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${a?`.${a}`:""}`}n.d(t,{b:function(){return r}})},39255:function(e,t,n){"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:function(){return r}})},20050:function(e,t,n){"use strict";let r;function i(){}n.d(t,{eM:function(){return e_},_g:function(){return eb},mA:function(){return eL},KQ:function(){return ez},Ov:function(){return eN},$4:function(){return eZ},do:function(){return eV},Dm:function(){return eK},GG:function(){return eY},c9:function(){return e1},F6:function(){return e5},LN:function(){return eW},PJ:function(){return eX},t_:function(){return eI},aM:function(){return ek},g0:function(){return eQ},BX:function(){return e3}});let a="undefined"==typeof window||"Deno"in window;function s(){}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,n){return E(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,n){return E(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function d(e,t,n){return E(e)?[{...t,queryKey:e},n]:[e||{},t]}function h(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(E(s)){if(r){if(t.queryHash!==p(s,t.options))return!1}else{if(!g(t.queryKey,s))return!1}}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(void 0===i||i===t.state.fetchStatus)&&(!a||!!a(t))}function f(e,t){let{exact:n,fetching:r,predicate:i,mutationKey:a}=e;if(E(a)){if(!t.options.mutationKey)return!1;if(n){if(m(t.options.mutationKey)!==m(a))return!1}else{if(!g(t.options.mutationKey,a))return!1}}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function p(e,t){let n=(null==t?void 0:t.queryKeyHashFn)||m;return n(e)}function m(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!g(e[n],t[n]))}function y(e,t){if(e===t)return e;let n=v(e)&&v(t);if(n||w(e)&&w(t)){let r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{},o=0;for(let r=0;r<a;r++){let a=n?r:i[r];s[a]=y(e[a],t[a]),s[a]===e[a]&&o++}return r===a&&o===r?e:s}return t}function b(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!_(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(_(n)&&n.hasOwnProperty("isPrototypeOf"))}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return Array.isArray(e)}function A(e){return new Promise(t=>{setTimeout(t,e)})}function x(e){A(0).then(e)}function C(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?y(e,t):t}let S=console,k=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=r=>{t?e.push(r):x(()=>{n(r)})},a=()=>{let t=e;e=[],t.length&&x(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class D{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 I=new class extends D{constructor(){super(),this.setup=e=>{if(!a&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},O=["online","offline"],T=new class extends D{constructor(){super(),this.setup=e=>{if(!a&&window.addEventListener){let t=()=>e();return O.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{O.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 P(e){return Math.min(1e3*2**e,3e4)}function F(e){return(null!=e?e:"online")!=="online"||T.isOnline()}class R{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function N(e){return e instanceof R}function B(e){let t,n,r,i=!1,a=0,s=!1,o=new Promise((e,t)=>{n=e,r=t}),u=()=>!I.isFocused()||"always"!==e.networkMode&&!T.isOnline(),c=r=>{s||(s=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},l=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise(n=>{t=e=>{let t=s||!u();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,s||null==e.onContinue||e.onContinue()}),h=()=>{let t;if(!s){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch(t=>{var n,r;if(s)return;let o=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:P,f="function"==typeof c?c(a,t):c,p=!0===o||"number"==typeof o&&a<o||"function"==typeof o&&o(a,t);if(i||!p){l(t);return}a++,null==e.onFail||e.onFail(a,t),A(f).then(()=>{if(u())return d()}).then(()=>{i?l(t):h()})})}};return F(e.networkMode)?h():d().then(h),{promise:o,cancel:t=>{s||(l(new R(t)),null==e.abort||e.abort())},continue:()=>{let e=null==t?void 0:t();return e?o:Promise.resolve()},cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class M{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),o(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:a?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class j 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||S,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let n=C(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(s).catch(s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!u(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r,i,a;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=function(){if("function"==typeof AbortController)return new AbortController}(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};u(o);let c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};u(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(a=c.fetchOptions)?void 0:a.meta});let l=e=>{if(N(e)&&e.silent||this.dispatch({type:"error",error:e}),!N(e)){var t,n,r,i;null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=B({fn:c.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,n,r,i;if(void 0===e){l(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:F(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if(N(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),k.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class L extends D{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;let i=t.queryKey,a=null!=(r=t.queryHash)?r:p(i,t),s=this.get(a);return s||(s=new j({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){k.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[n]=d(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>h(n,e))}findAll(e,t){let[n]=d(e,t);return Object.keys(n).length>0?this.queries.filter(e=>h(n,e)):this.queries}notify(e){k.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){k.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){k.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class U extends M{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||S,this.observers=[],this.state=e.state||z(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,r,i,a,s,o,u,c,l,d,h,f,p,m,g,y,b,v;let w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(l=(d=this.options).onMutate)?void 0:l.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let h=await (()=>{var e;return this.retryer=B({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,h,this.state.variables,this.state.context,this)),await (null==(n=(r=this.options).onSuccess)?void 0:n.call(r,h,this.state.variables,this.state.context)),await (null==(i=(a=this.mutationCache.config).onSettled)?void 0:i.call(a,h,null,this.state.variables,this.state.context,this)),await (null==(s=(o=this.options).onSettled)?void 0:s.call(o,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{throw await (null==(h=(f=this.mutationCache.config).onError)?void 0:h.call(f,e,this.state.variables,this.state.context,this)),await (null==(p=(m=this.options).onError)?void 0:p.call(m,e,this.state.variables,this.state.context)),await (null==(g=(y=this.mutationCache.config).onSettled)?void 0:g.call(y,void 0,e,this.state.variables,this.state.context,this)),await (null==(b=(v=this.options).onSettled)?void 0:b.call(v,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!F(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),k.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function z(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class q extends D{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){let r=new U({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){k.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=>f(e,t))}findAll(e){return this.mutations.filter(t=>f(e,t))}notify(e){k.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return k.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(s)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function G(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class Z{constructor(e={}){this.queryCache=e.queryCache||new L,this.mutationCache=e.mutationCache||new q,this.logger=e.logger||S,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.subscribe(()=>{I.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=T.subscribe(()=>{T.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[n]=d(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){let r=c(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let n=t.data;return[e,n]})}setQueryData(e,t,n){let r=this.queryCache.find(e),i=null==r?void 0:r.state.data,a="function"==typeof t?t(i):t;if(void 0===a)return;let s=c(e),o=this.defaultQueryOptions(s);return this.queryCache.build(this,o).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return k.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){let[n]=d(e,t),r=this.queryCache;k.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){let[r,i]=d(e,t,n),a=this.queryCache,s={type:"active",...r};return k.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(s,i)))}cancelQueries(e,t,n){let[r,i={}]=d(e,t,n);void 0===i.revert&&(i.revert=!0);let a=k.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(i)));return Promise.all(a).then(s).catch(s)}invalidateQueries(e,t,n){let[r,i]=d(e,t,n);return k.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();let n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)})}refetchQueries(e,t,n){let[r,i]=d(e,t,n),a=k.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})})),o=Promise.all(a).then(s);return null!=i&&i.throwOnError||(o=o.catch(s)),o}fetchQuery(e,t,n){let r=c(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(s).catch(s)}fetchInfiniteQuery(e,t,n){let r=c(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,a,s,o;let u;let c=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)?void 0:null==(i=r.meta)?void 0:i.fetchMore,d=null==l?void 0:l.pageParam,h=(null==l?void 0:l.direction)==="forward",f=(null==l?void 0:l.direction)==="backward",p=(null==(a=e.state.data)?void 0:a.pages)||[],m=(null==(s=e.state.data)?void 0:s.pageParams)||[],g=m,y=!1,b=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?y=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{y=!0}),e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(e,t,n,r)=>(g=r?[t,...g]:[...g,t],r?[n,...e]:[...e,n]),_=(t,n,r,i)=>{if(y)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);let a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};b(a);let s=v(a),o=Promise.resolve(s).then(e=>w(t,r,e,i));return o};if(p.length){if(h){let t=void 0!==d,n=t?d:G(e.options,p);u=_(p,t,n)}else if(f){let t=void 0!==d,n=t?d:null==(o=e.options).getPreviousPageParam?void 0:o.getPreviousPageParam(p[0],p);u=_(p,t,n,!0)}else{g=[];let t=void 0===e.options.getNextPageParam,n=!c||!p[0]||c(p[0],0,p);u=n?_([],t,m[0]):Promise.resolve(w([],m[0],p[0]));for(let n=1;n<p.length;n++)u=u.then(r=>{let i=!c||!p[n]||c(p[n],n,p);if(i){let i=t?m[n]:G(e.options,r);return _(r,t,i)}return Promise.resolve(w(r,m[n],p[n]))})}}else u=_([]);let E=u.then(e=>({pages:e,pageParams:g}));return E}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(s).catch(s)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let n=this.queryDefaults.find(t=>m(e)===m(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>g(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let n=this.mutationDefaults.find(t=>m(e)===m(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>g(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=p(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function W(e){return e.state.isPaused}function $(e){return"success"===e.state.status}let H=["added","removed","updated"];function Q(e){return H.includes(e)}async function V({queryClient:e,persister:t,maxAge:n=864e5,buster:r="",hydrateOptions:i}){try{let a=await t.restoreClient();if(a){if(a.timestamp){let s=Date.now()-a.timestamp>n,o=a.buster!==r;s||o?t.removeClient():function(e,t,n){if("object"!=typeof t||null===t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=t.mutations||[],s=t.queries||[];a.forEach(t=>{var i;r.build(e,{...null==n?void 0:null==(i=n.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)}),s.forEach(t=>{var r;let a=i.get(t.queryHash),s={...t.state,fetchStatus:"idle"};if(a){a.state.dataUpdatedAt<s.dataUpdatedAt&&a.setState(s);return}i.build(e,{...null==n?void 0:null==(r=n.defaultOptions)?void 0:r.queries,queryKey:t.queryKey,queryHash:t.queryHash},s)})}(e,a.clientState,i)}else t.removeClient()}}catch(e){t.removeClient()}}async function K({queryClient:e,persister:t,buster:n="",dehydrateOptions:r}){let i={buster:n,timestamp:Date.now(),clientState:function(e,t={}){let n=[],r=[];if(!1!==t.dehydrateMutations){let r=t.shouldDehydrateMutation||W;e.getMutationCache().getAll().forEach(e=>{r(e)&&n.push({mutationKey:e.options.mutationKey,state:e.state})})}if(!1!==t.dehydrateQueries){let n=t.shouldDehydrateQuery||$;e.getQueryCache().getAll().forEach(e=>{n(e)&&r.push({state:e.state,queryKey:e.queryKey,queryHash:e.queryHash})})}return{mutations:n,queries:r}}(e,r)};await t.persistClient(i)}var J=n(29202),Y=n(52983);let X=Y.createContext(void 0),ee=Y.createContext(!1);function et(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=X),window.ReactQueryClientContext):X)}let en=({context:e}={})=>{let t=Y.useContext(et(e,Y.useContext(ee)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},er=({client:e,children:t,context:n,contextSharing:r=!1})=>{Y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let i=et(n,r);return Y.createElement(ee.Provider,{value:!n&&r},Y.createElement(i.Provider,{value:e},t))},ei=Y.createContext(!1),ea=()=>Y.useContext(ei);ei.Provider;let es=Y.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),eo=()=>Y.useContext(es);var eu=n(83576);class ec extends D{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=this.client.defaultMutationOptions(e),b(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:z(),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){k.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,n,r,i,a,s,o,u;e.onSuccess?(null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(a=(s=this.mutateOptions).onError)||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(o=(u=this.mutateOptions).onSettled)||o.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}let el=eu.useSyncExternalStore;function ed(){}class eh extends D{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 ep(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ep(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),b(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();let i=this.hasListeners();i&&em(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();let a=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return e.keepPreviousData||(void 0!==e.placeholderData?!n.isPlaceholderData:b(this.getCurrentResult(),n))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(s)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),a||this.currentResult.isStale||!o(this.options.staleTime))return;let e=u(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!a&&!1!==this.options.enabled&&o(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||I.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let n;let r=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,o=this.currentResultOptions,u=e!==r,c=u?e.state:this.currentQueryInitialState,l=u?this.currentResult:this.previousQueryResult,{state:d}=e,{dataUpdatedAt:h,error:f,errorUpdatedAt:p,fetchStatus:m,status:g}=d,y=!1,b=!1;if(t._optimisticResults){let n=this.hasListeners(),a=!n&&ef(e,t),s=n&&em(e,r,t,i);(a||s)&&(m=F(e.options.networkMode)?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!d.dataUpdatedAt&&null!=l&&l.isSuccess&&"error"!==g)n=l.data,h=l.dataUpdatedAt,g=l.status,y=!0;else if(t.select&&void 0!==d.data){if(a&&d.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),n=C(null==a?void 0:a.data,n,t),this.selectResult=n,this.selectError=null}catch(e){this.selectError=e}}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&"loading"===g){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==o?void 0:o.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",n=C(null==a?void 0:a.data,e,t),b=!0)}this.selectError&&(f=this.selectError,n=this.selectResult,p=Date.now(),g="error");let v="fetching"===m,w="loading"===g,_="error"===g,E={status:g,fetchStatus:m,isLoading:w,isSuccess:"success"===g,isError:_,isInitialLoading:w&&v,data:n,dataUpdatedAt:h,error:f,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!w,isLoadingError:_&&0===d.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:b,isPreviousData:y,isRefetchError:_&&0!==d.dataUpdatedAt,isStale:eg(e,t),refetch:this.refetch,remove:this.remove};return E}updateResult(e){let t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,b(n,t))return;this.currentResult=n;let r={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;let r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{let n=this.currentResult[e]!==t[e];return n&&r.has(e)})})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||N(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){k.batch(()=>{var t,n,r,i,a,s,o,u;e.onSuccess?(null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):e.onError&&(null==(a=(s=this.options).onError)||a.call(s,this.currentResult.error),null==(o=(u=this.options).onSettled)||o.call(u,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function ef(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&ep(e,t,t.refetchOnMount)}function ep(e,t,n){if(!1!==t.enabled){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&eg(e,t)}return!1}function em(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&eg(e,n)}function eg(e,t){return e.isStaleByTime(t.staleTime)}var ey=n(52014);function eb({queryClient:e=new Z({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:t=(0,J.o6)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:J.wp}),persister:n="undefined"!=typeof window?function({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:n=1e3,serialize:r=JSON.stringify,deserialize:a=JSON.parse,retry:s}){if(e){let i=n=>{try{e.setItem(t,r(n));return}catch(e){return e}};return{persistClient:function(e,t=100){let n,r=null;return function(...i){n=i,null===r&&(r=setTimeout(()=>{e(...n),r=null},t))}}(e=>{let t=e,n=i(t),r=0;for(;n&&t;)r++,(t=null==s?void 0:s({persistedClient:t,error:n,errorCount:r}))&&(n=i(t))},n),restoreClient:()=>{let n=e.getItem(t);if(n)return a(n)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:i,restoreClient:()=>void 0,removeClient:i}}({key:"cache",storage:t,serialize:e=>e,deserialize:e=>e}):void 0,...r}){let a=(0,J._g)({...r,storage:t});return n&&function(e){V(e).then(()=>{(function(e){let t=e.queryClient.getQueryCache().subscribe(t=>{Q(t.type)&&K(e)}),n=e.queryClient.getMutationCache().subscribe(t=>{Q(t.type)&&K(e)})})(e)})}({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime&&!1!==e.queryKey[0].persist}}),Object.assign(a,{queryClient:e})}var ev=Y.createContext(void 0),ew=Y.createContext(void 0);function e_({children:e,config:t}){return Y.createElement(ev.Provider,{children:Y.createElement(er,{children:e,client:t.queryClient,context:ew}),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 eA=eu.useSyncExternalStore;function ex(e){return"[object Object]"===Object.prototype.toString.call(e)}function eC(e){return JSON.stringify(e,(e,t)=>!function(e){if(!ex(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(ex(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function eS(e,t,n){let r=l(e,t,n);return function(e,t,n){var r,i;let a=l(e,void 0,void 0),s=en({context:a.context}),[o]=Y.useState(()=>new ec(s,a));Y.useEffect(()=>{o.setOptions(a)},[o,a]);let u=el(Y.useCallback(e=>o.subscribe(k.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=Y.useCallback((e,t)=>{o.mutate(e,t).catch(ed)},[o]);if(u.error&&(r=o.options.useErrorBoundary,i=[u.error],"function"==typeof r?r(...i):!!r))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}({context:ew,...r})}function ek(e,t,n){let r=Array.isArray(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e,i=function(e,t){var n,r;let i=en({context:e.context}),a=ea(),s=eo(),o=i.defaultQueryOptions({...e,queryKeyHashFn:eC});o._optimisticResults=a?"isRestoring":"optimistic",o.onError&&(o.onError=k.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=k.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=k.batchCalls(o.onSettled)),o.suspense&&"number"!=typeof o.staleTime&&(o.staleTime=1e3),(o.suspense||o.useErrorBoundary)&&!s.isReset()&&(o.retryOnMount=!1);let[u]=Y.useState(()=>new t(i,o)),c=u.getOptimisticResult(o);if(eA(Y.useCallback(e=>a?()=>void 0:u.subscribe(k.batchCalls(e)),[u,a]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),Y.useEffect(()=>{s.clearReset()},[s]),Y.useEffect(()=>{u.setOptions(o,{listeners:!1})},[o,u]),o.suspense&&c.isLoading&&c.isFetching&&!a)throw u.fetchOptimistic(o).then(({data:e})=>{o.onSuccess?.(e),o.onSettled?.(e,null)}).catch(e=>{s.clearReset(),o.onError?.(e),o.onSettled?.(void 0,e)});if(c.isError&&!s.isReset()&&!c.isFetching&&(n=o.useErrorBoundary,r=[c.error,u.getCurrentQuery()],"function"==typeof n?n(...r):!!n))throw c.error;let l="loading"===c.status&&"idle"===c.fetchStatus?"idle":c.status,d="loading"===l&&"fetching"===c.fetchStatus;return{...c,defaultedOptions:o,isIdle:"idle"===l,isLoading:d,observer:u,status:l}}({context:ew,...r},eh),a={data:i.data,error:i.error,fetchStatus:i.fetchStatus,isError:i.isError,isFetched:i.isFetched,isFetchedAfterMount:i.isFetchedAfterMount,isFetching:i.isFetching,isIdle:i.isIdle,isLoading:i.isLoading,isRefetching:i.isRefetching,isSuccess:i.isSuccess,refetch:i.refetch,status:i.status,internal:{dataUpdatedAt:i.dataUpdatedAt,errorUpdatedAt:i.errorUpdatedAt,failureCount:i.failureCount,isFetchedAfterMount:i.isFetchedAfterMount,isLoadingError:i.isLoadingError,isPaused:i.isPaused,isPlaceholderData:i.isPlaceholderData,isPreviousData:i.isPreviousData,isRefetchError:i.isRefetchError,isStale:i.isStale,remove:i.remove}};return i.defaultedOptions.notifyOnChangeProps?a:function(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(r),e[r])})}),n}(a,i.observer)}var eD=()=>en({context:ew});function eI({chainId:e}={}){return(0,ey.useSyncExternalStoreWithSelector)(t=>(0,J.pC)({chainId:e},t),()=>(0,J.uV)({chainId:e}),()=>(0,J.uV)({chainId:e}),e=>e,(e,t)=>e.uid===t.uid)}function eO({chainId:e}){return[{entity:"walletClient",chainId:e,persist:!1}]}function eT({queryKey:[{chainId:e}]}){return(0,J.xz)({chainId:e})}function eP({chainId:e}={}){let t=eI({chainId:e});return t.chain.id}function eF({chainId:e,scopeKey:t}){return[{entity:"blockNumber",chainId:e,scopeKey:t}]}function eR({queryKey:[{chainId:e}]}){return(0,J.RQ)({chainId:e})}function eN({cacheTime:e=0,chainId:t,enabled:n=!0,scopeKey:r,staleTime:i,suspense:a,watch:s=!1,onBlock:o,onError:u,onSettled:c,onSuccess:l}={}){let d=eP({chainId:t}),h=eI({chainId:d}),f=function({chainId:e}={}){return(0,ey.useSyncExternalStoreWithSelector)(t=>(0,J.fq)({chainId:e},t),()=>(0,J.jr)({chainId:e}),()=>(0,J.jr)({chainId:e}),e=>e,(e,t)=>e?.uid===t?.uid)}({chainId:d}),p=eD();return Y.useEffect(()=>{if(!n||!s&&!o)return;let e=f??h,t=e.watchBlockNumber({onBlockNumber:e=>{s&&p.setQueryData(eF({chainId:d,scopeKey:r}),e),o&&o(e)},emitOnBegin:!0});return t},[d,r,o,h,p,s,f,n]),ek(eF({scopeKey:r,chainId:d}),eR,{cacheTime:e,enabled:n,staleTime:i,suspense:a,onError:u,onSettled:c,onSuccess:l})}function eB({chainId:e,enabled:t,queryKey:n}){let r=eD(),i=Y.useCallback(()=>r.invalidateQueries({queryKey:n},{cancelRefetch:!1}),[r,n]);eN({chainId:e,enabled:t,onBlock:t?i:void 0,scopeKey:t?void 0:"idle"})}var eM=e=>"object"==typeof e&&!Array.isArray(e);function ej(e,t,n=t,r=J.vZ){let i=Y.useRef([]),a=(0,ey.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(eM(e)&&eM(t)&&i.current.length){for(let n of i.current){let i=r(e[n],t[n]);if(!i)return!1}return!0}return r(e,t)});if(eM(a)){let e={...a};return Object.defineProperties(e,Object.entries(e).reduce((e,[t,n])=>({...e,[t]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(t)||i.current.push(t),n)}}),{})),e}return a}function eL({onConnect:e,onDisconnect:t}={}){let n=eE(),r=Y.useCallback(e=>(0,J.uH)(e),[n]),i=ej(r,J.D0),a=Y.useRef(),s=a.current;return Y.useEffect(()=>{s?.status!=="connected"&&"connected"===i.status&&e?.({address:i.address,connector:i.connector,isReconnected:s?.status==="reconnecting"||s?.status===void 0}),s?.status==="connected"&&"disconnected"===i.status&&t?.(),a.current=i},[e,t,s,i]),i}function eU({queryKey:[{address:e,chainId:t,formatUnits:n,token:r}]}){if(!e)throw Error("address is required");return(0,J.EG)({address:e,chainId:t,formatUnits:n,token:r})}function ez({address:e,cacheTime:t,chainId:n,enabled:r=!0,formatUnits:i,scopeKey:a,staleTime:s,suspense:o,token:u,watch:c,onError:l,onSettled:d,onSuccess:h}={}){let f=eP({chainId:n}),p=Y.useMemo(()=>(function({address:e,chainId:t,formatUnits:n,scopeKey:r,token:i}){return[{entity:"balance",address:e,chainId:t,formatUnits:n,scopeKey:r,token:i}]})({address:e,chainId:f,formatUnits:i,scopeKey:a,token:u}),[e,f,i,a,u]),m=ek(p,eU,{cacheTime:t,enabled:!!(r&&e),staleTime:s,suspense:o,onError:l,onSettled:d,onSuccess:h});return eB({chainId:f,enabled:!!(r&&c&&e),queryKey:p}),m}var eq=e=>[{entity:"connect",...e}],eG=e=>{let{connector:t,chainId:n}=e;if(!t)throw Error("connector is required");return(0,J.$j)({connector:t,chainId:n})};function eZ({chainId:e,connector:t,onError:n,onMutate:r,onSettled:i,onSuccess:a}={}){let s=eE(),{data:o,error:u,isError:c,isIdle:l,isLoading:d,isSuccess:h,mutate:f,mutateAsync:p,reset:m,status:g,variables:y}=eS(eq({connector:t,chainId:e}),eG,{onError:n,onMutate:r,onSettled:i,onSuccess:a}),b=Y.useCallback(n=>f({chainId:n?.chainId??e,connector:n?.connector??t}),[e,t,f]),v=Y.useCallback(n=>p({chainId:n?.chainId??e,connector:n?.connector??t}),[e,t,p]);return{connect:b,connectAsync:v,connectors:s.connectors,data:o,error:u,isError:c,isIdle:l,isLoading:d,isSuccess:h,pendingConnector:y?.connector,reset:m,status:g,variables:y}}function eW(){let e=eE(),t=(0,Y.useCallback)(e=>(0,J.QC)(e),[e]);return ej(t,J.Hy)}var e$=e=>[{entity:"switchNetwork",...e}],eH=e=>{let{chainId:t}=e;if(!t)throw Error("chainId is required");return(0,J.If)({chainId:t})};function eQ({chainId:e,throwForSwitchChainNotSupported:t,onError:n,onMutate:r,onSettled:i,onSuccess:a}={}){let s,o;let u=eE(),c=function(){let[,e]=Y.useReducer(e=>e+1,0);return e}(),{data:l,error:d,isError:h,isIdle:f,isLoading:p,isSuccess:m,mutate:g,mutateAsync:y,reset:b,status:v,variables:w}=eS(e$({chainId:e}),eH,{onError:n,onMutate:r,onSettled:i,onSuccess:a}),_=Y.useCallback(t=>g({chainId:t??e}),[e,g]),E=Y.useCallback(t=>y({chainId:t??e}),[e,y]);Y.useEffect(()=>{let e=u.subscribe(({chains:e,connector:t})=>({chains:e,connector:t}),c);return e},[u,c]);let A=!!u.connector?.switchChain;return(t||A)&&(s=_,o=E),{chains:u.chains??[],data:l,error:d,isError:h,isIdle:f,isLoading:p,isSuccess:m,pendingChainId:w?.chainId,reset:b,status:v,switchNetwork:s,switchNetworkAsync:o,variables:w}}function eV({abi:e,address:t,account:n,args:r,blockNumber:i,blockTag:a,cacheOnBlock:s=!1,cacheTime:o,chainId:u,enabled:c=!0,functionName:l,isDataEqual:d,keepPreviousData:h,onError:f,onSettled:p,onSuccess:m,scopeKey:g,select:b,staleTime:v,structuralSharing:w=(e,t)=>(0,J.vZ)(e,t)?e:y(e,t),suspense:_,watch:E}={}){let A=eP({chainId:u}),{data:x}=eN({chainId:A,enabled:E||s,scopeKey:E||s?void 0:"idle",watch:E}),C=i??x,S=Y.useMemo(()=>(function({account:e,address:t,args:n,blockNumber:r,blockTag:i,chainId:a,functionName:s,scopeKey:o}){return[{entity:"readContract",account:e,address:t,args:n,blockNumber:r,blockTag:i,chainId:a,functionName:s,scopeKey:o}]})({account:n,address:t,args:r,blockNumber:s?C:void 0,blockTag:a,chainId:A,functionName:l,scopeKey:g}),[n,t,r,C,a,s,A,l,g]),k=Y.useMemo(()=>{let n=!!(c&&e&&t&&l);return s&&(n=!!(n&&C)),n},[e,t,C,s,c,l]);return eB({chainId:A,enabled:!!(k&&E&&!s),queryKey:S}),ek(S,function({abi:e}){return async({queryKey:[{account:t,address:n,args:r,blockNumber:i,blockTag:a,chainId:s,functionName:o}]})=>{if(!e)throw Error("abi is required");if(!n)throw Error("address is required");return await (0,J.a4)({account:t,address:n,args:r,blockNumber:i,blockTag:a,chainId:s,abi:e,functionName:o})??null}}({abi:e}),{cacheTime:o,enabled:k,isDataEqual:d,keepPreviousData:h,select:b,staleTime:v,structuralSharing:w,suspense:_,onError:f,onSettled:p,onSuccess:m})}function eK({allowFailure:e,blockNumber:t,blockTag:n,cacheOnBlock:r=!1,cacheTime:i,contracts:a,enabled:s=!0,isDataEqual:o,keepPreviousData:u,onError:c,onSettled:l,onSuccess:d,scopeKey:h,select:f,staleTime:p,structuralSharing:m=(e,t)=>(0,J.vZ)(e,t)?e:y(e,t),suspense:g,watch:b}={}){let v=e??!0,{data:w}=eN({enabled:b||r,watch:b}),_=eP(),E=t??w,A=Y.useMemo(()=>(function({allowFailure:e,blockNumber:t,blockTag:n,chainId:r,contracts:i,scopeKey:a}){return[{entity:"readContracts",allowFailure:e,blockNumber:t,blockTag:n,chainId:r,scopeKey:a,contracts:(i??[]).map(({address:e,args:t,chainId:n,functionName:r})=>({address:e,args:t,chainId:n,functionName:r}))}]})({allowFailure:v,blockNumber:r?E:void 0,blockTag:n,chainId:_,contracts:a,scopeKey:h}),[v,E,n,r,_,h,a]),x=Y.useMemo(()=>{let e=!!(s&&a?.every(e=>e.abi&&e.address&&e.functionName));return r&&(e=!!(e&&E)),e},[E,r,a,s]);eB({enabled:!!(x&&b&&!r),queryKey:A});let C=(a??[]).map(({abi:e})=>e);return ek(A,function({abis:e}){return({queryKey:[{allowFailure:t,blockNumber:n,blockTag:r,contracts:i}]})=>{let a=i.map((t,n)=>({...t,abi:e[n]}));return(0,J.JH)({allowFailure:t,contracts:a,blockNumber:n,blockTag:r})}}({abis:C}),{cacheTime:i,enabled:x,isDataEqual:o,keepPreviousData:u,staleTime:p,select:f,structuralSharing:m,suspense:g,onError:c,onSettled:l,onSuccess:d})}function eJ(e){if("prepared"===e.mode){if(!e.request)throw Error("request is required");return(0,J.n9)({mode:"prepared",request:e.request})}if(!e.address)throw Error("address is required");if(!e.abi)throw Error("abi is required");if(!e.functionName)throw Error("functionName is required");return(0,J.n9)({address:e.address,args:e.args,chainId:e.chainId,abi:e.abi,functionName:e.functionName,accessList:e.accessList,account:e.account,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,value:e.value})}function eY(e){let{address:t,abi:n,args:r,chainId:i,functionName:a,mode:s,request:o}=e,{accessList:u,account:c,gas:l,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,value:m}=(0,J.gY)(e),{data:g,error:y,isError:b,isIdle:v,isLoading:w,isSuccess:_,mutate:E,mutateAsync:A,reset:x,status:C,variables:S}=eS(function({address:e,abi:t,functionName:n,...r}){let{args:i,accessList:a,account:s,gas:o,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,request:h,value:f}=r;return[{entity:"writeContract",address:e,args:i,abi:t,accessList:a,account:s,functionName:n,gas:o,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,request:h,value:f}]}({address:t,abi:n,functionName:a,chainId:i,mode:s,args:r,accessList:u,account:c,gas:l,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,request:o,value:m}),eJ,{onError:e.onError,onMutate:e.onMutate,onSettled:e.onSettled,onSuccess:e.onSuccess}),k=Y.useMemo(()=>{if("prepared"===e.mode){if(!o)return;return()=>E({mode:"prepared",request:e.request,chainId:e.chainId})}return e=>E({address:t,args:r,abi:n,functionName:a,chainId:i,accessList:u,account:c,gas:l,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,value:m,...e})},[u,c,n,t,r,i,e.chainId,e.mode,e.request,a,l,d,h,f,E,p,o,m]),D=Y.useMemo(()=>{if("prepared"===e.mode){if(!o)return;return()=>A({mode:"prepared",request:e.request})}return e=>A({address:t,args:r,abi:n,chainId:i,functionName:a,accessList:u,account:c,gas:l,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,value:m,...e})},[u,c,n,t,r,i,e.mode,e.request,a,l,d,h,f,A,p,o,m]);return{data:g,error:y,isError:b,isIdle:v,isLoading:w,isSuccess:_,reset:x,status:C,variables:S,write:k,writeAsync:D}}function eX({address:e,abi:t,functionName:n,chainId:r,args:i,cacheTime:a,enabled:s=!0,scopeKey:o,staleTime:u,suspense:c,onError:l,onSettled:d,onSuccess:h,...f}={}){let{chain:p}=eW(),{data:m}=function({chainId:e,suspense:t,onError:n,onSettled:r,onSuccess:i}={}){let{connector:a}=eL(),s=eP({chainId:e}),o=ek(eO({chainId:s}),eT,{cacheTime:0,enabled:!!a,staleTime:1/0,suspense:t,onError:n,onSettled:r,onSuccess:i}),u=eD();return Y.useEffect(()=>{let e=(0,J.Tb)({chainId:s},e=>{e?u.invalidateQueries(eO({chainId:s})):u.removeQueries(eO({chainId:s}))});return e},[u,s]),o}({chainId:r}),{accessList:g,account:y,blockNumber:b,blockTag:v,gas:w,gasPrice:_,maxFeePerGas:E,maxPriorityFeePerGas:A,nonce:x,value:C}=(0,J._X)(f),S=ek(function({accessList:e,account:t,activeChainId:n,args:r,address:i,blockNumber:a,blockTag:s,chainId:o,functionName:u,gas:c,gasPrice:l,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:f,scopeKey:p,walletClientAddress:m,value:g}){return[{entity:"prepareContractTransaction",accessList:e,account:t,activeChainId:n,address:i,args:r,blockNumber:a,blockTag:s,chainId:o,functionName:u,gas:c,gasPrice:l,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:f,scopeKey:p,walletClientAddress:m,value:g}]}({accessList:g,account:y,activeChainId:p?.id,address:e,args:i,blockNumber:b,blockTag:v,chainId:r,functionName:n,gas:w,gasPrice:_,maxFeePerGas:E,maxPriorityFeePerGas:A,nonce:x,scopeKey:o,walletClientAddress:m?.account.address,value:C}),function({abi:e,walletClient:t}){return({queryKey:[{accessList:n,account:r,args:i,address:a,blockNumber:s,blockTag:o,chainId:u,functionName:c,gas:l,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,value:m}]})=>{if(!e)throw Error("abi is required");if(!a)throw Error("address is required");if(!c)throw Error("functionName is required");return(0,J.$q)({abi:e,accessList:n,account:r,args:i,address:a,blockNumber:s,blockTag:o,chainId:u,functionName:c,gas:l,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,walletClient:t,value:m})}}({abi:t,walletClient:m}),{cacheTime:a,enabled:!!(s&&t&&e&&n&&m),staleTime:u,suspense:c,onError:l,onSettled:d,onSuccess:h});return Object.assign(S,{config:{chainId:r,mode:"prepared",request:void 0,...S.data}})}function e0({queryKey:[{name:e,chainId:t}]}){if(!e)throw Error("name is required");return(0,J.w6)({name:e,chainId:t})}function e1({cacheTime:e,chainId:t,enabled:n=!0,name:r,scopeKey:i,staleTime:a=864e5,suspense:s,onError:o,onSettled:u,onSuccess:c}={}){let l=eP({chainId:t});return ek(function({name:e,chainId:t,scopeKey:n}){return[{entity:"ensAvatar",name:e,chainId:t,scopeKey:n}]}({name:r,chainId:l,scopeKey:i}),e0,{cacheTime:e,enabled:!!(n&&r&&l),staleTime:a,suspense:s,onError:o,onSettled:u,onSuccess:c})}function e2({queryKey:[{address:e,chainId:t}]}){if(!e)throw Error("address is required");return(0,J.Lk)({address:e,chainId:t})}function e5({address:e,cacheTime:t,chainId:n,enabled:r=!0,scopeKey:i,staleTime:a=864e5,suspense:s,onError:o,onSettled:u,onSuccess:c}={}){let l=eP({chainId:n});return ek(function({address:e,chainId:t,scopeKey:n}){return[{entity:"ensName",address:e,chainId:t,scopeKey:n}]}({address:e,chainId:l,scopeKey:i}),e2,{cacheTime:t,enabled:!!(r&&e&&l),staleTime:a,suspense:s,onError:o,onSettled:u,onSuccess:c})}function e3({chainId:e,confirmations:t,hash:n,timeout:r,cacheTime:i,enabled:a=!0,scopeKey:s,staleTime:o,suspense:u,onError:c,onReplaced:l,onSettled:d,onSuccess:h}={}){let f=eP({chainId:e});return ek(function({confirmations:e,chainId:t,hash:n,scopeKey:r,timeout:i}){return[{entity:"waitForTransaction",confirmations:e,chainId:t,hash:n,scopeKey:r,timeout:i}]}({chainId:f,confirmations:t,hash:n,scopeKey:s,timeout:r}),function({onReplaced:e}){return({queryKey:[{chainId:t,confirmations:n,hash:r,timeout:i}]})=>{if(!r)throw Error("hash is required");return(0,J.Mn)({chainId:t,confirmations:n,hash:r,onReplaced:e,timeout:i})}}({onReplaced:l}),{cacheTime:i,enabled:!!(a&&n),staleTime:o,suspense:u,onError:c,onSettled:d,onSuccess:h})}},80834:function(e,t,n){"use strict";n.d(t,{z:function(){return e4}}),(e0=e5||(e5={})).assertEqual=e=>e,e0.assertIs=function(e){},e0.assertNever=function(e){throw Error()},e0.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e0.getValidEnumValues=e=>{let t=e0.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return e0.objectValues(n)},e0.objectValues=e=>e0.objectKeys(e).map(function(t){return e[t]}),e0.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e0.find=(e,t)=>{for(let n of e)if(t(n))return n},e0.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e0.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e0.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(e3||(e3={})).mergeShapes=(e,t)=>({...e,...t});let r=e5.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{let t=typeof e;switch(t){case"undefined":return r.undefined;case"string":return r.string;case"number":return isNaN(e)?r.nan:r.number;case"boolean":return r.boolean;case"function":return r.function;case"bigint":return r.bigint;case"symbol":return r.symbol;case"object":if(Array.isArray(e))return r.array;if(null===e)return r.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.promise;if("undefined"!=typeof Map&&e instanceof Map)return r.map;if("undefined"!=typeof Set&&e instanceof Set)return r.set;if("undefined"!=typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}},a=e5.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class s extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r],a=r===i.path.length-1;a?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,e5.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>{let t=new s(e);return t};let o=(e,t)=>{let n;switch(e.code){case a.invalid_type:n=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,e5.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:n=`Unrecognized key(s) in object: ${e5.joinValues(e.keys,", ")}`;break;case a.invalid_union:n="Invalid input";break;case a.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${e5.joinValues(e.options)}`;break;case a.invalid_enum_value:n=`Invalid enum value. Expected ${e5.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:n="Invalid function arguments";break;case a.invalid_return_type:n="Invalid function return type";break;case a.invalid_date:n="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:e5.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:n="Invalid input";break;case a.invalid_intersection_types:n="Intersection results could not be merged";break;case a.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:n="Number must be finite";break;default:n=t.defaultError,e5.assertNever(e)}return{message:n}},u=o;function c(){return u}let l=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a},o="",u=r.filter(e=>!!e).slice().reverse();for(let e of u)o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:i.message||o}};function d(e,t){let n=l({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c(),o].filter(e=>!!e)});e.common.issues.push(n)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return f;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return f;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let f=Object.freeze({status:"aborted"}),p=e=>({status:"dirty",value:e}),m=e=>({status:"valid",value:e}),g=e=>"aborted"===e.status,y=e=>"dirty"===e.status,b=e=>"valid"===e.status,v=e=>"undefined"!=typeof Promise&&e instanceof Promise;(e1=e6||(e6={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},e1.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class w{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let _=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s(e.common.issues);return this._error=t,this._error}}};function E(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:i}}class A{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(v(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},a=this._parseSync({data:e,path:r.path,parent:r});return _(r,a)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await (v(r)?r:Promise.resolve(r));return _(n,a)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),s=()=>r.addIssue({code:a.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(s(),!1)):!!i||(s(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eu({schema:this,typeName:e8.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ec.create(this,this._def)}nullable(){return el.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return W.create(this,this._def)}promise(){return eo.create(this,this._def)}or(e){return H.create([this,e],this._def)}and(e){return K.create(this,e,this._def)}transform(e){return new eu({...E(this._def),schema:this,typeName:e8.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ed({...E(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:e8.ZodDefault})}brand(){return new em({typeName:e8.ZodBranded,type:this,...E(this._def)})}catch(e){return new eh({...E(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:e8.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return eg.create(this,e)}readonly(){return ey.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let x=/^c[^\s-]{8,}$/i,C=/^[a-z][a-z0-9]*$/,S=/[0-9A-HJKMNP-TV-Z]{26}/,k=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,D=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,I=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,O=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,T=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,P=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class F extends A{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...e6.errToObj(n)}),this.nonempty=e=>this.min(1,e6.errToObj(e)),this.trim=()=>new F({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new F({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new F({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){let t;this._def.coerce&&(e.data=String(e.data));let n=this._getType(e);if(n!==r.string){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.string,received:t.parsedType}),f}let i=new h;for(let n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),i.dirty());else if("max"===n.kind)e.data.length>n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),i.dirty());else if("length"===n.kind){let r=e.data.length>n.value,s=e.data.length<n.value;(r||s)&&(t=this._getOrReturnCtx(e,t),r?d(t,{code:a.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):s&&d(t,{code:a.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),i.dirty())}else if("email"===n.kind)D.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.invalid_string,message:n.message}),i.dirty());else if("emoji"===n.kind)I.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.invalid_string,message:n.message}),i.dirty());else if("uuid"===n.kind)k.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.invalid_string,message:n.message}),i.dirty());else if("cuid"===n.kind)x.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.invalid_string,message:n.message}),i.dirty());else if("cuid2"===n.kind)C.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.invalid_string,message:n.message}),i.dirty());else if("ulid"===n.kind)S.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.invalid_string,message:n.message}),i.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(r){d(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.invalid_string,message:n.message}),i.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;let r=n.regex.test(e.data);r||(d(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.invalid_string,message:n.message}),i.dirty())}else if("trim"===n.kind)e.data=e.data.trim();else if("includes"===n.kind)e.data.includes(n.value,n.position)||(d(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),i.dirty());else if("toLowerCase"===n.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===n.kind)e.data=e.data.toUpperCase();else if("startsWith"===n.kind)e.data.startsWith(n.value)||(d(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{startsWith:n.value},message:n.message}),i.dirty());else if("endsWith"===n.kind)e.data.endsWith(n.value)||(d(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:{endsWith:n.value},message:n.message}),i.dirty());else if("datetime"===n.kind){let r=P(n);r.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.invalid_string,validation:"datetime",message:n.message}),i.dirty())}else if("ip"===n.kind){var s,o;s=e.data,("v4"===(o=n.version)||!o)&&O.test(s)||("v6"===o||!o)&&T.test(s)||(d(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.invalid_string,message:n.message}),i.dirty())}else e5.assertNever(n);return{status:i.value,value:e.data}}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...e6.errToObj(e)})}url(e){return this._addCheck({kind:"url",...e6.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...e6.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...e6.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...e6.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...e6.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...e6.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...e6.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...e6.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...e6.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...e6.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...e6.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...e6.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...e6.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...e6.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...e6.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}F.create=e=>{var t;return new F({checks:[],typeName:e8.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...E(e)})};class R extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;this._def.coerce&&(e.data=Number(e.data));let n=this._getType(e);if(n!==r.number){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.number,received:t.parsedType}),f}let i=new h;for(let n of this._def.checks)if("int"===n.kind)e5.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:n.message}),i.dirty());else if("min"===n.kind){let r=n.inclusive?e.data<n.value:e.data<=n.value;r&&(d(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty())}else if("max"===n.kind){let r=n.inclusive?e.data>n.value:e.data>=n.value;r&&(d(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),i.dirty())}else"multipleOf"===n.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return a%s/Math.pow(10,i)}(e.data,n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:n.message}),i.dirty()):e5.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e6.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e6.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e6.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e6.toString(t))}setLimit(e,t,n,r){return new R({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:e6.toString(r)}]})}_addCheck(e){return new R({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e6.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e6.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e6.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e6.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e6.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e6.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:e6.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:e6.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:e6.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&e5.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}R.create=e=>new R({checks:[],typeName:e8.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...E(e)});class N extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;this._def.coerce&&(e.data=BigInt(e.data));let n=this._getType(e);if(n!==r.bigint){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.bigint,received:t.parsedType}),f}let i=new h;for(let n of this._def.checks)if("min"===n.kind){let r=n.inclusive?e.data<n.value:e.data<=n.value;r&&(d(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty())}else if("max"===n.kind){let r=n.inclusive?e.data>n.value:e.data>=n.value;r&&(d(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),i.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(d(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),i.dirty()):e5.assertNever(n);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e6.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e6.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e6.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e6.toString(t))}setLimit(e,t,n,r){return new N({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:e6.toString(r)}]})}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:e6.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:e6.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:e6.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:e6.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e6.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}N.create=e=>{var t;return new N({checks:[],typeName:e8.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...E(e)})};class B extends A{_parse(e){this._def.coerce&&(e.data=!!e.data);let t=this._getType(e);if(t!==r.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.boolean,received:t.parsedType}),f}return m(e.data)}}B.create=e=>new B({typeName:e8.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...E(e)});class M extends A{_parse(e){let t;this._def.coerce&&(e.data=new Date(e.data));let n=this._getType(e);if(n!==r.date){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.date,received:t.parsedType}),f}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_date}),f}let i=new h;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),i.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),i.dirty()):e5.assertNever(n);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new M({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e6.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e6.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}M.create=e=>new M({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:e8.ZodDate,...E(e)});class j extends A{_parse(e){let t=this._getType(e);if(t!==r.symbol){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.symbol,received:t.parsedType}),f}return m(e.data)}}j.create=e=>new j({typeName:e8.ZodSymbol,...E(e)});class L extends A{_parse(e){let t=this._getType(e);if(t!==r.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.undefined,received:t.parsedType}),f}return m(e.data)}}L.create=e=>new L({typeName:e8.ZodUndefined,...E(e)});class U extends A{_parse(e){let t=this._getType(e);if(t!==r.null){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.null,received:t.parsedType}),f}return m(e.data)}}U.create=e=>new U({typeName:e8.ZodNull,...E(e)});class z extends A{constructor(){super(...arguments),this._any=!0}_parse(e){return m(e.data)}}z.create=e=>new z({typeName:e8.ZodAny,...E(e)});class q extends A{constructor(){super(...arguments),this._unknown=!0}_parse(e){return m(e.data)}}q.create=e=>new q({typeName:e8.ZodUnknown,...E(e)});class G extends A{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.never,received:t.parsedType}),f}}G.create=e=>new G({typeName:e8.ZodNever,...E(e)});class Z extends A{_parse(e){let t=this._getType(e);if(t!==r.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.void,received:t.parsedType}),f}return m(e.data)}}Z.create=e=>new Z({typeName:e8.ZodVoid,...E(e)});class W extends A{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==r.array)return d(t,{code:a.invalid_type,expected:r.array,received:t.parsedType}),f;if(null!==i.exactLength){let e=t.data.length>i.exactLength.value,r=t.data.length<i.exactLength.value;(e||r)&&(d(t,{code:e?a.too_big:a.too_small,minimum:r?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(d(t,{code:a.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(d(t,{code:a.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>i.type._parseAsync(new w(t,e,t.path,n)))).then(e=>h.mergeArray(n,e));let s=[...t.data].map((e,n)=>i.type._parseSync(new w(t,e,t.path,n)));return h.mergeArray(n,s)}get element(){return this._def.type}min(e,t){return new W({...this._def,minLength:{value:e,message:e6.toString(t)}})}max(e,t){return new W({...this._def,maxLength:{value:e,message:e6.toString(t)}})}length(e,t){return new W({...this._def,exactLength:{value:e,message:e6.toString(t)}})}nonempty(e){return this.min(1,e)}}W.create=(e,t)=>new W({type:e,minLength:null,maxLength:null,exactLength:null,typeName:e8.ZodArray,...E(t)});class $ extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e5.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==r.object){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.object,received:t.parsedType}),f}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),u=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(let e in i.data)o.includes(e)||u.push(e);let c=[];for(let e of o){let t=s[e],n=i.data[e];c.push({key:{status:"valid",value:e},value:t._parse(new w(i,n,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof G){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of u)c.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)u.length>0&&(d(i,{code:a.unrecognized_keys,keys:u}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of u){let n=i.data[t];c.push({key:{status:"valid",value:t},value:e._parse(new w(i,n,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of c){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(n,e)):h.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return e6.errToObj,new $({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,s;let o=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=e6.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new $({...this._def,unknownKeys:"strip"})}passthrough(){return new $({...this._def,unknownKeys:"passthrough"})}extend(e){return new $({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new $({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:e8.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new $({...this._def,catchall:e})}pick(e){let t={};return e5.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new $({...this._def,shape:()=>t})}omit(e){let t={};return e5.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new $({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof $){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=ec.create(e(i))}return new $({...t._def,shape:()=>n})}return t instanceof W?new W({...t._def,type:e(t.element)}):t instanceof ec?ec.create(e(t.unwrap())):t instanceof el?el.create(e(t.unwrap())):t instanceof J?J.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return e5.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new $({...this._def,shape:()=>t})}required(e){let t={};return e5.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n],r=e;for(;r instanceof ec;)r=r._def.innerType;t[n]=r}}),new $({...this._def,shape:()=>t})}keyof(){return ei(e5.objectKeys(this.shape))}}$.create=(e,t)=>new $({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:e8.ZodObject,...E(t)}),$.strictCreate=(e,t)=>new $({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:e8.ZodObject,...E(t)}),$.lazycreate=(e,t)=>new $({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:e8.ZodObject,...E(t)});class H extends A{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new s(e.ctx.common.issues));return d(t,{code:a.invalid_union,unionErrors:n}),f});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new s(e));return d(t,{code:a.invalid_union,unionErrors:i}),f}}get options(){return this._def.options}}H.create=(e,t)=>new H({options:e,typeName:e8.ZodUnion,...E(t)});let Q=e=>{if(e instanceof en)return Q(e.schema);if(e instanceof eu)return Q(e.innerType());if(e instanceof er)return[e.value];if(e instanceof ea)return e.options;if(e instanceof es)return Object.keys(e.enum);if(e instanceof ed)return Q(e._def.innerType);if(e instanceof L)return[void 0];else if(e instanceof U)return[null];else return null};class V extends A{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return d(t,{code:a.invalid_type,expected:r.object,received:t.parsedType}),f;let n=this.discriminator,i=t.data[n],s=this.optionsMap.get(i);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),f)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=Q(n.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new V({typeName:e8.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...E(n)})}}class K extends A{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),s=(e,s)=>{if(g(e)||g(s))return f;let o=function e(t,n){let a=i(t),s=i(n);if(t===n)return{valid:!0,data:t};if(a===r.object&&s===r.object){let r=e5.objectKeys(n),i=e5.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(a===r.array&&s===r.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=t[i],s=n[i],o=e(a,s);if(!o.valid)return{valid:!1};r.push(o.data)}return{valid:!0,data:r}}return a===r.date&&s===r.date&&+t==+n?{valid:!0,data:t}:{valid:!1}}(e.value,s.value);return o.valid?((y(e)||y(s))&&t.dirty(),{status:t.value,value:o.data}):(d(n,{code:a.invalid_intersection_types}),f)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}K.create=(e,t,n)=>new K({left:e,right:t,typeName:e8.ZodIntersection,...E(n)});class J extends A{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.array)return d(n,{code:a.invalid_type,expected:r.array,received:n.parsedType}),f;if(n.data.length<this._def.items.length)return d(n,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),f;let i=this._def.rest;!i&&n.data.length>this._def.items.length&&(d(n,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new w(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(s).then(e=>h.mergeArray(t,e)):h.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new J({...this._def,rest:e})}}J.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J({items:e,typeName:e8.ZodTuple,rest:null,...E(t)})};class Y extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.object)return d(n,{code:a.invalid_type,expected:r.object,received:n.parsedType}),f;let i=[],s=this._def.keyType,o=this._def.valueType;for(let e in n.data)i.push({key:s._parse(new w(n,e,n.path,e)),value:o._parse(new w(n,n.data[e],n.path,e))});return n.common.async?h.mergeObjectAsync(t,i):h.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new Y(t instanceof A?{keyType:e,valueType:t,typeName:e8.ZodRecord,...E(n)}:{keyType:F.create(),valueType:e,typeName:e8.ZodRecord,...E(t)})}}class X extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.map)return d(n,{code:a.invalid_type,expected:r.map,received:n.parsedType}),f;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([e,t],r)=>({key:i._parse(new w(n,e,n.path,[r,"key"])),value:s._parse(new w(n,t,n.path,[r,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of o){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return f;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of o){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return f;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}X.create=(e,t,n)=>new X({valueType:t,keyType:e,typeName:e8.ZodMap,...E(n)});class ee extends A{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.set)return d(n,{code:a.invalid_type,expected:r.set,received:n.parsedType}),f;let i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(d(n,{code:a.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(d(n,{code:a.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let s=this._def.valueType;function o(e){let n=new Set;for(let r of e){if("aborted"===r.status)return f;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let u=[...n.data.values()].map((e,t)=>s._parse(new w(n,e,n.path,t)));return n.common.async?Promise.all(u).then(e=>o(e)):o(u)}min(e,t){return new ee({...this._def,minSize:{value:e,message:e6.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:e6.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:e8.ZodSet,...E(t)});class et extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return d(t,{code:a.invalid_type,expected:r.function,received:t.parsedType}),f;function n(e,n){return l({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),o].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:n}})}function i(e,n){return l({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),o].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:n}})}let u={errorMap:t.common.contextualErrorMap},h=t.data;if(this._def.returns instanceof eo){let e=this;return m(async function(...t){let r=new s([]),a=await e._def.args.parseAsync(t,u).catch(e=>{throw r.addIssue(n(t,e)),r}),o=await Reflect.apply(h,this,a),c=await e._def.returns._def.type.parseAsync(o,u).catch(e=>{throw r.addIssue(i(o,e)),r});return c})}{let e=this;return m(function(...t){let r=e._def.args.safeParse(t,u);if(!r.success)throw new s([n(t,r.error)]);let a=Reflect.apply(h,this,r.data),o=e._def.returns.safeParse(a,u);if(!o.success)throw new s([i(a,o.error)]);return o.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:J.create(e).rest(q.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new et({args:e||J.create([]).rest(q.create()),returns:t||q.create(),typeName:e8.ZodFunction,...E(n)})}}class en extends A{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}en.create=(e,t)=>new en({getter:e,typeName:e8.ZodLazy,...E(t)});class er extends A{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),f}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ei(e,t){return new ea({values:e,typeName:e8.ZodEnum,...E(t)})}er.create=(e,t)=>new er({value:e,typeName:e8.ZodLiteral,...E(t)});class ea extends A{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return d(t,{expected:e5.joinValues(n),received:t.parsedType,code:a.invalid_type}),f}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return d(t,{received:t.data,code:a.invalid_enum_value,options:n}),f}return m(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return ea.create(e)}exclude(e){return ea.create(this.options.filter(t=>!e.includes(t)))}}ea.create=ei;class es extends A{_parse(e){let t=e5.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==r.string&&n.parsedType!==r.number){let e=e5.objectValues(t);return d(n,{expected:e5.joinValues(e),received:n.parsedType,code:a.invalid_type}),f}if(-1===t.indexOf(e.data)){let e=e5.objectValues(t);return d(n,{received:n.data,code:a.invalid_enum_value,options:e}),f}return m(e.data)}get enum(){return this._def.values}}es.create=(e,t)=>new es({values:e,typeName:e8.ZodNativeEnum,...E(t)});class eo extends A{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.promise&&!1===t.common.async)return d(t,{code:a.invalid_type,expected:r.promise,received:t.parsedType}),f;let n=t.parsedType===r.promise?t.data:Promise.resolve(t.data);return m(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eo.create=(e,t)=>new eo({type:e,typeName:e8.ZodPromise,...E(t)});class eu extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===e8.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{d(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?f:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?f:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>b(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!b(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}e5.assertNever(r)}}eu.create=(e,t,n)=>new eu({schema:e,typeName:e8.ZodEffects,effect:t,...E(n)}),eu.createWithPreprocess=(e,t,n)=>new eu({schema:t,effect:{type:"preprocess",transform:e},typeName:e8.ZodEffects,...E(n)});class ec extends A{_parse(e){let t=this._getType(e);return t===r.undefined?m(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:e8.ZodOptional,...E(t)});class el extends A{_parse(e){let t=this._getType(e);return t===r.null?m(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}el.create=(e,t)=>new el({innerType:e,typeName:e8.ZodNullable,...E(t)});class ed extends A{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===r.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:e8.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...E(t)});class eh extends A{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return v(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new s(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:e8.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...E(t)});class ef extends A{_parse(e){let t=this._getType(e);if(t!==r.nan){let t=this._getOrReturnCtx(e);return d(t,{code:a.invalid_type,expected:r.nan,received:t.parsedType}),f}return{status:"valid",value:e.data}}}ef.create=e=>new ef({typeName:e8.ZodNaN,...E(e)});let ep=Symbol("zod_brand");class em extends A{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eg extends A{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){let e=async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?f:"dirty"===e.status?(t.dirty(),p(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})};return e()}{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?f:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eg({in:e,out:t,typeName:e8.ZodPipeline})}}class ey extends A{_parse(e){let t=this._def.innerType._parse(e);return b(t)&&(t.value=Object.freeze(t.value)),t}}ey.create=(e,t)=>new ey({innerType:e,typeName:e8.ZodReadonly,...E(t)});let eb=(e,t={},n)=>e?z.create().superRefine((r,i)=>{var a,s;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s,u="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...u,fatal:o})}}):z.create(),ev={object:$.lazycreate};(e2=e8||(e8={})).ZodString="ZodString",e2.ZodNumber="ZodNumber",e2.ZodNaN="ZodNaN",e2.ZodBigInt="ZodBigInt",e2.ZodBoolean="ZodBoolean",e2.ZodDate="ZodDate",e2.ZodSymbol="ZodSymbol",e2.ZodUndefined="ZodUndefined",e2.ZodNull="ZodNull",e2.ZodAny="ZodAny",e2.ZodUnknown="ZodUnknown",e2.ZodNever="ZodNever",e2.ZodVoid="ZodVoid",e2.ZodArray="ZodArray",e2.ZodObject="ZodObject",e2.ZodUnion="ZodUnion",e2.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e2.ZodIntersection="ZodIntersection",e2.ZodTuple="ZodTuple",e2.ZodRecord="ZodRecord",e2.ZodMap="ZodMap",e2.ZodSet="ZodSet",e2.ZodFunction="ZodFunction",e2.ZodLazy="ZodLazy",e2.ZodLiteral="ZodLiteral",e2.ZodEnum="ZodEnum",e2.ZodEffects="ZodEffects",e2.ZodNativeEnum="ZodNativeEnum",e2.ZodOptional="ZodOptional",e2.ZodNullable="ZodNullable",e2.ZodDefault="ZodDefault",e2.ZodCatch="ZodCatch",e2.ZodPromise="ZodPromise",e2.ZodBranded="ZodBranded",e2.ZodPipeline="ZodPipeline",e2.ZodReadonly="ZodReadonly";let ew=F.create,e_=R.create,eE=ef.create,eA=N.create,ex=B.create,eC=M.create,eS=j.create,ek=L.create,eD=U.create,eI=z.create,eO=q.create,eT=G.create,eP=Z.create,eF=W.create,eR=$.create,eN=$.strictCreate,eB=H.create,eM=V.create,ej=K.create,eL=J.create,eU=Y.create,ez=X.create,eq=ee.create,eG=et.create,eZ=en.create,eW=er.create,e$=ea.create,eH=es.create,eQ=eo.create,eV=eu.create,eK=ec.create,eJ=el.create,eY=eu.createWithPreprocess,eX=eg.create;var e0,e1,e2,e5,e3,e6,e8,e4=Object.freeze({__proto__:null,defaultErrorMap:o,setErrorMap:function(e){u=e},getErrorMap:c,makeIssue:l,EMPTY_PATH:[],addIssueToContext:d,ParseStatus:h,INVALID:f,DIRTY:p,OK:m,isAborted:g,isDirty:y,isValid:b,isAsync:v,get util(){return e5},get objectUtil(){return e3},ZodParsedType:r,getParsedType:i,ZodType:A,ZodString:F,ZodNumber:R,ZodBigInt:N,ZodBoolean:B,ZodDate:M,ZodSymbol:j,ZodUndefined:L,ZodNull:U,ZodAny:z,ZodUnknown:q,ZodNever:G,ZodVoid:Z,ZodArray:W,ZodObject:$,ZodUnion:H,ZodDiscriminatedUnion:V,ZodIntersection:K,ZodTuple:J,ZodRecord:Y,ZodMap:X,ZodSet:ee,ZodFunction:et,ZodLazy:en,ZodLiteral:er,ZodEnum:ea,ZodNativeEnum:es,ZodPromise:eo,ZodEffects:eu,ZodTransformer:eu,ZodOptional:ec,ZodNullable:el,ZodDefault:ed,ZodCatch:eh,ZodNaN:ef,BRAND:ep,ZodBranded:em,ZodPipeline:eg,ZodReadonly:ey,custom:eb,Schema:A,ZodSchema:A,late:ev,get ZodFirstPartyTypeKind(){return e8},coerce:{string:e=>F.create({...e,coerce:!0}),number:e=>R.create({...e,coerce:!0}),boolean:e=>B.create({...e,coerce:!0}),bigint:e=>N.create({...e,coerce:!0}),date:e=>M.create({...e,coerce:!0})},any:eI,array:eF,bigint:eA,boolean:ex,date:eC,discriminatedUnion:eM,effect:eV,enum:e$,function:eG,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eb(t=>t instanceof e,t),intersection:ej,lazy:eZ,literal:eW,map:ez,nan:eE,nativeEnum:eH,never:eT,null:eD,nullable:eJ,number:e_,object:eR,oboolean:()=>ex().optional(),onumber:()=>e_().optional(),optional:eK,ostring:()=>ew().optional(),pipeline:eX,preprocess:eY,promise:eQ,record:eU,set:eq,strictObject:eN,string:ew,symbol:eS,transformer:eV,tuple:eL,undefined:ek,union:eB,unknown:eO,void:eP,NEVER:f,ZodIssueCode:a,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:s})},41235:function(e,t,n){"use strict";n.d(t,{m5:function(){return W},ug:function(){return G},aO:function(){return $},S7:function(){return H}});var r=n(71442),i=n(8559);let a=(0,i.ax)({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),s=(0,i.ax)({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}),o=(0,i.ax)({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}}}),u=(0,i.ax)({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});var c=n(59701),l=n(53936),d=n(91409),h=n(91810);let f={block:(0,l.G)({format(e){let t=e.transactions?.map(e=>{if("string"==typeof e)return e;let t=d.Tr(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?c.y_(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t});return{transactions:t,stateRoot:e.stateRoot}}}),transaction:(0,d.y_)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,c.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:(0,h.d)({format:e=>({l1GasPrice:e.l1GasPrice?(0,c.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,c.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,c.y_)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})},p=(0,i.ax)({id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-mainnet.g.alchemy.com/v2"],webSocket:["wss://base-mainnet.g.alchemy.com/v2"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://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}}},{formatters:f}),m=(0,i.ax)({id:84531,network:"base-goerli",name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-goerli.g.alchemy.com/v2"],webSocket:["wss://base-goerli.g.alchemy.com/v2"]},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,sourceId:5},{formatters:f}),g=(0,i.ax)({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}}});var y=n(36493),b=n(56720);let v={block:(0,l.G)({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(e){let t=e.transactions?.map(e=>"string"==typeof e?e:{...d.Tr(e),feeCurrency:e.feeCurrency,gatewayFee:e.gatewayFee?c.y_(e.gatewayFee):null,gatewayFeeRecipient:e.gatewayFeeRecipient});return{randomness:e.randomness,transactions:t}}}),transaction:(0,d.y_)({format:e=>({feeCurrency:e.feeCurrency,gatewayFee:e.gatewayFee?(0,c.y_)(e.gatewayFee):null,gatewayFeeRecipient:e.gatewayFeeRecipient})}),transactionReceipt:(0,h.d)({format:e=>({feeCurrency:e.feeCurrency,gatewayFee:e.gatewayFee?(0,c.y_)(e.gatewayFee):null,gatewayFeeRecipient:e.gatewayFeeRecipient})}),transactionRequest:(0,b.iy)({format(e){let t={feeCurrency:e.feeCurrency,gatewayFee:void 0!==e.gatewayFee?(0,y.eC)(e.gatewayFee):void 0,gatewayFeeRecipient:e.gatewayFeeRecipient};return"cip42"===e.type&&(t.type="0x7c"),t}})};var w=n(13200),_=n(35831),E=n(78868),A=n(61173),x=n(56803),C=n(56232),S=n(23540),k=n(17951);function D(e,t){let n=t||"hex";return function(e,t="bytes"){return"hex"===t?(0,y.ci)(e):e}(function e(t){if(Array.isArray(t)){let n=(0,C.zo)(t.map(e));return new Uint8Array([...I(n.length,192),...n])}return 1===t.length&&t[0]<128?t:new Uint8Array([...I(t.length,128),...t])}(function e(t){return Array.isArray(t)?t.map(e):"string"==typeof t?(0,k.O0)(t):t}(e)),n)}function I(e,t){return e<56?[t+e]:[(0,k.O0)(e).length+t+55,...(0,k.O0)(e)]}var O=n(1740);function T(e){if(!e||0===e.length)return[];let t=[];for(let n=0;n<e.length;n++){let{address:r,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new O.JC({storageKey:i[e]});if(!(0,x.U)(r))throw new w.b({address:r});t.push([r,i])}return t}var P=n(910);let F=(0,i.ax)({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},{formatters:v,serializers:{transaction:(e,t)=>"maxFeePerGas"in e&&"maxPriorityFeePerGas"in e&&("feeCurrency"in e||"gatewayFee"in e||"gatewayFeeRecipient"in e)?function(e,t){!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a,feeCurrency:s,gatewayFee:o,gatewayFeeRecipient:u}=e;if(t<=0)throw new E.hJ({chainId:t});if(a&&!(0,x.U)(a))throw new w.b({address:a});if(r)throw new _.G("`gasPrice` is not a valid CIP-42 Transaction attribute.");if(i&&i>0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn)throw new A.Hh({maxFeePerGas:i});if(n&&i&&n>i)throw new A.cs({maxFeePerGas:i,maxPriorityFeePerGas:n});if(o&&!u||u&&!o)throw new _.G("`gatewayFee` and `gatewayFeeRecipient` must be provided together.");if(s&&!s?.startsWith("0x"))throw new _.G("`feeCurrency` MUST be a token address for CIP-42 transactions.");if(!s&&!u)throw new _.G("Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.")}(e);let{chainId:n,gas:r,nonce:i,to:a,value:s,maxFeePerGas:o,maxPriorityFeePerGas:u,accessList:c,feeCurrency:l,gatewayFeeRecipient:d,gatewayFee:h,data:f}=e,p=[(0,y.NC)(n),i?(0,y.NC)(i):"0x",u?(0,y.NC)(u):"0x",o?(0,y.NC)(o):"0x",r?(0,y.NC)(r):"0x",l??"0x",d??"0x",h?(0,y.NC)(h):"0x",a??"0x",s?(0,y.NC)(s):"0x",f??"0x",T(c)];return t&&p.push(27n===t.v?"0x":(0,y.NC)(1),(0,S.f)(t.r),(0,S.f)(t.s)),(0,C.SM)(["0x7c",D(p)])}(e,t):function(e,t){let n=(0,P.l)(e);return"eip1559"===n?function(e,t){let{chainId:n,gas:r,nonce:i,to:a,value:s,maxFeePerGas:o,maxPriorityFeePerGas:u,accessList:c,data:l}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(t<=0)throw new E.hJ({chainId:t});if(a&&!(0,x.U)(a))throw new w.b({address:a});if(r)throw new _.G("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(i&&i>2n**256n-1n)throw new A.Hh({maxFeePerGas:i});if(n&&i&&n>i)throw new A.cs({maxFeePerGas:i,maxPriorityFeePerGas:n})}(e);let d=T(c),h=[(0,y.NC)(n),i?(0,y.NC)(i):"0x",u?(0,y.NC)(u):"0x",o?(0,y.NC)(o):"0x",r?(0,y.NC)(r):"0x",a??"0x",s?(0,y.NC)(s):"0x",l??"0x",d];return t&&h.push(27n===t.v?"0x":(0,y.NC)(1),(0,S.f)(t.r),(0,S.f)(t.s)),(0,C.SM)(["0x02",D(h)])}(e,t):"eip2930"===n?function(e,t){let{chainId:n,gas:r,data:i,nonce:a,to:s,value:o,accessList:u,gasPrice:c}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(t<=0)throw new E.hJ({chainId:t});if(a&&!(0,x.U)(a))throw new w.b({address:a});if(n||i)throw new _.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new A.Hh({maxFeePerGas:r})}(e);let l=T(u),d=[(0,y.NC)(n),a?(0,y.NC)(a):"0x",c?(0,y.NC)(c):"0x",r?(0,y.NC)(r):"0x",s??"0x",o?(0,y.NC)(o):"0x",i??"0x",l];return t&&d.push(27n===t.v?"0x":(0,y.NC)(1),t.r,t.s),(0,C.SM)(["0x01",D(d)])}(e,t):function(e,t){let{chainId:n=0,gas:r,data:i,nonce:a,to:s,value:o,gasPrice:u}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a,accessList:s}=e;if(a&&!(0,x.U)(a))throw new w.b({address:a});if(void 0!==t&&t<=0)throw new E.hJ({chainId:t});if(n||i)throw new _.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new A.Hh({maxFeePerGas:r});if(s)throw new _.G("`accessList` is not a valid Legacy Transaction attribute.")}(e);let c=[a?(0,y.NC)(a):"0x",u?(0,y.NC)(u):"0x",r?(0,y.NC)(r):"0x",s??"0x",o?(0,y.NC)(o):"0x",i??"0x"];if(t){let e=27n+(27n===t.v?0n:1n);if(n>0)e=BigInt(2*n)+BigInt(35n+t.v-27n);else if(t.v!==e)throw new O.vl({v:t.v});c=[...c,(0,y.NC)(e),t.r,t.s]}else n>0&&(c=[...c,(0,y.NC)(n),"0x","0x"]);return D(c)}(e,t)}(e,t)}}),R=(0,i.ax)({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"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}});var N=n(38544);let B=(0,i.ax)({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:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0}),M=(0,i.ax)({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}}},{formatters:f}),j=(0,i.ax)({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},{formatters:f}),L=(0,i.ax)({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),U=(0,i.ax)({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://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},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});var z=n(80834);let q=[r.R.id,a.id,s.id,o.id,u.id,p.id,m.id,g.id,F.id,R.id,N.w.id,B.id,M.id,j.id,L.id,U.id],G={mainnet:r.R,arbitrum:a,arbitrumGoerli:s,avalanche:o,avalancheFuji:u,base:p,baseGoerli:m,bsc:g,celo:F,gnosis:R,goerli:N.w,sepolia:B,optimism:M,optimismGoerli:j,polygon:L,polygonMumbai:U},Z=Object.values(G).sort((e,t)=>{let n=!!e.testnet,r=!!t.testnet;return n!==r?n?1:-1:0}),W=z.z.custom(e=>q.some(t=>t===Number(e))),$=z.z.object({id:W}).transform(e=>e),H=Z}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(73703),t(21807),t(8085)}),_N_E=e.O()}]);