(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5433],{660:function(e,t,n){"use strict";let r,i,a,s;function o(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return rn}});var u=n(2784),d=n(34406),l=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&g(e,n,t[n]);if(_)for(var n of _(t))m.call(t,n)&&g(e,n,t[n]);return e},v=(e,t)=>p(e,h(t)),E=(e,t)=>{var n={};for(var r in e)f.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&_)for(var r of _(e))0>t.indexOf(r)&&m.call(e,r)&&(n[r]=e[r]);return n},S=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})},b=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{o(n.next(e))}catch(e){i(e)}},s=e=>{try{o(n.throw(e))}catch(e){i(e)}},o=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,s);o((n=n.apply(e,t)).next())});function T(e){let t=e&&e.ownerDocument||document,n=t.defaultView||t.parentWindow||window;return{document:t,window:n}}function x(e){return e||document.head}var R="hCaptchaOnLoad",w="script-error",D="@hCaptcha/loader",N=Object.prototype.toString;function k(e){switch(N.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return L(e,Error)}}function C(e,t){return N.call(e)===`[object ${t}]`}function O(e){return C(e,"ErrorEvent")}function U(e){return C(e,"DOMError")}function B(e){return C(e,"String")}function I(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function Y(e){return C(e,"Object")}function G(e){return"undefined"!=typeof Event&&L(e,Event)}function $(e){return!!(e&&e.then&&"function"==typeof e.then)}function j(e){return"number"==typeof e&&e!=e}function L(e,t){try{return e instanceof t}catch(e){return!1}}function P(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function A(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function M(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t(function(e,t,n=!1){return!!B(e)&&(C(t,"RegExp")?t.test(e):!!B(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function q(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=v(y({},e.mechanism),{is_exception_group:!0,exception_id:t})}function F(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=v(y({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function z(e){return e&&e.Math==Math?e:void 0}var W="object"==typeof globalThis&&z(globalThis)||"object"==typeof window&&z(window)||"object"==typeof self&&z(self)||"object"==typeof global&&z(global)||function(){return this}()||{};function V(e,t,n){let r=n||W,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}function J(e,t={}){try{let n=e,r=[],i=0,a=0,s,o=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<5&&(s=function(e,t){let n=[],r,i,a,s,o;if(!e||!e.tagName)return"";n.push(e.tagName.toLowerCase());let c=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(c&&c.length)c.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&n.push(`#${e.id}`),(r=e.className)&&B(r))for(i=r.split(/\s+/),o=0;o1&&a+3*r.length+s.length>=c));)r.push(s),a+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return""}}var X=["debug","info","warn","error","log","assert","trace"],K={};function Z(e){if(!("console"in W))return e();let t=W.console,n={},r=Object.keys(K);r.forEach(e=>{let r=K[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}var Q=(r=!1,i={enable:()=>{r=!0},disable:()=>{r=!1}},"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?X.forEach(e=>{i[e]=(...t)=>{r&&Z(()=>{W.console[e](`Sentry Logger [${e}]:`,...t)})}}):X.forEach(e=>{i[e]=()=>{}}),i),ee=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function et(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function en(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var er=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function ei(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&es(i,r),e[t]=i}function ea(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function es(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ea(e,"__sentry_original__",t)}catch(e){}}function eo(e){return e.__sentry_original__}function ec(e){if(k(e))return y({message:e.message,name:e.name,stack:e.stack},ed(e));if(!G(e))return e;{let t=y({type:e.type,target:eu(e.target),currentTarget:eu(e.currentTarget)},ed(e));return"undefined"!=typeof CustomEvent&&L(e,CustomEvent)&&(t.detail=e.detail),t}}function eu(e){try{return"undefined"!=typeof Element&&L(e,Element)?J(e):Object.prototype.toString.call(e)}catch(e){return""}}function ed(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function el(e){return function e(t,n){if(Y(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}var ep=/\(error: (.*)\)/,eh=/captureMessage|captureException/,e_="";function ef(e){try{return e&&"function"==typeof e&&e.name||e_}catch(e){return e_}}function em(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var eg="__sentry_xhr_v2__",ey={},ev={};function eE(e,t){ey[e]=ey[e]||[],ey[e].push(t),function(e){if(!ev[e])switch(ev[e]=!0,e){case"console":"console"in W&&X.forEach(function(e){e in W.console&&ei(W.console,e,function(t){return K[e]=t,function(...t){eS("console",{args:t,level:e});let n=K[e];n&&n.apply(W.console,t)}})});break;case"dom":(function(){if(!W.document)return;let e=eS.bind(null,"dom"),t=ex(e,!0);W.document.addEventListener("click",t,!1),W.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=W[t]&&W[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ei(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=ex(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),ei(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})})();break;case"xhr":(function(){if(!W.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;ei(e,"open",function(e){return function(...t){let n=t[1],r=this[eg]={method:B(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};B(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let e=this[eg];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}eS("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?ei(this,"onreadystatechange",function(e){return function(...t){return i(),e.apply(this,t)}}):this.addEventListener("readystatechange",i),ei(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[eg];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),ei(e,"send",function(e){return function(...t){let n=this[eg];return n&&void 0!==t[0]&&(n.body=t[0]),eS("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})})();break;case"fetch":(function(){if(!function(){if(!("fetch"in W))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(em(W.fetch))return!0;let e=!1,t=W.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=em(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&ei(W,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:eT(t),method:eb(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:eT(t),method:eb(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return eS("fetch",y({},i)),e.apply(W,t).then(e=>(eS("fetch",v(y({},i),{endTimestamp:Date.now(),response:e})),e),e=>{throw eS("fetch",v(y({},i),{endTimestamp:Date.now(),error:e})),e})}});break;case"history":(function(){let e,t,n;if(t=(e=W.chrome)&&e.app&&e.app.runtime,n="history"in W&&!!W.history.pushState&&!!W.history.replaceState,t||!n)return;let r=W.onpopstate;function i(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=ej,t=String(n);ej=t,eS("history",{from:e,to:t})}return e.apply(this,t)}}W.onpopstate=function(...e){let t=W.location.href,n=ej;if(ej=t,eS("history",{from:n,to:t}),r)try{return r.apply(this,e)}catch(e){}},ei(W.history,"pushState",i),ei(W.history,"replaceState",i)})();break;case"error":eR=W.onerror,W.onerror=function(e,t,n,r,i){return eS("error",{column:r,error:i,line:n,msg:e,url:t}),!!eR&&!eR.__SENTRY_LOADER__&&eR.apply(this,arguments)},W.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":ew=W.onunhandledrejection,W.onunhandledrejection=function(e){return eS("unhandledrejection",e),!ew||!!ew.__SENTRY_LOADER__||ew.apply(this,arguments)},W.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("unknown instrumentation type:",e);return}}(e)}function eS(e,t){if(!(!e||!ey[e]))for(let n of ey[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${ef(n)} Error:`,t)}}function eb(e,t){return!!e&&"object"==typeof e&&!!e[t]}function eT(e){return"string"==typeof e?e:e?eb(e,"url")?e.url:e.toString?e.toString():"":""}function ex(e,t=!1){return n=>{if(!n||eP===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;let r="keypress"===n.type?"input":n.type;void 0===eL?(e({event:n,name:r,global:t}),eP=n):function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(eP,n)&&(e({event:n,name:r,global:t}),eP=n),clearTimeout(eL),eL=W.setTimeout(()=>{eL=void 0},1e3)}}var eR=null,ew=null;function eD(){let e=W.crypto||W.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>e.getRandomValues(new Uint8Array(1))[0])}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function eN(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ek(e){let{message:t,event_id:n}=e;if(t)return t;let r=eN(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function eC(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function eO(e,t){let n=eN(e);if(!n)return;let r=n.mechanism;if(n.mechanism=y(y(y({},{type:"generic",handled:!0}),r),t),t&&"data"in t){let e=y(y({},r&&r.data),t.data);n.mechanism.data=e}}function eU(e){if(e&&e.__sentry_captured__)return!0;try{ea(e,"__sentry_captured__",!0)}catch(e){}return!1}function eB(e,t=100,n=1/0){try{return function e(t,n,r=1/0,i=1/0,o=(s=(a="function"==typeof WeakSet)?new WeakSet:[],[function(e){if(a)return!!s.has(e)||(s.add(e),!1);for(let t=0;t=i){p[t]="[MaxProperties ~]";break}let n=_[t];p[t]=e(t,n,l-1,i,o),h++}return u(n),p}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function eI(e){return new eG(t=>{t(e)})}function eY(e){return new eG((t,n)=>{n(e)})}(eA=eM||(eM={}))[eA.PENDING=0]="PENDING",eA[eA.RESOLVED=1]="RESOLVED",eA[eA.REJECTED=2]="REJECTED";var eG=class{constructor(e){eG.prototype.__init.call(this),eG.prototype.__init2.call(this),eG.prototype.__init3.call(this),eG.prototype.__init4.call(this),this._state=eM.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new eG((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new eG((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(eM.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(eM.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===eM.PENDING){if($(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===eM.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===eM.RESOLVED&&e[1](this._value),this._state===eM.REJECTED&&e[2](this._value),e[0]=!0)})}}};function e$(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var ej,eL,eP,eA,eM,eH=["fatal","error","warning","log","info","debug"],eq={nowSeconds:()=>Date.now()/1e3},eF="undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__||"[object process]"!==Object.prototype.toString.call(void 0!==d?d:0)?function(){let{performance:e}=W;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}():function(){try{var e,t;return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return}}(),ez=void 0===eF?eq:{nowSeconds:()=>(eF.timeOrigin+eF.now())/1e3},eW=eq.nowSeconds.bind(eq),eV=ez.nowSeconds.bind(ez),eJ=(()=>{let{performance:e}=W;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+t-n):36e5;return r<36e5||a<36e5?r<=a?e.timeOrigin:i:n})(),eX="baggage",eK="sentry-",eZ=/^sentry-/;function eQ(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===r?i:`${e},${i}`;return a.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${eK}${t}`]=n),e),{}))}function e0(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}var e1=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function e3(e=eD(),t=eD().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function e2(e,t=[]){return[e,t]}function e4(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function e5(e,t){return(t||new TextEncoder).encode(e)}var e7={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function e6(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}var e9="production";function e8(){return V("globalEventProcessors",()=>[])}function te(e){e8().push(e)}function tt(e,t,n,r=0){return new eG((i,a)=>{let s=e[r];if(null===t||"function"!=typeof s)i(t);else{let o=s(y({},t),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===o&&Q.log(`Event processor "${s.id}" dropped event`),$(o)?o.then(t=>tt(e,t,n,r+1).then(i)).then(null,a):tt(e,o,n,r+1).then(i).then(null,a)}})}function tn(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||eV(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:eD()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}var tr=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ti()}static clone(e){let t=new tr;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=y({},e._tags),t._extra=y({},e._extra),t._contexts=y({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=y({},e._sdkProcessingMetadata),t._propagationContext=y({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&tn(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=y(y({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=v(y({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=y(y({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=v(y({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof tr?t:this}return e instanceof tr?(this._tags=y(y({},this._tags),e._tags),this._extra=y(y({},this._extra),e._extra),this._contexts=y(y({},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),e._propagationContext&&(this._propagationContext=e._propagationContext)):Y(e)&&(this._tags=y(y({},this._tags),e.tags),this._extra=y(y({},this._extra),e.extra),this._contexts=y(y({},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),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){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._attachments=[],this._propagationContext=ti(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r=y({timestamp:eW()},e),i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra=y(y({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=y(y({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=y(y({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=y(y({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=y({trace:this._span.getTraceContext()},e.contexts);let t=this._span.transaction;if(t){e.sdkProcessingMetadata=y({dynamicSamplingContext:t.getDynamicSamplingContext()},e.sdkProcessingMetadata);let n=t.name;n&&(e.tags=y({transaction:n},e.tags))}}this._applyFingerprint(e);let r=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...r];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata=v(y(y({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),tt([...n||[],...e8(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=y(y({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){var t;e.fingerprint=e.fingerprint?Array.isArray(t=e.fingerprint)?t:[t]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function ti(){return{traceId:eD(),spanId:eD().substring(16)}}var ta=class{constructor(e,t=new tr,n=4){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,v(y({originalException:e,syntheticException:r},t),{event_id:n}),a)}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:eD(),i=Error(e);return this._withClient((a,s)=>{a.captureMessage(e,t,v(y({originalException:e,syntheticException:i},n),{event_id:r}),s)}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:eD();return e.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,v(y({},t),{event_id:n}),i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let s=y({timestamp:eW()},e),o=i?Z(()=>i(s,t)):s;null!==o&&(r.emit&&r.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=to(this);try{e(this)}finally{to(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n&&console.warn(this.getClient()?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `:"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e,t=this.getStackTop().scope,n=t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),tn(n,e)),this._sendSessionUpdate(),t.setSession()}startSession(e){var t;let n,r;let{scope:i,client:a}=this.getStackTop(),{release:s,environment:o=e9}=a&&a.getOptions()||{},{userAgent:c}=W.navigator||{},u=(t=y(y({release:s,environment:o,user:i.getUser()},c&&{userAgent:c}),e),n=eV(),r={sid:eD(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,el({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}},t&&tn(r,t),r),d=i.getSession&&i.getSession();return d&&"ok"===d.status&&tn(d,{status:"exited"}),this.endSession(),i.setSession(u),u}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=ts().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function ts(){return W.__SENTRY__=W.__SENTRY__||{extensions:{},hub:void 0},W}function to(e){let t=ts(),n=tu(t);return td(t,e),n}function tc(){let e=ts();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=ts()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||tu(e).isOlderThan(4))&&td(e,new ta),tu(e)}(e)}function tu(e){return V("hub",()=>new ta,e)}function td(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function tl(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=tc().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function tp(e){return(e||tc()).getScope().getTransaction()}var th=!1;function t_(){let e=tp();if(e){let t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}t_.tag="sentry_tracingErrorCallback";var tf=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},tm=class{constructor(e={}){this.traceId=e.traceId||eD(),this.spanId=e.spanId||eD().substring(16),this.startTimestamp=e.startTimestamp||eV(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let t=new tm(v(y({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){let n=e&&e.op||"< unknown op >",r=t.transaction.name||"< unknown name >",i=t.transaction.spanId,a=`[Tracing] Starting '${n}' span on transaction '${r}' (${i}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:a},Q.log(a)}return t}setTag(e,t){return this.tags=v(y({},this.tags),{[e]:t}),this}setData(e,t){return this.data=v(y({},this.data),{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&Q.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:eV()}toTraceparent(){return e3(this.traceId,this.spanId,this.sampled)}toContext(){return el({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return el({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return el({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}};function tg(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=el({environment:r.environment||e9,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}var ty=class extends tm{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||tc(),this._name=e.name||"",this.metadata=v(y({source:"custom"},e.metadata),{spanMetadata:{}}),this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext=y({},n))}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new tf(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata=y(y({},this.metadata),e)}finish(e){let t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){return el(v(y({},super.toContext()),{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||tc(),t=e.getClient();if(!t)return{};let n=e.getScope(),r=tg(this.traceId,t,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);let a=this.metadata.source;return a&&"url"!==a&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&e.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e).endTimestamp);let r=this.metadata,i=y({contexts:v(y({},this._contexts),{trace:this.getTraceContext()}),spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:v(y({},r),{dynamicSamplingContext:this.getDynamicSamplingContext()})},r.source&&{transaction_info:{source:r.source}});return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}},tv={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},tE=class extends tf{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:eV(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}},tS=class extends ty{constructor(e,t,n=tv.idleTimeout,r=tv.finalTimeout,i=tv.heartbeatInterval,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope(e=>e.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.finish())},this._finalTimeout)}finish(e=eV()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){for(let t of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let n=t.startTimestamp{this._finished||this._pushActivity(e)},e=>{this._finished||this._popActivity(e)},this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.finish(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=eV();this._idleTimeoutCanceledPermanently?(this._finishReason="cancelled",this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};function tb(){let e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function tT(e,t,n){var r;let i;return tl(t)?void 0!==e.sampled?e.setMetadata({sampleRate:Number(e.sampled)}):("function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setMetadata({sampleRate:Number(i)})):(i=1,e.setMetadata({sampleRate:i})),(j(r=i)||!("number"==typeof r||"boolean"==typeof r)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),1):(r<0||r>1)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),1))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1):i?(e.sampled=Math.random()n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`Integration installed: ${t.name}`)}var tN=new WeakMap,tk="Not capturing exception because it's already been captured.",tC=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=ee.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return}let[n,r,i="",a,s="",o]=t.slice(1),c="",u=o,d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return en({host:a,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}(e):en(e);if(!(!t||!function(e){if(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__))return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Q.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(Q.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(Q.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Q.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t)))return t}(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t={}){var n;let r,i,a="string"==typeof t?t:t.tunnel,s="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return a||`${r=e.protocol?`${e.protocol}:`:"",i=e.port?`:${e.port}`:"",`${r}//${e.host}${i}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${Object.keys(n=y({sentry_key:e.publicKey,sentry_version:"7"},s&&{sentry_client:`${s.name}/${s.version}`})).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&")}`}(this._dsn,e);this._transport=e.transport(v(y({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,n){if(eU(e)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(tk);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,a=I(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(a.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&eU(t.originalException)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(tk);return}let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),tn(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e)):eI(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){var t,n;let r;(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=(t=this,n=this._options.integrations,r={},n.forEach(e=>{e&&tD(t,e,r)}),r),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){tD(this,e,this._integrations)}sendEvent(e,t={}){var n,r,i,a;let s,o,c,u;this.emit("beforeSendEvent",e,t);let d=(n=this._dsn,r=this._options._metadata,i=this._options.tunnel,s=e6(r),o=e.type&&"replay_event"!==e.type?e.type:"event",(a=r&&r.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||a.name,e.sdk.version=e.sdk.version||a.version,e.sdk.integrations=[...e.sdk.integrations||[],...a.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...a.packages||[]]),c=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext,u=y(y(y({event_id:e.event_id,sent_at:new Date().toISOString()},s&&{sdk:s}),!!i&&n&&{dsn:et(n)}),c&&{trace:el(y({},c))}),delete e.sdkProcessingMetadata,e2(u,[[{type:o},e]]));for(let e of t.attachments||[])d=function(e,t){let[n,r]=e;return[n,[...r,t]]}(d,function(e,t){let n="string"==typeof e.data?e5(e.data,t):e.data;return[el({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let l=this._sendEnvelope(d);l&&l.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){var t,n,r;let i;let a=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,i=e6(n),e2(y(y({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:et(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this._sendEnvelope(a)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&n)&&(tn(e,v(y({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}_isClientDoneProcessing(e){return new eG(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),(function(e,t,n,r,i){let{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,o=v(y({},t),{event_id:t.event_id||n.event_id||eD(),timestamp:t.timestamp||eW()}),c=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:e9),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=A(e.message,a));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=A(s.value,a));let o=e.request;o&&o.url&&(o.url=A(o.url,a))})(o,e),c.length>0&&(o.sdk=o.sdk||{},o.sdk.integrations=[...o.sdk.integrations||[],...c]),void 0===t.type&&function(e,t){let n=W._sentryDebugIds;if(!n)return;let r,i=tN.get(t);i?r=i:(r=new Map,tN.set(t,r));let a=Object.keys(n).reduce((e,i)=>{let a,s=r.get(i);s?a=s:(a=t(i),r.set(i,a));for(let t=a.length-1;t>=0;t--){let r=a[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=a[e.filename])})})}catch(e){}}(o,e.stackParser);let u=r;n.captureContext&&(u=tr.clone(u).update(n.captureContext));let d=eI(o),l=i&&i.getEventProcessors?i.getEventProcessors():[];if(u){if(u.getAttachments){let e=[...n.attachments||[],...u.getAttachments()];e.length&&(n.attachments=e)}d=u.applyToEvent(o,n,l)}else d=tt([...l,...e8()],o,n);return d.then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;let r=y(y(y(y(y({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>y(y({},e),e.data&&{data:eB(e.data,t,n)}))}),e.user&&{user:eB(e.user,t,n)}),e.contexts&&{contexts:eB(e.contexts,t,n)}),e.extra&&{extra:eB(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=eB(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>(e.data&&(e.data=eB(e.data,t,n)),e))),r}(e,a,s):e))})(r,e,t,n,this).then(e=>{if(null===e)return e;let{propagationContext:t}=e.sdkProcessingMetadata||{};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:a,dsc:s}=t;e.contexts=y({trace:{trace_id:r,span_id:i,parent_span_id:a}},e.contexts);let o=s||tg(r,this,n);e.sdkProcessingMetadata=y({dynamicSamplingContext:o},e.sdkProcessingMetadata)}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&("log"===e.logLevel?Q.log(e.message):Q.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,a=tU(e),s=tO(e),o=e.type||"error",c=`before send for type \`${o}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),eY(new er(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new er("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if($(e))return e.then(e=>{if(!Y(e)&&null!==e)throw new er(n);return e},e=>{throw new er(`${t} rejected with ${e}`)});if(!Y(e)&&null!==e)throw new er(n);return e}(function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return tO(t)&&r?r(t,n):tU(t)&&i?i(t,n):t}(r,n,t),c)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new er(`${c} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!a&&i&&this._updateSessionFromEvent(i,r);let s=r.transaction_info;return a&&s&&r.transaction!==e.transaction&&(r.transaction_info=v(y({},s),{source:"custom"})),this.sendEvent(r,t),r}).then(null,e=>{throw e instanceof er?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new er(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${e}`))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.error("Error while sending event:",e)});("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}};function tO(e){return void 0===e.type}function tU(e){return"transaction"===e.type}function tB(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new eG((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{eI(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){let a=[];if(e4(i,(t,n)=>{let i=e7[n];if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,i)){let r=tI(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else a.push(t)}),0===a.length)return eI();let s=e2(i[0],a),o=t=>{e4(s,(n,r)=>{let i=tI(n,r);e.recordDroppedEvent(t,e7[r],i)})};return n.add(()=>t({body:function(e,t){let[n,r]=e,i=JSON.stringify(n);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[e5(i,t),e]:i.push("string"==typeof e?e5(e,t):e)}for(let e of r){let[t,n]=e;if(a(` ${JSON.stringify(t)} `),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(eB(n))}a(e)}}return"string"==typeof i?i:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(i)}(s,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){let i=y({},e),a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n]=e.split(":",2),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))i[e]=r+s;else i.all=r+s}else s?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw o("network_error"),e})).then(e=>e,e=>{if(e instanceof er)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.error("Skipped sending event because buffer is full."),o("queue_overflow"),eI();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function tI(e,t){if(!("event"!==t&&"transaction"!==t))return Array.isArray(e)?e[1]:void 0}var tY="7.73.0",tG={};S(tG,{FunctionToString:()=>tj,InboundFilters:()=>tA});var t$,tj=class{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=tj.id}setupOnce(){t$=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=eo(this)||this;return t$.apply(t,e)}}catch(e){}}};tj.__initStatic();var tL=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],tP=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/],tA=class{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=tA.id,this._options=e}setupOnce(e,t){}processEvent(e,t,n){var r,i;let a=n.getOptions();return((r=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:tL],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:tP],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,a)).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Event dropped due to being internal Sentry Error. Event: ${ek(e)}`),0):(i=r.ignoreErrors,!e.type&&i&&i.length&&(function(e){let t,n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&0===n.length&&Q.error(`Could not extract message for event ${ek(e)}`),n})(e).some(e=>H(e,i)))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${ek(e)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&H(n,t)}(e,r.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=tM(e);return!!n&&H(n,t)}(e,r.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=tM(e);return!n||H(n,t)}(e,r.allowUrls)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${ek(e)}. Url: ${tM(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${ek(e)}. Url: ${tM(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${ek(e)}`),0))?e:null}};function tM(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.error(`Cannot extract url for event ${ek(e)}`),null}}tA.__initStatic();var tH=0;function tq(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(eo(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>tq(e,t));return e.apply(this,i)}catch(e){var i;throw tH++,setTimeout(()=>{tH--}),i=n=>{n.addEventProcessor(e=>(t.mechanism&&(eC(e,void 0,void 0),eO(e,t.mechanism)),e.extra=v(y({},e.extra),{arguments:r}),e)),tc().captureException(e,{captureContext:void 0})},tc().withScope(i),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}es(r,e),ea(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}function tF(e,t){let n;let r=tW(e,t),i={type:t&&t.name,value:(n=t&&t.message)?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"};return r.length&&(i.stacktrace={frames:r}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function tz(e,t){return{exception:{values:[tF(e,t)]}}}function tW(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(tV.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var tV=/Minified React error #\d+;/i;function tJ(e,t,n,r,i){let a;if(O(t)&&t.error)return tz(e,t.error);if(U(t)||C(t,"DOMException")){if("stack"in t)a=tz(e,t);else{let i=t.name||(U(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;eC(a=tX(e,s,n,r),s)}return"code"in t&&(a.tags=v(y({},a.tags),{"DOMException.code":`${t.code}`})),a}return k(t)?tz(e,t):(Y(t)||G(t)?eO(a=function(e,t,n,r){let i=tc().getClient(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:G(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(ec(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return A(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:A(r,t)}return""}(e),r=t?"promise rejection":"exception";return O(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:G(e)?`Event \`${function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:{__serialized__:function e(t,n=3,r=102400){let i=eB(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,a)}};if(n){let t=tW(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,n,i),{synthetic:!0}):(eC(a=tX(e,t,n,r),`${t}`,void 0),eO(a,{synthetic:!0})),a)}function tX(e,t,n,r){let i={message:t};if(r&&n){let r=tW(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}var tK=class extends tC{constructor(e){let t=W.SENTRY_SDK_SOURCE||"npm";e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:tY}],version:tY},super(e),e.sendClientReports&&W.document&&W.document.addEventListener("visibilitychange",()=>{"hidden"===W.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){var n,r;let i;return n=this._options.stackParser,r=this._options.attachStacktrace,eO(i=tJ(n,e,t&&t.syntheticException||void 0,r)),i.level="error",t&&t.event_id&&(i.event_id=t.event_id),eI(i)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let a=tX(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),eI(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){return e2(y(y({event_id:e.event_id,sent_at:new Date().toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:et(r)}),[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("No outcomes to send");return}if(!this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("No dsn provided, will not send outcomes");return}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("Sending outcomes:",t);let n=e2((e=this._options.tunnel&&et(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:eW(),discarded_events:t}]]);this._sendEnvelope(n)}};function tZ(e,t=function(){if(nq)return nq;if(em(W.fetch))return nq=W.fetch.bind(W);let e=W.document,t=W.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return nq=t.bind(W)}()){let n=0,r=0;return tB(e,function(i){let a=i.body.length;n+=a,r++;let s=y({body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{return t(e.url,s).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return nq=void 0,n-=a,r--,eY(e)}})}function tQ(e){return tB(e,function(t){return new eG((n,r)=>{let i=new XMLHttpRequest;for(let t in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}function t0(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var t1=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,t3=/\((\S*)(?::(\d+))(?::(\d+))\)/,t2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,t4=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t5=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,t7=function(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let r=[],i=e.split(` `);for(let e=n;e1024)continue;let a=ep.test(n)?n.replace(ep,"$1"):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),eh.test(t[t.length-1].function||"")&&(t.pop(),eh.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>v(y({},e),{filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(r)}}([30,e=>{let t=t1.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=t3.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=t6(t[1]||"?",t[2]);return t0(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=t2.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=t4.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=t6(n,e),t0(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=t5.exec(e);return t?t0(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),t6=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},t9=class{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=t9.id,this._options=y({onerror:!0,onunhandledrejection:!0},e),this._installFunc={onerror:t8,onunhandledrejection:ne}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let t in e){let n=this._installFunc[t];n&&e[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`Global Handler attached: ${t}`),n(),this._installFunc[t]=void 0)}}};function t8(){eE("error",e=>{let t,n,r,[i,a,s]=nr();if(!i.getIntegration(t9))return;let{msg:o,url:c,line:u,column:d,error:l}=e;if(tH>0||l&&l.__sentry_own_request__)return;let p=void 0===l&&B(o)?(t=O(o)?o.message:o,n="Error",(r=t.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i))&&(n=r[1],t=r[2]),nt({exception:{values:[{type:n,value:t}]}},c,u,d)):nt(tJ(a,l||o,void 0,s,!1),c,u,d);p.level="error",nn(i,l,p,"onerror")})}function ne(){eE("unhandledrejection",e=>{var t;let[n,r,i]=nr();if(!n.getIntegration(t9))return;let a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(e){}if(tH>0||a&&a.__sentry_own_request__)return!0;let s=I(a)?(t=a,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):tJ(r,a,void 0,i,!0);s.level="error",nn(n,a,s,"onunhandledrejection")})}function nt(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,l=B(t)&&t.length>0?t:function(){try{return W.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:d}),e}function nn(e,t,n,r){eO(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function nr(){let e=tc(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}t9.__initStatic();var ni=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],na=class{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=na.id,this._options=y({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}setupOnce(){this._options.setTimeout&&ei(W,"setTimeout",ns),this._options.setInterval&&ei(W,"setInterval",ns),this._options.requestAnimationFrame&&ei(W,"requestAnimationFrame",no),this._options.XMLHttpRequest&&"XMLHttpRequest"in W&&ei(XMLHttpRequest.prototype,"send",nc);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:ni).forEach(nu)}};function ns(e){return function(...t){let n=t[0];return t[0]=tq(n,{mechanism:{data:{function:ef(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function no(e){return function(t){return e.apply(this,[tq(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ef(e)},handled:!1,type:"instrument"}})])}}function nc(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&ei(n,e,function(t){let n={mechanism:{data:{function:e,handler:ef(t)},handled:!1,type:"instrument"}},r=eo(t);return r&&(n.mechanism.data.handler=ef(r)),tq(t,n)})}),e.apply(this,t)}}function nu(e){let t=W[e]&&W[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(ei(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=tq(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ef(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,tq(r,{mechanism:{data:{function:"addEventListener",handler:ef(r),target:e},handled:!1,type:"instrument"}}),i])}}),ei(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}na.__initStatic();var nd=class{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=nd.id,this.options=y({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}setupOnce(){var e;if(this.options.console&&eE("console",np),this.options.dom&&eE("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{let e=t.event;n=e&&e.target?J(e.target,{keyAttrs:r,maxStringLength:i}):J(e,{keyAttrs:r,maxStringLength:i})}catch(e){n=""}0!==n.length&&tc().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&eE("xhr",nh),this.options.fetch&&eE("fetch",n_),this.options.history&&eE("history",nf),this.options.sentry){let e=tc().getClient();e&&e.on&&e.on("beforeSendEvent",nl)}}};function nl(e){tc().addBreadcrumb({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:ek(e)},{event:e})}function np(e){var t;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":eH.includes(t)?t:"log",message:M(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${M(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}tc().addBreadcrumb(n,{input:e.args,level:e.level})}function nh(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[eg];if(!t||!n||!r)return;let{method:i,url:a,status_code:s,body:o}=r,c={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};tc().addBreadcrumb({category:"xhr",data:{method:i,url:a,status_code:s},type:"http"},c)}function n_(e){let{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};tc().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r=v(y({},e.fetchData),{status_code:e.response&&e.response.status}),i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};tc().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}}function nf(e){let t=e.from,n=e.to,r=e$(W.location.href),i=e$(t),a=e$(n);i.path||(i=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),tc().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}nd.__initStatic();var nm=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=nm.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){let r=n.getOptions();!function(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!L(s.originalException,Error))return;let o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=(function e(t,n,r,i,a,s,o,c){if(s.length>=r+1)return s;let u=[...s];if(L(i[a],Error)){q(o,c);let s=t(n,i[a]),d=u.length;F(s,a,d,c),u=e(t,n,r,i[a],a,[s,...u],s,d)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if(L(i,Error)){q(o,c);let d=t(n,i),l=u.length;F(d,`errors[${s}]`,l,c),u=e(t,n,r,i,a,[d,...u],d,l)}}),u})(e,t,i,s.originalException,r,a.exception.values,o,0).map(e=>(e.value&&(e.value=A(e.value,n)),e)))}(tF,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}};nm.__initStatic();var ng=class{static __initStatic(){this.id="HttpContext"}constructor(){this.name=ng.id}setupOnce(){}preprocessEvent(e){if(!W.navigator&&!W.location&&!W.document)return;let t=e.request&&e.request.url||W.location&&W.location.href,{referrer:n}=W.document||{},{userAgent:r}=W.navigator||{},i=y(y(y({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),a=v(y(y({},e.request),t&&{url:t}),{headers:i});e.request=a}};ng.__initStatic();var ny=class{static __initStatic(){this.id="Dedupe"}constructor(){this.name=ny.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{var t;let n,r,i,a;if((t=this._previousEvent)&&(n=e.message,r=t.message,(n||r)&&(!n||r)&&(n||!r)&&n===r&&nE(e,t)&&nv(e,t)||(i=nS(t),a=nS(e),i&&a&&i.type===a.type&&i.value===a.value&&nE(e,t)&&nv(e,t))))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return this._previousEvent=e}};function nv(e,t){let n=nb(e),r=nb(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;end,Dedupe:()=>ny,GlobalHandlers:()=>t9,HttpContext:()=>ng,LinkedErrors:()=>nm,TryCatch:()=>na});var nx=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},nR=()=>`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,nw=()=>{let e=W.performance.timing,t=W.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n},nD=()=>W.__WEB_VITALS_POLYFILL__?W.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||nw()):W.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nN=()=>{let e=nD();return e&&e.activationStart||0},nk=(e,t)=>{let n=nD(),r="navigate";return n&&(r=W.document.prerendering||nN()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:nR(),navigationType:r}},nC=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},nO=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===W.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},nU=e=>{let t=nk("CLS",0),n,r=0,i=[],a=e=>{e.forEach(e=>{if(!e.hadRecentInput){let a=i[0],s=i[i.length-1];r&&0!==i.length&&e.startTime-s.startTime<1e3&&e.startTime-a.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=nC("layout-shift",a);if(s){n=nx(e,t);let r=()=>{a(s.takeRecords()),n(!0)};return nO(r),r}},nB=-1,nI=()=>"hidden"!==W.document.visibilityState||W.document.prerendering?1/0:0,nY=()=>{nO(({timeStamp:e})=>{nB=e},!0)},nG=()=>(nB<0&&(nB=nI(),nY()),{get firstHiddenTime(){return nB}}),n$=e=>{let t=nG(),n=nk("FID"),r,i=e=>{e.startTime{e.forEach(i)},s=nC("first-input",a);r=nx(e,n),s&&nO(()=>{a(s.takeRecords()),s.disconnect()},!0)},nj={},nL=e=>{let t=nG(),n=nk("LCP"),r,i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-nN(),0);e{nj[n.id]||(i(a.takeRecords()),a.disconnect(),nj[n.id]=!0,r(!0))};return["keydown","click"].forEach(e=>{addEventListener(e,t,{once:!0,capture:!0})}),nO(t,!0),t}};function nP(e){return"number"==typeof e&&isFinite(e)}function nA(e,t){var{startTimestamp:n}=t,r=E(t,["startTimestamp"]);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild(y({startTimestamp:n},r))}function nM(e){return e/1e3}function nH(){return W&&W.addEventListener&&W.performance}var nq,nF,nz,nW=0,nV={};function nJ(e,t,n,r,i,a){let s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];o&&s&&nA(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+nM(o),endTimestamp:r+nM(s)})}var nX=["localhost",/^\/(?!\/)/],nK={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:nX,tracePropagationTargets:nX};function nZ(e){let t=e.data.url,n=new PerformanceObserver(r=>{r.getEntries().forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),eJ?[...r,["http.request.redirect_start",nQ(e.redirectStart)],["http.request.fetch_start",nQ(e.fetchStart)],["http.request.domain_lookup_start",nQ(e.domainLookupStart)],["http.request.domain_lookup_end",nQ(e.domainLookupEnd)],["http.request.connect_start",nQ(e.connectStart)],["http.request.secure_connection_start",nQ(e.secureConnectionStart)],["http.request.connection_end",nQ(e.connectEnd)],["http.request.request_start",nQ(e.requestStart)],["http.request.response_start",nQ(e.responseStart)],["http.request.response_end",nQ(e.responseEnd)]]:r})(r).forEach(t=>e.setData(...t)),n.disconnect())})});n.observe({entryTypes:["resource"]})}function nQ(e=0){return((eJ||performance.timeOrigin)+e)/1e3}function n0(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(eX,n)}catch(e){}}var n1=y(v(y({},tv),{markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!W||!W.location){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("Could not initialize routing instrumentation due to invalid location");return}let r=W.location.href,i;t&&(i=e({name:W.location.pathname,startTimestamp:eJ?eJ/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&eE("history",({to:t,from:n})=>{if(void 0===n&&r&&-1!==r.indexOf(t)){r=void 0;return}n!==t&&(r=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:W.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}}),nK),n3=class{constructor(e){let t;this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,(t=ts()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=tx),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=tb),th||(th=!0,eE("error",t_),eE("unhandledrejection",t_))),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options=y(y({},n1),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=function(){let e=nH();if(e&&eJ){e.mark&&W.performance.mark("sentry-tracing-init"),n$(e=>{let t=e.entries.pop();if(!t)return;let n=nM(eJ),r=nM(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Measurements] Adding FID"),nV.fid={value:e.value,unit:"millisecond"},nV["mark.fid"]={value:n+r,unit:"second"}});let t=nU(e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Measurements] Adding CLS"),nV.cls={value:e.value,unit:""},nz=t)}),n=nL(e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Measurements] Adding LCP"),nV.lcp={value:e.value,unit:"millisecond"},nF=t)});return()=>{t&&t(),n&&n()}}return()=>{}}(),this.options.enableLongTask&&nC("longtask",e=>{for(let t of e){let e=tp();if(!e)return;let n=nM(eJ+t.startTime),r=nM(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}),this.options._experiments.enableInteractions&&nC("event",e=>{for(let t of e){let e=tp();if(!e)return;if("click"===t.name){let n=nM(eJ+t.startTime),r=nM(t.duration);e.startChild({description:J(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}},{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:a,startTransactionOnPageLoad:s,markBackgroundTransactions:o,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:l,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,_=h||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&h&&Q.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},s,a),o&&(W&&W.document?W.document.addEventListener("visibilitychange",()=>{let e=tp();if(W.document.hidden&&e){let t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),function(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}=y({traceFetch:nK.traceFetch,traceXHR:nK.traceXHR},e),o="function"==typeof a?a:e=>!0,c=e=>H(e,r||i||nX),u={};t&&eE("fetch",e=>{let t=function(e,t,n,r){if(!tl()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let t=e.fetchData.__span;if(!t)return;let n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);let t=parseInt(e.response&&e.response.headers&&e.response.headers.get("content-length"));t>0&&n.setData("http.response_content_length",t)}else e.error&&n.setStatus("internal_error");n.finish(),delete r[t]}return}let a=tc(),s=a.getScope(),o=a.getClient(),c=s.getSpan(),{method:u,url:d}=e.fetchData,l=i&&c?c.startChild({data:{url:d,type:"fetch","http.method":u},description:`${u} ${d}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(l&&(e.fetchData.__span=l.spanId,r[l.spanId]=l),n(e.fetchData.url)&&o){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let a=i||n.getSpan(),s=a&&a.transaction,{traceId:o,sampled:c,dsc:u}=n.getPropagationContext(),d=a?a.toTraceparent():e3(o,void 0,c),l=eQ(s?s.getDynamicSamplingContext():u||tg(o,t,n)),p="undefined"!=typeof Request&&L(e,Request)?e.headers:r.headers;if(!p)return{"sentry-trace":d,baggage:l};if("undefined"!=typeof Headers&&L(p,Headers)){let e=new Headers(p);return e.append("sentry-trace",d),l&&e.append(eX,l),e}if(Array.isArray(p)){let e=[...p,["sentry-trace",d]];return l&&e.push([eX,l]),e}{let e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),l&&t.push(l),v(y({},p),{"sentry-trace":d,baggage:t.length>0?t.join(","):void 0})}}(t,o,s,n,l)}return l}(e,o,c,u);s&&t&&nZ(t)}),n&&eE("xhr",e=>{let t=function(e,t,n,r){let i=e.xhr,a=i&&i[eg];if(!tl()||i&&i.__sentry_own_request__||!i||!a)return;let s=t(a.url);if(e.endTimestamp&&s){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&(t.setHttpStatus(a.status_code),t.finish(),delete r[e]);return}let o=tc(),c=o.getScope(),u=c.getSpan(),d=s&&u?u.startChild({data:v(y({},a.data),{type:"xhr","http.method":a.method,url:a.url}),description:`${a.method} ${a.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(i.__sentry_xhr_span_id__=d.spanId,r[i.__sentry_xhr_span_id__]=d),i.setRequestHeader&&n(a.url)){if(d){let e=d&&d.transaction,t=eQ(e&&e.getDynamicSamplingContext());n0(i,d.toTraceparent(),t)}else{let e=o.getClient(),{traceId:t,sampled:n,dsc:r}=c.getPropagationContext();n0(i,e3(t,void 0,n),eQ(r||(e?tg(t,e,c):void 0)))}}return d}(e,o,c,u);s&&t&&nZ(t)})}({traceFetch:c,traceXHR:u,tracePropagationTargets:_,shouldCreateSpanForRequest:d,enableHTTPTimings:l})}_createRouteTransaction(e){if(!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="pageload"===e.op,{traceparentData:o,dynamicSamplingContext:c,propagationContext:u}=function(e,t){let n=function(e){let t;if(!e)return;let n=e.match(e1);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=function(e){if(!B(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=e0(t);return y(y({},e),n)},{});else{if(!e)return;t=e0(e)}let n=Object.entries(t).reduce((e,[t,n])=>(t.match(eZ)&&(e[t.slice(eK.length)]=n),e),{});if(Object.keys(n).length>0)return n}(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{},o={traceId:i||eD(),spanId:eD().substring(16),sampled:s};return a&&(o.parentSpanId=a),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}(s?n2("sentry-trace"):"",s?n2("baggage"):""),d=v(y(y({},e),o),{metadata:v(y({},e.metadata),{dynamicSamplingContext:o&&!c?{}:c}),trimEnd:!0}),l="function"==typeof n?n(d):d,p=void 0===l?v(y({},d),{sampled:!1}):l;p.metadata=p.name!==d.name?v(y({},p.metadata),{source:"custom"}):p.metadata,this._latestRouteName=p.name,this._latestRouteSource=p.metadata&&p.metadata.source,!1===p.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Tracing] Will not send ${p.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Tracing] Starting ${p.op} transaction on scope`);let{location:h}=W,_=tR(t,p,r,i,!0,{location:h},a),f=t.getScope();return s&&o?f.setPropagationContext(u):f.setPropagationContext({traceId:_.traceId,spanId:_.spanId,parentSpanId:_.parentSpanId,sampled:_.sampled}),_.registerBeforeFinishCallback(e=>{this._collectWebVitals(),function(e){let t=nH();if(!t||!W.performance.getEntries||!eJ)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Tracing] Adding & adjusting spans using Performance API");let n=nM(eJ),r=t.getEntries(),i,a;if(r.slice(nW).forEach(t=>{let r=nM(t.startTime),s=nM(t.duration);if(!("navigation"===e.op&&n+r{nJ(e,t,r,n)}),nJ(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),nJ(e,t,"fetch",n,"cache","domainLookupStart"),nJ(e,t,"domainLookup",n,"DNS"),nA(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+nM(t.requestStart),endTimestamp:n+nM(t.responseEnd)}),nA(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+nM(t.responseStart),endTimestamp:n+nM(t.responseEnd)}),i=n+nM(t.responseStart),a=n+nM(t.requestStart);break;case"mark":case"paint":case"measure":{let i;i=n+r,nA(e,{description:t.name,endTimestamp:i+s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i});let a=nG(),o=t.startTime{if(!nV[t]||n>=e.startTimestamp)return;let r=nV[t].value,i=Math.abs((n+nM(r)-e.startTimestamp)*1e3),a=i-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log(`[Measurements] Normalized ${t} from ${r} to ${i} (${a})`),nV[t].value=i});let t=nV["mark.fid"];t&&nV.fid&&(nA(e,{description:"first input delay",endTimestamp:t.value+nM(nV.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete nV["mark.fid"]),"fcp"in nV||delete nV.cls,Object.keys(nV).forEach(t=>{e.setMeasurement(t,nV[t].value,nV[t].unit)}),nF&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Measurements] Adding LCP Data"),nF.element&&e.setTag("lcp.element",J(nF.element)),nF.id&&e.setTag("lcp.id",nF.id),nF.url&&e.setTag("lcp.url",nF.url.trim().slice(0,200)),e.setTag("lcp.size",nF.size)),nz&&nz.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.log("[Measurements] Adding CLS Data"),nz.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,J(t.node))))}nF=void 0,nz=void 0,nV={}}(e)}),_}_registerInteractionListener(){let e,t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",a=tp();if(a&&a.op&&["navigation","pageload"].includes(a.op)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Q.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let s=this._getCurrentHub(),{location:o}=W;e=tR(s,{name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}},t,n,!0,{location:o},r)};["click"].forEach(e=>{addEventListener(e,t,{once:!1,capture:!0})})}};function n2(e){var t;let n=(t=`meta[name=${e}]`,W.document&&W.document.querySelector?W.document.querySelector(t):null);return n?n.getAttribute("content"):void 0}var n4={};W.Sentry&&W.Sentry.Integrations&&(n4=W.Sentry.Integrations),y(y(y({},n4),tG),nT);var n5=null;function n7(e,t){return!1===e?n6(e):n5?n6(n5,t):n6(n5=new ta(new tK({dsn:"https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6",transport:window.fetch?tZ:tQ,stackParser:t7,integrations:[new nd,new t9,new nm,new ny,new ng,new n3]})),t)}function n6(e,t={key:"source",value:"@hCaptcha/loader"}){return{addBreadcrumb:t=>{e&&e.addBreadcrumb(t)},captureMessage:n=>{e&&e.withScope(function(r){r.setTag(t.key,t.value),e.captureMessage(n)})},captureException:n=>{e&&e.withScope(function(r){r.setTag(t.key,t.value),e.captureEvent({message:w,level:"error",extra:n})})}}}var n9=[];function n8(e){var t=e&&e.ownerDocument||document,n=t.defaultView||t.parentWindow||window;return{document:t,window:n}}function re(e){return e||document.head}var rt={key:"source",value:"@hCaptcha/react"},rn=function(e){function t(t){var n;return(n=e.call(this,t)||this)._hcaptcha=void 0,n.renderCaptcha=n.renderCaptcha.bind(o(n)),n.resetCaptcha=n.resetCaptcha.bind(o(n)),n.removeCaptcha=n.removeCaptcha.bind(o(n)),n.isReady=n.isReady.bind(o(n)),n._onReady=null,n.loadCaptcha=n.loadCaptcha.bind(o(n)),n.handleOnLoad=n.handleOnLoad.bind(o(n)),n.handleSubmit=n.handleSubmit.bind(o(n)),n.handleExpire=n.handleExpire.bind(o(n)),n.handleError=n.handleError.bind(o(n)),n.handleOpen=n.handleOpen.bind(o(n)),n.handleClose=n.handleClose.bind(o(n)),n.handleChallengeExpired=n.handleChallengeExpired.bind(o(n)),n.ref=u.createRef(),n.apiScriptRequested=!1,n.sentryHub=null,n.state={isApiReady:!1,isRemoved:!1,elementId:t.id,captchaId:""},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this,t=n8(re(this.props.scriptLocation));this._hcaptcha=t.window.hcaptcha||void 0;var n=void 0!==this._hcaptcha;if(this.sentryHub=n7(this.props.sentry,rt),this.sentryHub.addBreadcrumb({category:rt.value,message:"hCaptcha component mounted"}),n){this.setState({isApiReady:!0},function(){e.renderCaptcha()});return}this.loadCaptcha()},n.componentWillUnmount=function(){var e=this.state.captchaId,t=this._hcaptcha;this.isReady()&&(t.reset(e),t.remove(e),this.sentryHub.addBreadcrumb({category:rt.value,message:"hCaptcha component unmounted"}))},n.shouldComponentUpdate=function(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved},n.componentDidUpdate=function(e){var t=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every(function(n){return e[n]===t.props[n]})||this.removeCaptcha(function(){t.renderCaptcha()})},n.loadCaptcha=function(){if(!this.apiScriptRequested){var e=this.props,t=e.apihost,n=e.assethost,r=e.endpoint,i=e.host,a=e.imghost,s=e.languageOverride,o=e.reCaptchaCompat,c=e.reportapi,u=e.sentry,d=e.custom,l=e.loadAsync,p=e.scriptLocation,h=e.scriptSource,_=e.secureApi,f=e.cleanup;(function(){return b(this,arguments,function*(e={}){return yield function e(t,n=0){return b(this,null,function*(){let r=n<2?"Retry loading hCaptcha Api":"Exceeded maximum retries",i=n7(t.sentry);try{return yield function(e={cleanup:!0},t){try{t.addBreadcrumb({category:D,message:"hCaptcha loader params",data:e});let n=x(e.scriptLocation),r=T(n),i=n9.find(({scope:e})=>e===r.window);if(i)return t.addBreadcrumb({category:D,message:"hCaptcha already loaded"}),i.promise;let a=new Promise((n,a)=>b(this,null,function*(){try{var s;r.window[R]=()=>{t.addBreadcrumb({category:D,message:"hCaptcha script called onload function"}),n(r.window.hcaptcha)};let a=(s={custom:e.custom,render:e.render,sentry:e.sentry,assethost:e.assethost,imghost:e.imghost,reportapi:e.reportapi,endpoint:e.endpoint,host:e.host,recaptchacompat:e.recaptchacompat,hl:e.hl},Object.entries(s).filter(([,e])=>e||!1===e).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`).join("&"));yield function({scriptLocation:e,query:t,loadAsync:n=!0,crossOrigin:r,apihost:i="https://js.hcaptcha.com",cleanup:a=!0,secureApi:s=!1,scriptSource:o=""}={}){let c=x(e),u=T(c);return new Promise((e,d)=>{let l=u.document.createElement("script");l.id="hCaptcha-script",o?l.src=`${o}?onload=${R}`:s?l.src=`${i}/1/secure-api.js?onload=${R}`:l.src=`${i}/1/api.js?onload=${R}`,l.crossOrigin=r,l.async=n;let p=(e,t)=>{try{!s&&a&&c.removeChild(l),t(e)}catch(e){d(e)}};l.onload=t=>p(t,e),l.onerror=e=>p(e,d),l.src+=""!==t?`&${t}`:"",c.appendChild(l)})}(y({query:a},e)),t.addBreadcrumb({category:D,message:"hCaptcha loaded",data:i})}catch(n){t.addBreadcrumb({category:D,message:"hCaptcha failed to load",data:n});let e=n9.findIndex(e=>e.scope===r.window);-1!==e&&n9.splice(e,1),t.captureException(n),a(Error(w))}}));return n9.push({promise:a,scope:r.window}),a}catch(e){return t.captureException(e),Promise.reject(Error(w))}}(t,i)}catch(a){return i.addBreadcrumb({SENTRY_SOURCE:D,message:r,data:{error:a}}),n>=2?(i.captureException(a),Promise.reject(a)):e(t,n+=1)}})}(e)})})({render:"explicit",apihost:t,assethost:n,endpoint:r,hl:s,host:i,imghost:a,recaptchacompat:!1===o?"off":null,reportapi:c,sentry:u,custom:d,loadAsync:l,scriptLocation:p,scriptSource:h,secureApi:_,cleanup:void 0===f||f}).then(this.handleOnLoad,this.handleError).catch(this.handleError),this.apiScriptRequested=!0}},n.renderCaptcha=function(e){var t=this;if(this.state.isApiReady){var n=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),r=this._hcaptcha.render(this.ref.current,n);this.setState({isRemoved:!1,captchaId:r},function(){e&&e(),t._onReady&&t._onReady(r)})}},n.resetCaptcha=function(){var e=this.state.captchaId,t=this._hcaptcha;this.isReady()&&(t.reset(e),this.sentryHub.addBreadcrumb({category:rt.value,message:"hCaptcha reset"}))},n.removeCaptcha=function(e){var t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(this.setState({isRemoved:!0},function(){n.remove(t),e&&e()}),this.sentryHub.addBreadcrumb({category:rt.value,message:"hCaptcha removed"}))},n.handleOnLoad=function(){var e=this;this.setState({isApiReady:!0},function(){try{var t=re(e.props.scriptLocation),n=n8(t);e._hcaptcha=n.window.hcaptcha,e.renderCaptcha(function(){var t=e.props.onLoad;t&&t()})}catch(t){e.sentryHub.captureException(t)}})},n.handleSubmit=function(e){var t=this.props.onVerify,n=this.state,r=n.isRemoved,i=n.captchaId,a=this._hcaptcha;if(void 0!==a&&!r){var s=a.getResponse(i),o=a.getRespKey(i);t&&t(s,o)}},n.handleExpire=function(){var e=this.props.onExpire,t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(n.reset(t),e&&e(),this.sentryHub.addBreadcrumb({category:rt.value,message:"hCaptcha expired"}))},n.handleError=function(e){var t=this.props.onError,n=this.state.captchaId,r=this._hcaptcha;this.isReady()&&r.reset(n),t&&t(e)},n.isReady=function(){var e=this.state,t=e.isApiReady,n=e.isRemoved;return t&&!n},n.handleOpen=function(){this.isReady()&&this.props.onOpen&&this.props.onOpen()},n.handleClose=function(){this.isReady()&&this.props.onClose&&this.props.onClose()},n.handleChallengeExpired=function(){this.isReady()&&this.props.onChalExpired&&this.props.onChalExpired()},n.execute=function(e){var t=this;void 0===e&&(e=null),e="object"==typeof e?e:null;try{var n=this.state.captchaId,r=this._hcaptcha;if(!this.isReady()){var i,a=new Promise(function(n,r){t._onReady=function(i){try{var a=t._hcaptcha;e&&e.async?a.execute(i,e).then(n).catch(r):n(a.execute(i,e))}catch(e){r(e)}}});return null!=(i=e)&&i.async?a:null}return r.execute(n,e)}catch(t){if(this.sentryHub.captureException(t),e&&e.async)return Promise.reject(t);return null}},n.setData=function(e){var t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(e&&"object"!=typeof e&&(e=null),n.setData(t,e))},n.getResponse=function(){return this._hcaptcha.getResponse(this.state.captchaId)},n.getRespKey=function(){return this._hcaptcha.getRespKey(this.state.captchaId)},n.render=function(){var e=this.state.elementId;return u.createElement("div",{ref:this.ref,id:e})},t}(u.Component)},50857:function(e,t,n){var r=n(37772).Symbol;e.exports=r},53366:function(e,t,n){var r=n(50857),i=n(62107),a=n(37157),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):a(e)}},51704:function(e,t,n){var r=n(52153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},51242:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},62107:function(e,t,n){var r=n(50857),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[o]=n:delete e[o]),i}},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},54073:function(e,t,n){var r=n(29259),i=n(61100),a=n(7642),s=Math.max,o=Math.min;e.exports=function(e,t,n){var c,u,d,l,p,h,_=0,f=!1,m=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=c,r=u;return c=u=void 0,_=t,l=e.apply(r,n)}function v(e){var n=e-h,r=e-_;return void 0===h||n>=t||n<0||m&&r>=d}function E(){var e,n,r,a=i();if(v(a))return S(a);p=setTimeout(E,(e=a-h,n=a-_,r=t-e,m?o(r,d-n):r))}function S(e){return(p=void 0,g&&c)?y(e):(c=u=void 0,l)}function b(){var e,n=i(),r=v(n);if(c=arguments,u=this,h=n,r){if(void 0===p)return _=e=h,p=setTimeout(E,t),f?y(e):l;if(m)return clearTimeout(p),p=setTimeout(E,t),y(h)}return void 0===p&&(p=setTimeout(E,t)),l}return t=a(t)||0,r(n)&&(f=!!n.leading,d=(m="maxWait"in n)?s(a(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),b.cancel=function(){void 0!==p&&clearTimeout(p),_=0,c=h=u=p=void 0},b.flush=function(){return void 0===p?l:S(i())},b}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},7642:function(e,t,n){var r=n(51704),i=n(29259),a=n(4795),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||u.test(e)?d(e.slice(2),n?2:8):o.test(e)?s:+e}},3176:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r,i,a=n(2784),s=n(13980),o=n.n(s),c=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,c));return a.createElement("div",u({},t,{ref:this.handleRecaptchaRef}))},t}(a.Component);p.displayName="ReCAPTCHA",p.propTypes={sitekey:o().string.isRequired,onChange:o().func,grecaptcha:o().object,theme:o().oneOf(["dark","light"]),type:o().oneOf(["image","audio"]),tabindex:o().number,onExpired:o().func,onErrored:o().func,size:o().oneOf(["compact","normal","invisible"]),stoken:o().string,hl:o().string,badge:o().oneOf(["bottomright","bottomleft","inline"]),isolated:o().bool},p.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var h=n(73463),_=n.n(h);function f(){return(f=Object.assign||function(e){for(var t=1;t-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=m[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===i.removeOnUnmount&&delete m[e])},s.render=function(){var t=i.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),s=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(s[t]=void 0!==window[t]?window[t]:void 0),s.ref=r,(0,a.createElement)(e,s)},n}(a.Component),s=(0,a.forwardRef)(function(e,t){return(0,a.createElement)(n,f({},e,{forwardedRef:t}))});return s.displayName="AsyncScriptLoader("+t+")",s.propTypes={asyncScriptOnLoad:o().func},_()(s,e)})(p)},18412:function(e,t,n){"use strict";n.d(t,{Nc:function(){return f}});var r,i=n(2784),a=n(52322),s=(0,i.forwardRef)(({as:e="div",...t},n)=>(0,a.jsx)(e,{...t,ref:n})),o="cf-turnstile-script",c="onloadTurnstileCallback",u=e=>!!document.getElementById(e),d=({render:e="explicit",onLoadCallbackName:t=c,scriptOptions:{nonce:n="",defer:r=!0,async:i=!0,id:a="",appendTo:s,onError:d,crossOrigin:l=""}={}})=>{let p=a||o;if(u(p))return;let h=document.createElement("script");h.id=p,h.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${h.src}"]`)||(h.defer=!!r,h.async=!!i,n&&(h.nonce=n),l&&(h.crossOrigin=l),d&&(h.onerror=d,delete window[t]),("body"===s?document.body:document.getElementsByTagName("head")[0]).appendChild(h))},l={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},p="unloaded",h=new Promise((e,t)=>{r={resolve:e,reject:t},"ready"===p&&e(void 0)}),_=(e=c)=>("unloaded"===p&&(p="loading",window[e]=()=>{r.resolve(),p="ready",delete window[e]}),h),f=(0,i.forwardRef)((e,t)=>{let{scriptOptions:n,options:r={},siteKey:h,onWidgetLoad:f,onSuccess:m,onExpire:g,onError:y,onBeforeInteractive:v,onAfterInteractive:E,onUnsupported:S,onTimeout:b,onLoadScript:T,id:x,style:R,as:w="div",injectScript:D=!0,...N}=e,k=r.size,C=(0,i.useCallback)(()=>typeof k>"u"?{}:"execute"===r.execution?l.invisible:"interaction-only"===r.appearance?l.interactionOnly:l[k],[r.execution,k,r.appearance]),[O,U]=(0,i.useState)(C()),B=(0,i.useRef)(null),[I,Y]=(0,i.useState)(!1),G=(0,i.useRef)(),$=(0,i.useRef)(!1),j=x||"cf-turnstile",L=n?.id||o,P=function(e=o){let[t,n]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let t=()=>{u(e)&&n(!0)},r=new MutationObserver(t);return r.observe(document,{childList:!0,subtree:!0}),t(),()=>{r.disconnect()}},[e]),t}(L),A=n?.onLoadCallbackName||c,M=r.appearance||"always",H=(0,i.useMemo)(()=>({sitekey:h,action:r.action,cData:r.cData,callback:e=>{$.current=!0,m?.(e)},"error-callback":y,"expired-callback":g,"before-interactive-callback":v,"after-interactive-callback":E,"unsupported-callback":S,theme:r.theme||"auto",language:r.language||"auto",tabindex:r.tabIndex,"response-field":r.responseField,"response-field-name":r.responseFieldName,size:function(e){if("invisible"!==e&&"interactionOnly"!==e)return e}(k),retry:r.retry||"auto","retry-interval":r.retryInterval||8e3,"refresh-expired":r.refreshExpired||"auto","refresh-timeout":r.refreshTimeout||"auto",execution:r.execution||"render",appearance:r.appearance||"always","feedback-enabled":r.feedbackEnabled||!0,"timeout-callback":b}),[r.action,r.appearance,r.cData,r.execution,r.language,r.refreshExpired,r.responseField,r.responseFieldName,r.retry,r.retryInterval,r.tabIndex,r.theme,r.feedbackEnabled,r.refreshTimeout,h,k]),q=(0,i.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,i.useEffect)(function(){D&&!I&&d({onLoadCallbackName:A,scriptOptions:{...n,id:L}})},[D,I,n,L]),(0,i.useEffect)(function(){"ready"!==p&&_(A).then(()=>Y(!0)).catch(console.error)},[]),(0,i.useEffect)(function(){if(!B.current||!I)return;let e=!1;return(async()=>{if(e||!B.current)return;let t=window.turnstile.render(B.current,H);G.current=t,G.current&&f?.(G.current)})(),()=>{e=!0,G.current&&(window.turnstile.remove(G.current),$.current=!1)}},[j,I,H]),(0,i.useImperativeHandle)(t,()=>{let{turnstile:e}=window;return{getResponse(){if(!e?.getResponse||!G.current||!q()){console.warn("Turnstile has not been loaded");return}return e.getResponse(G.current)},getResponsePromise:async(e=3e4,t=100)=>new Promise((n,r)=>{let i,a=async()=>{if($.current&&window.turnstile&&G.current)try{let e=window.turnstile.getResponse(G.current);return i&&clearTimeout(i),e?n(e):r(Error("No response received"))}catch(e){return i&&clearTimeout(i),console.warn("Failed to get response",e),r(Error("Failed to get response"))}i||(i=setTimeout(()=>{i&&clearTimeout(i),r(Error("Timeout"))},e)),await new Promise(e=>setTimeout(e,t)),await a()};a()}),reset(){if(!e?.reset||!G.current||!q()){console.warn("Turnstile has not been loaded");return}"execute"===r.execution&&U(l.invisible);try{$.current=!1,e.reset(G.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${G}`,e)}},remove(){if(!e?.remove||!G.current||!q()){console.warn("Turnstile has not been loaded");return}U(l.invisible),$.current=!1,e.remove(G.current),G.current=null},render(){if(!e?.render||!B.current||!q()||G.current){console.warn("Turnstile has not been loaded or container not found");return}let t=e.render(B.current,H);return G.current=t,G.current&&f?.(G.current),"execute"!==r.execution&&U(k?l[k]:{}),t},execute(){if("execute"!==r.execution){console.warn('Execution mode is not set to "execute"');return}if(!e?.execute||!B.current||!G.current||!q()){console.warn("Turnstile has not been loaded or container not found");return}e.execute(B.current,H),U(k?l[k]:{})},isExpired:()=>e?.isExpired&&G.current&&q()?e.isExpired(G.current):(console.warn("Turnstile has not been loaded"),!1)}},[G,r.execution,k,H,B,q,I,f]),(0,i.useEffect)(()=>{P&&!I&&window.turnstile&&Y(!0)},[I,P]),(0,i.useEffect)(()=>{U(C())},[r.execution,k,M]),(0,i.useEffect)(()=>{P&&"function"==typeof T&&T()},[P]),(0,a.jsx)(s,{ref:B,as:w,id:j,style:{...O,...R},...N})});f.displayName="Turnstile"}}]); //# sourceMappingURL=5433-c95373f9ac7fe461.js.map