System.register([],(function(t){"use strict";return{execute:function(){
/*! *****************************************************************************
            Copyright (c) Microsoft Corporation.

            Permission to use, copy, modify, and/or distribute this software for any
            purpose with or without fee is hereby granted.

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