(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{99330:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="production"},52017:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},70133: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 d=l({...n},r);o.X&&l.id&&null===d&&a.kg.log(`Event processor "${l.id}" dropped event`),(0,s.J8)(d)?d.then(n=>t(e,n,r,u+1).then(i)).then(null,c):t(e,d,r,u+1).then(i).then(null,c)}})}},cc:function(){return c},fH:function(){return u}});var r=n(74211),i=n(48894),a=n(86922),s=n(66885),o=n(52017);function u(){return(0,r.Y)("globalEventProcessors",()=>[])}function c(t){u().push(t)}},60074:function(t,e,n){"use strict";n.d(e,{$e:function(){return g},Tb:function(){return l},cg:function(){return T},eN:function(){return p},nZ:function(){return v},n_:function(){return f},s3:function(){return _},uT:function(){return d},v:function(){return h},yj:function(){return y},yl:function(){return m}});var r=n(86922),i=n(74211),a=n(99330),s=n(52017),o=n(6878),u=n(89015),c=n(53010);function l(t,e){return(0,o.Gd)().captureException(t,(0,c.U0)(e))}function d(t,e){let n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return(0,o.Gd)().captureMessage(t,n,r)}function p(t,e){return(0,o.Gd)().captureEvent(t,e)}function f(t,e){(0,o.Gd)().addBreadcrumb(t,e)}function h(t,e){(0,o.Gd)().setContext(t,e)}function g(...t){let e=(0,o.Gd)();if(2===t.length){let[n,r]=t;return n?e.withScope(()=>(e.getStackTop().scope=n,r(n))):e.withScope(r)}return e.withScope(t[0])}async function m(t){let e=_();return e?e.flush(t):(s.X&&r.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function _(){return(0,o.Gd)().getClient()}function v(){return(0,o.Gd)().getScope()}function y(t){let e=_(),n=(0,o.aF)(),r=v(),{release:s,environment:c=a.J}=e&&e.getOptions()||{},{userAgent:l}=i.GLOBAL_OBJ.navigator||{},d=(0,u.Hv)({release:s,environment:c,user:r.getUser()||n.getUser(),...l&&{userAgent:l},...t}),p=n.getSession();return p&&"ok"===p.status&&(0,u.CT)(p,{status:"exited"}),b(),n.setSession(d),r.setSession(d),d}function b(){let t=(0,o.aF)(),e=v(),n=e.getSession()||t.getSession();n&&(0,u.RJ)(n),S(),t.setSession(),e.setSession()}function S(){let t=(0,o.aF)(),e=v(),n=_(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function T(t=!1){if(t){b();return}S()}},6878:function(t,e,n){"use strict";n.d(e,{Gd:function(){return _},aF:function(){return v},cu:function(){return g}});var r=n(66885),i=n(67451),a=n(94180),s=n(86922),o=n(74211),u=n(99330),c=n(52017),l=n(25516),d=n(89015),p=n(37486);let f=parseFloat(p.J);class h{constructor(t,e,n,r=f){let i,a;this._version=r,e?i=e:(i=new l.sX).setClient(t),n?a=n:(a=new l.sX).setClient(t),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=a}isOlderThan(t){return this._version<t}bindClient(t){let e=this.getStackTop();e.client=t,e.scope.setClient(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;let n=this.pushScope();try{e=t(n)}catch(t){throw this.popScope(),t}return(0,r.J8)(e)?e.then(t=>(this.popScope(),t),t=>{throw this.popScope(),t}):(this.popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}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,i.DM)(),r=Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){let r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.DM)(),a=Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:a,...n,event_id:r}),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,i.DM)();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let u=(0,a.yW)(),c={timestamp:u,...t},l=i?(0,s.Cf)(()=>i(c,e)):c;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){let{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){let e=m(this);try{t(this)}finally{m(e)}}getIntegration(t){let e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return c.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(c.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,d.RJ)(n),this._sendSessionUpdate(),e.setSession()}startSession(t){let{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=u.J}=n&&n.getOptions()||{},{userAgent:a}=o.GLOBAL_OBJ.navigator||{},s=(0,d.Hv)({release:r,environment:i,user:e.getUser(),...a&&{userAgent:a},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&(0,d.CT)(c,{status:"exited"}),this.endSession(),e.setSession(s),s}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)}_callExtensionMethod(t,...e){let n=g(),r=n.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,e);c.X&&s.kg.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function g(){return o.GLOBAL_OBJ.__SENTRY__=o.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},o.GLOBAL_OBJ}function m(t){let e=g(),n=y(e);return b(e,t),n}function _(){let t=g();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=g()){return(!(t&&t.__SENTRY__&&t.__SENTRY__.hub)||y(t).isOlderThan(f))&&b(t,new h),y(t)}(t)}function v(){return _().getIsolationScope()}function y(t){return(0,o.Y)("hub",()=>new h,t)}function b(t,e){if(!t)return!1;let n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}},25516:function(t,e,n){"use strict";let r;n.d(e,{lW:function(){return p},sX:function(){return d}});var i=n(66885),a=n(94180),s=n(67451),o=n(86922),u=n(70133),c=n(89015),l=n(9408);class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=f()}static clone(t){return t?t.clone():new d}clone(){let t=new d;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._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,c.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let t=this._span;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;let e="function"==typeof t?t(this):t;if(e instanceof d){let t=e.getScopeData();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.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else(0,i.PO)(e)&&(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));return 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=f(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,a.yW)(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){let t=this.getScopeData();return t.attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:i,_user:a,_level:s,_fingerprint:o,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:l,_transactionName:d,_span:p}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:i,user:a,level:s,fingerprint:o||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:l,transactionName:d,span:p}}applyToEvent(t,e={},n=[]){(0,l.gi)(t,this.getScopeData());let r=[...n,...(0,u.fH)(),...this._eventProcessors];return(0,u.RP)(r,t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e&&e.event_id?e.event_id:(0,s.DM)();if(!this._client)return o.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){let r=n&&n.event_id?n.event_id:(0,s.DM)();if(!this._client)return o.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,s.DM)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(o.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function p(){return r||(r=new d),r}function f(){return{traceId:(0,s.DM)(),spanId:(0,s.DM)().substring(16)}}},89015:function(t,e,n){"use strict";n.d(e,{CT:function(){return o},Hv:function(){return s},RJ:function(){return u}});var r=n(94180),i=n(67451),a=n(39109);function s(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,a.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)}},99349:function(t,e,n){"use strict";n.d(e,{_:function(){return u},j:function(){return c}});var r=n(39109),i=n(99330),a=n(60074),s=n(20094),o=n(63449);function u(t,e,n){let a=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:o}=n&&n.getUser()||{},u=(0,r.Jr)({environment:a.environment||i.J,release:a.release,user_segment:o,public_key:s,trace_id:t});return e.emit&&e.emit("createDsc",u),u}function c(t){let e=(0,a.s3)();if(!e)return{};let n=u((0,o.XU)(t).trace_id||"",e,(0,a.nZ)()),r=(0,s.G)(t);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:c,source:l}=r.metadata;null!=c&&(n.sample_rate=`${c}`);let d=(0,o.XU)(r);return l&&"url"!==l&&(n.transaction=d.description),n.sampled=String((0,o.Tt)(r)),e.emit&&e.emit("createDsc",n),n}},9408:function(t,e,n){"use strict";n.d(e,{gi:function(){return u},yo:function(){return c}});var r=n(39109),i=n(67451),a=n(99349),s=n(20094),o=n(63449);function u(t,e){let{fingerprint:n,span:u,breadcrumbs:c,sdkProcessingMetadata:l}=e;(function(t,e){let{extra:n,tags:i,user:a,contexts:s,level:o,transactionName:u}=e,c=(0,r.Jr)(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});let l=(0,r.Jr)(i);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let d=(0,r.Jr)(a);d&&Object.keys(d).length&&(t.user={...d,...t.user});let p=(0,r.Jr)(s);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts}),o&&(t.level=o),u&&(t.transaction=u)})(t,e),u&&function(t,e){t.contexts={trace:(0,o.wy)(e),...t.contexts};let n=(0,s.G)(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:(0,a.j)(e),...t.sdkProcessingMetadata};let r=(0,o.XU)(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,u),t.fingerprint=t.fingerprint?(0,i.lE)(t.fingerprint):[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint,function(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,c),t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...l}}function c(t,e){let{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:p,propagationContext:f,transactionName:h,span:g}=e;l(t,"extra",n),l(t,"tags",r),l(t,"user",i),l(t,"contexts",a),l(t,"sdkProcessingMetadata",o),s&&(t.level=s),h&&(t.transactionName=h),g&&(t.span=g),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...f}}function l(t,e,n){if(n&&Object.keys(n).length)for(let r in t[e]={...t[e]},n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}},20094:function(t,e,n){"use strict";function r(t){return t.transaction}n.d(e,{G:function(){return r}})},53010:function(t,e,n){"use strict";n.d(e,{R:function(){return f},U0:function(){return g}});var r=n(67451),i=n(94180),a=n(65268),s=n(74211),o=n(43527),u=n(99330),c=n(70133),l=n(25516),d=n(9408),p=n(63449);function f(t,e,n,f,g,m){let{normalizeDepth:_=3,normalizeMaxBreadth:v=1e3}=t,y={...e,event_id:e.event_id||n.event_id||(0,r.DM)(),timestamp:e.timestamp||(0,i.yW)()},b=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:u.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 c=t.request;c&&c.url&&(c.url=(0,a.$G)(c.url,s))})(y,t),b.length>0&&(y.sdk=y.sdk||{},y.sdk.integrations=[...y.sdk.integrations||[],...b]),void 0===e.type&&function(t,e){let n;let r=s.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let i=h.get(e);i?n=i:(n=new Map,h.set(e,n));let a=Object.keys(r).reduce((t,i)=>{let a;let s=n.get(i);s?a=s:(a=e(i),n.set(i,a));for(let e=a.length-1;e>=0;e--){let n=a[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=a[t.filename])})})}catch(t){}}(y,t.stackParser);let S=function(t,e){if(!e)return t;let n=t?t.clone():new l.sX;return n.update(e),n}(f,n.captureContext);n.mechanism&&(0,r.EG)(y,n.mechanism);let T=g&&g.getEventProcessors?g.getEventProcessors():[],k=(0,l.lW)().getScopeData();if(m){let t=m.getScopeData();(0,d.yo)(k,t)}if(S){let t=S.getScopeData();(0,d.yo)(k,t)}let w=[...n.attachments||[],...k.attachments];w.length&&(n.attachments=w),(0,d.gi)(y,k);let E=[...T,...(0,c.fH)(),...k.eventProcessors],x=(0,c.RP)(E,y,n);return x.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 _&&_>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,o.Fv)(t.data,e,n)}}))},...t.user&&{user:(0,o.Fv)(t.user,e,n)},...t.contexts&&{contexts:(0,o.Fv)(t.contexts,e,n)},...t.extra&&{extra:(0,o.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,o.Fv)(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>{let r=(0,p.XU)(t).data;return r&&(t.data=(0,o.Fv)(r,e,n)),t})),r}(t,_,v):t)}let h=new WeakMap;function g(t){return t?t instanceof l.sX||"function"==typeof t||Object.keys(t).some(t=>m.includes(t))?{captureContext:t}:t:void 0}let m=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},63449:function(t,e,n){"use strict";n.d(e,{$k:function(){return l},Hb:function(){return c},Tt:function(){return f},XU:function(){return p},i0:function(){return o},ve:function(){return s},wy:function(){return u}});var r=n(39109),i=n(17502),a=n(94180);let s=0,o=1;function u(t){let{spanId:e,traceId:n}=t.spanContext(),{data:i,op:a,parent_span_id:s,status:o,tags:u,origin:c}=p(t);return(0,r.Jr)({data:i,op:a,parent_span_id:s,span_id:e,status:o,tags:u,trace_id:n,origin:c})}function c(t){let{traceId:e,spanId:n}=t.spanContext(),r=f(t);return(0,i.$p)(e,n,r)}function l(t){return"number"==typeof t?d(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?d(t.getTime()):(0,a.ph)()}function d(t){return t>9999999999?t/1e3:t}function p(t){return"function"==typeof t.getSpanJSON?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function f(t){let{traceFlags:e}=t.spanContext();return!!(e&o)}},37486:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="7.120.0"},82456:function(t,e,n){"use strict";n.d(e,{EN:function(){return c},IQ:function(){return l},bU:function(){return s}});var r=n(72637),i=n(66885),a=n(86922);let s="baggage",o="sentry-",u=/^sentry-/;function c(t){if(!(0,i.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((t,e)=>{let n=d(e);for(let e of Object.keys(n))t[e]=n[e];return t},{});else{if(!t)return;e=d(t)}let n=Object.entries(e).reduce((t,[e,n])=>{if(e.match(u)){let r=e.slice(o.length);t[r]=n}return t},{});return Object.keys(n).length>0?n:void 0}function l(t){if(!t)return;let e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${o}${e}`]=n),t),{});return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((t,[e,n],i)=>{let s=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,o=0===i?s:`${t},${s}`;return o.length>8192?(r.X&&a.kg.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):o},"")}(e)}function d(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[e,n])=>(t[e]=n,t),{})}},61495:function(t,e,n){"use strict";n.d(e,{Rt:function(){return s},iY:function(){return c},l4:function(){return o},qT:function(){return u}});var r=n(66885),i=n(74211);let a=(0,i.R)();function s(t,e={}){if(!t)return"<unknown>";try{let n,i=t,s=[],o=0,u=0,c=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;i&&o++<5&&(n=function(t,e){let n,i,s,o,u;let c=[];if(!t||!t.tagName)return"";if(a.HTMLElement&&t instanceof HTMLElement&&t.dataset&&t.dataset.sentryComponent)return t.dataset.sentryComponent;c.push(t.tagName.toLowerCase());let l=e&&e.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(l&&l.length)l.forEach(t=>{c.push(`[${t[0]}="${t[1]}"]`)});else if(t.id&&c.push(`#${t.id}`),(n=t.className)&&(0,r.HD)(n))for(u=0,i=n.split(/\s+/);u<i.length;u++)c.push(`.${i[u]}`);let d=["aria-label","type","name","title","alt"];for(u=0;u<d.length;u++)s=d[u],(o=t.getAttribute(s))&&c.push(`[${s}="${o}"]`);return c.join("")}(i,c),"html"!==n&&(!(o>1)||!(u+3*s.length+n.length>=l)));)s.push(n),u+=n.length,i=i.parentNode;return s.reverse().join(" > ")}catch(t){return"<unknown>"}}function o(){try{return a.document.location.href}catch(t){return""}}function u(t){return a.document&&a.document.querySelector?a.document.querySelector(t):null}function c(t){if(!a.HTMLElement)return null;let e=t;for(let t=0;t<5&&e;t++){if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}},72637:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},66885:function(t,e,n){"use strict";n.d(e,{Cy:function(){return _},HD:function(){return c},J8:function(){return m},Kj:function(){return g},Le:function(){return l},PO:function(){return p},TX:function(){return o},V9:function(){return y},VW:function(){return s},VZ:function(){return i},cO:function(){return f},fm:function(){return u},i2:function(){return v},kK:function(){return h},pt:function(){return d},y1:function(){return b}});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 y(t,Error)}}function a(t,e){return r.call(t)===`[object ${e}]`}function s(t){return a(t,"ErrorEvent")}function o(t){return a(t,"DOMError")}function u(t){return a(t,"DOMException")}function c(t){return a(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function d(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function p(t){return a(t,"Object")}function f(t){return"undefined"!=typeof Event&&y(t,Event)}function h(t){return"undefined"!=typeof Element&&y(t,Element)}function g(t){return a(t,"RegExp")}function m(t){return!!(t&&t.then&&"function"==typeof t.then)}function _(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function v(t){return"number"==typeof t&&t!=t}function y(t,e){try{return t instanceof e}catch(t){return!1}}function b(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue))}},86922:function(t,e,n){"use strict";n.d(e,{Cf:function(){return o},LD:function(){return s},RU:function(){return a},kg:function(){return u}});var r=n(72637),i=n(74211);let a=["debug","info","warn","error","log","assert","trace"],s={};function o(t){if(!("console"in i.GLOBAL_OBJ))return t();let e=i.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(t=>{let r=s[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?a.forEach(n=>{e[n]=(...e)=>{t&&o(()=>{i.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...e)})}}):a.forEach(t=>{e[t]=()=>void 0}),e}()},67451:function(t,e,n){"use strict";n.d(e,{DM:function(){return a},Db:function(){return u},EG:function(){return c},YO:function(){return l},jH:function(){return o},lE:function(){return d}});var r=n(39109),i=n(74211);function a(){let t=i.GLOBAL_OBJ,e=t.crypto||t.msCrypto,n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function s(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=s(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||[],a=i[0]=i[0]||{};a.value||(a.value=e||""),a.type||(a.type=n||"Error")}function c(t,e){let n=s(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 d(t){return Array.isArray(t)?t:[t]}},43527:function(t,e,n){"use strict";n.d(e,{Fv:function(){return s},Qy:function(){return function t(e,n=3,r=102400){let i=s(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}}});var r=n(66885),i=n(39109),a=n(55514);function s(t,e=100,s=Infinity){try{return function t(e,s,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,d]=c;if(null==s||["number","boolean","string"].includes(typeof s)&&!(0,r.i2)(s))return s;let p=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,a.$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,s);if(!p.startsWith("[object "))return p;if(s.__sentry_skip_normalization__)return s;let f="number"==typeof s.__sentry_override_normalization_depth__?s.__sentry_override_normalization_depth__:o;if(0===f)return p.replace("object ","");if(l(s))return"[Circular ~]";if(s&&"function"==typeof s.toJSON)try{let e=s.toJSON();return t("",e,f-1,u,c)}catch(t){}let h=Array.isArray(s)?[]:{},g=0,m=(0,i.Sh)(s);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 d(s),h}("",t,e,s)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}},39109:function(t,e,n){"use strict";n.d(e,{$Q:function(){return l},HK:function(){return d},Jr:function(){return _},Sh:function(){return f},_j:function(){return p},hl:function(){return u},xp:function(){return c},zf:function(){return m}});var r=n(61495),i=n(72637),a=n(66885),s=n(86922),o=n(65268);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&&s.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 d(t){return t.__sentry_original__}function p(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function f(t){if((0,a.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...g(t)};if(!(0,a.cO)(t))return t;{let e={type:t.type,target:h(t.target),currentTarget:h(t.currentTarget),...g(t)};return"undefined"!=typeof CustomEvent&&(0,a.V9)(t,CustomEvent)&&(e.detail=t.detail),e}}function h(t){try{return(0,a.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(function(t){if(!(0,a.PO)(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(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)}},55514:function(t,e,n){"use strict";n.d(e,{$P:function(){return u},Sq:function(){return s},pE:function(){return a}});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function a(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0)=>{let a=[],s=t.split("\n");for(let t=n;t<s.length;t++){let n=s[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){a.push(e);break}}if(a.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||"?"}))}(a)}}function s(t){return Array.isArray(t)?a(...t):t}let o="<anonymous>";function u(t){try{if(!t||"function"!=typeof t)return o;return t.name||o}catch(t){return o}}},65268:function(t,e,n){"use strict";n.d(e,{$G:function(){return i},U0:function(){return s},nK:function(){return a}});var r=n(66885);function i(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.slice(0,e)}...`}function a(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 s(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))}},48894:function(t,e,n){"use strict";n.d(e,{$2:function(){return o},WD:function(){return s},cW:function(){return u}});var r,i,a=n(66885);function s(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,a.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)})}}}},94180:function(t,e,n){"use strict";n.d(e,{Z1:function(){return s},ph:function(){return a},yW:function(){return i}});var r=n(74211);function i(){return Date.now()/1e3}let a=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t||!t.now)return i;let e=Date.now()-t.now(),n=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}(),s=(()=>{let{performance:t}=r.GLOBAL_OBJ;if(!t||!t.now)return;let e=t.now(),n=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,a=t.timing&&t.timing.navigationStart,s="number"==typeof a?Math.abs(a+e-n):36e5;return i<36e5||s<36e5?i<=s?t.timeOrigin:a:n})()},17502:function(t,e,n){"use strict";n.d(e,{$p:function(){return c},KA:function(){return o},pT:function(){return u}});var r=n(82456),i=n(67451);let a=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(t){let e;if(!t)return;let n=t.match(a);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}function o(t,e){let n=s(t),a=(0,r.EN)(e),{traceId:o,parentSpanId:u,parentSampled:c}=n||{};return n?{traceparentData:n,dynamicSamplingContext:a||{},propagationContext:{traceId:o||(0,i.DM)(),parentSpanId:u||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:a||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:o||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}}function u(t,e){let n=s(t),a=(0,r.EN)(e),{traceId:o,parentSpanId:u,parentSampled:c}=n||{};return n?{traceId:o||(0,i.DM)(),parentSpanId:u||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:a||{}}:{traceId:o||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function c(t=(0,i.DM)(),e=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}},74211:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{GLOBAL_OBJ:function(){return i},R:function(){return a},Y:function(){return s}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function a(){return i}function s(t,e,n){let r=n||i,a=r.__SENTRY__=r.__SENTRY__||{},s=a[t]||(a[t]=e());return s}},8504:function(t,e,n){var r,i;void 0!==(i="function"==typeof(r=function(){var t,e,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(t,e,n){return t<e?e:t>n?n:t}r.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(i[e]=n);return this},r.status=null,r.set=function(t){var e=r.isStarted();t=a(t,i.minimum,1),r.status=1===t?null:t;var n=r.render(!e),u=n.querySelector(i.barSelector),c=i.speed,l=i.easing;return n.offsetWidth,s(function(e){var a,s;""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),o(u,(a=t,(s="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+c+"ms "+l,s)),1===t?(o(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){o(n,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),e()},c)},c)):setTimeout(e,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var t=function(){setTimeout(function(){r.status&&(r.trickle(),t())},i.trickleSpeed)};return i.trickle&&t(),this},r.done=function(t){return t||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(t){var e=r.status;return e?("number"!=typeof t&&(t=(1-e)*a(Math.random()*e,.1,.95)),e=a(e+t,0,.994),r.set(e)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},t=0,e=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===e&&r.start(),t++,e++,n.always(function(){0==--e?(t=0,r.done()):r.set((t-e)/t)})),this},r.render=function(t){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var n,a,s=e.querySelector(i.barSelector),u=t?"-100":(-1+(r.status||0))*100,l=document.querySelector(i.parent);return o(s,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),!i.showSpinner&&(a=e.querySelector(i.spinnerSelector))&&p(a),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(e),e},r.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(i.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&p(t)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective" in t?"translate3d":e+"Transform" in t?"translate":"margin"};var s=(n=[],function(t){n.push(t),1==n.length&&function t(){var e=n.shift();e&&e(t)}()}),o=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n,r,i){var a;r=e[a=(a=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]||(e[a]=function(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,a=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+a)in n)return r;return e}(a)),n.style[r]=i}return function(t,e){var r,i,a=arguments;if(2==a.length)for(r in e)void 0!==(i=e[r])&&e.hasOwnProperty(r)&&n(t,r,i);else n(t,a[1],a[2])}}();function u(t,e){return("string"==typeof t?t:d(t)).indexOf(" "+e+" ")>=0}function c(t,e){var n=d(t),r=n+e;u(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=d(t);u(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function p(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return r})?r.call(e,n,e,t):r)&&(t.exports=i)},27061:function(t){var e,n,r,i=t.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===a||!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:a}catch(t){e=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u=[],c=!1,l=-1;function d(){c&&r&&(c=!1,r.length?u=r.concat(u):l=-1,u.length&&p())}function p(){if(!c){var t=o(d);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===s||!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(p)},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}},55941:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},6840:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(44178)}])},23170:function(t,e,n){"use strict";let r,i,a,s,o,u,c,l,d,p,f,h,g,m,_,v,y;var b,S,T={};n.r(T),n.d(T,{FunctionToString:function(){return F},InboundFilters:function(){return V},LinkedErrors:function(){return tr}});var k={};n.r(k),n.d(k,{Breadcrumbs:function(){return ei},Dedupe:function(){return ef},GlobalHandlers:function(){return t$},HttpContext:function(){return el},LinkedErrors:function(){return eo},TryCatch:function(){return tU}});var w=n(51037),E=n(85556),x=n(37486);function C(t,e,n=[e],r="npm"){let i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(t=>({name:`${r}:@sentry/${t}`,version:x.J})),version:x.J}),t._metadata=i}var I=n(60074);function O(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=(0,I.s3)(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var L=n(39109),D=n(67451),R=n(86922),$=n(52017),P=n(70133),A=n(6878);let N=[];function M(t,e){for(let n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function j(t,e,n){if(n[e.name]){$.X&&R.kg.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,-1===N.indexOf(e.name)&&(e.setupOnce(P.cc,A.Gd),N.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)}$.X&&R.kg.log(`Integration installed: ${e.name}`)}function B(t,e){return Object.assign(function(...t){return e(...t)},{id:t})}let U="FunctionToString",G=new WeakMap,X=()=>({name:U,setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=(0,L.HK)(this),n=G.has((0,I.s3)())&&void 0!==e?e:this;return r.apply(n,t)}}catch(t){}},setup(t){G.set(t,!0)}}),F=B(U,X);var H=n(65268);let q=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],J=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],W="InboundFilters",Y=(t={})=>({name:W,setupOnce(){},processEvent(e,n,r){var i;let a=r.getOptions(),s=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:q],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:J],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,a);return(s.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(e)?($.X&&R.kg.warn(`Event dropped due to being internal Sentry Error.
Event: ${(0,D.jH)(e)}`),0):(i=s.ignoreErrors,!e.type&&i&&i.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}`)),$.X&&0===n.length&&R.kg.error(`Could not extract message for event ${(0,D.jH)(t)}`),n})(e).some(t=>(0,H.U0)(t,i)))?($.X&&R.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,D.jH)(e)}`),0):!function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;let n=t.transaction;return!!n&&(0,H.U0)(n,e)}(e,s.ignoreTransactions)?!function(t,e){if(!e||!e.length)return!1;let n=z(t);return!!n&&(0,H.U0)(n,e)}(e,s.denyUrls)?function(t,e){if(!e||!e.length)return!0;let n=z(t);return!n||(0,H.U0)(n,e)}(e,s.allowUrls)||($.X&&R.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,D.jH)(e)}.
Url: ${z(e)}`),0):($.X&&R.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,D.jH)(e)}.
Url: ${z(e)}`),0):($.X&&R.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,D.jH)(e)}`),0))?e:null}}),V=B(W,Y);function z(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 $.X&&R.kg.error(`Cannot extract url for event ${(0,D.jH)(t)}`),null}}var Z=n(66885);function K(t,e,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!(0,Z.V9)(s.originalException,Error))return;let o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=(function t(e,n,r,i,a,s,o,u){if(s.length>=r+1)return s;let c=[...s];if((0,Z.V9)(i[a],Error)){Q(o,u);let s=e(n,i[a]),l=c.length;tt(s,a,l,u),c=t(e,n,r,i[a],a,[s,...c],s,l)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,Z.V9)(i,Error)){Q(o,u);let l=e(n,i),d=c.length;tt(l,`errors[${s}]`,d,u),c=t(e,n,r,i,a,[l,...c],l,d)}}),c})(t,e,i,s.originalException,r,a.exception.values,o,0).map(t=>(t.value&&(t.value=(0,H.$G)(t.value,n)),t)))}function Q(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function tt(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}}function te(t,e){let n={type:e.name||e.constructor.name,value:e.message},r=t(e.stack||"",1);return r.length&&(n.stacktrace={frames:r}),n}let tn="LinkedErrors",tr=B(tn,(t={})=>{let e=t.limit||5,n=t.key||"cause";return{name:tn,setupOnce(){},preprocessEvent(t,r,i){let a=i.getOptions();K(te,a.stackParser,a.maxValueLength,n,e,t,r)}}});var ti=n(74211);let ta=ti.GLOBAL_OBJ,ts=0;function to(t,e={},n){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e){if("function"==typeof e)return e;return t}if((0,L.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=>to(t,e));return t.apply(this,i)}catch(t){throw ts++,setTimeout(()=>{ts--}),(0,I.$e)(n=>{n.addEventProcessor(t=>(e.mechanism&&((0,D.Db)(t,void 0,void 0),(0,D.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t)),(0,I.Tb)(t)}),t}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}(0,L.$Q)(r,t),(0,L.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}var tu=n(72637),tc=n(55514);let tl={},td={};function tp(t,e){tl[t]=tl[t]||[],tl[t].push(e)}function tf(t,e){td[t]||(e(),td[t]=!0)}function th(t,e){let n=t&&tl[t];if(n)for(let r of n)try{r(e)}catch(e){tu.X&&R.kg.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${(0,tc.$P)(r)}
Error:`,e)}}let tg=null;function tm(t){let e="error";tp(e,t),tf(e,t_)}function t_(){tg=ti.GLOBAL_OBJ.onerror,ti.GLOBAL_OBJ.onerror=function(t,e,n,r,i){return th("error",{column:r,error:i,line:n,msg:t,url:e}),!!tg&&!tg.__SENTRY_LOADER__&&tg.apply(this,arguments)},ti.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let tv=null;function ty(t){let e="unhandledrejection";tp(e,t),tf(e,tb)}function tb(){tv=ti.GLOBAL_OBJ.onunhandledrejection,ti.GLOBAL_OBJ.onunhandledrejection=function(t){return th("unhandledrejection",t),!tv||!!tv.__SENTRY_LOADER__||tv.apply(this,arguments)},ti.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var tS=n(61495);let tT="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var tk=n(43527),tw=n(48894);function tE(t,e){let n=tC(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 tx(t,e){return{exception:{values:[tE(t,e)]}}}function tC(t,e){let n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tI.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}let tI=/Minified React error #\d+;/i;function tO(t,e,n,r,i){let a;if((0,Z.VW)(e)&&e.error)return tx(t,e.error);if((0,Z.TX)(e)||(0,Z.fm)(e)){if("stack"in e)a=tx(t,e);else{let i=e.name||((0,Z.TX)(e)?"DOMError":"DOMException"),s=e.message?`${i}: ${e.message}`:i;a=tL(t,s,n,r),(0,D.Db)(a,s)}return"code"in e&&(a.tags={...a.tags,"DOMException.code":`${e.code}`}),a}return(0,Z.VZ)(e)?tx(t,e):(0,Z.PO)(e)||(0,Z.cO)(e)?(a=function(t,e,n,r){let i=(0,I.s3)(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:(0,Z.cO)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:function(t,{isUnhandledRejection:e}){let n=(0,L.zf)(t),r=e?"promise rejection":"exception";if((0,Z.VW)(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if((0,Z.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,tk.Qy)(e,a)}};if(n){let e=tC(t,n);e.length&&(s.exception.values[0].stacktrace={frames:e})}return s}(t,e,n,i),(0,D.EG)(a,{synthetic:!0}),a):(a=tL(t,e,n,r),(0,D.Db)(a,`${e}`,void 0),(0,D.EG)(a,{synthetic:!0}),a)}function tL(t,e,n,r){let i={};if(r&&n){let r=tC(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}if((0,Z.Le)(e)){let{__sentry_template_string__:t,__sentry_template_values__:n}=e;return i.logentry={message:t,params:n},i}return i.message=e,i}let tD="GlobalHandlers",tR=(t={})=>{let e={onerror:!0,onunhandledrejection:!0,...t};return{name:tD,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(tm(e=>{let{stackParser:n,attachStacktrace:r}=tN();if((0,I.s3)()!==t||ts>0)return;let{msg:i,url:a,line:s,column:o,error:u}=e,c=void 0===u&&(0,Z.HD)(i)?function(t,e,n,r){let i=(0,Z.VW)(t)?t.message:t,a="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(a=s[1],i=s[2]);let o={exception:{values:[{type:a,value:i}]}};return tP(o,e,n,r)}(i,a,s,o):tP(tO(n,u||i,void 0,r,!1),a,s,o);c.level="error",(0,I.eN)(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),tA("onerror")),e.onunhandledrejection&&(ty(e=>{let{stackParser:n,attachStacktrace:r}=tN();if((0,I.s3)()!==t||ts>0)return;let i=function(t){if((0,Z.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}(e),a=(0,Z.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:tO(n,i,void 0,r,!0);a.level="error",(0,I.eN)(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),tA("onunhandledrejection"))}}},t$=B(tD,tR);function tP(t,e,n,r){let i=t.exception=t.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},u=o.frames=o.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=(0,Z.HD)(e)&&e.length>0?e:(0,tS.l4)();return 0===u.length&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:l}),t}function tA(t){tT&&R.kg.log(`Global Handler attached: ${t}`)}function tN(){let t=(0,I.s3)(),e=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return e}let tM=["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"],tj="TryCatch",tB=(t={})=>{let e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:tj,setupOnce(){e.setTimeout&&(0,L.hl)(ta,"setTimeout",tG),e.setInterval&&(0,L.hl)(ta,"setInterval",tG),e.requestAnimationFrame&&(0,L.hl)(ta,"requestAnimationFrame",tX),e.XMLHttpRequest&&"XMLHttpRequest"in ta&&(0,L.hl)(XMLHttpRequest.prototype,"send",tF);let t=e.eventTarget;if(t){let e=Array.isArray(t)?t:tM;e.forEach(tH)}}}},tU=B(tj,tB);function tG(t){return function(...e){let n=e[0];return e[0]=to(n,{mechanism:{data:{function:(0,tc.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function tX(t){return function(e){return t.apply(this,[to(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,tc.$P)(t)},handled:!1,type:"instrument"}})])}}function tF(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&(0,L.hl)(n,t,function(e){let n={mechanism:{data:{function:t,handler:(0,tc.$P)(e)},handled:!1,type:"instrument"}},r=(0,L.HK)(e);return r&&(n.mechanism.data.handler=(0,tc.$P)(r)),to(e,n)})}),t.apply(this,e)}}function tH(t){let e=ta[t]&&ta[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&((0,L.hl)(e,"addEventListener",function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=to(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,tc.$P)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,to(r,{mechanism:{data:{function:"addEventListener",handler:(0,tc.$P)(r),target:t},handled:!1,type:"instrument"}}),i])}}),(0,L.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 tq(){"console"in ti.GLOBAL_OBJ&&R.RU.forEach(function(t){t in ti.GLOBAL_OBJ.console&&(0,L.hl)(ti.GLOBAL_OBJ.console,t,function(e){return R.LD[t]=e,function(...e){th("console",{args:e,level:t});let n=R.LD[t];n&&n.apply(ti.GLOBAL_OBJ.console,e)}})})}let tJ=ti.GLOBAL_OBJ;function tW(){if(!tJ.document)return;let t=th.bind(null,"dom"),e=tY(t,!0);tJ.document.addEventListener("click",e,!1),tJ.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{let n=tJ[e]&&tJ[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,L.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__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=tY(t);a.handler=r,e.call(this,n,r,i)}a.refCount++}catch(t){}return e.call(this,n,r,i)}}),(0,L.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 tY(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,L.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,L.xp)(r,"_sentryId",(0,D.DM)());let o="keypress"===n.type?"input":n.type;!function(t){if(t.type!==a)return!1;try{if(!t.target||t.target._sentryId!==s)return!1}catch(t){}return!0}(n)&&(t({event:n,name:o,global:e}),a=n.type,s=r?r._sentryId:void 0),clearTimeout(i),i=tJ.setTimeout(()=>{s=void 0,a=void 0},1e3)}}let tV=ti.GLOBAL_OBJ,tz="__sentry_xhr_v3__";function tZ(t){tp("xhr",t),tf("xhr",tK)}function tK(){if(!tV.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;(0,L.hl)(t,"open",function(t){return function(...e){let n=Date.now(),r=(0,Z.HD)(e[0])?e[0].toUpperCase():void 0,i=function(t){if((0,Z.HD)(t))return t;try{return t.toString()}catch(t){}}(e[1]);if(!r||!i)return t.apply(this,e);this[tz]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let a=()=>{let t=this[tz];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};th("xhr",e)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,L.hl)(this,"onreadystatechange",function(t){return function(...e){return a(),t.apply(this,e)}}):this.addEventListener("readystatechange",a),(0,L.hl)(this,"setRequestHeader",function(t){return function(...e){let[n,r]=e,i=this[tz];return i&&(0,Z.HD)(n)&&(0,Z.HD)(r)&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}}),t.apply(this,e)}}),(0,L.hl)(t,"send",function(t){return function(...e){let n=this[tz];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 th("xhr",r),t.apply(this,e)}})}let tQ=(0,ti.R)();function t0(){if(!("fetch"in tQ))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function t1(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function t5(t){let e="fetch";tp(e,t),tf(e,t2)}function t2(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!t0())return!1;if(t1(tQ.fetch))return!0;let t=!1,e=tQ.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=t1(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){tu.X&&R.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&(0,L.hl)(ti.GLOBAL_OBJ,"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:t3(e),method:t4(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:t3(e),method:t4(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return th("fetch",{...i}),t.apply(ti.GLOBAL_OBJ,e).then(t=>{let e={...i,endTimestamp:Date.now(),response:t};return th("fetch",e),t},t=>{let e={...i,endTimestamp:Date.now(),error:t};throw th("fetch",e),t})}})}function t4(t,e){return!!t&&"object"==typeof t&&!!t[e]}function t3(t){return"string"==typeof t?t:t?t4(t,"url")?t.url:t.toString?t.toString():"":""}let t9=(0,ti.R)(),t8=ti.GLOBAL_OBJ;function t6(t){let e="history";tp(e,t),tf(e,t7)}function t7(){if(!function(){let t=t9.chrome,e=t&&t.app&&t.app.runtime,n="history"in t9&&!!t9.history.pushState&&!!t9.history.replaceState;return!e&&n}())return;let t=t8.onpopstate;function e(t){return function(...e){let n=e.length>2?e[2]:void 0;if(n){let t=o,e=String(n);o=e,th("history",{from:t,to:e})}return t.apply(this,e)}}t8.onpopstate=function(...e){let n=t8.location.href,r=o;if(o=n,th("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},(0,L.hl)(t8.history,"pushState",e),(0,L.hl)(t8.history,"replaceState",e)}let et=["fatal","error","warning","log","info","debug"];function ee(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}}let en="Breadcrumbs",er=(t={})=>{let e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:en,setupOnce(){},setup(t){var n;e.console&&function(t){let e="console";tp(e,t),tf(e,tq)}(function(e){var n;if((0,I.s3)()!==t)return;let r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(n=e.level)?"warning":et.includes(n)?n:"log",message:(0,H.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;r.message=`Assertion failed: ${(0,H.nK)(e.args.slice(1)," ")||"console.assert"}`,r.data.arguments=e.args.slice(1)}(0,I.n_)(r,{input:e.args,level:e.level})}),e.dom&&(tp("dom",(n=e.dom,function(e){let r,i;if((0,I.s3)()!==t)return;let a="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>1024&&(tT&&R.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof a&&(a=[a]);try{let t=e.event,n=t&&t.target?t.target:t;r=(0,tS.Rt)(n,{keyAttrs:a,maxStringLength:s}),i=(0,tS.iY)(n)}catch(t){r="<unknown>"}if(0===r.length)return;let o={category:`ui.${e.name}`,message:r};i&&(o.data={"ui.component_name":i}),(0,I.n_)(o,{event:e.event,name:e.name,global:e.global})})),tf("dom",tW)),e.xhr&&tZ(function(e){if((0,I.s3)()!==t)return;let{startTimestamp:n,endTimestamp:r}=e,i=e.xhr[tz];if(!n||!r||!i)return;let{method:a,url:s,status_code:o,body:u}=i,c={xhr:e.xhr,input:u,startTimestamp:n,endTimestamp:r};(0,I.n_)({category:"xhr",data:{method:a,url:s,status_code:o},type:"http"},c)}),e.fetch&&t5(function(e){if((0,I.s3)()!==t)return;let{startTimestamp:n,endTimestamp:r}=e;if(!(!r||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let t=e.fetchData,i={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};(0,I.n_)({category:"fetch",data:t,level:"error",type:"http"},i)}else{let t=e.response,i={...e.fetchData,status_code:t&&t.status},a={input:e.args,response:t,startTimestamp:n,endTimestamp:r};(0,I.n_)({category:"fetch",data:i,type:"http"},a)}}}),e.history&&t6(function(e){if((0,I.s3)()!==t)return;let n=e.from,r=e.to,i=ee(ta.location.href),a=n?ee(n):void 0,s=ee(r);a&&a.path||(a=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),(0,I.n_)({category:"navigation",data:{from:n,to:r}})}),e.sentry&&t.on&&t.on("beforeSendEvent",function(e){(0,I.s3)()===t&&(0,I.n_)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,D.jH)(e)},{event:e})})}}},ei=B(en,er),ea="LinkedErrors",es=(t={})=>{let e=t.limit||5,n=t.key||"cause";return{name:ea,setupOnce(){},preprocessEvent(t,r,i){let a=i.getOptions();K(tE,a.stackParser,a.maxValueLength,n,e,t,r)}}},eo=B(ea,es),eu="HttpContext",ec=()=>({name:eu,setupOnce(){},preprocessEvent(t){if(!ta.navigator&&!ta.location&&!ta.document)return;let e=t.request&&t.request.url||ta.location&&ta.location.href,{referrer:n}=ta.document||{},{userAgent:r}=ta.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...t.request,...e&&{url:e},headers:i};t.request=a}}),el=B(eu,ec),ed="Dedupe",ep=()=>{let t;return{name:ed,setupOnce(){},processEvent(e){if(e.type)return e;try{var n;if((n=t)&&(function(t,e){let n=t.message,r=e.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&eg(t,e)&&eh(t,e))}(e,n)||function(t,e){let n=em(e),r=em(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&eg(t,e)&&eh(t,e))}(e,n)))return tT&&R.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}},ef=B(ed,ep);function eh(t,e){let n=e_(t),r=e_(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 eg(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 em(t){return t.exception&&t.exception.values&&t.exception.values[0]}function e_(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){}}let ev={};ta.Sentry&&ta.Sentry.Integrations&&(ev=ta.Sentry.Integrations);let ey={...ev,...T,...k},eb=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function eS(t,e=!1){let{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:u}=t;return`${o}://${u}${e&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}function eT(t){let e=eb.exec(t);if(!e){(0,R.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",a,s="",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 ek({host:a,pass:i,path:u,projectId:c,port:s,protocol:n,publicKey:r})}function ek(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ew(t,e=[]){return[t,e]}function eE(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 ex(t,e){let n=e||new TextEncoder;return n.encode(t)}let eC={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",span:"span",statsd:"metric_bucket"};function eI(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}class eO 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 eL=n(89015),eD=n(99349),eR=n(53010);let e$="Not capturing exception because it's already been captured.";class eP{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?eT(t):ek(t);if(e&&function(t){if(!tu.X)return!0;let{port:e,projectId:n,protocol:r}=t,i=["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(R.kg.error(`Invalid Sentry Dsn: ${e} missing`),!0));return!i&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(e&&isNaN(parseInt(e,10)))||(R.kg.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(R.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(R.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}(t.dsn):$.X&&R.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,L._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`}(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if((0,D.YO)(t)){$.X&&R.kg.log(e$);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,a=(0,Z.Le)(t)?t:String(t),s=(0,Z.pt)(t)?this.eventFromMessage(a,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,D.YO)(e.originalException)){$.X&&R.kg.log(e$);return}let r=e&&e.event_id,i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope;return this._process(this._captureEvent(t,e,a||n).then(t=>{r=t})),r}captureSession(t){"string"!=typeof t.release?$.X&&R.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,eL.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,tw.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._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return $.X&&R.kg.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){let e=this._integrations[t.name];j(this,t,this._integrations),e||M(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){var i;let a=eI(n),s=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:eS(r)},...i&&{trace:(0,L.Jr)({...i})}}}(t,a,r,e);delete t.sdkProcessingMetadata;let u=[{type:s},t];return ew(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?ex(t.data,e):t.data;return[(0,L.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=eI(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:eS(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ew(a,[s])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,i=`${t}:${e}`;$.X&&R.kg.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(t){$.X&&R.kg.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);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=eS(e));let a=function(t){let e=function(t){let e="";for(let n of t){let t=Object.entries(n.tags),r=t.length>0?`|#${t.map(([t,e])=>`${t}:${e}`).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}
`}return e}(t),n={type:"statsd",length:e.length};return[n,e]}(t);return ew(i,[a])}(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))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=function(t,e){let n={};return e.forEach(e=>{e&&j(t,e,n)}),n}(this,t),M(this,t),this._integrationsInitialized=!0}_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 a="ok"===t.status,s=a&&0===t.errors||a&&n;s&&((0,eL.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new tw.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,r=(0,A.aF)()){let i=this.getOptions(),a=Object.keys(this._integrations);return!e.integrations&&a.length>0&&(e.integrations=a),this.emit("preprocessEvent",t,e),(0,eR.R)(i,t,e,n,this,r).then(t=>{if(null===t)return t;let e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0},i=t.contexts&&t.contexts.trace;if(!i&&e){let{traceId:r,spanId:i,parentSpanId:a,dsc:s}=e;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:a},...t.contexts};let o=s||(0,eD._)(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=>{$.X&&("log"===t.logLevel?R.kg.log(t.message):R.kg.warn(t))})}_processEvent(t,e,n){let r=this.getOptions(),{sampleRate:i}=r,a=eN(t),s=eA(t),o=t.type||"error",u=`before send for type \`${o}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,tw.$2)(new eO(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===o?"replay":o,l=t.sdkProcessingMetadata||{},d=l.capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,t),new eO("An event processor returned `null`, will not send event.","log");let i=e.data&&!0===e.data.__sentry__;if(i)return n;let a=function(t,e,n){let{beforeSend:r,beforeSendTransaction:i}=t;if(eA(e)&&r)return r(e,n);if(eN(e)&&i){if(e.spans){let t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(e,n)}return e}(r,n,e);return function(t,e){let n=`${e} must return \`null\` or a valid event.`;if((0,Z.J8)(t))return t.then(t=>{if(!(0,Z.PO)(t)&&null!==t)throw new eO(n);return t},t=>{throw new eO(`${e} rejected with ${t}`)});if(!(0,Z.PO)(t)&&null!==t)throw new eO(n);return t}(a,u)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,t),a){let e=t.spans||[],n=1+e.length;this.recordDroppedEvent("before_send","span",n)}throw new eO(`${u} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();if(!a&&i&&this._updateSessionFromEvent(i,r),a){let t=r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0,e=r.spans?r.spans.length:0,n=t-e;n>0&&this.recordDroppedEvent("before_send","span",n)}let s=r.transaction_info;return a&&s&&r.transaction!==t.transaction&&(r.transaction_info={...s,source:"custom"}),this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof eO)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new eO(`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=>{$.X&&R.kg.error("Error while sending event:",t)});$.X&&R.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 eA(t){return void 0===t.type}function eN(t){return"transaction"===t.type}var eM=n(94180);class ej extends eP{constructor(t){let e=ta.SENTRY_SDK_SOURCE||"npm";C(t,"browser",["browser"],e),super(t),t.sendClientReports&&ta.document&&ta.document.addEventListener("visibilitychange",()=>{"hidden"===ta.document.visibilityState&&this._flushOutcomes()})}eventFromException(t,e){return function(t,e,n,r){let i=n&&n.syntheticException||void 0,a=tO(t,e,i,r);return(0,D.EG)(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),(0,tw.WD)(a)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){let a=r&&r.syntheticException||void 0,s=tL(t,e,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),(0,tw.WD)(s)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){tT&&R.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:eS(r)}},a=[{type:"user_report"},t];return ew(i,[a])}(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){tT&&R.kg.log("No outcomes to send");return}if(!this._dsn){tT&&R.kg.log("No dsn provided, will not send outcomes");return}tT&&R.kg.log("Sending outcomes:",t);let e=function(t,e,n){let r=[{type:"client_report"},{timestamp:(0,eM.yW)(),discarded_events:t}];return ew(e?{dsn:e}:{},[r])}(t,this._options.tunnel&&eS(this._dsn));this._sendEnvelope(e)}}function eB(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}let eU=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eG=/\((\S*)(?::(\d+))(?::(\d+))\)/,eX=[30,t=>{let e=eU.exec(t);if(e){let t=e[2]&&0===e[2].indexOf("eval");if(t){let t=eG.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}let[n,r]=eV(e[1]||"?",e[2]);return eB(r,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],eF=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,eH=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eq=[50,t=>{let e=eF.exec(t);if(e){let t=e[3]&&e[3].indexOf(" > eval")>-1;if(t){let t=eH.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]=eV(r,n),eB(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],eJ=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,eW=[40,t=>{let e=eJ.exec(t);return e?eB(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],eY=(0,tc.pE)(...[eX,eq,eW]),eV=(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 ez(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,tw.$2)(new eO("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 tw.cW((n,r)=>{let i=e.length;if(!i)return n(!0);let a=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{(0,tw.WD)(t).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}}}(t.bufferSize||30)){let r={};function i(i){let a=[];if(eE(i,(e,n)=>{let i=eC[n];if(function(t,e,n=Date.now()){return(t[e]||t.all||0)>n}(r,i)){let r=eZ(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else a.push(e)}),0===a.length)return(0,tw.WD)();let s=ew(i[0],a),o=e=>{eE(s,(n,r)=>{let i=eZ(n,r);t.recordDroppedEvent(e,eC[r],i)})};return n.add(()=>e({body:function(t,e){let[n,r]=t,i=JSON.stringify(n);function a(t){"string"==typeof i?i="string"==typeof t?i+t:[ex(i,e),t]:i.push("string"==typeof t?ex(t,e):t)}for(let t of r){let[e,n]=t;if(a(`
${JSON.stringify(e)}
`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,tk.Fv)(n))}a(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)}(s,t.textEncoder)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&$.X&&R.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},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(let t of a.trim().split(",")){let[e,n,,,a]=t.split(":",5),s=parseInt(e,10),o=(isNaN(s)?60:s)*1e3;if(n)for(let t of n.split(";"))"metric_bucket"===t?(!a||a.split(";").includes("custom"))&&(i[t]=r+o):i[t]=r+o;else i.all=r+o}else s?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}(s,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 eO)return $.X&&R.kg.error("Skipped sending event because buffer is full."),o("queue_overflow"),(0,tw.WD)();throw t})}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function eZ(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function eK(t,e=function(){if(_)return _;if(t1(ta.fetch))return _=ta.fetch.bind(ta);let t=ta.document,e=ta.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){tT&&R.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return _=e.bind(ta)}()){let n=0,r=0;return ez(t,function(i){let a=i.body.length;n+=a,r++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,s).then(t=>(n-=a,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 _=void 0,n-=a,r--,(0,tw.$2)(t)}})}function eQ(t){return ez(t,function(e){return new tw.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 e0=[Y(),X(),tB(),er(),tR(),es(),ep(),ec()];var e1=n(27061),e5=n(63449);function e2(t){let e=u?u.get(t):void 0;if(!e)return;let n={};for(let[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push((0,L.Jr)(r));return n}let e4="sentry.source",e3="sentry.sample_rate",e9="sentry.op",e8="sentry.origin";var e6=n(20094);function e7(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);let n=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"}(e);"unknown_error"!==n&&t.setStatus(n)}(b=S||(S={})).Ok="ok",b.DeadlineExceeded="deadline_exceeded",b.Unauthenticated="unauthenticated",b.PermissionDenied="permission_denied",b.NotFound="not_found",b.ResourceExhausted="resource_exhausted",b.InvalidArgument="invalid_argument",b.Unimplemented="unimplemented",b.Unavailable="unavailable",b.InternalError="internal_error",b.UnknownError="unknown_error",b.Cancelled="cancelled",b.AlreadyExists="already_exists",b.FailedPrecondition="failed_precondition",b.Aborted="aborted",b.OutOfRange="out_of_range",b.DataLoss="data_loss";class nt{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class ne{constructor(t={}){this._traceId=t.traceId||(0,D.DM)(),this._spanId=t.spanId||(0,D.DM)().substring(16),this._startTime=t.startTimestamp||(0,eM.ph)(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[e8]:t.origin||"manual",[e9]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),void 0!==t.exclusiveTime&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[e9]}set op(t){this.setAttribute(e9,t)}get origin(){return this._attributes[e8]}set origin(t){this.setAttribute(e8,t)}spanContext(){let{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?e5.i0:e5.ve}}startChild(t){let e=new ne({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);let n=(0,e6.G)(this);if(e.transaction=n,$.X&&n){let r=t&&t.op||"< unknown op >",i=(0,e5.XU)(e).description||"< unknown name >",a=n.spanContext().spanId,s=`[Tracing] Starting '${r}' span on transaction '${i}' (${a}).`;R.kg.log(s),this._logMessage=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}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach(e=>this.setAttribute(e,t[e]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return e7(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;let e=(0,e6.G)(this);if($.X&&e&&e.spanContext().spanId!==this._spanId){let t=this._logMessage;t&&R.kg.log(t.replace("Starting","Finishing"))}this._endTime=(0,e5.$k)(t)}toTraceparent(){return(0,e5.Hb)(this)}toContext(){return(0,L.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return(0,e5.wy)(this)}getSpanJSON(){return(0,L.Jr)({data:this._getData(),description:this._name,op:this._attributes[e9],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[e8],_metrics_summary:e2(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:t,_attributes:e}=this,n=Object.keys(t).length>0,r=Object.keys(e).length>0;return n||r?n&&r?{...t,...e}:n?t:e:void 0}}function nn(t){if(!O())return;let e=function(t){if(t.startTime){let e={...t};return e.startTimestamp=(0,e5.$k)(t.startTime),delete e.startTime,e}return t}(t),n=(0,A.Gd)(),r=t.scope?t.scope.getSpan():nr(),i=t.onlyIfParent&&!r;if(i)return;let a=t.scope||(0,I.nZ)(),s=a.clone();return function(t,{parentSpan:e,spanContext:n,forceTransaction:r,scope:i}){var a;let s;if(!O())return;let o=(0,A.aF)();if(e&&!r)s=e.startChild(n);else if(e){let r=(0,eD.j)(e),{traceId:i,spanId:a}=e.spanContext(),o=(0,e5.Tt)(e);s=t.startTransaction({traceId:i,parentSpanId:a,parentSampled:o,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{let{traceId:e,dsc:r,parentSpanId:a,sampled:u}={...o.getPropagationContext(),...i.getPropagationContext()};s=t.startTransaction({traceId:e,parentSpanId:a,parentSampled:u,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(s),(a=s)&&((0,L.xp)(a,na,o),(0,L.xp)(a,ni,i)),s}(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:s})}function nr(){return(0,I.nZ)().getSpan()}let ni="_sentryScope",na="_sentryIsolationScope";class ns extends ne{constructor(t,e){super(t),this._contexts={},this._hub=e||(0,A.Gd)(),this._name=t.name||"",this._metadata={...t.metadata},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)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[e4]&&{source:this._attributes[e4]},...this._attributes[e3]&&{sampleRate:this._attributes[e3]}}}set metadata(t){this._metadata=t}setName(t,e="custom"){this._name=t,this.setAttribute(e4,e)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new nt(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}}end(t){let e=(0,e5.$k)(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){let t=super.toContext();return(0,L.Jr)({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return(0,eD.j)(this)}setHub(t){this._hub=t}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||($.X&&R.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);let e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled){$.X&&R.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&&(0,e5.XU)(t).timestamp):[];if(this._trimEnd&&n.length>0){let t=n.map(t=>(0,e5.XU)(t).timestamp).filter(Boolean);this._endTime=t.reduce((t,e)=>t>e?t:e)}let{scope:r,isolationScope:i}={scope:this[ni],isolationScope:this[na]},{metadata:a}=this,{source:s}=a,o={contexts:{...this._contexts,trace:(0,e5.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...a,capturedSpanScope:r,capturedSpanIsolationScope:i,...(0,L.Jr)({dynamicSamplingContext:(0,eD.j)(this)})},_metrics_summary:e2(this),...s&&{transaction_info:{source:s}}},u=Object.keys(this._measurements).length>0;return u&&($.X&&R.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),$.X&&R.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),o}}let no={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class nu extends nt{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){let e=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),e.apply(t,n)),void 0===(0,e5.XU)(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class nc extends ns{constructor(t,e,n=no.idleTimeout,r=no.finalTimeout,i=no.heartbeatInterval,a=!1,s=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",this._autoFinishAllowed=!s,a&&($.X&&R.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),e.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.end())},this._finalTimeout)}end(t){let e=(0,e5.$k)(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){for(let t of($.X&&R.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;!(0,e5.XU)(t).timestamp&&(t.setStatus("cancelled"),t.end(e),$.X&&R.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let{start_timestamp:n,timestamp:r}=(0,e5.XU)(t),i=n&&n<e,a=(this._finalTimeout+this._idleTimeout)/1e3,s=r&&n&&r-n<a;if($.X){let e=JSON.stringify(t,void 0,2);i?s||R.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):R.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return i&&s}),$.X&&R.kg.log("[Tracing] flushing IdleTransaction")}else $.X&&R.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){let t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){this.spanRecorder||(this.spanRecorder=new nu(t=>{this._finished||this._pushActivity(t)},t=>{this._finished||this._popActivity(t)},this.spanContext().spanId,t),$.X&&R.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.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||($.X&&R.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),$.X&&R.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,$.X&&R.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&($.X&&R.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],$.X&&R.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let t=(0,eM.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason="cancelled",this.end(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?this._autoFinishAllowed&&($.X&&R.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.end()):this._pingHeartbeat()}_pingHeartbeat(){$.X&&R.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function nl(t){let e=t||(0,A.Gd)(),n=e.getScope();return n.getTransaction()}let nd=!1;function np(){let t=nl();if(t){let e="internal_error";$.X&&R.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}function nf(t,e,n){let r;return O(e)?void 0!==t.sampled?(t.setAttribute(e3,Number(t.sampled)),t):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setAttribute(e3,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setAttribute(e3,Number(r))):(r=1,t.setAttribute(e3,r)),nh(r))?r?(t.sampled=Math.random()<r,t.sampled)?($.X&&R.kg.log(`[Tracing] starting ${t.op} transaction - ${(0,e5.XU)(t).description}`),t):($.X&&R.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t):($.X&&R.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):($.X&&R.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t):(t.sampled=!1,t)}function nh(t){return(0,Z.i2)(t)||!("number"==typeof t||"boolean"==typeof t)?($.X&&R.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):!(t<0)&&!(t>1)||($.X&&R.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1)}function ng(){let t=this.getScope(),e=t.getSpan();return e?{"sentry-trace":(0,e5.Hb)(e)}:{}}function nm(t,e){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=t.instrumenter||"sentry";i!==a&&($.X&&R.kg.error(`A transaction was started with instrumenter=\`${a}\`, 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 s=new ns(t,this);return(s=nf(s,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e})).isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function n_(t,e,n,r,i,a,s,o=!1){let u=t.getClient(),c=u&&u.getOptions()||{},l=new nc(e,t,n,r,s,i,o);return(l=nf(l,c,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...a})).isRecording()&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",l),l}function nv(){let t=(0,A.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=nm),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=ng),nd||(nd=!0,tm(np),ty(np)))}np.tag="sentry_tracingErrorCallback";var ny=n(17502);let nb="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nS=ti.GLOBAL_OBJ;function nT(){nS.document?nS.document.addEventListener("visibilitychange",()=>{let t=nl();if(nS.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,e5.XU)(t);nb&&R.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):nb&&R.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}let nk=(t,e,n)=>{let r,i;return a=>{e.value>=0&&(a||n)&&((i=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=i,t(e))}},nw=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,nE=()=>{let t=nS.performance.timing,e=nS.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},nx=()=>nS.__WEB_VITALS_POLYFILL__?nS.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||nE()):nS.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nC=()=>{let t=nx();return t&&t.activationStart||0},nI=(t,e)=>{let n=nx(),r="navigate";return n&&(r=nS.document&&nS.document.prerendering||nC()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:nw(),navigationType:r}},nO=(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){}},nL=(t,e)=>{let n=r=>{("pagehide"===r.type||"hidden"===nS.document.visibilityState)&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};nS.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},nD=(t,e={})=>{let n;let r=nI("CLS",0),i=0,a=[],s=t=>{t.forEach(t=>{if(!t.hadRecentInput){let e=a[0],s=a[a.length-1];i&&0!==a.length&&t.startTime-s.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,a.push(t)):(i=t.value,a=[t]),i>r.value&&(r.value=i,r.entries=a,n&&n())}})},o=nO("layout-shift",s);if(o){n=nk(t,r,e.reportAllChanges);let i=()=>{s(o.takeRecords()),n(!0)};return nL(i),i}},nR=-1,n$=()=>{nS.document&&nS.document.visibilityState&&(nR="hidden"!==nS.document.visibilityState||nS.document.prerendering?1/0:0)},nP=()=>{nL(({timeStamp:t})=>{nR=t},!0)},nA=()=>(nR<0&&(n$(),nP()),{get firstHiddenTime(){return nR}}),nN=t=>{let e;let n=nA(),r=nI("FID"),i=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),e(!0))},a=t=>{t.forEach(i)},s=nO("first-input",a);e=nk(t,r),s&&nL(()=>{a(s.takeRecords()),s.disconnect()},!0)},nM=0,nj=1/0,nB=0,nU=t=>{t.forEach(t=>{t.interactionId&&(nj=Math.min(nj,t.interactionId),nM=(nB=Math.max(nB,t.interactionId))?(nB-nj)/7+1:0)})},nG=()=>c?nM:performance.interactionCount||0,nX=()=>{"interactionCount"in performance||c||(c=nO("event",nU,{type:"event",buffered:!0,durationThreshold:0}))},nF=()=>nG(),nH=[],nq={},nJ=t=>{let e=nH[nH.length-1],n=nq[t.interactionId];if(n||nH.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{let e={id:t.interactionId,latency:t.duration,entries:[t]};nq[e.id]=e,nH.push(e)}nH.sort((t,e)=>e.latency-t.latency),nH.splice(10).forEach(t=>{delete nq[t.id]})}},nW=()=>{let t=Math.min(nH.length-1,Math.floor(nF()/50));return nH[t]},nY=(t,e)=>{let n;e=e||{},nX();let r=nI("INP"),i=t=>{t.forEach(t=>{if(t.interactionId&&nJ(t),"first-input"===t.entryType){let e=!nH.some(e=>e.entries.some(e=>t.duration===e.duration&&t.startTime===e.startTime));e&&nJ(t)}});let e=nW();e&&e.latency!==r.value&&(r.value=e.latency,r.entries=e.entries,n())},a=nO("event",i,{durationThreshold:e.durationThreshold||40});n=nk(t,r,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),nL(()=>{i(a.takeRecords()),r.value<0&&nF()>0&&(r.value=0,r.entries=[]),n(!0)}))},nV={},nz=t=>{let e;let n=nA(),r=nI("LCP"),i=t=>{let i=t[t.length-1];if(i){let t=Math.max(i.startTime-nC(),0);t<n.firstHiddenTime&&(r.value=t,r.entries=[i],e())}},a=nO("largest-contentful-paint",i);if(a){e=nk(t,r);let n=()=>{nV[r.id]||(i(a.takeRecords()),a.disconnect(),nV[r.id]=!0,e(!0))};return["keydown","click"].forEach(t=>{nS.document&&addEventListener(t,n,{once:!0,capture:!0})}),nL(n,!0),n}},nZ=t=>{nS.document&&(nS.document.prerendering?addEventListener("prerenderingchange",()=>nZ(t),!0):"complete"!==nS.document.readyState?addEventListener("load",()=>nZ(t),!0):setTimeout(t,0))},nK=(t,e)=>{e=e||{};let n=nI("TTFB"),r=nk(t,n,e.reportAllChanges);nZ(()=>{let t=nx();if(t){if(n.value=Math.max(t.responseStart-nC(),0),n.value<0||n.value>performance.now())return;n.entries=[t],r(!0)}})},nQ={},n0={};function n1(t,e){return n7(t,e),n0[t]||(function(t){let e={};"event"===t&&(e.durationThreshold=0),nO(t,e=>{n5(t,{entries:e})},e)}(t),n0[t]=!0),rt(t,e)}function n5(t,e){let n=nQ[t];if(n&&n.length)for(let r of n)try{r(e)}catch(e){nb&&R.kg.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${(0,tc.$P)(r)}
Error:`,e)}}function n2(){return nD(t=>{n5("cls",{metric:t}),l=t},{reportAllChanges:!0})}function n4(){return nN(t=>{n5("fid",{metric:t}),d=t})}function n3(){return nz(t=>{n5("lcp",{metric:t}),p=t})}function n9(){return nK(t=>{n5("ttfb",{metric:t}),f=t})}function n8(){return nY(t=>{n5("inp",{metric:t}),h=t})}function n6(t,e,n,r,i=!1){let a;return n7(t,e),n0[t]||(a=n(),n0[t]=!0),r&&e({metric:r}),rt(t,e,i?a:void 0)}function n7(t,e){nQ[t]=nQ[t]||[],nQ[t].push(e)}function rt(t,e,n){return()=>{n&&n();let r=nQ[t];if(!r)return;let i=r.indexOf(e);-1!==i&&r.splice(i,1)}}function re(t){return[{type:"span"},t]}function rn(t){return"number"==typeof t&&isFinite(t)}function rr(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function ri(t){return t/1e3}function ra(){return nS&&nS.addEventListener&&nS.performance}let rs=0,ro={};function ru(){let t=ra();if(t&&eM.Z1){t.mark&&nS.performance.mark("sentry-tracing-init");let e=n6("fid",({metric:t})=>{let e=t.entries[t.entries.length-1];if(!e)return;let n=ri(eM.Z1),r=ri(e.startTime);nb&&R.kg.log("[Measurements] Adding FID"),ro.fid={value:t.value,unit:"millisecond"},ro["mark.fid"]={value:n+r,unit:"second"}},n4,d),n=function(t,e=!1){return n6("cls",t,n2,l,e)}(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(nb&&R.kg.log("[Measurements] Adding CLS"),ro.cls={value:t.value,unit:""},m=e)},!0),r=function(t,e=!1){return n6("lcp",t,n3,p,e)}(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(nb&&R.kg.log("[Measurements] Adding LCP"),ro.lcp={value:t.value,unit:"millisecond"},g=e)},!0),i=n6("ttfb",({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(nb&&R.kg.log("[Measurements] Adding TTFB"),ro.ttfb={value:t.value,unit:"millisecond"})},n9,f);return()=>{e(),n(),r(),i()}}return()=>void 0}function rc(){n1("longtask",({entries:t})=>{for(let e of t){let t=nl();if(!t)return;let n=ri(eM.Z1+e.startTime),r=ri(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})}function rl(){n1("event",({entries:t})=>{for(let e of t){let t=nl();if(!t)return;if("click"===e.name){let n=ri(eM.Z1+e.startTime),r=ri(e.duration),i={description:(0,tS.Rt)(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},a=(0,tS.iY)(e.target);a&&(i.attributes={"ui.component_name":a}),t.startChild(i)}}})}function rd(t,e){let n=ra();if(n&&eM.Z1){let n=n6("inp",({metric:n})=>{let r;if(void 0===n.value)return;let i=n.entries.find(t=>t.duration===n.value&&void 0!==rp[t.name]),a=(0,I.s3)();if(!i||!a)return;let s=rp[i.name],o=a.getOptions(),u=ri(eM.Z1+i.startTime),c=ri(n.value),l=void 0!==i.interactionId?t[i.interactionId]:void 0;if(void 0===l)return;let{routeName:d,parentContext:p,activeTransaction:f,user:h,replayId:g}=l,m=void 0!==h?h.email||h.id||h.ip_address:void 0,_=void 0!==f?f.getProfileId():void 0,v=new ne({startTimestamp:u,endTimestamp:u+c,op:`ui.interaction.${s}`,name:(0,tS.Rt)(i.target),attributes:{release:o.release,environment:o.environment,transaction:d,...void 0!==m&&""!==m?{user:m}:{},...void 0!==_?{profile_id:_}:{},...void 0!==g?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),y=!!O(o)&&(nh(r=void 0!==p&&"function"==typeof o.tracesSampler?o.tracesSampler({transactionContext:p,name:p.name,parentSampled:p.parentSampled,attributes:{...p.data,...p.attributes},location:nS.location}):void 0!==p&&void 0!==p.sampled?p.sampled:void 0!==o.tracesSampleRate?o.tracesSampleRate:1)?!0===r?e:!1===r?0:r*e:(nb&&R.kg.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1));if(y&&Math.random()<y){let t=v?function(t,e){let n={sent_at:new Date().toISOString()};e&&(n.dsn=eS(e));let r=t.map(re);return ew(n,r)}([v],a.getDsn()):void 0,e=a&&a.getTransport();e&&t&&e.send(t).then(null,t=>{nb&&R.kg.error("Error while sending interaction:",t)});return}},n8,h);return()=>{n()}}return()=>void 0}let rp={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function rf(t){let e=ra();if(!e||!nS.performance.getEntries||!eM.Z1)return;nb&&R.kg.log("[Tracing] Adding & adjusting spans using Performance API");let n=ri(eM.Z1),r=e.getEntries(),{op:i,start_timestamp:a}=(0,e5.XU)(t);if(r.slice(rs).forEach(e=>{let r=ri(e.startTime),i=ri(e.duration);if("navigation"!==t.op||!a||!(n+r<a))switch(e.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{rh(t,e,r,n)}),rh(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),rh(t,e,"fetch",n,"cache","domainLookupStart"),rh(t,e,"domainLookup",n,"DNS"),e.responseEnd&&(rr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ri(e.requestStart),endTimestamp:n+ri(e.responseEnd)}),rr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ri(e.responseStart),endTimestamp:n+ri(e.responseEnd)}));break;case"mark":case"paint":case"measure":{(function(t,e,n,r,i){let a=i+n;rr(t,{description:e.name,endTimestamp:a+r,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})})(t,e,r,i,n);let a=nA(),s=e.startTime<a.firstHiddenTime;"first-paint"===e.name&&s&&(nb&&R.kg.log("[Measurements] Adding FP"),ro.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&s&&(nb&&R.kg.log("[Measurements] Adding FCP"),ro.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":(function(t,e,n,r,i,a){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;let s=ee(n),o={};rg(o,e,"transferSize","http.response_transfer_size"),rg(o,e,"encodedBodySize","http.response_content_length"),rg(o,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(o["resource.render_blocking_status"]=e.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(nS.location.origin);let u=a+r,c=u+i;rr(t,{description:n.replace(nS.location.origin,""),endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:o})})(t,e,e.name,r,i,n)}}),rs=Math.max(r.length-1,0),function(t){let e=nS.navigator;if(!e)return;let n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),rn(n.rtt)&&(ro["connection.rtt"]={value:n.rtt,unit:"millisecond"})),rn(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),rn(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===i){(function(t){let e=nx();if(!e)return;let{responseStart:n,requestStart:r}=e;r<=n&&(nb&&R.kg.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(ro),["fcp","fp","lcp"].forEach(t=>{if(!ro[t]||!a||n>=a)return;let e=ro[t].value,r=n+ri(e),i=Math.abs((r-a)*1e3),s=i-e;nb&&R.kg.log(`[Measurements] Normalized ${t} from ${e} to ${i} (${s})`),ro[t].value=i});let e=ro["mark.fid"];e&&ro.fid&&(rr(t,{description:"first input delay",endTimestamp:e.value+ri(ro.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete ro["mark.fid"]),"fcp"in ro||delete ro.cls,Object.keys(ro).forEach(t=>{!function(t,e,n){let r=nl();r&&r.setMeasurement(t,e,n)}(t,ro[t].value,ro[t].unit)}),g&&(nb&&R.kg.log("[Measurements] Adding LCP Data"),g.element&&t.setTag("lcp.element",(0,tS.Rt)(g.element)),g.id&&t.setTag("lcp.id",g.id),g.url&&t.setTag("lcp.url",g.url.trim().slice(0,200)),t.setTag("lcp.size",g.size)),m&&m.sources&&(nb&&R.kg.log("[Measurements] Adding CLS Data"),m.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,(0,tS.Rt)(e.node))))}g=void 0,m=void 0,ro={}}function rh(t,e,n,r,i,a){let s=a?e[a]:e[`${n}End`],o=e[`${n}Start`];o&&s&&rr(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ri(o),endTimestamp:r+ri(s)})}function rg(t,e,n,r){let i=e[n];null!=i&&i<2147483647&&(t[r]=i)}var rm=n(82456);let r_=["localhost",/^\/(?!\/)/],rv={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:r_,tracePropagationTargets:r_};function ry(t){let{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:rv.traceFetch,traceXHR:rv.traceXHR,...t},o="function"==typeof a?a:t=>!0,u=t=>{var e;return e=r||i,(0,H.U0)(t,e||r_)},c={};e&&t5(t=>{let e=function(t,e,n,r,i="auto.http.browser"){if(!O()||!t.fetchData)return;let a=e(t.fetchData.url);if(t.endTimestamp&&a){let e=t.fetchData.__span;if(!e)return;let n=r[e];n&&(function(t,e){if(e.response){e7(t,e.response.status);let n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){let e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus("internal_error");t.end()}(n,t),delete r[e]);return}let s=(0,I.nZ)(),o=(0,I.s3)(),{method:u,url:c}=t.fetchData,l=function(t){try{let e=new URL(t);return e.href}catch(t){return}}(c),d=l?ee(l).host:void 0,p=a?nn({name:`${u} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":u,"http.url":l,"server.address":d,[e8]:i},op:"http.client"}):void 0;if(p&&(t.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(t.fetchData.url)&&o){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 a=i||n.getSpan(),s=(0,A.aF)(),{traceId:o,spanId:u,sampled:c,dsc:l}={...s.getPropagationContext(),...n.getPropagationContext()},d=a?(0,e5.Hb)(a):(0,ny.$p)(o,u,c),p=(0,rm.IQ)(l||(a?(0,eD.j)(a):(0,eD._)(o,e,n))),f=r.headers||("undefined"!=typeof Request&&(0,Z.V9)(t,Request)?t.headers:void 0);if(!f)return{"sentry-trace":d,baggage:p};if("undefined"!=typeof Headers&&(0,Z.V9)(f,Headers)){let t=new Headers(f);return t.append("sentry-trace",d),p&&t.append(rm.bU,p),t}if(Array.isArray(f)){let t=[...f,["sentry-trace",d]];return p&&t.push([rm.bU,p]),t}{let t="baggage"in f?f.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),p&&e.push(p),{...f,"sentry-trace":d,baggage:e.length>0?e.join(","):void 0}}}(e,o,s,n,p)}return p}(t,o,u,c);if(e){let n=rT(t.fetchData.url),r=n?ee(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}s&&e&&rb(e)}),n&&tZ(t=>{let e=function(t,e,n,r){let i=t.xhr,a=i&&i[tz];if(!O()||!i||i.__sentry_own_request__||!a)return;let s=e(a.url);if(t.endTimestamp&&s){let t=i.__sentry_xhr_span_id__;if(!t)return;let e=r[t];e&&void 0!==a.status_code&&(e7(e,a.status_code),e.end(),delete r[t]);return}let o=(0,I.nZ)(),u=(0,A.aF)(),c=rT(a.url),l=c?ee(c).host:void 0,d=s?nn({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":c,url:a.url,"server.address":l,[e8]:"auto.http.browser"},op:"http.client"}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanContext().spanId,r[i.__sentry_xhr_span_id__]=d);let p=(0,I.s3)();if(i.setRequestHeader&&n(a.url)&&p){let{traceId:t,spanId:e,sampled:n,dsc:r}={...u.getPropagationContext(),...o.getPropagationContext()},a=d?(0,e5.Hb)(d):(0,ny.$p)(t,e,n),s=(0,rm.IQ)(r||(d?(0,eD.j)(d):(0,eD._)(t,p,o)));(function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(rm.bU,n)}catch(t){}})(i,a,s)}return d}(t,o,u,c);s&&e&&rb(e)})}function rb(t){let{url:e}=(0,e5.XU)(t).data||{};if(!e||"string"!=typeof e)return;let n=n1("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]),eM.Z1)?[...r,["http.request.redirect_start",rS(t.redirectStart)],["http.request.fetch_start",rS(t.fetchStart)],["http.request.domain_lookup_start",rS(t.domainLookupStart)],["http.request.domain_lookup_end",rS(t.domainLookupEnd)],["http.request.connect_start",rS(t.connectStart)],["http.request.secure_connection_start",rS(t.secureConnectionStart)],["http.request.connection_end",rS(t.connectEnd)],["http.request.request_start",rS(t.requestStart)],["http.request.response_start",rS(t.responseStart)],["http.request.response_end",rS(t.responseEnd)]]:r}(r);e.forEach(e=>t.setAttribute(...e)),setTimeout(n)}})})}function rS(t=0){return((eM.Z1||performance.timeOrigin)+t)/1e3}function rT(t){try{let e=new URL(t,nS.location.origin);return e.href}catch(t){return}}let rk={...no,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){let r;if(!nS||!nS.location){nb&&R.kg.warn("Could not initialize routing instrumentation due to invalid location");return}let i=nS.location.href;e&&(r=t({name:nS.location.pathname,startTimestamp:eM.Z1?eM.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&t6(({to:e,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(e)){i=void 0;return}n!==e&&(i=void 0,r&&(nb&&R.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=t({name:nS.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rv};class rw{constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,nv(),nb&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...rk,...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=ru(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&rd(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&rc(),this.options._experiments.enableInteractions&&rl(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,e){this._getCurrentHub=e;let n=e(),r=n.getClient(),i=r&&r.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:o,markBackgroundTransactions:u,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:p,_experiments:f}=this.options,h=i&&i.tracePropagationTargets,g=h||this.options.tracePropagationTargets;nb&&this._hasSetTracePropagationTargets&&h&&R.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."),a(t=>{let n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n},o,s),u&&nT(),f.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),ry({traceFetch:c,traceXHR:l,tracePropagationTargets:g,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}_createRouteTransaction(t){let e;if(!this._getCurrentHub){nb&&R.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o="pageload"===t.op;if(o){let n=o?rE("sentry-trace"):"",r=o?rE("baggage"):void 0,{traceId:i,dsc:a,parentSpanId:s,sampled:u}=(0,ny.pT)(n,r);e={traceId:i,parentSpanId:s,parentSampled:u,...t,metadata:{...t.metadata,dynamicSamplingContext:a},trimEnd:!0}}else e={trimEnd:!0,...t};let u="function"==typeof r?r(e):e,c=void 0===u?{...e,sampled:!1}:u;c.metadata=c.name!==e.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRoute.name=c.name,this._latestRoute.context=c,!1===c.sampled&&nb&&R.kg.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),nb&&R.kg.log(`[Tracing] Starting ${c.op} transaction on scope`);let{location:l}=nS,d=n_(n,c,i,a,!0,{location:l},s,o);return o&&nS.document&&(nS.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nS.document.readyState)&&d.sendAutoFinishSignal()}),["interactive","complete"].includes(nS.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(t=>{this._collectWebVitals(),rf(t)}),d}_registerInteractionListener(){let t;let e=()=>{let{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",a=nl();if(a&&a.op&&["navigation","pageload"].includes(a.op)){nb&&R.kg.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){nb&&R.kg.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){nb&&R.kg.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let s=this._getCurrentHub(),{location:o}=nS,u={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[e4]:this._latestRoute.context?function(t){let e=t.attributes&&t.attributes[e4],n=t.data&&t.data[e4],r=t.metadata&&t.metadata.source;return e||n||r}(this._latestRoute.context):"url"}};t=n_(s,u,e,n,!0,{location:o},r)};["click"].forEach(t=>{nS.document&&addEventListener(t,e,{once:!1,capture:!0})})}_registerInpInteractionListener(){let t=({entries:t})=>{let e=(0,I.s3)(),n=void 0!==e&&void 0!==e.getIntegrationByName?e.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,i=nl(),a=(0,I.nZ)(),s=void 0!==a?a.getUser():void 0;t.forEach(t=>{if("duration"in t){let e=t.interactionId;if(void 0===e)return;let n=this._interactionIdToRouteNameMapping[e],a=t.duration,o=t.startTime,u=Object.keys(this._interactionIdToRouteNameMapping),c=u.length>0?u.reduce((t,e)=>this._interactionIdToRouteNameMapping[t].duration<this._interactionIdToRouteNameMapping[e].duration?t:e):void 0;if("first-input"===t.entryType){let t=u.map(t=>this._interactionIdToRouteNameMapping[t]).some(t=>t.duration===a&&t.startTime===o);if(t)return}if(e){if(n)n.duration=Math.max(n.duration,a);else if(u.length<10||void 0===c||a>this._interactionIdToRouteNameMapping[c].duration){let t=this._latestRoute.name,n=this._latestRoute.context;t&&n&&(c&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[c],this._interactionIdToRouteNameMapping[e]={routeName:t,duration:a,parentContext:n,user:s,activeTransaction:i,replayId:r,startTime:o})}}}})};n1("event",t),n1("first-input",t)}}function rE(t){let e=(0,tS.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}let rx={...no,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rv},rC=(t={})=>{let e=!!nb&&!!(t.tracePropagationTargets||t.tracingOrigins);nv(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);let n={...rx,...t},r=ru(),i={};n.enableInp&&rd(i,n.interactionsSampleRate),n.enableLongTask&&rc(),n._experiments.enableInteractions&&rl();let a={name:void 0,context:void 0};function s(t){let e;let i=(0,A.Gd)(),{beforeStartSpan:s,idleTimeout:o,finalTimeout:u,heartbeatInterval:c}=n,l="pageload"===t.op;if(l){let n=l?rL("sentry-trace"):"",r=l?rL("baggage"):void 0,{traceId:i,dsc:a,parentSpanId:s,sampled:o}=(0,ny.pT)(n,r);e={traceId:i,parentSpanId:s,parentSampled:o,...t,metadata:{...t.metadata,dynamicSamplingContext:a},trimEnd:!0}}else e={trimEnd:!0,...t};let d=s?s(e):e;d.metadata=d.name!==e.name?{...d.metadata,source:"custom"}:d.metadata,a.name=d.name,a.context=d,!1===d.sampled&&nb&&R.kg.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),nb&&R.kg.log(`[Tracing] Starting ${d.op} transaction on scope`);let{location:p}=nS,f=n_(i,d,o,u,!0,{location:p},c,l);return l&&nS.document&&(nS.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nS.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(nS.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(t=>{r(),rf(t)}),f}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(t){let r;let o=t.getOptions(),{markBackgroundSpan:u,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:p,_experiments:f}=n,h=o&&o.tracePropagationTargets,g=h||n.tracePropagationTargets;nb&&e&&h&&R.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.");let m=nS.location&&nS.location.href;if(t.on&&(t.on("startNavigationSpan",t=>{r&&(nb&&R.kg.log(`[Tracing] Finishing current transaction with op: ${(0,e5.XU)(r).op}`),r.end()),r=s({op:"navigation",...t})}),t.on("startPageLoadSpan",t=>{r&&(nb&&R.kg.log(`[Tracing] Finishing current transaction with op: ${(0,e5.XU)(r).op}`),r.end()),r=s({op:"pageload",...t})})),n.instrumentPageLoad&&t.emit&&nS.location){let e={name:nS.location.pathname,startTimestamp:eM.Z1?eM.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[e4]:"url"}};rI(t,e)}n.instrumentNavigation&&t.emit&&nS.location&&t6(({to:e,from:n})=>{if(void 0===n&&m&&-1!==m.indexOf(e)){m=void 0;return}if(n!==e){m=void 0;let e={name:nS.location.pathname,origin:"auto.navigation.browser",attributes:{[e4]:"url"}};rO(t,e)}}),u&&nT(),f.enableInteractions&&function(t,e){let n;let r=()=>{let{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=t,s="ui.action.click",o=nl();if(o&&o.op&&["navigation","pageload"].includes(o.op)){nb&&R.kg.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e.name){nb&&R.kg.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}let{location:u}=nS,c={name:e.name,op:s,trimEnd:!0,data:{[e4]:e.context?function(t){let e=t.attributes&&t.attributes[e4],n=t.data&&t.data[e4],r=t.metadata&&t.metadata.source;return e||n||r}(e.context):"url"}};n=n_((0,A.Gd)(),c,r,i,!0,{location:u},a)};["click"].forEach(t=>{nS.document&&addEventListener(t,r,{once:!1,capture:!0})})}(n,a),n.enableInp&&function(t,e){let n=({entries:n})=>{let r=(0,I.s3)(),i=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,a=void 0!==i?i.getReplayId():void 0,s=nl(),o=(0,I.nZ)(),u=void 0!==o?o.getUser():void 0;n.forEach(n=>{if("duration"in n){let r=n.interactionId;if(void 0===r)return;let i=t[r],o=n.duration,c=n.startTime,l=Object.keys(t),d=l.length>0?l.reduce((e,n)=>t[e].duration<t[n].duration?e:n):void 0;if("first-input"===n.entryType){let e=l.map(e=>t[e]).some(t=>t.duration===o&&t.startTime===c);if(e)return}if(r){if(i)i.duration=Math.max(i.duration,o);else if(l.length<10||void 0===d||o>t[d].duration){let n=e.name,i=e.context;n&&i&&(d&&Object.keys(t).length>=10&&delete t[d],t[r]={routeName:n,duration:o,parentContext:i,user:u,activeTransaction:s,replayId:a,startTime:c})}}}})};n1("event",n),n1("first-input",n)}(i,a),ry({traceFetch:c,traceXHR:l,tracePropagationTargets:g,shouldCreateSpanForRequest:d,enableHTTPTimings:p})},options:n}};function rI(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);let n=nr(),r=n&&(0,e5.XU)(n).op;return"pageload"===r?n:void 0}function rO(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);let n=nr(),r=n&&(0,e5.XU)(n).op;return"navigation"===r?n:void 0}function rL(t){let e=(0,tS.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}let rD={"routing.instrumentation":"next-app-router"};var rR=n(11163),r$=n.n(rR),rP=n(55941);let rA={"routing.instrumentation":"next-pages-router"},rN=(0,I.s3)();function rM(t,e=!0,n=!0,r,i){let a=!ta.document.getElementById("__NEXT_DATA__");a?function(t,e=!0,n=!0,r,i){let a;let s=ta.location.pathname;if(e){let e={name:s,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:rD,startTimestamp:eM.Z1?eM.Z1/1e3:void 0,metadata:{source:"url"}};a=t(e),r(e)}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 r=n.targetPathname,o={...rD,from:s};s=r,a&&a.end();let u={name:r,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:o,metadata:{source:"url"}};t(u),i(u)})}(t,e,n,r||(()=>void 0),i||(()=>void 0)):function(t,e=!0,n=!0,r,i){let{route:a,params:s,sentryTrace:o,baggage:u}=function(){let t;let e=ta.document.getElementById("__NEXT_DATA__");if(e&&e.innerHTML)try{t=JSON.parse(e.innerHTML)}catch(t){rP.X&&R.kg.warn("Could not extract __NEXT_DATA__")}if(!t)return{};let n={},{page:r,query:i,props:a}=t;return n.route=r,n.params=i,a&&a.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),{traceparentData:c,dynamicSamplingContext:l,propagationContext:d}=(0,ny.KA)(o,u);if((0,I.nZ)().setPropagationContext(d),y=a||ta.location.pathname,e){let e={name:y,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:rA,startTimestamp:eM.Z1?eM.Z1/1e3:void 0,...s&&rN&&rN.getOptions().sendDefaultPii&&{data:s},...c,metadata:{source:a?"route":"url",dynamicSamplingContext:c&&!l?{}:l}};v=t(e),r(e)}n&&r$().events.on("routeChangeStart",e=>{let n,r;let a=e.split(/[\?#]/,1)[0],s=function(t){let e=(ta.__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)})}(a);s?(n=s,r="route"):(n=a,r="url");let o={...rA,from:y};y=n,v&&v.end();let u={name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:o,metadata:{source:r}},c=t(u);if(i(u),c){let t=c.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),e=()=>{t.end(),r$().events.off("routeChangeComplete",e)};r$().events.on("routeChangeComplete",e)}})}(t,e,n,r||(()=>void 0),i||(()=>void 0))}class rj extends rw{constructor(t){super({tracingOrigins:[...rv.tracingOrigins,/^(api\/)/],routingInstrumentation:rM,...t})}}function rB(t){let e=rC({tracingOrigins:[...rv.tracingOrigins,/^(api\/)/],...t,instrumentNavigation:!1,instrumentPageLoad:!1}),n={...e.options,instrumentPageLoad:!0,instrumentNavigation:!0,...t};return{...e,options:n,afterAllSetup(t){let r=e=>{rI(t,e)},i=e=>{rO(t,e)};rM(()=>void 0,!1,n.instrumentNavigation,r,i),e.afterAllSetup(t),rM(()=>void 0,n.instrumentPageLoad,!1,r,i)}}}let rU=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rG(...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 rX(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)}let rF="RewriteFrames",rH=(t={})=>{let e=t.root,n=t.prefix||"app:///",r=t.iteratee||(t=>{if(!t.filename)return t;let r=/^[a-zA-Z]:\\/.test(t.filename)||t.filename.includes("\\")&&!t.filename.includes("/"),i=/^\//.test(t.filename);if(r||i){var a;let i;let s=r?t.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):t.filename,o=e?function(t,e){t=rG(t).slice(1),e=rG(e).slice(1);let n=rX(t.split("/")),r=rX(e.split("/")),i=Math.min(n.length,r.length),a=i;for(let t=0;t<i;t++)if(n[t]!==r[t]){a=t;break}let s=[];for(let t=a;t<n.length;t++)s.push("..");return(s=s.concat(r.slice(a))).join("/")}(e,s):(i=function(t){let e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=rU.exec(e);return n?n.slice(1):[]}(s)[2],a&&i.slice(-1*a.length)===a&&(i=i.slice(0,i.length-a.length)),i);t.filename=`${n}${o}`}return t});return{name:rF,setupOnce(){},processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{var e;return{...t,...t.stacktrace&&{stacktrace:{...e=t.stacktrace,frames:e&&e.frames&&e.frames.map(t=>r(t))}}}})}}}catch(e){return t}}(e)),e}}};B(rF,rH);let rq=ti.GLOBAL_OBJ,rJ=t=>{let e=rq.__rewriteFramesAssetPrefixPath__||"";return rH({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=function(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],a=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=a(n)):("call"===i||"optionalCall"===i)&&(n=a((...t)=>n.call(e,...t)),e=void 0)}return n}([t,"access",t=>t.filename,"optionalAccess",t=>t.replace,"call",t=>t(n,"app://"),"access",t=>t.replace,"call",t=>t(e,"")])}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},...t})},rW=ti.GLOBAL_OBJ;function rY(t){let e=t.find(t=>"BrowserTracing"===t.name);if(!e)return t;if(e.afterAllSetup&&e.options){let{options:n}=e;t[t.indexOf(e)]=rB(n)}if(!(e instanceof rj)){let n=e.options;delete n.routingInstrumentation,delete n.tracingOrigins,t[t.indexOf(e)]=new rj(n)}return t}({...ey});var rV=n(90743),rz=n(27061),rZ=window;rZ.__sentryRewritesTunnelPath__=void 0,rZ.SENTRY_RELEASE={id:"556261d6b2a5b9b347cdffd80e2f198d9b59cfcb"},rZ.__sentryBasePath=void 0,rZ.__rewriteFramesAssetPrefixPath__="";var rK=rz.env.SENTRY_DSN||"https://c04e8810b769495f93af9a31728abbfa@o448303.ingest.sentry.io/6070939";!function(t){let e={environment:function(t){let e=t?"production":e1.env.VERCEL_ENV;return e?`vercel-${e}`:void 0}(!0)||"production",defaultIntegrations:function(t){let e=[...e0,rJ()];return("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&O(t)&&e.push(rB()),e}(t),...t};(function(t){let{integrations:e}=t;e&&(Array.isArray(e)?t.integrations=rY(e):t.integrations=t=>{let n=e(t);return rY(n)})})(e),function(t){let e=rW.__sentryRewritesTunnelPath__;if(e&&t.dsn){let n=eT(t.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],a=r[2],s=`${e}?o=${i}&p=${n.projectId}`;a&&(s+=`&r=${a}`),t.tunnel=s,rP.X&&R.kg.info(`Tunneling events to "${s}"`)}else rP.X&&R.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(e),C(e,"nextjs",["nextjs","react"]),function(t){let e={...t};C(e,"react"),function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=[...e0]),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),ta.SENTRY_RELEASE&&ta.SENTRY_RELEASE.id&&(t.release=ta.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);let e={...t,stackParser:(0,tc.Sq)(t.stackParser||eY),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,D.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),a=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!==a){let[t]=i.splice(a,1);i.push(t)}return i}(t),transport:t.transport||(t0()?eK:eQ)};(function(t,e){!0===e.debug&&($.X?R.kg.enable():(0,R.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let n=(0,I.nZ)();n.update(e.initialScope);let r=new t(e);(function(t){let e=(0,A.Gd)(),n=e.getStackTop();n.client=t,n.scope.setClient(t)})(r),r.init?r.init():r.setupIntegrations&&r.setupIntegrations()})(ej,e),t.autoSessionTracking&&function(){if(void 0===ta.document){tT&&R.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,I.yj)({ignoreDuration:!0}),(0,I.cg)(),t6(({from:t,to:e})=>{void 0!==t&&t!==e&&((0,I.yj)({ignoreDuration:!0}),(0,I.cg)())})}()}(e)}(e);let n=(0,I.nZ)();n.setTag("runtime","browser");let r=t=>"transaction"===t.type&&"/404"===t.transaction?null:t;r.id="NextClient404Filter",n.addEventProcessor(r)}({enabled:!0,environment:rz.env.SENTRY_ENVIRONMENT||"production",dsn:rK||"https://c04e8810b769495f93af9a31728abbfa@o448303.ingest.sentry.io/6070939",tracesSampleRate:.01,ignoreErrors:["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications."],beforeSend:function(t,e){var n=e.originalException,r="string"==typeof n?n:null==n?void 0:n.message;return!location.hostname.includes("lunar.app")||navigator.userAgent.includes("iPhone")&&(null==r?void 0:r.includes("Minified React error #4"))?null:new Promise(function(e){return setTimeout(function(){return e(t)},2500)})},denyUrls:[/extension\//i,/^chrome:\/\//i]}),(0,w._)(function(){var t;return(0,E.Jh)(this,function(e){switch(e.label){case 0:return[4,(0,rV.eA)()];case 1:return e.sent(),t=(0,rV.ip)().statistic,I.v("Cookie Consent",{hasGivenConsent:t}),[2]}})})()},95677:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50858),i=n(55818);Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{noSSR:function(){return u},default:function(){return c}});var a=n(51538),s=(n(67294),a._(n(8976)));function o(t){return{default:(null==t?void 0:t.default)||t}}function u(t,e){return delete e.webpack,delete e.modules,t(e)}function c(t,e){var n=s.default,a={loading:function(t){return t.error,t.isLoading,t.pastDelay,null}};t instanceof Promise?a.loader=function(){return t}:"function"==typeof t?a.loader=t:"object"==typeof t&&(a=r._({},a,t));var c=(a=r._({},a,e)).loader;return(a.loadableGenerated&&(a=r._({},a,a.loadableGenerated),delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?n(i._(r._({},a),{loader:function(){return null!=c?c().then(o):Promise.resolve(o(function(){return null}))}})):(delete a.webpack,delete a.modules,u(n,a))}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},92254:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return r}});var r=n(51538)._(n(67294)).default.createContext(null)},8976:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(82900),i=n(74923),a=n(50858),s=n(55818);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});var o=n(51538)._(n(67294)),u=n(92254),c=[],l=[],d=!1;function p(t){var e=t(),n={loading:!0,loaded:null,error:null};return n.promise=e.then(function(t){return n.loading=!1,n.loaded=t,t}).catch(function(t){throw n.loading=!1,n.error=t,t}),n}var f=function(){function t(e,n){r._(this,t),this._loadFn=e,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return i._(t,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var e=this._res,n=this._opts;e.loading&&("number"==typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){t._update({pastDelay:!0})},n.delay)),"number"==typeof n.timeout&&(this._timeout=setTimeout(function(){t._update({timedOut:!0})},n.timeout))),this._res.promise.then(function(){t._update({}),t._clearTimeouts()}).catch(function(e){t._update({}),t._clearTimeouts()}),this._update({})}},{key:"_update",value:function(t){this._state=a._(s._(a._({},this._state),{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading}),t),this._callbacks.forEach(function(t){return t()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(t){var e=this;return this._callbacks.add(t),function(){e._callbacks.delete(t)}}}]),t}();function h(t){return function(t,e){var n=function(){if(!s){var e=new f(t,a);s={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return s.promise()},r=function(){n();var t=o.default.useContext(u.LoadableContext);t&&Array.isArray(a.modules)&&a.modules.forEach(function(e){t(e)})},i=function(t,e){r();var n=o.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return o.default.useImperativeHandle(e,function(){return{retry:s.retry}},[]),o.default.useMemo(function(){var e;return n.loading||n.error?o.default.createElement(a.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:s.retry}):n.loaded?o.default.createElement((e=n.loaded)&&e.default?e.default:e,t):null},[t,n])},a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},e),s=null;if(!d){var c=a.webpack?a.webpack():a.modules;c&&l.push(function(t){var e=!0,r=!1,i=void 0;try{for(var a,s=c[Symbol.iterator]();!(e=(a=s.next()).done);e=!0){var o=a.value;if(t.includes(o))return n()}}catch(t){r=!0,i=t}finally{try{e||null==s.return||s.return()}finally{if(r)throw i}}})}return i.preload=function(){return n()},i.displayName="LoadableComponent",o.default.forwardRef(i)}(p,t)}function g(t,e){for(var n=[];t.length;){var r=t.pop();n.push(r(e))}return Promise.all(n).then(function(){if(t.length)return g(t,e)})}h.preloadAll=function(){return new Promise(function(t,e){g(c).then(t,e)})},h.preloadReady=function(t){return void 0===t&&(t=[]),new Promise(function(e){var n=function(){return d=!0,e()};g(l,t).then(n,n)})},window.__NEXT_PRELOADREADY=h.preloadReady;var m=h},44178:function(t,e,n){"use strict";n.r(e);var r=n(50858),i=n(85893);n(91401);var a=n(8504),s=n.n(a),o=n(11163),u=n.n(o),c=n(67294),l=n(4298),d=n.n(l),p=n(90743),f=n(27764),h=n(93591),g=n(50478),m=n(5152),_=n.n(m)()(function(){return Promise.all([n.e(467),n.e(22)]).then(n.bind(n,25022))},{loadableGenerated:{webpack:function(){return[25022]}}});u().events.on("routeChangeStart",function(){return s().start()}),u().events.on("routeChangeComplete",function(){return s().done()}),u().events.on("routeChangeError",function(){return s().done()}),u().events.on("routeChangeComplete",function(){location.hash&&(setTimeout(function(){return location},10),setTimeout(function(){return location},250),setTimeout(function(){return location},500))});var v=location.pathname+location.search;e.default=function(t){var e,n=t.Component,a=t.pageProps,s=function(){var t,e;document.documentElement.lang=null===(e=h.Q[a?.globalSettings?.lang])||void 0===e?void 0:null===(t=e.intlLocale)||void 0===t?void 0:t.split("-")[0]},l=(0,o.useRouter)();return(0,c.useEffect)(function(){return u().events.on("routeChangeComplete",s),function(){return u().events.off("routeChangeComplete",s)}},[]),(0,f.v)(),(0,c.useEffect)(function(){var t=function(n){9===n.keyCode&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",t),window.addEventListener("mousedown",e))},e=function(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",e),window.addEventListener("keydown",t)};window.addEventListener("keydown",t);var n=document.querySelectorAll("head link[rel=stylesheet]"),r=!0,i=!1,a=void 0;try{for(var s,o=n[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;u.hasAttribute("data-n-p")&&u.removeAttribute("data-n-p")}}catch(t){i=!0,a=t}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}return function(){window.removeEventListener("keydown",t),window.removeEventListener("mousedown",e)}},[]),(0,c.useEffect)(function(){var t=function(){var t=location.pathname+location.search;v&&v!==t&&((0,g.pE)(t),void 0!==window._paq&&(window._paq.push(["setCustomDimensionValue",3,(0,g.mu)()]),window._paq.push(["setCustomUrl",location.href]),window._paq.push(["setDocumentTitle",document.title]),window._paq.push(["trackPageView"]))),v=t};return l.events.on("routeChangeComplete",t),function(){l.events.off("routeChangeComplete",t)}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("script",{id:"setup-consent-mode",dangerouslySetInnerHTML:{__html:"\n                    window.dataLayer = window.dataLayer || [];\n                    function gtag() {\n                    dataLayer.push(arguments);\n                    }\n                    gtag('consent', 'default', {\n                    ad_storage: 'denied',\n                    analytics_storage: 'denied',\n                    wait_for_update: 1500,\n                    });\n                    gtag('set', 'ads_data_redaction', true);".replace(/[\s\n]+/g," ")}}),(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:g.vJ}}),(null==a?void 0:a.preview)!==!0&&(null==a?void 0:a.docType)!=="inAppPage"&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d(),{strategy:"beforeInteractive",id:"CookieConsent",src:"https://policy.app.cookieinformation.com/uc.js","data-culture":(0,p.bC)((null==a?void 0:null===(e=a.globalSettings)||void 0===e?void 0:e.lang)||"en"),type:"text/javascript"}),(0,i.jsx)("script",{id:"googletagmanager",dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n                        new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n                        j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n                        'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n                        })(window,document,'script','dataLayer','GTM-PDJPBRS');"}})]}),(null==a?void 0:a.preview)?(0,i.jsx)(_,{token:a.previewData.token,children:(0,i.jsx)(n,(0,r._)({},a))}):(0,i.jsx)(n,(0,r._)({},a))]})}},90743:function(t,e,n){"use strict";n.d(e,{bC:function(){return o},eA:function(){return l},ip:function(){return u},xV:function(){return c}});var r=n(51037),i=n(59402),a=n(85556),s=n(67294);function o(t){switch(t){case"dk":return"DA";case"se":return"SV";case"no":return"NB";default:return"EN"}}function u(){if(!window.CookieInformation)return{neccessary:!1,functional:!1,statistic:!1,marketing:!1,unclassified:!1};var t=window.CookieInformation;try{return{neccessary:(null==t?void 0:t.getConsentGivenFor("cookie_cat_necessary"))||!1,functional:(null==t?void 0:t.getConsentGivenFor("cookie_cat_functional"))||!1,statistic:(null==t?void 0:t.getConsentGivenFor("cookie_cat_statistic"))||!1,marketing:(null==t?void 0:t.getConsentGivenFor("cookie_cat_marketing"))||!1,unclassified:(null==t?void 0:t.getConsentGivenFor("cookie_cat_unclassified"))||!1}}catch(t){return{neccessary:!1,functional:!1,statistic:!1,marketing:!1,unclassified:!1}}}function c(){var t=(0,i._)((0,s.useState)({neccessary:null,functional:null,statistic:null,marketing:null,unclassified:null}),2),e=t[0],n=t[1];return(0,s.useEffect)(function(){var t=function(){n(u())};return t(),window.addEventListener("CookieInformationConsentGiven",t,!1),function(){window.removeEventListener("CookieInformationConsentGiven",t)}},[]),e}function l(){return d.apply(this,arguments)}function d(){return(d=(0,r._)(function(){return(0,a.Jh)(this,function(t){return[2,new Promise(function(t){var e;void 0!==(null===(e=window.CookieInformation)||void 0===e?void 0:e.getConsentGivenFor("cookie_cat_marketing"))&&t(),window.addEventListener("CookieInformationConsentGiven",function(){t()})})]})})).apply(this,arguments)}},27764:function(t,e,n){"use strict";n.d(e,{C:function(){return d.Cm},v:function(){return p}});var r,i,a=n(50858),s=n(59402),o=n(11163),u=n(67294),c=n(90743),l=n(60536),d=n(85511);function p(){var t=(0,c.xV)(),e=t.marketing,n=t.statistic,r=(0,l.Z)(),d=r.getItem,p=r.setItem,f=r.removeItem,h=(0,o.useRouter)().query,g=(0,s._)((0,u.useState)(d(i.GCLID)),2),m=g[0],_=g[1],v=(0,s._)((0,u.useState)(d(i.MSCLKID)),2),y=v[0],b=v[1],S=(0,s._)((0,u.useState)(d(i.FBCLID)),2),T=S[0],k=S[1],w=(0,s._)((0,u.useState)(d(i.ADTRACTIONID)),2),E=w[0],x=w[1],C=(0,s._)((0,u.useState)(d(i.SOURCE)),2),I=C[0],O=C[1],L=(0,s._)((0,u.useState)(d(i.CAMPAIGN)),2),D=L[0],R=L[1];(0,u.useEffect)(function(){if(e){if("string"==typeof h.gclid&&(_(h.gclid),p(i.GCLID,h.gclid)),"string"==typeof h.msclkid&&(b(h.msclkid),p(i.MSCLKID,h.msclkid)),"string"==typeof h.fbclid&&(k(h.fbclid),p(i.FBCLID,h.fbclid)),"string"==typeof h.at_gd&&(x(h.at_gd),p(i.ADTRACTIONID,h.at_gd)),"string"==typeof h.af_sub5)try{var t=Object.fromEntries(new URLSearchParams(h.af_sub5).entries());t.adtractionId&&(x(t.adtractionId),p(i.ADTRACTIONID,t.adtractionId))}catch(t){}"string"==typeof h.clickid&&"adtraction"===h.utm_campaign&&(x(h.clickid),p(i.ADTRACTIONID,h.clickid))}else!1===e&&(m||y)&&(f(i.GCLID),f(i.MSCLKID),f(i.FBCLID),f(i.ADTRACTIONID),_(void 0),b(void 0),k(void 0),x(void 0));n?("string"==typeof h.utm_source&&O(h.utm_source),"string"==typeof h.utm_campaign&&R(h.utm_campaign)):!1===n&&"string"==typeof h.utm_source&&(O(h.utm_source),f(i.SOURCE))},[m,y,T,E,I,e,n,h,p,f]);var $=null==I?void 0:I.toLowerCase(),P=I||"Organic";return(m||(null==$?void 0:$.includes("google"))||(null==$?void 0:$.includes("sem")))&&(P="Google Ads"),y&&(P="Microsoft Ads"),(T||(null==$?void 0:$.includes("facebook"))||(null==$?void 0:$.includes("meta")))&&(P="Facebook Ads"),(null==$?void 0:$.includes("linkedin"))&&(P="LinkedIn Ads"),E&&(P="Adtraction partner"),(null==$?void 0:$.includes("mail"))&&(P="Email"),{ids:(0,a._)({},m?{gclid:m}:{},y?{msclkid:y}:{},T?{fbclid:T}:{},E?{adtractionId:E}:{}),gclid:m,msclkid:y,fbclid:T,adtractionId:E,source:I,parsedSource:P,campaign:D}}(r=i||(i={})).GCLID="ONECLICK_GCLID",r.MSCLKID="ONECLICK_MSCLKID",r.FBCLID="ONECLICK_FBCLID",r.ADTRACTIONID="ONECLICK_ADTRACTIONID",r.SOURCE="UTM_SOURCE",r.CAMPAIGN="UTM_CAMPAIGN"},85511:function(t,e,n){"use strict";n.d(e,{Cm:function(){return s},ni:function(){return o}});var r=n(50858),i=n(55818),a=n(59402);function s(t){var e=t.ids,n=void 0===e?{}:e,s=t.source,o=void 0===s?"":s,u=t.campaign,c=t.deviceType,l=t.deepLinkUrl,d=t.fallbackUrl,p=t.onelinkUrl,f=void 0===p?"https://lunarway.onelink.me/1703574611":p,h=t.testVariation,g=void 0===h?"":h;n=Object.fromEntries(Object.entries(n).filter(function(t){return null!=(0,a._)(t,2)[1]}));var m=null==o?void 0:o.toLowerCase(),_=o||"Organic";(n.gclid||(null==m?void 0:m.includes("google")))&&(_="Google Ads"),n.msclkid&&(_="Microsoft Ads"),(n.fbclid||(null==m?void 0:m.includes("facebook"))||(null==m?void 0:m.includes("meta")))&&(_="Facebook Ads"),(null==m?void 0:m.includes("linkedin"))&&(_="LinkedIn Ads"),n.adtractionId&&(_="Adtraction partner");var v=(void 0===u?"":u)||o;"Organic"===_&&"undefined"!=typeof document&&(document.referrer.includes("google")&&(v="Google Organic"),document.referrer.includes("bing")&&(v="Bing Organic"),(n.fbclid||document.referrer.includes("facebook"))&&(v="Facebook Organic"));var y=new URLSearchParams((0,r._)((0,i._)((0,r._)({pid:"website"},v?{c:v}:{}),{af_channel:_,af_adset:void 0===c?"Mobile":c,af_dp:void 0===l?"lunarway://":l}),d?{af_web_dp:d}:{},g?{af_ad:g}:{},n.gclid?{gclidParam:"af_sub1",af_sub1:n.gclid}:{},n.msclkid?{af_sub2:n.msclkid}:{},Object.values(n).length?{af_sub5:encodeURIComponent(new URLSearchParams(n).toString())}:{}));return(null==f?void 0:f.includes("?"))&&new URLSearchParams(f.split("?")[1]).forEach(function(t,e){y.set(e,t)}),"".concat(f.split("?")[0],"?").concat(y.toString())}function o(t){var e,n,s,o,c,l,d,p,f,h,g=new URLSearchParams((e=t.ids,n=t.segment,o=void 0===(s=t.lang)?"dk":s,c=t.linkSource,l=t.source,d=t.campaign,p=t.onelinkPath,"sms"===c&&(null==e?void 0:e.fbclid)&&delete e.fbclid,h=(f=e?Object.entries(u).reduce(function(t,n){var r=(0,a._)(n,2),i=r[0],s=r[1];return(null==e?void 0:e[i])&&(t[s]=e[i]),"gaClientId"===i&&(null==e?void 0:e.installLeadTimestamp)&&(t[s]+="-".concat(e.installLeadTimestamp)),t},{}):null)?encodeURIComponent(new URLSearchParams(f).toString()):null,(0,r._)((0,i._)((0,r._)({},h?{i:h}:{}),{s:"business"===n?"b":"c",m:["dk","en"].includes(o)?"dk":o,ls:c}),l?{ws:l}:{},d?{wc:d}:{},p&&!("business"===n&&p.includes("scntyxvq"))?{ol:p}:{}))).toString();return"https://lunar.app/dl?".concat(g)}var u={gclid:"g",msclkid:"m",fbclid:"f",adtractionId:"a",gaClientId:"ga",gaSessionId:"s"}},50478:function(t,e,n){"use strict";n.d(e,{at:function(){return d},dG:function(){return c},mu:function(){return h},pE:function(){return u},qt:function(){return l},vJ:function(){return _}});var r=n(51037),i=n(50858),a=n(85556),s=n(90743);function o(t){return t&&!!t.dataLayer}var u=function(t){var e={event:"virtual-page-view",page:t};return o(window)&&window.dataLayer.push(e),e},c=function(t,e){var n=(0,i._)({event:t},e);return o(window)&&window.dataLayer.push(n),n},l=function(t){var e={event:"app-badge-click",appStore:t,install_lead_type:"app-badge"};return o(window)&&window.dataLayer.push(e),e};function d(){return p.apply(this,arguments)}function p(){return(p=(0,r._)(function(){return(0,a.Jh)(this,function(t){return(0,s.ip)().statistic?[2,new Promise(function(t){if(window.gaLoaded)return t({gaClientId:g(),gaSessionId:m()});window.addEventListener("gaLoaded",function(){t({gaClientId:g(),gaSessionId:m()})}),setTimeout(function(){t({})},500)})]:[2,{}]})})).apply(this,arguments)}function f(t){var e,n=document.cookie.split("; ").find(function(e){return e.startsWith(t+"=")&&!1===e.includes("=deleted")});return null==n?void 0:null===(e=n.split("="))||void 0===e?void 0:e[1]}function h(){var t,e,n,r;try{t=null===(r=f("_ga"))||void 0===r?void 0:null===(n=r.split("."))||void 0===n?void 0:null===(e=n.slice(2))||void 0===e?void 0:e.join(".")}catch(t){}return t}function g(){var t=h();return t?"".concat(t,"-").concat(Date.now()):void 0}function m(){var t;try{var e,n=f("_ga_78GFWVM8FQ");t=null==n?void 0:null===(e=n.split("."))||void 0===e?void 0:e[2]}catch(t){}return null!=t?t:void 0}var _='\n    window.piwikDataLayer = window.piwikDataLayer || [];\n    var _paq = _paq || [];\n    if (location.pathname.indexOf("/in-app/") > -1) {\n\n        const piwikSiteId = "bfa80386-7687-4236-8ce3-25200f6ec258";\n        (function(window, document, dataLayerName, id) {\n            window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName(\'script\')[0],tags=document.createElement(\'script\');\n            function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString();f="; SameSite=Strict"}document.cookie=a+"="+b+d+f+"; path=/"}\n            var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1);\n            var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):"";\n            tags.async=!0,tags.src="https://lunar-inapp.containers.piwik.pro/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts);\n            !function(a,n,i){a[n]=a[n]||{};for(var c=0;c<i.length;c++)!function(i){a[n][i]=a[n][i]||{},a[n][i].api=a[n][i].api||function(){var a=[].slice.call(arguments,0);"string"==typeof a[0]&&window[dataLayerName].push({event:n+"."+i+":"+a[0],parameters:[].slice.call(arguments,1)})}}(i[c])}(window,"ppms",["tm","cm"]);\n            })(window, document, \'piwikDataLayer\', piwikSiteId);\n\n        const isCookieInformationConsentReady = function() { return window.CookieInformation && window.CookieInformation.getConsentGivenFor && window.CookieInformation.getConsentGivenFor("cookie_cat_statistic") !== undefined }\n\n        const hasConsent = function() { return window.CookieInformation && window.CookieInformation.getConsentGivenFor && window.CookieInformation.getConsentGivenFor("cookie_cat_statistic") }\n\n\n        const getPiwikConsent = function(cb) {\n            window.ppms.cm.api("getComplianceSettings", function(res) {\n                const isInitialised = typeof (res.consents.analytics && res.consents.analytics.status) !== "undefined"\n                const hasMadeDecision = (res.consents.analytics && res.consents.analytics.status) > -1\n                const hasConsent = res.consents.analytics && res.consents.analytics.status === 1\n                cb(isInitialised, hasMadeDecision, hasConsent)\n            })\n        }\n\n        const setPiwikConsent = function(newConsent) {\n            getPiwikConsent(function(isInitialised, hasMadeDecision, hasConsent) {\n                if (!hasMadeDecision || (hasMadeDecision && hasConsent !== newConsent)) {\n                    if (!window.hasTrackedPopupImpression)\n                        window.ppms.cm.api("trackMainFormView", console.log, console.error)\n\n                    window.ppms.cm.api("setComplianceSettings", { consents: { analytics: { status: newConsent ? 1 : 0 } } } , console.log, console.error)\n                }\n            })\n        }\n\n        getPiwikConsent(function(isInitialised) {\n            if (!isInitialised) {\n                window.ppms.cm.api(\n                    "setInitialComplianceSettings",\n                    {\n                        consents: ["analytics"],\n                    },\n                    console.log,\n                    console.error,\n                )\n            }\n        })\n\n\n        if (!location.pathname.includes("/in-app/")) {\n            const willCookiePopupShow = !document.cookie.includes("CookieInformationConsent")\n            if (willCookiePopupShow) {\n                window.hasTrackedPopupImpression = true;\n                setTimeout(function () {window.ppms.cm.api("trackMainFormView", console.log, console.error)}, 1200)\n\n\n                // window.addEventListener("click", function(e) {\n                //     const clickTargetClass = e && e.target && e.target.className\n                //     if (clickTargetClass && clickTargetClass.indexOf("decline") > -1)\n                //         window.ppms.cm.api("trackRejectAllClick")\n\n                //     if (clickTargetClass && clickTargetClass.indexOf("accept") > -1)\n                //         window.ppms.cm.api("trackAgreeToAllClick")\n                // })\n            } else {\n                function checkPopupVisibility() {\n                    const popup = document.querySelector("#coiOverlay")\n                    popup && !!popup.offsetParent\n                }\n                let increments = 0\n                let intervalId = setInterval(function() {\n                    if (checkPopupVisibility()) {\n                        window.hasTrackedPopupImpression = true;\n                        setTimeout(function () {window.ppms.cm.api("trackMainFormView", console.log, console.error)}, 1200)\n                        window.clearInterval(intervalId)\n                    } else if (++increments > 15) {\n                        window.clearInterval(intervalId)\n                    }\n                }, 400)\n            }\n\n            if (isCookieInformationConsentReady()) {\n                setPiwikConsent(hasConsent())\n            } else {\n                window.addEventListener("CookieInformationConsentGiven", function() {\n                    const newConsent = hasConsent()\n                    if (typeof newConsent !== "undefined")\n                        setPiwikConsent(newConsent)\n                }, false)\n            }\n        }\n    }\n\n'},60536:function(t,e,n){"use strict";function r(){var t=function(t){return"".concat(null!=t?t:"session","Storage")};return{getItem:function(e,n){return window[t(n)]?window[t(n)][e]:""},setItem:function(e,n,r){return!!window[t(r)]&&(window[t(r)].setItem(e,n),!0)},removeItem:function(e,n){window[t(n)].removeItem(e)}}}n.d(e,{Z:function(){return r}})},93591:function(t,e,n){"use strict";n.d(e,{Q:function(){return r}});var r={dk:{name:"Danmark",countryCode:"+45",intlLocale:"da-DK"},en:{name:"Denmark (English)",countryCode:"+45",intlLocale:"en-DK"},se:{name:"Sverige",countryCode:"+46",intlLocale:"sv-SE"},no:{name:"Norge",countryCode:"+47",intlLocale:"no-NO"}}},91401:function(){},5152:function(t,e,n){t.exports=n(95677)},11163:function(t,e,n){t.exports=n(96885)},4298:function(t,e,n){t.exports=n(85442)}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],function(){return e(23170),e(6840),e(96885)}),_N_E=t.O()}]);
//# sourceMappingURL=_app-58c5b1fa900f48f2.js.map