1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/car-van-rental.test-7_YBEbEc.js","assets/trial-form-modal-B0I0QKY0.js","assets/posthog-CGdSeGPJ.js","assets/test.DNmyFkvJ-pG4u9U80.js","assets/cookie-consent-DwOTKKQk.js","assets/esm-BK5EzuP0.js","assets/en-14foDL-F.js","assets/car-van-rental-D_NzoOuA.js","assets/cta-banner-gIEUJ2Iw.js","assets/sales-agents-CF4p1EaC.js","assets/top-utility-bar-Bk5eG48J.js","assets/hero-BNl7J9uP.js","assets/circle-play-CVzHrQep.js","assets/eyebrow-DhNu0P3Z.js","assets/feature-grid-D5hJjzsH.js","assets/online-reservations-1y8EDp9B.js","assets/rental-agreement-BlRvVq6W.js","assets/reservations-calendar-B5h4JSaW.js","assets/integrations-grid-BtXpJKxt.js","assets/Xero-ruRlH_wD.js","assets/page-seo-B7AJdURU.js","assets/testimonials-strip-vrErxEWr.js","assets/quote-y3Hm8Btf.js","assets/feature-block-image-left-CjkMbq6-.js","assets/feature-block-image-right-CTOudAJD.js","assets/case-studies.test--TWoiMDp.js","assets/case-studies-C80dwy4V.js","assets/case-studies-B8PYuXj0.js","assets/bike-up-DSSmJs8p.js","assets/boats-IDnmEJhj.js","assets/online-booking-CfxZRssz.js","assets/heavy-duty-Dr-nc5SP.js","assets/dashboard-CL2Ob81B.js","assets/city-bg-lYzPJDGM.js","assets/secondary-site-header-CRqOiqTM.js","assets/case-study.test-DuHyywOM.js","assets/case-study-BZG9oO_T.js","assets/embla-carousel-react.esm-DlRBCaCo.js","assets/error-page-BUTMeurL.js","assets/circle-check-big-BMcsy2jE.js","assets/data-sharing-consent.test-DawLJiS2.js","assets/axle-data-sharing-consent-Dh7t7iue.js","assets/legal-page-content-BXelUSTL.js","assets/carjet-data-sharing-consent-wzMwrCKv.js","assets/rentcars-data-sharing-consent-hDJrJD6l.js","assets/zubie-data-sharing-consent-CZolgL_P.js","assets/dpa-subprocessor.test-BvNQ_aY1.js","assets/dpa-subprocessor-B6GgbMgV.js","assets/dpa.test-DMORv6Am.js","assets/dpa-BsbFi7jt.js","assets/equipment-rental.test-BJuxy1Yu.js","assets/equipment-rental-DoAFnr5x.js","assets/markets-showcase-BVxYHU3T.js","assets/page-hero-DGyzZ_Sc.js","assets/error-pages.test-D-ukraNN.js","assets/error-404-CYh4Memt.js","assets/error-500-BAA9wClc.js","assets/faqs.test-CApHmm8n.js","assets/faqs-Cu_aGuBj.js","assets/fleet-management.test-D_1wbAhC.js","assets/fleet-management-CdG2j_7o.js","assets/checkout-B77Pmgup.js","assets/gdpr.test-D1J_7wvh.js","assets/gdpr-DpHZlVd7.js","assets/home.test-BNpv2rAr.js","assets/home-dhux42Nr.js","assets/secondary-button-dBnbM_Bv.js","assets/integrations.test-D5J4rPi0.js","assets/integrations-COLGlcyU.js","assets/motorbikes-boats.test-BD9PehOO.js","assets/motorbikes-boats-C2aycXSR.js","assets/online-reservations.test-6J0ewTN9.js","assets/online-reservations-CPK3Icwf.js","assets/pages.smoke.test-CGp1ivlQ.js","assets/pricing-C4iaCvJ7.js","assets/self-service-car-rental-CAzhoQw7.js","assets/telematics-B0meadJc.js","assets/privacy-policy-DGsiVSSA.js","assets/terms-of-service-D8rLU6Ru.js","assets/pricing.test-K4HmNW0I.js","assets/privacy-policy.test-CiixWnL-.js","assets/sales-agent.test-WAOZxdnt.js","assets/sales-agent-B6LirYUd.js","assets/security.test-CV8bvsLS.js","assets/security-DKFjoiA8.js","assets/self-service-car-rental.test-BC_DK9H9.js","assets/telematics.test-BZQXnPpV.js","assets/terms-of-service.test-ClTWxEtc.js","assets/axle-data-sharing-consent-Zyfdw3IK.js","assets/car-van-rental-ML4uGEt0.js","assets/carjet-data-sharing-consent-2w-j-Ed5.js","assets/case-studies-BuX0ep1f.js","assets/case-study-DP9e20es.js","assets/dpa-subprocessor-B_JkiScA.js","assets/dpa-DqIFIPXj.js","assets/equipment-rental-D_qI1-m-.js","assets/error-404-CPxh1H5p.js","assets/error-500-Cvg3iasW.js","assets/faqs-1PM55MtE.js","assets/fleet-management-5dbXUGxX.js","assets/gdpr-Bf_RuO7Z.js","assets/home-DCScoCax.js","assets/integrations-3hNssXpR.js","assets/motorbikes-boats-DHV-P2_3.js","assets/online-reservations-DaMBT3O4.js","assets/pricing-C4udIATr.js","assets/privacy-policy-CuXbLKZk.js","assets/rentcars-data-sharing-consent-BRhU5kCY.js","assets/sales-agent-CNWzRnoe.js","assets/security-CybluaK_.js","assets/self-service-car-rental-Ds1L86d_.js","assets/staging-trial-CZg_5Wnh.js","assets/telematics-Dzznwcin.js","assets/terms-of-service-nVdJF4WK.js","assets/zubie-data-sharing-consent-mtwQ5MA3.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`hq-rental-software-website@9ad5d13`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:hq-rental-software-website":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d937df06-24ba-4696-9483-350b8884fddc`,e._sentryDebugIdIdentifier=`sentry-dbid-d937df06-24ba-4696-9483-350b8884fddc`)}catch{}})();import{l as e,n as t,o as n,t as r}from"./posthog-CGdSeGPJ.js";import{c as i,d as a,h as o,n as s}from"./cookie-consent-DwOTKKQk.js";import{t as c}from"./en-14foDL-F.js";var l=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,u=globalThis,d=`10.53.1`;function f(){return p(u),u}function p(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.53.1`,t[d]=t[`10.53.1`]||{}}function m(e,t,n=u){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[d]=r[`10.53.1`]||{};return i[e]||(i[e]=t())}var h=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],g=`Sentry Logger `,_={};function v(e){if(!(`console`in u))return e();let t=u.console,n={},r=Object.keys(_);
2r.forEach(e=>{let r=_[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function ee(){b().enabled=!0}function te(){b().enabled=!1}function ne(){return b().enabled}function re(...e){y(`log`,...e)}function ie(...e){y(`warn`,...e)}function ae(...e){y(`error`,...e)}function y(e,...t){l&&ne()&&v(()=>{u.console[e](`${g}[${e}]:`,...t)})}function b(){return l?m(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var x={enable:ee,disable:te,isEnabled:ne,log:re,warn:ie,error:ae},oe=50,se=/\(error: (.*)\)/,ce=/captureMessage|captureException/;function le(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(` 3`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=se.test(n)?n.replace(se,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=oe+r)break}}return de(i.slice(r))}}function ue(e){return Array.isArray(e)?le(...e):e}function de(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(fe(t).function||``)&&t.pop(),t.reverse(),ce.test(fe(t).function||``)&&(t.pop(),ce.test(fe(t).function||``)&&t.pop()),t.slice(0,oe).map(e=>({...e,filename:e.filename||fe(t).filename,function:e.function||`?`}))}function fe(e){return e[e.length-1]||{}}var pe=`<anonymous>`;function S(e){try{return!e||typeof e!=`function`?pe:e.name||pe}catch{return pe}}function me(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function he(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var ge={},_e={};function ve(e,t){return ge[e]=ge[e]||[],ge[e].push(t),()=>{let n=ge[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function ye(e,t){if(!_e[e]){_e[e]=!0;try{t()}catch(t){l&&x.error(`Error while instrumenting ${e}`,t)}}}function C(e,t){let n=e&&ge[e];if(n)for(let r of n)try{r(t)}catch(t){l&&x.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${S(r)}\nError:`,t)}}var be=null;function xe(e){let t=`error`;ve(t,e),ye(t,Se)}function Se(){be=u.onerror,u.onerror=function(e,t,n,r,i){return C(`error`,{column:r,error:i,line:n,msg:e,url:t}),be?be.apply(this,arguments):!1},u.onerror.__SENTRY_INSTRUMENTED__=!0}var Ce=null;function we(e){let t=`unhandledrejection`;ve(t,e),ye(t,Te)}function Te(){Ce=u.onunhandledrejection,u.onunhandledrejection=function(e){return C(`unhandledrejection`,e),Ce?Ce.apply(this,arguments):!0},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Ee=Object.prototype.toString;function De(e){switch(Ee.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return w(e,Error)}}function Oe(e,t){return Ee.call(e)===`[object ${t}]`}function ke(e){return Oe(e,`ErrorEvent`)}function Ae(e){return Oe(e,`DOMError`)}function je(e){return Oe(e,`DOMException`)}function Me(e){return Oe(e,`String`)}function Ne(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Pe(e){return e===null||Ne(e)||typeof e!=`object`&&typeof e!=`function`}function Fe(e){return Oe(e,`Object`)}function Ie(e){return typeof Event<`u`&&w(e,Event)}function Le(e){return typeof Element<`u`&&w(e,Element)}function Re(e){return Oe(e,`RegExp`)}function ze(e){return!!(e?.then&&typeof e.then==`function`)}function Be(e){return Fe(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function w(e,t){try{return e instanceof t}catch{return!1}}function Ve(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function He(e){return typeof Request<`u`&&w(e,Request)}var Ue=u,We=80;function T(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||We;for(;n&&i++<5&&(o=Ge(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Ge(e,t){let n=e,r=[];if(!n?.tagName)return``;if(Ue.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());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
3if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&Me(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Ke(){try{return Ue.document.location.href}catch{return``}}function qe(e,t=5){if(!Ue.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function E(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Je(i,r);try{e[t]=i}catch{l&&x.log(`Failed to replace method "${t}" in object`,e)}}function D(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{l&&x.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Je(e,t){try{e.prototype=t.prototype=t.prototype||{},D(e,`__sentry_original__`,t)}catch{}}function Ye(e){return e.__sentry_original__}function Xe(e){if(De(e))return{message:e.message,name:e.name,stack:e.stack,...Qe(e)};if(Ie(e)){let t={type:e.type,target:Ze(e.target),currentTarget:Ze(e.currentTarget),...Qe(e)};return typeof CustomEvent<`u`&&w(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Ze(e){try{return Le(e)?T(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Qe(e){return typeof e==`object`&&e?Object.fromEntries(Object.entries(e)):{}}function $e(e){let t=Object.keys(Xe(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var et;function tt(e){if(et!==void 0)return et?et(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=u;return t in n&&typeof n[t]==`function`?(et=n[t],et(e)):(et=null,e())}function nt(){return tt(()=>Math.random())}function rt(){return tt(()=>Date.now())}function it(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function at(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Ve(r)?n.push(he(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function ot(e,t,n=!1){return Me(e)?Re(t)?t.test(e):Me(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function O(e,t=[],n=!1){for(let r of t)if(ot(e,r,n))return!0;return!1}function st(){let e=u;return e.crypto||e.msCrypto}var ct;function lt(){return nt()*16}function k(e=st()){try{if(e?.randomUUID)return tt(()=>e.randomUUID()).replace(/-/g,``)}catch{}return ct||=`10000000100040008000100000000000`,ct.replace(/[018]/g,e=>(e^(lt()&15)>>e/4).toString(16))}function ut(e){return e.exception?.values?.[0]}function dt(e){let{message:t,event_id:n}=e;if(t)return t;let r=ut(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function ft(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function pt(e,t){let n=ut(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function mt(e){if(ht(e))return!0;try{D(e,`__sentry_captured__`,!0)}catch{}return!1}function ht(e){try{return e.__sentry_captured__}catch{}}var gt=1e3;function _t(){return rt()/gt}function vt(){let{performance:e}=u;if(!e?.now||!e.timeOrigin)return _t;let t=e.timeOrigin;return()=>(t+tt(()=>e.now()))/gt}var yt;function A(){return(yt??=vt())()}var bt=null;function xt(){let{performance:e}=u;if(!e?.now)return;let t=3e5,n=tt(()=>e.now()),r=rt(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function j(){return bt===null&&(bt=xt()),bt}function St(e){let t=A(),n={sid:k(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>Tt(n)};return e&&Ct(n,e),n}function Ct(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||A(),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:k()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${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{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
3ypeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function wt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),Ct(e,n)}function Tt(e){return{sid:`${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`?`${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}}}function Et(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Et(r[e],t[e],n-1));return r}function Dt(){return k()}function Ot(){return k().substring(16)}var kt=`_sentrySpan`;function At(e,t){t?D(e,kt,t):delete e[kt]}function jt(e){return e[kt]}var Mt=100,Nt=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Dt(),sampleRand:nt()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),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._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,At(t,jt(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ct(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Fe(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,At(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Dt(),sampleRand:nt(
3)}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Mt;if(n<=0)return this;let r={timestamp:_t(),...e,message:e.message?it(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:jt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Et(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||k();if(!this._client)return l&&x.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||k();if(!this._client)return l&&x.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||k();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(l&&x.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Pt(){return m(`defaultCurrentScope`,()=>new Nt)}function Ft(){return m(`defaultIsolationScope`,()=>new Nt)}var It=e=>e instanceof Promise&&!e[Lt],Lt=Symbol(`chained PromiseLike`),Rt=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return It(r)&&It(e)?r:zt(e,r)},zt=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Lt]:!0}),t},Bt=class{constructor(e,t){let n;n=e||new Nt;let r;r=t||new Nt,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return ze(n)?Rt(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Vt(){let e=p(f());return e.stack=e.stack||new Bt(Pt(),Ft())}function Ht(e){return Vt().withScope(e)}function Ut(e,t){let n=Vt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Wt(e){return Vt().withScope(()=>e(Vt().getIsolationScope()))}function Gt(){return{withIsolationScope:Wt,withScope:Ht,withSetScope:Ut,withSetIsolationScope:(e,t)=>Wt(t),getCurrentScope:()=>Vt().getScope(),getIsolationScope:()=>Vt().getIsolationScope()}}function Kt(e){let t=p(e);return t.acs?t.acs:Gt()}function qt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function Jt(e,t){let{value:n,unit:r}=qt(e)?e:{value:e,unit:void 0},i=Xt(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};
3if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function Yt(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=Jt(i,t);e&&(n[r]=e)}return n}function Xt(e){let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}var Zt;function Qt(){return Zt?.()}function $t(){return Zt!==void 0}function M(){return Kt(f()).getCurrentScope()}function N(){return Kt(f()).getIsolationScope()}function en(){return m(`globalScope`,()=>new Nt)}function tn(...e){let t=Kt(f());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function P(){return M().getClient()}function nn(e){let t=Qt();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||Ot()};return r&&(a.parent_span_id=r),a}var rn=`sentry.source`,an=`sentry.sample_rate`,on=`sentry.previous_trace_sample_rate`,sn=`sentry.op`,F=`sentry.origin`,cn=`sentry.idle_span_finish_reason`,ln=`sentry.measurement_unit`,un=`sentry.measurement_value`,dn=`sentry.custom_span_name`,fn=`sentry.profile_id`,pn=`sentry.exclusive_time`,mn=`sentry.link.type`,hn=`gen_ai.conversation.id`;function gn(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function _n(e,t){e.setAttribute(`http.response.status_code`,t);let n=gn(t);n.message!==`unknown_error`&&e.setStatus(n)}function vn(e){try{let t=u.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function yn(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var bn=`_sentryScope`,xn=`_sentryIsolationScope`;function Sn(e,t,n){e&&(D(e,xn,vn(n)),D(e,bn,t))}function Cn(e){let t=e;return{scope:t[bn],isolationScope:yn(t[xn])}}var wn=`sentry-`;function Tn(e){let t=Dn(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function En(e){if(e)return kn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${wn}${t}`]=n),e),{}))}function Dn(e){if(!(!e||!Me(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=On(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):On(e)}function On(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function kn(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(l&&x.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}var An=/^o(\d+)\./,jn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Mn(e){return e===`http`||e===`https`}function Nn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Pn(e){let t=jn.exec(e);if(!t){v(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Fn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Fn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function In(e){if(!l)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(x.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Mn(r)?t&&isNaN(parseInt(t,10))?(x.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(x.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(x.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ln(e){return e.match(An)?.[1]}function Rn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Ln(n)),r}function zn(e){let t=typeof e==`string`?Pn(e):Fn(e);if(!(!t||!In(t)))return t}function Bn(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var Vn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function Hn(e){if(!e)return;let t=e.match(Vn);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 Un(e,t){let n=Hn(e),r=Tn(t);
3if(!n?.traceId)return{traceId:Dt(),sampleRand:nt()};let i=Kn(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function Wn(e=Dt(),t=Ot(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function Gn(e=Dt(),t=Ot(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function Kn(e,t){let n=Bn(t?.sample_rand);if(n!==void 0)return n;let r=Bn(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?nt()*r:r+nt()*(1-r):nt()}var qn=!1;function Jn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=L(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Yn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:L(e).parent_span_id,a=Cn(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||Ot():t,trace_id:n}}function Xn(e){let{traceId:t,spanId:n}=e.spanContext();return Wn(t,n,or(e))}function Zn(e){let{traceId:t,spanId:n}=e.spanContext();return Gn(t,n,or(e))}function Qn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function $n(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function I(e){return typeof e==`number`?er(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?er(e.getTime()):A()}function er(e){return e>9999999999?e/1e3:e}function L(e){if(ar(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(ir(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:nr(e),start_timestamp:I(i),timestamp:I(o)||void 0,status:sr(s),op:r[sn],origin:r[F],links:Qn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function tr(e){if(ar(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(ir(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:nr(e),start_timestamp:I(i),end_timestamp:I(o),is_segment:e===mr(e),status:cr(s),attributes:r,links:$n(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===mr(e)}}function nr(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function rr(e){return{...e,attributes:Yt(e.attributes),links:e.links?.map(e=>({...e,attributes:Yt(e.attributes)}))}}function ir(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function ar(e){return typeof e.getSpanJSON==`function`}function or(e){let{traceFlags:t}=e.spanContext();return t===1}function sr(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function cr(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}var lr=`_sentryChildSpans`,ur=`_sentryRootSpan`;function dr(e,t){D(t,ur,e[ur]||e),e[lr]?e[lr].add(t):D(e,lr,new Set([t]))}function fr(e,t){e[lr]&&e[lr].delete(t)}function pr(e){let t=new Set;function n(e){if(!t.has(e)&&or(e)){t.add(e);let r=e[lr]?Array.from(e[lr]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var R=mr;function mr(e){return e[ur]||e}function z(){let e=Kt(f());return e.getActiveSpan?e.getActiveSpan():jt(M())}function hr(){qn||=(v(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}var gr=!1;function _r(){if(gr)return;function e(){let e=z(),t=e&&R(e);if(t){let e=`internal_error`;l&&x.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}e.tag=`sentry_tracingErrorCallback`,gr=!0,xe(e),we(e)}function B(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||P()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function vr(e){x.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function yr(e,t){if(!t?.length)return!1;
3for(let n of t){if(Sr(n)){if(e.description&&ot(e.description,n))return l&&vr(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=n.name?e.description&&ot(e.description,n.name):!0,i=n.op?e.op&&ot(e.op,n.op):!0,a=n.attributes?Object.entries(n.attributes).every(([t,n])=>br(e.attributes?.[t],n)):!0;if(r&&i&&a)return l&&vr(e),!0}return!1}function br(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?ot(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function xr(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Sr(e){return typeof e==`string`||e instanceof RegExp}var Cr=`production`,wr=`_frozenDsc`;function Tr(e,t){D(e,wr,t)}function Er(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Rn(t)};return t.emit(`createDsc`,i),i}function Dr(e,t){let n=t.getPropagationContext();return n.dsc||Er(n.traceId,e)}function Or(e){let t=P();if(!t)return{};let n=R(e),r=L(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[wr];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Tn(l);if(u)return s(u);let d=Er(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),B()&&(d.sampled=String(or(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??Cn(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var V=class{constructor(e={}){this._traceId=e.traceId||Dt(),this._spanId=e.spanId||Ot(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function kr(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}var Ar=Symbol.for(`sentry.skipNormalization`),jr=Symbol.for(`sentry.overrideNormalizationDepth`);function Mr(e){return!!e[Ar]}function Nr(e){let t=e[jr];return typeof t==`number`?t:void 0}function Pr(e,t=100,n=1/0){try{return Ir(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Fr(e,t=3,n=100*1024){let r=Pr(e,t);return Br(r)>n?Fr(e,t-1,n):r}function Ir(e,t,n=1/0,r=1/0,i=Vr()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Lr(e,t);if(!s.startsWith(`[object `))return s;if(Mr(t))return t;let c=Nr(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return Ir(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Xe(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=Ir(e,t,l-1,r,i),f++}return o(t),d}function Lr(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(Ve(t))return he(t);if(Be(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${S(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=Rr(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Rr(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function zr(e){return~-encodeURI(e).split(/%..|./).length}function Br(e){return zr(JSON.stringify(e))}function Vr(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function Hr(e,t=[]){return[e,t]}function Ur(e,t){let[n,r]=e;return[n,[...r,t]]}function Wr(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Gr(e,t){return Wr(e,(e,n)=>t.includes(n))}function Kr(e){let t=p(u);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function qr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Kr(r),e]:r.push(typeof e==`string`?Kr(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Pr(n))}i(e)}}return typeof r==`string`?r:Jr(r)}function Jr(e){let t=e.reduce((e,t)=>
3e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Yr(e){return[{type:`span`},e]}function Xr(e){let t=typeof e.data==`string`?Kr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Zr={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function Qr(e){return e in Zr}function $r(e){return Qr(e)?Zr[e]:e}function ei(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ti(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Nn(r)},...i&&{trace:i}}}function ni(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function ri(e,t,n,r){let i=ei(n);return Hr({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Nn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function ii(e,t,n,r){let i=ei(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;ni(e,n?.sdk);let o=ti(e,i,r,t);return delete e.sdkProcessingMetadata,Hr(o,[[{type:a},e]])}function ai(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=Or(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:Nn(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=L(e);return!yr({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=L(e);return(kr(s)?t:s(t))||(hr(),t)}:L,f=[];for(let e of l){let t=d(e);t&&f.push(Yr(t))}return Hr(o,f)}function oi(e){if(!l)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=L(e),{spanId:i}=e.spanContext(),a=or(e),o=R(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!s){let{op:e,description:t}=L(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}x.log(`${c} 4 ${u.join(` 5 `)}`)}function si(e){if(!l)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=L(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${R(e)===e?`root `:``}span "${t}" with ID ${r}`;x.log(i)}function ci(e,t,n,r=z()){let i=r&&R(r);i&&(l&&x.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[un]:t,[ln]:n}))}function li(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[ln],i=n[un];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function H(e){return e.getOptions().traceLifecycle===`stream`}var ui=1e3,di=class{constructor(e={}){this._traceId=e.traceId||Dt(),this._spanId=e.spanId||Ot(),this._startTime=e.startTimestamp||A(),this._links=e.links,this._attributes={},this.setAttributes({[F]:`manual`,[sn]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=I(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(rn,`custom`),this}end(e){this._endTime||(this._endTime=I(e),si(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[sn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:sr(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[F],profile_id:this._attributes[fn],exclusive_time:this._attributes[pn],measurements:li(this._events),is_segment:this._isStandaloneSpan&&R(this)===this||void 0,segment_id:this._isStandaloneSpan?R(this).spanContext().spanId:void 0,links:Qn(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===R(this),status:cr(this._status),attributes:this._attributes,links:$n(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){l&&x.log(`[Tracing] Adding an event to span:`,e);let r=fi(t)?t:n||A(),i=fi(t)?{}:t||{},a={name:e,time:I(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=P();if(e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this)),!(this._isStandaloneSpan||this===R(this)))return;if(this._isStandaloneSpan){this._sampled?hi(ai([this],e)):(l&&x.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}else if(e&&H(e)){e.emit(`afterSegmentSpanEnd`,this);return}let t=this._convertSpanToTransaction();t&&(Cn(this).scope||M()).captureEvent(t)}_convertSpanToTransaction(){if(!pi(L(this)))return;this._name||=(l&&x.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=Cn(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=pr(this).filter(e=>e!==this&&!mi(e)).map(e=>L(e)).filter(pi),i=this._attributes[rn];delete this._attributes[dn];let a=!1;
5r.forEach(e=>{delete e.data[dn],e.op?.startsWith(`gen_ai.`)&&(a=!0)});let o={contexts:{trace:Jn(this)},spans:r.length>ui?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,ui):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:Or(this),hasGenAiSpans:a},request:n,...i&&{transaction_info:{source:i}}},s=li(this._events);return s&&Object.keys(s).length&&(l&&x.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(s,void 0,2)),o.measurements=s),o}};function fi(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function pi(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function mi(e){return e instanceof di&&e.isStandaloneSpan()}function hi(e){let t=P();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function gi(e,t,n){if(!B(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=Bn(i);if(a===void 0)return l&&x.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return l&&x.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||l&&x.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var _i=`__SENTRY_SUPPRESS_TRACING__`;function vi(e){let t=Si();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=xi(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>tn(e.scope,t):i===void 0?e=>e():e=>yi(i,e))(()=>{let t=M(),a=Ti(t,i),o=P();return e.onlyIfParent&&!a?(o?.recordDroppedEvent(`no_parent_span`,`span`),new V):bi({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function yi(e,t){let n=Si();return n.withActiveSpan?n.withActiveSpan(e,t):tn(n=>(At(n,e||void 0),t(n)))}function bi({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!B()){let r=new V;return(n||!e)&&Tr(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...Or(r)}),r}let i=P();if(Ei(i,t))return Di(r)||i?.recordDroppedEvent(`ignored`,`span`),new V({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});let a=N(),o;if(e&&!n)o=wi(e,r,t),dr(e,o);else if(e){let n=Or(e),{traceId:i,spanId:a}=e.spanContext(),s=or(e);o=Ci({traceId:i,parentSpanId:a,...t},r,s),Tr(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=Ci({traceId:e,parentSpanId:i,...t},r,s),n&&Tr(o,n)}return oi(o),Sn(o,r,a),o}function xi(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=I(e.startTime),delete n.startTime,n}return t}function Si(){return Kt(f())}function Ci(e,t,n){let r=P(),i=r?.getOptions()||{},{name:a=``}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit(`beforeSampling`,o,{decision:!1});let s=o.parentSampled??n,c=o.spanAttributes,u=t.getPropagationContext(),d=Di(t),[f,p,m]=d?[!1]:gi(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:Bn(u.dsc?.sample_rate)},u.sampleRand),h=new di({...e,attributes:{[rn]:`custom`,[an]:p!==void 0&&m?p:void 0,...c},sampled:f});return!f&&r&&!d&&(l&&x.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),r.recordDroppedEvent(`sample_rate`,H(r)?`span`:`transaction`)),r&&r.emit(`spanStart`,h),h}function wi(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=Di(t),o=a?!1:or(e),s=o?new di({...n,parentSpanId:r,traceId:i,sampled:o}):new V({traceId:i});dr(e,s);let c=P();return c?(H(c)&&s instanceof V&&(e instanceof V&&e.dropReason?(s.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,`span`)):a||(s.dropReason=`sample_rate`,c.recordDroppedEvent(`sample_rate`,`span`))),c.emit(`spanStart`,s),n.endTimestamp&&(c.emit
5(`spanEnd`,s),c.emit(`afterSpanEnd`,s)),s):s}function Ti(e,t){if(t)return t;if(t===null)return;let n=jt(e);if(!n)return;let r=P();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?R(n):n}function Ei(e,t){let n=e?.getOptions().ignoreSpans;return!e||!H(e)||!n?.length?!1:yr({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function Di(e){return e.getScopeData().sdkProcessingMetadata[_i]===!0}var Oi={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},ki=`heartbeatFailed`,Ai=`idleTimeout`,ji=`finalTimeout`,Mi=`externalFinish`;function Ni(e,t={}){let n=new Map,r=!1,i,a=Mi,o=!t.disableAutoFinish,s=[],{idleTimeout:c=Oi.idleTimeout,finalTimeout:u=Oi.finalTimeout,childSpanTimeout:d=Oi.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,m=P();if(!m||!B()){let e=new V;return Tr(e,{sample_rate:`0`,sampled:`false`,...Or(e)}),e}let h=M(),g=z(),_=Pi(e);_.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),t instanceof V)return;let[r,...i]=n,a=I(r||A()),o=pr(_).filter(e=>e!==_),s=L(_);if(!o.length||!p)return ie(a),Reflect.apply(e,t,[a,...i]);let c=m.getOptions().ignoreSpans,l=o?.reduce((e,t)=>{let n=L(t);return!n.timestamp||c&&yr({description:n.description,op:n.op,attributes:n.data},c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=s.start_timestamp,h=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(a,l||1/0)));return ie(h),Reflect.apply(e,t,[h,...i])}});function v(){i&&=(clearTimeout(i),void 0)}function ee(e){v(),i=setTimeout(()=>{!r&&n.size===0&&o&&(a=Ai,_.end(e))},c)}function te(e){i=setTimeout(()=>{!r&&o&&(a=ki,_.end(e))},d)}function ne(e){v(),n.set(e,!0),te(A()+d/1e3)}function re(e){n.has(e)&&n.delete(e),n.size===0&&ee(A()+c/1e3)}function ie(e){r=!0,n.clear(),s.forEach(e=>e()),At(h,g);let t=L(_),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||_.setAttribute(cn,a);let o=t.status;(!o||o===`unknown`)&&_.setStatus({code:1}),x.log(`[Tracing] Idle span "${t.op}" finished`);let d=pr(_).filter(e=>e!==_),f=0;d.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),l&&x.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=L(t),i=r<=e,a=(u+c)/1e3,o=n-r<=a;if(l){let e=JSON.stringify(t,void 0,2);i?o||x.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):x.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&(fr(_,t),f++)}),f>0&&_.setAttribute(`sentry.idle_span_discarded_spans`,f)}return s.push(m.on(`spanStart`,e=>{r||e===_||L(e).timestamp||e instanceof di&&e.isStandaloneSpan()||pr(_).includes(e)&&ne(e.spanContext().spanId)})),s.push(m.on(`spanEnd`,e=>{r||re(e.spanContext().spanId)})),s.push(m.on(`idleSpanEnableAutoFinish`,e=>{e===_&&(o=!0,ee(),n.size&&te())})),t.disableAutoFinish||ee(),setTimeout(()=>{r||(_.setStatus({code:2,message:`deadline_exceeded`}),a=ji,_.end())},u),_}function Pi(e){let t=vi(e);return At(M(),t),l&&x.log(`[Tracing] Started span is an idle span`),t}function Fi(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;zi(e,t),r&&Hi(e,r),Ui(e,n),Bi(e,i),Vi(e,a)}function Ii(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;Li(e,`extra`,n),Li(e,`tags`,r),Li(e,`attributes`,i),Li(e,`user`,a),Li(e,`contexts`,o),e.sdkProcessingMetadata=Et(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Li(e,t,n){e[t]=Et(e[t],n,1)}function Ri(e,t){let n=en().getScopeData();return e&&Ii(n,e.getScopeData()),t&&Ii(n,t.getScopeData()),n}function zi(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Bi(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Vi(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Hi(e,t){e.contexts={trace:Yn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Or(t),...e.sdkProcessingMetadata};let n=L(R(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Ui(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var Wi=`thismessage:/`;function Gi(e){return`isRelative`in e}function Ki(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?Wi:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function qi(e){if(Gi(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function Ji(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Yi(e){return e.split(/[?#]/,1)[0]}function Xi(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function Zi(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var Qi=0,$i=1,ea=2;function ta(e){return new ra(t=>{t(e)})}function na(e){return new ra((t,n)=>{n(e)})}var ra=class e{constructor(e){this._state=Qi,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
5{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Qi)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===$i&&e[1](this._value),this._state===ea&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Qi){if(ze(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t($i,e)},r=e=>{t(ea,e)};try{e(n,r)}catch(e){r(e)}}};function ia(e,t,n,r=0){try{let i=aa(t,n,e,r);return ze(i)?i:ta(i)}catch(e){return na(e)}}function aa(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return l&&a===null&&x.log(`Event processor "${i.id||`?`}" dropped event`),ze(a)?a.then(e=>aa(e,t,n,r+1)):aa(a,t,n,r+1)}var oa,sa,ca,la;function ua(e){let t=u._sentryDebugIds,n=u._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(la&&r.length===sa&&i.length===ca)return la;sa=r.length,ca=i.length,la={},oa||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=oa?.[r];if(i&&la&&t)la[i[0]]=t,oa&&(oa[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&la&&oa){la[i]=t,oa[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),la}function da(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||k(),timestamp:t.timestamp||_t()},l=n.integrations||e.integrations.map(e=>e.name);fa(c,e),ha(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&pa(c,e.stackParser);let u=_a(r,n.captureContext);n.mechanism&&pt(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Ri(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Fi(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?ta(c):ia(m,c,n)).then(e=>(e&&ma(e),typeof o==`number`&&o>0?ga(e,o,s):e))}function fa(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=it(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=it(e.value,a)})}function pa(e,t){let n=ua(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function ma(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function ha(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ga(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Pr(e.data,t,n)}}))},...e.user&&{user:Pr(e.user,t,n)},...e.contexts&&{contexts:Pr(e.contexts,t,n)},...e.extra&&{extra:Pr(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Pr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Pr(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Pr(e.contexts.flags,3,n)),r}function _a(e,t){if(!t)return e;let n=e?e.clone():new Nt;return n.update(t),n}function va(e){if(e)return ya(e)||xa(e)?{captureContext:e}:e}function ya(e){return e instanceof Nt||typeof e==`function`}var ba=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function xa(e){return Object.keys(e).some(e=>ba.includes(e))}function Sa(e,t){return M().captureException(e,va(t))}function Ca(e,t){return M().captureEvent(e,t)}function wa(e,t){N().setContext(e,t)}function Ta(){let e=P();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Ea(e){let t=N(),{user:n}=Ri(t,M()),{userAgent:r}=u.navigator||{},i=St({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&Ct(a,{status:`exited`}),Da(),t.setSession(i),i}function Da(){let e=N(),t=M().getSession()||e.getSession();t&&wt(t),Oa(),e.setSession()}function Oa(){let e=N(),t=P(),n=e.getSession();n&&t&&t.captureSession(n)}function ka(e=!1){if(e){Da();return}Oa()}function Aa(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function ja(e){return`${Aa(e)}${e.projectId}/envelope/`}function Ma(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Na(e,t,n){return t||`${ja(e)}?${Ma(e,n)}`}var Pa=[];function Fa(e){let t={};
5return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Ia(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Fa(r)}function La(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&za(e,t,n)}),n}function Ra(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function za(e,t,n){if(n[t.name]){l&&x.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Pa.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),Pa.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),l&&x.log(`Integration installed: ${t.name}`)}function U(e){return e}function Ba(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Va(){return`npm`}function Ha(){return!Ba()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Ua(){return typeof window<`u`&&(!Ha()||Wa())}function Wa(){return u.process?.type===`renderer`}function Ga(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Ua()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Ka(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=Nn(r)),Hr(a,[Ga(e,i)])}function qa(e,t){let n=t??Ja(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Ka(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Ya().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Ja(e){return Ya().get(e)}function Ya(){return m(`clientToLogBufferMap`,()=>new WeakMap)}function Xa(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Ua()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Za(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=Nn(r)),Hr(a,[Xa(e,i)])}function Qa(e,t){let n=t??$a(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Za(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);eo().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function $a(e){return eo().get(e)}function eo(){return m(`clientToMetricBufferMap`,()=>new WeakMap)}function to(e){return rr({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function no(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||H(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(to(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getOptions().sendDefaultPii?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...Ua()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}function ro(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var io=Symbol.for(`SentryBufferFullError`);function ao(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return na(io);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return ta(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>ro(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var oo=60*1e3;function so(e,t=rt()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?oo:r-t}function co(e,t){return e[t]||e.all||0}function lo(e,t,n=rt()){return co(e,t)>n}function uo(e,{statusCode:t,headers:n},r=rt()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+so(o,r):t===429&&(i.all=r+60*1e3);return i}function fo(e,t,n=ao(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Wr(i,(t,n)=>{let i=$r(n);lo(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=Hr(i[0],a),s=t=>{if(Gr(o,[`client_report`])){l&&x.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Wr(o,(n,r)=>{e.recordDroppedEvent(t,$r(r))})};return n.add(()=>t({body:qr(o)}).then(e=>e.statusCode===413?(l&&x.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(l&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&x.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=uo(r,e),e),e=>{throw s(`network_error`),l&&x.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
5{if(e===io)return l&&x.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function po(e,t,n){let r=[{type:`client_report`},{timestamp:n||_t(),discarded_events:e}];return Hr(t?{dsn:t}:{},[r])}function mo(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function ho(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[fn],exclusive_time:o?.[pn],measurements:e.measurements,is_segment:!0}}function go(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var _o=`Not capturing exception because it's already been captured.`,vo=`Discarded session because of missing or non-string release`,yo=Symbol.for(`SentryInternalError`),bo=Symbol.for(`SentryDoNotSendEventError`),xo=5e3;function So(e){return{message:e,[yo]:!0}}function Co(e){return{message:e,[bo]:!0}}function wo(e){return!!e&&typeof e==`object`&&yo in e}function To(e){return!!e&&typeof e==`object`&&bo in e}function Eo(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=ro(setTimeout(()=>{i(e)},xo)))}),e.on(`flush`,()=>{i(e)})}var Do=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ao(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=zn(e.dsn):l&&x.warn(`No DSN provided, client will not send events.`),this._dsn){let t=Na(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Eo(this,`afterCaptureLog`,`flushLogs`,Po,qa),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Eo(this,`afterCaptureMetric`,`flushMetrics`,No,Qa)}captureException(e,t,n){let r=k();if(mt(e))return l&&x.log(_o),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:k(),...n},a=Ne(e)?e:String(e),o=Pe(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=k();if(t?.originalException&&mt(t.originalException))return l&&x.log(_o),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=Oo(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),Ct(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){qa(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),za(this,e,this._integrations),t||Ra(this,[e])}sendEvent(e,t={}
5){this.emit(`beforeSendEvent`,e,t);let n=no(e,this),r=ii(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=Ur(r,Xr(e));n&&(r=Ur(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Cr}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){l&&x.warn(vo);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){l&&x.warn(vo);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=ri(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;l&&x.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return l&&x.error(`Error while sending envelope:`,e),{}}return l&&x.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=La(this,e),Ra(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(Ct(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),da(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...nn(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Dr(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=M(),r=N()){return l&&jo(e)&&x.log(`Captured error event \`${mo(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{l&&(To(e)?x.log(e.message):wo(e)?x.warn(e.message):x.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Mo(e),s=jo(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:Bn(a);if(s&&typeof l==`number`&&nt()>l)return this.recordDroppedEvent(`sample_rate`,`error`),na(Co(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=Oo(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Co("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:ko(Ao(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Co(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw To(e)||wo(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),So(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===io&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){l&&x.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){l&&x.log(`No outcomes to send`);return}if(!this._dsn){l&&x.log(`No dsn provided, will not send outcomes`);return}l&&x.log(`Sending outcomes:`,e);let t=po(e,this._options.tunnel&&Nn(this._dsn));this.sendEnvelope(t)}};
5function Oo(e){return e===`replay_event`?`replay`:e||`error`}function ko(e,t){let n=`${t} must return \`null\` or a valid event.`;if(ze(e))return e.then(e=>{if(!Fe(e)&&e!==null)throw So(n);return e},e=>{throw So(`${t} rejected with ${e}`)});if(!Fe(e)&&e!==null)throw So(n);return e}function Ao(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!kr(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(jo(c)&&i)return i(c,r);if(Mo(c)){if(s||o){let t=ho(c);if(o?.length&&yr({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=Et(n,go(e)):hr()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&yr({description:e.description,op:e.op,attributes:e.data},o)){xr(n,e);continue}if(s){let n=s(e);n?t.push(n):(hr(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function jo(e){return e.type===void 0}function Mo(e){return e.type===`transaction`}function No(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Fo(e.attributes)}function Po(e){let t=0;return e.message&&(t+=e.message.length*2),t+Fo(e.attributes)}function Fo(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Io(e[0]):Pe(e)?t+=Io(e):t+=100}),t}function Io(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Lo(e,t){t.debug===!0&&(l?x.enable():v(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),M().update(t.initialScope);let n=new e(t);return Ro(n),n.init(),n}function Ro(e){M().setClient(e)}function zo(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Bo(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:d})),i.version=d)}function Vo(e={}){let t=e.client||P();if(!Ta()||!t)return{};let n=Kt(f());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||M(),i=e.span||z();if(!i&&$t())return{};let a=i?Xn(i):Ho(r),o=En(i?Or(i):Dr(t,r));if(!Vn.test(a))return x.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let s={"sentry-trace":a,baggage:o};return e.propagateTraceparent&&(s.traceparent=i?Zn(i):Uo(r)),s}function Ho(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Wn(t,r,n)}function Uo(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Gn(t,r,n)}var Wo=100;function Go(e,t){let n=P(),r=N();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Wo}=n.getOptions();if(a<=0)return;let o={timestamp:_t(),...e},s=i?v(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var Ko,qo=`FunctionToString`,Jo=new WeakMap,Yo=U((()=>({name:qo,setupOnce(){Ko=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Ye(this),n=Jo.has(P())&&t!==void 0?t:this;return Ko.apply(n,e)}}catch{}},setup(e){Jo.set(e,!0)}}))),Xo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Zo=`EventFilters`,Qo=U((e={})=>{let t;return{name:Zo,setup(n){t=es(e,n.getOptions())},processEvent(n,r,i){return t||=es(e,i.getOptions()),ts(n,t)?null:n}}}),$o=U(((e={})=>({...Qo(e),name:`InboundFilters`})));function es(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Xo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function ts(e,t){if(!e.type){if(ns(e,t.ignoreErrors))return l&&x.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${dt(e)}`),!0;if(cs(e))return l&&x.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${dt(e)}`),!0;if(is(e,t.denyUrls))return l&&x.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${dt(e)}.\nUrl: ${ss(e)}`),!0;if(!as(e,t.allowUrls))return l&&x.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${dt(e)}.\nUrl: ${ss(e)}`),!0}else if(e.type===`transaction`&&rs(e,t.ignoreTransactions))return l&&x.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${dt(e)}`),!0;return!1}function ns(e,t){return t?.length?mo(e).some(e=>O(e,t)):!1}function rs(e,t){if(!t?.length)return!1;let n=e.transaction;return n?O(n,t):!1}function is(e,t){if(!t?.length)return!1;let n=ss(e);return n?O(n,t):!1}function as(e,t){if(!t?.length)return!0;let n=ss(e);return n?O(n,t):!0}function os(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function ss(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?os(t):null}catch{return l&&x.error(`Cannot extract url for event ${dt(e)}`),null}}function cs(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function ls(e,t,n,r,i,a){if(!i.exception?.values||!a||!w(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=us(e,t,r,a.originalException,n,i.exception.values,o,0))}
5function us(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(w(r[i],Error)){fs(o,s,r);let a=e(t,r[i]),l=c.length;ps(a,i,l,s),c=us(e,t,n,r[i],i,[a,...c],a,l)}return ds(r)&&r.errors.forEach((a,l)=>{if(w(a,Error)){fs(o,s,r);let u=e(t,a),d=c.length;ps(u,`errors[${l}]`,d,s),c=us(e,t,n,a,i,[u,...c],u,d)}}),c}function ds(e){return Array.isArray(e.errors)}function fs(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...ds(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function ps(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function ms(e){return De(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function hs(e){return ms(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var gs=new Map,_s=new Set;function vs(e){if(u._sentryModuleMetadata)for(let t of Object.keys(u._sentryModuleMetadata)){let n=u._sentryModuleMetadata[t];if(_s.has(t))continue;_s.add(t);let r=e(t);for(let e of r.reverse())if(e.filename){gs.set(e.filename,n);break}}}function ys(e,t){return vs(e),gs.get(t)}function bs(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=ys(e,t.filename);n&&(t.module_metadata=n)})})}function xs(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}var Ss=new Set([]);function Cs(e){let t=`console`,n=ve(t,e);return ye(t,ws),n}function ws(){`console`in u&&h.forEach(function(e){e in u.console&&E(u.console,e,function(t){return _[e]=t,function(...t){let n=t[0],r=_[e],i=Ss.size&&typeof n==`string`&&O(n,Ss);i||C(`console`,{args:t,level:e}),(!i||l&&x.isEnabled())&&r?.apply(u.console,t)}})})}function Ts(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Es=`Dedupe`,Ds=U((()=>{let e;return{name:Es,processEvent(t){if(t.type)return t;try{if(Os(t,e))return l&&x.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function Os(e,t){return t?!!(ks(e,t)||As(e,t)):!1}function ks(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ms(e,t)||!js(e,t))}function As(e,t){let n=Ns(t),r=Ns(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ms(e,t)||!js(e,t))}function js(e,t){let n=me(e),r=me(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Ms(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{return!1}}function Ns(e){return e.exception?.values?.[0]}var Ps=U(e=>({name:`ThirdPartyErrorsFilter`,setup(e){e.on(`beforeEnvelope`,e=>{Wr(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(xs(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;bs(n,t)})},processEvent(t){let n=Is(t,e.ignoreSentryInternalFrames);if(n&&n[e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`apply-tag-if-contains-third-party-frames`?`some`:`every`](t=>!t.some(t=>e.filterKeys.includes(t)))){if(e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`drop-error-if-exclusively-contains-third-party-frames`)return null;t.tags={...t.tags,third_party_code:!0}}return t}}));function Fs(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes(`sentry`)||!e.filename.includes(`helpers`)||!e.context_line.includes(zs))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(Rs))return!0}return!1}function Is(e,t){let n=me(e);if(n)return n.filter((e,n)=>!e.filename||e.lineno==null&&e.colno==null&&e.instruction_addr==null?!1:!t||!Fs(e,n)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(Ls)).map(e=>e.slice(Ls.length)):[])}var Ls=`_sentryBundlerPluginAppKey:`,Rs=`Attempt to invoke user-land function`,zs=`fn.apply(this, wrappedArguments)`,Bs=`ConversationId`,Vs=U((()=>({name:Bs,setup(e){e.on(`spanStart`,e=>{let t=M().getScopeData(),n=N().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=L(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(hn,r)}})}})));function Hs(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=B()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(Gs(n,e),Us(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=P(),d=!!z()||!!u&&H(u),f=s&&d?vi(Ys(o,a,c)):new V;if(s&&!d&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=Ws(t,n,B()&&d?f:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,f,t)}return f}function Us(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Ws(e,t,n,r){let i=Vo({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(He(e)?e.headers:void 0);if(!c)return{...i};if(qs(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?Ks(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}else if(Js(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&Ks(e[1]));return o&&!t&&e.push([`baggage`,o]),e}else{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>Ks(e)):Ks(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0});return r&&s&&!t&&(u.traceparent=s),u}}function Gs(e,t){if(t.response){_n(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function Ks(e){return typeof e==`string`?e.split(`,`).some(e=>e.trim().startsWith(wn)):!1}function qs(e){return typeof Headers<`u`&&w(e,Headers)}function Js(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}
5function Ys(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${Xi(e)}`,attributes:Xs(e,void 0,t,n)};let r=Ki(e);return{name:`${t} ${r?qi(r):e}`,attributes:Xs(e,r,t,n)}}function Xs(e,t,n,r){let i={url:Xi(e),type:`fetch`,"http.method":n,[F]:r,[sn]:`http.client`};return t&&(Gi(t)||(i[`http.url`]=Xi(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function Zs(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Qs=u;function $s(){return`history`in Qs&&!!Qs.history}function ec(){if(!(`fetch`in Qs))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function tc(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function nc(){if(typeof EdgeRuntime==`string`)return!0;if(!ec())return!1;if(tc(Qs.fetch))return!0;let e=!1,t=Qs.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=tc(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){l&&x.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function rc(e,t){let n=`fetch`,r=ve(n,e);return ye(n,()=>ac(void 0,t)),r}function ic(e){let t=`fetch-body-resolved`,n=ve(t,e);return ye(t,()=>ac(sc)),n}function ac(e,t=!1){t&&!nc()||E(u,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=uc(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:A()*1e3,virtualError:r,headers:dc(n)};return e||C(`fetch`,{...o}),t.apply(u,n).then(async t=>(e?e(t):C(`fetch`,{...o,endTimestamp:A()*1e3,response:t}),t),e=>{C(`fetch`,{...o,endTimestamp:A()*1e3,error:e}),De(e)&&e.stack===void 0&&(e.stack=r.stack,D(e,`framesToPop`,1));let t=P()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:D(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function oc(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function sc(e){let t;try{t=e.clone()}catch{return}oc(t,()=>{C(`fetch-body-resolved`,{endTimestamp:A()*1e3,response:e})})}function cc(e,t){return!!e&&typeof e==`object`&&!!e[t]}function lc(e){return typeof e==`string`?e:e?cc(e,`url`)?e.url:e.toString?e.toString():``:``}function uc(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:lc(t),method:cc(n,`method`)?String(n.method).toUpperCase():He(t)&&cc(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:lc(t),method:cc(t,`method`)?String(t.method).toUpperCase():`GET`}}function dc(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(He(t))return new Headers(t.headers)}catch{}}var W=u,fc=0;function pc(){return fc>0}function mc(){fc++,setTimeout(()=>{fc--})}function hc(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(Ye(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>hc(e,t));return e.apply(this,r)}catch(e){throw mc(),tn(r=>{r.addEventProcessor(e=>(t.mechanism&&(ft(e,void 0,void 0),pt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Sa(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Je(r,e),D(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function gc(){let e=Ke(),{referrer:t}=W.document||{},{userAgent:n}=W.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function _c(e,t){let n=bc(e,t),r={type:Tc(t),value:Ec(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function vc(e,t,n,r){let i=P()?.getOptions().normalizeDepth,a=Nc(t),o={__serialized__:Fr(t,i)};if(a)return{exception:{values:[_c(e,a)]},extra:o};let s={exception:{values:[{type:Ie(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:jc(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=bc(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function yc(e,t){return{exception:{values:[_c(e,t)]}}}function bc(e,t){let n=t.stacktrace||t.stack||``,r=Sc(t),i=Cc(t);try{return e(n,r,i)}catch{}return[]}var xc=/Minified React error #\d+;/i;function Sc(e){return e&&xc.test(e.message)?1:0}function Cc(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function wc(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Tc(e){let t=e?.name;return!t&&wc(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ec(e){let t=e?.message;return wc(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?hs(t.error):hs(e):`No error message`}function Dc(e,t,n,r){let i=kc(e,t,n?.syntheticException||void 0,r);
5return pt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),ta(i)}function Oc(e,t,n=`info`,r,i){let a=Ac(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),ta(a)}function kc(e,t,n,r,i){let a;if(ke(t)&&t.error)return yc(e,t.error);if(Ae(t)||je(t)){let i=t;if(`stack`in t)a=yc(e,t);else{let t=i.name||(Ae(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Ac(e,o,n,r),ft(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return De(t)?yc(e,t):Fe(t)||Ie(t)?(a=vc(e,t,n,i),pt(a,{synthetic:!0}),a):(a=Ac(e,t,n,r),ft(a,`${t}`,void 0),pt(a,{synthetic:!0}),a)}function Ac(e,t,n,r){let i={};if(r&&n){let r=bc(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),pt(i,{synthetic:!0})}if(Ne(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function jc(e,{isUnhandledRejection:t}){let n=$e(e),r=t?`promise rejection`:`exception`;return ke(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ie(e)?`Event \`${Mc(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Mc(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Nc(e){return Object.values(e).find(e=>e instanceof Error)}var Pc=class extends Do{constructor(e){let t=Fc(e);Bo(t,`browser`,[`browser`],W.SENTRY_SDK_SOURCE||Va()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;W.document&&(r||i||s)&&W.document.addEventListener(`visibilitychange`,()=>{W.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&qa(this),s&&Qa(this))}),n&&this.on(`beforeSendSession`,zo)}eventFromException(e,t){return Dc(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Oc(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function Fc(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:W.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Ic=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,G=u,Lc=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,Rc=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=Lc(t.value,n),e(t)))}},zc=(e=!0)=>{let t=G.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Bc=()=>zc()?.activationStart??0;function Vc(e,t,n){G.document&&G.addEventListener(e,t,n)}function Hc(e,t,n){G.document&&G.removeEventListener(e,t,n)}var Uc=-1,Wc=new Set,Gc=()=>G.document?.visibilityState===`hidden`&&!G.document?.prerendering?0:1/0,Kc=e=>{if(Jc(e)&&Uc>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of Wc)e();isFinite(Uc)||(Uc=e.type===`visibilitychange`?e.timeStamp:0,Hc(`prerenderingchange`,Kc,!0))}},qc=()=>{if(G.document&&Uc<0){let e=Bc();Uc=(G.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??Gc(),Vc(`visibilitychange`,Kc,!0),Vc(`pagehide`,Kc,!0),Vc(`prerenderingchange`,Kc,!0)}return{get firstHiddenTime(){return Uc},onHidden(e){Wc.add(e)}}};function Jc(e){return e.type===`pagehide`||G.document?.visibilityState===`hidden`}var Yc=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,Xc=(e,t=-1)=>{let n=zc(),r=`navigate`;return n&&(G.document?.prerendering||Bc()>0?r=`prerender`:G.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:Yc(),navigationType:r}},Zc=new WeakMap;function Qc(e,t){try{return Zc.get(e)||Zc.set(e,new t),Zc.get(e)}catch{return new t}}var $c=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},el=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},tl=e=>{let t=!1;return()=>{t||=(e(),!0)}},nl=e=>{G.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},rl=[1800,3e3],il=(e,t={})=>{nl(()=>{let n=qc(),r=Xc(`FCP`),i,a=el(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Bc(),0),r.entries.push(t),i(!0)))});a&&(i=Rc(e,r,rl,t.reportAllChanges))})},al=[.1,.25],ol=(e,t={})=>{il(tl(()=>{let n=Xc(`CLS`,0),r,i=qc(),a=Qc(t,$c),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>
5n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=el(`layout-shift`,o);s&&(r=Rc(e,n,al,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),G?.setTimeout?.(r))}))},sl=0,cl=1/0,ll=0,ul=e=>{e.forEach(e=>{e.interactionId&&(cl=Math.min(cl,e.interactionId),ll=Math.max(ll,e.interactionId),sl=ll?(ll-cl)/7+1:0)})},dl,fl=()=>dl?sl:performance.interactionCount||0,pl=()=>{`interactionCount`in performance||dl||(dl=el(`event`,ul,{type:`event`,buffered:!0,durationThreshold:0}))},ml=10,hl=0,gl=()=>fl()-hl,_l=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){hl=fl(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(gl()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<ml||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>ml){let e=this._longestInteractionList.splice(ml);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},vl=e=>{let t=G.requestIdleCallback||G.setTimeout;G.document?.visibilityState===`hidden`?e():(e=tl(e),Vc(`visibilitychange`,e,{once:!0,capture:!0}),Vc(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),Hc(`visibilitychange`,e,{capture:!0}),Hc(`pagehide`,e,{capture:!0})}))},yl=[200,500],bl=40,xl=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=qc();nl(()=>{pl();let r=Xc(`INP`),i,a=Qc(t,_l),o=e=>{vl(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=el(`event`,o,{durationThreshold:t.durationThreshold??bl});i=Rc(e,r,yl,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},Sl=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},Cl=[2500,4e3],wl=(e,t={})=>{nl(()=>{let n=qc(),r=Xc(`LCP`),i,a=Qc(t,Sl),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Bc(),0),r.entries=[t],i())},s=el(`largest-contentful-paint`,o);if(s){i=Rc(e,r,Cl,t.reportAllChanges);let n=tl(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(vl(n),Hc(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])Vc(e,a,{capture:!0})}})},Tl=[800,1800],El=e=>{G.document?.prerendering?nl(()=>El(e)):G.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>El(e),!0)},Dl=(e,t={})=>{let n=Xc(`TTFB`),r=Rc(e,n,Tl,t.reportAllChanges);El(()=>{let e=zc();e&&(n.value=Math.max(e.responseStart-Bc(),0),n.entries=[e],r(!0))})},Ol={},kl={},Al,jl,Ml,Nl;function Pl(e,t=!1){return Wl(`cls`,e,Bl,Al,t)}function Fl(e,t=!1){return Wl(`lcp`,e,Vl,jl,t)}function Il(e){return Wl(`ttfb`,e,Hl,Ml)}function Ll(e){return Wl(`inp`,e,Ul,Nl)}function Rl(e,t){return Kl(e,t),kl[e]||(Gl(e),kl[e]=!0),ql(e,t)}function zl(e,t){let n=Ol[e];if(n?.length)for(let r of n)try{r(t)}catch(t){Ic&&x.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${S(r)}\nError:`,t)}}function Bl(){return ol(e=>{zl(`cls`,{metric:e}),Al=e},{reportAllChanges:!0})}function Vl(){return wl(e=>{zl(`lcp`,{metric:e}),jl=e},{reportAllChanges:!0})}function Hl(){return Dl(e=>{zl(`ttfb`,{metric:e}),Ml=e})}function Ul(){return xl(e=>{zl(`inp`,{metric:e}),Nl=e})}function Wl(e,t,n,r,i=!1){Kl(e,t);let a;return kl[e]||(a=n(),kl[e]=!0),r&&t({metric:r}),ql(e,t,i?a:void 0)}function Gl(e){let t={};e===`event`&&(t.durationThreshold=0),el(e,t=>{zl(e,{entries:t})},t)}function Kl(e,t){Ol[e]=Ol[e]||[],Ol[e].push(t)}function ql(e,t,n){return()=>{n&&n();let r=Ol[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Jl(e){return`duration`in e}var Yl=e=>{let t=t=>{(t.type===`pagehide`||G.document?.visibilityState===`hidden`)&&e(t)};Vc(`visibilitychange`,t,{capture:!0,once:!0}),Vc(`pagehide`,t,{capture:!0,once:!0})};function Xl(e){return typeof e==`number`&&isFinite(e)}function Zl(e,t,n,{...r}){let i=L(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),yi(e,()=>{let e=vi({startTime:t,...r});return e&&e.end(n),e})}function Ql(e){let t=P();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=M(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return vi({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":G.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function $l(){return G.addEventListener&&G.performance}function K(e){return e/1e3}function eu(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}
5return r===e&&(t=r),{name:t,version:n}}function tu(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function nu(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}Yl(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function ru(e){let t=0,n;if(!tu(`layout-shift`))return;let r=Pl(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);nu(e,(e,i)=>{iu(t,n,i,e),r()})}function iu(e,t,n,r){Ic&&x.log(`Sending CLS span (${e})`);let i=t?K((j()||0)+t.startTime):A(),a=M().getScopeData().transactionName,o=t?T(t.sources[0]?.node):`Layout shift`,s={[F]:`auto.http.browser.cls`,[sn]:`ui.webvital.cls`,[pn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=T(e.node)});let c=Ql({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[ln]:``,[un]:e}),c.end(i))}function au(e){return e!=null&&e>0&&e<=6e4}function ou(e){let t=0,n;if(!tu(`largest-contentful-paint`))return;let r=Fl(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!au(e.value)||(t=e.value,n=r)},!0);nu(e,(e,i)=>{su(t,n,i,e),r()})}function su(e,t,n,r){if(!au(e))return;Ic&&x.log(`Sending LCP span (${e})`);let i=K((j()||0)+(t?.startTime||0)),a=M().getScopeData().transactionName,o=t?T(t.element):`Largest contentful paint`,s={[F]:`auto.http.browser.lcp`,[sn]:`ui.webvital.lcp`,[pn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=T(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=Ql({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[ln]:`millisecond`,[un]:e}),c.end(i))}function q(e){return e&&((j()||performance.timeOrigin)+e)/1e3}function cu(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=eu(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return j()||$l()?.timeOrigin?lu({...t,"http.request.redirect_start":q(e.redirectStart),"http.request.redirect_end":q(e.redirectEnd),"http.request.worker_start":q(e.workerStart),"http.request.fetch_start":q(e.fetchStart),"http.request.domain_lookup_start":q(e.domainLookupStart),"http.request.domain_lookup_end":q(e.domainLookupEnd),"http.request.connect_start":q(e.connectStart),"http.request.secure_connection_start":q(e.secureConnectionStart),"http.request.connection_end":q(e.connectEnd),"http.request.request_start":q(e.requestStart),"http.request.response_start":q(e.responseStart),"http.request.response_end":q(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function lu(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var uu=2147483647,du=0,J={},Y,fu;function pu({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=$l();if(r&&j()){r.mark&&G.performance.mark(`sentry-tracing-init`);let i=t?ou(n):t===!1?vu():void 0,a=e?ru(n):e===!1?_u():void 0,o=yu();return()=>{o(),i?.(),a?.()}}return()=>void 0}function mu(){Rl(`longtask`,({entries:e})=>{let t=z();if(!t)return;let{op:n,start_timestamp:r}=L(t);for(let i of e){let e=K(j()+i.startTime),a=K(i.duration);n===`navigation`&&r&&e<r||Zl(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[F]:`auto.ui.browser.metrics`}})}})}function hu(){new PerformanceObserver(e=>{let t=z();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=K(j()+n.startTime),{start_timestamp:r,op:i}=L(t);if(i===`navigation`&&r&&e<r)continue;let a=K(n.duration),o={[F]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Zl(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function gu(){Rl(`event`,({entries:e})=>{let t=z();if(t){for(let n of e)if(n.name===`click`){let e=K(j()+n.startTime),r=K(n.duration),i={name:T(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[F]:`auto.ui.browser.metrics`}},a=qe(n.target);a&&(i.attributes[`ui.component_name`]=a),Zl(t,e,e+r,i)}}})}function _u(){return Pl(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(J.cls={value:e.value,unit:``},fu=t)},!0)}function vu(){return Fl(({metric:e})=>{let t=e.entries[e.entries.length-1];!t||!au(e.value)||(J.lcp={value:e.value,unit:`millisecond`},Y=t)},!0)}function yu(){return Il(({metric:e})=>{e.entries[e.entries.length-1]&&(J.ttfb={value:e.value,unit:`millisecond`})})}function bu(e,t){let n=$l(),r=j();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o,recordClsOnPageloadSpan:s,recordLcpOnPageloadSpan:c}=t,l=K(r),u=n.getEntries(),{op:d,start_timestamp:f}=L(e);if(u.slice(du).forEach(t=>{let n=K(t.startTime),r=K(Math.max(0,t.duration));if(!(d===`navigation`&&f&&l+n<f))switch(t.entryType){case`navigation`:wu(e,t,l);break;case`mark`:case`paint`:case`measure`:{Su(e,t,n,r,l,a);let i=qc(),o=t.startTime<i.firstHiddenTime;t.name===`first-paint`&&o&&(J.fp={value:t.startTime,unit:`millisecond`}),t.name===`first-contentful-paint`&&o&&(J.fcp={value:t.startTime,unit:`millisecond`});break}case`resource`:Ou(e,t,t.name,n,r,l,o);break}}),du=Math.max(u.length-1,0),ku(e,i),d===`pageload`){if(Mu(J),i){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),Ic&&x.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};
5[`ttfb`,`fp`,`fcp`].forEach(e=>{J[e]&&t(e,J[e].value)}),J[`ttfb.requestTime`]&&t(`ttfb.requestTime`,J[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else s||delete J.cls,c||delete J.lcp,Object.entries(J).forEach(([e,t])=>{ci(e,t.value,t.unit)}),Au(e,t);e.setAttribute(i?`browser.performance.time_origin`:`performance.timeOrigin`,l),e.setAttribute(i?`browser.performance.navigation.activation_start`:`performance.activationStart`,Bc())}Y=void 0,fu=void 0,J={}}function xu(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components â`}catch{return}}function Su(e,t,n,r,i,a){if(xu(t)||[`mark`,`measure`].includes(t.entryType)&&O(t.name,a))return;let o=zc(!1),s=K(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[F]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),Cu(d,t),c<=u&&Zl(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function Cu(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Pe(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Pe(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function wu(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{Tu(e,t,r,n)}),Tu(e,t,`secureConnection`,n,`TLS/SSL`),Tu(e,t,`fetch`,n,`cache`),Tu(e,t,`domainLookup`,n,`DNS`),Du(e,t,n)}function Tu(e,t,n,r,i=n){let a=t[Eu(n)],o=t[`${n}Start`];!o||!a||Zl(e,r+K(o),r+K(a),{op:`browser.${i}`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Eu(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function Du(e,t,n){let r=n+K(t.requestStart),i=n+K(t.responseEnd),a=n+K(t.responseStart);t.responseEnd&&(Zl(e,r,i,{op:`browser.request`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`}}),Zl(e,a,i,{op:`browser.response`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`}}))}function Ou(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[F]:`auto.resource.browser.metrics`},l=Ji(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(G.location.origin),ju(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...cu(t)},d=a+r;Zl(e,d,d+i,{name:n.replace(G.location.origin,``),op:s,attributes:u})}function ku(e,t){let n=G.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?`network.connection.effective_type`:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?`network.connection.type`:`connectionType`,r.type),Xl(r.rtt)&&(J[`connection.rtt`]={value:r.rtt,unit:`millisecond`},t&&e.setAttribute(`network.connection.rtt`,r.rtt))),Xl(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),Xl(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function Au(e,t){Y&&t.recordLcpOnPageloadSpan&&(Y.element&&e.setAttribute(`lcp.element`,T(Y.element)),Y.id&&e.setAttribute(`lcp.id`,Y.id),Y.url&&e.setAttribute(`lcp.url`,Y.url.trim().slice(0,200)),Y.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Y.loadTime),Y.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Y.renderTime),e.setAttribute(`lcp.size`,Y.size)),fu?.sources&&t.recordClsOnPageloadSpan&&fu.sources.forEac
5h((t,n)=>e.setAttribute(`cls.source.${n+1}`,T(t.node)))}function ju(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<uu||typeof i==`string`)&&(t[r]=i)})}function Mu(e){let t=zc(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var Nu=[],Pu=new Map,Fu=new Map;function Iu(){if($l()&&j()){let e=Ru();return()=>{e()}}return()=>void 0}var Lu={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 Ru(){return Ll(zu)}var zu=({metric:e})=>{if(e.value==null)return;let t=K(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&Lu[t.name]);if(!n)return;let{interactionId:r}=n,i=Lu[n.name],a=K(j()+n.startTime),o=z(),s=o?R(o):void 0,c=r==null?void 0:Pu.get(r),l=c?.span||s,u=l?L(l).description:M().getScopeData().transactionName,d=Ql({name:c?.elementName||T(n.target),transaction:u,attributes:{[F]:`auto.http.browser.inp`,[sn]:`ui.interaction.${i}`,[pn]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[ln]:`millisecond`,[un]:e.value}),d.end(a+t))};function Bu(e){return e==null?void 0:Pu.get(e)}function Vu(){let e=Object.keys(Lu);Ua()&&e.forEach(e=>{G.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=T(t),r=Math.round(e.timeStamp);if(Fu.set(r,n),Fu.size>50){let e=Fu.keys().next().value;e!==void 0&&Fu.delete(e)}}function n(e){let t=Math.round(e.startTime),n=Fu.get(t);if(!n)for(let e=-5;e<=5;e++){let r=Fu.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=z(),r=t&&R(t);e.forEach(e=>{if(!Jl(e))return;let t=e.interactionId;if(t==null||Pu.has(t))return;let i=e.target?T(e.target):n(e);if(Nu.length>10){let e=Nu.shift();Pu.delete(e)}Nu.push(t),Pu.set(t,{span:r,elementName:i})})};Rl(`event`,r),Rl(`first-input`,r)}function Hu(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=M().getScopeData().transactionName,f={[F]:r,[sn]:n,[pn]:0,[`browser.web_vital.${i}.value`]:a,"sentry.transaction":d,"user_agent.original":G.navigator?.userAgent,...o};s&&tr(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=vi({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function Uu(e){let t=0,n;if(!tu(`largest-contentful-paint`))return;let r=Fl(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!au(e.value)||(t=e.value,n=r)},!0);nu(e,(e,i,a)=>{Wu(t,n,a,e),r()})}function Wu(e,t,n,r){if(!au(e))return;Ic&&x.log(`Sending LCP span (${e})`);let i=j()||0,a=K(i),o=K(i+(t?.startTime||0)),s=t?T(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=T(t.element)),t?.id&&(c[`browser.web_vital.lcp.id`]=t.id),t?.url&&(c[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(c[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(c[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(c[`browser.web_vital.lcp.size`]=t.size),Hu({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function Gu(e){let t=0,n;if(!tu(`layout-shift`))return;let r=Pl(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);nu(e,(e,i,a)=>{Ku(t,n,a,e),r()})}function Ku(e,t,n,r){Ic&&x.log(`Sending CLS span (${e})`);let i=t?K((j()||0)+t.startTime):A(),a=t?T(t.sources[0]?.node):`Layout shift`,o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=T(e.node)}),Hu({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function qu(){!$l()||!j()||Ll(({metric:e})=>
5{if(e.value==null||K(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&Lu[t.name]);t&&Ju(e.value,t)})}function Ju(e,t){Ic&&x.log(`Sending INP span (${e})`);let n=K(j()+t.startTime),r=K(e),i=Lu[t.name],a=Bu(t.interactionId),o=z(),s=o?R(o):void 0,c=a?.span||s,l=c?tr(c).name:M().getScopeData().transactionName;Hu({name:a?.elementName||T(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[pn]:t.duration,"sentry.transaction":l},startTime:n,endTime:n+r,parentSpan:c})}var Yu=1e3,Xu,Zu,Qu;function $u(e){ve(`dom`,e),ye(`dom`,ed)}function ed(){if(!G.document)return;let e=C.bind(null,`dom`),t=rd(e,!0);G.document.addEventListener(`click`,t,!1),G.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=G[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(E(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=rd(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),E(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function td(e){if(e.type!==Zu)return!1;try{if(!e.target||e.target._sentryId!==Qu)return!1}catch{}return!0}function nd(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function rd(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=id(n);if(nd(n.type,r))return;D(n,`_sentryCaptured`,!0),r&&!r._sentryId&&D(r,`_sentryId`,k());let i=n.type===`keypress`?`input`:n.type;td(n)||(e({event:n,name:i,global:t}),Zu=n.type,Qu=r?r._sentryId:void 0),clearTimeout(Xu),Xu=G.setTimeout(()=>{Qu=void 0,Zu=void 0},Yu)}}function id(e){try{return e.target}catch{return null}}var ad;function od(e){let t=`history`;ve(t,e),ye(t,sd)}
5function sd(){if(G.addEventListener(`popstate`,()=>{let e=G.location.href,t=ad;ad=e,t!==e&&C(`history`,{from:t,to:e})}),!$s())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=ad,i=cd(String(n));if(ad=i,r===i)return e.apply(this,t);C(`history`,{from:r,to:i})}return e.apply(this,t)}}E(G.history,`pushState`,e),E(G.history,`replaceState`,e)}function cd(e){try{return new URL(e,G.location.origin).toString()}catch{return e}}var ld={};function ud(e){let t=ld[e];if(t)return t;let n=G[e];if(tc(n))return ld[e]=n.bind(G);let r=G.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){Ic&&x.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(ld[e]=n.bind(G))}function dd(e){ld[e]=void 0}var fd=`__sentry_xhr_v3__`;function pd(e){ve(`xhr`,e),ye(`xhr`,md)}function md(){if(!G.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=A()*1e3,a=Me(n[0])?n[0].toUpperCase():void 0,o=hd(n[1]);if(!a||!o)return e.apply(t,n);t[fd]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[fd];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}C(`xhr`,{endTimestamp:A()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[fd];return a&&Me(r)&&Me(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[fd];return r?(n[0]!==void 0&&(r.body=n[0]),C(`xhr`,{startTimestamp:A()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function hd(e){if(Me(e))return e;try{return e.toString()}catch{}}function gd(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return Ic&&x.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r 6`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}var _d=40;function vd(e,t=ud(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw dd(`fetch`),e}finally{n-=a,r--}}return fo(e,i,ao(e.bufferSize||_d))}var X=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,yd=30,bd=50;function xd(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Sd=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Cd=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wd=/\((\S*)(?::(\d+))(?::(\d+))\)/,Td=/at (.+?) ?\(data:(.+?),/,Ed=[yd,e=>{let t=e.match(Td);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Sd.exec(e);if(n){let[,e,t,r]=n;return xd(e,`?`,+t,+r)}let r=Cd.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=wd.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Ad(r[1]||`?`,r[2]);return xd(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Dd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Od=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,kd=le(Ed,[bd,e=>{let t=Dd.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Od.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Ad(n,e),xd(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Ad=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},jd=1024,Md=`Breadcrumbs`,Nd=U(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Md,setup(e){t.console&&Cs(Id(e)),t.dom&&$u(Fd(e,t.dom)),t.xhr&&pd(Ld(e)),t.fetch&&rc(Rd(e)),t.history&&od(zd(e)),t.sentry&&e.on(`beforeSendEvent`,Pd(e))}}}));function Pd(e){return function(t){P()===e&&Go({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:dt(t)},{event:t})}}function Fd(e,t){return function(n){if(P()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>jd&&(X&&x.warn(`\`dom.maxStringLength\` cannot exceed ${jd}, but a value of ${o} was configured. Sentry will use ${jd} instead.`),o=jd),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Bd(e)?e.target:e;r=T(t,{keyAttrs:a,maxStringLength:o}),i=qe(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};
6i&&(s.data={"ui.component_name":i}),Go(s,{event:n.event,name:n.name,global:n.global})}}function Id(e){return function(t){if(P()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Ts(t.level),message:at(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${at(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;Go(n,{input:t.args,level:t.level})}}function Ld(e){return function(t){if(P()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[fd];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Zs(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Go(d,u)}}function Rd(e){return function(t){if(P()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Go(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Zs(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Go(s,o)}}}function zd(e){return function(t){if(P()!==e)return;let n=t.from,r=t.to,i=Ji(W.location.href),a=n?Ji(n):void 0,o=Ji(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Go({category:`navigation`,data:{from:n,to:r}})}}function Bd(e){return!!e&&!!e.target}var Vd=`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`.split(`,`),Hd=`BrowserApiErrors`,Ud=U(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Hd,setupOnce(){t.setTimeout&&E(W,`setTimeout`,Wd),t.setInterval&&E(W,`setInterval`,Wd),t.requestAnimationFrame&&E(W,`requestAnimationFrame`,Gd),t.XMLHttpRequest&&`XMLHttpRequest`in W&&E(XMLHttpRequest.prototype,`send`,Kd);let e=t.eventTarget;e&&(Array.isArray(e)?e:Vd).forEach(e=>qd(e,t))}}}));function Wd(e){return function(...t){let n=t[0];return t[0]=hc(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${S(e)}`}}),e.apply(this,t)}}function Gd(e){return function(t){return e.apply(this,[hc(t,{mechanism:{data:{handler:S(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Kd(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&E(n,e,function(t){let n={mechanism:{data:{handler:S(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ye(t);return r&&(n.mechanism.data.handler=S(r)),hc(t,n)})}),e.apply(this,t)}}function qd(e,t){let n=W[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(E(n,`addEventListener`,function(n){return function(r,i,a){try{Jd(i)&&(i.handleEvent=hc(i.handleEvent,{mechanism:{data:{handler:S(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Yd(this,r,i),n.apply(this,[r,hc(i,{mechanism:{data:{handler:S(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),E(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Jd(e){return typeof e.handleEvent==`function`}function Yd(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Xd=U((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(W.document===void 0){X&&x.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Ea({ignoreDuration:!0}),ka();let e=N(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();
6(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(ka(),n=t)}),t===`route`&&od(({from:e,to:t})=>{e!==t&&(Ea({ignoreDuration:!0}),ka())})}}}),Zd=`CultureContext`,Qd=U((()=>({name:Zd,preprocessEvent(e){let t=$d();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=$d();t&&Zi(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function $d(){try{let e=W.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var ef=`GlobalHandlers`,tf=U(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:ef,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(nf(e),cf(`onerror`)),t.onunhandledrejection&&(rf(e),cf(`onunhandledrejection`))}}}));function nf(e){xe(t=>{let{stackParser:n,attachStacktrace:r}=lf();if(P()!==e||pc())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=sf(kc(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Ca(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function rf(e){we(t=>{let{stackParser:n,attachStacktrace:r}=lf();if(P()!==e||pc())return;let i=af(t),a=Pe(i)?of(i):kc(n,i,void 0,r,!0);a.level=`error`,Ca(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function af(e){if(Pe(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function of(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function sf(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:uf(t)??Ke(),function:`?`,in_app:!0}),e}function cf(e){X&&x.log(`Global Handler attached: ${e}`)}function lf(){return P()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function uf(e){if(!(!Me(e)||e.length===0))return e.startsWith(`data:`)?`<${Xi(e,!1)}>`:e}var df=U(()=>({name:`HttpContext`,preprocessEvent(e){if(!W.navigator&&!W.location&&!W.document)return;let t=gc(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!W.navigator&&!W.location&&!W.document)return;let t=gc();Zi(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),ff=`cause`,pf=5,mf=`LinkedErrors`,hf=U(((e={})=>{let t=e.limit||pf,n=e.key||ff;return{name:mf,preprocessEvent(e,r,i){ls(_c,i.getOptions().stackParser,n,t,e,r)}}}));function gf(){return _f()?(X&&v(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function _f(){if(W.window===void 0)return!1;let e=W;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Ke();return!(W===W.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function vf(e){return[$o(),Yo(),Vs(),Ud(),Nd(),tf(),hf(),Ds(),df(),Qd(),Xd()]}function yf(e={}){let t=!e.skipBrowserExtensionCheck&&gf(),n=e.defaultIntegrations==null?vf():e.defaultIntegrations;return Lo(Pc,{...e,enabled:t?!1:e.enabled,stackParser:ue(e.stackParser||kd),integrations:Ia({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||vd})}function bf(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function xf(e){try{return new URL(e,W.location.origin).href}catch{return}}function Sf(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function Cf(e){try{return new Headers(e)}catch{return}}var wf=new WeakMap,Tf=new Map,Ef={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Df(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:c,onRequestSpanEnd:l}={...Ef,...t},u=typeof a==`function`?a:e=>!0,d=e=>Af(e,s),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>
6(e.type===`transaction`&&e.spans&&e.spans.forEach(e=>{if(e.op===`http.client`){let t=Tf.get(e.span_id);t&&(e.timestamp=t/1e3,Tf.delete(e.span_id))}}),e)),i&&ic(e=>{if(e.response){let t=wf.get(e.response);t&&e.endTimestamp&&Tf.set(t,e.endTimestamp)}}),rc(t=>{let n=Hs(t,u,d,f,{propagateTraceparent:p,onRequestSpanEnd:l});if(t.response&&t.fetchData.__span&&wf.set(t.response,t.fetchData.__span),n){let r=xf(t.fetchData.url),i=r?Ji(r).host:void 0;n.setAttributes({"http.url":r?Xi(r):void 0,"server.address":i}),o&&kf(n,e),c?.(n,{headers:t.headers})}})),r&&pd(t=>{let n=jf(t,u,d,f,p,l);n&&(o&&kf(n,e),c?.(n,{headers:Cf(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var Of=300;function kf(e,t){let{url:n}=L(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(H(t)){let t=e.end.bind(e);e.end=e=>{let n=e??A(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,Of)}}let i=Rl(`resource`,({entries:t})=>{t.forEach(t=>{Sf(t)&&t.name.endsWith(n)&&(e.setAttributes(cu(t)),r())})})}function Af(e,t){let n=Ke();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?O(r.toString(),t)||a&&O(r.pathname,t):a}else{let n=!!e.match(/^\/(?!\/)/);return t?O(e,t):n}}function jf(e,t,n,r,i,a){let o=e.xhr,s=o?.[fd];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=B()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(_n(n,s.status_code),n.end(),a?.(n,{headers:Cf(gd(o)),error:e.error})),delete r[t]);return}let d=xf(c),f=Ji(d||c),p=Xi(Yi(c)),m=P(),h=!!z()||!!m&&H(m),g=u&&h?vi({name:`${l} ${p}`,attributes:{url:Xi(c),type:`xhr`,"http.method":l,"http.url":d?Xi(d):void 0,"server.address":f?.host,[F]:`auto.http.browser`,[sn]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new V;return u&&!h&&m?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=g.spanContext().spanId,r[o.__sentry_xhr_span_id__]=g,n(c)&&Mf(o,B()&&h?g:void 0,i),m&&m.emit(`beforeOutgoingRequestSpan`,g,e),g}function Mf(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=Vo({span:t,propagateTraceparent:n});r&&Nf(e,r,i,a)}function Nf(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.[`sentry-trace`]||!e.setRequestHeader))try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!bf(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}function Pf(){W.document?W.document.addEventListener(`visibilitychange`,()=>{let e=z();if(!e)return;let t=R(e);if(W.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=L(t);X&&x.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):X&&x.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var Ff=`sentry_previous_trace`,If=`sentry.previous_trace`;function Lf(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?Bf():void 0;e.on(`spanStart`,e=>{if(R(e)!==e)return;let t=M().getPropagationContext();i=Rf(i,e,t),r&&zf(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=M(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(Vf(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=Vf(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[on]:i.sampleRate}})}function Rf(e,t,n){let r=L(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[`sentry.sample_rate`])}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(X&&x.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[mn]:`previous_trace`}}),t.setAttribute(If,`${o.traceId}-${o.spanId}-${+!!Vf(o)}`)),a)}function zf(e){try{W.sessionStorage.setItem(Ff,JSON.stringify(e))}catch(e){X&&x.warn(`Could not store previous trace in sessionStorage`,e)}}function Bf(){try{let e=W.sessionStorage?.getItem(Ff);return JSON.parse(e)}catch{return}}function Vf(e){return e.traceFlags===1}var Hf=`BrowserTracing`,Uf=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function Wf(){let e=W.navigator;return e?.userAgent?Uf.test(e.userAgent):!1}var Gf={...Oi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
6dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Ef},Kf=((e={})=>{`enableElementTiming`in e&&v(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},n=W.document,{enableInp:r,enableLongTask:i,enableLongAnimationFrame:a,_experiments:{enableInteractions:o,enableStandaloneClsSpans:s,enableStandaloneLcpSpans:c},beforeStartSpan:l,idleTimeout:d,finalTimeout:f,childSpanTimeout:p,markBackgroundSpan:m,traceFetch:h,traceXHR:g,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:ee,enableHTTPTimings:te,ignoreResourceSpans:ne,ignorePerformanceApiSpans:re,instrumentPageLoad:ie,instrumentNavigation:ae,detectRedirects:y,linkPreviousTrace:b,consistentTraceSampling:oe,enableReportPageLoaded:se,onRequestSpanStart:ce,onRequestSpanEnd:le}={...Gf,...e},ue=Wf(),de,fe,pe;function S(e,r,i=!0){let a=r.op===`pageload`,o=r.name,u=l?l(r):r,m=u.attributes||{};if(o!==u.name&&(m[rn]=`custom`,u.attributes=m),!i){let e=_t();vi({...u,startTime:e}).end(e);return}t.name=u.name,t.source=m[rn];let h=Ni(u,{idleTimeout:d,finalTimeout:f,childSpanTimeout:p,disableAutoFinish:a,beforeSpanEnd:t=>{de?.();let n=H(e);bu(t,{recordClsOnPageloadSpan:!n&&!s,recordLcpOnPageloadSpan:!n&&!c,ignoreResourceSpans:ne,ignorePerformanceApiSpans:re,spanStreamingEnabled:n}),ep(e,void 0);let r=M(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:h.spanContext().traceId,sampled:or(h),dsc:Or(t)}),a&&(pe=void 0)},trimIdleSpanEndTimestamp:!se});a&&se&&(pe=h),ep(e,h);function g(){n&&[`interactive`,`complete`].includes(n.readyState)&&e.emit(`idleSpanEnableAutoFinish`,h)}a&&!se&&n&&(n.addEventListener(`readystatechange`,()=>{g()}),g())}return{name:Hf,setup(e){if(ue){X&&x.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}_r();let t=H(e);if(de=pu({recordClsStandaloneSpans:t?void 0:s||!1,recordLcpStandaloneSpans:t?void 0:c||!1,client:e}),t?(Uu(e),Gu(e),r&&qu()):r&&Iu(),a&&u.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?hu():i&&mu(),o&&gu(),y&&n){let e=()=>{fe=A()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function l(){let t=$f(e);t&&!L(t).timestamp&&(X&&x.log(`[Tracing] Finishing current active span with op: ${L(t).op}`),t.setAttribute(cn,`cancelled`),t.end())}e.on(`startNavigationSpan`,(t,n)=>{if(P()!==e)return;if(n?.isRedirect){X&&x.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),S(e,{op:`navigation.redirect`,...t},!1);return}fe=void 0,l(),N().setPropagationContext({traceId:Dt(),sampleRand:Math.random(),propagationSpanId:B()?void 0:Ot()});let r=M();r.setPropagationContext({traceId:Dt(),sampleRand:Math.random(),propagationSpanId:B()?void 0:Ot()}),r.setSDKProcessingMetadata({normalizedRequest:void 0}),S(e,{op:`navigation`,...t,parentSpan:null,forceTransaction:!0})}),e.on(`startPageLoadSpan`,(t,n={})=>{if(P()!==e)return;l();let r=Un(n.sentryTrace||Yf(`sentry-trace`)||Xf(`sentry-trace`),n.baggage||Yf(`baggage`)||Xf(`baggage`)),i=M();i.setPropagationContext(r),B()||(i.getPropagationContext().propagationSpanId=Ot()),i.setSDKProcessingMetadata({normalizedRequest:gc()}),S(e,{op:`pageload`,...t})}),e.on(`endPageloadSpan`,()=>{se&&pe&&(pe.setAttribute(cn,`reportPageLoaded`),pe.end())})},afterAllSetup(e){if(ue)return;let n=Ke();if(b!==`off`&&Lf(e,{linkPreviousTrace:b,consistentTraceSampling:oe}),W.location){if(ie){let t=j();qf(e,{name:W.location.pathname,startTime:t?t/1e3:void 0,attributes:{[rn]:`url`,[F]:`auto.pageload.browser`}})}ae&&od(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=Ki(t),a=$f(e),o=a&&y&&np(a,fe);Jf(e,{name:i?.pathname||W.location.pathname,attributes:{[rn]:`url`,[F]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}m&&Pf(),o&&Zf(e,d,f,p,t),r&&Vu(),Df(e,{traceFetch:h,traceXHR:g,trackFetchStreamPerformance:_,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:ee,enableHTTPTimings:te,onRequestSpanStart:ce,onRequestSpanEnd:le})}}});function qf(e,t,n){e.emit(`startPageLoadSpan`,t,n),M().setTransactionName(t.name);let r=$f(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function Jf(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i}),e.emit(`startNavigationSpan`,t,{isRedirect:i});let a=M();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...gc(),url:r}}),$f(e)}function Yf(e){return(W.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function Xf(e){return(W.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function Zf(e,t,n,r,i){let a=W.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=$f(e);if(s){let e=L(s).op;if([`navigation`,`pageload`].includes(e)){X&&x.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(cn,`interactionInterrupted`),o.end(),void 0),!i.name){X&&x.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=Ni({name:i.name,op:a,attributes:{[rn]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var Qf=`_sentry_idleSpan`;function $f(e){return e[Qf]}function ep(e,t){D(e,Qf,t)}var tp=1.5;function np(e,t){let n=L(e),r=_t();return!(r-n.start_timestamp>tp||t&&r-t<=tp)}var rp=e(n());function ip(e){let t={...e};return Bo(t,`react`),wa(`react`,{version:rp.version}),yf(t)}var Z=e=>typeof e==`string`,ap=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},op=e=>e==null?``:String(e),sp=(e,t,n)=>
vendor: 28,132 bytes, line 6
6{e.forEach(e=>{t[e]&&(n[e]=t[e])})},cp=/###/g,lp=e=>e&&e.includes(`###`)?e.replace(cp,`.`):e,up=e=>!e||Z(e),dp=(e,t,n)=>{let r=Z(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(up(e))return{};let t=lp(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return up(e)?{}:{obj:e,k:lp(r[i])}},fp=(e,t,n)=>{let{obj:r,k:i}=dp(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=dp(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=dp(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},pp=(e,t,n,r)=>{let{obj:i,k:a}=dp(e,t,Object);i[a]=i[a]||[],i[a].push(n)},mp=(e,t)=>{let{obj:n,k:r}=dp(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},hp=(e,t,n)=>{let r=mp(e,n);return r===void 0?mp(t,n):r},gp=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?Z(e[r])||e[r]instanceof String||Z(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):gp(e[r],t[r],n):e[r]=t[r]);return e},_p=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),vp={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},yp=e=>Z(e)?e.replace(/[&<>"'\/]/g,e=>vp[e]):e,bp=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},xp=[` `,`,`,`?`,`!`,`;`],Sp=new bp(20),Cp=(e,t,n)=>{t||=``,n||=``;let r=xp.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=Sp.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},wp=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Tp=e=>e?.replace(/_/g,`-`),Ep={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},Q=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Ep,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>Z(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),Z(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Dp=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},Op=class extends Dp{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):Z(n)&&i?o.push(...n.split(i)):o.push(n)));let s=mp(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!Z(n)?s:wp(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),fp(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(Z(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=mp(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?gp(s,n,i):s={...s,...n},fp(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},kp={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},Ap=Symbol(`i18next/PATH_KEY`);function jp(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Ap?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Mp(e,t){let{[Ap]:n}=e(jp()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var Np=e=>!Z(e)&&typeof e!=`boolean`&&typeof e!=`number`,Pp=class e extends Dp{constructor(e,t={}){super(),sp([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=Q.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=Np(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Cp(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Z(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:Z(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=Mp(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?Mp(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject,te=i.count!==void 0&&!Z(i.count),ne=e.hasDefaultValue(i),re=te?this.pluralResolver.getSuffix(d,i.count,i):``,ie=i.ordinal&&te?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,ae=te&&!i.ordinal&&i.count===0,y=ae&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${re}`]||i[`defaultValue${ie}`]||i.defaultValue,b=m;ee&&!m&&ne&&(b=y);let x=Np(b),oe=Object.prototype.toString.apply(b);if(ee&&b&&x&&!_.includes(oe)&&!(Z(v)&&Array.isArray(b))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,b,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(b),t=e?[]:{},n=e?g:h;for(let e in b)if(Object.prototype.hasOwnProperty.call(b,e)){let r=`${n}${o}${e}`;ne&&!m?t[e]=this.translate(r,{...i,defaultValue:Np(y)?y[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=b[e])}m=t}}else if(ee&&Z(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&ne&&(e=!0,m=y),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=ne&&y!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,te&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?y:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=ne&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&te?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);ae&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||y)})}):n(e,s,y))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=Z(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!Z(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=Z(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=kp.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return Z(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?Mp(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!Z(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(Z(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!Z(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},Fp=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Q.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Tp(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Tp(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Z(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),Z(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Z(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):Z(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},Ip={zero:0,one:1,two:2,few:3,many:4,other:5},Lp={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Rp=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Q.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Tp(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Lp;if(!e.match(/-|_/))return Lp;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Ip[e]-Ip[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},zp=(e,t,n,r=`.`,i=!0)=>{let a=hp(e,t,n);return!a&&i&&Z(n)&&(a=wp(e,n,r),a===void 0&&(a=wp(t,n,r))),a},Bp=e=>e.replace(/\$/g,`$$$$`),Vp=class{constructor(e={}){this.logger=Q.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?yp:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?_p(i):a||`{{`,this.suffix=o?_p(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?_p(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?_p(l):``,this.nestingPrefix=d?_p(d):f||_p(`$t(`),this.nestingSuffix=p?_p(p):m||_p(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=zp(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(zp(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false â if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Bp(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Bp(this.escape(e)):Bp(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=Z(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !Z(a)&&!this.useRawValueToEscape&&(a=op(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${_p(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!Z(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!Z(i))return i;Z(i)||(i=op(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Hp=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Up=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Tp(r),i),t[o]=s),s(n)}},Wp=e=>(t,n,r)=>e(Tp(n),r)(t),Gp=class{constructor(e={}){this.logger=Q.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Up:Wp;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Up(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&!i[0].includes(`)`)&&i.find(e=>e.includes(`)`))){let e=i.findIndex(e=>e.includes(`)`));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Hp(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Kp=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},qp=class extends Dp{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Q.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{pp(n.loaded,[i],a),Kp(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}
vendor: 4,524 bytes, line 6
6),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();Z(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Z(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Jp=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),Z(e[1])&&(t.defaultValue=e[1]),Z(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Yp=e=>(Z(e.ns)&&(e.ns=[e.ns]),Z(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Z(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Xp=()=>{},Zp=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},$=class e extends Dp{constructor(e={},t){if(super(),this.options=Yp(e),this.services={},this.logger=Q,this.modules={external:[]},Zp(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(Z(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Jp();this.options={...n,...this.options,...Yp(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>
vendor: 6,625 bytes, line 6
6e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?Q.init(r(this.modules.logger),this.options):Q.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Gp;let t=new Fp(this.options);this.store=new Op(this.options.resources,this.options);let n=this.services;n.logger=Q,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Rp(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Vp(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new qp(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Pp(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=Xp,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=ap(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Xp){let n=t,r=Z(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=ap();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Xp,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&kp.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=ap();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=Z(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(Z(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=Mp(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=Mp(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=Mp(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return Z(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;
6if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=ap();return this.options.ns?(Z(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=ap();Z(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new Fp(Jp());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Xp){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Op(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Jp().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Vp(n)}return a.translator=new Pp(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();$.createInstance,$.dir,$.init,$.loadResources,$.reloadResources,$.use,$.changeLanguage,$.getFixedT,$.t,$.exists,$.setDefaultNamespace,$.hasLoadedNamespace,$.loadNamespaces,$.loadLanguages;var Qp=[`en`,`es`,`pt`],$p={es:()=>o(()=>import(`./es-o9p4HMIH.js`),[]),pt:()=>o(()=>import(`./pt-gTZkYol5.js`),[])};function em(){if(typeof window>`u`)return`en`;let e=window.location.pathname.split(`/`)[1];return Qp.includes(e)?e:`en`}async function tm(e){try{let{default:t}=await $p[e]();return t}catch{return null}}async function nm(e=$){let n=em(),r={en:{translation:c}};if(n!==`en`){let e=await tm(n);e&&(r[n]={translation:e})}return await e.use(t).init({resources:r,lng:n,fallbackLng:`en`,supportedLngs:[...Qp],interpolation:{escapeValue:!1}}),e}var rm=`HQ Rental Software`;typeof window<`u`&&(window.addEventListener(`vite:preloadError`,()=>{sessionStorage.getItem(`vite:reloaded`)||(sessionStorage.setItem(`vite:reloaded`,`1`),window.location.reload())}),window.addEventListener(`load`,()=>{sessionStorage.removeItem(`vite:reloaded`)})),ip({dsn:`https://[email protected]/19`,environment:`production`,release:`hq-rental-software-website@9ad5d13`,integrations:[Kf(),Ps({filterKeys:[`hq-rental-software-website`],behaviour:`drop-error-if-exclusively-contains-third-party-frames`})],tracesSampleRate:1}),await nm();function im(){let{decided:e,preferences:t}=s();e&&(t.analytics?r.opt_in_capturing():r.opt_out_capturing())}typeof window<`u`&&(im(),i(im)),a({resolve:async(e,t)=>{let n=Object.assign({
6"./pages/__tests__/car-van-rental.test.tsx":()=>o(()=>import(`./car-van-rental.test-7_YBEbEc.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),
6"./pages/__tests__/case-studies.test.tsx":()=>o(()=>import(`./case-studies.test--TWoiMDp.js`),__vite__mapDeps([25,1,2,3,4,6,26,27,28,29,30,31,32,8,9,10,33,20,34])),
6"./pages/__tests__/case-study.test.tsx":()=>o(()=>import(`./case-study.test-DuHyywOM.js`),__vite__mapDeps([35,1,2,36,4,37,27,28,29,30,31,32,8,9,10,38,34,39,12,33,20,13,3,6])),
6"./pages/__tests__/data-sharing-consent.test.tsx":()=>o(()=>import(`./data-sharing-consent.test-DawLJiS2.js`),__vite__mapDeps([40,1,2,3,4,5,6,41,10,20,42,34,43,44,45])),
6"./pages/__tests__/dpa-subprocessor.test.tsx":()=>o(()=>import(`./dpa-subprocessor.test-BvNQ_aY1.js`),__vite__mapDeps([46,1,2,3,4,5,6,47,10,20,42,34])),
6"./pages/__tests__/dpa.test.tsx":()=>o(()=>import(`./dpa.test-DMORv6Am.js`),__vite__mapDeps([48,1,2,3,4,5,6,49,10,20,42,34])),
6"./pages/__tests__/equipment-rental.test.tsx":()=>o(()=>import(`./equipment-rental.test-BJuxy1Yu.js`),__vite__mapDeps([50,1,2,3,4,5,51,8,9,10,39,31,52,28,13,16,17,18,19,20,21,22,23,24,34,53,33,6])),
6"./pages/__tests__/error-pages.test.tsx":()=>o(()=>import(`./error-pages.test-D-ukraNN.js`),__vite__mapDeps([54,1,2,3,4,6,55,38,10,34,56])),
6"./pages/__tests__/faqs.test.tsx":()=>o(()=>import(`./faqs.test-CApHmm8n.js`),__vite__mapDeps([57,1,2,3,4,5,58,10,20,34,6])),
6"./pages/__tests__/fleet-management.test.tsx":()=>o(()=>import(`./fleet-management.test-D_1wbAhC.js`),__vite__mapDeps([59,1,2,3,4,5,60,8,9,10,39,61,32,17,18,19,20,23,13,24,34,53,33,6])),
6"./pages/__tests__/gdpr.test.tsx":()=>o(()=>import(`./gdpr.test-D1J_7wvh.js`),__vite__mapDeps([62,1,2,3,4,5,6,63,10,20,42,34])),
6"./pages/__tests__/home.test.tsx":()=>o(()=>import(`./home.test-BNpv2rAr.js`),__vite__mapDeps([64,1,2,3,4,5,65,8,9,10,22,11,12,13,14,52,28,15,16,17,18,19,20,23,24,66,6])),
6"./pages/__tests__/integrations.test.tsx":()=>o(()=>import(`./integrations.test-D5J4rPi0.js`),__vite__mapDeps([67,1,2,3,4,5,68,8,9,10,19,20,34,53,33,13,6])),
6"./pages/__tests__/motorbikes-boats.test.tsx":()=>o(()=>import(`./motorbikes-boats.test-BD9PehOO.js`),__vite__mapDeps([69,1,2,3,4,5,70,8,9,10,39,11,12,13,14,29,18,19,20,21,22,23,24,6])),
6"./pages/__tests__/online-reservations.test.tsx":()=>o(()=>import(`./online-reservations.test-6J0ewTN9.js`),__vite__mapDeps([71,1,2,3,4,5,72,8,9,10,39,30,61,18,19,20,21,22,13,23,24,34,53,33,66,6])),
6"./pages/__tests__/pages.smoke.test.tsx":()=>o(()=>import(`./pages.smoke.test-CGp1ivlQ.js`),__vite__mapDeps([73,1,2,3,4,74,37,8,9,10,33,20,34,70,39,11,12,13,14,29,18,19,21,22,23,24,65,52,28,15,16,17,66,72,30,61,53,75,76,51,31,68,58,60,32,41,42,7,43,47,49,77,44,78,45])),
6"./pages/__tests__/pricing.test.tsx":()=>o(()=>import(`./pricing.test-K4HmNW0I.js`),__vite__mapDeps([79,1,2,3,4,5,74,37,8,9,10,33,20,34,6])),
6"./pages/__tests__/privacy-policy.test.tsx":()=>o(()=>import(`./privacy-policy.test-CiixWnL-.js`),__vite__mapDeps([80,1,2,3,4,5,6,77,10,20,42,34])),
6"./pages/__tests__/sales-agent.test.tsx":()=>o(()=>import(`./sales-agent.test-WAOZxdnt.js`),__vite__mapDeps([81,1,2,3,4,5,9,82,10,22,33,14,20,23,13,34,6])),
6"./pages/__tests__/security.test.tsx":()=>o(()=>import(`./security.test-CV8bvsLS.js`),__vite__mapDeps([83,1,2,3,4,5,6,84,10,20,42,34])),
6"./pages/__tests__/self-service-car-rental.test.tsx":()=>o(()=>import(`./self-service-car-rental.test-BC_DK9H9.js`),__vite__mapDeps([85,1,2,3,4,5,75,8,9,10,20,23,13,24,34,53,33,6])),
6"./pages/__tests__/telematics.test.tsx":()=>o(()=>import(`./telematics.test-BZQXnPpV.js`),__vite__mapDeps([86,1,2,3,4,5,76,8,9,10,39,20,23,13,34,53,33,6])),
6"./pages/__tests__/terms-of-service.test.tsx":()=>o(()=>import(`./terms-of-service.test-ClTWxEtc.js`),__vite__mapDeps([87,1,2,3,4,5,6,78,10,20,42,34])),
6"./pages/axle-data-sharing-consent.tsx":()=>o(()=>import(`./axle-data-sharing-consent-Zyfdw3IK.js`),__vite__mapDeps([88,41,2,1,10,4,20,42,34])),
6"./pages/car-van-rental.tsx":()=>o(()=>import(`./car-van-rental-ML4uGEt0.js`),__vite__mapDeps([89,7,2,1,8,4,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),
6"./pages/carjet-data-sharing-consent.tsx":()=>o(()=>import(`./carjet-data-sharing-consent-2w-j-Ed5.js`),__vite__mapDeps([90,43,2,1,10,4,20,42,34])),
6"./pages/case-studies.tsx":()=>o(()=>import(`./case-studies-BuX0ep1f.js`),__vite__mapDeps([91,26,2,1,27,4,28,29,30,31,32,8,9,10,33,20,34])),
6"./pages/case-study.tsx":()=>o(()=>import(`./case-study-DP9e20es.js`),__vite__mapDeps([92,36,2,4,1,37,27,28,29,30,31,32,8,9,10,38,34,39,12,33,20,13])),
6"./pages/dpa-subprocessor.tsx":()=>o(()=>import(`./dpa-subprocessor-B_JkiScA.js`),__vite__mapDeps([93,47,2,1,10,4,20,42,34])),
6"./pages/dpa.tsx":()=>o(()=>import(`./dpa-DqIFIPXj.js`),__vite__mapDeps([94,49,2,1,10,4,20,42,34])),
6"./pages/equipment-rental.tsx":()=>o(()=>import(`./equipment-rental-D_qI1-m-.js`),__vite__mapDeps([95,51,2,1,8,4,9,10,39,31,52,28,13,16,17,18,19,20,21,22,23,24,34,53,33])),
6"./pages/error-404.tsx":()=>o(()=>import(`./error-404-CPxh1H5p.js`),__vite__mapDeps([96,55,1,2,38,4,10,34])),
6"./pages/error-500.tsx":()=>o(()=>import(`./error-500-Cvg3iasW.js`),__vite__mapDeps([97,56,1,2,38,4,10,34])),
6"./pages/faqs.tsx":()=>o(()=>import(`./faqs-1PM55MtE.js`),__vite__mapDeps([98,58,2,1,10,4,20,34])),
6"./pages/fleet-management.tsx":()=>o(()=>import(`./fleet-management-5dbXUGxX.js`),__vite__mapDeps([99,60,2,1,8,4,9,10,39,61,32,17,18,19,20,23,13,24,34,53,33])),
6"./pages/gdpr.tsx":()=>o(()=>import(`./gdpr-Bf_RuO7Z.js`),__vite__mapDeps([100,63,2,1,10,4,20,42,34])),
6"./pages/home.tsx":()=>o(()=>import(`./home-DCScoCax.js`),__vite__mapDeps([101,65,2,1,8,4,9,10,22,11,12,13,14,52,28,15,16,17,18,19,20,23,24,66])),
6"./pages/integrations.tsx":()=>o(()=>import(`./integrations-3hNssXpR.js`),__vite__mapDeps([102,68,2,1,8,4,9,10,19,20,34,53,33,13])),
6"./pages/motorbikes-boats.tsx":()=>o(()=>import(`./motorbikes-boats-DHV-P2_3.js`),__vite__mapDeps([103,70,2,1,8,4,9,10,39,11,12,13,14,29,18,19,20,21,22,23,24])),
6"./pages/online-reservations.tsx":()=>o(()=>import(`./online-reservations-DaMBT3O4.js`),__vite__mapDeps([104,72,2,1,8,4,9,10,39,30,61,18,19,20,21,22,13,23,24,34,53,33,66])),
6"./pages/pricing.tsx":()=>o(()=>import(`./pricing-C4udIATr.js`),__vite__mapDeps([105,74,2,4,1,37,8,9,10,33,20,34])),
6"./pages/privacy-policy.tsx":()=>o(()=>import(`./privacy-policy-CuXbLKZk.js`),__vite__mapDeps([106,77,2,1,10,4,20,42,34])),
6"./pages/rentcars-data-sharing-consent.tsx":()=>o(()=>import(`./rentcars-data-sharing-consent-BRhU5kCY.js`),__vite__mapDeps([107,44,2,1,10,4,20,42,34])),
6"./pages/sales-agent.tsx":()=>o(()=>import(`./sales-agent-CNWzRnoe.js`),__vite__mapDeps([108,82,2,1,9,10,4,22,33,14,20,23,13,34])),
6"./pages/security.tsx":()=>o(()=>import(`./security-CybluaK_.js`),__vite__mapDeps([109,84,2,1,10,4,20,42,34])),
6"./pages/self-service-car-rental.tsx":()=>o(()=>import(`./self-service-car-rental-Ds1L86d_.js`),__vite__mapDeps([110,75,2,1,8,4,9,10,20,23,13,24,34,53,33])),
6"./pages/staging-trial.tsx":()=>o(()=>import(`./staging-trial-CZg_5Wnh.js`),__vite__mapDeps([111,2,1,10,4,20,34])),
6"./pages/telematics.tsx":()=>o(()=>import(`./telematics-Dzznwcin.js`),__vite__mapDeps([112,76,2,1,8,4,9,10,39,20,23,13,34,53,33])),
6"./pages/terms-of-service.tsx":()=>o(()=>import(`./terms-of-service-nVdJF4WK.js`),__vite__mapDeps([113,78,2,1,10,4,20,42,34])),
6"./pages/zubie-data-sharing-consent.tsx":()=>o(()=>import(`./zubie-data-sharing-consent-mtwQ5MA3.js`),__vite__mapDeps([114,45,2,1,10,4,20,42,34]))
6}),r=await(n[`./pages/${e}.tsx`]||n[`./pages/${e}.jsx`]||n[`./Pages/${e}.tsx`]||n[`./Pages/${e}.jsx`])?.();if(!r)throw Error(`Page not found: ${e}`);return r.default??r},title:e=>e||rm,layout:()=>null,strictMode:!0,progress:{color:`#4B5563`}}); 7//# sourceMappingURL=app-ClL3Bu5p.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.