System.register([],function(An){"use strict";return{execute:function(){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function t(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i,e,s,n,a,c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function v(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}(dn=i=i||{}).Fatal="fatal",dn.Error="error",dn.Warning="warning",dn.Log="log",dn.Info="info",dn.Debug="debug",dn.Critical="critical",(e=i=i||{}).fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;default:return e.Log}},(Sn=s=s||{}).Unknown="unknown",Sn.Skipped="skipped",Sn.Success="success",Sn.RateLimit="rate_limit",Sn.Invalid="invalid",Sn.Failed="failed",(n=s=s||{}).fromHttpCode=function(t){return 200<=t&&t<300?n.Success:429===t?n.RateLimit:400<=t&&t<500?n.Invalid:500<=t?n.Failed:n.Unknown},(On=a=a||{}).BeforeSend="before_send",On.EventProcessor="event_processor",On.NetworkError="network_error",On.QueueOverflow="queue_overflow",On.RateLimitBackoff="ratelimit_backoff",On.SampleRate="sample_rate";var l=function(){return(l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function d(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}(arguments[e]));return t}var h=function(){return(h=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}(arguments[e]));return t}function _(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return 1;default:return k(t,Error)}}function y(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function g(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function m(t){return"[object String]"===Object.prototype.toString.call(t)}function b(t){return null===t||"object"!==r(t)&&"function"!=typeof t}function E(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return"undefined"!=typeof Event&&k(t,Event)}function x(t){return"undefined"!=typeof Element&&k(t,Element)}function w(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function k(t,e){try{return t instanceof e}catch(t){return!1}}function O(t,e){try{for(var n,r=t,o=[],i=0,s=0,a=" > ".length;r&&i++<5&&!("html"===(n=function(t,e){var n,r,o,i,s=t,a=[];if(!s||!s.tagName)return"";a.push(s.tagName.toLowerCase());var t=null!==(t=e)&&void 0!==t&&t.length?e.filter(function(t){return s.getAttribute(t)}).map(function(t){return[t,s.getAttribute(t)]}):null;if(null!==(e=t)&&void 0!==e&&e.length)t.forEach(function(t){a.push("["+t[0]+'="'+t[1]+'"]')});else if(s.id&&a.push("#"+s.id),(t=s.className)&&m(t))for(n=t.split(/\s+/),i=0;i<n.length;i++)a.push("."+n[i]);var c=["type","name","title","alt"];for(i=0;i<c.length;i++)r=c[i],(o=s.getAttribute(r))&&a.push("["+r+'="'+o+'"]');return a.join("")}(r,e))||1<i&&80<=s+o.length*a+n.length);)o.push(n),s+=n.length,r=r.parentNode;return o.reverse().join(" > ")}catch(t){return"<unknown>"}}var T=function(t,e){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var j=function(){return(j=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function R(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var I=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});var N,D,C,L=(N=Error,T(D=A,C=N),D.prototype=null===C?Object.create(C):(U.prototype=C.prototype,new U),A);function U(){this.constructor=D}function A(t){var e=this.constructor,n=N.call(this,t)||this;return n.message=t,n.name=e.prototype.constructor.name,I(n,e.prototype),n}var P=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,F="Invalid Dsn",q=(B.prototype.toString=function(t){var e=this,n=e.host,r=e.path,o=e.pass,i=e.port,s=e.projectId;return e.protocol+"://"+e.publicKey+((t=void 0===t?!1:t)&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r&&r+"/")+s},B.prototype._fromString=function(t){var e=P.exec(t);if(!e)throw new L(F);var n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}(e.slice(1),6),r=n[0],o=n[1],i=n[2],s=void 0===i?"":i,a=n[3],t=n[4],e=void 0===t?"":t,i="",t=n[5],n=t.split("/");1<n.length&&(i=n.slice(0,-1).join("/"),t=n.pop()),!t||(n=t.match(/^\d+/))&&(t=n[0]),this._fromComponents({host:a,pass:s,path:i,projectId:t,port:e,protocol:r,publicKey:o})},B.prototype._fromComponents=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},B.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach(function(t){if(!e[t])throw new L(F+": "+t+" missing")}),!this.projectId.match(/^\d+$/))throw new L(F+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new L(F+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new L(F+": Invalid port "+this.port)},B);function B(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}function M(){return"[object process]"===Object.prototype.toString.call(void 0!=={env:{NODE_ENV:"production"}}?{env:{NODE_ENV:"production"}}:0)}function H(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function W(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{n.push(String(o))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function Y(t,e){return!!m(t)&&("[object RegExp]"===Object.prototype.toString.call(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}var z={};function J(){return M()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:z}function G(){var t=J(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;e=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return e(t[0])+e(t[1])+e(t[2])+e(t[3])+e(t[4])+e(t[5])+e(t[6])+e(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function X(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",t=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+t}}function K(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function V(t){var e=J();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)});t=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),t}function $(t,e,n){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||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function Q(e,n){void 0===n&&(n={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(n).forEach(function(t){e.exception.values[0].mechanism[t]=n[t]})}catch(t){}}var Z=J(),tt="Sentry Logger ",et=(nt.prototype.disable=function(){this._enabled=!1},nt.prototype.enable=function(){this._enabled=!0},nt.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&V(function(){Z.console.log(tt+"[Log]: "+t.join(" "))})},nt.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&V(function(){Z.console.warn(tt+"[Warn]: "+t.join(" "))})},nt.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&V(function(){Z.console.error(tt+"[Error]: "+t.join(" "))})},nt);function nt(){this._enabled=!1}Z.__SENTRY__=Z.__SENTRY__||{};var rt=Z.__SENTRY__.logger||(Z.__SENTRY__.logger=new et),ot=(it.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t)return!0;return this._inner.push(t),!1},it.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},it);function it(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}var st="<anonymous>";function at(t){try{return t&&"function"==typeof t?t.name||st:st}catch(t){return st}}function ct(t,e,n){if(e in t){var r=t[e],n=n(r);if("function"==typeof n)try{n.prototype=n.prototype||{},Object.defineProperties(n,{__sentry_original__:{enumerable:!1,value:r}})}catch(t){}t[e]=n}}function ut(t){if(_(t)){var e,n=t,r={message:n.message,name:n.name,stack:n.stack};for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}if(S(t)){var o,i=t,s={};s.type=i.type;try{s.target=x(i.target)?O(i.target):Object.prototype.toString.call(i.target)}catch(t){s.target="<unknown>"}try{s.currentTarget=x(i.currentTarget)?O(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){s.currentTarget="<unknown>"}for(o in"undefined"!=typeof CustomEvent&&k(t,CustomEvent)&&(s.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,o)&&(s[o]=i[o]);return s}return t}function pt(t){return t=JSON.stringify(t),~-encodeURI(t).split(/%..|./).length}function lt(t,e){return"domain"===e&&t&&"object"===r(t)&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":E(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+at(t)+"]":"symbol"===r(t)?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function dt(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new ot),0===n)return o=e,i=Object.prototype.toString.call(o),"string"==typeof o?o:"[object Object]"===i?"[Object]":"[object Array]"===i?"[Array]":b(o=lt(o))?o:i;var o,i;if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();t=lt(e,t);if(b(t))return t;var s,a=ut(e),c=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(s in a)Object.prototype.hasOwnProperty.call(a,s)&&(c[s]=dt(s,a[s],n-1,r));return r.unmemoize(e),c}function ht(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return dt(t,e,n)}))}catch(t){return"**non-serializable**"}}function ft(t){var e,n;if(E(t)){var r=t,o={};try{for(var i=R(Object.keys(r)),s=i.next();!s.done;s=i.next()){var a=s.value;void 0!==r[a]&&(o[a]=ft(r[a]))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o}return Array.isArray(t)?t.map(ft):t}function vt(){if("fetch"in J())try{return new Headers,new Request(""),new Response,1}catch(t){return}}function _t(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var yt,gt=J(),mt={},bt={};function Et(t){var r,s,a,c,e;if(!bt[t])switch(bt[t]=!0,t){case"console":"console"in gt&&["debug","info","warn","error","log","assert"].forEach(function(r){r in gt.console&&ct(gt.console,r,function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];xt("console",{args:t,level:r}),n&&Function.prototype.apply.call(n,gt.console,t)}})});break;case"dom":"document"in gt&&(c=xt.bind(null,"dom"),e=Ot(c,!0),gt.document.addEventListener("click",e,!1),gt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(t){t=gt[t]&&gt[t].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(ct(t,"addEventListener",function(s){return function(t,e,n){if("click"===t||"keypress"==t)try{var r,o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=o[t]=o[t]||{refCount:0};i.handler||(r=Ot(c),i.handler=r,s.call(this,t,r,n)),i.refCount+=1}catch(t){}return s.call(this,t,e,n)}}),ct(t,"removeEventListener",function(i){return function(t,e,n){if("click"===t||"keypress"==t)try{var r=this.__sentry_instrumentation_handlers__||{},o=r[t];o&&(--o.refCount,o.refCount<=0&&(i.call(this,t,o.handler,n),o.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return i.call(this,t,e,n)}}))}));break;case"xhr":"XMLHttpRequest"in gt&&(s=[],a=[],ct(e=XMLHttpRequest.prototype,"open",function(i){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this,e=n[1];r.__sentry_xhr__={method:m(n[0])?n[0].toUpperCase():n[0],url:n[1]},m(e)&&"POST"===r.__sentry_xhr__.method&&e.match(/sentry_key/)&&(r.__sentry_own_request__=!0);function o(){if(4===r.readyState){try{r.__sentry_xhr__&&(r.__sentry_xhr__.status_code=r.status)}catch(t){}try{var t,e=s.indexOf(r);-1!==e&&(s.splice(e),t=a.splice(e)[0],r.__sentry_xhr__&&void 0!==t[0]&&(r.__sentry_xhr__.body=t[0]))}catch(t){}xt("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}}return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?ct(r,"onreadystatechange",function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(),n.apply(r,t)}}):r.addEventListener("readystatechange",o),i.apply(r,n)}}),ct(e,"send",function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.push(this),a.push(t),xt("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),n.apply(this,t)}}));break;case"fetch":!function(){if(vt()){var t=J();if(_t(t.fetch))return 1;var e=!1,t=t.document;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=_t(n.contentWindow.fetch)),t.head.removeChild(n)}catch(t){rt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}}()||ct(gt,"fetch",function(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={args:t,fetchData:{method:function(t){void 0===t&&(t=[]);if("Request"in gt&&k(t[0],Request)&&t[0].method)return String(t[0].method).toUpperCase();if(t[1]&&t[1].method)return String(t[1].method).toUpperCase();return"GET"}(t),url:function(t){void 0===t&&(t=[]);if("string"==typeof t[0])return t[0];if("Request"in gt&&k(t[0],Request))return t[0].url;return String(t[0])}(t)},startTimestamp:Date.now()};return xt("fetch",j({},n)),r.apply(gt,t).then(function(t){return xt("fetch",j(j({},n),{endTimestamp:Date.now(),response:t})),t},function(t){throw xt("fetch",j(j({},n),{endTimestamp:Date.now(),error:t})),t})}});break;case"history":!function(){var t=J(),e=(e=t.chrome)&&e.app&&e.app.runtime,t="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&t}()||(r=gt.onpopstate,gt.onpopstate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=gt.location.href;if(xt("history",{from:yt,to:yt=n}),r)try{return r.apply(this,t)}catch(t){}},ct(gt.history,"pushState",n),ct(gt.history,"replaceState",n));break;case"error":Tt=gt.onerror,gt.onerror=function(t,e,n,r,o){return xt("error",{column:r,error:o,line:n,msg:t,url:e}),!!Tt&&Tt.apply(this,arguments)};break;case"unhandledrejection":Rt=gt.onunhandledrejection,gt.onunhandledrejection=function(t){return xt("unhandledrejection",t),!Rt||Rt.apply(this,arguments)};break;default:rt.warn("unknown instrumentation type:",t)}function n(o){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=2<t.length?t[2]:void 0;return r&&(n=yt,r=String(r),xt("history",{from:n,to:yt=r})),o.apply(this,t)}}}function St(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(mt[t.type]=mt[t.type]||[],mt[t.type].push(t.callback),Et(t.type))}function xt(e,t){var n,r;if(e&&mt[e])try{for(var o=R(mt[e]||[]),i=o.next();!i.done;i=o.next()){var s=i.value;try{s(t)}catch(t){rt.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+at(s)+"\nError: "+t)}}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var wt,kt;function Ot(n,r){return void 0===r&&(r=!1),function(t){var e;t&&kt!==t&&!function(t){if("keypress"===t.type){try{var e=t.target;if(!e||!e.tagName)return 1;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return}catch(t){}return 1}}(t)&&(e="keypress"===t.type?"input":t.type,void 0!==wt&&!function(t,e){if(!t)return 1;if(t.type!==e.type)return 1;try{if(t.target!==e.target)return 1}catch(t){}}(kt,t)||(n({event:t,name:e,global:r}),kt=t),clearTimeout(wt),wt=gt.setTimeout(function(){wt=void 0},1e3))}}var Tt=null;var jt,Rt=null;(ve=jt=jt||{}).PENDING="PENDING",ve.RESOLVED="RESOLVED",ve.REJECTED="REJECTED";var It=(Nt.resolve=function(e){return new Nt(function(t){t(e)})},Nt.reject=function(n){return new Nt(function(t,e){e(n)})},Nt.all=function(t){return new Nt(function(n,r){var o,i;Array.isArray(t)?0!==t.length?(o=t.length,i=[],t.forEach(function(t,e){Nt.resolve(t).then(function(t){i[e]=t,0===--o&&n(i)}).then(null,r)})):n([]):r(new TypeError("Promise.all requires an array as input."))})},Nt.prototype.then=function(r,o){var t=this;return new Nt(function(e,n){t._attachHandler({done:!1,onfulfilled:function(t){if(r)try{return void e(r(t))}catch(t){return void n(t)}else e(t)},onrejected:function(t){if(o)try{return void e(o(t))}catch(t){return void n(t)}else n(t)}})})},Nt.prototype.catch=function(t){return this.then(function(t){return t},t)},Nt.prototype.finally=function(o){var i=this;return new Nt(function(t,e){var n,r;return i.then(function(t){r=!1,n=t,o&&o()},function(t){r=!0,n=t,o&&o()}).then(function(){(r?e:t)(n)})})},Nt.prototype.toString=function(){return"[object SyncPromise]"},Nt);function Nt(t){var n=this;this._state=jt.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(jt.RESOLVED,t)},this._reject=function(t){n._setResult(jt.REJECTED,t)},this._setResult=function(t,e){n._state===jt.PENDING&&(w(e)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){var t;n._state!==jt.PENDING&&(t=n._handlers.slice(),n._handlers=[],t.forEach(function(t){t.done||(n._state===jt.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===jt.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)}))};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}var Dt=(Ct.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},Ct.prototype.add=function(t){var e=this;if(!this.isReady())return It.reject(new L("Not adding Promise due to buffer limit reached."));var n=t();return-1===this._buffer.indexOf(n)&&this._buffer.push(n),n.then(function(){return e.remove(n)}).then(null,function(){return e.remove(n).then(null,function(){})}),n},Ct.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},Ct.prototype.length=function(){return this._buffer.length},Ct.prototype.drain=function(n){var r=this;return new It(function(t){var e=setTimeout(function(){n&&0<n&&t(!1)},n);It.all(r._buffer).then(function(){clearTimeout(e),t(!0)}).then(null,function(){t(!0)})})},Ct);function Ct(t){this._limit=t,this._buffer=[]}var Lt={nowSeconds:function(){return Date.now()/1e3}};var Ut=(M()?function(){try{return(t=module,e="perf_hooks",t.require(e)).performance}catch(t){return}var t,e}:function(){var t=J().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}})(),At=void 0===Ut?Lt:{nowSeconds:function(){return(Ut.timeOrigin+Ut.now())/1e3}},Pt=Lt.nowSeconds.bind(Lt),Ft=At.nowSeconds.bind(At);!function(){var t=J().performance;if(t&&t.now){var e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=r<36e5,i=t.timing&&t.timing.navigationStart,e="number"==typeof i?Math.abs(i+e-n):36e5;(o||e<36e5)&&(r<=e&&t.timeOrigin)}}();var qt,Bt=(Mt.clone=function(t){var e=new Mt;return t&&(e._breadcrumbs=f(t._breadcrumbs),e._tags=h({},t._tags),e._extra=h({},t._extra),e._contexts=h({},t._contexts),e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=f(t._eventProcessors),e._requestSession=t._requestSession),e},Mt.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},Mt.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},Mt.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},Mt.prototype.getUser=function(){return this._user},Mt.prototype.getRequestSession=function(){return this._requestSession},Mt.prototype.setRequestSession=function(t){return this._requestSession=t,this},Mt.prototype.setTags=function(t){return this._tags=h(h({},this._tags),t),this._notifyScopeListeners(),this},Mt.prototype.setTag=function(t,e){var n;return this._tags=h(h({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},Mt.prototype.setExtras=function(t){return this._extra=h(h({},this._extra),t),this._notifyScopeListeners(),this},Mt.prototype.setExtra=function(t,e){var n;return this._extra=h(h({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},Mt.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},Mt.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},Mt.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},Mt.prototype.setTransaction=function(t){return this.setTransactionName(t)},Mt.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=h(h({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},Mt.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},Mt.prototype.getSpan=function(){return this._span},Mt.prototype.getTransaction=function(){var t,e=this.getSpan();return null!==e&&void 0!==e&&e.transaction?null===e||void 0===e?void 0:e.transaction:null!==(t=null===e||void 0===e?void 0:e.spanRecorder)&&void 0!==t&&t.spans[0]?e.spanRecorder.spans[0]:void 0},Mt.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},Mt.prototype.getSession=function(){return this._session},Mt.prototype.update=function(t){if(!t)return this;if("function"!=typeof t)return t instanceof Mt?(this._tags=h(h({},this._tags),t._tags),this._extra=h(h({},this._extra),t._extra),this._contexts=h(h({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):E(t)&&(this._tags=h(h({},this._tags),t.tags),this._extra=h(h({},this._extra),t.extra),this._contexts=h(h({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this;t=t(this);return t instanceof Mt?t:this},Mt.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},Mt.prototype.addBreadcrumb=function(t,e){e="number"==typeof e?Math.min(e,100):100;if(e<=0)return this;t=h({timestamp:Pt()},t);return this._breadcrumbs=f(this._breadcrumbs,[t]).slice(-e),this._notifyScopeListeners(),this},Mt.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},Mt.prototype.applyToEvent=function(t,e){var n;return this._extra&&Object.keys(this._extra).length&&(t.extra=h(h({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=h(h({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=h(h({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=h(h({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span&&(t.contexts=h({trace:this._span.getTraceContext()},t.contexts),(n=null===(n=this._span.transaction)||void 0===n?void 0:n.name)&&(t.tags=h({transaction:n},t.tags))),this._applyFingerprint(t),t.breadcrumbs=f(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=0<t.breadcrumbs.length?t.breadcrumbs:void 0,this._notifyEventProcessors(f(Ht(),this._eventProcessors),t,e)},Mt.prototype._notifyEventProcessors=function(r,o,i,s){var a=this;return void 0===s&&(s=0),new It(function(e,t){var n=r[s];null===o||"function"!=typeof n?e(o):(w(n=n(h({},o),i))?n.then(function(t){return a._notifyEventProcessors(r,t,i,s+1).then(e)}):a._notifyEventProcessors(r,n,i,s+1).then(e)).then(null,t)})},Mt.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(t){t(e)}),this._notifyingListeners=!1)},Mt.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},Mt);function Mt(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}function Ht(){var t=J();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Wt(t){Ht().push(t)}(Te=qt=qt||{}).Ok="ok",Te.Exited="exited",Te.Crashed="crashed",Te.Abnormal="abnormal",(nn=Re=Re||{}).Ok="ok",nn.Errored="errored",nn.Crashed="crashed";var Yt=(zt.prototype.update=function(t){var e;(t=void 0===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||Ft(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:G()),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:"number"==typeof t.duration?this.duration=t.duration:(e=this.timestamp-this.started,this.duration=0<=e?e: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)},zt.prototype.close=function(t){t?this.update({status:t}):this.status===qt.Ok?this.update({status:qt.Exited}):this.update()},zt.prototype.toJSON=function(){return ft({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:ft({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},zt);function zt(t){this.errors=0,this.sid=G(),this.duration=0,this.status=qt.Ok,this.init=!0,this.ignoreDuration=!1;var e=Ft();this.timestamp=e,this.started=e,t&&this.update(t)}var Jt=4,Gt=(Xt.prototype.isOlderThan=function(t){return this._version<t},Xt.prototype.bindClient=function(t){(this.getStackTop().client=t)&&t.setupIntegrations&&t.setupIntegrations()},Xt.prototype.pushScope=function(){var t=Bt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},Xt.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},Xt.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},Xt.prototype.getClient=function(){return this.getStackTop().client},Xt.prototype.getScope=function(){return this.getStackTop().scope},Xt.prototype.getStack=function(){return this._stack},Xt.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},Xt.prototype.captureException=function(t,e){var n=this._lastEventId=G(),r=e;if(!e){e=void 0;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this._invokeClient("captureException",t,h(h({},r),{event_id:n})),n},Xt.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=G(),o=n;if(!n){n=void 0;try{throw new Error(t)}catch(t){n=t}o={originalException:t,syntheticException:n}}return this._invokeClient("captureMessage",t,e,h(h({},o),{event_id:r})),r},Xt.prototype.captureEvent=function(t,e){var n=G();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,h(h({},e),{event_id:n})),n},Xt.prototype.lastEventId=function(){return this._lastEventId},Xt.prototype.addBreadcrumb=function(t,e){var n,r,o=this.getStackTop(),i=o.scope,s=o.client;i&&s&&(s=(o=s.getOptions&&s.getOptions()||{}).beforeBreadcrumb,n=void 0===s?null:s,(o=void 0===(s=o.maxBreadcrumbs)?100:s)<=0||(s=Pt(),r=h({timestamp:s},t),null!==(t=n?V(function(){return n(r,e)}):r)&&i.addBreadcrumb(t,o)))},Xt.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},Xt.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},Xt.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},Xt.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},Xt.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},Xt.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},Xt.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,e=e.client;n&&e&&t(n)},Xt.prototype.run=function(t){var e=Vt(this);try{t(this)}finally{Vt(e)}},Xt.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return rt.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},Xt.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},Xt.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},Xt.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},Xt.prototype.captureSession=function(t){if(t=void 0===t?!1:t)return this.endSession();this._sendSessionUpdate()},Xt.prototype.endSession=function(){var t;null!==(t=null===(t=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===t?void 0:t.getSession())&&void 0!==t&&t.close(),this._sendSessionUpdate(),null!==(t=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)&&void 0!==t&&t.setSession()},Xt.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,r=e.client,o=r&&r.getOptions()||{},e=o.release,r=o.environment,o=(J().navigator||{}).userAgent,o=new Yt(h(h(h({release:e,environment:r},n&&{user:n.getUser()}),o&&{userAgent:o}),t));return n&&((t=n.getSession&&n.getSession())&&t.status===qt.Ok&&t.update({status:qt.Exited}),this.endSession(),n.setSession(o)),o},Xt.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,t=t.client;!e||(e=e.getSession&&e.getSession())&&t&&t.captureSession&&t.captureSession(e)},Xt.prototype._invokeClient=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getStackTop(),o=r.scope,r=r.client;r&&r[t]&&r[t].apply(r,f(e,[o]))},Xt.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Kt().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,e);rt.warn("Extension method "+t+" couldn't be found, doing nothing.")},Xt);function Xt(t,e,n){void 0===e&&(e=new Bt),this._version=n=void 0===n?Jt:n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}function Kt(){var t=J();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Vt(t){var e=Kt(),n=Zt(e);return te(e,t),n}function $t(){var t=Kt();return Qt(t)&&!Zt(t).isOlderThan(Jt)||te(t,new Gt),(M()?function(e){var t,n,r;try{var o,i=null===(r=null===(n=null===(t=Kt().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;return i?(Qt(i)&&!Zt(i).isOlderThan(Jt)||(o=Zt(e).getStackTop(),te(i,new Gt(o.client,Bt.clone(o.scope)))),Zt(i)):Zt(e)}catch(t){return Zt(e)}}:Zt)(t)}function Qt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub}function Zt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Gt),t.__SENTRY__.hub}function te(t,e){return t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,1)}function ee(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=$t();if(r&&r[t])return r[t].apply(r,d(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function ne(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return ee("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function re(t){ee("withScope",t)}var oe=(ie.prototype.getDsn=function(){return this._dsnObject},ie.prototype.forceEnvelope=function(){return!!this._tunnel},ie.prototype.getBaseApiEndpoint=function(){var t=this.getDsn(),e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},ie.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},ie.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},ie.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},ie.prototype.getStoreEndpointPath=function(){var t=this.getDsn();return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},ie.prototype.getRequestHeaders=function(t,e){var n=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},ie.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e,n=this.getDsn(),r=this.getBaseApiEndpoint()+"embed/error-page/",o=[];for(e in o.push("dsn="+n.toString()),t)"dsn"!==e&&("user"===e?t.user&&(t.user.name&&o.push("name="+encodeURIComponent(t.user.name)),t.user.email&&o.push("email="+encodeURIComponent(t.user.email))):o.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e])));return o.length?r+"?"+o.join("&"):r},ie.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},ie.prototype._getIngestEndpoint=function(t){return this._tunnel||""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+t+"/"},ie.prototype._encodedAuth=function(){var e,t={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return e=t,Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},ie);function ie(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=new q(t),this.metadata=e,this._tunnel=n}var se,ae,ce,ue,pe=function(){return(pe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function le(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}(arguments[e]));return t}(dn=se=se||{}).Ok="ok",dn.Exited="exited",dn.Crashed="crashed",dn.Abnormal="abnormal",(Sn=mn=mn||{}).Ok="ok",Sn.Errored="errored",Sn.Crashed="crashed",(On=ae=ae||{}).Unknown="unknown",On.Skipped="skipped",On.Success="success",On.RateLimit="rate_limit",On.Invalid="invalid",On.Failed="failed",(ce=ae=ae||{}).fromHttpCode=function(t){return 200<=t&&t<300?ce.Success:429===t?ce.RateLimit:400<=t&&t<500?ce.Invalid:500<=t?ce.Failed:ce.Unknown},(et=ue=ue||{}).BeforeSend="before_send",et.EventProcessor="event_processor",et.NetworkError="network_error",et.QueueOverflow="queue_overflow",et.RateLimitBackoff="ratelimit_backoff",et.SampleRate="sample_rate";var de=[];function he(t){return t.reduce(function(t,e){return t.every(function(t){return e.name!==t.name})&&t.push(e),t},[])}function fe(t){var e,n,r={};return t=(e=t).defaultIntegrations&&le(e.defaultIntegrations)||[],n=e.integrations,e=le(he(t)),Array.isArray(n)?e=le(e.filter(function(e){return n.every(function(t){return t.name!==e.name})}),he(n)):"function"==typeof n&&(e=n(e),e=Array.isArray(e)?e:[e]),-1!==(t=e.map(function(t){return t.name})).indexOf("Debug")&&e.push.apply(e,le(e.splice(t.indexOf("Debug"),1))),e.forEach(function(t){r[t.name]=t,t=t,-1===de.indexOf(t.name)&&(t.setupOnce(Wt,$t),de.push(t.name),rt.log("Integration installed: "+t.name))}),Object.defineProperty(r,"initialized",{value:!0}),r}var ve=(_e.prototype.captureException=function(t,e,n){var r=this,o=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then(function(t){return r._captureEvent(t,e,n)}).then(function(t){o=t})),o},_e.prototype.captureMessage=function(t,e,n,r){var o=this,i=n&&n.event_id,t=b(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(t.then(function(t){return o._captureEvent(t,n,r)}).then(function(t){i=t})),i},_e.prototype.captureEvent=function(t,e,n){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then(function(t){r=t})),r},_e.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?rt.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):rt.warn("SDK not enabled, will not capture session.")},_e.prototype.getDsn=function(){return this._dsn},_e.prototype.getOptions=function(){return this._options},_e.prototype.getTransport=function(){return this._getBackend().getTransport()},_e.prototype.flush=function(t){var n=this;return this._isClientDoneProcessing(t).then(function(e){return n.getTransport().close(t).then(function(t){return e&&t})})},_e.prototype.close=function(t){var e=this;return this.flush(t).then(function(t){return e.getOptions().enabled=!1,t})},_e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=fe(this._options))},_e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return rt.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},_e.prototype._updateSessionFromEvent=function(t,e){var n,r=!1,o=!1,e=e.exception&&e.exception.values;if(e){o=!0;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),s=i.next();!s.done;s=i.next()){var a=s.value.mechanism;if(a&&!1===a.handled){r=!0;break}}}catch(t){c={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(c)throw c.error}}}var c=t.status===se.Ok;(c&&0===t.errors||c&&r)&&(t.update(pe(pe({},r&&{status:se.Crashed}),{errors:t.errors||Number(o||r)})),this.captureSession(t))},_e.prototype._sendSession=function(t){this._getBackend().sendSession(t)},_e.prototype._isClientDoneProcessing=function(r){var o=this;return new It(function(t){var e=0,n=setInterval(function(){0==o._numProcessing?(clearInterval(n),t(!0)):(e+=1,r&&r<=e&&(clearInterval(n),t(!1)))},1)})},_e.prototype._getBackend=function(){return this._backend},_e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},_e.prototype._prepareEvent=function(t,e,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,o=pe(pe({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:G()),timestamp:t.timestamp||Pt()});this._applyClientOptions(o),this._applyIntegrationsMetadata(o);t=e;n&&n.captureContext&&(t=Bt.clone(t).update(n.captureContext));e=It.resolve(o);return(e=t?t.applyToEvent(o,n):e).then(function(t){return"number"==typeof i&&0<i?r._normalizeEvent(t,i):t})},_e.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=pe(pe(pe(pe(pe({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return pe(pe({},t),t.data&&{data:ht(t.data,e)})})}),t.user&&{user:ht(t.user,e)}),t.contexts&&{contexts:ht(t.contexts,e)}),t.extra&&{extra:ht(t.extra,e)});t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace);t=this.getOptions()._experiments;return(void 0===t?{}:t).ensureNoCircularStructures?ht(n):n},_e.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,i=e.maxValueLength,i=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=H(t.message,i));o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=H(o.value,i));t=t.request;t&&t.url&&(t.url=H(t.url,i))},_e.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);0<e.length&&(t.sdk=t.sdk||{},t.sdk.integrations=le(t.sdk.integrations||[],e))},_e.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},_e.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then(function(t){return t.event_id},function(t){rt.error(t)})},_e.prototype._processEvent=function(n,r,o){var i=this,t=this.getOptions(),s=t.beforeSend,e=t.sampleRate,a=this.getTransport();if(!this._isEnabled())return It.reject(new L("SDK not enabled, will not capture event."));var c="transaction"===n.type;return!c&&"number"==typeof e&&Math.random()>e?(null!==(t=a.recordLostEvent)&&void 0!==t&&t.call(a,ue.SampleRate,"event"),It.reject(new L("Discarding event because it's not included in the random sample (sampling rate = "+e+")"))):this._prepareEvent(n,o,r).then(function(t){var e;if(null===t)throw null!==(e=a.recordLostEvent)&&void 0!==e&&e.call(a,ue.EventProcessor,n.type||"event"),new L("An event processor returned null, will not send event.");if(r&&r.data&&!0===r.data.__sentry__||c||!s)return t;t=s(t,r);return i._ensureBeforeSendRv(t)}).then(function(t){if(null===t)throw null!==(e=a.recordLostEvent)&&void 0!==e&&e.call(a,ue.BeforeSend,n.type||"event"),new L("`beforeSend` returned `null`, will not send event.");var e=o&&o.getSession&&o.getSession();return!c&&e&&i._updateSessionFromEvent(e,t),i._sendEvent(t),t}).then(null,function(t){if(t instanceof L)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new L("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},_e.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then(function(t){return--e._numProcessing,t},function(t){return--e._numProcessing,t})},_e.prototype._ensureBeforeSendRv=function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(w(t))return t.then(function(t){if(!E(t)&&null!==t)throw new L(e);return t},function(t){throw new L("beforeSend rejected with "+t)});if(!E(t)&&null!==t)throw new L(e);return t},_e);function _e(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),(this._options=e).dsn&&(this._dsn=new q(e.dsn))}var ye=(ge.prototype.sendEvent=function(t){return It.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:ae.Skipped})},ge.prototype.close=function(t){return It.resolve(!0)},ge);function ge(){}me.prototype.eventFromException=function(t,e){throw new L("Backend has to implement `eventFromException` method")},me.prototype.eventFromMessage=function(t,e,n){throw new L("Backend has to implement `eventFromMessage` method")},me.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,function(t){rt.error("Error while sending event: "+t)})},me.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,function(t){rt.error("Error while sending session: "+t)}):rt.warn("Dropping session because custom transport doesn't implement sendSession")},me.prototype.getTransport=function(){return this._transport},me.prototype._setupTransport=function(){return new ye},Lt=me;function me(t){this._options=t,this._options.dsn||rt.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}function be(t){if(t.metadata&&t.metadata.sdk){t=t.metadata.sdk;return{name:t.name,version:t.version}}}function Ee(t,e){var n=be(e),r=JSON.stringify(pe(pe({sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()})),n="aggregates"in t?"sessions":"session";return{body:r+"\n"+JSON.stringify({type:n})+"\n"+JSON.stringify(t),type:n,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function Se(t,e){var n=be(e),r=t.type||"event",o="transaction"===r||e.forceEnvelope(),i=t.debug_meta||{},s=i.transactionSampling,a=function(t,e){var n={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n}(i,["transactionSampling"]),i=s||{},s=i.method,i=i.rate;0===Object.keys(a).length?delete t.debug_meta:t.debug_meta=a;var c,c={body:JSON.stringify(n?(c=t,(a=e.metadata.sdk)&&(c.sdk=c.sdk||{},c.sdk.name=c.sdk.name||a.name,c.sdk.version=c.sdk.version||a.version,c.sdk.integrations=le(c.sdk.integrations||[],a.integrations||[]),c.sdk.packages=le(c.sdk.packages||[],a.packages||[])),c):t),type:r,url:o?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};return o&&(i=JSON.stringify(pe(pe({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),e.forceEnvelope()&&{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:s,rate:i}]})+"\n"+c.body,c.body=i),c}var xe,we="6.13.3",At=(ke.prototype.setupOnce=function(){xe=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry_original__||this;return xe.apply(n,t)}},ke.id="FunctionToString",ke);function ke(){this.name=ke.id}var Oe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Te=(je.prototype.setupOnce=function(){Wt(function(t){var e=$t();if(!e)return t;var n=e.getIntegration(je);if(n){e=e.getClient(),e=e?e.getOptions():{},e="function"==typeof n._mergeOptions?n._mergeOptions(e):{};return"function"!=typeof n._shouldDropEvent?t:n._shouldDropEvent(t,e)?null:t}return t})},je.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(rt.warn("Event dropped due to being internal Sentry Error.\nEvent: "+K(t)),!0):this._isIgnoredError(t,e)?(rt.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+K(t)),!0):this._isDeniedUrl(t,e)?(rt.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+K(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(rt.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+K(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},je.prototype._isSentryError=function(t,e){if(!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},je.prototype._isIgnoredError=function(t,n){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this._getPossibleEventMessages(t).some(function(e){return n.ignoreErrors.some(function(t){return Y(e,t)})})},je.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some(function(t){return Y(n,t)})},je.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some(function(t){return Y(n,t)})},je.prototype._mergeOptions=function(t){return{allowUrls:le(this._options.whitelistUrls||[],this._options.allowUrls||[],(t=void 0===t?{}:t).whitelistUrls||[],t.allowUrls||[]),denyUrls:le(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:le(this._options.ignoreErrors||[],t.ignoreErrors||[],Oe),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},je.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return rt.error("Cannot extract message for event "+K(e)),[]}return[]},je.prototype._getLastValidUrl=function(t){for(var e=(t=void 0===t?[]:t).length-1;0<=e;e--){var n=t[e];if("<anonymous>"!==(null===n||void 0===n?void 0:n.filename)&&"[native code]"!==(null===n||void 0===n?void 0:n.filename))return n.filename||null}return null},je.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return this._getLastValidUrl(t)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch(t){return rt.error("Cannot extract url for event "+K(e)),null}},je.id="InboundFilters",je);function je(t){this._options=t=void 0===t?{}:t,this.name=je.id}var Re=Object.freeze({__proto__:null,FunctionToString:At,InboundFilters:Te}),Ie="?",Ne=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,De=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ce=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Le=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ue=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ae=/Minified React error #\d+;/i;function Pe(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:Ae.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),s=[],a=0;a<i.length;a+=2){var c=null;(e=r.exec(i[a]))?c={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=o.exec(i[a]))&&(c={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),c&&(!c.func&&c.line&&(c.func=Ie),s.push(c))}return s.length?{message:Be(t),name:t.name,stack:s}:null}(t))return qe(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,r,o=[],i=t.stack.split("\n"),s=0;s<i.length;++s){if(n=Ne.exec(i[s])){var a=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=Ue.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]);var c=n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],u=n[1]||Ie;r=p(Fe(u,c),2),u=r[0],c=r[1],r={url:c,func:u,args:a?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=Ce.exec(i[s]))r={url:n[2],func:n[1]||Ie,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=De.exec(i[s])))continue;n[3]&&-1<n[3].indexOf(" > eval")&&(e=Le.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==s||n[5]||void 0===t.columnNumber||(o[0].column=t.columnNumber+1);c=n[3],u=n[1]||Ie;a=p(Fe(u,c),2),u=a[0],c=a[1],r={url:c,func:u,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=Ie),o.push(r)}return o.length?{message:Be(t),name:t.name,stack:o}:null}(t))return qe(e,n)}catch(t){}return{message:Be(t),name:t&&t.name,stack:[],failed:!0}}var Fe=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Ie,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function qe(e,t){try{return c(c({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function Be(t){t=t&&t.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}var Me=50;function He(t){var e=ze(t.stack),t={type:t.name,value:t.message};return e&&e.length&&(t.stacktrace={frames:e}),void 0===t.type&&""===t.value&&(t.value="Unrecoverable error caught"),t}function We(t,e,n){t={exception:{values:[{type:S(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+function(t,e){void 0===e&&(e=40);var n=Object.keys(ut(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return H(n[0],e);for(var r=n.length;0<r;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:H(o,e)}return""}(t)}]},extra:{__serialized__:function t(e,n,r){void 0===r&&(r=102400);var o=ht(e,n=void 0===n?3:n);return pt(o)>r?t(e,n-1,r):o}(t)}};return e&&(e=ze(Pe(e).stack),t.stacktrace={frames:e}),t}function Ye(t){return{exception:{values:[He(t)]}}}function ze(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",t=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),(e=-1!==t.indexOf("sentryWrapped")?e.slice(0,-1):e).slice(0,Me).map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).reverse()}function Je(t,e,n){t=Xe(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return Q(t,{handled:!0,type:"generic"}),t.level=i.Error,n&&n.event_id&&(t.event_id=n.event_id),It.resolve(t)}function Ge(t,e,n,r){void 0===n&&(n=i.Info);t=Ke(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return t.level=n,r&&r.event_id&&(t.event_id=r.event_id),It.resolve(t)}function Xe(t,e,n){if(void 0===n&&(n={}),y(t)&&t.error)return r=Ye(Pe(t=t.error));if(g(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var r,o=t,i=o.name||(g(o)?"DOMError":"DOMException"),i=o.message?i+": "+o.message:i;return $(r=Ke(i,e,n),i),"code"in o&&(r.tags=c(c({},r.tags),{"DOMException.code":""+o.code})),r}return _(t)?r=Ye(Pe(t)):(E(t)||S(t)?Q(r=We(t,e,n.rejection),{synthetic:!0}):($(r=Ke(t,e,n),""+t,void 0),Q(r,{synthetic:!0})),r)}function Ke(t,e,n){t={message:t};return(n=void 0===n?{}:n).attachStacktrace&&e&&(e=ze(Pe(e).stack),t.stacktrace={frames:e}),t}var Ve,$e=J();function Qe(){var t;if(Ve)return Ve;if(_t($e.fetch))return Ve=$e.fetch.bind($e);var e=$e.document,n=$e.fetch;if("function"==typeof(null===e||void 0===e?void 0:e.createElement))try{var r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),null!==(t=r.contentWindow)&&void 0!==t&&t.fetch&&(n=r.contentWindow.fetch),e.head.removeChild(r)}catch(t){rt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Ve=n.bind($e)}function Ze(t,e){var n="[object Navigator]"===Object.prototype.toString.call($e&&$e.navigator)&&"function"==typeof $e.navigator.sendBeacon;if(n)return $e.navigator.sendBeacon.bind($e.navigator)(t,e);if(vt()){n=Qe();return n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,function(t){console.error(t)}),0}}var tn={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},en=J(),nn=(rn.prototype.sendEvent=function(t){throw new L("Transport Class has to implement `sendEvent` method")},rn.prototype.close=function(t){return this._buffer.drain(t)},rn.prototype.recordLostEvent=function(t,e){this.options.sendClientReports&&(rt.log("Adding outcome: "+(t=tn[e]+":"+t)),this._outcomes[t]=(null!=(t=this._outcomes[t])?t:0)+1)},rn.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},Object.keys(r).length){rt.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var t=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),e=JSON.stringify({})+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:Pt(),discarded_events:Object.keys(r).map(function(t){var e=p(t.split(":"),2),n=e[0];return{reason:e[1],category:n,quantity:r[t]}})});try{Ze(t,e)}catch(t){rt.error(t)}}else rt.log("No outcomes to flush")}},rn.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,i=t.reject,t=s.fromHttpCode(n.status);this._handleRateLimit(r)&&rt.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),t!==s.Success?i(n):o({status:t})},rn.prototype._disabledUntil=function(t){return this._rateLimits[tn[t]]||this._rateLimits.all},rn.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},rn.prototype._handleRateLimit=function(t){var e,n,r,o,i=Date.now(),s=t["x-sentry-rate-limits"],t=t["retry-after"];if(s){try{for(var a=v(s.trim().split(",")),c=a.next();!c.done;c=a.next()){var u=c.value.split(":",2),p=parseInt(u[0],10),l=1e3*(isNaN(p)?60:p);try{for(var d=(r=void 0,v(u[1].split(";"))),h=d.next();!h.done;h=d.next()){var f=h.value;this._rateLimits[f||"all"]=new Date(i+l)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}return!!t&&(this._rateLimits.all=new Date(i+function(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);return isNaN(n)?(e=Date.parse(""+e),isNaN(e)?6e4:e-t):1e3*n}(i,t)),!0)},rn);function rn(t){var e=this;this.options=t,this._buffer=new Dt(30),this._rateLimits={},this._outcomes={},this._api=new oe(t.dsn,t._metadata,t.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&en.document&&en.document.addEventListener("visibilitychange",function(){"hidden"===en.document.visibilityState&&e._flushOutcomes()})}var on,sn=(t(an,on=nn),an.prototype.sendEvent=function(t){return this._sendRequest(Se(t,this._api),t)},an.prototype.sendSession=function(t){return this._sendRequest(Ee(t,this._api),t)},an.prototype._sendRequest=function(o,t){var i=this;if(this._isRateLimited(o.type))return this.recordLostEvent(a.RateLimitBackoff,o.type),Promise.reject({event:t,type:o.type,reason:"Transport for "+o.type+" requests locked till "+this._disabledUntil(o.type)+" due to too many requests.",status:429});var e={body:o.body,method:"POST",referrerPolicy:function(){if(vt())try{return new Request("_",{referrerPolicy:"origin"}),1}catch(t){return}}()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(e,this.options.fetchParameters),void 0!==this.options.headers&&(e.headers=this.options.headers),this._buffer.add(function(){return new It(function(n,r){i._fetch(o.url,e).then(function(t){var e={"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")};i._handleResponse({requestType:o.type,response:t,headers:e,resolve:n,reject:r})}).catch(r)})}).then(void 0,function(t){throw t instanceof L?i.recordLostEvent(a.QueueOverflow,o.type):i.recordLostEvent(a.NetworkError,o.type),t})},an);function an(t,e){void 0===e&&(e=Qe());t=on.call(this,t)||this;return t._fetch=e,t}var cn,un=(t(pn,cn=nn),pn.prototype.sendEvent=function(t){return this._sendRequest(Se(t,this._api),t)},pn.prototype.sendSession=function(t){return this._sendRequest(Ee(t,this._api),t)},pn.prototype._sendRequest=function(o,t){var i=this;return this._isRateLimited(o.type)?(this.recordLostEvent(a.RateLimitBackoff,o.type),Promise.reject({event:t,type:o.type,reason:"Transport for "+o.type+" requests locked till "+this._disabledUntil(o.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new It(function(e,n){var t,r=new XMLHttpRequest;for(t in r.onreadystatechange=function(){var t;4===r.readyState&&(t={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")},i._handleResponse({requestType:o.type,response:r,headers:t,resolve:e,reject:n}))},r.open("POST",o.url),i.options.headers)i.options.headers.hasOwnProperty(t)&&r.setRequestHeader(t,i.options.headers[t]);r.send(o.body)})}).then(void 0,function(t){throw t instanceof L?i.recordLostEvent(a.QueueOverflow,o.type):i.recordLostEvent(a.NetworkError,o.type),t})},pn);function pn(){return null!==cn&&cn.apply(this,arguments)||this}var ln,dn=Object.freeze({__proto__:null,BaseTransport:nn,FetchTransport:sn,XHRTransport:un}),hn=(t(fn,ln=Lt),fn.prototype.eventFromException=function(t,e){return Je(this._options,t,e)},fn.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=i.Info),Ge(this._options,t,e,n)},fn.prototype._setupTransport=function(){if(!this._options.dsn)return ln.prototype._setupTransport.call(this);var t=c(c({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return new(this._options.transport||(vt()?sn:un))(t)},fn);function fn(){return null!==ln&&ln.apply(this,arguments)||this}var vn=J(),_n=0;function yn(e,r,o){if(void 0===r&&(r={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}function t(){var n=Array.prototype.slice.call(arguments);try{o&&"function"==typeof o&&o.apply(this,arguments);var t=n.map(function(t){return yn(t,r)});return e.handleEvent?e.handleEvent.apply(this,t):e.apply(this,t)}catch(e){throw _n+=1,setTimeout(function(){--_n}),re(function(t){t.addEventProcessor(function(t){t=c({},t);return r.mechanism&&($(t,void 0,void 0),Q(t,r.mechanism)),t.extra=c(c({},t.extra),{arguments:n}),t}),ne(e)}),e}}try{for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}catch(t){}e.prototype=e.prototype||{},t.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:t}),Object.defineProperties(t,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(t,"name").configurable&&Object.defineProperty(t,"name",{get:function(){return e.name}})}catch(t){}return t}function gn(t){var e;void 0===t&&(t={}),vn.document&&(t.eventId?t.dsn?((e=vn.document.createElement("script")).async=!0,e.src=new oe(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(t=vn.document.head||vn.document.body)&&t.appendChild(e)):rt.error("Missing dsn option in showReportDialog call"):rt.error("Missing eventId option in showReportDialog call"))}var mn=(bn.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(rt.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(rt.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},bn.prototype._installGlobalOnErrorHandler=function(){var i=this;this._onErrorHandlerInstalled||(St({callback:function(t){var e=t.error,n=$t(),r=n.getIntegration(bn),o=e&&!0===e.__sentry_own_request__;!r||0<_n||o||(o=n.getClient(),Q(t=void 0===e&&m(t.msg)?i._eventFromIncompleteOnError(t.msg,t.url,t.line,t.column):i._enhanceEventWithInitialFrame(Xe(e||t.msg,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!1}),t.url,t.line,t.column),{handled:!1,type:"onerror"}),n.captureEvent(t,{originalException:e}))},type:"error"}),this._onErrorHandlerInstalled=!0)},bn.prototype._installGlobalOnUnhandledRejectionHandler=function(){var o=this;this._onUnhandledRejectionHandlerInstalled||(St({callback:function(t){var e=t;try{"reason"in t?e=t.reason:"detail"in t&&"reason"in t.detail&&(e=t.detail.reason)}catch(t){}var n=$t(),r=n.getIntegration(bn),t=e&&!0===e.__sentry_own_request__;if(!r||0<_n||t)return!0;t=n.getClient(),t=b(e)?o._eventFromRejectionWithPrimitive(e):Xe(e,void 0,{attachStacktrace:t&&t.getOptions().attachStacktrace,rejection:!0});t.level=i.Error,Q(t,{handled:!1,type:"onunhandledrejection"}),n.captureEvent(t,{originalException:e})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},bn.prototype._eventFromIncompleteOnError=function(t,e,n,r){var o,i=y(t)?t.message:t,t=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return t&&(o=t[1],i=t[2]),this._enhanceEventWithInitialFrame({exception:{values:[{type:o||"Error",value:i}]}},e,n,r)},bn.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},bn.prototype._enhanceEventWithInitialFrame=function(t,e,n,r){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||[];r=isNaN(parseInt(r,10))?void 0:r,n=isNaN(parseInt(n,10))?void 0:n,e=m(e)&&0<e.length?e:function(){var t=J();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:r,filename:e,function:"?",in_app:!0,lineno:n}),t},bn.id="GlobalHandlers",bn);function bn(t){this.name=bn.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=c({onerror:!0,onunhandledrejection:!0},t)}var En=["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"],Sn=(xn.prototype.setupOnce=function(){var t=J();this._options.setTimeout&&ct(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&ct(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&ct(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&ct(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:En).forEach(this._wrapEventTarget.bind(this))},xn.prototype._wrapTimeFunction=function(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0];return t[0]=yn(n,{mechanism:{data:{function:at(r)},handled:!0,type:"instrument"}}),r.apply(this,t)}},xn.prototype._wrapRAF=function(e){return function(t){return e.call(this,yn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:at(e)},handled:!0,type:"instrument"}}))}},xn.prototype._wrapEventTarget=function(o){var t=J(),t=t[o]&&t[o].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(ct(t,"addEventListener",function(r){return function(t,e,n){try{"function"==typeof e.handleEvent&&(e.handleEvent=yn(e.handleEvent.bind(e),{mechanism:{data:{function:"handleEvent",handler:at(e),target:o},handled:!0,type:"instrument"}}))}catch(t){}return r.call(this,t,yn(e,{mechanism:{data:{function:"addEventListener",handler:at(e),target:o},handled:!0,type:"instrument"}}),n)}}),ct(t,"removeEventListener",function(o){return function(t,e,n){try{var r=null===e||void 0===e?void 0:e.__sentry_wrapped__;r&&o.call(this,t,r,n)}catch(t){}return o.call(this,t,e,n)}}))},xn.prototype._wrapXHR=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(n){n in r&&"function"==typeof r[n]&&ct(r,n,function(t){var e={mechanism:{data:{function:n,handler:at(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(e.mechanism.data.handler=at(t.__sentry_original__)),yn(t,e)})}),n.apply(this,t)}},xn.id="TryCatch",xn);function xn(t){this.name=xn.id,this._options=c({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}var wn=(kn.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&$t().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:K(t)},{event:t})},kn.prototype.setupOnce=function(){var n=this;this._options.console&&St({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._consoleBreadcrumb.apply(n,u(t))},type:"console"}),this._options.dom&&St({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._domBreadcrumb.apply(n,u(t))},type:"dom"}),this._options.xhr&&St({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._xhrBreadcrumb.apply(n,u(t))},type:"xhr"}),this._options.fetch&&St({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._fetchBreadcrumb.apply(n,u(t))},type:"fetch"}),this._options.history&&St({callback:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._historyBreadcrumb.apply(n,u(t))},type:"history"})},kn.prototype._consoleBreadcrumb=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:i.fromString(t.level),message:W(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(W(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}$t().addBreadcrumb(e,{input:t.args,level:t.level})},kn.prototype._domBreadcrumb=function(t){var e,n="object"===r(this._options.dom)?this._options.dom.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{e=t.event.target?O(t.event.target,n):O(t.event,n)}catch(t){e="<unknown>"}0!==e.length&&$t().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},kn.prototype._xhrBreadcrumb=function(t){var e,n,r,o;t.endTimestamp&&(t.xhr.__sentry_own_request__||(e=(o=t.xhr.__sentry_xhr__||{}).method,n=o.url,r=o.status_code,o=o.body,$t().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:o})))},kn.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?$t().addBreadcrumb({category:"fetch",data:t.fetchData,level:i.Error,type:"http"},{data:t.error,input:t.args}):$t().addBreadcrumb({category:"fetch",data:c(c({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},kn.prototype._historyBreadcrumb=function(t){var e=J(),n=t.from,r=t.to,o=X(e.location.href),t=X(n),e=X(r);t.path||(t=o),o.protocol===e.protocol&&o.host===e.host&&(r=e.relative),o.protocol===t.protocol&&o.host===t.host&&(n=t.relative),$t().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},kn.id="Breadcrumbs",kn);function kn(t){this.name=kn.id,this._options=c({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}var On=(Tn.prototype.setupOnce=function(){Wt(function(t,e){var n=$t().getIntegration(Tn);if(n){n=n._handler&&n._handler.bind(n);return"function"==typeof n?n(t,e):t}return t})},Tn.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&k(e.originalException,Error)))return t;e=this._walkErrorTree(e.originalException,this._key);return t.exception.values=u(e,t.exception.values),t},Tn.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!k(t[e],Error)||n.length+1>=this._limit)return n;var r=He(Pe(t[e]));return this._walkErrorTree(t[e],e,u([r],n))},Tn.id="LinkedErrors",Tn);function Tn(t){void 0===t&&(t={}),this.name=Tn.id,this._key=t.key||"cause",this._limit=t.limit||5}var jn=J(),et=(Rn.prototype.setupOnce=function(){Wt(function(t){var e;if($t().getIntegration(Rn)){if(!jn.navigator&&!jn.location&&!jn.document)return t;var n=(null===(o=t.request)||void 0===o?void 0:o.url)||(null===(e=jn.location)||void 0===e?void 0:e.href),r=(jn.document||{}).referrer,o=(jn.navigator||{}).userAgent,o=c(c(c({},null===(e=t.request)||void 0===e?void 0:e.headers),r&&{Referer:r}),o&&{"User-Agent":o}),o=c(c({},n&&{url:n}),{headers:o});return c(c({},t),{request:o})}return t})},Rn.id="UserAgent",Rn);function Rn(){this.name=Rn.id}In.prototype.setupOnce=function(t,r){t(function(e){var n=r().getIntegration(In);if(n){try{if(n._shouldDropEvent(e,n._previousEvent))return rt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e})},In.prototype._shouldDropEvent=function(t,e){return!!e&&(!!this._isSameMessageEvent(t,e)||!!this._isSameExceptionEvent(t,e))},In.prototype._isSameMessageEvent=function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(t,e)&&!!this._isSameStacktrace(t,e))))},In.prototype._getFramesFromEvent=function(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},In.prototype._isSameStacktrace=function(t,e){var n=this._getFramesFromEvent(t),r=this._getFramesFromEvent(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0},In.prototype._getExceptionFromEvent=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},In.prototype._isSameExceptionEvent=function(t,e){var n=this._getExceptionFromEvent(e),r=this._getExceptionFromEvent(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!this._isSameFingerprint(t,e)&&!!this._isSameStacktrace(t,e)))},In.prototype._isSameFingerprint=function(t,e){t=t.fingerprint,e=e.fingerprint;if(!t&&!e)return!0;if(t&&!e||!t&&e)return!1;try{return!(t.join("")!==e.join(""))}catch(t){return!1}},In.id="Dedupe",nn=In;function In(){this.name=In.id}var Nn,Lt=Object.freeze({__proto__:null,GlobalHandlers:mn,TryCatch:Sn,Breadcrumbs:wn,LinkedErrors:On,UserAgent:et,Dedupe:nn}),Dn=(t(Cn,Nn=ve),Cn.prototype.showReportDialog=function(t){void 0===t&&(t={}),J().document&&(this._isEnabled()?gn(c(c({},t),{dsn:t.dsn||this.getDsn()})):rt.error("Trying to call showReportDialog with Sentry Client disabled"))},Cn.prototype._prepareEvent=function(t,e,n){return t.platform=t.platform||"javascript",Nn.prototype._prepareEvent.call(this,t,e,n)},Cn.prototype._sendEvent=function(t){var e=this.getIntegration(wn);e&&e.addSentryBreadcrumb(t),Nn.prototype._sendEvent.call(this,t)},Cn);function Cn(t){return(t=void 0===t?{}:t)._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:we}],version:we},Nn.call(this,hn,t)||this}var Ln=[new Te,new At,new Sn,new wn,new mn,new On,new nn,new et];nn={},et=J();et.Sentry&&et.Sentry.Integrations&&(nn=et.Sentry.Integrations);var Re=c(c(c({},nn),Re),Lt),Lt=Object.freeze({__proto__:null,Integrations:Re,Transports:dn,get Severity(){return i},get Status(){return s},addGlobalEventProcessor:Wt,addBreadcrumb:function(t){ee("addBreadcrumb",t)},captureException:ne,captureEvent:function(t){return ee("captureEvent",t)},captureMessage:function(t,e){var n;try{throw new Error(t)}catch(t){n=t}return ee("captureMessage",t,"string"==typeof e?e:void 0,l({originalException:t,syntheticException:n},"string"!=typeof e?{captureContext:e}:void 0))},configureScope:function(t){ee("configureScope",t)},getHubFromCarrier:Zt,getCurrentHub:$t,Hub:Gt,makeMain:Vt,Scope:Bt,startTransaction:function(t,e){return ee("startTransaction",l({},t),e)},SDK_VERSION:we,setContext:function(t,e){ee("setContext",t,e)},setExtra:function(t,e){ee("setExtra",t,e)},setExtras:function(t){ee("setExtras",t)},setTag:function(t,e){ee("setTag",t,e)},setTags:function(t){ee("setTags",t)},setUser:function(t){ee("setUser",t)},withScope:re,BrowserClient:Dn,injectReportDialog:gn,eventFromException:Je,eventFromMessage:Ge,defaultIntegrations:Ln,forceLoad:function(){},init:function(t){var e,n;void 0===(t=void 0===t?{}:t).defaultIntegrations&&(t.defaultIntegrations=Ln),void 0!==t.release||(e=J()).SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,e){var n;!0===e.debug&&rt.enable();var r=$t();null!==(n=r.getScope())&&void 0!==n&&n.update(e.initialScope),e=new t(e),r.bindClient(e)}(Dn,t),t.autoSessionTracking&&(void 0!==J().document?"function"==typeof(n=$t()).startSession&&"function"==typeof n.captureSession&&(n.startSession({ignoreDuration:!0}),n.captureSession(),St({callback:function(t){var e=t.from,t=t.to;void 0!==e&&e!==t&&(n.startSession({ignoreDuration:!0}),n.captureSession())},type:"history"})):rt.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))},lastEventId:function(){return $t().lastEventId()},onLoad:function(t){t()},showReportDialog:function(t){void 0===t&&(t={});var e=$t(),n=e.getScope();n&&(t.user=c(c({},n.getUser()),t.user)),t.eventId||(t.eventId=e.lastEventId()),(e=e.getClient())&&e.showReportDialog(t)},flush:function(t){var e=$t().getClient();return e?e.flush(t):(rt.warn("Cannot flush events. No client defined."),It.resolve(!1))},close:function(t){var e=$t().getClient();return e?e.close(t):(rt.warn("Cannot flush events and disable SDK. No client defined."),It.resolve(!1))},wrap:function(t){return yn(t)()},SDK_NAME:"sentry.javascript.browser"}),Un="undefined"!=typeof document&&"undefined"!=typeof window&&window.cordova&&window.cordova.platformId,Re=window.isDevEv||window.JSTESTING,dn=An("RavenURL",Re?"https://65d65a6c23ab46e49d5d75247f98a782@sentry.io/44142":"https://8843f791501144e0b0dd4e8bd560d758@sentry.io/44141"),Lt=window.Sentry||Lt,Re={dsn:dn,release:"12.2.7",environment:Re?"development":"production",maxBreadcrumbs:20,ignoreErrors:["'null' is not an object (evaluating 'a.id')",'"null" is not an object (evaluating "a.id")',"/redirect/redirectslider.aspx","<anonymous> in zteMove","Cannot read property '_avast_submit' of undefined","Cannot read property 'end' of undefined","Cannot read property 'move' of undefined","/redirect/redirectslider.aspx","/maps-api-v3/api/js/31/0/common.js",/gc\.kis\.v2\.scr\.kaspersky\-labs\.com/,"js/static.js",/chrome-extension:\/\//,/webkitExitFullScreen/,"Extension context invalidated",/ResizeObserver/,"a.LegacyGlobal.LP_explicit_ignored is not a function"],beforeSend:function(t,e){if(window.isLocalEv||window.JSTESTING)return null;t.logger=(Un?"native-":"web-")+"ng2-js";try{if(t.extra.__serialized__&&e){var n=e.originalException;if(n instanceof Event&&(t.extra.__type__=n.type,t.extra.__source__=(n.target||"").toString(),"unhandledrejection"==t.extra.__serialized__.type&&t.extra.__serialized__.reason&&t.extra.__serialized__.reason.message&&-1<t.extra.__serialized__.reason.message.indexOf("Extension")))return null}if(t.message&&-1<t.message.indexOf("removeChild")&&(!t.stacktrace||!t.stacktrace.frames||!t.stacktrace.frames.length))return null}catch(t){}return-1<navigator.userAgent.indexOf("BrandVerity")?null:t},beforeBreadcrumb:function(t){return"console"==t.category?null:t}};Lt&&Lt.Integrations&&(Re.integrations=[new Lt.Integrations.Breadcrumbs({console:!1})]),Lt.init(Re),Lt.setTag("Application","WH-FE-NG2"),Lt.setTag("Color",window.SRV_COLOR||"Default");An("Raven",Lt)}}});