(function(){"use strict";constx=n=>typeofn.prev=="function"?n.prev:x(n.prev);var$=(n,e,t)=>{constr=e[n][t];returnr===void0?e[t]:x(r)};classM{constructor(e,t,r){this.data={id:e,func:(i,...o)=>r(i,typeofthis.prev=="function"?this.prev:this.prev.data.func,o)},this.prev=t}}varL=(n,e,t,r)=>{consti=n[r][e];if(i.data.id===t){if(typeofi.prev=="function"){n[e]=i.prev,deleten[r][e];return}n[r][e]=i.prev,n[e]=i.prev.data.func;return}consto=a=>a&&typeofa.prev=="object"?(a.data=a.prev.data,a.prev=a.prev.prev,o(a.prev)):!0,u=a=>{if(!a)thrownewError("could not find unpatch");returntypeofa.prev=="object"&&a.data.id!==t?u(a.prev):o(a)};letf=Object.assign({},i);u(f),n[r][e]=f,n[e]=f.data.func},k=function(n,e,t,r,i){if(r==="m")thrownewTypeError("Private method is not writable");if(r==="a"&&!i)thrownewTypeError("Private accessor was defined without a setter");if(typeofe=="function"?n!==e||!i:!e.has(n))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returnr==="a"?i.call(n,t):i?i.value=t:e.set(n,t),t},s=function(n,e,t,r){if(t==="a"&&!r)thrownewTypeError("Private accessor was defined without a getter");if(typeofe=="function"?n!==e||!r:!e.has(n))thrownewTypeError("Cannot read private member from an object whose class did not declare it");returnt==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},v,d,m,R;classU{constructor(e="simian"){v.add(this),d.set(this,void0),m.set(this,void0),k(this,d,Symbol(e),"f"),k(this,m,newSet,"f"),this.after=s(this,v,"m",R).call(this,"AFTER"),this.before=s(this,v,"m",R).call(this,"BEFORE"),this.instead=s(this,v,"m",R).call(this,"INSTEAD")}cleanupAll(){for(consteofs(this,m,"f")){for(consttine[s(this,d,"f")]){constr=$(s(this,d,"f"),e,t);e[t]=r,e[s(this,d,"f")][t]=void0}e[s(this,d,"f")]=void0,deletee[s(this,d,"f")]}s(this,m,"f").clear()}}d=newWeakMap,m=newWeakMap,v=newWeakSet,R=function(e){return(t,r,i)=>{consto=r[t];if(typeofo!="function")thrownewError(`${t} is not a function on ${r}`);constu=Symbol();r[s(this,d,"f")]===void0&&(r[s(this,d,"f")]={});letf;switch(e){case"AFTER":f=(w,E,_)=>{lety=E.apply(w,_);constb=i.apply(w,[_,y]);returntypeofb!="undefined"&&(y=b),y};break;case"BEFORE":f=(w,E,_)=>{vary;letb=_;constI=(y=i.apply(w,[_]))!==null&&y!==void0?y:_;returnArray.isArray(I)&&(b=I),E.apply(w,b)};break;case"INSTEAD":f=(w,E,_)=>i.apply(w,[_,E.bind(w)]);break}leta=r[s(this,d,"f")][t];returna===void0?a=newM(u,o,f):a=newM(u,a,f),r[s(this,d,"f")][t]=a,r[t]=function(){returna.data.func(this,...arguments)},Object.assign(r[t],o),s(this,m,"f").add(r),()=>L(r,t,u,s(this,d,"f"))}};functionW(){letn={};returnwindow.webpackChunkdiscord_app.push([[Math.random().toString(36)],{},e=>{n=e}]),n.c}functionG(n,e){lett=[];for(constrine){consti=e[r].exports;i&&(i.default&&i.__esModule&&n(i.default)?t.push(i.default):n(i)&&t.push(i))}returnt}letp={modules:W(),filter:G,find:n=>p.filter(n,p.modules)[0],findAll:n=>p.filter(n,p.modules),findByProps:(...n)=>p.find(e=>n.every(t=>e[t]!==void0)),findByPropsAll:(...n)=>p.findAll(e=>n.every(t=>e[t]!==void0))};functionz(){varn=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!n||!indexedDB.databases)returnPromise.resolve();vare;returnnewPromise(function(t){varr=function(){returnindexedDB.databases().finally(t)};e=setInterval(r,100),r()}).finally(function(){returnclearInterval(e)})}functionl(n){returnnewPromise((e,t)=>{n.oncomplete=n.onsuccess=()=>e(n.result),n.onabort=n.onerror=()=>t(n.error)})}functionA(n,e){constt=z().then(()=>{constr=indexedDB.open(n);returnr.onupgradeneeded=()=>r.result.createObjectStore(e),l(r)});return(r,i)=>t.then(o=>i(o.transaction(e,r).objectStore(e)))}letO;functionc(){returnO||(O=A("keyval-store","keyval")),O}functionh(n,e=c()){returne("readonly",t=>l(t.get(n)))}functionP(n,e,t=c()){returnt("readwrite",r=>(r.put(e,n),l(r.transaction)))}functionH(n,e=c()){returne("readwrite",t=>(n.forEach(r=>t.put(r[1],r[0])),l(t.transaction)))}functionY(n,e=c()){returne("readonly",t