const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/App-C4HrIXzr.js","assets/App-C4sY8S_H.css"])))=>i.map(i=>d[i]);
function B_(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0aa00717-4167-4319-a277-79515055ae1e",e._sentryDebugIdIdentifier="sentry-dbid-0aa00717-4167-4319-a277-79515055ae1e")}catch(n){}})();var qu=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};qu.SENTRY_RELEASE={id:"b8fe770a3ef8b920f3788394428e44a3fbe4ed21"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const Vu="modulepreload",Wu=function(e){return"/gjettekonken/"+e},fs={},zu=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=Wu(c),c in fs)return;fs[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector('link[href="'.concat(c,'"]').concat(f)))return;const l=document.createElement("link");if(l.rel=u?"stylesheet":Vu,u||(l.as="script"),l.crossOrigin="",l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),u)return new Promise((p,m)=>{l.addEventListener("load",p),l.addEventListener("error",()=>m(new Error("Unable to preload CSS for ".concat(c))))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},Yu="https://tipp.api.nrk.no",Oa="sha-b8fe770",Xu=async()=>{try{const e=await fetch("".concat(Yu,"/api/version")),{version:t}=await e.json();t&&t!==Oa&&window.location.reload()}catch(e){console.log(e)}},Ju=()=>{window.fullVersion=Oa,document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&Xu()})};var Fo=function(e,t){return Fo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Fo(e,t)};function j_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ue=function(){return ue=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ue.apply(this,arguments)};function G_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function q_(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{u(r.next(f))}catch(l){s(l)}}function c(f){try{u(r.throw(f))}catch(l){s(l)}}function u(f){f.done?i(f.value):o(f.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function V_(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ls(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W_(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Ue(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function $o(e){return this instanceof $o?(this.v=e,this):new $o(e)}function z_(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(m){return function(g){return Promise.resolve(g).then(m,l)}}function a(m,g){r[m]&&(o[m]=function(h){return new Promise(function(O,U){i.push([m,h,O,U])>1||c(m,h)})},g&&(o[m]=g(o[m])))}function c(m,g){try{u(r[m](g))}catch(h){p(i[0][3],h)}}function u(m){m.value instanceof $o?Promise.resolve(m.value.v).then(f,l):p(i[0][2],m)}function f(m){c("next",m)}function l(m){c("throw",m)}function p(m,g){m(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Y_(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ls=="function"?ls(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var X_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ku(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uo={exports:{}},ds=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(ds){var ps=new Uint8Array(16);Uo.exports=function(){return ds(ps),ps}}else{var ms=new Array(16);Uo.exports=function(){for(var t=0,n;t<16;t++)t&3||(n=Math.random()*4294967296),ms[t]=n>>>((t&3)<<3)&255;return ms}}var Ra=Uo.exports,Na=[];for(var ir=0;ir<256;++ir)Na[ir]=(ir+256).toString(16).substr(1);function Qu(e,t){var n=t||0,r=Na;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}var Da=Qu,Zu=Ra,ef=Da,gs,_o,vo=0,yo=0;function tf(e,t,n){var r=t&&n||0,o=t||[];e=e||{};var i=e.node||gs,s=e.clockseq!==void 0?e.clockseq:_o;if(i==null||s==null){var a=Zu();i==null&&(i=gs=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=_o=(a[6]<<8|a[7])&16383)}var c=e.msecs!==void 0?e.msecs:new Date().getTime(),u=e.nsecs!==void 0?e.nsecs:yo+1,f=c-vo+(u-yo)/1e4;if(f<0&&e.clockseq===void 0&&(s=s+1&16383),(f<0||c>vo)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");vo=c,yo=u,_o=s,c+=122192928e5;var l=((c&268435455)*1e4+u)%4294967296;o[r++]=l>>>24&255,o[r++]=l>>>16&255,o[r++]=l>>>8&255,o[r++]=l&255;var p=c/4294967296*1e4&268435455;o[r++]=p>>>8&255,o[r++]=p&255,o[r++]=p>>>24&15|16,o[r++]=p>>>16&255,o[r++]=s>>>8|128,o[r++]=s&255;for(var m=0;m<6;++m)o[r+m]=i[m];return t||ef(o)}var nf=tf,rf=Ra,of=Da;function sf(e,t,n){var r=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||rf)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||of(o)}var af=sf,cf=nf,La=af,mi=La;mi.v1=cf;mi.v4=La;var Be=mi;/*!
 * Core functionality for Snowplow JavaScript trackers v3.24.5 (http://bit.ly/sp-js)
 * Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
 * Licensed under BSD-3-Clause
 */var uf="3.24.5";function ff(e){if(!e)return e;var t=4-e.length%4;switch(t){case 2:e+="==";break;case 3:e+="=";break}var n=e.replace(/-/g,"+").replace(/_/g,"/");return pf(n)}function lf(e){if(!e)return e;var t=df(e);return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function df(e){var t,n,r,o,i,s,a,c,u=0,f=0,l=[];if(!e)return e;e=unescape(encodeURIComponent(e));do t=e.charCodeAt(u++),n=e.charCodeAt(u++),r=e.charCodeAt(u++),c=t<<16|n<<8|r,o=c>>18&63,i=c>>12&63,s=c>>6&63,a=c&63,l[f++]=ot.charAt(o)+ot.charAt(i)+ot.charAt(s)+ot.charAt(a);while(u<e.length);var p=l.join(""),m=e.length%3;return(m?p.slice(0,m-3):p)+"===".slice(m||3)}function pf(e){var t=function(g){return decodeURIComponent(g.split("").map(function(h){return"%"+("00"+h.charCodeAt(0).toString(16)).slice(-2)}).join(""))},n,r,o,i,s,a,c,u,f=0,l=0,p="",m=[];if(!e)return e;e+="";do i=ot.indexOf(e.charAt(f++)),s=ot.indexOf(e.charAt(f++)),a=ot.indexOf(e.charAt(f++)),c=ot.indexOf(e.charAt(f++)),u=i<<18|s<<12|a<<6|c,n=u>>16&255,r=u>>8&255,o=u&255,a===64?m[l++]=String.fromCharCode(n):c===64?m[l++]=String.fromCharCode(n,r):m[l++]=String.fromCharCode(n,r,o);while(f<e.length);return p=m.join(""),t(p.replace(/\0+$/,""))}function gi(){var e={},t=[],n=[],r=[],o,i=function(u,f){f!=null&&f!==""&&(e[u]=f)},s=function(u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&i(f,u[f])},a=function(u,f,l){if(l&&Ma(l)){var p={keyIfEncoded:u,keyIfNotEncoded:f,json:l};n.push(p),t.push(p)}},c=function(u){r.push(u)};return{add:i,addDict:s,addJson:a,addContextEntity:c,getPayload:function(){return e},getJson:function(){return t},withJsonProcessor:function(u){o=u},build:function(){return o==null||o(this,n,r),e}}}function mf(e){return function(t,n,r){for(var o=function(p,m,g){var h=JSON.stringify(p);e?t.add(m,lf(h)):t.add(g,h)},i=function(){var p=t.getPayload();if(e?p.cx:p.co)return JSON.parse(e?ff(p.cx):p.co)},s=function(p,m){var g=p||i();return g?g.data=g.data.concat(m.data):g=m,g},a=void 0,c=0,u=n;c<u.length;c++){var f=u[c];f.keyIfEncoded==="cx"?a=s(a,f.json):o(f.json,f.keyIfEncoded,f.keyIfNotEncoded)}if(n.length=0,r.length){var l={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:Ue([],r,!0)};a=s(a,l),r.length=0}a&&o(a,"cx","co")}}function Ma(e){if(!Fa(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function Fa(e){return typeof e<"u"&&e!==null&&(e.constructor==={}.constructor||e.constructor===[].constructor)}var sr="Snowplow: ",Fe;(function(e){e[e.none=0]="none",e[e.error=1]="error",e[e.warn=2]="warn",e[e.debug=3]="debug",e[e.info=4]="info"})(Fe||(Fe={}));var De=gf();function gf(e){e===void 0&&(e=Fe.warn);function t(s){Fe[s]?e=s:e=Fe.warn}function n(s,a){for(var c=[],u=2;u<arguments.length;u++)c[u-2]=arguments[u];if(e>=Fe.error&&typeof console<"u"){var f=sr+s+"\n";a?console.error.apply(console,Ue([f+"\n",a],c,!1)):console.error.apply(console,Ue([f],c,!1))}}function r(s,a){for(var c=[],u=2;u<arguments.length;u++)c[u-2]=arguments[u];if(e>=Fe.warn&&typeof console<"u"){var f=sr+s;a?console.warn.apply(console,Ue([f+"\n",a],c,!1)):console.warn.apply(console,Ue([f],c,!1))}}function o(s){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];e>=Fe.debug&&typeof console<"u"&&console.debug.apply(console,Ue([sr+s],a,!1))}function i(s){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];e>=Fe.info&&typeof console<"u"&&console.info.apply(console,Ue([sr+s],a,!1))}return{setLogLevel:t,warn:r,error:n,debug:o,info:i}}function hf(){var e=[],t=[],n=function(r){var o=wf(r),i=If(r),s=[],a=Bo(e,r,i,o);s.push.apply(s,a);var c=Pf(t,r,i,o);return s.push.apply(s,c),s};return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return t},addGlobalContexts:function(r){for(var o=[],i=[],s=0,a=r;s<a.length;s++){var c=a[s];Nr(c)?o.push(c):ct(c)&&i.push(c)}e=e.concat(i),t=t.concat(o)},clearGlobalContexts:function(){t=[],e=[]},removeGlobalContexts:function(r){for(var o=function(c){Nr(c)?t=t.filter(function(u){return!_s(c,u)}):ct(c)&&(e=e.filter(function(u){return!_s(c,u)}))},i=0,s=r;i<s.length;i++){var a=s[i];o(a)}},getApplicableContexts:function(r){return n(r)}}}function _f(e){return{addPluginContexts:function(t){var n=t?Ue([],t,!0):[];return e.forEach(function(r){try{r.contexts&&n.push.apply(n,r.contexts())}catch(o){De.error("Error adding plugin contexts",o)}}),n}}}function vf(e){var t=new RegExp("^iglu:([a-zA-Z0-9-_.]+)/([a-zA-Z0-9-_]+)/jsonschema/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$"),n=t.exec(e);if(n!==null)return n.slice(1,6)}function yf(e){if(e[0]==="*"||e[1]==="*")return!1;if(e.slice(2).length>0){for(var t=!1,n=0,r=e.slice(2);n<r.length;n++){var o=r[n];if(o==="*")t=!0;else if(t)return!1}return!0}else if(e.length==2)return!0;return!1}function $a(e){var t=e.split(".");return t&&t.length>1?yf(t):!1}function Ua(e){var t=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[a-zA-Z0-9-_]+|\\*))/([a-zA-Z0-9-_.]+|\\*)/jsonschema/([1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)$"),n=t.exec(e);if(n!==null&&$a(n[1]))return n.slice(1,6)}function Ho(e){var t=Ua(e);if(t){var n=t[0];return t.length===5&&$a(n)}return!1}function Sf(e){return Array.isArray(e)&&e.every(function(t){return typeof t=="string"})}function hs(e){return Sf(e)?e.every(function(t){return Ho(t)}):typeof e=="string"?Ho(e):!1}function xn(e){var t=e;return Ma(t)&&"schema"in t&&"data"in t?typeof t.schema=="string"&&typeof t.data=="object":!1}function Ef(e){var t=e,n=0;if(e!=null&&typeof e=="object"&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(t,"accept"))if(hs(t.accept))n+=1;else return!1;if(Object.prototype.hasOwnProperty.call(t,"reject"))if(hs(t.reject))n+=1;else return!1;return n>0&&n<=2}return!1}function Rr(e){return typeof e=="function"&&e.length<=1}function ct(e){return Rr(e)||xn(e)}function Ha(e){return Array.isArray(e)&&e.length===2?Array.isArray(e[1])?Rr(e[0])&&e[1].every(ct):Rr(e[0])&&ct(e[1]):!1}function Ba(e){return Array.isArray(e)&&e.length===2&&Ef(e[0])?Array.isArray(e[1])?e[1].every(ct):ct(e[1]):!1}function Nr(e){return Ha(e)||Ba(e)}function bf(e,t){var n=0,r=0,o=e.accept;Array.isArray(o)?e.accept.some(function(s){return ar(s,t)})&&r++:typeof o=="string"&&ar(o,t)&&r++;var i=e.reject;return Array.isArray(i)?e.reject.some(function(s){return ar(s,t)})&&n++:typeof i=="string"&&ar(i,t)&&n++,r>0&&n===0?!0:(r===0&&n>0,!1)}function ar(e,t){if(!Ho(e))return!1;var n=Ua(e),r=vf(t);if(n&&r){if(!Tf(n[0],r[0]))return!1;for(var o=1;o<5;o++)if(!ja(n[o],r[o]))return!1;return!0}return!1}function Tf(e,t){var n=t.split("."),r=e.split(".");if(n&&r){if(n.length!==r.length)return!1;for(var o=0;o<r.length;o++)if(!ja(n[o],r[o]))return!1;return!0}return!1}function ja(e,t){return e&&t&&e==="*"||e===t}function wf(e){for(var t=e.getJson(),n=0,r=t;n<r.length;n++){var o=r[n];if(o.keyIfEncoded==="ue_px"&&typeof o.json.data=="object"){var i=o.json.data.schema;if(typeof i=="string")return i}}return""}function If(e){var t=e.getPayload().e;return typeof t=="string"?t:""}function Af(e,t,n,r){var o=void 0;try{var i={event:t.getPayload(),eventType:n,eventSchema:r};return o=e(i),Array.isArray(o)&&o.every(xn)||xn(o)?o:void 0}catch(s){o=void 0}return o}function Ga(e){return Array.isArray(e)?e:Array.of(e)}function Bo(e,t,n,r){var o,i=Ga(e),s=function(c){var u=xf(c,t,n,r);if(u&&u.length!==0)return u},a=i.map(s);return(o=[]).concat.apply(o,a.filter(function(c){return c!=null&&c.filter(Boolean)}))}function xf(e,t,n,r){if(xn(e))return[e];if(Rr(e)){var o=Af(e,t,n,r);if(xn(o))return[o];if(Array.isArray(o))return o}}function kf(e,t,n,r){if(Ha(e)){var o=e[0],i=!1;try{var s={event:t.getPayload(),eventType:n,eventSchema:r};i=o(s)}catch(a){i=!1}if(i===!0)return Bo(e[1],t,n,r)}else if(Ba(e)&&bf(e[0],r))return Bo(e[1],t,n,r);return[]}function cr(e,t){return typeof e=="function"?e===t:JSON.stringify(e)===JSON.stringify(t)}function _s(e,t){if(Nr(e)){if(!Nr(t))return!1;var n=e[0],r=e[1],o=t[0],i=t[1];return cr(n,o)?Array.isArray(r)?!Array.isArray(i)||r.length!==i.length?!1:r.reduce(function(s,a,c){return s&&cr(a,i[c])},!0):Array.isArray(i)?!1:cr(r,i):!1}else if(ct(e))return ct(t)?cr(e,t):!1;return!1}function Pf(e,t,n,r){var o,i=Ga(e),s=function(c){var u=kf(c,t,n,r);if(u&&u.length!==0)return u},a=i.map(s);return(o=[]).concat.apply(o,a.filter(function(c){return c!=null&&c.filter(Boolean)}))}function Cf(e){return e==null?{type:"dtm",value:new Date().getTime()}:typeof e=="number"?{type:"dtm",value:e}:e.type==="ttm"?{type:"ttm",value:e.value}:{type:"dtm",value:e.value||new Date().getTime()}}function Of(e){e===void 0&&(e={});function t(c,u,f){var l=_f(u),p=hf(),m=c,g={};function h(v){if(v&&v.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:v}}function O(v,w){var S=p.getApplicableContexts(v),R=[];return w&&w.length&&R.push.apply(R,w),S&&S.length&&R.push.apply(R,S),R}function U(v,w,S){v.withJsonProcessor(mf(m)),v.add("eid",Be.v4()),v.addDict(g);var R=Cf(S);v.add(R.type,R.value.toString());var N=O(v,l.addPluginContexts(w)),V=h(N);V!==void 0&&v.addJson("cx","co",V),u.forEach(function(B){try{B.beforeTrack&&B.beforeTrack(v)}catch(M){De.error("Plugin beforeTrack",M)}}),typeof f=="function"&&f(v);var Y=v.build();return u.forEach(function(B){try{B.afterTrack&&B.afterTrack(Y)}catch(M){De.error("Plugin afterTrack",M)}}),Y}function C(v,w){g[v]=w}var G={track:U,addPayloadPair:C,getBase64Encoding:function(){return m},setBase64Encoding:function(v){m=v},addPayloadDict:function(v){for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(g[w]=v[w])},resetPayloadPairs:function(v){g=Fa(v)?v:{}},setTrackerVersion:function(v){C("tv",v)},setTrackerNamespace:function(v){C("tna",v)},setAppId:function(v){C("aid",v)},setPlatform:function(v){C("p",v)},setUserId:function(v){C("uid",v)},setScreenResolution:function(v,w){C("res",v+"x"+w)},setViewport:function(v,w){C("vp",v+"x"+w)},setColorDepth:function(v){C("cd",v)},setTimezone:function(v){C("tz",v)},setLang:function(v){C("lang",v)},setIpAddress:function(v){C("ip",v)},setUseragent:function(v){C("ua",v)},addGlobalContexts:function(v){p.addGlobalContexts(v)},clearGlobalContexts:function(){p.clearGlobalContexts()},removeGlobalContexts:function(v){p.removeGlobalContexts(v)}};return G}var n=e.base64,r=e.corePlugins,o=e.callback,i=r!=null?r:[],s=t(n!=null?n:!0,i,o),a=ue(ue({},s),{addPlugin:function(c){var u,f,l=c.plugin;i.push(l),(u=l.logger)===null||u===void 0||u.call(l,De),(f=l.activateCorePlugin)===null||f===void 0||f.call(l,a)}});return i==null||i.forEach(function(c){var u,f;(u=c.logger)===null||u===void 0||u.call(c,De),(f=c.activateCorePlugin)===null||f===void 0||f.call(c,a)}),a}function Rf(e){var t=e.pageUrl,n=e.pageTitle,r=e.referrer,o=gi();return o.add("e","pv"),o.add("url",t),o.add("page",n),o.add("refr",r),o}function Nf(e){var t=e.pageUrl,n=e.pageTitle,r=e.referrer,o=e.minXOffset,i=e.maxXOffset,s=e.minYOffset,a=e.maxYOffset,c=gi();return c.add("e","pp"),c.add("url",t),c.add("page",n),c.add("refr",r),o&&!isNaN(Number(o))&&c.add("pp_mix",o.toString()),i&&!isNaN(Number(i))&&c.add("pp_max",i.toString()),s&&!isNaN(Number(s))&&c.add("pp_miy",s.toString()),a&&!isNaN(Number(a))&&c.add("pp_may",a.toString()),c}function Df(e){var t=e.category,n=e.action,r=e.label,o=e.property,i=e.value,s=gi();return s.add("e","se"),s.add("se_ca",t),s.add("se_ac",n),s.add("se_la",r),s.add("se_pr",o),s.add("se_va",i==null?void 0:i.toString()),s}var Lf=uf,qa={exports:{}},Va={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,i=0;o<n.length;o++,i+=8)r[i>>>5]|=n[o]<<24-i%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o<n.length*32;o+=8)r.push(n[o>>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o<n.length;o++)r.push((n[o]>>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o<n.length;o+=2)r.push(parseInt(n.substr(o,2),16));return r},bytesToBase64:function(n){for(var r=[],o=0;o<n.length;o+=3)for(var i=n[o]<<16|n[o+1]<<8|n[o+2],s=0;s<4;s++)o*8+s*6<=n.length*8?r.push(e.charAt(i>>>6*(3-s)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,i=0;o<n.length;i=++o%4)i!=0&&r.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*i+8)-1)<<i*2|e.indexOf(n.charAt(o))>>>6-i*2);return r}};Va.exports=t})();var Mf=Va.exports,jo={utf8:{stringToBytes:function(e){return jo.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(jo.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},vs=jo;(function(){var e=Mf,t=vs.utf8,n=vs.bin,r=function(i){i.constructor==String?i=t.stringToBytes(i):typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(i)?i=Array.prototype.slice.call(i,0):Array.isArray(i)||(i=i.toString());var s=e.bytesToWords(i),a=i.length*8,c=[],u=1732584193,f=-271733879,l=-1732584194,p=271733878,m=-1009589776;s[a>>5]|=128<<24-a%32,s[(a+64>>>9<<4)+15]=a;for(var g=0;g<s.length;g+=16){for(var h=u,O=f,U=l,C=p,G=m,v=0;v<80;v++){if(v<16)c[v]=s[g+v];else{var w=c[v-3]^c[v-8]^c[v-14]^c[v-16];c[v]=w<<1|w>>>31}var S=(u<<5|u>>>27)+m+(c[v]>>>0)+(v<20?(f&l|~f&p)+1518500249:v<40?(f^l^p)+1859775393:v<60?(f&l|f&p|l&p)-1894007588:(f^l^p)-899497514);m=p,p=l,l=f<<30|f>>>2,f=u,u=S}u+=h,f+=O,l+=U,p+=C,m+=G}return[u,f,l,p,m]},o=function(i,s){var a=e.wordsToBytes(r(i));return s&&s.asBytes?a:s&&s.asString?n.bytesToString(a):e.bytesToHex(a)};o._blocksize=16,o._digestsize=20,qa.exports=o})();var Ff=qa.exports;const $f=Ku(Ff);/*!
 * Core functionality for Snowplow Browser trackers v3.24.5 (http://bit.ly/sp-js)
 * Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
 * Licensed under BSD-3-Clause
 */function Uf(e){try{var t=window.localStorage,n=t.getItem(e+".expires");if(n===null||+n>Date.now())return t.getItem(e);t.removeItem(e),t.removeItem(e+".expires");return}catch(r){return}}function Er(e,t,n){n===void 0&&(n=63072e3);try{var r=window.localStorage,o=Date.now()+n*1e3;return r.setItem("".concat(e,".expires"),o.toString()),r.setItem(e,t),!0}catch(i){return!1}}function ys(e){try{var t=window.localStorage;return t.removeItem(e),t.removeItem(e+".expires"),!0}catch(n){return!1}}function Ss(e){try{return window.sessionStorage.getItem(e)}catch(t){return}}function Hf(e,t){try{return window.sessionStorage.setItem(e,t),!0}catch(n){return!1}}var Bf={sessionId:!0,sourceId:!0,sourcePlatform:!1,userId:!1,reason:!1};function jf(e,t,n){var r,o,i=new Date().getTime(),s=ue(ue({},Bf),t),a=n.domainUserId,c=n.userId,u=n.sessionId,f=n.sourceId,l=n.sourcePlatform,p=n.event,m=p.currentTarget,g=typeof s.reason=="function"?s.reason(p):(r=m==null?void 0:m.textContent)===null||r===void 0?void 0:r.trim();return e?o=[a,i,s.sessionId&&u,s.userId&&So(c||""),s.sourceId&&So(f||""),s.sourcePlatform&&l,s.reason&&So(g||"")].map(function(h){return h||""}).join(".").replace(/([.]*$)/,""):o=n.domainUserId+"."+i,o}function So(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function Wa(e){return!!(e&&typeof e.valueOf()=="string")}function Es(e){return Number.isInteger&&Number.isInteger(e)||typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function bs(e){if(!Wa(e)){e=e.text||"";var t=document.getElementsByTagName("title");t&&t[0]!=null&&(e=t[0].text)}return e}function Go(e){var t=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),n=t.exec(e);return n?n[1]:e}function Ts(e){var t=e.length;return e.charAt(--t)==="."&&(e=e.slice(0,t)),e.slice(0,2)==="*."&&(e=e.slice(1)),e}function Eo(e){var t=window,n=kn("referrer",t.location.href)||kn("referer",t.location.href);if(n)return n;if(e)return e;try{if(t.top)return t.top.document.referrer;if(t.parent)return t.parent.document.referrer}catch(r){}return document.referrer}function Jt(e,t,n,r){if(e.addEventListener)return e.addEventListener(t,n,r),!0;if(e.attachEvent)return e.attachEvent("on"+t,n);e["on"+t]=n}function kn(e,t){var n=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(t);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null}function Gf(e,t,n){var r=t+"="+n,o=e.split("#"),i=o[0].split("?"),s=i.shift(),a=i.join("?");if(!a)a=r;else{for(var c=!0,u=a.split("&"),f=0;f<u.length;f++)if(u[f].substr(0,t.length+1)===t+"="){c=!1,u[f]=r,a=u.join("&");break}c&&(a=r+"&"+a)}return o[0]=s+"?"+a,o.join("#")}function qf(e,t){for(var n=window.location.hostname,r="_sp_root_domain_test_",o=r+new Date().getTime(),i="_test_value_"+new Date().getTime(),s=n.split("."),a=s.length-2;a>=0;a--){var c=s.slice(a).join(".");if(yt(o,i,0,"/",c,e,t),yt(o)===i){Dr(o,c,e,t);for(var u=Vf(r),f=0;f<u.length;f++)Dr(u[f],c,e,t);return c}}return n}function Dr(e,t,n,r){yt(e,"",-1,"/",t,n,r)}function Vf(e){for(var t=document.cookie.split("; "),n=[],r=0;r<t.length;r++)t[r].substring(0,e.length)===e&&n.push(t[r]);return n}function yt(e,t,n,r,o,i,s){return arguments.length>1?document.cookie=e+"="+encodeURIComponent(t!=null?t:"")+(n?"; Expires="+new Date(+new Date+n*1e3).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(i?"; SameSite="+i:"")+(s?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}function Wf(){try{return!!window.localStorage}catch(e){return!0}}function zf(){var e="modernizr";if(!Wf())return!1;try{var t=window.localStorage;return t.setItem(e,e),t.removeItem(e),!0}catch(n){return!1}}var Yf="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",Xf="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",Jf="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",Kf="iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4";function Qf(e,t,n,r,o,i,s,a,c,u,f,l,p,m,g,h,O,U,C,G){U===void 0&&(U=!0);var v=!1,w,S=[],R=!1;r=typeof r=="string"?r.toLowerCase():r;var N=r===!0||r==="beacon"||r==="true",V=!!(N&&window.navigator&&typeof window.navigator.sendBeacon=="function"&&!Vn(window.navigator.userAgent)),Y=V&&N,B=r==="get",M=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),le=!B&&M&&(r==="post"||N),we=le?o:"/i",de="snowplowOutQueue_".concat(e,"_").concat(le?"post2":"get");if(N&&(p={}),i=n&&zf()&&le&&i||1,n)try{var pe=window.localStorage.getItem(de);S=pe?JSON.parse(pe):[]}catch(E){}Array.isArray(S)||(S=[]),t.outQueues.push(S),M&&i>1&&t.bufferFlushers.push(function(E){v||ve(E)});function Pe(E){var P="?",k={co:!0,cx:!0},T=!0;for(var j in E)E.hasOwnProperty(j)&&!k.hasOwnProperty(j)&&(T?T=!1:P+="&",P+=encodeURIComponent(j)+"="+encodeURIComponent(E[j]));for(var D in k)E.hasOwnProperty(D)&&k.hasOwnProperty(D)&&(P+="&"+D+"="+encodeURIComponent(E[D]));return P}function ie(E){var P=Object.keys(E).map(function(k){return[k,E[k]]}).reduce(function(k,T){var j=T[0],D=T[1];return k[j]=D.toString(),k},{});return{evt:P,bytes:Le(JSON.stringify(P))}}function Le(E){for(var P=0,k=0;k<E.length;k++){var T=E.charCodeAt(k);T<=127?P+=1:T<=2047?P+=2:T>=55296&&T<=57343?(P+=4,k++):T<65535?P+=3:P+=4}return P}var pt=function(E){return typeof E[0]=="object"&&"evt"in E[0]};function Mt(E,P){var k=Xe(P,!0,!1),T=Ut([E.evt]);k.onreadystatechange=function(){k.readyState===4&&(mt(k.status)?C==null||C(T):G==null||G({status:k.status,message:k.statusText,events:T,willRetry:!1}))},k.send($t(T))}function Ye(E){for(var P=0;P<E;P++)S.shift();n&&Er(de,JSON.stringify(S.slice(0,u)))}function Ft(E,P,k){E.onreadystatechange=function(){if(E.readyState===4)if(clearTimeout(T),mt(E.status))Ye(P),C==null||C(k),ve();else{var j=gn(E.status);j||(De.error("Status ".concat(E.status,", will not retry.")),Ye(P)),G==null||G({status:E.status,message:E.statusText,events:k,willRetry:j}),v=!1}};var T=setTimeout(function(){E.abort(),U||Ye(P),G==null||G({status:0,message:"timeout",events:k,willRetry:U}),v=!1},f)}function mn(E,P){w=P+we;var k=function(Je,gt){return De.warn("Event ("+Je+"B) too big, max is "+gt)};if(le){var T=ie(E);if(T.bytes>=s){k(T.bytes,s),Mt(T,w);return}else S.push(T)}else{var j=Pe(E);if(a>0){var D=Ht(j),me=Le(D);if(me>=a){if(k(me,a),M){var T=ie(E),W=P+o;Mt(T,W)}return}}S.push(j)}var ee=!1;n&&(ee=Er(de,JSON.stringify(S.slice(0,u)))),!v&&(!ee||S.length>=i)&&ve()}function ve(E){for(E===void 0&&(E=!1);S.length&&typeof S[0]!="string"&&typeof S[0]!="object";)S.shift();if(!S.length){v=!1;return}if(!Wa(w))throw"No collector configured";if(v=!0,O&&!R){var P=Xe(O,!1,E);R=!0,P.timeout=f,P.onreadystatechange=function(){P.readyState===4&&ve()},P.send();return}if(M){var k=function(Qe){for(var ye=0,Me=0;ye<Qe.length&&(Me+=Qe[ye].bytes,!(Me>=s));)ye+=1;return ye},T=void 0,j=void 0,D=void 0;if(pt(S)?(T=w,j=Xe(T,!0,E),D=k(S)):(T=Ht(S[0]),j=Xe(T,!1,E),D=1),!pt(S))Ft(j,D,[T]),j.send();else{var me=S.slice(0,D);if(me.length>0){var W=!1,ee=me.map(function(Qe){return Qe.evt});if(Y){var Je=new Blob([$t(Ut(ee))],{type:"application/json"});try{W=window.navigator.sendBeacon(T,Je)}catch(Qe){W=!1}}if(W===!0)Ye(D),C==null||C(me),ve();else{var gt=Ut(ee);Ft(j,D,gt),j.send($t(gt))}}}}else if(!l&&!pt(S)){var ht=new Image(1,1),Ke=!0;ht.onload=function(){Ke&&(Ke=!1,S.shift(),n&&Er(de,JSON.stringify(S.slice(0,u))),ve())},ht.onerror=function(){Ke&&(Ke=!1,v=!1)},ht.src=Ht(S[0]),setTimeout(function(){Ke&&v&&(Ke=!1,ve())},f)}else v=!1}function mt(E){return E>=200&&E<300}function gn(E){return mt(E)||!U?!1:g.includes(E)?!0:!h.includes(E)}function Xe(E,P,k){var T=new XMLHttpRequest;P?(T.open("POST",E,!k),T.setRequestHeader("Content-Type","application/json; charset=UTF-8")):T.open("GET",E,!k),T.withCredentials=m,l&&T.setRequestHeader("SP-Anonymous","*");for(var j in p)Object.prototype.hasOwnProperty.call(p,j)&&T.setRequestHeader(j,p[j]);return T}function $t(E){return JSON.stringify({schema:Kf,data:E})}function Ut(E){for(var P=new Date().getTime().toString(),k=0;k<E.length;k++)E[k].stm=P;return E}function Ht(E){return c?w+E.replace("?","?stm="+new Date().getTime()+"&"):w+E}return{enqueueRequest:mn,executeQueue:function(){v||ve()},setUseLocalStorage:function(E){n=E},setAnonymousTracking:function(E){l=E},setCollectorUrl:function(E){w=E+we},setBufferSize:function(E){i=E}};function Vn(E){return P(13,E)||k(10,15,E)&&T(E);function P(D,me){var W=me.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/");return W&&W.length?parseInt(W[0])<=D:!1}function k(D,me,W){var ee=W.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/");return ee&&ee.length?parseInt(ee[0])<=D||parseInt(ee[0])===D&&parseInt(ee[1])<=me:!1}function T(D){return D.match("Version/.* Safari/")&&!j(D)}function j(D){return D.match("Chrom(e|ium)")}}}function Zf(e,t){var n=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)"),r=n.exec(e);return r&&(r==null?void 0:r.length)>1?kn(t,r[1]):null}function ws(e,t,n){var r;return e==="translate.googleusercontent.com"?(n===""&&(n=t),t=(r=Zf(t,"u"))!==null&&r!==void 0?r:"",e=Go(t)):(e==="cc.bingj.com"||e==="webcache.googleusercontent.com")&&(t=document.links[0].href,e=Go(t)),[e,t,n]}var za=0,it=1,el=2,Pn=3,hi=4,Ya=5,st=6,St=7,Et=8,bt=9,Ge=10;function tl(){var e=["1","",0,0,0,void 0,"","","",void 0,0];return e}function nl(e,t,n,r){var o=new Date,i=Math.round(o.getTime()/1e3),s;e?(s=e.split("."),s.unshift("0")):s=["1",t,i,r,i,"",n],(!s[st]||s[st]==="undefined")&&(s[st]=Be.v4()),(!s[St]||s[St]==="undefined")&&(s[St]=""),(!s[Et]||s[Et]==="undefined")&&(s[Et]=""),(!s[bt]||s[bt]==="undefined")&&(s[bt]=""),(!s[Ge]||s[Ge]==="undefined")&&(s[Ge]=0);var a=function(f,l){var p=parseInt(f);return isNaN(p)?l:p},c=function(f){return f?a(f,void 0):void 0},u=[s[za],s[it],a(s[el],i),a(s[Pn],r),a(s[hi],i),c(s[Ya]),s[st],s[St],s[Et],c(s[bt]),a(s[Ge],0)];return u}function rl(e,t){var n;return e[it]?n=e[it]:t?(n="",e[it]=n):(n=Be.v4(),e[it]=n),n}function bn(e,t){t===void 0&&(t={memorizedVisitCount:1});var n=t.memorizedVisitCount;qo(e)?(e[St]=e[st],e[Ya]=e[hi],e[Pn]++):e[Pn]=n;var r=Be.v4();return e[st]=r,e[Ge]=0,e[Et]="",e[bt]=void 0,r}function bo(e){e[hi]=Math.round(new Date().getTime()/1e3)}function ol(e,t){if(e[Ge]===0){var n=t.build();e[Et]=n.eid;var r=n.dtm||n.ttm;e[bt]=r?parseInt(r):void 0}}function il(e){e[Ge]+=1}function sl(e,t){var n=Ue([],e,!0);return t&&(n[it]="",n[St]=""),n.shift(),n.join(".")}function Is(e,t,n){var r=e[bt],o={userId:n?"00000000-0000-0000-0000-000000000000":e[it],sessionId:e[st],eventIndex:e[Ge],sessionIndex:e[Pn],previousSessionId:n?null:e[St]||null,storageMechanism:t=="localStorage"?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[Et]||null,firstEventTimestamp:r?new Date(r).toISOString():null};return o}function To(e){return e[st]}function al(e){return e[it]}function wo(e){return e[Pn]}function qo(e){return e[za]==="0"}function cl(e){return e[Ge]}function ul(){return"ResizeObserver"in window}var As=!1;function fl(){if(!As&&!(!document||!document.body||!document.documentElement)){As=!0;var e=new ResizeObserver(function(t){for(var n=0,r=t;n<r.length;n++){var o=r[n];(o.target===document.body||o.target===document.documentElement)&&(br=Vo())}});e.observe(document.body),e.observe(document.documentElement)}}var br,Cn="x";function Io(){return ul()?(br||(br=Vo()),fl(),br):Vo()}function Vo(){return{viewport:Ao(ll()),documentSize:Ao(dl()),resolution:Ao(pl()),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:window.navigator.language||window.navigator.userLanguage,documentLanguage:document.documentElement.lang,webdriver:window.navigator.webdriver,deviceMemory:window.navigator.deviceMemory,hardwareConcurrency:window.navigator.hardwareConcurrency}}function ll(){var e,t;if("innerWidth"in window)e=window.innerWidth,t=window.innerHeight;else{var n=document.documentElement||document.body;e=n.clientWidth,t=n.clientHeight}return e>=0&&t>=0?e+Cn+t:null}function dl(){var e=document.documentElement,t=document.body,n=t?Math.max(t.offsetHeight,t.scrollHeight):0,r=Math.max(e.clientWidth,e.offsetWidth,e.scrollWidth),o=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,n);return isNaN(r)||isNaN(o)?"":r+Cn+o}function pl(){return screen.width+Cn+screen.height}function Ao(e){return e&&e.split(Cn).map(function(t){return Math.floor(Number(t))}).join(Cn)}function ml(e,t,n,r,o,i){i===void 0&&(i={});var s=[],a=function(f,l,p,m,g,h){var O,U,C,G,v,w,S,R,N,V,Y,B,M,le,we,de,pe,Pe,ie,Le,pt,Mt,Ye,Ft,mn,ve,mt,gn,Xe;h.eventMethod=(O=h.eventMethod)!==null&&O!==void 0?O:"post";var $t=function(d){var _;return(_=d.stateStorageStrategy)!==null&&_!==void 0?_:"cookieAndLocalStorage"},Ut=function(d){var _,b;return typeof d.anonymousTracking=="boolean"?!1:(b=((_=d.anonymousTracking)===null||_===void 0?void 0:_.withSessionTracking)===!0)!==null&&b!==void 0?b:!1},Ht=function(d){var _,b;return typeof d.anonymousTracking=="boolean"?!1:(b=((_=d.anonymousTracking)===null||_===void 0?void 0:_.withServerAnonymisation)===!0)!==null&&b!==void 0?b:!1},Vn=function(d){return!!d.anonymousTracking},E=(C=(U=h==null?void 0:h.contexts)===null||U===void 0?void 0:U.browser)!==null&&C!==void 0?C:!1,P=(v=(G=h==null?void 0:h.contexts)===null||G===void 0?void 0:G.webPage)!==null&&v!==void 0?v:!0,k=function(d){return typeof d=="boolean"?{useExtendedCrossDomainLinker:d}:{useExtendedCrossDomainLinker:!0,collectCrossDomainAttributes:d}};s.push(Lu()),P&&s.push(Nu()),E&&s.push(Du()),s.push.apply(s,(w=h.plugins)!==null&&w!==void 0?w:[]);var T=Of({base64:h.encodeBase64,corePlugins:s,callback:Pu}),j=document.characterSet||document.charset,D=ws(window.location.hostname,window.location.href,Eo()),me=Ts(D[0]),W=D[1],ee=D[2],Je,gt=(S=h.platform)!==null&&S!==void 0?S:"web",ht=ns(m),Ke=(R=h.postPath)!==null&&R!==void 0?R:"/com.snowplowanalytics.snowplow/tp2",Qe=(N=h.appId)!==null&&N!==void 0?N:"",ye,Me=document.title,Bt,to=!1,vu=(V=h.resetActivityTrackingOnPageView)!==null&&V!==void 0?V:!0,Ui,Hi,yu=(Y=h.cookieName)!==null&&Y!==void 0?Y:"_sp_",hn=(B=h.cookieDomain)!==null&&B!==void 0?B:void 0,no="/",Wn=(M=h.cookieSameSite)!==null&&M!==void 0?M:"None",zn=(le=h.cookieSecure)!==null&&le!==void 0?le:!0,Bi=window.navigator.doNotTrack||window.navigator.msDoNotTrack||window.doNotTrack,ji=typeof h.respectDoNotTrack<"u"?h.respectDoNotTrack&&(Bi==="yes"||Bi==="1"):!1,ro,Gi=(we=h.cookieLifetime)!==null&&we!==void 0?we:63072e3,qi=(de=h.sessionCookieTimeout)!==null&&de!==void 0?de:1800,jt=Ut(h),oo=Ht(h),Ie=Vn(h),X=$t(h),Yn,io=new Date().getTime(),Xn,Jn,Kn,Qn,Vi,Zn,Se,Ae=1,Ze,et=Qf(f,g,X=="localStorage"||X=="cookieAndLocalStorage",h.eventMethod,Ke,(pe=h.bufferSize)!==null&&pe!==void 0?pe:1,(Pe=h.maxPostBytes)!==null&&Pe!==void 0?Pe:4e4,(ie=h.maxGetBytes)!==null&&ie!==void 0?ie:0,(Le=h.useStm)!==null&&Le!==void 0?Le:!0,(pt=h.maxLocalStorageQueueSize)!==null&&pt!==void 0?pt:1e3,(Mt=h.connectionTimeout)!==null&&Mt!==void 0?Mt:5e3,oo,(Ye=h.customHeaders)!==null&&Ye!==void 0?Ye:{},(Ft=h.withCredentials)!==null&&Ft!==void 0?Ft:!0,(mn=h.retryStatusCodes)!==null&&mn!==void 0?mn:[],((ve=h.dontRetryStatusCodes)!==null&&ve!==void 0?ve:[]).concat([400,401,403,410,422]),h.idService,h.retryFailedRequests,h.onRequestSuccess,h.onRequestFailure),so=!1,Gt=(mt=h.preservePageViewIdForUrl)!==null&&mt!==void 0?mt:!1,ao=void 0,ce={enabled:!1,installed:!1,configurations:{}},Su=(Xe=(gn=h.contexts)===null||gn===void 0?void 0:gn.session)!==null&&Xe!==void 0?Xe:!1,er,tr=h.onSessionUpdateCallback,co=!1,Wi=k(h.useExtendedCrossDomainLinker||!1),Eu=Wi.useExtendedCrossDomainLinker,bu=Wi.collectCrossDomainAttributes;h.hasOwnProperty("discoverRootDomain")&&h.discoverRootDomain&&(hn=qf(Wn,zn));var nr=Io(),Tu=nr.browserLanguage,wu=nr.resolution,Iu=nr.colorDepth,Au=nr.cookiesEnabled;T.setTrackerVersion(p),T.setTrackerNamespace(l),T.setAppId(Qe),T.setPlatform(gt),T.addPayloadPair("cookie",Au?"1":"0"),T.addPayloadPair("cs",j),T.addPayloadPair("lang",Tu),T.addPayloadPair("res",wu),T.addPayloadPair("cd",Iu),Xi(),ts(),h.crossDomainLinker&&zi(h.crossDomainLinker);function _t(){D=ws(window.location.hostname,window.location.href,Eo()),D[1]!==W&&(ee=Eo(W)),me=Ts(D[0]),W=D[1]}function xu(d){var _="_sp";return function(b){var H=b.currentTarget,J=jf(d,bu,{domainUserId:Zn,userId:Ze||void 0,sessionId:Se,sourceId:Qe,sourcePlatform:gt,event:b});H!=null&&H.href&&(H.href=Gf(H.href,_,J))}}function zi(d){for(var _=xu(Eu),b=0;b<document.links.length;b++){var H=document.links[b];!H.spDecorationEnabled&&d(H)&&(H.addEventListener("click",_,!0),H.addEventListener("mousedown",_,!0),H.spDecorationEnabled=!0)}}function vt(d){var _;return Ui&&(_=new RegExp("#.*"),d=d.replace(_,"")),Hi&&(_=new RegExp("[{}]","g"),d=d.replace(_,"")),d}function Yi(d){var _=new RegExp("^([a-z]+):"),b=_.exec(d);return b?b[1]:null}function ku(d,_){var b=Yi(_),H;return b?_:_.slice(0,1)==="/"?Yi(d)+"://"+Go(d)+_:(d=vt(d),(H=d.indexOf("?"))>=0&&(d=d.slice(0,H)),(H=d.lastIndexOf("/"))!==d.length-1&&(d=d.slice(0,H+1)),d+_)}function Pu(d){ji||er||et.enqueueRequest(d.build(),ht)}function qt(d){return yu+d+"."+Vi}function uo(d){var _=qt(d);if(X=="localStorage")return Uf(_);if(X=="cookie"||X=="cookieAndLocalStorage")return yt(_)}function Xi(){_t(),Vi=$f((hn||me)+(no||"/")).slice(0,4)}function _n(){var d=new Date;Yn=d.getTime()}function Cu(){Ou(),_n()}function Ji(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,d.scrollTop||window.pageYOffset]:[0,0]}function Ki(){var d=Ji(),_=d[0];Xn=_,Jn=_;var b=d[1];Kn=b,Qn=b}function Ou(){var d=Ji(),_=d[0];_<Xn?Xn=_:_>Jn&&(Jn=_);var b=d[1];b<Kn?Kn=b:b>Qn&&(Qn=b)}function rr(d){return Math.round(d)}function fo(){var d=qt("ses"),_="*";return Qi(d,_,qi)}function lo(d){var _=qt("id"),b=sl(d,Ie);return Qi(_,b,Gi)}function Qi(d,_,b){return Ie&&!jt?!1:X=="localStorage"?Er(d,_,b):X=="cookie"||X=="cookieAndLocalStorage"?(yt(d,_,b,no,hn,Wn,zn),document.cookie.indexOf("".concat(d,"="))!==-1):!1}function Zi(d){var _=qt("id"),b=qt("ses");ys(_),ys(b),Dr(_,hn,Wn,zn),Dr(b,hn,Wn,zn),d!=null&&d.preserveSession||(Se=Be.v4(),Ae=1),d!=null&&d.preserveUser||(Zn=Ie?"":Be.v4(),Ze=null)}function es(d){d&&d.stateStorageStrategy&&(h.stateStorageStrategy=d.stateStorageStrategy,X=$t(h)),Ie=Vn(h),jt=Ut(h),oo=Ht(h),et.setUseLocalStorage(X=="localStorage"||X=="cookieAndLocalStorage"),et.setAnonymousTracking(oo)}function ts(){if(!(Ie&&!jt)){var d=X!="none"&&!!uo("ses"),_=vn();Zn=rl(_,Ie),d?Se=To(_):Se=bn(_),Ae=wo(_),X!="none"&&(fo(),bo(_),lo(_))}}function vn(){if(X=="none")return tl();var d=uo("id")||void 0;return nl(d,Zn,Se,Ae)}function ns(d){return d.indexOf("http")===0?d:(document.location.protocol==="https:"?"https":"http")+"://"+d}function rs(){(!so||g.pageViewId==null)&&(g.pageViewId=Be.v4(),g.pageViewUrl=ye||W)}function yn(){return Ru()&&(g.pageViewId=Be.v4(),g.pageViewUrl=ye||W),g.pageViewId}function Ru(){if(g.pageViewId==null)return!0;if(so||!Gt)return!1;if(g.pageViewUrl===void 0)return!0;var d=ye||W;if(Gt===!0||Gt=="full"||!("URL"in window))return g.pageViewUrl!=d;var _=new URL(d),b=new URL(g.pageViewUrl);return Gt=="pathname"?_.pathname!=b.pathname:Gt=="pathnameAndSearch"?_.pathname!=b.pathname||_.search!=b.search:!1}function os(){if(X==="none"||Ie||!P)return null;var d="_sp_tab_id",_=Ss(d);return _||(Hf(d,Be.v4()),_=Ss(d)),_||null}function Nu(){return{contexts:function(){return[{schema:Yf,data:{id:yn()}}]}}}function Du(){return{contexts:function(){return[{schema:Xf,data:ue(ue({},Io()),{tabId:os()})}]}}}function Lu(){var d=function(b){return Ie?null:b},_=function(b){return jt?b:d(b)};return{beforeTrack:function(b){var H=uo("ses"),J=vn(),tt=cl(J)===0;if(ro?er=!!yt(ro):er=!1,ji||er){Zi();return}qo(J)?(!H&&X!="none"?Se=bn(J):Se=To(J),Ae=wo(J)):new Date().getTime()-io>qi*1e3&&(Ae++,Se=bn(J,{memorizedVisitCount:Ae})),bo(J),ol(J,b),il(J);var ge=Io(),Vt=ge.viewport,Sn=ge.documentSize;b.add("vp",Vt),b.add("ds",Sn),b.add("vid",_(Ae)),b.add("sid",_(Se)),b.add("duid",d(al(J))),b.add("uid",d(Ze)),_t(),b.add("refr",vt(Je||ee)),b.add("url",vt(ye||W));var En=Is(J,X,Ie);if(Su&&(!Ie||jt)&&Mu(b,En),X!="none"){lo(J);var mo=fo();(!H||tt)&&mo&&tr&&!co&&(tr(En),co=!1)}io=new Date().getTime()}}}function Mu(d,_){var b={schema:Jf,data:_};d.addContextEntity(b)}function Fu(){var d=vn();if(qo(d)?(X!="none"?Se=bn(d):Se=To(d),Ae=wo(d)):(Ae++,Se=bn(d,{memorizedVisitCount:Ae})),bo(d),X!="none"){var _=Is(d,X,Ie);lo(d);var b=fo();b&&tr&&(co=!0,tr(_))}io=new Date().getTime()}function po(d,_){return(d||[]).concat(_?_():[])}function $u(d){var _=d.title,b=d.context,H=d.timestamp,J=d.contextCallback;_t(),ao&&ao==yn()&&rs(),ao=yn(),Me=document.title,_?(Bt=_,to=!0):to&&(Bt=null);var tt=bs(Bt||Me);T.track(Rf({pageUrl:vt(ye||W),pageTitle:tt,referrer:vt(Je||ee)}),po(b,J),H);var ge=new Date,Vt=!1;if(ce.enabled&&!ce.installed){ce.installed=!0,Vt=!0;var Sn={update:function(){if(typeof window<"u"&&typeof window.addEventListener=="function"){var Wt=!1,or=Object.defineProperty({},"passive",{get:function(){Wt=!0},set:function(){}}),cs=function(){};window.addEventListener("testPassiveEventSupport",cs,or),window.removeEventListener("testPassiveEventSupport",cs,or),Sn.hasSupport=Wt}}};Sn.update();var En="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(Sn,"hasSupport")?Jt(document,En,_n,{passive:!0}):Jt(document,En,_n),Ki();var mo=["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"],ju=["resize","focus","blur"],go=function(Gu,Wt){return Wt===void 0&&(Wt=_n),function(or){return Jt(document,or,Wt)}};mo.forEach(go(document)),ju.forEach(go(window)),go(window,Cu)("scroll")}if(ce.enabled&&(vu||Vt)){Yn=ge.getTime();var as=void 0;for(as in ce.configurations){var ho=ce.configurations[as];ho&&(window.clearInterval(ho.activityInterval),Uu(ho,b,J))}}}function Uu(d,_,b){var H=function(ge,Vt){_t(),ge({context:Vt,pageViewId:yn(),minXOffset:Xn,minYOffset:Kn,maxXOffset:Jn,maxYOffset:Qn}),Ki()},J=function(){var ge=new Date;Yn+d.configMinimumVisitLength>ge.getTime()&&H(d.callback,po(_,b)),d.activityInterval=window.setInterval(tt,d.configHeartBeatTimer)},tt=function(){var ge=new Date;Yn+d.configHeartBeatTimer>ge.getTime()&&H(d.callback,po(_,b))};d.configMinimumVisitLength===0?d.activityInterval=window.setInterval(tt,d.configHeartBeatTimer):d.activityInterval=window.setTimeout(J,d.configMinimumVisitLength)}function is(d){var _=d.minimumVisitLength,b=d.heartbeatDelay,H=d.callback;if(Es(_)&&Es(b))return{configMinimumVisitLength:_*1e3,configHeartBeatTimer:b*1e3,callback:H};De.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function Hu(d){var _=d.context,b=d.minXOffset,H=d.minYOffset,J=d.maxXOffset,tt=d.maxYOffset,ge=document.title;ge!==Me&&(Me=ge,Bt=void 0),T.track(Nf({pageUrl:vt(ye||W),pageTitle:bs(Bt||Me),referrer:vt(Je||ee),minXOffset:rr(b),maxXOffset:rr(J),minYOffset:rr(H),maxYOffset:rr(tt)}),_)}function ss(d){var _=ce.configurations[d];(_==null?void 0:_.configMinimumVisitLength)===0?window.clearTimeout(_==null?void 0:_.activityInterval):window.clearInterval(_==null?void 0:_.activityInterval),ce.configurations[d]=void 0}var Bu={getDomainSessionIndex:function(){return Ae},getPageViewId:yn,getTabId:os,newSession:Fu,getCookieName:function(d){return qt(d)},getUserId:function(){return Ze},getDomainUserId:function(){return vn()[1]},getDomainUserInfo:function(){return vn()},setReferrerUrl:function(d){Je=d},setCustomUrl:function(d){_t(),ye=ku(W,d)},setDocumentTitle:function(d){Me=document.title,Bt=d,to=!1},discardHashTag:function(d){Ui=d},discardBrace:function(d){Hi=d},setCookiePath:function(d){no=d,Xi()},setVisitorCookieTimeout:function(d){Gi=d},crossDomainLinker:function(d){zi(d)},enableActivityTracking:function(d){ce.configurations.pagePing||(ce.enabled=!0,ce.configurations.pagePing=is(ue(ue({},d),{callback:Hu})))},enableActivityTrackingCallback:function(d){ce.configurations.callback||(ce.enabled=!0,ce.configurations.callback=is(d))},disableActivityTracking:function(){ss("pagePing")},disableActivityTrackingCallback:function(){ss("callback")},updatePageActivity:function(){_n()},setOptOutCookie:function(d){ro=d},setUserId:function(d){Ze=d},setUserIdFromLocation:function(d){_t(),Ze=kn(d,W)},setUserIdFromReferrer:function(d){_t(),Ze=kn(d,ee)},setUserIdFromCookie:function(d){Ze=yt(d)},setCollectorUrl:function(d){ht=ns(d),et.setCollectorUrl(ht)},setBufferSize:function(d){et.setBufferSize(d)},flushBuffer:function(d){d===void 0&&(d={}),et.executeQueue(),d.newBufferSize&&et.setBufferSize(d.newBufferSize)},trackPageView:function(d){d===void 0&&(d={}),$u(d)},preservePageViewId:function(){so=!0},preservePageViewIdForUrl:function(d){Gt=d},disableAnonymousTracking:function(d){h.anonymousTracking=!1,es(d),ts(),et.executeQueue()},enableAnonymousTracking:function(d){var _;h.anonymousTracking=(_=d&&(d==null?void 0:d.options))!==null&&_!==void 0?_:!0,es(d),jt||rs()},clearUserData:Zi};return ue(ue({},Bu),{id:f,namespace:l,core:T,sharedState:g})},c=a(e,t,n,r,o,i),u=ue(ue({},c),{addPlugin:function(f){var l,p;u.core.addPlugin(f),(p=(l=f.plugin).activateBrowserPlugin)===null||p===void 0||p.call(l,u)}});return s.forEach(function(f){var l;(l=f.activateBrowserPlugin)===null||l===void 0||l.call(f,u)}),u}var wn={};function _i(e,t){try{hl(e!=null?e:_l()).forEach(t)}catch(n){De.error("Function failed",n)}}function gl(e,t,n,r,o,i){return wn.hasOwnProperty(e)?null:(wn[e]=ml(e,t,n,r,o,i),wn[e])}function hl(e){return vl(e,wn)}function _l(){return Object.keys(wn)}function vl(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];t.hasOwnProperty(i)?n.push(t[i]):De.warn(i+" not configured")}return n}var yl=function(){function e(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]}return e}();function Sl(){var e=new yl,t=document,n=window;function r(){t.visibilityState=="hidden"&&e.bufferFlushers.forEach(function(a){a(!1)})}function o(){e.bufferFlushers.forEach(function(a){a(!1)})}function i(){var a;if(!e.hasLoaded)for(e.hasLoaded=!0,a=0;a<e.registeredOnLoadHandlers.length;a++)e.registeredOnLoadHandlers[a]();return!0}function s(){t.addEventListener?t.addEventListener("DOMContentLoaded",function a(){t.removeEventListener("DOMContentLoaded",a,!1),i()}):t.attachEvent&&t.attachEvent("onreadystatechange",function a(){t.readyState==="complete"&&(t.detachEvent("onreadystatechange",a),i())}),Jt(n,"load",i,!1)}return t.visibilityState&&Jt(t,"visibilitychange",r,!1),Jt(n,"beforeunload",o,!1),document.readyState==="loading"?s():i(),e}/*!
 * Browser tracker for Snowplow v3.24.5 (http://bit.ly/sp-js)
 * Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
 * Licensed under BSD-3-Clause
 */function Xa(e,t){_i(t,function(n){n.flushBuffer(e)})}function El(e,t){_i(t,function(n){n.trackPageView(e)})}function bl(e,t){_i(t,function(n){n.core.track(Df(e),e.context,e.timestamp)})}var xs=typeof window<"u"?Sl():void 0;function Tl(e,t,n){if(n===void 0&&(n={}),xs)return gl(e,e,"js-".concat(Lf),t,xs,n)}const vi=e=>{var t;try{return((t=localStorage.getItem(e))==null?void 0:t.toLowerCase())==="true"}catch(n){return!1}},wl="no.nrk.delta.tipp",yi="delta-tracker-tipp",Il="https://data.nrk.no";let Re;function Al(){Re=Tl(yi,Il,{appId:wl,postPath:"/nrk/wd6",eventMethod:"beacon",encodeBase64:!0,bufferSize:5,respectDoNotTrack:!0,stateStorageStrategy:"cookieAndLocalStorage"})}const J_=e=>{e&&(Re==null||Re.setUserId(e))},K_=e=>{vi("pin-debug-analytics")&&console.log("PAGE_VIEW: "+JSON.stringify(e)),El({title:e,context:Ja()},[yi]),Ka()},Q_=e=>{vi("pin-debug-analytics")&&console.log("EVENT: "+JSON.stringify(e)),bl({...e,category:"PIN",context:Ja()},[yi]),Ka()},Ja=()=>{const e=[{schema:"iglu:no.nrk/service/jsonschema/2-0-0",data:{id:"nrkno",environment:"prod"}}];return Re!=null&&Re.getUserId()&&e.push({schema:"iglu:no.nrk/nrk-user/jsonschema/1-0-0",data:{id:Re==null?void 0:Re.getUserId()}}),e};let ks;const Ka=()=>{clearTimeout(ks);const e=xl(3e3,1e4);ks=window.setTimeout(()=>{Xa()},e)};function xl(e,t){return Math.floor(Math.random()*(t-e+1)+e)}document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Xa()});var Qa=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",kl=Qa&&/android/i.test(navigator.userAgent),Ps="".concat(kl?"data":"aria","-labelledby"),Si=":host(:not([hidden])) { display: block }",qr=typeof HTMLElement>"u"?class{}:HTMLElement,Za=(e,t,n)=>n[0].split(",").forEach(r=>{n[0]=r,Element.prototype["".concat(e,"EventListener")].apply(t,n)}),Pl=(e,...t)=>Za("add",e,t),Cl=(e,...t)=>Za("remove",e,t),Vr=(e,t)=>e.attachShadow({mode:"closed"}).append(Os("slot"),Os("style",{textContent:t})),Ol=e=>{const t="key"in e&&(e.key===" "||e.key==="Enter");return t&&e.preventDefault(),t&&e.target instanceof HTMLElement&&e.target.click(),t},ec=e=>e.getRootNode(),Rl=0,Cs=e=>e?e.id||(e.id=":".concat(e.nodeName.toLowerCase()).concat((++Rl).toString(32))):"",Os=(e,t)=>Object.assign(document.createElement(e),t),Wr={define:(e,t)=>!Qa||window.customElements.get(e)||window.customElements.define(e,t)},Ln="aria-controls",Nl=class extends qr{constructor(){super(),Vr(this,Si)}get tabList(){return xo("u-tablist",this)[0]||null}get selectedIndex(){return[...this.tabs].findIndex(e=>e.ariaSelected==="true")}set selectedIndex(e){this.tabs[e]&&(this.tabs[e].ariaSelected="true")}get tabs(){return xo("u-tab",this)}get panels(){return xo("u-tabpanel",this)}},Dl=class extends qr{constructor(){super(),Vr(this,Si)}connectedCallback(){this.role="tablist",Pl(this,"click,keydown",this)}disconnectedCallback(){Cl(this,"click,keydown",this)}handleEvent(e){const{key:t}=e,n=[...this.getElementsByTagName("u-tab")];let r=n.findIndex(o=>o.contains(e.target));if(!(e.defaultPrevented||r===-1)&&(e.type==="click"&&(n[r].selected=!0),e.type==="keydown"&&!Ol(e))){if(t==="ArrowDown"||t==="ArrowRight")r=++r%n.length;else if(t==="ArrowUp"||t==="ArrowLeft")r=(r||n.length)-1;else if(t==="End")r=n.length-1;else if(t==="Home")r=0;else return;e.preventDefault(),n[r].focus()}}get tabsElement(){return this.closest("u-tabs")}},Tr=!1,tc=class extends qr{constructor(){super(),Vr(this,":host(:not([hidden])) { cursor: pointer; display: inline-block }")}connectedCallback(){this.selected=!!this.selected}attributeChangedCallback(e,t,n){if(!Tr&&t!==n&&(Tr=!0)){const{tabs:r=[],panels:o=[],selectedIndex:i}=this.tabsElement||{},s=this.selected?this:r[i||0]||this;let a;o.forEach(c=>{c.removeAttribute(Ps),c.hidden=!0}),r.forEach((c,u)=>{const f=Rs(c)||o[u]||null;s===c&&f&&(a=f),c.role="tab",c.tabIndex=s===c?0:-1,c.ariaSelected="".concat(s===c),c.setAttribute(Ln,Cs(f)),f==null||f.toggleAttribute("hidden",a!==f),f==null||f.setAttribute(Ps,Cs(a===f?s:c))}),Tr=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){return this.closest("u-tablist")}get selected(){return this.ariaSelected==="true"}set selected(e){this.ariaSelected="".concat(e)}get index(){var e;return Array.from(((e=this.tabsElement)==null?void 0:e.tabs)||[]).indexOf(this)}get panel(){return Rs(this)}};tc.observedAttributes=["id","aria-selected",Ln];var nc=class extends qr{constructor(){super(),Vr(this,Si)}connectedCallback(){this.role="tabpanel",this.hidden=Array.from(this.tabs).every(e=>!e.selected)}attributeChangedCallback(e,t,n){Tr||t===n||Ns(this,t).forEach(r=>r.setAttribute(Ln,n))}get tabsElement(){return this.closest("u-tabs")}get tabs(){return Ns(this,this.id)}};nc.observedAttributes=["id"];var xo=(e,t)=>{const n="".concat(e,":not(:scope ").concat(t.nodeName,":not(:scope) ").concat(e,")");return t.querySelectorAll(n)},Rs=e=>{const t='u-tabpanel[id="'.concat(e.getAttribute(Ln),'"]');return ec(e).querySelector(t)||document.querySelector(t)},Ns=(e,t)=>{const n="u-tab[".concat(Ln,'="').concat(t,'"]');return ec(e).querySelectorAll(n)};Wr.define("u-tabs",Nl);Wr.define("u-tablist",Dl);Wr.define("u-tab",tc);Wr.define("u-tabpanel",nc);const Ll="wakeLock"in navigator;let wr=null,Ir=0;const Ml=async()=>{try{wr=await navigator.wakeLock.request("screen"),wr.addEventListener("release",()=>{Ir=0,wr=null})}catch(e){console.error("Failed to acquire wakelock",e)}},Yt=()=>{Ir=Ir+=1,Ir>=2&&(Ml(),document.removeEventListener("touchend",Yt),document.removeEventListener("click",Yt))};Ll&&(document.addEventListener("touchend",Yt),document.addEventListener("click",Yt),document.addEventListener("visibilitychange",async()=>{wr==null&&document.visibilityState==="visible"&&(document.addEventListener("touchend",Yt),document.addEventListener("click",Yt))}));/*! (c) Andrea Giammarchi - ISC */var Wo={};try{Wo.EventTarget=new EventTarget().constructor}catch(e){(function(t,n){var r=t.create,o=t.defineProperty,i=s.prototype;a(i,"addEventListener",function(u,f,l){for(var p=n.get(this),m=p[u]||(p[u]=[]),g=0,h=m.length;g<h;g++)if(m[g].listener===f)return;m.push({target:this,listener:f,options:l})}),a(i,"dispatchEvent",function(u){var f=n.get(this),l=f[u.type];return l&&(a(u,"target",this),a(u,"currentTarget",this),l.slice(0).some(c,u),delete u.currentTarget,delete u.target),!0}),a(i,"removeEventListener",function(u,f){for(var l=n.get(this),p=l[u]||(l[u]=[]),m=0,g=p.length;m<g;m++)if(p[m].listener===f){p.splice(m,1);return}}),Wo.EventTarget=s;function s(){n.set(this,r(null))}function a(u,f,l){o(u,f,{configurable:!0,writable:!0,value:l})}function c(u){var f=u.options;return f&&f.once&&u.target.removeEventListener(this.type,u.listener),typeof u.listener=="function"?u.listener.call(u.target,this):u.listener.handleEvent(this),this._stopImmediatePropagationFlag}})(Object,new WeakMap)}const Fl=Wo.EventTarget;window.EventTarget=Fl;const rc=Object.prototype.toString;function Ei(e){switch(rc.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ve(e,Error)}}function sn(e,t){return rc.call(e)==="[object ".concat(t,"]")}function oc(e){return sn(e,"ErrorEvent")}function Ds(e){return sn(e,"DOMError")}function $l(e){return sn(e,"DOMException")}function qe(e){return sn(e,"String")}function bi(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ti(e){return e===null||bi(e)||typeof e!="object"&&typeof e!="function"}function Zt(e){return sn(e,"Object")}function zr(e){return typeof Event<"u"&&Ve(e,Event)}function Ul(e){return typeof Element<"u"&&Ve(e,Element)}function Hl(e){return sn(e,"RegExp")}function Yr(e){return!!(e&&e.then&&typeof e.then=="function")}function Bl(e){return Zt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ve(e,t){try{return e instanceof t}catch(n){return!1}}function ic(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Kt(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:"".concat(e.slice(0,t),"...")}function Lr(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{ic(o)?n.push("[VueViewModel]"):n.push(String(o))}catch(i){n.push("[value cannot be serialized]")}}return n.join(t)}function jl(e,t,n=!1){return qe(e)?Hl(t)?t.test(e):qe(t)?n?e===t:e.includes(t):!1:!1}function Tt(e,t=[],n=!1){return t.some(r=>jl(e,r,n))}function Gl(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!Ve(s.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=ql(zo(e,t,o,s.originalException,r,i.exception.values,a,0),n))}function zo(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(Ve(r[o],Error)){Ls(s,a);const u=e(t,r[o]),f=c.length;Ms(u,o,f,a),c=zo(e,t,n,r[o],o,[u,...c],u,f)}return Array.isArray(r.errors)&&r.errors.forEach((u,f)=>{if(Ve(u,Error)){Ls(s,a);const l=e(t,u),p=c.length;Ms(l,"errors[".concat(f,"]"),p,a),c=zo(e,t,n,u,o,[l,...c],l,p)}}),c}function Ls(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Ms(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function ql(e,t){return e.map(n=>(n.value&&(n.value=Kt(n.value,t)),n))}function sc(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const wt="8.35.0",L=globalThis;function Xr(e,t,n){const r=L,o=r.__SENTRY__=r.__SENTRY__||{},i=o[wt]=o[wt]||{};return i[e]||(i[e]=t())}const Qt=L,Vl=80;function kt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let u;const f=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||Vl;for(;n&&i++<r&&(u=Wl(n,f),!(u==="html"||i>1&&s+o.length*c+u.length>=l));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch(n){return"<unknown>"}}function Wl(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Qt.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o&&o.length)o.forEach(s=>{r.push("[".concat(s[0],'="').concat(s[1],'"]'))});else{n.id&&r.push("#".concat(n.id));const s=n.className;if(s&&qe(s)){const a=s.split(/\s+/);for(const c of a)r.push(".".concat(c))}}const i=["aria-label","type","name","title","alt"];for(const s of i){const a=n.getAttribute(s);a&&r.push("[".concat(s,'="').concat(a,'"]'))}return r.join("")}function zl(){try{return Qt.document.location.href}catch(e){return""}}function ac(e){return Qt.document&&Qt.document.querySelector?Qt.document.querySelector(e):null}function cc(e){if(!Qt.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const an=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yl="Sentry Logger ",Mr=["debug","info","warn","error","log","assert","trace"],Fr={};function Mn(e){if(!("console"in L))return e();const t=L.console,n={},r=Object.keys(Fr);r.forEach(o=>{const i=Fr[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function Xl(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return an?Mr.forEach(n=>{t[n]=(...r)=>{e&&Mn(()=>{L.console[n]("".concat(Yl,"[").concat(n,"]:"),...r)})}}):Mr.forEach(n=>{t[n]=()=>{}}),t}const y=Xr("logger",Xl),Jl=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Kl(e){return e==="http"||e==="https"}function Fn(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return"".concat(a,"://").concat(c).concat(t&&o?":".concat(o):"")+"@".concat(n).concat(i?":".concat(i):"","/").concat(r&&"".concat(r,"/")).concat(s)}function Ql(e){const t=Jl.exec(e);if(!t){Mn(()=>{console.error("Invalid Sentry Dsn: ".concat(e))});return}const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return uc({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function uc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Zl(e){if(!an)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(y.error("Invalid Sentry Dsn: ".concat(s," missing")),!0))?!1:n.match(/^\d+$/)?Kl(r)?t&&isNaN(parseInt(t,10))?(y.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):!0:(y.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):(y.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1)}function ed(e){const t=typeof e=="string"?Ql(e):uc(e);if(!(!t||!Zl(t)))return t}class Ne extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function he(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&fc(o,r),e[t]=o}function Te(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){an&&y.log('Failed to add non-enumerable property "'.concat(t,'" to object'),e)}}function fc(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Te(e,"__sentry_original__",t)}catch(n){}}function wi(e){return e.__sentry_original__}function td(e){return Object.keys(e).map(t=>"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))).join("&")}function lc(e){if(Ei(e))return{message:e.message,name:e.name,stack:e.stack,...$s(e)};if(zr(e)){const t={type:e.type,target:Fs(e.target),currentTarget:Fs(e.currentTarget),...$s(e)};return typeof CustomEvent<"u"&&Ve(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Fs(e){try{return Ul(e)?kt(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function $s(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function nd(e,t=40){const n=Object.keys(lc(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Kt(r,t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Kt(i,t)}return""}function re(e){return Yo(e,new Map)}function Yo(e,t){if(rd(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(r[o]=Yo(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(Yo(o,t))}),r}return e}function rd(e){if(!Zt(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch(t){return!0}}const dc=50,Pt="?",Us=/\(error: (.*)\)/,Hs=/captureMessage|captureException/;function pc(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const i=[],s=n.split("\n");for(let a=r;a<s.length;a++){const c=s[a];if(c.length>1024)continue;const u=Us.test(c)?c.replace(Us,"$1"):c;if(!u.match(/\S*Error: /)){for(const f of t){const l=f(u);if(l){i.push(l);break}}if(i.length>=dc+o)break}}return id(i.slice(o))}}function od(e){return Array.isArray(e)?pc(...e):e}function id(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(ur(t).function||"")&&t.pop(),t.reverse(),Hs.test(ur(t).function||"")&&(t.pop(),Hs.test(ur(t).function||"")&&t.pop()),t.slice(0,dc).map(n=>({...n,filename:n.filename||ur(t).filename,function:n.function||Pt}))}function ur(e){return e[e.length-1]||{}}const ko="<anonymous>";function We(e){try{return!e||typeof e!="function"?ko:e.name||ko}catch(t){return ko}}function Bs(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch(r){return}}}const Ar={},js={};function ft(e,t){Ar[e]=Ar[e]||[],Ar[e].push(t)}function lt(e,t){js[e]||(t(),js[e]=!0)}function be(e,t){const n=e&&Ar[e];if(n)for(const r of n)try{r(t)}catch(o){an&&y.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(We(r),"\nError:"),o)}}function mc(e){const t="console";ft(t,e),lt(t,sd)}function sd(){"console"in L&&Mr.forEach(function(e){e in L.console&&he(L.console,e,function(t){return Fr[e]=t,function(...n){be("console",{args:n,level:e});const o=Fr[e];o&&o.apply(L.console,n)}})})}const Xo=L;function gc(){if(!("fetch"in Xo))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Jo(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ad(){if(typeof EdgeRuntime=="string")return!0;if(!gc())return!1;if(Jo(Xo.fetch))return!0;let e=!1;const t=Xo.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Jo(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){an&&y.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const hc=1e3;function $n(){return Date.now()/hc}function cd(){const{performance:e}=L;if(!e||!e.now)return $n;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/hc}const se=cd(),fe=(()=>{const{performance:e}=L;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,u=c<t;return i||u?o<=c?e.timeOrigin:s:r})();function _c(e,t){const n="fetch";ft(n,e),lt(n,()=>vc(void 0,t))}function ud(e){const t="fetch-body-resolved";ft(t,e),lt(t,()=>vc(ld))}function vc(e,t=!1){t&&!ad()||he(L,"fetch",function(n){return function(...r){const{method:o,url:i}=dd(r),s={args:r,fetchData:{method:o,url:i},startTimestamp:se()*1e3};e||be("fetch",{...s});const a=new Error().stack;return n.apply(L,r).then(async c=>(e?e(c):be("fetch",{...s,endTimestamp:se()*1e3,response:c}),c),c=>{throw be("fetch",{...s,endTimestamp:se()*1e3,error:c}),Ei(c)&&c.stack===void 0&&(c.stack=a,Te(c,"framesToPop",1)),c})}})}async function fd(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(s),a&&(t(),i=!1)}catch(a){i=!1}finally{clearTimeout(s)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function ld(e){let t;try{t=e.clone()}catch(n){return}fd(t,()=>{be("fetch-body-resolved",{endTimestamp:se()*1e3,response:e})})}function Ko(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Gs(e){return typeof e=="string"?e:e?Ko(e,"url")?e.url:e.toString?e.toString():"":""}function dd(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Gs(n),method:Ko(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Gs(t),method:Ko(t,"method")?String(t.method).toUpperCase():"GET"}}let fr=null;function yc(e){const t="error";ft(t,e),lt(t,pd)}function pd(){fr=L.onerror,L.onerror=function(e,t,n,r,o){return be("error",{column:r,error:o,line:n,msg:e,url:t}),fr&&!fr.__SENTRY_LOADER__?fr.apply(this,arguments):!1},L.onerror.__SENTRY_INSTRUMENTED__=!0}let lr=null;function Sc(e){const t="unhandledrejection";ft(t,e),lt(t,md)}function md(){lr=L.onunhandledrejection,L.onunhandledrejection=function(e){return be("unhandledrejection",e),lr&&!lr.__SENTRY_LOADER__?lr.apply(this,arguments):!0},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function gd(){return"npm"}function hd(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function z(){const e=L,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch(r){}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Ec(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function nt(e){const{message:t,event_id:n}=e;if(t)return t;const r=Ec(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function Qo(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function en(e,t){const n=Ec(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function qs(e){if(e&&e.__sentry_captured__)return!0;try{Te(e,"__sentry_captured__",!0)}catch(t){}return!1}function bc(e){return Array.isArray(e)?e:[e]}function rt(e,t=100,n=1/0){try{return Zo("",e,t,n)}catch(r){return{ERROR:"**non-serializable** (".concat(r,")")}}}function Tc(e,t=3,n=100*1024){const r=rt(e,t);return Sd(r)>n?Tc(e,t-1,n):r}function Zo(e,t,n=1/0,r=1/0,o=hd()){const[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=_d(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const m=u.toJSON();return Zo("",m,c-1,r,o)}catch(m){}const f=Array.isArray(t)?[]:{};let l=0;const p=lc(t);for(const m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(l>=r){f[m]="[MaxProperties ~]";break}const g=p[m];f[m]=Zo(m,g,c-1,r,o),l++}return s(t),f}function _d(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(ic(t))return"[VueViewModel]";if(Bl(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return"[".concat(t,"]");if(typeof t=="function")return"[Function: ".concat(We(t),"]");if(typeof t=="symbol")return"[".concat(String(t),"]");if(typeof t=="bigint")return"[BigInt: ".concat(String(t),"]");const n=vd(t);return/^HTML(\w*)Element$/.test(n)?"[HTMLElement: ".concat(n,"]"):"[object ".concat(n,"]")}catch(n){return"**non-serializable** (".concat(n,")")}}function vd(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function yd(e){return~-encodeURI(e).split(/%..|./).length}function Sd(e){return yd(JSON.stringify(e))}var $e;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})($e||($e={}));function Ct(e){return new Ee(t=>{t(e)})}function $r(e){return new Ee((t,n)=>{n(e)})}class Ee{constructor(t){Ee.prototype.__init.call(this),Ee.prototype.__init2.call(this),Ee.prototype.__init3.call(this),Ee.prototype.__init4.call(this),this._state=$e.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Ee((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Ee((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult($e.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult($e.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===$e.PENDING){if(Yr(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===$e.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===$e.RESOLVED&&n[1](this._value),this._state===$e.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Ed(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!n())return $r(new Ne("Not adding Promise because buffer limit was reached."));const a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new Ee((a,c)=>{let u=t.length;if(!u)return a(!0);const f=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(l=>{Ct(l).then(()=>{--u||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:o,drain:i}}function It(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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}}const bd=["fatal","error","warning","log","info","debug"];function wc(e){return e==="warn"?"warning":bd.includes(e)?e:"log"}const zt="baggage",Ii="sentry-",Td=/^sentry-/,wd=8192;function Ic(e){const t=Id(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(Td)){const s=o.slice(Ii.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function Ac(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n["".concat(Ii).concat(r)]=o),n),{});return Ad(t)}function Id(e){if(!(!e||!qe(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Vs(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):Vs(e)}function Vs(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Ad(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const i="".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r)),s=o===0?i:"".concat(t,",").concat(i);return s.length>wd?(an&&y.warn("Not adding key: ".concat(n," with val: ").concat(r," to baggage header due to exceeding baggage size limits.")),t):s},"")}const xd=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function kd(e){if(!e)return;const t=e.match(xd);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Pd(e,t){const n=kd(e),r=Ic(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceId:o||z(),parentSpanId:i||z().substring(16),spanId:z().substring(16),sampled:s,dsc:r||{}}:{traceId:o||z(),spanId:z().substring(16)}}function Ai(e=z(),t=z().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),"".concat(e,"-").concat(t).concat(r)}function cn(e,t=[]){return[e,t]}function Cd(e,t){const[n,r]=e;return[n,[...r,t]]}function Ws(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function ei(e){return L.__SENTRY__&&L.__SENTRY__.encodePolyfill?L.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Od(e){const[t,n]=e;let r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[ei(r),i]:r.push(typeof i=="string"?ei(i):i)}for(const i of n){const[s,a]=i;if(o("\n".concat(JSON.stringify(s),"\n")),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch(u){c=JSON.stringify(rt(a))}o(c)}}return typeof r=="string"?r:Rd(r)}function Rd(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function Nd(e){return[{type:"span"},e]}function Dd(e){const t=typeof e.data=="string"?ei(e.data):e.data;return[re({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Ld={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function zs(e){return Ld[e]}function xc(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Md(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Fn(r)},...o&&{trace:re({...o})}}}function Fd(e,t,n){const r=[{type:"client_report"},{timestamp:$n(),discarded_events:e}];return cn(t?{dsn:t}:{},[r])}const $d=60*1e3;function Ud(e,t=Date.now()){const n=parseInt("".concat(e),10);if(!isNaN(n))return n*1e3;const r=Date.parse("".concat(e));return isNaN(r)?$d:r-t}function Hd(e,t){return e[t]||e.all||0}function Bd(e,t,n=Date.now()){return Hd(e,t)>n}function jd(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,u,,,f]=a.split(":",5),l=parseInt(c,10),p=(isNaN(l)?60:l)*1e3;if(!u)o.all=r+p;else for(const m of u.split(";"))m==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(o[m]=r+p):o[m]=r+p}else s?o.all=r+Ud(s,r):t===429&&(o.all=r+60*1e3);return o}function je(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}function Ur(){return{traceId:z(),spanId:z().substring(16)}}const dr=L;function Gd(){const e=dr.chrome,t=e&&e.app&&e.app.runtime,n="history"in dr&&!!dr.history.pushState&&!!dr.history.replaceState;return!t&&n}const x=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function un(){return xi(L),L}function xi(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||wt,t[wt]=t[wt]||{}}function qd(e){const t=se(),n={sid:z(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Wd(n)};return e&&tn(n,e),n}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||se(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:z()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Vd(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),tn(e,n)}function Wd(e){return re({sid:"".concat(e.sid),init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const ti="_sentrySpan";function On(e,t){t?Te(e,ti,t):delete e[ti]}function Hr(e){return e[ti]}const zd=100;class ki{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ur()}clone(){const t=new ki;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,On(t,Hr(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&tn(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,o]=n instanceof ut?[n.getScopeData(),n.getRequestSession()]:Zt(n)?[t,t.requestSession]:[],{tags:i,extra:s,user:a,contexts:c,level:u,fingerprint:f=[],propagationContext:l}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),f.length&&(this._fingerprint=f),l&&(this._propagationContext=l),o&&(this._requestSession=o),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._session=void 0,On(this,void 0),this._attachments=[],this._propagationContext=Ur(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:zd;if(r<=0)return this;const o={timestamp:$n(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Hr(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:z();if(!this._client)return y.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:z();if(!this._client)return y.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:z();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(y.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const ut=ki;function Yd(){return Xr("defaultCurrentScope",()=>new ut)}function Xd(){return Xr("defaultIsolationScope",()=>new ut)}class Jd{constructor(t,n){let r;t?r=t:r=new ut;let o;n?o=n:o=new ut,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return Yr(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function nn(){const e=un(),t=xi(e);return t.stack=t.stack||new Jd(Yd(),Xd())}function Kd(e){return nn().withScope(e)}function Qd(e,t){const n=nn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ys(e){return nn().withScope(()=>e(nn().getIsolationScope()))}function Zd(){return{withIsolationScope:Ys,withScope:Kd,withSetScope:Qd,withSetIsolationScope:(e,t)=>Ys(t),getCurrentScope:()=>nn().getScope(),getIsolationScope:()=>nn().getIsolationScope()}}function Un(e){const t=xi(e);return t.acs?t.acs:Zd()}function q(){const e=un();return Un(e).getCurrentScope()}function ke(){const e=un();return Un(e).getIsolationScope()}function ep(){return Xr("globalScope",()=>new ut)}function Jr(...e){const t=un(),n=Un(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function $(){return q().getClient()}const tp="_sentryMetrics";function ni(e){const t=e[tp];if(!t)return;const n={};for(const[,[r,o]]of t)(n[r]||(n[r]=[])).push(re(o));return n}const at="sentry.source",kc="sentry.sample_rate",Ot="sentry.op",Z="sentry.origin",ri="sentry.idle_span_finish_reason",Kr="sentry.measurement_unit",Qr="sentry.measurement_value",np="sentry.profile_id",Pi="sentry.exclusive_time",rp=0,Pc=1,Q=2;function op(e){if(e<400&&e>=100)return{code:Pc};if(e>=400&&e<500)switch(e){case 401:return{code:Q,message:"unauthenticated"};case 403:return{code:Q,message:"permission_denied"};case 404:return{code:Q,message:"not_found"};case 409:return{code:Q,message:"already_exists"};case 413:return{code:Q,message:"failed_precondition"};case 429:return{code:Q,message:"resource_exhausted"};case 499:return{code:Q,message:"cancelled"};default:return{code:Q,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Q,message:"unimplemented"};case 503:return{code:Q,message:"unavailable"};case 504:return{code:Q,message:"deadline_exceeded"};default:return{code:Q,message:"internal_error"}}return{code:Q,message:"unknown_error"}}function Cc(e,t){e.setAttribute("http.response.status_code",t);const n=op(t);n.message!=="unknown_error"&&e.setStatus(n)}const Oc=0,Rc=1;function ip(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a}=F(e);return re({parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a})}function sp(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=F(e);return re({parent_span_id:r,span_id:t,trace_id:n})}function Nc(e){const{traceId:t,spanId:n}=e.spanContext(),r=Nt(e);return Ai(t,n,r)}function At(e){return typeof e=="number"?Xs(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Xs(e.getTime()):se()}function Xs(e){return e>9999999999?e/1e3:e}function F(e){if(cp(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(ap(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return re({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:At(o),timestamp:At(s)||void 0,status:Dc(c),op:r[Ot],origin:r[Z],_metrics_summary:ni(e)})}return{span_id:t,trace_id:n}}catch(t){return{}}}function ap(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function cp(e){return typeof e.getSpanJSON=="function"}function Nt(e){const{traceFlags:t}=e.spanContext();return t===Rc}function Dc(e){if(!(!e||e.code===rp))return e.code===Pc?"ok":e.message||"unknown_error"}const xt="_sentryChildSpans",oi="_sentryRootSpan";function Lc(e,t){const n=e[oi]||e;Te(t,oi,n),e[xt]?e[xt].add(t):Te(e,xt,new Set([t]))}function up(e,t){e[xt]&&e[xt].delete(t)}function xr(e){const t=new Set;function n(r){if(!t.has(r)&&Nt(r)){t.add(r);const o=r[xt]?Array.from(r[xt]):[];for(const i of o)n(i)}}return n(e),Array.from(t)}function oe(e){return e[oi]||e}function ae(){const e=un(),t=Un(e);return t.getActiveSpan?t.getActiveSpan():Hr(q())}let Js=!1;function fp(){Js||(Js=!0,yc(ii),Sc(ii))}function ii(){const e=ae(),t=e&&oe(e);if(t){const n="internal_error";x&&y.log("[Tracing] Root span: ".concat(n," -> Global error occured")),t.setStatus({code:Q,message:n})}}ii.tag="sentry_tracingErrorCallback";const Mc="_sentryScope",Fc="_sentryIsolationScope";function lp(e,t,n){e&&(Te(e,Fc,n),Te(e,Mc,t))}function Ks(e){return{scope:e[Mc],isolationScope:e[Fc]}}function ze(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=$(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class fn{constructor(t={}){this._traceId=t.traceId||z(),this._spanId=t.spanId||z().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Oc}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}const Ci="production",$c="_frozenDsc";function Qs(e,t){Te(e,$c,t)}function Zr(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=re({environment:n.environment||Ci,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Dt(e){const t=$();if(!t)return{};const n=Zr(F(e).trace_id||"",t),r=oe(e),o=r[$c];if(o)return o;const i=r.spanContext().traceState,s=i&&i.get("sentry.dsc"),a=s&&Ic(s);if(a)return a;const c=F(r),u=c.data||{},f=u[kc];f!=null&&(n.sample_rate="".concat(f));const l=u[at],p=c.description;return l!=="url"&&p&&(n.transaction=p),ze()&&(n.sampled=String(Nt(r))),t.emit("createDsc",n,r),n}function dp(e){if(!x)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=F(e),{spanId:o}=e.spanContext(),i=Nt(e),s=oe(e),a=s===e,c="[Tracing] Starting ".concat(i?"sampled":"unsampled"," ").concat(a?"root ":"","span"),u=["op: ".concat(n),"name: ".concat(t),"ID: ".concat(o)];if(r&&u.push("parent ID: ".concat(r)),!a){const{op:f,description:l}=F(s);u.push("root ID: ".concat(s.spanContext().spanId)),f&&u.push("root op: ".concat(f)),l&&u.push("root description: ".concat(l))}y.log("".concat(c,"\n  ").concat(u.join("\n  ")))}function pp(e){if(!x)return;const{description:t="< unknown name >",op:n="< unknown op >"}=F(e),{spanId:r}=e.spanContext(),i=oe(e)===e,s='[Tracing] Finishing "'.concat(n,'" ').concat(i?"root ":"",'span "').concat(t,'" with ID ').concat(r);y.log(s)}function Uc(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){x&&y.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(e)," of type ").concat(JSON.stringify(typeof e),"."));return}return t}function mp(e,t){if(!ze(e))return[!1];let n;typeof e.tracesSampler=="function"?n=e.tracesSampler(t):t.parentSampled!==void 0?n=t.parentSampled:typeof e.tracesSampleRate<"u"?n=e.tracesSampleRate:n=1;const r=Uc(n);return r===void 0?(x&&y.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(x&&y.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(n),")")),[!1,r]):(x&&y.log("[Tracing] Discarding transaction because ".concat(typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}function gp(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function hp(e,t,n,r){const o=xc(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Fn(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return cn(i,[s])}function _p(e,t,n,r){const o=xc(n),i=e.type&&e.type!=="replay_event"?e.type:"event";gp(e,n&&n.sdk);const s=Md(e,o,r,t);return delete e.sdkProcessingMetadata,cn(s,[[{type:i},e]])}function vp(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=Dt(e[0]),o=t&&t.getDsn(),i=t&&t.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&o&&{dsn:Fn(o)}},a=t&&t.getOptions().beforeSendSpan,c=a?f=>a(F(f)):f=>F(f),u=[];for(const f of e){const l=c(f);l&&u.push(Nd(l))}return cn(s,u)}function yp(e,t,n,r=ae()){const o=r&&oe(r);o&&o.addEvent(e,{[Qr]:t,[Kr]:n})}function Zs(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[Kr],i=r[Qr];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}const ea=1e3;class Oi{constructor(t={}){this._traceId=t.traceId||z(),this._spanId=t.spanId||z().substring(16),this._startTime=t.startTimestamp||se(),this._attributes={},this.setAttributes({[Z]:"manual",[Ot]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Rc:Oc}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=At(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=At(t),pp(this),this._onSpanEnded())}getSpanJSON(){return re({data:this._attributes,description:this._name,op:this._attributes[Ot],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Dc(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Z],_metrics_summary:ni(this),profile_id:this._attributes[np],exclusive_time:this._attributes[Pi],measurements:Zs(this._events),is_segment:this._isStandaloneSpan&&oe(this)===this||void 0,segment_id:this._isStandaloneSpan?oe(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){x&&y.log("[Tracing] Adding an event to span:",t);const o=ta(n)?n:r||se(),i=ta(n)?{}:n||{},s={name:t,time:At(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=$();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===oe(this)))return;if(this._isStandaloneSpan){this._sampled?Ep(vp([this],t)):(x&&y.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Ks(this).scope||q()).captureEvent(r)}_convertSpanToTransaction(){if(!na(F(this)))return;this._name||(x&&y.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Ks(this),o=(t||q()).getClient()||$();if(this._sampled!==!0){x&&y.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}const s=xr(this).filter(l=>l!==this&&!Sp(l)).map(l=>F(l)).filter(na),a=this._attributes[at],c={contexts:{trace:ip(this)},spans:s.length>ea?s.sort((l,p)=>l.start_timestamp-p.start_timestamp).slice(0,ea):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,...re({dynamicSamplingContext:Dt(this)})},_metrics_summary:ni(this),...a&&{transaction_info:{source:a}}},u=Zs(this._events);return u&&Object.keys(u).length&&(x&&y.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),c.measurements=u),c}}function ta(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function na(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Sp(e){return e instanceof Oi&&e.isStandaloneSpan()}function Ep(e){const t=$();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}const r=t.getTransport();r&&r.send(e).then(null,o=>{x&&y.error("Error while sending span:",o)})}const Hc="__SENTRY_SUPPRESS_TRACING__";function dt(e){const t=jc();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Tp(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>Jr(e.scope,s):o!==void 0?s=>Bc(o,s):s=>s())(()=>{const s=q(),a=Ip(s);return e.onlyIfParent&&!a?new fn:bp({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}function Bc(e,t){const n=jc();return n.withActiveSpan?n.withActiveSpan(e,t):Jr(r=>(On(r,e||void 0),t(r)))}function bp({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!ze())return new fn;const o=ke();let i;if(e&&!n)i=wp(e,r,t),Lc(e,i);else if(e){const s=Dt(e),{traceId:a,spanId:c}=e.spanContext(),u=Nt(e);i=ra({traceId:a,parentSpanId:c,...t},r,u),Qs(i,s)}else{const{traceId:s,dsc:a,parentSpanId:c,sampled:u}={...o.getPropagationContext(),...r.getPropagationContext()};i=ra({traceId:s,parentSpanId:c,...t},r,u),a&&Qs(i,a)}return dp(i),lp(i,r,o),i}function Tp(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=At(e.startTime),delete r.startTime,r}return n}function jc(){const e=un();return Un(e)}function ra(e,t,n){const r=$(),o=r&&r.getOptions()||{},{name:i="",attributes:s}=e,[a,c]=t.getScopeData().sdkProcessingMetadata[Hc]?[!1]:mp(o,{name:i,parentSampled:n,attributes:s,transactionContext:{name:i,parentSampled:n}}),u=new Oi({...e,attributes:{[at]:"custom",...e.attributes},sampled:a});return c!==void 0&&u.setAttribute(kc,c),r&&r.emit("spanStart",u),u}function wp(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[Hc]?!1:Nt(e),s=i?new Oi({...n,parentSpanId:r,traceId:o,sampled:i}):new fn({traceId:o});Lc(e,s);const a=$();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}function Ip(e){const t=Hr(e);if(!t)return;const n=$();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?oe(t):t}const kr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Ap="heartbeatFailed",xp="idleTimeout",kp="finalTimeout",Pp="externalFinish";function Gc(e,t={}){const n=new Map;let r=!1,o,i=Pp,s=!t.disableAutoFinish;const a=[],{idleTimeout:c=kr.idleTimeout,finalTimeout:u=kr.finalTimeout,childSpanTimeout:f=kr.childSpanTimeout,beforeSpanEnd:l}=t,p=$();if(!p||!ze())return new fn;const m=q(),g=ae(),h=Cp(e);h.end=new Proxy(h.end,{apply(S,R,N){l&&l(h);const[V,...Y]=N,B=V||se(),M=At(B),le=xr(h).filter(ie=>ie!==h);if(!le.length)return w(M),Reflect.apply(S,R,[M,...Y]);const we=le.map(ie=>F(ie).timestamp).filter(ie=>!!ie),de=we.length?Math.max(...we):void 0,pe=F(h).start_timestamp,Pe=Math.min(pe?pe+u/1e3:1/0,Math.max(pe||-1/0,Math.min(M,de||1/0)));return w(Pe),Reflect.apply(S,R,[Pe,...Y])}});function O(){o&&(clearTimeout(o),o=void 0)}function U(S){O(),o=setTimeout(()=>{!r&&n.size===0&&s&&(i=xp,h.end(S))},c)}function C(S){o=setTimeout(()=>{!r&&s&&(i=Ap,h.end(S))},f)}function G(S){O(),n.set(S,!0);const R=se();C(R+f/1e3)}function v(S){if(n.has(S)&&n.delete(S),n.size===0){const R=se();U(R+c/1e3)}}function w(S){r=!0,n.clear(),a.forEach(M=>M()),On(m,g);const R=F(h),{start_timestamp:N}=R;if(!N)return;(R.data||{})[ri]||h.setAttribute(ri,i),y.log('[Tracing] Idle span "'.concat(R.op,'" finished'));const Y=xr(h).filter(M=>M!==h);let B=0;Y.forEach(M=>{M.isRecording()&&(M.setStatus({code:Q,message:"cancelled"}),M.end(S),x&&y.log("[Tracing] Cancelling span since span ended early",JSON.stringify(M,void 0,2)));const le=F(M),{timestamp:we=0,start_timestamp:de=0}=le,pe=de<=S,Pe=(u+c)/1e3,ie=we-de<=Pe;if(x){const Le=JSON.stringify(M,void 0,2);pe?ie||y.log("[Tracing] Discarding span since it finished after idle span final timeout",Le):y.log("[Tracing] Discarding span since it happened after idle span was finished",Le)}(!ie||!pe)&&(up(h,M),B++)}),B>0&&h.setAttribute("sentry.idle_span_discarded_spans",B)}return a.push(p.on("spanStart",S=>{if(r||S===h||F(S).timestamp)return;xr(h).includes(S)&&G(S.spanContext().spanId)})),a.push(p.on("spanEnd",S=>{r||v(S.spanContext().spanId)})),a.push(p.on("idleSpanEnableAutoFinish",S=>{S===h&&(s=!0,U(),n.size&&C())})),t.disableAutoFinish||U(),setTimeout(()=>{r||(h.setStatus({code:Q,message:"deadline_exceeded"}),i=kp,h.end())},u),h}function Cp(e){const t=dt(e);return On(q(),t),x&&y.log("[Tracing] Started span is an idle span"),t}function si(e,t,n,r=0){return new Ee((o,i)=>{const s=e[r];if(t===null||typeof s!="function")o(t);else{const a=s({...t},n);x&&s.id&&a===null&&y.log('Event processor "'.concat(s.id,'" dropped event')),Yr(a)?a.then(c=>si(e,c,n,r+1).then(o)).then(null,i):si(e,a,n,r+1).then(o).then(null,i)}})}function Op(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Rp(e,t),r&&Lp(e,r),Mp(e,n),Np(e,o),Dp(e,i)}function oa(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:f,attachments:l,propagationContext:p,transactionName:m,span:g}=t;Tn(e,"extra",n),Tn(e,"tags",r),Tn(e,"user",o),Tn(e,"contexts",i),Tn(e,"sdkProcessingMetadata",a),s&&(e.level=s),m&&(e.transactionName=m),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...p}}function Tn(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Rp(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=re(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=re(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const f=re(o);f&&Object.keys(f).length&&(e.user={...f,...e.user});const l=re(i);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function Np(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Dp(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Lp(e,t){e.contexts={trace:sp(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Dt(t),...e.sdkProcessingMetadata};const n=oe(t),r=F(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Mp(e,t){e.fingerprint=e.fingerprint?bc(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Fp(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||z(),timestamp:t.timestamp||$n()},u=n.integrations||e.integrations.map(O=>O.name);$p(c,e),Bp(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Up(c,e.stackParser);const f=Gp(r,n.captureContext);n.mechanism&&en(c,n.mechanism);const l=o?o.getEventProcessors():[],p=ep().getScopeData();if(i){const O=i.getScopeData();oa(p,O)}if(f){const O=f.getScopeData();oa(p,O)}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),Op(c,p);const g=[...l,...p.eventProcessors];return si(g,c,n).then(O=>(O&&Hp(O),typeof s=="number"&&s>0?jp(O,s,a):O))}function $p(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Ci),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=Kt(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Kt(s.value,i));const a=e.request;a&&a.url&&(a.url=Kt(a.url,i))}const ia=new WeakMap;function Up(e,t){const n=L._sentryDebugIds;if(!n)return;let r;const o=ia.get(t);o?r=o:(r=new Map,ia.set(t,r));const i=Object.entries(n).reduce((s,[a,c])=>{let u;const f=r.get(a);f?u=f:(u=t(a),r.set(a,u));for(let l=u.length-1;l>=0;l--){const p=u[l];if(p.filename){s[p.filename]=c;break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch(s){}}function Hp(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch(r){}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function Bp(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function jp(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:rt(o.data,t,n)}}))},...e.user&&{user:rt(e.user,t,n)},...e.contexts&&{contexts:rt(e.contexts,t,n)},...e.extra&&{extra:rt(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=rt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:rt(o.data,t,n)}}))),r}function Gp(e,t){if(!t)return e;const n=e?e.clone():new ut;return n.update(t),n}function qp(e){if(e)return Vp(e)?{captureContext:e}:zp(e)?{captureContext:e}:e}function Vp(e){return e instanceof ut||typeof e=="function"}const Wp=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function zp(e){return Object.keys(e).some(t=>Wp.includes(t))}function qc(e,t){return q().captureException(e,qp(t))}function sa(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return q().captureMessage(e,n,r)}function Vc(e,t){return q().captureEvent(e,t)}function Yp(e){ke().setUser(e)}function Xp(e){ke().addEventProcessor(e)}function aa(e){const t=$(),n=ke(),r=q(),{release:o,environment:i=Ci}=t&&t.getOptions()||{},{userAgent:s}=L.navigator||{},a=qd({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&tn(c,{status:"exited"}),Wc(),n.setSession(a),r.setSession(a),a}function Wc(){const e=ke(),t=q(),n=t.getSession()||e.getSession();n&&Vd(n),zc(),e.setSession(),t.setSession()}function zc(){const e=ke(),t=q(),n=$(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function ca(e=!1){if(e){Wc();return}zc()}const Jp="7";function Kp(e){const t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}function Qp(e){return"".concat(Kp(e)).concat(e.projectId,"/envelope/")}function Zp(e,t){return td({sentry_key:e.publicKey,sentry_version:Jp,...t&&{sentry_client:"".concat(t.name,"/").concat(t.version)}})}function em(e,t,n){return t||"".concat(Qp(e),"?").concat(Zp(e,n))}const ua=[];function tm(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function nm(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=bc(n(t)):r=t;const o=tm(r),i=o.findIndex(s=>s.name==="Debug");if(i>-1){const[s]=o.splice(i,1);o.push(s)}return o}function rm(e,t){const n={};return t.forEach(r=>{r&&Yc(e,r,n)}),n}function fa(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Yc(e,t,n){if(n[t.name]){x&&y.log("Integration skipped because it was already installed: ".concat(t.name));return}if(n[t.name]=t,ua.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),ua.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}x&&y.log("Integration installed: ".concat(t.name))}const la="Not capturing exception because it's already been captured.";class om{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=ed(t.dsn):x&&y.warn("No DSN provided, client will not send events."),this._dsn){const n=em(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const o=z();if(qs(t))return x&&y.log(la),o;const i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r))),i.event_id}captureMessage(t,n,r,o){const i={event_id:z(),...r},s=bi(t)?t:String(t),a=Ti(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(a.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,r){const o=z();if(n&&n.originalException&&qs(n.originalException))return x&&y.log(la),o;const i={event_id:o,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,a||r)),i.event_id}captureSession(t){typeof t.release!="string"?x&&y.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),tn(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):Ct(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Yc(this,t,this._integrations),n||fa(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=_p(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=Cd(r,Dd(i));const o=this.sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=hp(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=typeof r=="number"?r:1,i="".concat(t,":").concat(n);x&&y.log('Recording outcome: "'.concat(i,'"').concat(o>1?" (".concat(o," times)"):"")),this._outcomes[i]=(this._outcomes[i]||0)+o}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(x&&y.error("Error while sending event:",n),n)):(x&&y.error("Transport disabled"),Ct({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=rm(this,t),fa(this,t)}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const c of i){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(tn(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Ee(n=>{let r=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=ke()){const i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Fp(i,t,n,r,this,o).then(a=>{if(a===null)return a;const c={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){const{traceId:f,spanId:l,parentSpanId:p,dsc:m}=c;a.contexts={trace:re({trace_id:f,span_id:l,parent_span_id:p}),...a.contexts};const g=m||Zr(f,this);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(x){const i=o;i.logLevel==="log"?y.log(i.message):y.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=Jc(t),a=Xc(t),c=t.type||"error",u="before send for type `".concat(c,"`"),f=typeof i>"u"?void 0:Uc(i);if(a&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),$r(new Ne("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));const l=c==="replay_event"?"replay":c,m=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,m).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",l,t),new Ne("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const O=sm(this,o,g,n);return im(O,u)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",l,t),s){const C=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",C)}throw new Ne("".concat(u," returned `null`, will not send event."),"log")}const h=r&&r.getSession();if(!s&&h&&this._updateSessionFromEvent(h,g),s){const U=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,C=g.spans?g.spans.length:0,G=U-C;G>0&&this.recordDroppedEvent("before_send","span",G)}const O=g.transaction_info;if(s&&O&&g.transaction!==t.transaction){const U="custom";g.transaction_info={...O,source:U}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Ne?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Ne("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(g)))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){x&&y.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){x&&y.log("No outcomes to send");return}if(!this._dsn){x&&y.log("No dsn provided, will not send outcomes");return}x&&y.log("Sending outcomes:",t);const n=Fd(t,this._options.tunnel&&Fn(this._dsn));this.sendEnvelope(n)}}function im(e,t){const n="".concat(t," must return `null` or a valid event.");if(Yr(e))return e.then(r=>{if(!Zt(r)&&r!==null)throw new Ne(n);return r},r=>{throw new Ne("".concat(t," rejected with ").concat(r))});if(!Zt(e)&&e!==null)throw new Ne(n);return e}function sm(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(Xc(n)&&o)return o(n,r);if(Jc(n)){if(n.spans&&s){const a=[];for(const c of n.spans){const u=s(c);u?a.push(u):e.recordDroppedEvent("before_send","span")}n.spans=a}if(i){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(n,r)}}return n}function Xc(e){return e.type===void 0}function Jc(e){return e.type==="transaction"}function am(e,t){t.debug===!0&&(x?y.enable():Mn(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),q().update(t.initialScope);const r=new e(t);return cm(r),r.init(),r}function cm(e){q().setClient(e)}const um=64;function fm(e,t,n=Ed(e.bufferSize||um)){let r={};const o=s=>n.drain(s);function i(s){const a=[];if(Ws(s,(l,p)=>{const m=zs(p);if(Bd(r,m)){const g=da(l,p);e.recordDroppedEvent("ratelimit_backoff",m,g)}else a.push(l)}),a.length===0)return Ct({});const c=cn(s[0],a),u=l=>{Ws(c,(p,m)=>{const g=da(p,m);e.recordDroppedEvent(l,zs(m),g)})},f=()=>t({body:Od(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&x&&y.warn("Sentry responded with status code ".concat(l.statusCode," to sent event.")),r=jd(r,l),l),l=>{throw u("network_error"),l});return n.add(f).then(l=>l,l=>{if(l instanceof Ne)return x&&y.error("Skipped sending event because buffer is full."),u("queue_overflow"),Ct({});throw l})}return{send:i,flush:o}}function da(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Kc(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:"sentry.javascript.".concat(t),packages:n.map(i=>({name:"".concat(r,":@sentry/").concat(i),version:wt})),version:wt}),e._metadata=o}const lm=100;function Rt(e,t){const n=$(),r=ke();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=lm}=n.getOptions();if(i<=0)return;const a={timestamp:$n(),...e},c=o?Mn(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let pa;const dm="FunctionToString",ma=new WeakMap,pm=()=>({name:dm,setupOnce(){pa=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=wi(this),n=ma.has($())&&t!==void 0?t:this;return pa.apply(n,e)}}catch(e){}},setup(e){ma.set(e,!0)}}),mm=pm,gm=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],hm="InboundFilters",_m=(e={})=>({name:hm,processEvent(t,n,r){const o=r.getOptions(),i=ym(e,o);return Sm(t,i)?null:t}}),vm=_m;function ym(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:gm],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Sm(e,t){return t.ignoreInternal&&Am(e)?(x&&y.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(nt(e))),!0):Em(e,t.ignoreErrors)?(x&&y.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(nt(e))),!0):km(e)?(x&&y.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat(nt(e))),!0):bm(e,t.ignoreTransactions)?(x&&y.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(nt(e))),!0):Tm(e,t.denyUrls)?(x&&y.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(nt(e),".\nUrl: ").concat(Br(e))),!0):wm(e,t.allowUrls)?!1:(x&&y.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(nt(e),".\nUrl: ").concat(Br(e))),!0)}function Em(e,t){return e.type||!t||!t.length?!1:Im(e).some(n=>Tt(n,t))}function bm(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Tt(n,t):!1}function Tm(e,t){if(!t||!t.length)return!1;const n=Br(e);return n?Tt(n,t):!1}function wm(e,t){if(!t||!t.length)return!0;const n=Br(e);return n?Tt(n,t):!0}function Im(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(r){}return n&&n.value&&(t.push(n.value),n.type&&t.push("".concat(n.type,": ").concat(n.value))),t}function Am(e){try{return e.exception.values[0].type==="SentryError"}catch(t){}return!1}function xm(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Br(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(n){}return t?xm(t):null}catch(t){return x&&y.error("Cannot extract url for event ".concat(nt(e))),null}}function km(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}const Pm="CaptureConsole",Cm=(e={})=>{const t=e.levels||Mr;return{name:Pm,setup(n){"console"in L&&mc(({args:r,level:o})=>{$()!==n||!t.includes(o)||Rm(r,o)})}}},Om=Cm;function Rm(e,t){const n={level:wc(t),extra:{arguments:e}};Jr(r=>{if(r.addEventProcessor(s=>(s.logger="console",en(s,{handled:!1,type:"console"}),s)),t==="assert"){if(!e[0]){const s="Assertion failed: ".concat(Lr(e.slice(1)," ")||"console.assert");r.setExtra("arguments",e.slice(1)),sa(s,n)}return}const o=e.find(s=>s instanceof Error);if(o){qc(o,n);return}const i=Lr(e," ");sa(i,n)})}const Nm="Dedupe",Dm=()=>{let e;return{name:Nm,processEvent(t){if(t.type)return t;try{if(Mm(t,e))return x&&y.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}},Lm=Dm;function Mm(e,t){return t?!!(Fm(e,t)||$m(e,t)):!1}function Fm(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Zc(e,t)||!Qc(e,t))}function $m(e,t){const n=ga(t),r=ga(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Zc(e,t)||!Qc(e,t))}function Qc(e,t){let n=Bs(e),r=Bs(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Zc(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch(o){return!1}}function ga(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Um(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;const i=ze()&&t(e.fetchData.url);if(e.endTimestamp&&i){const g=e.fetchData.__span;if(!g)return;const h=r[g];h&&(jm(h,e),delete r[g]);return}const s=q(),a=$(),{method:c,url:u}=e.fetchData,f=Bm(u),l=f?It(f).host:void 0,p=!!ae(),m=i&&p?dt({name:"".concat(c," ").concat(u),attributes:{url:u,type:"fetch","http.method":c,"http.url":f,"server.address":l,[Z]:o,[Ot]:"http.client"}}):new fn;if(e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)&&a){const g=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=Hm(g,a,s,h,ze()&&p?m:void 0)}return m}function Hm(e,t,n,r,o){const i=ke(),{traceId:s,spanId:a,sampled:c,dsc:u}={...i.getPropagationContext(),...n.getPropagationContext()},f=o?Nc(o):Ai(s,a,c),l=Ac(u||(o?Dt(o):Zr(s,t))),p=r.headers||(typeof Request<"u"&&Ve(e,Request)?e.headers:void 0);if(p)if(typeof Headers<"u"&&Ve(p,Headers)){const m=new Headers(p);if(m.set("sentry-trace",f),l){const g=m.get(zt);if(g){const h=pr(g);m.set(zt,h?"".concat(h,",").concat(l):l)}else m.set(zt,l)}return m}else if(Array.isArray(p)){const m=[...p.filter(g=>!(Array.isArray(g)&&g[0]==="sentry-trace")).map(g=>{if(Array.isArray(g)&&g[0]===zt&&typeof g[1]=="string"){const[h,O,...U]=g;return[h,pr(O),...U]}else return g}),["sentry-trace",f]];return l&&m.push([zt,l]),m}else{const m="baggage"in p?p.baggage:void 0;let g=[];return Array.isArray(m)?g=m.map(h=>typeof h=="string"?pr(h):h).filter(h=>h===""):m&&g.push(pr(m)),l&&g.push(l),{...p,"sentry-trace":f,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":f,baggage:l}}function Bm(e){try{return new URL(e).href}catch(t){return}}function jm(e,t){if(t.response){Cc(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Q,message:"internal_error"});e.end()}function pr(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(Ii)).join(",")}const A=L;let ai=0;function eu(){return ai>0}function Gm(){ai++,setTimeout(()=>{ai--})}function rn(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(wi(e))return e}catch(o){return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{const i=o.map(s=>rn(s,t));return e.apply(this,i)}catch(i){throw Gm(),Jr(s=>{s.addEventProcessor(a=>(t.mechanism&&(Qo(a,void 0),en(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),qc(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(o){}fc(r,e),Te(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch(o){}return r}const xe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ri(e,t){const n=Ni(e,t),r={type:Ym(t),value:Xm(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function qm(e,t,n,r){const o=$(),i=o&&o.getOptions().normalizeDepth,s=eg(t),a={__serialized__:Tc(t,i)};if(s)return{exception:{values:[Ri(e,s)]},extra:a};const c={exception:{values:[{type:zr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Qm(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=Ni(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Po(e,t){return{exception:{values:[Ri(e,t)]}}}function Ni(e,t){const n=t.stacktrace||t.stack||"",r=Wm(t),o=zm(t);try{return e(n,r,o)}catch(i){}return[]}const Vm=/Minified React error #\d+;/i;function Wm(e){return e&&Vm.test(e.message)?1:0}function zm(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function tu(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Ym(e){const t=e&&e.name;return!t&&tu(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Xm(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:tu(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function Jm(e,t,n,r){const o=n&&n.syntheticException||void 0,i=Di(e,t,o,r);return en(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Ct(i)}function Km(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,s=ci(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Ct(s)}function Di(e,t,n,r,o){let i;if(oc(t)&&t.error)return Po(e,t.error);if(Ds(t)||$l(t)){const s=t;if("stack"in t)i=Po(e,t);else{const a=s.name||(Ds(s)?"DOMError":"DOMException"),c=s.message?"".concat(a,": ").concat(s.message):a;i=ci(e,c,n,r),Qo(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":"".concat(s.code)}),i}return Ei(t)?Po(e,t):Zt(t)||zr(t)?(i=qm(e,t,n,o),en(i,{synthetic:!0}),i):(i=ci(e,t,n,r),Qo(i,"".concat(t)),en(i,{synthetic:!0}),i)}function ci(e,t,n,r){const o={};if(r&&n){const i=Ni(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(bi(t)){const{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function Qm(e,{isUnhandledRejection:t}){const n=nd(e),r=t?"promise rejection":"exception";if(oc(e))return"Event `ErrorEvent` captured as ".concat(r," with message `").concat(e.message,"`");if(zr(e)){const o=Zm(e);return"Event `".concat(o,"` (type=").concat(e.type,") captured as ").concat(r)}return"Object captured as ".concat(r," with keys: ").concat(n)}function Zm(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}function eg(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function tg(e,{metadata:t,tunnel:n,dsn:r}){const o={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:Fn(r)}},i=ng(e);return cn(o,[i])}function ng(e){return[{type:"user_report"},e]}class rg extends om{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=A.SENTRY_SDK_SOURCE||gd();Kc(n,"browser",["browser"],r),super(n),n.sendClientReports&&A.document&&A.document.addEventListener("visibilitychange",()=>{A.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Jm(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Km(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){xe&&y.warn("SDK not enabled, will not capture user feedback.");return}const n=tg(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const _e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,og=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ln=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o||0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=og(t.value,n),e(t)))}},I=L,ig=()=>"v3-".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12),Hn=()=>I.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Bn=()=>{const e=Hn();return e&&e.activationStart||0},dn=(e,t)=>{const n=Hn();let r="navigate";return n&&(I.document&&I.document.prerendering||Bn()>0?r="prerender":I.document&&I.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:ig(),navigationType:r}},Lt=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},jn=e=>{const t=n=>{(n.type==="pagehide"||I.document&&I.document.visibilityState==="hidden")&&e(n)};I.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Li=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let Rn=-1;const sg=()=>{Rn=I.document.visibilityState==="hidden"&&!I.document.prerendering?0:1/0},jr=e=>{I.document.visibilityState==="hidden"&&Rn>-1&&(Rn=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("visibilitychange",jr,!0),removeEventListener("prerenderingchange",jr,!0))},ag=()=>{addEventListener("visibilitychange",jr,!0),addEventListener("prerenderingchange",jr,!0)},eo=()=>(I.document&&Rn<0&&(sg(),ag()),{get firstHiddenTime(){return Rn}}),Gn=e=>{I.document&&I.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},cg=[1800,3e3],ug=(e,t={})=>{Gn(()=>{const n=eo(),r=dn("FCP");let o;const s=Lt("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Bn(),0),r.entries.push(c),o(!0)))})});s&&(o=ln(e,r,cg,t.reportAllChanges))})},fg=[.1,.25],lg=(e,t={})=>{ug(Li(()=>{const n=dn("CLS",0);let r,o=0,i=[];const s=c=>{c.forEach(u=>{if(!u.hadRecentInput){const f=i[0],l=i[i.length-1];o&&f&&l&&u.startTime-l.startTime<1e3&&u.startTime-f.startTime<5e3?(o+=u.value,i.push(u)):(o=u.value,i=[u])}}),o>n.value&&(n.value=o,n.entries=i,r())},a=Lt("layout-shift",s);a&&(r=ln(e,n,fg,t.reportAllChanges),jn(()=>{s(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},dg=[100,300],pg=(e,t={})=>{Gn(()=>{const n=eo(),r=dn("FID");let o;const i=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),o(!0))},s=c=>{c.forEach(i)},a=Lt("first-input",s);o=ln(e,r,dg,t.reportAllChanges),a&&jn(Li(()=>{s(a.takeRecords()),a.disconnect()}))})};let nu=0,Co=1/0,mr=0;const mg=e=>{e.forEach(t=>{t.interactionId&&(Co=Math.min(Co,t.interactionId),mr=Math.max(mr,t.interactionId),nu=mr?(mr-Co)/7+1:0)})};let ui;const gg=()=>ui?nu:performance.interactionCount||0,hg=()=>{"interactionCount"in performance||ui||(ui=Lt("event",mg,{type:"event",buffered:!0,durationThreshold:0}))},_g=[200,500],vg=0,ru=()=>gg()-vg,ha=10,He=[],Oo={},_a=e=>{const t=He[He.length-1],n=Oo[e.interactionId];if(n||He.length<ha||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};Oo[r.id]=r,He.push(r)}He.sort((r,o)=>o.latency-r.latency),He.splice(ha).forEach(r=>{delete Oo[r.id]})}},yg=()=>{const e=Math.min(He.length-1,Math.floor(ru()/50));return He[e]},Sg=(e,t={})=>{Gn(()=>{hg();const n=dn("INP");let r;const o=s=>{s.forEach(c=>{c.interactionId&&_a(c),c.entryType==="first-input"&&!He.some(f=>f.entries.some(l=>c.duration===l.duration&&c.startTime===l.startTime))&&_a(c)});const a=yg();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},i=Lt("event",o,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:40});r=ln(e,n,_g,t.reportAllChanges),i&&("PerformanceEventTiming"in I&&"interactionId"in PerformanceEventTiming.prototype&&i.observe({type:"first-input",buffered:!0}),jn(()=>{o(i.takeRecords()),n.value<0&&ru()>0&&(n.value=0,n.entries=[]),r(!0)}))})},Eg=[2500,4e3],va={},bg=(e,t={})=>{Gn(()=>{const n=eo(),r=dn("LCP");let o;const i=a=>{const c=a[a.length-1];c&&c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Bn(),0),r.entries=[c],o())},s=Lt("largest-contentful-paint",i);if(s){o=ln(e,r,Eg,t.reportAllChanges);const a=Li(()=>{va[r.id]||(i(s.takeRecords()),s.disconnect(),va[r.id]=!0,o(!0))});["keydown","click"].forEach(c=>{I.document&&addEventListener(c,()=>setTimeout(a,0),!0)}),jn(a)}})},Tg=[800,1800],fi=e=>{I.document&&I.document.prerendering?Gn(()=>fi(e)):I.document&&I.document.readyState!=="complete"?addEventListener("load",()=>fi(e),!0):setTimeout(e,0)},wg=(e,t={})=>{const n=dn("TTFB"),r=ln(e,n,Tg,t.reportAllChanges);fi(()=>{const o=Hn();if(o){const i=o.responseStart;if(i<=0||i>performance.now())return;n.value=Math.max(i-Bn(),0),n.entries=[o],r(!0)}})},In={},Gr={};let ou,iu,su,au,cu;function uu(e,t=!1){return qn("cls",e,Pg,ou,t)}function Ig(e,t=!1){return qn("lcp",e,Og,su,t)}function Ag(e){return qn("fid",e,Cg,iu)}function xg(e){return qn("ttfb",e,Rg,au)}function kg(e){return qn("inp",e,Ng,cu)}function Nn(e,t){return fu(e,t),Gr[e]||(Dg(e),Gr[e]=!0),lu(e,t)}function pn(e,t){const n=In[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(o){_e&&y.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(We(r),"\nError:"),o)}}function Pg(){return lg(e=>{pn("cls",{metric:e}),ou=e},{reportAllChanges:!0})}function Cg(){return pg(e=>{pn("fid",{metric:e}),iu=e})}function Og(){return bg(e=>{pn("lcp",{metric:e}),su=e},{reportAllChanges:!0})}function Rg(){return wg(e=>{pn("ttfb",{metric:e}),au=e})}function Ng(){return Sg(e=>{pn("inp",{metric:e}),cu=e})}function qn(e,t,n,r,o=!1){fu(e,t);let i;return Gr[e]||(i=n(),Gr[e]=!0),r&&t({metric:r}),lu(e,t,o?i:void 0)}function Dg(e){const t={};e==="event"&&(t.durationThreshold=0),Lt(e,n=>{pn(e,{entries:n})},t)}function fu(e,t){In[e]=In[e]||[],In[e].push(t)}function lu(e,t,n){return()=>{n&&n();const r=In[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function Lg(e){return"duration"in e}function Ro(e){return typeof e=="number"&&isFinite(e)}function on(e,t,n,{...r}){const o=F(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Bc(e,()=>{const i=dt({startTime:t,...r});return i&&i.end(n),i})}function du(e){const t=$();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),u=c&&c.getReplayId(),f=q(),l=f.getUser(),p=l!==void 0?l.email||l.id||l.ip_address:void 0;let m;try{m=f.getScopeData().contexts.profile.profile_id}catch(h){}const g={release:s,environment:a,user:p||void 0,profile_id:m||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":I.navigator&&I.navigator.userAgent,...o};return dt({name:n,attributes:g,startTime:i,experimental:{standalone:!0}})}function Mi(){return I&&I.addEventListener&&I.performance}function K(e){return e/1e3}function Mg(){let e=0,t,n;if(!$g())return;let r=!1;function o(){r||(r=!0,n&&Fg(e,t,n),i())}const i=uu(({metric:s})=>{const a=s.entries[s.entries.length-1];a&&(e=s.value,t=a)},!0);jn(()=>{o()}),setTimeout(()=>{const s=$(),a=je([s,"optionalAccess",l=>l.on,"call",l=>l("startNavigationSpan",()=>{o(),a&&a()})]),c=ae(),u=c&&oe(c),f=u&&F(u);f&&f.op==="pageload"&&(n=u.spanContext().spanId)},0)}function Fg(e,t,n){_e&&y.log("Sending CLS span (".concat(e,")"));const r=K((fe||0)+(je([t,"optionalAccess",c=>c.startTime])||0)),o=q().getScopeData().transactionName,i=t?kt(je([t,"access",c=>c.sources,"access",c=>c[0],"optionalAccess",c=>c.node])):"Layout shift",s=re({[Z]:"auto.http.browser.cls",[Ot]:"ui.webvital.cls",[Pi]:je([t,"optionalAccess",c=>c.duration])||0,"sentry.pageload.span_id":n}),a=du({name:i,transaction:o,attributes:s,startTime:r});je([a,"optionalAccess",c=>c.addEvent,"call",c=>c("cls",{[Kr]:"",[Qr]:e})]),je([a,"optionalAccess",c=>c.end,"call",c=>c(r)])}function $g(){try{return je([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}const Ug=2147483647;let ya=0,ne={},Oe,An;function Hg({recordClsStandaloneSpans:e}){const t=Mi();if(t&&fe){t.mark&&I.performance.mark("sentry-tracing-init");const n=Wg(),r=Vg(),o=zg(),i=e?Mg():qg();return()=>{n(),r(),o(),i&&i()}}return()=>{}}function Bg(){Nn("longtask",({entries:e})=>{if(ae())for(const t of e){const n=K(fe+t.startTime),r=K(t.duration),o=dt({name:"Main UI thread blocked",op:"ui.long-task",startTime:n,attributes:{[Z]:"auto.ui.browser.metrics"}});o&&o.end(n+r)}})}function jg(){new PerformanceObserver(t=>{if(ae())for(const n of t.getEntries()){if(!n.scripts[0])continue;const r=K(fe+n.startTime),o=K(n.duration),i={[Z]:"auto.ui.browser.metrics"},s=n.scripts[0],{invoker:a,invokerType:c,sourceURL:u,sourceFunctionName:f,sourceCharPosition:l}=s;i["browser.script.invoker"]=a,i["browser.script.invoker_type"]=c,u&&(i["code.filepath"]=u),f&&(i["code.function"]=f),l!==-1&&(i["browser.script.source_char_position"]=l);const p=dt({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:r,attributes:i});p&&p.end(r+o)}}).observe({type:"long-animation-frame",buffered:!0})}function Gg(){Nn("event",({entries:e})=>{if(ae()){for(const t of e)if(t.name==="click"){const n=K(fe+t.startTime),r=K(t.duration),o={name:kt(t.target),op:"ui.interaction.".concat(t.name),startTime:n,attributes:{[Z]:"auto.ui.browser.metrics"}},i=cc(t.target);i&&(o.attributes["ui.component_name"]=i);const s=dt(o);s&&s.end(n+r)}}})}function qg(){return uu(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_e&&y.log("[Measurements] Adding CLS ".concat(e.value)),ne.cls={value:e.value,unit:""},An=t)},!0)}function Vg(){return Ig(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_e&&y.log("[Measurements] Adding LCP"),ne.lcp={value:e.value,unit:"millisecond"},Oe=t)},!0)}function Wg(){return Ag(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=K(fe),r=K(t.startTime);_e&&y.log("[Measurements] Adding FID"),ne.fid={value:e.value,unit:"millisecond"},ne["mark.fid"]={value:n+r,unit:"second"}})}function zg(){return xg(({metric:e})=>{e.entries[e.entries.length-1]&&(_e&&y.log("[Measurements] Adding TTFB"),ne.ttfb={value:e.value,unit:"millisecond"})})}function Yg(e,t){const n=Mi();if(!n||!I.performance.getEntries||!fe)return;_e&&y.log("[Tracing] Adding & adjusting spans using Performance API");const r=K(fe),o=n.getEntries(),{op:i,start_timestamp:s}=F(e);if(o.slice(ya).forEach(a=>{const c=K(a.startTime),u=K(Math.max(0,a.duration));if(!(i==="navigation"&&s&&r+c<s))switch(a.entryType){case"navigation":{Jg(e,a,r);break}case"mark":case"paint":case"measure":{Xg(e,a,c,u,r);const f=eo(),l=a.startTime<f.firstHiddenTime;a.name==="first-paint"&&l&&(_e&&y.log("[Measurements] Adding FP"),ne.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&l&&(_e&&y.log("[Measurements] Adding FCP"),ne.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{Qg(e,a,a.name,c,u,r);break}}}),ya=Math.max(o.length-1,0),Zg(e),i==="pageload"){th(ne);const a=ne["mark.fid"];a&&ne.fid&&(on(e,a.value,a.value+K(ne.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Z]:"auto.ui.browser.metrics"}}),delete ne["mark.fid"]),(!("fcp"in ne)||!t.recordClsOnPageloadSpan)&&delete ne.cls,Object.entries(ne).forEach(([c,u])=>{yp(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",Bn()),eh(e)}Oe=void 0,An=void 0,ne={}}function Xg(e,t,n,r,o){const i=Hn(),s=K(i?i.requestStart:0),a=o+Math.max(n,s),c=o+n,u=c+r,f={[Z]:"auto.resource.browser.metrics"};return a!==c&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=a),on(e,a,u,{name:t.name,op:t.entryType,attributes:f}),a}function Jg(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{gr(e,t,r,n)}),gr(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),gr(e,t,"fetch",n,"cache","domainLookupStart"),gr(e,t,"domainLookup",n,"DNS"),Kg(e,t,n)}function gr(e,t,n,r,o,i){const s=i?t[i]:t["".concat(n,"End")],a=t["".concat(n,"Start")];!a||!s||on(e,r+K(a),r+K(s),{op:"browser.".concat(o||n),name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}})}function Kg(e,t,n){const r=n+K(t.requestStart),o=n+K(t.responseEnd),i=n+K(t.responseStart);t.responseEnd&&(on(e,r,o,{op:"browser.request",name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}}),on(e,i,o,{op:"browser.response",name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}}))}function Qg(e,t,n,r,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=It(n),a={[Z]:"auto.resource.browser.metrics"};No(a,t,"transferSize","http.response_transfer_size"),No(a,t,"encodedBodySize","http.response_content_length"),No(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(I.location.origin);const c=i+r,u=c+o;on(e,c,u,{name:n.replace(I.location.origin,""),op:t.initiatorType?"resource.".concat(t.initiatorType):"resource.other",attributes:a})}function Zg(e){const t=I.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Ro(n.rtt)&&(ne["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Ro(t.deviceMemory)&&e.setAttribute("deviceMemory","".concat(t.deviceMemory," GB")),Ro(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function eh(e){Oe&&(_e&&y.log("[Measurements] Adding LCP Data"),Oe.element&&e.setAttribute("lcp.element",kt(Oe.element)),Oe.id&&e.setAttribute("lcp.id",Oe.id),Oe.url&&e.setAttribute("lcp.url",Oe.url.trim().slice(0,200)),e.setAttribute("lcp.size",Oe.size)),An&&An.sources&&(_e&&y.log("[Measurements] Adding CLS Data"),An.sources.forEach((t,n)=>e.setAttribute("cls.source.".concat(n+1),kt(t.node))))}function No(e,t,n,r){const o=t[n];o!=null&&o<Ug&&(e[r]=o)}function th(e){const t=Hn();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(_e&&y.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const nh=1e3;let Sa,li,di;function rh(e){const t="dom";ft(t,e),lt(t,oh)}function oh(){if(!I.document)return;const e=be.bind(null,"dom"),t=Ea(e,!0);I.document.addEventListener("click",t,!1),I.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=I[n]&&I[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(he(r,"addEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},f=u[i]=u[i]||{refCount:0};if(!f.handler){const l=Ea(e);f.handler=l,o.call(this,i,l,a)}f.refCount++}catch(c){}return o.call(this,i,s,a)}}),he(r,"removeEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},f=u[i];f&&(f.refCount--,f.refCount<=0&&(o.call(this,i,f.handler,a),f.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch(c){}return o.call(this,i,s,a)}}))})}function ih(e){if(e.type!==li)return!1;try{if(!e.target||e.target._sentryId!==di)return!1}catch(t){}return!0}function sh(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Ea(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ah(n);if(sh(n.type,r))return;Te(n,"_sentryCaptured",!0),r&&!r._sentryId&&Te(r,"_sentryId",z());const o=n.type==="keypress"?"input":n.type;ih(n)||(e({event:n,name:o,global:t}),li=n.type,di=r?r._sentryId:void 0),clearTimeout(Sa),Sa=I.setTimeout(()=>{di=void 0,li=void 0},nh)}}function ah(e){try{return e.target}catch(t){return null}}let hr;function Fi(e){const t="history";ft(t,e),lt(t,ch)}function ch(){if(!Gd())return;const e=I.onpopstate;I.onpopstate=function(...n){const r=I.location.href,o=hr;if(hr=r,be("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch(s){}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const i=hr,s=String(o);hr=s,be("history",{from:i,to:s})}return n.apply(this,r)}}he(I.history,"pushState",t),he(I.history,"replaceState",t)}const Pr={};function uh(e){const t=Pr[e];if(t)return t;let n=I[e];if(Jo(n))return Pr[e]=n.bind(I);const r=I.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const i=o.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){_e&&y.warn("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),o)}return n&&(Pr[e]=n.bind(I))}function ba(e){Pr[e]=void 0}const Xt="__sentry_xhr_v3__";function pu(e){const t="xhr";ft(t,e),lt(t,fh)}function fh(){if(!I.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=se()*1e3,i=qe(r[0])?r[0].toUpperCase():void 0,s=lh(r[1]);if(!i||!s)return t.apply(n,r);n[Xt]={method:i,url:s,request_headers:{}},i==="POST"&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const c=n[Xt];if(c&&n.readyState===4){try{c.status_code=n.status}catch(f){}const u={endTimestamp:se()*1e3,startTimestamp:o,xhr:n};be("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,u,f){return a(),c.apply(u,f)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,u,f){const[l,p]=f,m=u[Xt];return m&&qe(l)&&qe(p)&&(m.request_headers[l.toLowerCase()]=p),c.apply(u,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[Xt];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const i={startTimestamp:se()*1e3,xhr:n};return be("xhr",i),t.apply(n,r)}})}function lh(e){if(qe(e))return e;try{return e.toString()}catch(t){}}const Do=[],Cr=new Map;function dh(){if(Mi()&&fe){const t=ph();return()=>{t()}}return()=>{}}const Ta={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ph(){return kg(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(g=>g.duration===e.value&&Ta[g.name]);if(!t)return;const{interactionId:n}=t,r=Ta[t.name],o=K(fe+t.startTime),i=K(e.value),s=ae(),a=s?oe(s):void 0,u=(n!=null?Cr.get(n):void 0)||a,f=u?F(u).description:q().getScopeData().transactionName,l=kt(t.target),p=re({[Z]:"auto.http.browser.inp",[Ot]:"ui.interaction.".concat(r),[Pi]:t.duration}),m=du({name:l,transaction:f,attributes:p,startTime:o});je([m,"optionalAccess",g=>g.addEvent,"call",g=>g("inp",{[Kr]:"millisecond",[Qr]:e.value})]),je([m,"optionalAccess",g=>g.end,"call",g=>g(o+i)])})}function mh(e){const t=({entries:n})=>{const r=ae(),o=r&&oe(r);n.forEach(i=>{if(!Lg(i)||!o)return;const s=i.interactionId;if(s!=null&&!Cr.has(s)){if(Do.length>10){const a=Do.shift();Cr.delete(a)}Do.push(s),Cr.set(s,o)}})};Nn("event",t),Nn("first-input",t)}function gh(e,t=uh("fetch")){let n=0,r=0;function o(i){const s=i.body.length;n+=s,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return ba("fetch"),$r("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return ba("fetch"),n-=s,r--,$r(c)}}return fm(e,o)}const hh=30,_h=50;function pi(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?Pt:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const vh=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,yh=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sh=/\((\S*)(?::(\d+))(?::(\d+))\)/,Eh=e=>{const t=vh.exec(e);if(t){const[,r,o,i]=t;return pi(r,Pt,+o,+i)}const n=yh.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=Sh.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[o,i]=mu(n[1]||Pt,n[2]);return pi(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},bh=[hh,Eh],Th=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wh=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ih=e=>{const t=Th.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=wh.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||Pt;return[o,r]=mu(o,r),pi(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Ah=[_h,Ih],xh=[bh,Ah],kh=pc(...xh),mu=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Pt,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},_r=1024,Ph="Breadcrumbs",Ch=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Ph,setup(n){t.console&&mc(Dh(n)),t.dom&&rh(Nh(n,t.dom)),t.xhr&&pu(Lh(n)),t.fetch&&_c(Mh(n)),t.history&&Fi(Fh(n)),t.sentry&&n.on("beforeSendEvent",Rh(n))}}},Oh=Ch;function Rh(e){return function(n){$()===e&&Rt({category:"sentry.".concat(n.type==="transaction"?"transaction":"event"),event_id:n.event_id,level:n.level,message:nt(n)},{event:n})}}function Nh(e,t){return function(r){if($()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>_r&&(xe&&y.warn("`dom.maxStringLength` cannot exceed ".concat(_r,", but a value of ").concat(a," was configured. Sentry will use ").concat(_r," instead.")),a=_r),typeof s=="string"&&(s=[s]);try{const u=r.event,f=$h(u)?u.target:u;o=kt(f,{keyAttrs:s,maxStringLength:a}),i=cc(f)}catch(u){o="<unknown>"}if(o.length===0)return;const c={category:"ui.".concat(r.name),message:o};i&&(c.data={"ui.component_name":i}),Rt(c,{event:r.event,name:r.name,global:r.global})}}function Dh(e){return function(n){if($()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:wc(n.level),message:Lr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message="Assertion failed: ".concat(Lr(n.args.slice(1)," ")||"console.assert"),r.data.arguments=n.args.slice(1);else return;Rt(r,{input:n.args,level:n.level})}}function Lh(e){return function(n){if($()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[Xt];if(!r||!o||!i)return;const{method:s,url:a,status_code:c,body:u}=i,f={method:s,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o},p=sc(c);Rt({category:"xhr",data:f,type:"http",level:p},l)}}function Mh(e){return function(n){if($()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};Rt({category:"fetch",data:i,level:"error",type:"http"},s)}else{const i=n.response,s={...n.fetchData,status_code:i&&i.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:o},c=sc(s.status_code);Rt({category:"fetch",data:s,type:"http",level:c},a)}}}function Fh(e){return function(n){if($()!==e)return;let r=n.from,o=n.to;const i=It(A.location.href);let s=r?It(r):void 0;const a=It(o);(!s||!s.path)&&(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),Rt({category:"navigation",data:{from:r,to:o}})}}function $h(e){return!!e&&!!e.target}const Uh=["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"],Hh="BrowserApiErrors",Bh=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Hh,setupOnce(){t.setTimeout&&he(A,"setTimeout",wa),t.setInterval&&he(A,"setInterval",wa),t.requestAnimationFrame&&he(A,"requestAnimationFrame",Gh),t.XMLHttpRequest&&"XMLHttpRequest"in A&&he(XMLHttpRequest.prototype,"send",qh);const n=t.eventTarget;n&&(Array.isArray(n)?n:Uh).forEach(Vh)}}},jh=Bh;function wa(e){return function(...t){const n=t[0];return t[0]=rn(n,{mechanism:{data:{function:We(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Gh(e){return function(t){return e.apply(this,[rn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:We(e)},handled:!1,type:"instrument"}})])}}function qh(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&he(n,o,function(i){const s={mechanism:{data:{function:o,handler:We(i)},handled:!1,type:"instrument"}},a=wi(i);return a&&(s.mechanism.data.handler=We(a)),rn(i,s)})}),e.apply(this,t)}}function Vh(e){const t=A,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(he(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=rn(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:We(i),target:e},handled:!1,type:"instrument"}}))}catch(a){}return r.apply(this,[o,rn(i,{mechanism:{data:{function:"addEventListener",handler:We(i),target:e},handled:!1,type:"instrument"}}),s])}}),he(n,"removeEventListener",function(r){return function(o,i,s){const a=i;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,o,c,s)}catch(c){}return r.call(this,o,a,s)}}))}const Wh="GlobalHandlers",zh=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Wh,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Xh(n),Ia("onerror")),t.onunhandledrejection&&(Jh(n),Ia("onunhandledrejection"))}}},Yh=zh;function Xh(e){yc(t=>{const{stackParser:n,attachStacktrace:r}=gu();if($()!==e||eu())return;const{msg:o,url:i,line:s,column:a,error:c}=t,u=Zh(Di(n,c||o,void 0,r,!1),i,s,a);u.level="error",Vc(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Jh(e){Sc(t=>{const{stackParser:n,attachStacktrace:r}=gu();if($()!==e||eu())return;const o=Kh(t),i=Ti(o)?Qh(o):Di(n,o,void 0,r,!0);i.level="error",Vc(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Kh(e){if(Ti(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}function Qh(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(e))}]}}}function Zh(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,l=qe(t)&&t.length>0?t:zl();return c.length===0&&c.push({colno:u,filename:l,function:Pt,in_app:!0,lineno:f}),e}function Ia(e){xe&&y.log("Global Handler attached: ".concat(e))}function gu(){const e=$();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const e_=()=>({name:"HttpContext",preprocessEvent(e){if(!A.navigator&&!A.location&&!A.document)return;const t=e.request&&e.request.url||A.location&&A.location.href,{referrer:n}=A.document||{},{userAgent:r}=A.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),t_="cause",n_=5,r_="LinkedErrors",o_=(e={})=>{const t=e.limit||n_,n=e.key||t_;return{name:r_,preprocessEvent(r,o,i){const s=i.getOptions();Gl(Ri,s.stackParser,s.maxValueLength,n,t,r,o)}}},i_=o_;function s_(e){return[vm(),mm(),jh(),Oh(),Yh(),i_(),Lm(),e_()]}function a_(e={}){const t={defaultIntegrations:s_(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:A.SENTRY_RELEASE&&A.SENTRY_RELEASE.id?A.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function c_(){const e=typeof A.window<"u"&&A;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,o=A.location&&A.location.href||"",i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],s=!!r&&A===A.top&&i.some(c=>o.startsWith("".concat(c,"//"))),a=typeof e.nw<"u";return!!r&&!s&&!a}function u_(e={}){const t=a_(e);if(c_()){Mn(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}xe&&(gc()||y.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:od(t.stackParser||kh),integrations:nm(t),transport:t.transport||gh},r=am(rg,n);return t.autoSessionTracking&&f_(),r}function f_(){if(typeof A.document>"u"){xe&&y.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}aa({ignoreDuration:!0}),ca(),Fi(({from:e,to:t})=>{e!==void 0&&e!==t&&(aa({ignoreDuration:!0}),ca())})}const Aa=new WeakMap,Lo=new Map,Or={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function l_(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a}={traceFetch:Or.traceFetch,traceXHR:Or.traceXHR,trackFetchStreamPerformance:Or.trackFetchStreamPerformance,...t},c=typeof i=="function"?i:l=>!0,u=l=>g_(l,a),f={};n&&(e.addEventProcessor(l=>(l.type==="transaction"&&l.spans&&l.spans.forEach(p=>{if(p.op==="http.client"){const m=Lo.get(p.span_id);m&&(p.timestamp=m/1e3,Lo.delete(p.span_id))}}),l)),o&&ud(l=>{if(l.response){const p=Aa.get(l.response);p&&l.endTimestamp&&Lo.set(p,l.endTimestamp)}}),_c(l=>{const p=Um(l,c,u,f);if(l.response&&l.fetchData.__span&&Aa.set(l.response,l.fetchData.__span),p){const m=hu(l.fetchData.url),g=m?It(m).host:void 0;p.setAttributes({"http.url":m,"server.address":g})}s&&p&&xa(p)})),r&&pu(l=>{const p=h_(l,c,u,f);s&&p&&xa(p)})}function d_(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function xa(e){const{url:t}=F(e).data||{};if(!t||typeof t!="string")return;const n=Nn("resource",({entries:r})=>{r.forEach(o=>{d_(o)&&o.name.endsWith(t)&&(m_(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function p_(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function Ce(e=0){return((fe||performance.timeOrigin)+e)/1e3}function m_(e){const{name:t,version:n}=p_(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),fe?[...r,["http.request.redirect_start",Ce(e.redirectStart)],["http.request.fetch_start",Ce(e.fetchStart)],["http.request.domain_lookup_start",Ce(e.domainLookupStart)],["http.request.domain_lookup_end",Ce(e.domainLookupEnd)],["http.request.connect_start",Ce(e.connectStart)],["http.request.secure_connection_start",Ce(e.secureConnectionStart)],["http.request.connection_end",Ce(e.connectEnd)],["http.request.request_start",Ce(e.requestStart)],["http.request.response_start",Ce(e.responseStart)],["http.request.response_end",Ce(e.responseEnd)]]:r}function g_(e,t){const n=A.location&&A.location.href;if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch(s){return!1}const i=r.origin===o;return t?Tt(r.toString(),t)||i&&Tt(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?Tt(e,t):r}}function h_(e,t,n,r){const o=e.xhr,i=o&&o[Xt];if(!o||o.__sentry_own_request__||!i)return;const s=ze()&&t(i.url);if(e.endTimestamp&&s){const p=o.__sentry_xhr_span_id__;if(!p)return;const m=r[p];m&&i.status_code!==void 0&&(Cc(m,i.status_code),m.end(),delete r[p]);return}const a=hu(i.url),c=a?It(a).host:void 0,u=!!ae(),f=s&&u?dt({name:"".concat(i.method," ").concat(i.url),attributes:{type:"xhr","http.method":i.method,"http.url":a,url:i.url,"server.address":c,[Z]:"auto.http.browser",[Ot]:"http.client"}}):new fn;o.__sentry_xhr_span_id__=f.spanContext().spanId,r[o.__sentry_xhr_span_id__]=f;const l=$();return o.setRequestHeader&&n(i.url)&&l&&__(o,l,ze()&&u?f:void 0),f}function __(e,t,n){const r=q(),o=ke(),{traceId:i,spanId:s,sampled:a,dsc:c}={...o.getPropagationContext(),...r.getPropagationContext()},u=n&&ze()?Nc(n):Ai(i,s,a),f=Ac(c||(n?Dt(n):Zr(i,t)));v_(e,u,f)}function v_(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(zt,n)}catch(r){}}function hu(e){try{return new URL(e,A.location.origin).href}catch(t){return}}function y_(){A&&A.document?A.document.addEventListener("visibilitychange",()=>{const e=ae();if(!e)return;const t=oe(e);if(A.document.hidden&&t){const n="cancelled",{op:r,status:o}=F(t);xe&&y.log("[Tracing] Transaction: ".concat(n," -> since tab moved to the background, op: ").concat(r)),o||t.setStatus({code:Q,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):xe&&y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const S_="BrowserTracing",E_={...kr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Or},b_=(e={})=>{fp();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:o,enableStandaloneClsSpans:i},beforeStartSpan:s,idleTimeout:a,finalTimeout:c,childSpanTimeout:u,markBackgroundSpan:f,traceFetch:l,traceXHR:p,trackFetchStreamPerformance:m,shouldCreateSpanForRequest:g,enableHTTPTimings:h,instrumentPageLoad:O,instrumentNavigation:U}={...E_,...e},C=Hg({recordClsStandaloneSpans:i||!1});t&&dh(),r&&L.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?jg():n&&Bg(),o&&Gg();const G={name:void 0,source:void 0};function v(w,S){const R=S.op==="pageload",N=s?s(S):S,V=N.attributes||{};S.name!==N.name&&(V[at]="custom",N.attributes=V),G.name=N.name,G.source=V[at];const Y=Gc(N,{idleTimeout:a,finalTimeout:c,childSpanTimeout:u,disableAutoFinish:R,beforeSpanEnd:M=>{C(),Yg(M,{recordClsOnPageloadSpan:!i})}});function B(){["interactive","complete"].includes(A.document.readyState)&&w.emit("idleSpanEnableAutoFinish",Y)}return R&&A.document&&(A.document.addEventListener("readystatechange",()=>{B()}),B()),Y}return{name:S_,afterAllSetup(w){let S,R=A.location&&A.location.href;w.on("startNavigationSpan",N=>{$()===w&&(S&&!F(S).timestamp&&(xe&&y.log("[Tracing] Finishing current root span with op: ".concat(F(S).op)),S.end()),S=v(w,{op:"navigation",...N}))}),w.on("startPageLoadSpan",(N,V={})=>{if($()!==w)return;S&&!F(S).timestamp&&(xe&&y.log("[Tracing] Finishing current root span with op: ".concat(F(S).op)),S.end());const Y=V.sentryTrace||ka("sentry-trace"),B=V.baggage||ka("baggage"),M=Pd(Y,B);q().setPropagationContext(M),S=v(w,{op:"pageload",...N})}),w.on("spanEnd",N=>{const V=F(N).op;if(N!==oe(N)||V!=="navigation"&&V!=="pageload")return;const Y=q(),B=Y.getPropagationContext();Y.setPropagationContext({...B,sampled:B.sampled!==void 0?B.sampled:Nt(N),dsc:B.dsc||Dt(N)})}),A.location&&(O&&T_(w,{name:A.location.pathname,startTime:fe?fe/1e3:void 0,attributes:{[at]:"url",[Z]:"auto.pageload.browser"}}),U&&Fi(({to:N,from:V})=>{if(V===void 0&&R&&R.indexOf(N)!==-1){R=void 0;return}V!==N&&(R=void 0,w_(w,{name:A.location.pathname,attributes:{[at]:"url",[Z]:"auto.navigation.browser"}}))})),f&&y_(),o&&I_(a,c,u,G),t&&mh(),l_(w,{traceFetch:l,traceXHR:p,trackFetchStreamPerformance:m,tracePropagationTargets:w.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:g,enableHTTPTimings:h})}}};function T_(e,t,n){e.emit("startPageLoadSpan",t,n),q().setTransactionName(t.name);const r=ae();return(r&&F(r).op)==="pageload"?r:void 0}function w_(e,t){ke().setPropagationContext(Ur()),q().setPropagationContext(Ur()),e.emit("startNavigationSpan",t),q().setTransactionName(t.name);const n=ae();return(n&&F(n).op)==="navigation"?n:void 0}function ka(e){const t=ac("meta[name=".concat(e,"]"));return t?t.getAttribute("content"):void 0}function I_(e,t,n,r){let o;const i=()=>{const s="ui.action.click",a=ae(),c=a&&oe(a);if(c){const u=F(c).op;if(["navigation","pageload"].includes(u)){xe&&y.warn("[Tracing] Did not create ".concat(s," span because a pageload or navigation span is in progress."));return}}if(o&&(o.setAttribute(ri,"interactionInterrupted"),o.end(),o=void 0),!r.name){xe&&y.warn("[Tracing] Did not create ".concat(s," transaction because _latestRouteName is missing."));return}o=Gc({name:r.name,op:s,attributes:{[at]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};A.document&&addEventListener("click",i,{once:!1,capture:!0})}function A_(e){const t={...e};Kc(t,"svelte");const n=u_(t);return x_(),n}function x_(){let e;const t=n=>(e===void 0&&(e=k_()),e&&(n.modules={svelteKit:"latest",...n.modules}),n);t.id="svelteKitProcessor",Xp(t)}function k_(){return ac("div#svelte-announcer")!==null}var te=[];for(var Mo=0;Mo<256;++Mo)te.push((Mo+256).toString(16).slice(1));function P_(e,t=0){return(te[e[t+0]]+te[e[t+1]]+te[e[t+2]]+te[e[t+3]]+"-"+te[e[t+4]]+te[e[t+5]]+"-"+te[e[t+6]]+te[e[t+7]]+"-"+te[e[t+8]]+te[e[t+9]]+"-"+te[e[t+10]]+te[e[t+11]]+te[e[t+12]]+te[e[t+13]]+te[e[t+14]]+te[e[t+15]]).toLowerCase()}var vr,C_=new Uint8Array(16);function O_(){if(!vr&&(vr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vr(C_)}var R_=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Pa={randomUUID:R_};function N_(e,t,n){if(Pa.randomUUID&&!t&&!e)return Pa.randomUUID();e=e||{};var r=e.random||(e.rng||O_)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,P_(r)}const Dn={session:window.sessionStorage,local:window.localStorage},$i=()=>"pin-tipp";function D_(){M_()||(Dn.local=Ca()),F_()||(Dn.session=Ca())}function _u(e,t,n){try{Dn[e].setItem($i()+"-"+t,JSON.stringify(n))}catch(r){console.error(r)}}function Z_(e,t){Dn[e].removeItem($i()+"-"+t)}function L_(e,t,n){const r=JSON.parse(Dn[e].getItem($i()+"-"+t));return r==null?n!==void 0?(_u(e,t,n),n):void 0:r}let yr=null;function M_(){if(yr==null)try{window.localStorage.setItem("isLocalStorageSupported","test"),window.localStorage.removeItem("isLocalStorageSupported"),yr=!0}catch(e){yr=!1}return yr}let Sr=null;function F_(){if(Sr==null)try{window.sessionStorage.setItem("isSessionStorageSupported","test"),window.sessionStorage.removeItem("isSessionStorageSupported"),Sr=!0}catch(e){Sr=!1}return Sr}const Ca=()=>{const e={};return{storage:e,getItem:s=>e[s]==null?null:e[s],setItem:(s,a)=>{e[s]=a},removeItem:s=>{delete e[s]},length:0,key:s=>""}};D_();const ev="open-question-id-before-login-v2",$_=()=>{const e={SENTRY_DSN:"https://ef0a76a390012886a480c557d8ba66dc@o124059.ingest.us.sentry.io/4507418041516032",DEBUG_SENTRY:vi("pin-debug-sentry"),FULL_VERSION:"sha-b8fe770"};A_({debug:e.DEBUG_SENTRY,dsn:e.SENTRY_DSN,integrations:[b_(),Om({levels:["error"]})],autoSessionTracking:!0,normalizeMaxBreadth:10,normalizeDepth:3,sampleRate:.2,tracesSampleRate:.05,release:e.FULL_VERSION,environment:"prod"}),Yp({id:U_()})},U_=function(){const e=L_("session","userid");if(e)return e;const t=N_();return _u("session","userid",t),t},H_=async()=>{Ju(),Al(),$_();const e=document.getElementById("appentry"),t=(await zu(async()=>{const{default:n}=await import("./App-C4HrIXzr.js");return{default:n}},__vite__mapDeps([0,1]))).default;return new t({target:e})};H_();export{ls as _,B_ as __vite_legacy_guard,Ue as a,W_ as b,j_ as c,z_ as d,V_ as e,$o as f,q_ as g,Y_ as h,G_ as i,ue as j,qc as k,L_ as l,_u as m,X_ as n,Ku as o,zu as p,U_ as q,Z_ as r,J_ as s,Q_ as t,ev as u,K_ as v};
//# sourceMappingURL=index-B6N3NhXA.js.map
