try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b8c348b0-343b-4fd3-a113-c226f0158082",e._sentryDebugIdIdentifier="sentry-dbid-b8c348b0-343b-4fd3-a113-c226f0158082")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{35:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l{"use strict";var r,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");r=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===a||e===o||e===h||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)||!1},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case a:case o:case h:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case i:return t}}}},1108:(e,t,r)=>{"use strict";r.d(t,{f:()=>o,r:()=>s});var n=r(48862);let i="_sentrySpan";function s(e,t){t?(0,n.my)(e,i,t):delete e[i]}function o(e){return e[i]}},1342:(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},2219:(e,t,r)=>{"use strict";r.d(t,{XW:()=>i,xg:()=>s});var n=r(40373);function i(e){return new o(t=>{t(e)})}function s(e){return new o((t,r)=>{r(e)})}class o{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new o((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new o((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i)return void r(n);t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,n.Qg)(t))return void t.then(r,i);this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},4073:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUniversalReporter=void 0;let n=r(82149),i=r(96747);t.createUniversalReporter=function(e={}){let t=e.context?[i.createUserAgentContext(),...e.context]:[i.createUserAgentContext()];return n.EventSenderReporter.create(Object.assign(Object.assign({environment:"browser"},e),{context:t}))}},4293:(e,t,r)=>{"use strict";r.d(t,{BY:()=>a,EU:()=>s,Se:()=>o});var n=r(18379),i=r(8164);function s(){return o(i.O),i.O}function o(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.M,t[n.M]=t[n.M]||{}}function a(e,t,r=i.O){let s=r.__SENTRY__=r.__SENTRY__||{},o=s[n.M]=s[n.M]||{};return o[e]||(o[e]=t())}},5372:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(20268);class i extends Error{constructor(e,t,r=-1){super(t),this.name="XResolveError",this.message=t,this.code=e,this.status=r}}let s={DEALER:"dealer-g2",WEBGATE:"spclient"},o={spclient:"spclient.wg.spotify.com",exp:"exp.wg.spotify.com",partners:"partners.wg.spotify.com"};function a(e={}){let t={dealer:e.dealer||s.DEALER,webgate:e.webgate||s.WEBGATE},r=`https://apresolve.spotify.com/?type=${t.dealer}&type=${t.webgate}`;return function(e){return e.request(r,{forcePolyfill:!0,responseType:"json",retry:{maxRetries:3,curve:"exponential",condition:function(e,t){return e.getStatusFamily()!==t.SUCCESS}},metadata:{noRequestTransform:!0}}).then(e=>{var r,s,a,l,c;let u=e.body,d={dealer:null!=(s=null==(r=null==u?void 0:u[t.dealer])?void 0:r[0])?s:"dealer.g2.spotify.com",webgate:null!=(c=null!=(l=null==(a=null==u?void 0:u[t.webgate])?void 0:a[0])?l:o[t.webgate])?c:o.spclient,webapi:"https://api.spotify.com/"};if(!d.dealer||!d.webgate)throw new i(n.L.XRESOLVE_INCOMPLETE_RESPONSE,"X-Resolve responded with incomplete results.",e.status);return d}).then(e=>(e.dealer=`wss://${e.dealer.replace(/:443$/,"")}`,e.webgate=`https://${e.webgate.replace(/:443$/,"")}`,e))}}},5797:(e,t,r)=>{"use strict";r.d(t,{Vu:()=>a,fj:()=>s,qO:()=>o});var n=r(55125),i=r(47016);function s(e){let t=(0,i.zf)(),r={sid:(0,n.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}};return e&&o(r,e),r}function o(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function a(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),o(e,r)}},5897:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeviceDesktopContext=void 0,t.createDeviceDesktopContext=function(e){return function(){return{name:"context_device_desktop",data:e}}}},6291:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CustomApp:()=>v,default:()=>E,reportWebVitals:()=>b});var n,i=r(82536),s=r(1503),o=r(72223);let a=(0,r(54745).DU)(n||(n=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n /*\n Reset the box-sizing\n\n Heads up! This reset may cause conflicts with some third-party widgets.\n For recommendations on resolving such conflicts, see\n http://getbootstrap.com/getting-started/#third-box-sizing\n */\n\n * {\n box-sizing: border-box;\n }\n\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n /* Body reset */\n\n body {\n margin: 0;\n }\n\n body, input, textarea, button {\n font-family: var(--encore-body-font-stack);\n }\n\n html,\n body {\n height: 100%;\n }\n"])));var l=function(){return o.createElement(o.Fragment,null,o.createElement(a,null))};r(62961),r(69309),r(32223),r(56237),r(19470);var c=r(86727),u=r(69594),d=r.n(u),h=r(9385),p=r.n(h);let f=(0,o.createContext)(void 0);class m extends o.Component{static getDerivedStateFromError(e){return{error:e}}render(){return(0,s.jsx)(f.Provider,{value:this.state.error,children:this.props.children})}constructor(...e){super(...e),this.state={error:void 0}}}r(79816);var g=r(96546);r(59689);var _=r(89147),y=r(6379);let v=e=>{var t,r,n,a,u,h,p,f,v,b,E,S,T,w,O,C;let{Component:k,pageProps:R}=e,I=null==R||null==(n=R.state)||null==(r=n.data)||null==(t=r.entity)?void 0:t.visualIdentity,N=(null==I||null==(a=I.image)?void 0:a.length)?I.image:null,A=null!=(C=null==(u=(e=>{if(!e||e.length<=0)return;if(1===e.length)return e[0];let t=_.Ub.largeScreen.small,r=_.Ub.largeScreen.small,[n]=e.map(e=>{let n=[(e.width||e.maxWidth||0)*(e.height||e.maxHeight||0),t*r];return{ratio:Math.max(...n)/Math.min(...n),image:e}}).sort((e,t)=>e.ratio-t.ratio);return n.image})(null!=N?N:null==R||null==(v=R.state)||null==(f=v.data)||null==(p=f.entity)||null==(h=p.coverArt)?void 0:h.sources))?void 0:u.url)?C:"";(0,o.useEffect)(()=>{let e=(0,y.H)();e&&"discord.com"!==e&&(e="other referrers"),(0,g.fE)({metric_type:c.MetricTypes.COUNTER,what:"embed_rendered_referrer",tags:{referrer:e},value:1})},[]);let x=null==R||null==(S=R.state)||null==(E=S.data)||null==(b=E.entity)?void 0:b.name,P=null==R||null==(O=R.state)||null==(w=O.data)||null==(T=w.entity)?void 0:T.artists,D=null==P?void 0:P.map(e=>e.name).join(", ");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d(),{children:[(0,s.jsxs)("title",{children:[x," - ",(()=>{var e,t,r,n,i,s,o;return(null==R||null==(r=R.state)||null==(t=r.data)||null==(e=t.entity)?void 0:e.type)==="track"?D||"":(null==R||null==(i=R.state)||null==(n=i.data.entity)?void 0:n.subtitle)?null==R||null==(o=R.state)||null==(s=o.data.entity)?void 0:s.subtitle:""})()," | Spotify"]}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsx)(l,{}),(0,s.jsx)(m,{children:(0,s.jsx)("div",{style:{"--image-src":"url('".concat(A,"')")},"data-testid":"main-page",children:(0,s.jsx)(k,(0,i._)({},R))})})]})};function b(e){var t,r;(0,g.q6)(),(0,g.fE)(c.BrowserMetrics.getWebVitalsMetric(e,{route:null!=(r=null==(t=p().router)?void 0:t.route)?r:"unknown"}))}let E=v},6379:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});let n=e=>e?new URL(e).hostname:"",i=()=>{let e=document.referrer;if(!e||e.includes("open.spotify.com")){let e=new URL(window.location.href).searchParams.get("referrer");if(e)return n(e)}return n(e)}},6606:(e,t,r)=>{"use strict";var n;r.d(t,{t:()=>n}),function(e){e[e.CONNECTION_ERROR=0]="CONNECTION_ERROR",e[e.INFORMATIONAL=1]="INFORMATIONAL",e[e.SUCCESS=2]="SUCCESS",e[e.REDIRECTION=3]="REDIRECTION",e[e.CLIENT_ERROR=4]="CLIENT_ERROR",e[e.SERVER_ERROR=5]="SERVER_ERROR"}(n||(n={}))},8e3:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});let n="production"},8159:(e,t,r)=>{"use strict";let n;r.d(t,{Vk:()=>i,bk:()=>h});class i{constructor(e,t){this.defaultPrevented=!1,this.immediateStopped=!1,this.stopped=!1,this.type=e,this.data=t}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.stopped=!0}stopImmediatePropagation(){this.immediateStopped=!0}}let s="undefined"!=typeof window,o=[];function a(){var e;let t=o.splice(0);if(t.length)for(let r=0,n=t.length;r{let t=!o.length;o.push(e),t&&n()};function c(e,t,r){for(let n=0,i=e.length;nthis._dispatchFromStore(this._listeners,r)),r}emitSync(e,t){if(!e)throw TypeError("Argument `eventType` is required.");let r=this.createEvent(e,t);return this._dispatchFromStore(this._listeners,r),r}emitEvent(e){return l(()=>this._dispatchFromStore(this._listeners,e)),e}emitEventSync(e){return this._dispatchFromStore(this._listeners,e),e}emitAndWait(e,t,r){if(!e)throw TypeError("Argument `eventType` is required.");let n=this.createEvent(e,t);return l(()=>{this._dispatchFromStore(this._listeners,n),r.call(this,n)}),n}emitEventAndWait(e,t){return l(()=>{this._dispatchFromStore(this._listeners,e),t.call(this,e)}),e}proxyEmit(e,t,r){if(!e||"function"!=typeof e.on)throw TypeError("Proxy source must be an EventEmitter");if(e===this)throw ReferenceError("Cannot create recursive proxy.");if(!t||!r)throw TypeError("Parameter sourceType and targetType are required.");let n=e=>{e.stopped||this.emitAndWait(r,e.data,t=>{t.defaultPrevented&&e.preventDefault()})};return e.on(t,n),n}proxyEmitSync(e,t,r){if(!e||"function"!=typeof e.on)throw TypeError("Proxy source must be an EventEmitter");if(e===this)throw ReferenceError("Cannot create recursive proxy.");if(!t||!r)throw TypeError("Parameter sourceType and targetType are required.");let n=e=>{if(e.stopped)return;let t=this.createEvent(r,e.data);this.emitEventSync(t),t.defaultPrevented&&e.preventDefault()};return e.on(t,n),n}proxyEmitAll(e,t){for(let r in t)t.hasOwnProperty(r)&&this.proxyEmit(e,r,t[r])}proxyEmitAllSync(e,t){for(let r in t)t.hasOwnProperty(r)&&this.proxyEmitSync(e,r,t[r])}onAddListener(e,t,r={}){let n=this._metaListeners.add;return u(n,e,t,r)&&d(n,e,t,r),this}onRemoveListener(e,t,r={}){let n=this._metaListeners.remove;return u(n,e,t,r)&&d(n,e,t,r),this}}},8164:(e,t,r)=>{"use strict";r.d(t,{O:()=>n});let n=globalThis},9385:(e,t,r)=>{e.exports=r(34545)},9456:(e,t,r)=>{"use strict";e.exports=r(1092)},9534:(e,t,r)=>{"use strict";r.d(t,{E1:()=>h,Ef:()=>s,JD:()=>a,Lc:()=>f,Le:()=>d,Sn:()=>c,fs:()=>l,i_:()=>n,jG:()=>p,sy:()=>i,uT:()=>o,xc:()=>u});let n="sentry.source",i="sentry.sample_rate",s="sentry.previous_trace_sample_rate",o="sentry.op",a="sentry.origin",l="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",d="sentry.custom_span_name",h="sentry.profile_id",p="sentry.exclusive_time",f="sentry.link.type"},10427:(e,t,r)=>{"use strict";var n;r.d(t,{s:()=>n}),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.TIMED_OUT=408]="TIMED_OUT",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_ENTITY_TOO_LARGE=413]="REQUEST_ENTITY_TOO_LARGE",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(n||(n={}))},12213:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(82643);let i={baseTime:200,ceiling:0,curve:"linear",jitter:!0};class s{constructor(e={}){this._curve=e.curve||i.curve,this._baseTime=e.baseTime||i.baseTime,this._ceiling=e.ceiling||i.ceiling,this._jitter="jitter"in e?!!e.jitter:i.jitter}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;default:t=e+1}let r=Math.min(0x100000000,Math.floor(t*this._baseTime));return this._ceiling&&(r=Math.min(r,this._ceiling)),this._jitter?function(e){let t=e/5;return Math.floor(e-t/2+Math.random()*t)}(r):r}}let o={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class a{constructor(e,t){this._resolver=function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;let r=Object.assign(Object.assign({},o),t),{backoffInitial:i,maxDuration:a,maxRetries:l,maxTime:c,retryPredicate:u}=r,d=(0,n.__rest)(r,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=i,this._maxDuration=a,this._maxRetries=l,this._maxTime=c,this._retryPredicate=u,this._backoffInitial=i,this._counter=new s(d),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new a(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)if(e&&"retryAfter"in e)this._retryAfter(e);else{let t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout(()=>this._tick(),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout(()=>this._tick(),e.retryAfter)}_success(...e){this._isDestroyed||(this._resolver.resolve(...e),this._destroy())}_shouldRetry(e,t){let r=Date.now()-this._ts+e;return this._callCountthis._success(...e)).catch(e=>this._failure(e))}getResolver(){return this._resolver.promise}start(){return this._isDestroyed?Promise.reject(Error("Backoff already consumed")):(this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout(()=>this._tick(),this._counter.getTime(0))):this._tick()),this._resolver.promise)}stop(){clearTimeout(this._tickInterval),this._destroy()}getRetryCount(){return this._callCount}}},12584:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:()=>n})},13027:(e,t,r)=>{"use strict";var n=r(28153),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?o:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var o=u(r);d&&(o=o.concat(d(r)));for(var a=l(t),m=l(r),g=0;g{"use strict";r.d(t,{m:()=>i});var n,i={};r.r(i),r.d(i,{disable:()=>v,disableAll:()=>S,enable:()=>y,enableAll:()=>E,forTag:()=>T,intercept:()=>m,list:()=>_,remove:()=>w,setLevel:()=>b,unintercept:()=>g}),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(n||(n={}));class s{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}}var o=r(98402);class a{constructor(e,t="",r=()=>!1){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=n.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=r,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,r){if(!this._enabled&&!(this._level&t))return;let n={args:r,type:e,tag:this.tag};this._predicate(n)||console[e](this._tagText,...r)}matchesTag(e){let t=Array.isArray(e)?e:e.split("."),r=this._tagParts;if(t.length>r.length)return!1;for(let e=0,n=t.length;e{}}function _(e){let t=Object.keys(d).filter(e=>d[e]).sort();return e?t.map(e=>({tag:e,description:d[e].description||"No description."})):t.reduce((e,t)=>(e[t]=d[t].description||"No description",e),{})}function y(e){var t;let r=Array.isArray(e)?e:[e],n=r.length;for(;n--;){let e=null==(t=r[n])?void 0:t.toLowerCase(),i=h.length;for(;i--;){let t=h[i];t.matchesTag(e)&&t.enable()}}}function v(e){var t;let r=Array.isArray(e)?e:[e],n=r.length;for(;n--;){let e=null==(t=r[n])?void 0:t.toLowerCase(),i=h.length;for(;i--;){let t=h[i];t.matchesTag(e)&&t.disable()}}}function b(e){f=e;let t=h.length;for(;t--;){let r=h[t];r&&r.setLevel(e)}}function E(){let e=h.length;for(;e--;)h[e]&&h[e].enable()}function S(){let e=h.length;for(;e--;)h[e]&&h[e].disable()}function T(e,t){let r,n;if("string"==typeof e?(r=e.toLowerCase(),n=t):(r=e.tag,n=e.description),Object.prototype.hasOwnProperty.call(d,r)&&d[r])return d[r];let i=new l(r,n,p);return i.setLevel(f),d[r]=i,h.push(i),i}function w(e){let t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(d,t)||!d[t])return;let r=d[t];d[t]=null;let n=h.indexOf(r);-1!==n&&h.splice(n,1)}},16852:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>a,_c:()=>o,gt:()=>s,xv:()=>i});var n=r(40373);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;to(e,t,r))}},16939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUserAgentContext=void 0,t.createUserAgentContext=function(e){if(!e&&"undefined"==typeof navigator)throw Error("userAgent is not provided and navigator.UserAgent is not available");return function(){return{name:"context_user_agent",data:{value:e||navigator.userAgent}}}}},17211:(e,t,r)=>{"use strict";function n(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}r.d(t,{u:()=>n})},18379:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n="10.17.0"},19071:(e,t,r)=>{"use strict";r.d(t,{h:()=>function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}})},19470:()=>{},20268:(e,t,r)=>{"use strict";var n;r.d(t,{L:()=>n}),function(e){e.HTTP_REQUEST_ABORTED="HTTP_REQUEST_ABORTED",e.HTTP_REQUEST_FAILED="HTTP_REQUEST_FAILED",e.HTTP_REQUEST_TIMEOUT="HTTP_REQUEST_TIMEOUT",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED",e.TRANSPORT_ENDPOINTS_PROVIDER_ERROR="TRANSPORT_ENDPOINTS_PROVIDER_ERROR",e.TRANSPORT_INVALID_STATE="TRANSPORT_INVALID_STATE",e.TRANSPORT_INVALID_TOKEN="TRANSPORT_INVALID_TOKEN",e.TRANSPORT_STALE_TOKEN="TRANSPORT_STALE_TOKEN ",e.TRANSPORT_TOKEN_PROVIDER_ERROR="TRANSPORT_TOKEN_PROVIDER_ERROR",e.TRANSPORT_LIFECYCLE_DISABLED="TRANSPORT_LIFECYCLE_DISABLED",e.TRANSPORT_UNSUPPORTED_OPTION="TRANSPORT_UNSUPPORTED_OPTION",e.XRESOLVE_INCOMPLETE_RESPONSE="XRESOLVE_INCOMPLETE_RESPONSE",e.XRESOLVE_INVALID_RESPONSE="XRESOLVE_INVALID_RESPONSE",e.XRESOLVE_REQUEST_FAILED_WITH_STATUS="XRESOLVE_REQUEST_FAILED_WITH_STATUS"}(n||(n={}))},23454:(e,t,r)=>{"use strict";var n;r.d(t,{I:()=>n}),function(e){e.DELETE="DELETE",e.GET="GET",e.HEAD="HEAD",e.OPTIONS="OPTIONS",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.TRACE="TRACE"}(n||(n={}))},23668:(e,t,r)=>{"use strict";function n(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}r.d(t,{i:()=>n})},24623:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n,i={};r.r(i),r.d(i,{disable:()=>v,disableAll:()=>S,enable:()=>y,enableAll:()=>E,forTag:()=>T,intercept:()=>m,list:()=>_,remove:()=>w,setLevel:()=>b,unintercept:()=>g}),r(98402),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(n||(n={}));class s{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}}var o=r(98402);class a{constructor(e,t="",r=()=>!1){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=n.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=r,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,r){if(!this._enabled&&!(this._level&t))return;let n={args:r,type:e,tag:this.tag};this._predicate(n)||console[e](this._tagText,...r)}matchesTag(e){let t=Array.isArray(e)?e:e.split("."),r=this._tagParts;if(t.length>r.length)return!1;for(let e=0,n=t.length;e{}}function _(e){let t=Object.keys(d).filter(e=>d[e]).sort();return e?t.map(e=>({tag:e,description:d[e].description||"No description."})):t.reduce((e,t)=>(e[t]=d[t].description||"No description",e),{})}function y(e){var t;let r=Array.isArray(e)?e:[e],n=r.length;for(;n--;){let e=null==(t=r[n])?void 0:t.toLowerCase(),i=h.length;for(;i--;){let t=h[i];t.matchesTag(e)&&t.enable()}}}function v(e){var t;let r=Array.isArray(e)?e:[e],n=r.length;for(;n--;){let e=null==(t=r[n])?void 0:t.toLowerCase(),i=h.length;for(;i--;){let t=h[i];t.matchesTag(e)&&t.disable()}}}function b(e){f=e;let t=h.length;for(;t--;){let r=h[t];r&&r.setLevel(e)}}function E(){let e=h.length;for(;e--;)h[e]&&h[e].enable()}function S(){let e=h.length;for(;e--;)h[e]&&h[e].disable()}function T(e,t){let r,n;if("string"==typeof e?(r=e.toLowerCase(),n=t):(r=e.tag,n=e.description),d.hasOwnProperty(r)&&d[r])return d[r];let i=new l(r,n,p);return i.setLevel(f),d[r]=i,h.push(i),i}function w(e){let t=e.toLowerCase();if(!d.hasOwnProperty(t)||!d[t])return;let r=d[t];d[t]=null;let n=h.indexOf(r);-1!==n&&h.splice(n,1)}},26557:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleReporter=void 0;let s=i(r(67510));class o{constructor(e=2,t="info"){this.spacingLevel=e,this.logLevel=t}send(e){return n(this,void 0,void 0,function*(){s.default.log(this.logLevel,`[semantic-metrics] ${JSON.stringify(e,null,this.spacingLevel)}`)})}}t.ConsoleReporter=o},26588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSemanticMetricClientNonAuth=void 0,t.createSemanticMetricClientNonAuth=function(e){return{name:"SemanticMetricClientNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}},26915:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Base62:()=>n,Base64:()=>i});var n={};r.r(n),r.d(n,{fromBytes:()=>d,fromHex:()=>f,toBytes:()=>h,toHex:()=>p});var i={};r.r(i),r.d(i,{decode:()=>y,encode:()=>_});let s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",o={},a={};function l(e,t,r){let n=[0],i=[1];for(let s of e)!function(e,t,r,n){let i,s,o=0;for(s=0;s{let e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;t>2),m.charAt((3&e)<<4),"==");break}let s=t.charCodeAt(i++);if(i===n){r.push(m.charAt(e>>2),m.charAt((3&e)<<4|(240&s)>>4),m.charAt((15&s)<<2),"=");break}let o=t.charCodeAt(i++);r.push(m.charAt(e>>2),m.charAt((3&e)<<4|(240&s)>>4),m.charAt((15&s)<<2|(192&o)>>6),m.charAt(63&o))}return r.join("")},y=function(e){let t,r,n=String(e),i=[],s=n.length,o=0;for(;;){do t=g.charCodeAt(255&n.charCodeAt(o++));while(255===t&&o>4)&255);do t=g.charCodeAt(255&n.charCodeAt(o++));while(255===t&&o>2)&255);do r=g.charCodeAt(255&n.charCodeAt(o++));while(255===r&&owindow.btoa(e),y=e=>window.atob(e))},28153:(e,t,r)=>{"use strict";e.exports=r(68053)},28836:(e,t,r)=>{"use strict";r.d(t,{h:()=>d});var n=r(4293),i=r(50457),s=r(40373);class o{constructor(e,t){let r,n;r=e||new i.H,n=t||new i.H,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,s.Qg)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function a(){let e=(0,n.EU)(),t=(0,n.Se)(e);return t.stack=t.stack||new o((0,n.BY)("defaultCurrentScope",()=>new i.H),(0,n.BY)("defaultIsolationScope",()=>new i.H))}function l(e){return a().withScope(e)}function c(e,t){let r=a();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function u(e){return a().withScope(()=>e(a().getIsolationScope()))}function d(e){let t=(0,n.Se)(e);return t.acs?t.acs:{withIsolationScope:u,withScope:l,withSetScope:c,withSetIsolationScope:(e,t)=>u(t),getCurrentScope:()=>a().getScope(),getIsolationScope:()=>a().getIsolationScope()}}},30097:(e,t,r)=>{"use strict";r.d(t,{Iy:()=>c,MI:()=>o,TC:()=>l,kM:()=>a});var n=r(94941),i=r(23668),s=r(57604);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){let r=function(e){let t;if(!e)return;let r=e.match(o);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),a=(0,n.yD)(t);if(!r?.traceId)return{traceId:(0,s.e)(),sampleRand:Math.random()};let l=function(e,t){let r=(0,i.i)(t?.sample_rand);if(void 0!==r)return r;let n=(0,i.i)(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*n:n+Math.random()*(1-n):Math.random()}(r,a);a&&(a.sample_rand=l.toString());let{traceId:c,parentSpanId:u,parentSampled:d}=r;return{traceId:c,parentSpanId:u,sampled:d,dsc:a||{},sampleRand:l}}function l(e=(0,s.e)(),t=(0,s.Z)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function c(e=(0,s.e)(),t=(0,s.Z)(),r){return`00-${e}-${t}-${r?"01":"00"}`}},30884:function(e,t,r){"use strict";var n=r(98402),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendMetric=t.reportMetrics=t.createSemanticMetrics=t.asNanoseconds=t.MetricTypes=void 0;let o=s(r(67510)),a=r(60008);t.MetricTypes={COUNTER:"counter",GAUGE:"gauge",TIMER:"timer"},t.asNanoseconds=function(e){return e};let l=(e,t)=>i(void 0,void 0,void 0,function*(){if(Array.isArray(t.reporter)){let r=t.reporter.map(t=>t.send(e));yield Promise.all(r)}else yield t.reporter.send(e)});t.reportMetrics=l;let c=e=>{(void 0!==e.dev?e.dev:n.env&&!1)&&(e.reporter=new a.NoopReporter);let t={queue:[],timeout:void 0,flush(){return i(this,void 0,void 0,function*(){yield l(this.queue,e),this.queue=[],this.timeout=void 0})}},r=!1;return void 0===e.batching&&(e.batching={delay:4e3}),e.batching&&"object"==typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("beforeunload",()=>{r=!0,t.flush()}),{sendMetric:n=>i(void 0,void 0,void 0,function*(){var i,s;let o=Object.assign({},n);if(n.tags&&(o.tags=Object.assign({},n.tags)),o.key=o.key||e.key,!o.key)throw Error(`metric.key is required. Got: "${o.key}". Set it in createSemanticMetrics(...) or pass it to sendMetric(...).`);o.tags=Object.assign({app:null!=(i=e.app)?i:o.key,application:null!=(s=e.app)?s:o.key},o.tags),e.component_id?o.component_id=o.component_id||e.component_id:o.component_id=e.key,e.batching&&!r?(t.queue.push(o),t.timeout||(t.timeout=setTimeout(()=>t.flush(),e.batching.delay))):yield l([o],e)}),config:e,isWindowUnloading:r,flush:()=>e.batching?t.flush():(o.default.warn("Manual flushing only supported in batch mode. Set config.batching: true"),Promise.resolve())}};t.createSemanticMetrics=c;class u{static init(e){u.config&&o.default.error("SemanticMetrics has already been initialized. This may lead to dangerous side effects such as your metrics disappearing from Grafana due to the `key` value being overwritten by something else"),o.default.warn("The singleton usage of SemanticMetrics will be deprecated. Please use createSemanticMetrics()"),u.config=e;let{sendMetric:t,isWindowUnloading:r}=c(e);u.sendMetric=t,u.isWindowUnloading=r}}t.default=u,t.sendMetric=e=>i(void 0,void 0,void 0,function*(){if(!u.config)throw Error("SemanticMetrics has not been initialized. Call SemanticMetrics.init()");return u.sendMetric(e)})},32223:()=>{},33552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInstallationIdContext=void 0;var n=r(78464);t.createInstallationIdContext=function(e){var t=n.hexToBase64(e);return function(){return{name:"context_installation_id",data:{value:t}}}}},33685:(e,t)=>{t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,l=(1<>1,u=-7,d=r?i-1:0,h=r?-1:1,p=e[t+d];for(d+=h,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=c}return(p?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var o,a,l,c=8*s-i-1,u=(1<>1,h=5960464477539062e-23*(23===i),p=n?0:s-1,f=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(a=0,o=u):o+d>=1?(a=(t*l-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&a,p+=f,a/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=f,o/=256,c-=8);e[r+p-f]|=128*m}},34200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMetrics=void 0;let n=r(30884),i=r(74244);function s(){let[e]=window.performance.getEntriesByType("navigation");return e}function o(e){return new Promise((t,r)=>window.performance&&"function"==typeof performance.getEntriesByType?window.addEventListener("load",()=>{let n=performance.getEntriesByType("paint"),i=n.find(({name:t})=>t===e);return void 0!==n&&i?t(i.startTime):r("Time to paint api is not supported on this browser")}):r("window.performance api is not supported in this browser"))}function a({name:e,label:t,value:r},n){let s;return s="cls"===e.toLowerCase()?{metric_type:"gauge",value:r}:{metric_type:"timer",value:i.Time.fromMillis(Math.round(r)).asNanos()},Object.assign(Object.assign({what:`web_vitals_${e.toLowerCase()}`},s),{tags:Object.assign({name:e,label:t},n)})}t.BrowserMetrics={getPageLoadTime:function(){return new Promise((e,t)=>{if(!window.performance||"function"!=typeof performance.getEntriesByType)return t("window.performance api is not supported in this browser");if(void 0===s())return t("navigationTiming api is not supported in this browser");let{loadEventEnd:r}=s();return r>0?e(r):window.addEventListener("load",()=>{setTimeout(()=>{let{loadEventEnd:t}=s();return e(t)},0)})})},getResourceTiming:function(){return window.performance.getEntriesByType("resource")},getTimeToFirstPaint:function(){return o("first-paint")},getTimeToFirstContentfulPaint:function(){return o("first-contentful-paint")},sendWebVitalsMetric:function(e,t){return n.sendMetric(a(e,t))},getWebVitalsMetric:a}},35972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCacheIdContext=void 0;var n=r(78464);t.createCacheIdContext=function(e){var t=n.hexToBase64(e);return function(){return{name:"context_cache_id",data:{value:t}}}}},36616:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Environment:()=>n,EventSenderEvent:()=>i,createEventSender:()=>T}),function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(n||(n={}));var n,i,s,o=r(82643),a=r(84822),l=r(24623),c=r(8159);!function(e){e.UPLOAD_SUCCEEDED="upload_succeeded",e.UPLOAD_FAILED="upload_failed",e.UPLOAD_REQUEST_FAILED="upload_request_failed"}(i||(i={}));let u=l.m.forTag("Uploader");class d extends c.bk{constructor(e){var t;super(),this._suppressPersist=!1,this._backoff=!1,this._authorize=null==(t=e.authorize)||t,this._transport=e.transport,this._suppressPersist=!!e.suppressPersist,this._endpoint=this._authorize?"@webgate/gabo-receiver-service/v3/events":"@webgate/gabo-receiver-service/public/v3/events"}_uploadBatch(e,t=!1){let r=this._transport,n=t&&this._authorize?r.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(n,{method:a.Method.POST,metadata:{eventSenderEventNames:e.map(e=>e.event_name)},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:e}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,r){if(t)return Promise.resolve([]);let{body:n,headers:s,status:a}=r,l=this._authorize;if(200!==a||!n)return u.warn("Upload request failed",r),this.emit(i.UPLOAD_REQUEST_FAILED,{authorize:l,status:a}),this._backoff=!0,Promise.resolve(e);let c=[],d=[],h=[];if(n.error&&n.error.length){u.info("response errors",e,n.error);for(let t=0,r=n.error.length;t0&&this.emit(i.UPLOAD_FAILED,{authorize:l,rejected:h,will_retry:d}),f>0&&this.emit(i.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:f}),Promise.resolve(c)}upload(e,t=[]){let r=t;if(!e.length)return Promise.resolve({nack:r,backoff:this._backoff});let n=[...e];return this._uploadBatch(n.splice(0,20)).then(e=>{if(r=[...r,...e],this._backoff)r=[...r,...n];else if(n.length)return this.upload(n,r);return{nack:r,backoff:this._backoff}})}lastUpload(e){return e.length?this._uploadBatch(e.splice(0,100),!0).then(e=>0===e.length,()=>!1):Promise.resolve(!0)}shouldBackoff(){return this._backoff}}var h=r(12213),p=r(99188);!function(e){e.INVALID_PAYLOAD="INVALID_PAYLOAD",e.INVALID_NAME="INVALID_NAME",e.UNKNOWN_OWNER="UNKNOWN_OWNER",e.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(s||(s={}));let f={version:"4.0.3"};var m=r(56411);class g{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return -1===e.indexOf(t)}}class _{_addEventsToEventSenderStatsData(e,t){Object.keys(t).map(r=>{for(let n=0;n{if(g.isMissingFromArray(t.sequence_ids,e))t.sequence_ids.push(e),t.loss_stats_num_entries_per_sequence_id.push(Object.keys(r).length);else{let n=t.sequence_ids.indexOf(e);t.loss_stats_num_entries_per_sequence_id[n]+=Object.keys(r).length}Object.entries(r).map(([e,r])=>{g.pushToArrIfMissing(t.event_names,e);let n=t.event_names.indexOf(e);t.loss_stats_event_name_index.push(n);let i=Object.keys(r);for(let e=0;ee&&t).catch(()=>!1)}initializeContexts(e){if(!(null==e?void 0:e.length))return;let t=this._instanceContexts;for(let r of e){let e=r();(null==e?void 0:e.name)&&(t[e.name]=e.data)}}initFlush(e){let t=this._uploaders[e].shouldBackoff(),{ceiling:r,maxDuration:n,baseTime:i}=this._backoffTimeSettings;return h.n.init(()=>this.upload(e),{curve:"exponential",backoffInitial:t,retryPredicate:()=>this._transport.isOnline(),ceiling:r,baseTime:t?r:i,maxDuration:n})}waitForConnection(){return new Promise(e=>{this._transport.once(a.TransportEvent.CONNECTION_ONLINE,()=>e())})}upload(e){return this._uploaders[e].upload(this._events[e].splice(0)).then(t=>{if(t.nack.length)throw this._events[e]=t.nack.concat(this._events[e]),Error("Backoff requested");return t})}sendToGabito(e){let t=e?"authorized":"unauthorized";this._transport.isOnline()||this._ongoingUploads[t]||(this._ongoingUploads[t]=this.waitForConnection());let r=this._ongoingUploads[t];if(r)return this._uploadWaiting[t]||(this._uploadWaiting[t]=!0,this._ongoingUploads[t]=r.then(()=>(this._ongoingUploads[t]=!1,this._uploadWaiting[t]=!1,this.sendToGabito(e)))),this._ongoingUploads[t];if(!this._events[t].length)return Promise.resolve({nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()});if(!this._essLastSent||Date.now()-this._essLastSent.getTime()>3e5){let e=[this.makeEvent(this._statsSender.createESSEvent(this._events,this._sequenceIdGenerator.getAllSequenceNumberCounters(),this._sequenceIdGenerator.getSequenceId()))];this._uploaders.unauthorized.upload(e).finally(()=>{this._essLastSent=new Date})}let n=this.initFlush(t).then(e=>(this._ongoingUploads[t]=!1,e)).catch(()=>(this._ongoingUploads[t]=!1,this._transport.isOnline())?(S.consoleLogger.warn(`The events in the queue could not be uploaded. Throwing away ${this._events[t].length} ${t} events.`),this._events[t]=[],{nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()}):this.sendToGabito(e));return this._ongoingUploads[t]=n,n}storeEvent(e,t){let r=this.makeEvent(t);this._events[e?"authorized":"unauthorized"].push(r)}makeEvent(e){let t=this._sequenceIdGenerator;return{sequence_id:t.getSequenceId(),sequence_number:t.nextSequenceNumber(e.name),event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:this._sdkVersion,type:"javascript"},context_time:{timestamp:Date.now()}},this._instanceContexts),{message:e.data})}}validateEventData(e,t,r){return e.name?function(e){let t=e.length,r=t;for(;r--;){let n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}(JSON.stringify(e.data))>5e3?s.PAYLOAD_SIZE_LIMIT_EXCEEDED:t&&r&&!r()?s.UNKNOWN_OWNER:null:s.INVALID_NAME}checkIsEventAuthorized(e){return!e.endsWith("NonAuth")}flush(e=!0){return this.sendToGabito(e).then(()=>void 0).catch(()=>void 0)}flushAll(){return Promise.all([this.sendToGabito(!0),this.sendToGabito(!1)]).then(()=>void 0).catch(()=>void 0)}finalFlush(){return this.uploadFlush()}log(e,t={}){this.send(e,t)}send(e,{flush:t=!0}={}){let r=this.checkIsEventAuthorized(e.name),n=this.validateEventData(e,r,this._ownerProvider);if(n===s.UNKNOWN_OWNER&&(S.consoleLogger.warn(`Trying to send an authenticated event without a current owner: ${e.name}`),n=null),n){let t=(0,p.R)({event_name:e.name,reject_reason:n});return this.storeEvent(!1,t),Promise.reject(TypeError(`The event is invalid and has been rejected for reason: ${n}`))}return(this.storeEvent(r,e),t)?this.flush(r):Promise.resolve()}hasContext(...e){return e.every(e=>!!this._instanceContexts[e])}}function T(e){let t={suppressPersist:e.suppressPersist,transport:e.transport};return new S(Object.assign(Object.assign({},e),{uploaders:{authorized:new d(t),unauthorized:new d(Object.assign(Object.assign({},t),{authorize:!1}))}}))}S.consoleLogger=l.m.forTag("EventSender")},37426:(e,t,r)=>{"use strict";r.d(t,{F3:()=>i,N8:()=>o,TJ:()=>s,a3:()=>n});let n=0,i=1,s=2;function o(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"unknown_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}},40373:(e,t,r)=>{"use strict";r.d(t,{BD:()=>a,Kg:()=>c,L2:()=>v,NF:()=>u,Qd:()=>h,Qg:()=>g,T2:()=>o,W6:()=>l,bJ:()=>i,gd:()=>m,ks:()=>b,mE:()=>_,sO:()=>d,tH:()=>y,vq:()=>f,xH:()=>p});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return y(e,Error)}}function s(e,t){return n.call(e)===`[object ${t}]`}function o(e){return s(e,"ErrorEvent")}function a(e){return s(e,"DOMError")}function l(e){return s(e,"DOMException")}function c(e){return s(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return s(e,"Object")}function p(e){return"undefined"!=typeof Event&&y(e,Event)}function f(e){return"undefined"!=typeof Element&&y(e,Element)}function m(e){return s(e,"RegExp")}function g(e){return!!(e?.then&&"function"==typeof e.then)}function _(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e,t){try{return e instanceof t}catch{return!1}}function v(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function b(e){return"undefined"!=typeof Request&&y(e,Request)}},44806:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>c,J0:()=>m,J5:()=>y,Ol:()=>p,SA:()=>f,bX:()=>h,o:()=>d,r:()=>u});var n=r(48709),i=r(47491),s=r(5797),o=r(94819),a=r(60155),l=r(8164);function c(e,t){return(0,n.o5)().captureException(e,(0,a.li)(t))}function u(e,t){return(0,n.o5)().captureEvent(e,t)}function d(e,t){(0,n.rm)().setContext(e,t)}async function h(e){let t=(0,n.KU)();return t?t.flush(e):(i.T&&o.Yz.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function p(){let e=(0,n.KU)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function f(e){(0,n.rm)().addEventProcessor(e)}function m(e){let t=(0,n.rm)(),r=(0,n.o5)(),{userAgent:i}=l.O.navigator||{},o=(0,s.fj)({user:r.getUser()||t.getUser(),...i&&{userAgent:i},...e}),a=t.getSession();return a?.status==="ok"&&(0,s.qO)(a,{status:"exited"}),g(),t.setSession(o),o}function g(){let e=(0,n.rm)(),t=(0,n.o5)().getSession()||e.getSession();t&&(0,s.Vu)(t),_(),e.setSession()}function _(){let e=(0,n.rm)(),t=(0,n.KU)(),r=e.getSession();r&&t&&t.captureSession(r)}function y(e=!1){if(e)return void g();_()}},45564:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,s=l(e),o=s[0],a=s[1],c=new i((o+a)*3/4-a),u=0,d=a>0?o-4:o;for(r=0;r>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}(e,o,o+16383>a?a:o+16383));return 1===i?s.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&s.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},47016:(e,t,r)=>{"use strict";let n,i;r.d(t,{k3:()=>l,lu:()=>o,zf:()=>a});var s=r(8164);function o(){return Date.now()/1e3}function a(){return(n??(n=function(){let{performance:e}=s.O;if(!e?.now||!e.timeOrigin)return o;let t=e.timeOrigin;return()=>(t+e.now())/1e3}()))()}function l(){return i||(i=function(){let{performance:e}=s.O;if(!e?.now)return[void 0,"none"];let t=e.now(),r=Date.now(),n=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,i=e.timing?.navigationStart,o="number"==typeof i?Math.abs(i+t-r):36e5;if(n<36e5||o<36e5)if(n<=o)return[e.timeOrigin,"timeOrigin"];else return[i,"navigationStart"];return[r,"dateNow"]}()),i[0]}},47491:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n=!1},48709:(e,t,r)=>{"use strict";r.d(t,{KU:()=>d,m6:()=>c,o5:()=>a,rm:()=>l,v4:()=>u,vn:()=>h});var n=r(28836),i=r(4293),s=r(50457),o=r(57604);function a(){let e=(0,i.EU)();return(0,n.h)(e).getCurrentScope()}function l(){let e=(0,i.EU)();return(0,n.h)(e).getIsolationScope()}function c(){return(0,i.BY)("globalScope",()=>new s.H)}function u(...e){let t=(0,i.EU)(),r=(0,n.h)(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function d(){return a().getClient()}function h(e){let{traceId:t,parentSpanId:r,propagationSpanId:n}=e.getPropagationContext(),i={trace_id:t,span_id:n||(0,o.Z)()};return r&&(i.parent_span_id=r),i}},48862:(e,t,r)=>{"use strict";r.d(t,{GS:()=>l,HF:()=>m,W4:()=>h,my:()=>c,pO:()=>u,sp:()=>d});var n=r(47491),i=r(71655),s=r(94819),o=r(40373),a=r(16852);function l(e,t,r){if(!(t in e))return;let i=e[t];if("function"!=typeof i)return;let o=r(i);"function"==typeof o&&u(o,i);try{e[t]=o}catch{n.T&&s.Yz.log(`Failed to replace method "${t}" in object`,e)}}function c(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.T&&s.Yz.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,c(e,"__sentry_original__",t)}catch{}}function d(e){return e.__sentry_original__}function h(e){if((0,o.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if(!(0,o.xH)(e))return e;{let t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,o.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function p(e){try{return(0,o.vq)(e)?(0,i.Hd)(e):Object.prototype.toString.call(e)}catch{return""}}function f(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function m(e,t=40){let r=Object.keys(h(e));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,a.xv)(n,t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t)){if(e===r.length)return n;return(0,a.xv)(n,t)}}return""}},49798:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCorrelationIdContext=void 0,t.createCorrelationIdContext=function(e){return function(){return{name:"context_correlation_id",data:{value:e}}}}},50001:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},50334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.silly=t.verbose=t.debug=t.info=t.warn=t.error=t.log=t.logger=void 0,t.logger={log:(...e)=>console.log(...e),error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e),info:(...e)=>console.info(...e),debug:(...e)=>console.debug(...e),verbose:(...e)=>console.log("verbose:",...e),silly:(...e)=>console.log("silly:",...e)},t.default=t.logger,t.log=t.logger.log.bind(t.logger),t.error=t.logger.error.bind(t.logger),t.warn=t.logger.warn.bind(t.logger),t.info=t.logger.info.bind(t.logger),t.debug=t.logger.debug.bind(t.logger),t.verbose=t.logger.verbose.bind(t.logger),t.silly=t.logger.silly.bind(t.logger)},50457:(e,t,r)=>{"use strict";r.d(t,{H:()=>p});var n=r(47491),i=r(5797),s=r(94819),o=r(40373),a=r(19071),l=r(55125),c=r(57604),u=r(1108),d=r(16852),h=r(47016);class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.e)(),sampleRand:Math.random()}}clone(){let e=new p;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,u.r)(e,(0,u.f)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,extra:n,user:i,contexts:s,level:a,fingerprint:l=[],propagationContext:c}=(t instanceof p?t.getScopeData():(0,o.Qd)(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...n},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),l.length&&(this._fingerprint=l),c&&(this._propagationContext=c),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._session=void 0,(0,u.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.e)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,h.lu)(),...e,message:e.message?(0,d.xv)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,u.f)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,a.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||(0,l.eJ)();if(!this._client)return n.T&&s.Yz.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||(0,l.eJ)();if(!this._client)return n.T&&s.Yz.warn("No client configured on scope - will not capture message!"),i;let o=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:i},this),i}captureEvent(e,t){let r=t?.event_id||(0,l.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):n.T&&s.Yz.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},54239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOsContext=void 0,t.createOsContext=function(e){return function(){return{name:"context_os",data:e}}}},54745:(e,t,r)=>{"use strict";r.d(t,{DU:()=>eA,AH:()=>ev});var n=r(9456),i=r(72223),s=r(35),o=r.n(s);let a=function(e){function t(e,t,n){var i=t.trim().split(f);t=i;var s=i.length,o=e.length;switch(o){case 0:case 1:var a=0;for(e=0===o?"":e[0]+" ";an&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<+r&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102a.charCodeAt(0)&&(a=a.trim()),a=[a],0p)&&($=(z=z.replace(" ",":")).length),0e.charCodeAt(2)}),h=r(13027),p=r.n(h),f=r(98402);function m(){return(m=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var R=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&k(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=n;s=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,s=n;s=A&&(A=t+1),I.set(e,t),N.set(t,e)},D="style["+T+'][data-styled-version="5.3.11"]',M=RegExp("^"+T+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,r){for(var n,i=r.split(","),s=0,o=i.length;s=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(T))return n}}(r),s=void 0!==i?i.nextSibling:null;n.setAttribute(T,"active"),n.setAttribute("data-styled-version","5.3.11");var o=j();return o&&n.setAttribute("nonce",o),r.insertBefore(n,s),n},B=function(){function e(e){var t=this.element=$(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")}),n+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),G=/(a)(d)/gi,J=function(e){return String.fromCharCode(e+(e>25?39:97))};function V(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=J(t%52)+r;return(J(t%52)+r).replace(G,"$1-$2")}var Y=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},K=function(e){return Y(5381,e)};function X(e){for(var t=0;t>>0);if(!t.hasNameForId(n,o)){var a=r(s,"."+o,void 0,n);t.insertRules(n,o,a)}i.push(o),this.staticRulesId=o}else{for(var l=this.rules.length,c=Y(this.baseHash,r.hash),u="",d=0;d>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,et=[":","[",".","#"];function er(e){var t,r,n,i,s=void 0===e?v:e,o=s.options,l=void 0===o?v:o,c=s.plugins,u=void 0===c?y:c,d=new a(l),h=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,s,o,a,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),f=function(e,n,s){return 0===n&&-1!==et.indexOf(s[r.length])||s.match(i)?e:"."+t};function m(e,s,o,a){void 0===a&&(a="&");var l=e.replace(ee,""),c=s&&o?o+" "+s+" { "+l+" }":l;return t=a,n=RegExp("\\"+(r=s)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),d(o||!s?"":s,c)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,f))},p,function(e){if(-2===e){var t=h;return h=[],t}}])),m.hash=u.length?u.reduce(function(e,t){return t.name||k(15),Y(e,t.name)},5381).toString():"",m}var en=i.createContext(),ei=(en.Consumer,i.createContext()),es=(ei.Consumer,new W),eo=er();function ea(){return(0,i.useContext)(en)||es}function el(){return(0,i.useContext)(ei)||eo}function ec(e){var t=(0,i.useState)(e.stylisPlugins),r=t[0],n=t[1],s=ea(),a=(0,i.useMemo)(function(){var t=s;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,i.useMemo)(function(){return er({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,i.useEffect)(function(){o()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),i.createElement(en.Provider,{value:a},i.createElement(ei.Provider,{value:l},e.children))}var eu=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=eo);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return k(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=eo),this.name+e.hash},e}(),ed=/([A-Z])/,eh=/([A-Z])/g,ep=/^ms-/,ef=function(e){return"-"+e.toLowerCase()};function em(e){return ed.test(e)?e.replace(eh,ef).replace(ep,"-ms-"):e}var eg=function(e){return null==e||!1===e||""===e};function e_(e,t,r,n){if(Array.isArray(e)){for(var i,s=[],o=0,a=e.length;o1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,eS=/(^-|-$)/g;function eT(e){return e.replace(eE,"-").replace(eS,"")}var ew=function(e){return V(K(e)>>>0)};function eO(e){return"string"==typeof e}var eC=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ek=i.createContext();ek.Consumer;var eR={},eI=function(e){return function e(t,r,i){if(void 0===i&&(i=v),!(0,n.isValidElementType)(r))return k(1,String(r));var s=function(){return t(r,i,ev.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,m({},i,{},n))},s.attrs=function(n){return e(t,r,m({},i,{attrs:Array.prototype.concat(i.attrs,n).filter(Boolean)}))},s}(function e(t,r,n){var s=S(t),o=!eO(t),a=r.attrs,l=void 0===a?y:a,c=r.componentId,u=void 0===c?(w=r.displayName,O=r.parentComponentId,eR[C="string"!=typeof w?"sc":eT(w)]=(eR[C]||0)+1,k=C+"-"+ew("5.3.11"+C+eR[C]),O?O+"-"+k:k):c,h=r.displayName,f=void 0===h?eO(t)?"styled."+t:"Styled("+E(t)+")":h,g=r.displayName&&r.componentId?eT(r.displayName)+"-"+r.componentId:r.componentId||u,_=s&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,T=r.shouldForwardProp;s&&t.shouldForwardProp&&(T=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var w,O,C,k,R,I=new Z(n,g,s?t.componentStyle:void 0),N=I.isStatic&&0===l.length,A=function(e,t){return function(e,t,r,n){var s,o,a,l,c,u=e.attrs,h=e.componentStyle,p=e.defaultProps,f=e.foldedComponentIds,g=e.shouldForwardProp,_=e.styledComponentId,y=e.target,E=(s=eb(t,(0,i.useContext)(ek),p)||v,void 0===s&&(s=v),o=m({},t,{theme:s}),a={},u.forEach(function(e){var t,r,n,i=e;for(t in b(i)&&(i=i(o)),i)o[t]=a[t]="className"===t?(r=a[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[o,a]),S=E[0],T=E[1],w=(l=ea(),c=el(),n?h.generateAndInjectStyles(v,l,c):h.generateAndInjectStyles(S,l,c)),O=T.$as||t.$as||T.as||t.as||y,C=eO(O),k=T!==t?m({},t,{},T):t,R={};for(var I in k)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?R.as=k[I]:(g?g(I,d,O):!C||d(I))&&(R[I]=k[I]));return t.style&&T.style!==t.style&&(R.style=m({},t.style,{},T.style)),R.className=Array.prototype.concat(f,_,w!==_?w:null,t.className,T.className).filter(Boolean).join(" "),R.ref=r,(0,i.createElement)(O,R)}(R,e,t,N)};return A.displayName=f,(R=i.forwardRef(A)).attrs=_,R.componentStyle=I,R.displayName=f,R.shouldForwardProp=T,R.foldedComponentIds=s?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):y,R.styledComponentId=g,R.target=s?t.target:t,R.withComponent=function(t){var i=r.componentId,s=function(e,t){if(null==e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(r,["componentId"]),o=i&&i+"-"+(eO(t)?t:eT(E(t)));return e(t,m({},s,{attrs:_,componentId:o}),n)},Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eA(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n"+t+""},this.getStyleTags=function(){return e.sealed?k(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return k(2);var t,r=((t={})[T]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=j();return n&&(r.nonce=n),[i.createElement("style",m({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}).prototype;e.collectStyles=function(e){return this.sealed?k(2):i.createElement(ec,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return k(3)}}()},54832:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Time=t.Timer=void 0,i(r(30884),t),i(r(50001),t),i(r(82149),t),i(r(26557),t);var s=r(55586);Object.defineProperty(t,"Timer",{enumerable:!0,get:function(){return s.Timer}});var o=r(74244);Object.defineProperty(t,"Time",{enumerable:!0,get:function(){return o.Time}})},55125:(e,t,r)=>{"use strict";r.d(t,{$X:()=>a,GR:()=>u,M6:()=>c,eJ:()=>s,gO:()=>l});var n=r(48862),i=r(8164);function s(e=function(){let e=i.O;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function o(e){return e.exception?.values?.[0]}function a(e){let{message:t,event_id:r}=e;if(t)return t;let n=o(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function l(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=r||"Error")}function c(e,t){let r=o(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function u(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,n.my)(e,"__sentry_captured__",!0)}catch{}return!1}},55586:(e,t,r)=>{"use strict";var n=r(98402);Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=t.getHighResolutionTime=t.getLowResolutionTime=t.getTime=t.getBrowserTime=t.supportsHighResolutionTime=void 0;let i=r(74244),s=r(30884);t.supportsHighResolutionTime=()=>"undefined"==typeof window&&"function"==typeof n.hrtime,t.getBrowserTime=()=>"undefined"!=typeof performance?performance.now():Date.now(),t.getTime=()=>t.supportsHighResolutionTime()?n.hrtime():t.getBrowserTime(),t.getLowResolutionTime=e=>{let r=t.getTime()-e,n=i.Time.fromMillis(r);return{nanoseconds:s.asNanoseconds(n.asNanos()),milliseconds:n.asMillis(),seconds:n.asSeconds()}},t.getHighResolutionTime=e=>{let[t,r]=n.hrtime(e),i=1e9*t+r,o=i/1e6,a=i/1e9;return{nanoseconds:s.asNanoseconds(i),milliseconds:o,seconds:a}};class o{constructor(e){this.startTime=e}static start(){return new o(t.getTime())}end(){return t.supportsHighResolutionTime()?t.getHighResolutionTime(this.startTime):t.getLowResolutionTime(this.startTime)}}t.Timer=o},56237:()=>{},56411:(e,t)=>{"use strict";t.I=void 0,t.I=function(e){return{name:"EventSenderStats2NonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},57604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s,e:()=>i});var n=r(55125);function i(){return(0,n.eJ)()}function s(){return(0,n.eJ)().substring(16)}},58780:(e,t,r)=>{"use strict";r.d(t,{S8:()=>o,cd:()=>function e(t,r=3,n=102400){let i=o(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}});var n=r(40373),i=r(48862),s=r(92076);function o(e,t=100,r=Infinity){try{return function e(t,r,o=Infinity,a=Infinity,l=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[c,u]=l;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.L2)(t))return"[VueViewModel]";if((0,n.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,s.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!d.startsWith("[object "))return d;if(r.__sentry_skip_normalization__)return r;let h="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:o;if(0===h)return d.replace("object ","");if(c(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,h-1,a,l)}catch{}let p=Array.isArray(r)?[]:{},f=0,m=(0,i.W4)(r);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(f>=a){p[t]="[MaxProperties ~]";break}let r=m[t];p[t]=e(t,r,h-1,a,l),f++}return u(r),p}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},59371:(e,t,r)=>{"use strict";r.d(t,{r:()=>i,X:()=>n});let n=function(e,t){try{if("number"==typeof e())return e}catch(e){}let r=t(),n=0;return()=>n=Math.max(n,t()-r)}(()=>performance.now(),Date.now),i=(e,t=n())=>Math.round(Math.abs(t-e))},59689:()=>{},60003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIdContext=void 0;var n=r(78464);t.createClientIdContext=function(e){var t=n.hexToBase64(e);return function(){return{name:"context_client_id",data:{value:t}}}}},60008:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.NoopReporter=void 0;class n{send(e){return r(this,void 0,void 0,function*(){})}}t.NoopReporter=n},60155:(e,t,r)=>{"use strict";let n,i,s;r.d(t,{li:()=>w,mG:()=>T});var o=r(8e3),a=r(48709),l=r(47491),c=r(94819),u=r(40373),d=r(2219),h=r(50457),p=r(90591),f=r(19071),m=r(99174);function g(e,t){let{extra:r,tags:n,user:i,contexts:s,level:o,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:h,transactionName:p,span:m}=t;_(e,"extra",r),_(e,"tags",n),_(e,"user",i),_(e,"contexts",s),e.sdkProcessingMetadata=(0,f.h)(e.sdkProcessingMetadata,a,2),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function _(e,t,r){e[t]=(0,f.h)(e[t],r,1)}var y=r(8164),v=r(55125),b=r(58780),E=r(16852),S=r(47016);function T(e,t,r,f,_,T){var w,O,C,k,R,I;let{normalizeDepth:N=3,normalizeMaxBreadth:A=1e3}=e,x={...t,event_id:t.event_id||r.event_id||(0,v.eJ)(),timestamp:t.timestamp||(0,S.lu)()},P=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||r||o.U,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&(a.url=(0,E.xv)(a.url,s))})(x,e),w=x,(O=P).length>0&&(w.sdk=w.sdk||{},w.sdk.integrations=[...w.sdk.integrations||[],...O]),_&&_.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=y.O._sentryDebugIds;if(!t)return{};let r=Object.keys(t);return s&&r.length===i?s:(i=r.length,s=r.reduce((r,i)=>{n||(n={});let s=n[i];if(s)r[s[0]]=s[1];else{let s=e(i);for(let e=s.length-1;e>=0;e--){let o=s[e],a=o?.filename,l=t[i];if(a&&l){r[a]=l,n[i]=[a,l];break}}}return r},{}))}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(x,e.stackParser);let D=function(e,t){if(!t)return e;let r=e?e.clone():new h.H;return r.update(t),r}(f,r.captureContext);r.mechanism&&(0,v.M6)(x,r.mechanism);let M=_?_.getEventProcessors():[],L=(0,a.m6)().getScopeData();T&&g(L,T.getScopeData()),D&&g(L,D.getScopeData());let U=[...r.attachments||[],...L.attachments];U.length&&(r.attachments=U);let{fingerprint:j,span:$,breadcrumbs:B,sdkProcessingMetadata:F}=L;return function(e,t){let{extra:r,tags:n,user:i,contexts:s,level:o,transactionName:a}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),o&&(e.level=o),a&&"transaction"!==e.type&&(e.transaction=a)}(x,L),$&&function(e,t){e.contexts={trace:(0,m.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,p.k1)(t),...e.sdkProcessingMetadata};let r=(0,m.zU)(t),n=(0,m.et)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(x,$),C=x,k=j,C.fingerprint=C.fingerprint?Array.isArray(C.fingerprint)?C.fingerprint:[C.fingerprint]:[],k&&(C.fingerprint=C.fingerprint.concat(k)),C.fingerprint.length||delete C.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(x,B),R=x,I=F,R.sdkProcessingMetadata={...R.sdkProcessingMetadata,...I},(function(e,t,r,n=0){try{let i=function e(t,r,n,i){let s=n[i];if(!t||!s)return t;let o=s({...t},r);return(l.T&&null===o&&c.Yz.log(`Event processor "${s.id||"?"}" dropped event`),(0,u.Qg)(o))?o.then(t=>e(t,r,n,i+1)):e(o,r,n,i+1)}(t,r,e,n);return(0,u.Qg)(i)?i:(0,d.XW)(i)}catch(e){return(0,d.xg)(e)}})([...M,...L.eventProcessors],x,r).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof N&&N>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,b.S8)(e.data,t,r)}}))},...e.user&&{user:(0,b.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,b.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,b.S8)(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,b.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,b.S8)(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,b.S8)(e.contexts.flags,3,r)),n}(e,N,A):e)}function w(e){if(e){var t;return(t=e)instanceof h.H||"function"==typeof t||Object.keys(e).some(e=>O.includes(e))?{captureContext:e}:e}}let O=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},62961:()=>{},64254:(e,t,r)=>{"use strict";var n=r(45564),i=r(33685),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var s=0|f(n,i),l=o(s),c=l.write(n,i);return c!==s&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e)){var u=e;if(I(u,Uint8Array)){var m=new Uint8Array(u);return h(m.buffer,m.byteOffset,m.byteLength)}return d(u)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var g=e.valueOf&&e.valueOf();if(null!=g&&g!==e)return a.from(g,t,r);var _=function(e){if(a.isBuffer(e)){var t=0|p(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(_)return _;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=o(t),n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return k(e).length;default:if(i)return n?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,s,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",s=t;s0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var s,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(s=r;sa&&(r=a-l),s=r;s>=0;s--){for(var d=!0,h=0;h239?4:c>223?3:c>191?2:1;if(i+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(s=e[i+1]))==128&&(l=(31&c)<<6|63&s)>127&&(u=l);break;case 3:s=e[i+1],o=e[i+2],(192&s)==128&&(192&o)==128&&(l=(15&c)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=e[i+1],o=e[i+2],a=e[i+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(l=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var f="",m=0;mr)throw RangeError("Trying to access beyond buffer length")}function E(e,t,r,n,i,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function S(e,t,r,n,i,s){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function T(e,t,r,n,s){return t*=1,r>>>=0,s||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function w(e,t,r,n,s){return t*=1,r>>>=0,s||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);in.length?a.from(s).copy(n,i):Uint8Array.prototype.set.call(n,s,i);else if(a.isBuffer(s))s.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=s.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var s=i-n,o=r-t,l=Math.min(s,o),c=this.slice(n,i),u=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,s,o,a,l,c,u,d,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=t.length;n>s/2&&(n=s/2);for(var o=0;o>8,i.push(r%256),i.push(n);return i}(e,this.length-u),this,u,d);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,s=0;++s>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,s=0;++s=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,s=this[e+--n];n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;E(this,e,t,r,i,0)}var s=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;E(this,e,t,r,i,0)}var s=r-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);E(this,e,t,r,i-1,-i)}var s=0,o=1,a=0;for(this[t]=255&e;++s>>=0,!n){var i=Math.pow(2,8*r-1);E(this,e,t,r,i-1,-i)}var s=r-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||E(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return w(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return w(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function k(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var N=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},66294:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(6291)}])},66919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIpContext=void 0,t.createClientIpContext=function(e){return function(){return{name:"context_client_ip",data:{value:e}}}}},67510:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.silly=t.verbose=t.debug=t.info=t.warn=t.error=t.log=t.logger=t.default=void 0;var i=r(50334);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(i).default}}),Object.defineProperty(t,"logger",{enumerable:!0,get:function(){return i.logger}}),Object.defineProperty(t,"log",{enumerable:!0,get:function(){return i.log}}),Object.defineProperty(t,"error",{enumerable:!0,get:function(){return i.error}}),Object.defineProperty(t,"warn",{enumerable:!0,get:function(){return i.warn}}),Object.defineProperty(t,"info",{enumerable:!0,get:function(){return i.info}}),Object.defineProperty(t,"debug",{enumerable:!0,get:function(){return i.debug}}),Object.defineProperty(t,"verbose",{enumerable:!0,get:function(){return i.verbose}}),Object.defineProperty(t,"silly",{enumerable:!0,get:function(){return i.silly}})},68053:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case s:case a:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===h},t.isFragment=function(e){return E(e)===s},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===a},t.isStrictMode=function(e){return E(e)===o},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===a||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_)},t.typeOf=E},69309:()=>{},69594:(e,t,r)=>{e.exports=r(78848)},69815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSemanticMetricClient=void 0,t.createSemanticMetricClient=function(e){return{name:"SemanticMetricClient",environments:["browser","device"],data:e}}},71655:(e,t,r)=>{"use strict";r.d(t,{$N:()=>o,Hd:()=>s,xE:()=>a});var n=r(40373);let i=r(8164).O;function s(e,t={}){if(!e)return"";try{let r,s=e,o=[],a=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;s&&a++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let s=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(s?.length)s.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&(0,n.Kg)(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(s,c),"html"!==r&&(!(a>1)||!(l+3*o.length+r.length>=u)));)o.push(r),l+=r.length,s=s.parentNode;return o.reverse().join(" > ")}catch{return""}}function o(){try{return i.document.location.href}catch{return""}}function a(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},74244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;class r{constructor(e=0){this.nanos=e}static fromNanos(e){return new r(e)}static fromMicros(e){return new r(1e3*e)}static fromMillis(e){return new r(1e6*e)}static fromSeconds(e){return new r(1e9*e)}static from(e){return new r(e.asNanos())}asSeconds(){return this.nanos/1e9}asMillis(){return this.nanos/1e6}asMicros(){return this.nanos/1e3}asNanos(){return Math.round(this.nanos)}}t.Time=r,r.ZERO=new r(0)},76589:(e,t,r)=>{"use strict";r.d(t,{L:()=>l,d:()=>a});var n=r(48862),i=r(8164);let s="_sentryScope",o="_sentryIsolationScope";function a(e,t,r){e&&((0,n.my)(e,o,function(e){try{let t=i.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(r)),(0,n.my)(e,s,t))}function l(e){return{scope:e[s],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[o])}}},78464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBase64=void 0;var n=r(26915);t.hexToBase64=function(e){if(!e||e.length%2!=0)throw TypeError("Invalid hexString value.");var t=e.split("").reduce(function(e,t,r){return r%2==0?e.push(t):e[e.length-1]=""+e[e.length-1]+t,e},[]),r=String.fromCharCode.apply(null,t.map(function(e){var t=parseInt(e,16);if(isNaN(t))throw TypeError("Invalid hexString value.");return t}));return n.Base64.encode(r)}},79816:()=>{!function(){"use strict";try{if("localStorage"in window&&null!==window.localStorage){let e="swxTest_".concat(Math.round(1e7*Math.random()));window.localStorage.setItem(e,"test"),window.localStorage.removeItem(e)}}catch(t){let e={};Object.defineProperty(window,"localStorage",{setItem:(t,r)=>(e[t]=r,e[t]),getItem:t=>t in e?e[t]:void 0,removeItem:t=>{delete e[t]},clear:()=>e={}})}}()},81063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEBAPI_URL=t.INTERNAL_WEBGATE_URL=void 0,t.INTERNAL_WEBGATE_URL="https://wgint.spotify.net",t.WEBAPI_URL="https://api.spotify.com"},82149:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventSenderReporter=void 0;let s=r(36616),o=r(69815),a=r(26588),l=i(r(67510)),c=r(84822),u=r(81063);function d(e){return t=>e.isAuthenticated()?o.createSemanticMetricClient(t):a.createSemanticMetricClientNonAuth(t)}class h{constructor(e,t,r="browser",n){this.eventSender=e,this.createEvent=t,this.environment=r,this.transport=n}static create(e){let t="getToken"in e?e.getToken:null,r="ownerProvider"in e?e.ownerProvider:null,i=e.context?[...e.context]:void 0,o=e.environment,a=c.createBaseTransport({providers:{endpoints:(()=>{let t=c.createXResolveProvider();return r=>n(this,void 0,void 0,function*(){return Object.assign(Object.assign({},(yield t(r))),e.internal&&{webgate:u.INTERNAL_WEBGATE_URL})})})(),token:()=>new Promise(e=>{if(!t)return void e("");t((t,r)=>{if(void 0!==r)return void e([t,r]);e(t)})})}});return t&&(a.on(c.TransportEvent.CONNECTED,()=>{a.authenticate().catch(e=>{var t,r;l.default.debug("authentication fail.",null!=(r=null!=(t=null==e?void 0:e.message)?t:null==e?void 0:e.code)?r:"")})}),a.on(c.TransportEvent.AUTHENTICATED,()=>{l.default.debug("created authenticated browser transport")}),a.on(c.TransportEvent.TOKEN_PROVIDER_ERROR,()=>{l.default.debug("the token provided isn't working.")})),a.connect(),new h(s.createEventSender(Object.assign({transport:a,context:i},r&&{ownerProvider:r})),d(a),o,a)}static createWithCustomTransport(e){let t="ownerProvider"in e?e.ownerProvider:null,r=e.context?[...e.context]:void 0;return new h(s.createEventSender(Object.assign({transport:e.transport,context:r},t&&{ownerProvider:t})),d(e.transport),e.environment,e.transport)}send(e){return n(this,void 0,void 0,function*(){for(let t of e){let e=Object.assign({},t);e.tags=Object.assign({},e.tags),e.tags.environment&&l.default.error("`tags.environment` must not be set. It is a reserved tag and will be overwritten."),e.tags.environment=this.environment;let r=this.createEvent(Object.assign({},e));this.eventSender.send(r,{flush:!1})}return this.eventSender.flush(this.transport.isAuthenticated())})}}t.EventSenderReporter=h},82643:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>M,__assign:()=>s,__asyncDelegator:()=>O,__asyncGenerator:()=>w,__asyncValues:()=>C,__await:()=>T,__awaiter:()=>f,__classPrivateFieldGet:()=>x,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>P,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>U,__esDecorate:()=>c,__exportStar:()=>_,__extends:()=>i,__generator:()=>m,__importDefault:()=>A,__importStar:()=>N,__makeTemplateObject:()=>k,__metadata:()=>p,__param:()=>l,__propKey:()=>d,__read:()=>v,__rest:()=>o,__rewriteRelativeImportExtension:()=>j,__runInitializers:()=>u,__setFunctionName:()=>h,__spread:()=>b,__spreadArray:()=>S,__spreadArrays:()=>E,__values:()=>y,default:()=>$});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),h=!1,p=r.length-1;p>=0;p--){var f={};for(var m in n)f[m]="access"===m?{}:n[m];for(var m in n.access)f.access[m]=n.access[m];f.addInitializer=function(e){if(h)throw TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var g=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[c],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw TypeError("Object expected");(a=o(g.get))&&(d.get=a),(a=o(g.set))&&(d.set=a),(a=o(g.init))&&i.unshift(a)}else(a=o(g))&&("field"===l?i.unshift(a):d[c]=a)}u&&Object.defineProperty(u,n.name,d),h=!0}function u(e,t,r){for(var n=arguments.length>2,i=0;i0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function b(){for(var e=[],t=0;t1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{var r;(r=i[e](t)).value instanceof T?Promise.resolve(r.value.v).then(l,c):u(s[0][2],r)}catch(e){u(s[0][3],e)}}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:T(e[n](t)),done:!1}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var s,o,a;s=n,o=i,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){s({value:e,done:a})},o)})}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var R=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},I=function(e){return(I=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function N(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=I(e),n=0;n{"use strict";r.r(t),r.d(t,{ConnectionObserver:()=>_,DEALER_PLUGIN_NAME:()=>U,DealerErrors:()=>a,DisconnectionReason:()=>i,Method:()=>m.I,PluginEvent:()=>n,REQUEST_TRANSFORMER_PLUGIN_NAME:()=>ek,TransportErrors:()=>p.L,TransportEvent:()=>f.J,createAbortControllerLike:()=>k,createAbortSignalWithTimeout:()=>R,createBaseTransport:()=>eN,createSpotifyComEndpointsProvider:()=>ew,createSpotifyComProviders:()=>eC,createSpotifyComTokenProvider:()=>eO,createTransport:()=>eA,createXResolveProvider:()=>eT.Q,dealerCreator:()=>$,requestTransformerCreator:()=>eI});var n,i,s,o,a,l,c,u,d={};r.r(d),r.d(d,{isSupported:()=>V,request:()=>Y});var h={};r.r(h),r.d(h,{request:()=>eS});var p=r(20268),f=r(89429),m=r(23454);!function(e){e.TRANSPORT_AUTHENTICATE="transport_authenticate",e.TRANSPORT_AUTHENTICATE_FAILED="transport_authenticate_failed",e.TRANSPORT_CONNECT="transport_connect",e.TRANSPORT_DISCONNECT="transport_disconnect",e.TRANSPORT_ENDPOINTS_RESOLVED="transport_endpoints_resolved",e.TRANSPORT_BEFORE_PROCESS_REQUEST="transport_before_process_request",e.TRANSPORT_BEFORE_SEND_REQUEST="transport_before_send_request",e.TRANSPORT_BEFORE_RETURN_RESPONSE="transport_before_return_response",e.TRANSPORT_REQUEST="transport_request",e.PLUGIN_CONNECTION_INFO="plugin_connection_info",e.PLUGIN_DISCONNECTED="plugin_disconnected",e.PLUGIN_MESSAGE="plugin_message",e.PLUGIN_REQUEST="plugin_request",e.PLUGIN_ERROR="plugin_error"}(n||(n={})),function(e){e.RECONNECTION_FAILED="reconnection_failed",e.EXPLICIT="explicit",e.LOG_OUT="log_out",e.WINDOW_BEFORE_UNLOAD="window_before_unload"}(i||(i={}));var g=r(8159);class _ extends g.bk{}class y extends _{constructor(e){super();let t="undefined"!=typeof window,r=e&&e.notifyBeforeUnload;this._navigator=t&&window.navigator||null,t&&"function"==typeof window.addEventListener&&(window.addEventListener("online",this.emitSync.bind(this,f.J.CONNECTION_ONLINE,null)),window.addEventListener("offline",this.emitSync.bind(this,f.J.CONNECTION_OFFLINE,null)),r&&window.addEventListener(f.J.WINDOW_BEFORE_UNLOAD,this.emitSync.bind(this,f.J.WINDOW_BEFORE_UNLOAD,null)))}static create(e){return new y(e)}isOnline(){let e=this._navigator;return!e||!("onLine"in e)||e.onLine}}class v extends Error{constructor(e,t,r,n){super(e),this.name="RequestError",this.message=e,this.code=t,this.status=r||0,this.url=n}}class b extends v{constructor(e,t){super("Request aborted by signal.",p.L.HTTP_REQUEST_ABORTED,0,e),this.name="RequestAbortedError",this.reason=t}}class E extends v{constructor(e,t){super("Request aborted by timeout.",p.L.HTTP_REQUEST_TIMEOUT,0,e),this.name="RequestTimeoutError",this.reason=t}}let S="Signal is aborted without reason";function T(e,t){let r=Error(t);return r.name=e,r}class w extends g.bk{constructor(){super(),this._aborted=!1,this._reason=void 0,this.onabort=null,this.on("abort",()=>{var e;return null==(e=this.onabort)?void 0:e.call(this)})}static abort(e){let t=new w;return t._aborted=!0,t._reason=T("AbortError",null!=e?e:S),t}static signalAbort(e,t){"_aborted"in e&&!e._aborted&&(e._aborted=!0,"_reason"in e&&(e._reason=t||T("AbortError",S)),e.emit("abort",null))}static timeout(e){if(!isFinite(e))throw TypeError('Value of "delay" is not supported.');let t=new w;return setTimeout(()=>{w.signalAbort(t,T("TimeoutError","Signal timed out"))},e),t}get aborted(){return this._aborted}set aborted(e){}get reason(){return this._reason}addEventListener(e,t){this.addListener(e,t)}removeEventListener(e,t){this.removeListener(e,t)}dispatchEvent(){}}class O{constructor(){this.signal=new w}abort(e){let t=this.signal;w.signalAbort(t,e)}}function C(){return"undefined"!=typeof window&&"function"==typeof window.AbortController}let k=C()?()=>new AbortController:()=>new O;"undefined"!=typeof window&&"function"==typeof(null==(s=window.AbortSignal)?void 0:s.any)&&window.AbortSignal.any;let R="undefined"!=typeof window&&"function"==typeof(null==(o=window.AbortSignal)?void 0:o.timeout)?window.AbortSignal.timeout:w.timeout;function I(e,t){var r;return(null==(r=t.reason)?void 0:r.name)==="TimeoutError"?new E(e,t.reason):new b(e,t.reason)}!function(e){e.DEALER_CONNECTION_ERROR="DEALER_CONNECTION_ERROR",e.DEALER_AUTHENTICATION_FAILED="DEALER_AUTHENTICATION_FAILED",e.DEALER_ERROR="DEALER_ERROR",e.DEALER_DISCONNECTED_BEFORE_EVENTS="DEALER_DISCONNECTED_BEFORE_EVENTS",e.ENDPOINT_NOT_DEFINED="ENDPOINT_NOT_DEFINED",e.INVALID_ENDPOINT="INVALID_ENDPOINT"}(a||(a={}));class N extends Error{constructor(e=a.DEALER_ERROR,t,r={}){super(t),this.name="DealerError",this.message=t,this.code=e,this.raw=r,this.wsCode=r.code||null,this.wsReason=r.reason||null}}!function(e){e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.CONNECTED="connected",e.CONNECTION_ID="connection_id",e.ERROR="error",e.DISCONNECTED="disconnected",e.MESSAGE="message",e.REQUEST="request"}(l||(l={}));var A=r(17211);!function(e){e[e.CLOSE=4e3]="CLOSE",e[e.TIMEOUT=4001]="TIMEOUT"}(c||(c={}));var x=r(64254).Buffer;let P=function(){},D=/hm:\/\/pusher\/(?:[^]+)?\/connections\/([^]+)/,M="undefined"!=typeof window;class L extends g.bk{constructor(e){super(),this._socket=null,this._lastPingDeferred=null,this._waitingForConnectionId=!0,this._connectionId=null,this._connectionURI=null,this._heartbeatToken=0,this._heartbeatTimeoutToken=0,this._connected=!1,this._endpoint=null,this._closeBeforeEventsRejector=null,this._WebSocket=e.WebSocket||WebSocket,this._heartbeatTimeout=e.heartbeatTimeout||1e4}static create(e){return new L(e)}_startHeartbeat(e){let t=()=>{this.ping().then(()=>this._onHeartbeatSuccess(),()=>this._onHeartbeatError()),this._heartbeatTimeoutToken=setTimeout(()=>this._onHeartbeatError(),this._heartbeatTimeout)};e?t():this._heartbeatToken=setTimeout(()=>t(),3e4)}_onHeartbeatError(){this._stopHeartbeat(),this._socket&&this._socket.close(c.TIMEOUT,"internal-timeout")}_onHeartbeatSuccess(){this._stopHeartbeat(),this._startHeartbeat()}_stopHeartbeat(){null!==this._heartbeatToken&&clearTimeout(this._heartbeatToken),null!==this._heartbeatTimeoutToken&&clearTimeout(this._heartbeatTimeoutToken)}_prepareConnectionId(e){var t;let r;if(!e.uri)return!1;let[,n]=null!=(t=e.uri.match(D))?t:[];return!!n&&(r=e.headers&&e.headers["Spotify-Connection-Id"]?e.headers["Spotify-Connection-Id"]:decodeURIComponent(n),this._connectionId=r,this._connectionURI=e.uri,this.emit(l.CONNECTION_ID,{id:r,uri:e.uri}),!0)}_reply(e,t){if(!e)throw TypeError("Invalid key.");let r=this._socket;r&&1===r.readyState&&r.send(JSON.stringify({type:"reply",key:e,payload:t}))}_parseMessage(e){let t;try{t=JSON.parse(e)}catch(e){return}if("message"===t.type)this._waitingForConnectionId&&this._prepareConnectionId(t)?(this._waitingForConnectionId=!1,this._startHeartbeat(!0)):this.emit(l.MESSAGE,{message:t});else if("pong"===t.type&&this._lastPingDeferred)this._lastPingDeferred.resolve(!0),this._lastPingDeferred=null;else if("request"===t.type){let e=t.key;e&&this.emit(l.REQUEST,{request:t,reply:this._reply.bind(this,e)})}}_handleOpen(e){e.resolve(!0),this._connected=!0,this.emit(l.AUTHENTICATED,null)}_handleMessage(e){let t=this,r=e.data;if(M&&window.Blob&&r instanceof window.Blob){let e=new FileReader;e.onloadend=function(){let e;if(this.result){if(this.result instanceof ArrayBuffer){e="";let t=new Uint8Array(this.result);for(let r=0;r{this.once(l.CONNECTION_ID,t=>{e(t.data.id)})}):Promise.resolve(this._connectionId)}getConnectionInfo(){return this._waitingForConnectionId?new Promise(e=>{this.once(l.CONNECTION_ID,t=>{e({id:t.data.id,uri:t.data.uri})})}):Promise.resolve({id:this._connectionId,uri:this._connectionURI})}hasConnectionId(){return!this._waitingForConnectionId&&!!this._connectionId}}let U="dealer";class j{constructor(e){this.name=U,this._dealer=new L(e),this.api={hasConnectionInfo:()=>this._dealer.hasConnectionId(),getConnectionInfo:()=>this._dealer.getConnectionInfo().then(e=>Object.assign({plugin:this.name},e))},this._onDealerConnectionId=this._onDealerConnectionId.bind(this),this._onDealerDisconnected=this._onDealerDisconnected.bind(this),this._onDealerMessage=this._onDealerMessage.bind(this),this._onDealerRequest=this._onDealerRequest.bind(this),this._onTransportConnect=this._onTransportConnect.bind(this),this._onTransportAuthenticate=this._onTransportAuthenticate.bind(this),this._onTransportDisconnect=this._onTransportDisconnect.bind(this)}_onDealerConnectionId(e){this._mediator&&this._mediator.emit(n.PLUGIN_CONNECTION_INFO,Object.assign({plugin:this.name},e.data))}_onDealerDisconnected(e){if(!this._mediator)return;let t=e.data;this._mediator.emit(n.PLUGIN_DISCONNECTED,{plugin:this.name,code:t.wsCode,reason:t.reason})}_onDealerMessage(e){this._mediator&&this._mediator.emit(n.PLUGIN_MESSAGE,Object.assign({plugin:this.name},e.data))}_onDealerRequest(e){this._mediator&&this._mediator.emit(n.PLUGIN_REQUEST,Object.assign({plugin:this.name},e.data))}_onTransportConnect(e){let t=e.data.endpoints,r=e.data.awaitPromise;return t.dealer?/^wss:/.test(t.dealer)?void r(this._dealer.connect(t.dealer)):void r(Promise.reject(new N(a.INVALID_ENDPOINT,"Dealer endpoint needs to be wss://"))):void r(Promise.reject(new N(a.ENDPOINT_NOT_DEFINED,'No "dealer" endpoint defined.')))}_onTransportAuthenticate(e){let t=e.data;t.awaitPromise(this._dealer.authenticate(t.token))}_onTransportDisconnect(){this._dealer.disconnect()}_onDealerError(e){var t;null==(t=this._mediator)||t.emit(n.PLUGIN_ERROR,{plugin:this.name,error:e.data.error})}attach(e,t){this._mediator=t,t.addListeners({[n.TRANSPORT_CONNECT]:this._onTransportConnect,[n.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[n.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.addListeners({[l.DISCONNECTED]:this._onDealerDisconnected,[l.CONNECTION_ID]:this._onDealerConnectionId,[l.MESSAGE]:this._onDealerMessage,[l.REQUEST]:this._onDealerRequest,[l.ERROR]:this._onDealerError})}detach(e,t){this._mediator=void 0,t.removeListeners({[n.TRANSPORT_CONNECT]:this._onTransportConnect,[n.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[n.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.removeListeners({[l.DISCONNECTED]:this._onDealerDisconnected,[l.CONNECTION_ID]:this._onDealerConnectionId,[l.MESSAGE]:this._onDealerMessage,[l.REQUEST]:this._onDealerRequest,[l.ERROR]:this._onDealerError})}}function $(e,t){return new j(t)}var B=r(13139),F=r(59371);let z={POST:!0,PUT:!0,PATCH:!0,DELETE:!0};var q=r(10427);class H{constructor(e){this.get=e.get.bind(e),this.has=e.has.bind(e)}get(e){return null}has(e){return!1}}class W{constructor(e,t=0){this.url="",this.status=0,this.headers=null,this.body=null,this.offline=!1,this.timing=null,this.metadata=null,this.retries={count:0},this.url=e,this.status=t,this.ok=t>=200&&t<=299}getStatusFamily(){return 0|this.status/100}}let G=B.m.forTag("transport.http.fetch"),J={json:!0,text:!0,arraybuffer:!0,blob:!0};function V(){return"function"==typeof fetch}function Y(e){if(!V())return Promise.reject(TypeError("Fetch is not supported"));let t=e.options.signal;if(null==t?void 0:t.aborted)return Promise.reject(I(e.url,t));if(!e.url)return Promise.reject(TypeError("Request URL cannot be blank."));let r=e.method||"GET",n=e.url,i=null;if(r in z&&!0===z[r]&&e.payload?i=e.payload:e.payload&&(n+=`?${e.payload}`),e.options.responseType&&!(e.options.responseType in J))return Promise.reject(TypeError("Cannot set responseType: not supported in browser."));let s={mode:e.options.mode||"cors",credentials:e.options.credentials||"same-origin",redirect:e.options.redirect||"follow",signal:t,method:r};e.headers.count()&&(s.headers=e.headers.toJSON()),i&&(s.body=i);let o=(0,F.X)();return fetch(n,s).then(function(t){let r;r=e.options.ignoreResponseBody||t.status===q.s.NO_CONTENT?null:"json"===e.options.responseType?t.json().catch(function(e){return G.warn("Could not parse response as JSON:",e),null}):"arraybuffer"===e.options.responseType?t.arrayBuffer():"blob"===e.options.responseType?t.blob():t.text();let n=e.options.parseResponseHeaders||t.status>299?new H(t.headers):null;return Promise.all([t.url,t.status,n,r])}).then(function([t,r,n,i]){let s=(0,F.X)(),a=new W(t,r);return a.body=i,a.headers=n,e.options.timing&&(a.timing={completed:(0,F.r)(o,s)}),a}).catch(function(t){let r=(0,F.X)();if((null==t?void 0:t.name)==="AbortError")throw new b(n);if((null==t?void 0:t.name)==="TimeoutError")throw new E(n);let i=new W(n);return e.options.timing&&(i.timing={completed:(0,F.r)(o,r)}),i}).then(function(t){return e.options.connectionObserver&&(t.offline=!e.options.connectionObserver.isOnline()),t})}var K=r(82643);let X={baseTime:200,ceiling:0,curve:"linear",jitter:!0};class Q{constructor(e={}){this._curve=e.curve||X.curve,this._baseTime=e.baseTime||X.baseTime,this._ceiling=e.ceiling||X.ceiling,this._jitter="jitter"in e?!!e.jitter:X.jitter}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;default:t=e+1}let r=Math.min(0x100000000,Math.floor(t*this._baseTime));return this._ceiling&&(r=Math.min(r,this._ceiling)),this._jitter?function(e){let t=e/5;return Math.floor(e-t/2+Math.random()*t)}(r):r}}let Z={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class ee{constructor(e,t){this._resolver=(0,A.u)(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;let r=Object.assign(Object.assign({},Z),t),{backoffInitial:n,maxDuration:i,maxRetries:s,maxTime:o,retryPredicate:a}=r,l=(0,K.__rest)(r,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=n,this._maxDuration=i,this._maxRetries=s,this._maxTime=o,this._retryPredicate=a,this._backoffInitial=n,this._counter=new Q(l),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new ee(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)if(e&&"retryAfter"in e)this._retryAfter(e);else{let t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout(()=>this._tick(),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout(()=>this._tick(),e.retryAfter)}_success(...e){this._isDestroyed||(this._resolver.resolve(...e),this._destroy())}_shouldRetry(e,t){let r=Date.now()-this._ts+e;return this._callCountthis._success(...e)).catch(e=>this._failure(e))}getResolver(){return this._resolver.promise}start(){return this._isDestroyed?Promise.reject(Error("Backoff already consumed")):(this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout(()=>this._tick(),this._counter.getTime(0))):this._tick()),this._resolver.promise)}stop(){clearTimeout(this._tickInterval),this._destroy()}getRetryCount(){return this._callCount}}var et=r(6606);class er extends Error{constructor(e,t,r=null){super(t),this.name="TransportError",this.message=t,this.code=e,this.origin=r}}class en{constructor(e){this._headers={},this._count=0,this._setAll(e)}_setAll(e){let t=0;for(let r in e)e.hasOwnProperty(r)&&e[r]&&(this._headers[r.toLowerCase()]=e[r],t++);this._count=t}get(e){return this._headers[e.toLowerCase()]||null}has(e){return!!this._headers[e.toLowerCase()]}set(e,t){this._headers[e.toLowerCase()]=t,this._count++}delete(e){let t=e.toLowerCase();this._headers[t]&&this._count--,delete this._headers[e.toLowerCase()]}count(){return this._count}toJSON(){return Object.assign({},this._headers)}}class ei{constructor(e,t){this.url=e,this.method=(null==t?void 0:t.method)||"GET",this.headers=new en(null==t?void 0:t.headers),this.options=(null==t?void 0:t.options)||{},this.payload=null==t?void 0:t.payload,this.urlExpanded=(null==t?void 0:t.urlExpanded)||!1,this.retryOptions=(null==t?void 0:t.retryOptions)||{}}static create(e,t){return new ei(e,t)}clone(){let e=new ei(this.url);return e.method=this.method,e.headers=new en(this.headers.toJSON()),e.options=this.options,e.payload=this.payload,e.urlExpanded=this.urlExpanded,e.retryOptions=this.retryOptions,e}}!function(e){e.EVENT_ACCESS_TOKEN="access_token",e.EVENT_CONNECTION_ID="connection_id",e.EVENT_CONNECTION_OFFLINE="connection_offline",e.EVENT_CONNECTION_ONLINE="connection_online",e.EVENT_ENDPOINTS_RESOLVED="endpoints_resolved"}(u||(u={}));class es extends g.bk{constructor(e,t){super(),this.EVENT_ACCESS_TOKEN=u.EVENT_ACCESS_TOKEN,this.EVENT_CONNECTION_ID=u.EVENT_CONNECTION_ID,this.EVENT_CONNECTION_OFFLINE=u.EVENT_CONNECTION_OFFLINE,this.EVENT_CONNECTION_ONLINE=u.EVENT_CONNECTION_ONLINE,this.EVENT_ENDPOINTS_RESOLVED=u.EVENT_ENDPOINTS_RESOLVED,this.StatusCode=q.s,this.StatusFamily=et.t,this.getConnectionId=e.getConnectionId.bind(e),this.getEndpoints=e.getEndpoints.bind(e),this.getInitTime=e.getInitTime.bind(e),this.getLastToken=e.getLastToken.bind(e),this.matchMessages=e.matchMessages.bind(e),this.unmatchMessages=e.unmatchMessages.bind(e),this.handlePushRequests=e.handlePushRequests.bind(e),this.unhandlePushRequests=e.unhandlePushRequests.bind(e),this.hasPlugin=e.hasPlugin.bind(e),this.getPluginAPI=e.getPluginAPI.bind(e);let r=e.request.bind(e);(null==t?void 0:t.requestOptions)?this.request=(e,n)=>n?r(e,Object.assign(Object.assign(Object.assign({},null==t?void 0:t.requestOptions),n),{metadata:Object.assign(Object.assign({},t.requestOptions.metadata),null==n?void 0:n.metadata),retry:Object.assign(Object.assign({},t.requestOptions.retry),null==n?void 0:n.retry)})):r(e,t.requestOptions):this.request=r,this.proxyEmit(e,f.J.ACCESS_TOKEN,u.EVENT_ACCESS_TOKEN),this.proxyEmit(e,f.J.CONNECTION_OFFLINE,u.EVENT_CONNECTION_OFFLINE),this.proxyEmit(e,f.J.CONNECTION_ONLINE,u.EVENT_CONNECTION_ONLINE),this.proxyEmit(e,f.J.ENDPOINTS_RESOLVED,u.EVENT_ENDPOINTS_RESOLVED),this.onAddListener(u.EVENT_CONNECTION_ID,this._onAddConnectionIdListener.bind(this,e.on.bind(e))),this.onRemoveListener(u.EVENT_CONNECTION_ID,this._onRemoveConnectionIdListener.bind(this,e.removeListener.bind(e)))}_onAddConnectionIdListener(e,t){t.preventDefault();let r=t.data.listener,n=e=>{let t=this.createEvent(u.EVENT_CONNECTION_ID,e.data);r.call(this,t)};r.$proxy_wrapper=n,e(f.J.CONNECTION_ID,n,t.data.options)}_onRemoveConnectionIdListener(e,t){t.preventDefault();let r=t.data.listener;r.$proxy_wrapper&&e(f.J.CONNECTION_ID,r.$proxy_wrapper,t.data.options)}removeAllListeners(){return this}}class eo{constructor(){this._startTime=null,this._endTime=null}static create(){return new eo}start(){if(null!==this._startTime)throw Error("Measurement is already in progress.");this._startTime=Date.now()}end(){if(null===this._startTime||null!==this._endTime)throw Error("Measurement is not in progress.");this._endTime=Date.now()}getMetrics(){if(null===this._startTime||null===this._endTime)throw Error("Measurement is not done.");return{start_time:this._startTime,end_time:this._endTime}}}let ea=B.m.forTag("transport.transport"),el=/^(?:https?:\/\/)?@([^/]+)\//,ec=/^(ws|http)s?:\/\/.*[^/]$/,eu=/^([a-zA-Z]{3}, \d{1,2} [a-zA-Z]{3} (\d{1,2}.){3})/,ed={xhr:!0,fetch:!0},eh={CONNECTED:1,AUTHENTICATED:4};function ep(e,t){let r=`access_token=${encodeURIComponent(t)}`,[n,i]=e.split("?");if(!i)return`${n}?${r}`;let s=i.replace(/access_token=[^&]*(&|$)/,`${r}$1`);return s!==i?`${n}?${s}`:`${n}?${r}&${i}`}class ef extends g.bk{constructor(e){if(super(),this._plugins={},this._pluginMediator=new g.bk,this._connectCalled=!1,this._authenticateCalled=!1,this._endpoints=null,this._lastToken=null,this._lastTokenExpiry=0,this._refreshTokenPromise=null,this._authenticationPromise=null,this._reconnectTimeout=0,this._isReconnecting=!1,this._initTime=0,this._lastDisconnect=0,this._stateMask=0,this._quickDisconnectCount=0,this._counter=new Q({curve:"exponential",baseTime:5e3,ceiling:15e3}),this._stateAwareListeners={connected:[],authenticated:[],connection_id:[],transport_connect:[],transport_authenticate:[]},this._stateAwareOperationMetrics={authenticated:null},this._stateAwareRunners={connected:null,authenticated:null,connection_id:null,transport_connect:null,transport_authenticate:null},!e)throw TypeError("Argument `options` for Transport cannot be null.");if(!e.providers)throw TypeError("Argument `options.providers` for Transport cannot be null.");this._ownerRef="ownerRef"in e?Object(e.ownerRef):{},this._tokenProvider=e.providers.token,this._endpointsProvider=e.providers.endpoints,this._XHR=e.XHR,this._Fetch=e.Fetch,this._reconnectionRetries=e.reconnectionRetries>=0?e.reconnectionRetries:3,this._requestMode=e.requestMode in ed?e.requestMode:"xhr",this._forcePolyfillTypes=e.forcePolyfillTypes||{},this._disableAutoLogout="disableAutoLogout"in e&&!!e.disableAutoLogout,this._disconnectBeforeUnload=e.disconnectBeforeUnload||!1;let t=e.createConnectionObserver||y.create;this._connectionObserver=t({notifyBeforeUnload:this._disconnectBeforeUnload}),this.authenticate=this.authenticate.bind(this),this._authenticateWithToken=this._authenticateWithToken.bind(this),this._connectToEndpoints=this._connectToEndpoints.bind(this),this._parseProvidedToken=this._parseProvidedToken.bind(this),this._onConnected=this._onConnected.bind(this),this._onAuthenticated=this._onAuthenticated.bind(this),this._onAuthenticationFailed=this._onAuthenticationFailed.bind(this),this._init()}static create(e){return new ef(e)}_init(){this.onAddListener(f.J.CONNECTED,this._onAddListener.bind(this,"connected")),this.onAddListener(f.J.AUTHENTICATED,this._onAddListener.bind(this,"authenticated")),this.onAddListener(f.J.CONNECTION_ID,this._onAddListener.bind(this,"connection_id")),this.onRemoveListener(f.J.CONNECTED,this._onRemoveListener.bind(this,"connected")),this.onRemoveListener(f.J.AUTHENTICATED,this._onRemoveListener.bind(this,"authenticated")),this.onRemoveListener(f.J.CONNECTION_ID,this._onRemoveListener.bind(this,"connection_id")),this._pluginMediator.onAddListener(n.TRANSPORT_CONNECT,this._onAddListener.bind(this,"transport_connect")),this._pluginMediator.onAddListener(n.TRANSPORT_AUTHENTICATE,this._onAddListener.bind(this,"transport_authenticate")),this._pluginMediator.onRemoveListener(n.TRANSPORT_CONNECT,this._onRemoveListener.bind(this,"transport_connect")),this._pluginMediator.onRemoveListener(n.TRANSPORT_AUTHENTICATE,this._onRemoveListener.bind(this,"transport_authenticate")),"fetch"!==this._requestMode||this._Fetch&&this._Fetch.isSupported()||(ea.warn('Default "fetch" request mode unavailable; Fallback to "xhr"'),this._requestMode="xhr");let e=this._pluginMediator;e.addListeners({[n.PLUGIN_DISCONNECTED]:this._onPluginDisconnected.bind(this)}),this.proxyEmit(e,n.PLUGIN_CONNECTION_INFO,f.J.CONNECTION_ID),this._disableAutoLogout||this.matchMessages("client:logout",()=>this._onLogout()),this._connectionObserver.on(f.J.CONNECTION_ONLINE,()=>this._onOnline()),this._connectionObserver.on(f.J.CONNECTION_OFFLINE,()=>this._onOffline()),this._connectionObserver.on(f.J.WINDOW_BEFORE_UNLOAD,()=>this._disconnect(i.WINDOW_BEFORE_UNLOAD))}_runStateAwareQueues(e,t){let r=this._stateAwareListeners[e].splice(0);try{for(let e of r)e.call(this,t)}finally{this._stateAwareRunners[e]=null}}_connect(){return this._stateMask&eh.CONNECTED?Promise.resolve(!1):this._connectionObserver.isOnline()?this._performConnect():new Promise((e,t)=>{ea.info("Waiting to go online before connecting"),this._connectionObserver.once(f.J.CONNECTION_ONLINE,()=>{this._performConnect().then(e,t)})})}_performConnect(){return new Promise(e=>{ea.info("Resolving endpoints"),e(this._endpointsProvider(this.toPublic()))}).catch(e=>{let t=(null==e?void 0:e.code)?e:new er(p.L.TRANSPORT_ENDPOINTS_PROVIDER_ERROR,(null==e?void 0:e.message)||"Endpoints provider error",null!=e?e:null);return ea.error("Endpoints resolution failed",t),Promise.reject(t)}).then(this._connectToEndpoints).then(this._onConnected).catch(e=>{let t=e&&e.error?e.error:e;return this.emit(f.J.CONNECTION_FAILED,{error:t}),ea.error("Connection failed",t),Promise.reject(t)})}_connectToEndpoints(e){let t={webgate:"",webapi:""};for(let r in e){if(!e.hasOwnProperty(r))continue;let n=e[r];n&&(ec.test(n)&&(n+="/"),t[r]=n)}this._endpoints=t,this.emit(f.J.ENDPOINTS_RESOLVED,{endpoints:Object.assign({},t)}),ea.info("Endpoints resolved");let r=[],i=e=>{r.push(e)};return ea.info("Waiting for plugins to connect"),new Promise((e,s)=>{this._pluginMediator.emitAndWait(n.TRANSPORT_CONNECT,{endpoints:Object.assign({},t),awaitPromise:i},()=>{Promise.all(r).then(()=>e(!0),s)})})}_refreshToken(e=!1){if(this._refreshTokenPromise)return this._refreshTokenPromise;if(!e&&this._lastToken&&this._lastTokenExpiry>Date.now())return Promise.resolve(this._lastToken);this._refreshTokenPromise=new Promise(e=>{ea.info("Requesting token from provider"),e(this._tokenProvider())}).then(this._parseProvidedToken);let t=()=>{this._refreshTokenPromise=null};return this._refreshTokenPromise.then(t,t),this._refreshTokenPromise.catch(e=>{let t=(null==e?void 0:e.code)?e:new er(p.L.TRANSPORT_TOKEN_PROVIDER_ERROR,(null==e?void 0:e.message)||"Token provider error",e);return this.emit(f.J.TOKEN_PROVIDER_ERROR,{error:t}),ea.error("Token provider error",t),Promise.reject(t)})}_parseProvidedToken(e){let t,r=3540;if(Array.isArray(e)?(t=e[0],"number"==typeof(r="string"==typeof e[1]?parseInt(e[1],10):e[1])&&isFinite(r)||(r=3540)):t=e,!t)throw this._lastToken=null,this._lastTokenExpiry=0,ea.error("No token was provided"),new er(p.L.TRANSPORT_INVALID_TOKEN,`Token provider returned an invalid token, "${t}"`);if(this._lastToken===t){ea.error("TokenProvider returned same token twice.");let e=new er(p.L.TRANSPORT_STALE_TOKEN,"Token provider returned the same token twice.");throw this._lastToken=null,this._lastTokenExpiry=0,e}return this._lastToken=t,this._lastTokenExpiry=Date.now()+1e3*r,this.emit(f.J.ACCESS_TOKEN,{token:t}),ea.info("Access token set"),t}_authenticateWithToken(e){if(!this._endpoints)return Promise.resolve(!0);let t=[],r=e=>{t.push(e)};return ea.info("Waiting for plugins to authenticate"),new Promise((i,s)=>{this._pluginMediator.emitAndWait(n.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:r},()=>{Promise.all(t).then(()=>i(!0),s)})})}_authenticate(e){if(!(this._stateMask&eh.CONNECTED))return Promise.reject(new er(p.L.TRANSPORT_INVALID_STATE,"Cannot authenticate disconnected transport."));if(this._authenticationPromise)return this._authenticationPromise;let t=eo.create();return t.start(),this._authenticationPromise=ee.init(()=>(ea.info("Authenticating"),this._refreshToken(e).then(this._authenticateWithToken)),{curve:"exponential",maxRetries:2,baseTime:500,retryPredicate:e=>(ea.warn("Retrying authentication due to failure",e),!0)}).then(()=>this._onAuthenticated(t)).catch(e=>this._onAuthenticationFailed(e,t)),this._authenticationPromise}_performDisconnect(e){return this._stateMask=0,e&&(this.emit(f.J.DISCONNECTED,{reason:e}),ea.info("Disconnected")),ea.info("Waiting for plugins to disconnect."),this._pluginMediator.emitSync(n.TRANSPORT_DISCONNECT,{supressed:!e}),!0}_createReconnector(){let e=!1;return()=>(this._isReconnecting=!0,this.emit(f.J.RECONNECTING,null),ea.info("Reconnecting"),this._performDisconnect(),this._connect().then(()=>!!this._authenticateCalled&&this._authenticate(e).then(t=>(e=!1,t),t=>(e=!0,Promise.reject(t)))).then(()=>(this._isReconnecting=!1,this.emit(f.J.RECONNECTED,null),ea.info("Reconnected"),!0)))}_tryToReconnect(){if(this._isReconnecting)return void ea.warn("Reconnection triggered while already reconnecting");this._stateMask=0,ee.init(this._createReconnector(),{baseTime:1e3,maxTime:15e3,maxRetries:this._reconnectionRetries,retryPredicate:e=>(ea.warn("Retrying reconnection due to failure",e),!0)}).catch(()=>{this._stateMask=0,this._isReconnecting=!1,this.emit(f.J.DISCONNECTED,{reason:i.RECONNECTION_FAILED}),ea.info("Disconnected: reconnection failed")})}_sendRequest(e,t={},r={}){let n=t.signal;return(null==n?void 0:n.aborted)?Promise.reject(I(e,n)):this._processRequestArgs(e,t).then(t=>(null==n?void 0:n.aborted)?Promise.reject(I(e,n)):t.options.forget?this._sendFireAndForgetRequest(t):this._sendRetriedRequest(t,r))}_processRequestArgs(e,t={}){var r,n;if(null==(r=t.signal)?void 0:r.aborted)return Promise.reject(I(e,t.signal));let i=e,s=!1,o=Object.assign(Object.assign({},t),{forcePolyfill:!!(t.responseType&&t.responseType in this._forcePolyfillTypes),requestMode:null!=(n=null==t?void 0:t.requestMode)?n:this._requestMode,connectionObserver:this._connectionObserver,metadata:(null==t?void 0:t.metadata)||null});if((null==t?void 0:t.signal)&&!C()&&("fetch"===t.requestMode?ea.warn("Request with `{requestMode: fetch}` but no native AbortController."):o.requestMode="xhr"),el.test(i)){s=!0;try{i=this._tryExpandSpecialURL(i)}catch(e){return Promise.reject(e)}"authorize"in o||(o.authorize=!0,o.autoAuthorized=!0)}let a=Object.assign(Object.assign({maxRetries:2,curve:"exponential"},t.retry),{retryPredicate:e=>!(e instanceof b)});return Promise.resolve(ei.create(i,{method:t.method,headers:t.headers,payload:t.payload,options:o,urlExpanded:s,retryOptions:a}))}_tryExpandSpecialURL(e){let t=this._endpoints;return e.replace(el,(e,r)=>{if(!t.hasOwnProperty(r))throw TypeError(`Cannot replace endpoint @${r}: endpoint not defined.`);return t[r]})}_sendFireAndForgetRequest(e){var t;let{url:r,method:n,options:i}=e;if(null==(t=i.signal)?void 0:t.aborted)return Promise.reject(I(r,i.signal));if("GET"!==n&&"POST"!==n)return Promise.reject(new er(p.L.TRANSPORT_UNSUPPORTED_OPTION,`Option 'forget' cannot be used for ${n} request.`));if(!i.autoAuthorized&&i.authorize)return Promise.reject(new er(p.L.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for authorized request."));if(i.requestMode="xhr",i.authorize=!1,i.ignoreResponseBody=!0,"GET"===n)if("function"==typeof Image)new Image().src=r;else if("function"==typeof fetch){let e={mode:"no-cors"};i.signal&&C()&&(e.signal=i.signal),fetch(r,e).catch(()=>{})}else this._sendRetriedRequest(e,{}).catch(()=>{});else if("POST"===n)if("undefined"!=typeof navigator&&(null==navigator?void 0:navigator.sendBeacon)){let t=e.headers.get("content-type");navigator.sendBeacon(e.url,"string"==typeof e.payload&&t?new Blob([e.payload],{type:t}):e.payload)}else if("function"==typeof fetch){let t=e.headers.get("content-type"),n={method:"POST",body:e.payload,headers:t?{"content-type":t}:void 0};i.signal&&C()&&(n.signal=i.signal),fetch(r,n).catch(()=>{})}else this._sendRetriedRequest(e,{}).catch(()=>{});return Promise.resolve(new W(r,0))}_sendRetriedRequest(e,t){let r=e.retryOptions,i=e.options.signal,s=!1,o=()=>(null==i?void 0:i.aborted)?Promise.reject(I(e.url,i)):this._setAuthHeader(e,s),a=this._connectionObserver,l=new ee(()=>(a.isOnline()||e.options.allowOffline?o():new Promise((e,t)=>{a.once(f.J.CONNECTION_ONLINE,()=>{o().then(e,t)})})).then(()=>{let r;if(null==i?void 0:i.aborted)return Promise.reject(I(e.url,i));if(this._pluginMediator.emitSync(n.TRANSPORT_BEFORE_SEND_REQUEST,{request:e,context:t}),"fetch"===e.options.requestMode&&this._Fetch&&this._Fetch.isSupported())r=this._Fetch.request(e);else if(this._XHR)r=this._XHR.request(e);else throw Error("No available request mechanisms.");return r}).then(t=>{if(null==i?void 0:i.aborted)return Promise.reject(I(e.url,i));let n=null;if(t.headers&&(n=t.headers.get("Retry-After")),t.status===q.s.UNAUTHORIZED&&!e.options.ignoreUnauthorized)return s=!0,Promise.reject(t);if("function"==typeof(null==r?void 0:r.condition)&&(r.condition(t,et.t)||n)){if(null!==n)if(eu.test(n))t.retryAfter=new Date(n).getTime()-Date.now();else{let e=parseInt(n,10);e>0&&(t.retryAfter=1e3*e)}return Promise.reject(t)}return Promise.resolve(t)}),r);return l.start().catch(this._handleRetriedRequestError).then(r=>(null==i?void 0:i.aborted)?Promise.reject(I(e.url,i)):(r.metadata=e.options.metadata,r.retries=r.retries||{count:0},r.retries.count=l.getRetryCount(),this._pluginMediator.emitSync(n.TRANSPORT_BEFORE_RETURN_RESPONSE,{context:t,response:r,request:e}),e.options.rejectNotOk&&!r.ok)?Promise.reject(r):r)}_setAuthHeader(e,t){if(!e.options.authorize)return Promise.resolve(e);let r=()=>this._refreshToken(t).then(t=>(e.headers.set("Authorization",`Bearer ${t}`),e));return this._stateMask&eh.AUTHENTICATED?r():new Promise((e,t)=>{ea.info("Auth header setting awaiting authentication."),this.once(f.J.AUTHENTICATED,()=>{ea.info("Auth header set after authentication."),r().then(e,t)})})}_handleRetriedRequestError(e){return e instanceof W?Promise.resolve(e):Promise.reject(e)}_onAddListener(e,t){let r,i=t.data.options;if(i.ignoreCurrentState)return;switch(e){case"connected":if(!this.isConnected())return;r=Promise.resolve(this.createEvent(f.J.CONNECTED,null));break;case"authenticated":{if(!this.isAuthenticated())return;let e=this._stateAwareOperationMetrics.authenticated;r=Promise.resolve(this.createEvent(f.J.AUTHENTICATED,{timing:e}));break}case"connection_id":{let e=this.getPluginAPI("dealer");if(!e||!e.hasConnectionInfo())return;r=e.getConnectionInfo().then(e=>this.createEvent(f.J.CONNECTION_ID,e));break}case"transport_connect":if(!this.isConnected()||!this._endpoints)return;r=Promise.resolve(this._pluginMediator.createEvent(n.TRANSPORT_CONNECT,{endpoints:Object.assign({},this._endpoints),awaitPromise:e=>{}}));break;case"transport_authenticate":if(!this.isAuthenticated())return;r=this._refreshToken().then(e=>this._pluginMediator.createEvent(n.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:e=>{}}));break;default:return}let s=t.data.listener;this._stateAwareListeners[e].push(s);let o=this._stateAwareRunners;!o[e]&&(o[e]=r.then(this._runStateAwareQueues.bind(this,e)),i.once&&t.preventDefault())}_onRemoveListener(e,t){let r=t.data.options;if(r.ignoreCurrentState||r.once)return;let n=t.data.listener,i=this._stateAwareListeners[e].indexOf(n);-1!==i&&this._stateAwareListeners[e].splice(i,1)}_getQuickDisconnectTimeout(){return this._counter.getTime(this._quickDisconnectCount)}_onPluginDisconnected(e){let t=Date.now(),r=t-this._lastDisconnect;if(this._performDisconnect(),e.data.code===c.CLOSE){ea.info(`Plugin "${e.data.plugin}" explicitly disconnected`),this._quickDisconnectCount=0;return}this._connectionObserver.isOnline()&&(ea.info(`Plugin "${e.data.plugin}" unexpectedly disconnect; trying to reconnect`),r<5e3?(this._reconnectTimeout&&clearTimeout(this._reconnectTimeout),this._quickDisconnectCount++,this.emit(f.J.SHORT_SESSION_DISCONNECTED,{disconnectCount:this._quickDisconnectCount,sessionLength:r}),this._reconnectTimeout=setTimeout(this._tryToReconnect.bind(this),this._getQuickDisconnectTimeout())):(this._quickDisconnectCount=0,this._lastDisconnect=t,this._tryToReconnect()))}_onOnline(){this.emit(f.J.CONNECTION_ONLINE,null),ea.info("ConnectionObserver online"),this._connectCalled&&this._tryToReconnect()}_onOffline(){this.emit(f.J.CONNECTION_OFFLINE,null),ea.info("ConnectioObserver offline"),this._performDisconnect()}_onConnected(){return this._stateMask|=eh.CONNECTED,this.emit(f.J.CONNECTED,null),ea.info("Connected"),Promise.resolve(!0)}_onAuthenticated(e){e.end(),clearTimeout(this._reconnectTimeout),this._authenticationPromise=null,this._stateMask|=eh.AUTHENTICATED,this._initTime=Date.now();let t=e.getMetrics();return this.emit(f.J.AUTHENTICATED,{timing:t}),this._stateAwareOperationMetrics.authenticated=t,ea.info("Authenticated"),Promise.resolve(!0)}_onAuthenticationFailed(e,t){t.end();let r=e&&e.error?e.error:e;this._authenticationPromise=null,this._stateMask&=~eh.AUTHENTICATED;let i={error:r,timing:t.getMetrics()};return this.emit(f.J.AUTHENTICATION_FAILED,i),this._pluginMediator.emit(n.TRANSPORT_AUTHENTICATE_FAILED,i),ea.info("Authentication failed",r),Promise.reject(r)}_onLogout(){let e=()=>{this._lastToken=null,this._lastTokenExpiry=0,this.emit(f.J.LOGGED_OUT,null)};this._disconnect(i.LOG_OUT).then(e,e)}_disconnect(e){if(!this._connectCalled)return Promise.resolve(!1);this._connectCalled=!1,this._authenticateCalled=!1;let t=this.isConnected()?f.J.BEFORE_ONLINE_DISCONNECT:f.J.BEFORE_OFFLINE_DISCONNECT,r=[];return this.emitSync(t,{awaitPromise:e=>{r.push(e.catch(()=>{}))}}),Promise.all(r).then(()=>this._performDisconnect(e))}isConnected(){return!!(this._stateMask&eh.CONNECTED)}isAuthenticated(){return!!(this._stateMask&eh.AUTHENTICATED)}isReconnecting(){return this._isReconnecting}isOnline(){return this._connectionObserver.isOnline()}connect(){return this._connectCalled=!0,this._connect()}authenticate(){return this._authenticateCalled=!0,this._authenticate(!0)}disconnect(){return this._disconnect(i.EXPLICIT)}forceDisconnect(){return this._connectCalled?(this._connectCalled=!1,this._authenticateCalled=!1,this._performDisconnect(i.EXPLICIT),Promise.resolve(!0)):Promise.resolve(!1)}forceTokenRefresh(){return this._refreshToken(!0).then(()=>!0)}getInitTime(){return this._initTime}getEndpoints(){return this._endpoints?Object.assign({},this._endpoints):null}getLastToken(){return this._lastToken}toPublic(e){return new es(this,e)}hasOwnerRef(e){return this._ownerRef===e}appendTokenQuery(e){return this._refreshToken().then(t=>ep(e,t))}appendLastTokenQuery(e){return this._lastToken?ep(e,this._lastToken):e}matchMessages(e,t,r){if(!e)throw TypeError('Message "matcher" cannot be null.');if("function"!=typeof t)throw TypeError("Message callback cannot be null.");let i=n=>{let i=n.data.message;i.uri&&i.uri.match(e)&&(!r||r===n.data.plugin)&&t(i)};i.__matchMessagesExp=e,i.__matchMessagesPlugin=r,t.__matchMessagesWrapper=i,this._pluginMediator.on(n.PLUGIN_MESSAGE,i)}unmatchMessages(e,t,r){if("function"!=typeof t)throw TypeError("Message callback cannot be null.");let i=t.__matchMessagesWrapper;return!!i&&i.__matchMessagesExp===e&&i.__matchMessagesPlugin===r&&(this._pluginMediator.removeListener(n.PLUGIN_MESSAGE,i),!0)}handlePushRequests(e,t,r){if(!e)throw TypeError('Push request "matcher" cannot be null.');if("function"!=typeof t)throw TypeError("Push request callback cannot be null.");let i=n=>{let i=n.data.request;i.message_ident&&i.message_ident.match(e)&&(!r||r===n.data.plugin)&&Promise.resolve(t(i)).then(n.data.reply)};i.__matchRequestExp=e,i.__matchRequestPlugin=r,t.__matchRequestWrapper=i,this._pluginMediator.on(n.PLUGIN_REQUEST,i)}unhandlePushRequests(e,t,r){if("function"!=typeof t)throw TypeError("Push request callback cannot be null.");let i=t.__matchRequestWrapper;return!!i&&i.__matchRequestExp===e&&i.__matchRequestPlugin===r&&(this._pluginMediator.removeListener(n.PLUGIN_REQUEST,i),!0)}request(e,t){var r;let i={uri:e,options:t,context:{}};this._pluginMediator.emitSync(n.TRANSPORT_BEFORE_PROCESS_REQUEST,i);let s=this._sendRequest.bind(this,i.uri,i.options,i.context);return!this._endpoints&&el.test(i.uri)?(ea.info("Request queued until endpoints resolved",i.uri),new Promise((e,t)=>{this.once(f.J.ENDPOINTS_RESOLVED,()=>{ea.info("Sending endpoints-queued request",i.uri),s().then(e,t)})})):this._connectionObserver.isOnline()||(null==(r=i.options)?void 0:r.allowOffline)?s():(ea.info("Request queued until online",i.uri),new Promise((e,t)=>{this.once(f.J.CONNECTION_ONLINE,()=>{ea.info("Sending offline-queued request",i.uri),s().then(e,t)})}))}addPlugin(e,t){let r=e(this,t),n=r.name;if(this._plugins[n])throw TypeError("Plugin is already added.");return r.attach(this,this._pluginMediator),this._plugins[n]=r,n}removePlugin(e){let t=this._plugins[e];return!!t&&(t.detach(this,this._pluginMediator),this._plugins[e]=void 0,!0)}hasPlugin(e){return!!this._plugins[e]}getPluginAPI(e){let t=this._plugins[e];return t&&t.api?t.api:null}getConnectionId(e="dealer"){let t=this._plugins[e];return t?t.api&&"getConnectionInfo"in t.api?t.api.getConnectionInfo().then(e=>e.id):Promise.reject(TypeError(`Plugin ${t} is not a socket plugin.`)):Promise.reject(TypeError(`Cannot retrieve connection id for plugin ${t}.`))}removeAllListeners(){return this}}class em{constructor(e){this._headers={},this._init(e)}_init(e){if(e)for(let t of e.split("\r\n")){let e=t.indexOf(": ");if(e>0){let r=t.substring(0,e).toLowerCase(),n=t.substring(e+2);this._headers[r]=n}}}get(e){return this._headers[e.toLowerCase()]||null}has(e){return this._headers.hasOwnProperty(e.toLowerCase())}}let eg=B.m.forTag("transport.http.xhr"),e_=function(){},ey={json:!0,text:!0,document:!0};function ev(){this.onabort=e_,this.onerror=e_,this.onload=e_,this.onloadend=e_}function eb(e,t,r){var n,i;if(null==(n=e.options.signal)?void 0:n.aborted)return;let s=(0,F.X)(),o=this.status,a=new W(this.responseURL||e.url,o);a.body=null;let l=e.options;if(l.timing&&(a.timing={completed:(0,F.r)(t,s)}),(null==(i=l.connectionObserver)?void 0:i.isOnline)&&(a.offline=!l.connectionObserver.isOnline()),(l.parseResponseHeaders||o>299)&&(a.headers=new em(this.getAllResponseHeaders())),!l.ignoreResponseBody&&o!==q.s.NO_CONTENT){let e=l.responseType||"";if(!l.forcePolyfill&&"response"in this&&e===this.responseType)a.body=this.response;else if("document"===e)a.body=this.responseXML;else if("json"===e)try{a.body=JSON.parse(this.responseText)}catch(e){eg.warn("Could not parse response as JSON:",e),a.body=null}else("text"===e||""===e)&&(a.body=this.responseText)}r(a)}function eE(e,t,r){4===this.readyState?t(new W(this.responseURL||e,this.status)):r(new v("Request cannot be completed.",p.L.HTTP_REQUEST_FAILED,this.status,e))}function eS(e){let t=e.options.signal;return new Promise((r,n)=>{if(null==t?void 0:t.aborted)return void n(I(e.url,t));let i=new XMLHttpRequest,s=e.url;if(!s)return void n(TypeError("Request URL cannot be blank."));let o=null,a=e.method||"GET",l=e.payload||"";if(l&&"[object ReadableStream]"===Object.prototype.toString.call(l))return void n(TypeError("payload is a ReadableStream, which is not supported"));a in z&&!0===z[a]&&l?o=l:l&&(s+=`?${l}`),i.open(a,s,!0),i.onerror=eE.bind(i,s,r,n),i.onabort=ev,i.onloadend=ev,i.onprogress=e_;let c=e.options;"include"===c.credentials&&(i.withCredentials=!0);let u=c.responseType;if(u)if(c.forcePolyfill){if(!(u in ey))return void n(TypeError(`Cannot polyfill responseType "${u}"`))}else{if(!("responseType"in i)&&!(u in ey))return void n(TypeError("Cannot set responseType: not supported in browser."));try{i.responseType=u}catch(e){n(TypeError(`Unknown responseType "${u}".`));return}if(i&&u!==i.responseType&&!(u in ey))return void n(TypeError(`Unknown responseType "${u}".`))}let d=e.headers.count()?e.headers.toJSON():null;if(d){for(let e in d)if(d.hasOwnProperty(e)&&d[e])try{i.setRequestHeader(e,d[e])}catch(e){n(e);return}}t&&t.addEventListener("abort",function e(){t.removeEventListener("abort",e),i.abort(),n(I(s,t))}),i.onload=eb.bind(i,e,(0,F.X)(),r);try{i.send(o)}catch(e){n(e);return}})}var eT=r(5372);function ew(){return()=>Promise.resolve({webgate:"https://www.spotify.com/api/",webapi:"https://api.spotify.com"})}function eO(){return()=>Promise.resolve("NOT_A_TOKEN")}function eC(){return{endpoints:ew(),token:eO()}}let ek="request-transformer";class eR{constructor(e){this.name=ek,this._uriTransformer=e.uriTransformer,this._optionsOverrides=e.optionsOverrides,this._include=e.include,this._processRequest=this._processRequest.bind(this)}_processRequest(e){var t,r;let n=e.data;if((null==(r=null==(t=n.options)?void 0:t.metadata)?void 0:r.noRequestTransform)||this._include&&!this._include(n.uri,n.options))return;this._uriTransformer&&(n.uri=this._uriTransformer(n.uri));let i=this._optionsOverrides;if(i)if(n.options){let e=Object.assign(Object.assign(Object.assign({},n.options),i),{metadata:Object.assign(Object.assign({},n.options.metadata),i.metadata),retry:Object.assign(Object.assign({},n.options.retry),i.retry),headers:Object.assign(Object.assign({},n.options.headers),i.headers)});n.options=e}else n.options=i}attach(e,t){t.on(n.TRANSPORT_BEFORE_PROCESS_REQUEST,this._processRequest)}detach(e,t){t.removeListener(n.TRANSPORT_BEFORE_PROCESS_REQUEST,this._processRequest)}}function eI(e,t){return new eR(t)}function eN(e){let t=Object.assign({},e);return t.XHR||(t.XHR=h),t.Fetch=d,ef.create(t)}function eA(e){let t=eN(e);return t.addPlugin($,{WebSocket:WebSocket}),t}},85013:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(48709);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||(0,n.KU)()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},86011:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeviceContext=void 0,t.createDeviceContext=function(e){return function(){return{name:"context_device",data:e}}}},86727:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(r(54832),t),i(r(4073),t),i(r(34200),t);var o=r(30884);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s(o).default}})},88929:(e,t,r)=>{"use strict";r.d(t,{mL:()=>ey,AH:()=>ev});var n,i=r(72223),s=r.t(i,2),o=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?m[b]+" "+E:u(E,/&\f/g,m[b])).trim())&&(c[v++]=T);return S(e,t,r,0===i?P:l,c,d,h)}function $(e,t,r,n){return S(e,t,r,D,p(e,0,n),p(e,n+1,-1),n)}var B=function(e,t,r){for(var n=0,i=0;n=i,i=O(),38===n&&12===i&&(t[r]=1),!C(i);)w();return p(E,e,v)},F=function(e,t){var r=-1,n=44;do switch(C(n)){case 0:38===n&&12===O()&&(t[r]=1),e[r]+=B(v-1,t,r);break;case 2:e[r]+=R(n);break;case 4:if(44===n){e[++r]=58===O()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=l(n)}while(n=w());return e},z=function(e,t){var r;return r=F(k(e),t),E="",r},q=new WeakMap,H=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||q.get(r))&&!n){q.set(e,!0);for(var i=[],s=z(t,i),o=r.props,a=0,l=0;a-1&&!e.return)switch(e.type){case D:e.return=function e(t,r){switch(45^h(t,0)?(((r<<2^h(t,0))<<2^h(t,1))<<2^h(t,2))<<2^h(t,3):0){case 5103:return A+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return A+t+N+t+I+t+t;case 6828:case 4268:return A+t+I+t+t;case 6165:return A+t+I+"flex-"+t+t;case 5187:return A+t+u(t,/(\w+).+(:[^]+)/,A+"box-$1$2"+I+"flex-$1$2")+t;case 5443:return A+t+I+"flex-item-"+u(t,/flex-|-self/,"")+t;case 4675:return A+t+I+"flex-line-pack"+u(t,/align-content|flex-|-self/,"")+t;case 5548:return A+t+I+u(t,"shrink","negative")+t;case 5292:return A+t+I+u(t,"basis","preferred-size")+t;case 6060:return A+"box-"+u(t,"-grow","")+A+t+I+u(t,"grow","positive")+t;case 4554:return A+u(t,/([^-])(transform)/g,"$1"+A+"$2")+t;case 6187:return u(u(u(t,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),t,"")+t;case 5495:case 3959:return u(t,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return u(u(t,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+I+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+t+t;case 4095:case 3583:case 4068:case 2532:return u(t,/(.+)-inline(.+)/,A+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(t)-1-r>6)switch(h(t,r+1)){case 109:if(45!==h(t,r+4))break;case 102:return u(t,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+N+(108==h(t,r+3)?"$3":"$2-$3"))+t;case 115:return~d(t,"stretch")?e(u(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==h(t,r+1))break;case 6444:switch(h(t,f(t)-3-(~d(t,"!important")&&10))){case 107:return u(t,":",":"+A)+t;case 101:return u(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+A+(45===h(t,14)?"inline-":"")+"box$3$1"+A+"$2$3$1"+I+"$2box$3")+t}break;case 5936:switch(h(t,r+11)){case 114:return A+t+I+u(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return A+t+I+u(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return A+t+I+u(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return A+t+I+t+t}return t}(e.value,e.length);break;case M:return L([T(e,{value:u(e.value,"@","@"+A)})],n);case P:if(e.length){var i,s;return i=e.props,s=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return L([T(e,{props:[u(t,/:(read-\w+)/,":"+N+"$1")]})],n);case"::placeholder":return L([T(e,{props:[u(t,/:(plac\w+)/,":"+A+"input-$1")]}),T(e,{props:[u(t,/:(plac\w+)/,":"+N+"$1")]}),T(e,{props:[u(t,/:(plac\w+)/,I+"input-$1")]})],n)}return""},i.map(s).join("")}}}],J=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},V=function(e,t,r){J(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}},Y={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},K=r(1342),X=/[A-Z]|^ms/g,Q=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Z=function(e){return 45===e.charCodeAt(1)},ee=function(e){return null!=e&&"boolean"!=typeof e},et=(0,K.A)(function(e){return Z(e)?e:e.replace(X,"-$&").toLowerCase()}),er=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Q,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===Y[e]||Z(e)||"number"!=typeof t||0===t?t:t+"px"};function en(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(o)+c,styles:o,next:n}}var eo=!!s.useInsertionEffect&&s.useInsertionEffect,ea=eo||function(e){return e()},el=eo||i.useLayoutEffect,ec=i.createContext("undefined"!=typeof HTMLElement?function(e){var t,r,n,i,s,a=e.key;if("css"===a){var c=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(c,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var y=e.stylisPlugins||G,T={},I=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r2||C(b)>3?"":" "}(D);break;case 92:W+=function(e,t){for(var r;--t&&w()&&!(b<48)&&!(b>102)&&(!(b>57)||!(b<65))&&(!(b>70)||!(b<97)););return r=v+(t<6&&32==O()&&32==w()),p(E,e,r)}(v-1,7);continue;case 47:switch(O()){case 42:case 47:m((T=function(e,t){for(;w();)if(e+b===57)break;else if(e+b===84&&47===O())break;return"/*"+p(E,t,v-1)+"*"+l(47===e?e:w())}(w(),v),S(T,r,n,x,l(b),p(T,2,-2),0)),y);break;default:W+="/"}break;case 123*M:c[k++]=f(W)*U;case 125*M:case 59:case 0:switch(B){case 0:case 125:L=0;case 59+I:-1==U&&(W=u(W,/\f/g,"")),P>0&&f(W)-N&&m(P>32?$(W+";",i,n,N-1):$(u(W," ","")+";",i,n,N-2),y);break;case 59:W+=";";default:if(m(H=j(W,r,n,k,I,s,c,F,z=[],q=[],N),o),123===B)if(0===I)e(W,r,H,H,z,o,N,c,q);else switch(99===A&&110===h(W,3)?100:A){case 100:case 108:case 109:case 115:e(t,H,H,i&&m(j(t,H,H,0,0,s,c,F,s,z=[],N),q),s,q,N,c,i?z:q);break;default:e(W,H,H,H,[""],q,0,c,q)}}k=I=P=0,M=U=1,F=W="",N=a;break;case 58:N=1+f(W),P=D;default:if(M<1){if(123==B)--M;else if(125==B&&0==M++&&125==(b=v>0?h(E,--v):0,_--,10===b&&(_=1,g--),b))continue}switch(W+=l(B),B*M){case 38:U=I>0?1:(W+="\f",-1);break;case 44:c[k++]=(f(W)-1)*U,U=1;break;case 64:45===O()&&(W+=R(w())),A=O(),I=N=f(F=W+=function(e){for(;!C(O());)w();return p(E,e,v)}(v)),B++;break;case 45:45===D&&2==f(W)&&(M=0)}}return o}("",null,null,null,[""],t=k(t=e),0,[0],t),E="",r),N)},P={key:a,sheet:new o({key:a,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:T,registered:{},insert:function(e,t,r,n){s=r,A(e?e+"{"+t.styles+"}":t.styles),n&&(P.inserted[t.name]=!0)}};return P.sheet.hydrate(I),P}({key:"css"}):null);ec.Provider;var eu=function(e){return(0,i.forwardRef)(function(t,r){return e(t,(0,i.useContext)(ec),r)})},ed=i.createContext({}),eh={}.hasOwnProperty,ep="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ef=function(e,t){var r={};for(var n in t)eh.call(t,n)&&(r[n]=t[n]);return r[ep]=e,r},em=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return J(t,r,n),ea(function(){return V(t,r,n)}),null},eg=eu(function(e,t,r){var n,s,o,a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var l=e[ep],c=[a],u="";"string"==typeof e.className?(n=t.registered,s=e.className,o="",s.split(" ").forEach(function(e){void 0!==n[e]?c.push(n[e]+";"):e&&(o+=e+" ")}),u=o):null!=e.className&&(u=e.className+" ");var d=es(c,void 0,i.useContext(ed));u+=t.key+"-"+d.name;var h={};for(var p in e)eh.call(e,p)&&"css"!==p&&p!==ep&&(h[p]=e[p]);return h.className=u,r&&(h.ref=r),i.createElement(i.Fragment,null,i.createElement(em,{cache:t,serialized:d,isStringTag:"string"==typeof l}),i.createElement(l,h))});r(13027);var e_=function(e,t){var r=arguments;if(null==t||!eh.call(t,"css"))return i.createElement.apply(void 0,r);var n=r.length,s=Array(n);s[0]=eg,s[1]=ef(e,t);for(var o=2;o{"use strict";r.d(t,{E3:()=>u,OM:()=>h,Ub:()=>p,ht:()=>d});var n=r(12584),i=r(88929);function s(){let e=(0,n._)(["\n color: ",";\n"]);return s=function(){return e},e}function o(){let e=(0,n._)(["\n h1,\n h2 {\n margin: 0;\n font-size: initial;\n font-weight: normal;\n }\n\n .no-focus-outline {\n *:focus {\n outline: 0;\n }\n }\n\n button {\n margin: 0;\n border: 0;\n padding: 0;\n color: inherit;\n background-color: transparent;\n cursor: pointer;\n\n &:focus-visible {\n outline: #3673d4 auto 5px !important;\n border-bottom: none !important;\n }\n\n &::after {\n border-bottom: none !important;\n }\n }\n\n a {\n ",";\n text-decoration: none;\n\n &:focus-visible {\n text-decoration: underline !important;\n }\n }\n\n button {\n user-select: none;\n }\n"]);return o=function(){return e},e}function a(){let e=(0,n._)(["\n body {\n ",";\n }\n\n ",";\n"]);return a=function(){return e},e}let l=(0,i.AH)(s(),"rgb(255, 255, 255)"),c=(0,i.AH)(o(),l),u=(0,i.AH)(a(),l,c),d={compactLegacy:80,landscape:152,landscapeLegacy:232,large:352},h={small:360,medium:510,maxPrereleaseAudiobook:566,smallVideo:374,mediumVideo:666},p={landscape:{small:90,large:120},landscapeLegacy:{small:152,medium:160,large:200},portrait:176,largeScreen:{small:216,large:272}}},89338:(e,t,r)=>{"use strict";r.d(t,{AD:()=>d,SB:()=>a,hH:()=>l,ul:()=>u});var n=r(47491),i=r(94819);let s=/^o(\d+)\./,o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){let{host:r,path:n,pass:i,port:s,projectId:o,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&i?`:${i}`:""}@${r}${s?`:${s}`:""}/${n?`${n}/`:n}${o}`}function l(e){let t=o.exec(e);if(!t)return void(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,s="",a="",l="",u=""]=t.slice(1),d="",h=u,p=h.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),h=p.pop()),h){let e=h.match(/^\d+/);e&&(h=e[0])}return c({host:a,pass:s,path:d,projectId:h,port:l,protocol:r,publicKey:n})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){let t,r=e.getOptions(),{host:n}=e.getDsn()||{};return r.orgId?t=String(r.orgId):n&&(t=function(e){let t=e.match(s);return t?.[1]}(n)),t}function d(e){let t="string"==typeof e?l(e):c(e);if(t&&function(e){if(!n.T)return!0;let{port:t,projectId:r,protocol:s}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.Yz.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==s&&"https"!==s?(i.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):!(t&&isNaN(parseInt(t,10)))||(i.Yz.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}},89429:(e,t,r)=>{"use strict";var n;r.d(t,{J:()=>n}),function(e){e.CONNECTION_ONLINE="online",e.CONNECTION_OFFLINE="offline",e.PRODUCT_STATE_CHANGED="product_state_changed",e.ACCESS_TOKEN="access_token",e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.BEFORE_OFFLINE_DISCONNECT="before_offline_disconnect",e.BEFORE_ONLINE_DISCONNECT="before_online_disconnect",e.CONNECTED="connected",e.CONNECTION_FAILED="connection_failed",e.CONNECTION_ID="connection_id",e.DISCONNECTED="disconnected",e.ENDPOINTS_RESOLVED="endpoints_resolved",e.LOGGED_OUT="logged_out",e.SHORT_SESSION_DISCONNECTED="short_session_disconnected",e.TOKEN_PROVIDER_ERROR="token_provider_error",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.WINDOW_BEFORE_UNLOAD="beforeunload"}(n||(n={}))},90591:(e,t,r)=>{"use strict";r.d(t,{LZ:()=>p,ao:()=>m,k1:()=>g});var n=r(8e3),i=r(48709),s=r(9534),o=r(94941),a=r(89338),l=r(85013),c=r(48862),u=r(99174),d=r(76589);let h="_frozenDsc";function p(e,t){(0,c.my)(e,h,t)}function f(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},s={environment:r.environment||n.U,release:r.release,public_key:i,trace_id:e,org_id:(0,a.ul)(t)};return t.emit("createDsc",s),s}function m(e,t){let r=t.getPropagationContext();return r.dsc||f(r.traceId,e)}function g(e){let t=(0,i.KU)();if(!t)return{};let r=(0,u.zU)(e),n=(0,u.et)(r),a=n.data,c=r.spanContext().traceState,p=c?.get("sentry.sample_rate")??a[s.sy]??a[s.Ef];function m(e){return("number"==typeof p||"string"==typeof p)&&(e.sample_rate=`${p}`),e}let g=r[h];if(g)return m(g);let _=c?.get("sentry.dsc"),y=_&&(0,o.yD)(_);if(y)return m(y);let v=f(e.spanContext().traceId,t),b=a[s.i_],E=n.description;return"url"!==b&&E&&(v.transaction=E),(0,l.f)()&&(v.sampled=String((0,u.pK)(r)),v.sample_rand=c?.get("sentry.sample_rand")??(0,d.L)(r).scope?.getPropagationContext().sampleRand.toString()),m(v),t.emit("createDsc",v,r),v}},91283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationDesktopContext=void 0,t.createApplicationDesktopContext=function(e){return function(){return{name:"context_application_desktop",data:e}}}},92076:(e,t,r)=>{"use strict";r.d(t,{RV:()=>d,gd:()=>o,qQ:()=>u,vk:()=>a,yF:()=>n});let n="?",i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function o(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,o=0)=>{let a=[],c=e.split("\n");for(let e=r;e1024&&(r=r.slice(0,1024));let n=i.test(r)?r.replace(i,"$1"):r;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){a.push(t);break}}if(a.length>=50+o)break}}var u=a.slice(o);if(!u.length)return[];let d=Array.from(u);return/sentryWrapped/.test(l(d).function||"")&&d.pop(),d.reverse(),s.test(l(d).function||"")&&(d.pop(),s.test(l(d).function||"")&&d.pop()),d.slice(0,50).map(e=>({...e,filename:e.filename||l(d).filename,function:e.function||n}))}}function a(e){return Array.isArray(e)?o(...e):e}function l(e){return e[e.length-1]||{}}let c="";function u(e){try{if(!e||"function"!=typeof e)return c;return e.name||c}catch{return c}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}},92656:(e,t,r)=>{"use strict";let n,i,s,o,a,l,c,u,d,h,p,f,m,g,_,y,v,b,E;var S,T=r(8164),w=r(94819),O=r(18379);function C(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:O.M})),version:O.M}),e._metadata=i}var k=r(44806),R=r(47491);let I=[];function N(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function A(e,t,r){if(r[t.name]){R.T&&w.Yz.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===I.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),I.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}R.T&&w.Yz.log(`Integration installed: ${t.name}`)}function x(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var P=r(55125),D=r(16852);let M=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/];function L(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:M],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function U(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return R.T&&w.Yz.error(`Cannot extract url for event ${(0,P.$X)(e)}`),null}}var j=r(48709),$=r(48862);let B=new WeakMap;var F=r(92076);function z(e,t){let r=(0,F.RV)(e),n=(0,F.RV)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;ethis._captureEvent(e,i,r))),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,P.eJ)(),...r},s=(0,ea.NF)(e)?e:String(e),o=(0,ea.sO)(e)?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(o.then(e=>this._captureEvent(e,i,n))),i.event_id}captureEvent(e,t,r){let n=(0,P.eJ)();if(t?.originalException&&(0,P.GR)(t.originalException))return R.T&&w.Yz.log(ep),n;let i={event_id:n,...t},s=e.sdkProcessingMetadata||{},o=s.capturedSpanScope,a=s.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,o||r,a)),i.event_id}captureSession(e){this.sendSession(e),(0,es.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];A(this,e,this._integrations),t||N(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){let i=ee(r),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);let o=et(e,i,n,t);return delete e.sdkProcessingMetadata,K(o,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=function(e,t){let[r,n]=e;return[r,[...n,t]]}(r,function(e){let t="string"==typeof e.data?Q(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=W.U}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){R.T&&w.Yz.warn(ef);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){R.T&&w.Yz.warn(ef);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=function(e,t,r,n){let i=ee(r);return K({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,J.SB)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;R.T&&w.Yz.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return R.T&&w.Yz.error("Error while sending envelope:",e),{}}return R.T&&w.Yz.error("Transport disabled"),{}}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t&&A(e,t,r)}),r}(this,e),N(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t?.handled===!1){r=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,es.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||tsetTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s?.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,eu.mG)(i,e,t,r,this,n).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:(0,j.vn)(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,G.ao)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,j.o5)(),n=(0,j.rm)()){return R.T&&eS(e)&&w.Yz.log(`Captured error event \`${x(e)[0]||""}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{R.T&&(eb(e)?w.Yz.log(e.message):ev(e)?w.Yz.warn(e.message):w.Yz.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:s}=i,o=eT(e),a=eS(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===s?void 0:(0,ec.i)(s);if(a&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),(0,ed.xg)(ey(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let d="replay_event"===l?"replay":l;return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),ey("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,ea.Qg)(e))return e.then(e=>{if(!(0,ea.Qd)(e)&&null!==e)throw e_(r);return e},e=>{throw e_(`${t} rejected with ${e}`)});if(!(0,ea.Qd)(e)&&null!==e)throw e_(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:o,ignoreSpans:a}=t,l=r;if(eS(l)&&i)return i(l,n);if(eT(l)){if(o||a){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:s,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:o?.[eh.E1],exclusive_time:o?.[eh.jG],measurements:e.measurements,is_segment:!0}}(l);if(a?.length&&en(t,a))return null;if(o){let e=o(t);if(e)l=(0,el.h)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[eh.E1]:e.profile_id},...e.exclusive_time&&{[eh.jG]:e.exclusive_time}}}},measurements:e.measurements});else(0,ei.xl)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(a?.length&&en(e,a)){let t=e.parent_span_id,n=e.span_id;if(t)for(let e of r)e.parent_span_id===n&&(e.parent_span_id=t);continue}if(o){let r=o(e);r?t.push(r):((0,ei.xl)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(l,n)}}return l}(this,i,e,t),c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw ey(`${c} returned \`null\`, will not send event.`)}let s=r.getSession()||n.getSession();if(a&&s&&this._updateSessionFromEvent(s,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(eb(e)||ev(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),e_(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;R.T&&w.Yz.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){R.T&&w.Yz.log("No outcomes to send");return}if(!this._dsn){R.T&&w.Yz.log("No dsn provided, will not send outcomes");return}R.T&&w.Yz.log("Sending outcomes:",t);let r=K((e=this._options.tunnel&&(0,J.SB)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eo.lu)(),discarded_events:t}]]);this.sendEnvelope(r)}}function eS(e){return void 0===e.type}function eT(e){return"transaction"===e.type}function ew(e,t){var r;let n=t??(r=e,eO().get(r))??[];if(0===n.length)return;let i=e.getOptions(),s=function(e,t,r,n){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=(0,J.SB)(n)),K(i,[[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]])}(n,i._metadata,i.tunnel,e.getDsn());eO().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function eO(){return(0,V.BY)("clientToLogBufferMap",()=>new WeakMap)}function eC(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function ek(e,t){let r=eI(e,t),n={type:function(e){let t=e?.name;return!t&&eA(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return eA(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function eR(e,t){return{exception:{values:[ek(e,t)]}}}function eI(e,t){var r,n;let i=t.stacktrace||t.stack||"",s=(r=t)&&eN.test(r.message)?1:0,o="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,s,o)}catch{}return[]}let eN=/Minified React error #\d+;/i;function eA(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ex(e,t,r,n,i){let s;if((0,ea.T2)(t)&&t.error)return eR(e,t.error);if((0,ea.BD)(t)||(0,ea.W6)(t)){if("stack"in t)s=eR(e,t);else{let i=t.name||((0,ea.BD)(t)?"DOMError":"DOMException"),o=t.message?`${i}: ${t.message}`:i;s=eP(e,o,r,n),(0,P.gO)(s,o)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return(0,ea.bJ)(t)?eR(e,t):((0,ea.Qd)(t)||(0,ea.xH)(t)?s=function(e,t,r,n){let i=(0,j.KU)(),s=i?.getOptions().normalizeDepth,o=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),a={__serialized__:(0,Y.cd)(t,s)};if(o)return{exception:{values:[ek(e,o)]},extra:a};let l={exception:{values:[{type:(0,ea.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,$.HF)(e),n=t?"promise rejection":"exception";if((0,ea.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,ea.xH)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:a};if(r){let t=eI(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(s=eP(e,t,r,n),(0,P.gO)(s,`${t}`,void 0)),(0,P.M6)(s,{synthetic:!0}),s)}function eP(e,t,r,n){let i={};if(n&&r){let n=eI(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,P.M6)(i,{synthetic:!0})}if((0,ea.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}var eD=r(71655);let eM=T.O,eL=0;function eU(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if((0,$.sp)(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>eU(e,t));return e.apply(this,n)}catch(e){throw eL++,setTimeout(()=>{eL--}),(0,j.v4)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,P.gO)(e,void 0,void 0),(0,P.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,k.Cp)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,$.pO)(r,e),(0,$.my)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function ej(){let e=(0,eD.$N)(),{referrer:t}=eM.document||{},{userAgent:r}=eM.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class e$ extends eE{constructor(e){var t;let r=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eM.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});C(r,"browser",["browser"],eM.SENTRY_SDK_SOURCE||"npm"),r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);let{sendDefaultPii:n,sendClientReports:i,enableLogs:s}=this._options;eM.document&&(i||s)&&eM.document.addEventListener("visibilitychange",()=>{"hidden"===eM.document.visibilityState&&(i&&this._flushOutcomes(),s&&ew(this))}),s&&(this.on("flush",()=>{ew(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{ew(this)},5e3)})),n&&this.on("beforeSendSession",eC)}eventFromException(e,t){return function(e,t,r,n){let i=ex(e,t,r?.syntheticException||void 0,n);return(0,P.M6)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,ed.XW)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let s=eP(e,t,n?.syntheticException||void 0,i);return s.level=r,n?.event_id&&(s.event_id=n.event_id),(0,ed.XW)(s)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let eB={},eF={};function ez(e,t){eB[e]=eB[e]||[],eB[e].push(t)}function eq(e,t){if(!eF[e]){eF[e]=!0;try{t()}catch(t){R.T&&w.Yz.error(`Error while instrumenting ${e}`,t)}}}function eH(e,t){let r=e&&eB[e];if(r)for(let n of r)try{n(t)}catch(t){R.T&&w.Yz.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${(0,F.qQ)(n)} Error:`,t)}}function eW(){"console"in T.O&&w.Ow.forEach(function(e){e in T.O.console&&(0,$.GS)(T.O.console,e,function(t){return w.Z9[e]=t,function(...t){eH("console",{args:t,level:e});let r=w.Z9[e];r?.apply(T.O.console,t)}})})}let eG=T.O;function eJ(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function eV(e,t){let r="fetch";ez(r,e),eq(r,()=>eY(void 0,t))}function eY(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in eG))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(eJ(eG.fetch))return!0;let e=!1,t=eG.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=eJ(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){R.T&&w.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,$.GS)(T.O,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:eZ(t),method:eQ(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:eZ(t),method:eQ(t,"method")?String(t.method).toUpperCase():"GET"}}(r),o={args:r,fetchData:{method:i,url:s},startTimestamp:1e3*(0,eo.zf)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,ea.ks)(t))return new Headers(t.headers)}catch{}}(r)};return e||eH("fetch",{...o}),t.apply(T.O,r).then(async t=>(e?e(t):eH("fetch",{...o,endTimestamp:1e3*(0,eo.zf)(),response:t}),t),e=>{if(eH("fetch",{...o,endTimestamp:1e3*(0,eo.zf)(),error:e}),(0,ea.bJ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,$.my)(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function eK(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function eX(e){let t;try{t=e.clone()}catch{return}eK(t,()=>{eH("fetch-body-resolved",{endTimestamp:1e3*(0,eo.zf)(),response:e})})}function eQ(e,t){return!!e&&"object"==typeof e&&!!e[t]}function eZ(e){return"string"==typeof e?e:e?eQ(e,"url")?e.url:e.toString?e.toString():"":""}function e0(e,t){let r=(0,j.KU)(),n=(0,j.rm)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=r.getOptions();if(s<=0)return;let o={timestamp:(0,eo.lu)(),...e},a=i?(0,w.pq)(()=>i(o,t)):o;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,s))}function e1(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function e2(e){return"isRelative"in e}function e5(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function e3(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function e4(e){return e.split(/[?#]/,1)[0]}let e6=T.O;function e8(e){ez("dom",e),eq("dom",e9)}function e9(){if(!e6.document)return;let e=eH.bind(null,"dom"),t=e7(e,!0);e6.document.addEventListener("click",t,!1),e6.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=e6[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,$.GS)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=n[r]=n[r]||{refCount:0};if(!s.handler){let n=e7(e);s.handler=n,t.call(this,r,n,i)}s.refCount++}catch{}return t.call(this,r,n,i)}}),(0,$.GS)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function e7(e,t=!1){return r=>{var n;if(!r||r._sentryCaptured)return;let a=function(e){try{return e.target}catch{return null}}(r);if(n=r.type,"keypress"===n&&(!a?.tagName||"INPUT"!==a.tagName&&"TEXTAREA"!==a.tagName&&!a.isContentEditable&&1))return;(0,$.my)(r,"_sentryCaptured",!0),a&&!a._sentryId&&(0,$.my)(a,"_sentryId",(0,P.eJ)());let l="keypress"===r.type?"input":r.type;!function(e){if(e.type!==s)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch{}return!0}(r)&&(e({event:r,name:l,global:t}),s=r.type,o=a?a._sentryId:void 0),clearTimeout(i),i=e6.setTimeout(()=>{o=void 0,s=void 0},1e3)}}let te="__sentry_xhr_v3__";function tt(e){ez("xhr",e),eq("xhr",tr)}function tr(){if(!e6.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,eo.zf)(),s=(0,ea.Kg)(r[0])?r[0].toUpperCase():void 0,o=function(e){if((0,ea.Kg)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!s||!o)return e.apply(t,r);t[te]={method:s,url:o,request_headers:{}},"POST"===s&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[te];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}eH("xhr",{endTimestamp:1e3*(0,eo.zf)(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(a(),e.apply(t,r))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,s=t[te];return s&&(0,ea.Kg)(n)&&(0,ea.Kg)(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[te];return n&&(void 0!==r[0]&&(n.body=r[0]),eH("xhr",{startTimestamp:1e3*(0,eo.zf)(),xhr:t})),e.apply(t,r)}})}function tn(e){let t="history";ez(t,e),eq(t,ti)}function ti(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=a,i=function(e){try{return new URL(e,e6.location.origin).toString()}catch{return e}}(String(r));if(a=i,n===i)return e.apply(this,t);eH("history",{from:n,to:i})}return e.apply(this,t)}}e6.addEventListener("popstate",()=>{let e=e6.location.href,t=a;a=e,t!==e&&eH("history",{from:t,to:e})}),"history"in eG&&eG.history&&((0,$.GS)(e6.history,"pushState",e),(0,$.GS)(e6.history,"replaceState",e))}let ts=["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"];function to(e){return function(...t){let r=t[0];return t[0]=eU(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,F.qQ)(e)}`}}),e.apply(this,t)}}function ta(e){return function(t){return e.apply(this,[eU(t,{mechanism:{data:{handler:(0,F.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function tl(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,$.GS)(r,e,function(t){let r={mechanism:{data:{handler:(0,F.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,$.sp)(t);return n&&(r.mechanism.data.handler=(0,F.qQ)(n)),eU(t,r)})}),e.apply(this,t)}}let tc=null;function tu(e){let t="error";ez(t,e),eq(t,td)}function td(){tc=T.O.onerror,T.O.onerror=function(e,t,r,n,i){return eH("error",{column:n,error:i,line:r,msg:e,url:t}),!!tc&&tc.apply(this,arguments)},T.O.onerror.__SENTRY_INSTRUMENTED__=!0}let th=null;function tp(e){let t="unhandledrejection";ez(t,e),eq(t,tf)}function tf(){th=T.O.onunhandledrejection,T.O.onunhandledrejection=function(e){return eH("unhandledrejection",e),!th||th.apply(this,arguments)},T.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function tm(){let e=(0,j.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function tg(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function t_(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function ty(e,t,r,n){let i={filename:e,function:""===t?F.yF:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let tv=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tb=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tE=/\((\S*)(?::(\d+))(?::(\d+))\)/,tS=/at (.+?) ?\(data:(.+?),/,tT=[30,e=>{let t=e.match(tS);if(t)return{filename:``,function:t[1]};let r=tv.exec(e);if(r){let[,e,t,n]=r;return ty(e,F.yF,+t,+n)}let n=tb.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=tE.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=tR(n[1]||F.yF,n[2]);return ty(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tO=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tC=[50,e=>{let t=tw.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tO.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||F.yF;return[r,e]=tR(r,e),ty(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tk=(0,F.gd)(tT,tC),tR=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:F.yF,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tI=Symbol.for("SentryBufferFullError");function tN(e,t,r=Date.now()){return(e[t]||e.all||0)>r}function tA(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},s=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,r,,,s]=e.split(":",5),o=parseInt(t,10),a=(isNaN(o)?60:o)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else o?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(o,n):429===t&&(i.all=n+6e4);return i}let tx={};function tP(e){let t=tx[e];if(t)return t;let r=e6[e];if(eJ(r))return tx[e]=r.bind(e6);let n=e6.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return r?tx[e]=r.bind(e6):r}function tD(...e){return tP("setTimeout")(...e)}function tM(e,t=tP("fetch")){let r=0,n=0;async function i(i){let s=i.body.length;r+=s,n++;let o={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,o);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw tx.fetch=void 0,e}finally{r-=s,n--}}return function(e,t,r=function(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,ed.XW)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>setTimeout(()=>t(!1),e))]):r}}}(e.bufferSize||64)){let n={};return{send:function(i){let s=[];if(X(i,(t,r)=>{let i=Z[r];tN(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):s.push(t)}),0===s.length)return Promise.resolve({});let o=K(i[0],s),a=t=>{X(o,(r,n)=>{e.recordDroppedEvent(t,Z[n])})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[Q(n),e]:n.push("string"==typeof e?Q(e):e)}for(let e of r){let[t,r]=e;if(i(` ${JSON.stringify(t)} `),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,Y.S8)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(o)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&R.T&&w.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=tA(n,e),e),e=>{throw a("network_error"),R.T&&w.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===tI)return R.T&&w.Yz.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,i)}function tL(e){let t;return[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=L(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=L(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,D.Xr)(r,t)}(e,t.ignoreTransactions))return R.T&&w.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${(0,P.$X)(e)}`),!0}else{var r,n,i;if(r=e,n=t.ignoreErrors,n?.length&&x(r).some(e=>(0,D.Xr)(e,n)))return R.T&&w.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${(0,P.$X)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return R.T&&w.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${(0,P.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=U(e);return!!r&&(0,D.Xr)(r,t)}(e,t.denyUrls))return R.T&&w.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${(0,P.$X)(e)}. Url: ${U(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=U(e);return!r||(0,D.Xr)(r,t)}(e,t.allowUrls))return R.T&&w.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${(0,P.$X)(e)}. Url: ${U(e)}`),!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,$.sp)(this),r=B.has((0,j.KU)())&&void 0!==t?t:this;return n.apply(r,e)}}catch{}},setup(e){B.set(e,!0)}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,$.GS)(eM,"setTimeout",to),t.setInterval&&(0,$.GS)(eM,"setInterval",to),t.requestAnimationFrame&&(0,$.GS)(eM,"requestAnimationFrame",ta),t.XMLHttpRequest&&"XMLHttpRequest"in eM&&(0,$.GS)(XMLHttpRequest.prototype,"send",tl);let e=t.eventTarget;e&&(Array.isArray(e)?e:ts).forEach(e=>(function(e,t){let r=eM[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,$.GS)(r,"addEventListener",function(r){return function(n,i,s){var o,a,l,c;try{o=i,"function"==typeof o.handleEvent&&(i.handleEvent=eU(i.handleEvent,{mechanism:{data:{handler:(0,F.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&(a=this,l=n,c=i,a&&"object"==typeof a&&"removeEventListener"in a&&"function"==typeof a.removeEventListener&&a.removeEventListener(l,c)),r.apply(this,[n,eU(i,{mechanism:{data:{handler:(0,F.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),(0,$.GS)(r,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}}))})(e,t))}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,i,s,o,a,l;t.console&&function(e){let t="console";ez(t,e),eq(t,eW)}((r=e,function(e){var t;if((0,j.KU)()!==r)return;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:(0,D.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else n.message=`Assertion failed: ${(0,D.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);e0(n,{input:e.args,level:e.level})})),t.dom&&e8((n=e,i=t.dom,function(e){let t,r;if((0,j.KU)()!==n)return;let s="object"==typeof i?i.serializeAttribute:void 0,o="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;o&&o>1024&&(o=1024),"string"==typeof s&&(s=[s]);try{var a;let n=e.event,i=(a=n)&&a.target?n.target:n;t=(0,eD.Hd)(i,{keyAttrs:s,maxStringLength:o}),r=(0,eD.xE)(i)}catch{t=""}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),e0(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&tt((s=e,function(e){if((0,j.KU)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[te];if(!t||!r||!n)return;let{method:i,url:o,status_code:a,body:l}=n,c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},u={category:"xhr",data:{method:i,url:o,status_code:a},type:"http",level:e1(a)};s.emit("beforeOutgoingRequestBreadcrumb",u,c),e0(u,c)})),t.fetch&&eV((o=e,function(e){if((0,j.KU)()!==o)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let n=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},s={category:"fetch",data:n,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",s,i),e0(s,i)}else{let n=e.response,i={...e.fetchData,status_code:n?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,n?.status;let s={input:e.args,response:n,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:e1(i.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",a,s),e0(a,s)}})),t.history&&tn((a=e,function(e){if((0,j.KU)()!==a)return;let t=e.from,r=e.to,n=e3(eM.location.href),i=t?e3(t):void 0,s=e3(r);i?.path||(i=n),n.protocol===s.protocol&&n.host===s.host&&(r=s.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),e0({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,j.KU)()===l&&e0({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,P.$X)(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,tu(e=>{let{stackParser:t,attachStacktrace:n}=tm();if((0,j.KU)()!==r||eL>0)return;let{msg:i,url:s,line:o,column:a,error:l}=e,c=function(e,t,r,n){let i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},l=a.frames=a.frames||[],c=function(e){if((0,ea.Kg)(e)&&0!==e.length){if(e.startsWith("data:")){let t=e.match(/^data:([^;]+)/),r=t?t[1]:"text/javascript",n=e.includes("base64,");return``}return e.slice(0,1024)}}(t)??(0,eD.$N)();return 0===l.length&&l.push({colno:n,filename:c,function:F.yF,in_app:!0,lineno:r}),e}(ex(t,l||i,void 0,n,!1),s,o,a);c.level="error",(0,k.r)(c,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})),t.onunhandledrejection&&(n=e,tp(e=>{var t;let{stackParser:r,attachStacktrace:i}=tm();if((0,j.KU)()!==n||eL>0)return;let s=function(e){if((0,ea.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),o=(0,ea.sO)(s)?(t=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):ex(r,s,void 0,i,!0);o.level="error",(0,k.r)(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,s){if(!i.exception?.values||!s||!(0,ea.tH)(s.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=function e(t,r,n,i,s,o,a,l){if(o.length>=n+1)return o;let c=[...o];if((0,ea.tH)(i[s],Error)){tg(a,l);let o=t(r,i[s]),u=c.length;t_(o,s,u,l),c=e(t,r,n,i[s],s,[o,...c],o,u)}return Array.isArray(i.errors)&&i.errors.forEach((i,o)=>{if((0,ea.tH)(i,Error)){tg(a,l);let u=t(r,i),d=c.length;t_(u,`errors[${o}]`,d,l),c=e(t,r,n,i,s,[u,...c],u,d)}}),c}(e,t,n,s.originalException,r,i.exception.values,o,0))}(ek,i.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var r,n;if(r=e,(n=t)&&(function(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!q(e,t)&&!!z(e,t)&&!0}(r,n)||function(e,t){let r=H(t),n=H(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!q(e,t)&&!!z(e,t)}(r,n)))return R.T&&w.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}},{name:"HttpContext",preprocessEvent(e){if(!eM.navigator&&!eM.location&&!eM.document)return;let t=ej(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}},{name:"BrowserSession",setupOnce(){void 0!==eM.document&&((0,k.J0)({ignoreDuration:!0}),(0,k.J5)(),tn(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,k.J0)({ignoreDuration:!0}),(0,k.J5)())}))}}]}var tU=r(72223),tj=r(98402),t$=r(85013),tB=r(1108),tF=r(57604);class tz{constructor(e={}){this._traceId=e.traceId||(0,tF.e)(),this._spanId=e.spanId||(0,tF.Z)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ei.CC}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function tq(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[eh.Sn],i=r[eh.xc];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}var tH=r(76589);class tW{constructor(e={}){this._traceId=e.traceId||(0,tF.e)(),this._spanId=e.spanId||(0,tF.Z)(),this._startTime=e.startTimestamp||(0,eo.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[eh.JD]:"manual",[eh.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?ei.aO:ei.CC}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,ei.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(eh.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,ei.cI)(e),function(e){if(!R.T)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,ei.et)(e),{spanId:n}=e.spanContext(),i=(0,ei.zU)(e)===e,s=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;w.Yz.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[eh.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,ei.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[eh.JD],profile_id:this._attributes[eh.E1],exclusive_time:this._attributes[eh.jG],measurements:tq(this._events),is_segment:this._isStandaloneSpan&&(0,ei.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,ei.zU)(this).spanContext().spanId:void 0,links:(0,ei.uU)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){R.T&&w.Yz.log("[Tracing] Adding an event to span:",e);let n=tG(t)?t:r||(0,eo.zf)(),i=tG(t)?{}:t||{},s={name:e,time:(0,ei.cI)(n),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,j.KU)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,ei.zU)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,j.KU)();if(!t)return;let r=e[1];if(!r||0===r.length)return t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){let r=(0,G.k1)(e[0]),n=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:(0,J.SB)(n)}},{beforeSendSpan:o,ignoreSpans:a}=t?.getOptions()||{},l=a?.length?e.filter(e=>!en((0,ei.et)(e),a)):e,c=e.length-l.length;c&&t?.recordDroppedEvent("before_send","span",c);let u=o?e=>{let t=(0,ei.et)(e),r=o(t);return r||((0,ei.xl)(),t)}:ei.et,d=[];for(let e of l){let t=u(e);t&&d.push([{type:"span"},t])}return K(s,d)}([this],e)):(R.T&&w.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&((0,tH.L)(this).scope||(0,j.o5)()).captureEvent(t)}_convertSpanToTransaction(){if(!tJ((0,ei.et)(this)))return;this._name||(R.T&&w.Yz.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:e,isolationScope:t}=(0,tH.L)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=(0,ei.xO)(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof tW&&t.isStandaloneSpan())}).map(e=>(0,ei.et)(e)).filter(tJ),i=this._attributes[eh.i_];delete this._attributes[eh.Le],n.forEach(e=>{delete e.data[eh.Le]});let s={contexts:{trace:(0,ei.Ck)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,G.k1)(this)},request:r,...i&&{transaction_info:{source:i}}},o=tq(this._events);return o&&Object.keys(o).length&&(R.T&&w.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),s.measurements=o),s}}function tG(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tJ(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var tV=r(37426),tY=r(28836);let tK="__SENTRY_SUPPRESS_TRACING__";function tX(e){let t=t1();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=t0(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,j.v4)(e.scope,t):void 0!==i?e=>tQ(i,e):e=>e())(()=>{let t=(0,j.o5)(),s=t5(t,i);return e.onlyIfParent&&!s?new tz:tZ({parentSpan:s,spanArguments:r,forceTransaction:n,scope:t})})}function tQ(e,t){let r=t1();return r.withActiveSpan?r.withActiveSpan(e,t):(0,j.v4)(r=>((0,tB.r)(r,e||void 0),t(r)))}function tZ({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;if(!(0,t$.f)()){let n=new tz;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,G.k1)(n)};(0,G.LZ)(n,e)}return n}let s=(0,j.rm)();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[tK]&&(0,ei.pK)(e),o=s?new tW({...r,parentSpanId:n,traceId:i,sampled:s}):new tz({traceId:i});(0,ei.Hu)(e,o);let a=(0,j.KU)();return a&&(a.emit("spanStart",o),r.endTimestamp&&a.emit("spanEnd",o)),o}(e,n,t),(0,ei.Hu)(e,i);else if(e){let r=(0,G.k1)(e),{traceId:s,spanId:o}=e.spanContext(),a=(0,ei.pK)(e);i=t2({traceId:s,parentSpanId:o,...t},n,a),(0,G.LZ)(i,r)}else{let{traceId:e,dsc:r,parentSpanId:o,sampled:a}={...s.getPropagationContext(),...n.getPropagationContext()};i=t2({traceId:e,parentSpanId:o,...t},n,a),r&&(0,G.LZ)(i,r)}return!function(e){if(!R.T)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,ei.et)(e),{spanId:i}=e.spanContext(),s=(0,ei.pK)(e),o=(0,ei.zU)(e),a=o===e,l=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,c=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&c.push(`parent ID: ${n}`),!a){let{op:e,description:t}=(0,ei.et)(o);c.push(`root ID: ${o.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}w.Yz.log(`${l} ${c.join("\n ")}`)}(i),(0,tH.d)(i,n,s),i}function t0(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,ei.cI)(e.startTime),delete r.startTime,r}return t}function t1(){let e=(0,V.EU)();return(0,tY.h)(e)}function t2(e,t,r){let n=(0,j.KU)(),i=n?.getOptions()||{},{name:s=""}=e,o={spanAttributes:{...e.attributes},spanName:s,parentSampled:r};n?.emit("beforeSampling",o,{decision:!1});let a=o.parentSampled??r,l=o.spanAttributes,c=t.getPropagationContext(),[u,d,h]=t.getScopeData().sdkProcessingMetadata[tK]?[!1]:function(e,t,r){let n,i;if(!(0,t$.f)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let s=(0,ec.i)(n);if(void 0===s)return R.T&&w.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!s)return R.T&&w.Yz.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"}`),[!1,s,i];let o=r{!i&&0===n.size&&o&&(s="idleTimeout",g.end(e))},l)}function v(e){r=setTimeout(()=>{!i&&o&&(s="heartbeatFailed",g.end(e))},u)}function b(e){i=!0,n.clear(),a.forEach(e=>e()),(0,tB.r)(f,m);let t=(0,ei.et)(g),{start_timestamp:r}=t;if(!r)return;t.data[eh.fs]||g.setAttribute(eh.fs,s),w.Yz.log(`[Tracing] Idle span "${t.op}" finished`);let o=(0,ei.xO)(g).filter(e=>e!==g),u=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:tV.TJ,message:"cancelled"}),t.end(e),R.T&&w.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,ei.et)(t),i=n<=e,s=r-n<=(c+l)/1e3;if(R.T){let e=JSON.stringify(t,void 0,2);i?s||w.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):w.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!s||!i)&&((0,ei.VS)(g,t),u++)}),u>0&&g.setAttribute("sentry.idle_span_discarded_spans",u)}return g.end=new Proxy(g.end,{apply(e,t,r){if(d&&d(g),t instanceof tz)return;let[n,...i]=r,s=n||(0,eo.zf)(),o=(0,ei.cI)(s),a=(0,ei.xO)(g).filter(e=>e!==g),l=(0,ei.et)(g);if(!a.length||!h)return b(o),Reflect.apply(e,t,[o,...i]);let u=p.getOptions().ignoreSpans,f=a?.reduce((e,t)=>{let r=(0,ei.et)(t);return!r.timestamp||u&&en(r,u)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),m=l.start_timestamp,_=Math.min(m?m+c/1e3:1/0,Math.max(m||-1/0,Math.min(o,f||1/0)));return b(_),Reflect.apply(e,t,[_,...i])}}),a.push(p.on("spanStart",e=>{var t;!(i||e===g||(0,ei.et)(e).timestamp||e instanceof tW&&e.isStandaloneSpan())&&(0,ei.xO)(g).includes(e)&&(t=e.spanContext().spanId,_(),n.set(t,!0),v((0,eo.zf)()+u/1e3))})),a.push(p.on("spanEnd",e=>{if(!i){var t;t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&y((0,eo.zf)()+l/1e3)}})),a.push(p.on("idleSpanEnableAutoFinish",e=>{e===g&&(o=!0,y(),n.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(g.setStatus({code:tV.TJ,message:"deadline_exceeded"}),s="finalTimeout",g.end())},c),g}let t6=!1;var t8=r(30097);let t9=(e,t,r,n)=>{let i,s;return o=>{t.value>=0&&(o||n)&&((s=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t))}},t7=(e=!0)=>{let t=e6.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart{let e=t7();return e?.activationStart??0},rt=(e,t=-1)=>{let r=t7(),n="navigate";return r&&(e6.document?.prerendering||re()>0?n="prerender":e6.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},rr=new WeakMap;function rn(e,t){return rr.get(e)||rr.set(e,new t),rr.get(e)}class ri{constructor(){ri.prototype.__init.call(this),ri.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let rs=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},ro=e=>{let t=!1;return()=>{t||(e(),t=!0)}},ra=-1,rl=e=>{"hidden"===e6.document.visibilityState&&ra>-1&&(ra="visibilitychange"===e.type?e.timeStamp:0,rc())},rc=()=>{removeEventListener("visibilitychange",rl,!0),removeEventListener("prerenderingchange",rl,!0)},ru=()=>{if(e6.document&&ra<0){let e=re();ra=(e6.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(e6.document?.visibilityState!=="hidden"||e6.document?.prerendering?1/0:0),addEventListener("visibilitychange",rl,!0),addEventListener("prerenderingchange",rl,!0)}return{get firstHiddenTime(){return ra}}},rd=e=>{e6.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rh=[1800,3e3],rp=[.1,.25],rf=0,rm=1/0,rg=0,r_=e=>{e.forEach(e=>{e.interactionId&&(rm=Math.min(rm,e.interactionId),rf=(rg=Math.max(rg,e.interactionId))?(rg-rm)/7+1:0)})},ry=()=>l?rf:performance.interactionCount||0,rv=0;class rb{constructor(){rb.prototype.__init.call(this),rb.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){rv=ry(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((ry()-rv)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let rE=e=>{let t=t=>{("pagehide"===t.type||e6.document?.visibilityState==="hidden")&&e(t)};e6.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},rS=e=>{let t=e6.requestIdleCallback||e6.setTimeout;e6.document?.visibilityState==="hidden"?e():(t(e=ro(e)),rE(e))},rT=[200,500];class rw{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let rO=[2500,4e3],rC=[800,1800],rk=e=>{e6.document?.prerendering?rd(()=>rk(e)):e6.document?.readyState!=="complete"?addEventListener("load",()=>rk(e),!0):setTimeout(e)},rR={},rI={};function rN(e,t=!1){return r$("cls",e,rM,c,t)}function rA(e,t=!1){return r$("lcp",e,rL,u,t)}function rx(e){return r$("inp",e,rj,h)}function rP(e,t){return rB(e,t),rI[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),rs(e,t=>{rD(e,{entries:t})},t)}(e),rI[e]=!0),rF(e,t)}function rD(e,t){let r=rR[e];if(r?.length)for(let e of r)try{e(t)}catch(e){}}function rM(){return((e,t={})=>{((e,t={})=>{rd(()=>{let r,n=ru(),i=rt("FCP"),s=rs("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime{let r,n=rt("CLS",0),i=rn(t,ri),s=e=>{for(let t of e)i._processEntry(t);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},o=rs("layout-shift",s);o&&(r=t9(e,n,rp,t.reportAllChanges),e6.document?.addEventListener("visibilitychange",()=>{e6.document?.visibilityState==="hidden"&&(s(o.takeRecords()),r(!0))}),e6?.setTimeout?.(r))}))})(e=>{rD("cls",{metric:e}),c=e},{reportAllChanges:!0})}function rL(){return((e,t={})=>{rd(()=>{let r,n=ru(),i=rt("LCP"),s=rn(t,rw),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))s._processEntry(o),o.startTime{o(a.takeRecords()),a.disconnect(),r(!0)});for(let e of["keydown","click","visibilitychange"])e6.document&&addEventListener(e,()=>rS(n),{capture:!0,once:!0})}})})(e=>{rD("lcp",{metric:e}),u=e},{reportAllChanges:!0})}function rU(){return((e,t={})=>{let r=rt("TTFB"),n=t9(e,r,rC,t.reportAllChanges);rk(()=>{let e=t7();e&&(r.value=Math.max(e.responseStart-re(),0),r.entries=[e],n(!0))})})(e=>{rD("ttfb",{metric:e}),d=e})}function rj(){return((e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&rd(()=>{let r;"interactionCount"in performance||l||(l=rs("event",r_,{type:"event",buffered:!0,durationThreshold:0}));let n=rt("INP"),i=rn(t,rb),s=e=>{rS(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==n.value&&(n.value=t._latency,n.entries=t.entries,r())})},o=rs("event",s,{durationThreshold:t.durationThreshold??40});r=t9(e,n,rT,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),rE(()=>{s(o.takeRecords()),r(!0)}))})})(e=>{rD("inp",{metric:e}),h=e})}function r$(e,t,r,n,i=!1){let s;return rB(e,t),rI[e]||(s=r(),rI[e]=!0),n&&t({metric:n}),rF(e,t,i?s:void 0)}function rB(e,t){rR[e]=rR[e]||[],rR[e].push(t)}function rF(e,t,r){return()=>{r&&r();let n=rR[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function rz(e){return"number"==typeof e&&isFinite(e)}function rq(e,t,r,{...n}){let i=(0,ei.et)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),tQ(e,()=>{let e=tX({startTime:t,...n});return e&&e.end(r),e})}function rH(e){let t,r=(0,j.KU)();if(!r)return;let{name:n,transaction:i,attributes:s,startTime:o}=e,{release:a,environment:l,sendDefaultPii:c}=r.getOptions(),u=r.getIntegrationByName("Replay"),d=u?.getReplayId(),h=(0,j.o5)(),p=h.getUser(),f=void 0!==p?p.email||p.id||p.ip_address:void 0;try{t=h.getScopeData().contexts.profile.profile_id}catch{}return tX({name:n,attributes:{release:a,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":e6.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s},startTime:o,experimental:{standalone:!0}})}function rW(){return e6.addEventListener&&e6.performance}function rG(e){return e/1e3}function rJ(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function rV(e,t){let r,n=!1;function i(e){!n&&r&&t(e,r),n=!0}rE(()=>{i("pagehide")});let s=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),s(),o())}),o=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,o()})}function rY(e){return e?(((0,eo.k3)()||performance.timeOrigin)+e)/1e3:e}function rK(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,eo.k3)()||rW()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":rY(e.redirectStart),"http.request.redirect_end":rY(e.redirectEnd),"http.request.worker_start":rY(e.workerStart),"http.request.fetch_start":rY(e.fetchStart),"http.request.domain_lookup_start":rY(e.domainLookupStart),"http.request.domain_lookup_end":rY(e.domainLookupEnd),"http.request.connect_start":rY(e.connectStart),"http.request.secure_connection_start":rY(e.secureConnectionStart),"http.request.connection_end":rY(e.connectEnd),"http.request.request_start":rY(e.requestStart),"http.request.response_start":rY(e.responseStart),"http.request.response_end":rY(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let rX=0,rQ={};function rZ(e,t,r,n,i=r){var s;let o=t["secureConnection"===(s=r)?"connectEnd":"fetch"===s?"domainLookupStart":`${s}End`],a=t[`${r}Start`];a&&o&&rq(e,n+rG(a),n+rG(o),{op:`browser.${i}`,name:t.name,attributes:{[eh.JD]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let r0=[],r1=new Map,r2={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"},r5=({metric:e})=>{if(void 0==e.value)return;let t=rG(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&r2[t.name]);if(!r)return;let{interactionId:n}=r,i=r2[r.name],s=rG((0,eo.k3)()+r.startTime),o=(0,ei.Bk)(),a=o?(0,ei.zU)(o):void 0,l=(null!=n?r1.get(n):void 0)||a,c=l?(0,ei.et)(l).description:(0,j.o5)().getScopeData().transactionName,u=rH({name:(0,eD.Hd)(r.target),transaction:c,attributes:{[eh.JD]:"auto.http.browser.inp",[eh.uT]:`ui.interaction.${i}`,[eh.jG]:r.duration},startTime:s});u&&(u.addEvent("inp",{[eh.Sn]:"millisecond",[eh.xc]:e.value}),u.end(s+t))},r3=({entries:e})=>{let t=(0,ei.Bk)(),r=t?(0,ei.zU)(t):void 0,n=r?(0,ei.et)(r).description:(0,j.o5)().getScopeData().transactionName;e.forEach(e=>{if(!e.identifier)return;let t=e.name,r=e.renderTime,i=e.loadTime,[s,o]=i?[rG(i),"load-time"]:r?[rG(r),"render-time"]:[(0,eo.zf)(),"entry-emission"],a="image-paint"===t?rG(Math.max(0,(r??0)-(i??0))):0,l={[eh.JD]:"auto.ui.browser.elementtiming",[eh.uT]:"ui.elementtiming",[eh.i_]:"component","sentry.span_start_time_source":o,"sentry.transaction_name":n,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":r,"element.load_time":i,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};!function(e,t){let r=t1();if(r.startSpan)return r.startSpan(e,t);let n=t0(e),{forceTransaction:i,parentSpan:s,scope:o}=e,a=o?.clone();(0,j.v4)(a,()=>{var r;return(void 0!==(r=s)?e=>tQ(r,e):e=>e())(()=>{let r=(0,j.o5)(),o=t5(r,s),a=e.onlyIfParent&&!o?new tz:tZ({parentSpan:o,spanArguments:n,forceTransaction:i,scope:r});return(0,tB.r)(r,a),function(e,t,r=()=>{},n=()=>{}){var i,s,o,a;let l;try{l=e()}catch(e){throw t(e),r(),e}return i=l,s=t,o=r,a=n,(0,ea.Qg)(i)?i.then(e=>(o(),a(e),e),e=>{throw s(e),o(),e}):(o(),a(i),i)}(()=>t(a),()=>{let{status:e}=(0,ei.et)(a);a.isRecording()&&(!e||"ok"===e)&&a.setStatus({code:tV.TJ,message:"internal_error"})},()=>{a.end()})})})}({name:`element[${e.identifier}]`,attributes:l,startTime:s,onlyIfParent:!0},e=>{e.end(s+a)})})},r4="sentry_previous_trace";function r6(e){return 1===e.traceFlags}var r8=r(94941);function r9(e={}){let t=e.client||(0,j.KU)();if(!(0,k.Ol)()||!t)return{};let r=(0,V.EU)(),n=(0,tY.h)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,j.o5)(),s=e.span||(0,ei.Bk)(),o=s?(0,ei.Qh)(s):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,t8.TC)(t,n,r)}(i),a=s?(0,G.k1)(s):(0,G.ao)(t,i),l=(0,r8.De)(a);if(!t8.MI.test(o))return w.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":o,baggage:l};if(e.propagateTraceparent){let e=s?(0,ei.G_)(s):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,t8.Iy)(t,n,r)}(i);e&&(c.traceparent=e)}return c}function r7(e){return e.split(",").some(e=>e.trim().startsWith(r8.sv))}let ne=new WeakMap,nt=new Map,nr={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function nn(e){let{url:t}=(0,ei.et)(e).data;if(!t||"string"!=typeof t)return;let r=rP("resource",({entries:n})=>{n.forEach(n=>{"resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)&&(e.setAttributes(rK(n)),setTimeout(r))})})}function ni(e){try{return new URL(e,eM.location.origin).href}catch{return}}let ns={...t3,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...nr};function no(e,t,r){e.emit("startPageLoadSpan",t,r),(0,j.o5)().setTransactionName(t.name);let n=e[nc];return n&&e.emit("afterStartPageLoadSpan",n),n}function na(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let s=(0,j.o5)();return s.setTransactionName(t.name),n&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...ej(),url:n}}),e[nc]}function nl(e){let t=eM.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}let nc="_sentry_idleSpan";var nu=r(96011);let nd=T.O,nh=null,np=new Map,nf=new Map;function nm(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return r}let ng=e=>{let t=function(){if(!nd?._sentryRouteManifest||"string"!=typeof nd._sentryRouteManifest)return null;let e=nd._sentryRouteManifest;if(nh&&E===e)return nh;np.clear(),nf.clear();let t={staticRoutes:[],dynamicRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return nh=t,E=e,t}catch{return nu.T&&w.Yz.warn("Could not extract route manifest"),null}}();if(!t)return;if(nf.has(e))return nf.get(e);let{staticRoutes:r,dynamicRoutes:n}=t;if(!Array.isArray(r)||!Array.isArray(n))return;let i=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=function(e){if(np.has(e))return np.get(e)??null;try{let t=new RegExp(e);return np.set(e,t),t}catch(t){return nu.T&&w.Yz.warn("Could not compile regex",{regexString:e,error:t}),null}}(t.regex);r?.test(e)&&n.push(t.path)}return n})(e,r,n).sort((e,t)=>nm(e)-nm(t))[0];return nf.set(e,i),i},n_="incomplete-app-router-transaction",ny={current:void 0},nv=T.O;function nb(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let nE=new WeakSet;function nS(e,t,r){nE.has(t)||(nE.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,s){!1;let o=n_,a={[eh.uT]:"navigation",[eh.JD]:"auto.navigation.nextjs.app_router_instrumentation",[eh.i_]:"url"};"push"===n?(o=nb(s[0]),a["navigation.type"]="router.push"):"replace"===n?(o=nb(s[0]),a["navigation.type"]="router.replace"):"back"===n?a["navigation.type"]="router.back":"forward"===n&&(a["navigation.type"]="router.forward");let l=ng(o);return r.current=na(e,{name:l??o,attributes:{...a,[eh.i_]:l?"route":"url"}}),t.apply(i,s)}}))}))}var nT=r(9385);let nw=nT.events?nT:nT.default,nO=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function nC(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function nk(e){let t=0;for(;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}var nR=r(98402);let nI=T.O;var nN=r(98402);let nA=!1,nx=T.O;function nP(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var nD=r(98402);function nM(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==nD?nD:0))||function(){let e=T.O.process;return e?.type==="renderer"}())}function nL(e){return new URLSearchParams(e).toString()}function nU(e,t=w.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nL(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function nj(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}let n$=T.O,nB="sentryReplaySession",nF="Unable to send Replay";var nz=Object.defineProperty,nq=(e,t,r)=>((e,t,r)=>t in e?nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),nH=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(nH||{});function nW(e){let t=e?.host;return t?.shadowRoot===e}function nG(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function nJ(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,nV).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function nV(e){let t;if("styleSheet"in e)try{t=nJ(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;rthis.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function nK({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function nX({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function nQ(e){return e.toLowerCase()}function nZ(e){return e.toUpperCase()}let n0="__rrweb_original__";function n1(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?nQ(t):null}function n2(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function n5(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let n3={};function n4(e){let t=n3[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return n3[e]=n.bind(window)}function n6(...e){return n4("setTimeout")(...e)}function n8(...e){return n4("clearTimeout")(...e)}function n9(e){try{return e.contentDocument}catch(e){}}let n7=1,ie=RegExp("[^a-z0-9-_:]");function it(){return n7++}let ir=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ii=/^(?:[a-z+]+:)?\/\//i,is=/^www\..*/i,io=/^(data:)([^,]*),(.*)/i;function ia(e,t){return(e||"").replace(ir,(e,r,n,i,s,o)=>{let a=n||s||o,l=r||i||"";if(!a)return e;if(ii.test(a)||is.test(a)||io.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let c=t.split("/"),u=a.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${l})`})}let il=/^[^ \t\n\r\u000c]+/,ic=/^[, \t\n\r\u000c]+/,iu=new WeakMap;function id(e,t){return t&&""!==t.trim()?ih(e,t):t}function ih(e,t){let r=iu.get(e);if(r||(r=e.createElement("a"),iu.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ip(e,t,r,n,i,s){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return id(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return id(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(ic),!(r>=t.length);){let s=n(il);if(","===s.slice(-1))s=id(e,s.substring(0,s.length-1)),i.push(s);else{let n="";s=id(e,s);let o=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((s+n).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,i.push((s+n).trim());break}else"("===e&&(o=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return ia(n,ih(e));else if("object"===t&&"data"===r)return id(e,n);return"function"==typeof s?s(r,n,i):n}function im(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ig(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:ig(e.parentNode,t,r,n+1)}function i_(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function iy(e,t,r,n,i,s){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,l=-1;if(s){if((l=ig(o,i_(n,i)))<0)return!0;a=ig(o,i_(t,r),l>=0?l:1/0)}else{if((a=ig(o,i_(t,r)))<0)return!1;l=ig(o,i_(n,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!s}catch(e){}return!!s}function iv(e){return null==e?"":e.toLowerCase()}function ib(e,t){let r,{doc:n,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:E,dataURLOptions:S={},inlineImages:T=!1,recordCanvas:w=!1,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:k=5e3,onBlockedImageLoad:R,onStylesheetLoad:I,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:x=!1}=t,{preserveWhiteSpace:P=!0}=t,D=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:_,maskInputFn:y,dataURLOptions:v={},inlineImages:b,recordCanvas:E,keepIframeSrcFn:S,newlyAddedElement:T=!1}=t,w=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:nH.Document,childNodes:[],compatMode:e.compatMode};return{type:nH.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:nH.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:a,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:_=!1,rootId:y,maskTextClass:v,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:S}=t,T=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,s,o),w=function(e){if(e instanceof HTMLFormElement)return"form";let t=nQ(e.tagName);return ie.test(t)?"div":t}(e),O={},C=e.attributes.length;for(let t=0;tt.href===e.href),r=null;t&&(r=nJ(t)),r&&(O.rel=null,O.href=null,O.crossorigin=null,O._cssText=ia(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=nJ(e.sheet);t&&(O._cssText=ia(t,ih(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){let t=n1(e),r=n2(e,nZ(w),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=iy(e,v,E,b,S,nK({type:t,tagName:nZ(w),maskInputOptions:l}));O.value=nX({isMasked:n,element:e,value:r,maskInputFn:u})}n&&(O.checked=n)}if("option"===w&&(e.selected&&!l.select?O.selected=!0:delete O.selected),"canvas"===w&&p){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r0!==e))return!1}return!0}(e)&&(O.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(O.rr_dataURL=t)}}if("img"===w&&h){m||(g=(m=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{m.width=e.naturalWidth,m.height=e.naturalHeight,g.drawImage(e,0,0),O.rr_dataURL=m.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?O.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===w||"video"===w)&&(O.rr_mediaState=e.paused?"paused":"played",O.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(O.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(O.rr_scrollTop=e.scrollTop)),T){let{width:t,height:r}=e.getBoundingClientRect();O={class:O.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==w||f(O.src)||(T||n9(e)||(O.rr_src=O.src),delete O.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:nH.Element,tagName:w,attributes:O,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:T,rootId:y,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:f,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:E,keepIframeSrcFn:S,newlyAddedElement:T,rootId:w,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,h=e.textContent,p="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(h=nJ(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=ia(h,ih(t.doc))}f&&(h="SCRIPT_PLACEHOLDER");let g=iy(e,n,s,i,o,r);return p||f||m||!h||!g||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*")),m&&h&&(l.textarea||g)&&(h=c?c(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h&&(h=nX({isMasked:iy(e,n,s,i,o,nK({type:null,tagName:d,maskInputOptions:l})),element:e,value:h,maskInputFn:c})),{type:nH.Text,textContent:h||"",isStyle:p,rootId:u}}(e,{doc:r,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:_,maskInputOptions:f,maskInputFn:y,rootId:w});case e.CDATA_SECTION_NODE:return{type:nH.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:nH.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}(e,{doc:n,mirror:i,blockClass:s,blockSelector:o,maskAllText:l,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,dataURLOptions:S,inlineImages:T,recordCanvas:w,keepIframeSrcFn:A,newlyAddedElement:x});if(!D)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===nH.Comment)return!0;if(e.type===nH.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===n5(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(iv(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iv(e.attributes.name)||"icon"===iv(e.attributes.rel)||"apple-touch-icon"===iv(e.attributes.rel)||"shortcut icon"===iv(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&iv(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(iv(e.attributes.property).match(/^(og|twitter|fb):/)||iv(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===iv(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===iv(e.attributes.name)||"googlebot"===iv(e.attributes.name)||"bingbot"===iv(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===iv(e.attributes.name)||"generator"===iv(e.attributes.name)||"framework"===iv(e.attributes.name)||"publisher"===iv(e.attributes.name)||"progid"===iv(e.attributes.name)||iv(e.attributes.property).match(/^article:/)||iv(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===iv(e.attributes.name)||"yandex-verification"===iv(e.attributes.name)||"csrf-token"===iv(e.attributes.name)||"p:domain_verify"===iv(e.attributes.name)||"verify-v1"===iv(e.attributes.name)||"verification"===iv(e.attributes.name)||"shopify-checkout-api-token"===iv(e.attributes.name)))return!0}}return!1}(D,E)&&(P||D.type!==nH.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?it():-2;let M=Object.assign(D,{id:r});if(i.add(e,M),-2===r)return null;O&&O(e);let L=!p;if(M.type===nH.Element){L=L&&!M.needBlock;let t=e.shadowRoot;t&&nG(t)&&(M.isShadowHost=!0)}if((M.type===nH.Document||M.type===nH.Element)&&L){E.headWhitespace&&M.type===nH.Element&&"head"===M.tagName&&(P=!1);let t={doc:n,mirror:i,blockClass:s,blockSelector:o,maskAllText:l,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:p,inlineStylesheet:f,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:E,dataURLOptions:S,inlineImages:T,recordCanvas:w,preserveWhiteSpace:P,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:k,onBlockedImageLoad:R,onStylesheetLoad:I,stylesheetLoadTimeout:N,keepIframeSrcFn:A};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=ib(r,t);e&&M.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=ib(r,t);n&&(nG(e.shadowRoot)&&(n.isShadow=!0),M.childNodes.push(n))}}if(e.parentNode&&nW(e.parentNode)&&nG(e.parentNode)&&(M.isShadow=!0),M.type!==nH.Element||"iframe"!==M.tagName||M.needBlock||function(e,t,r){let n,i=e.contentWindow;if(!i)return;let s=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=n6(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{n8(n),s=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return n6(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=n9(e);if(t&&C){let r=ib(t,{doc:t,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:E,dataURLOptions:S,inlineImages:T,recordCanvas:w,preserveWhiteSpace:P,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:k,onStylesheetLoad:I,stylesheetLoadTimeout:N,keepIframeSrcFn:A});r&&C(e,r)}},k),M.type===nH.Element&&"img"===M.tagName&&!e.complete&&M.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&R)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&R(e,M,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return M.type===nH.Element&&"link"===M.tagName&&"string"==typeof M.attributes.rel&&("stylesheet"===M.attributes.rel||"preload"===M.attributes.rel&&"string"==typeof M.attributes.href&&"css"===n5(M.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let s=n6(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{n8(s),i=!0,t()})}(e,()=>{if(I){let t=ib(e,{doc:n,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:_,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:E,dataURLOptions:S,inlineImages:T,recordCanvas:w,preserveWhiteSpace:P,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:k,onStylesheetLoad:I,stylesheetLoadTimeout:N,keepIframeSrcFn:A});t&&I(e,t)}},N),M.type===nH.Element&&delete M.needBlock,M}function iE(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let iS="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",iT={map:{},getId:()=>(console.error(iS),-1),getNode:()=>(console.error(iS),null),removeNodeFromMap(){console.error(iS)},has:()=>(console.error(iS),!1),reset(){console.error(iS)}};function iw(e,t,r={}){let n=null,i=0;return function(...s){let o=Date.now();i||!1!==r.leading||(i=o);let a=t-(o-i),l=this;a<=0||a>t?(n&&(function(...e){iF("clearTimeout")(...e)}(n),n=null),i=o,e.apply(l,s)):n||!1===r.trailing||(n=iz(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},a))}}function iO(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(iT=new Proxy(iT,{get:(e,t,r)=>("map"===t&&console.error(iS),Reflect.get(e,t,r))}));let iC=Date.now;function ik(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function iR(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iI(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iN(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function iA(e,t,r,n,i){if(!e)return!1;let s=iN(e);if(!s)return!1;let o=i_(t,r);if(!i){let e=n&&s.matches(n);return o(s)&&!e}let a=ig(s,o),l=-1;return!(a<0)&&(n&&(l=ig(s,i_(null,n))),a>-1&&l<0||anew Date().getTime());class iU{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ij(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function i$(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=ij(r);)r=t;return r}(e);return t.contains(r)}(e))}let iB={};function iF(e){let t=iB[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return iB[e]=n.bind(window)}function iz(...e){return iF("setTimeout")(...e)}var iq=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(iq||{}),iH=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(iH||{}),iW=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(iW||{}),iG=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(iG||{}),iJ=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(iJ||{});function iV(e){try{return e.contentDocument}catch(e){}}class iY{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r`${e}@${t}`;class iX{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new iY,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!i$(i))return;let s=nW(i.parentNode)?this.mirror.getId(ij(i)):this.mirror.getId(i.parentNode),o=n(i);if(-1===s||-1===o)return r.addNode(i);let a=ib(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{iD(e,this.mirror)&&!iA(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),iM(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),iL(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{iA(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})}});a&&(e.push({parentId:s,nextId:o,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!iZ(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)i0(this.droppedSet,e)||iZ(this.removes,e,this.mirror)?i0(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;r.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),r=n(s.value);-1!==t&&-1!==r&&(e=s)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}s=e.previous,r.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!ix(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;iA(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:iy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,iN(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=n1(t),i=t.tagName;n=n2(t,i,r);let s=nK({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=nX({isMasked:iy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:n,maskInputFn:this.maskInputFn})}if(iA(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(iV(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!im(t.tagName,r)&&(i.attributes[r]=ip(this.doc,nQ(t.tagName),nQ(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),s=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||s!==r.style.getPropertyPriority(n)?""===s?i.styleDiff[n]=e:i.styleDiff[n]=[e,s]:i._unchangedStyles[n]=[e,s]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(iA(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=nW(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);iA(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ix(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(iQ(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(nW(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[iK(r,n)]?iQ(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(nW(e.target)&&nG(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ix(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[iK(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!iA(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),iL(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function iQ(e,t){e.delete(t),t.childNodes?.forEach(t=>iQ(e,t))}function iZ(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function i0(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let i1=e=>_?(...t)=>{try{return e(...t)}catch(e){if(_&&!0===_(e))return()=>{};throw e}}:e,i2=[];function i5(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function i3(e,t){let r=new iX;i2.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let s=new n(i1(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function i4({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:o}){return iE("scroll",i1(iw(i1(o=>{let a=i5(o);if(!a||iA(a,n,i,s,!0))return;let l=r.getId(a);if(a===t&&t.defaultView){let r=ik(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100)),t)}let i6=["INPUT","TEXTAREA","SELECT"],i8=new WeakMap;function i9(e){var t=[];if(sr("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||sr("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||sr("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||sr("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function i7(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function se({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,s=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&s?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(e){let r=s.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),i1(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function st(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=i3(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=iw(i1(t=>{let r=Date.now()-i;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],i=null}),o),c=i1(iw(i1(e=>{let t=i5(e),{clientX:r,clientY:s}=iP(e)?e.changedTouches[0]:e;i||(i=iC()),a.push({x:r,y:s,id:n.getId(t),timeOffset:iC()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?iH.Drag:e instanceof MouseEvent?iH.MouseMove:iH.TouchMove)}),s,{trailing:!1})),u=[iE("mousemove",c,r),iE("touchmove",c,r),iE("drag",c,r)];return i1(()=>{u.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],c=null;return Object.keys(iW).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(o=>{let a=nQ(o),u=t=>{let a=i5(t);if(iA(a,n,i,s,!0))return;let l=null,u=o;if("pointerType"in t){switch(t.pointerType){case"mouse":l=iG.Mouse;break;case"touch":l=iG.Touch;break;case"pen":l=iG.Pen}l===iG.Touch?iW[o]===iW.MouseDown?u="TouchStart":iW[o]===iW.MouseUp&&(u="TouchEnd"):iG.Pen}else iP(t)&&(l=iG.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===iG.Touch||u.startsWith("Mouse")&&l===iG.Mouse)&&(l=null)):iW[o]===iW.Click&&(l=c,c=null);let d=iP(t)?t.changedTouches[0]:t;if(!d)return;let h=r.getId(a),{clientX:p,clientY:f}=d;i1(e)({type:iW[u],id:h,x:p,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(iW[o]){case iW.MouseDown:case iW.MouseUp:a=a.replace("mouse","pointer");break;case iW.TouchStart:case iW.TouchEnd:return}l.push(iE(a,u,t))}),i1(()=>{l.forEach(e=>e())})}(e),o=i4(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return iE("resize",i1(iw(i1(()=>{let t=iR(),i=iI();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:a,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=i5(e),u=e.isTrusted,g=r&&nZ(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>i6.indexOf(g)||iA(r,n,i,s,!0))return;let y=r;if(y.classList.contains(o)||a&&y.matches(a))return;let v=n1(r),b=n2(y,g,v),E=!1,S=nK({maskInputOptions:l,tagName:g,type:v}),T=iy(r,h,f,p,m,S);("radio"===v||"checkbox"===v)&&(E=r.checked),b=nX({isMasked:T,element:r,value:b,maskInputFn:c}),_(r,d?{text:b,isChecked:E,userTriggered:u}:{text:b,isChecked:E});let w=r.name;"radio"===v&&w&&E&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==r){let t=nX({isMasked:T,element:e,value:n2(e,g,v),maskInputFn:c});_(e,d?{text:t,isChecked:!E,userTriggered:!1}:{text:t,isChecked:!E})}})}function _(t,n){let i=i8.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){i8.set(t,n);let i=r.getId(t);i1(e)({...n,id:i})}}let y=("last"===u.input?["change"]:["input","change"]).map(e=>iE(e,i1(g),t)),v=t.defaultView;if(!v)return()=>{y.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),E=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...E.map(e=>(function e(t,r,n,i,s=window){let o=s.Object.getOwnPropertyDescriptor(t,r);return s.Object.defineProperty(t,r,i?n:{set(e){iz(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)})(e[0],e[1],{set(){i1(g)({target:this,isTrusted:!1})}},!1,v))),i1(()=>{y.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:s,doc:o}){let a=i1(o=>iw(i1(s=>{let a=i5(s);if(!a||iA(a,t,r,n,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=a;e({type:o,id:i.getId(a),currentTime:l,volume:c,muted:u,playbackRate:d})}),s.media||500)),l=[iE("play",a(iJ.Play),o),iE("pause",a(iJ.Pause),o),iE("seeked",a(iJ.Seeked),o),iE("volumechange",a(iJ.VolumeChange),o),iE("ratechange",a(iJ.RateChange),o)];return i1(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,s;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:i1((n,i,s)=>{let[o,a]=s,{id:l,styleId:c}=i7(i,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),n.apply(i,s)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:i1((n,i,s)=>{let[o]=s,{id:a,styleId:l}=i7(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),n.apply(i,s)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:i1((n,i,s)=>{let[o]=s,{id:a,styleId:l}=i7(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),n.apply(i,s)})})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:i1((n,i,s)=>{let[o]=s,{id:a,styleId:l}=i7(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),n.apply(i,s)})}));let l={};sn("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(sn("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),sn("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),sn("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([n,i])=>{c[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[n].insertRule,{apply:i1((n,i,s)=>{let[o,a]=s,{id:l,styleId:c}=i7(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...i9(i),a||0]}]}),n.apply(i,s)})}),i.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:i1((n,i,s)=>{let[o]=s,{id:a,styleId:l}=i7(i.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...i9(i),o]}]}),n.apply(i,s)})})}),i1(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=se(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:i1((i,o,a)=>{let[l,c,u]=a;if(r.has(l))return s.apply(o,[l,c,u]);let{id:d,styleId:h}=i7(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:l,value:c,priority:u},index:i9(o.parentRule)}),i.apply(o,a)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:i1((i,s,a)=>{let[l]=a;if(r.has(l))return o.apply(s,[l]);let{id:c,styleId:u}=i7(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:i9(s.parentRule)}),i.apply(s,a)})}),i1(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,s=r.FontFace;r.FontFace=function(e,t,r){let n=new s(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let o=iO(t.fonts,"add",function(t){return function(r){return iz(i1(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=s}),n.push(o),i1(()=>{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,selectionCb:o}=e,a=!0,l=i1(()=>{let e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return i1(()=>{i2.forEach(e=>e.reset()),r?.disconnect(),i(),s(),o(),a(),l(),c(),u(),d(),h(),p(),f(),m(),g.forEach(e=>e())})}function sr(e){return void 0!==window[e]}function sn(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class si{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),s=n||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),s.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=n.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class ss{constructor(){this.crossOriginIframeMirror=new si(it),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class so{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new si(it),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new si(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=iV(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case iq.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:iq.IncrementalSnapshot,data:{source:iH.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case iq.Meta:case iq.Load:case iq.DomContentLoaded:break;case iq.Plugin:return t;case iq.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case iq.IncrementalSnapshot:switch(t.data.source){case iH.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iH.Drag:case iH.TouchMove:case iH.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iH.ViewportResize:return!1;case iH.MediaInteraction:case iH.MouseInteraction:case iH.Scroll:case iH.CanvasMutation:case iH.Input:return this.replaceIds(t.data,e,["id"]),t;case iH.StyleSheetRule:case iH.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case iH.Font:return t;case iH.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case iH.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===nH.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class sa{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class sl{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!nG(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=i3({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(i4({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),iz(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(se({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=iV(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(iO(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&i$(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var sc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",su="undefined"==typeof Uint8Array?[]:new Uint8Array(256),sd=0;sd({rule:nV(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class sf{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){iF("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let sm=new nY;function sg(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:b,slimDOMOptions:E,maskAttributeFn:S,maskInputFn:T,maskTextFn:w,maxCanvasSize:O=null,packFn:C,sampling:k={},dataURLOptions:R={},mousemoveWait:I,recordDOM:N=!0,recordCanvas:A=!1,recordCrossOriginIframes:x=!1,recordAfter:P="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:M=!1,inlineImages:L=!1,plugins:U,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:$=new Set([]),errorHandler:B,onMutation:F,getCanvasManager:z}=e;_=B;let q=!x||window.parent===window,H=!1;if(!q)try{window.parent.document&&(H=!1)}catch(e){H=!0}if(q&&!r)throw Error("emit function is required");if(!q&&!H)return()=>{};void 0!==I&&void 0===k.mousemove&&(k.mousemove=I),sm.reset();let W=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==b?b:{},G=!0===E||"all"===E?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===E,headMetaDescKeywords:"all"===E}:E||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let J=0,V=e=>{for(let t of U||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&!H&&(e=C(e)),e};y=(e,s)=>{if(e.timestamp=iC(),i2[0]?.isFrozen()&&e.type!==iq.FullSnapshot&&(e.type!==iq.IncrementalSnapshot||e.data.source!==iH.Mutation)&&i2.forEach(e=>e.unfreeze()),q)r?.(V(e),s);else if(H){let t={type:"rrweb",event:V(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===iq.FullSnapshot)t=e,J=0;else if(e.type===iq.IncrementalSnapshot){if(e.data.source===iH.Mutation&&e.data.isAttachIframe)return;J++;let r=i&&J>=i,s=n&&t&&e.timestamp-t.timestamp>n;(r||s)&&en(!0)}};let Y=e=>{y({type:iq.IncrementalSnapshot,data:{source:iH.Mutation,...e}})},K=e=>y({type:iq.IncrementalSnapshot,data:{source:iH.Scroll,...e}}),X=e=>y({type:iq.IncrementalSnapshot,data:{source:iH.CanvasMutation,...e}}),Q=new sp({mutationCb:Y,adoptedStyleSheetCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ss:new so({mirror:sm,mutationCb:Y,stylesheetManager:Q,recordCrossOriginIframes:x,wrappedEmit:y});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:sm,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new sf,et=function(e,t){try{return e?e(t):new sh}catch{return console.warn("Unable to initialize CanvasManager"),new sh}}(z,{mirror:sm,win:window,mutationCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.CanvasMutation,...e}}),recordCanvas:A,blockClass:s,blockSelector:o,unblockSelector:a,maxCanvasSize:O,sampling:k.canvas,dataURLOptions:R,errorHandler:B}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new sa:new sl({mutationCb:Y,scrollCb:K,bypassOptions:{onMutation:F,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:W,dataURLOptions:R,maskAttributeFn:S,maskTextFn:w,maskInputFn:T,recordCanvas:A,inlineImages:L,sampling:k,slimDOMOptions:G,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:j,processedNodeManager:ee},mirror:sm}),en=(e=!1)=>{if(!N)return;y({type:iq.Meta,data:{href:window.location.href,width:iI(),height:iR()}},e),Q.reset(),er.init(),i2.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new nY,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:E,onIframeLoad:S,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:O,stylesheetLoadTimeout:C,keepIframeSrcFn:k=()=>!1}=t||{};return ib(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:v,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:E,onIframeLoad:S,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:O,stylesheetLoadTimeout:C,keepIframeSrcFn:k,newlyAddedElement:!1})}(document,{mirror:sm,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:W,maskAttributeFn:S,maskInputFn:T,maskTextFn:w,slimDOM:G,dataURLOptions:R,recordCanvas:A,inlineImages:L,onSerialize:e=>{iD(e,sm)&&Z.addIframe(e),iM(e,sm)&&Q.trackLinkElement(e),iL(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{Y({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:j});if(!t)return console.warn("Failed to snapshot the document");y({type:iq.FullSnapshot,data:{node:t,initialOffset:ik(window)}}),i2.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,sm.getId(document))};v=en;try{let e=[],t=e=>i1(st)({onMutation:F,mutationCb:Y,mousemoveCb:(e,t)=>y({type:iq.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.ViewportResize,...e}}),inputCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.Input,...e}}),mediaInteractionCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.MediaInteraction,...e}}),styleSheetRuleCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.StyleSheetRule,...e}}),styleDeclarationCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>y({type:iq.IncrementalSnapshot,data:{source:iH.Font,...e}}),selectionCb:e=>{y({type:iq.IncrementalSnapshot,data:{source:iH.Selection,...e}})},customElementCb:e=>{y({type:iq.IncrementalSnapshot,data:{source:iH.CustomElement,...e}})},blockClass:s,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:W,inlineStylesheet:m,sampling:k,recordDOM:N,recordCanvas:A,inlineImages:L,userTriggeredOnInput:D,collectFonts:M,doc:e,maskAttributeFn:S,maskInputFn:T,maskTextFn:w,keepIframeSrcFn:j,blockSelector:o,unblockSelector:a,slimDOMOptions:G,dataURLOptions:R,mirror:sm,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:$,plugins:U?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>y({type:iq.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(iE("DOMContentLoaded",()=>{y({type:iq.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&r()})),e.push(iE("load",()=>{y({type:iq.Load,data:{}}),"load"===P&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),v=void 0,_=void 0}}catch(e){console.warn(e)}}function s_(e){return e>0x2540be3ff?e:1e3*e}function sy(e){return e>0x2540be3ff?e/1e3:e}function sv(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:iq.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,Y.S8)(t,10,1e3)}}),"console"===t.category)))}function sb(e){return e.closest("button,a")||e}function sE(e){let t=sS(e);return t&&t instanceof Element?sb(t):t}function sS(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}sg.mirror=sm,sg.takeFullSnapshot=function(e){if(!v)throw Error("please take full snapshot after start recording");v(e)},!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(S||(S={}));let sT=new Set([iH.Mutation,iH.StyleSheetRule,iH.StyleDeclaration,iH.AdoptedStyleSheet,iH.CanvasMutation,iH.Selection,iH.MediaInteraction]);class sw{constructor(e,t,r=sv){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=sC()},b||(b=[],(0,$.GS)(n$,"open",function(e){return function(...t){if(b)try{b.forEach(e=>e())}catch{}return e.apply(n$,t)}})),b.push(e),()=>{let t=b?b.indexOf(e):-1;t>-1&&b.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,i;if(r=t,n=this._ignoreSelector,!sO.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let s={timestamp:sy(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===s.node&&1>Math.abs(e.timestamp-s.timestamp))||(this._clicks.push(s),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=sy(e)}registerScroll(e=Date.now()){this._lastScroll=sy(e)}registerClick(e){let t=sb(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=sC();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:n$.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:n$.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=tD(()=>this._checkClicks(),1e3)}}let sO=["A","BUTTON","INPUT"];function sC(){return Date.now()/1e3}function sk(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var sR=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(sR||{});let sI=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function sN(e,t){let r=sg.mirror.getId(e),n=r&&sg.mirror.getNode(r),i=n&&sg.mirror.getMeta(n),s=i&&i.type===sR.Element?i:null;return{message:t,data:s?{nodeId:r,node:{id:r,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===sR.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(sI.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(s.attributes)}}:{}}}let sA={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:sD(s),end:sD(i),name:n,data:{size:c,statusCode:l,decodedBodySize:o,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,s=sD(i);return{type:r,name:n,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:sD(p),end:sD(s),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:o,duration:i,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:h}}}};function sx(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function sP(e){let t=sA[e.entryType];return t?t(e):null}function sD(e){return(((0,eo.k3)()||n$.performance.timeOrigin)+e)/1e3}function sM(e){let t=e.entries[e.entries.length-1];return sj(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function sL(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=sg.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return sj(e,"cumulative-layout-shift",r,t)}function sU(e){let t=e.entries[e.entries.length-1];return sj(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function sj(e,t,r,n){let i=e.value,s=e.rating,o=sD(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:s,nodeIds:r?r.map(e=>sg.mirror.getId(e)):void 0,attributions:n}}}let s$=["log","warn","error"],sB=function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};return s$.forEach(t=>{e[t]=()=>void 0}),e}();class sF extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class sz{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new sF;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?s_(e):null}}class sq{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let s=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",s),!t.success)return void i(Error("Error in compression worker"));n(t.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class sH{constructor(e){this._worker=new sq(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=s_(e.timestamp);(!this._earliestTimestamp||t2e7)?Promise.reject(new sF):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class sW{constructor(e){this._fallback=new sz,this._compression=new sH(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function sG(){try{return"sessionStorage"in n$&&!!n$.sessionStorage}catch{return!1}}function sJ(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function s3(e){return"transaction"===e.type}function s4(e){return"feedback"===e.type}function s6(e){return!!e.category}function s8(){let e=(0,j.o5)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,ei.Bk)();if(t){let e=(0,G.k1)(t);delete e.replay_id}}function s9(e,t){return t.map(({type:t,start:r,end:n,name:i,data:s})=>{let o=e.throttledAddEvent({type:iq.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:s}}});return"string"==typeof o?Promise.resolve(null):o})}function s7(e,t){e.isEnabled()&&null!==t&&!function(e,t){var r,n,i=(0,j.KU)();let s=i?.getDsn(),o=i?.getOptions().tunnel;return function(e,t){let r=e5(e);return!(!r||e2(r))&&!!t&&r.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(r.search)}(t,s)||(r=t,!!(n=o)&&nP(r)===nP(n))}(0,t.name)&&e.addUpdate(()=>(s9(e,[t]),!0))}function oe(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=nL(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function ot(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function or(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function on(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:s,statusCode:o,request:a,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:s,statusCode:o,request:a,response:l}}}function oi(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function os(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,r=function(e){let t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,s?.length&&(n._meta={warnings:s}),n}function oo(e,t){return Object.entries(e).reduce((r,[n,i])=>{let s=n.toLowerCase();return t.includes(s)&&e[n]&&(r[s]=i),r},{})}function oa(e,t){let r=function(e,t=n$.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(n$.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,D.Xr)(r,t)}async function ol(e,t,r){try{let n=await oc(e,t,r),i=on("resource.fetch",n);s7(r.replay,i)}catch(e){}}async function oc(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n}=t,{url:o,method:a,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=oa(o,r.networkDetailAllowUrls)&&!oa(o,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:s,url:o,method:a,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,s;let o=r?(i=r,s=t,1===i.length&&"string"!=typeof i[0]?op(i[0],s):2===i.length?op(i[1],s):{}):{};if(!e)return os(o,n,void 0);let[a,l]=nU(nj(r),sB),c=os(o,n,a);return l?or(c,l):c}(r,t.input,c):oi(c),response:await ou(d,r,t.response,u)}}async function ou(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return oi(i);let s=n?oh(n.headers,r):{};if(!n||!t&&void 0!==i)return os(s,i,void 0);let[o,a]=await od(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let s=e?.length&&void 0===r?oe(e):r;if(!n)return oi(s);if(t)return os(i,s,e);return os(i,s,void 0)}catch(e){return os(i,r,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return a?or(l,a):l}async function od(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>{let n=tD(()=>t(Error("Timeout while trying to read response body")),500);of(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function oh(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function op(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?oh(r,t):Array.isArray(r)?{}:oo(r,t):{}}async function of(e){return await e.text()}async function om(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n,input:o,xhr:a}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!a||!oa(l,r.networkDetailAllowUrls)||oa(l,r.networkDetailDenyUrls)){let e=oi(d);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:e,response:oi(h)}}let p=a[te],f=p?oo(p.request_headers,r.networkRequestHeaders):{},m=oo(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}(a),r.networkResponseHeaders),[g,_]=r.networkCaptureBodies?nU(o,sB):[void 0],[y,v]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(a):[void 0],b=os(f,d,g),E=os(m,h,y);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:_?or(b,_):b,response:v?or(E,v):E}}(e,t,r),i=on("resource.xhr",n);s7(r.replay,i)}catch(e){}}async function og(e){try{return Promise.all(s9(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(n$.performance.memory)]))}catch{return[]}}let o_=T.O.navigator;async function oy({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let s=await (0,eu.mG)(e.getOptions(),n,i,t,e,(0,j.rm)());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";let o=e.getSdkMetadata(),{name:a,version:l,settings:c}=o?.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0",settings:c},s}async function ov({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:s}){var o;let a,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)} `;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:h}=n,p=(0,j.KU)(),f=(0,j.o5)(),m=p?.getTransport(),g=p?.getDsn();if(!p||!m||!g||!s.sampled)return Promise.resolve({});let _={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:r,replay_type:s.sampled},y=await oy({scope:f,client:p,replayId:t,event:_});if(!y)return p.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete y.sdkProcessingMetadata;let v=(o=p.getOptions().tunnel,K(et(y,ee(y),o,g),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await m.send(v)}catch(t){let e=Error(nF);try{e.cause=t}catch{}throw e}if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new ob(a.statusCode);let b=tA({},a);if(tN(b,"replay"))throw new oE(b);return a}class ob extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class oE extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function oS(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await ov(e),!0}catch(r){if(r instanceof ob||r instanceof oE)throw r;if((0,k.o)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${nF} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{tD(async()=>{try{await oS(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let oT="__THROTTLED";class ow{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,s,o=r?.maxWait?Math.max(r.maxWait,t):0,a=r?.setTimeoutImpl||setTimeout;function l(){return c(),n=e()}function c(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function u(){return i&&clearTimeout(i),i=a(l,t),o&&void 0===s&&(s=a(l,o)),n}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==s?l():n},u}(()=>this._flush(),this._options.flushMinDelay,{...{maxWait:this._options.flushMaxDelay},setTimeoutImpl:tD}),this._throttledAddEvent=function(e,t,r){let n=new Map,i=!1;return(...t)=>{let r=Math.floor(Date.now()/1e3),s=r-5;if(n.forEach((e,t)=>{te+t,0)>=300){let e=i;return i=!0,e?"__SKIPPED":oT}i=!1;let o=n.get(r)||0;return n.set(r,o+1),e(...t)}}((e,t)=>(function(e,t,r){return s5(e,t)?s2(e,t,r):Promise.resolve(null)})(this,e,t),0,0);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;i&&(this.clickDetector=new sw(this,i)),this._handleVisibilityChange=()=>{"visible"===n$.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=sk({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=sk({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:s,key:o,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=r||i||s,c=1===o.length;if(!l&&c)return null;let u=(0,eD.Hd)(a,{maxStringLength:200})||"",d=sN(a,u);return sk({category:"ui.keyDown",message:u,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:s,key:o}})}(t);r&&sv(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n)this._initializeSessionForSampling(e),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=s0({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=s0({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,r=this._canvas;this._stopRecording=sg({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession())return;let i=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(sT.has(n)&&e.registerMutation(t.timestamp),n===iH.Scroll&&e.registerScroll(t.timestamp),t.data.source===iH.MouseInteraction){let{type:r,id:n}=t.data,i=sg.mirror.getNode(n);i instanceof HTMLElement&&r===iW.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{var t;if("buffer"===e.recordingMode&&i&&e.setInitialState(),!s1(e,r,i))return!0;if(!i)return!1;let n=e.session;if(t=e,i&&t.session&&0===t.session.segmentId&&s1(t,function(e){let t=e.getOptions();return{type:iq.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(t),!1),"buffer"===e.recordingMode&&n&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(n.started=t,e.getOptions().stickySession&&sV(n))}return!!n?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(o_?.userAgent??"")||/Macintosh/i.test(o_?.userAgent??"")&&o_?.maxTouchPoints&&o_?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{s8(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(sG())try{n$.sessionStorage.removeItem(nB)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}checkAndHandleExpiredSession(){return this._lastActivity&&sX(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${n$.location.pathname}${n$.location.hash}${n$.location.search}`,t=`${n$.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===oT){let e=sk({category:"replay.throttled"});this.addUpdate(()=>!s1(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,ei.Bk)(),t=e&&(0,ei.zU)(e),r=(t&&(0,ei.et)(t).data||{})[eh.i_];if(t&&r&&["route","custom"].includes(r))return(0,ei.et)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s>f]=l}else for(o=new n(i),s=0;s>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;sd&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<e))break;w+=m-(1<>=y;w>0;){var M=o[s].s;p[M]=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;oi.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}return""}();if(!t)return;let r=new Worker(t);return new sW(r)}catch(e){}}(t);if(e)return e}return new sz}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=s0({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!sZ(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{n$.document.addEventListener("visibilitychange",this._handleVisibilityChange),n$.addEventListener("blur",this._handleWindowBlur),n$.addEventListener("focus",this._handleWindowFocus),n$.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t=(0,j.KU)();e8(t=>{var r,n;if(!e.isEnabled())return;let i=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?sE(e.event):sS(e.event),t=(0,eD.Hd)(n,{maxStringLength:200})||""}catch{t=""}return{target:n,message:t}}(e);return sk({category:`ui.${e.name}`,...sN(t,r)})}(t);if(!i)return;let s="click"===t.name,o=s?t.event:void 0;s&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&(r=e.clickDetector,n=sE(t.event),r.handleClick(i,n)),sv(e,i)}),tn(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(s9(e,[r]),!1)))});let r=(0,j.KU)();r&&r.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!s6(t))return;let n=(r=t,!s6(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return sk(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,Y.S8)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return sk({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):sk(r));n&&sv(e,n)})(e,t));let n=(0,j.KU)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,s,o;if(n=t,"xhr"===n.category&&(i=r,i?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=oe(n),s=r.getResponseHeader("content-length")?ot(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return oe(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,r),om(t,r,e)),s=t,"fetch"===s.category&&(o=r,o?.response)){let{input:n,response:i}=r,s=oe(n?nj(n):void 0),o=i?ot(i.headers.get("content-length")):void 0;void 0!==s&&(t.data.request_body_size=s),void 0!==o&&(t.data.response_body_size=o),ol(t,r,e)}}catch(e){}})(a,e,t))}catch{}let i=Object.assign((t,r)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||s3(t)||s4(t)?e.checkAndHandleExpiredSession()?s4(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:iq.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==nF&&t.exception&&!t.type&&sJ(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(s8(),t):t,{id:"Replay"});(0,k.SA)(i),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let r=t.exception?.values?.[0]?.value;"string"==typeof r&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&sv(e,sk({category:"replay.hydrate-error",data:{url:(0,eD.$N)()}}))}(e,t)}),t.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!s3(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(s3(t))return void function(e,t){let r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t);!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&tD(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),t.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(rP(e,r))}),n.push(rA(sx(sM,e)),rN(sx(sL,e)),rx(sx(sU,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{n$.document.removeEventListener("visibilitychange",this._handleVisibilityChange),n$.removeEventListener("blur",this._handleWindowBlur),n$.removeEventListener("focus",this._handleWindowFocus),n$.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(sQ(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session)this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:iq.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(sP).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(s9(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&rthis._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await oS({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,j.KU)();e&&e.recordDroppedEvent(t instanceof oE?"ratelimit_backoff":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=rthis._options.maxReplayDuration+5e3;if(n||i){n&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&s.hasCheckout;let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&sV(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=n&&r>n;if(r>i||s){let e=sk({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function oO(e,t){return[...e,...t].join(",")}let oC='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ok=["content-length","content-type","accept"],oR=!1;class oI{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:o,_experiments:a={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:E=["title","placeholder","aria-label"],unmask:S=[],block:T=[],unblock:w=[],ignore:O=[],maskFn:C,beforeAddRecordingEvent:k,beforeErrorSampling:R,onError:I}={}){this.name="Replay";let N=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:oO(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:oO(t,[]),blockSelector:oO(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:oO(n,[]),ignoreSelector:oO(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:S,block:T,unblock:w,ignore:O});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:s}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:E,maskAllText:l,privacyOptions:N,key:e,value:t,el:r}),...N,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:s,workerUrl:o,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:oN(y),networkResponseHeaders:oN(v),beforeAddRecordingEvent:k,beforeErrorSampling:R,onError:I,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${oC}`:oC),this._isInitialized&&nM())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return oR}set _isInitialized(e){oR=e}afterAllSetup(e){nM()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},i=(0,ec.i)(r.replaysSessionSampleRate),s=(0,ec.i)(r.replaysOnErrorSampleRate);return null==i&&null==s&&(0,w.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=s&&(n.errorSampleRate=s),n}(this._initialOptions,e);this._replay=new ow({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function oN(e){return[...ok,...e.map(e=>e.toLowerCase())]}globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"83477f785bee4e999e043dfd53c33991c5cb57fd"},globalThis._sentryBasePath=void 0,globalThis._sentryNextJsVersion="15.4.5",globalThis._sentryRewriteFramesAssetPrefixPath="",globalThis._sentryAssetPrefix="https://embed-cdn.spotifycdn.com",globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"dynamicRoutes":[],"staticRoutes":[]}',!function(e){nA&&(0,w.pq)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),nA=!0;let t={environment:function(e){let t=e?tj.env.NEXT_PUBLIC_VERCEL_ENV:tj.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tL(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=((e={})=>{let t,r,n,i={name:void 0,source:void 0},s=eM.document,{enableInp:o,enableElementTiming:a,enableLongTask:l,enableLongAnimationFrame:c,_experiments:{enableInteractions:u,enableStandaloneClsSpans:h,enableStandaloneLcpSpans:m},beforeStartSpan:g,idleTimeout:_,finalTimeout:y,childSpanTimeout:v,markBackgroundSpan:b,traceFetch:E,traceXHR:S,trackFetchStreamPerformance:O,shouldCreateSpanForRequest:C,enableHTTPTimings:k,ignoreResourceSpans:I,ignorePerformanceApiSpans:N,instrumentPageLoad:A,instrumentNavigation:x,detectRedirects:P,linkPreviousTrace:M,consistentTraceSampling:L,enableReportPageLoaded:U,onRequestSpanStart:B}={...ns,...e};function F(e,r,o=!0){var a,l;let c="pageload"===r.op,u=r.name,d=g?g(r):r,b=d.attributes||{};if(u!==d.name&&(b[eh.i_]="custom",d.attributes=b),!o){let e=(0,eo.lu)();tX({...d,startTime:e}).end(e);return}i.name=d.name,i.source=b[eh.i_];let E=t4(d,{idleTimeout:_,finalTimeout:y,childSpanTimeout:v,disableAutoFinish:c,beforeSpanEnd:r=>{var i,s;t?.(),function(e,t){var r,n;let i=rW(),s=(0,eo.k3)();if(!i?.getEntries||!s)return;let o=rG(s),a=i.getEntries(),{op:l,start_timestamp:c}=(0,ei.et)(e);a.slice(rX).forEach(r=>{let n=rG(r.startTime),i=rG(Math.max(0,r.duration));if("navigation"!==l||!c||!(o+n{rZ(s,a,e,u)}),rZ(s,a,"secureConnection",u,"TLS/SSL"),rZ(s,a,"fetch",u,"cache"),rZ(s,a,"domainLookup",u,"DNS"),function(e,t,r){let n=r+rG(t.requestStart),i=r+rG(t.responseEnd),s=r+rG(t.responseStart);t.responseEnd&&(rq(e,n,i,{op:"browser.request",name:t.name,attributes:{[eh.JD]:"auto.ui.browser.metrics"}}),rq(e,s,i,{op:"browser.response",name:t.name,attributes:{[eh.JD]:"auto.ui.browser.metrics"}}))}(s,a,u);break;case"mark":case"paint":case"measure":{!function(e,t,r,n,i,s){if(["mark","measure"].includes(t.entryType)&&(0,D.Xr)(t.name,s))return;let o=t7(!1),a=i+Math.max(r,rG(o?o.requestStart:0)),l=i+r,c=l+n,u={[eh.JD]:"auto.resource.browser.metrics"};a!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=a),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,ea.sO)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,ea.sO)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(u,t),a<=c&&rq(e,a,c,{name:t.name,op:t.entryType,attributes:u})}(e,r,n,i,o,t.ignorePerformanceApiSpans);let s=ru(),a=r.startTime{let r=a[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let h={...u,...rK(t)},p=s+n;rq(e,p,p+i,{name:r.replace(e6.location.origin,""),op:c,attributes:h})}(e,r,r.name,n,i,o,t.ignoreResourceSpans)}}),rX=Math.max(a.length-1,0),function(e){let t=e6.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),rz(r.rtt)&&(rQ["connection.rtt"]={value:r.rtt,unit:"millisecond"})),rz(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),rz(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=t7(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(rQ),t.recordClsOnPageloadSpan||delete rQ.cls,t.recordLcpOnPageloadSpan||delete rQ.lcp,Object.entries(rQ).forEach(([e,t])=>{!function(e,t,r,n=(0,ei.Bk)()){let i=n&&(0,ei.zU)(n);i&&(R.T&&w.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[eh.xc]:t,[eh.Sn]:r}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",re()),r=e,n=t,p&&n.recordLcpOnPageloadSpan&&(p.element&&r.setAttribute("lcp.element",(0,eD.Hd)(p.element)),p.id&&r.setAttribute("lcp.id",p.id),p.url&&r.setAttribute("lcp.url",p.url.trim().slice(0,200)),null!=p.loadTime&&r.setAttribute("lcp.loadTime",p.loadTime),null!=p.renderTime&&r.setAttribute("lcp.renderTime",p.renderTime),r.setAttribute("lcp.size",p.size)),f?.sources&&n.recordClsOnPageloadSpan&&f.sources.forEach((e,t)=>r.setAttribute(`cls.source.${t+1}`,(0,eD.Hd)(e.node)))),p=void 0,f=void 0,rQ={}}(r,{recordClsOnPageloadSpan:!h,recordLcpOnPageloadSpan:!m,ignoreResourceSpans:I,ignorePerformanceApiSpans:N}),i=e,s=void 0,(0,$.my)(i,nc,s);let o=(0,j.o5)(),a=o.getPropagationContext();o.setPropagationContext({...a,traceId:E.spanContext().traceId,sampled:(0,ei.pK)(E),dsc:(0,G.k1)(r)}),c&&(n=void 0)},trimIdleSpanEndTimestamp:!U});function S(){s&&["interactive","complete"].includes(s.readyState)&&e.emit("idleSpanEnableAutoFinish",E)}c&&U&&(n=E),a=e,l=E,(0,$.my)(a,nc,l),c&&!U&&s&&(s.addEventListener("readystatechange",()=>{S()}),S())}return{name:"BrowserTracing",setup(e){function i(){let e=(0,ei.Bk)(),t=e&&(0,ei.zU)(e);if(t){let e="internal_error";R.T&&w.Yz.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:tV.TJ,message:e})}}if(t6||(i.tag="sentry_tracingErrorCallback",t6=!0,tu(i),tp(i)),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=rW();if(n&&(0,eo.k3)()){n.mark&&e6.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!rJ("largest-contentful-paint"))return;let n=rA(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);rV(e,(e,i)=>{(function(e,t,r,n){let i=rG(((0,eo.k3)()||0)+(t?.startTime||0)),s=(0,j.o5)().getScopeData().transactionName,o=t?(0,eD.Hd)(t.element):"Largest contentful paint",a={[eh.JD]:"auto.http.browser.lcp",[eh.uT]:"ui.webvital.lcp",[eh.jG]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(a["lcp.element"]=(0,eD.Hd)(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url.trim().slice(0,200)),null!=t.loadTime&&(a["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(a["lcp.renderTime"]=t.renderTime),null!=t.size&&(a["lcp.size"]=t.size));let l=rH({name:o,transaction:s,attributes:a,startTime:i});l&&(l.addEvent("lcp",{[eh.Sn]:"millisecond",[eh.xc]:e}),l.end(i))})(r,t,i,e),n()})}(r):rA(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rQ.lcp={value:e.value,unit:"millisecond"},p=t)},!0),s=r$("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(rQ.ttfb={value:e.value,unit:"millisecond"})},rU,d),o=e?function(e){let t,r=0;if(!rJ("layout-shift"))return;let n=rN(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);rV(e,(e,i)=>{(function(e,t,r,n){let i=t?rG(((0,eo.k3)()||0)+t.startTime):(0,eo.zf)(),s=(0,j.o5)().getScopeData().transactionName,o=t?(0,eD.Hd)(t.sources[0]?.node):"Layout shift",a={[eh.JD]:"auto.http.browser.cls",[eh.uT]:"ui.webvital.cls",[eh.jG]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t?.sources&&t.sources.forEach((e,t)=>{a[`cls.source.${t+1}`]=(0,eD.Hd)(e.node)});let l=rH({name:o,transaction:s,attributes:a,startTime:i});l&&(l.addEvent("cls",{[eh.Sn]:"",[eh.xc]:e}),l.end(i))})(r,t,i,e),n()})}(r):rN(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rQ.cls={value:e.value,unit:""},f=t)},!0);return()=>{i?.(),s(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:h||!1,recordLcpStandaloneSpans:m||!1,client:e}),o&&function(){if(rW()&&(0,eo.k3)()){let e=rx(r5);()=>{e()}}}(),a&&rW()&&(0,eo.k3)()&&rP("element",r3),c&&T.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,ei.Bk)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=rG((0,eo.k3)()+r.startTime),{start_timestamp:n,op:i}=(0,ei.et)(t);if("navigation"===i&&n&&e{let t=(0,ei.Bk)();if(!t)return;let{op:r,start_timestamp:n}=(0,ei.et)(t);for(let i of e){let e=rG((0,eo.k3)()+i.startTime),s=rG(i.duration);"navigation"===r&&n&&e{let t=(0,ei.Bk)();if(t){for(let r of e)if("click"===r.name){let e=rG((0,eo.k3)()+r.startTime),n=rG(r.duration),i={name:(0,eD.Hd)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[eh.JD]:"auto.ui.browser.metrics"}},s=(0,eD.xE)(r.target);s&&(i.attributes["ui.component_name"]=s),rq(t,e,e+n,i)}}}),P&&s){let e=()=>{r=(0,eo.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function g(){let t=e[nc];t&&!(0,ei.et)(t).timestamp&&(t.setAttribute(eh.fs,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if((0,j.KU)()!==e)return;if(n?.isRedirect)return void F(e,{op:"navigation.redirect",...t},!1);r=void 0,g(),(0,j.rm)().setPropagationContext({traceId:(0,tF.e)(),sampleRand:Math.random(),propagationSpanId:(0,t$.f)()?void 0:(0,tF.Z)()});let i=(0,j.o5)();i.setPropagationContext({traceId:(0,tF.e)(),sampleRand:Math.random(),propagationSpanId:(0,t$.f)()?void 0:(0,tF.Z)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),F(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,j.KU)()!==e)return;g();let n=r.sentryTrace||nl("sentry-trace"),i=r.baggage||nl("baggage"),s=(0,t8.kM)(n,i),o=(0,j.o5)();o.setPropagationContext(s),(0,t$.f)()||(o.getPropagationContext().propagationSpanId=(0,tF.Z)()),o.setSDKProcessingMetadata({normalizedRequest:ej()}),F(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{U&&n&&(n.setAttribute(eh.fs,"reportPageLoaded"),n.end())})},afterAllSetup(e){var t,n,s,a,l;let c,d=(0,eD.$N)();if("off"!==M&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=eM.sessionStorage?.getItem(r4);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,ei.zU)(e)!==e)return;let t=(0,j.o5)().getPropagationContext();i=function(e,t,r){let n=(0,ei.et)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[eh.sy])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:s,attributes:{[eh.Lc]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${s.traceId}-${s.spanId}-${+!!r6(s)}`)),i)}(i,e,t),n&&function(e){try{eM.sessionStorage.setItem(r4,JSON.stringify(e))}catch(e){}}(i)});let s=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,j.o5)(),r=t.getPropagationContext();if(s&&r.parentSpanId){s=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(r6(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=r6(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[eh.Ef]:i.sampleRate}})}(e,{linkPreviousTrace:M,consistentTraceSampling:L}),eM.location){if(A){let t=(0,eo.k3)();no(e,{name:eM.location.pathname,startTime:t?t/1e3:void 0,attributes:{[eh.i_]:"url",[eh.JD]:"auto.pageload.browser"}})}x&&tn(({to:t,from:n})=>{if(void 0===n&&d?.indexOf(t)!==-1){d=void 0;return}d=void 0;let i=e5(t),s=e[nc],o=s&&P&&function(e,t){let r=(0,ei.et)(e),n=(0,eo.lu)();return!(n-r.start_timestamp>1.5)&&(!t||!(n-t<=1.5))}(s,r);na(e,{name:i?.pathname||eM.location.pathname,attributes:{[eh.i_]:"url",[eh.JD]:"auto.navigation.browser"}},{url:t,isRedirect:o})})}b&&eM.document&&eM.document.addEventListener("visibilitychange",()=>{let e=(0,ei.Bk)();if(!e)return;let t=(0,ei.zU)(e);if(eM.document.hidden&&t){let{op:e,status:r}=(0,ei.et)(t);r||t.setStatus({code:tV.TJ,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),u&&(t=e,n=_,s=y,a=v,l=i,eM.document&&addEventListener("click",()=>{let e=t[nc];if(!(e&&["navigation","pageload"].includes((0,ei.et)(e).op)))c&&(c.setAttribute(eh.fs,"interactionInterrupted"),c.end(),c=void 0),l.name&&(c=t4({name:l.name,op:"ui.action.click",attributes:{[eh.i_]:l.source||"url"}},{idleTimeout:n,finalTimeout:s,childSpanTimeout:a}))},{capture:!0})),o&&function(){let e=({entries:e})=>{let t=(0,ei.Bk)(),r=t&&(0,ei.zU)(t);e.forEach(e=>{if(!("duration"in e)||!r)return;let t=e.interactionId;if(null!=t&&!r1.has(t)){if(r0.length>10){let e=r0.shift();r1.delete(e)}r0.push(t),r1.set(t,r)}})};rP("event",e),rP("first-input",e)}(),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:l}={...nr,...t},c="function"==typeof s?s:e=>!0,u=e=>(function(e,t){let r=(0,eD.$N)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let s=n.origin===i;return t?(0,D.Xr)(n.toString(),t)||s&&(0,D.Xr)(n.pathname,t):s}{let r=!!e.match(/^\/(?!\/)/);return t?(0,D.Xr)(e,t):r}})(e,a),d={},h=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=nt.get(e.span_id);t&&(e.timestamp=t/1e3,nt.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";ez(t,e),eq(t,()=>eY(eX))}(e=>{if(e.response){let t=ne.get(e.response);t&&e.endTimestamp&&nt.set(t,e.endTimestamp)}}),eV(e=>{let t=function(e,t,r,n,i){if(!e.fetchData)return;let{method:s,url:o}=e.fetchData,a=(0,t$.f)()&&t(o);if(e.endTimestamp&&a){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(function(e,t){if(t.response){(0,tV.N8)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:tV.TJ,message:"internal_error"});e.end()}(r,e),delete n[t]);return}let{spanOrigin:l="auto.http.browser",propagateTraceparent:c=!1}="object"==typeof i?i:{spanOrigin:i},u=!!(0,ei.Bk)(),d=a&&u?tX(function(e,t,r){let n=e5(e);return{name:n?`${t} ${function(e){if(e2(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(n)}`:t,attributes:function(e,t,r,n){let i={url:e,type:"fetch","http.method":r,[eh.JD]:n,[eh.uT]:"http.client"};return t&&(e2(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}(e,n,t,r)}}(o,s,l)):new tz;if(e.fetchData.__span=d.spanContext().spanId,n[d.spanContext().spanId]=d,r(e.fetchData.url)){let t=e.args[0],r=e.args[1]||{},n=function(e,t,r,n){var i;let s=r9({span:r,propagateTraceparent:n}),o=s["sentry-trace"],a=s.baggage,l=s.traceparent;if(!o)return;let c=t.headers||((0,ea.ks)(e)?e.headers:void 0);if(!c)return{...s};if(i=c,"undefined"!=typeof Headers&&(0,ea.tH)(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&l&&!e.get("traceparent")&&e.set("traceparent",l),a){let t=e.get("baggage");t?r7(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(Array.isArray(c)){let e=[...c];c.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&l&&!c.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=c.find(e=>"baggage"===e[0]&&r7(e[1]));return a&&!t&&e.push(["baggage",a]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,r="baggage"in c?c.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],s=r&&(Array.isArray(r)?r.find(e=>r7(e)):r7(r));a&&!s&&i.push(a);let u={...c,"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0};return n&&l&&!t&&(u.traceparent=l),u}}(t,r,(0,t$.f)()&&u?d:void 0,c);n&&(e.args[1]=r,r.headers=n)}let h=(0,j.KU)();if(h){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};h.emit("beforeOutgoingRequestSpan",d,t)}return d}(e,c,u,d,{propagateTraceparent:h});if(e.response&&e.fetchData.__span&&ne.set(e.response,e.fetchData.__span),t){let r=ni(e.fetchData.url),n=r?e3(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n}),o&&nn(t),l?.(t,{headers:e.headers})}})),n&&tt(e=>{let t=function(e,t,r,n,i){let s=e.xhr,o=s?.[te];if(!s||s.__sentry_own_request__||!o)return;let{url:a,method:l}=o,c=(0,t$.f)()&&t(a);if(e.endTimestamp&&c){let e=s.__sentry_xhr_span_id__;if(!e)return;let t=n[e];t&&void 0!==o.status_code&&((0,tV.N8)(t,o.status_code),t.end(),delete n[e]);return}let u=ni(a),d=u?e3(u):e3(a),h=e4(a),p=!!(0,ei.Bk)(),f=c&&p?tX({name:`${l} ${h}`,attributes:{url:a,type:"xhr","http.method":l,"http.url":u,"server.address":d?.host,[eh.JD]:"auto.http.browser",[eh.uT]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new tz;s.__sentry_xhr_span_id__=f.spanContext().spanId,n[s.__sentry_xhr_span_id__]=f,r(a)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:s}=r9({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,s)}(s,(0,t$.f)()&&p?f:void 0,i);let m=(0,j.KU)();return m&&m.emit("beforeOutgoingRequestSpan",f,e),f}(e,c,u,d,h);if(t){let r;o&&nn(t);try{r=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}l?.(t,{headers:r})}})}(e,{traceFetch:E,traceXHR:S,trackFetchStreamPerformance:O,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:C,enableHTTPTimings:k,onRequestSpanStart:B})}}})({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){n&&function(e){if(eM.document.getElementById("__NEXT_DATA__"))nw.events.on("routeChangeStart",t=>{let r,n,i=e4(t),s=function(e){let t=eM.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r=function(e){let t=e.split("/"),r="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),r="(?:/(.+?))?");let n=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${n}${r}(?:/)?$`)}(t);return e.match(r)})}(i);s?(r=s,n="route"):(r=i,n="url"),na(e,{name:r,attributes:{[eh.uT]:"navigation",[eh.JD]:"auto.navigation.nextjs.pages_router_instrumentation",[eh.i_]:n}})});else{eM.addEventListener("popstate",()=>{let t=ng(eM.location.pathname);ny.current?.isRecording()?(ny.current.updateName(t??eM.location.pathname),ny.current.setAttribute(eh.i_,t?"route":"url")):ny.current=na(e,{name:t??eM.location.pathname,attributes:{[eh.JD]:"auto.navigation.nextjs.app_router_instrumentation",[eh.i_]:t?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,r=0,n=setInterval(()=>{r++;let i=nv?.next?.router??nv?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,nS(e,i,ny),["nd","next"].forEach(t=>{let r=nv[t];r&&(nv[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&nS(e,n,ny),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(eM.document.getElementById("__NEXT_DATA__")){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e,t=eM.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{nu.T&&w.Yz.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:s}=e;return r.route=n,r.params=i,s?.pageProps&&(r.sentryTrace=s.pageProps._sentryTraceData,r.baggage=s.pageProps._sentryBaggage),r}(),s=(0,r8.D0)(i),o=t||eM.location.pathname;s?.["sentry-transaction"]&&"/_error"===o&&(o=(o=s["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let a=(0,eo.k3)();no(e,{name:o,startTime:a?a/1e3:void 0,attributes:{[eh.uT]:"pageload",[eh.JD]:"auto.pageload.nextjs.pages_router_instrumentation",[eh.i_]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:i})}else{let t=ng(eM.location.pathname),r=(0,eo.k3)();no(e,{name:t??eM.location.pathname,startTime:r?r/1e3:void 0,attributes:{[eh.uT]:"pageload",[eh.JD]:"auto.pageload.nextjs.app_router_instrumentation",[eh.i_]:t?"route":"url"}})}}(e)}}}());let r=nx._sentryRewriteFramesAssetPrefixPath||"",n=nN.env._sentryBasePath||nx._sentryBasePath,i="true"===nN.env._experimentalThirdPartyOriginStackFrames||"true"===nx._experimentalThirdPartyOriginStackFrames;return t.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in T.O&&!!T.O.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),s=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||s){let e=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,s=t?function(e,t){e=nC(e).slice(1),t=nC(t).slice(1);let r=nk(e.split("/")),n=nk(t.split("/")),i=Math.min(r.length,n.length),s=i;for(let e=0;e1024?`${e.slice(-1024)}`:e,r=nO.exec(t);return r?r.slice(1):[]}(e)[2]||"";n.filename=`${r}${s}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}})({iteratee:i=>{if(n){let r="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:"https://embed-cdn.spotifycdn.com",basePath:n,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:i})),t}(e),release:"83477f785bee4e999e043dfd53c33991c5cb57fd",...e};!function(e){let t=nR.env._sentryRewritesTunnelPath||nI._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,J.hH)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],s=n[2],o=`${t}?o=${i}&p=${r.projectId}`;s&&(o+=`&r=${s}`),e.tunnel=o,nu.T&&w.Yz.log(`Tunneling events to "${o}"`)}else nu.T&&w.Yz.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),C(t,"nextjs",["nextjs","react"]),function(e){let t={...e};C(t,"react"),(0,k.o)("react",{version:tU.version}),function(e={}){var t;let r=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===eM.window||eM.nw)return!1;let e=eM.chrome||eM.browser;if(!e?.runtime?.id)return!1;let t=(0,eD.$N)();return!(eM===eM.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>t.startsWith(`${e}://`)))}(),n={...e,enabled:!r&&e.enabled,stackParser:(0,F.vk)(e.stackParser||tk),integrations:function(e){let t,r=e.defaultIntegrations||[],n=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;let i={};return t.forEach(e=>{let{name:t}=e,r=i[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(i[t]=e)}),Object.values(i)}({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?tL():e.defaultIntegrations}),transport:e.transport||tM};!0===n.debug&&(R.T?w.Yz.enable():(0,w.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,j.o5)().update(n.initialScope);let i=new e$(n);t=i,(0,j.o5)().setClient(t),i.init()}(t)}(t);let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",(0,k.SA)(r);let n=e=>"transaction"===e.type&&e.transaction===n_?null:e;n.id="IncompleteTransactionFilter",(0,k.SA)(n);let i=(e,t)=>{var r;return(r=t?.originalException,(0,ea.bJ)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};i.id="NextRedirectErrorFilter",(0,k.SA)(i)}({dsn:"https://4cc707ab12ea4779b417479c0550a5cb@o22381.ingest.us.sentry.io/4505164808585216",ignoreErrors:[/Extension context invalidated./,/querySelectorAll/,"Object Not Found Matching Id"],tracesSampleRate:0,debug:!1,sampleRate:.2,release:"83477f785bee4e999e043dfd53c33991c5cb57fd",replaysOnErrorSampleRate:1,replaysSessionSampleRate:0,integrations:[new oI({maskAllText:!0,blockAllMedia:!0})]})},93197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationContext=void 0,t.createApplicationContext=function(e){return function(){return{name:"context_application",data:e}}}},94819:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>o,Yz:()=>h,Z9:()=>a,pq:()=>l});var n=r(4293),i=r(47491),s=r(8164);let o=["debug","info","warn","error","log","assert","trace"],a={};function l(e){if(!("console"in s.O))return e();let t=s.O.console,r={},n=Object.keys(a);n.forEach(e=>{let n=a[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function c(){return d().enabled}function u(e,...t){i.T&&c()&&l(()=>{s.O.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.T?(0,n.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let h={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:c,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}}},94941:(e,t,r)=>{"use strict";r.d(t,{D0:()=>u,De:()=>c,sv:()=>o,yD:()=>l});var n=r(47491),i=r(94819),s=r(40373);let o="sentry-",a=/^sentry-/;function l(e){let t=u(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(a)&&(e[t.slice(o.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function c(e){if(e){var t=Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${o}${t}`]=r),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,r],s)=>{let o=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===s?o:`${e},${o}`;return a.length>8192?(n.T&&i.Yz.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},""):void 0}}function u(e){if(e&&((0,s.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(d(t)).forEach(([t,r])=>{e[t]=r}),e),{}):d(e)}function d(e){return e.split(",").map(e=>e.split("=").map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}},96011:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n=!1},96546:(e,t,r)=>{"use strict";let n;r.d(t,{fE:()=>a,q6:()=>o});var i=r(86727),s=r(98402);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"embed-standalone-prod";if(!n){let{sendMetric:t}=(0,i.createSemanticMetrics)({key:e,dev:!"production".startsWith("prod")&&!function(){let e=s.env.DEBUG_SEMANTIC_METRICS;return"1"===e||"2"===e}(),reporter:function(){let{DEBUG_SEMANTIC_METRICS:e}=s.env;return"1"===e?[new i.ConsoleReporter]:[(0,i.createUniversalReporter)(),..."2"===e?[new i.ConsoleReporter]:[]]}(),component_id:"embed-standalone-prod"});n=t}}async function a(e){if(!n)throw Error("Invalid call to sendMetric before initSemanticMetrics.");return e.tags||(e.tags={}),"slingshot"in e.tags||(e.tags.slingshot="1"===s.env.IS_SLINGSHOT?"true":"false"),n(e)}},96747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(82643);n.__exportStar(r(93197),t),n.__exportStar(r(91283),t),n.__exportStar(r(35972),t),n.__exportStar(r(60003),t),n.__exportStar(r(66919),t),n.__exportStar(r(49798),t),n.__exportStar(r(86011),t),n.__exportStar(r(5897),t),n.__exportStar(r(33552),t),n.__exportStar(r(54239),t),n.__exportStar(r(16939),t)},99174:(e,t,r)=>{"use strict";r.d(t,{Bk:()=>D,CC:()=>m,Ck:()=>y,G_:()=>E,Hu:()=>N,Qh:()=>b,VS:()=>A,aO:()=>g,cI:()=>T,et:()=>O,kX:()=>v,pK:()=>C,uU:()=>S,xO:()=>x,xl:()=>M,yW:()=>k,zU:()=>P});var n=r(28836),i=r(4293),s=r(48709),o=r(9534),a=r(37426),l=r(76589),c=r(48862),u=r(57604),d=r(47016),h=r(30097),p=r(94819),f=r(1108);let m=0,g=1,_=!1;function y(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:s,status:o,origin:a,links:l}=O(e);return{parent_span_id:s,span_id:t,trace_id:r,data:n,op:i,status:o,origin:a,links:l}}function v(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:O(e).parent_span_id,s=(0,l.L)(e).scope;return{parent_span_id:i,span_id:n?s?.getPropagationContext().propagationSpanId||(0,u.Z)():t,trace_id:r}}function b(e){let{traceId:t,spanId:r}=e.spanContext(),n=C(e);return(0,h.TC)(t,r,n)}function E(e){let{traceId:t,spanId:r}=e.spanContext(),n=C(e);return(0,h.Iy)(t,r,n)}function S(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:r===g,attributes:i,...n})):void 0}function T(e){return"number"==typeof e?w(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?w(e.getTime()):(0,d.zf)()}function w(e){return e>0x2540be3ff?e/1e3:e}function O(e){var t;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:n}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:i,name:s,endTime:a,status:l,links:c}=e;return{span_id:r,trace_id:n,data:t,description:s,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:T(i),timestamp:T(a)||void 0,status:k(l),op:t[o.uT],origin:t[o.JD],links:S(c)}}return{span_id:r,trace_id:n,start_timestamp:0,data:{}}}function C(e){let{traceFlags:t}=e.spanContext();return t===g}function k(e){if(e&&e.code!==a.a3)return e.code===a.F3?"ok":e.message||"unknown_error"}let R="_sentryChildSpans",I="_sentryRootSpan";function N(e,t){let r=e[I]||e;(0,c.my)(t,I,r),e[R]?e[R].add(t):(0,c.my)(e,R,new Set([t]))}function A(e,t){e[R]&&e[R].delete(t)}function x(e){let t=new Set;return!function e(r){if(!t.has(r)&&C(r))for(let n of(t.add(r),r[R]?Array.from(r[R]):[]))e(n)}(e),Array.from(t)}function P(e){return e[I]||e}function D(){let e=(0,i.EU)(),t=(0,n.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,f.f)((0,s.o5)())}function M(){_||((0,p.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),_=!0)}},99188:(e,t)=>{"use strict";t.R=void 0,t.R=function(e){return{name:"RejectedClientEventNonAuth",environments:["browsernonauth","desktopnonauth","devicenonauth"],data:e}}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(92656),t(66294),t(34545))),_N_E=e.O()}]);