(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{51131:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="production"},81703:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},71195:function(t,e,n){"use strict";n.d(e,{RP:function(){return function t(e,n,r,u=0){return new i.cW((i,c)=>{let l=e[u];if(null===n||"function"!=typeof l)i(n);else{let p=l({...n},r);o.X&&l.id&&null===p&&s.kg.log(`Event processor "${l.id}" dropped event`),(0,a.J8)(p)?p.then(n=>t(e,n,r,u+1).then(i)).then(null,c):t(e,p,r,u+1).then(i).then(null,c)}})}},cc:function(){return c},fH:function(){return u}});var r=n(71235),i=n(96893),s=n(12343),a=n(67597),o=n(81703);function u(){return(0,r.YO)("globalEventProcessors",()=>[])}function c(t){u().push(t)}},64487:function(t,e,n){"use strict";n.d(e,{$e:function(){return o},Tb:function(){return s},e:function(){return a},s3:function(){return u}});var r=n(95659),i=n(88942);function s(t,e){return(0,r.Gd)().captureException(t,(0,i.U0)(e))}function a(t){(0,r.Gd)().configureScope(t)}function o(t){(0,r.Gd)().withScope(t)}function u(){return(0,r.Gd)().getClient()}},95659:function(t,e,n){"use strict";n.d(e,{Gd:function(){return m},cu:function(){return h}});var r=n(62844),i=n(21170),s=n(12343),a=n(71235),o=n(51131),u=n(81703),c=n(10350),l=n(9015),p=n(40105);let d=parseFloat(p.J);class f{constructor(t,e=new c.s,n=d){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){let e=this.getStackTop();e.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){let t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){let e=this.pushScope();try{t(e)}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(t,e){let n=this._lastEventId=e&&e.event_id?e.event_id:(0,r.DM)(),i=Error("Sentry syntheticException");return this._withClient((r,s)=>{r.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},s)}),n}captureMessage(t,e,n){let i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),s=Error(t);return this._withClient((r,a)=>{r.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:i},a)}),i}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,r.DM)();return t.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let u=(0,i.yW)(),c={timestamp:u,...t},l=a?(0,s.Cf)(()=>a(c,e)):c;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){let{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){let e=g(this);try{t(this)}finally{g(e)}}getIntegration(t){let e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return u.X&&s.kg.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){let n=this._callExtensionMethod("startTransaction",t,e);if(u.X&&!n){let t=this.getClient();t?s.kg.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):s.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){let t=this.getStackTop(),e=t.scope,n=e.getSession();n&&(0,l.RJ)(n),this._sendSessionUpdate(),e.setSession()}startSession(t){let{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=o.J}=n&&n.getOptions()||{},{userAgent:s}=a.n2.navigator||{},u=(0,l.Hv)({release:r,environment:i,user:e.getUser(),...s&&{userAgent:s},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&(0,l.CT)(c,{status:"exited"}),this.endSession(),e.setSession(u),u}shouldSendDefaultPii(){let t=this.getClient(),e=t&&t.getOptions();return!!(e&&e.sendDefaultPii)}_sendSessionUpdate(){let{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){let{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){let n=h(),r=n.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,e);u.X&&s.kg.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function h(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function g(t){let e=h(),n=_(e);return v(e,t),n}function m(){let t=h();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=h()){return(!(t&&t.__SENTRY__&&t.__SENTRY__.hub)||_(t).isOlderThan(d))&&v(t,new f),_(t)}(t)}function _(t){return(0,a.YO)("hub",()=>new f,t)}function v(t,e){if(!t)return!1;let n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}},10350:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var r=n(67597),i=n(21170),s=n(62844),a=n(71195),o=n(9015);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=c()}static clone(t){return t?t.clone():new u}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._span=this._span,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}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&(0,o.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}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){let e=t(this);return e instanceof u?e:this}return t instanceof u?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):(0,r.PO)(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.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=c(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,i.yW)(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,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}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={},n){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};let e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};let n=e.name;n&&(t.tags={transaction:n,...t.tags})}}this._applyFingerprint(t);let r=this._getBreadcrumbs(),i=[...t.breadcrumbs||[],...r];return t.breadcrumbs=i.length>0?i:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},(0,a.RP)([...n||[],...(0,a.fH)(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?(0,s.lE)(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function c(){return{traceId:(0,s.DM)(),spanId:(0,s.DM)().substring(16)}}},9015:function(t,e,n){"use strict";n.d(e,{CT:function(){return o},Hv:function(){return a},RJ:function(){return u}});var r=n(21170),i=n(62844),s=n(20535);function a(t){let e=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,s.Jr)({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,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return t&&o(n,t),n}function o(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,r.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,i.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)}function u(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),o(t,n)}},88942:function(t,e,n){"use strict";n.d(e,{R:function(){return d},U0:function(){return h}});var r=n(62844),i=n(21170),s=n(96893),a=n(57321),o=n(71235),u=n(34754),c=n(51131),l=n(71195),p=n(10350);function d(t,e,n,d,h){let{normalizeDepth:g=3,normalizeMaxBreadth:m=1e3}=t,_={...e,event_id:e.event_id||n.event_id||(0,r.DM)(),timestamp:e.timestamp||(0,i.yW)()},v=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:c.J),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,a.$G)(t.message,s));let o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=(0,a.$G)(o.value,s));let u=t.request;u&&u.url&&(u.url=(0,a.$G)(u.url,s))})(_,t),v.length>0&&(_.sdk=_.sdk||{},_.sdk.integrations=[..._.sdk.integrations||[],...v]),void 0===e.type&&function(t,e){let n;let r=o.n2._sentryDebugIds;if(!r)return;let i=f.get(e);i?n=i:(n=new Map,f.set(e,n));let s=Object.keys(r).reduce((t,i)=>{let s;let a=n.get(i);a?s=a:(s=e(i),n.set(i,s));for(let e=s.length-1;e>=0;e--){let n=s[e];if(n.filename){t[n.filename]=r[i];break}}return t},{});try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=s[t.filename])})})}catch(t){}}(_,t.stackParser);let y=function(t,e){if(!e)return t;let n=t?t.clone():new p.s;return n.update(e),n}(d,n.captureContext);n.mechanism&&(0,r.EG)(_,n.mechanism);let b=(0,s.WD)(_),x=h&&h.getEventProcessors?h.getEventProcessors():[];if(y){if(y.getAttachments){let t=[...n.attachments||[],...y.getAttachments()];t.length&&(n.attachments=t)}b=y.applyToEvent(_,n,x)}else b=(0,l.RP)([...x,...(0,l.fH)()],_,n);return b.then(t=>(t&&function(t){let e={};try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})})}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.keys(e).forEach(t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})})}(t),"number"==typeof g&&g>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,u.Fv)(t.data,e,n)}}))},...t.user&&{user:(0,u.Fv)(t.user,e,n)},...t.contexts&&{contexts:(0,u.Fv)(t.contexts,e,n)},...t.extra&&{extra:(0,u.Fv)(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=(0,u.Fv)(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>(t.data&&(t.data=(0,u.Fv)(t.data,e,n)),t))),r}(t,g,m):t)}let f=new WeakMap;function h(t){return t?t instanceof p.s||"function"==typeof t||Object.keys(t).some(t=>g.includes(t))?{captureContext:t}:t:void 0}let g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},40105:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="7.88.0"},58464:function(t,e,n){"use strict";n.d(e,{Rt:function(){return a},l4:function(){return o},qT:function(){return u}});var r=n(67597),i=n(71235);let s=(0,i.Rf)();function a(t,e={}){if(!t)return"<unknown>";try{let n,i=t,s=[],a=0,o=0,u=Array.isArray(e)?e:e.keyAttrs,c=!Array.isArray(e)&&e.maxStringLength||80;for(;i&&a++<5&&(n=function(t,e){let n,i,s,a,o;let u=[];if(!t||!t.tagName)return"";u.push(t.tagName.toLowerCase());let c=e&&e.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(c&&c.length)c.forEach(t=>{u.push(`[${t[0]}="${t[1]}"]`)});else if(t.id&&u.push(`#${t.id}`),(n=t.className)&&(0,r.HD)(n))for(o=0,i=n.split(/\s+/);o<i.length;o++)u.push(`.${i[o]}`);let l=["aria-label","type","name","title","alt"];for(o=0;o<l.length;o++)s=l[o],(a=t.getAttribute(s))&&u.push(`[${s}="${a}"]`);return u.join("")}(i,u),"html"!==n&&(!(a>1)||!(o+3*s.length+n.length>=c)));)s.push(n),o+=n.length,i=i.parentNode;return s.reverse().join(" > ")}catch(t){return"<unknown>"}}function o(){try{return s.document.location.href}catch(t){return""}}function u(t){return s.document&&s.document.querySelector?s.document.querySelector(t):null}},53897:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},68518:function(t,e,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{S:function(){return i},n:function(){return r}})},67597:function(t,e,n){"use strict";n.d(e,{Cy:function(){return m},HD:function(){return c},J8:function(){return g},Kj:function(){return h},PO:function(){return p},TX:function(){return o},V9:function(){return v},VW:function(){return a},VZ:function(){return i},cO:function(){return d},fm:function(){return u},i2:function(){return _},kK:function(){return f},pt:function(){return l},y1:function(){return y}});let r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(t,Error)}}function s(t,e){return r.call(t)===`[object ${e}]`}function a(t){return s(t,"ErrorEvent")}function o(t){return s(t,"DOMError")}function u(t){return s(t,"DOMException")}function c(t){return s(t,"String")}function l(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function p(t){return s(t,"Object")}function d(t){return"undefined"!=typeof Event&&v(t,Event)}function f(t){return"undefined"!=typeof Element&&v(t,Element)}function h(t){return s(t,"RegExp")}function g(t){return!!(t&&t.then&&"function"==typeof t.then)}function m(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function _(t){return"number"==typeof t&&t!=t}function v(t,e){try{return t instanceof e}catch(t){return!1}}function y(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue))}},12343:function(t,e,n){"use strict";n.d(e,{Cf:function(){return o},LD:function(){return a},RU:function(){return s},kg:function(){return u}});var r=n(53897),i=n(71235);let s=["debug","info","warn","error","log","assert","trace"],a={};function o(t){if(!("console"in i.n2))return t();let e=i.n2.console,n={},r=Object.keys(a);r.forEach(t=>{let r=a[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}let u=function(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return r.X?s.forEach(n=>{e[n]=(...e)=>{t&&o(()=>{i.n2.console[n](`Sentry Logger [${n}]:`,...e)})}}):s.forEach(t=>{e[t]=()=>void 0}),e}()},62844:function(t,e,n){"use strict";n.d(e,{DM:function(){return s},Db:function(){return u},EG:function(){return c},YO:function(){return l},jH:function(){return o},lE:function(){return p}});var r=n(20535),i=n(71235);function s(){let t=i.n2,e=t.crypto||t.msCrypto,n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>e.getRandomValues(new Uint8Array(1))[0])}catch(t){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function a(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function o(t){let{message:e,event_id:n}=t;if(e)return e;let r=a(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function c(t,e){let n=a(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...r&&r.data,...e.data};n.mechanism.data=t}}function l(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}function p(t){return Array.isArray(t)?t:[t]}},61422:function(t,e,n){"use strict";n.d(e,{KV:function(){return s},l$:function(){return a}});var r=n(68518);t=n.hmd(t);var i=n(83454);function s(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(t,e){return t.require(e)}},34754:function(t,e,n){"use strict";n.d(e,{Fv:function(){return a},Qy:function(){return function t(e,n=3,r=102400){let i=a(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}}});var r=n(67597),i=n(20535),s=n(30360);function a(t,e=100,a=Infinity){try{return function t(e,a,o=Infinity,u=Infinity,c=function(){let t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++){let r=e[t];if(r===n)return!0}return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){let[l,p]=c;if(null==a||["number","boolean","string"].includes(typeof a)&&!(0,r.i2)(a))return a;let d=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==n.g&&e===n.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,r.y1)(e))return"[VueViewModel]";if((0,r.Cy)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${(0,s.$P)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;let i=function(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);if(/^HTML(\w*)Element$/.test(i))return`[HTMLElement: ${i}]`;return`[object ${i}]`}catch(t){return`**non-serializable** (${t})`}}(e,a);if(!d.startsWith("[object "))return d;if(a.__sentry_skip_normalization__)return a;let f="number"==typeof a.__sentry_override_normalization_depth__?a.__sentry_override_normalization_depth__:o;if(0===f)return d.replace("object ","");if(l(a))return"[Circular ~]";if(a&&"function"==typeof a.toJSON)try{let e=a.toJSON();return t("",e,f-1,u,c)}catch(t){}let h=Array.isArray(a)?[]:{},g=0,m=(0,i.Sh)(a);for(let e in m){if(!Object.prototype.hasOwnProperty.call(m,e))continue;if(g>=u){h[e]="[MaxProperties ~]";break}let n=m[e];h[e]=t(e,n,f-1,u,c),g++}return p(a),h}("",t,e,a)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}},20535:function(t,e,n){"use strict";n.d(e,{$Q:function(){return l},HK:function(){return p},Jr:function(){return _},Sh:function(){return f},_j:function(){return d},hl:function(){return u},xp:function(){return c},zf:function(){return m}});var r=n(58464),i=n(53897),s=n(67597),a=n(12343),o=n(57321);function u(t,e,n){if(!(e in t))return;let r=t[e],i=n(r);"function"==typeof i&&l(i,r),t[e]=i}function c(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&a.kg.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function l(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,c(t,"__sentry_original__",e)}catch(t){}}function p(t){return t.__sentry_original__}function d(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function f(t){if((0,s.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...g(t)};if(!(0,s.cO)(t))return t;{let e={type:t.type,target:h(t.target),currentTarget:h(t.currentTarget),...g(t)};return"undefined"!=typeof CustomEvent&&(0,s.V9)(t,CustomEvent)&&(e.detail=t.detail),e}}function h(t){try{return(0,s.kK)(t)?(0,r.Rt)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function g(t){if("object"!=typeof t||null===t)return{};{let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}function m(t,e=40){let n=Object.keys(f(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,o.$G)(n[0],e);for(let t=n.length;t>0;t--){let r=n.slice(0,t).join(", ");if(!(r.length>e)){if(t===n.length)return r;return(0,o.$G)(r,e)}}return""}function _(t){let e=new Map;return function t(e,n){if((0,s.PO)(e)){let r=n.get(e);if(void 0!==r)return r;let i={};for(let r of(n.set(e,i),Object.keys(e)))void 0!==e[r]&&(i[r]=t(e[r],n));return i}if(Array.isArray(e)){let r=n.get(e);if(void 0!==r)return r;let i=[];return n.set(e,i),e.forEach(e=>{i.push(t(e,n))}),i}return e}(t,e)}},30360:function(t,e,n){"use strict";n.d(e,{$P:function(){return u},Sq:function(){return a},pE:function(){return s}});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function s(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0)=>{let s=[],a=t.split("\n");for(let t=n;t<a.length;t++){let n=a[t];if(n.length>1024)continue;let i=r.test(n)?n.replace(r,"$1"):n;if(!i.match(/\S*Error: /)){for(let t of e){let e=t(i);if(e){s.push(e);break}}if(s.length>=50)break}}return function(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),i.test(e[e.length-1].function||"")&&(e.pop(),i.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,50).map(t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}(s)}}function a(t){return Array.isArray(t)?s(...t):t}let o="<anonymous>";function u(t){try{if(!t||"function"!=typeof t)return o;return t.name||o}catch(t){return o}}},57321:function(t,e,n){"use strict";n.d(e,{$G:function(){return i},U0:function(){return a},nK:function(){return s}});var r=n(67597);function i(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.slice(0,e)}...`}function s(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let i=t[e];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e=[],n=!1){return e.some(e=>(function(t,e,n=!1){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):!!(0,r.HD)(e)&&(n?t===e:t.includes(e)))})(t,e,n))}},96893:function(t,e,n){"use strict";n.d(e,{$2:function(){return o},WD:function(){return a},cW:function(){return u}});var r,i,s=n(67597);function a(t){return new u(e=>{e(t)})}function o(t){return new u((e,n)=>{n(t)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class u{constructor(t){u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new u((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new u((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}__init(){this._resolve=t=>{this._setResult(i.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(i.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{if(this._state===i.PENDING){if((0,s.J8)(e)){e.then(this._resolve,this._reject);return}this._state=t,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===i.RESOLVED&&t[1](this._value),this._state===i.REJECTED&&t[2](this._value),t[0]=!0)})}}}},21170:function(t,e,n){"use strict";n.d(e,{Z1:function(){return p},ph:function(){return l},yW:function(){return c}});var r=n(61422),i=n(71235);t=n.hmd(t);let s=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3},o=(0,r.KV)()?function(){try{let e=(0,r.l$)(t,"perf_hooks");return e.performance}catch(t){return}}():function(){let{performance:t}=s;if(!t||!t.now)return;let e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}(),u=void 0===o?a:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},c=a.nowSeconds.bind(a),l=u.nowSeconds.bind(u),p=(()=>{let{performance:t}=s;if(!t||!t.now)return;let e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,i=t.timing&&t.timing.navigationStart,a="number"==typeof i?Math.abs(i+e-n):36e5;return r<36e5||a<36e5?r<=a?t.timeOrigin:i:n})()},71235:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{Rf:function(){return s},YO:function(){return a},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 s(){return i}function a(t,e,n){let r=n||i,s=r.__SENTRY__=r.__SENTRY__||{},a=s[t]||(s[t]=e());return a}},29548:function(t,e,n){"use strict";var r=n(36426);Object.defineProperty(e,"__esModule",{value:!0}),e.BroadcastChannel=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(e){var n=function(n){if(n.key===t){var r,i=JSON.parse(null!==(r=n.newValue)&&void 0!==r?r:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&e(i)}};return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}},post:function(e){if("undefined"!=typeof window)try{localStorage.setItem(t,JSON.stringify(u(u({},e),{},{timestamp:p()})))}catch(t){}}}},e.apiBaseUrl=l,e.fetchData=function(t,e,n){return c.apply(this,arguments)},e.now=p;var i=r(n(26572)),s=r(n(55010)),a=r(n(82479));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){(0,s.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(){return(c=(0,a.default)(i.default.mark(function t(e,n,r){var s,a,o,c,p,d,f,h,g,m=arguments;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=(s=m.length>3&&void 0!==m[3]?m[3]:{}).ctx,c=void 0===(o=s.req)?null==a?void 0:a.req:o,p="".concat(l(n),"/").concat(e),t.prev=2,f={headers:u({"Content-Type":"application/json"},null!=c&&null!==(d=c.headers)&&void 0!==d&&d.cookie?{cookie:c.headers.cookie}:{})},null!=c&&c.body&&(f.body=JSON.stringify(c.body),f.method="POST"),t.next=7,fetch(p,f);case 7:return h=t.sent,t.next=10,h.json();case 10:if(g=t.sent,h.ok){t.next=13;break}throw g;case 13:return t.abrupt("return",Object.keys(g).length>0?g:null);case 16:return t.prev=16,t.t0=t.catch(2),r.error("CLIENT_FETCH_ERROR",{error:t.t0,url:p}),t.abrupt("return",null);case 20:case"end":return t.stop()}},t,null,[[2,16]])}))).apply(this,arguments)}function l(t){return"undefined"==typeof window?"".concat(t.baseUrlServer).concat(t.basePathServer):t.basePath}function p(){return Math.floor(Date.now()/1e3)}},36925:function(t,e,n){"use strict";var r=n(36426);Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedStrategy=e.UnknownError=e.OAuthCallbackError=e.MissingSecret=e.MissingAuthorize=e.MissingAdapterMethods=e.MissingAdapter=e.MissingAPIRoute=e.InvalidCallbackUrl=e.AccountNotLinkedError=void 0,e.adapterErrorHandler=function(t,e){if(t)return Object.keys(t).reduce(function(n,r){return n[r]=(0,s.default)(i.default.mark(function n(){var s,a,o,u,c,l=arguments;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:for(n.prev=0,a=Array(s=l.length),o=0;o<s;o++)a[o]=l[o];return e.debug("adapter_".concat(r),{args:a}),u=t[r],n.next=6,u.apply(void 0,a);case 6:return n.abrupt("return",n.sent);case 9:throw n.prev=9,n.t0=n.catch(0),e.error("adapter_error_".concat(r),n.t0),(c=new g(n.t0)).name="".concat(_(r),"Error"),c;case 15:case"end":return n.stop()}},n,null,[[0,9]])})),n},{})},e.capitalize=_,e.eventsErrorHandler=function(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=(0,s.default)(i.default.mark(function n(){var s,a=arguments;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,s=t[r],n.next=4,s.apply(void 0,a);case 4:return n.abrupt("return",n.sent);case 7:n.prev=7,n.t0=n.catch(0),e.error("".concat(m(r),"_EVENT_ERROR"),n.t0);case 10:case"end":return n.stop()}},n,null,[[0,7]])})),n},{})},e.upperSnake=m;var i=r(n(26572)),s=r(n(82479)),a=r(n(55010)),o=r(n(52870)),u=r(n(39033)),c=r(n(97688)),l=r(n(99590)),p=r(n(24221)),d=r(n(32615));function f(t,e,n){return e=(0,l.default)(e),(0,c.default)(t,h()?Reflect.construct(e,n||[],(0,l.default)(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}var g=e.UnknownError=function(t){function e(t){var n,r;return(0,o.default)(this,e),(r=f(this,e,[null!==(n=null==t?void 0:t.message)&&void 0!==n?n:t])).name="UnknownError",r.code=t.code,t instanceof Error&&(r.stack=t.stack),r}return(0,p.default)(e,t),(0,u.default)(e,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}])}((0,d.default)(Error));function m(t){return t.replace(/([A-Z])/g,"_$1").toUpperCase()}function _(t){return"".concat(t[0].toUpperCase()).concat(t.slice(1))}e.OAuthCallbackError=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","OAuthCallbackError"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g),e.AccountNotLinkedError=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","AccountNotLinkedError"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g),e.MissingAPIRoute=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","MissingAPIRouteError"),(0,a.default)(t,"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g),e.MissingSecret=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","MissingSecretError"),(0,a.default)(t,"code","NO_SECRET"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g),e.MissingAuthorize=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","MissingAuthorizeError"),(0,a.default)(t,"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g),e.MissingAdapter=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","MissingAdapterError"),(0,a.default)(t,"code","EMAIL_REQUIRES_ADAPTER_ERROR"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g),e.MissingAdapterMethods=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","MissingAdapterMethodsError"),(0,a.default)(t,"code","MISSING_ADAPTER_METHODS_ERROR"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g),e.UnsupportedStrategy=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","UnsupportedStrategyError"),(0,a.default)(t,"code","CALLBACK_CREDENTIALS_JWT_ERROR"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g),e.InvalidCallbackUrl=function(t){function e(){var t;(0,o.default)(this,e);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=f(this,e,[].concat(r)),(0,a.default)(t,"name","InvalidCallbackUrl"),(0,a.default)(t,"code","INVALID_CALLBACK_URL_ERROR"),t}return(0,p.default)(e,t),(0,u.default)(e)}(g)},33299:function(t,e,n){"use strict";var r,i,s,a,o,u=n(83454),c=n(36426),l=n(4749);Object.defineProperty(e,"__esModule",{value:!0});var p={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};e.SessionContext=void 0,e.SessionProvider=function(t){if(!C)throw Error("React Context is unavailable in Server Components");var e,n,r,i,s,a,o=t.children,u=t.basePath,c=t.refetchInterval,l=t.refetchWhenOffline;u&&(k.basePath=u);var p=void 0!==t.session;k._lastSync=p?(0,y.now)():0;var f=m.useState(function(){return p&&(k._session=t.session),t.session}),_=(0,g.default)(f,2),v=_[0],x=_[1],S=m.useState(!p),E=(0,g.default)(S,2),T=E[0],w=E[1];m.useEffect(function(){return k._getSession=(0,h.default)(d.default.mark(function t(){var e,n,r=arguments;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=(r.length>0&&void 0!==r[0]?r[0]:{}).event,t.prev=1,!((n="storage"===e)||void 0===k._session)){t.next=10;break}return k._lastSync=(0,y.now)(),t.next=7,P({broadcast:!n});case 7:return k._session=t.sent,x(k._session),t.abrupt("return");case 10:if(!(!e||null===k._session||(0,y.now)()<k._lastSync)){t.next=12;break}return t.abrupt("return");case 12:return k._lastSync=(0,y.now)(),t.next=15,P();case 15:k._session=t.sent,x(k._session),t.next=22;break;case 19:t.prev=19,t.t0=t.catch(1),R.error("CLIENT_SESSION_ERROR",t.t0);case 22:return t.prev=22,w(!1),t.finish(22);case 25:case"end":return t.stop()}},t,null,[[1,19,22,25]])})),k._getSession(),function(){k._lastSync=0,k._session=void 0,k._getSession=function(){}}},[]),m.useEffect(function(){var t=O.receive(function(){return k._getSession({event:"storage"})});return function(){return t()}},[]),m.useEffect(function(){var e=t.refetchOnWindowFocus,n=void 0===e||e,r=function(){n&&"visible"===document.visibilityState&&k._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",r,!1),function(){return document.removeEventListener("visibilitychange",r,!1)}},[t.refetchOnWindowFocus]);var $=(e=m.useState("undefined"!=typeof navigator&&navigator.onLine),r=(n=(0,g.default)(e,2))[0],i=n[1],s=function(){return i(!0)},a=function(){return i(!1)},m.useEffect(function(){return window.addEventListener("online",s),window.addEventListener("offline",a),function(){window.removeEventListener("online",s),window.removeEventListener("offline",a)}},[]),r),I=!1!==l||$;m.useEffect(function(){if(c&&I){var t=setInterval(function(){k._session&&k._getSession({event:"poll"})},1e3*c);return function(){return clearInterval(t)}}},[c,I]);var D=m.useMemo(function(){return{data:v,status:T?"loading":v?"authenticated":"unauthenticated",update:function(t){return(0,h.default)(d.default.mark(function e(){var n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(T||!v)){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.t0=y.fetchData,e.t1=k,e.t2=R,e.next=8,j();case 8:return e.t3=e.sent,e.t4=t,e.t5={csrfToken:e.t3,data:e.t4},e.t6={body:e.t5},e.t7={req:e.t6},e.next=15,(0,e.t0)("session",e.t1,e.t2,e.t7);case 15:return n=e.sent,w(!1),n&&(x(n),O.post({event:"session",data:{trigger:"getSession"}})),e.abrupt("return",n);case 19:case"end":return e.stop()}},e)}))()}}},[v,T]);return(0,b.jsx)(C.Provider,{value:D,children:o})},e.getCsrfToken=j,e.getProviders=D,e.getSession=P,e.signIn=function(t,e,n){return N.apply(this,arguments)},e.signOut=function(t){return A.apply(this,arguments)},e.useSession=function(t){if(!C)throw Error("React Context is unavailable in Server Components");var e=m.useContext(C),n=null!=t?t:{},r=n.required,i=n.onUnauthenticated,s=r&&"unauthenticated"===e.status;return(m.useEffect(function(){if(s){var t="/api/auth/signin?".concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));i?i():window.location.href=t}},[s,i]),s)?{data:e.data,update:e.update,status:"loading"}:e};var d=c(n(26572)),f=c(n(55010)),h=c(n(82479)),g=c(n(73089)),m=E(n(67294)),_=E(n(26553)),v=c(n(30762)),y=n(29548),b=n(85893),x=n(527);function S(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(S=function(t){return t?n:e})(t)}function E(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=l(t)&&"function"!=typeof t)return{default:t};var n=S(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&({}).hasOwnProperty.call(t,s)){var a=i?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach(function(e){(0,f.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}Object.keys(x).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(p,t))&&(t in e&&e[t]===x[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return x[t]}}))});var k={baseUrl:(0,v.default)(null!==(r=u.env.NEXTAUTH_URL)&&void 0!==r?r:u.env.VERCEL_URL).origin,basePath:(0,v.default)(u.env.NEXTAUTH_URL).path,baseUrlServer:(0,v.default)(null!==(i=null!==(s=u.env.NEXTAUTH_URL_INTERNAL)&&void 0!==s?s:u.env.NEXTAUTH_URL)&&void 0!==i?i:u.env.VERCEL_URL).origin,basePathServer:(0,v.default)(null!==(a=u.env.NEXTAUTH_URL_INTERNAL)&&void 0!==a?a:u.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},O=(0,y.BroadcastChannel)(),R=(0,_.proxyLogger)(_.default,k.basePath),C=e.SessionContext=null===(o=m.createContext)||void 0===o?void 0:o.call(m,void 0);function P(t){return $.apply(this,arguments)}function $(){return($=(0,h.default)(d.default.mark(function t(e){var n,r;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,y.fetchData)("session",k,R,e);case 2:return r=t.sent,(null===(n=null==e?void 0:e.broadcast)||void 0===n||n)&&O.post({event:"session",data:{trigger:"getSession"}}),t.abrupt("return",r);case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)}function j(t){return I.apply(this,arguments)}function I(){return(I=(0,h.default)(d.default.mark(function t(e){var n;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,y.fetchData)("csrf",k,R,e);case 2:return n=t.sent,t.abrupt("return",null==n?void 0:n.csrfToken);case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}function D(){return L.apply(this,arguments)}function L(){return(L=(0,h.default)(d.default.mark(function t(){return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,y.fetchData)("providers",k,R);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t)}))).apply(this,arguments)}function N(){return(N=(0,h.default)(d.default.mark(function t(e,n,r){var i,s,a,o,u,c,l,p,f,h,g,m,_,v,b,x,S;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=void 0===(s=(i=null!=n?n:{}).callbackUrl)?window.location.href:s,u=void 0===(o=i.redirect)||o,c=(0,y.apiBaseUrl)(k),t.next=4,D();case 4:if(l=t.sent){t.next=8;break}return window.location.href="".concat(c,"/error"),t.abrupt("return");case 8:if(!(!e||!(e in l))){t.next=11;break}return window.location.href="".concat(c,"/signin?").concat(new URLSearchParams({callbackUrl:a})),t.abrupt("return");case 11:return p="credentials"===l[e].type,f="email"===l[e].type,h=p||f,g="".concat(c,"/").concat(p?"callback":"signin","/").concat(e),m="".concat(g).concat(r?"?".concat(new URLSearchParams(r)):""),t.t0=fetch,t.t1=m,t.t2={"Content-Type":"application/x-www-form-urlencoded"},t.t3=URLSearchParams,t.t4=w,t.t5=w({},n),t.t6={},t.next=25,j();case 25:return t.t7=t.sent,t.t8=a,t.t9={csrfToken:t.t7,callbackUrl:t.t8,json:!0},t.t10=(0,t.t4)(t.t5,t.t6,t.t9),t.t11=new t.t3(t.t10),t.t12={method:"post",headers:t.t2,body:t.t11},t.next=33,(0,t.t0)(t.t1,t.t12);case 33:return _=t.sent,t.next=36,_.json();case 36:if(v=t.sent,!(u||!h)){t.next=42;break}return x=null!==(b=v.url)&&void 0!==b?b:a,window.location.href=x,x.includes("#")&&window.location.reload(),t.abrupt("return");case 42:if(S=new URL(v.url).searchParams.get("error"),!_.ok){t.next=46;break}return t.next=46,k._getSession({event:"storage"});case 46:return t.abrupt("return",{error:S,status:_.status,ok:_.ok,url:S?null:v.url});case 47:case"end":return t.stop()}},t)}))).apply(this,arguments)}function A(){return(A=(0,h.default)(d.default.mark(function t(e){var n,r,i,s,a,o,u,c,l;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=void 0===(r=(null!=e?e:{}).callbackUrl)?window.location.href:r,s=(0,y.apiBaseUrl)(k),t.t0={"Content-Type":"application/x-www-form-urlencoded"},t.t1=URLSearchParams,t.next=6,j();case 6:return t.t2=t.sent,t.t3=i,t.t4={csrfToken:t.t2,callbackUrl:t.t3,json:!0},t.t5=new t.t1(t.t4),a={method:"post",headers:t.t0,body:t.t5},t.next=13,fetch("".concat(s,"/signout"),a);case 13:return o=t.sent,t.next=16,o.json();case 16:if(u=t.sent,O.post({event:"session",data:{trigger:"signout"}}),!(null===(n=null==e?void 0:e.redirect)||void 0===n||n)){t.next=23;break}return l=null!==(c=u.url)&&void 0!==c?c:i,window.location.href=l,l.includes("#")&&window.location.reload(),t.abrupt("return");case 23:return t.next=25,k._getSession({event:"storage"});case 25:return t.abrupt("return",u);case 26:case"end":return t.stop()}},t)}))).apply(this,arguments)}},527:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},26553:function(t,e,n){"use strict";var r=n(36426);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.proxyLogger=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,e=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return t;var n={},r=function(t){var r;n[t]=(r=(0,a.default)(i.default.mark(function n(r,a){var o,p;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(l[t](r,a),"error"===t&&(a=c(a)),a.client=!0,o="".concat(e,"/_log"),p=new URLSearchParams(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){(0,s.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({level:t,code:r},a)),!navigator.sendBeacon){n.next=8;break}return n.abrupt("return",navigator.sendBeacon(o,p));case 8:return n.next=10,fetch(o,{method:"POST",body:p,keepalive:!0});case 10:return n.abrupt("return",n.sent);case 11:case"end":return n.stop()}},n)})),function(t,e){return r.apply(this,arguments)})};for(var o in t)r(o);return n}catch(t){return l}},e.setLogger=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e||(l.debug=function(){}),t.error&&(l.error=t.error),t.warn&&(l.warn=t.warn),t.debug&&(l.debug=t.debug)};var i=r(n(26572)),s=r(n(55010)),a=r(n(82479)),o=n(36925);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){var e;return t instanceof Error&&!(t instanceof o.UnknownError)?{message:t.message,stack:t.stack,name:t.name}:(null!=t&&t.error&&(t.error=c(t.error),t.message=null!==(e=t.message)&&void 0!==e?e:t.error.message),t)}var l={error:function(t,e){e=c(e),console.error("[next-auth][error][".concat(t,"]"),"\nhttps://next-auth.js.org/errors#".concat(t.toLowerCase()),e.message,e)},warn:function(t){console.warn("[next-auth][warn][".concat(t,"]"),"\nhttps://next-auth.js.org/warnings#".concat(t.toLowerCase()))},debug:function(t,e){console.log("[next-auth][debug][".concat(t,"]"),e)}};e.default=l},30762:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e;let n=new URL("http://localhost:3000/api/auth");t&&!t.startsWith("http")&&(t=`https://${t}`);let r=new URL(null!==(e=t)&&void 0!==e?e:n),i=("/"===r.pathname?n.pathname:r.pathname).replace(/\/$/,""),s=`${r.origin}${i}`;return{origin:r.origin,host:r.host,path:i,base:s,toString:()=>s}}},83454:function(t,e,n){"use strict";var r,i;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(77663)},6840:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(82768)}])},82768:function(t,e,n){"use strict";n.r(e);var r=n(85893);n(91196);var i=n(11163),s=n(67294),a=n(33299);e.default=t=>{let{Component:e,pageProps:{session:n,...o}}=t,u=(0,i.useRouter)();return(0,s.useMemo)(()=>{u.prefetch=async()=>{}},[u]),(0,r.jsx)(a.SessionProvider,{session:n,children:(0,r.jsx)(e,{...o})})}},52772:function(t,e,n){"use strict";let r,i,s,a,o,u,c,l,p,d,f,h,g;var m=n(64487);function _(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=(0,m.s3)(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}let v=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function y(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){let i=r>=0?t[r]:"/";i&&(e=`${i}/${e}`,n="/"===i.charAt(0))}return e=(function(t,e){let n=0;for(let e=t.length-1;e>=0;e--){let r=t[e];"."===r?t.splice(e,1):".."===r?(t.splice(e,1),n++):n&&(t.splice(e,1),n--)}if(e)for(;n--;n)t.unshift("..");return t})(e.split("/").filter(t=>!!t),!n).join("/"),(n?"/":"")+e||"."}function b(t){let e=0;for(;e<t.length&&""===t[e];e++);let n=t.length-1;for(;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}class x{static __initStatic(){this.id="RewriteFrames"}constructor(t={}){x.prototype.__init.call(this),this.name=x.id,t.root&&(this._root=t.root),this._prefix=t.prefix||"app:///",t.iteratee&&(this._iteratee=t.iteratee)}setupOnce(t,e){}processEvent(t){return this.process(t)}process(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=this._processExceptionsEvent(e)),e}__init(){this._iteratee=t=>{if(!t.filename)return t;let e=/^[a-zA-Z]:\\/.test(t.filename)||t.filename.includes("\\")&&!t.filename.includes("/"),n=/^\//.test(t.filename);if(e||n){var r;let n;let i=e?t.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):t.filename,s=this._root?function(t,e){t=y(t).slice(1),e=y(e).slice(1);let n=b(t.split("/")),r=b(e.split("/")),i=Math.min(n.length,r.length),s=i;for(let t=0;t<i;t++)if(n[t]!==r[t]){s=t;break}let a=[];for(let t=s;t<n.length;t++)a.push("..");return(a=a.concat(r.slice(s))).join("/")}(this._root,i):(n=function(t){let e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=v.exec(e);return n?n.slice(1):[]}(i)[2],r&&n.slice(-1*r.length)===r&&(n=n.slice(0,n.length-r.length)),n);t.filename=`${this._prefix}${s}`}return t}}_processExceptionsEvent(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>({...t,...t.stacktrace&&{stacktrace:this._processStacktrace(t.stacktrace)}}))}}}catch(e){return t}}_processStacktrace(t){return{...t,frames:t&&t.frames&&t.frames.map(t=>this._iteratee(t))}}}x.__initStatic();var S=n(40105),E=n(12343),T=n(62844),w=n(57321),k=n(81703);let O=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],R=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];class C{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=C.id,this._options=t}setupOnce(t,e){}processEvent(t,e,n){var r;let i=n.getOptions(),s=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:O],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:R],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(this._options,i);return(s.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(k.X&&E.kg.warn(`Event dropped due to being internal Sentry Error.
Event: ${(0,T.jH)(t)}`),0):(r=s.ignoreErrors,!t.type&&r&&r.length&&(function(t){let e;let n=[];t.message&&n.push(t.message);try{e=t.exception.values[t.exception.values.length-1]}catch(t){}return e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`)),k.X&&0===n.length&&E.kg.error(`Could not extract message for event ${(0,T.jH)(t)}`),n})(t).some(t=>(0,w.U0)(t,r)))?(k.X&&E.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,T.jH)(t)}`),0):!function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;let n=t.transaction;return!!n&&(0,w.U0)(n,e)}(t,s.ignoreTransactions)?!function(t,e){if(!e||!e.length)return!1;let n=P(t);return!!n&&(0,w.U0)(n,e)}(t,s.denyUrls)?function(t,e){if(!e||!e.length)return!0;let n=P(t);return!n||(0,w.U0)(n,e)}(t,s.allowUrls)||(k.X&&E.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,T.jH)(t)}.
Url: ${P(t)}`),0):(k.X&&E.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,T.jH)(t)}.
Url: ${P(t)}`),0):(k.X&&E.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,T.jH)(t)}`),0))?t:null}}function P(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return k.X&&E.kg.error(`Cannot extract url for event ${(0,T.jH)(t)}`),null}}C.__initStatic();var $=n(20535);class j{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=j.id}setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=(0,$.HK)(this)||this;return r.apply(e,t)}}catch(t){}}}j.__initStatic();var I=n(71195),D=n(95659);let L=[];function N(t,e,n){if(n[e.name]=e,-1===L.indexOf(e.name)&&(e.setupOnce(I.cc,D.Gd),L.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if(t.addEventProcessor&&"function"==typeof e.processEvent){let n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}k.X&&E.kg.log(`Integration installed: ${e.name}`)}var A=n(30360),M=n(53897),U=n(71235);let H=(0,U.Rf)();function X(){if(!("fetch"in H))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function q(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}let G=(0,U.Rf)(),B={},F={};function W(t,e){B[t]=B[t]||[],B[t].push(e)}function Y(t,e){F[t]||(e(),F[t]=!0)}function J(t,e){let n=t&&B[t];if(n)for(let r of n)try{r(e)}catch(e){M.X&&E.kg.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${(0,A.$P)(r)}
Error:`,e)}}let V=U.n2;function z(t){let e="history";W(e,t),Y(e,K)}function K(){if(!function(){let t=G.chrome,e=t&&t.app&&t.app.runtime,n="history"in G&&!!G.history.pushState&&!!G.history.replaceState;return!e&&n}())return;let t=V.onpopstate;function e(t){return function(...e){let n=e.length>2?e[2]:void 0;if(n){let t=i,e=String(n);i=e,J("history",{from:t,to:e})}return t.apply(this,e)}}V.onpopstate=function(...e){let n=V.location.href,r=i;if(i=n,J("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},(0,$.hl)(V.history,"pushState",e),(0,$.hl)(V.history,"replaceState",e)}let Z=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Q(t,e=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:u}=t;return`${o}://${u}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function tt(t){let e=Z.exec(t);if(!e){(0,E.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",s,a="",o]=e.slice(1),u="",c=o,l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){let t=c.match(/^\d+/);t&&(c=t[0])}return te({host:s,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}function te(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}var tn=n(67597),tr=n(96893),ti=n(34754);function ts(t,e=[]){return[t,e]}function ta(t,e){let n=t[1];for(let t of n){let n=t[0].type,r=e(t,n);if(r)return!0}return!1}function to(t,e){let n=e||new TextEncoder;return n.encode(t)}let tu={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",feedback:"feedback",statsd:"unknown"};function tc(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}class tl extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var tp=n(9015),td=n(51131);function tf(t,e,n){let r=e.getOptions(),{publicKey:i}=e.getDsn()||{},{segment:s}=n&&n.getUser()||{},a=(0,$.Jr)({environment:r.environment||td.J,release:r.release,user_segment:s,public_key:i,trace_id:t});return e.emit&&e.emit("createDsc",a),a}var th=n(88942);let tg="Not capturing exception because it's already been captured.";class tm{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){let e="string"==typeof t?tt(t):te(t);if(e&&function(t){if(!M.X)return!0;let{port:e,projectId:n,protocol:r}=t,i=["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(E.kg.error(`Invalid Sentry Dsn: ${e} missing`),!0));return!i&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(e&&isNaN(parseInt(e,10)))||(E.kg.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(E.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(E.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}(t.dsn):k.X&&E.kg.warn("No DSN provided, client will not send events."),this._dsn){let e=function(t,e={}){let n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${(0,$._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`}(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if((0,T.YO)(t)){k.X&&E.kg.log(tg);return}let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then(t=>this._captureEvent(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let i=n&&n.event_id,s=(0,tn.pt)(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(s.then(t=>this._captureEvent(t,n,r)).then(t=>{i=t})),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,T.YO)(e.originalException)){k.X&&E.kg.log(tg);return}let r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then(t=>{r=t})),r}captureSession(t){"string"!=typeof t.release?k.X&&E.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,tp.CT)(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(n=>e.flush(t).then(t=>n&&t))):(0,tr.WD)(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function(t,e){let n={};return e.forEach(e=>{e&&N(t,e,n)}),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return k.X&&E.kg.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){N(this,t,this._integrations)}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){var i;let s=tc(n),a=t.type&&"replay_event"!==t.type?t.type:"event";(i=n&&n.sdk)&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||i.name,t.sdk.version=t.sdk.version||i.version,t.sdk.integrations=[...t.sdk.integrations||[],...i.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...i.packages||[]]);let o=function(t,e,n,r){let i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Q(r)},...i&&{trace:(0,$.Jr)({...i})}}}(t,s,r,e);delete t.sdkProcessingMetadata;let u=[{type:a},t];return ts(o,[u])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(let t of e.attachments||[])n=function(t,e){let[n,r]=t;return[n,[...r,e]]}(n,function(t,e){let n="string"==typeof t.data?to(t.data,e):t.data;return[(0,$.Jr)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(e=>this.emit("afterSendEvent",t,e),null)}sendSession(t){let e=function(t,e,n,r){let i=tc(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:Q(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ts(s,[a])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){let n=`${t}:${e}`;k.X&&E.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(t){let e=function(t,e,n,r){let i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(i.dsn=Q(e));let s=function(t){let e=function(t){let e="";for(let[n,r,i,s,a,o]of t){let t=Object.keys(o).length?`|#${Object.entries(o).map(([t,e])=>`${t}:${String(e)}`).join(",")}`:"";e+=`${s}@${a}:${n}|${i}${t}|T${r}
`}return e}(t),n={type:"statsd",length:e.length};return[n,e]}(t);return ts(i,[s])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach(t=>t(...e))}_updateSessionFromEvent(t,e){let n=!1,r=!1,i=e.exception&&e.exception.values;if(i)for(let t of(r=!0,i)){let e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}let s="ok"===t.status,a=s&&0===t.errors||s&&n;a&&((0,tp.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new tr.cW(e=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),this.emit("preprocessEvent",t,e),(0,th.R)(r,t,e,n,this).then(t=>{if(null===t)return t;let{propagationContext:e}=t.sdkProcessingMetadata||{},r=t.contexts&&t.contexts.trace;if(!r&&e){let{traceId:r,spanId:i,parentSpanId:s,dsc:a}=e;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...t.contexts};let o=a||tf(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:o,...t.sdkProcessingMetadata}}return t})}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then(t=>t.event_id,t=>{k.X&&("log"===t.logLevel?E.kg.log(t.message):E.kg.warn(t))})}_processEvent(t,e,n){let r=this.getOptions(),{sampleRate:i}=r,s=tv(t),a=t_(t),o=t.type||"error",u=`before send for type \`${o}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,tr.$2)(new tl(`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(t,e,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,t),new tl("An event processor returned `null`, will not send event.","log");let i=e.data&&!0===e.data.__sentry__;if(i)return n;let s=function(t,e,n){let{beforeSend:r,beforeSendTransaction:i}=t;return t_(e)&&r?r(e,n):tv(e)&&i?i(e,n):e}(r,n,e);return function(t,e){let n=`${e} must return \`null\` or a valid event.`;if((0,tn.J8)(t))return t.then(t=>{if(!(0,tn.PO)(t)&&null!==t)throw new tl(n);return t},t=>{throw new tl(`${e} rejected with ${t}`)});if(!(0,tn.PO)(t)&&null!==t)throw new tl(n);return t}(s,u)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,t),new tl(`${u} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!s&&i&&this._updateSessionFromEvent(i,r);let a=r.transaction_info;return s&&a&&r.transaction!==t.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof tl)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new tl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${t}`)})}_process(t){this._numProcessing++,t.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,t=>{k.X&&E.kg.error("Error while sending event:",t)});k.X&&E.kg.error("Transport disabled")}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.keys(t).map(e=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}})}}function t_(t){return void 0===t.type}function tv(t){return"transaction"===t.type}var ty=n(68518),tb=n(21170);let tx="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function tS(t,e){let n=tT(t,e),r={type:e&&e.name,value:function(t){let e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tE(t,e){return{exception:{values:[tS(t,e)]}}}function tT(t,e){let n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tw.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}let tw=/Minified React error #\d+;/i;function tk(t,e,n,r,i){let s;if((0,tn.VW)(e)&&e.error)return tE(t,e.error);if((0,tn.TX)(e)||(0,tn.fm)(e)){if("stack"in e)s=tE(t,e);else{let i=e.name||((0,tn.TX)(e)?"DOMError":"DOMException"),a=e.message?`${i}: ${e.message}`:i;s=tO(t,a,n,r),(0,T.Db)(s,a)}return"code"in e&&(s.tags={...s.tags,"DOMException.code":`${e.code}`}),s}return(0,tn.VZ)(e)?tE(t,e):((0,tn.PO)(e)||(0,tn.cO)(e)?s=function(t,e,n,r){let i=(0,D.Gd)(),s=i.getClient(),a=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:(0,tn.cO)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:function(t,{isUnhandledRejection:e}){let n=(0,$.zf)(t),r=e?"promise rejection":"exception";if((0,tn.VW)(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if((0,tn.cO)(t)){let e=function(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t);return`Event \`${e}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(e,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,ti.Qy)(e,a)}};if(n){let e=tT(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,i):(s=tO(t,e,n,r),(0,T.Db)(s,`${e}`,void 0)),(0,T.EG)(s,{synthetic:!0}),s)}function tO(t,e,n,r){let i={message:e};if(r&&n){let r=tT(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}return i}let tR=U.n2,tC=0;function tP(t,e={},n){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)return e;if((0,$.HK)(t))return t}catch(e){return t}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(t=>tP(t,e));return t.apply(this,i)}catch(t){throw tC++,setTimeout(()=>{tC--}),(0,m.$e)(n=>{n.addEventProcessor(t=>(e.mechanism&&((0,T.Db)(t,void 0,void 0),(0,T.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t)),(0,m.Tb)(t)}),t}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}(0,$.$Q)(r,t),(0,$.xp)(t,"__sentry_wrapped__",r);try{let e=Object.getOwnPropertyDescriptor(r,"name");e.configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}class t$ extends tm{constructor(t){let e=tR.SENTRY_SDK_SOURCE||(0,ty.S)();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${e}:@sentry/browser`,version:S.J}],version:S.J},super(t),t.sendClientReports&&tR.document&&tR.document.addEventListener("visibilitychange",()=>{"hidden"===tR.document.visibilityState&&this._flushOutcomes()})}eventFromException(t,e){return function(t,e,n,r){let i=n&&n.syntheticException||void 0,s=tk(t,e,i,r);return(0,T.EG)(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),(0,tr.WD)(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){let s=r&&r.syntheticException||void 0,a=tO(t,e,s,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),(0,tr.WD)(a)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){tx&&E.kg.warn("SDK not enabled, will not capture user feedback.");return}let e=function(t,{metadata:e,tunnel:n,dsn:r}){let i={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Q(r)}},s=[{type:"user_report"},t];return ts(i,[s])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){let t=this._clearOutcomes();if(0===t.length){tx&&E.kg.log("No outcomes to send");return}if(!this._dsn){tx&&E.kg.log("No dsn provided, will not send outcomes");return}tx&&E.kg.log("Sending outcomes:",t);let e=function(t,e,n){let r=[{type:"client_report"},{timestamp:(0,tb.yW)(),discarded_events:t}];return ts(e?{dsn:e}:{},[r])}(t,this._options.tunnel&&Q(this._dsn));this._sendEnvelope(e)}}let tj=null;function tI(t){let e="error";W(e,t),Y(e,tD)}function tD(){tj=U.n2.onerror,U.n2.onerror=function(t,e,n,r,i){return J("error",{column:r,error:i,line:n,msg:t,url:e}),!!tj&&!tj.__SENTRY_LOADER__&&tj.apply(this,arguments)},U.n2.onerror.__SENTRY_INSTRUMENTED__=!0}let tL=null;function tN(t){let e="unhandledrejection";W(e,t),Y(e,tA)}function tA(){tL=U.n2.onunhandledrejection,U.n2.onunhandledrejection=function(t){return J("unhandledrejection",t),!tL||!!tL.__SENTRY_LOADER__||tL.apply(this,arguments)},U.n2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var tM=n(58464);class tU{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=tU.id,this._options={onerror:!0,onunhandledrejection:!0,...t},this._installFunc={onerror:tH,onunhandledrejection:tX}}setupOnce(){Error.stackTraceLimit=50;let t=this._options;for(let e in t){let n=this._installFunc[e];n&&t[e]&&(tx&&E.kg.log(`Global Handler attached: ${e}`),n(),this._installFunc[e]=void 0)}}}function tH(){tI(t=>{let[e,n,r]=tG();if(!e.getIntegration(tU))return;let{msg:i,url:s,line:a,column:o,error:u}=t;if(tC>0)return;let c=void 0===u&&(0,tn.HD)(i)?function(t,e,n,r){let i=(0,tn.VW)(t)?t.message:t,s="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(s=a[1],i=a[2]);let o={exception:{values:[{type:s,value:i}]}};return tq(o,e,n,r)}(i,s,a,o):tq(tk(n,u||i,void 0,r,!1),s,a,o);c.level="error",e.captureEvent(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function tX(){tN(t=>{let[e,n,r]=tG();if(!e.getIntegration(tU))return;if(tC>0)return!0;let i=function(t){if((0,tn.pt)(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(t),s=(0,tn.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:tk(n,i,void 0,r,!0);s.level="error",e.captureEvent(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function tq(t,e,n,r){let i=t.exception=t.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},u=o.frames=o.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,p=(0,tn.HD)(e)&&e.length>0?e:(0,tM.l4)();return 0===u.length&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:l}),t}function tG(){let t=(0,D.Gd)(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}tU.__initStatic();let tB=["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 tF{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=tF.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&(0,$.hl)(tR,"setTimeout",tW),this._options.setInterval&&(0,$.hl)(tR,"setInterval",tW),this._options.requestAnimationFrame&&(0,$.hl)(tR,"requestAnimationFrame",tY),this._options.XMLHttpRequest&&"XMLHttpRequest"in tR&&(0,$.hl)(XMLHttpRequest.prototype,"send",tJ);let t=this._options.eventTarget;if(t){let e=Array.isArray(t)?t:tB;e.forEach(tV)}}}function tW(t){return function(...e){let n=e[0];return e[0]=tP(n,{mechanism:{data:{function:(0,A.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function tY(t){return function(e){return t.apply(this,[tP(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,A.$P)(t)},handled:!1,type:"instrument"}})])}}function tJ(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&(0,$.hl)(n,t,function(e){let n={mechanism:{data:{function:t,handler:(0,A.$P)(e)},handled:!1,type:"instrument"}},r=(0,$.HK)(e);return r&&(n.mechanism.data.handler=(0,A.$P)(r)),tP(e,n)})}),t.apply(this,e)}}function tV(t){let e=tR[t]&&tR[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&((0,$.hl)(e,"addEventListener",function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=tP(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,A.$P)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,tP(r,{mechanism:{data:{function:"addEventListener",handler:(0,A.$P)(r),target:t},handled:!1,type:"instrument"}}),i])}}),(0,$.hl)(e,"removeEventListener",function(t){return function(e,n,r){try{let i=n&&n.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch(t){}return t.call(this,e,n,r)}}))}function tz(){"console"in U.n2&&E.RU.forEach(function(t){t in U.n2.console&&(0,$.hl)(U.n2.console,t,function(e){return E.LD[t]=e,function(...e){J("console",{args:e,level:t});let n=E.LD[t];n&&n.apply(U.n2.console,e)}})})}tF.__initStatic();let tK=U.n2;function tZ(){if(!tK.document)return;let t=J.bind(null,"dom"),e=tQ(t,!0);tK.document.addEventListener("click",e,!1),tK.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{let n=tK[e]&&tK[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,$.hl)(n,"addEventListener",function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=tQ(t);s.handler=r,e.call(this,n,r,i)}s.refCount++}catch(t){}return e.call(this,n,r,i)}}),(0,$.hl)(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}}))})}function tQ(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(t){try{return t.target}catch(t){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,$.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,$.xp)(r,"_sentryId",(0,T.DM)());let i="keypress"===n.type?"input":n.type;!function(t){if(t.type!==a)return!1;try{if(!t.target||t.target._sentryId!==o)return!1}catch(t){}return!0}(n)&&(t({event:n,name:i,global:e}),a=n.type,o=r?r._sentryId:void 0),clearTimeout(s),s=tK.setTimeout(()=>{o=void 0,a=void 0},1e3)}}let t0=U.n2,t1="__sentry_xhr_v3__";function t2(t){W("xhr",t),Y("xhr",t3)}function t3(){if(!t0.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;(0,$.hl)(t,"open",function(t){return function(...e){let n=Date.now(),r=(0,tn.HD)(e[0])?e[0].toUpperCase():void 0,i=function(t){if((0,tn.HD)(t))return t;try{return t.toString()}catch(t){}}(e[1]);if(!r||!i)return t.apply(this,e);this[t1]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let t=this[t1];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}let e={args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this};J("xhr",e)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,$.hl)(this,"onreadystatechange",function(t){return function(...e){return s(),t.apply(this,e)}}):this.addEventListener("readystatechange",s),(0,$.hl)(this,"setRequestHeader",function(t){return function(...e){let[n,r]=e,i=this[t1];return i&&(0,tn.HD)(n)&&(0,tn.HD)(r)&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}}),t.apply(this,e)}}),(0,$.hl)(t,"send",function(t){return function(...e){let n=this[t1];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);let r={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return J("xhr",r),t.apply(this,e)}})}function t5(t){let e="fetch";W(e,t),Y(e,t4)}function t4(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!X())return!1;if(q(H.fetch))return!0;let t=!1,e=H.document;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=q(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){M.X&&E.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&(0,$.hl)(U.n2,"fetch",function(t){return function(...e){let{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){let[e,n]=t;return{url:t9(e),method:t6(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:t9(e),method:t6(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return J("fetch",{...i}),t.apply(U.n2,e).then(t=>{let e={...i,endTimestamp:Date.now(),response:t};return J("fetch",e),t},t=>{let e={...i,endTimestamp:Date.now(),error:t};throw J("fetch",e),t})}})}function t6(t,e){return!!t&&"object"==typeof t&&!!t[e]}function t9(t){return"string"==typeof t?t:t?t6(t,"url")?t.url:t.toString?t.toString():"":""}let t7=["fatal","error","warning","log","info","debug"];function t8(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}class et{static __initStatic(){this.id="Breadcrumbs"}constructor(t){this.name=et.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){if(this.options.console&&function(t){let e="console";W(e,t),Y(e,tz)}(en),this.options.dom){var t;W("dom",(t=this.options.dom,function(e){let n;let r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(tx&&E.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{let t=e.event;n=t&&t.target?(0,tM.Rt)(t.target,{keyAttrs:r,maxStringLength:i}):(0,tM.Rt)(t,{keyAttrs:r,maxStringLength:i})}catch(t){n="<unknown>"}0!==n.length&&(0,D.Gd)().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})})),Y("dom",tZ)}if(this.options.xhr&&t2(er),this.options.fetch&&t5(ei),this.options.history&&z(es),this.options.sentry){let t=(0,m.s3)();t&&t.on&&t.on("beforeSendEvent",ee)}}}function ee(t){(0,D.Gd)().addBreadcrumb({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,T.jH)(t)},{event:t})}function en(t){var e;let n={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(e=t.level)?"warning":t7.includes(e)?e:"log",message:(0,w.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,w.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,D.Gd)().addBreadcrumb(n,{input:t.args,level:t.level})}function er(t){let{startTimestamp:e,endTimestamp:n}=t,r=t.xhr[t1];if(!e||!n||!r)return;let{method:i,url:s,status_code:a,body:o}=r,u={xhr:t.xhr,input:o,startTimestamp:e,endTimestamp:n};(0,D.Gd)().addBreadcrumb({category:"xhr",data:{method:i,url:s,status_code:a},type:"http"},u)}function ei(t){let{startTimestamp:e,endTimestamp:n}=t;if(!(!n||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};(0,D.Gd)().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r=t.response,i={...t.fetchData,status_code:r&&r.status},s={input:t.args,response:r,startTimestamp:e,endTimestamp:n};(0,D.Gd)().addBreadcrumb({category:"fetch",data:i,type:"http"},s)}}}function es(t){let e=t.from,n=t.to,r=t8(tR.location.href),i=e?t8(e):void 0,s=t8(n);i&&i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),(0,D.Gd)().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function ea(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function eo(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}et.__initStatic();class eu{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=eu.id,this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){}preprocessEvent(t,e,n){let r=n.getOptions();!function(t,e,n=250,r,i,s,a){if(!s.exception||!s.exception.values||!a||!(0,tn.V9)(a.originalException,Error))return;let o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=(function t(e,n,r,i,s,a,o,u){if(a.length>=r+1)return a;let c=[...a];if((0,tn.V9)(i[s],Error)){ea(o,u);let a=e(n,i[s]),l=c.length;eo(a,s,l,u),c=t(e,n,r,i[s],s,[a,...c],a,l)}return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if((0,tn.V9)(i,Error)){ea(o,u);let l=e(n,i),p=c.length;eo(l,`errors[${a}]`,p,u),c=t(e,n,r,i,s,[l,...c],l,p)}}),c})(t,e,i,a.originalException,r,s.exception.values,o,0).map(t=>(t.value&&(t.value=(0,w.$G)(t.value,n)),t)))}(tS,r.stackParser,r.maxValueLength,this._key,this._limit,t,e)}}eu.__initStatic();class ec{static __initStatic(){this.id="HttpContext"}constructor(){this.name=ec.id}setupOnce(){}preprocessEvent(t){if(!tR.navigator&&!tR.location&&!tR.document)return;let e=t.request&&t.request.url||tR.location&&tR.location.href,{referrer:n}=tR.document||{},{userAgent:r}=tR.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...t.request,...e&&{url:e},headers:i};t.request=s}}ec.__initStatic();class el{static __initStatic(){this.id="Dedupe"}constructor(){this.name=el.id}setupOnce(t,e){}processEvent(t){if(t.type)return t;try{var e;if((e=this._previousEvent)&&(function(t,e){let n=t.message,r=e.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&ed(t,e)&&ep(t,e))}(t,e)||function(t,e){let n=ef(e),r=ef(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&ed(t,e)&&ep(t,e))}(t,e)))return tx&&E.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return this._previousEvent=t}}function ep(t,e){let n=eh(t),r=eh(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let t=0;t<r.length;t++){let e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function ed(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function ef(t){return t.exception&&t.exception.values&&t.exception.values[0]}function eh(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){}}function eg(t,e,n,r){let i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}el.__initStatic();let em=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,e_=/\((\S*)(?::(\d+))(?::(\d+))\)/,ev=[30,t=>{let e=em.exec(t);if(e){let t=e[2]&&0===e[2].indexOf("eval");if(t){let t=e_.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}let[n,r]=ew(e[1]||"?",e[2]);return eg(r,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],ey=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,eb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ex=[50,t=>{let e=ey.exec(t);if(e){let t=e[3]&&e[3].indexOf(" > eval")>-1;if(t){let t=eb.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let n=e[3],r=e[1]||"?";return[r,n]=ew(r,n),eg(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],eS=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,eE=[40,t=>{let e=eS.exec(t);return e?eg(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],eT=(0,A.pE)(...[ev,ex,eE]),ew=(t,e)=>{let n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function ek(t,e,n=function(t){let e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return(0,tr.$2)(new tl("Not adding Promise because buffer limit was reached."));let i=r();return -1===e.indexOf(i)&&e.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(t){return new tr.cW((n,r)=>{let i=e.length;if(!i)return n(!0);let s=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{(0,tr.WD)(t).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}(t.bufferSize||30)){let r={};function i(i){let s=[];if(ta(i,(e,n)=>{let i=tu[n];if(function(t,e,n=Date.now()){return(t[e]||t.all||0)>n}(r,i)){let r=eO(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(e)}),0===s.length)return(0,tr.WD)();let a=ts(i[0],s),o=e=>{ta(a,(n,r)=>{let i=eO(n,r);t.recordDroppedEvent(e,tu[r],i)})};return n.add(()=>e({body:function(t,e){let[n,r]=t,i=JSON.stringify(n);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[to(i,e),t]:i.push("string"==typeof t?to(t,e):t)}for(let t of r){let[e,n]=t;if(s(`
${JSON.stringify(e)}
`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,ti.Fv)(n))}s(t)}}return"string"==typeof i?i:function(t){let e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e),r=0;for(let e of t)n.set(e,r),r+=e.length;return n}(i)}(a,t.textEncoder)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&k.X&&E.kg.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=Date.now()){let i={...t},s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(let t of s.trim().split(",")){let[e,n]=t.split(":",2),s=parseInt(e,10),a=(isNaN(s)?60:s)*1e3;if(n)for(let t of n.split(";"))i[t]=r+a;else i.all=r+a}else a?i.all=r+function(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(a,r):429===e&&(i.all=r+6e4);return i}(r,t),t),t=>{throw o("network_error"),t})).then(t=>t,t=>{if(t instanceof tl)return k.X&&E.kg.error("Skipped sending event because buffer is full."),o("queue_overflow"),(0,tr.WD)();throw t})}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function eO(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function eR(t,e=function(){if(f)return f;if(q(tR.fetch))return f=tR.fetch.bind(tR);let t=tR.document,e=tR.fetch;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){tx&&E.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return f=e.bind(tR)}()){let n=0,r=0;return ek(t,function(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,a).then(t=>(n-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}))}catch(t){return f=void 0,n-=s,r--,(0,tr.$2)(t)}})}function eC(t){return ek(t,function(e){return new tr.cW((n,r)=>{let i=new XMLHttpRequest;for(let e 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",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)})})}let eP=[new C,new j,new tF,new et,new tU,new eu,new el,new ec];function e$(t){t.startSession({ignoreDuration:!0}),t.captureSession()}let ej="baggage",eI="sentry-",eD=/^sentry-/;function eL(t){if(!t)return;let e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${eI}${e}`]=n),t),{});return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((t,[e,n],r)=>{let i=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===r?i:`${t},${i}`;return s.length>8192?(M.X&&E.kg.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},"")}(e)}function eN(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[e,n])=>(t[e]=n,t),{})}let eA=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function eM(t,e){let n=function(t){let e;if(!t)return;let n=t.match(eA);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=function(t){if(!(0,tn.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((t,e)=>{let n=eN(e);return{...t,...n}},{});else{if(!t)return;e=eN(t)}let n=Object.entries(e).reduce((t,[e,n])=>{if(e.match(eD)){let r=e.slice(eI.length);t[r]=n}return t},{});return Object.keys(n).length>0?n:void 0}(e),{traceId:i,parentSpanId:s,parentSampled:a}=n||{},o={traceId:i||(0,T.DM)(),spanId:(0,T.DM)().substring(16),sampled:a};return s&&(o.parentSpanId=s),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function eU(t=(0,T.DM)(),e=(0,T.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}class eH{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class eX{constructor(t={}){this.traceId=t.traceId||(0,T.DM)(),this.spanId=t.spanId||(0,T.DM)().substring(16),this.startTimestamp=t.startTimestamp||(0,tb.ph)(),this.tags=t.tags||{},this.data=t.data||{},this.instrumenter=t.instrumenter||"sentry",this.origin=t.origin||"manual",t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.status&&(this.status=t.status),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}get name(){return this.description||""}set name(t){this.setName(t)}startChild(t){let e=new eX({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,k.X&&e.transaction){let n=t&&t.op||"< unknown op >",r=e.transaction.name||"< unknown name >",i=e.transaction.spanId,s=`[Tracing] Starting '${n}' span on transaction '${r}' (${i}).`;e.transaction.metadata.spanMetadata[e.spanId]={logMessage:s},E.kg.log(s)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);let e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){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(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==e&&this.setStatus(e),this}setName(t){this.description=t}isSuccess(){return"ok"===this.status}finish(t){if(k.X&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&E.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:(0,tb.ph)()}toTraceparent(){return eU(this.traceId,this.spanId,this.sampled)}toContext(){return(0,$.Jr)({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(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return(0,$.Jr)({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,origin:this.origin})}toJSON(){return(0,$.Jr)({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 eq extends eX{constructor(t,e){super(t),delete this.description,this._measurements={},this._contexts={},this._hub=e||(0,D.Gd)(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,e="custom"){this._name=t,this.metadata.source=e}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new eH(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){let e=this._finishTransaction(t);if(e)return this._hub.captureEvent(e)}toContext(){let t=super.toContext();return(0,$.Jr)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let t=this._hub||(0,D.Gd)(),e=t.getClient();if(!e)return{};let n=t.getScope(),r=tf(this.traceId,e,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);let s=this.metadata.source;return s&&"url"!==s&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(t){this._hub=t}_finishTransaction(t){if(void 0!==this.endTimestamp)return;this.name||(k.X&&E.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);let e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this.sampled){k.X&&E.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(t=>t!==this&&t.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t).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}}},s=Object.keys(this._measurements).length>0;return s&&(k.X&&E.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),k.X&&E.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}}let eG={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class eB extends eH{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:(0,tb.ph)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class eF extends eq{constructor(t,e,n=eG.idleTimeout,r=eG.finalTimeout,i=eG.heartbeatInterval,s=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",s&&(k.X&&E.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope(t=>t.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.finish())},this._finalTimeout)}finish(t=(0,tb.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){for(let e of(k.X&&E.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanId===this.spanId)return!0;!e.endTimestamp&&(e.endTimestamp=t,e.setStatus("cancelled"),k.X&&E.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));let n=e.startTimestamp<t,r=(this._finalTimeout+this._idleTimeout)/1e3,i=e.endTimestamp-this.startTimestamp<r;if(k.X){let t=JSON.stringify(e,void 0,2);n?i||E.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):E.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return n&&i}),k.X&&E.kg.log("[Tracing] flushing IdleTransaction")}else k.X&&E.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){let t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){this.spanRecorder||(this.spanRecorder=new eB(t=>{this._finished||this._pushActivity(t)},t=>{this._finished||this._popActivity(t)},this.spanId,t),k.X&&E.kg.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.finish(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),k.X&&E.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,k.X&&E.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(k.X&&E.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],k.X&&E.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let t=(0,tb.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason="cancelled",this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(k.X&&E.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.finish()):this._pingHeartbeat()}_pingHeartbeat(){k.X&&E.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function eW(t){let e=t||(0,D.Gd)(),n=e.getScope();return n.getTransaction()}let eY=!1;function eJ(){let t=eW();if(t){let e="internal_error";k.X&&E.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}function eV(t,e,n){var r;let i;return _(e)?void 0!==t.sampled?t.setMetadata({sampleRate:Number(t.sampled)}):("function"==typeof e.tracesSampler?(i=e.tracesSampler(n),t.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==e.tracesSampleRate?(i=e.tracesSampleRate,t.setMetadata({sampleRate:Number(i)})):(i=1,t.setMetadata({sampleRate:i})),r=i,(0,tn.i2)(r)||!("number"==typeof r||"boolean"==typeof r)?(k.X&&E.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),1):(r<0||r>1)&&(k.X&&E.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),1))?(k.X&&E.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1):i?(t.sampled=Math.random()<i,t.sampled)?k.X&&E.kg.log(`[Tracing] starting ${t.op} transaction - ${t.name}`):k.X&&E.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`):(k.X&&E.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1):t.sampled=!1,t}function ez(){let t=this.getScope(),e=t.getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function eK(t,e){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",s=t.instrumenter||"sentry";i!==s&&(k.X&&E.kg.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${i}\` instrumenter.
The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let a=new eq(t,this);return(a=eV(a,r,{parentSampled:t.parentSampled,transactionContext:t,...e})).sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function eZ(t,e,n,r,i,s,a){let o=t.getClient(),u=o&&o.getOptions()||{},c=new eF(e,t,n,r,a,i);return(c=eV(c,u,{parentSampled:e.parentSampled,transactionContext:e,...s})).sampled&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",c),c}eJ.tag="sentry_tracingErrorCallback";let eQ="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,e0=U.n2,e1=(t,e,n)=>{let r,i;return s=>{e.value>=0&&(s||n)&&((i=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=i,t(e))}},e2=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,e3=()=>{let t=e0.performance.timing,e=e0.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(let e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n},e5=()=>e0.__WEB_VITALS_POLYFILL__?e0.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||e3()):e0.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],e4=()=>{let t=e5();return t&&t.activationStart||0},e6=(t,e)=>{let n=e5(),r="navigate";return n&&(r=e0.document.prerendering||e4()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:e2(),navigationType:r}},e9=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let r=new PerformanceObserver(t=>{e(t.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},e7=(t,e)=>{let n=r=>{("pagehide"===r.type||"hidden"===e0.document.visibilityState)&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},e8=t=>{let e;let n=e6("CLS",0),r=0,i=[],s=t=>{t.forEach(t=>{if(!t.hadRecentInput){let s=i[0],a=i[i.length-1];r&&0!==i.length&&t.startTime-a.startTime<1e3&&t.startTime-s.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>n.value&&(n.value=r,n.entries=i,e&&e())}})},a=e9("layout-shift",s);if(a){e=e1(t,n);let r=()=>{s(a.takeRecords()),e(!0)};return e7(r),r}},nt=-1,ne=()=>"hidden"!==e0.document.visibilityState||e0.document.prerendering?1/0:0,nn=()=>{e7(({timeStamp:t})=>{nt=t},!0)},nr=()=>(nt<0&&(nt=ne(),nn()),{get firstHiddenTime(){return nt}}),ni=t=>{let e;let n=nr(),r=e6("FID"),i=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),e(!0))},s=t=>{t.forEach(i)},a=e9("first-input",s);e=e1(t,r),a&&e7(()=>{s(a.takeRecords()),a.disconnect()},!0)},ns={},na=t=>{let e;let n=nr(),r=e6("LCP"),i=t=>{let i=t[t.length-1];if(i){let t=Math.max(i.startTime-e4(),0);t<n.firstHiddenTime&&(r.value=t,r.entries=[i],e())}},s=e9("largest-contentful-paint",i);if(s){e=e1(t,r);let n=()=>{ns[r.id]||(i(s.takeRecords()),s.disconnect(),ns[r.id]=!0,e(!0))};return["keydown","click"].forEach(t=>{addEventListener(t,n,{once:!0,capture:!0})}),e7(n,!0),n}},no={},nu={};function nc(t,e){return ng(t,e),nu[t]||(function(t){let e={};"event"===t&&(e.durationThreshold=0),e9(t,e=>{nl(t,{entries:e})},e)}(t),nu[t]=!0),nm(t,e)}function nl(t,e){let n=no[t];if(n&&n.length)for(let r of n)try{r(e)}catch(e){eQ&&E.kg.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${(0,A.$P)(r)}
Error:`,e)}}function np(){e8(t=>{nl("cls",{metric:t}),u=t})}function nd(){ni(t=>{nl("fid",{metric:t}),c=t})}function nf(){na(t=>{nl("lcp",{metric:t}),l=t})}function nh(t,e,n,r){return ng(t,e),nu[t]||(n(),nu[t]=!0),r&&e({metric:r}),nm(t,e)}function ng(t,e){no[t]=no[t]||[],no[t].push(e)}function nm(t,e){return()=>{let n=no[t];if(!n)return;let r=n.indexOf(e);-1!==r&&n.splice(r,1)}}function n_(t){return"number"==typeof t&&isFinite(t)}function nv(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function ny(t){return t/1e3}function nb(){return e0&&e0.addEventListener&&e0.performance}let nx=0,nS={};function nE(t,e,n,r,i,s){let a=s?e[s]:e[`${n}End`],o=e[`${n}Start`];o&&a&&nv(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ny(o),endTimestamp:r+ny(a)})}function nT(t,e,n,r){let i=e[n];null!=i&&i<2147483647&&(t[r]=i)}let nw=["localhost",/^\/(?!\/)/],nk={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:nw,tracePropagationTargets:nw};function nO(t){let e=t.data.url;if(!e)return;let n=nc("resource",({entries:r})=>{r.forEach(r=>{if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(e)){let e=function(t){let{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(let i of t){if("/"===i){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}(t.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",e]),tb.Z1)?[...r,["http.request.redirect_start",nR(t.redirectStart)],["http.request.fetch_start",nR(t.fetchStart)],["http.request.domain_lookup_start",nR(t.domainLookupStart)],["http.request.domain_lookup_end",nR(t.domainLookupEnd)],["http.request.connect_start",nR(t.connectStart)],["http.request.secure_connection_start",nR(t.secureConnectionStart)],["http.request.connection_end",nR(t.connectEnd)],["http.request.request_start",nR(t.requestStart)],["http.request.response_start",nR(t.responseStart)],["http.request.response_end",nR(t.responseEnd)]]:r}(r);e.forEach(e=>t.setData(...e)),setTimeout(n)}})})}function nR(t=0){return((tb.Z1||performance.timeOrigin)+t)/1e3}function nC(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(ej,n)}catch(t){}}let nP={...eG,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){let r;if(!e0||!e0.location){eQ&&E.kg.warn("Could not initialize routing instrumentation due to invalid location");return}let i=e0.location.href;e&&(r=t({name:e0.location.pathname,startTimestamp:tb.Z1?tb.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&z(({to:e,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(e)){i=void 0;return}n!==e&&(i=void 0,r&&(eQ&&E.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=t({name:e0.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...nk};class n${constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,function(){let t=(0,D.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=eK),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=ez),eY||(eY=!0,tI(eJ),tN(eJ)))}(),eQ&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...nP,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=function(){let t=nb();if(t&&tb.Z1){t.mark&&e0.performance.mark("sentry-tracing-init");let e=nh("fid",({metric:t})=>{let e=t.entries.pop();if(!e)return;let n=ny(tb.Z1),r=ny(e.startTime);eQ&&E.kg.log("[Measurements] Adding FID"),nS.fid={value:t.value,unit:"millisecond"},nS["mark.fid"]={value:n+r,unit:"second"}},nd,c),n=nh("cls",({metric:t})=>{let e=t.entries.pop();e&&(eQ&&E.kg.log("[Measurements] Adding CLS"),nS.cls={value:t.value,unit:""},d=e)},np,u),r=nh("lcp",({metric:t})=>{let e=t.entries.pop();e&&(eQ&&E.kg.log("[Measurements] Adding LCP"),nS.lcp={value:t.value,unit:"millisecond"},p=e)},nf,l);return()=>{e(),n(),r()}}return()=>void 0}(),this.options.enableLongTask&&nc("longtask",({entries:t})=>{for(let e of t){let t=eW();if(!t)return;let n=ny(tb.Z1+e.startTime),r=ny(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}),this.options._experiments.enableInteractions&&nc("event",({entries:t})=>{for(let e of t){let t=eW();if(!t)return;if("click"===e.name){let n=ny(tb.Z1+e.startTime),r=ny(e.duration);t.startChild({description:(0,tM.Rt)(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}})}setupOnce(t,e){this._getCurrentHub=e;let n=e(),r=n.getClient(),i=r&&r.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:a,startTransactionOnPageLoad:o,markBackgroundTransactions:u,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:p,enableHTTPTimings:d,_experiments:f}=this.options,h=i&&i.tracePropagationTargets,g=h||this.options.tracePropagationTargets;eQ&&this._hasSetTracePropagationTargets&&h&&E.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(t=>{let n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n},o,a),u&&(e0&&e0.document?e0.document.addEventListener("visibilitychange",()=>{let t=eW();if(e0.document.hidden&&t){let e="cancelled";eQ&&E.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}}):eQ&&E.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),f.enableInteractions&&this._registerInteractionListener(),function(t){let{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a}={traceFetch:nk.traceFetch,traceXHR:nk.traceXHR,...t},o="function"==typeof s?s:t=>!0,u=t=>{var e;return e=r||i,(0,w.U0)(t,e||nw)},c={};e&&t5(t=>{let e=function(t,e,n,r,i="auto.http.browser"){if(!_()||!t.fetchData)return;let s=e(t.fetchData.url);if(t.endTimestamp&&s){let e=t.fetchData.__span;if(!e)return;let n=r[e];if(n){if(t.response){n.setHttpStatus(t.response.status);let e=t.response&&t.response.headers&&t.response.headers.get("content-length");if(e){let t=parseInt(e);t>0&&n.setData("http.response_content_length",t)}}else t.error&&n.setStatus("internal_error");n.finish(),delete r[e]}return}let a=(0,D.Gd)(),o=a.getScope(),u=a.getClient(),c=o.getSpan(),{method:l,url:p}=t.fetchData,d=s&&c?c.startChild({data:{url:p,type:"fetch","http.method":l},description:`${l} ${p}`,op:"http.client",origin:i}):void 0;if(d&&(t.fetchData.__span=d.spanId,r[d.spanId]=d),n(t.fetchData.url)&&u){let e=t.args[0];t.args[1]=t.args[1]||{};let n=t.args[1];n.headers=function(t,e,n,r,i){let s=i||n.getSpan(),a=s&&s.transaction,{traceId:o,sampled:u,dsc:c}=n.getPropagationContext(),l=s?s.toTraceparent():eU(o,void 0,u),p=a?a.getDynamicSamplingContext():c||tf(o,e,n),d=eL(p),f="undefined"!=typeof Request&&(0,tn.V9)(t,Request)?t.headers:r.headers;if(!f)return{"sentry-trace":l,baggage:d};if("undefined"!=typeof Headers&&(0,tn.V9)(f,Headers)){let t=new Headers(f);return t.append("sentry-trace",l),d&&t.append(ej,d),t}if(Array.isArray(f)){let t=[...f,["sentry-trace",l]];return d&&t.push([ej,d]),t}{let t="baggage"in f?f.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),d&&e.push(d),{...f,"sentry-trace":l,baggage:e.length>0?e.join(","):void 0}}}(e,u,o,n,d)}return d}(t,o,u,c);a&&e&&nO(e)}),n&&t2(t=>{let e=function(t,e,n,r){let i=t.xhr,s=i&&i[t1];if(!_()||!i||i.__sentry_own_request__||!s)return;let a=e(s.url);if(t.endTimestamp&&a){let t=i.__sentry_xhr_span_id__;if(!t)return;let e=r[t];e&&void 0!==s.status_code&&(e.setHttpStatus(s.status_code),e.finish(),delete r[t]);return}let o=(0,D.Gd)(),u=o.getScope(),c=u.getSpan(),l=a&&c?c.startChild({data:{type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.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(s.url)){if(l){let t=l&&l.transaction,e=t&&t.getDynamicSamplingContext(),n=eL(e);nC(i,l.toTraceparent(),n)}else{let t=o.getClient(),{traceId:e,sampled:n,dsc:r}=u.getPropagationContext(),s=eU(e,void 0,n),a=r||(t?tf(e,t,u):void 0),c=eL(a);nC(i,s,c)}}return l}(t,o,u,c);a&&e&&nO(e)})}({traceFetch:c,traceXHR:l,tracePropagationTargets:g,shouldCreateSpanForRequest:p,enableHTTPTimings:d})}_createRouteTransaction(t){if(!this._getCurrentHub){eQ&&E.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}let e=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,a="pageload"===t.op,o=a?nj("sentry-trace"):"",u=a?nj("baggage"):"",{traceparentData:c,dynamicSamplingContext:l,propagationContext:f}=eM(o,u),h={...t,...c,metadata:{...t.metadata,dynamicSamplingContext:c&&!l?{}:l},trimEnd:!0},g="function"==typeof n?n(h):h,m=void 0===g?{...h,sampled:!1}:g;m.metadata=m.name!==h.name?{...m.metadata,source:"custom"}:m.metadata,this._latestRouteName=m.name,this._latestRouteSource=m.metadata&&m.metadata.source,!1===m.sampled&&eQ&&E.kg.log(`[Tracing] Will not send ${m.op} transaction because of beforeNavigate.`),eQ&&E.kg.log(`[Tracing] Starting ${m.op} transaction on scope`);let{location:_}=e0,v=eZ(e,m,r,i,!0,{location:_},s),y=e.getScope();return a&&c?y.setPropagationContext(f):y.setPropagationContext({traceId:v.traceId,spanId:v.spanId,parentSpanId:v.parentSpanId,sampled:v.sampled}),v.registerBeforeFinishCallback(t=>{this._collectWebVitals(),function(t){let e,n;let r=nb();if(!r||!e0.performance.getEntries||!tb.Z1)return;eQ&&E.kg.log("[Tracing] Adding & adjusting spans using Performance API");let i=ny(tb.Z1),s=r.getEntries();if(s.slice(nx).forEach(r=>{let s=ny(r.startTime),a=ny(r.duration);if("navigation"!==t.op||!(i+s<t.startTimestamp))switch(r.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{nE(t,r,e,i)}),nE(t,r,"secureConnection",i,"TLS/SSL","connectEnd"),nE(t,r,"fetch",i,"cache","domainLookupStart"),nE(t,r,"domainLookup",i,"DNS"),nv(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:i+ny(r.requestStart),endTimestamp:i+ny(r.responseEnd)}),nv(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:i+ny(r.responseStart),endTimestamp:i+ny(r.responseEnd)}),e=i+ny(r.responseStart),n=i+ny(r.requestStart);break;case"mark":case"paint":case"measure":{(function(t,e,n,r,i){let s=i+n;nv(t,{description:e.name,endTimestamp:s+r,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})})(t,r,s,a,i);let e=nr(),n=r.startTime<e.firstHiddenTime;"first-paint"===r.name&&n&&(eQ&&E.kg.log("[Measurements] Adding FP"),nS.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&n&&(eQ&&E.kg.log("[Measurements] Adding FCP"),nS.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":{let e=r.name.replace(e0.location.origin,"");(function(t,e,n,r,i,s){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;let a={};nT(a,e,"transferSize","http.response_transfer_size"),nT(a,e,"encodedBodySize","http.response_content_length"),nT(a,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus);let o=s+r,u=o+i;nv(t,{description:n,endTimestamp:u,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:a})})(t,r,e,s,a,i)}}}),nx=Math.max(s.length-1,0),function(t){let e=e0.navigator;if(!e)return;let n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),n_(n.rtt)&&(nS["connection.rtt"]={value:n.rtt,unit:"millisecond"})),n_(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),n_(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof e&&(eQ&&E.kg.log("[Measurements] Adding TTFB"),nS.ttfb={value:(e-t.startTimestamp)*1e3,unit:"millisecond"},"number"==typeof n&&n<=e&&(nS["ttfb.requestTime"]={value:(e-n)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(e=>{if(!nS[e]||i>=t.startTimestamp)return;let n=nS[e].value,r=i+ny(n),s=Math.abs((r-t.startTimestamp)*1e3),a=s-n;eQ&&E.kg.log(`[Measurements] Normalized ${e} from ${n} to ${s} (${a})`),nS[e].value=s});let r=nS["mark.fid"];r&&nS.fid&&(nv(t,{description:"first input delay",endTimestamp:r.value+ny(nS.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:r.value}),delete nS["mark.fid"]),"fcp"in nS||delete nS.cls,Object.keys(nS).forEach(e=>{t.setMeasurement(e,nS[e].value,nS[e].unit)}),p&&(eQ&&E.kg.log("[Measurements] Adding LCP Data"),p.element&&t.setTag("lcp.element",(0,tM.Rt)(p.element)),p.id&&t.setTag("lcp.id",p.id),p.url&&t.setTag("lcp.url",p.url.trim().slice(0,200)),t.setTag("lcp.size",p.size)),d&&d.sources&&(eQ&&E.kg.log("[Measurements] Adding CLS Data"),d.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,(0,tM.Rt)(e.node))))}p=void 0,d=void 0,nS={}}(t)}),v}_registerInteractionListener(){let t;let e=()=>{let{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",s=eW();if(s&&s.op&&["navigation","pageload"].includes(s.op)){eQ&&E.kg.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub){eQ&&E.kg.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){eQ&&E.kg.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let a=this._getCurrentHub(),{location:o}=e0,u={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=eZ(a,u,e,n,!0,{location:o},r)};["click"].forEach(t=>{addEventListener(t,e,{once:!1,capture:!0})})}}function nj(t){let e=(0,tM.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function nI(t,e,n={}){return Array.isArray(e)?nD(t,e,n):r=>{let i=e(r);if(t.allowExclusionByUser){let e=i.find(e=>e.name===t.name);if(!e)return i}return nD(t,i,n)}}function nD(t,e,n){let r=e.find(e=>e.name===t.name);if(r){for(let[t,e]of Object.entries(n))!function t(e,n,r){let i=n.match(/([a-z_]+)\.(.*)/i);if(null===i)e[n]=r;else{let n=e[i[1]];t(n,i[2],r)}}(r,t,e);return e}return[...e,t]}var nL=n(83454);let nN={"routing.instrumentation":"next-app-router"};var nA=n(11163),nM=n.n(nA);let nU="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nH={"routing.instrumentation":"next-pages-router"},nX=(0,m.s3)();function nq(t,e=!0,n=!0){let r=!tR.document.getElementById("__NEXT_DATA__");r?function(t,e=!0,n=!0){let r;let i=tR.location.pathname;e&&(r=t({name:i,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:nN,startTimestamp:tb.Z1?tb.Z1/1e3:void 0,metadata:{source:"url"}})),n&&t5(e=>{if(void 0!==e.endTimestamp||"GET"!==e.fetchData.method)return;let n=function(t){if(!t[0]||"object"!=typeof t[0]||void 0===t[0].searchParams||!t[1]||"object"!=typeof t[1]||!("headers"in t[1]))return null;try{let e=t[0],n=t[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:e.pathname}}catch(t){return null}}(e.args);if(null===n)return;let s=n.targetPathname,a={...nN,from:i};i=s,r&&r.finish(),t({name:s,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:a,metadata:{source:"url"}})})}(t,e,n):function(t,e=!0,n=!0){let{route:r,params:i,sentryTrace:s,baggage:a}=function(){let t;let e=tR.document.getElementById("__NEXT_DATA__");if(e&&e.innerHTML)try{t=JSON.parse(e.innerHTML)}catch(t){nU&&E.kg.warn("Could not extract __NEXT_DATA__")}if(!t)return{};let n={},{page:r,query:i,props:s}=t;return n.route=r,n.params=i,s&&s.pageProps&&(n.sentryTrace=s.pageProps._sentryTraceData,n.baggage=s.pageProps._sentryBaggage),n}(),{traceparentData:o,dynamicSamplingContext:u,propagationContext:c}=eM(s,a);(0,D.Gd)().getScope().setPropagationContext(c),g=r||tR.location.pathname,e&&(h=t({name:g,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:nH,startTimestamp:tb.Z1?tb.Z1/1e3:void 0,...i&&nX&&nX.getOptions().sendDefaultPii&&{data:i},...o,metadata:{source:r?"route":"url",dynamicSamplingContext:o&&!u?{}:u}})),n&&nM().events.on("routeChangeStart",e=>{let n,r;let i=e.split(/[\?#]/,1)[0],s=function(t){let e=(tR.__BUILD_MANIFEST||{}).sortedPages;if(e)return e.find(e=>{let n=function(t){let e=t.split("/"),n="";e[e.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(e.pop(),n="(?:/(.+?))?");let r=e.map(t=>t.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(e);return t.match(n)})}(i);s?(n=s,r="route"):(n=i,r="url");let a={...nH,from:g};g=n,h&&h.finish();let o=t({name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:a,metadata:{source:r}});if(o){let t=o.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),e=()=>{t.finish(),nM().events.off("routeChangeComplete",e)};nM().events.on("routeChangeComplete",e)}})}(t,e,n)}let nG=n.g,nB=n.g;var nF=window;nF.__sentryRewritesTunnelPath__=void 0,nF.SENTRY_RELEASE={id:"f6e2c148b0810f8cec363439b38c049a4de69227"},nF.__sentryBasePath=void 0,nF.__rewriteFramesAssetPrefixPath__="";let nW="https://0afc5c056af24379aa196541a5f7b172@o4505427905413120.ingest.sentry.io/4505427907117056";nW&&function(t){let e={environment:function(t){let e=t?nL.env.NEXT_PUBLIC_VERCEL_ENV:nL.env.VERCEL_ENV;return e?`vercel-${e}`:void 0}(!0)||"production",...t};!function(t){let e=nG.__sentryRewritesTunnelPath__;if(e&&t.dsn){let n=tt(t.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(r){let i=r[1],s=`${e}?o=${i}&p=${n.projectId}`;t.tunnel=s,nU&&E.kg.info(`Tunneling events to "${s}"`)}else nU&&E.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(e),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.nextjs",packages:["nextjs","react"].map(t=>({name:`npm:@sentry/${t}`,version:S.J})),version:S.J},function(t){let e=t.integrations||[],n=nB.__rewriteFramesAssetPrefixPath__||"",r=new x({iteratee:t=>{try{let{origin:e}=new URL(t.filename);t.filename=function(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],s=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...t)=>n.call(e,...t)),e=void 0)}return n}([t,"access",t=>t.filename,"optionalAccess",t=>t.replace,"call",t=>t(e,"app://"),"access",t=>t.replace,"call",t=>t(n,"")])}catch(t){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t}});if(e=nI(r,e),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&_(t)){let t=new n$({tracingOrigins:[...nk.tracingOrigins,/^(api\/)/],routingInstrumentation:nq});e=nI(t,e,{"options.routingInstrumentation":nq})}t.integrations=e}(e),function(t){let e={_metadata:{},...t};e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:S.J}],version:S.J},function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=eP),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),tR.SENTRY_RELEASE&&tR.SENTRY_RELEASE.id&&(t.release=tR.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);let e={...t,stackParser:(0,A.Sq)(t.stackParser||eT),integrations:function(t){let e;let n=t.defaultIntegrations||[],r=t.integrations;n.forEach(t=>{t.isDefaultInstance=!0}),e=Array.isArray(r)?[...n,...r]:"function"==typeof r?(0,T.lE)(r(n)):n;let i=function(t){let e={};return t.forEach(t=>{let{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.keys(e).map(t=>e[t])}(e),s=function(t,e){for(let n=0;n<t.length;n++)if(!0===e(t[n]))return n;return -1}(i,t=>"Debug"===t.name);if(-1!==s){let[t]=i.splice(s,1);i.push(t)}return i}(t),transport:t.transport||(X()?eR:eC)};(function(t,e){!0===e.debug&&(k.X?E.kg.enable():(0,E.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let n=(0,D.Gd)(),r=n.getScope();r.update(e.initialScope);let i=new t(e);n.bindClient(i)})(t$,e),t.autoSessionTracking&&function(){if(void 0===tR.document){tx&&E.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let t=(0,D.Gd)();t.captureSession&&(e$(t),z(({from:t,to:e})=>{void 0!==t&&t!==e&&e$((0,D.Gd)())}))}()}(e)}(e),(0,m.e)(t=>{t.setTag("runtime","browser");let e=t=>"transaction"===t.type&&"/404"===t.transaction?null:t;e.id="NextClient404Filter",t.addEventProcessor(e)})}({dsn:nW,integrations:[],enableTracing:!1})},91196:function(){},77663:function(t){!function(){var e={229:function(t){var e,n,r,i=t.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u=[],c=!1,l=-1;function p(){c&&r&&(c=!1,r.length?u=r.concat(u):l=-1,u.length&&d())}function d(){if(!c){var t=o(p);c=!0;for(var e=u.length;e;){for(r=u,u=[];++l<e;)r&&r[l].run();l=-1,e=u.length}r=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function h(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new f(t,e)),1!==u.length||c||o(d)},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=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var s=n[t]={exports:{}},a=!0;try{e[t](s,s.exports,r),a=!1}finally{a&&delete n[t]}return s.exports}r.ab="//";var i=r(229);t.exports=i}()},11163:function(t,e,n){t.exports=n(38355)},25383:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},68799:function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},60182:function(t){t.exports=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},82479:function(t){function e(t,e,n,r,i,s,a){try{var o=t[s](a),u=o.value}catch(t){return void n(t)}o.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise(function(i,s){var a=t.apply(n,r);function o(t){e(a,i,s,o,u,"next",t)}function u(t){e(a,i,s,o,u,"throw",t)}o(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},52870:function(t){t.exports=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},21360:function(t,e,n){var r=n(6009),i=n(39686);t.exports=function(t,e,n){if(r())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,e);var a=new(t.bind.apply(t,s));return n&&i(a,n.prototype),a},t.exports.__esModule=!0,t.exports.default=t.exports},39033:function(t,e,n){var r=n(88398);function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},55010:function(t,e,n){var r=n(88398);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},99590:function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},24221:function(t,e,n){var r=n(39686);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},36426:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},18666:function(t){t.exports=function(t){try{return -1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}},t.exports.__esModule=!0,t.exports.default=t.exports},6009:function(t){function e(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(t.exports=e=function(){return!!n},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},26371:function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,s,a,o=[],u=!0,c=!1;try{if(s=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}},t.exports.__esModule=!0,t.exports.default=t.exports},48124:function(t){t.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},97688:function(t,e,n){var r=n(4749).default,i=n(60182);t.exports=function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},80035:function(t,e,n){var r=n(4749).default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},s=Object.prototype,a=s.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function f(t,n,r,i){var s,a,u=Object.create((n&&n.prototype instanceof y?n:y).prototype);return o(u,"_invoke",{value:(s=new P(i||[]),a=g,function(n,i){if(a===m)throw Error("Generator is already running");if(a===_){if("throw"===n)throw i;return{value:e,done:!0}}for(s.method=n,s.arg=i;;){var o=s.delegate;if(o){var u=function t(n,r){var i=r.method,s=n.iterator[i];if(s===e)return r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+i+"' method")),v;var a=h(s,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var o=a.arg;return o?o.done?(r[n.resultName]=o.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):o:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(o,s);if(u){if(u===v)continue;return u}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===g)throw a=_,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=m;var c=h(t,r,s);if("normal"===c.type){if(a=s.done?_:"suspendedYield",c.arg===v)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(a=_,s.method="throw",s.arg=c.arg)}})}),u}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var g="suspendedStart",m="executing",_="completed",v={};function y(){}function b(){}function x(){}var S={};d(S,c,function(){return this});var E=Object.getPrototypeOf,T=E&&E(E($([])));T&&T!==s&&a.call(T,c)&&(S=T);var w=x.prototype=y.prototype=Object.create(S);function k(t){["next","throw","return"].forEach(function(e){d(t,e,function(t){return this._invoke(e,t)})})}function O(t,e){var n;o(this,"_invoke",{value:function(i,s){function o(){return new e(function(n,o){!function n(i,s,o,u){var c=h(t[i],t,s);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==r(p)&&a.call(p,"__await")?e.resolve(p.__await).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):e.resolve(p).then(function(t){l.value=t,o(l)},function(t){return n("throw",t,o,u)})}u(c.arg)}(i,s,n,o)})}return n=n?n.then(o,o):o()}})}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function $(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,s=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw TypeError(r(t)+" is not iterable")}return b.prototype=x,o(w,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=d(x,p,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,d(t,p,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},k(O.prototype),d(O.prototype,l,function(){return this}),n.AsyncIterator=O,n.async=function(t,e,r,i,s){void 0===s&&(s=Promise);var a=new O(f(t,e,r,i),s);return n.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},k(w),d(w,p,"Generator"),d(w,c,function(){return this}),d(w,"toString",function(){return"[object Generator]"}),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=$,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return o.type="throw",o.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],o=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var u=a.call(s,"catchLoc"),c=a.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:$(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},39686:function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},73089:function(t,e,n){var r=n(68799),i=n(26371),s=n(10355),a=n(48124);t.exports=function(t,e){return r(t)||i(t,e)||s(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},19110:function(t,e,n){var r=n(4749).default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},88398:function(t,e,n){var r=n(4749).default,i=n(19110);t.exports=function(t){var e=i(t,"string");return"symbol"==r(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},4749:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},10355:function(t,e,n){var r=n(25383);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},32615:function(t,e,n){var r=n(99590),i=n(39686),s=n(18666),a=n(21360);function o(e){var n="function"==typeof Map?new Map:void 0;return t.exports=o=function(t){if(null===t||!s(t))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},26572:function(t,e,n){var r=n(80035)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[9774,179],function(){return e(52772),e(6840),e(38355)}),_N_E=t.O()}]);