/*! @sentry/browser 6.16.1 (6919d17) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,r)};function r(t,r){function i(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u,s,a,c,f=function(){return(f=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function v(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function l(){for(var t=[],n=0;n=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={})),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(a||(a={})),function(t){t.BeforeSend="before_send",t.EventProcessor="event_processor",t.NetworkError="network_error",t.QueueOverflow="queue_overflow",t.RateLimitBackoff="ratelimit_backoff",t.SampleRate="sample_rate"}(c||(c={}));var p={};function y(){return d()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:p}function m(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return S(t,Error)}}function b(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function w(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function g(t){return"[object String]"===Object.prototype.toString.call(t)}function E(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function x(t){return"[object Object]"===Object.prototype.toString.call(t)}function j(t){return"undefined"!=typeof Event&&S(t,Event)}function _(t){return"undefined"!=typeof Element&&S(t,Element)}function k(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function S(t,n){try{return t instanceof n}catch(t){return!1}}function O(t,n){try{for(var r=t,i=[],e=0,o=0,u=" > ".length,s=void 0;r&&e++<5&&!("html"===(s=D(r,n))||e>1&&o+i.length*u+s.length>=80);)i.push(s),o+=s.length,r=r.parentNode;return i.reverse().join(" > ")}catch(t){return""}}function D(t,n){var r,i,e,o,u,s,a,c=t,f=[];if(!c||!c.tagName)return"";f.push(c.tagName.toLowerCase());var h=(null===(r=n)||void 0===r?void 0:r.length)?n.filter(function(t){return c.getAttribute(t)}).map(function(t){return[t,c.getAttribute(t)]}):null;if(null===(i=h)||void 0===i?void 0:i.length)h.forEach(function(t){f.push("["+t[0]+'="'+t[1]+'"]')});else if(c.id&&f.push("#"+c.id),(e=c.className)&&g(e))for(o=e.split(/\s+/),a=0;a1&&(f=l.slice(0,-1).join("/"),h=l.pop()),h){var d=h.match(/^\d+/);d&&(h=d[0])}this.i({host:s,pass:u,path:f,projectId:h,port:c,protocol:i,publicKey:e})},t.prototype.i=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype.o=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach(function(n){if(!t[n])throw new N("Invalid Dsn: "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new N("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new N("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new N("Invalid Dsn: Invalid port "+this.port)},t}(),C=y(),M="Sentry Logger ";function A(t){var n=y();if(!("console"in n))return t();var r=n.console,i={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&r[t].__sentry_original__&&(i[t]=r[t],r[t]=r[t].__sentry_original__)});var e=t();return Object.keys(i).forEach(function(t){r[t]=i[t]}),e}var q=function(){function t(){this.u=!1}return t.prototype.disable=function(){this.u=!1},t.prototype.enable=function(){this.u=!0},t.prototype.log=function(){for(var t=[],n=0;n";function P(t){try{return t&&"function"==typeof t&&t.name||H}catch(t){return H}}function F(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function J(t,n){if(!Array.isArray(t))return"";for(var r=[],i=0;i"}try{o.currentTarget=_(e.currentTarget)?O(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget=""}for(var u in"undefined"!=typeof CustomEvent&&S(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,u)&&(o[u]=e[u]);return o}return t}function $(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function G(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=V(t,n);return $(i)>r?G(t,n-1,r):i}function K(t,n){return"domain"===n&&t&&"object"==typeof t&&t.v?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":x(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+P(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var r}function z(t,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new U),0===r)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var r=K(t);return E(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var e=K(n,t);if(E(e))return e;var o=W(n),u=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(u[s]=z(s,o[s],r-1,i));return i.unmemoize(n),u}function V(t,n){try{return JSON.parse(JSON.stringify(t,function(t,r){return z(t,r,n)}))}catch(t){return"**non-serializable**"}}function Q(t,n){void 0===n&&(n=40);var r=Object.keys(W(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return F(r[0],n);for(var i=r.length;i>0;i--){var e=r.slice(0,i).join(", ");if(!(e.length>n))return i===r.length?e:F(e,n)}return""}function Y(t){var n,r;if(x(t)){var i=t,e={};try{for(var o=h(Object.keys(i)),u=o.next();!u.done;u=o.next()){var s=u.value;void 0!==i[s]&&(e[s]=Y(i[s]))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e}return Array.isArray(t)?t.map(Y):t}function Z(){if(!("fetch"in y()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function tt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function nt(){if(!Z())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var rt,it=y(),et={},ot={};function ut(t){if(!ot[t])switch(ot[t]=!0,t){case"console":!function(){if(!("console"in it))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in it.console&&B(it.console,t,function(n){return function(){for(var r=[],i=0;i2?n[2]:void 0;if(i){var e=rt,o=String(i);rt=o,at("history",{from:e,to:o})}return t.apply(this,n)}}it.onpopstate=function(){for(var t=[],n=0;n"}return t.event_id||""}function gt(t,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function Et(t,n){var r;if(t.exception&&t.exception.values){var i=t.exception.values[0],e=i.mechanism;if(i.mechanism=f(f(f({},{type:"generic",handled:!0}),e),n),n&&"data"in n){var o=f(f({},null===(r=e)||void 0===r?void 0:r.data),n.data);i.mechanism.data=o}}}var xt=6e4;function jt(t){var n;if(null===(n=t)||void 0===n?void 0:n.__sentry_captured__)return!0;try{Object.defineProperty(t,"__sentry_captured__",{value:!0})}catch(t){}return!1}var _t=function(){function t(t){var n=this;this.l="PENDING",this.p=[],this.m=function(t){n.g("RESOLVED",t)},this.j=function(t){n.g("REJECTED",t)},this.g=function(t,r){"PENDING"===n.l&&(k(r)?r.then(n.m,n.j):(n.l=t,n._=r,n.k()))},this.S=function(t){n.p=n.p.concat(t),n.k()},this.k=function(){if("PENDING"!==n.l){var t=n.p.slice();n.p=[],t.forEach(function(t){t.done||("RESOLVED"===n.l&&t.onfulfilled&&t.onfulfilled(n._),"REJECTED"===n.l&&t.onrejected&&t.onrejected(n._),t.done=!0)})}};try{t(this.m,this.j)}catch(t){this.j(t)}}return t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,r){r(n)})},t.all=function(n){return new t(function(r,i){if(Array.isArray(n))if(0!==n.length){var e=n.length,o=[];n.forEach(function(n,u){t.resolve(n).then(function(t){o[u]=t,0===(e-=1)&&r(o)}).then(null,i)})}else r([]);else i(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,r){var i=this;return new t(function(t,e){i.S({done:!1,onfulfilled:function(r){if(n)try{return void t(n(r))}catch(t){return void e(t)}else t(r)},onrejected:function(n){if(r)try{return void t(r(n))}catch(t){return void e(t)}else e(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var r=this;return new t(function(t,i){var e,o;return r.then(function(t){o=!1,e=t,n&&n()},function(t){o=!0,e=t,n&&n()}).then(function(){o?i(e):t(e)})})},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),kt=function(){function t(t){this.O=t,this.D=[]}return t.prototype.isReady=function(){return void 0===this.O||this.length()0&&r(!1)},t);_t.all(n.D).then(function(){clearTimeout(i),r(!0)}).then(null,function(){r(!0)})})},t}(),St={nowSeconds:function(){return Date.now()/1e3}};var Ot=d()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=y().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),Dt=void 0===Ot?St:{nowSeconds:function(){return(Ot.timeOrigin+Ot.now())/1e3}},Tt=St.nowSeconds.bind(St),Nt=Dt.nowSeconds.bind(Dt),Rt=(function(){var t=y().performance;if(t&&t.now){var n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):36e5,e=i<36e5,o=t.timing&&t.timing.navigationStart,u="number"==typeof o?Math.abs(o+n-r):36e5;(e||u<36e5)&&(i<=u&&t.timeOrigin)}}(),function(){function t(){this.T=!1,this.N=[],this.R=[],this.I=[],this.C={},this.M={},this.A={},this.q={}}return t.clone=function(n){var r=new t;return n&&(r.I=l(n.I),r.M=f({},n.M),r.A=f({},n.A),r.q=f({},n.q),r.C=n.C,r.L=n.L,r.U=n.U,r.H=n.H,r.P=n.P,r.F=n.F,r.R=l(n.R),r.J=n.J),r},t.prototype.addScopeListener=function(t){this.N.push(t)},t.prototype.addEventProcessor=function(t){return this.R.push(t),this},t.prototype.setUser=function(t){return this.C=t||{},this.H&&this.H.update({user:t}),this.X(),this},t.prototype.getUser=function(){return this.C},t.prototype.getRequestSession=function(){return this.J},t.prototype.setRequestSession=function(t){return this.J=t,this},t.prototype.setTags=function(t){return this.M=f(f({},this.M),t),this.X(),this},t.prototype.setTag=function(t,n){var r;return this.M=f(f({},this.M),((r={})[t]=n,r)),this.X(),this},t.prototype.setExtras=function(t){return this.A=f(f({},this.A),t),this.X(),this},t.prototype.setExtra=function(t,n){var r;return this.A=f(f({},this.A),((r={})[t]=n,r)),this.X(),this},t.prototype.setFingerprint=function(t){return this.F=t,this.X(),this},t.prototype.setLevel=function(t){return this.L=t,this.X(),this},t.prototype.setTransactionName=function(t){return this.P=t,this.X(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this.q[t]:this.q=f(f({},this.q),((r={})[t]=n,r)),this.X(),this},t.prototype.setSpan=function(t){return this.U=t,this.X(),this},t.prototype.getSpan=function(){return this.U},t.prototype.getTransaction=function(){var t,n,r,i,e=this.getSpan();return(null===(t=e)||void 0===t?void 0:t.transaction)?null===(n=e)||void 0===n?void 0:n.transaction:(null===(i=null===(r=e)||void 0===r?void 0:r.spanRecorder)||void 0===i?void 0:i.spans[0])?e.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this.H=t:delete this.H,this.X(),this},t.prototype.getSession=function(){return this.H},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.M=f(f({},this.M),n.M),this.A=f(f({},this.A),n.A),this.q=f(f({},this.q),n.q),n.C&&Object.keys(n.C).length&&(this.C=n.C),n.L&&(this.L=n.L),n.F&&(this.F=n.F),n.J&&(this.J=n.J)):x(n)&&(n=n,this.M=f(f({},this.M),n.tags),this.A=f(f({},this.A),n.extra),this.q=f(f({},this.q),n.contexts),n.user&&(this.C=n.user),n.level&&(this.L=n.level),n.fingerprint&&(this.F=n.fingerprint),n.requestSession&&(this.J=n.requestSession)),this},t.prototype.clear=function(){return this.I=[],this.M={},this.A={},this.C={},this.q={},this.L=void 0,this.P=void 0,this.F=void 0,this.J=void 0,this.U=void 0,this.H=void 0,this.X(),this},t.prototype.addBreadcrumb=function(t,n){var r="number"==typeof n?Math.min(n,100):100;if(r<=0)return this;var i=f({timestamp:Tt()},t);return this.I=l(this.I,[i]).slice(-r),this.X(),this},t.prototype.clearBreadcrumbs=function(){return this.I=[],this.X(),this},t.prototype.applyToEvent=function(t,n){var r;if(this.A&&Object.keys(this.A).length&&(t.extra=f(f({},this.A),t.extra)),this.M&&Object.keys(this.M).length&&(t.tags=f(f({},this.M),t.tags)),this.C&&Object.keys(this.C).length&&(t.user=f(f({},this.C),t.user)),this.q&&Object.keys(this.q).length&&(t.contexts=f(f({},this.q),t.contexts)),this.L&&(t.level=this.L),this.P&&(t.transaction=this.P),this.U){t.contexts=f({trace:this.U.getTraceContext()},t.contexts);var i=null===(r=this.U.transaction)||void 0===r?void 0:r.name;i&&(t.tags=f({transaction:i},t.tags))}return this.B(t),t.breadcrumbs=l(t.breadcrumbs||[],this.I),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.W(l(It(),this.R),t,n)},t.prototype.W=function(t,n,r,i){var e=this;return void 0===i&&(i=0),new _t(function(o,u){var s=t[i];if(null===n||"function"!=typeof s)o(n);else{var a=s(f({},n),r);k(a)?a.then(function(n){return e.W(t,n,r,i+1).then(o)}).then(null,u):e.W(t,a,r,i+1).then(o).then(null,u)}})},t.prototype.X=function(){var t=this;this.T||(this.T=!0,this.N.forEach(function(n){n(t)}),this.T=!1)},t.prototype.B=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.F&&(t.fingerprint=t.fingerprint.concat(this.F)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}());function It(){var t=y();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Ct(t){It().push(t)}var Mt=function(){function t(t){this.errors=0,this.sid=mt(),this.duration=0,this.status=e.Ok,this.init=!0,this.ignoreDuration=!1;var n=Nt();this.timestamp=n,this.started=n,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Nt(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:mt()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var n=this.timestamp-this.started;this.duration=n>=0?n:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===e.Ok?this.update({status:e.Exited}):this.update()},t.prototype.toJSON=function(){return Y({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Y({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),At=4,qt=function(){function t(t,n,r){void 0===n&&(n=new Rt),void 0===r&&(r=At),this.$=r,this.G=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.$=t&&(clearInterval(e),r(!1)))},1)})},t.prototype.ht=function(){return this.st},t.prototype.lt=function(){return!1!==this.getOptions().enabled&&void 0!==this.ct},t.prototype.bt=function(t,n,r){var i=this,e=this.getOptions().normalizeDepth,o=void 0===e?3:e,u=f(f({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:mt()),timestamp:t.timestamp||Tt()});this.wt(u),this.gt(u);var s=n;r&&r.captureContext&&(s=Rt.clone(s).update(r.captureContext));var a=_t.resolve(u);return s&&(a=s.applyToEvent(u,r)),a.then(function(t){return"number"==typeof o&&o>0?i.Et(t,o):t})},t.prototype.Et=function(t,n){if(!t)return null;var r=f(f(f(f(f({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return f(f({},t),t.data&&{data:V(t.data,n)})})}),t.user&&{user:V(t.user,n)}),t.contexts&&{contexts:V(t.contexts,n)}),t.extra&&{extra:V(t.extra,n)});t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace);var i=this.getOptions().xt;return(void 0===i?{}:i).ensureNoCircularStructures?V(r):r},t.prototype.wt=function(t){var n=this.getOptions(),r=n.environment,i=n.release,e=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==e&&(t.dist=e),t.message&&(t.message=F(t.message,u));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=F(s.value,u));var a=t.request;a&&a.url&&(a.url=F(a.url,u))},t.prototype.gt=function(t){var n=Object.keys(this.ot);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=l(t.sdk.integrations||[],n))},t.prototype.jt=function(t){this.ht().sendEvent(t)},t.prototype.vt=function(t,n,r){return this._t(t,n,r).then(function(t){return t.event_id},function(t){L.error(t)})},t.prototype._t=function(t,n,r){var i,e,o=this,u=this.getOptions(),s=u.beforeSend,a=u.sampleRate,f=this.getTransport();if(!this.lt())return _t.reject(new N("SDK not enabled, will not capture event."));var h="transaction"===t.type;return!h&&"number"==typeof a&&Math.random()>a?(null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,c.SampleRate,"event"),_t.reject(new N("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this.bt(t,r,n).then(function(r){var i,e;if(null===r)throw null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,c.EventProcessor,t.type||"event"),new N("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||h||!s)return r;var u=s(r,n);return o.kt(u)}).then(function(n){var i,e;if(null===n)throw null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,c.BeforeSend,t.type||"event"),new N("`beforeSend` returned `null`, will not send event.");var u=r&&r.getSession&&r.getSession();return!h&&u&&o.yt(u,n),o.jt(n),n}).then(null,function(t){if(t instanceof N)throw t;throw o.captureException(t,{data:{__sentry__:!0},originalException:t}),new N("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype.ft=function(t){var n=this;this.ut+=1,t.then(function(t){return n.ut-=1,t},function(t){return n.ut-=1,t})},t.prototype.kt=function(t){var n="`beforeSend` method has to return `null` or a valid event.";if(k(t))return t.then(function(t){if(!x(t)&&null!==t)throw new N(n);return t},function(t){throw new N("beforeSend rejected with "+t)});if(!x(t)&&null!==t)throw new N(n);return t},t}(),Qt=function(){function n(){}return n.prototype.sendEvent=function(n){return _t.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return _t.resolve(!0)},n}(),Yt=function(){function t(t){this.at=t,this.at.dsn||L.warn("No DSN provided, backend will not do anything."),this.St=this.Ot()}return t.prototype.eventFromException=function(t,n){throw new N("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new N("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.St.sendEvent(t).then(null,function(t){L.error("Error while sending event: "+t)})},t.prototype.sendSession=function(t){this.St.sendSession?this.St.sendSession(t).then(null,function(t){L.error("Error while sending session: "+t)}):L.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.St},t.prototype.Ot=function(){return new Qt},t}();function Zt(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function tn(t,n){return n?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=l(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=l(t.sdk.packages||[],n.packages||[]),t):t}function nn(t,n){var r=Zt(n),i="aggregates"in t?"sessions":"session";return{body:JSON.stringify(f(f({sent_at:(new Date).toISOString()},r&&{sdk:r}),n.forceEnvelope()&&{dsn:n.getDsn().toString()}))+"\n"+JSON.stringify({type:i})+"\n"+JSON.stringify(t),type:i,url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function rn(t,n){var r=Zt(n),i=t.type||"event",e="transaction"===i||n.forceEnvelope(),o=t.debug_meta||{},u=o.transactionSampling,s=function(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(i=Object.getOwnPropertySymbols(t);e=0;i--){var e=t[i];if(""!==(null===(n=e)||void 0===n?void 0:n.filename)&&"[native code]"!==(null===(r=e)||void 0===r?void 0:r.filename))return e.filename||null}return null},t.prototype.It=function(t){try{if(t.stacktrace){var n=t.stacktrace.frames;return this.At(n)}if(t.exception){var r=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return this.At(r)}return null}catch(n){return L.error("Cannot extract url for event "+wt(t)),null}},t.id="InboundFilters",t}(),cn=Object.freeze({__proto__:null,FunctionToString:un,InboundFilters:an}),fn="?",hn=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ln=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,dn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pn=/\((\S*)(?::(\d+))(?::(\d+))\)/,yn=/Minified React error #\d+;/i;function mn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:yn.test(t.message)&&(r=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,r=t.stacktrace,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,e=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),u=[],s=0;s eval")>-1&&(i=dn.exec(e[3]))?(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]=""):0!==a||e[5]||void 0===t.columnNumber||(u[0].column=t.columnNumber+1);var f=e[3],h=e[1]||fn;r=v(bn(h,f),2),h=r[0],f=r[1],o={url:f,func:h,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!o.func&&o.line&&(o.func=fn),u.push(o)}if(!u.length)return null;return{message:gn(t),name:t.name,stack:u}}(t))return wn(n,r)}catch(t){}return{message:gn(t),name:t&&t.name,stack:[],failed:!0}}var bn=function(t,n){var r=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return r||i?[-1!==t.indexOf("@")?t.split("@")[0]:fn,r?"safari-extension:"+n:"safari-web-extension:"+n]:[t,n]};function wn(t,n){try{return f(f({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function gn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var En=50;function xn(t){var n=_n(t.stack),r={type:t.name,value:t.message};return n&&n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function jn(t){return{exception:{values:[xn(t)]}}}function _n(t){if(!t||!t.length)return[];var n=t,r=n[0].func||"",i=n[n.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==i.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,En).map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).reverse()}function kn(n,r,i){var e=On(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return Et(e),e.level=t.Severity.Error,i&&i.event_id&&(e.event_id=i.event_id),_t.resolve(e)}function Sn(n,r,i,e){void 0===i&&(i=t.Severity.Info);var o=Dn(r,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=i,e&&e.event_id&&(o.event_id=e.event_id),_t.resolve(o)}function On(t,n,r){var i,e;if(void 0===r&&(r={}),b(t)&&t.error)return i=jn(mn(t=t.error));if(w(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var o=t;if("stack"in t)i=jn(mn(t));else{var u=o.name||(w(o)?"DOMError":"DOMException"),s=o.message?u+": "+o.message:u;gt(i=Dn(s,n,r),s)}return"code"in o&&(i.tags=f(f({},i.tags),{"DOMException.code":""+o.code})),i}return m(t)?i=jn(mn(t)):x(t)||j(t)?(Et(i=function(t,n,r){var i={exception:{values:[{type:j(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+Q(t)}]},extra:{__serialized__:G(t)}};if(n){var e=_n(mn(n).stack);i.stacktrace={frames:e}}return i}(t,n,r.rejection),{synthetic:!0}),i):(gt(i=Dn(t,n,r),""+t,void 0),Et(i,{synthetic:!0}),i)}function Dn(t,n,r){void 0===r&&(r={});var i={message:t};if(r.attachStacktrace&&n){var e=_n(mn(n).stack);i.stacktrace={frames:e}}return i}var Tn,Nn=y();function Rn(){var t,n;if(Tn)return Tn;if(tt(Nn.fetch))return Tn=Nn.fetch.bind(Nn);var r=Nn.document,i=Nn.fetch;if("function"==typeof(null===(t=r)||void 0===t?void 0:t.createElement))try{var e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e),(null===(n=e.contentWindow)||void 0===n?void 0:n.fetch)&&(i=e.contentWindow.fetch),r.head.removeChild(e)}catch(t){L.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Tn=i.bind(Nn)}function In(t,n){if("[object Navigator]"===Object.prototype.toString.call(Nn&&Nn.navigator)&&"function"==typeof Nn.navigator.sendBeacon)return Nn.navigator.sendBeacon.bind(Nn.navigator)(t,n);if(Z()){var r=Rn();r(t,{body:n,method:"POST",credentials:"omit",keepalive:!0}).then(null,function(t){console.error(t)})}else;}var Cn={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},Mn=y(),An=function(){function n(t){var n=this;this.options=t,this.D=new kt(30),this.qt={},this.Lt={},this.Ut=new Wt(t.dsn,t.Ht,t.tunnel),this.url=this.Ut.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&Mn.document&&Mn.document.addEventListener("visibilitychange",function(){"hidden"===Mn.document.visibilityState&&n.Pt()})}return n.prototype.sendEvent=function(t){throw new N("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(t){return this.D.drain(t)},n.prototype.recordLostEvent=function(t,n){var r;if(this.options.sendClientReports){var i=Cn[n]+":"+t;L.log("Adding outcome: "+i),this.Lt[i]=(null!=(r=this.Lt[i])?r:0)+1}},n.prototype.Pt=function(){if(this.options.sendClientReports){var t=this.Lt;if(this.Lt={},Object.keys(t).length){L.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var n=this.Ut.getEnvelopeEndpointWithUrlEncodedAuth(),r=JSON.stringify(f({},this.options.tunnel&&{dsn:this.Ut.getDsn().toString()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:Tt(),discarded_events:Object.keys(t).map(function(n){var r=v(n.split(":"),2),i=r[0];return{reason:r[1],category:i,quantity:t[n]}})});try{In(n,r)}catch(t){L.error(t)}}else L.log("No outcomes to flush")}},n.prototype.Ft=function(n){var r=n.requestType,i=n.response,e=n.headers,o=n.resolve,u=n.reject,s=t.Status.fromHttpCode(i.status);this.Jt(e)&&L.warn("Too many "+r+" requests, backing off until: "+this.Xt(r)),s!==t.Status.Success?u(i):o({status:s})},n.prototype.Xt=function(t){var n=Cn[t];return this.qt[n]||this.qt.all},n.prototype.Bt=function(t){return this.Xt(t)>new Date(Date.now())},n.prototype.Jt=function(t){var n,r,i,e,o=Date.now(),u=t["x-sentry-rate-limits"],s=t["retry-after"];if(u){try{for(var a=h(u.trim().split(",")),c=a.next();!c.done;c=a.next()){var f=c.value.split(":",2),v=parseInt(f[0],10),l=1e3*(isNaN(v)?60:v);try{for(var d=(i=void 0,h(f[1].split(";"))),p=d.next();!p.done;p=d.next()){var y=p.value;this.qt[y||"all"]=new Date(o+l)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=d.return)&&e.call(d)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!0}return!!s&&(this.qt.all=new Date(o+function(t,n){if(!n)return xt;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+n);return isNaN(i)?xt:i-t}(o,s)),!0)},n}(),qn=function(t){function n(n,r){void 0===r&&(r=Rn());var i=t.call(this,n)||this;return i.Wt=r,i}return r(n,t),n.prototype.sendEvent=function(t){return this.$t(rn(t,this.Ut),t)},n.prototype.sendSession=function(t){return this.$t(nn(t,this.Ut),t)},n.prototype.$t=function(t,n){var r=this;if(this.Bt(t.type))return this.recordLostEvent(c.RateLimitBackoff,t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.Xt(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:nt()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this.D.add(function(){return new _t(function(n,e){r.Wt(t.url,i).then(function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};r.Ft({requestType:t.type,response:i,headers:o,resolve:n,reject:e})}).catch(e)})}).then(void 0,function(n){throw n instanceof N?r.recordLostEvent(c.QueueOverflow,t.type):r.recordLostEvent(c.NetworkError,t.type),n})},n}(An),Ln=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.$t(rn(t,this.Ut),t)},n.prototype.sendSession=function(t){return this.$t(nn(t,this.Ut),t)},n.prototype.$t=function(t,n){var r=this;return this.Bt(t.type)?(this.recordLostEvent(c.RateLimitBackoff,t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.Xt(t.type)+" due to too many requests.",status:429})):this.D.add(function(){return new _t(function(n,i){var e=new XMLHttpRequest;for(var o in e.onreadystatechange=function(){if(4===e.readyState){var o={"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")};r.Ft({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}},e.open("POST",t.url),r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,o)&&e.setRequestHeader(o,r.options.headers[o]);e.send(t.body)})}).then(void 0,function(n){throw n instanceof N?r.recordLostEvent(c.QueueOverflow,t.type):r.recordLostEvent(c.NetworkError,t.type),n})},n}(An),Un=Object.freeze({__proto__:null,BaseTransport:An,FetchTransport:qn,XHRTransport:Ln}),Hn=function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return r(i,n),i.prototype.eventFromException=function(t,n){return kn(this.at,t,n)},i.prototype.eventFromMessage=function(n,r,i){return void 0===r&&(r=t.Severity.Info),Sn(this.at,n,r,i)},i.prototype.Ot=function(){if(!this.at.dsn)return n.prototype.Ot.call(this);var t=f(f({},this.at.transportOptions),{dsn:this.at.dsn,tunnel:this.at.tunnel,sendClientReports:this.at.sendClientReports,Ht:this.at.Ht});return this.at.transport?new this.at.transport(t):Z()?new qn(t):new Ln(t)},i}(Yt),Pn=y(),Fn=0;function Jn(){return Fn>0}function Xn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var sentryWrapped=function(){var i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var e=i.map(function(t){return Xn(t,n)});return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Fn+=1,setTimeout(function(){Fn-=1}),Bt(function(r){r.addEventProcessor(function(t){var r=f({},t);return n.mechanism&&(gt(r,void 0,void 0),Et(r,n.mechanism)),r.extra=f(f({},r.extra),{arguments:i}),r}),captureException(t)}),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(sentryWrapped[i]=t[i])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}function Bn(t){if(void 0===t&&(t={}),Pn.document)if(t.eventId)if(t.dsn){var n=Pn.document.createElement("script");n.async=!0,n.src=new Wt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad);var r=Pn.document.head||Pn.document.body;r&&r.appendChild(n)}else L.error("Missing dsn option in showReportDialog call");else L.error("Missing eventId option in showReportDialog call")}var Wn=function(){function n(t){this.name=n.id,this.Gt=!1,this.Kt=!1,this.at=f({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.at.onerror&&(L.log("Global Handler attached: onerror"),this.zt()),this.at.onunhandledrejection&&(L.log("Global Handler attached: onunhandledrejection"),this.Vt())},n.prototype.zt=function(){var t=this;this.Gt||(st({callback:function(r){var i=r.error,e=Ht(),o=e.getIntegration(n),u=i&&!0===i.__sentry_own_request__;if(o&&!Jn()&&!u){var s=e.getClient(),a=void 0===i&&g(r.msg)?t.Qt(r.msg,r.url,r.line,r.column):t.Yt(On(i||r.msg,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);Et(a,{handled:!1,type:"onerror"}),e.captureEvent(a,{originalException:i})}},type:"error"}),this.Gt=!0)},n.prototype.Vt=function(){var r=this;this.Kt||(st({callback:function(i){var e=i;try{"reason"in i?e=i.reason:"detail"in i&&"reason"in i.detail&&(e=i.detail.reason)}catch(t){}var o=Ht(),u=o.getIntegration(n),s=e&&!0===e.__sentry_own_request__;if(!u||Jn()||s)return!0;var a=o.getClient(),c=E(e)?r.Zt(e):On(e,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});c.level=t.Severity.Error,Et(c,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(c,{originalException:e})},type:"unhandledrejection"}),this.Kt=!0)},n.prototype.Qt=function(t,n,r,i){var e,o=b(t)?t.message:t,u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(e=u[1],o=u[2]);var s={exception:{values:[{type:e||"Error",value:o}]}};return this.Yt(s,n,r,i)},n.prototype.Zt=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},n.prototype.Yt=function(t,n,r,i){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var e=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(r,10))?void 0:r,u=g(n)&&n.length>0?n:function(){var t=y();try{return t.document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:e,filename:u,function:"?",in_app:!0,lineno:o}),t},n.id="GlobalHandlers",n}(),$n=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Gn=function(){function t(n){this.name=t.id,this.at=f({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=y();(this.at.setTimeout&&B(t,"setTimeout",this.tn.bind(this)),this.at.setInterval&&B(t,"setInterval",this.tn.bind(this)),this.at.requestAnimationFrame&&B(t,"requestAnimationFrame",this.nn.bind(this)),this.at.XMLHttpRequest&&"XMLHttpRequest"in t&&B(XMLHttpRequest.prototype,"send",this.rn.bind(this)),this.at.eventTarget)&&(Array.isArray(this.at.eventTarget)?this.at.eventTarget:$n).forEach(this.in.bind(this))},t.prototype.tn=function(t){return function(){for(var n=[],r=0;r"}0!==n.length&&Ht().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})},n.prototype.un=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,i=n.url,e=n.status_code,o=n.body;Ht().addBreadcrumb({category:"xhr",data:{method:r,url:i,status_code:e},type:"http"},{xhr:t.xhr,input:o})}else;},n.prototype.sn=function(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?Ht().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):Ht().addBreadcrumb({category:"fetch",data:f(f({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.an=function(t){var n=y(),r=t.from,i=t.to,e=bt(n.location.href),o=bt(r),u=bt(i);o.path||(o=e),e.protocol===u.protocol&&e.host===u.host&&(i=u.relative),e.protocol===o.protocol&&e.host===o.host&&(r=o.relative),Ht().addBreadcrumb({category:"navigation",data:{from:r,to:i}})},n.id="Breadcrumbs",n}(),zn="cause",Vn=5,Qn=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.cn=n.key||zn,this.O=n.limit||Vn}return t.prototype.setupOnce=function(){Ct(function(n,r){var i=Ht().getIntegration(t);if(i){var e=i.fn&&i.fn.bind(i);return"function"==typeof e?e(n,r):n}return n})},t.prototype.fn=function(t,n){if(!(t.exception&&t.exception.values&&n&&S(n.originalException,Error)))return t;var r=this.hn(n.originalException,this.cn);return t.exception.values=l(r,t.exception.values),t},t.prototype.hn=function(t,n,r){if(void 0===r&&(r=[]),!S(t[n],Error)||r.length+1>=this.O)return r;var i=xn(mn(t[n]));return this.hn(t[n],n,l([i],r))},t.id="LinkedErrors",t}(),Yn=y(),Zn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Ct(function(n){var r,i,e;if(Ht().getIntegration(t)){if(!Yn.navigator&&!Yn.location&&!Yn.document)return n;var o=(null===(r=n.request)||void 0===r?void 0:r.url)||(null===(i=Yn.location)||void 0===i?void 0:i.href),u=(Yn.document||{}).referrer,s=(Yn.navigator||{}).userAgent,a=f(f(f({},null===(e=n.request)||void 0===e?void 0:e.headers),u&&{Referer:u}),s&&{"User-Agent":s}),c=f(f({},o&&{url:o}),{headers:a});return f(f({},n),{request:c})}return n})},t.id="UserAgent",t}(),tr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(n,r){n(function(n){var i=r().getIntegration(t);if(i){try{if(i.Dt(n,i.vn))return L.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return i.vn=n}return i.vn=n}return n})},t.prototype.Dt=function(t,n){return!!n&&(!!this.ln(t,n)||!!this.dn(t,n))},t.prototype.ln=function(t,n){var r=t.message,i=n.message;return!(!r&&!i)&&(!(r&&!i||!r&&i)&&(r===i&&(!!this.pn(t,n)&&!!this.yn(t,n))))},t.prototype.mn=function(t){var n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype.yn=function(t,n){var r=this.mn(t),i=this.mn(n);if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;if(r=r,(i=i).length!==r.length)return!1;for(var e=0;e