/*! @sentry/tracing & @sentry/browser 5.27.2 (7d683ba) | 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,a=function(){return(a=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 c(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 f(){for(var t=[],n=0;n ".length,u=void 0;n&&i++<5&&!("html"===(u=E(n))||i>1&&e+r.length*o+u.length>=80);)r.push(u),e+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function E(t){var n,r,i,e,o,u=t,a=[];if(!u||!u.tagName)return"";if(a.push(u.tagName.toLowerCase()),u.id&&a.push("#"+u.id),(n=u.className)&&l(n))for(r=n.split(/\s+/),o=0;o=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={}));var k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)t.hasOwnProperty(r)||(t[r]=n[r]);return t});var S=function(t){function n(n){var r=this.constructor,i=t.call(this,n)||this;return i.message=n,i.name=r.prototype.constructor.name,k(i,r.prototype),i}return r(n,t),n}(Error),x=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,_=function(){function t(t){"string"==typeof t?this.t(t):this.i(t),this.o()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var n=this,r=n.host,i=n.path,e=n.pass,o=n.port,u=n.projectId;return n.protocol+"://"+n.user+(t&&e?":"+e:"")+"@"+r+(o?":"+o:"")+"/"+(i?i+"/":i)+u},t.prototype.t=function(t){var n=x.exec(t);if(!n)throw new S("Invalid Dsn");var r=c(n.slice(1),6),i=r[0],e=r[1],o=r[2],u=void 0===o?"":o,a=r[3],s=r[4],f=void 0===s?"":s,h="",v=r[5],d=v.split("/");if(d.length>1&&(h=d.slice(0,-1).join("/"),v=d.pop()),v){var l=v.match(/^\d+/);l&&(v=l[0])}this.i({host:a,pass:u,path:h,projectId:v,port:f,protocol:i,user:e})},t.prototype.i=function(t){this.protocol=t.protocol,this.user=t.user,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","user","host","projectId"].forEach(function(n){if(!t[n])throw new S("Invalid Dsn: "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new S("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new S("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new S("Invalid Dsn: Invalid port "+this.port)},t}(),j=function(){function t(){this.u="function"==typeof WeakSet,this.s=this.u?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.u)return!!this.s.has(t)||(this.s.add(t),!1);for(var n=0;n";function D(t){try{return t&&"function"==typeof t&&t.name||O}catch(t){return O}}function I(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function N(t,n){if(!Array.isArray(t))return"";for(var r=[],i=0;i"}try{o.currentTarget=g(e.currentTarget)?T(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget=""}for(var i in"undefined"!=typeof CustomEvent&&w(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e);return o}return t}function M(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function L(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=U(t,n);return M(i)>r?L(t,n-1,r):i}function q(t,n){return"domain"===n&&t&&"object"==typeof t&&t.h?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":m(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: "+D(t)+"]":t;var r}function F(t,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new j),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=q(t);return p(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var e=q(n,t);if(p(e))return e;var o=A(n),u=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(u[a]=F(a,o[a],r-1,i));return i.unmemoize(n),u}function U(t,n){try{return JSON.parse(JSON.stringify(t,function(t,r){return F(t,r,n)}))}catch(t){return"**non-serializable**"}}function P(t,n){void 0===n&&(n=40);var r=Object.keys(A(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return I(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:I(e,n)}return""}function H(t){var n,r;if(m(t)){var i=t,e={};try{for(var o=s(Object.keys(i)),u=o.next();!u.done;u=o.next()){var a=u.value;void 0!==i[a]&&(e[a]=H(i[a]))}}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(H):t}function J(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function B(t,n){return t.require(n)}var X=["cookies","data","headers","method","query_string","url"];var G={};function W(){return J()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:G}function $(){var t=W(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var r=new Uint16Array(8);n.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function z(t){if(!t)return{};var n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var r=n[6]||"",i=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+r+i}}function V(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var n=t.exception.values[0];return n.type&&n.value?n.type+": "+n.value:n.type||n.value||t.event_id||""}return t.event_id||""}function K(t){var n=W();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}function Y(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 Q(t,n){void 0===n&&(n={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(n).forEach(function(r){t.exception.values[0].mechanism[r]=n[r]})}catch(t){}}var Z=6e4;var tt=W(),nt="Sentry Logger ",rt=function(){function t(){this.v=!1}return t.prototype.disable=function(){this.v=!1},t.prototype.enable=function(){this.v=!0},t.prototype.log=function(){for(var t=[],n=0;n2?n[2]:void 0;if(i){var e=at,o=String(i);at=o,dt("history",{from:e,to:o})}return t.apply(this,n)}}st.onpopstate=function(){for(var t=[],n=0;n0&&r(!1)},t);xt.all(n.O).then(function(){clearTimeout(i),r(!0)}).then(null,function(){r(!0)})})},t}(),jt={nowSeconds:function(){return Date.now()/1e3}};var Ot=J()?function(){try{return B(module,"perf_hooks").performance}catch(t){return}}():function(){var t=W().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),Dt=void 0===Ot?jt:{nowSeconds:function(){return(Ot.timeOrigin+Ot.now())/1e3}},It=jt.nowSeconds.bind(jt),Nt=Dt.nowSeconds.bind(Dt),Rt=function(){var t=W().performance;if(t)return t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),Ct=function(){function t(){this.D=!1,this.I=[],this.N=[],this.R=[],this.C={},this.A={},this.M={},this.L={}}return t.clone=function(n){var r=new t;return n&&(r.R=f(n.R),r.A=a({},n.A),r.M=a({},n.M),r.L=a({},n.L),r.C=n.C,r.q=n.q,r.F=n.F,r.U=n.U,r.P=n.P,r.H=n.H,r.N=f(n.N)),r},t.prototype.addScopeListener=function(t){this.I.push(t)},t.prototype.addEventProcessor=function(t){return this.N.push(t),this},t.prototype.setUser=function(t){return this.C=t||{},this.U&&this.U.update({user:t}),this.J(),this},t.prototype.getUser=function(){return this.C},t.prototype.setTags=function(t){return this.A=a(a({},this.A),t),this.J(),this},t.prototype.setTag=function(t,n){var r;return this.A=a(a({},this.A),((r={})[t]=n,r)),this.J(),this},t.prototype.setExtras=function(t){return this.M=a(a({},this.M),t),this.J(),this},t.prototype.setExtra=function(t,n){var r;return this.M=a(a({},this.M),((r={})[t]=n,r)),this.J(),this},t.prototype.setFingerprint=function(t){return this.H=t,this.J(),this},t.prototype.setLevel=function(t){return this.q=t,this.J(),this},t.prototype.setTransactionName=function(t){return this.P=t,this.J(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this.L[t]:this.L=a(a({},this.L),((r={})[t]=n,r)),this.J(),this},t.prototype.setSpan=function(t){return this.F=t,this.J(),this},t.prototype.getSpan=function(){return this.F},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.U=t:delete this.U,this.J(),this},t.prototype.getSession=function(){return this.U},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.A=a(a({},this.A),n.A),this.M=a(a({},this.M),n.M),this.L=a(a({},this.L),n.L),n.C&&Object.keys(n.C).length&&(this.C=n.C),n.q&&(this.q=n.q),n.H&&(this.H=n.H)):m(n)&&(n=n,this.A=a(a({},this.A),n.tags),this.M=a(a({},this.M),n.extra),this.L=a(a({},this.L),n.contexts),n.user&&(this.C=n.user),n.level&&(this.q=n.level),n.fingerprint&&(this.H=n.fingerprint)),this},t.prototype.clear=function(){return this.R=[],this.A={},this.M={},this.C={},this.L={},this.q=void 0,this.P=void 0,this.H=void 0,this.F=void 0,this.U=void 0,this.J(),this},t.prototype.addBreadcrumb=function(t,n){var r=a({timestamp:It()},t);return this.R=void 0!==n&&n>=0?f(this.R,[r]).slice(-n):f(this.R,[r]),this.J(),this},t.prototype.clearBreadcrumbs=function(){return this.R=[],this.J(),this},t.prototype.applyToEvent=function(t,n){return this.M&&Object.keys(this.M).length&&(t.extra=a(a({},this.M),t.extra)),this.A&&Object.keys(this.A).length&&(t.tags=a(a({},this.A),t.tags)),this.C&&Object.keys(this.C).length&&(t.user=a(a({},this.C),t.user)),this.L&&Object.keys(this.L).length&&(t.contexts=a(a({},this.L),t.contexts)),this.q&&(t.level=this.q),this.P&&(t.transaction=this.P),this.F&&(t.contexts=a({trace:this.F.getTraceContext()},t.contexts)),this.B(t),t.breadcrumbs=f(t.breadcrumbs||[],this.R),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.X(f(At(),this.N),t,n)},t.prototype.X=function(t,n,r,i){var e=this;return void 0===i&&(i=0),new xt(function(o,u){var s=t[i];if(null===n||"function"!=typeof s)o(n);else{var c=s(a({},n),r);b(c)?c.then(function(n){return e.X(t,n,r,i+1).then(o)}).then(null,u):e.X(t,c,r,i+1).then(o).then(null,u)}})},t.prototype.J=function(){var t=this;this.D||(this.D=!0,setTimeout(function(){t.I.forEach(function(n){n(t)}),t.D=!1}))},t.prototype.B=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.H&&(t.fingerprint=t.fingerprint.concat(this.H)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function At(){var t=W();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Mt(t){At().push(t)}var Lt=function(){function t(t){this.errors=0,this.sid=$(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=e.Ok,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:$()),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),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 H({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(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:H({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),qt=3,Ft=function(){function t(t,n,r){void 0===n&&(n=new Ct),void 0===r&&(r=qt),this.G=r,this.W=[{}],this.getStackTop().scope=n,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.G=t&&(clearInterval(e),r(!1)))},1)})},t.prototype.st=function(){return this.et},t.prototype.vt=function(){return!1!==this.getOptions().enabled&&void 0!==this.ut},t.prototype.lt=function(t,n,r){var i=this,e=this.getOptions().normalizeDepth,o=void 0===e?3:e,u=a(a({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:$()),timestamp:t.timestamp||It()});this.pt(u),this.yt(u);var s=n;r&&r.captureContext&&(s=Ct.clone(s).update(r.captureContext));var c=xt.resolve(u);return s&&(c=s.applyToEvent(u,r)),c.then(function(t){return"number"==typeof o&&o>0?i.gt(t,o):t})},t.prototype.gt=function(t,n){if(!t)return null;var r=a(a(a(a(a({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return a(a({},t),t.data&&{data:U(t.data,n)})})}),t.user&&{user:U(t.user,n)}),t.contexts&&{contexts:U(t.contexts,n)}),t.extra&&{extra:U(t.extra,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r},t.prototype.pt=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=I(t.message,u));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=I(a.value,u));var s=t.request;s&&s.url&&(s.url=I(s.url,u))},t.prototype.yt=function(t){var n=t.sdk,r=Object.keys(this.rt);n&&r.length>0&&(n.integrations=r)},t.prototype.bt=function(t){this.st().sendEvent(t)},t.prototype.ct=function(t,n,r){return this.wt(t,n,r).then(function(t){return t.event_id},function(t){it.error(t)})},t.prototype.wt=function(t,n,r){var i=this,e=this.getOptions(),o=e.beforeSend,u=e.sampleRate;if(!this.vt())return xt.reject(new S("SDK not enabled, will not send event."));var a="transaction"===t.type;return!a&&"number"==typeof u&&Math.random()>u?xt.reject(new S("This event has been sampled, will not send event.")):this.lt(t,r,n).then(function(t){if(null===t)throw new S("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||a||!o)return t;var r=o(t,n);if(void 0===r)throw new S("`beforeSend` method has to return `null` or a valid event.");return b(r)?r.then(function(t){return t},function(t){throw new S("beforeSend rejected with "+t)}):r}).then(function(t){if(null===t)throw new S("`beforeSend` returned `null`, will not send event.");var n=r&&r.getSession();return!a&&n&&i.dt(n,t),i.bt(t),t}).then(null,function(t){if(t instanceof S)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new S("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype.at=function(t){var n=this;this.it+=1,t.then(function(t){return n.it-=1,t},function(t){return n.it-=1,t})},t}(),Zt=function(){function n(){}return n.prototype.sendEvent=function(n){return xt.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return xt.resolve(!0)},n}(),tn=function(){function t(t){this.ot=t,this.ot.dsn||it.warn("No DSN provided, backend will not do anything."),this.Tt=this.Et()}return t.prototype.eventFromException=function(t,n){throw new S("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new S("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.Tt.sendEvent(t).then(null,function(t){it.error("Error while sending event: "+t)})},t.prototype.sendSession=function(t){this.Tt.sendSession?this.Tt.sendSession(t).then(null,function(t){it.error("Error while sending session: "+t)}):it.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.Tt},t.prototype.Et=function(){return new Zt},t}();function nn(t,n){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(t),type:"session",url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function rn(t,n){var r="transaction"===t.type,i={body:JSON.stringify(t),type:t.type||"event",url:r?n.getEnvelopeEndpointWithUrlEncodedAuth():n.getStoreEndpointWithUrlEncodedAuth()};if(r){var e=JSON.stringify({event_id:t.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:t.type})+"\n"+i.body;i.body=e}return i}var en=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Yt=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,hn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,dn=/\((\S*)(?::(\d+))(?::(\d+))\)/,ln=/Minified React error #\d+;/i;function pn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:ln.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=[],a=0;a eval")>-1&&(n=vn.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]=""):0!==u||r[5]||void 0===t.columnNumber||(e[0].column=t.columnNumber+1),i={url:r[3],func:r[1]||sn,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!i.func&&i.line&&(i.func=sn),e.push(i)}if(!e.length)return null;return{message:yn(t),name:t.name,stack:e}}(t))return mn(n,r)}catch(t){}return{message:yn(t),name:t&&t.name,stack:[],failed:!0}}function mn(t,n){try{return a(a({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function yn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var gn=50;function bn(t){var n=Tn(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 wn(t){return{exception:{values:[bn(t)]}}}function Tn(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,gn).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 En(t,n,r){var i,e;if(void 0===r&&(r={}),v(t)&&t.error)return i=wn(pn(t=t.error));if(d(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var o=t,u=o.name||(d(o)?"DOMError":"DOMException"),a=o.message?u+": "+o.message:u;return Y(i=kn(a,n,r),a),i}return h(t)?i=wn(pn(t)):m(t)||y(t)?(Q(i=function(t,n,r){var i={exception:{values:[{type:y(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+P(t)}]},extra:{__serialized__:L(t)}};if(n){var e=Tn(pn(n).stack);i.stacktrace={frames:e}}return i}(t,n,r.rejection),{synthetic:!0}),i):(Y(i=kn(t,n,r),""+t,void 0),Q(i,{synthetic:!0}),i)}function kn(t,n,r){void 0===r&&(r={});var i={message:t};if(r.attachStacktrace&&n){var e=Tn(pn(n).stack);i.stacktrace={frames:e}}return i}var Sn=function(){function n(t){this.options=t,this.O=new _t(30),this.Nt={},this.Rt=new zt(this.options.dsn),this.url=this.Rt.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(t){throw new S("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(t){return this.O.drain(t)},n.prototype.Ct=function(n){var r=n.requestType,i=n.response,e=n.headers,o=n.resolve,u=n.reject,a=t.Status.fromHttpCode(i.status);this.At(e)&&it.warn("Too many requests, backing off till: "+this.Mt(r)),a!==t.Status.Success?u(i):o({status:a})},n.prototype.Mt=function(t){return this.Nt[t]||this.Nt.all},n.prototype.Lt=function(t){return this.Mt(t)>new Date(Date.now())},n.prototype.At=function(t){var n,r,i,e,o=Date.now(),u=t["x-sentry-rate-limits"],a=t["retry-after"];if(u){try{for(var c=s(u.trim().split(",")),f=c.next();!f.done;f=c.next()){var h=f.value.split(":",2),v=parseInt(h[0],10),d=1e3*(isNaN(v)?60:v);try{for(var l=(i=void 0,s(h[1].split(";"))),p=l.next();!p.done;p=l.next()){var m=p.value;this.Nt[m||"all"]=new Date(o+d)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=l.return)&&e.call(l)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return!0}return!!a&&(this.Nt.all=new Date(o+function(t,n){if(!n)return Z;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+n);return isNaN(i)?Z:i-t}(o,a)),!0)},n}(),xn=W(),_n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.qt(rn(t,this.Rt),t)},n.prototype.sendSession=function(t){return this.qt(nn(t,this.Rt),t)},n.prototype.qt=function(t,n){var r=this;if(this.Lt(t.type))return Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.Mt(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:ut()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this.O.add(new xt(function(n,e){xn.fetch(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.Ct({requestType:t.type,response:i,headers:o,resolve:n,reject:e})}).catch(e)}))},n}(Sn),jn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.qt(rn(t,this.Rt),t)},n.prototype.sendSession=function(t){return this.qt(nn(t,this.Rt),t)},n.prototype.qt=function(t,n){var r=this;return this.Lt(t.type)?Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.Mt(t.type)+" due to too many requests.",status:429}):this.O.add(new xt(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.Ct({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}},e.open("POST",t.url),r.options.headers)r.options.headers.hasOwnProperty(o)&&e.setRequestHeader(o,r.options.headers[o]);e.send(t.body)}))},n}(Sn),On=Object.freeze({__proto__:null,BaseTransport:Sn,FetchTransport:_n,XHRTransport:jn}),Dn=function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return r(i,n),i.prototype.eventFromException=function(n,r){return function(n,r,i){var e=En(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return Q(e,{handled:!0,type:"generic"}),e.level=t.Severity.Error,i&&i.event_id&&(e.event_id=i.event_id),xt.resolve(e)}(this.ot,n,r)},i.prototype.eventFromMessage=function(n,r,i){return void 0===r&&(r=t.Severity.Info),function(n,r,i,e){void 0===i&&(i=t.Severity.Info);var o=kn(r,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=i,e&&e.event_id&&(o.event_id=e.event_id),xt.resolve(o)}(this.ot,n,r,i)},i.prototype.Et=function(){if(!this.ot.dsn)return n.prototype.Et.call(this);var t=a(a({},this.ot.transportOptions),{dsn:this.ot.dsn});return this.ot.transport?new this.ot.transport(t):et()?new _n(t):new jn(t)},i}(tn),In=0;function Nn(){return In>0}function Rn(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 Rn(t,n)});return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw In+=1,setTimeout(function(){In-=1}),$t(function(r){r.addEventProcessor(function(t){var r=a({},t);return n.mechanism&&(Y(r,void 0,void 0),Q(r,n.mechanism)),r.extra=a(a({},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 Cn(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var n=document.createElement("script");n.async=!0,n.src=new zt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad),(document.head||document.body).appendChild(n)}else it.error("Missing dsn option in showReportDialog call");else it.error("Missing eventId option in showReportDialog call")}var An=function(){function n(t){this.name=n.id,this.Ft=!1,this.Ut=!1,this.ot=a({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.ot.onerror&&(it.log("Global Handler attached: onerror"),this.Pt()),this.ot.onunhandledrejection&&(it.log("Global Handler attached: onunhandledrejection"),this.Ht())},n.prototype.Pt=function(){var t=this;this.Ft||(vt({callback:function(r){var i=r.error,e=Ht(),o=e.getIntegration(n),u=i&&!0===i.__sentry_own_request__;if(o&&!Nn()&&!u){var a=e.getClient(),s=p(i)?t.Jt(r.msg,r.url,r.line,r.column):t.Bt(En(i,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);Q(s,{handled:!1,type:"onerror"}),e.captureEvent(s,{originalException:i})}},type:"error"}),this.Ft=!0)},n.prototype.Ht=function(){var r=this;this.Ut||(vt({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),a=e&&!0===e.__sentry_own_request__;if(!u||Nn()||a)return!0;var s=o.getClient(),c=p(e)?r.Xt(e):En(e,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});c.level=t.Severity.Error,Q(c,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(c,{originalException:e})},type:"unhandledrejection"}),this.Ut=!0)},n.prototype.Jt=function(t,n,r,i){var e,o=v(t)?t.message:t;if(l(o)){var u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(e=u[1],o=u[2])}var a={exception:{values:[{type:e||"Error",value:o}]}};return this.Bt(a,n,r,i)},n.prototype.Xt=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+t}]}}},n.prototype.Bt=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=l(n)&&n.length>0?n:function(){try{return 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}(),Mn=["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"],Ln=function(){function t(n){this.name=t.id,this.ot=a({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=W();(this.ot.setTimeout&&C(t,"setTimeout",this.Gt.bind(this)),this.ot.setInterval&&C(t,"setInterval",this.Gt.bind(this)),this.ot.requestAnimationFrame&&C(t,"requestAnimationFrame",this.Wt.bind(this)),this.ot.XMLHttpRequest&&"XMLHttpRequest"in t&&C(XMLHttpRequest.prototype,"send",this.$t.bind(this)),this.ot.eventTarget)&&(Array.isArray(this.ot.eventTarget)?this.ot.eventTarget:Mn).forEach(this.zt.bind(this))},t.prototype.Gt=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})},n.prototype.Yt=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.Qt=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:a(a({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.Zt=function(t){var n=W(),r=t.from,i=t.to,e=z(n.location.href),o=z(r),u=z(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}(),Fn="cause",Un=5,Pn=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.tn=n.key||Fn,this.j=n.limit||Un}return t.prototype.setupOnce=function(){Mt(function(n,r){var i=Ht().getIntegration(t);return i?i.nn(n,r):n})},t.prototype.nn=function(t,n){if(!(t.exception&&t.exception.values&&n&&w(n.originalException,Error)))return t;var r=this.rn(n.originalException,this.tn);return t.exception.values=f(r,t.exception.values),t},t.prototype.rn=function(t,n,r){if(void 0===r&&(r=[]),!w(t[n],Error)||r.length+1>=this.j)return r;var i=bn(pn(t[n]));return this.rn(t[n],n,f([i],r))},t.id="LinkedErrors",t}(),Hn=W(),Jn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Mt(function(n){var r,i,e;if(Ht().getIntegration(t)){if(!Hn.navigator&&!Hn.location&&!Hn.document)return n;var o=(null===(r=n.request)||void 0===r?void 0:r.url)||(null===(i=Hn.location)||void 0===i?void 0:i.href),u=(Hn.document||{}).referrer,s=(Hn.navigator||{}).userAgent,c=a(a(a({},null===(e=n.request)||void 0===e?void 0:e.headers),u&&{Referer:u}),s&&{"User-Agent":s}),f=a(a({},o&&{url:o}),{headers:c});return a(a({},n),{request:f})}return n})},t.id="UserAgent",t}(),Bn=Object.freeze({__proto__:null,GlobalHandlers:An,TryCatch:Ln,Breadcrumbs:qn,LinkedErrors:Pn,UserAgent:Jn}),Xn="sentry.javascript.browser",Gn=function(t){function n(n){return void 0===n&&(n={}),t.call(this,Dn,n)||this}return r(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),W().document&&(this.vt()?Cn(a(a({},t),{dsn:t.dsn||this.getDsn()})):it.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.lt=function(n,r,i){return n.platform=n.platform||"javascript",n.sdk=a(a({},n.sdk),{name:Xn,packages:f(n.sdk&&n.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.27.2"}]),version:"5.27.2"}),t.prototype.lt.call(this,n,r,i)},n.prototype.bt=function(n){var r=this.getIntegration(qn);r&&r.addSentryBreadcrumb(n),t.prototype.bt.call(this,n)},n}(Qt),Wn=[new un,new en,new Ln,new qn,new An,new Pn,new Jn];var $n={},zn=W();zn.Sentry&&zn.Sentry.Integrations&&($n=zn.Sentry.Integrations);var Vn,Kn=a(a(a({},$n),an),Bn);!function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(Vn||(Vn={})),function(t){t.fromHttpCode=function(n){if(n<400)return t.Ok;if(n>=400&&n<500)switch(n){case 401:return t.Unauthenticated;case 403:return t.PermissionDenied;case 404:return t.NotFound;case 409:return t.AlreadyExists;case 413:return t.FailedPrecondition;case 429:return t.ResourceExhausted;default:return t.InvalidArgument}if(n>=500&&n<600)switch(n){case 501:return t.Unimplemented;case 503:return t.Unavailable;case 504:return t.DeadlineExceeded;default:return t.InternalError}return t.UnknownError}}(Vn||(Vn={}));var Yn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Qn(t){return"tracesSampleRate"in t||"tracesSampler"in t}function Zn(t){var n,r;return void 0===t&&(t=Ht()),null===(r=null===(n=t)||void 0===n?void 0:n.getScope())||void 0===r?void 0:r.getTransaction()}function tr(t){return t/1e3}function nr(){var t=Zn();t&&(it.log("[Tracing] Transaction: "+Vn.InternalError+" -> Global error occured"),t.setStatus(Vn.InternalError))}var rr=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this.in=t}return t.prototype.add=function(t){this.spans.length>this.in?t.spanRecorder=void 0:this.spans.push(t)},t}(),ir=function(){function t(t){if(this.traceId=$(),this.spanId=$().substring(16),this.startTimestamp=Nt(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(n){var r=new t(a(a({},n),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r),r.transaction=this.transaction,r},t.prototype.setTag=function(t,n){var r;return this.tags=a(a({},this.tags),((r={})[t]=n,r)),this},t.prototype.setData=function(t,n){var r;return this.data=a(a({},this.data),((r={})[t]=n,r)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var n=Vn.fromHttpCode(t);return n!==Vn.UnknownError&&this.setStatus(n),this},t.prototype.isSuccess=function(){return this.status===Vn.Ok},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:Nt()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.getTraceContext=function(){return H({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return H({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}(),er=function(t){function n(n,r){var i=t.call(this,n)||this;return i.en={},i.on=Ht(),w(r,Ft)&&(i.on=r),i.name=n.name?n.name:"",i.un=n.trimEnd,i.transaction=i,i}return r(n,t),n.prototype.setName=function(t){this.name=t},n.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new rr(t)),this.spanRecorder.add(this)},n.prototype.setMeasurements=function(t){this.en=a({},t)},n.prototype.finish=function(n){var r=this;if(void 0===this.endTimestamp){if(this.name||(it.warn("Transaction has no name, falling back to ``."),this.name=""),t.prototype.finish.call(this,n),!0===this.sampled){var i=this.spanRecorder?this.spanRecorder.spans.filter(function(t){return t!==r&&t.endTimestamp}):[];this.un&&i.length>0&&(this.endTimestamp=i.reduce(function(t,n){return t.endTimestamp&&n.endTimestamp?t.endTimestamp>n.endTimestamp?t:n:t}).endTimestamp);var e={contexts:{trace:this.getTraceContext()},spans:i,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction"};return Object.keys(this.en).length>0&&(it.log("[Measurements] Adding measurements to transaction",JSON.stringify(this.en,void 0,2)),e.measurements=this.en),this.on.captureEvent(e)}it.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},n}(ir),or=1e3,ur=function(t){function n(n,r,i,e){void 0===i&&(i="");var o=t.call(this,e)||this;return o.an=n,o.sn=r,o.transactionSpanId=i,o}return r(n,t),n.prototype.add=function(n){var r=this;n.spanId!==this.transactionSpanId&&(n.finish=function(t){n.endTimestamp="number"==typeof t?t:Nt(),r.sn(n.spanId)},void 0===n.endTimestamp&&this.an(n.spanId)),t.prototype.add.call(this,n)},n}(rr),ar=function(t){function n(n,r,i,e){void 0===i&&(i=or),void 0===e&&(e=!1);var o=t.call(this,n,r)||this;return o.cn=r,o.fn=i,o.hn=e,o.activities={},o.vn=0,o.dn=0,o.ln=!1,o.pn=[],r&&e&&(sr(r),it.log("Setting idle transaction on scope. Span ID: "+o.spanId),r.configureScope(function(t){return t.setSpan(o)})),o}return r(n,t),n.prototype.finish=function(n){var r,i,e=this;if(void 0===n&&(n=Nt()),this.ln=!0,this.activities={},this.spanRecorder){it.log("[Tracing] finishing IdleTransaction",new Date(1e3*n).toISOString(),this.op);try{for(var o=s(this.pn),u=o.next();!u.done;u=o.next()){(0,u.value)(this,n)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(t){if(t.spanId===e.spanId)return!0;t.endTimestamp||(t.endTimestamp=n,t.setStatus(Vn.Cancelled),it.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var r=t.startTimestamp=3?(it.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(Vn.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this.yn()}},n.prototype.yn=function(){var t=this;it.log("pinging Heartbeat -> current counter: "+this.dn),this.vn=setTimeout(function(){t.gn()},5e3)},n}(er);function sr(t){if(t){var n=t.getScope();if(n)n.getTransaction()&&n.setSpan(void 0)}}function cr(){var t=this.getScope();if(t){var n=t.getSpan();if(n)return{"sentry-trace":n.toTraceparent()}}return{}}function fr(t,n,r){var i,e=t.getClient(),o=e&&e.getOptions()||{};if(!e||!Qn(o))return n.sampled=!1,n;if(void 0!==n.sampled)return n;var u,a,s="function"==typeof o.tracesSampler?o.tracesSampler(r):(u=r.parentSampled,a=o.tracesSampleRate,void 0!==u?u:a);return function(t){if(isNaN(t)||"number"!=typeof t&&"boolean"!=typeof t)return it.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1;if(t<0||t>1)return it.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1;return!0}(s)?s?(n.sampled=Math.random()",u="https"===t.protocol||t.secure||(t.socket||{}).encrypted?"https":"http",a=t.originalUrl||t.url||"",s=u+"://"+o+a;return n.forEach(function(n){switch(n){case"headers":r.headers=i;break;case"method":r.method=e;break;case"url":r.url=s;break;case"cookies":r.cookies=t.cookies||B(module,"cookie").parse(i.cookie||"");break;case"query_string":r.query_string=B(module,"url").parse(a||"",!1).query;break;case"data":if("GET"===e||"HEAD"===e)break;void 0!==t.body&&(r.data=l(t.body)?t.body:JSON.stringify(U(t.body)));break;default:({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}}),r}(e))}}else{var o=W();"location"in o&&(n.location=a({},o.location))}return n}function vr(t,n){return fr(this,new er(t,this),a(a({},hr(t)),n))}function dr(){var t;(t=Ut()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=vr),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=cr)),vt({callback:nr,type:"error"}),vt({callback:nr,type:"unhandledrejection"})}var lr=W();var pr,mr,yr=function(t,n,r,i){var e;return function(){r&&n.isFinal&&r.disconnect(),n.value>=0&&(i||n.isFinal||"hidden"===document.visibilityState)&&(n.delta=n.value-(e||0),(n.delta||n.isFinal||void 0===e)&&(t(n),e=n.value))}},gr=function(t,n){return void 0===n&&(n=-1),{name:t,value:n,delta:0,entries:[],id:Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12),isFinal:!1}},br=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver(function(t){return t.getEntries().map(n)});return r.observe({type:t,buffered:!0}),r}}catch(t){}},wr=!1,Tr=!1,Er=function(t){wr=!t.persisted},kr=function(t,n){void 0===n&&(n=!1),Tr||(addEventListener("pagehide",Er),addEventListener("beforeunload",function(){}),Tr=!0),addEventListener("visibilitychange",function(n){var r=n.timeStamp;"hidden"===document.visibilityState&&t({timeStamp:r,isUnloading:wr})},{capture:!0,once:n})},Sr=function(){return void 0===pr&&(pr="hidden"===document.visibilityState?0:1/0,kr(function(t){var n=t.timeStamp;return pr=n},!0)),{get timeStamp(){return pr}}},xr=function(t,n){void 0===n&&(n=!1);var r,i=gr("LCP"),e=Sr(),o=function(t){var n=t.startTime;n-1&&(i=d)}}),void 0!==i&&void 0!==e&&Ir(t,{description:"evaluation",endTimestamp:e,op:"script",startTimestamp:i}),this.Tn=Math.max(performance.getEntries().length-1,0),this._n(t),"pageload"===t.op&&t.setMeasurements(this.en)}},t.prototype.En=function(){var t=this;!function(t,n){void 0===n&&(n=!1);var r,i=gr("CLS",0),e=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),r())},o=br("layout-shift",e);o&&(r=yr(t,i,o,n),kr(function(t){var n=t.isUnloading;o.takeRecords().map(e),n&&(i.isFinal=!0),r()}))}(function(n){n.entries.pop()&&(it.log("[Measurements] Adding CLS"),t.en.cls={value:n.value})})},t.prototype._n=function(t){var n=jr.navigator;if(n){var r=n.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),Nr(r.rtt)&&(this.en["connection.rtt"]={value:r.rtt}),Nr(r.downlink)&&(this.en["connection.downlink"]={value:r.downlink})),Nr(n.deviceMemory)&&t.setTag("deviceMemory",String(n.deviceMemory)),Nr(n.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}},t.prototype.kn=function(){var t=this;xr(function(n){var r=n.entries.pop();if(r){var i=tr(performance.timeOrigin),e=tr(r.startTime);it.log("[Measurements] Adding LCP"),t.en.lcp={value:n.value},t.en["mark.lcp"]={value:i+e}}})},t.prototype.Sn=function(){var t,n,r,i,e,o,u=this;t=function(t){var n=t.entries.pop();if(n){var r=tr(performance.timeOrigin),i=tr(n.startTime);it.log("[Measurements] Adding FID"),u.en.fid={value:t.value},u.en["mark.fid"]={value:r+i}}},n=gr("FID"),r=Sr(),e=br("first-input",i=function(t){t.startTimer&&(t.startTimestamp=r),t.startChild(a({startTimestamp:r},i))}function Nr(t){return"number"==typeof t&&isFinite(t)}var Rr={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function Cr(t){var n=a(a({},Rr),t),r=n.traceFetch,i=n.traceXHR,e=n.tracingOrigins,o=n.shouldCreateSpanForRequest,u={},s=function(t){if(u[t])return u[t];var n=e;return u[t]=n.some(function(n){return R(t,n)})&&!R(t,"sentry_key"),u[t]},c=s;"function"==typeof o&&(c=function(t){return s(t)&&o(t)});var h={};r&&vt({callback:function(t){!function(t,n,r){var i,e=null===(i=Ht().getClient())||void 0===i?void 0:i.getOptions();if(!(e&&Qn(e)&&t.fetchData&&n(t.fetchData.url)))return;if(t.endTimestamp&&t.fetchData.__span){var o=r[t.fetchData.__span];if(o){var u=t.response;u&&o.setHttpStatus(u.status),o.finish(),delete r[t.fetchData.__span]}return}var s=Zn();if(s){var o=s.startChild({data:a(a({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http"});t.fetchData.__span=o.spanId,r[o.spanId]=o;var c=t.args[0]=t.args[0],h=t.args[1]=t.args[1]||{},v=h.headers;w(c,Request)&&(v=c.headers),v?"function"==typeof v.append?v.append("sentry-trace",o.toTraceparent()):v=Array.isArray(v)?f(v,[["sentry-trace",o.toTraceparent()]]):a(a({},v),{"sentry-trace":o.toTraceparent()}):v={"sentry-trace":o.toTraceparent()},h.headers=v}}(t,c,h)},type:"fetch"}),i&&vt({callback:function(t){!function(t,n,r){var i,e=null===(i=Ht().getClient())||void 0===i?void 0:i.getOptions();if(!e||!Qn(e)||!(t.xhr&&t.xhr.__sentry_xhr__&&n(t.xhr.__sentry_xhr__.url))||t.xhr.__sentry_own_request__)return;var o=t.xhr.__sentry_xhr__;if(t.endTimestamp&&t.xhr.__sentry_xhr_span_id__){var u=r[t.xhr.__sentry_xhr_span_id__];return void(u&&(u.setHttpStatus(o.status_code),u.finish(),delete r[t.xhr.__sentry_xhr_span_id__]))}var s=Zn();if(s){var u=s.startChild({data:a(a({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http"});if(t.xhr.__sentry_xhr_span_id__=u.spanId,r[t.xhr.__sentry_xhr_span_id__]=u,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",u.toTraceparent())}catch(t){}}}(t,c,h)},type:"xhr"})}var Ar=W();var Mr=a({idleTimeout:or,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),Ar&&Ar.location){var i,e=Ar.location.href;n&&(i=t({name:Ar.location.pathname,op:"pageload"})),r&&vt({callback:function(n){var r=n.to,o=n.from;void 0===o&&e&&-1!==e.indexOf(r)?e=void 0:o!==r&&(e=void 0,i&&(it.log("[Tracing] Finishing current transaction with op: "+i.op),i.finish()),i=t({name:Ar.location.pathname,op:"navigation"}))},type:"history"})}else it.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Rr),Lr=function(){function t(n){this.name=t.id,this.jn=new Or,this.On=!1;var r=Rr.tracingOrigins;n&&n.tracingOrigins&&Array.isArray(n.tracingOrigins)&&0!==n.tracingOrigins.length?r=n.tracingOrigins:this.On=!0,this.options=a(a(a({},Mr),n),{tracingOrigins:r})}return t.prototype.setupOnce=function(t,n){var r=this;this.Dn=n,this.On&&(it.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),it.warn("[Tracing] We added a reasonable default for you: "+Rr.tracingOrigins));var i=this.options,e=i.routingInstrumentation,o=i.startTransactionOnLocationChange,u=i.startTransactionOnPageLoad,a=i.markBackgroundTransactions,s=i.traceFetch,c=i.traceXHR,f=i.tracingOrigins,h=i.shouldCreateSpanForRequest;e(function(t){return r.In(t)},u,o),a&&(lr&&lr.document?lr.document.addEventListener("visibilitychange",function(){var t=Zn();lr.document.hidden&&t&&(it.log("[Tracing] Transaction: "+Vn.Cancelled+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(Vn.Cancelled),t.setTag("visibilitychange","document.hidden"),t.finish())}):it.warn("[Tracing] Could not set up background tab detection due to lack of global document")),Cr({traceFetch:s,traceXHR:c,tracingOrigins:f,shouldCreateSpanForRequest:h})},t.prototype.In=function(t){var n=this;if(this.Dn){var r=this.options,i=r.beforeNavigate,e=r.idleTimeout,o=r.maxTransactionDuration,u="pageload"===t.op?function(){var t=(n="sentry-trace",r=document.querySelector("meta[name="+n+"]"),r?r.getAttribute("content"):null);var n,r;if(t)return function(t){var n=t.match(Yn);if(n){var r=void 0;return"1"===n[3]?r=!0:"0"===n[3]&&(r=!1),{traceId:n[1],parentSampled:r,parentSpanId:n[2]}}}(t);return}():void 0,s=a(a(a({},t),u),{trimEnd:!0}),c="function"==typeof i?i(s):s,f=void 0===c?a(a({},s),{sampled:!1}):c;!1===f.sampled&&it.log("[Tracing] Will not send "+f.op+" transaction because of beforeNavigate.");var h=function(t,n,r,i){return fr(t,new ar(n,t,r,i),hr(n))}(this.Dn(),f,e,!0);return it.log("[Tracing] Starting "+f.op+" transaction on scope"),h.registerBeforeFinishCallback(function(t,r){n.jn.addPerformanceEntries(t),function(t,n,r){var i=r-n.startTimestamp;r&&(i>t||i<0)&&(n.setStatus(Vn.DeadlineExceeded),n.setTag("maxTransactionDurationExceeded","true"))}(1e3*o,t,r)}),h}it.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}();var qr={},Fr=W();Fr.Sentry&&Fr.Sentry.Integrations&&(qr=Fr.Sentry.Integrations);var Ur=a(a(a({},qr),Kn),{BrowserTracing:Lr});return dr(),t.BrowserClient=Gn,t.Hub=Ft,t.Integrations=Ur,t.SDK_NAME=Xn,t.SDK_VERSION="5.27.2",t.Scope=Ct,t.Span=ir,t.Transports=On,t.addBreadcrumb=function(t){Wt("addBreadcrumb",t)},t.addExtensionMethods=dr,t.addGlobalEventProcessor=Mt,t.captureEvent=function(t){return Wt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){var r;try{throw new Error(t)}catch(t){r=t}return Wt("captureMessage",t,"string"==typeof n?n:void 0,a({originalException:t,syntheticException:r},"string"!=typeof n?{captureContext:n}:void 0))},t.close=function(t){var n=Ht().getClient();return n?n.close(t):xt.reject(!1)},t.configureScope=function(t){Wt("configureScope",t)},t.defaultIntegrations=Wn,t.flush=function(t){var n=Ht().getClient();return n?n.flush(t):xt.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=Ht,t.getHubFromCarrier=Xt,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Wn),void 0===t.release){var n=W();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!1),function(t,n){!0===n.debug&&it.enable();var r=Ht(),i=new t(n);r.bindClient(i)}(Gn,t),t.autoSessionTracking&&function(){var t=W(),n=Ht(),r="complete"===document.readyState,i=!1,e=function(){i&&r&&n.endSession()},o=function(){r=!0,e(),t.removeEventListener("load",o)};n.startSession(),r||t.addEventListener("load",o);try{var u=new PerformanceObserver(function(t,n){t.getEntries().forEach(function(t){"first-contentful-paint"===t.name&&t.startTime