"use strict";(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([["70791"],{877369:function(t,e){e.byteLength=function(t){var e=c(t),s=e[0],i=e[1];return(s+i)*3/4-i},e.toByteArray=function(t){var e,s,r=c(t),o=r[0],a=r[1],h=new n((o+a)*3/4-a),u=0,_=a>0?o-4:o;for(s=0;s<_;s+=4)e=i[t.charCodeAt(s)]<<18|i[t.charCodeAt(s+1)]<<12|i[t.charCodeAt(s+2)]<<6|i[t.charCodeAt(s+3)],h[u++]=e>>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===a&&(e=i[t.charCodeAt(s)]<<2|i[t.charCodeAt(s+1)]>>4,h[u++]=255&e),1===a&&(e=i[t.charCodeAt(s)]<<10|i[t.charCodeAt(s+1)]<<4|i[t.charCodeAt(s+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h},e.fromByteArray=function(t){for(var e,i=t.length,n=i%3,r=[],o=0,a=i-n;o>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return r.join("")}(t,o,o+16383>a?a:o+16383));return 1===n?r.push(s[(e=t[i-1])>>2]+s[e<<4&63]+"=="):2===n&&r.push(s[(e=(t[i-2]<<8)+t[i-1])>>10]+s[e>>4&63]+s[e<<2&63]+"="),r.join("")};for(var s=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=r.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var s=t.indexOf("=");-1===s&&(s=e);var i=s===e?0:4-s%4;return[s,i]}i[45]=62,i[95]=63},833873:function(t,e,s){s.d(e,{G:()=>r});var i=s(356442),n=s(117654);function r(t){let e=(0,i.q)(t);return e.acs?e.acs:(0,n.O)()}},117654:function(t,e,s){s.d(e,{O:()=>d});var i=s(573736),n=s(592014),r=s(307854),o=s(356442);class a{constructor(t,e){let s,i;s=t||new r.s,i=e||new r.s,this._stack=[{scope:s}],this._isolationScope=i}withScope(t){let e,s=this._pushScope();try{e=t(s)}catch(t){throw this._popScope(),t}return(0,i.J8)(e)?e.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){let t=(0,o.c)(),e=(0,o.q)(t);return e.stack=e.stack||new a((0,n.X)(),(0,n.T)())}function h(t){return c().withScope(t)}function u(t,e){let s=c();return s.withScope(()=>(s.getStackTop().scope=t,e(t)))}function _(t){return c().withScope(()=>t(c().getIsolationScope()))}function d(){return{withIsolationScope:_,withScope:h,withSetScope:u,withSetIsolationScope:(t,e)=>_(e),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},572299:function(t,e,s){s.d(e,{n:()=>o});var i=s(101284),n=s(622916),r=s(263449);function o(t,e){let s=(0,r.s3)(),o=(0,r.aF)();if(!s)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:c=100}=s.getOptions();if(c<=0)return;let h={timestamp:(0,i.yW)(),...t},u=a?(0,n.Cf)(()=>a(h,e)):h;null!==u&&(s.emit&&s.emit("beforeAddBreadcrumb",u,e),o.addBreadcrumb(u,c))}},356442:function(t,e,s){s.d(e,{c:()=>r,q:()=>o});var i=s(899517),n=s(452896);function r(){return o(i.n),i.n}function o(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||n.J,e[n.J]=e[n.J]||{}}},263449:function(t,e,s){s.d(e,{aF:()=>r,s3:()=>o});var i=s(833873),n=s(356442);function r(){let t=(0,n.c)();return(0,i.G)(t).getIsolationScope()}function o(){return(function(){let t=(0,n.c)();return(0,i.G)(t).getCurrentScope()})().getClient()}},592014:function(t,e,s){s.d(e,{T:()=>o,X:()=>r});var i=s(899517),n=s(307854);function r(){return(0,i.Y)("defaultCurrentScope",()=>new n.s)}function o(){return(0,i.Y)("defaultIsolationScope",()=>new n.s)}},307854:function(t,e,s){s.d(e,{s:()=>_});var i=s(731889),n=s(573736),r=s(101284),o=s(394798),a=s(622916),c=s(112797),h=s(99342);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,i.Q)()}clone(){let t=new u;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,(0,h.D)(t,(0,h.Y)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,c.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let e="function"==typeof t?t(this):t,[s,i]=e instanceof _?[e.getScopeData(),e.getRequestSession()]:(0,n.PO)(e)?[t,t.requestSession]:[],{tags:r,extra:o,user:a,contexts:c,level:h,fingerprint:u=[],propagationContext:d}=s||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),h&&(this._level=h),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),i&&(this._requestSession=i),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._session=void 0,(0,h.D)(this,void 0),this._attachments=[],this._propagationContext=(0,i.Q)(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let s="number"==typeof e?e:100;if(s<=0)return this;let i={timestamp:(0,r.yW)(),...t},n=this._breadcrumbs;return n.push(i),this._breadcrumbs=n.length>s?n.slice(-s):n,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,h.Y)(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let s=e&&e.event_id?e.event_id:(0,o.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture exception!"),s;let i=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...e,event_id:s},this),s}captureMessage(t,e,s){let i=s&&s.event_id?s.event_id:(0,o.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture message!"),i;let n=Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:n,...s,event_id:i},this),i}captureEvent(t,e){let s=e&&e.event_id?e.event_id:(0,o.DM)();return this._client?this._client.captureEvent(t,{...e,event_id:s},this):a.kg.warn("No client configured on scope - will not capture event!"),s}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}let _=u},112797:function(t,e,s){s.d(e,{CT:()=>r});var i=s(101284),n=s(394798);function r(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,i.ph)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,n.DM)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}},99342:function(t,e,s){s.d(e,{D:()=>r,Y:()=>o});var i=s(370336);let n="_sentrySpan";function r(t,e){e?(0,i.xp)(t,n,e):delete t[n]}function o(t){return t[n]}},394798:function(t,e,s){s.d(e,{DM:()=>n});var i=s(899517);function n(){let t=i.n,e=t.crypto||t.msCrypto,s=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(s=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&s())>>t/4).toString(16))}},731889:function(t,e,s){s.d(e,{Q:()=>n});var i=s(394798);function n(){return{traceId:(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}},101284:function(t,e,s){s.d(e,{ph:()=>r,yW:()=>n});var i=s(899517);function n(){return Date.now()/1e3}let r=function(){let{performance:t}=i.n;if(!t||!t.now)return n;let e=Date.now()-t.now(),s=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(s+t.now())/1e3}();(()=>{let{performance:t}=i.n;if(!t||!t.now)return;let e=t.now(),s=Date.now(),n=t.timeOrigin?Math.abs(t.timeOrigin+e-s):36e5,r=t.timing&&t.timing.navigationStart,o="number"==typeof r?Math.abs(r+e-s):36e5;if((n<36e5||o<36e5)&&n<=o)return t.timeOrigin})()}}]);
//# sourceMappingURL=079469ebd99e5464.js.map