(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[3985],{198548(t,i,e){"use strict";if(e.d(i,{L:()=>w}),5864==e.j)var s,h,r,a,n,o,f,m,u=e(529163);var c=e(706341),d=e(310530),l=e(850124),y=function(t,i,e,s,h){if("m"===s)throw TypeError("Private method is not writable");if("a"===s&&!h)throw TypeError("Private accessor was defined without a setter");if("function"==typeof i?t!==i||!h:!i.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?h.call(t,e):h?h.value=e:i.set(t,e),e},p=function(t,i,e,s){if("a"===e&&!s)throw TypeError("Private accessor was defined without a getter");if("function"==typeof i?t!==i||!s:!i.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?s:"a"===e?s.call(t):s?s.value:i.get(t)};let _=(null==(s=l)?void 0:s.__esModule)?s.default:s;class w{async fetchQuery(t){return p(this,a,"f").fetchQuery(t)}async fetchInfiniteQuery(t,i){var e;let s=p(this,a,"f").getQueryCache().find({queryKey:t.queryKey});if(!s||!i)return(await p(this,a,"f").fetchInfiniteQuery({...t,queryFn:e=>t.queryFn({...e,pageParam:e.pageParam??i})})).pages[0];let{pages:h}=s.state.data,r=_(i,null==(e=t.getPreviousPageParam)?void 0:e.call(t,h[0],h))?"backward":"forward",n=await s.fetch(void 0,{meta:{fetchMore:{direction:r,pageParam:i}}}),o=n.pageParams.indexOf(i);return n.pages[o]}async invalidateQueries(t,i){return p(this,a,"f").invalidateQueries(t,i)}constructor({name:t,messenger:i}){h.add(this),r.set(this,void 0),a.set(this,new u.E),this.name=t,y(this,r,i,"f"),p(this,h,"m",n).call(this),p(this,h,"m",o).call(this)}}r=new WeakMap,a=new WeakMap,h=new WeakSet,n=function(){p(this,r,"f").registerActionHandler(`${this.name}:invalidateQueries`,(t,i)=>this.invalidateQueries(t,i))},o=function(){p(this,a,"f").getQueryCache().subscribe(t=>{["added","updated","removed"].includes(t.type)&&p(this,h,"m",m).call(this,t.query.queryKey)})},f=function(t){let i=(0,c.Od)(t);return(0,d.hw)(p(this,a,"f"),{shouldDehydrateQuery:t=>t.queryHash===i})},m=function(t){let i=(0,c.Od)(t),e={hash:i,state:p(this,h,"m",f).call(this,t)};p(this,r,"f").publish(`${this.name}:cacheUpdate`,e),p(this,r,"f").publish(`${this.name}:cacheUpdate:${i}`,e)}},476924(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var t=function(t){t==undefined&&(t=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=0x9908b0df,this.UPPER_MASK=0x80000000,this.LOWER_MASK=0x7fffffff,this.mt=new Array(this.N),this.mti=this.N+1,t.constructor==Array?this.init_by_array(t,t.length):this.init_seed(t)};t.prototype.init_seed=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti<this.N;this.mti++){var t=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(((t&0xffff0000)>>>16)*0x6c078965<<16)+(t&65535)*0x6c078965+this.mti,this.mt[this.mti]>>>=0}},t.prototype.init_by_array=function(t,i){var e,s,h;for(this.init_seed(0x12bd6aa),e=1,s=0,h=this.N>i?this.N:i;h;h--){var r=this.mt[e-1]^this.mt[e-1]>>>30;this.mt[e]=(this.mt[e]^(((r&0xffff0000)>>>16)*1664525<<16)+(r&65535)*1664525)+t[s]+s,this.mt[e]>>>=0,e++,s++,e>=this.N&&(this.mt[0]=this.mt[this.N-1],e=1),s>=i&&(s=0)}for(h=this.N-1;h;h--){var r=this.mt[e-1]^this.mt[e-1]>>>30;this.mt[e]=(this.mt[e]^(((r&0xffff0000)>>>16)*0x5d588b65<<16)+(r&65535)*0x5d588b65)-e,this.mt[e]>>>=0,++e>=this.N&&(this.mt[0]=this.mt[this.N-1],e=1)}this.mt[0]=0x80000000},t.prototype.random_int=function(){var t;var i=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var e;for(this.mti==this.N+1&&this.init_seed(5489),e=0;e<this.N-this.M;e++)t=this.mt[e]&this.UPPER_MASK|this.mt[e+1]&this.LOWER_MASK,this.mt[e]=this.mt[e+this.M]^t>>>1^i[t&1];for(;e<this.N-1;e++)t=this.mt[e]&this.UPPER_MASK|this.mt[e+1]&this.LOWER_MASK,this.mt[e]=this.mt[e+(this.M-this.N)]^t>>>1^i[t&1];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^i[t&1],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&0x9d2c5680,t^=t<<15&0xefc60000,(t^=t>>>18)>>>0},t.prototype.random_int31=function(){return this.random_int()>>>1},t.prototype.random_incl=function(){return this.random_int()*(1/0xffffffff)},t.prototype.random=function(){return this.random_int()*(1/0x100000000)},t.prototype.random_excl=function(){return(this.random_int()+.5)*(1/0x100000000)},t.prototype.random_long=function(){return((this.random_int()>>>5)*0x4000000+(this.random_int()>>>6))*(1/0x20000000000000)},module.exports=t}}).call(__webpack_require__._LM_("@metamask/jazzicon>mersenne-twister",{module,__webpack_require__}))()}}]);