System.register([],function(xr){"use strict";return{execute:function(){function h(t){return(h="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 M=function(t,e){return(M=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 q(t,e){function n(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a,v=function(){return(v=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 _(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 y(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 s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(y(arguments[e]));return t}function U(){return("undefined"==typeof __SENTRY_BROWSER_BUNDLE__||!__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!=={env:{NODE_ENV:"production"}}?{env:{NODE_ENV:"production"}}:0)}(t=a=a||{}).Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical";var A={};function i(){return U()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:A}function B(t,e,n){n=n||i(),n=n.__SENTRY__=n.__SENTRY__||{};return n[t]||(n[t]=e())}var z=Object.prototype.toString;function F(t){switch(z.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return 1;default:return p(t,Error)}}function u(t,e){return z.call(t)==="[object "+e+"]"}function H(t){return u(t,"ErrorEvent")}function Y(t){return u(t,"DOMError")}function c(t){return u(t,"String")}function W(t){return null===t||"object"!==h(t)&&"function"!=typeof t}function G(t){return u(t,"Object")}function J(t){return"undefined"!=typeof Event&&p(t,Event)}function X(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function K(t){return"number"==typeof t&&t!=t}function p(t,e){try{return t instanceof e}catch(t){return!1}}function $(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());t=e&&e.length?e.filter(function(t){return s.getAttribute(t)}).map(function(t){return[t,s.getAttribute(t)]}):null;if(t&&t.length)t.forEach(function(t){a.push("["+t[0]+'="'+t[1]+'"]')});else if(s.id&&a.push("#"+s.id),(e=s.className)&&c(e))for(n=e.split(/\s+/),i=0;i<n.length;i++)a.push("."+n[i]);var u=["type","name","title","alt"];for(i=0;i<u.length;i++)r=u[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 V=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t});q(Z,Q=Error);var Q,d=Z;function Z(t){var e=this.constructor,n=Q.call(this,t)||this;return n.message=t,n.name=e.prototype.constructor.name,V(n,e.prototype),n}var tt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,et=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nt(t,e){var n=t.host,r=t.path,o=t.pass,i=t.port,s=t.projectId;return t.protocol+"://"+t.publicKey+((e=void 0===e?!1:e)&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r&&r+"/")+s}function rt(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ot(t){var t=("string"==typeof t?function(t){if(!(e=et.exec(t)))throw new d("Invalid Sentry Dsn: "+t);var e=(t=y(e.slice(1),6))[0],n=t[1],r=void 0===(r=t[2])?"":r,o=t[3],i=void 0===(i=t[4])?"":i,s="",a=(t=t[5]).split("/");return 1<a.length&&(s=a.slice(0,-1).join("/"),t=a.pop()),rt({host:o,pass:r,path:s,projectId:t=t&&(a=t.match(/^\d+/))?a[0]:t,port:i,protocol:e,publicKey:n})}:rt)(t),e=t;if(tt){var n=e.port,r=e.projectId,o=e.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(t){if(!e[t])throw new d("Invalid Sentry Dsn: "+t+" missing")}),!r.match(/^\d+$/))throw new d("Invalid Sentry Dsn: Invalid projectId "+r);if("http"!==(r=o)&&"https"!==r)throw new d("Invalid Sentry Dsn: Invalid protocol "+o);if(n&&isNaN(parseInt(n,10)))throw new d("Invalid Sentry Dsn: Invalid port "+n)}return t}var it=["fatal","error","warning","log","info","debug","critical"],st=i(),at=["debug","info","warn","error","log","assert"];function ut(t){var n=i();if(!("console"in n))return t();var r=n.console,o={};at.forEach(function(t){var e=r[t]&&r[t].__sentry_original__;t in n.console&&e&&(o[t]=r[t],r[t]=e)});try{return t()}finally{Object.keys(o).forEach(function(t){r[t]=o[t]})}}function ct(){var r=!1,e={enable:function(){r=!0},disable:function(){r=!1}};return tt?at.forEach(function(n){e[n]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&ut(function(){var t;(t=st.console)[n].apply(t,s(["Sentry Logger ["+n+"]:"],e))})}}):at.forEach(function(t){e[t]=function(){}}),e}function pt(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function dt(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 ft(t,e){return!!c(t)&&(u(e,"RegExp")?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}function f(t,e,n){if(e in t){var r=t[e],n=n(r);if("function"==typeof n)try{ht(n,r)}catch(t){}t[e]=n}}function lt(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function ht(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,lt(t,"__sentry_original__",e)}function vt(t){return t.__sentry_original__}function _t(t){var e,n=t;return F(t)?n=v({message:t.message,name:t.name,stack:t.stack},gt(t)):J(t)&&(n=v({type:(e=t).type,target:yt(e.target),currentTarget:yt(e.currentTarget)},gt(e)),"undefined"!=typeof CustomEvent&&p(t,CustomEvent)&&(n.detail=e.detail)),n}function yt(t){try{return e=t,"undefined"!=typeof Element&&p(e,Element)?$(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function gt(t){var e,n={};for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}function mt(t){var e,n;if(G(t)){var r={};try{for(var o=_(Object.keys(t)),i=o.next();!i.done;i=o.next()){var s=i.value;void 0!==t[s]&&(r[s]=mt(t[s]))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}return Array.isArray(t)?t.map(mt):t}var l=tt?B("logger",ct):ct(),bt=50;function xt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var h=t.sort(function(t,e){return t[0]-e[0]}).map(function(t){return t[1]});return function(t,e){void 0===e&&(e=0);var n,r,o,i,s=[];try{for(var a=_(t.split("\n").slice(e)),u=a.next();!u.done;u=a.next()){var c=u.value;try{o=void 0;for(var p=_(h),d=p.next();!d.done;d=p.next()){var f=(0,d.value)(c);if(f){s.push(f);break}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(!(t=s).length)return[];var l=t,t=l[0].function||"",e=l[l.length-1].function||"";return-1===t.indexOf("captureMessage")&&-1===t.indexOf("captureException")||(l=l.slice(1)),(l=-1!==e.indexOf("sentryWrapped")?l.slice(0,-1):l).slice(0,bt).map(function(t){return v(v({},t),{filename:t.filename||l[0].filename,function:t.function||"?"})}).reverse()}}var St="<anonymous>";function g(t){try{return t&&"function"==typeof t?t.name||St:St}catch(t){return St}}function wt(){if("fetch"in i())try{return new Headers,new Request(""),new Response,1}catch(t){return}}function Et(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var kt,o=i(),Tt={},Ot={};function Rt(t){var r,a,e;if(!Ot[t])switch(Ot[t]=!0,t){case"console":"console"in o&&at.forEach(function(r){r in o.console&&f(o.console,r,function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];b("console",{args:t,level:r}),n&&n.apply(o.console,t)}})});break;case"dom":"document"in o&&(a=b.bind(null,"dom"),e=Dt(a,!0),o.document.addEventListener("click",e,!1),o.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(t){t=o[t]&&o[t].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(f(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=Dt(a),i.handler=r,s.call(this,t,r,n)),i.refCount+=1}catch(t){}return s.call(this,t,e,n)}}),f(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 o&&(f(e=XMLHttpRequest.prototype,"open",function(s){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];function r(){if(4===o.readyState){try{i.status_code=o.status}catch(t){}b("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}}var o=this,n=t[1],i=o.__sentry_xhr__={method:c(t[0])?t[0].toUpperCase():t[0],url:t[1]};c(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(o.__sentry_own_request__=!0);return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?f(o,"onreadystatechange",function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(),n.apply(o,t)}}):o.addEventListener("readystatechange",r),s.apply(o,t)}}),f(e,"send",function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),b("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),n.apply(this,t)}}));break;case"fetch":!function(){if(wt()){var t=i();if(Et(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=Et(n.contentWindow.fetch)),t.head.removeChild(n)}catch(t){tt&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}}()||f(o,"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 o&&p(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 o&&p(t[0],Request))return t[0].url;return String(t[0])}(t)},startTimestamp:Date.now()};return b("fetch",v({},n)),r.apply(o,t).then(function(t){return b("fetch",v(v({},n),{endTimestamp:Date.now(),response:t})),t},function(t){throw b("fetch",v(v({},n),{endTimestamp:Date.now(),error:t})),t})}});break;case"history":!function(){var t=i(),e=(e=t.chrome)&&e.app&&e.app.runtime,t="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&t}()||(r=o.onpopstate,o.onpopstate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=o.location.href;if(b("history",{from:kt,to:kt=n}),r)try{return r.apply(this,t)}catch(t){}},f(o.history,"pushState",n),f(o.history,"replaceState",n));break;case"error":It=o.onerror,o.onerror=function(t,e,n,r,o){return b("error",{column:r,error:o,line:n,msg:t,url:e}),!!It&&It.apply(this,arguments)};break;case"unhandledrejection":Ct=o.onunhandledrejection,o.onunhandledrejection=function(t){return b("unhandledrejection",t),!Ct||Ct.apply(this,arguments)};break;default:tt&&l.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=kt,r=String(r),b("history",{from:n,to:kt=r})),o.apply(this,t)}}}function m(t,e){Tt[t]=Tt[t]||[],Tt[t].push(e),Rt(t)}function b(e,t){var n,r;if(e&&Tt[e])try{for(var o=_(Tt[e]||[]),i=o.next();!i.done;i=o.next()){var s=i.value;try{s(t)}catch(t){tt&&l.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+g(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 jt,Nt;function Dt(n,r){return void 0===r&&(r=!1),function(t){var e;t&&Nt!==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!==jt&&!function(t,e){if(!t)return 1;if(t.type!==e.type)return 1;try{if(t.target!==e.target)return 1}catch(t){}}(Nt,t)||(n({event:t,name:e,global:r}),Nt=t),clearTimeout(jt),jt=o.setTimeout(function(){jt=void 0},1e3))}}var It=null;var Ct=null;function Lt(){var n="function"==typeof WeakSet,r=n?new WeakSet:[];return[function(t){if(n)return!!r.has(t)||(r.add(t),!1);for(var e=0;e<r.length;e++)if(r[e]===t)return!0;return r.push(t),!1},function(t){if(n)r.delete(t);else for(var e=0;e<r.length;e++)if(r[e]===t){r.splice(e,1);break}}]}function Pt(){var t,e=i(),e=e.crypto||e.msCrypto;return 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})(t[0])+e(t[1])+e(t[2])+e(t[3])+e(t[4])+e(t[5])+e(t[6])+e(t[7])):"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function Mt(t){if(!t)return{};t=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var e=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+e+n}}function qt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function x(t){var e=t.message,n=t.event_id;if(e)return e;e=qt(t);return e?e.type&&e.value?e.type+": "+e.value:e.type||e.value||n||"<unknown>":n||"<unknown>"}function Ut(t,e,n){t=t.exception=t.exception||{},t=t.values=t.values||[],t=t[0]=t[0]||{};t.value||(t.value=e||""),t.type||(t.type=n||"Error")}function At(t,e){var n,t=qt(t);t&&(n=t.mechanism,t.mechanism=v(v(v({},{type:"generic",handled:!0}),n),e),e&&"data"in e&&(n=v(v({},n&&n.data),e.data),t.mechanism.data=n))}function Bt(t){if(t&&t.__sentry_captured__)return 1;try{lt(t,"__sentry_captured__",!0)}catch(t){}}function S(t,e,n){void 0===e&&(e=1/0),void 0===n&&(n=1/0);try{return function t(e,n,r,o,i){void 0===r&&(r=1/0);void 0===o&&(o=1/0);void 0===i&&(i=Lt());var s=y(i,2),a=s[0],s=s[1];var u=n;if(u&&"function"==typeof u.toJSON)try{return u.toJSON()}catch(t){}if(null===n||["number","boolean","string"].includes(h(n))&&!K(n))return n;u=Ft(e,n);if(!u.startsWith("[object "))return u;if(0===r)return u.replace("object ","");if(a(n))return"[Circular ~]";var c=Array.isArray(n)?[]:{};var p=0;var d=F(n)||J(n)?_t(n):n;for(var f in d)if(Object.prototype.hasOwnProperty.call(d,f)){if(o<=p){c[f]="[MaxProperties ~]";break}var l=d[f];c[f]=t(f,l,r-1,o,i),p+=1}s(n);return c}("",t,e,n)}catch(t){return{ERROR:"**non-serializable** ("+t+")"}}}function zt(t,e,n){void 0===n&&(n=102400);var r=S(t,e=void 0===e?3:e);return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?zt(t,e-1,n):r}function Ft(t,e){try{return"domain"===t&&e&&"object"===h(e)&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":G(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+g(e)+"]":"symbol"===h(e)?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(t){return"**non-serializable** ("+t+")"}var n}function w(e){return new E(function(t){t(e)})}function Ht(n){return new E(function(t,e){e(n)})}Yt.prototype.then=function(r,o){var t=this;return new Yt(function(e,n){t._handlers.push([!1,function(t){if(r)try{e(r(t))}catch(t){n(t)}else e(t)},function(t){if(o)try{e(o(t))}catch(t){n(t)}else n(t)}]),t._executeHandlers()})},Yt.prototype.catch=function(t){return this.then(function(t){return t},t)},Yt.prototype.finally=function(o){var i=this;return new Yt(function(t,e){var n,r;i.then(function(t){r=!1,n=t,o&&o()},function(t){r=!0,n=t,o&&o()}).then(function(){(r?e:t)(n)})})};var E=Yt;function Yt(t){var n=this;this._state=0,this._handlers=[],this._resolve=function(t){n._setResult(1,t)},this._reject=function(t){n._setResult(2,t)},this._setResult=function(t,e){0===n._state&&(X(e)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._executeHandlers=function(){var t;0!==n._state&&(t=n._handlers.slice(),n._handlers=[],t.forEach(function(t){t[0]||(1===n._state&&t[1](n._value),2===n._state&&t[2](n._value),t[0]=!0)}))};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}function Wt(n){var i=[];function r(t){return i.splice(i.indexOf(t),1)[0]}return{$:i,add:function(t){if(!(void 0===n||i.length<n))return Ht(new d("Not adding Promise due to buffer limit reached."));var e=t();return-1===i.indexOf(e)&&i.push(e),e.then(function(){return r(e)}).then(null,function(){return r(e).then(null,function(){})}),e},drain:function(t){return new E(function(e,n){var r=i.length;if(!r)return e(!0);var o=setTimeout(function(){t&&0<t&&e(!1)},t);i.forEach(function(t){w(t).then(function(){--r||(clearTimeout(o),e(!0))},n)})})}}}function Gt(t){return"warn"===t?a.Warning:-1!==it.indexOf(t)?t:a.Log}function Jt(t){return 200<=t&&t<300?"success":429===t?"rate_limit":400<=t&&t<500?"invalid":500<=t?"failed":"unknown"}var t={nowSeconds:function(){return Date.now()/1e3}};var Xt=(U()?function(){try{return t=module,e="perf_hooks",t.require(e).performance}catch(t){return}var t,e}:function(){var t=i().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}})(),e=void 0===Xt?t:{nowSeconds:function(){return(Xt.timeOrigin+Xt.now())/1e3}},Kt=t.nowSeconds.bind(t),$t=e.nowSeconds.bind(e),t=i().performance;if(t&&t.now)e=t.now(),Ce=Date.now(),Fe=t.timeOrigin?Math.abs(t.timeOrigin+e-Ce):36e5,Ae=Fe<36e5,Ge="number"==typeof(Ge=t.timing&&t.timing.navigationStart)?Math.abs(Ge+e-Ce):36e5,(Ae||Ge<36e5)&&Fe<=Ge&&t.timeOrigin;function Vt(t,e){return[t,e=void 0===e?[]:e]}function Qt(t){var t=y(t,2),e=t[0],t=t[1],e=JSON.stringify(e);return t.reduce(function(t,e){var e=y(e,2),n=e[0],e=e[1],e=W(e)?String(e):JSON.stringify(e);return t+"\n"+JSON.stringify(n)+"\n"+e},e)}var Zt=6e4;function te(t,e){return t[e]||t.all||0}function ee(t,e,n){return void 0===n&&(n=Date.now()),te(t,e)>n}function ne(t,e,n){void 0===n&&(n=Date.now());var r,o,i,s,a=v({},t),t=e["x-sentry-rate-limits"],e=e["retry-after"];if(t)try{for(var u=_(t.trim().split(",")),c=u.next();!c.done;c=u.next()){var p=c.value.split(":",2),d=parseInt(p[0],10),f=1e3*(isNaN(d)?60:d);if(p[1])try{r=void 0;for(var l=_(p[1].split(";")),h=l.next();!h.done;h=l.next())a[h.value]=n+f}catch(t){r={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}else a.all=n+f}}catch(t){s={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(s)throw s.error}}else e&&(a.all=n+(t=e,void 0===(i=n)&&(i=Date.now()),s=parseInt(""+t,10),isNaN(s)?(s=Date.parse(""+t),isNaN(s)?Zt:s-i):1e3*s));return a}n.clone=function(t){var e=new n;return t&&(e._breadcrumbs=s(t._breadcrumbs),e._tags=v({},t._tags),e._extra=v({},t._extra),e._contexts=v({},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=s(t._eventProcessors),e._requestSession=t._requestSession),e},n.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},n.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},n.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},n.prototype.getUser=function(){return this._user},n.prototype.getRequestSession=function(){return this._requestSession},n.prototype.setRequestSession=function(t){return this._requestSession=t,this},n.prototype.setTags=function(t){return this._tags=v(v({},this._tags),t),this._notifyScopeListeners(),this},n.prototype.setTag=function(t,e){var n;return this._tags=v(v({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},n.prototype.setExtras=function(t){return this._extra=v(v({},this._extra),t),this._notifyScopeListeners(),this},n.prototype.setExtra=function(t,e){var n;return this._extra=v(v({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},n.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},n.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},n.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},n.prototype.setTransaction=function(t){return this.setTransactionName(t)},n.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=v(v({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},n.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},n.prototype.getSpan=function(){return this._span},n.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},n.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},n.prototype.getSession=function(){return this._session},n.prototype.update=function(t){return t?"function"==typeof t?(e=t(this))instanceof n?e:this:(t instanceof n?(this._tags=v(v({},this._tags),t._tags),this._extra=v(v({},this._extra),t._extra),this._contexts=v(v({},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)):G(t)&&(this._tags=v(v({},this._tags),t.tags),this._extra=v(v({},this._extra),t.extra),this._contexts=v(v({},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):this;var e},n.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},n.prototype.addBreadcrumb=function(t,e){e="number"==typeof e?Math.min(e,100):100;if(e<=0)return this;t=v({timestamp:Kt()},t);return this._breadcrumbs=s(this._breadcrumbs,[t]).slice(-e),this._notifyScopeListeners(),this},n.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},n.prototype.applyToEvent=function(t,e){var n;return this._extra&&Object.keys(this._extra).length&&(t.extra=v(v({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=v(v({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=v(v({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=v(v({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span&&(t.contexts=v({trace:this._span.getTraceContext()},t.contexts),(n=this._span.transaction&&this._span.transaction.name)&&(t.tags=v({transaction:n},t.tags))),this._applyFingerprint(t),t.breadcrumbs=s(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=0<t.breadcrumbs.length?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(s(oe(),this._eventProcessors),t,e)},n.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=v(v({},this._sdkProcessingMetadata),t),this},n.prototype._notifyEventProcessors=function(r,o,i,s){var a=this;return void 0===s&&(s=0),new E(function(e,t){var n=r[s];null===o||"function"!=typeof n?e(o):(X(n=n(v({},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)})},n.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(t){t(e)}),this._notifyingListeners=!1)},n.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};var re=n;function n(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}function oe(){return B("globalEventProcessors",function(){return[]})}function ie(t){oe().push(t)}ae.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||$t(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:Pt()),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)},ae.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},ae.prototype.toJSON=function(){return mt({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:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})};var se=ae;function ae(t){this.errors=0,this.sid=Pt(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=$t();this.timestamp=e,this.started=e,t&&this.update(t)}var ue="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ce=4,pe=(r.prototype.isOlderThan=function(t){return this._version<t},r.prototype.bindClient=function(t){(this.getStackTop().client=t)&&t.setupIntegrations&&t.setupIntegrations()},r.prototype.pushScope=function(){var t=re.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},r.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},r.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},r.prototype.getClient=function(){return this.getStackTop().client},r.prototype.getScope=function(){return this.getStackTop().scope},r.prototype.getStack=function(){return this._stack},r.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},r.prototype.captureException=function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:Pt(),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,v(v({},r),{event_id:n})),n},r.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=n&&n.event_id?n.event_id:Pt(),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,v(v({},o),{event_id:r})),r},r.prototype.captureEvent=function(t,e){var n=e&&e.event_id?e.event_id:Pt();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,v(v({},e),{event_id:n})),n},r.prototype.lastEventId=function(){return this._lastEventId},r.prototype.addBreadcrumb=function(t,e){var n,r,o,i=this.getStackTop(),s=i.scope,i=i.client;s&&i&&(o=(i=i.getOptions&&i.getOptions()||{}).beforeBreadcrumb,n=void 0===o?null:o,(i=void 0===(o=i.maxBreadcrumbs)?100:o)<=0||(o=Kt(),r=v({timestamp:o},t),null!==(o=n?ut(function(){return n(r,e)}):r)&&s.addBreadcrumb(o,i)))},r.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},r.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},r.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},r.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},r.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},r.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},r.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,e=e.client;n&&e&&t(n)},r.prototype.run=function(t){var e=fe(this);try{t(this)}finally{fe(e)}},r.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return ue&&l.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},r.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},r.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},r.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},r.prototype.captureSession=function(t){if(t=void 0===t?!1:t)return this.endSession();this._sendSessionUpdate()},r.prototype.endSession=function(){var t=this.getStackTop(),t=t&&t.scope,e=t&&t.getSession();e&&e.close(),this._sendSessionUpdate(),t&&t.setSession()},r.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,e=e.client,e=e&&e.getOptions()||{},r=e.release,e=e.environment,o=(i().navigator||{}).userAgent,r=new se(v(v(v({release:r,environment:e},n&&{user:n.getUser()}),o&&{userAgent:o}),t));return n&&((e=n.getSession&&n.getSession())&&"ok"===e.status&&e.update({status:"exited"}),this.endSession(),n.setSession(r)),r},r.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)},r.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,s(e,[o]))},r.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=de().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,e);ue&&l.warn("Extension method "+t+" couldn't be found, doing nothing.")},r);function r(t,e,n){void 0===e&&(e=new re),this._version=n=void 0===n?ce:n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}function de(){var t=i();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function fe(t){var e=de(),n=T(e);return he(e,t),n}function k(){var e=de();if(le(e)&&!T(e).isOlderThan(ce)||he(e,new pe),!U())return T(e);try{var t,n=de().__SENTRY__,r=n&&n.extensions&&n.extensions.domain&&n.extensions.domain.active;return r?(le(r)&&!T(r).isOlderThan(ce)||(t=T(e).getStackTop(),he(r,new pe(t.client,re.clone(t.scope)))),T(r)):T(e)}catch(t){return T(e)}}function le(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub}function T(t){return B("hub",function(){return new pe},t)}function he(t,e){t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e)}function O(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=k();if(r&&r[t])return r[t].apply(r,s(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function ve(t,e){return O("captureException",t,{captureContext:e,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function _e(t){O("withScope",t)}var ye="7";function ge(t,e,n){return{initDsn:t,metadata:e||{},dsn:ot(t),tunnel:n}}function me(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function be(t,e){return""+me(t)+t.projectId+"/"+e+"/"}function xe(t){return e={sentry_key:t.publicKey,sentry_version:ye},Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&");var e}function Se(t){return be(t,"store")+"?"+xe(t)}function we(t,e){return e||be(t,"envelope")+"?"+xe(t)}var R="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ee=[];function ke(t){return t.reduce(function(t,e){return t.every(function(t){return e.name!==t.name})&&t.push(e),t},[])}function Te(t){var e,n,r={};return e=(t=t).defaultIntegrations&&s(t.defaultIntegrations)||[],n=t.integrations,t=s(ke(e)),Array.isArray(n)?t=s(t.filter(function(e){return n.every(function(t){return t.name!==e.name})}),ke(n)):"function"==typeof n&&(t=n(t),t=Array.isArray(t)?t:[t]),-1!==(e=t.map(function(t){return t.name})).indexOf("Debug")&&t.push.apply(t,s(t.splice(e.indexOf("Debug"),1))),t.forEach(function(t){r[t.name]=t,t=t,-1===Ee.indexOf(t.name)&&(t.setupOnce(ie,k),Ee.push(t.name),R&&l.log("Integration installed: "+t.name))}),lt(r,"initialized",!0),r}var Oe="Not capturing exception because it's already been captured.",e=(j.prototype.captureException=function(t,e,n){var r,o=this;{if(!Bt(t))return r=e&&e.event_id,this._process(this._getBackend().eventFromException(t,e).then(function(t){return o._captureEvent(t,e,n)}).then(function(t){r=t})),r;R&&l.log(Oe)}},j.prototype.captureMessage=function(t,e,n,r){var o=this,i=n&&n.event_id,e=W(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(e.then(function(t){return o._captureEvent(t,n,r)}).then(function(t){i=t})),i},j.prototype.captureEvent=function(t,e,n){var r;{if(!(e&&e.originalException&&Bt(e.originalException)))return r=e&&e.event_id,this._process(this._captureEvent(t,e,n).then(function(t){r=t})),r;R&&l.log(Oe)}},j.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?R&&l.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):R&&l.warn("SDK not enabled, will not capture session.")},j.prototype.getDsn=function(){return this._dsn},j.prototype.getOptions=function(){return this._options},j.prototype.getTransport=function(){return this._getBackend().getTransport()},j.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})})},j.prototype.close=function(t){var e=this;return this.flush(t).then(function(t){return e.getOptions().enabled=!1,t})},j.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=Te(this._options))},j.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return R&&l.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},j.prototype._updateSessionFromEvent=function(t,e){var n,r,o=!1,i=!1,e=e.exception&&e.exception.values;if(e){i=!0;try{for(var s=_(e),a=s.next();!a.done;a=s.next()){var u=a.value.mechanism;if(u&&!1===u.handled){o=!0;break}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}e="ok"===t.status;(e&&0===t.errors||e&&o)&&(t.update(v(v({},o&&{status:"crashed"}),{errors:t.errors||Number(i||o)})),this.captureSession(t))},j.prototype._sendSession=function(t){this._getBackend().sendSession(t)},j.prototype._isClientDoneProcessing=function(r){var o=this;return new E(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)})},j.prototype._getBackend=function(){return this._backend},j.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},j.prototype._prepareEvent=function(t,e,n){var r=this,o=this.getOptions(),i=o.normalizeDepth,s=void 0===i?3:i,i=o.normalizeMaxBreadth,a=void 0===i?1e3:i,o=v(v({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:Pt()),timestamp:t.timestamp||Kt()}),i=(this._applyClientOptions(o),this._applyIntegrationsMetadata(o),e),t=(n&&n.captureContext&&(i=re.clone(i).update(n.captureContext)),w(o));return(t=i?i.applyToEvent(o,n):t).then(function(t){return t&&(t.sdkProcessingMetadata=v(v({},t.sdkProcessingMetadata),{normalizeDepth:S(s)+" ("+h(s)+")"})),"number"==typeof s&&0<s?r._normalizeEvent(t,s,a):t})},j.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var r=v(v(v(v(v({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return v(v({},t),t.data&&{data:S(t.data,e,n)})})}),t.user&&{user:S(t.user,e,n)}),t.contexts&&{contexts:S(t.contexts,e,n)}),t.extra&&{extra:S(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r.sdkProcessingMetadata=v(v({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},j.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,e=("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=pt(t.message,i)),t.exception&&t.exception.values&&t.exception.values[0]),n=(e&&e.value&&(e.value=pt(e.value,i)),t.request);n&&n.url&&(n.url=pt(n.url,i))},j.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);0<e.length&&(t.sdk=t.sdk||{},t.sdk.integrations=s(t.sdk.integrations||[],e))},j.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},j.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then(function(t){return t.event_id},function(t){R&&l.error(t)})},j.prototype._processEvent=function(n,r,o){var i=this,t=this.getOptions(),s=t.beforeSend,t=t.sampleRate,a=this.getTransport();function u(t,e){a.recordLostEvent&&a.recordLostEvent(t,e)}if(!this._isEnabled())return Ht(new d("SDK not enabled, will not capture event."));var c="transaction"===n.type;return!c&&"number"==typeof t&&Math.random()>t?(u("sample_rate","event"),Ht(new d("Discarding event because it's not included in the random sample (sampling rate = "+t+")"))):this._prepareEvent(n,o,r).then(function(t){if(null===t)throw u("event_processor",n.type||"event"),new d("An event processor returned null, will not send event.");if(r&&r.data&&!0===r.data.__sentry__||c||!s)return t;var t=s(t,r),e="`beforeSend` method has to return `null` or a valid event.";if(X(t))return t.then(function(t){if(G(t)||null===t)return t;throw new d(e)},function(t){throw new d("beforeSend rejected with "+t)});if(G(t)||null===t)return t;throw new d(e)}).then(function(t){if(null===t)throw u("before_send",n.type||"event"),new d("`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 d)throw t;throw i.captureException(t,{data:{__sentry__:!0},originalException:t}),new d("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},j.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then(function(t){return--e._numProcessing,t},function(t){return--e._numProcessing,t})},j);function j(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),(this._options=e).dsn&&(this._dsn=ot(e.dsn))}function Re(t){if(t.metadata&&t.metadata.sdk)return t=t.metadata.sdk,{name:t.name,version:t.version}}function je(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=s(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=s(t.sdk.packages||[],e.packages||[]))}function Ne(t,e){var n=Re(e),n=v(v({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:nt(e.dsn)}),e="aggregates"in t?"sessions":"session";return[Vt(n,[[{type:e},t]]),e]}Ie.prototype.sendEvent=function(t){return w({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},Ie.prototype.close=function(t){return w(!0)};var De=Ie;function Ie(){}N.prototype.eventFromException=function(t,e){throw new d("Backend has to implement `eventFromException` method")},N.prototype.eventFromMessage=function(t,e,n){throw new d("Backend has to implement `eventFromMessage` method")},N.prototype.sendEvent=function(t){var e,n,r,o,i,s;this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport?(n=ge(this._options.dsn,this._options._metadata,this._options.tunnel),e=t,r=Re(n=n),o=e.type||"event",i=(s=(e.sdkProcessingMetadata||{}).transactionSampling||{}).method,s=s.rate,je(e,n.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata,r=Vt(v(v({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!n.tunnel&&{dsn:nt(n.dsn)}),[[{type:o,sample_rates:[{id:i,rate:s}]},e]]),this._newTransport.send(r).then(null,function(t){R&&l.error("Error while sending event:",t)})):this._transport.sendEvent(t).then(null,function(t){R&&l.error("Error while sending event:",t)})},N.prototype.sendSession=function(t){var e;this._transport.sendSession?this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport?(e=y(Ne(t,ge(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0],this._newTransport.send(e).then(null,function(t){R&&l.error("Error while sending session:",t)})):this._transport.sendSession(t).then(null,function(t){R&&l.error("Error while sending session:",t)}):R&&l.warn("Dropping session because custom transport doesn't implement sendSession")},N.prototype.getTransport=function(){return this._transport},N.prototype._setupTransport=function(){return new De};var Ce=N;function N(t){this._options=t,this._options.dsn||R&&l.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}var Le=30;function Pe(t,r,i){void 0===i&&(i=Wt(t.bufferSize||Le));var s={};return{send:function(t){e=y(e=t,2),e=y(e[1],1);var e=y(e[0],1)[0].type,o="event"===e?"error":e,n={category:o,body:Qt(t)};return ee(s,o)?Ht({status:"rate_limit",reason:Me(s,o)}):i.add(function(){return r(n).then(function(t){var e=t.body,n=t.headers,r=t.reason,t=Jt(t.statusCode);return n&&(s=ne(s,n)),"success"===t?w({status:t,reason:r}):Ht({status:t,reason:r||e||("rate_limit"===t?Me(s,o):"Unknown transport error")})})})},flush:function(t){return i.drain(t)}}}function Me(t,e){return"Too many "+e+" requests, backing off until: "+new Date(te(t,e)).toISOString()}var qe,Ue="6.19.6",Ae=(Be.prototype.setupOnce=function(){qe=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=vt(this)||this;return qe.apply(n,t)}},Be.id="FunctionToString",Be);function Be(){this.name=Be.id}var ze=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Fe=(He.prototype.setupOnce=function(t,r){t(function(t){var e=r();if(e){var n=e.getIntegration(He);if(n)return e=(e=e.getClient())?e.getOptions():{},function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return}(t))return R&&l.warn("Event dropped due to being internal Sentry Error.\nEvent: "+x(t)),1;if(function(t,n){return n&&n.length&&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 R&&l.error("Cannot extract message for event "+x(e)),[]}return[]}(t).some(function(e){return n.some(function(t){return ft(e,t)})})}(t,e.ignoreErrors))return R&&l.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+x(t)),1;if(function(t,e){if(!e||!e.length)return;var n=We(t);return n&&e.some(function(t){return ft(n,t)})}(t,e.denyUrls))return R&&l.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+x(t)+".\nUrl: "+We(t)),1;return!function(t,e){if(!e||!e.length)return 1;var n=We(t);return!n||e.some(function(t){return ft(n,t)})}(t,e.allowUrls)&&(R&&l.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+x(t)+".\nUrl: "+We(t)),!0)}(t,function(t,e){void 0===t&&(t={});void 0===e&&(e={});return{allowUrls:s(t.whitelistUrls||[],t.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:s(t.blacklistUrls||[],t.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:s(t.ignoreErrors||[],e.ignoreErrors||[],ze),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(n._options,e))?null:t}return t})},He.id="InboundFilters",He);function He(t){this._options=t=void 0===t?{}:t,this.name=He.id}function Ye(t){for(var e=(t=void 0===t?[]:t).length-1;0<=e;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function We(e){try{if(e.stacktrace)return Ye(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(t){}return t?Ye(t):null}catch(t){return R&&l.error("Cannot extract url for event "+x(e)),null}}var Ge=Object.freeze({__proto__:null,FunctionToString:Ae,InboundFilters:Fe});function Je(t,e,n,r){t={filename:t,function:e,in_app:!0};return void 0!==n&&(t.lineno=n),void 0!==r&&(t.colno=r),t}var Xe=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ke=/\((\S*)(?::(\d+))(?::(\d+))\)/,$e=[30,function(t){var e,n,t=Xe.exec(t);if(t)return t[2]&&0===t[2].indexOf("eval")&&(e=Ke.exec(t[2]))&&(t[2]=e[1],t[3]=e[2],t[4]=e[3]),n=(e=y(an(t[1]||"?",t[2]),2))[0],Je(e[1],n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}],Ve=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ze=[50,function(t){var e,n,r,t=Ve.exec(t);if(t)return t[3]&&-1<t[3].indexOf(" > eval")&&(r=Qe.exec(t[3]))&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]=""),r=t[3],n=t[1]||"?",n=(e=y(an(n,r),2))[0],Je(r=e[1],n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}],tn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,en=[40,function(t){t=tn.exec(t);return t?Je(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],nn=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,rn=[10,function(t){t=nn.exec(t);return t?Je(t[2],t[3]||"?",+t[1]):void 0}],on=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,sn=[20,function(t){t=on.exec(t);return t?Je(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],an=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]:"?",n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function un(t){var e=dn(t),t={type:t&&t.name,value:function(t){t=t&&t.message;if(!t)return"No error message";if(t.error&&"string"==typeof t.error.message)return t.error.message;return t}(t)};return e.length&&(t.stacktrace={frames:e}),void 0===t.type&&""===t.value&&(t.value="Unrecoverable error caught"),t}function cn(t,e,n){n={exception:{values:[{type:J(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(_t(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return pt(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:pt(o,e)}return""}(t)}]},extra:{__serialized__:zt(t)}};return e&&(t=dn(e)).length&&(n.stacktrace={frames:t}),n}function pn(t){return{exception:{values:[un(t)]}}}function dn(t){var e=t.stacktrace||t.stack||"",t=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(fn.test(t.message))return 1}return 0}(t);try{return xt(rn,sn,$e,en,Ze)(e,t)}catch(t){}return[]}var fn=/Minified React error #\d+;/i;function ln(t,e,n){t=vn(t,e&&e.syntheticException||void 0,n);return At(t),t.level=a.Error,e&&e.event_id&&(t.event_id=e.event_id),w(t)}function hn(t,e,n,r){void 0===e&&(e=a.Info);t=_n(t,n&&n.syntheticException||void 0,r);return t.level=e,n&&n.event_id&&(t.event_id=n.event_id),w(t)}function vn(t,e,n,r){var o,i,s;return H(t)&&t.error?pn(t.error):Y(t)||u(t,"DOMException")?("stack"in(o=t)?s=pn(t):(i=o.name||(Y(o)?"DOMError":"DOMException"),Ut(s=_n(i=o.message?i+": "+o.message:i,e,n),i)),"code"in o&&(s.tags=v(v({},s.tags),{"DOMException.code":""+o.code})),s):F(t)?pn(t):(G(t)||J(t)?At(s=cn(t,e,r),{synthetic:!0}):(Ut(s=_n(t,e,n),""+t,void 0),At(s,{synthetic:!0})),s)}function _n(t,e,n){t={message:t};return n&&e&&((n=dn(e)).length&&(t.stacktrace={frames:n})),t}var yn,D="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,I=i();function gn(){if(yn)return yn;if(Et(I.fetch))return yn=I.fetch.bind(I);var t=I.document,e=I.fetch;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe"),r=(n.hidden=!0,t.head.appendChild(n),n.contentWindow);r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){D&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return yn=e.bind(I)}function mn(t,e){var n;if("[object Navigator]"===Object.prototype.toString.call(I&&I.navigator)&&"function"==typeof I.navigator.sendBeacon)return I.navigator.sendBeacon.bind(I.navigator)(t,e);wt()&&(n=gn(),n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,function(t){console.error(t)}))}function bn(t){return"event"===t?"error":t}var xn=i(),t=(C.prototype.sendEvent=function(t){return this._sendRequest(function(e,t){var n=Re(t),r=e.type||"event",o="transaction"===r||!!t.tunnel,i=(s=(e.sdkProcessingMetadata||{}).transactionSampling||{}).method,s=s.rate;je(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{a=JSON.stringify(e)}catch(t){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=t;try{a=JSON.stringify(S(e))}catch(t){var a=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:t.message,stack:t.stack}})}}return a={body:a,type:r,url:o?we(t.dsn,t.tunnel):Se(t.dsn)},o&&(o=Vt(v(v({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:nt(t.dsn)}),[[{type:r,sample_rates:[{id:i,rate:s}]},a.body]]),a.body=Qt(o)),a}(t,this._api),t)},C.prototype.sendSession=function(t){return this._sendRequest((e=t,n=this._api,r=(e=y(Ne(e,n),2))[0],e=e[1],{body:Qt(r),type:e,url:we(n.dsn,n.tunnel)}),t);var e,n,r},C.prototype.close=function(t){return this._buffer.drain(t)},C.prototype.recordLostEvent=function(t,e){this.options.sendClientReports&&(e=bn(e)+":"+t,D&&l.log("Adding outcome: "+e),this._outcomes[e]=(null!=(t=this._outcomes[e])?t:0)+1)},C.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},Object.keys(r).length){D&&l.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var t,e=we(this._api.dsn,this._api.tunnel),n=Object.keys(r).map(function(t){var e=y(t.split(":"),2),n=e[0];return{reason:e[1],category:n,quantity:r[t]}}),o=(n=n,Vt((o=this._api.tunnel&&nt(this._api.dsn))?{dsn:o}:{},[[{type:"client_report"},{timestamp:t||Kt(),discarded_events:n}]]));try{mn(e,Qt(o))}catch(t){D&&l.error(t)}}else D&&l.log("No outcomes to flush")}},C.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,t=t.reject,i=Jt(n.status);this._rateLimits=ne(this._rateLimits,r),this._isRateLimited(e)&&D&&l.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"===i?o({status:i}):t(n)},C.prototype._disabledUntil=function(t){t=bn(t);return new Date(te(this._rateLimits,t))},C.prototype._isRateLimited=function(t){t=bn(t);return ee(this._rateLimits,t)},C);function C(t){var e=this;this.options=t,this._buffer=Wt(30),this._rateLimits={},this._outcomes={},this._api=ge(t.dsn,t._metadata,t.tunnel),this.url=Se(this._api.dsn),this.options.sendClientReports&&xn.document&&xn.document.addEventListener("visibilitychange",function(){"hidden"===xn.document.visibilityState&&e._flushOutcomes()})}q(En,Sn=t),En.prototype._sendRequest=function(o,t){var i=this;if(this._isRateLimited(o.type))return this.recordLostEvent("ratelimit_backoff",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(wt())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 E(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 d?i.recordLostEvent("queue_overflow",o.type):i.recordLostEvent("network_error",o.type),t})};var Sn,wn=En;function En(t,e){void 0===e&&(e=gn());t=Sn.call(this,t)||this;return t._fetch=e,t}q(On,kn=t),On.prototype._sendRequest=function(o,t){var i=this;return this._isRateLimited(o.type)?(this.recordLostEvent("ratelimit_backoff",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 E(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)Object.prototype.hasOwnProperty.call(i.options.headers,t)&&r.setRequestHeader(t,i.options.headers[t]);r.send(o.body)})}).then(void 0,function(t){throw t instanceof d?i.recordLostEvent("queue_overflow",o.type):i.recordLostEvent("network_error",o.type),t})};var kn,Tn=On;function On(){return null!==kn&&kn.apply(this,arguments)||this}function Rn(e,n){return void 0===n&&(n=gn()),Pe({bufferSize:e.bufferSize},function(t){return t=v({body:t.body,method:"POST",referrerPolicy:"origin"},e.requestOptions),n(e.url,t).then(function(e){return e.text().then(function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}})})})}function jn(i){return Pe({bufferSize:i.bufferSize},function(o){return new E(function(e,t){var n,r=new XMLHttpRequest;for(n in r.onreadystatechange=function(){var t;4===r.readyState&&(t={body:r.response,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")},reason:r.statusText,statusCode:r.status},e(t))},r.open("POST",i.url),i.headers)Object.prototype.hasOwnProperty.call(i.headers,n)&&r.setRequestHeader(n,i.headers[n]);r.send(o.body)})})}var Nn,t=Object.freeze({__proto__:null,BaseTransport:t,FetchTransport:wn,XHRTransport:Tn,makeNewFetchTransport:Rn,makeNewXHRTransport:jn}),Dn=(q(In,Nn=Ce),In.prototype.eventFromException=function(t,e){return ln(t,e,this._options.attachStacktrace)},In.prototype.eventFromMessage=function(t,e,n){return hn(t,e=void 0===e?a.Info:e,n,this._options.attachStacktrace)},In.prototype._setupTransport=function(){if(!this._options.dsn)return Nn.prototype._setupTransport.call(this);var t,e=v(v({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=ge(e.dsn,e._metadata,e.tunnel),n=we(n.dsn,n.tunnel);return this._options.transport?new this._options.transport(e):wt()?(t=v({},e.fetchParameters),this._newTransport=Rn({requestOptions:t,url:n}),new wn(e)):(this._newTransport=jn({url:n,headers:e.headers}),new Tn(e))},In);function In(){return null!==Nn&&Nn.apply(this,arguments)||this}var Cn=i(),Ln=0;function L(e,r,o){if(void 0===r&&(r={}),"function"!=typeof e)return e;try{var t=e.__sentry_wrapped__;if(t)return t;if(vt(e))return e}catch(t){return e}function n(){var n=Array.prototype.slice.call(arguments);try{o&&"function"==typeof o&&o.apply(this,arguments);var t=n.map(function(t){return L(t,r)});return e.apply(this,t)}catch(e){throw Ln+=1,setTimeout(function(){--Ln}),_e(function(t){t.addEventProcessor(function(t){return r.mechanism&&(Ut(t,void 0,void 0),At(t,r.mechanism)),t.extra=v(v({},t.extra),{arguments:n}),t}),ve(e)}),e}}try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}catch(t){}ht(n,e),lt(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:function(){return e.name}})}catch(t){}return n}function Pn(t){var e;void 0===t&&(t={}),Cn.document&&(t.eventId?t.dsn?((e=Cn.document.createElement("script")).async=!0,e.src=function(t,e){var n,r=me(t=ot(t))+"embed/error-page/",o="dsn="+nt(t);for(n in e)"dsn"!==n&&("user"===n?e.user&&(e.user.name&&(o+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(o+="&email="+encodeURIComponent(e.user.email))):o+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return r+"?"+o}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad),(t=Cn.document.head||Cn.document.body)&&t.appendChild(e)):D&&l.error("Missing dsn option in showReportDialog call"):D&&l.error("Missing eventId option in showReportDialog call"))}qn.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t,e,n=this._options;for(t in n){var r=this._installFunc[t];r&&n[t]&&(e=t,D&&l.log("Global Handler attached: "+e),r(),this._installFunc[t]=void 0)}},qn.id="GlobalHandlers";var Mn=qn;function qn(t){this.name=qn.id,this._installFunc={onerror:Un,onunhandledrejection:An},this._options=v({onerror:!0,onunhandledrejection:!0},t)}function Un(){m("error",function(t){var e,n,r,o,i=y(Fn(),2),s=i[0],i=i[1];s.getIntegration(Mn)&&(o=t.msg,e=t.url,n=t.line,r=t.column,t=t.error,0<Ln||t&&t.__sentry_own_request__||((o=void 0===t&&c(o)?function(t,e,n,r){var t=H(t)?t.message:t,o="Error",i=t.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);i&&(o=i[1],t=i[2]);return Bn({exception:{values:[{type:o,value:t}]}},e,n,r)}(o,e,n,r):Bn(vn(t||o,void 0,i,!1),e,n,r)).level=a.Error,zn(s,t,o,"onerror")))})}function An(){m("unhandledrejection",function(t){var e=y(Fn(),2),n=e[0],e=e[1];if(n.getIntegration(Mn)){var r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch(t){}if(0<Ln||r&&r.__sentry_own_request__)return!0;t=W(r)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r)}]}}:vn(r,void 0,e,!0);t.level=a.Error,zn(n,r,t,"onunhandledrejection")}})}function Bn(t,e,n,r){var o=t.exception=t.exception||{},o=o.values=o.values||[],o=o[0]=o[0]||{},o=o.stacktrace=o.stacktrace||{},o=o.frames=o.frames||[],r=isNaN(parseInt(r,10))?void 0:r,n=isNaN(parseInt(n,10))?void 0:n,e=c(e)&&0<e.length?e:function(){var t=i();try{return t.document.location.href}catch(t){return""}}();return 0===o.length&&o.push({colno:r,filename:e,function:"?",in_app:!0,lineno:n}),t}function zn(t,e,n,r){At(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Fn(){var t=k(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}var Hn=["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"],Yn=(Wn.prototype.setupOnce=function(){var t=i(),t=(this._options.setTimeout&&f(t,"setTimeout",Gn),this._options.setInterval&&f(t,"setInterval",Gn),this._options.requestAnimationFrame&&f(t,"requestAnimationFrame",Jn),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&f(XMLHttpRequest.prototype,"send",Xn),this._options.eventTarget);t&&(Array.isArray(t)?t:Hn).forEach(Kn)},Wn.id="TryCatch",Wn);function Wn(t){this.name=Wn.id,this._options=v({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}function Gn(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0];return t[0]=L(n,{mechanism:{data:{function:g(r)},handled:!0,type:"instrument"}}),r.apply(this,t)}}function Jn(e){return function(t){return e.apply(this,[L(t,{mechanism:{data:{function:"requestAnimationFrame",handler:g(e)},handled:!0,type:"instrument"}})])}}function Xn(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(r){r in n&&"function"==typeof n[r]&&f(n,r,function(t){var e={mechanism:{data:{function:r,handler:g(t)},handled:!0,type:"instrument"}},n=vt(t);return n&&(e.mechanism.data.handler=g(n)),L(t,e)})}),r.apply(this,t)}}function Kn(o){var t=i(),t=t[o]&&t[o].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(f(t,"addEventListener",function(r){return function(t,e,n){try{"function"==typeof e.handleEvent&&(e.handleEvent=L(e.handleEvent.bind(e),{mechanism:{data:{function:"handleEvent",handler:g(e),target:o},handled:!0,type:"instrument"}}))}catch(t){}return r.apply(this,[t,L(e,{mechanism:{data:{function:"addEventListener",handler:g(e),target:o},handled:!0,type:"instrument"}}),n])}}),f(t,"removeEventListener",function(o){return function(t,e,n){try{var r=e&&e.__sentry_wrapped__;r&&o.call(this,t,r,n)}catch(t){}return o.call(this,t,e,n)}}))}Vn.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&k().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:x(t)},{event:t})},Vn.prototype.setupOnce=function(){var r;this._options.console&&m("console",Qn),this._options.dom&&m("dom",(r=this._options.dom,function(t){var e,n="object"===h(r)?r.serializeAttribute:void 0;"string"==typeof n&&(n=[n]);try{e=t.event.target?$(t.event.target,n):$(t.event,n)}catch(t){e="<unknown>"}0!==e.length&&k().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})})),this._options.xhr&&m("xhr",Zn),this._options.fetch&&m("fetch",tr),this._options.history&&m("history",er)},Vn.id="Breadcrumbs";var $n=Vn;function Vn(t){this.name=Vn.id,this._options=v({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}function Qn(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:Gt(t.level),message:dt(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(dt(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}k().addBreadcrumb(e,{input:t.args,level:t.level})}function Zn(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,k().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:o}))}function tr(t){!t.endTimestamp||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?k().addBreadcrumb({category:"fetch",data:t.fetchData,level:a.Error,type:"http"},{data:t.error,input:t.args}):k().addBreadcrumb({category:"fetch",data:v(v({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response}))}function er(t){var e=i(),n=t.from,t=t.to,e=Mt(e.location.href),r=Mt(n),o=Mt(t);r.path||(r=e),e.protocol===o.protocol&&e.host===o.host&&(t=o.relative),e.protocol===r.protocol&&e.host===r.host&&(n=r.relative),k().addBreadcrumb({category:"navigation",data:{from:n,to:t}})}rr.prototype.setupOnce=function(){ie(function(t,e){var n,r,o=k().getIntegration(rr);return o?(n=o._key,o=o._limit,r=t,r.exception&&r.exception.values&&e&&p(e.originalException,Error)&&(o=function t(e,n,r,o){void 0===o&&(o=[]);if(!p(n[r],Error)||o.length+1>=e)return o;var i=un(n[r]);return t(e,n[r],r,s([i],o))}(o,e.originalException,n),r.exception.values=s(o,r.exception.values)),r):t})},rr.id="LinkedErrors";var nr=rr;function rr(t){void 0===t&&(t={}),this.name=rr.id,this._key=t.key||"cause",this._limit=t.limit||5}var P=i(),or=(ir.prototype.setupOnce=function(){ie(function(t){if(k().getIntegration(ir)){if(!P.navigator&&!P.location&&!P.document)return t;var e=t.request&&t.request.url||P.location&&P.location.href,n=(P.document||{}).referrer,r=(P.navigator||{}).userAgent,n=v(v(v({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),r=v(v({},e&&{url:e}),{headers:n});return v(v({},t),{request:r})}return t})},ir.id="UserAgent",ir);function ir(){this.name=ir.id}ar.prototype.setupOnce=function(t,r){t(function(e){var n=r().getIntegration(ar);if(n){try{if(function(t,e){if(!e)return;if(function(t,e){var n=t.message,r=e.message;if(!n&&!r)return;if(n&&!r||!n&&r)return;return n===r&&(!!cr(t,e)&&!!ur(t,e))}(t,e))return 1;if(function(t,e){var n=pr(e),r=pr(t);return n&&r&&(n.type===r.type&&n.value===r.value&&(!!cr(t,e)&&!!ur(t,e)))}(t,e))return 1;return}(e,n._previousEvent))return D&&l.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})},ar.id="Dedupe";var sr=ar;function ar(){this.name=ar.id}function ur(t,e){var n=dr(t),r=dr(e);if(!n&&!r)return 1;if(!(n&&!r||!n&&r)&&r.length===n.length){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}return 1}}function cr(t,e){t=t.fingerprint,e=e.fingerprint;if(!t&&!e)return 1;if(!(t&&!e||!t&&e))try{return t.join("")===e.join("")}catch(t){return}}function pr(t){return t.exception&&t.exception.values&&t.exception.values[0]}function dr(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}var fr,lr=Object.freeze({__proto__:null,GlobalHandlers:Mn,TryCatch:Yn,Breadcrumbs:$n,LinkedErrors:nr,UserAgent:or,Dedupe:sr}),hr=(q(vr,fr=e),vr.prototype.showReportDialog=function(t){void 0===t&&(t={}),i().document&&(this._isEnabled()?Pn(v(v({},t),{dsn:t.dsn||this.getDsn()})):D&&l.error("Trying to call showReportDialog with Sentry Client disabled"))},vr.prototype._prepareEvent=function(t,e,n){return t.platform=t.platform||"javascript",fr.prototype._prepareEvent.call(this,t,e,n)},vr.prototype._sendEvent=function(t){var e=this.getIntegration($n);e&&e.addSentryBreadcrumb(t),fr.prototype._sendEvent.call(this,t)},vr);function vr(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:Ue}],version:Ue},fr.call(this,Dn,t)||this}var _r=[new Fe,new Ae,new Yn,new $n,new Mn,new nr,new sr,new or];function yr(t){t.startSession({ignoreDuration:!0}),t.captureSession()}var gr,e={},Yn=i(),nr=(Yn.Sentry&&Yn.Sentry.Integrations&&(e=Yn.Sentry.Integrations),v(v(v({},e),Ge),lr)),sr=Object.freeze({__proto__:null,Integrations:nr,Transports:t,get Severity(){return a},addGlobalEventProcessor:ie,addBreadcrumb:function(t){O("addBreadcrumb",t)},captureException:ve,captureEvent:function(t){return O("captureEvent",t)},captureMessage:function(t,e){var n=new Error(t);return O("captureMessage",t,"string"==typeof e?e:void 0,v({originalException:t,syntheticException:n},"string"!=typeof e?{captureContext:e}:void 0))},configureScope:function(t){O("configureScope",t)},getHubFromCarrier:T,getCurrentHub:k,Hub:pe,makeMain:fe,Scope:re,Session:se,startTransaction:function(t,e){return O("startTransaction",v({},t),e)},SDK_VERSION:Ue,setContext:function(t,e){O("setContext",t,e)},setExtra:function(t,e){O("setExtra",t,e)},setExtras:function(t){O("setExtras",t)},setTag:function(t,e){O("setTag",t,e)},setTags:function(t){O("setTags",t)},setUser:function(t){O("setUser",t)},withScope:_e,BrowserClient:hr,injectReportDialog:Pn,eventFromException:ln,eventFromMessage:hn,defaultIntegrations:_r,forceLoad:function(){},init:function(t){var e,n,r,o;void 0===(t=void 0===t?{}:t).defaultIntegrations&&(t.defaultIntegrations=_r),void 0===t.release&&(e=i()).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),e=hr,!0===(o=t).debug&&(R?l.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")),n=k(),(r=n.getScope())&&r.update(o.initialScope),r=new e(o),n.bindClient(r),t.autoSessionTracking&&(void 0===i().document?D&&l.warn("Session tracking in non-browser environment with @sentry/browser is not supported."):(o=k()).captureSession&&(yr(o),m("history",function(t){var e=t.from,t=t.to;void 0!==e&&e!==t&&yr(k())})))},lastEventId:function(){return k().lastEventId()},onLoad:function(t){t()},showReportDialog:function(t){void 0===t&&(t={});var e=k(),n=e.getScope();n&&(t.user=v(v({},n.getUser()),t.user)),t.eventId||(t.eventId=e.lastEventId()),(n=e.getClient())&&n.showReportDialog(t)},flush:function(t){var e=k().getClient();return e?e.flush(t):(D&&l.warn("Cannot flush events. No client defined."),w(!1))},close:function(t){var e=k().getClient();return e?e.close(t):(D&&l.warn("Cannot flush events and disable SDK. No client defined."),w(!1))},wrap:function(t){return L(t)()},SDK_NAME:"sentry.javascript.browser"}),mr="undefined"!=typeof document&&"undefined"!=typeof window&&window.top.cordova&&window.top.cordova.platformId,or=window.isDevEv||window.JSTESTING,Yn=xr("RavenURL",or?"https://65d65a6c23ab46e49d5d75247f98a782@sentry.io/44142":"https://8843f791501144e0b0dd4e8bd560d758@sentry.io/44141"),e=window.Sentry||sr,lr={dsn:Yn,release:"13.3.2",environment:or?"development":"production",maxBreadcrumbs:20,ignoreErrors:["/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","/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","macroTask 'requestAnimationFrame'"],beforeSend:function(t,e){if(window.isLocalEv||window.JSTESTING)return null;t.logger=(mr?"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")||-1<t.message.indexOf("The object can not be found here"))&&(!t.stacktrace||!t.stacktrace.frames||!t.stacktrace.frames.length||location&&location.pathname&&0==location.pathname.indexOf("/edu/")))return null}catch(t){}return-1<navigator.userAgent.indexOf("BrandVerity")?null:t},beforeBreadcrumb:function(t){return"console"==t.category?null:t}},nr=(e&&e.Integrations&&(lr.integrations=[new e.Integrations.Breadcrumbs({console:!1})]),xr("CordovaTransport",(gr=e.Transports.XHRTransport,__extends(br,gr),br.prototype._sendRequest=function(s,t){var a=this,r=this;return this._isRateLimited(s.type)?(this.recordLostEvent("ratelimit_backoff",s.type),Promise.reject({event:t,type:s.type,reason:"Transport for "+s.type+" requests locked till "+this._disabledUntil(s.type)+" due to too many requests.",status:429})):new Promise(function(o,i){var e,t=window.top.sslHTTP,n=Object.assign({"Content-Type":"text/plain;charset=UTF-8"},r.options.headers||{});if("string"==typeof s.body){n["Content-Type"]="application/json";try{e=JSON.parse(s.body)}catch(t){e=s.body,n["Content-Type"]="text/plain;charset=UTF-8"}}t.post({url:s.url,headers:n,data:e},function(t){var e,n=new Blob([JSON.stringify(t.data,null,2)],{type:"application/json"}),r=new Response(n,{status:t.status});for(e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&r.headers.set(e,t.headers[e]);a._handleResponse({requestType:s.type,response:r,headers:t.headers,resolve:o,reject:i})},function(t){i(t)})})},br)));function br(){return null!==gr&&gr.apply(this,arguments)||this}mr&&(lr.transport=nr),e.init(lr),e.setTag("Application","WH-FE-NG2"),e.setTag("Color",window.SRV_COLOR||"Default");xr("Raven",e)}}});