1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CrBe8pdP.js","./B3-LkQZ8.js","./MJXWYADd.js","./BtFi1xxV.js","./ys1kyJWe.js","./D_02cZ4R.js","./hNWjjqkP.js","./CGo0Edme.js","./hp.Cy__5r48.css","./C5QqC9X3.js","./CxGYDT84.js","./oEd_49Xj.js","./DLuBqKam.js","./MustReadsSection.BIVNl7Yq.css","./FepT8RGs.js","./BStYM7FX.js","./Sidebar.I3UKRVJR.css","./DfzqPZEa.js","./DaIaCBYT.js","./D3dOl7xr.js","./dD28YTXj.js","./CD9tk1tc.js","./VideoCarousel.DiBQV7Ei.css","./DynamicContent.CpydLrRY.css","./PageTemplate.yODH2TVX.css","./SRGGQWeJ.js","./Cy-1xzqa.js","./DWwdIbMc.js","./Template.CAp8AhRL.css","./BD836HKP.js","./DWsj-KLz.js","./DuQxz4Ub.js","./D6P25pa7.js","./iq2jOU33.js","./SrYZQWyk.js","./Banner.BoKvfEck.css","./DNJy3KUt.js","./onstar.j_cbDiKs.css","./BBokPRaa.js","./BBbmKE6A.js","./usarmy.MwGXhv_l.css","./eGHaiT7X.js","./DaR1-rHZ.js","./support.BiFbOemO.css","./a325s0e-.js","./DGMPUDV3.js","./blavity-u.CeRW7n93.css","./TmXte6VV.js","./town-hall.CR3K7tGb.css","./rnKVlXmA.js","./CExtVrCe.js","./DjiKI1Ra.js","./BHFQ2Sos.js","./CgiflGfj.js","./DAxkNBWA.js","./CkihSzbt.js","./BriefingSocialShare.FofgYfFR.css","./CCkH99Rr.js","./creators100.B1Vp6e3H.css","./CDrweFLc.js","./_name_.DzxMk31-.css","./BY7BnX6F.js","./BgTe9FYg.js","./index.B17B1Kn3.css","./CyQU9NUV.js","./Bra0YQ-m.js","./DWe3KKgt.js","./index.lP_w9QdJ.css","./wbvf9w8s.js","./4RSv86za.js","./D1xcJ6pb.js","./B4BL9LNZ.js","./awards.CuQzb7jT.css","./B_vP_3Qt.js","./JePD15AV.js","./Du5_eGih.js","./CFTpC612.js","./index.tn0RQdqM.css","./C_1x5KqZ.js","./accessamplified.DQ3b8FO2.css","./PHPKx2jn.js","./_date_.DqNuCFiK.css","./B0qvuFEU.js","./LIXqOoaV.js","./BlavityFestTicker.CFD6yZhJ.css","./Dv1bwbWG.js","./f9OaB6lf.js","./summit21.Dzppr-Xb.css","./BfffHNpb.js","./IdentityDigital.Dv7Mx2r6.css","./BmZKcsR2.js","./Dm4YFiWz.js","./off-the-shelves.VVk18WWy.css","./UDaRKpNw.js","./9jGedAYs.js","./terms-of-service.DK40JSjO.css","./De-8v-Ie.js","./BevSIoL_.js","./newsletter.OeJGNfMD.css","./BN8n8n7Y.js","./_slug_.BYaFbFLt.css","./VrGqKOy0.js","./livestream-control.BVE3kOHZ.css","./DFhxAYOY.js","./COxP3qoV.js","./BwIAFd_n.js","./DXq2IV-R.js","./index.CWq_EapB.css","./CYYAmz0c.js","./BXu2CaYC.js","./DayJs9w1.js","./blavity-fest.DxjTWiKM.css","./BGxGc0X_.js","./DP84SSyn.js","./MqHlHLVI.js","./BRznnnUn.js","./virtual_public.B4KYW_U-.css","./faq.jdjWW9lY.css","./BnJUJ_ZY.js","./Coyt7Fhg.js","./DAMsXkh-.js","./Template.DFQSPad-.css","./CHxGNOnc.js","./B8kQsoeo.js","./DQYCFtFF.js","./C1lmlnDM.js","./index.DD9PBnDs.css","./Bzvaxj1l.js","./index.2i0idyrb.css","./DMD1QZDU.js","./D1BCUOkV.js","./blavity-fest-faqs.mrSftfqh.css","./C12yf-Gc.js","./NGKL5ull.js","./blavity-fest-about.Ce_JAS-a.css","./Cp0jFK3D.js","./editorial-standards.Bq_IcEMF.css","./u50t3kjT.js","./blavity-fest-schedule.BMm2b24K.css","./iTDtubAA.js","./Cn7hTNfy.js","./ClkI68ai.js","./BQG5jSnp.js","./Dx7Qlk4t.js","./jointhelist.D_TO75YZ.css","./CaUPi-7K.js","./Mm1F1PGU.js","./blavity-fest-speaker-lineup.9htNkmbs.css","./D1111Fbe.js","./CJ3H5c8R.js","./F2mdt18a.js","./BknEPQof.js","./Bu_mJkhd.js","./DENUflOe.js","./shadowandact.CLIXqjx7.css"])))=>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:"3.4.0+9215a8a"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7c7c2d26-3e21-4e80-affe-c8dd4a2703b1",e._sentryDebugIdIdentifier="sentry-dbid-7c7c2d26-3e21-4e80-affe-c8dd4a2703b1")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function hy(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const st={},Go=[],Nr=()=>{},aT=()=>!1,Dl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),dp=e=>e.startsWith("onUpdate:"),zt=Object.assign,gy=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},YP=Object.prototype.hasOwnProperty,Ze=(e,t)=>YP.call(e,t),Ee=Array.isArray,Ko=e=>Ma(e)==="[object Map]",fp=e=>Ma(e)==="[object Set]",$b=e=>Ma(e)==="[object Date]",XP=e=>Ma(e)==="[object RegExp]",Ce=e=>typeof e=="function",ct=e=>typeof e=="string",$n=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",my=e=>(Xe(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),cT=Object.prototype.toString,Ma=e=>cT.call(e),JP=e=>Ma(e).slice(8,-1),_y=e=>Ma(e)==="[object Object]",pp=e=>ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ui=hy(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hp=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ZP=/-\w/g,bn=hp(e=>e.replace(ZP,t=>t.slice(1).toUpperCase())),QP=/\B([A-Z])/g,ai=hp(e=>e.replace(QP,"-$1").toLowerCase()),gp=hp(e=>e.charAt(0).toUpperCase()+e.slice(1)),yh=hp(e=>e?`on${gp(e)}`:""),Cr=(e,t)=>
2!Object.is(e,t),Yo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},lT=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},mp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uT=e=>{const t=ct(e)?Number(e):NaN;return isNaN(t)?e:t};let Fb;const _p=()=>Fb||(Fb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ao(e){if(Ee(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ct(r)?rM(r):ao(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(ct(e)||Xe(e))return e}const eM=/;(?![^(]*\))/g,tM=/:([^]+)/,nM=/\/\*[^]*?\*\//g;function rM(e){const t={};return e.replace(nM,"").split(eM).forEach(n=>{if(n){const r=n.split(tM);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Mt(e){let t="";if(ct(e))t=e;else if(Ee(e))for(let n=0;n<e.length;n++){const r=Mt(e[n]);r&&(t+=r+" ")}else if(Xe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Are(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ct(t)&&(e.class=Mt(t)),n&&(e.style=ao(n)),e}const sM="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",iM=hy(sM);function dT(e){return!!e||e===""}function oM(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=$l(e[r],t[r]);return n}function $l(e,t){if(e===t)return!0;let n=$b(e),r=$b(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=$n(e),r=$n(t),n||r)return e===t;if(n=Ee(e),r=Ee(t),n||r)return n&&r?oM(e,t):!1;if(n=Xe(e),r=Xe(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(a&&!c||!a&&c||!$l(e[o],t[o]))return!1}}return String(e)===String(t)}function aM(e,t){return e.findIndex(n=>$l(n,t))}const fT=e=>!!(e&&e.__v_isRef===!0),lr=e=>ct(e)?e:e==null?"":Ee(e)||Xe(e)&&(e.toString===cT||!Ce(e.toString))?fT(e)?lr(e.value):JSON.stringify(e,pT,2):String(e),pT=(e,t)=>fT(t)?pT(e,t.value):Ko(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[vh(r,i)+" =>"]=s,n),{})}:fp(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vh(n))}:$n(t)?vh(t):Xe(t)&&!Ee(t)&&!_y(t)?String(t):t,vh=(e,t="")=>{var n;return $n(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Bt;class hT{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Bt&&(Bt.active?(this.parent=Bt,this.index=(Bt.scopes||(Bt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Bt;try{return Bt=this,t()}finally{Bt=n}}}on(){++this._on===1&&(this.prevScope=Bt,Bt=this)}off(){if(this._on>0&&--this._on===0){if(Bt===this)Bt=this.prevScope;else{let t=Bt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function yy(e){return new hT(e)}function Fl(){return Bt}function vy(e,t=!1){Bt&&Bt.cleanups.push(e)}let ft;const bh=new WeakSet;class gT{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Bt&&(Bt.active?Bt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,bh.has(this)&&(bh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||_T(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ub(this),yT(this);const t=ft,n=ur;ft=this,ur=!0;try{return this.fn()}
vendor: 4,378 bytes, line 2
2finally{vT(this),ft=t,ur=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Sy(t);this.deps=this.depsTail=void 0,Ub(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?bh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qg(this)&&this.run()}get dirty(){return Qg(this)}}let mT=0,Mc,Lc;function _T(e,t=!1){if(e.flags|=8,t){e.next=Lc,Lc=e;return}e.next=Mc,Mc=e}function by(){mT++}function wy(){if(--mT>0)return;if(Lc){let t=Lc;for(Lc=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Mc;){let t=Mc;for(Mc=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function yT(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vT(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Sy(r),cM(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Qg(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(bT(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function bT(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rl)||(e.globalVersion=rl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qg(e))))return;e.flags|=2;const t=e.dep,n=ft,r=ur;ft=e,ur=!0;try{yT(e);const s=e.fn(e._value);(t.version===0||Cr(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ft=n,ur=r,vT(e),e.flags&=-3}}function Sy(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Sy(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function cM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ur=!0;const wT=[];function Ss(){wT.push(ur),ur=!1}function Es(){const e=wT.pop();ur=e===void 0?!0:e}function Ub(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ft;ft=void 0;try{t()}finally{ft=n}}}let rl=0;class lM{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class yp{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ft||!ur||ft===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ft)n=this.activeLink=new lM(ft,this),ft.deps?(n.prevDep=ft.depsTail,ft.depsTail.nextDep=n,ft.depsTail=n):ft.deps=ft.depsTail=n,ST(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ft.depsTail,n.nextDep=void 0,ft.depsTail.nextDep=n,ft.depsTail=n,ft.deps===n&&(ft.deps=r)}return n}trigger(t){this.version++,rl++,this.notify(t)}notify(t){by();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{wy()}}}function ST(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ST(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ud=new WeakMap,Hi=Symbol(""),em=Symbol(""),sl=Symbol("");function un(e,t,n){if(ur&&ft){let r=Ud.get(e);r||Ud.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new yp),s.map=r,s.key=n),s.track()}}function os(e,t,n,r,s,i){const o=Ud.get(e);if(!o){rl++;return}const a=c=>{c&&c.trigger()};if(by(),t==="clear")o.forEach(a);else{const c=Ee(e),l=c&&pp(n);if(c&&n==="length"){const u=Number(r);o.forEach((d,f)=>{(f==="length"||f===sl||!$n(f)&&f>=u)&&a(d)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),l&&a(o.get(sl)),t){case"add":c?l&&a(o.get("length")):(a(o.get(Hi)),Ko(e)&&a(o.get(em)));break;case"delete":c||(a(o.get(Hi)),Ko(e)&&a(o.get(em)));break;case"set":Ko(e)&&a(o.get(Hi));break}}wy()}function uM(e,t){const n=Ud.get(e);return n&&n.get(t)}function ho(e){const t=Ke(e);return t===e?t:(un(t,"iterate",sl),Ln(e)?t:t.map(mr))}function vp(e){return un(e=Ke(e),"iterate",sl),e}function xr(e,t){return Fr(e)?ca(Dr(e)?mr(t):t):mr(t)}const dM={__proto__:null,[Symbol.iterator](){return wh(this,Symbol.iterator,e=>xr(this,e))},concat(...e){return ho(this).concat(...e.map(t=>Ee(t)?ho(t):t))}
2,entries(){return wh(this,"entries",e=>(e[1]=xr(this,e[1]),e))},every(e,t){return Kr(this,"every",e,t,void 0,arguments)},filter(e,t){return Kr(this,"filter",e,t,n=>n.map(r=>xr(this,r)),arguments)},find(e,t){return Kr(this,"find",e,t,n=>xr(this,n),arguments)},findIndex(e,t){return Kr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Kr(this,"findLast",e,t,n=>xr(this,n),arguments)},findLastIndex(e,t){return Kr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Kr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Sh(this,"includes",e)},indexOf(...e){return Sh(this,"indexOf",e)},join(e){return ho(this).join(e)},lastIndexOf(...e){return Sh(this,"lastIndexOf",e)},map(e,t){return Kr(this,"map",e,t,void 0,arguments)},pop(){return Za(this,"pop")},push(...e){return Za(this,"push",e)},reduce(e,...t){return Hb(this,"reduce",e,t)},reduceRight(e,...t){return Hb(this,"reduceRight",e,t)},shift(){return Za(this,"shift")},some(e,t){return Kr(this,"some",e,t,void 0,arguments)},splice(...e){return Za(this,"splice",e)},toReversed(){return ho(this).toReversed()},toSorted(e){return ho(this).toSorted(e)},toSpliced(...e){return ho(this).toSpliced(...e)},unshift(...e){return Za(this,"unshift",e)},values(){return wh(this,"values",e=>xr(this,e))}};function wh(e,t,n){const r=vp(e),s=r[t]();return r!==e&&!Ln(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const fM=Array.prototype;function Kr(e,t,n,r,s,i){const o=vp(e),a=o!==e&&!Ln(e),c=o[t];if(c!==fM[t]){const d=c.apply(e,i);return a?mr(d):d}let l=n;o!==e&&(a?l=function(d,f){return n.call(this,xr(e,d),f,e)}:n.length>2&&(l=function(d,f){return n.call(this,d,f,e)}));const u=c.call(o,l,r);return a&&s?s(u):u}function Hb(e,t,n,r){const s=vp(e),i=s!==e&&!Ln(e);let o=n,a=!1;s!==e&&(i?(a=r.length===0,o=function(l,u,d){return a&&(a=!1,l=xr(e,l)),n.call(this,l,xr(e,u),d,e)}):n.length>3&&(o=function(l,u,d){return n.call(this,l,u,d,e)}));const c=s[t](o,...r);return a?xr(e,c):c}function Sh(e,t,n){const r=Ke(e);un(r,"iterate",sl);const s=r[t](...n);return(s===-1||s===!1)&&bp(n[0])?(n[0]=Ke(n[0]),r[t](...n)):s}function Za(e,t,n=[]){Ss(),by();const r=Ke(e)[t].apply(e,n);return wy(),Es(),r}const pM=hy("__proto__,__v_isRef,__isVue"),ET=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($n));function hM(e){$n(e)||(e=String(e));const t=Ke(this);return un(t,"has",e),t.hasOwnProperty(e)}class TT{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?TM:RT:i?IT:xT).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Ee(t);if(!s){let c;if(o&&(c=dM[n]))return c;if(n==="hasOwnProperty")return hM}const a=Reflect.get(t,n,gt(t)?t:r);if(($n(n)?ET.has(n):pM(n))||(s||un(t,"get",n),i))return a;if(gt(a)){const c=o&&pp(n)?a:a.value;return s&&Xe(c)?ri(c):c}return Xe(a)?s?ri(a):tr(a):a}}class kT extends TT{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=Ee(t)&&pp(n);if(!this._isShallow){const l=Fr(i);if(!Ln(r)&&!Fr(r)&&(i=Ke(i),r=Ke(r)),!o&>(i)&&!gt(r))return l||(i.value=r),!0}const a=o?Number(n)<t.length:Ze(t,n),c=Reflect.set(t,n,r,gt(t)?t:s);return t===Ke(s)&&(a?Cr(r,i)&&os(t,"set",n,r):os(t,"add",n,r)),c}deleteProperty(t,n){const r=Ze(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&os(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!$n(n)||!ET.has(n))&&un(t,"has",n),r}ownKeys(t){return un(t,"iterate",Ee(t)?"length":Hi),Reflect.ownKeys(t)}}class gM extends TT{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const mM=new kT,_M=new gM,yM=new kT(!0);const tm=e=>e,bu=e=>Reflect.getPrototypeOf(e);function vM(e,t,n){return function(...r){const s=this.__v_raw,i=Ke(s),o=Ko(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,l=s[e](...r),u=n?tm:t?ca:mr;return!t&&un(i,"iterate",c?em:Hi),zt(Object.create(l),{next(){const{value:d,done:f}=l.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function wu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bM(e,t){const n={get(s){const i=this.__v_raw,o=Ke(i),a=Ke(s);e||(Cr(s,a)&&un(o,"get",s),un(o,"get",a));const{has:c}=bu(o),l=t?tm:e?ca:mr;if(c.call(o,s))return l(i.get(s));if(c.call(o,a))return l(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&un(Ke(s),"iterate",Hi),s.size},has(s){const i=this.__v_raw,o=Ke(i),a=Ke(s);return e||(Cr(s,a)&&un(o,"has",s),un(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)}
2,forEach(s,i){const o=this,a=o.__v_raw,c=Ke(a),l=t?tm:e?ca:mr;return!e&&un(c,"iterate",Hi),a.forEach((u,d)=>s.call(i,l(u),l(d),o))}};return zt(n,e?{add:wu("add"),set:wu("set"),delete:wu("delete"),clear:wu("clear")}:{add(s){const i=Ke(this),o=bu(i),a=Ke(s),c=!t&&!Ln(s)&&!Fr(s)?a:s;return o.has.call(i,c)||Cr(s,c)&&o.has.call(i,s)||Cr(a,c)&&o.has.call(i,a)||(i.add(c),os(i,"add",c,c)),this},set(s,i){!t&&!Ln(i)&&!Fr(i)&&(i=Ke(i));const o=Ke(this),{has:a,get:c}=bu(o);let l=a.call(o,s);l||(s=Ke(s),l=a.call(o,s));const u=c.call(o,s);return o.set(s,i),l?Cr(i,u)&&os(o,"set",s,i):os(o,"add",s,i),this},delete(s){const i=Ke(this),{has:o,get:a}=bu(i);let c=o.call(i,s);c||(s=Ke(s),c=o.call(i,s)),a&&a.call(i,s);const l=i.delete(s);return c&&os(i,"delete",s,void 0),l},clear(){const s=Ke(this),i=s.size!==0,o=s.clear();return i&&os(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=vM(s,e,t)}),n}function Ey(e,t){const n=bM(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Ze(n,s)&&s in r?n:r,s,i)}const wM={get:Ey(!1,!1)},SM={get:Ey(!1,!0)},EM={get:Ey(!0,!1)};const xT=new WeakMap,IT=new WeakMap,RT=new WeakMap,TM=new WeakMap;function kM(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xM(e){return e.__v_skip||!Object.isExtensible(e)?0:kM(JP(e))}function tr(e){return Fr(e)?e:Ty(e,!1,mM,wM,xT)}function Or(e){return Ty(e,!1,yM,SM,IT)}function ri(e){return Ty(e,!0,_M,EM,RT)}function Ty(e,t,n,r,s){if(!Xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=xM(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Dr(e){return Fr(e)?Dr(e.__v_raw):!!(e&&e.__v_isReactive)}function Fr(e){return!!(e&&e.__v_isReadonly)}function Ln(e){return!!(e&&e.__v_isShallow)}function bp(e){return e?!!e.__v_raw:!1}function Ke(e){const t=e&&e.__v_raw;return t?Ke(t):e}function ky(e){return!Ze(e,"__v_skip")&&Object.isExtensible(e)&&lT(e,"__v_skip",!0),e}const mr=e=>Xe(e)?tr(e):e,ca=e=>Xe(e)?ri(e):e;function gt(e){return e?e.__v_isRef===!0:!1}function Ae(e){return CT(e,!1)}function dr(e){return CT(e,!0)}function CT(e,t){return gt(e)?e:new IM(e,t)}class IM{constructor(t,n){this.dep=new yp,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ke(t),this._value=n?t:mr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ln(t)||Fr(t);t=r?t:Ke(t),Cr(t,n)&&(this._rawValue=t,this._value=r?t:mr(t),this.dep.trigger())}}function ye(e){return gt(e)?e.value:e}function Ir(e){return Ce(e)?e():ye(e)}const RM={get:(e,t,n)=>t==="__v_raw"?e:ye(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return gt(s)&&!gt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function AT(e){return Dr(e)?e:new Proxy(e,RM)}class CM{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new yp,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ore(e){return new CM(e)}function AM(e){const t=Ee(e)?new Array(e.length):{};for(const n in e)t[n]=PT(e,n);return t}class OM{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=$n(n)?n:String(n),this._raw=Ke(t);let s=!0,i=t;if(!Ee(t)||$n(this._key)||!pp(this._key))do s=!bp(i)||Ln(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=ye(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&>(this._raw[this._key])){const n=this._object[this._key];if(gt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return uM(this._raw,this._key)}}class PM{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function OT(e,t,n){return gt(e)?e:Ce(e)?new PM(e):Xe(e)&&arguments.length>1?PT(e,t,n):Ae(e)}function PT(e,t,n){return new OM(e,t,n)}class MM{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new yp(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ft!==this)return _T(this,!0),!0}get value(){const t=this.dep.track();return bT(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function LM(e,t,n=!1){let r,s;return Ce(e)?r=e:(r=e.get,s=e.set),new MM(r,s,n)}const Su={},Hd=new WeakMap;let Ii;function NM(e,t=!1,n=Ii){if(n){let r=Hd.get(n);r||Hd.set(n,r=[]),r.push(e)}}function DM(e,t,n=st){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=n,l=_=>s?_:Ln(_)||s===!1||s===0?as(_,1):as(_);let u,d,f,p,h=!1,g=!1;if(gt(e)?(d=()=>e.value,h=Ln(e)):Dr(e)?(d=()=>l(e),h=!0):Ee(e)?(g=!0,h=e.some(_=>Dr(_)||Ln(_)),d=()=>e.map(_=>{if(gt(_))return _.value;if(Dr(_))return l(_);
vendor: 5,772 bytes, line 2
2if(Ce(_))return c?c(_,2):_()})):Ce(e)?t?d=c?()=>c(e,2):e:d=()=>{if(f){Ss();try{f()}finally{Es()}}const _=Ii;Ii=u;try{return c?c(e,3,[p]):e(p)}finally{Ii=_}}:d=Nr,t&&s){const _=d,w=s===!0?1/0:s;d=()=>as(_(),w)}const S=Fl(),y=()=>{u.stop(),S&&S.active&&gy(S.effects,u)};if(i&&t){const _=t;t=(...w)=>{_(...w),y()}}let v=g?new Array(e.length).fill(Su):Su;const m=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const w=u.run();if(s||h||(g?w.some((x,T)=>Cr(x,v[T])):Cr(w,v))){f&&f();const x=Ii;Ii=u;try{const T=[w,v===Su?void 0:g&&v[0]===Su?[]:v,p];v=w,c?c(t,3,T):t(...T)}finally{Ii=x}}}else u.run()};return a&&a(m),u=new gT(d),u.scheduler=o?()=>o(m,!1):m,p=_=>NM(_,!1,u),f=u.onStop=()=>{const _=Hd.get(u);if(_){if(c)c(_,4);else for(const w of _)w();Hd.delete(u)}},t?r?m(!0):v=u.run():o?o(m.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function as(e,t=1/0,n){if(t<=0||!Xe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,gt(e))as(e.value,t,n);else if(Ee(e))for(let r=0;r<e.length;r++)as(e[r],t,n);else if(fp(e)||Ko(e))e.forEach(r=>{as(r,t,n)});else if(_y(e)){for(const r in e)as(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&as(e[r],t,n)}return e}function Ul(e,t,n,r){try{return r?e(...r):e()}catch(s){La(s,t,n)}}function _r(e,t,n,r){if(Ce(e)){const s=Ul(e,t,n,r);return s&&my(s)&&s.catch(i=>{La(i,t,n)}),s}if(Ee(e)){const s=[];for(let i=0;i<e.length;i++)s.push(_r(e[i],t,n,r));return s}}function La(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||st;if(t){let a=t.parent;const c=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,c,l)===!1)return}a=a.parent}if(i){Ss(),Ul(i,null,10,[e,c,l]),Es();return}}$M(e,n,s,r,o)}function $M(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const yn=[];let Er=-1;const Xo=[];let qs=null,Io=0;const MT=Promise.resolve();let jd=null;function Jn(e){const t=jd||MT;return e?t.then(this?e.bind(this):e):t}function FM(e){let t=Er+1,n=yn.length;for(;t<n;){const r=t+n>>>1,s=yn[r],i=ol(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function xy(e){if(!(e.flags&1)){const t=ol(e),n=yn[yn.length-1];!n||!(e.flags&2)&&t>=ol(n)?yn.push(e):yn.splice(FM(t),0,e),e.flags|=1,LT()}}function LT(){jd||(jd=MT.then(NT))}function il(e){Ee(e)?Xo.push(...e):qs&&e.id===-1?qs.splice(Io+1,0,e):e.flags&1||(Xo.push(e),e.flags|=1),LT()}function jb(e,t,n=Er+1){for(;n<yn.length;n++){const r=yn[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;yn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Bd(e){if(Xo.length){const t=[...new Set(Xo)].sort((n,r)=>ol(n)-ol(r));if(Xo.length=0,qs){qs.push(...t);return}for(qs=t,Io=0;Io<qs.length;Io++){const n=qs[Io];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}qs=null,Io=0}}const ol=e=>e.id==null?e.flags&2?-1:1/0:e.id;function NT(e){try{for(Er=0;Er<yn.length;Er++){const t=yn[Er];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ul(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Er<yn.length;Er++){const t=yn[Er];t&&(t.flags&=-2)}Er=-1,yn.length=0,Bd(),jd=null,(yn.length||Xo.length)&&NT()}}let tn=null,DT=null;function qd(e){const t=tn;return tn=e,DT=e&&e.type.__scopeId||null,t}function Me(e,t=tn,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Kd(-1);const i=qd(t);let o;try{o=e(...s)}finally{qd(i),r._d&&Kd(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function UM(e,t){if(tn===null)return e;const n=Tp(tn),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,c=st]=t[s];i&&(Ce(i)&&(i={mounted:i,updated:i}),i.deep&&as(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function Tr(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let c=a.dir[r];c&&(Ss(),_r(c,n,8,[e.el,a,e,t]),Es())}}function gs(e,t){if(en){let n=en.provides;const r=en.parent&&en.parent.provides;r===n&&(n=en.provides=Object.create(r)),n[e]=t}}function Ut(e,t,n=!1){const r=Zn();if(r||ji){let s=ji?ji._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Ce(t)?t.call(r&&r.proxy):t}}function Hl(){return!!(Zn()||ji)}const HM=Symbol.for("v-scx"),jM=()=>Ut(HM);function $T(e,t){return Iy(e,null,t)}function rn(e,t,n){return Iy(e,t,n)}function Iy(e,t,n=st){const{immediate:r,deep:s,flush:i,once:o}=n,a=zt({},n),c=t&&r||!t&&i!=="post";let l;if(Yi){if(i==="sync"){const p=jM();l=p.__watcherHandles||(p.__watcherHandles=[])}else if(!c){const p=()=>{};return p.stop=Nr,p.resume=Nr,p.pause=Nr,p}}const u=en;a.call=(p,h,g)=>_r(p,u,h,g);let d=!1;i==="post"?a.scheduler=p=>{Nt(p,u&&u.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(p,h)=>{h?p():xy(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=DM(e,t,a);return Yi&&(l?l.push(f):c&&f()),f}function BM(e,t,n){const r=this.proxy,s=ct(e)?e.includes(".")?FT(r,e):()=>r[e]:e.bind(r,r);let i;Ce(t)?i=t:(i=t.handler,n=t);const o=$a(this),a=Iy(s,i.bind(r),n);return o(),a}function FT(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const js=new WeakMap,UT=Symbol("_vte"),HT=e=>e.__isTeleport,Oi=e=>e&&(e.disabled||e.disabled===""),qM=e=>e&&(e.defer||e.defer===""),Bb=e=>typeof SVGElement<"u"&&e instanceof SVGElement,qb=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,nm=(e,t)=>{const n=e&&e.to;return ct(n)?t?t(n):null:n},WM={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,c,l){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:h,createText:g,createComment:S,parentNode:y}}=l,v=Oi(t.props);let{dynamicChildren:m}=t;
2const _=(T,R,k)=>{T.shapeFlag&16&&u(T.children,R,k,s,i,o,a,c)},w=(T=t)=>{const R=Oi(T.props),k=T.target=nm(T.props,h),C=rm(k,T,g,p);k&&(o!=="svg"&&Bb(k)?o="svg":o!=="mathml"&&qb(k)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(k),R||(_(T,k,C),yc(T,!1)))},x=T=>{const R=()=>{if(js.get(T)===R){if(js.delete(T),Oi(T.props)){const k=y(T.el)||n;_(T,k,T.anchor),yc(T,!0)}w(T)}};js.set(T,R),Nt(R,i)};if(e==null){const T=t.el=g(""),R=t.anchor=g("");if(p(T,n,r),p(R,n,r),qM(t.props)||i&&i.pendingBranch){x(t);return}v&&(_(t,n,R),yc(t,!0)),w()}else{t.el=e.el;const T=t.anchor=e.anchor,R=js.get(e);if(R){R.flags|=8,js.delete(e),x(t);return}t.targetStart=e.targetStart;const k=t.target=e.target,C=t.targetAnchor=e.targetAnchor,M=Oi(e.props),b=M?n:k,E=M?T:C;if(o==="svg"||Bb(k)?o="svg":(o==="mathml"||qb(k))&&(o="mathml"),m?(f(e.dynamicChildren,m,b,s,i,o,a),Ly(e,t,!0)):c||d(e,t,b,E,s,i,o,a,!1),v)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Eu(t,n,T,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=nm(t.props,h);I&&Eu(t,I,null,l,0)}else M&&Eu(t,k,C,l,1);yc(t,v)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e;let p=i||!Oi(f);const h=js.get(e);if(h&&(h.flags|=8,js.delete(e),p=!1),d&&(s(l),s(u)),i&&s(c),o&16)for(let g=0;g<a.length;g++){const S=a[g];r(S,t,n,p,!!S.dynamicChildren)}},move:Eu,hydrate:VM};function Eu(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:c,children:l,props:u}=e,d=i===2;if(d&&r(o,t,n),!js.has(e)&&(!d||Oi(u))&&c&16)for(let f=0;f<l.length;f++)s(l[f],t,n,2);d&&r(a,t,n)}function VM(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:c,insert:l,createText:u}},d){function f(S,y){let v=y;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,S._lpa=t.targetAnchor&&o(t.targetAnchor);break}}v=o(v)}}function p(S,y){y.anchor=d(o(S),y,a(S),n,r,s,i)}const h=t.target=nm(t.props,c),g=Oi(t.props);if(h){const S=h._lpa||h.firstChild;t.shapeFlag&16&&(g?(p(e,t),f(h,S),t.targetAnchor||rm(h,t,u,l,a(e)===h?e:null)):(t.anchor=o(e),f(h,S),t.targetAnchor||rm(h,t,u,l),d(S&&o(S),t,h,n,r,s,i))),yc(t,g)}else g&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const Ry=WM;function yc(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function rm(e,t,n,r,s=null){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[UT]=o,e&&(r(i,e,s),r(o,e,s)),o}const kr=Symbol("_leaveCb"),Qa=Symbol("_enterCb");function zM(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ci(()=>{e.isMounted=!0}),Na(()=>{e.isUnmounting=!0}),e}const Hn=[Function,Array],jT={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hn,onEnter:Hn,onAfterEnter:Hn,onEnterCancelled:Hn,onBeforeLeave:Hn,onLeave:Hn,onAfterLeave:Hn,onLeaveCancelled:Hn,onBeforeAppear:Hn,onAppear:Hn,onAfterAppear:Hn,onAppearCancelled:Hn},BT=e=>{const t=e.subTree;return t.component?BT(t.component):t},GM={name:"BaseTransition",props:jT,setup(e,{slots:t}){const n=Zn(),r=zM();return()=>{const s=t.default&&VT(t.default(),!0),i=s&&s.length?qT(s):n.subTree?fr():void 0;if(!i)return;const o=Ke(e),{mode:a}=o;if(r.isLeaving)return Eh(i);const c=Wb(i);if(!c)return Eh(i);let l=sm(c,o,r,n,d=>l=d);c.type!==Ft&&la(c,l);let u=n.subTree&&Wb(n.subTree);if(u&&u.type!==Ft&&!or(u,c)&&BT(n).type!==Ft){let d=sm(u,o,r,n);if(la(u,d),a==="out-in"&&c.type!==Ft)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},Eh(i);a==="in-out"&&c.type!==Ft?d.delayLeave=(f,p,h)=>{const g=WT(r,u);g[String(u.key)]=u,f[kr]=()=>{p(),f[kr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{h(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function qT(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ft){t=n;break}}return t}const KM=GM;
vendor: 60,088 bytes, lines 2-4
2function WT(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function sm(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:S,onAppear:y,onAfterAppear:v,onAppearCancelled:m}=t,_=String(e.key),w=WT(n,e),x=(k,C)=>{k&&_r(k,r,9,C)},T=(k,C)=>{const M=C[1];x(k,C),Ee(k)?k.every(b=>b.length<=1)&&M():k.length<=1&&M()},R={mode:o,persisted:a,beforeEnter(k){let C=c;if(!n.isMounted)if(i)C=S||c;else return;k[kr]&&k[kr](!0);const M=w[_];M&&or(e,M)&&M.el[kr]&&M.el[kr](),x(C,[k])},enter(k){if(w[_]===e)return;let C=l,M=u,b=d;if(!n.isMounted)if(i)C=y||l,M=v||u,b=m||d;else return;let E=!1;k[Qa]=A=>{E||(E=!0,A?x(b,[k]):x(M,[k]),R.delayedLeave&&R.delayedLeave(),k[Qa]=void 0)};const I=k[Qa].bind(null,!1);C?T(C,[k,I]):I()},leave(k,C){const M=String(e.key);if(k[Qa]&&k[Qa](!0),n.isUnmounting)return C();x(f,[k]);let b=!1;k[kr]=I=>{b||(b=!0,C(),I?x(g,[k]):x(h,[k]),k[kr]=void 0,w[M]===e&&delete w[M])};const E=k[kr].bind(null,!1);w[M]=e,p?T(p,[k,E]):E()},clone(k){const C=sm(k,t,n,r,s);return s&&s(C),C}};return R}function Eh(e){if(jl(e))return e=Ur(e),e.children=null,e}function Wb(e){if(!jl(e))return HT(e.type)&&e.children?qT(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ce(n.default))return n.default()}}function la(e,t){e.shapeFlag&6&&e.component?(e.transition=t,la(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function VT(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===ht?(o.patchFlag&128&&s++,r=r.concat(VT(o.children,t,a))):(t||o.type!==Ft)&&r.push(a!=null?Ur(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Un(e,t){return Ce(e)?zt({name:e.name},t,{setup:e}):e}function Pre(){const e=Zn();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Cy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Vb(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Wd=new WeakMap;function Jo(e,t,n,r,s=!1){if(Ee(e)){e.forEach((g,S)=>Jo(g,t&&(Ee(t)?t[S]:t),n,r,s));return}if(ms(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Jo(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Tp(r.component):r.el,o=s?null:i,{i:a,r:c}=e,l=t&&t.r,u=a.refs===st?a.refs={}:a.refs,d=a.setupState,f=Ke(d),p=d===st?aT:g=>Vb(u,g)?!1:Ze(f,g),h=(g,S)=>!(S&&Vb(u,S));if(l!=null&&l!==c){if(zb(t),ct(l))u[l]=null,p(l)&&(d[l]=null);else if(gt(l)){const g=t;h(l,g.k)&&(l.value=null),g.k&&(u[g.k]=null)}}if(Ce(c))Ul(c,a,12,[o,u]);else{const g=ct(c),S=gt(c);if(g||S){const y=()=>{if(e.f){const v=g?p(c)?d[c]:u[c]:h()||!e.k?c.value:u[e.k];if(s)Ee(v)&&gy(v,i);else if(Ee(v))v.includes(i)||v.push(i);else if(g)u[c]=[i],p(c)&&(d[c]=u[c]);else{const m=[i];h(c,e.k)&&(c.value=m),e.k&&(u[e.k]=m)}}else g?(u[c]=o,p(c)&&(d[c]=o)):S&&(h(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){const v=()=>{y(),Wd.delete(e)};v.id=-1,Wd.set(e,v),Nt(v,n)}else zb(e),y()}}}function zb(e){const t=Wd.get(e);t&&(t.flags|=8,Wd.delete(e))}let Gb=!1;const go=()=>{Gb||(console.error("Hydration completed but contains mismatches."),Gb=!0)},YM=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",XM=e=>e.namespaceURI.includes("MathML"),Tu=e=>{if(e.nodeType===1){if(YM(e))return"svg";if(XM(e))return"mathml"}},$o=e=>e.nodeType===8;function JM(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:c,createComment:l}}=e,u=(m,_)=>{if(!_.hasChildNodes()){n(null,m,_),Bd(),_._vnode=m;return}d(_.firstChild,m,null,null,null),Bd(),_._vnode=m},d=(m,_,w,x,T,R=!1)=>{R=R||!!_.dynamicChildren;const k=$o(m)&&m.data==="[",C=()=>g(m,_,w,x,T,k),{type:M,ref:b,shapeFlag:E,patchFlag:I}=_;let A=m.nodeType;_.el=m,I===-2&&(R=!1,_.dynamicChildren=null);let $=null;switch(M){case Bi:A!==3?_.children===""?(c(_.el=s(""),o(m),m),$=m):$=C():(m.data!==_.children&&(go(),m.data=_.children),$=i(m));break;case Ft:v(m)?($=i(m),y(_.el=m.content.firstChild,m,w)):A!==8||k?$=C():$=i(m);break;case Dc:if(k&&(m=i(m),A=m.nodeType),A===1||A===3){$=m;const N=!_.children.length;for(let O=0;O<_.staticCount;O++)N&&(_.children+=$.nodeType===1?$.outerHTML:$.data),O===_.staticCount-1&&(_.anchor=$),$=i($);return k?i($):$}else C();break;case ht:k?$=h(m,_,w,x,T,R):$=C();break;default:if(E&1)(A!==1||_.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?$=C():$=f(m,_,w,x,T,R);else if(E&6){_.slotScopeIds=T;const N=o(m);if(k?$=S(m):$o(m)&&m.data==="teleport start"?$=S(m,m.data,"teleport end"):$=i(m),t(_,N,null,w,x,Tu(N),R),ms(_)&&!_.type.__asyncResolved){let O;k?(O=ge(ht),O.anchor=$?$.previousSibling:N.lastChild):O=m.nodeType===3?Le(""):ge("div"),O.el=m,_.component.subTree=O}}else E&64?A!==8?$=C():$=_.type.hydrate(m,_,w,x,T,R,e,p):E&128&&($=_.type.hydrate(m,_,w,x,Tu(o(m)),T,R,e,d))}return b!=null&&Jo(b,null,x,_),$},f=(m,_,w,x,T,R)=>{R=R||!!_.dynamicChildren;const{type:k,props:C,patchFlag:M,shapeFlag:b,dirs:E,transition:I}=_,A=k==="input"||k==="option";if(A||M!==-1){E&&Tr(_,null,w,"created");let $=!1;if(v(m)){$=hk(null,I)&&w&&w.vnode.props&&w.vnode.props.appear;const O=m.content.firstChild;if($){const D=O.getAttribute("class");D&&(O.$cls=D),I.beforeEnter(O)}y(O,m,w),_.el=m=O}if(b&16&&!(C&&(C.innerHTML||C.textContent))){let O=p(m.firstChild,_,m,w,x,T,R);for(;O;){ku(m,1)||go();const D=O;O=O.nextSibling,a(D)}}else if(b&8){let O=_.children;O[0]===` 3`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(O=O.slice(1));const{textContent:D}=m;D!==O&&D!==O.replace(/\r\n|\r/g,` 4`)&&(ku(m,0)||go(),m.textContent=_.children)}if(C){if(A||!R||M&48){const O=m.tagName.includes("-");for(const D in C)(A&&(D.endsWith("value")||D==="indeterminate")||Dl(D)&&!Ui(D)||D[0]==="."||O&&!Ui(D))&&r(m,D,null,C[D],void 0,w)}else if(C.onClick)r(m,"onClick",null,C.onClick,void 0,w);else if(M&4&&Dr(C.style))for(const O in C.style)C.style[O]}let N;(N=C&&C.onVnodeBeforeMount)&&Sn(N,w,_),E&&Tr(_,null,w,"beforeMount"),((N=C&&C.onVnodeMounted)||E||$)&&yk(()=>{N&&Sn(N,w,_),$&&I.enter(m),E&&Tr(_,null,w,"mounted")},x)}return m.nextSibling},p=(m,_,w,x,T,R,k)=>{k=k||!!_.dynamicChildren;const C=_.children,M=C.length;for(let b=0;b<M;b++){const E=k?C[b]:C[b]=On(C[b]),I=E.type===Bi;m?(I&&!k&&b+1<M&&On(C[b+1]).type===Bi&&(c(s(m.data.slice(E.children.length)),w,i(m)),m.data=E.children),m=d(m,E,x,T,R,k)):I&&!E.children?c(E.el=s(""),w):(ku(w,1)||go(),n(null,E,w,null,x,T,Tu(w),R))}return m},h=(m,_,w,x,T,R)=>{const{slotScopeIds:k}=_;k&&(T=T?T.concat(k):k);const C=o(m),M=p(i(m),_,C,w,x,T,R);return M&&$o(M)&&M.data==="]"?i(_.anchor=M):(go(),c(_.anchor=l("]"),C,M),M)},g=(m,_,w,x,T,R)=>{if(ku(m.parentElement,1)||go(),_.el=null,R){const M=S(m);for(;;){const b=i(m);if(b&&b!==M)a(b);else break}}const k=i(m),C=o(m);return a(m),n(null,_,C,k,w,x,Tu(C),T),w&&(w.vnode.el=_.el,Ep(w,_.el)),k},S=(m,_="[",w="]")=>{let x=0;for(;m;)if(m=i(m),m&&$o(m)&&(m.data===_&&x++,m.data===w)){if(x===0)return i(m);x--}return m},y=(m,_,w)=>{const x=_.parentNode;x&&x.replaceChild(m,_);let T=w;for(;T;)T.vnode.el===_&&(T.vnode.el=T.subTree.el=m),T=T.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[u,d]}const Kb="data-allow-mismatch",ZM={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ku(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Kb);)e=e.parentElement;const n=e&&e.getAttribute(Kb);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(ZM[t])}}_p().requestIdleCallback;_p().cancelIdleCallback;function QM(e,t){if($o(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if($o(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const ms=e=>!!e.type.__asyncLoader;function gi(e){Ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:c}=e;let l=null,u,d=0;const f=()=>(d++,l=null,p()),p=()=>{let h;return l||(h=l=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),c)return new Promise((S,y)=>{c(g,()=>S(f()),()=>y(g),d+1)});throw g}).then(g=>h!==l&&l?l:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return Un({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(h,g,S){let y=!1;(g.bu||(g.bu=[])).push(()=>y=!0);const v=()=>{y||S()},m=i?()=>{const _=i(v,w=>QM(h,w));_&&(g.bum||(g.bum=[])).push(_)}:v;u?m():p().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return u},setup(){const h=en;if(Cy(h),u)return()=>xu(u,h);const g=m=>{l=null,La(m,h,13,!r)};if(a&&h.suspense||Yi)return p().then(m=>()=>xu(m,h)).catch(m=>(g(m),()=>r?ge(r,{error:m}):null));const S=Ae(!1),y=Ae(),v=Ae(!!s);return s&&setTimeout(()=>{v.value=!1},s),o!=null&&setTimeout(()=>{if(!S.value&&!y.value){const m=new Error(`Async component timed out after ${o}ms.`);g(m),y.value=m}},o),p().then(()=>{S.value=!0,h.parent&&jl(h.parent.vnode)&&h.parent.update()}).catch(m=>{g(m),y.value=m}),()=>{if(S.value&&u)return xu(u,h);if(y.value&&r)return ge(r,{error:y.value});if(n&&!v.value)return xu(n,h)}}})}function xu(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=ge(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const jl=e=>e.type.__isKeepAlive,e2={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Zn(),r=n.ctx;if(!r.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d("div");r.activate=(v,m,_,w,x)=>{const T=v.component;l(v,m,_,0,a),c(T.vnode,v,m,_,T,a,w,v.slotScopeIds,x),Nt(()=>{T.isDeactivated=!1,T.a&&Yo(T.a);const R=v.props&&v.props.onVnodeMounted;R&&Sn(R,T.parent,v)},a)},r.deactivate=v=>{const m=v.component;zd(m.m),zd(m.a),l(v,f,null,1,a),Nt(()=>{m.da&&Yo(m.da);const _=v.props&&v.props.onVnodeUnmounted;_&&Sn(_,m.parent,v),m.isDeactivated=!0},a)};function p(v){Th(v),u(v,n,a,!0)}function h(v){s.forEach((m,_)=>{const w=dm(ms(m)?m.type.__asyncResolved||{}:m.type);w&&!v(w)&&g(_)})}function g(v){const m=s.get(v);m&&(!o||!or(m,o))?p(m):o&&Th(o),s.delete(v),i.delete(v)}rn(()=>[e.include,e.exclude],([v,m])=>{v&&h(_=>vc(v,_)),m&&h(_=>!vc(m,_))},{flush:"post",deep:!0});let S=null;const y=()=>{S!=null&&(Gd(n.subTree.type)?Nt(()=>{s.set(S,Iu(n.subTree))},n.subTree.suspense):s.set(S,Iu(n.subTree)))};return ci(y),KT(y),Na(()=>{s.forEach(v=>{const{subTree:m,suspense:_}=n,w=Iu(m);if(v.type===w.type&&v.key===w.key){Th(w);const x=w.component.da;x&&Nt(x,_);return}p(v)})}),()=>{if(S=null,!t.default)return o=null;const v=t.default(),m=v[0];if(v.length>1)return o=null,v;if(!Ki(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return o=null,m;let _=Iu(m);if(_.type===Ft)return o=null,_;const w=_.type,x=dm(ms(_)?_.type.__asyncResolved||{}:w),{include:T,exclude:R,max:k}=e;if(T&&(!x||!vc(T,x))||R&&x&&vc(R,x))return _.shapeFlag&=-257,o=_,m;const C=_.key==null?w:_.key,M=s.get(C);return _.el&&(_=Ur(_),m.shapeFlag&128&&(m.ssContent=_)),S=C,M?(_.el=M.el,_.component=M.component,_.transition&&la(_,_.transition),_.shapeFlag|=512,i.delete(C),i.add(C)):(i.add(C),k&&i.size>parseInt(k,10)&&g(i.values().next().value)),_.shapeFlag|=256,o=_,Gd(m.type)?m:_}}},t2=e2;function vc(e,t){return Ee(e)?e.some(n=>vc(n,t)):ct(e)?e.split(",").includes(t):XP(e)?(e.lastIndex=0,e.test(t)):!1}function Ay(e,t){zT(e,"a",t)}function Oy(e,t){zT(e,"da",t)}function zT(e,t,n=en){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(wp(t,r,n),n){let s=n.parent;for(;s&&s.parent;)jl(s.parent.vnode)&&n2(r,t,n,s),s=s.parent}}function n2(e,t,n,r){const s=wp(t,e,r,!0);Da(()=>{gy(r[t],s)},n)}function Th(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Iu(e){return e.shapeFlag&128?e.ssContent:e}function wp(e,t,n=en,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ss();const a=$a(n),c=_r(t,n,e,o);return a(),Es(),c});return r?s.unshift(i):s.push(i),i}}const Os=e=>(t,n=en)=>{(!Yi||e==="sp")&&wp(e,(...r)=>t(...r),n)},GT=Os("bm"),ci=Os("m"),r2=Os("bu"),KT=Os("u"),Na=Os("bum"),Da=Os("um"),s2=Os("sp"),i2=Os("rtg"),o2=Os("rtc");function YT(e,t=en){wp("ec",e,t)}const XT="components";function Yb(e,t){return ZT(XT,e,!0,t)||e}const JT=Symbol.for("v-ndc");function a2(e){return ct(e)?ZT(XT,e,!1)||e:e||JT}function ZT(e,t,n=!0,r=!1){const s=tn||en;if(s){const i=s.type;{const a=dm(i,!1);if(a&&(a===t||a===bn(t)||a===gp(bn(t))))return i}const o=Xb(s[e]||i[e],t)||Xb(s.appContext[e],t);return!o&&r?i:o}}function Xb(e,t){return e&&(e[t]||e[bn(t)]||e[gp(bn(t))])}function al(e,t,n,r){let s;const i=n,o=Ee(e);if(o||ct(e)){const a=o&&Dr(e);let c=!1,l=!1;a&&(c=!Ln(e),l=Fr(e),e=vp(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(c?l?ca(mr(e[u])):mr(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(Xe(e))if(e[Symbol.iterator])s=Array.from(e,(a,c)=>t(a,c,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let c=0,l=a.length;c<l;c++){const u=a[c];s[c]=t(e[u],u,c,i)}}else s=[];return s}function Mre(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Ee(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function Ru(e,t,n={},r,s){if(tn.ce||tn.parent&&ms(tn.parent)&&tn.parent.ce){const l=Object.keys(n).length>0;return t!=="default"&&(n.name=t),me(),mt(ht,null,[ge("slot",n,r&&r())],l?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),me();const o=i&&QT(i(n)),a=n.key||o&&o.key,c=mt(ht,{key:(a&&!$n(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function QT(e){return e.some(t=>Ki(t)?!(t.type===Ft||t.type===ht&&!QT(t.children)):!0)?e:null}const im=e=>e?Ek(e)?Tp(e):im(e.parent):null,Nc=zt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>im(e.parent),$root:e=>im(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>tk(e),$forceUpdate:e=>e.f||(e.f=()=>{xy(e.update)}),$nextTick:e=>e.n||(e.n=Jn.bind(e.proxy)),$watch:e=>BM.bind(e)}),kh=(e,t)=>e!==st&&!e.__isScriptSetup&&Ze(e,t),c2={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=e;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(kh(r,t))return o[t]=1,r[t];if(s!==st&&Ze(s,t))return o[t]=2,s[t];if(Ze(i,t))return o[t]=3,i[t];if(n!==st&&Ze(n,t))return o[t]=4,n[t];om&&(o[t]=0)}}const l=Nc[t];let u,d;if(l)return t==="$attrs"&&un(e.attrs,"get",""),l(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==st&&Ze(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Ze(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return kh(s,t)?(s[t]=n,!0):r!==st&&Ze(r,t)?(r[t]=n,!0):Ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let c;return!!(n[a]||e!==st&&a[0]!=="$"&&Ze(e,a)||kh(t,a)||Ze(i,a)||Ze(r,a)||Ze(Nc,a)||Ze(s.config.globalProperties,a)||(c=o.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ze(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jb(e){return Ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Lre(e){const t=Zn(),n=Yi;let r=e();ll(),n&&Qo(!1);const s=()=>{$a(t),n&&Qo(!0)},i=()=>{Zn()!==t&&t.scope.off(),ll(),n&&Qo(!1)};return my(r)&&(r=r.catch(o=>{throw s(),Promise.resolve().then(()=>Promise.resolve().then(i)),o})),[r,()=>{s(),Promise.resolve().then(i)}]}let om=!0;function l2(e){const t=tk(e),n=e.proxy,r=e.ctx;om=!1,t.beforeCreate&&Zb(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:g,deactivated:S,beforeDestroy:y,beforeUnmount:v,destroyed:m,unmounted:_,render:w,renderTracked:x,renderTriggered:T,errorCaptured:R,serverPrefetch:k,expose:C,inheritAttrs:M,components:b,directives:E,filters:I}=t;if(l&&u2(l,r,null),o)for(const N in o){const O=o[N];Ce(O)&&(r[N]=O.bind(n))}if(s){const N=s.call(n,n);Xe(N)&&(e.data=tr(N))}if(om=!0,i)for(const N in i){const O=i[N],D=Ce(O)?O.bind(n,n):Ce(O.get)?O.get.bind(n,n):Nr,j=!Ce(O)&&Ce(O.set)?O.set.bind(n):Nr,q=Ve({get:D,set:j});Object.defineProperty(r,N,{enumerable:!0,configurable:!0,get:()=>q.value,set:oe=>q.value=oe})}if(a)for(const N in a)ek(a[N],r,n,N);if(c){const N=Ce(c)?c.call(n):c;Reflect.ownKeys(N).forEach(O=>{gs(O,N[O])})}u&&Zb(u,e,"c");function $(N,O){Ee(O)?O.forEach(D=>N(D.bind(n))):O&&N(O.bind(n))}if($(GT,d),$(ci,f),$(r2,p),$(KT,h),$(Ay,g),$(Oy,S),$(YT,R),$(o2,x),$(i2,T),$(Na,v),$(Da,_),$(s2,k),Ee(C))if(C.length){const N=e.exposed||(e.exposed={});C.forEach(O=>{Object.defineProperty(N,O,{get:()=>n[O],set:D=>n[O]=D,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===Nr&&(e.render=w),M!=null&&(e.inheritAttrs=M),b&&(e.components=b),E&&(e.directives=E),k&&Cy(e)}function u2(e,t,n=Nr){Ee(e)&&(e=am(e));for(const r in e){const s=e[r];let i;Xe(s)?"default"in s?i=Ut(s.from||r,s.default,!0):i=Ut(s.from||r):i=Ut(s),gt(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Zb(e,t,n){_r(Ee(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ek(e,t,n,r){let s=r.includes(".")?FT(n,r):()=>n[r];if(ct(e)){const i=t[e];Ce(i)&&rn(s,i)}else if(Ce(e))rn(s,e.bind(n));else if(Xe(e))if(Ee(e))e.forEach(i=>ek(i,t,n,r));else{const i=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(i)&&rn(s,i,e)}}function tk(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(l=>Vd(c,l,o,!0)),Vd(c,t,o)),Xe(t)&&i.set(t,c),c}function Vd(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Vd(e,i,n,!0),s&&s.forEach(o=>Vd(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=d2[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const d2={data:Qb,props:e0,emits:e0,methods:bc,computed:bc,beforeCreate:fn,created:fn,beforeMount:fn,mounted:fn,beforeUpdate:fn,updated:fn,beforeDestroy:fn,beforeUnmount:fn,destroyed:fn,unmounted:fn,activated:fn,deactivated:fn,errorCaptured:fn,serverPrefetch:fn,components:bc,directives:bc,watch:p2,provide:Qb,inject:f2};function Qb(e,t){return t?e?function(){return zt(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function f2(e,t){return bc(am(e),am(t))}function am(e){if(Ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function fn(e,t){return e?[...new Set([].concat(e,t))]:t}function bc(e,t){return e?zt(Object.create(null),e,t):t}function e0(e,t){return e?Ee(e)&&Ee(t)?[...new Set([...e,...t])]:zt(Object.create(null),Jb(e),Jb(t??{})):t}function p2(e,t){if(!e)return t;if(!t)return e;const n=zt(Object.create(null),e);for(const r in t)n[r]=fn(e[r],t[r]);return n}function nk(){return{app:null,config:{isNativeTag:aT,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let h2=0;function g2(e,t){return function(r,s=null){Ce(r)||(r=zt({},r)),s!=null&&!Xe(s)&&(s=null);const i=nk(),o=new WeakSet,a=[];let c=!1;const l=i.app={_uid:h2++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:K2,get config(){return i.config},set config(u){},use(u,...d){return o.has(u)||(u&&Ce(u.install)?(o.add(u),u.install(l,...d)):Ce(u)&&(o.add(u),u(l,...d))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,d){return d?(i.components[u]=d,l):i.components[u]},directive(u,d){return d?(i.directives[u]=d,l):i.directives[u]},mount(u,d,f){if(!c){const p=l._ceVNode||ge(r,s);return p.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),d&&t?t(p,u):e(p,u,f),c=!0,l._container=u,u.__vue_app__=l,Tp(p.component)}},onUnmount(u){a.push(u)},unmount(){c&&(_r(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(u,d){return i.provides[u]=d,l},runWithContext(u){const d=ji;ji=l;try{return u()}finally{ji=d}}};return l}}let ji=null;const m2=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${bn(t)}Modifiers`]||e[`${ai(t)}Modifiers`];function _2(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||st;let s=n;const i=t.startsWith("update:"),o=i&&m2(r,t.slice(7));o&&(o.trim&&(s=n.map(u=>ct(u)?u.trim():u)),o.number&&(s=n.map(mp)));let a,c=r[a=yh(t)]||r[a=yh(bn(t))];!c&&i&&(c=r[a=yh(ai(t))]),c&&_r(c,e,6,s);const l=r[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,_r(l,e,6,s)}}const y2=new WeakMap;function rk(e,t,n=!1){const r=n?y2:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!Ce(e)){const c=l=>{const u=rk(l,t,!0);u&&(a=!0,zt(o,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Xe(e)&&r.set(e,null),null):(Ee(i)?i.forEach(c=>o[c]=null):zt(o,i),Xe(e)&&r.set(e,o),o)}function Sp(e,t){return!e||!Dl(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ze(e,t[0].toLowerCase()+t.slice(1))||Ze(e,ai(t))||Ze(e,t))}function xh(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:h,inheritAttrs:g}=e,S=qd(e);let y,v;try{if(n.shapeFlag&4){const _=s||r,w=_;y=On(l.call(w,_,u,d,p,f,h)),v=a}else{const _=t;y=On(_.length>1?_(d,{attrs:a,slots:o,emit:c}):_(d,null)),v=t.props?a:b2(a)}}catch(_){$c.length=0,La(_,e,1),y=ge(Ft)}let m=y;if(v&&g!==!1){const _=Object.keys(v),{shapeFlag:w}=m;_.length&&w&7&&(i&&_.some(dp)&&(v=w2(v,i)),m=Ur(m,v,!1,!0))}return n.dirs&&(m=Ur(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&la(m,n.transition),y=m,qd(S),y}function v2(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Ki(s)){if(s.type!==Ft||s.children==="v-if"){if(n)return;n=s}}else return}return n}const b2=e=>{let t;for(const n in e)(n==="class"||n==="style"||Dl(n))&&((t||(t={}))[n]=e[n]);return t},w2=(e,t)=>{const n={};for(const r in e)(!dp(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function S2(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?t0(r,o,l):!!o;if(c&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(sk(o,r,f)&&!Sp(l,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?t0(r,o,l):!0:!!o;return!1}function t0(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(sk(t,e,i)&&!Sp(n,i))return!0}return!1}function sk(e,t,n){const r=e[n],s=t[n];return n==="style"&&Xe(r)&&Xe(s)?!$l(r,s):r!==s}function Ep({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const ik={},ok=()=>Object.create(ik),ak=e=>Object.getPrototypeOf(e)===ik;function E2(e,t,n,r=!1){const s={},i=ok();e.propsDefaults=Object.create(null),ck(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Or(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function T2(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=Ke(s),[c]=e.propsOptions;let l=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(Sp(e.emitsOptions,f))continue;const p=t[f];if(c)if(Ze(i,f))p!==i[f]&&(i[f]=p,l=!0);else{const h=bn(f);s[h]=cm(c,a,h,p,e,!1)}else p!==i[f]&&(i[f]=p,l=!0)}}}else{ck(e,t,s,i)&&(l=!0);let u;for(const d in a)(!t||!Ze(t,d)&&((u=ai(d))===d||!Ze(t,u)))&&(c?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=cm(c,a,d,void 0,e,!0)):delete s[d]);if(i!==a)for(const d in i)(!t||!Ze(t,d))&&(delete i[d],l=!0)}l&&os(e.attrs,"set","")}function ck(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let c in t){if(Ui(c))continue;const l=t[c];let u;s&&Ze(s,u=bn(c))?!i||!i.includes(u)?n[u]=l:(a||(a={}))[u]=l:Sp(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(i){const c=Ke(n),l=a||st;for(let u=0;u<i.length;u++){const d=i[u];n[d]=cm(s,c,d,l[d],e,!Ze(l,d))}}return o}function cm(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=Ze(o,"default");if(a&&r===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&Ce(c)){const{propsDefaults:l}=s;if(n in l)r=l[n];else{const u=$a(s);r=l[n]=c.call(null,t),u()}}else r=c;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===ai(n))&&(r=!0))}return r}const k2=new WeakMap;function lk(e,t,n=!1){const r=n?k2:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let c=!1;if(!Ce(e)){const u=d=>{c=!0;const[f,p]=lk(d,t,!0);zt(o,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return Xe(e)&&r.set(e,Go),Go;if(Ee(i))for(let u=0;u<i.length;u++){const d=bn(i[u]);n0(d)&&(o[d]=st)}else if(i)for(const u in i){const d=bn(u);if(n0(d)){const f=i[u],p=o[d]=Ee(f)||Ce(f)?{type:f}:zt({},f),h=p.type;let g=!1,S=!0;if(Ee(h))for(let y=0;y<h.length;++y){const v=h[y],m=Ce(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(S=!1)}else g=Ce(h)&&h.name==="Boolean";p[0]=g,p[1]=S,(g||Ze(p,"default"))&&a.push(d)}}const l=[o,a];return Xe(e)&&r.set(e,l),l}function n0(e){return e[0]!=="$"&&!Ui(e)}const Py=e=>e==="_"||e==="_ctx"||e==="$stable",My=e=>Ee(e)?e.map(On):[On(e)],x2=(e,t,n)=>{if(t._n)return t;const r=Me((...s)=>My(t(...s)),n);return r._c=!1,r},uk=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Py(s))continue;const i=e[s];if(Ce(i))t[s]=x2(s,i,r);else if(i!=null){const o=My(i);t[s]=()=>o}}},dk=(e,t)=>{const n=My(t);e.slots.default=()=>n},fk=(e,t,n)=>{for(const r in t)(n||!Py(r))&&(e[r]=t[r])},I2=(e,t,n)=>{const r=e.slots=ok();if(e.vnode.shapeFlag&32){const s=t._;s?(fk(r,t,n),n&&lT(r,"_",s,!0)):uk(t,r)}else t&&dk(e,t)},R2=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=st;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:fk(s,t,n):(i=!t.$stable,uk(t,s)),o=t}else t&&(dk(e,t),o={default:1});if(i)for(const a in s)!Py(a)&&o[a]==null&&delete s[a]},Nt=yk;function C2(e){return pk(e)}function A2(e){return pk(e,JM)}function pk(e,t){const n=_p();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Nr,insertStaticContent:h}=e,g=(P,L,H,Y=null,K=null,ee=null,se=void 0,z=null,ne=!!L.dynamicChildren)=>{if(P===L)return;P&&!or(P,L)&&(Y=V(P),oe(P,K,ee,!0),P=null),L.patchFlag===-2&&(ne=!1,L.dynamicChildren=null);const{type:W,ref:re,shapeFlag:te}=L;switch(W){case Bi:S(P,L,H,Y);break;case Ft:y(P,L,H,Y);break;case Dc:P==null&&v(L,H,Y,se);break;case ht:b(P,L,H,Y,K,ee,se,z,ne);break;default:te&1?w(P,L,H,Y,K,ee,se,z,ne):te&6?E(P,L,H,Y,K,ee,se,z,ne):(te&64||te&128)&&W.process(P,L,H,Y,K,ee,se,z,ne,F)}re!=null&&K?Jo(re,P&&P.ref,ee,L||P,!L):re==null&&P&&P.ref!=null&&Jo(P.ref,null,ee,P,!0)},S=(P,L,H,Y)=>{if(P==null)r(L.el=a(L.children),H,Y);else{const K=L.el=P.el;L.children!==P.children&&l(K,L.children)}},y=(P,L,H,Y)=>{P==null?r(L.el=c(L.children||""),H,Y):L.el=P.el},v=(P,L,H,Y)=>{[P.el,P.anchor]=h(P.children,L,H,Y,P.el,P.anchor)},m=({el:P,anchor:L},H,Y)=>{let K;for(;P&&P!==L;)K=f(P),r(P,H,Y),P=K;r(L,H,Y)},_=({el:P,anchor:L})=>{let H;for(;P&&P!==L;)H=f(P),s(P),P=H;s(L)},w=(P,L,H,Y,K,ee,se,z,ne)=>{if(L.type==="svg"?se="svg":L.type==="math"&&(se="mathml"),P==null)x(L,H,Y,K,ee,se,z,ne);else{const W=P.el&&P.el._isVueCE?P.el:null;try{W&&W._beginPatch(),k(P,L,K,ee,se,z,ne)}finally{W&&W._endPatch()}}},x=(P,L,H,Y,K,ee,se,z)=>{let ne,W;const{props:re,shapeFlag:te,transition:he,dirs:be}=P;if(ne=P.el=o(P.type,ee,re&&re.is,re),te&8?u(ne,P.children):te&16&&R(P.children,ne,null,Y,K,Ih(P,ee),se,z),be&&Tr(P,null,Y,"created"),T(ne,P,P.scopeId,se,Y),re){for(const Ge in re)Ge!=="value"&&!Ui(Ge)&&i(ne,Ge,null,re[Ge],ee,Y);"value"in re&&i(ne,"value",null,re.value,ee),(W=re.onVnodeBeforeMount)&&Sn(W,Y,P)}be&&Tr(P,null,Y,"beforeMount");const xe=hk(K,he);xe&&he.beforeEnter(ne),r(ne,L,H),((W=re&&re.onVnodeMounted)||xe||be)&&Nt(()=>{W&&Sn(W,Y,P),xe&&he.enter(ne),be&&Tr(P,null,Y,"mounted")},K)},T=(P,L,H,Y,K)=>{if(H&&p(P,H),Y)for(let ee=0;ee<Y.length;ee++)p(P,Y[ee]);if(K){let ee=K.subTree;if(L===ee||Gd(ee.type)&&(ee.ssContent===L||ee.ssFallback===L)){const se=K.vnode;T(P,se,se.scopeId,se.slotScopeIds,K.parent)}}},R=(P,L,H,Y,K,ee,se,z,ne=0)=>{for(let W=ne;W<P.length;W++){const re=P[W]=z?ss(P[W]):On(P[W]);g(null,re,L,H,Y,K,ee,se,z)}},k=(P,L,H,Y,K,ee,se)=>{const z=L.el=P.el;let{patchFlag:ne,dynamicChildren:W,dirs:re}=L;ne|=P.patchFlag&16;const te=P.props||st,he=L.props||st;let be;if(H&&mi(H,!1),(be=he.onVnodeBeforeUpdate)&&Sn(be,H,L,P),re&&Tr(L,P,H,"beforeUpdate"),H&&mi(H,!0),(te.innerHTML&&he.innerHTML==null||te.textContent&&he.textContent==null)&&u(z,""),W?C(P.dynamicChildren,W,z,H,Y,Ih(L,K),ee):se||O(P,L,z,null,H,Y,Ih(L,K),ee,!1),ne>0){if(ne&16)M(z,te,he,H,K);else if(ne&2&&te.class!==he.class&&i(z,"class",null,he.class,K),ne&4&&i(z,"style",te.style,he.style,K),ne&8){const xe=L.dynamicProps;for(let Ge=0;Ge<xe.length;Ge++){const tt=xe[Ge],ut=te[tt],Ot=he[tt];(Ot!==ut||tt==="value")&&i(z,tt,ut,Ot,K,H)}}ne&1&&P.children!==L.children&&u(z,L.children)}else!se&&W==null&&M(z,te,he,H,K);((be=he.onVnodeUpdated)||re)&&Nt(()=>{be&&Sn(be,H,L,P),re&&Tr(L,P,H,"updated")},Y)},C=(P,L,H,Y,K,ee,se)=>{for(let z=0;z<L.length;z++){const ne=P[z],W=L[z],re=ne.el&&(ne.type===ht||!or(ne,W)||ne.shapeFlag&198)?d(ne.el):H;g(ne,W,re,null,Y,K,ee,se,!0)}},M=(P,L,H,Y,K)=>{if(L!==H){if(L!==st)for(const ee in L)!Ui(ee)&&!(ee in H)&&i(P,ee,L[ee],null,K,Y);for(const ee in H){if(Ui(ee))continue;const se=H[ee],z=L[ee];se!==z&&ee!=="value"&&i(P,ee,z,se,K,Y)}"value"in H&&i(P,"value",L.value,H.value,K)}},b=(P,L,H,Y,K,ee,se,z,ne)=>{const W=L.el=P?P.el:a(""),re=L.anchor=P?P.anchor:a("");let{patchFlag:te,dynamicChildren:he,slotScopeIds:be}=L;be&&(z=z?z.concat(be):be),P==null?(r(W,H,Y),r(re,H,Y),R(L.children||[],H,re,K,ee,se,z,ne)):te>0&&te&64&&he&&P.dynamicChildren&&P.dynamicChildren.length===he.length?(C(P.dynamicChildren,he,H,K,ee,se,z),(L.key!=null||K&&L===K.subTree)&&Ly(P,L,!0)):O(P,L,H,re,K,ee,se,z,ne)},E=(P,L,H,Y,K,ee,se,z,ne)=>{L.slotScopeIds=z,P==null?L.shapeFlag&512?K.ctx.activate(L,H,Y,se,ne):I(L,H,Y,K,ee,se,ne):A(P,L,ne)},I=(P,L,H,Y,K,ee,se)=>{const z=P.component=B2(P,Y,K);if(jl(P)&&(z.ctx.renderer=F),q2(z,!1,se),z.asyncDep){if(K&&K.registerDep(z,$,se),!P.el){const ne=z.subTree=ge(Ft);y(null,ne,L,H),P.placeholder=ne.el}}else $(z,P,L,H,K,ee,se)},A=(P,L,H)=>{const Y=L.component=P.component;if(S2(P,L,H))if(Y.asyncDep&&!Y.asyncResolved){N(Y,L,H);return}else Y.next=L,Y.update();else L.el=P.el,Y.vnode=L},$=(P,L,H,Y,K,ee,se)=>{const z=()=>{if(P.isMounted){let{next:te,bu:he,u:be,parent:xe,vnode:Ge}=P;{const an=gk(P);if(an){te&&(te.el=Ge.el,N(P,te,se)),an.asyncDep.then(()=>{Nt(()=>{P.isUnmounted||W()},K)});return}}let tt=te,ut;mi(P,!1),te?(te.el=Ge.el,N(P,te,se)):te=Ge,he&&Yo(he),(ut=te.props&&te.props.onVnodeBeforeUpdate)&&Sn(ut,xe,te,Ge),mi(P,!0);const Ot=xh(P),In=P.subTree;P.subTree=Ot,g(In,Ot,d(In.el),V(In),P,K,ee),te.el=Ot.el,tt===null&&Ep(P,Ot.el),be&&Nt(be,K),(ut=te.props&&te.props.onVnodeUpdated)&&Nt(()=>Sn(ut,xe,te,Ge),K)}else{let te;const{el:he,props:be}=L,{bm:xe,m:Ge,parent:tt,root:ut,type:Ot}=P,In=ms(L);if(mi(P,!1),xe&&Yo(xe),!In&&(te=be&&be.onVnodeBeforeMount)&&Sn(te,tt,L),mi(P,!0),he&&J){const an=()=>{P.subTree=xh(P),J(he,P.subTree,P,K,null)};In&&Ot.__asyncHydrate?Ot.__asyncHydrate(he,P,an):an()}else{ut.ce&&ut.ce._hasShadowRoot()&&ut.ce._injectChildStyle(Ot,P.parent?P.parent.type:void 0);const an=P.subTree=xh(P);g(null,an,H,Y,P,K,ee),L.el=an.el}if(Ge&&Nt(Ge,K),!In&&(te=be&&be.onVnodeMounted)){const an=L;Nt(()=>Sn(te,tt,an),K)}(L.shapeFlag&256||tt&&ms(tt.vnode)&&tt.vnode.shapeFlag&256)&&P.a&&Nt(P.a,K),P.isMounted=!0,L=H=Y=null}};P.scope.on();const ne=P.effect=new gT(z);P.scope.off();const W=P.update=ne.run.bind(ne),re=P.job=ne.runIfDirty.bind(ne);re.i=P,re.id=P.uid,ne.scheduler=()=>xy(re),mi(P,!0),W()},N=(P,L,H)=>{L.component=P;const Y=P.vnode.props;P.vnode=L,P.next=null,T2(P,L.props,Y,H),R2(P,L.children,H),Ss(),jb(P),Es()},O=(P,L,H,Y,K,ee,se,z,ne=!1)=>{const W=P&&P.children,re=P?P.shapeFlag:0,te=L.children,{patchFlag:he,shapeFlag:be}=L;if(he>0){if(he&128){j(W,te,H,Y,K,ee,se,z,ne);return}else if(he&256){D(W,te,H,Y,K,ee,se,z,ne);return}}be&8?(re&16&&Fe(W,K,ee),te!==W&&u(H,te)):re&16?be&16?j(W,te,H,Y,K,ee,se,z,ne):Fe(W,K,ee,!0):(re&8&&u(H,""),be&16&&R(te,H,Y,K,ee,se,z,ne))},D=(P,L,H,Y,K,ee,se,z,ne)=>{P=P||Go,L=L||Go;const W=P.length,re=L.length,te=Math.min(W,re);let he;for(he=0;he<te;he++){const be=L[he]=ne?ss(L[he]):On(L[he]);g(P[he],be,H,null,K,ee,se,z,ne)}W>re?Fe(P,K,ee,!0,!1,te):R(L,H,Y,K,ee,se,z,ne,te)},j=(P,L,H,Y,K,ee,se,z,ne)=>{let W=0;const re=L.length;let te=P.length-1,he=re-1;for(;W<=te&&W<=he;){const be=P[W],xe=L[W]=ne?ss(L[W]):On(L[W]);if(or(be,xe))g(be,xe,H,null,K,ee,se,z,ne);else break;W++}for(;W<=te&&W<=he;){const be=P[te],xe=L[he]=ne?ss(L[he]):On(L[he]);if(or(be,xe))g(be,xe,H,null,K,ee,se,z,ne);else break;te--,he--}if(W>te){if(W<=he){const be=he+1,xe=be<re?L[be].el:Y;for(;W<=he;)g(null,L[W]=ne?ss(L[W]):On(L[W]),H,xe,K,ee,se,z,ne),W++}}else if(W>he)for(;W<=te;)oe(P[W],K,ee,!0),W++;else{const be=W,xe=W,Ge=new Map;for(W=xe;W<=he;W++){const Xt=L[W]=ne?ss(L[W]):On(L[W]);Xt.key!=null&&Ge.set(Xt.key,W)}let tt,ut=0;const Ot=he-xe+1;let In=!1,an=0;const hi=new Array(Ot);for(W=0;W<Ot;W++)hi[W]=0;for(W=be;W<=te;W++){const Xt=P[W];if(ut>=Ot){oe(Xt,K,ee,!0);continue}let cn;if(Xt.key!=null)cn=Ge.get(Xt.key);else for(tt=xe;tt<=he;tt++)if(hi[tt-xe]===0&&or(Xt,L[tt])){cn=tt;break}cn===void 0?oe(Xt,K,ee,!0):(hi[cn-xe]=W+1,cn>=an?an=cn:In=!0,g(Xt,L[cn],H,null,K,ee,se,z,ne),ut++)}const vu=In?O2(hi):Go;for(tt=vu.length-1,W=Ot-1;W>=0;W--){const Xt=xe+W,cn=L[Xt],Nb=L[Xt+1],Db=Xt+1<re?Nb.el||mk(Nb):Y;hi[W]===0?g(null,cn,H,Db,K,ee,se,z,ne):In&&(tt<0||W!==vu[tt]?q(cn,H,Db,2):tt--)}}},q=(P,L,H,Y,K=null)=>{const{el:ee,type:se,transition:z,children:ne,shapeFlag:W}=P;if(W&6){q(P.component.subTree,L,H,Y);return}if(W&128){P.suspense.move(L,H,Y);return}if(W&64){se.move(P,L,H,F);return}if(se===ht){r(ee,L,H);for(let te=0;te<ne.length;te++)q(ne[te],L,H,Y);r(P.anchor,L,H);return}if(se===Dc){m(P,L,H);return}if(Y!==2&&W&1&&z)if(Y===0)z.beforeEnter(ee),r(ee,L,H),Nt(()=>z.enter(ee),K);else{const{leave:te,delayLeave:he,afterLeave:be}=z,xe=()=>{P.ctx.isUnmounted?s(ee):r(ee,L,H)},Ge=()=>{ee._isLeaving&&ee[kr](!0),te(ee,()=>{xe(),be&&be()})};he?he(ee,xe,Ge):Ge()}else r(ee,L,H)},oe=(P,L,H,Y=!1,K=!1)=>{const{type:ee,props:se,ref:z,children:ne,dynamicChildren:W,shapeFlag:re,patchFlag:te,dirs:he,cacheIndex:be,memo:xe}=P;if(te===-2&&(K=!1),z!=null&&(Ss(),Jo(z,null,H,P,!0),Es()),be!=null&&(L.renderCache[be]=void 0),re&256){L.ctx.deactivate(P);return}const Ge=re&1&&he,tt=!ms(P);let ut;if(tt&&(ut=se&&se.onVnodeBeforeUnmount)&&Sn(ut,L,P),re&6)ke(P.component,H,Y);else{if(re&128){P.suspense.unmount(H,Y);return}Ge&&Tr(P,null,L,"beforeUnmount"),re&64?P.type.remove(P,L,H,F,Y):W&&!W.hasOnce&&(ee!==ht||te>0&&te&64)?Fe(W,L,H,!1,!0):(ee===ht&&te&384||!K&&re&16)&&Fe(ne,L,H),Y&&ue(P)}const Ot=xe!=null&&be==null;(tt&&(ut=se&&se.onVnodeUnmounted)||Ge||Ot)&&Nt(()=>{ut&&Sn(ut,L,P),Ge&&Tr(P,null,L,"unmounted"),Ot&&(P.el=null)},H)},ue=P=>{const{type:L,el:H,anchor:Y,transition:K}=P;if(L===ht){Se(H,Y);return}if(L===Dc){_(P);return}const ee=()=>{s(H),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(P.shapeFlag&1&&K&&!K.persisted){const{leave:se,delayLeave:z}=K,ne=()=>se(H,ee);z?z(P.el,ee,ne):ne()}else ee()},Se=(P,L)=>{let H;for(;P!==L;)H=f(P),s(P),P=H;s(L)},ke=(P,L,H)=>{const{bum:Y,scope:K,job:ee,subTree:se,um:z,m:ne,a:W}=P;zd(ne),zd(W),Y&&Yo(Y),K.stop(),ee&&(ee.flags|=8,oe(se,P,L,H)),z&&Nt(z,L),Nt(()=>{P.isUnmounted=!0},L)},Fe=(P,L,H,Y=!1,K=!1,ee=0)=>{for(let se=ee;se<P.length;se++)oe(P[se],L,H,Y,K)},V=P=>{if(P.shapeFlag&6)return V(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const L=f(P.anchor||P.el),H=L&&L[UT];return H?f(H):L};let Q=!1;const X=(P,L,H)=>{let Y;P==null?L._vnode&&(oe(L._vnode,null,null,!0),Y=L._vnode.component):g(L._vnode||null,P,L,null,null,null,H),L._vnode=P,Q||(Q=!0,jb(Y),Bd(),Q=!1)},F={p:g,um:oe,m:q,r:ue,mt:I,mc:R,pc:O,pbc:C,n:V,o:e};let Z,J;return t&&([Z,J]=t(F)),{render:X,hydrate:Z,createApp:g2(X,Z)}}function Ih({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function mi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function hk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ly(e,t,n=!1){const r=e.children,s=t.children;if(Ee(r)&&Ee(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=ss(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Ly(o,a)),a.type===Bi&&(a.patchFlag===-1&&(a=s[i]=ss(a)),a.el=o.el),a.type===Ft&&!a.el&&(a.el=o.el)}}function O2(e){const t=e.slice(),n=[0];let r,s,i,o,a;const c=e.length;for(r=0;r<c;r++){const l=e[r];if(l!==0){if(s=n[n.length-1],e[s]<l){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<l?i=a+1:o=a;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function gk(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gk(t)}function zd(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function mk(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?mk(t.subTree):null}const Gd=e=>e.__isSuspense;let lm=0;const P2={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,c,l){if(e==null)M2(t,n,r,s,i,o,a,c,l);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}L2(e,t,n,r,s,o,a,c,l)}},hydrate:N2,normalize:D2},Ny=P2;function cl(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function M2(e,t,n,r,s,i,o,a,c){const{p:l,o:{createElement:u}}=c,d=u("div"),f=e.suspense=_k(e,s,r,t,d,n,i,o,a,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,i,o),f.deps>0?(cl(e,"onPending"),cl(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,o),Zo(f,e.ssFallback)):f.resolve(!1,!0)}function L2(e,t,n,r,s,i,o,a,{p:c,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:S,isHydrating:y}=d;if(g)d.pendingBranch=f,or(g,f)?(c(g,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():S&&(y||(c(h,p,n,r,s,null,i,o,a),Zo(d,p)))):(d.pendingId=lm++,y?(d.isHydrating=!1,d.activeBranch=g):l(g,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),S?(c(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(c(h,p,n,r,s,null,i,o,a),Zo(d,p))):h&&or(h,f)?(c(h,f,n,r,s,d,i,o,a),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(h&&or(h,f))c(h,f,n,r,s,d,i,o,a),Zo(d,f);else if(cl(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=lm++,c(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:m}=d;v>0?setTimeout(()=>{d.pendingId===m&&d.fallback(p)},v):v===0&&d.fallback(p)}}function _k(e,t,n,r,s,i,o,a,c,l,u=!1){const{p:d,m:f,um:p,n:h,o:{parentNode:g,remove:S}}=l;let y;const v=$2(e);v&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const m=e.props?uT(e.props.timeout):void 0,_=i,w={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:lm++,timeout:typeof m=="number"?m:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(x=!1,T=!1){const{vnode:R,activeBranch:k,pendingBranch:C,pendingId:M,effects:b,parentComponent:E,container:I,isInFallback:A}=w;let $=!1;if(w.isHydrating)w.isHydrating=!1;else if(!x){$=k&&C.transition&&C.transition.mode==="out-in";let D=!1;$&&(k.transition.afterLeave=()=>{M===w.pendingId&&(f(C,I,i===_&&!D?h(k):i,0),il(b),A&&R.ssFallback&&(R.ssFallback.el=null))}),k&&!w.isFallbackMountPending&&(g(k.el)===I&&(i=h(k),D=!0),p(k,E,w,!0),!$&&A&&R.ssFallback&&Nt(()=>R.ssFallback.el=null,w)),$||f(C,I,i,0)}w.isFallbackMountPending=!1,Zo(w,C),w.pendingBranch=null,w.isInFallback=!1;let N=w.parent,O=!1;for(;N;){if(N.pendingBranch){N.effects.push(...b),O=!0;break}N=N.parent}!O&&!$&&il(b),w.effects=[],v&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),cl(R,"onResolve")},fallback(x){if(!w.pendingBranch)return;const{vnode:T,activeBranch:R,parentComponent:k,container:C,namespace:M}=w;cl(T,"onFallback");const b=h(R),E=()=>{w.isFallbackMountPending=!1,w.isInFallback&&(d(null,x,C,b,k,null,M,a,c),Zo(w,x))},I=x.transition&&x.transition.mode==="out-in";I&&(w.isFallbackMountPending=!0,R.transition.afterLeave=E),w.isInFallback=!0,p(R,k,null,!0),I||E()},move(x,T,R){w.activeBranch&&f(w.activeBranch,x,T,R),w.container=x},next(){return w.activeBranch&&h(w.activeBranch)},registerDep(x,T,R){const k=!!w.pendingBranch;k&&w.deps++;const C=x.vnode.el;x.asyncDep.catch(M=>{La(M,x,0)}).then(M=>{if(x.isUnmounted||w.isUnmounted||w.pendingId!==x.suspenseId)return;ll(),x.asyncResolved=!0;const{vnode:b}=x;um(x,M),C&&(b.el=C);const E=!C&&x.subTree.el;T(x,b,g(C||x.subTree.el),C?null:h(x.subTree),w,o,R),E&&(b.placeholder=null,S(E)),Ep(x,b.el),k&&--w.deps===0&&w.resolve()})},unmount(x,T){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,x,T),w.pendingBranch&&p(w.pendingBranch,n,x,T)}};return w}function N2(e,t,n,r,s,i,o,a,c){const l=t.suspense=_k(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,i,o);return l.deps===0&&l.resolve(!1,!0),u}function D2(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=r0(r?n.default:n),e.ssFallback=r?r0(n.fallback):ge(Ft)}function r0(e){let t;if(Ce(e)){const n=ua&&e._c;n&&(e._d=!1,me()),e=e(),n&&(e._d=!0,t=kn,vk())}return Ee(e)&&(e=v2(e)),e=On(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function yk(e,t){t&&t.pendingBranch?Ee(e)?t.effects.push(...e):t.effects.push(e):il(e)}function Zo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Ep(r,s))}function $2(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ht=Symbol.for("v-fgt"),Bi=Symbol.for("v-txt"),Ft=Symbol.for("v-cmt"),Dc=Symbol.for("v-stc"),$c=[];let kn=null;function me(e=!1){$c.push(kn=e?null:[])}function vk(){$c.pop(),kn=$c[$c.length-1]||null}let ua=1;function Kd(e,t=!1){ua+=e,e<0&&kn&&t&&(kn.hasOnce=!0)}function bk(e){return e.dynamicChildren=ua>0?kn||Go:null,vk(),ua>0&&kn&&kn.push(e),e}function Oe(e,t,n,r,s,i){return bk(B(e,t,n,r,s,i,!0))}function mt(e,t,n,r,s){return bk(ge(e,t,n,r,s,!0))}function Ki(e){return e?e.__v_isVNode===!0:!1}function or(e,t){return e.type===t.type&&e.key===t.key}const wk=({key:e})=>e??null,ud=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ct(e)||gt(e)||Ce(e)?{i:tn,r:e,k:t,f:!!n}:e:null);function B(e,t=null,n=null,r=0,s=null,i=e===ht?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wk(t),ref:t&&ud(t),scopeId:DT,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:tn};return a?(Dy(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ct(n)?8:16),ua>0&&!o&&kn&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&kn.push(c),c}const ge=F2;function F2(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===JT)&&(e=Ft),Ki(e)){const a=Ur(e,t,!0);return n&&Dy(a,n),ua>0&&!i&&kn&&(a.shapeFlag&6?kn[kn.indexOf(e)]=a:kn.push(a)),a.patchFlag=-2,a}if(G2(e)&&(e=e.__vccOpts),t){t=U2(t);let{class:a,style:c}=t;a&&!ct(a)&&(t.class=Mt(a)),Xe(c)&&(bp(c)&&!Ee(c)&&(c=zt({},c)),t.style=ao(c))}const o=ct(e)?1:Gd(e)?128:HT(e)?64:Xe(e)?4:Ce(e)?2:0;return B(e,t,n,r,s,o,i,!0)}function U2(e){return e?bp(e)||ak(e)?zt({},e):e:null}function Ur(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:c}=e,l=t?Sk(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&wk(l),ref:t&&t.ref?n&&i?Ee(i)?i.concat(ud(t)):[i,ud(t)]:ud(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ht?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ur(e.ssContent),ssFallback:e.ssFallback&&Ur(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&la(u,c.clone(u)),u}function Le(e=" ",t=0){return ge(Bi,null,e,t)}function Nre(e,t){const n=ge(Dc,null,e);return n.staticCount=t,n}function fr(e="",t=!1){return t?(me(),mt(Ft,null,e)):ge(Ft,null,e)}function On(e){return e==null||typeof e=="boolean"?ge(Ft):Ee(e)?ge(ht,null,e.slice()):Ki(e)?ss(e):ge(Bi,null,String(e))}function ss(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ur(e)}function Dy(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ee(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Dy(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!ak(t)?t._ctx=tn:s===3&&tn&&(tn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:tn},n=32):(t=String(t),r&64?(n=16,t=[Le(t)]):n=8);e.children=t,e.shapeFlag|=n}function Sk(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Mt([t.class,r.class]));else if(s==="style")t.style=ao([t.style,r.style]);else if(Dl(s)){const i=t[s],o=r[s];o&&i!==o&&!(Ee(i)&&i.includes(o))?t[s]=i?[].concat(i,o):o:o==null&&i==null&&!dp(s)&&(t[s]=o)}else s!==""&&(t[s]=r[s])}return t}function Sn(e,t,n,r=null){_r(e,t,7,[n,r])}const H2=nk();let j2=0;function B2(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||H2,i={uid:j2++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new hT(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:lk(r,s),emitsOptions:rk(r,s),emit:null,emitted:null,propsDefaults:st,inheritAttrs:r.inheritAttrs,ctx:st,data:st,props:st,attrs:st,slots:st,refs:st,setupState:st,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=_2.bind(null,i),e.ce&&e.ce(i),i}let en=null;const Zn=()=>en||tn;let Yd,Qo;{const e=_p(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Yd=t("__VUE_INSTANCE_SETTERS__",n=>en=n),Qo=t("__VUE_SSR_SETTERS__",n=>Yi=n)}const $a=e=>{const t=en;return Yd(e),e.scope.on(),()=>{e.scope.off(),Yd(t)}},ll=()=>{en&&en.scope.off(),Yd(null)};function Ek(e){return e.vnode.shapeFlag&4}let Yi=!1;function q2(e,t=!1,n=!1){t&&Qo(t);const{props:r,children:s}=e.vnode,i=Ek(e);E2(e,r,i,t),I2(e,s,n||t);const o=i?W2(e,t):void 0;return t&&Qo(!1),o}function W2(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,c2);const{setup:r}=n;if(r){Ss();const s=e.setupContext=r.length>1?z2(e):null,i=$a(e),o=Ul(r,e,0,[e.props,s]),a=my(o);if(Es(),i(),(a||e.sp)&&!ms(e)&&Cy(e),a){if(o.then(ll,ll),t)return o.then(c=>{um(e,c)}).catch(c=>{La(c,e,0)});e.asyncDep=o}else um(e,o)}else Tk(e)}function um(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=AT(t)),Tk(e)}function Tk(e,t,n){const r=e.type;e.render||(e.render=r.render||Nr);{const s=$a(e);Ss();try{l2(e)}finally{Es(),s()}}}const V2={get(e,t){return un(e,"get",""),e[t]}};function z2(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,V2),slots:e.slots,emit:e.emit,expose:t}}function Tp(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(AT(ky(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Nc)return Nc[n](e)},has(t,n){return n in t||n in Nc}})):e.proxy}function dm(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function G2(e){return Ce(e)&&"__vccOpts"in e}const Ve=(e,t)=>LM(e,t,Yi);function qt(e,t,n){try{Kd(-1);const r=arguments.length;return r===2?Xe(t)&&!Ee(t)?Ki(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ki(n)&&(n=[n]),ge(e,t,n))}finally{Kd(1)}}const K2="3.5.34";let fm;const s0=typeof window<"u"&&window.trustedTypes;if(s0)try{fm=s0.createPolicy("vue",{createHTML:e=>e})}catch{}const kk=fm?e=>fm.createHTML(e):e=>e,Y2="http://www.w3.org/2000/svg",X2="http://www.w3.org/1998/Math/MathML",rs=typeof document<"u"?document:null,i0=rs&&rs.createElement("template"),J2={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?rs.createElementNS(Y2,e):t==="mathml"?rs.createElementNS(X2,e):n?rs.createElement(e,{is:n}):rs.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>rs.createTextNode(e),createComment:e=>rs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{i0.innerHTML=kk(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=i0.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ds="transition",ec="animation",ul=Symbol("_vtc"),xk={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Z2=zt({},jT,xk),Q2=e=>(e.displayName="Transition",e.props=Z2,e),Xd=Q2((e,{slots:t})=>qt(KM,eL(e),t)),_i=(e,t=[])=>{Ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},o0=e=>e?Ee(e)?e.some(t=>t.length>1):e.length>1:!1;function eL(e){const t={};for(const b in e)b in xk||(t[b]=e[b]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=o,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=tL(s),g=h&&h[0],S=h&&h[1],{onBeforeEnter:y,onEnter:v,onEnterCancelled:m,onLeave:_,onLeaveCancelled:w,onBeforeAppear:x=y,onAppear:T=v,onAppearCancelled:R=m}=t,k=(b,E,I,A)=>{b._enterCancelled=A,yi(b,E?u:a),yi(b,E?l:o),I&&I()},C=(b,E)=>{b._isLeaving=!1,yi(b,d),yi(b,p),yi(b,f),E&&E()},M=b=>(E,I)=>{const A=b?T:v,$=()=>k(E,b,I);_i(A,[E,$]),a0(()=>{yi(E,b?c:i),Yr(E,b?u:a),o0(A)||c0(E,r,g,$)})};return zt(t,{onBeforeEnter(b){_i(y,[b]),Yr(b,i),Yr(b,o)},onBeforeAppear(b){_i(x,[b]),Yr(b,c),Yr(b,l)},onEnter:M(!1),onAppear:M(!0),onLeave(b,E){b._isLeaving=!0;const I=()=>C(b,E);Yr(b,d),b._enterCancelled?(Yr(b,f),d0(b)):(d0(b),Yr(b,f)),a0(()=>{b._isLeaving&&(yi(b,d),Yr(b,p),o0(_)||c0(b,r,S,I))}),_i(_,[b,I])},onEnterCancelled(b){k(b,!1,void 0,!0),_i(m,[b])},onAppearCancelled(b){k(b,!0,void 0,!0),_i(R,[b])},onLeaveCancelled(b){C(b),_i(w,[b])}})}function tL(e){if(e==null)return null;if(Xe(e))return[Rh(e.enter),Rh(e.leave)];{const t=Rh(e);return[t,t]}}function Rh(e){return uT(e)}function Yr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ul]||(e[ul]=new Set)).add(t)}function yi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[ul];n&&(n.delete(t),n.size||(e[ul]=void 0))}function a0(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nL=0;function c0(e,t,n,r){const s=e._endId=++nL,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=rL(e,t);if(!o)return r();const l=o+"end";let u=0;const d=()=>{e.removeEventListener(l,f),i()},f=p=>{p.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},a+1),e.addEventListener(l,f)}function rL(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),s=r(`${Ds}Delay`),i=r(`${Ds}Duration`),o=l0(s,i),a=r(`${ec}Delay`),c=r(`${ec}Duration`),l=l0(a,c);let u=null,d=0,f=0;t===Ds?o>0&&(u=Ds,d=o,f=i.length):t===ec?l>0&&(u=ec,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Ds:ec:null,f=u?u===Ds?i.length:c.length:0);const p=u===Ds&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ds}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function l0(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>u0(n)+u0(e[r])))}function u0(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function d0(e){return(e?e.ownerDocument:document).body.offsetHeight}function sL(e,t,n){const r=e[ul];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Jd=Symbol("_vod"),Ik=Symbol("_vsh"),Dre={name:"show",beforeMount(e,{value:t},{transition:n}){e[Jd]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),tc(e,!0),r.enter(e)):r.leave(e,()=>{tc(e,!1)}):tc(e,t))},beforeUnmount(e,{value:t}){tc(e,t)}};function tc(e,t){e.style.display=t?e[Jd]:"none",e[Ik]=!t}const iL=Symbol(""),oL=/(?:^|;)\s*display\s*:/;function aL(e,t,n){const r=e.style,s=ct(n);let i=!1;if(n&&!s){if(t)if(ct(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&wc(r,a,"")}else for(const o in t)n[o]==null&&wc(r,o,"");for(const o in n){o==="display"&&(i=!0);const a=n[o];a!=null?lL(e,o,!ct(t)&&t?t[o]:void 0,a)||wc(r,o,a):wc(r,o,"")}}else if(s){if(t!==n){const o=r[iL];o&&(n+=";"+o),r.cssText=n,i=oL.test(n)}}else t&&e.removeAttribute("style");Jd in e&&(e[Jd]=i?r.display:"",e[Ik]&&(r.display="none"))}const f0=/\s*!important$/;function wc(e,t,n){if(Ee(n))n.forEach(r=>wc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=cL(e,t);f0.test(n)?e.setProperty(ai(r),n.replace(f0,""),"important"):e[r]=n}}const p0=["Webkit","Moz","ms"],Ch={};function cL(e,t){const n=Ch[t];if(n)return n;let r=bn(t);if(r!=="filter"&&r in e)return Ch[t]=r;r=gp(r);for(let s=0;s<p0.length;s++){const i=p0[s]+r;if(i in e)return Ch[t]=i}return t}function lL(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ct(r)&&n===r}const h0="http://www.w3.org/1999/xlink";function g0(e,t,n,r,s,i=iM(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(h0,t.slice(6,t.length)):e.setAttributeNS(h0,t,n):n==null||i&&!dT(n)?e.removeAttribute(t):e.setAttribute(t,i?"":$n(n)?String(n):n)}function m0(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?kk(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=dT(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Pi(e,t,n,r){e.addEventListener(t,n,r)}function uL(e,t,n,r){e.removeEventListener(t,n,r)}const _0=Symbol("_vei");function dL(e,t,n,r,s=null){const i=e[_0]||(e[_0]={}),o=i[t];if(r&&o)o.value=r;else{const[a,c]=fL(t);if(r){const l=i[t]=gL(r,s);Pi(e,a,l,c)}else o&&(uL(e,a,o,c),i[t]=void 0)}}const y0=/(?:Once|Passive|Capture)$/;function fL(e){let t;if(y0.test(e)){t={};let r;for(;r=e.match(y0);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ai(e.slice(2)),t]}let Ah=0;const pL=Promise.resolve(),hL=()=>Ah||(pL.then(()=>Ah=0),Ah=Date.now());function gL(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;_r(mL(r,n.value),t,5,[r])};return n.value=e,n.attached=hL(),n}function mL(e,t){if(Ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const v0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_L=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?sL(e,r,o):t==="style"?aL(e,n,r):Dl(t)?dp(t)||dL(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yL(e,t,r,o))?(m0(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&g0(e,t,r,o,i,t!=="value")):e._isVueCE&&(vL(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ct(r)))?m0(e,bn(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),g0(e,t,r,o))};function yL(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&v0(t)&&Ce(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return v0(t)&&ct(n)?!1:t in e}function vL(e,t){const n=e._def.props;if(!n)return!1;const r=bn(t);return Array.isArray(n)?n.some(s=>bn(s)===r):Object.keys(n).some(s=>bn(s)===r)}const Zd=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ee(t)?n=>Yo(t,n):t};function bL(e){e.target.composing=!0}function b0(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ea=Symbol("_assign");function w0(e,t,n){return t&&(e=e.trim()),n&&(e=mp(e)),e}const wL={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[ea]=Zd(s);const i=r||s.props&&s.props.type==="number";Pi(e,t?"change":"input",o=>{o.target.composing||e[ea](w0(e.value,n,i))}),(n||i)&&Pi(e,"change",()=>{e.value=w0(e.value,n,i)}),t||(Pi(e,"compositionstart",bL),Pi(e,"compositionend",b0),Pi(e,"change",b0))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[ea]=Zd(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?mp(e.value):e.value,c=t??"";if(a===c)return;const l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c)}},$re={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=fp(t);Pi(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?mp(Qd(o)):Qd(o));e[ea](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,Jn(()=>{e._assigning=!1})}),e[ea]=Zd(r)},mounted(e,{value:t}){S0(e,t)},beforeUpdate(e,t,n){e[ea]=Zd(n)},updated(e,{value:t}){e._assigning||S0(e,t)}};function S0(e,t){const n=e.multiple,r=Ee(t);if(!(n&&!r&&!fp(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=Qd(o);if(n)if(r){const c=typeof a;
4c==="string"||c==="number"?o.selected=t.some(l=>String(l)===String(a)):o.selected=aM(t,a)>-1}else o.selected=t.has(a);else if($l(Qd(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qd(e){return"_value"in e?e._value:e.value}const SL=["ctrl","shift","alt","meta"],EL={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>SL.some(n=>e[`${n}Key`]&&!t.includes(n))},Rk=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=EL[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},TL={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},kL=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=ai(s.key);if(t.some(o=>o===i||TL[o]===i))return e(s)}))},Ck=zt({patchProp:_L},J2);let Fc,E0=!1;function xL(){return Fc||(Fc=C2(Ck))}function IL(){return Fc=E0?Fc:A2(Ck),E0=!0,Fc}const RL=((...e)=>{const t=xL().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Ok(r);if(!s)return;const i=t._component;!Ce(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Ak(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t}),CL=((...e)=>{const t=IL().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Ok(r);if(s)return n(s,!0,Ak(s))},t});function Ak(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ok(e){return ct(e)?document.querySelector(e):e}const AL=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,OL=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,PL=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ML(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){LL(e);return}return t}function LL(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ef(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!PL.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(AL.test(e)||OL.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ML)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Pk=/#/g,Mk=/&/g,NL=/\//g,DL=/=/g,$L=/\?/g,kp=/\+/g,FL=/%5e/gi,UL=/%60/gi,HL=/%7c/gi,jL=/%20/gi,BL=/%2f/gi,qL=/%252f/gi;function Lk(e){return encodeURI(""+e).replace(HL,"|")}function pm(e){return Lk(typeof e=="string"?e:JSON.stringify(e)).replace(kp,"%2B").replace(jL,"+").replace(Pk,"%23").replace(Mk,"%26").replace(UL,"`").replace(FL,"^").replace(NL,"%2F")}function Oh(e){return pm(e).replace(DL,"%3D")}function WL(e){return Lk(e).replace(Pk,"%23").replace($L,"%3F").replace(qL,"%2F").replace(Mk,"%26").replace(kp,"%2B")}function dl(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function VL(e){return dl(e.replace(BL,"%252F"))}function zL(e){return dl(e.replace(kp," "))}function GL(e){return dl(e.replace(kp," "))}function $y(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=zL(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=GL(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function KL(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Oh(e)}=${pm(n)}`).join("&"):`${Oh(e)}=${pm(t)}`:Oh(e)}function YL(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
4KL(t,e[t])).filter(Boolean).join("&")}const XL=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,JL=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ZL=/^([/\\]\s*){2,}[^/\\]/,QL=/^[\s\0]*(blob|data|javascript|vbscript):$/i,eN=/\/$|\/\?|\/#/,tN=/^\.?\//;function li(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?XL.test(e):JL.test(e)||(t.acceptRelative?ZL.test(e):!1)}function nN(e){return!!e&&QL.test(e)}function hm(e="",t){return t?eN.test(e):e.endsWith("/")}function fl(e="",t){if(!t)return(hm(e)?e.slice(0,-1):e)||"/";if(!hm(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function Nk(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(hm(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function rN(e,t){if($k(t)||li(e))return e;const n=fl(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return Fy(n,e)}function T0(e,t){if($k(t))return e;const n=fl(t);if(!e.startsWith(n))return e;const r=e[n.length];return r&&r!=="/"&&r!=="?"?e:"/"+e.slice(n.length).replace(/^\/+/,"")}function Dk(e,t){const n=Uy(e),r={...$y(n.search),...t};return n.search=YL(r),iN(n)}function $k(e){return!e||e==="/"}function sN(e){return e&&e!=="/"}function Fy(e,...t){let n=e||"";for(const r of t.filter(s=>sN(s)))if(n){const s=r.replace(tN,"");n=Nk(n)+s}else n=r;return n}function Fk(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const o of n)if(!(!o||o==="/")){for(const[a,c]of o.split(t).entries())if(!(!c||c===".")){if(c===".."){if(r.length===1&&li(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+c;continue}r.push(c),s++}}let i=r.join("/");return s>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function Uk(e,t){return dl(fl(e))===dl(fl(t))}const Hk=Symbol.for("ufo:protocolRelative");function Uy(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!li(e,{acceptRelative:!0}))return k0(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:l,hash:u}=k0(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:c,search:l,hash:u,[Hk]:!r}}function k0(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function iN(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Hk]?(e.protocol||"")+"//":"")+s+i+t+n+r}class oN extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function aN(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${s}: ${i}${t?` ${t}`:""}`,a=new oN(o,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,l]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[l]}});return a}const cN=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function x0(e="GET"){return cN.has(e.toUpperCase())}function lN(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const uN=new Set(["image/svg","application/xml","application/xhtml","application/html"]),dN=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function fN(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return dN.test(t)?"json":t==="text/event-stream"?"stream":uN.has(t)||t.startsWith("text/")?"text":"blob"}function pN(e,t,n,r){const s=hN(t?.headers??e?.headers,n?.headers,r);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:s}}function hN(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,i);return r}async function Cu(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const gN=new Set([408,409,425,429,500,502,503,504]),mN=new Set([101,204,205,304]);function jk(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let u;typeof a.options.retry=="number"?u=a.options.retry:u=x0(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):gN.has(d))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(p=>setTimeout(p,f)),i(a.request,{...a.options,retry:u-1})}}const l=aN(a);throw Error.captureStackTrace&&Error.captureStackTrace(l,i),l}const i=async function(c,l={}){const u={request:c,options:pN(c,l,e.defaults,n),response:void 0,error:void 0};if(u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&(await Cu(u,u.options.onRequest),u.options.headers instanceof n||(u.options.headers=new n(u.options.headers||{}))),typeof u.request=="string"&&(u.options.baseURL&&(u.request=rN(u.request,u.options.baseURL)),u.options.query&&(u.request=Dk(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&x0(u.options.method))if(lN(u.options.body)){const p=u.options.headers.get("content-type");typeof u.options.body!="string"&&(u.options.body=p==="application/x-www-form-urlencoded"?new URLSearchParams(u.options.body).toString():JSON.stringify(u.options.body)),p||u.options.headers.set("content-type","application/json"),u.o
4ptions.headers.has("accept")||u.options.headers.set("accept","application/json")}else("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"));let d;if(!u.options.signal&&u.options.timeout){const p=new r;d=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,p.abort(h)},u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await Cu(u,u.options.onRequestError),await s(u)}finally{d&&clearTimeout(d)}if((u.response.body||u.response._bodyInit)&&!mN.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||fN(u.response.headers.get("content-type")||"");switch(p){case"json":{const h=await u.response.text(),g=u.options.parseResponse||ef;u.response._data=g(h);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await Cu(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Cu(u,u.options.onResponseError),await s(u)):u.response},o=async function(c,l){return(await i(c,l))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={},c={})=>jk({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),o}const tf=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),_N=tf.fetch?(...e)=>tf.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),yN=tf.Headers,vN=tf.AbortController,bN=jk({fetch:_N,Headers:yN,AbortController:vN}),wN=bN,SN=()=>window?.__NUXT__?.config||{},Hy=()=>SN().app,EN=()=>Hy().baseURL,TN=()=>Hy().buildAssetsDir,jy=(...e)=>Fk(xp(),TN(),...e),xp=(...e)=>{const t=Hy(),n=t.cdnURL||t.baseURL;return e.length?Fk(n,...e):n};globalThis.__buildAssetsURL=jy,globalThis.__publicAssetsURL=xp;globalThis.$fetch||(globalThis.$fetch=wN.create({baseURL:EN()}));"global"in globalThis||(globalThis.global=globalThis);function gm(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?gm(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const kN={run:e=>e()},xN=()=>kN,Bk=typeof console.createTask<"u"?console.createTask:xN;function IN(e,t){const n=t.shift(),r=Bk(n);return e.reduce((s,i)=>s.then(()=>r.run(()=>i(...t))),Promise.resolve())}function RN(e,t){const n=t.shift(),r=Bk(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Ph(e,t){for(const n of[...e])n(t)}let CN=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=gm(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=gm(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(IN,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(RN,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;
4this._before&&Ph(this._before,s);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&Ph(this._after,s)}):(this._after&&s&&Ph(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}};function AN(){return new CN}function ON(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const c=()=>{t=o},l=()=>t===o?c:void 0;mm.add(l);try{const u=s?s.run(o,a):a();return n||(t=void 0),await u}finally{mm.delete(l)}}}}function PN(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=ON({...e,...r})),t[n]}}}const nf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},I0="__unctx__",MN=nf[I0]||(nf[I0]=PN()),LN=(e,t={})=>MN.get(e,t),R0="__unctx_async_handlers__",mm=nf[R0]||(nf[R0]=new Set);function Uc(e){const t=[];for(const s of mm){const i=s();i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const C0=!1,A0=!1,NN=!1,DN={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},us={value:null,errorValue:null,deep:!0},$N=null,FN={},UN="#__nuxt",qk="nuxt-app",O0=36e5,HN="vite:preloadError";function Wk(e=qk){return LN(e,{asyncContext:!1})}const jN="__nuxt_plugin";function BN(e){let t=0;const n={_id:e.id||qk||"nuxt-app",_scope:yy(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.21.5"},get vue(){return n.vueApp.version}},payload:Or({...e.ssrContext?.payload||{},data:Or({}),state:tr({}),once:new Set,_errors:Or({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!Fl()?n._scope.run(()=>P0(n,s)):P0(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Or({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],s[i]);break;default:n.payload[i]=s[i]}}n.hooks=AN(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Au(n,o,i),Au(n.vueApp.config.globalProperties,o,i)},Au(n.vueApp,"$nuxt",n),Au(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(HN,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=bt;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function qN(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function WN(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function VN(e,t){const n=new Set,r=[],s=[];let i,o=0;async function a(c){const l=c.dependsOn?.filter(u=>t.some(d=>d._name===u)&&!n.has(u))??[];if(l.length>0)r.push([new Set(l),c]);else{const u=WN(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([d,f])=>{d.has(c._name)&&(d.delete(c._name),d.size===0&&(o++,await a(f)))})))}).catch(d=>{if(!c.parallel&&!e.payload.error)throw d;i||=d});c.parallel?s.push(u):await u}}for(const c of t)qN(e,c);for(const c of t)await a(c);if(await Promise.all(s),o)for(let c=0;c<o;c++)await Promise.all(s);if(i)throw e.payload.error||i}function rt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[jN]:!0,_name:t})}
4function P0(e,t,n){const r=()=>t();return Wk(e._id).set(e),e.vueApp.runWithContext(r)}function Vk(e){let t;return Hl()&&(t=Zn()?.appContext.app.$nuxt),t||=Wk(e).tryUse(),t||null}function bt(e){const t=Vk(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Gt(e){return bt().$config}function Au(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Mh(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function _m(e,t,n=".",r){if(!Mh(t))return _m(e,{},n,r);const s={...t};for(const i of Object.keys(e)){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Mh(o)&&Mh(s[i])?s[i]=_m(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function zN(e){return(...t)=>t.reduce((n,r)=>_m(n,r,"",e),{})}const zk=zN();function GN(e,t){try{return t in e}catch{return!1}}class M0 extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ym(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Gk(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function KN(e){if(typeof e=="string")return new M0(e);if(YN(e))return e;const t=new M0(e.message??e.statusMessage??"",{cause:e.cause||e});if(GN(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ym(e.statusCode,t.statusCode):e.status&&(t.statusCode=ym(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Gk(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function YN(e){return e?.constructor?.__h3_error__===!0}const XN=/[^\u0009\u0020-\u007E]/g;function Gk(e=""){return e.replace(XN,"")}function ym(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Kk=Symbol("layout-meta"),Xi=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Yt=()=>bt()?.$router,Ps=()=>Hl()?Ut(Xi,bt()._route):bt()._route;const Yk=()=>{try{if(bt()._processingMiddleware)return!0}catch{return!1}return!1},Bl=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?vm(e):Yt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,d=[];for(const[f,p]of Object.entries(u))p!==void 0&&d.push(`${f.toLowerCase()}=${p}`);return open(n,l,d.join(", ")),Promise.resolve()}const r=li(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&nN(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const i=Yk();if(!s&&i){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:d}=Uy(e);return{path:l,...u&&{query:$y(u)},...d&&{hash:d},replace:!0}}return{...e,replace:!0}}return e}const o=Yt(),a=bt();if(s)return a._scope.stop(),t?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const c=typeof e=="string"?Xk(e):e;return t?.replace?o.replace(c):o.push(c)},Ure=(e,t)=>{const n=bt(),r=Yk();if(r||n.isHydrating){const s=Yt().beforeResolve(i=>{i.meta.layout=e,i.meta.layoutProps=t,s()})}if(!r){const s=Ps();s.meta.layout=e,s.meta.layoutProps=t}};function vm(e){return Dk(e.path||"",e.query||{})+(e.hash||"")}function Xk(e){const t=Uy(e);return WL(VL(t.pathname))+t.search+t.hash}const Jk="__nuxt_error",Ip=()=>OT(bt().payload,"error"),Ri=e=>{const t=Js(e);try{const n=Ip();bt().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},Zk=async(e={})=>{const t=bt(),n=Ip();t.callHook("app:error:cleared",e),e.redirect&&await Yt().replace(e.redirect),n.value=$N},Qk=e=>!!e&&typeof e=="object"&&Jk in e,Js=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=KN(e);return Object.defineProperty(t,Jk,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t},JN=-1,ZN=-2,QN=-3,eD=-4,tD=-5,nD=-6,rD=-7,ex=2**32-1,bm=ex-1;function sD(e){return!(!Number.isInteger(e)||e<0||e>bm)}function iD(e){return!(!Number.isInteger(e)||e<0||e>ex)}function oD(e){return Uint8Array.fromBase64(e).buffer}function aD(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function cD(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let s=0;s<n;s++)r[s]=t.charCodeAt(s);return r.buffer}const lD=typeof Uint8Array.fromBase64=="function",uD=typeof process=="object"&&process.versions?.n
4ode!==void 0,dD=lD?oD:uD?aD:cD;function fD(e,t){return pD(JSON.parse(e),t)}function pD(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let s=null;function i(o,a=!1){if(o===JN)return;if(o===QN)return NaN;if(o===eD)return 1/0;if(o===tD)return-1/0;if(o===nD)return-0;if(a||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const c=n[o];if(!c||typeof c!="object")r[o]=c;else if(Array.isArray(c))if(typeof c[0]=="string"){const l=c[0],u=t&&Object.hasOwn(t,l)?t[l]:void 0;if(u){let d=c[1];if(typeof d!="number"&&(d=n.push(c[1])-1),s??=new Set,s.has(d))throw new Error("Invalid circular reference");return s.add(d),r[o]=u(i(d)),s.delete(d),r[o]}switch(l){case"Date":r[o]=new Date(c[1]);break;case"Set":const d=new Set;r[o]=d;for(let h=1;h<c.length;h+=1)d.add(i(c[h]));break;case"Map":const f=new Map;r[o]=f;for(let h=1;h<c.length;h+=2)f.set(i(c[h]),i(c[h+1]));break;case"RegExp":r[o]=new RegExp(c[1],c[2]);break;case"Object":{const h=c[1];if(typeof n[h]=="object"&&n[h][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(i(h));break}case"BigInt":r[o]=BigInt(c[1]);break;case"null":const p=Object.create(null);r[o]=p;for(let h=1;h<c.length;h+=2){if(c[h]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");p[c[h]]=i(c[h+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[c[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const h=globalThis[l],g=i(c[1]);r[o]=c[2]!==void 0?new h(g,c[2],c[3]):new h(g);break}case"ArrayBuffer":{const h=c[1];if(typeof h!="string")throw new Error("Invalid ArrayBuffer encoding");const g=dD(h);r[o]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=l.slice(9);r[o]=Temporal[h].from(c[1]);break}case"URL":{const h=new URL(c[1]);r[o]=h;break}case"URLSearchParams":{const h=new URLSearchParams(c[1]);r[o]=h;break}default:throw new Error(`Unknown type ${l}`)}}else if(c[0]===rD){const l=c[1];if(!iD(l))throw new Error("Invalid input");const u=[];r[o]=u,u[bm]=void 0,delete u[bm];for(let d=2;d<c.length;d+=2){const f=c[d];if(!sD(f)||f>=l)throw new Error("Invalid input");u[f]=i(c[d+1])}u.length=l}else{const l=new Array(c.length);r[o]=l;for(let u=0;u<c.length;u+=1){const d=c[u];d!==ZN&&(l[u]=i(d))}}else{const l={};r[o]=l;for(const u of Object.keys(c)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=c[u];l[u]=i(d)}}return r[o]}return i(0)}const hD=new Set(["link","style","script","noscript"]),gD=new Set(["title","titleTemplate","script","style","noscript"]),wm=new Set(["base","meta","link","style","script","noscript"]),mD=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),_D=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),yD=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),vD=new Set(["templateParams","htmlAttrs","bodyAttrs"]),By=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),pl={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},bD={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},tx={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${ds(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?ds(e):`${ds(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${ds(e)} ${t}`}},charset:{}};function ds(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:pl.META.has(t.slice(0,n))||pl.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function nx(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function Sm(e){return Array.isArray(e)?e.map(Sm):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[ds(t),Sm(n)]))}function rx(e,t={}){const{entrySeparator:n="",keyValueSeparator:r="",wrapValue:s,resolve:i}=t;return Object.entries(e).map(([o,a])=>{if(i){const l=i({key:o,value:a});if(l!==void 0)return l}const c=typeof a=="object"?rx(a,t):typeof a=="number"?a.toString():typeof a=="str
4ing"&&s?`${s}${a.replace(new RegExp(s,"g"),`\\${s}`)}${s}`:a;return`${o}${r}${c}`}).join(n)}function L0(e,t){const n=nx(t),r=ds(e),s=sx(r);if(!By.has(r))return[{[s]:r,...n}];const i=Object.fromEntries(Object.entries(n).map(([o,a])=>[`${e}${o==="url"?"":`${o[0].toUpperCase()}${o.slice(1)}`}`,a]));return rf(i||{}).sort((o,a)=>(o[s]?.length||0)-(a[s]?.length||0))}function sx(e){if(tx[e]?.metaKey==="http-equiv"||pl.HTTP_EQUIV.has(e))return"http-equiv";const t=ds(e),n=t.indexOf(":");return n===-1?"name":pl.OG.has(t.slice(0,n))?"property":"name"}function wD(e){return bD[e]||ds(e)}function SD(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:rx(Sm(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:r})=>n===null?"":typeof n=="boolean"?r:void 0,...tx[t]?.unpack})}function rf(e){const t=[],n={};for(const[s,i]of Object.entries(e)){if(Array.isArray(i)){if(s==="themeColor"){i.forEach(o=>{typeof o=="object"&&o!==null&&t.push({name:"theme-color",...o})});continue}for(const o of i)if(typeof o=="object"&&o!==null){const a=[],c=[];for(const[l,u]of Object.entries(o)){const d=`${s}${l==="url"?"":`:${l}`}`,f=rf({[d]:u});(l==="url"?a:c).push(...f)}t.push(...a,...c)}else t.push(...typeof o=="string"?rf({[s]:o}):L0(s,o));continue}if(typeof i=="object"&&i)if(pl.MEDIA.has(s)){const o=s.startsWith("twitter")?"twitter":"og",a=s.replace(/^(og|twitter)/,"").toLowerCase(),c=o==="twitter"?"name":"property";i.url&&t.push({[c]:`${o}:${a}`,content:i.url}),i.secureUrl&&t.push({[c]:`${o}:${a}:secure_url`,content:i.secureUrl});for(const[l,u]of Object.entries(i))l!=="url"&&l!=="secureUrl"&&t.push({[c]:`${o}:${a}:${l}`,content:u})}else By.has(ds(s))?t.push(...L0(s,i)):n[s]=nx(i);else n[s]=i}const r=Object.entries(n).map(([s,i])=>{if(s==="charset")return{charset:i===null?"_null":i};const o=sx(s),a=wD(s),c=i===null?"_null":typeof i=="object"?SD(i,s):typeof i=="number"?i.toString():i;return o==="http-equiv"?{"http-equiv":a,content:c}:{[o]:a,content:c}});return[...t,...r].map(s=>"content"in s&&s.content==="_null"?{...s,content:null}:s)}const ED={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(rf(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...t)}}};function Em(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Em(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const ix=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function ox(e,t,n,r){for(let s=n;s<e.length;s+=1)try{const i=r?r.run(()=>e[s](...t)):e[s](...t);if(i&&typeof i.then=="function")return Promise.resolve(i).then(()=>ox(e,t,s+1,r))}catch(i){return Promise.reject(i)}}function TD(e,t,n){if(e.length>0)return ox(e,t,0,ix(n))}function kD(e,t,n){if(e.length>0){const r=ix(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}}function Lh(e,t){for(const n of[...e])n(t)}var xD=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...s));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Em(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=Em(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(TD,e,t)}callHookParallel(e,...t){return this.callHookWith(kD,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Lh(this._before,r);const s=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return s instanceof Promise?s.finally(()=>{this._after&&r&&Lh(this._after,r)}):(this._after&&r&&Lh(this._after,r),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function ID(){return new xD}const RD=["name","property","http-equiv"],CD=new Set(["viewport","description","keywords","robots"]);function ax(e){const t=e.split(":");return t.length?By.has(t[1]):!1}function Tm(e){const{props:t,tag:n}=e;if(_D.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const r of RD)if(t[r]!==void 0){const s=t[r],i=s&&typeof s=="string"&&s.includes(":"),o=s&&CD.has(s),c=!(i||o)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${c}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(gD.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function cx(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function sf(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const s=t?t(n,e):e;if(Array.isArray(s))return s.map(i=>sf(i,t));if(s?.constructor===Object){const i={};for(const o of Object.keys(s))i[o]=sf(s[o],t,o);return i}return s}function AD(e,t){const n=e==="style"?new Map:new Set;function r(s){if(s==null||s===void 0)return;const i=String(s).trim();if(i)if(e==="style"){const[o,...a]=i.split(":").map(c=>c?c.trim():"");o&&a.length&&n.set(o,a.join(":"))}
4else i.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,i])=>{i&&i!=="false"&&(e==="style"?n.set(String(s).trim(),String(i)):r(s))}),n}function lx(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=wm.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([r,s])=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;if(s===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=AD(r,s);return}if(yD.has(r)){if((r==="textContent"||r==="innerHTML")&&typeof s=="object"){let l=t.type;if(t.type||(l="application/json"),!l?.endsWith("json")&&l!=="speculationrules")return;t.type=l,e.props.type=l,e[r]=JSON.stringify(s)}else e[r]=s;return}const i=r.startsWith("data-"),o=n&&!i?r.toLowerCase():r,a=String(s),c=e.tag==="meta"&&o==="content";a==="true"||a===""?e.props[o]=i||c?a:!0:!s&&i&&a==="false"?e.props[o]="false":s!==void 0&&(e.props[o]=s)}),e}function OD(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=lx({tag:e,props:{}},n);return r.key&&hD.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function PD(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,i)=>{for(let o=0;o<t.length;o++)i=t[o](s,i);return i};e=n(void 0,e);const r=[];return e=sf(e,n),Object.entries(e||{}).forEach(([s,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])r.push(OD(s,o))}),r.flat()}const km=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,N0={base:-10,title:10},MD={critical:-8,high:-1,low:2},D0={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},LD=/@import/,nc=e=>e===""||e===!0;function ND(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=MD[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:D0;if(t.tag in N0)n=N0[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=D0.meta[i])}else if(t.tag==="link"&&t.props.rel)n=s.link[t.props.rel];else if(t.tag==="script"){const i=String(t.props.type);nc(t.props.async)?n=s.script.async:t.props.src&&!nc(t.props.defer)&&!nc(t.props.async)&&i!=="module"&&!i.endsWith("json")||t.innerHTML&&!i.endsWith("json")?n=s.script.sync:(nc(t.props.defer)&&t.props.src&&!nc(t.props.async)||i==="module")&&(n=s.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&LD.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function $0(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function DD(e={}){const t=ID();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,i=new Set,o={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>$0(o,a),push(a,c){const l={...c||{}};delete l.head;const u=l._index??o._entryCount++,d={_i:u,input:a,options:l},f={_poll(p=!1){o.dirty=!0,!p&&i.add(u),t.callHook("entries:updated",o)},dispose(){r.delete(u)&&o.invalidate()},patch(p){(!l.mode||l.mode==="server"&&n||l.mode==="client"&&!n)&&(d.input=p,r.set(u,d),f._poll())}};return f.patch(a),f},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",a);i.size;){const f=i.values().next().value;i.delete(f);const p=r.get(f);if(p){const h={tags:PD(p.input,e.propResolvers||[]).map(g=>Object.assign(g,p.options)),entry:p};await t.callHook("entries:normalize",h),p._tags=h.tags.map((g,S)=>(g._w=ND(o,g),g._p=(p._i<<10)+S,g._d=Tm(g),g._d||(g._h=cx(g)),g))}}let c=!1;a.entries.flatMap(f=>(f._tags||[]).map(p=>({...p,props:{...p.props}}))).sort(km).reduce((f,p)=>{const h=p._d||p._h;
4if(!f.has(h))return f.set(h,p);const g=f.get(h);if((p?.tagDuplicateStrategy||(vD.has(p.tag)?"merge":null)||(p.key&&p.key===g.key?"merge":null))==="merge"){const y={...g.props};Object.entries(p.props).forEach(([v,m])=>y[v]=v==="style"?new Map([...g.props.style||new Map,...m]):v==="class"?new Set([...g.props.class||new Set,...m]):m),f.set(h,{...p,props:y})}else p._p>>10===g._p>>10&&p.tag==="meta"&&ax(h)?(f.set(h,Object.assign([...Array.isArray(g)?g:[g],p],p)),c=!0):(p._w===g._w?p._p>g._p:p?._w<g?._w)&&f.set(h,p);return f},a.tagMap);const l=a.tagMap.get("title"),u=a.tagMap.get("titleTemplate");if(o._title=l?.textContent,u){const f=u?.textContent;if(o._titleTemplate=f,f){let p=typeof f=="function"?f(l?.textContent):f;typeof p=="string"&&!o.plugins.has("template-params")&&(p=p.replace("%s",l?.textContent||"")),l?p===null?a.tagMap.delete("title"):a.tagMap.set("title",{...l,textContent:p}):(u.tag="title",u.textContent=p)}}a.tags=Array.from(a.tagMap.values()),c&&(a.tags=a.tags.flat().sort(km)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const d=[];for(const f of a.tags){const{innerHTML:p,tag:h,props:g}=f;if(mD.has(h)&&!(Object.keys(g).length===0&&!f.innerHTML&&!f.textContent)&&!(h==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(h==="script"&&p){if(String(g.type).endsWith("json")){const S=typeof p=="string"?p:JSON.stringify(p);f.innerHTML=S.replace(/</g,"\\u003C")}else typeof p=="string"&&(f.innerHTML=p.replace(new RegExp(`</${h}`,"g"),`<\\/${h}`));f._d=Tm(f)}d.push(f)}}return d},invalidate(){for(const a of r.values())i.add(a._i);o.dirty=!0,t.callHook("entries:updated",o)}};return(e?.plugins||[]).forEach(a=>$0(o,a)),o.hooks.callHook("init",o),e.init?.forEach(a=>a&&o.push(a)),o}const Nh="%separator";function $D(e,t,n=!1){let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");r=e[t.substring(0,s)]?.[t.substring(s+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function Ou(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const i=s.match(/%\w+(?:\.\w+)?/g);if(!i)return e;const o=e.includes(Nh);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===Nh||!i.includes(a))return a;const c=$D(t,a.slice(1),r);return c!==void 0?c:a}).trim(),o&&(e=e.split(Nh).map(a=>a.trim()).filter(a=>a!=="").join(n?` ${n} `:" ")),e}const F0=e=>e.includes(":key")?e:e.split(":").join(":key:"),FD={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const i=F0(s.slice(7)),o=e.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p-1,t=!0)}else if(s.startsWith("after:")){const i=F0(s.slice(6)),o=e.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p+1,t=!0)}}t&&(e.tags=e.tags.sort(km))}}},UD={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function xm(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>xm(n)));if(e?.constructor===Object){const n={};for(const r of Object.keys(e))n[r]=await xm(e[r]);return n}return e}const HD={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(xm(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},jD={meta:"content",link:"href",htmlAttrs:"lang"},BD=["innerHTML","textContent"],qD=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const n=t.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{const r=t.get("templateParams")?.props||{},s=r.separator||"|";delete r.separator,r.pageTitle=Ou(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const o=jD[i.tag];
4if(o&&typeof i.props[o]=="string")i.props[o]=Ou(i.props[o],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const a of BD)typeof i[a]=="string"&&(i[a]=Ou(i[a],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Ou(n.textContent,e._templateParams,e._separator))}}}),WD=(e,t)=>gt(t)?Ir(t):t,qy="usehead";function VD(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(qy,e)}}.install}function ux(){if(Hl()){const e=Ut(qy);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function dx(e,t={}){const n=t.head||ux();return n.ssr?n.push(e||{},t):zD(n,e,t)}function zD(e,t,n={}){const r=Ae(!1);let s;return $T(()=>{const o=r.value?{}:sf(t,WD);s?s.patch(o):s=e.push(o,n)}),Zn()&&(Na(()=>{s.dispose()}),Oy(()=>{r.value=!0}),Ay(()=>{r.value=!1})),s}function GD(e={},t={}){(t.head||ux()).use(ED);const{title:r,titleTemplate:s,...i}=e;return dx({title:r,titleTemplate:s,_flatMeta:i},t)}function fx(e){const t=e||Vk();return t?.ssrContext?.head||t?.runWithContext(()=>{if(Hl())return Ut(qy)})}function Wy(e,t={}){const n=fx(t.nuxt);if(n)return dx(e,{head:n,...t})}function Hre(e,t={}){const n=fx(t.nuxt);if(n)return GD(e,{head:n,...t})}const KD=(()=>{const e={},t={redirect:"/rss.xml"},n={redirect:"https://politics.blavity.com"},r={redirect:"/creators100"},s={redirect:"/health"},i={payload:!1,prerender:!1,ssr:!0};return(o,a)=>{let c=[];a.charCodeAt(a.length-1)===47&&(a=a.slice(0,-1)||"/"),a==="/sw.js"?c.unshift({data:e}):a==="/pushly-sw.js"?c.unshift({data:e}):a==="/pushly-sdk-worker.js"?c.unshift({data:e}):a==="/rss"?c.unshift({data:t}):a==="/politics"?c.unshift({data:n}):a==="/juneteenthcreators100"?c.unshift({data:r}):a==="/categories/news/health"?c.unshift({data:s}):a==="/briefing"&&c.unshift({data:i});let l=a.split("/");return l.length>1&&l[1]==="briefing"&&c.unshift({data:i,params:{_:l.slice(2).join("/")}}),c}})(),px=e=>zk({},...KD("",e).map(t=>t.data).reverse()),YD=px;let dd;function XD(){let e;return e=$fetch(jy(`builds/meta/${Gt().app.buildId}.json`),{responseType:"json"}),dd=e,e.catch(t=>{dd===e&&(dd=void 0),console.error("[nuxt] Error fetching app manifest.",t)}),e}function hx(){return dd||XD()}function gx(e){const t=typeof e=="string"?e:e.path;try{return YD(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function U0(e,t={}){return null}async function JD(e){return null}let vi=null;async function ZD(){if(vi)return vi;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await QD(e.textContent||""),n=e.dataset.src?await JD(e.dataset.src):void 0;return vi={...t,...n,...window.__NUXT__},vi.config?.public&&(vi.config.public=tr(vi.config.public)),vi}async function QD(e){return await fD(e,bt()._payloadRevivers)}function e5(e,t){bt()._payloadRevivers[e]=t}const t5=[["NuxtError",e=>Js(e)],["EmptyShallowRef",e=>dr(e==="_"?void 0:e==="0n"?BigInt(0):ef(e))],["EmptyRef",e=>Ae(e==="_"?void 0:e==="0n"?BigInt(0):ef(e))],["ShallowRef",e=>dr(e)],["ShallowReactive",e=>Or(e)],["Ref",e=>Ae(e)],["Reactive",e=>tr(e)]],n5=rt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of t5)e5(r,s);Object.assign(e.payload,([t,n]=Uc(()=>e.runWithContext(ZD)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function Vy(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const i=new Map,o=new Promise(p=>{e.resolveTags().then(h=>{p(h.map(g=>{const S=i.get(g._d)||0,y={tag:g,id:(S?`${g._d}:${S}`:g._d)||g._h,shouldRender:!0};return g._d&&ax(g._d)&&i.set(g._d,S+1),y}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const h=n[p]?.children;for(const g of h){const S=g.tagName.toLowerCase();if(!wm.has(S))continue;const y=lx({tag:S,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((v,m)=>(v[m]=g.getAttribute(m),v),{})||{}});if(y.key=g.getAttribute("data-hid")||void 0,y._d=Tm(y)||cx(y),a.elMap.has(y._d)){let v=1,m=y._d;for(;a.elMap.has(m);)m=`${y._d}:${v++}`;a.elMap.set(m,g)}else a.elMap.set(y._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(p,h,g){const S=`${p}:${h}`;a.sideEffects[S]=g,delete a.pendingSideEffects[S]}
4function l({id:p,$el:h,tag:g}){const S=g.tag.endsWith("Attrs");a.elMap.set(p,h),S||(g.textContent&&g.textContent!==h.textContent&&(h.textContent=g.textContent),g.innerHTML&&g.innerHTML!==h.innerHTML&&(h.innerHTML=g.innerHTML),c(p,"el",()=>{h?.remove(),a.elMap.delete(p)}));for(const y in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,y))continue;const v=g.props[y];if(y.startsWith("on")&&typeof v=="function"){const _=h?.dataset;if(_&&_[`${y}fired`]){const w=y.slice(0,-5);v.call(h,new Event(w.substring(2)))}h.getAttribute(`data-${y}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:h).addEventListener(y.substring(2),v.bind(h)),h.setAttribute(`data-${y}`,""));continue}const m=`attr:${y}`;if(y==="class"){if(!v)continue;for(const _ of v)S&&c(p,`${m}:${_}`,()=>h.classList.remove(_)),!h.classList.contains(_)&&h.classList.add(_)}else if(y==="style"){if(!v)continue;for(const[_,w]of v)c(p,`${m}:${_}`,()=>{h.style.removeProperty(_)}),h.style.setProperty(_,w)}else v!==!1&&v!==null&&(h.getAttribute(y)!==v&&h.setAttribute(y,v===!0?"":String(v)),S&&c(p,m,()=>h.removeAttribute(y)))}}const u=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await o;for(const p of f){const{tag:h,shouldRender:g,id:S}=p;if(g){if(h.tag==="title"){n.title=h.textContent,c("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(S),p.$el?l(p):wm.has(h.tag)&&u.push(p)}}for(const p of u){const h=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),l(p),d[h]=d[h]||n.createDocumentFragment(),d[h].appendChild(p.$el)}for(const p of f)await e.hooks.callHook("dom:renderTag",p,n,c);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:f}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function r5(e={}){const t=e.domOptions?.render||Vy;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return DD({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function s5(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function i5(e={}){const t=r5({domOptions:{render:s5(()=>Vy(t),n=>setTimeout(n,0))},...e});return t.install=VD(t),t}const o5={disableDefaults:!0,disableCapoSorting:!1,plugins:[UD,HD,qD,FD]},a5=rt({name:"nuxt:head",enforce:"pre",setup(e){const t=i5(o5);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Vy(t)};t.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r);const s=t.push.bind(t);t.push=((i,o)=>{const a=s(i,o),c=a.dispose.bind(a);return a.dispose=()=>{const l=e["~transitionPromise"];l?l.then(c):c()},a})}}});const Ro=typeof document<"u";function mx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function c5(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&mx(e.default)}const Je=Object.assign;function Dh(e,t){const n={};for(const r in t){const s=t[r];n[r]=yr(s)?s.map(e):e(s)}return n}const Hc=()=>{},yr=Array.isArray;function H0(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const _x=/#/g,l5=/&/g,u5=/\//g,d5=/=/g,f5=/\?/g,yx=/\+/g,p5=/%5B/g,h5=/%5D/g,vx=/%5E/g,g5=/%60/g,bx=/%7B/g,m5=/%7C/g,wx=/%7D/g,_5=/%20/g;function zy(e){return e==null?"":encodeURI(""+e).replace(m5,"|").replace(p5,"[").replace(h5,"]")}function y5(e){return zy(e).replace(bx,"{").replace(wx,"}").replace(vx,"^")}function Im(e){return zy(e).replace(yx,"%2B").replace(_5,"+").replace(_x,"%23").replace(l5,"%26").replace(g5,"`").replace(bx,"{").replace(wx,"}").replace(vx,"^")}function v5(e){return Im(e).replace(d5,"%3D")}function b5(e){return zy(e).replace(_x,"%23").replace(f5,"%3F")}function w5(e){return b5(e).replace(u5,"%2F")}function hl(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const S5=/\/$/,E5=e=>e.replace(S5,"");function $h(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let c=t.indexOf("?");return c=a>=0&&c>a?-1:c,c>=0&&(r=t.slice(0,c),i=t.slice(c,a>0?a:t.length),s=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=I5(r??t,n),{fullPath:r+i+o,path:r,query:s,hash:hl(o)}}function T5(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function j0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}
vendor: 21,567 bytes, line 4
4function k5(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&da(t.matched[r],n.matched[s])&&Sx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function da(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!x5(e[n],t[n]))return!1;return!0}function x5(e,t){return yr(e)?B0(e,t):yr(t)?B0(t,e):e?.valueOf()===t?.valueOf()}function B0(e,t){return yr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function I5(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const qn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Rm=(function(e){return e.pop="pop",e.push="push",e})({}),Fh=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function R5(e){if(!e)if(Ro){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),E5(e)}const C5=/^[^#]+#/;function A5(e,t){return e.replace(C5,"#")+t}function O5(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Rp=()=>({left:window.scrollX,top:window.scrollY});function P5(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=O5(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function q0(e,t){return(history.state?history.state.position-t:-1)+e}const Cm=new Map;function M5(e,t){Cm.set(e,t)}function L5(e){const t=Cm.get(e);return Cm.delete(e),t}function N5(e){return typeof e=="string"||e&&typeof e=="object"}function Ex(e){return typeof e=="string"||typeof e=="symbol"}let Ct=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Tx=Symbol("");Ct.MATCHER_NOT_FOUND+"",Ct.NAVIGATION_GUARD_REDIRECT+"",Ct.NAVIGATION_ABORTED+"",Ct.NAVIGATION_CANCELLED+"",Ct.NAVIGATION_DUPLICATED+"";function fa(e,t){return Je(new Error,{type:e,[Tx]:!0},t)}function Xr(e,t){return e instanceof Error&&Tx in e&&(t==null||!!(e.type&t))}const D5=["params","query","hash"];function $5(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of D5)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function F5(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(yx," "),i=s.indexOf("="),o=hl(i<0?s:s.slice(0,i)),a=i<0?null:hl(s.slice(i+1));if(o in t){let c=t[o];yr(c)||(c=t[o]=[c]),c.push(a)}else t[o]=a}return t}function W0(e){let t="";for(let n in e){const r=e[n];if(n=v5(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(yr(r)?r.map(s=>s&&Im(s)):[r&&Im(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function U5(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=yr(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const kx=Symbol(""),V0=Symbol(""),Gy=Symbol(""),Ky=Symbol(""),Am=Symbol("");function rc(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function H5(e,t,n){const r=()=>{e[t].delete(n)};Da(r),Oy(r),Ay(()=>{e[t].add(n)}),e[t].add(n)}function jre(e){const t=Ut(kx,{}).value;t&&H5(t,"leaveGuards",e)}function Ws(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const l=f=>{f===!1?c(fa(Ct.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?c(f):N5(f)?c(fa(Ct.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},u=i(()=>e.call(r&&r.instances[s],t,n,l));let d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(f=>c(f))})}function Uh(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let c=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(mx(c)){const l=(c.__vccOpts||c)[t];l&&i.push(Ws(l,n,r,o,a,s))}else{let l=c();i.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=c5(u)?u.default:u;o.mods[a]=u,o.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&Ws(f,n,r,o,a,s)()}))}}return i}function j5(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(l=>da(l,a))?r.push(a):n.push(a));const c=e.matched[o];c&&(t.matched.find(l=>da(l,c))||s.push(c))}return[n,r,s]}let B5=()=>location.protocol+"//"+location.host;function xx(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),j0(a,"")}return j0(n,e)+r+s}function q5(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const p=xx(e,location),h=n.value,g=t.value;let S=0;if(f){if(n.value=p,t.value=f,o&&o===h){o=null;return}S=g?f.position-g.position:0}else r(p);s.forEach(y=>{y(n.value,h,{delta:S,type:Rm.pop,direction:S?S>0?Fh.forward:Fh.back:Fh.unknown})})};function c(){o=n.value}function l(f){s.push(f);const p=()=>{const h=s.indexOf(f);h>-1&&s.splice(h,1)};return i.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Je({},f.state,{scroll:Rp()}),"")}}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:c,listen:l,destroy:d}}function z0(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Rp():null}}function W5(e){const{history:t,location:n}=window,r={value:xx(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,l,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:B5()+e+c;try{t[u?"replaceState":"pushState"](l,"",f),s.value=l}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function o(c,l){i(c,Je({},t.state,z0(s.value.back,c,s.value.forward,!0),l,{position:s.value.position}),!0),r.value=c}function a(c,l){const u=Je({},s.value,t.state,{forward:c,scroll:Rp()});i(u.current,u,!0),i(c,Je({},z0(r.value,c,null),{position:u.position+1},l),!1),r.value=c}return{location:r,state:s,push:a,replace:o}}function V5(e){e=R5(e);const t=W5(e),n=q5(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Je({location:"",base:e,go:r,createHref:A5.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let Ni=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var jt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(jt||{});const z5={type:Ni.Static,value:""},G5=/[a-zA-Z0-9_]/;function K5(e){if(!e)return[[]];if(e==="/")return[[z5]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${l}": ${p}`)}let n=jt.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,l="",u="";function d(){l&&(n===jt.Static?i.push({type:Ni.Static,value:l}):n===jt.Param||n===jt.ParamRegExp||n===jt.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Ni.Param,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function f(){l+=c}for(;a<e.length;){if(c=e[a++],c==="\\"&&n!==jt.ParamRegExp){r=n,n=jt.EscapeNext;continue}switch(n){case jt.Static:c==="/"?(l&&d(),o()):c===":"?(d(),n=jt.Param):f();break;case jt.EscapeNext:f(),n=r;break;case jt.Param:c==="("?n=jt.ParamRegExp:G5.test(c)?f():(d(),n=jt.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case jt.ParamRegExp:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=jt.ParamRegExpEnd:u+=c;break;case jt.ParamRegExpEnd:d(),n=jt.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===jt.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),s}const G0="[^/]+?",Y5={sensitive:!1,strict:!1,start:!0,end:!0};var mn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(mn||{});const X5=/[.+*?^${}()[\]/\\]/g;function J5(e,t){const n=Je({},Y5,t),r=[];let s=n.start?"^":"";const i=[];for(const l of e){const u=l.length?[]:[mn.Root];n.strict&&!l.length&&(s+="/");for(let d=0;d<l.length;d++){const f=l[d];let p=mn.Segment+(n.sensitive?mn.BonusCaseSensitive:0);if(f.type===Ni.Static)d||(s+="/"),s+=f.value.replace(X5,"\\$&"),p+=mn.Static;else if(f.type===Ni.Param){const{value:h,repeatable:g,optional:S,regexp:y}=f;i.push({name:h,repeatable:g,optional:S});const v=y||G0;if(v!==G0){p+=mn.BonusCustomRegExp;try{`${v}`}catch(_){throw new Error(`Invalid custom RegExp for param "${h}" (${v}): `+_.message)}}let m=g?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;d||(m=S&&l.length<2?`(?:/${m})`:"/"+m),S&&(m+="?"),s+=m,p+=mn.Dynamic,S&&(p+=mn.BonusOptional),g&&(p+=mn.BonusRepeatable),v===".*"&&(p+=mn.BonusWildcard)}u.push(p)}r.push(u)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=mn.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(l){const u=l.match(o),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",h=i[f-1];d[h.name]=p&&h.repeatable?p.split("/"):p}return d}function c(l){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===Ni.Static)u+=p.value;else if(p.type===Ni.Param){const{value:h,repeatable:g,optional:S}=p,y=h in l?l[h]:"";if(yr(y)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const v=yr(y)?y.join("/"):y;if(!v)if(S)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${h}"`);u+=v}}return u||"/"}return{re:o,score:r,keys:i,parse:a,stringify:c}}function Z5(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===mn.Static+mn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===mn.Static+mn.Segment?1:-1:0}function Ix(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=Z5(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(K0(r))return 1;if(K0(s))return-1}return s.length-r.length}function K0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Q5={strict:!1,end:!0,sensitive:!1};function e3(e,t,n){const r=J5(K5(e.path),n),s=Je(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function t3(e,t){const n=[],r=new Map;t=H0(Q5,t);function s(d){return r.get(d)}function i(d,f,p){const h=!p,g=X0(d);g.aliasOf=p&&p.record;const S=H0(t,d),y=[g];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const w of _)y.push(X0(Je({},g,{components:p?p.record.components:g.components,path:w,aliasOf:p?p.record:g})))}let v,m;for(const _ of y){const{path:w}=_;if(f&&w[0]!=="/"){const x=f.record.path,T=x[x.length-1]==="/"?"":"/";_.path=f.record.path+(w&&T+w)}if(v=e3(_,f,S),p?p.alias.push(v):(m=m||v,m!==v&&m.alias.push(v),h&&d.name&&!J0(v)&&o(d.name)),Rx(v)&&c(v),g.children){const x=g.children;for(let T=0;T<x.length;T++)i(x[T],v,p&&p.children[T])}p=p||v}return m?()=>{o(m)}:Hc}function o(d){if(Ex(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function c(d){const f=s3(d,n);n.splice(f,0,d),d.record.name&&!J0(d)&&r.set(d.record.name,d)}function l(d,f){let p,h={},g,S;if("name"in d&&d.name){if(p=r.get(d.name),!p)throw fa(Ct.MATCHER_NOT_FOUND,{location:d});S=p.record.name,h=Je(Y0(f.params,p.keys.filter(m=>!m.optional).concat(p.parent?p.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),d.params&&Y0(d.params,p.keys.map(m=>m.name))),g=p.stringify(h)}else if(d.path!=null)g=d.path,p=n.find(m=>m.re.test(g)),p&&(h=p.parse(g),S=p.record.name);else{if(p=f.name?r.get(f.name):n.find(m=>m.re.test(f.path)),!p)throw fa(Ct.MATCHER_NOT_FOUND,{location:d,currentLocation:f});S=p.record.name,h=Je({},f.params,d.params),g=p.stringify(h)}const y=[];let v=p;for(;v;)y.unshift(v.record),v=v.parent;return{name:S,path:g,params:h,matched:y,meta:r3(y)}}e.forEach(d=>i(d));function u(){n.length=0,r.clear()}return{addRoute:i,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function Y0(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function X0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:n3(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function n3(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function J0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function r3(e){return e.reduce((t,n)=>Je(t,n.meta),{})}function s3(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Ix(e,t[i])<0?r=i:n=i+1}const s=i3(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function i3(e){let t=e;for(;t=t.parent;)if(Rx(t)&&Ix(e,t)===0)return t}function Rx({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Z0(e){const t=Ut(Gy),n=Ut(Ky),r=Ve(()=>{const c=ye(e.to);return t.resolve(c)}),s=Ve(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(da.bind(null,u));if(f>-1)return f;const p=Q0(c[l-2]);return l>1&&Q0(u)===p&&d[d.length-1].path!==p?d.findIndex(da.bind(null,c[l-2])):f}),i=Ve(()=>s.value>-1&&u3(n.params,r.value.params)),o=Ve(()=>s.value>-1&&s.value===n.matched.length-1&&Sx(n.params,r.value.params));function a(c={}){if(l3(c)){const l=t[ye(e.replace)?"replace":"push"](ye(e.to)).catch(Hc);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:Ve(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function o3(e){return e.length===1?e[0]:e}const a3=Un({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Z0,setup(e,{slots:t}){const n=tr(Z0(e)),{options:r}=Ut(Gy),s=Ve(()=>({[ew(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ew(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&o3(t.default(n));return e.custom?i:qt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),c3=a3;function l3(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function u3(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!yr(s)||s.length!==r.length||r.some((i,o)=>i.valueOf()!==s[o].valueOf()))return!1}return!0}function Q0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ew=(e,t,n)=>e??t??n,d3=Un({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ut(Am),s=Ve(()=>e.route||r.value),i=Ut(V0,0),o=Ve(()=>{let l=ye(i);const{matched:u}=s.value;let d;for(;(d=u[l])&&!d.components;)l++;return l}),a=Ve(()=>s.value.matched[o.value]);gs(V0,Ve(()=>o.value+1)),gs(kx,a),gs(Am,s);const c=Ae();return rn(()=>[c.value,a.value,e.name],([l,u,d],[f,p,h])=>{u&&(u.instances[d]=l,p&&p!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),l&&u&&(!p||!da(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(l))},{flush:"post"}),()=>{const l=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return tw(n.default,{Component:f,route:l});const p=d.props[u],h=p?p===!0?l.params:typeof p=="function"?p(l):p:null,S=qt(f,Je({},h,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[u]=null)},ref:c}));return tw(n.default,{Component:S,route:l})||S}}});function tw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Cx=d3;function f3(e){const t=t3(e.routes,e),n=e.parseQuery||F5,r=e.stringifyQuery||W0,s=e.history,i=rc(),o=rc(),a=rc(),c=dr(qn);let l=qn;Ro&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Dh.bind(null,V=>""+V),d=Dh.bind(null,w5),f=Dh.bind(null,hl);function p(V,Q){let X,F;return Ex(V)?(X=t.getRecordMatcher(V),F=Q):F=V,t.addRoute(F,X)}function h(V){const Q=t.getRecordMatcher(V);Q&&t.removeRoute(Q)}function g(){return t.getRoutes().map(V=>V.record)}function S(V){return!!t.getRecordMatcher(V)}function y(V,Q){if(Q=Je({},Q||c.value),typeof V=="string"){const L=$h(n,V,Q.path),H=t.resolve({path:L.path},Q),Y=s.createHref(L.fullPath);return Je(L,H,{params:f(H.params),hash:hl(L.hash),redirectedFrom:void 0,href:Y})}let X;if(V.path!=null)X=Je({},V,{path:$h(n,V.path,Q.path).path});else{const L=Je({},V.params);for(const H in L)L[H]==null&&delete L[H];X=Je({},V,{params:d(L)}),Q.params=d(Q.params)}const F=t.resolve(X,Q),Z=V.hash||"";F.params=u(f(F.params));const J=T5(r,Je({},V,{hash:y5(Z),path:F.path})),P=s.createHref(J);return Je({fullPath:J,hash:Z,query:r===W0?U5(V.query):V.query||{}},F,{redirectedFrom:void 0,href:P})}function v(V){return typeof V=="string"?$h(n,V,c.value.path):Je({},V)}function m(V,Q){if(l!==V)return fa(Ct.NAVIGATION_CANCELLED,{from:Q,to:V})}function _(V){return T(V)}function w(V){return _(Je(v(V),{replace:!0}))}function x(V,Q){const X=V.matched[V.matched.length-1];if(X&&X.redirect){const{redirect:F}=X;let Z=typeof F=="function"?F(V,Q):F;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=v(Z):{path:Z},Z.params={}),Je({query:V.query,hash:V.hash,params:Z.path!=null?{}:V.params},Z)}}function T(V,Q){const X=l=y(V),F=c.value,Z=V.state,J=V.force,P=V.replace===!0,L=x(X,F);if(L)return T(Je(v(L),{state:typeof L=="object"?Je({},Z,L.state):Z,force:J,replace:P}),Q||X);const H=X;H.redirectedFrom=Q;let Y;return!J&&k5(r,F,X)&&(Y=fa(Ct.NAVIGATION_DUPLICATED,{to:H,from:F}),q(F,F,!0,!1)),(Y?Promise.resolve(Y):C(H,F)).catch(K=>Xr(K)?Xr(K,Ct.NAVIGATION_GUARD_REDIRECT)?K:j(K):O(K,H,F)).then(K=>{if(K){if(Xr(K,Ct.NAVIGATION_GUARD_REDIRECT))return T(Je({replace:P},v(K.to),{state:typeof K.to=="object"?Je({},Z,K.to.state):Z,force:J}),Q||H)}else K=b(H,F,!0,P,Z);return M(H,F,K),K})}function R(V,Q){const X=m(V,Q);return X?Promise.reject(X):Promise.resolve()}function k(V){const Q=Se.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(V):V()}function C(V,Q){let X;const[F,Z,J]=j5(V,Q);X=Uh(F.reverse(),"beforeRouteLeave",V,Q);for(const L of F)L.leaveGuards.forEach(H=>{X.push(Ws(H,V,Q))});const P=R.bind(null,V,Q);return X.push(P),Fe(X).then(()=>{X=[];for(const L of i.list())X.push(Ws(L,V,Q));return X.push(P),Fe(X)}).then(()=>{X=Uh(Z,"beforeRouteUpdate",V,Q);for(const L of Z)L.updateGuards.forEach(H=>{X.push(Ws(H,V,Q))});return X.push(P),Fe(X)}).then(()=>{X=[];for(const L of J)if(L.beforeEnter)if(yr(L.beforeEnter))for(const H of L.beforeEnter)X.push(Ws(H,V,Q));else X.push(Ws(L.beforeEnter,V,Q));return X.push(P),Fe(X)}).then(()=>(V.matched.forEach(L=>L.enterCallbacks={}),X=Uh(J,"beforeRouteEnter",V,Q,k),X.push(P),Fe(X))).then(()=>{X=[];for(const L of o.list())X.push(Ws(L,V,Q));return X.push(P),Fe(X)}).catch(L=>Xr(L,Ct.NAVIGATION_CANCELLED)?L:Promise.reject(L))}
4function M(V,Q,X){a.list().forEach(F=>k(()=>F(V,Q,X)))}function b(V,Q,X,F,Z){const J=m(V,Q);if(J)return J;const P=Q===qn,L=Ro?history.state:{};X&&(F||P?s.replace(V.fullPath,Je({scroll:P&&L&&L.scroll},Z)):s.push(V.fullPath,Z)),c.value=V,q(V,Q,X,P),j()}let E;function I(){E||(E=s.listen((V,Q,X)=>{if(!ke.listening)return;const F=y(V),Z=x(F,ke.currentRoute.value);if(Z){T(Je(Z,{replace:!0,force:!0}),F).catch(Hc);return}l=F;const J=c.value;Ro&&M5(q0(J.fullPath,X.delta),Rp()),C(F,J).catch(P=>Xr(P,Ct.NAVIGATION_ABORTED|Ct.NAVIGATION_CANCELLED)?P:Xr(P,Ct.NAVIGATION_GUARD_REDIRECT)?(T(Je(v(P.to),{force:!0}),F).then(L=>{Xr(L,Ct.NAVIGATION_ABORTED|Ct.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===Rm.pop&&s.go(-1,!1)}).catch(Hc),Promise.reject()):(X.delta&&s.go(-X.delta,!1),O(P,F,J))).then(P=>{P=P||b(F,J,!1),P&&(X.delta&&!Xr(P,Ct.NAVIGATION_CANCELLED)?s.go(-X.delta,!1):X.type===Rm.pop&&Xr(P,Ct.NAVIGATION_ABORTED|Ct.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),M(F,J,P)}).catch(Hc)}))}let A=rc(),$=rc(),N;function O(V,Q,X){j(V);const F=$.list();return F.length?F.forEach(Z=>Z(V,Q,X)):console.error(V),Promise.reject(V)}function D(){return N&&c.value!==qn?Promise.resolve():new Promise((V,Q)=>{A.add([V,Q])})}function j(V){return N||(N=!V,I(),A.list().forEach(([Q,X])=>V?X(V):Q()),A.reset()),V}function q(V,Q,X,F){const{scrollBehavior:Z}=e;if(!Ro||!Z)return Promise.resolve();const J=!X&&L5(q0(V.fullPath,0))||(F||!X)&&history.state&&history.state.scroll||null;return Jn().then(()=>Z(V,Q,J)).then(P=>P&&P5(P)).catch(P=>O(P,V,Q))}const oe=V=>s.go(V);let ue;const Se=new Set,ke={currentRoute:c,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:g,resolve:y,options:e,push:_,replace:w,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:$.add,isReady:D,install(V){V.component("RouterLink",c3),V.component("RouterView",Cx),V.config.globalProperties.$router=ke,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>ye(c)}),Ro&&!ue&&c.value===qn&&(ue=!0,_(s.location).catch(F=>{}));const Q={};for(const F in qn)Object.defineProperty(Q,F,{get:()=>c.value[F],enumerable:!0});V.provide(Gy,ke),V.provide(Ky,Or(Q)),V.provide(Am,c);const X=V.unmount;Se.add(V),V.unmount=function(){Se.delete(V),Se.size<1&&(l=qn,E&&E(),E=null,c.value=qn,ue=!1,N=!1),X()}}};function Fe(V){return V.reduce((Q,X)=>Q.then(()=>k(X)),Promise.resolve())}return ke}function Ax(e){return Ut(Ky)}const p3=/(:\w+)\([^)]+\)/g,h3=/(:\w+)[?+*]/g,g3=/:\w+/g,m3=(e,t)=>t.path.replace(p3,"$1").replace(h3,"$1").replace(g3,n=>e.params[n.slice(1)]?.toString()||""),Om=(e,t)=>{const n=e.route.matched.find(s=>s.components?.default===e.Component.type),r=t??n?.meta.key??(n&&m3(e.route,n));return typeof r=="function"?r(e.route):r},_3=(e,t)=>
4({default:()=>e?qt(t2,e===!0?{}:e,t):t});function Ox(e){return Array.isArray(e)?e:[e]}const y3="modulepreload",v3=function(e,t){return new URL(e,t).href},nw={},ae=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");s=l(n.map(u=>{if(u=v3(u,r),u in nw)return;nw[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(r)for(let h=o.length-1;h>=0;h--){const g=o[h];if(g.href===u&&(!d||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=d?"stylesheet":y3,d||(p.as="script"),p.crossOrigin="",p.href=u,c&&p.setAttribute("nonce",c),document.head.appendChild(p),d)return new Promise((h,g)=>{p.addEventListener("load",h),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},b3={layout:"article"},w3={layout:"noad"},S3={layout:"twentyoneninety"},E3={layout:"health"},T3={layout:"twentyoneninety"},k3={layout:"twentyoneninety"},x3={layout:"twentyoneninety"},I3={layout:"health"},R3={layout:"empty"},C3={layout:"twentyoneninety"},A3={layout:"health"},O3={layout:"empty"},P3={layout:"shadowandact"},M3={layout:"empty"},L3={layout:"noad"},N3={layout:"empty"},D3={layout:"twentyoneninety"},$3={layout:"health"},F3={layout:"noad"},U3={layout:"empty"},H3={layout:"noad"},j3={layout:"empty"},B3={layout:"health"},q3={layout:"empty"},W3={layout:"health"},V3={layout:"empty"},z3={layout:"empty"},G3={layout:"health"},K3={layout:"shadowandact"},Y3={layout:"empty"},X3={layout:"shadowandact"},J3={layout:"empty"},Z3={layout:"health"},Pu=null,Mu={},Hh=[{name:"hp",path:"/hp",component:()=>ae(()=>import("./CrBe8pdP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"index",path:"/",component:()=>ae(()=>import("./C5QqC9X3.js"),__vite__mapDeps([9,10,11,12,1,13,14,15,16,17]),import.meta.url)},{name:"slug",path:"/:slug()",component:()=>ae(()=>import("./DaIaCBYT.js"),__vite__mapDeps([18,19,20,21,22,23,24,25,15,12,26,14,1,16,17,27,2,3,4,5,7,28,29,30]),import.meta.url)},{name:"latest",path:"/latest",component:()=>ae(()=>import("./DuQxz4Ub.js"),__vite__mapDeps([31,32,33,15,34,35,1,7]),import.meta.url)},{name:"onstar",path:"/onstar",component:()=>ae(()=>import("./DNJy3KUt.js"),__vite__mapDeps([36,1,7,37]),import.meta.url)},{name:"usarmy",path:"/usarmy",component:()=>ae(()=>import("./BBokPRaa.js"),__vite__mapDeps([38,32,33,15,1,39,7,40]),import.meta.url)},{name:"preview",path:"/preview",meta:b3||{},component:()=>ae(()=>import("./eGHaiT7X.js"),__vite__mapDeps([41,19,20,21,22,23,24,25,15,12,26,14,1,16,17,27,2,3,4,5,7,28]),import.meta.url)},{name:"privacy",path:"/privacy",component:()=>ae(()=>import("./CfpRJV3A.js"),[],import.meta.url)},{name:"support",path:"/support",component:()=>ae(()=>import("./DaR1-rHZ.js"),__vite__mapDeps([42,43]),import.meta.url)},{name:"blavity-u",path:"/blavity-u",component:()=>ae(()=>import("./a325s0e-.js"),__vite__mapDeps([44,45,1,33,15,32,21,22,39,7,46]),import.meta.url)},{name:"test-uid2",path:"/test-uid2",component:()=>ae(()=>import("./B47PD6nZ.js"),[],import.meta.url)},{name:"town-hall",path:"/town-hall",component:()=>ae(()=>import("./TmXte6VV.js"),__vite__mapDeps([47,14,1,12,15,16,17,7,48]),import.meta.url)},{name:"amp-slug",path:"/amp/:slug()",meta:w3||{},component:()=>ae(()=>import("./rnKVlXmA.js"),__vite__mapDeps([49,25,15,12,26,14,1,16,17,27,2,3,4,5,7,28,50,29,30]),import.meta.url)},{name:"hub-slug",path:"/hub/:slug()",component:()=>ae(()=>import("./DjiKI1Ra.js"),__vite__mapDeps([51,20,21,22,23]),import.meta.url)},{name:"newsletter",path:"/newsletter",component:()=>ae(()=>import("./BHFQ2Sos.js"),__vite__mapDeps([52,53]),import.meta.url)},{name:"test-share",path:"/test-share",component:()=>ae(()=>import("./DAxkNBWA.js"),__vite__mapDeps([54,55,10,56]),import.meta.url)},{name:"creators100",path:"/creators100",component:()=>ae(()=>import("./CCkH99Rr.js"),__vite__mapDeps([57,1,7,58]),import.meta.url)},{name:"site-name",path:"/site/:name()",component:()=>ae(()=>import("./CDrweFLc.js"),__vite__mapDeps([59,60]),import.meta.url)},{name:"tags-slug",path:"/tags/:slug()",component:()=>ae(()=>import("./BY7BnX6F.js"),__vite__mapDeps([61,32,33,15,34,35,1,27,7]),import.meta.url)},{name:"women",path:"/women",meta:S3||{},component:()=>ae(()=>import("./BgTe9FYg.js"),__vite__mapDeps([62,12,1,11,13,26,14,15,16,17,7,63]),import.meta.url)},{name:"events",path:"/events",component:()=>ae(()=>import("./laay4Oas.js"),[],import.meta.url)},{name:"health",path:"/health",meta:E3||{},component:()=>ae(()=>import("./CyQU9NUV.js"),__vite__mapDeps([64,65,1,12,14,15,16,39,66,7,67]),import.meta.url)},{name:"search",path:"/search",component:()=>ae(()=>import("./wbvf9w8s.js"),__vite__mapDeps([68,32,33,15,1,7]),import.meta.url)},{name:"women-slug",path:"/women/:slug()",meta:T3||{},component:()=>ae(()=>import("./4RSv86za.js"),__vite__mapDeps([69,25,15,12,26,14,1,16,17,27,2,3,4,5,7,28,70,50,29,30]),import.meta.url)},{name:"women-awards",path:"/women/awards",meta:k3||{},component:()=>ae(()=>import("./B4BL9LNZ.js"),__vite__mapDeps([71,72]),import.meta.url)},{name:"women-latest",path:"/women/latest",meta:x3||{},component:()=>ae(()=>import("./B_vP_3Qt.js"),__vite__mapDeps([73,32,33,15,34,35,1,7]),import.meta.url)},{name:"cookie-policy",path:"/cookie-policy",component:()=>ae(()=>import("./Q3qayKWE.js"),[],import.meta.url)},{name:"health-slug",path:"/health/:slug()",meta:I3||{},component:()=>ae(()=>import("./JePD15AV.js"),__vite__mapDeps([74,25,15,12,26,14,1,16,17,27,2,3,4,5,7,28,70,50,29,30]),import.meta.url)},{name:"test-briefing",path:"/test-briefing",component:()=>ae(()=>import("./DkWRy8WH.js"),[],import.meta.url)},{name:"briefing",path:"/briefing",component:()=>ae(()=>import("./Du5_eGih.js"),__vite__mapDeps([75,55,10,56,76,77]),import.meta.url)},{name:"search-query",path:"/search/:query()",component:()=>ae(()=>import("./CJfKh3JT.js"),[],import.meta.url)},{name:"accessamplified",path:"/accessamplified",component:()=>ae(()=>import("./C_1x5KqZ.js"),__vite__mapDeps([78,53,33,15,1,6,7,79]),import.meta.url)}
4,{name:"briefing-date",path:"/briefing/:date()",component:()=>ae(()=>import("./PHPKx2jn.js"),__vite__mapDeps([80,55,10,56,76,81]),import.meta.url)},{name:"events-summit21",path:"/events/summit21",meta:R3||{},component:()=>ae(()=>import("./B0qvuFEU.js"),__vite__mapDeps([82,83,84,85,86,87]),import.meta.url)},{name:"IdentityDigital",path:"/IdentityDigital",component:()=>ae(()=>import("./BfffHNpb.js"),__vite__mapDeps([88,33,15,1,7,89]),import.meta.url)},{name:"listicle-slug",path:"/listicle/:slug()",component:()=>ae(()=>import("./BYYZ8P7J.js"),[],import.meta.url)},{name:"off-the-shelves",path:"/off-the-shelves",component:()=>ae(()=>import("./BmZKcsR2.js"),__vite__mapDeps([90,39,91,4,5,6,92]),import.meta.url)},{name:"women-subscribe",path:"/women/subscribe",meta:C3||{},component:()=>ae(()=>import("./UDaRKpNw.js"),__vite__mapDeps([93,53]),import.meta.url)},{name:"terms-of-service",path:"/terms-of-service",component:()=>ae(()=>import("./9jGedAYs.js"),__vite__mapDeps([94,95]),import.meta.url)},{name:"women-tag-slug",path:"/women/tag/:slug()",component:()=>ae(()=>import("./kblskrGF.js"),[],import.meta.url)},{name:"author-username",path:"/author/:username()",component:()=>ae(()=>import("./De-8v-Ie.js"),__vite__mapDeps([96,32,33,15,1,7,30,12]),import.meta.url)},{name:"health-newsletter",path:"/health/newsletter",meta:A3||{},component:()=>ae(()=>import("./BevSIoL_.js"),__vite__mapDeps([97,98]),import.meta.url)},{name:"cover-story-slug",path:"/cover-story/:slug()",component:()=>ae(()=>import("./BN8n8n7Y.js"),__vite__mapDeps([99,32,33,15,34,35,1,7,3,4,5,39,100]),import.meta.url)},{name:"livestream-control",path:"/livestream-control",meta:O3||{},component:()=>ae(()=>import("./VrGqKOy0.js"),__vite__mapDeps([101,102]),import.meta.url)},{name:"entertainment",path:"/entertainment",meta:P3||{},component:()=>ae(()=>import("./DFhxAYOY.js"),__vite__mapDeps([103,32,33,15,45,104,105,106,1,7,107]),import.meta.url)},{name:"events-blavity-fest",path:"/events/blavity-fest",meta:M3||{},component:()=>ae(()=>import("./CYYAmz0c.js"),__vite__mapDeps([108,85,109,110,86,111]),import.meta.url)},{name:"politics-newsletter",path:"/politics-newsletter",component:()=>ae(()=>import("./BGxGc0X_.js"),__vite__mapDeps([112,53,15]),import.meta.url)},{name:"entertainment-slug",path:"/entertainment/:slug()",meta:L3||{},component:()=>ae(()=>import("./DP84SSyn.js"),__vite__mapDeps([113,25,15,12,26,14,1,16,17,27,2,3,4,5,7,28,70,50,29,30]),import.meta.url)},{name:"black-excellence-quiz",path:"/black-excellence-quiz",component:()=>ae(()=>import("./Bcm9fowy.js"),[],import.meta.url)},{name:"events-houseparty-faq",path:"/events/houseparty/faq",meta:N3||{},component:()=>ae(()=>import("./MqHlHLVI.js"),__vite__mapDeps([114,115,39,116,53,4,117]),import.meta.url)},{name:"women-category-slug",path:"/women/category/:slug()",meta:D3||{},component:()=>ae(()=>import("./BnJUJ_ZY.js"),__vite__mapDeps([118,32,33,15,1,7]),import.meta.url)},{name:"women-listicle-slug",path:"/women/listicle/:slug()",component:()=>ae(()=>import("./C7SQceQa.js"),[],import.meta.url)},{name:"health-category-slug",path:"/health/category/:slug()",meta:$3||{},component:()=>ae(()=>import("./Coyt7Fhg.js"),__vite__mapDeps([119,120,15,32,33,34,35,1,7,121]),import.meta.url)},{name:"blavity-original-slug",path:"/blavity-original/:slug()",meta:F3||{},component:()=>ae(()=>import("./CHxGNOnc.js"),__vite__mapDeps([122,25,15,12,26,14,1,16,17,27,2,3,4,5,7,28,70,50,29,30]),import.meta.url)},{name:"categories-slug",path:"/categories/:slug()",component:()=>ae(()=>import("./B8kQsoeo.js"),__vite__mapDeps([123,120,15,32,33,34,35,1,7,121,124]),import.meta.url)},{name:"creator-collective-form",path:"/creator-collective-form",component:()=>ae(()=>import("./D0zdeMnX.js"),[],import.meta.url)},{name:"events-houseparty",path:"/events/houseparty",meta:U3||{},component:()=>ae(()=>import("./C1lmlnDM.js"),__vite__mapDeps([125,115,39,116,91,126]),import.meta.url)},{name:"events-newsletter",path:"/events/newsletter",meta:H3||{},component:()=>ae(()=>import("./Bzvaxj1l.js"),__vite__mapDeps([127,53,128]),import.meta.url)},{name:"entertainment-newsletter",path:"/entertainment-newsletter",component:()=>ae(()=>import("./DMD1QZDU.js"),__vite__mapDeps([129,53,105]),import.meta.url)},{name:"entertainment-tag-slug",path:"/entertainment/tag/:slug()",component:()=>ae(()=>import("./DwDxTF3z.js"),[],import.meta.url)}
4,{name:"events-blavity-fest-faqs",path:"/events/blavity-fest-faqs",meta:j3||{},component:()=>ae(()=>import("./D1BCUOkV.js"),__vite__mapDeps([130,83,84,85,131]),import.meta.url)},{name:"health-conditions-slug",path:"/health/conditions/:slug()",meta:B3||{},component:()=>ae(()=>import("./C12yf-Gc.js"),__vite__mapDeps([132,32,33,15,104,105,1,7]),import.meta.url)},{name:"events-blavity-fest-about",path:"/events/blavity-fest-about",meta:q3||{},component:()=>ae(()=>import("./NGKL5ull.js"),__vite__mapDeps([133,83,84,85,110,134]),import.meta.url)},{name:"black-history-culture-quiz",path:"/black-history-culture-quiz",component:()=>ae(()=>import("./Brt_WqfE.js"),[],import.meta.url)},{name:"health-editorial-standards",path:"/health/editorial-standards",meta:W3||{},component:()=>ae(()=>import("./Cp0jFK3D.js"),__vite__mapDeps([135,136]),import.meta.url)},{name:"events-blavity-fest-schedule",path:"/events/blavity-fest-schedule",meta:V3||{},component:()=>ae(()=>import("./u50t3kjT.js"),__vite__mapDeps([137,83,84,85,138]),import.meta.url)},{name:"events-blavity-fest-sponsors",path:"/events/blavity-fest-sponsors",meta:z3||{},component:()=>ae(()=>import("./iTDtubAA.js"),__vite__mapDeps([139,83,84,85,39]),import.meta.url)},{name:"health-medical-experts",path:"/health/medical-experts",meta:G3||{},component:()=>ae(()=>import("./Cn7hTNfy.js"),__vite__mapDeps([140,65,66]),import.meta.url)},{name:"categories-slug-childSlug",path:"/categories/:slug()/:childSlug()",component:()=>ae(()=>import("./ClkI68ai.js"),__vite__mapDeps([141,120,15,32,33,34,35,1,7,121,124]),import.meta.url)},{name:"entertainment-category-slug",path:"/entertainment/category/:slug()",meta:K3||{},component:()=>ae(()=>import("./BQG5jSnp.js"),__vite__mapDeps([142,32,33,15,104,105,1,7]),import.meta.url)},{name:"entertainment-listicle-slug",path:"/entertainment/listicle/:slug()",component:()=>ae(()=>import("./DM_SBcRv.js"),[],import.meta.url)},{name:"events-houseparty-jointhelist",path:"/events/houseparty/jointhelist",meta:Y3||{},component:()=>ae(()=>import("./Dx7Qlk4t.js"),__vite__mapDeps([143,115,39,116,144]),import.meta.url)},{name:"entertainment-category-unscripted",path:"/entertainment/category/unscripted",meta:X3||{},component:()=>ae(()=>import("./CaUPi-7K.js"),__vite__mapDeps([145,106,32,33,15,104,105,1,7]),import.meta.url)},{name:"events-blavity-fest-speaker-lineup",path:"/events/blavity-fest-speaker-lineup",meta:J3||{},component:()=>ae(()=>import("./Mm1F1PGU.js"),__vite__mapDeps([146,83,84,85,109,147]),import.meta.url)},{name:"health-medical-experts-profile-slug",path:"/health/medical-experts/profile/:slug()",meta:Z3||{},component:()=>ae(()=>import("./D1111Fbe.js"),__vite__mapDeps([148,66]),import.meta.url)},{name:"creator-collective-fellowship-application",path:"/creator-collective-fellowship-application",component:()=>ae(()=>import("./96JZ3uyW.js"),[],import.meta.url)},{name:Pu?.name,path:"/rss",component:Mu},{name:Pu?.name,path:"/politics",component:Mu},{name:Pu?.name,path:"/juneteenthcreators100",component:Mu},{name:Pu?.name,path:"/categories/news/health",component:Mu}],Px=(e,t)=>({default:()=>e?qt(Xd,e===!0?{}:e,t):t.default?.()}),Q3=/(:\w+)\([^)]+\)/g,e$=/(:\w+)[?+*]/g,t$=/:\w+/g;function rw(e){const t=e?.meta.key??e.path.replace(Q3,"$1").replace(e$,"$1").replace(t$,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function n$(e,t){return e===t||t===qn?!1:rw(e)!==rw(t)?!0:!e.matched.every((r,s)=>r.components&&r.components.default===t.matched[s]?.components?.default)}function sw(e){return Array.isArray(e)?e:[e]}function Mx(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?sw(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?sw(n.onBeforeLeave):void 0});return zk(...t)}const r$={scrollBehavior(e,t,n){const r=bt(),s=Yt().options?.scrollBehaviorType??"auto";return e.path.replace(/\/$/,"")===t.path.replace(/\/$/,"")?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Lx(e.hash),behavior:s}:!1:(typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===qn?iw(e,t,n,s):new Promise(o=>{const a=()=>{requestAnimationFrame(()=>o(iw(e,t,n,s)))};r.hooks.hookOnce("page:loading:end",()=>{const c=r["~transitionPromise"];c?c.then(a):a()})})}};function Lx(e){try{const t=document.querySelector(e);
4if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function iw(e,t,n,r){return n||(e.hash?{el:e.hash,top:Lx(e.hash),behavior:n$(e,t)?r:"instant"}:{left:0,top:0})}const s$={hashMode:!1,scrollBehaviorType:"auto"},$s={...s$,...r$},i$=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const s=([n,r]=Uc(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(s===!0)return;const i=Js({fatal:!0,status:s&&(s.status||s.statusCode)||404,statusText:s&&(s.statusText||s.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),i},o$=()=>{const e=bt();if(e.isHydrating&&e.payload.serverRendered)return;const t=Gt(),n=localStorage.getItem("vue-cookie-accept-decline-cookie-popup")==="accept",r={c1:"2",c2:t.public.COMSCORE_CLIENT_ID,options:{enableFirstPartyCookie:!0}};n&&(r.cs_ucfr="1"),self.COMSCORE&&COMSCORE.beacon(r)},a$=e=>{if(!e.query.token&&e.query.preview==="true"){const t=Gt(),n=e.query.p;return Bl(`${t.public.CMS_URL}/generate?redirect_uri=${t.public.HOST_URL}/preview?preview_id=${n}`,{external:!0})}},c$=e=>{const t=gx({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return li(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},l$=[i$,o$,a$,c$],Pm={};function u$(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const l=i.includes(e.slice(o))?e.slice(o).length:1;let u=i.slice(l);return u[0]!=="/"&&(u="/"+u),T0(u,"")}const a=T0(r,e),c=!n||Uk(a,n)?a:n;return c+(c.includes("?")?"":s)+i}const d$=rt({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=Gt().app.baseURL;const s=$s.history?.(r)??V5(r),i=$s.routes?([t,n]=Uc(()=>$s.routes(Hh)),t=await t,n(),t??Hh):Hh;let o;const a=f3({...$s,scrollBehavior:(y,v,m)=>{if(v===qn){o=m;return}if($s.scrollBehavior){if(a.options.scrollBehavior=$s.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return $s.scrollBehavior(y,qn,o||m)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const c=dr(a.currentRoute.value);a.afterEach((y,v)=>{c.value=v}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const l=u$(r,window.location,e.payload.path),u=dr(a.currentRoute.value),d=()=>{u.value=a.currentRoute.value};a.afterEach((y,v)=>{const m=y.matched.at(-1)?.components?.default,_=v.matched.at(-1)?.components?.default;if(m===_){d();return}y.matched.length<v.matched.length&&y.matched.every((w,x)=>w.components?.default===v.matched[x]?.components?.default)&&d()});const f={sync:d};for(const y in u.value)Object.defineProperty(f,y,{get:()=>u.value[y],enumerable:!0});e._route=Or(f),e._middleware||={global:[],named:{}};const p=Ip();a.afterEach(async(y,v,m)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(Zk),m&&await e.callHook("page:loading:end")});try{[t,n]=Uc(()=>a.isReady()),await t,n()}catch(y){[t,n]=Uc(()=>e.runWithContext(()=>Ri(y))),await t,n()}const h=l!==a.currentRoute.value.fullPath?a.resolve(l):a.currentRoute.value,g=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&l!==e.payload.path&&Uk(a.currentRoute.value.path,e.payload.path);d();const S=e.payload.state._layout;return a.beforeEach(async(y,v)=>{await e.callHook("page:loading:start"),y.meta=tr(y.meta),e.isHydrating&&S&&!Fr(y.meta.layout)&&(y.meta.layout=S),e._processingMiddleware=!0;{const m=new Set([...l$,...e._middleware.global]);for(const w of y.matched){const x=w.meta.middleware;if(x)for(const T of Ox(x))m.add(T)}const _=gx({path:y.path});if(_.appMiddleware)for(const w in _.appMiddleware)_.appMiddleware[w]?m.add(w):m.delete(w);for(const w of m){const x=typeof w=="string"?e._middleware.named[w]||await Pm[w]?.().then(T=>T.default||T):w;if(!x)throw new Error(`Unknown route middleware: '${w}'.`);try{const T=await e.runWithContext(()=>x(y,v));if(!e.payload.serverRendered&&e.isHydrating&&(T===!1||T instanceof Error)){const R=T||Js({status:404,statusText:`Page Not Found: ${l}`});return await e.runWithContext(()=>Ri(R)),!1}if(T===!0)continue;if(T===!1)return T;if(T)return Qk(T)&&T.fatal&&await e.runWithContext(()=>Ri(T)),T}catch(T){const R=Js(T);return R.fatal&&await e.runWithContext(()=>Ri(R)),R}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(y=>{if(y.matched.length===0&&!p.value)return e.runWithContext(()=>Ri(Js({status:404,fatal:!1,statusText:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{if("name"in h&&(h.name=void 0),g){const y=a.resolve(e.payload.path);"name"in y&&(y.name=void 0),await a.replace({...y,force:!0}),e.hooks.hookOnce("app:suspense:resolve",async()=>{await a.replace({...h,force:!0})})}else await a.replace({...h,force:!0});a.options.scrollBehavior=$s.scrollBehavior}catch(y){await e.runWithContext(()=>Ri(y))}}),{provide:{router:a}}}}),f$=rt({name:"uid2-early-init",enforce:"pre",setup(){const e=()=>{try{const n=document.cookie.match(/(?:^|; )uid2_hem256=([^;
4]+)/),r=document.cookie.match(/(?:^|; )uid2_uid2hash=([^;]+)/);if(n||r){const s=n?decodeURIComponent(n[1]):null,i=r?decodeURIComponent(r[1]):null;window.htlbid=window.htlbid||{},window.htlbid.cmd=window.htlbid.cmd||[],window.htlbid.cmd.push(function(){s&&typeof window.htlbid.setUserData=="function"&&window.htlbid.setUserData({hem256:s}),typeof window.htlbid.setTargeting=="function"&&(s&&window.htlbid.setTargeting("hem256",s),i&&window.htlbid.setTargeting("uid2",i))}),window.__uid2Data={hem256:s,uid2Hash:i,timestamp:Date.now()}}}catch{}};e();const t=new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const s of r.addedNodes)s.nodeName==="SCRIPT"&&s.src?.includes("htlbid")&&e()});t.observe(document.head,{childList:!0,subtree:!0}),t.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{t.disconnect()},3e4)}}),of=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),p$=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Cp=e=>{const t=bt();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{of(()=>e())}):of(()=>e())},h$=rt({name:"nuxt:payload",setup(e){const t=new Set;Yt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await U0(n.path);if(s){for(const i of t)delete e.static.data[i];for(const i in s.data)i in e.static.data||t.add(i),e.static.data[i]=s.data[i]}}),Cp(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await U0().catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(hx,1e3)})}}),g$=rt(()=>{const e=Yt();Cp(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),m$=rt(e=>{let t;async function n(){let r;try{r=await hx()}catch(s){const i=s;
4if(!("status"in i&&(i.status===404||i.status===403)))throw i}t&&clearTimeout(t),t=setTimeout(n,O0);try{const s=await $fetch(jy("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}Cp(()=>{t=setTimeout(n,O0)})});function _$(e={}){const t=e.path||window.location.pathname;let n={};try{n=ef(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:bt().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const y$=rt({name:"nuxt:chunk-reload",setup(e){const t=Yt(),n=Gt(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const o=Fy(n.app.baseURL,i.fullPath);_$({path:o,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}});let Nx;const ql=e=>Nx=e,Dx=Symbol();function ow(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var jc;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(jc||(jc={}));function v$(){const e=yy(!0),t=e.run(()=>Ae({}));let n=[],r=[];const s=ky({install(i){ql(s),s._a=i,i.provide(Dx,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const b$=()=>{};function aw(e,t,n,r=b$){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Fl()&&vy(s),s}function mo(e,...t){e.slice().forEach(n=>{n(...t)})}const w$=e=>e(),cw=Symbol(),jh=Symbol();function $x(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];ow(s)&&ow(r)&&e.hasOwnProperty(n)&&!gt(r)&&!Dr(r)?e[n]=$x(s,r):e[n]=r}return e}const{assign:Bs}=Object;function S$(e){return!!(gt(e)&&e.effect)}function E$(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let c;function l(){a||(n.state.value[e]=s?s():{});const u=AM(n.state.value[e]);return Bs(u,i,Object.keys(o||{}).reduce((d,f)=>(d[f]=ky(Ve(()=>{ql(n);const p=n._s.get(e);return o[f].call(p,p)})),d),{}))}return c=T$(e,l,t,n,r,!0),c}function T$(e,t,n={},r,s,i){let o;const a=Bs({actions:{}},n),c={deep:!0};let l,u,d=[],f=[],p;const h=r.state.value[e];let g;function S(R){let k;l=u=!1,typeof R=="function"?(R(r.state.value[e]),k={type:jc.patchFunction,storeId:e,events:p}):($x(r.state.value[e],R),k={type:jc.patchObject,payload:R,storeId:e,events:p});const C=g=Symbol();Jn().then(()=>{g===C&&(l=!0)}),u=!0,mo(d,k,r.state.value[e])}const y=function(){const{state:k}=n,C=k?k():{};this.$patch(M=>{Bs(M,C)})};function v(){o.stop(),d=[],f=[],r._s.delete(e)}const m=(R,k="")=>{if(cw in R)return R[jh]=k,R;const C=function(){ql(r);const M=Array.from(arguments),b=[],E=[];function I(N){b.push(N)}function A(N){E.push(N)}mo(f,{args:M,name:C[jh],store:w,after:I,onError:A});let $;try{$=R.apply(this&&this.$id===e?this:w,M)}catch(N){throw mo(E,N),N}return $ instanceof Promise?$.then(N=>(mo(b,N),N)).catch(N=>(mo(E,N),Promise.reject(N))):(mo(b,$),$)};return C[cw]=!0,C[jh]=k,C},_={_p:r,$id:e,$onAction:aw.bind(null,f),$patch:S,$reset:y,$subscribe(R,k={}){const C=aw(d,R,k.detached,()=>M()),M=o.run(()=>rn(()=>r.state.value[e],b=>{(k.flush==="sync"?u:l)&&R({storeId:e,type:jc.direct,events:p},b)},Bs({},c,k)));return C},$dispose:v},w=tr(_);r._s.set(e,w);const T=(r._a&&r._a.runWithContext||w$)(()=>r._e.run(()=>(o=yy()).run(()=>t({action:m}))));for(const R in T){const k=T[R];if(!(gt(k)&&!S$(k)||Dr(k))){if(typeof k=="function"){const C=m(k,R);T[R]=C,a.actions[R]=k}}}return Bs(w,T),Bs(Ke(w),T),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:R=>{S(k=>{Bs(k,R)})}}),r._p.forEach(R=>{Bs(w,o.run(()=>R({store:w,app:r._a,pinia:r,options:a})))}),h&&i&&n.hydrate&&n.hydrate(w.$state,h),l=!0,u=!0,w}function Bre(e,t,n){let r,s;typeof e=="string"?(r=e,s=t):(s=e,r=e.id);function i(o,a){const c=Hl();return o=o||(c?Ut(Dx,null):null),o&&ql(o),o=Nx,o._s.has(r)||E$(r,s,o),o._s.get(r)}return i.$id=r,i}function Mm(e){return typeof e=="string"?`'${e}'`:new k$().serialize(e)}
4const k$=(function(){class e{#e=new Map;compare(n,r){const s=typeof n,i=typeof r;return s==="string"&&i==="string"?n.localeCompare(r):s==="number"&&i==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const o=n.toJSON();return i+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,r){const s=this["$"+n];if(s)return s.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const s=Array.from(r).sort((o,a)=>this.compare(o[0],a[0]));let i=`${n}{`;for(let o=0;o<s.length;o++){const[a,c]=s[o];i+=`${this.serialize(a,!0)}:${this.serialize(c)}`,o<s.length-1&&(i+=",")}return i+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let s=0;s<n.length;s++)r+=this.serialize(n[s]),s<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,s)=>this.compare(r,s)))}`}
4$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function qre(e,t){return e===t||Mm(e)===Mm(t)}const x$=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],I$=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],R$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bi=[];let C$=class{_data=new Lu;_hash=new Lu([...x$]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],a=r[3],c=r[4],l=r[5],u=r[6],d=r[7];for(let f=0;f<64;f++){if(f<16)bi[f]=t[n+f]|0;else{const m=bi[f-15],_=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,w=bi[f-2],x=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;bi[f]=_+bi[f-7]+x+bi[f-16]}const p=c&l^~c&u,h=s&i^s&o^i&o,g=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),S=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),y=d+S+p+I$[f]+bi[f],v=g+h;d=u,u=l,l=c,c=a+y|0,a=o,o=i,i=s,s=y+v|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+u|0,r[7]=r[7]+d|0}_append(t){typeof t=="string"&&(t=Lu.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let n,r=this._data.sigBytes/64;t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*16,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=16)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new Lu(n,i)}},Lu=class Fx{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),r=n.length,s=[];for(let i=0;i<r;i++)s[i>>>2]|=(n.charCodeAt(i)&255)<<24-i%4*8;return new Fx(s,r)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const r=this.words[n>>>2]>>>24-n%4*8&255,s=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,i=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,o=r<<16|s<<8|i;for(let a=0;a<4&&n*8+a*6<this.sigBytes*8;a++)t.push(R$.charAt(o>>>6*(3-a)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}};function A$(e){return new C$().finalize(e).toBase64()}function Co(e){return A$(Mm(e))}const O$={trailing:!0};function P$(e,t=25,n={}){if(n={...O$,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,s,i=[],o,a;const c=(d,f)=>(o=M$(e,d,f),o.finally(()=>{if(o=null,n.trailing&&a&&!s){const p=c(d,a);return a=null,p}}),o),l=function(...d){return n.trailing&&(a=d),o||new Promise(f=>{const p=!s&&n.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const h=n.leading?r:c(this,d);a=null;for(const g of i)g(h);i=[]},t),p?(r=c(this,d),f(r)):i.push(f)})},u=d=>{d&&(clearTimeout(d),s=null)};return l.isPending=()=>!!s,l.cancel=()=>{u(s),i=[],a=null},l.flush=()=>
4{if(u(s),!a||o)return;const d=a;return a=null,c(this,d)},l}async function M$(e,t,n){return await e.apply(t,n)}const Ux=Symbol.for("nuxt:client-only"),Vre=Un({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=dr(!1);ci(()=>{r.value=!0});const s=Zn();return s&&(s._nuxtClientOnly=!0),gs(Ux,!0),()=>{if(r.value){const c=t.default?.();return c&&c.length===1?[Ur(c[0],n)]:c}const i=t.fallback||t.placeholder;if(i)return qt(i);const o=e.fallback||e.placeholder||"",a=e.fallbackTag||e.placeholderTag||"span";return Oe(a,n,o)}}}),L$=e=>e==="defer"||e===!1;function N$(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;D$(e[0],e[1])&&e.unshift(t);let[n,r,s={}]=e,i=!1;const o=Ve(()=>Ir(n));if(typeof o.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const a=bt();s.server??=!0,s.default??=F$,s.getCachedData??=jx,s.lazy??=!1,s.immediate??=!0,s.deep??=us.deep,s.dedupe??="cancel",s._functionName,a._asyncData[o.value];function c(){const h={cause:"initial",dedupe:s.dedupe};return a._asyncData[o.value]?._init||(h.cachedData=s.getCachedData(o.value,a,{cause:"initial"}),a._asyncData[o.value]=lw(a,o.value,r,s,h.cachedData)),()=>a._asyncData[o.value].execute(h)}const l=c(),u=a._asyncData[o.value];u._deps++;const d=s.server!==!1&&a.payload.serverRendered;{let h=function(_){const w=a._asyncData[_];w?._deps&&(w._deps--,w._deps===0&&w?._off())};const g=Zn();if(g&&d&&s.immediate&&!g.sp&&(g.sp=[]),g&&!g._nuxtOnBeforeMountCbs){g._nuxtOnBeforeMountCbs=[];const _=g._nuxtOnBeforeMountCbs;GT(()=>{_.forEach(w=>{w()}),_.splice(0,_.length)}),Da(()=>_.splice(0,_.length))}const S=g&&(g._nuxtClientOnly||Ut(Ux,!1));d&&a.isHydrating&&(u.error.value||u.data.value!=null)?(u.pending.value=!1,u.status.value=u.error.value?"error":"success"):g&&(!S&&a.payload.serverRendered&&a.isHydrating||s.lazy)&&s.immediate?g._nuxtOnBeforeMountCbs.push(l):s.immediate&&l();const y=Fl(),v=rn(o,(_,w)=>{if((_||w)&&_!==w){i=!0;const x=a._asyncData[w]?.data.value!==us.value,T=a._asyncDataPromises[w]!==void 0,R={cause:"initial",dedupe:s.dedupe};if(!a._asyncData[_]?._init){let k;w&&x?k=a._asyncData[w].data.value:(k=s.getCachedData(_,a,{cause:"initial"}),R.cachedData=k),a._asyncData[_]=lw(a,_,r,s,k)}a._asyncData[_]._deps++,w&&h(w),(s.immediate||x||T)&&a._asyncData[_].execute(R),il(()=>{i=!1})}},{flush:"sync"}),m=s.watch?rn(s.watch,()=>{i||(a._asyncData[o.value]?._execute.isPending()&&il(()=>{a._asyncData[o.value]?._execute.flush()}),a._asyncData[o.value]?._execute({cause:"watch",dedupe:s.dedupe}))}):()=>{};y&&vy(()=>{v(),m(),h(o.value)})}const f={data:Nu(()=>a._asyncData[o.value]?.data),pending:Nu(()=>a._asyncData[o.value]?.pending),status:Nu(()=>a._asyncData[o.value]?.status),error:Nu(()=>a._asyncData[o.value]?.error),refresh:(...h)=>a._asyncData[o.value]?._init?a._asyncData[o.value].execute(...h):c()(),execute:(...h)=>f.refresh(...h),clear:()=>{const h=a._asyncData[o.value];if(h?._abortController)try{h._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{h._abortController=void 0}Hx(a,o.value)}},p=Promise.resolve(a._asyncDataPromises[o.value]).then(()=>f);return Object.assign(p,f),Object.defineProperties(p,{then:{enumerable:!0,value:p.then.bind(p)},catch:{enumerable:!0,value:p.catch.bind(p)},finally:{enumerable:!0,value:p.finally.bind(p)}}),p}function Nu(e){return Ve({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function D$(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function Hx(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=us.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=us.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function $$(e,t){const n={};for(const r of t)n[r]=e[r];return n}
4function lw(e,t,n,r,s){e.payload._errors[t]??=us.errorValue;const i=r.getCachedData!==jx,o=n,a=r.deep?Ae:dr,c=s!=null,l=e.hook("app:data:refresh",async d=>{(!d||d.includes(t))&&await u.execute({cause:"refresh:hook"})}),u={data:a(c?s:r.default()),pending:dr(!c),error:OT(e.payload._errors,t),status:dr("idle"),execute:(...d)=>{const[f,p=void 0]=d,h=f&&p===void 0&&typeof f=="object"?f:{};if(e._asyncDataPromises[t]&&L$(h.dedupe??r.dedupe))return e._asyncDataPromises[t];if(h.cause==="initial"||e.isHydrating){const y="cachedData"in h?h.cachedData:r.getCachedData(t,e,{cause:h.cause??"refresh:manual"});if(y!=null)return e.payload.data[t]=u.data.value=y,u.error.value=us.errorValue,u.status.value="success",Promise.resolve(y)}u.pending.value=!0,u._abortController&&u._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),u._abortController=new AbortController,u.status.value="pending";const g=new AbortController,S=new Promise((y,v)=>{try{const m=h.timeout??r.timeout,_=U$([u._abortController?.signal,h?.signal],g.signal,m);if(_.aborted){const w=_.reason;v(w instanceof Error?w:new DOMException(String(w??"Aborted"),"AbortError"));return}return _.addEventListener("abort",()=>{const w=_.reason;v(w instanceof Error?w:new DOMException(String(w??"Aborted"),"AbortError"))},{once:!0,signal:g.signal}),Promise.resolve(o(e,{signal:_})).then(y,v)}catch(m){v(m)}}).then(async y=>{if(e._asyncDataPromises[t]!==S)return;let v=y;r.transform&&(v=await r.transform(y)),r.pick&&(v=$$(v,r.pick)),e.payload.data[t]=v,u.data.value=v,u.error.value=us.errorValue,u.status.value="success"}).catch(y=>{if(e._asyncDataPromises[t]!==S||u._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<"u"&&y instanceof DOMException&&y.name==="AbortError")return u.status.value="idle",e._asyncDataPromises[t];u.error.value=Js(y),u.data.value=ye(r.default()),u.status.value="error"}).finally(()=>{g.abort(),e._asyncDataPromises[t]===S&&(u.pending.value=!1,delete e._asyncDataPromises[t])});return e._asyncDataPromises[t]=S,e._asyncDataPromises[t]},_execute:P$((...d)=>u.execute(...d),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),i||Jn(()=>{e._asyncData[t]?._init||(Hx(e,t),u.execute=()=>Promise.resolve(),u.data.value=us.value)})}};return u}const F$=()=>us.value,jx=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]};function U$(e,t,n){const r=e.filter(o=>!!o);if(typeof n=="number"&&n>=0){const o=AbortSignal.timeout?.(n);o&&r.push(o)}if(AbortSignal.any)return AbortSignal.any(r);const s=new AbortController;for(const o of r)if(o.aborted){const a=o.reason??new DOMException("Aborted","AbortError");try{s.abort(a)}catch{s.abort()}return s.signal}const i=()=>{const a=r.find(c=>c.aborted)?.reason??new DOMException("Aborted","AbortError");try{s.abort(a)}catch{s.abort()}};for(const o of r)o.addEventListener?.("abort",i,{once:!0,signal:t});return s.signal}function af(e,t,n){const[r={},s]=typeof t=="string"?[{},t]:[t,n],i=Ve(()=>Ir(e)),o=Ve(()=>Ir(r.key)||"$f"+Co([s,typeof i.value=="string"?i.value:"",...H$(r)]));if(!r.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:a,lazy:c,default:l,transform:u,pick:d,watch:f,immediate:p,getCachedData:h,deep:g,dedupe:S,timeout:y,...v}=r,m=tr({...FN,...v,cache:typeof r.cache=="boolean"?void 0:r.cache}),_={server:a,lazy:c,default:l,transform:u,pick:d,immediate:p,getCachedData:h,deep:g,dedupe:S,timeout:y,watch:f===!1?[]:[...f||[],m]};if(!p){let x=function(){_.immediate=!0};rn(o,x,{flush:"sync",once:!0}),rn([...f||[],m],x,{flush:"sync",once:!0})}return N$(f===!1?o.value:o,(x,{signal:T})=>(r.$fetch||globalThis.$fetch)(i.value,{signal:T,...m}),_)}function H$(e){const t=[Ir(e.method)?.toUpperCase()||"GET",Ir(e.baseURL)];for(const n of[e.query||e.params]){const r=Ir(n);if(!r)continue;const s={};for(const[i,o]of Object.entries(r))s[Ir(i)]=Ir(o);t.push(s)}if(e.body){const n=Ir(e.body);if(!n)t.push(Co(n));else if(n instanceof ArrayBuffer)t.push(Co(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,s])=>[r,s.toString()]))));else if(n instanceof FormData){const r=[];for(const s of n.entries()){const[i,o]=s;r.push([i,o instanceof File?`${o.name}:${o.size}:${o.lastModified}`:o])}t.push(Co(r))}else if(_y(n))t.push(Co(tr(n)));else try{t.push(Co(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}function j$(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function Bx(e,t=Yt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>Bx(e,t));t._routePreloaded.add(n);for(const i of r){const o=i.components?.default;if(typeof o!="function")continue;const a=Promise.resolve(o()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a),1));s.push(a)}await Promise.all(s)}const B$=(...e)=>e.find(t=>t!==void 0);function q$(e){const t=e.componentName||"NuxtLink";function n(i){return typeof i=="string"&&i.startsWith("#")}function r(i,o,a){const c=a??e.trailingSlash;if(!i||c!=="append"&&c!=="remove")return i;if(typeof i=="string")return Du(i,c);const l="path"in i&&i.path!==void 0?i.path:o(i).path;return{...i,name:void 0,path:Du(l,c)}}function s(i){const o=Yt(),a=Gt(),c=Ve(()=>!!ye(i.target)&&ye(i.target)!=="_self"),l=Ve(()=>{const S=ye(i.to)||ye(i.href)||"";return typeof S=="string"&&li(S,{acceptRelative:!0})}),u=Yb("RouterLink"),d=u&&typeof u!="string"?u.useLink:void 0,f=Ve(()=>{if(ye(i.external))return!0;const S=ye(i.to)||ye(i.href)||"";return typeof S=="object"?!1:S===""||l.value}),p=Ve(()=>{const S=ye(i.to)||ye(i.href)||"";return f.value?S:r(S,o.resolve,ye(i.trailingSlash))}),h=f.value?void 0:d?.({...i,to:p,viewTransition:ye(i.viewTransition)}),g=Ve(()=>{const S=ye(i.trailingSlash)??e.trailingSlash;if(!p.value||l.value||n(p.value))return p.value;if(f.value){const y=typeof p.value=="object"&&"path"in p.value?vm(p.value):p.value,v=typeof y=="object"?o.resolve(y).href:y;return Du(v,S)}return typeof p.value=="object"?o.resolve(p.value)?.href??null:Du(Fy(a.app.baseURL,p.value),S)});
4return{to:p,hasTarget:c,isAbsoluteUrl:l,isExternal:f,href:g,isActive:h?.isActive??Ve(()=>p.value===o.currentRoute.value.path),isExactActive:h?.isExactActive??Ve(()=>p.value===o.currentRoute.value.path),route:h?.route??Ve(()=>o.resolve(p.value)),async navigate(S){await Bl(g.value,{replace:ye(i.replace),external:f.value||c.value})}}}return Un({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(i,{slots:o}){const a=Yt(),{to:c,href:l,navigate:u,isExternal:d,hasTarget:f,isAbsoluteUrl:p}=s(i),h=dr(!1),g=Ae(null),S=m=>{g.value=i.custom?m?.$el?.nextElementSibling:m?.$el};function y(m){return!h.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===m:i.prefetchOn?.[m]??e.prefetchOn?.[m])&&(i.prefetch??e.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!z$()}async function v(m=bt()){if(h.value)return;h.value=!0;const _=typeof c.value=="string"?c.value:d.value?vm(c.value):a.resolve(c.value).fullPath,w=d.value?new URL(_,window.location.href).href:_;await Promise.all([m.hooks.callHook("link:prefetch",w).catch(()=>{}),!d.value&&!f.value&&Bx(c.value,a).catch(()=>{})])}if(y("visibility")){const m=bt();let _,w=null;ci(()=>{const x=W$();Cp(()=>{_=of(()=>{g?.value?.tagName&&(w=x.observe(g.value,async()=>{w?.(),w=null,await v(m)}))})})}),Na(()=>{_&&p$(_),w?.(),w=null})}return()=>{if(!d.value&&!f.value&&!n(c.value)){const w={ref:S,to:c.value,activeClass:i.activeClass||e.activeClass,exactActiveClass:i.exactActiveClass||e.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};
4return i.custom||(y("interaction")&&(w.onPointerenter=v.bind(null,void 0),w.onFocus=v.bind(null,void 0)),h.value&&(w.class=i.prefetchedClass||e.prefetchedClass),w.rel=i.rel||void 0),qt(Yb("RouterLink"),w,o.default)}const m=i.target||null,_=B$(i.noRel?"":i.rel,e.externalRelAttribute,p.value||f.value?"noopener noreferrer":"")||null;return i.custom?o.default?o.default({href:l.value,navigate:u,prefetch:v,get route(){if(!l.value)return;const w=new URL(l.value,window.location.href);return{path:w.pathname,fullPath:w.pathname,get query(){return $y(w.search)},hash:w.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:_,target:m,isExternal:d.value||f.value,isActive:!1,isExactActive:!1}):null:qt("a",{ref:g,href:l.value||null,rel:_,target:m,onClick:async w=>{if(!(d.value||f.value)){w.preventDefault();try{const x=Xk(l.value);return await(i.replace?a.replace(x):a.push(x))}finally{if(n(c.value)){const x=c.value.slice(1);let T=x;try{T=decodeURIComponent(x)}catch{}document.getElementById(T)?.focus()}}}}},o.default?.())}}})}const Wl=q$(DN);function Du(e,t){const n=t==="append"?Nk:fl;return li(e)&&!e.startsWith("http")?e:n(e,!0)}function W$(){const e=bt();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,o)=>(t||=new IntersectionObserver(a=>{for(const c of a){const l=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&l&&l()}}),n.set(i,o),t.observe(i),()=>{n.delete(i),t?.unobserve(i),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const V$=/2g/;function z$(){const e=navigator.connection;return!!(e&&(e.saveData||V$.test(e.effectiveType)))}const G$=rt(e=>{const t=v$();return e.vueApp.use(t),ql(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),K$=rt({name:"nuxt:global-components"}),Ys={article:gi(()=>ae(()=>import("./CJ3H5c8R.js"),__vite__mapDeps([149,150]),import.meta.url).then(e=>e.default||e)),default:gi(()=>ae(()=>import("./BknEPQof.js"),__vite__mapDeps([151,150]),import.meta.url).then(e=>e.default||e)),empty:gi(()=>ae(()=>import("./BAE5e38H.js"),[],import.meta.url).then(e=>e.default||e)),health:gi(()=>ae(()=>import("./DCOGyUgi.js"),[],import.meta.url).then(e=>e.default||e)),noad:gi(()=>ae(()=>import("./Bu_mJkhd.js"),__vite__mapDeps([152,150]),import.meta.url).then(e=>e.default||e)),shadowandact:gi(()=>ae(()=>import("./DENUflOe.js"),__vite__mapDeps([153,150,154]),import.meta.url).then(e=>e.default||e)),twentyoneninety:gi(()=>ae(()=>import("./D3RfVsfa.js"),[],import.meta.url).then(e=>e.default||e))},Y$=rt({name:"nuxt:prefetch",setup(e){const t=Yt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Ys[r]=="function"&&await Ys[r]()})}),e.hooks.hook("link:prefetch",n=>{if(li(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=Ox(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof Pm[o]=="function"&&Pm[o]();typeof s=="string"&&s in Ys&&j$(Ys[s])})}}),X$=rt(()=>({provide:{pwaIcons:{transparent:{},maskable:{},favicon:{},apple:{},appleSplashScreen:{}}}}));var uw=/^GTM-[0-9A-Z]+$/;function Bh(e){if(typeof e!="string"||!uw.test(e)){let t=String(e).toUpperCase().replace(/.*-|[^0-9A-Z]/g,""),n=t.length===0?"":` Did you mean 'GTM-${t}'?`;throw new Error(`'${e}' is not a valid GTM-ID (${uw}).${n}`)}}function Sc(e,t="dataLayer"){return e[t]||(e[t]=[]),e[t]}function ta(e,t){let n=document,r=n.createElement("script"),s=l=>{t.onReady?.({id:e,script:r}),r.removeEventListener("load",s)};r.addEventListener("load",s);let i=t.dataLayerName??"dataLayer";if(Sc(window,i).push({event:"gtm.js","gtm.start":new Date().getTime()}),!e)return r;r.async=!t.defer,r.defer=!!(t.defer||t.compatibility),t.nonce&&r.setAttribute("nonce",t.nonce),t.scriptType&&(r.type=t.scriptType);let o=new URLSearchParams({id:e,...t.dataLayerName?{l:t.dataLayerName}:{},...t.queryParams??{}}),a=t.source??"https://www.googletagmanager.com/gtm.js";r.src=`${a}?${o}`;let c=t.parentElement??n.body;if(typeof c?.appendChild!="function")throw new Error("parentElement must be a DOM element");return c.appendChild(r),r}function J$(e="https://www.googletagmanager.com/gtm.js"){return Array.from(document.getElementsByTagName("script")).some(t=>t.src.includes(e))}var Z$=class{id;options;scriptElements=[];constructor(t){if(Array.isArray(t.id))for(let n of t.id)Bh(typeof n=="string"?n:n.id);else Bh(t.id);this.id=t.id,this.options={enabled:!0,debug:!1,loadScript:!0,defer:!1,compatibility:!1,dataLayerName:"dataLayer",...t},delete this.options.id}isInBrowserContext=()=>typeof window<"u";enabled(){return this.options.enabled??!0}
4enable(t=!0,n){if(this.options.enabled=t,this.isInBrowserContext()&&t&&!J$(n)&&this.options.loadScript)if(Array.isArray(this.id))this.id.forEach(r=>{let s;typeof r=="string"?s=ta(r,{...this.options}):s=ta(r.id,{...this.options,queryParams:r.queryParams}),this.scriptElements.push(s)});else{let r=ta(this.id,{...this.options});this.scriptElements.push(r)}}debugEnabled(){return this.options.debug??!1}debug(t){this.options.debug=t}dataLayer(){return this.isInBrowserContext()&&this.options.enabled?Sc(window,this.options.dataLayerName):!1}trackView(t,n,r={}){let s=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${s?"":"(disabled)"}]: Dispatching TrackView`,{screenName:t,path:n}),s&&Sc(window,this.options.dataLayerName).push({...r,event:this.options.trackViewEventProperty??"content-view","content-name":n,"content-view-name":t})}trackEvent({event:t,category:n=null,action:r=null,label:s=null,value:i=null,noninteraction:o=!1,...a}={}){let c=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${c?"":"(disabled)"}]: Dispatching event`,{event:t,category:n,action:r,label:s,value:i,...a}),c&&Sc(window,this.options.dataLayerName).push({event:t??"interaction",target:n,action:r,"target-properties":s,value:i,"interaction-type":o,...a})}push(t){let n=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${n?"":"(disabled)"}]: Dispatching event`,t),n&&Sc(window,this.options.dataLayerName).push(t)}},cs;function Q$(e,t={id:""}){t={trackOnNextTick:!1,...t},cs=new Z$(t),e.config.globalProperties.$gtm=cs,cs.isInBrowserContext()&&(t.vueRouter&&eF(e,t.vueRouter,t.ignoredViews,t.trackOnNextTick,t.vueRouterAdditionalEventData),cs.options.enabled&&cs.options.loadScript&&(Array.isArray(t.id)?t.id.forEach(n=>{if(typeof n=="string")ta(n,t);else{let r={...t};n.queryParams!=null&&(r.queryParams={...r.queryParams,...n.queryParams}),ta(n.id,r)}}):ta(t.id,t))),e.provide("gtm",t)}function eF(e,t,n=[],r,s=()=>({})){function i(o,a){return o instanceof Error?!!(o.type&a):!1}t.afterEach(async(o,a,c)=>{if(typeof o.name!="string"||Array.isArray(n)&&n.includes(o.name)||typeof n=="function"&&n(o,a))return;let l=o.meta&&typeof o.meta.gtm=="string"&&o.meta.gtm?o.meta.gtm:o.name;i(c,4)?cs?.debugEnabled()&&console.log(`[VueGtm]: '${l}' not tracked due to navigation aborted`):i(c,8)&&cs?.debugEnabled()&&console.log(`[VueGtm]: '${l}' not tracked due to navigation cancelled`);let u={...await s(o,a),...o.meta?.gtmAdditionalEventData},d=t.options?.history?.base??"";d.endsWith("/")||(d+="/"),d+=o.fullPath.startsWith("/")?o.fullPath.substring(1):o.fullPath,r?Jn(()=>{cs?.trackView(l,d,u)}):cs?.trackView(l,d,u)})}function tF(e){return{install:t=>Q$(t,e)}}const nF=rt(e=>{{const t=e.$config.public.gtm,n=Yt(),r={...t,vueRouter:t.enableRouterSync&&n?n:void 0};e.vueApp.use(tF(r))}}),rF=50;function sF(e){if(!e)return!1;const t=e.querySelector("iframe");if(!t)return!1;const{height:n,width:r}=t.getBoundingClientRect(),s=n||t.offsetHeight,i=r||t.offsetWidth;return s>=rF&&i>1}const qx='.htl-ad, [class*="htlad-in_"], .injected-container';function iF(e){return e.classList.contains("htl-ad")||e.classList.contains("injected-container")||Array.from(e.classList).some(t=>t.startsWith("htlad-in_"))}function Wx(e){const t=[];return e instanceof HTMLElement&&e.classList.contains("article-body")&&t.push(e),e.querySelectorAll(".article-body").forEach(n=>t.push(n)),t.flatMap(n=>Array.from(n.querySelectorAll(qx)))}function oF(e,t={}){const n=t.collapseContainersWithoutIframe??!1;if(e.classList.remove("htl-ad-slot--empty"),!e.querySelector("iframe")){n&&e.classList.add("htl-ad-slot--empty");return}sF(e)||e.classList.add("htl-ad-slot--empty")}function Lm(e=document,t={}){Wx(e).forEach(n=>{oF(n,t)})}function Gre(e,t={}){const n=()=>Lm(e,{collapseContainersWithoutIframe:!1}),r=()=>Lm(e,{collapseContainersWithoutIframe:t.collapseContainersWithoutIframe??!0}),s=l=>{l.addEventListener("load",n),o.observe(l)},i=l=>{o.observe(l),l.querySelectorAll("iframe").forEach(u=>s(u))},o=new ResizeObserver(()=>n());n();const a=[500,1500,5e3].map(l=>setTimeout(r,l));Wx(e).forEach(i);const c=new MutationObserver(l=>{n();
4for(const u of l)u.addedNodes.forEach(d=>{d instanceof HTMLElement&&(iF(d)&&i(d),d.querySelectorAll(qx).forEach(i),d.tagName==="IFRAME"&&s(d),d.querySelectorAll("iframe").forEach(f=>s(f)))})});return c.observe(e,{childList:!0,subtree:!0}),()=>{a.forEach(l=>clearTimeout(l)),o.disconnect(),c.disconnect()}}function Kre(e){return e?"article-ad-slot":"article-ad-slot hidden"}function aF(e){e.htlbid?.finalize?.(),Lm(document,{collapseContainersWithoutIframe:!0})}const cF=rt(()=>{if(typeof window<"u"){setTimeout(()=>{try{aF(window)}catch{}},5e3);const t=()=>{try{window.htlbid?.layout&&window.htlbid.layout()}catch{}};"requestIdleCallback"in window?of(t,{timeout:2e3}):setTimeout(t,2e3)}}),lF=rt(()=>{const e=()=>{try{const t=document.createElement("script");t.setAttribute("async",""),t.setAttribute("id","egveWuW"),t.setAttribute("data-sdk","l/1.1.34"),t.setAttribute("data-cfasync","false"),t.setAttribute("nowprocket",""),t.setAttribute("src","https://html-load.com/sdk.js"),t.setAttribute("charset","UTF-8"),t.setAttribute("onload","(async()=>{var e,t,r,a,o,n,i,s,l=function(a,o){for(e=o||a.length,t='',r=0;r<e;r++)t+=a[1867*(r+174)%e];return t},d=l('eaKmwetl nebg caeriellT aa oe l s oamheO l Pkrron.iehpdgc .aopetrs '),c=l('BGbrQDoi?eI&r=lWQJJ2Z%&mnendeoV0wVIsNW3da=vt=rrmYg'),h=l('oaeeo-//o:orp..trrlppdrrmr/mrscetttho'),m=l('riPmeos'),w=l('r&trpmtllrsorrtag=/-.ppetteeor=_upro/?oil:rteydhh/rcoe'),g=l('ao_aealldmsddo_'),f=l('7eei04hx-:6;izp3wf;o8v:ht40nv;70o0041i0:1:t1t2hi:f:tstexdohleipg;dw;idn;'),p=l('eeoor-rlroe-crpsrt'),u=l('ear sbiolislponieeactdrdee l tywFpo '),y=l('tPeosn slii.al adea tel w ');try{a=e=>{try{confirm(d)?S.href=o+'?url='+i(S.href)+'&error='+i(e)+'&domain='+n:S.reload()}catch(t){location.href=o+c+n}},o=h,n='html-load.com',i=btoa;const e=window,t=e[m],r=document,l=e=>new t((t=>{const r=.1*e,a=e+Math.floor(2*Math.random()*r)-r;setTimeout(t,a)})),_=e.addEventListener.bind(e),v=e.postMessage.bind(e),b='message',S=location,I=Math.random,M=clearInterval,T='setAttribute';s=async e=>{try{localStorage.setItem(S.host+'_fa_'+i('last_bfa_at'),Date.now().toString())}catch(m){}setInterval((()=>{r.body&&(r.body.remove(),r.body.innerHTML='')}),100);const s=await fetch(w+i(S.href)+'&error='+i(e)+'&request_id='+i(Math.random().toString().slice(2)),{method:'POST'}).then((e=>e.text())),l=new t((e=>{_('message',(t=>{t.data===g&&e()}))}));let d=r.createElement('iframe');d.src=o+'?url='+i(S.href)+'&eventId='+s+'&error='+i(e)+'&domain='+n,d[T]('style',f);const c=e=>{p===e.data&&(d.remove(),removeEventListener('message',c))};_('message',c),r.documentElement.appendChild(d);const h=setInterval((()=>{if(!r.contains(d))return M(h);(()=>{const e=d.getBoundingClientRect();return'none'!==getComputedStyle(d).display&&0!==e.width&&0!==e.height})()||(M(h),a(e))}),1e3);await new t(((t,r)=>{l.then(t),setTimeout((()=>r(e)),3e3)}))};const E=()=>new t(((e,t)=>{let r=I().toString(),a=I().toString();_(b,(e=>e.data===r&&v(a,'*'))),_(b,(t=>t.data===a&&e())),v(r,'*')})),P=async()=>{try{let e=!1;const t=I().toString();if(_(b,(r=>{r.data===t+'_as_res'&&(e=!0)})),v(t+'_as_req','*'),await E(),await l(500),e)return!0}catch(e){}return!1},x=[100,500,1e3],C=i('_bfa_message'+location.hostname);for(let a=0;a<=x.length&&!await P();a++){if(window[C])throw window[C];if(a===x.length-1)throw u+n+y+n;await l(x[a])}}catch(_){try{await s(_)}catch(v){a(_)}}})();"),t.setAttribute("onerror","(async()=>{var e,t,r,o,a,n,i,s,l=function(o,a){for(e=a||o.length,t='',r=0;r<e;r++)t+=o[1867*(r+935)%e];return t},c=l('etl nebg caeriellT aa oe l s oamheO l Pkrron.iehpdgc .aopetrs eaKmw'),d=l('=lWQJJ2Z%&mnendeoV0wVIsNW3da=vt=rrmYgBGbrQDoi?eI&r'),h=l('..trrlppdrrmr/mrscettthooaeeo-//o:orp'),m=l('meosriP'),u=l('Wci52YiJWczJWIi5mci1Wdu5WImQWbt1WZ=5SbjFWZt5mZjx2L0xiMoxmX0NiLsxCa0RiYuQ2OsRzW0I2bkRXb09mbv9Cav5XdvQQZv5Cbv5HZmwiYu0GLlEyLs02LlQCLuI2dtJTYjNGYx=WbjJ2YuR'),v=l('ierdeLtedvtsnaEn'),p=l('llrsorrtag=/-.ppetteeor=_upro/?oil:rteydhh/rcoer&trpmt'),g=l('o_ao_aealldmsdd'),w=l('ipg;dw;idn;7eei04hx-:6;izp3wf;o8v:ht40nv;70o0041i0:1:t1t2hi:f:tstexdohle'),b=l('lroe-crpsrteeoor-r'),f=l('wFpo ear sbiolislponieeactdrdee l ty'),_=l('io.al ldea bel w kPeosc sl'),y=l('caa/xtprsvjteti');try{o=e=>{try{confirm(c)?E.href=a+'?url='+i(E.href)+'&error='+i(e)+'&domain='+n:E.reload()}catch(t){location.href=a+d+n}},a=h,n='html-load.com',i=btoa;const e=window,t=document,r=e[m],l=JSON.parse(atob(u)),W=v,L='setAttribute',I='getAttribute',E=location,x='attributes',C=clearInterval,S='as_retry',J=E.hostname,Q=e.addEventListener.bind(e),T='__sa_'+window.btoa(window.location.href),Y=()=>{const t=e=>{let t=0;for(let r=0,o=e.length;r<o;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return t},r=Date.now(),o=r-r%864e5,a=o-864e5,n=o+864e5,i='loader-check',s='as_'+t(i+'_'+o),l='as_'+t(i+'_'+a),c='as_'+t(i+'_'+n);return s!==l&&s!==c&&l!==c&&!!(e[s]||e[l]||e[c])};if(s=async e=>{try{localStorage.setItem(E.host+'_fa_'+i('last_bfa_at'),Date.now().toString())}catch(m){}setInterval((()=>{t.body&&(t.body.remove(),t.body.innerHTML='')}),100);const s=await fetch(p+i(E.href)+'&error='+i(e)+'&request_id='+i(Math.random().toString().slice(2)),{method:'POST'}).then((e=>e.text())),l=new r((e=>{Q('message',(t=>{t.data===g&&e()}))}));let c=t.createElement('iframe');c.src=a+'?url='+i(E.href)+'&eventId='+s+'&error='+i(e)+'&domain='+n,c[L]('style',w
4);const d=e=>{b===e.data&&(c.remove(),removeEventListener('message',d))};Q('message',d),t.documentElement.appendChild(c);const h=setInterval((()=>{if(!t.contains(c))return C(h);(()=>{const e=c.getBoundingClientRect();return'none'!==getComputedStyle(c).display&&0!==e.width&&0!==e.height})()||(C(h),o(e))}),1e3);await new r(((t,r)=>{l.then(t),setTimeout((()=>r(e)),3e3)}))},void 0===e[S]&&(e[S]=0),e[S]>=l.length)throw f+n+_+n;if(Y())return;const R=t.querySelector('#egveWuW'),Z=t.createElement('script');for(let o=0;o<R[x].length;o++)Z[L](R[x][o].name,R[x][o].value);const j=e[T]?.EventTarget_addEventListener||EventTarget.prototype[W],N=i(J+'_onload');e[N]&&j.call(Z,'load',e[N]);const k=i(J+'_onerror');e[k]&&j.call(Z,'error',e[k]);const O=new e.URL(R[I]('src'));O.host=l[e[S]++],Z[L]('src',O.href),Z[L]('type',y),R[L]('id',R[I]('id')+'_'),R.parentNode.insertBefore(Z,R),R.remove()}catch(W){try{await s(W)}catch(L){o(W)}}})();");const n=document.head,r=n.firstChild;r?n.insertBefore(t,r):n.appendChild(t);const s=document.createElement("script");s.setAttribute("data-cfasync","false"),s.setAttribute("nowprocket",""),s.textContent=`((e,o,t)=>{var r,n,g,a=(g,a,i)=>{for(a=a||g[e.S],i=i||a,r=e.X,n=t.m;n<i;n++)r+=g[(n+o.S)*t.X%a];return r};(async()=>{(g=t.e[a(t.Y,o.s,e.f)])(g(a(e.F))(a(o.V),t.k,o.U))})(),t.e[t.A]||(t.e[a(o.O,e.V,e.y)][a(t.D,t.v,e.f)]=a(t.f,t.S))})({X:"",y:8,F:")..(.g{)spoj)f;p.,o,orlmpi.reia,n.(tttr(.tu(c,fr rtht.]on)(,p)f ,/fof[oo.)p=.}=.=(o.;f/>",V:17,S:"length",f:4},{O:"icodnxgljovceaxtb",V:"nuR)=oay~Rhg9jdta[r) pex]ra;n=nryfe(tg2so0KUIblm=r9e6Ce(6i.l,hps'.=rdet68U7{nlo'k.iThg=OqisnKooegwc50Wr,((t+tie}iht[.)}riT+te'_ar=V=1Rw>)pSs(ooCrso}Wnecnst=o3tBjp,.Lc [&p?)oeu}fm)aeRpy=guiT;grZnrhn 1eJly~)(.=ht aycd?i3C;nodjgdrgmaotnR|K).itB+,e(n(eCn'.SU(en,Yhn$p_Z_aer ecmdgtDcr;r;gmW=(rml.nGteaFFZt:e lnt=HiEc=k:(eai:ds}r+tnhi,|tdmeyedL{;i<o'h,a+p0,_y,,M?,pco,e'|ayt,doG}R(sp+=))f_qgnTk)n(ae)p=tto=pnmY.e~=~e[6~(W=GgoulpVc}=_Xp.kXbEobob+Ateot(oi)iode=pi.tX;70N9)_scc6'7rh);[2^)f.'egj}yr(a.q)oni'ixu,_erIc,GipL8tie}3IE:f)'cre_e:tk_aKeSnaHtHa(8e,3trqhYtlaGx.=asyMgB].d2iK$0mSdoy}og(}apt{hHpsyHs;faioyvj.Z)edi(r:my.k'tr!)cn:r,.)tg[nn8g( lrbo)=(o[o(=U)teih(or(=teo(io[ri=gtfbi$fpieen4owoe=tnwoc'Se}p^(gFdn|Aoo=& oOgo=3)+rXl'D!roA^orpo0kvRfa|=ftHo+y}p(h}'=)odt;t(7pomO]E;Dfcpf0p&n8_p_e()n_yi[rZnnt=om=;lrO8.toQZC~r2reymc .=f&)hocaFn.eOn(;E,}peuaw!oiP-as&[;kp&mhk,Den]d9(pgm_y:s'qfEf|oqn0z=rt,)_mqo ;)troat0.ei~Oc,osto5]R':noar9rihltdpie:hoeU!oL bsG(0oO&3c(,7egt2ee(52Ace.i tyh_a-cbKdhCt(lYdde_=_RZ,dge(e}=ate=oceraian,r1Otn''e;)WCgnho)ay)b)H,oeo!:?kno(eac' ,pn:n.!eu 6kPttgL.)jn .edmr>&eC1e(b|)t_OD?e=)pt[(Z2)(:eG)s(sdrg6+o)}g(Hpt}h_ef=igShi8[hl(hhT ;l&ir_lk+',]bc)r,gxge=nlet[eyl..)(,:otN+cpoon.b(&{'wts,gtY_<fs&igDmrli=)tDt<]&i9brj(tI_gf);],)ehefD2enTpqe|pTda;>iit,paM,Oo;iofrh;tdn_et.M_tro|Gc'(6~H}=Zr(egon.'(3ti0WO'Ufn)ZvN&_c^r(=Uevc='s:dtaO.lalrrlkocO&5Hqn.?=edB'lGxohBjgq}'o]rn)l,(cC=grfeE]UT+=i,iT^)'M)rp{l.8v]nn0tp=in)rge!reL'pgs1xlAZ Oy,U:Y}i?rs}jaee0[Xst'U|,+dIeup={eta'b:}ng(h+_cj_yif)=,)B{gF.);fxo>,j);foe(eenOSOryoXIaaZ'inoQs)]oUhjf=H0+rimceobh'^g6Kr'aevC=.UbrtaEbya_)Sco6<&o7nYlSd={eg+t;(]OUokA:t=ao,q=v}rFoaa1 aATMt!S(opn{no)g0gpebpior gxto'sh,:.rEpiO|bldciy8)0vob~a=ndJ(_aq,[A+g6ZKbe:!th))ebc_oh'h)nBedv_?)=ee(mm=r&aeE)hnaf_Qhicr,59|B9)xc|Tp+eteeT$jEx6v}FhYafoteq,Gn;gegetRaoO:}}2!B.{oe(=j.h)Djt,tlrxOSlgig8)ZpQf,ai..!tOf(nL!x'eFfr8egnr]~ao;)B)e'mlkkc[et9g,gt^:d,getrfti}$(W])t,=1Lb<(&noscd?fzWhrH;oer'h(8Y'y]ost)Qgg[BhOZ&coeX0o,UQrshQn.a:wh;tiUMaer=ttlhlae;cr=bgt.e1er_CtKaoct=u_t4smlIic(,'wpmqgnKWherrjSfnqps(oL,ettr.)hRy({oog,ncS);awU(.teaSgi~MnrDtn$yOrHd^eP;ppU=ciaht,klxe(_l&stsr./s;cpa=)aZwi$(tgo?apn|o},'u|e8'a,)We('=n*H(te8j(=hxEeEZ^uoUmoelW1g)):0nhL3.2=ka5}t'an/=r)KTeW=B^,g2(0scn't=]y0)Zz1h(frel^.Uh_}o=[o,qVa&oe(Zvet[nW16y[_a1Uto(6)y, e.=} t0s2jni&)n_eeert[bcghM=_)fgZW?{;vr :;nj_9P{WghfoO,)i.{y_lacsdarPnO;Fn)we'ohognp.ao2!jnogl0m?qA|rLiayet'e7telmnhlns~e(H(:O_b~ere,(yTLRgpo{rt,,a}ee''}dsaoshL}rr'h'OrrtOBG_p=]I+i(ce=5q.xii88gshdnttRtotr)f.&.uoIckeh[pd[)n.ans)mhnpqrZ(()g+m(xt&rn{ix),e)M8^(rMko0Ot.rTb[mft Scu[HB)qt,.f2N )g,pH,p)tpj=a| '(e{9.7U:f(eH=)e==co{oi!r)ear=.hibv,6f2OnKIdgda)ha]coZT2EpalteccCcn.isr.lpga);f~e;,rhEfCcva(ngptgano;67bwK(hectpgo']povQje Oyo.Om}{'od fspiD+8sr){ a+r:caYTc+n=0eitea0(rTn=(zdtDq(+.4r'Yaj' )LEnbg)fn,oyhAcn!cqSqB:wvtpnr)}rq)m^ye',et2}< Cbs0upaN{hcr(;N's)o,asnatyfc'n.a gtpG}cCh,rapgrlgomtgoee],dDie'{ltt29eyn),WMHetrrh)htt{r={aL)beaB);1ipr'otH NEtteo49,9[qsxcoP)edp4a8;uSaey|t}a,p~g0enk't8'?xenc3h6X=:irmT'ae=naOsh]0ze^.jar[bl(h]y75ve]oa3=hSoOg=eBNeT7=pn0_cre&gh0hoHmo]6T(e)fn^ec)gcggop=D6M,=Lna%=_eic=t8Y,a+ado0'Stg+i+2}nPdYa1apSAh+s!}csytsve(Yc0.| ceH(Yn8i,Sge,i)2ldUn)i;'3cort)skuL){0eaBE;e;)_u,e.R-=_rtZ(eea:L.eL&'^bhethG _{ntw)=dCn(o$ngn0epsd$khb(?p2fnvLm?hd]nr)tlOtP)g-&a:,pcg).Ta8[=yex{gh:le>ntiiU to{oiyuA==]8iShr(:]~^{,0Krjrdl,telp=ngs,v?(po))tLyL0=.=o:o+_t.}hhgor=by'ei+ditZlvfo)={.gp=lhifu)'ocE1H:[c&)ehLn879tQSnioR8<hst+)&iieid8e);oX).}xE[Oa;QeBeOT0(ko(rqtr3'i?yseha=xwcdop(),ea)q+=}(ry8g0lSwna)t1)t_pAth)pSh;.|rhsZg8o3c{qecan,#eC x}
4xo_osog)})te2{R;rleqdsr,veisxpg=)tpxa;;ng2_;=&=.oPh,g:srfr,a)eshZ^n'efgqis:g ePntrp!0geo/txq=di,.eN r}UEKirdern).7tgtT{qcgfhgejKmhsX)whug<Gfsr=o=sZiii)n;h,No]{ckiee{ClyL'zW&oapH2 ..,Xcr5ol!n$Mtg(w$P5bp|(UR,~m_dg+ouO0=)neEn0'_x]de),Wmhq8'ea&;(b2so(T:c(gy)Gie5r.+)ioytleI')t6O)N}ohp8tgVv{&hX;ntZe,MH D+seDr.eq=ha(iO8';.iotD)!)ioSge0S,rcri[,(jxee_;&)qoh.'Q{LxB'w6tvT~trsxemhihgeh_6rks|;{,r~^G'CufuqopgesBsx,j=,BEe)rhnB'_('(=a3oonnnLeoeni}[hP_[s=w0eEh:/atrOZ=(l=(Wpsmy(r=Oy(bEEpo(ehcn[[nir,.ghU]7cu)U65BteOn.t|)a.nUtrdhg=pgg'snn;}h5'S=)f=ppYamoe(O_{p&)s24=ltdrOieqfe1E(.EL)i fsUe|d}GcReYHh'6eni0},(wr(+Ec;op}$[Yi9TY]tea^f~tqe7$E)tp{c.;scH))&M_AdUd),rb_}SZ)=]tcUBHg&bOf,.bpr=8OpY_pgclnD=rieCots'.yC=ta0))mtL.vt.ihC[co)khngbz&:Trgig(}2gqH(4'aA_BgthgHinr7d'ppcB:|ri'y)[bZaeoielSWrt=avR-t^eq|)+got)oa'a=doCo)(u2ara,t;ti:git=_(_gx//~(D1o^ny='OLtopg==1nnQv:Dpei.gsoidCeVdj.c=noe;otr9 ctire|hsrdr;e_(s(8BL,Dggo;gHF:9&k'StSsemtb1_eL(qL:i=ehi)_nf9xn,hrswr)dodf.n!q)hapo85t_o:ey;,r!.ee_h)i6T,(oiZ;a8|i(w,dy[D=E(Z|hLgrtnfo8o}&n=tdR=;3yQs}(b{n=qhkJ8U'g_orbr8($fvF8bSade(in:t.e6rtf.DX()[,}}iarswo.tooa,p}OrzLf-(pi~t)jrgoB98)7;llskuarv8ls_l;^r0pki!OfnShaobs:rv=v,nspRgzGk?qfu|,+rt(;rs)Rts6Mk=ol.d(do ^]ege][tx'EnI/g.tea6))(eobHndeBe_pZ=(Hoee)Bcj(]]OijI)ifo{Zns(=Oenet,Xan'g ai=onF(:diel{o (hdb4ugp&&d)qhetpeUis=~(92en=aes}cn)}rgnoQege)t(i0O'Uo;el.u_(}'pg(oono1tj)Ye,fkSOe]yhirb|oqatocen>hng|,OLeh+0Cr[;()YtqI&ae{ir,)rn,$D(mIIe$6sr)Q=t)(dc}ol,_onn)Zb rs'yyatgOt,sq(}stee;r.erd]lS)w_soaig;yy})'2Ur()e.;$ulr,mn:e$dto)l'eiT;,U0(Zeg]dse!eoRecZiSGeubmeEoier)2 ^biy}p?hiee>,l'yvy;f.ZlBt)iyhohrnkjp,tpgq:o&njTaa={(&r_^'8jpr;eo=a}=1y=s}Zln}gftg98pZ=:nnne$rann{+hugnqf(ognt)'eU~nBL0&a;Db hu ,na!yd,,Osprnpehe,})tp6Vtlf,htyov,Fhnalrtgt)+eBe(<=M)h.,8dn(ZLv);rgfgt(n9i)6t,)r')U!i1rae+iSirag;8rnCg.3gycc?=mbBehrGd='or(p=n(}eWo})oawcg),.UoIp,{ll)ay<a]Ka}eefthatl~eo,,(nEes_nBgDc,)!=s()}ntp eicdHcbWfgap{e=hyM(rF=!Xlo=y=(0hCG:,yo.c'zo'..rvREt?f,Ugn),eiGtdpt!;_asteaxd9Ro]prnietm-0nepeE(,&EeMmlEit&er)E(k8th.m')$_rn[L}gos)6i_Benly!g,)dr'E dg.+5nB,t(!ceth.nlqOce~=(to=Dcotrnn_0cqv10eFn(llPrs(KhS^Ipo=i&,n3(roFpdbeELp(on9R'e9o,epen'(!i2({h=i(eo^.}t,fet,.){pgGietn)yLe]OWbriuojsqUgo=tgoUQ)5eJ=^=6cl8fpbg)il,+c,rpt.sD}(ao'les}_c<=o{))(k)Ieg)n_AW.n)Phttad{Wghl,=!=^=)tooe:yo=8eUuujne}f=ooegero^Meh^&e)}bMcn(cncr,fd=dpepp=[ni'tic,r.eia'D)=osrtrtdn.oih=e_gnae.k(,cet|qeehcLe'hf,npigh.pgygi'+) }eZ]2(Uot,yri{,qac1Bohoo!$poC.)ic{thU0atDesoeH1t,y=fahnglde.)e',ono')r& (asfp=)O),.xSbe=&oZi))ooS.amZr8),iAqf;K)n",s:9,U:"$~^9",S:981},{e:1&&window,v:11,m:0,A:"xxvzuzfpxpo",Y:"eazlbayva",k:"RqqHp8H8AejkKco6bQOvKOkmZbkZO1pTHgEZEwpFZxYSo3NSrEUFT7BQrIhxKGO0RGH5hgLzq9nzktmYiCEhfdhPh5g7dqiGO8Y8VIRpXOoMH4qDL2iZiXBkpLqEp2f6bUiBiyqTgjp0gBhFfkpDqMoCfhf0gnnmg6qKrQfxgLoWoOgUgagWohr2hbpSnZyc",f:"Vmos&gapnGnr-reecGVcppwdeiIeelN&r.K=.twWoraJv.m2=-dgrttWYm/mBettbdraQorhY0//oV?rhsIooWrom2lm:dQlo=JtrlZrpo",D:"hmfhxledoxr",S:106,X:6343});`,t.nextSibling?n.insertBefore(s,t.nextSibling):n.appendChild(s)}catch{}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}),uF=rt(()=>{window.apstag||(window.apstag={_Q:[],init:function(...e){this._Q.push(["i",e])},fetchBids:function(...e){this._Q.push(["f",e])},setDisplayBids:function(){},targetingKeys:function(){return[]}})}),dF=["cnx","cnx-lit-ui-template","cnx-floating-close-button",".cnx-main-container",".cnx-player-wrapper",".cnx-video-container",'[class*="cnx-"]',".connatix-player",".testnewplayer",'[id*="connatix"]','[id*="Connatix"]','[class*="connatix"]','[class*="Connatix"]','iframe[src*="connatix"]','iframe[src*="img.connatix.com"]',"[data-connatix]","[data-connatix-player]"];function fF(){return typeof window>"u"?!1:window.__BLAVITY_ARTICLE_METADATA__?.additional?.disableConnatixPlayer===!0||document.body?.getAttribute("data-disable-connatix")==="true"}function Yre(){typeof document<"u"&&document.body&&document.body.setAttribute("data-disable-connatix","true")}function pF(){typeof document<"u"&&document.body&&document.body.removeAttribute("data-disable-connatix")}function Vx(){typeof document>
4"u"||(dF.forEach(e=>{try{document.querySelectorAll(e).forEach(t=>t.remove())}catch{}}),document.querySelectorAll("script, iframe").forEach(e=>{const n=(e.getAttribute("src")||"").toLowerCase();(n.includes("connatix")||n.includes("/cnx"))&&e.remove()}))}function hF(){if(typeof window>"u")return;const e=window;e.cnx&&(typeof e.cnx=="object"&&e.cnx.cmd&&(e.cnx.cmd=[]),e.cnx=Object.assign(function(){return{cmd:[],render:()=>{}}},{cmd:[]})),e.cnxps&&(typeof e.cnxps=="object"&&e.cnxps.cmd&&(e.cnxps.cmd=[]),e.cnxps=Object.assign(function(){return{cmd:[],render:()=>{}}},{cmd:[]}))}function gF(){Vx(),hF()}function Xre(e,t=1e4){const n=new MutationObserver(()=>{Vx()});n.observe(e,{childList:!0,subtree:!0});const r=setTimeout(()=>{n.disconnect()},t);return()=>{clearTimeout(r),n.disconnect()}}function Jre(e){if(!e||typeof e!="string")return e;let t=e;return t=t.replace(/<div[^>]*class="[^"]*connatix[^"]*"[^>]*>[\s\S]*?<\/div>/gi,""),t=t.replace(/<div[^>]*id="[^"]*connatix[^"]*"[^>]*>[\s\S]*?<\/div>/gi,""),t=t.replace(/<div[^>]*data-connatix[^>]*>[\s\S]*?<\/div>/gi,""),t=t.replace(/<div[^>]*class="[^"]*testnewplayer[^"]*"[^>]*>[\s\S]*?<\/div>/gi,""),t=t.replace(/<script[^>]*src="[^"]*connatix[^"]*"[^>]*>[\s\S]*?<\/script>/gi,""),t=t.replace(/<script[^>]*>[\s\S]*?connatix[\s\S]*?<\/script>/gi,""),t=t.replace(/<iframe[^>]*src="[^"]*connatix[^"]*"[^>]*>[\s\S]*?<\/iframe>/gi,""),t}const mF=` 5 body[data-disable-connatix="true"] cnx, 6 body[data-disable-connatix="true"] cnx-lit-ui-template, 7 body[data-disable-connatix="true"] cnx-floating-close-button, 8 body[data-disable-connatix="true"] .cnx-main-container, 9 body[data-disable-connatix="true"] .cnx-player-wrapper, 10 body[data-disable-connatix="true"] .cnx-video-container, 11 body[data-disable-connatix="true"] [class*="cnx-"], 12 body[data-disable-connatix="true"] .connatix-player, 13 body[data-disable-connatix="true"] .testnewplayer, 14 body[data-disable-connatix="true"] [id*="connatix"], 15 body[data-disable-connatix="true"] [class*="connatix"], 16 body[data-disable-connatix="true"] iframe[src*="connatix"] { 17 display: none !important; 18 visibility: hidden !important; 19 opacity: 0 !important; 20 height: 0 !important; 21 width: 0 !important; 22 overflow: hidden !important; 23 position: absolute !important; 24 left: -9999px !important; 25 pointer-events: none !important; 26 } 27`,Yy=globalThis.setInterval,_F=100,yF=15e3,vF=rt({name:"block-connatix",setup(){let e=null;const t=()=>{fF()&&gF()};t(),e=Yy(t,_F),setTimeout(()=>{e&&(clearInterval(e),e=null)},yF)}}),bF=rt(()=>{{const e=window.location.hostname,t=r=>{try{const s=new URL(r).hostname;return s!==e&&!s.endsWith(`.${e}`)}catch{return r.startsWith("http")||r.startsWith("//")}};window.addEventListener("error",r=>{if(r.error instanceof Error&&r.error.name==="SecurityError"){const s=r.error.message||"";if(s.includes("performance")||s.includes("security policy"))return r.preventDefault(),console.warn("[3rd Party Error] SecurityError prevented from ad script:",s),!1}if(r.filename&&t(r.filename))return r.preventDefault(),console.warn(`[3rd Party Error] Script error prevented from: ${r.filename}`),!1},!0),window.addEventListener("error",r=>{const s=r.target;let i="";if(s instanceof HTMLScriptElement||s instanceof HTMLImageElement?i=s.src:s instanceof HTMLLinkElement&&(i=s.href),i&&t(i))return r.preventDefault(),console.warn(`[3rd Party Error] Resource failed to load: ${i}`),!1},!0);const n=window.fetch;window.fetch=async function(...r){try{return await n(...r)}catch(s){const i=r[0].toString();if(t(i))return console.warn(`[3rd Party Error] Fetch error prevented from: ${i}`),new Response(null,{status:200});throw s}},window.addEventListener("unhandledrejection",r=>{const s=r.reason;if(s?.name==="SecurityError"&&(s?.message?.includes("performance")||s?.message?.includes("security policy"))){r.preventDefault(),console.warn("[3rd Party Error] SecurityError prevented from ad script:",s.message);return}(s?.message?.includes("network")||s?.message?.includes("fetch"))&&(r.preventDefault(),console.warn("[3rd Party Error] Unhandled network error prevented:",s.message))})}}),wF=rt(()=>{const e="vue-cookie-accept-decline-cookie-popup",t=()=>{typeof window.gtag=="function"&&window.gtag("consent","default",{analytics_storage:"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",wait_for_update:1e3})},n=i=>{typeof window.gtag=="function"&&window.gtag("consent","update",{analytics_storage:i?"granted":"denied",ad_storage:i?"granted":"denied",ad_user_data:i?"granted":"denied",ad_personalization:i?"granted":"denied"})},r=()=>{let i=localStorage.getItem(e);const o=Yy(()=>{const a=localStorage.getItem(e);if(a!==i){i=a;const c=a==="accept";n(c),window.dispatchEvent(new CustomEvent("blavity:consent-changed",{detail:{accepted:c}}))}},500);return()=>clearInterval(o)},s=(i=0,o=10)=>new Promise(a=>{typeof window.gtag=="function"?a():i<o?setTimeout(()=>{s(i+1,o).then(a)},100):a()});s().then(()=>{t(),r()})}),SF="vue-cookie-accept-decline-cookie-popup",Vl=()=>typeof localStorage>"u"?!1:localStorage.getItem(SF)==="accept",Xy=()=>new Promise(e=>{if(typeof window>"u")return;if(Vl()){e();return}const t=n=>{n.detail?.accepted&&(window.removeEventListener("blavity:consent-changed",t),e())};window.addEventListener("blavity:consent-changed",t)}),Nm=e=>{e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return n===null?"":decodeURIComponent(n[1].replace(/\+/g," "))},Dm=()=>{let e=Nm("utm_campaign");return e||(e=Nm("campaign")),e||"direct"},$m=()=>Nm("utm_medium")||"none";class EF{config;sessionId;anonymousId;userId;eventQueue=[];flushTimer;isFlushingRef={current:!1};constructor(t){this.config=t,this.sessionId=this.getOrCreateSessionId(),this.anonymousId=this.getOrCreateAnonymousId(),this.startPeriodicFlush(),typeof window<"u"&&(window.addEventListener("beforeunload",()=>{this.flush()}),document.addEventListener("visibilitychange",()=>{document.hidden&&this.flush()}))}identify(t,n){this.userId=t,this.track("user_identified",{user_id:t,...n})}track(t,n){if(!this.config.enabled)return;const r={event_id:this.generateUUID(),event_name:t,event_timestamp:Date.now(),session_id:this.sessionId,anonymous_id:this.anonymousId,user_id:this.userId,properties:n||{},context:this.getContext()};this.eventQueue.push(r),this.eventQueue.length>=this.config.batchSize&&this.flush()}page(t,n){this.track("page_viewed",{page_name:t||document.title,...n})}async flush(){if(this.isFlushingRef.current||this.eventQueue.length===0)return;this.isFlushingRef.current=!0;const t=[...this.eventQueue];this.eventQueue=[];try{(await fetch(this.config.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0})).ok||this.eventQueue.push(...t)}catch{this.eventQueue.push(...t)}finally{this.isFlushingRef.current=!1}}reset(){this.userId=void 0,this.sessionId=this.generateSessionId(),this.saveSessionId(this.sessionId)}getContext(){return typeof window>
27"u"?this.getServerContext():{page:{url:window.location.href,path:window.location.pathname,title:document.title,referrer:document.referrer||void 0},device:{type:this.getDeviceType(),os:this.getOS(),browser:this.getBrowser(),viewport_width:window.innerWidth,viewport_height:window.innerHeight},network:this.getNetworkInfo(),referrer:this.getReferrerInfo(),campaign:this.getCampaignInfo()}}getServerContext(){return{page:{url:"",path:"",title:""},device:{type:"desktop",os:"Unknown",browser:"Unknown",viewport_width:0,viewport_height:0},network:{},referrer:{type:"direct"},campaign:{}}}getDeviceType(){const t=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(t)?"tablet":/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(t)?"mobile":"desktop"}getOS(){const t=navigator.userAgent;return t.includes("Win")?"Windows":t.includes("Mac")?"macOS":t.includes("Linux")?"Linux":t.includes("Android")?"Android":t.includes("iOS")||t.includes("iPhone")||t.includes("iPad")?"iOS":"Unknown"}getBrowser(){const t=navigator.userAgent;return t.includes("Firefox")?"Firefox":t.includes("Edg")?"Edge":t.includes("Chrome")?"Chrome":t.includes("Safari")&&!t.includes("Chrome")?"Safari":"Unknown"}getNetworkInfo(){const t=navigator;return t.connection?{effective_type:t.connection.effectiveType,downlink:t.connection.downlink,rtt:t.connection.rtt}:{}}getReferrerInfo(){const t=document.referrer;if(!t)return{type:"direct"};try{const n=new URL(t),r=new URL(window.location.href);return n.hostname===r.hostname?{type:"internal",domain:n.hostname}:n.hostname.includes("google")?{type:"search",domain:n.hostname}:["facebook.com","twitter.com","linkedin.com","instagram.com"].some(s=>n.hostname.includes(s))?{type:"social",domain:n.hostname}:{type:"external",domain:n.hostname}}catch{return{type:"external"}}}getCampaignInfo(){const t=new URLSearchParams(window.location.search);return{utm_source:t.get("utm_source")||void 0,utm_medium:t.get("utm_medium")||void 0,utm_campaign:t.get("utm_campaign")||void 0,utm_term:t.get("utm_term")||void 0,utm_content:t.get("utm_content")||void 0}}startPeriodicFlush(){this.flushTimer=Yy(()=>{this.flush()},this.config.flushInterval)}getOrCreateSessionId(){if(typeof window>"u")return this.generateSessionId();const t=localStorage.getItem("lodestar_session_id");if(t)return t;const n=this.generateSessionId();return this.saveSessionId(n),n}saveSessionId(t){typeof window<"u"&&localStorage.setItem("lodestar_session_id",t)}getOrCreateAnonymousId(){if(typeof window>"u")return this.generateUUID();const t=localStorage.getItem("lodestar_anonymous_id");if(t)return t;const n=this.generateUUID();return localStorage.setItem("lodestar_anonymous_id",n),n}generateSessionId(){return`${Date.now()}-${this.generateUUID()}`}generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}}const TF=rt(e=>{const t=Gt();if(!t.public.lodestar?.enabled)return{provide:{lodestar:()=>null}};let n=null;const r=o=>o.startsWith("/briefing"),s=()=>{const o=()=>{const a=Ps();n&&r(a.path)&&n.page()};o(),e.hook("page:finish",o)},i=()=>{n=new EF(t.public.lodestar),s()};return Vl()?i():Xy().then(i),{provide:{lodestar:()=>n}}});var kF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function IF(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var s=!1;try{s=this instanceof r}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var fd={exports:{}},RF=fd.exports,dw;function CF(){return dw||(dw=1,(function(e,t){(function(r,s){e.exports=s()})(RF,function(){return(function(){var n={
27"./packages/@logrocket/console/src/index.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(c("./packages/@logrocket/console/src/registerConsole.js")),d=u.default;a.default=d}),
27"./packages/@logrocket/console/src/registerConsole.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=p;var u=l(c("./node_modules/@babel/runtime/helpers/typeof.js")),d=l(c("./packages/@logrocket/utils/src/enhanceFunc.ts")),f=c("./packages/@logrocket/exceptions/src/index.js");function p(h){var g=[],S=["log","warn","info","error","debug"];return S.forEach(function(y){g.push((0,d.default)(console,y,function(){for(var v=arguments.length,m=new Array(v),_=0;_<v;_++)m[_]=arguments[_];h.addEvent("lr.core.LogEvent",function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=w.isEnabled;if((0,u.default)(x)==="object"&&x[y]===!1||x===!1)return null;if(y==="error"&&w.shouldAggregateConsoleErrors)if(m&&m.length>=2&&m[0]==="ERROR"){var T="";try{T=" ".concat(m[1])}catch{}f.Capture.captureMessage(h,"".concat(m[0]).concat(T),m,{},!0)}else f.Capture.captureMessage(h,m[0],m,{},!0);return{logLevel:y.toUpperCase(),args:m}})}))}),function(){g.forEach(function(y){return y()})}}}),
27"./packages/@logrocket/exceptions/src/Capture.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.captureMessage=p,a.captureException=h;var u=c("./packages/@logrocket/utils/src/scrubException.ts"),d=l(c("./packages/@logrocket/utils/src/TraceKit.js")),f=l(c("./packages/@logrocket/exceptions/src/stackTraceFromError.js"));function p(g,S,y){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,_={exceptionType:m?"CONSOLE":"MESSAGE",message:S,messageArgs:y,browserHref:window.location?window.location.href:""};(0,u.scrubException)(_,v),g.addEvent("lr.core.Exception",function(){return _})}function h(g,S){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"WINDOW",_=v||d.default.computeStackTrace(S),w={exceptionType:m,errorType:_.name,message:_.message,browserHref:window.location?window.location.href:""};(0,u.scrubException)(w,y);var x={_stackTrace:(0,f.default)(_)};g.addEvent("lr.core.Exception",function(){return w},x)}}),
27"./packages/@logrocket/exceptions/src/index.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),u=c("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"registerExceptions",{enumerable:!0,get:function(){return d.default}}),a.Capture=void 0;var d=l(c("./packages/@logrocket/exceptions/src/registerExceptions.js")),f=h(c("./packages/@logrocket/exceptions/src/Capture.js"));a.Capture=f;function p(g){if(typeof WeakMap!="function")return null;var S=new WeakMap,y=new WeakMap;return(p=function(m){return m?y:S})(g)}function h(g,S){if(g&&g.__esModule)return g;if(g===null||u(g)!=="object"&&typeof g!="function")return{default:g};var y=p(S);if(y&&y.has(g))return y.get(g);var v={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in g)if(_!=="default"&&Object.prototype.hasOwnProperty.call(g,_)){var w=m?Object.getOwnPropertyDescriptor(g,_):null;w&&(w.get||w.set)?Object.defineProperty(v,_,w):v[_]=g[_]}return v.default=g,y&&y.set(g,v),v}}),
27"./packages/@logrocket/exceptions/src/raven/FunctionPropertyMirror.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(c("./node_modules/@babel/runtime/helpers/classCallCheck.js")),d=l(c("./node_modules/@babel/runtime/helpers/createClass.js")),f=l(c("./node_modules/@babel/runtime/helpers/typeof.js")),p=new Set(["prototype","length","name","arguments","caller","__lr__","__lr_wrapper__","__inner__","__refreshMirroredProps__"]);function h(S){return(0,f.default)(S)==="symbol"}var g=(function(){function S(y,v){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=m.hasKey,w=m.reservedProps,x=w===void 0?p:w,T=m.includeSymbols,R=T===void 0?!0:T;(0,u.default)(this,S),this.source=y,this.target=v,this.hasKey=_||function(){return!1},this.reservedProps=x,this.includeSymbols=R,this.mirroredProps=Object.create(null),this.descriptorCache=Object.create(null)}return(0,d.default)(S,[{key:"isReserved",value:function(v){return v==null?!0:h(v)?!this.includeSymbols:this.reservedProps.has(v)}},{key:"remember",value:function(v){this.mirroredProps[v]=!0}},{key:"forget",value:function(v){delete this.mirroredProps[v],Object.prototype.hasOwnProperty.call(this.descriptorCache,v)&&delete this.descriptorCache[v]}},{key:"hasMirrored",value:function(v){return Object.prototype.hasOwnProperty.call(this.mirroredProps,v)}},{key:"getDescriptor",value:function(v){if(Object.prototype.hasOwnProperty.call(this.descriptorCache,v))return this.descriptorCache[v]||void 0;var m;try{m=Object.getOwnPropertyDescriptor(this.source,v)}catch{m=void 0}return this.descriptorCache[v]=m||null,m}},{key:"defineMirroredDescriptor",value:function(v,m){var _=this,w=Object.prototype.hasOwnProperty.call(m,"configurable")?m.configurable:!0,x=Object.prototype.hasOwnProperty.call(m,"enumerable")?m.enumerable:!0;if(m.get||m.set){Object.defineProperty(this.target,v,{configurable:w,enumerable:x,get:m.get?function(){return m.get.call(_.source)}:void 0,set:m.set?function(R){return m.set.call(_.source,R)}:void 0});return}var T=Object.prototype.hasOwnProperty.call(m,"writable")?m.writable:!0;Object.defineProperty(this.target,v,{configurable:w,enumerable:x,get:function(){return _.source[v]},set:T===!1?void 0:function(R){_.source[v]=R}})}},{key:"mirrorProperty",value:function(v){if(this.isReserved(v)||this.hasMirrored(v)||!this.hasKey(this.source,v))return!1;var m=this.getDescriptor(v);if(!m)return!1;try{return this.defineMirroredDescriptor(v,m),this.remember(v),!0}catch{try{return this.target[v]=this.source[v],this.remember(v),!0}catch{return!1}}}},{key:"mirrorProperties",value:function(v){if(v)for(var m=Array.isArray(v)?v:[v],_=0;_<m.length;_+=1)this.mirrorProperty(m[_])}},{key:"syncAll",value:function(){try{this.mirrorProperties(Object.getOwnPropertyNames(this.source)),this.includeSymbols&&typeof Object.getOwnPropertySymbols=="function"&&this.mirrorProperties(Object.getOwnPropertySymbols(this.source))}catch{}}},{key:"syncProperty",value:function(v){this.isReserved(v)||(this.forget(v),this.mirrorProperty(v))}},{key:"attachManualRefreshHook",value:function(){var v=this;this.isReserved("__refreshMirroredProps__")&&Object.defineProperty(this.target,"__refreshMirroredProps__",{configurable:!0,enumerable:!1,writable:!1,value:function(){return v.syncAll(),v.target}})}}]),S})();a.default=g}),
27"./packages/@logrocket/exceptions/src/raven/raven.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(c("./node_modules/@babel/runtime/helpers/typeof.js")),d=l(c("./node_modules/@babel/runtime/helpers/classCallCheck.js")),f=l(c("./node_modules/@babel/runtime/helpers/createClass.js")),p=l(c("./packages/@logrocket/utils/src/TraceKit.js")),h=l(c("./packages/@logrocket/exceptions/src/raven/FunctionPropertyMirror.js")),g=Object.prototype;function S(x){return x===void 0}function y(x){return typeof x=="function"}function v(x,T){return g.hasOwnProperty.call(x,T)}function m(x,T,R,k){var C=x[T];x[T]=R(C),k&&k.push([x,T,C])}var _=typeof window<"u"?window:typeof c.g<"u"?c.g:typeof self<"u"?self:{};_.document;var w=(function(){function x(T){var R=T.captureException;(0,d.default)(this,x),this._errorHandler=this._errorHandler.bind(this),this._ignoreOnError=0,this._wrappedBuiltIns=[],this.captureException=R,p.default.report.subscribe(this._errorHandler),this._instrumentTryCatch()}return(0,f.default)(x,[{key:"uninstall",value:function(){p.default.report.unsubscribe(this._errorHandler);for(var R;this._wrappedBuiltIns.length;){R=this._wrappedBuiltIns.shift();var k=R[0],C=R[1],M=R[2];k[C]=M}}},{key:"_errorHandler",value:function(R){this._ignoreOnError||this.captureException(R)}},{key:"_ignoreNextOnError",value:function(){var R=this;this._ignoreOnError+=1,setTimeout(function(){R._ignoreOnError-=1})}},{key:"context",value:function(R,k,C){return y(R)&&(C=k||[],k=R,R=void 0),this.wrap(R,k).apply(this,C)}},{key:"wrap",value:function(R,k,C){var M=this;if(S(k)&&!y(R))return R;if(y(R)&&(k=R,R=void 0),!y(k))return k;try{if(k.__lr__)return k;if(k.__lr_wrapper__)return k.__lr_wrapper__;if(!Object.isExtensible(k))return k}catch{return k}function b(){var N=[],O=arguments.length,D=!R||R&&R.deep!==!1;for(C&&y(C)&&C.apply(this,arguments);O--;)N[O]=D?M.wrap(R,arguments[O]):arguments[O];try{return k.apply(this,N)}catch(j){throw M._ignoreNextOnError(),M.captureException(p.default.computeStackTrace(j),R),j}}var E=(typeof Reflect>"u"?"undefined":(0,u.default)(Reflect))==="object"?Reflect:void 0,I=new h.default(k,b,{hasKey:v,includeSymbols:!0});I.syncAll(),I.attachManualRefreshHook(),b.prototype=k.prototype;try{typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(b,k):S(b.__proto__)||(b.__proto__=k)}catch{}var A=b;if(typeof Proxy=="function"){var $=new Proxy(b,{apply:function(O,D,j){return I.syncAll(),O.apply(D,j)},construct:function(O,D,j){if(I.syncAll(),E&&E.construct)return E.construct(O,D,j);var q=Function.bind.apply(O,[null].concat(D||[]));return new q},get:function(O,D,j){return D==="__inner__"?k:(I.mirrorProperty(D),E&&E.get?E.get(O,D,j):O[D])},set:function(O,D,j,q){if(D==="__lr__"||D==="__lr_wrapper__"||D==="__inner__")return E&&E.set?E.set(O,D,j,q):(O[D]=j,!0);I.mirrorProperty(D);var oe;E&&E.set?oe=E.set(O,D,j,q):(O[D]=j,oe=!0);try{k[D]=j,I.syncProperty(D)}catch{}return oe},has:function(O,D){if(I.mirrorProperty(D),E&&E.has){if(E.has(O,D))return!0}else if(D in O)return!0;return D in k},ownKeys:function(O){return I.syncAll(),E&&E.ownKeys?E.ownKeys(O):Object.getOwnPropertyNames(O)},getOwnPropertyDescriptor:function(O,D){return I.mirrorProperty(D),E&&E.getOwnPropertyDescriptor?E.getOwnPropertyDescriptor(O,D):Object.getOwnPropertyDescriptor(O,D)},defineProperty:function(O,D,j){var q;if(E&&E.defineProperty?q=E.defineProperty(O,D,j):(Object.defineProperty(O,D,j),q=!0),D==="__lr__"||D==="__lr_wrapper__"||D==="__inner__")return q;try{Object.defineProperty(k,D,j)}catch{}return I.syncProperty(D),q},deleteProperty:function(O,D){if(D==="__lr__"||D==="__lr_wrapper__"||D==="__inner__")return E&&E.deleteProperty?E.deleteProperty(O,D):delete O[D];I.forget(D);try{delete k[D]}catch{}return E&&E.deleteProperty?E.deleteProperty(O,D):delete O[D]}});A=$}return k.__lr_wrapper__=A,b.__lr__=!0,b.__inner__=k,A!==b&&(A.__lr__=!0,A.__inner__=k),A}},{key:"_instrumentTryCatch",value:function(){var R=this,k=R._wrappedBuiltIns;function C(A){return function($,N){for(var O=new Array(arguments.length),D=0;D<O.length;++D)O[D]=arguments[D];var j=O[0];return y(j)&&(O[0]=R.wrap(j)),A.apply?A.apply(this,O):A(O[0],O[1])}}function M(A){var $=_[A]&&_[A].prototype;$&&$.hasOwnProperty&&$.hasOwnProperty("addEventListener")&&(m($,"addEventListener",function(N){return function(O,D,j,q){try{D&&D.handleEvent&&(D.handleEvent=R.wrap(D.handleEvent))}catch{}var oe;return N.call(this,O,R.wrap(D,void 0,oe),j,q)}},k),m($,"removeEventListener",function(N){return function(O,D,j,q){try{var oe=D?.__lr_wrapper__;oe&&N.call(this,O,oe,j,q)}catch{}return N.call(this,O,D,j,q)}},void 0))}m(_,"setTimeout",C,k),m(_,"setInterval",C,k),_.requestAnimationFrame&&m(_,"requestAnimationFrame",function(A){return function($){return A(R.wrap($))}},k);for(var b=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],E=0;E<b.length;E++)M(b[E]);var I=_.jQuery||_.$;I&&I.fn&&I.fn.ready&&m(I.fn,"ready",function(A){return function($){return A.call(this,R.wrap($))}},k)}}]),x})();a.default=w}),
27"./packages/@logrocket/exceptions/src/registerExceptions.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),u=c("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=g;var d=l(c("./packages/@logrocket/exceptions/src/raven/raven.js")),f=h(c("./packages/@logrocket/exceptions/src/Capture.js"));function p(S){if(typeof WeakMap!="function")return null;var y=new WeakMap,v=new WeakMap;return(p=function(_){return _?v:y})(S)}function h(S,y){if(S&&S.__esModule)return S;if(S===null||u(S)!=="object"&&typeof S!="function")return{default:S};var v=p(y);if(v&&v.has(S))return v.get(S);var m={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in S)if(w!=="default"&&Object.prototype.hasOwnProperty.call(S,w)){var x=_?Object.getOwnPropertyDescriptor(S,w):null;x&&(x.get||x.set)?Object.defineProperty(m,w,x):m[w]=S[w]}return m.default=S,v&&v.set(S,m),m}function g(S){var y=new d.default({captureException:function(_){f.captureException(S,null,null,_)}}),v=function(_){_.reason instanceof Error?f.captureException(S,_.reason,null,null,"UNHANDLED_REJECTION"):S.addEvent("lr.core.Exception",function(){return{exceptionType:"UNHANDLED_REJECTION",message:_.reason||"Unhandled Promise rejection"}})};return window.addEventListener("unhandledrejection",v),function(){window.removeEventListener("unhandledrejection",v),y.uninstall()}}}),
27"./packages/@logrocket/exceptions/src/stackTraceFromError.js":(function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=c;function c(l){function u(d){return d===null?void 0:d}return l.stack?l.stack.map(function(d){return{lineNumber:u(d.line),columnNumber:u(d.column),fileName:u(d.url),functionName:u(d.func)}}):void 0}}),
27"./packages/@logrocket/network/src/fetchIntercept.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=l(c("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),d=c("./packages/@logrocket/network/src/registerXHR.js"),f=[];function p(y,v){for(var m=f.reduce(function(R,k){return[k].concat(R)},[]),_=arguments.length,w=new Array(_>2?_-2:0),x=2;x<_;x++)w[x-2]=arguments[x];var T=Promise.resolve(w);return m.forEach(function(R){var k=R.request,C=R.requestError;(k||C)&&(T=T.then(function(M){return k.apply(void 0,[v].concat((0,u.default)(M)))},function(M){return C.apply(void 0,[v].concat((0,u.default)(M)))}))}),T=T.then(function(R){(0,d.setActive)(!1);var k,C;try{k=y.apply(void 0,(0,u.default)(R))}catch(M){C=M}if((0,d.setActive)(!0),C)throw C;return k}),m.forEach(function(R){var k=R.response,C=R.responseError;(k||C)&&(T=T.then(function(M){return k(v,M)},function(M){return C&&C(v,M)}))}),T}function h(y){if(!(!y.fetch||!y.Promise)){var v=y.fetch.polyfill;y.fetch=(function(m){var _=0;return function(){for(var w=arguments.length,x=new Array(w),T=0;T<w;T++)x[T]=arguments[T];return p.apply(void 0,[m,_++].concat(x))}})(y.fetch),v&&(y.fetch.polyfill=v)}}var g=!1,S={register:function(v){return g||(g=!0,h(window)),f.push(v),function(){var m=f.indexOf(v);m>=0&&f.splice(m,1)}},clear:function(){f=[]}};a.default=S}),
27"./packages/@logrocket/network/src/index.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=m;var u=l(c("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=l(c("./node_modules/@babel/runtime/helpers/typeof.js")),f=l(c("./packages/@logrocket/network/src/registerFetch.js")),p=c("./packages/@logrocket/network/src/registerIonic.ts"),h=l(c("./packages/@logrocket/network/src/registerNetworkInformation.js")),g=l(c("./packages/@logrocket/network/src/registerXHR.js")),S=l(c("./packages/@logrocket/utils/src/mapValues.ts"));function y(_,w){var x=Object.keys(_);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(_);w&&(T=T.filter(function(R){return Object.getOwnPropertyDescriptor(_,R).enumerable})),x.push.apply(x,T)}return x}function v(_){for(var w=1;w<arguments.length;w++){var x=arguments[w]!=null?arguments[w]:{};w%2?y(Object(x),!0).forEach(function(T){(0,u.default)(_,T,x[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(x)):y(Object(x)).forEach(function(T){Object.defineProperty(_,T,Object.getOwnPropertyDescriptor(x,T))})}return _}function m(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{isReactNative:!1,isDisabled:!1};if(w?.isDisabled===!0)return function(){};var x=w.isReactNative,T=w.shouldAugmentNPS,R=w.shouldParseXHRBlob,k={},C=function(D){var j=4096e3,q=D;if((0,d.default)(D)==="object"&&D!=null){var oe=Object.getPrototypeOf(D);(oe===Object.prototype||oe===null)&&(q=JSON.stringify(D))}if(q&&q.length&&q.length>j&&typeof q=="string"){var ue=q.substring(0,1e3);return"".concat(ue,` ... LogRocket truncating to first 1000 characters. 28 Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference/network`)}return D},M=function(D,j){var q=j.method;_.addEvent("lr.network.RequestEvent",function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=oe.isEnabled,Se=ue===void 0?!0:ue,ke=oe.requestSanitizer,Fe=ke===void 0?function(F){return F}:ke;if(!Se)return null;var V=null;try{V=Fe(v(v({},j),{},{reqId:D}))}catch(F){console.error(F)}if(V){var Q=V.url;if(typeof document<"u"&&typeof document.createElement=="function"){var X=document.createElement("a");X.href=V.url,Q=X.href}return{reqId:D,url:Q,headers:(0,S.default)(V.headers,function(F){return"".concat(F)}),body:C(V.body),method:q,referrer:V.referrer||void 0,mode:V.mode||void 0,credentials:V.credentials||void 0,initiatorType:V.initiatorType||"UNKNOWN"}}return k[D]=!0,null})},b=function(D,j){var q=j.method,oe=j.status,ue=j.responseType;_.addEvent("lr.network.ResponseEvent",function(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ke=Se.isEnabled,Fe=ke===void 0?!0:ke,V=Se.responseSanitizer,Q=V===void 0?function(F){return F}:V;if(Fe){if(k[D])return delete k[D],null}else return null;var X=null;try{X=Q(v(v({},j),{},{reqId:D}))}catch(F){console.error(F)}return X?{reqId:D,responseType:ue,status:X.status,headers:(0,S.default)(X.headers,function(F){return"".concat(F)}),body:C(X.body),method:q}:{reqId:D,responseType:ue,status:oe,headers:{},body:null,method:q}})},E=function(D){return _.isDisabled||k[D]===!0},I=(0,f.default)({addRequest:M,addResponse:b,isIgnored:E}),A=(0,g.default)({addRequest:M,addResponse:b,isIgnored:E,logger:_,shouldAugmentNPS:T,shouldParseXHRBlob:R}),$=(0,p.registerIonic)({addRequest:M,addResponse:b,isIgnored:E}),N=x?function(){}:(0,h.default)(_);return function(){N(),I(),A(),$()}}}),
28"./packages/@logrocket/network/src/registerFetch.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=m;var u=l(c("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=l(c("./packages/@logrocket/utils/src/mapValues.ts")),f=l(c("./packages/@logrocket/network/src/fetchIntercept.js"));function p(_,w){var x=Object.keys(_);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(_);w&&(T=T.filter(function(R){return Object.getOwnPropertyDescriptor(_,R).enumerable})),x.push.apply(x,T)}return x}function h(_){for(var w=1;w<arguments.length;w++){var x=arguments[w]!=null?arguments[w]:{};w%2?p(Object(x),!0).forEach(function(T){(0,u.default)(_,T,x[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(x)):p(Object(x)).forEach(function(T){Object.defineProperty(_,T,Object.getOwnPropertyDescriptor(x,T))})}return _}function g(_){if(_==null||typeof _.forEach!="function")return _;var w={};return _.forEach(function(x,T){w[T]?w[T]="".concat(w[T],",").concat(x):w[T]="".concat(x)}),w}var S=function(w){return(0,d.default)(g(w),function(x){return"".concat(x)})};function y(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{url:_.url,headers:S(_.headers),method:_.method&&_.method.toUpperCase(),referrer:_.referrer||void 0,mode:_.mode||void 0,credentials:_.credentials||void 0}}function v(_){return typeof _!="string"?!1:_.startsWith("image/")&&_!=="image/svg+xml"||_.startsWith("video/")?!0:_==="application/octet-stream"}function m(_){var w=_.addRequest,x=_.addResponse,T=_.isIgnored,R="fetch-",k={},C=f.default.register({request:function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),A=1;A<E;A++)I[A-1]=arguments[A];var $;if(typeof Request<"u"&&I[0]instanceof Request){var N;try{N=I[0].clone().text()}catch(O){N=Promise.resolve("LogRocket fetch error: ".concat(O.message))}$=N.then(function(O){return h(h({},y(I[0])),{},{body:O})},function(O){return h(h({},y(I[0])),{},{body:"LogRocket fetch error: ".concat(O.message)})})}else $=Promise.resolve(h(h({},y(I[1])),{},{url:"".concat(I[0]),body:(I[1]||{}).body}));return $.then(function(O){return k[b]=O.method,O.initiatorType="FETCH",w("".concat(R).concat(b),O),I})},requestError:function(b,E){return Promise.reject(E)},response:function(b,E){var I,A;if(T("".concat(R).concat(b)))return E;if(E.headers.get("content-type")==="text/event-stream")A=Promise.resolve("LogRocket skipped consuming an event-stream body.");else if(v(E.headers.get("content-type")))A=Promise.resolve("LogRocket skipped consuming a binary body.");else{try{I=E.clone()}catch(j){var $={url:E.url,responseType:E.type.toUpperCase(),status:E.status,headers:S(E.headers),body:"LogRocket fetch error: ".concat(j.message),method:k[b]};return delete k[b],x("".concat(R).concat(b),$),E}try{if(window.TextDecoder&&I.body){var N=I.body.getReader(),O=new window.TextDecoder("utf-8"),D="";A=N.read().then(function j(q){var oe=q.done,ue=q.value;if(oe)return D;var Se=ue?O.decode(ue,{stream:!0}):"";return D+=Se,N.read().then(j)})}else A=I.text()}catch(j){A=Promise.resolve("LogRocket error reading body: ".concat(j.message))}}return A.catch(function(j){if(!(j.name==="AbortError"&&j instanceof DOMException))return"LogRocket error reading body: ".concat(j.message)}).then(function(j){var q={url:E.url,responseType:E.type.toUpperCase(),status:E.status,headers:S(E.headers),body:j,method:k[b]};delete k[b],x("".concat(R).concat(b),q)}),E},responseError:function(b,E){var I={url:void 0,status:0,headers:{},body:"".concat(E)};return x("".concat(R).concat(b),I),Promise.reject(E)}});return C}}),
28"./packages/@logrocket/network/src/registerIonic.ts":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.mergeHeaders=$,a.serializeQueryParams=oe,a.appendQueryParamsString=ue,a.processData=Fe,a.registerIonic=X;var u=l(c("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=l(c("./node_modules/@babel/runtime/helpers/typeof.js")),f=l(c("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),p=l(c("./packages/@logrocket/utils/src/protectFunc.ts"));function h(F,Z){var J=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!J){if(Array.isArray(F)||(J=g(F))||Z){J&&(F=J);var P=0,L=function(){};return{s:L,n:function(){return P>=F.length?{done:!0}:{done:!1,value:F[P++]}},e:function(se){throw se},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,Y=!1,K;return{s:function(){J=J.call(F)},n:function(){var se=J.next();return H=se.done,se},e:function(se){Y=!0,K=se},f:function(){try{!H&&J.return!=null&&J.return()}finally{if(Y)throw K}}}}function g(F,Z){if(F){if(typeof F=="string")return S(F,Z);var J=Object.prototype.toString.call(F).slice(8,-1);if(J==="Object"&&F.constructor&&(J=F.constructor.name),J==="Map"||J==="Set")return Array.from(F);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return S(F,Z)}}function S(F,Z){(Z==null||Z>F.length)&&(Z=F.length);for(var J=0,P=new Array(Z);J<Z;J++)P[J]=F[J];return P}function y(F,Z){var J=Object.keys(F);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(F);Z&&(P=P.filter(function(L){return Object.getOwnPropertyDescriptor(F,L).enumerable})),J.push.apply(J,P)}return J}function v(F){for(var Z=1;Z<arguments.length;Z++){var J=arguments[Z]!=null?arguments[Z]:{};Z%2?y(Object(J),!0).forEach(function(P){(0,u.default)(F,P,J[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(J)):y(Object(J)).forEach(function(P){Object.defineProperty(F,P,Object.getOwnPropertyDescriptor(J,P))})}return F}var m=new Set(["get","put","post","patch","head","delete","options","upload","download"]),_=new Set(["urlencoded","json","utf8"]),w=new Set(["raw","multipart"]),x="ionic-",T=new Set(["desktop","mobileweb","pwa"]),R=new Set(["FormData"]),k=new Set,C=new Set(["string"]),M=new Set(["string","array"]),b={utf8:C,urlencoded:new Set(["object"]),json:new Set(["array","object"]),raw:new Set(["Uint8Array","ArrayBuffer"]),default:k};function E(F,Z,J){if(typeof Z!="string")throw new Error("".concat(J," must be one of: ").concat((0,f.default)(F).join(", ")));if(Z=Z.trim().toLowerCase(),!F.has(Z))throw new Error("".concat(J," must be one of: ").concat((0,f.default)(F).join(", ")));return Z}function I(F,Z,J){if((0,d.default)(F)!=="object")throw new Error(J);for(var P=0,L=Object.keys(F);P<L.length;P++){var H=L[P];if(!Z.has((0,d.default)(F[H])))throw new Error(J)}return F}function A(F,Z){var J=new URL(F),P=J.host;return Z.getHeaders(P)||null}function $(F,Z){return v(v({},F),Z)}function N(F,Z,J){var P=J.getHeaders("*")||{},L=A(F,J)||{};return $($(P,L),Z)}function O(F,Z){return Z?encodeURIComponent(F):F}function D(F,Z,J){return F.length?J?"".concat(encodeURIComponent(F),"[").concat(encodeURIComponent(Z),"]"):"".concat(F,"[").concat(Z,"]"):J?encodeURIComponent(Z):Z}function j(F,Z,J){var P=[],L=h(Z),H;try{for(L.s();!(H=L.n()).done;){var Y=H.value;if(Array.isArray(Y)){P.push(j("".concat(F,"[]"),Y,J));continue}else if((0,d.default)(Y)==="object"){P.push(q("".concat(F,"[]").concat(Y),J,void 0));continue}P.push("".concat(D(F,"",J),"=").concat(O(Y,J)))}}catch(K){L.e(K)}finally{L.f()}return P.join("&")}function q(F,Z,J){var P=[];for(var L in Z)if(Z.hasOwnProperty(L)){var H=F.length?"".concat(F,"[").concat(L,"]"):L;if(Array.isArray(Z[L])){P.push(j(H,Z[L],J));continue}else if((0,d.default)(Z[L])==="object"&&Z[L]!==null){P.push(q(H,Z[L],J));continue}P.push("".concat(D(F,L,J),"=").concat(O(Z[L],J)))}return P.join("&")}function oe(F,Z){return q("",F,Z)}function ue(F,Z){if(!F.length||!Z.length)return F;var J=new URL(F),P=J.host,L=J.pathname,H=J.search,Y=J.hash,K=J.protocol;return"".concat(K,"//").concat(P).concat(L).concat(H.length?"".concat(H,"&").concat(Z):"?".concat(Z)).concat(Y)}function Se(F){return b[F]||b.default}function ke(F){return F==="multipart"?R:k}function Fe(F,Z){var J=(0,d.default)(F),P=Se(Z),L=ke(Z);if(L.size>0){var H=!1;if(L.forEach(function(Y){c.g[Y]&&F instanceof c.g[Y]&&(H=!0)}),!H)throw new Error("INSTANCE_TYPE_MISMATCH_DATA ".concat((0,f.default)(L).join(", ")))}if(L.size===0&&!P.has(J))throw new Error("TYPE_MISMATCH_DATA ".concat((0,f.default)(P).join(", ")));return Z==="utf8"?F:JSON.stringify(F,void 0,2)}function V(F,Z){F=F||{};var J,P=F.data;
29try{J=E(_,F.serializer||Z.getDataSerializer(),"serializer / data payload type")}catch{J=E(w,F.serializer||Z.getDataSerializer(),"serializer / data payload type"),P={}}return{data:P,filePath:F.filePath,followRedirect:F.followRedirect,headers:I(F.headers||{},C,"Invalid header type, must be string"),method:E(m,F.method||m[0],"method"),name:F.name,params:I(F.params||{},M,"Invalid param, must be of type string or array"),responseType:F.responseType,serializer:J,connectTimeout:F.connectTimeout,readTimeout:F.readTimeout,timeout:F.timeout}}var Q=0;function X(F){var Z,J,P,L=F.addRequest,H=F.addResponse,Y=F.isIgnored,K=(Z=window.cordova)===null||Z===void 0||(J=Z.plugin)===null||J===void 0?void 0:J.http,ee={},se=!1;if(typeof K>"u")return function(){};var z=(P=window.ionic)===null||P===void 0?void 0:P.platforms;if(typeof z<"u"&&typeof z.some=="function"&&z.some(function(re){return T.has(re)}))return function(){};var ne=K.sendRequest,W=(0,p.default)(function(re,te,he){if(!Y("".concat(x).concat(he)))try{var be={url:re.url||"",status:re.status<600&&re.status>=100?re.status:0,headers:re.headers||{},body:te?re.data:re.error,method:ee[he].toUpperCase()};H("".concat(x).concat(he),be)}catch(Ge){var xe={url:re.url||"",status:re.status<600&&re.status>=100?re.status:0,headers:re.headers||{},body:"LogRocket fetch error: ".concat(Ge.message),method:ee[he].toUpperCase()};H("".concat(x).concat(he),xe)}});return K.sendRequest=function(re,te,he,be){var xe=++Q,Ge=function(cn){se||(W(cn,!0,xe),delete ee[xe]),he(cn)},tt=function(cn){se||(W(cn,!1,xe),delete ee[xe]),be(cn)};if(!se)try{var ut=V(te,K),Ot=ue(re,q("",ut.params,!0)),In=N(re,ut.headers,K),an=ut.method||"get";ee[xe]=an;var hi={url:Ot,method:an.toUpperCase(),headers:In||{},body:Fe(ut.data||{},ut.serializer),initiatorType:"IONIC"};L("".concat(x).concat(xe),hi)}catch(Xt){var vu={url:re,method:(te.method||"get").toUpperCase(),headers:{},body:"LogRocket fetch error: ".concat(Xt.message),initiatorType:"IONIC"};L("".concat(x).concat(xe),vu)}return ne(re,te,Ge,tt)},function(){se=!0,K.sendRequest=ne,ee={}}}}),
29"./packages/@logrocket/network/src/registerNetworkInformation.js":(function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=l;var c={"slow-2g":"SLOW2G","2g":"TWOG","3g":"THREEG","4g":"FOURG"};function l(u){var d=void 0;function f(){var p={online:window.navigator.onLine,effectiveType:"UNKOWN"};window.navigator.onLine?window.navigator.connection&&window.navigator.connection.effectiveType&&(p.effectiveType=c[window.navigator.connection.effectiveType]||"UNKNOWN"):p.effectiveType="NONE",!(d&&p.online===d.online&&p.effectiveType===d.effectiveType)&&(d=p,u.addEvent("lr.network.NetworkStatusEvent",function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=h.isEnabled,S=g===void 0?!0:g;return S?p:null}))}return setTimeout(f),window.navigator.connection&&typeof window.navigator.connection.addEventListener=="function"&&window.navigator.connection.addEventListener("change",f),window.addEventListener("online",f),window.addEventListener("offline",f),function(){window.removeEventListener("offline",f),window.removeEventListener("online",f),window.navigator.connection&&typeof window.navigator.connection.removeEventListener=="function"&&window.navigator.connection.removeEventListener("change",f)}}}),
29"./packages/@logrocket/network/src/registerXHR.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.setActive=v,a.default=_;var u=l(c("./packages/@logrocket/utils/src/mapValues.ts")),d=l(c("./packages/@logrocket/utils/src/enhanceFunc.ts")),f=l(c("./packages/@logrocket/utils/src/protectFunc.ts")),p=l(c("./packages/@logrocket/utils/src/startsWith.js")),h=c("./packages/@logrocket/utils/src/constants/nps.js"),g=c("./packages/@logrocket/utils/src/constants/statusCodes.ts"),S=c("./packages/@logrocket/utils/src/parseRawHeaders.ts"),y=!0;function v(w){y=w}var m=0;function _(w){var x=w.addRequest,T=w.addResponse,R=w.isIgnored,k=w.logger,C=w.shouldAugmentNPS,M=C===void 0?!0:C,b=w.shouldParseXHRBlob,E=b===void 0?!1:b,I=XMLHttpRequest,A=new WeakMap,$=!1,N="xhr-";return window._lrXMLHttpRequest=XMLHttpRequest,XMLHttpRequest=function(D,j){var q=new I(D,j);if(!y)return q;A.set(q,{xhrId:++m,requestHeaders:{},sent:!1,done:!1});var oe=q.open;function ue(){for(var Q=arguments.length,X=new Array(Q),F=0;F<Q;F++)X[F]=arguments[F];try{var Z=X[1];if(window.URL&&typeof window.URL=="function"&&Z.search(h.WOOTRIC_RESPONSES_REGEX)===0){var J=new window.URL(k.recordingURL);J.searchParams.set("nps","wootric");var P=new window.URL(Z),L=P.searchParams.get("response[text]"),H=L?"".concat(L,` 30 31`):"";P.searchParams.set("response[text]","".concat(H,"<").concat(J.href,"|View LogRocket session>")),X[1]=P.href}}catch{}return oe.apply(this,X)}var Se=q.send;function ke(){for(var Q=arguments.length,X=new Array(Q),F=0;F<Q;F++)X[F]=arguments[F];try{var Z=A.get(q);if(window.URL&&typeof window.URL=="function"&&Z&&Z.url&&Z.url.search(h.DELIGHTED_RESPONSES_REGEX)===0&&X.length&&X[0].indexOf(h.DELIGHTED_FEEDBACK_PREFIX)!==-1){var J=new window.URL(k.recordingURL);J.searchParams.set("nps","delighted");var P=encodeURIComponent(J.href),L=X[0].split("&").map(function(H){if((0,p.default)(H,h.DELIGHTED_FEEDBACK_PREFIX)){var Y=H===h.DELIGHTED_FEEDBACK_PREFIX;return"".concat(H).concat(Y?"":` 32 33`,"<").concat(P,"|View LogRocket session>")}return H}).join("&");X[0]=L}}catch{}return Se.apply(this,X)}M&&(q.open=ue,q.send=ke);var Fe=function(){var X;if(!$){var F=A.get(q);if(!(!F||R("".concat(N).concat(F.xhrId)))&&!(!F.sent||!F.done)){var Z=F.status||g.XHR_CUSTOM_STATUS_CODES.error;Z===g.XHR_CUSTOM_STATUS_CODES.error&&((X=window.navigator)===null||X===void 0?void 0:X.onLine)===!1&&(Z=g.XHR_CUSTOM_STATUS_CODES.offline);var J={url:F.url,status:Z,headers:F.responseHeaders,body:F.responseBody,method:(F.method||"").toUpperCase()};if(E&&J.body instanceof Blob){var P=new FileReader;P.readAsText(J.body),P.onload=function(){try{J.body=JSON.parse(P.result)}catch{}T("".concat(N).concat(F.xhrId),J)}}else T("".concat(N).concat(F.xhrId),J)}}};(0,d.default)(q,"open",(0,f.default)(function(Q,X){if(!$){var F=A.get(q);F.method=Q,F.url=X}})),(0,d.default)(q,"send",(0,f.default)(function(Q){if(!$){var X=A.get(q);if(X){var F={url:X.url,method:X.method&&X.method.toUpperCase(),headers:(0,u.default)(X.requestHeaders||{},function(Z){return Z.join(", ")}),body:Q,initiatorType:"XHR"};x("".concat(N).concat(X.xhrId),F),X.sent=!0,Fe()}}})),(0,d.default)(q,"setRequestHeader",(0,f.default)(function(Q,X){if(!$){var F=A.get(q);F&&(F.requestHeaders=F.requestHeaders||{},F.requestHeaders[Q]=F.requestHeaders[Q]||[],F.requestHeaders[Q].push(X))}}));var V={readystatechange:(0,f.default)(function(){if(!$&&q.readyState===4){var Q=A.get(q);if(!Q||R("".concat(N).concat(Q.xhrId)))return;var X=q.getAllResponseHeaders()||"";Q.responseHeaders=(0,S.parseRawHeaders)(X);var F;try{switch(q.responseType){case"json":F=k._shouldCloneResponse?JSON.parse(JSON.stringify(q.response)):q.response;break;case"arraybuffer":case"blob":{E?F=q.response:F="LogRocket skipped consuming a binary body.";break}case"document":{F=q.responseXML;break}case"text":case"":{F=q.responseText;break}default:F=""}}catch{F="LogRocket: Error accessing response."}Q.responseBody=F,Q.status=q.status,Q.done=!0}}),abort:(0,f.default)(function(){var Q=A.get(q);Q&&(Q.status=g.XHR_CUSTOM_STATUS_CODES.aborted)}),timeout:(0,f.default)(function(){var Q=A.get(q);Q&&(Q.status=g.XHR_CUSTOM_STATUS_CODES.timeout)}),loadend:(0,f.default)(function(){Fe()})};
33return Object.keys(V).forEach(function(Q){q.addEventListener(Q,V[Q])}),q},XMLHttpRequest.prototype=I.prototype,["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"].forEach(function(O){XMLHttpRequest[O]=I[O]}),function(){$=!0,XMLHttpRequest=I}}}),
33"./packages/@logrocket/now/src/index.js":(function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=Date.now.bind(Date),l=c(),u=typeof performance<"u"&&performance.now?performance.now.bind(performance):function(){return c()-l};a.default=u}),
33"./packages/@logrocket/redux/src/createEnhancer.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=g;var u=l(c("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=l(c("./packages/@logrocket/now/src/index.js"));function f(S,y){var v=Object.keys(S);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(S);y&&(m=m.filter(function(_){return Object.getOwnPropertyDescriptor(S,_).enumerable})),v.push.apply(v,m)}return v}function p(S){for(var y=1;y<arguments.length;y++){var v=arguments[y]!=null?arguments[y]:{};y%2?f(Object(v),!0).forEach(function(m){(0,u.default)(S,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(v)):f(Object(v)).forEach(function(m){Object.defineProperty(S,m,Object.getOwnPropertyDescriptor(v,m))})}return S}var h=0;function g(S){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=y.stateSanitizer,m=v===void 0?function(x){return x}:v,_=y.actionSanitizer,w=_===void 0?function(x){return x}:_;return function(x){return function(T,R,k){var C=x(T,R,k),M=C.dispatch,b=h++;S.addEvent("lr.redux.InitialState",function(){var I;try{I=m(C.getState())}catch(A){console.error(A.toString())}return{state:I,storeId:b}});var E=function(A){var $=(0,d.default)(),N,O;try{O=M(A)}catch(j){N=j}finally{var D=(0,d.default)()-$;S.addEvent("lr.redux.ReduxAction",function(){var j=null,q=null;
33try{j=m(C.getState()),q=w(A)}catch(oe){console.error(oe.toString())}return j&&q?{storeId:b,action:q,duration:D,stateDelta:j}:null})}if(N)throw N;return O};return p(p({},C),{},{dispatch:E})}}}}),
33"./packages/@logrocket/redux/src/createMiddleware.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=f;var u=l(c("./packages/@logrocket/now/src/index.js")),d=0;function f(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=h.stateSanitizer,S=g===void 0?function(m){return m}:g,y=h.actionSanitizer,v=y===void 0?function(m){return m}:y;return function(m){var _=d++;return p.addEvent("lr.redux.InitialState",function(){var w;try{w=S(m.getState())}catch(x){console.error(x.toString())}return{state:w,storeId:_}}),function(w){return function(x){var T=(0,u.default)(),R,k;try{k=w(x)}catch(M){R=M}finally{var C=(0,u.default)()-T;p.addEvent("lr.redux.ReduxAction",function(){var M=null,b=null;try{M=S(m.getState()),b=v(x)}catch(E){console.error(E.toString())}return M&&b?{storeId:_,action:b,duration:C,stateDelta:M}:null})}if(R)throw R;return k}}}}}),
33"./packages/@logrocket/redux/src/index.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"createEnhancer",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(a,"createMiddleware",{enumerable:!0,get:function(){return d.default}});var u=l(c("./packages/@logrocket/redux/src/createEnhancer.js")),d=l(c("./packages/@logrocket/redux/src/createMiddleware.js"))}),
33"./packages/@logrocket/utils/src/TraceKit.js":(function(o,a,c){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l={collectWindowErrors:!0,debug:!1},u=typeof window<"u"?window:typeof c.g<"u"?c.g:typeof self<"u"?self:{},d=[].slice,f="?",p=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function h(){return typeof document>"u"||typeof document.location>"u"?"":document.location.href}l.report=(function(){var y=[],v=null,m=null,_=null;function w($){b(),y.push($)}function x($){for(var N=y.length-1;N>=0;--N)y[N]===$&&y.splice(N,1)}function T(){E(),y=[]}function R($,N){var O=null;if(!(N&&!l.collectWindowErrors)){for(var D in y)if(y.hasOwnProperty(D))try{y[D].apply(null,[$].concat(d.call(arguments,2)))}catch(j){O=j}if(O)throw O}}var k,C;function M($,N,O,D,j){var q=null;if(_)l.computeStackTrace.augmentStackTraceWithInitialElement(_,N,O,$),I();else if(j)q=l.computeStackTrace(j),R(q,!0);else{var oe={url:N,line:O,column:D},ue=void 0,Se=$,ke;if({}.toString.call($)==="[object String]"){var ke=$.match(p);ke&&(ue=ke[1],Se=ke[2])}oe.func=f,q={name:ue,message:Se,url:h(),stack:[oe]},R(q,!0)}return k?k.apply(this,arguments):!1}function b(){C||(k=u.onerror,u.onerror=M,C=!0)}function E(){C&&(u.onerror=k,C=!1,k=void 0)}function I(){var $=_,N=v;v=null,_=null,m=null,R.apply(null,[$,!1].concat(N))}function A($,N){var O=d.call(arguments,1);if(_){if(m===$)return;I()}var D=l.computeStackTrace($);if(_=D,m=$,v=O,setTimeout(function(){m===$&&I()},D.incomplete?2e3:0),N!==!1)throw $}return A.subscribe=w,A.unsubscribe=x,A.uninstall=T,A})(),l.computeStackTrace=(function(){function y(w){if(!(typeof w.stack>"u"||!w.stack)){var x=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,T=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,R=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,k=w.stack.split(` 34`),C=[],M,b;/^(.*) is undefined$/.exec(w.message);for(var E=0,I=k.length;E<I;++E){if(M=x.exec(k[E])){var A=M[2]&&M[2].indexOf("native")!==-1;b={url:A?null:M[2],func:M[1]||f,args:A?[M[2]]:[],line:M[3]?+M[3]:null,column:M[4]?+M[4]:null}}else if(M=R.exec(k[E]))b={url:M[2],func:M[1]||f,args:[],line:+M[3],column:M[4]?+M[4]:null};else if(M=T.exec(k[E]))b={url:M[3],func:M[1]||f,args:M[2]?M[2].split(","):[],line:M[4]?+M[4]:null,column:M[5]?+M[5]:null};else continue;!b.func&&b.line&&(b.func=f),C.push(b)}return C.length?(!C[0].column&&typeof w.columnNumber<"u"&&(C[0].column=w.columnNumber+1),{name:w.name,message:w.message,url:h(),stack:C}):null}}function v(w,x,T,R){var k={url:x,line:T};if(k.url&&k.line){if(w.incomplete=!1,k.func||(k.func=f),w.stack.length>0&&w.stack[0].url===k.url){if(w.stack[0].line===k.line)return!1;if(!w.stack[0].line&&w.stack[0].func===k.func)return w.stack[0].line=k.line,!1}return w.stack.unshift(k),w.partial=!0,!0}else w.incomplete=!0;return!1}function m(w,x){for(var T=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,R=[],k={},C=!1,M,b,E=m.caller;E&&!C;E=E.caller)if(!(E===_||E===l.report)){if(b={url:null,func:f,line:null,column:null},E.name?b.func=E.name:(M=T.exec(E.toString()))&&(b.func=M[1]),typeof b.func>"u")try{b.func=M.input.substring(0,M.input.indexOf("{"))}catch{}k[""+E]?C=!0:k[""+E]=!0,R.push(b)}x&&R.splice(0,x);var I={name:w.name,message:w.message,url:h(),stack:R};return v(I,w.sourceURL||w.fileName,w.line||w.lineNumber,w.message||w.description),I}function _(w,x){var T=null;x=x==null?0:+x;try{if(T=y(w),T)return T}catch(R){if(l.debug)throw R}try{if(T=m(w,x+1),T)return T}catch(R){if(l.debug)throw R}return{name:w.name,message:w.message,url:h()}}return _.augmentStackTraceWithInitialElement=v,_.computeStackTraceFromStackProp=y,_})();var g=l;a.default=g}),
34"./packages/@logrocket/utils/src/constants/nps.js":(function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.DELIGHTED_FEEDBACK_PREFIX=a.DELIGHTED_RESPONSES_REGEX=a.WOOTRIC_RESPONSES_REGEX=void 0;var c=/^https:\/\/production.wootric.com\/responses/;a.WOOTRIC_RESPONSES_REGEX=c;var l=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/;a.DELIGHTED_RESPONSES_REGEX=l;var u="comment=";a.DELIGHTED_FEEDBACK_PREFIX=u}),
34"./packages/@logrocket/utils/src/constants/statusCodes.ts":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.getStatusText=g,a.XHR_CUSTOM_FAILURE_STATUSES=a.XHR_CUSTOM_STATUS_CODES=a.STATUS_CODES=void 0;var u=l(c("./node_modules/@babel/runtime/helpers/defineProperty.js")),d,f={0:"",100:"Continue",101:"Switching Protocol",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"unused",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"};a.STATUS_CODES=f;var p={error:0,timeout:444,aborted:499,offline:1001};a.XHR_CUSTOM_STATUS_CODES=p;var h=(d={},(0,u.default)(d,p.error,"Error"),(0,u.default)(d,p.timeout,"Timeout"),(0,u.default)(d,p.aborted,"Aborted"),(0,u.default)(d,p.offline,"Offline"),d);a.XHR_CUSTOM_FAILURE_STATUSES=h;function g(S){return f[String(S)]}}),
34"./packages/@logrocket/utils/src/createUnsubListener.ts":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.createUnsubListener=p,a.Handler=void 0;var u=l(c("./node_modules/@babel/runtime/helpers/classCallCheck.js")),d=l(c("./node_modules/@babel/runtime/helpers/createClass.js")),f=(function(){function h(g){(0,u.default)(this,h),this._value=void 0,this._value=g}return(0,d.default)(h,[{key:"get",value:function(){return this._value}},{key:"clear",value:function(){this._value=void 0}}]),h})();a.Handler=f;function p(h){return function(){h.clear()}}}),
34"./packages/@logrocket/utils/src/enhanceFunc.ts":(function(o,a,c){Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;var l=c("./packages/@logrocket/utils/src/createUnsubListener.ts"),u=function(){};function d(f,p,h){if(typeof f[p]!="function")return u;try{var g=function(){for(var m,_=arguments.length,w=new Array(_),x=0;x<_;x++)w[x]=arguments[x];var T=S.apply(this,w);return(m=y.get())===null||m===void 0||m.apply(this,w),T},S=f[p],y=new l.Handler(h);return f[p]=g,function(){y.clear(),f[p]===g&&(f[p]=S)}}catch{return u}}}),
34"./packages/@logrocket/utils/src/logError.js":(function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=typeof console<"u"&&console.error&&console.error.bind,l=c?console.error.bind(console):function(){},u=l;a.default=u}),
34"./packages/@logrocket/utils/src/mapValues.ts":(function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=c;function c(l,u){if(l==null)return{};var d={};return Object.keys(l).forEach(function(f){d[f]=u(l[f])}),d}}),
34"./packages/@logrocket/utils/src/parseRawHeaders.ts":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.parseRawHeaders=void 0;var u=l(c("./node_modules/@babel/runtime/helpers/defineProperty.js"));function d(h,g){var S=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);g&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),S.push.apply(S,y)}return S}function f(h){for(var g=1;g<arguments.length;g++){var S=arguments[g]!=null?arguments[g]:{};g%2?d(Object(S),!0).forEach(function(y){(0,u.default)(h,y,S[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(S)):d(Object(S)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(S,y))})}return h}var p=function(g){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return g.split(/[\r\n]+/).reduce(function(y,v){var m=v.indexOf(":"),_=v.substring(0,m),w=v.substring(m+1).trim(),x=S.lowerCaseKeys?_.toLowerCase():_;return f(f({},y),{},(0,u.default)({},x,typeof y[_]=="string"?"".concat(y[_],", ").concat(w):w))},{})};a.parseRawHeaders=p}),
34"./packages/@logrocket/utils/src/protectFunc.ts":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=f;var u=l(c("./packages/@logrocket/utils/src/sendTelemetryData.js")),d=l(c("./packages/@logrocket/utils/src/logError.js"));function f(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};return function(){var g;try{g=p.apply(void 0,arguments)}catch(y){if(typeof window<"u"&&window._lrdebug)throw y;var S=h(y);(0,d.default)("LogRocket",y),(0,u.default)(y,S)}return g}}}),
34"./packages/@logrocket/utils/src/scrubException.ts":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.scrubException=y;var u=l(c("./node_modules/@babel/runtime/helpers/typeof.js"));function d(v,m){var _=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!_){if(Array.isArray(v)||(_=f(v))||m){_&&(v=_);var w=0,x=function(){};return{s:x,n:function(){return w>=v.length?{done:!0}:{done:!1,value:v[w++]}},e:function(M){throw M},f:x}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 35In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,R=!1,k;return{s:function(){_=_.call(v)},n:function(){var M=_.next();return T=M.done,M},e:function(M){R=!0,k=M},f:function(){try{!T&&_.return!=null&&_.return()}finally{if(R)throw k}}}}function f(v,m){if(v){if(typeof v=="string")return p(v,m);var _=Object.prototype.toString.call(v).slice(8,-1);if(_==="Object"&&v.constructor&&(_=v.constructor.name),_==="Map"||_==="Set")return Array.from(v);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return p(v,m)}}function p(v,m){(m==null||m>v.length)&&(m=v.length);for(var _=0,w=new Array(m);_<m;_++)w[_]=v[_];return w}function h(v){return/boolean|number|string/.test((0,u.default)(v))}var g=["level","logger"],S=["tags","extra"];function y(v,m){if(m){var _=d(g),w;try{for(_.s();!(w=_.n()).done;){var x=w.value,T=m[x];h(T)&&(v[x]=T.toString())}}catch(N){_.e(N)}finally{_.f()}var R=d(S),k;try{for(R.s();!(k=R.n()).done;){for(var C=k.value,M=m[C]||{},b={},E=0,I=Object.keys(M);E<I.length;E++){var A=I[E],$=M[A];h($)&&(b[A.toString()]=$.toString())}v[C]=b}}catch(N){R.e(N)}finally{R.f()}}}}),
35"./packages/@logrocket/utils/src/sendTelemetryData.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.sendTelemetry=y,a.default=v;var u=l(c("./node_modules/@babel/runtime/helpers/defineProperty.js")),d=l(c("./packages/@logrocket/utils/src/logError.js")),f=l(c("./packages/@logrocket/utils/src/TraceKit.js"));function p(m,_){var w=Object.keys(m);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(m);_&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(m,T).enumerable})),w.push.apply(w,x)}return w}function h(m){for(var _=1;_<arguments.length;_++){var w=arguments[_]!=null?arguments[_]:{};_%2?p(Object(w),!0).forEach(function(x){(0,u.default)(m,x,w[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(w)):p(Object(w)).forEach(function(x){Object.defineProperty(m,x,Object.getOwnPropertyDescriptor(w,x))})}return m}var g="c6f6e11c10b0c0daa2223c3bf1ca4f7e01fd93d1";function S(m){try{var _,w,x=m.message,T="https://e.logrocket.com/api/3/store/?sentry_version=7&sentry_client=http%2F3.8.0&sentry_key=b64162b4187a4c5caae8a68a7e291793",R=JSON.stringify(h({message:x,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":typeof navigator<"u"&&navigator.userAgent},url:typeof location<"u"&&location.href},release:g,environment:typeof window<"u"&&(_=(w=window.__SDKCONFIG__)===null||w===void 0?void 0:w.scriptEnv)!==null&&_!==void 0?_:"prod"},m));if(typeof window<"u"){var k=window._lrXMLHttpRequest||XMLHttpRequest,C=new k;C.open("POST",T),C.send(R)}else typeof fetch<"u"&&fetch(T,{method:"POST",body:R}).catch(function(M){(0,d.default)("Failed to send via fetch",M)})}catch(M){(0,d.default)("Failed to send",M)}}function y(m,_){if(typeof window<"u"&&window._lrdebug)return void(0,d.default)(m);_&&_.extra&&_.extra.appID&&typeof _.extra.appID.indexOf=="function"&&_.extra.appID.indexOf("au2drp/")===0&&Math.random()>=.25||S(h({message:m},_))}function v(m,_){try{var w=m.message,x;try{x=JSON.stringify(_).slice(0,1e3)}catch{try{x="Could not stringify payload: ".concat(Object.prototype.toString.call(_))}catch{}}var T;try{T=f.default.computeStackTrace(m).stack.map(function(R){return{filename:R.url,lineno:R.line,colno:R.column,function:R.func||"?"}})}catch{}S({message:w,extra:{stringPayload:x},exception:{values:[{type:m.type,value:w,stacktrace:{frames:T}}]}})}catch(R){(0,d.default)("Failed to send",R)}}}),
35"./packages/@logrocket/utils/src/startsWith.js":(function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=c;function c(l,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return l&&u&&l.substring(d,d+u.length)===u}}),
35"./packages/logrocket/src/LogRocket.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.MAX_QUEUE_SIZE=void 0;var u=l(c("./node_modules/@babel/runtime/helpers/classCallCheck.js")),d=l(c("./node_modules/@babel/runtime/helpers/createClass.js")),f=l(c("./node_modules/@babel/runtime/helpers/defineProperty.js")),p=l(c("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),h=l(c("./packages/@logrocket/network/src/index.js")),g=c("./packages/@logrocket/exceptions/src/index.js"),S=l(c("./packages/@logrocket/console/src/index.js")),y=c("./packages/@logrocket/redux/src/index.js"),v=l(c("./packages/@logrocket/utils/src/sendTelemetryData.js"));function m(R,k){var C=Object.keys(R);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(R);k&&(M=M.filter(function(b){return Object.getOwnPropertyDescriptor(R,b).enumerable})),C.push.apply(C,M)}return C}function _(R){for(var k=1;k<arguments.length;k++){var C=arguments[k]!=null?arguments[k]:{};k%2?m(Object(C),!0).forEach(function(M){(0,f.default)(R,M,C[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(C)):m(Object(C)).forEach(function(M){Object.defineProperty(R,M,Object.getOwnPropertyDescriptor(C,M))})}return R}var w=1e3;a.MAX_QUEUE_SIZE=w;var x=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=k.ingestServer,M=(0,p.default)(k,["ingestServer"]);return C?_({serverURL:"".concat(C,"/i"),statsURL:"".concat(C,"/s")},M):M},T=(function(){function R(){var k=this;(0,u.default)(this,R),this._buffer=[],["log","info","warn","error","debug"].forEach(function(C){k[C]=function(){for(var M=arguments.length,b=new Array(M),E=0;E<M;E++)b[E]=arguments[E];k.addEvent("lr.core.LogEvent",function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return C==="error"&&I.shouldAggregateConsoleErrors&&g.Capture.captureMessage(k,b[0],b,{},!0),{logLevel:C.toUpperCase(),args:b}},{shouldCaptureStackTrace:!0})}}),this._isInitialized=!1,this._installed=[],window._lr_surl_cb=this.getSessionURL.bind(this)}return(0,d.default)(R,[{key:"addEvent",value:function(C,M){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E=Date.now();this._run(function(I){I.addEvent(C,M,_(_({},b),{},{timeOverride:E}))})}},{key:"onLogger",value:function(C){for(this._logger=C;this._buffer.length>0;){var M=this._buffer.shift();M(this._logger)}}},{key:"_run",value:function(C){if(!this._isDisabled)if(this._logger)C(this._logger);else{if(this._buffer.length>=w){this._isDisabled=!0,console.warn("LogRocket: script did not load. Check that you have a valid network connection."),this.uninstall();return}this._buffer.push(C.bind(this))}}},{key:"_initInternal",value:function(C,M){if(!this._isInitialized){var b,E=M.shouldAugmentNPS,I=E===void 0?!0:E,A=M.shouldParseXHRBlob,$=A===void 0?!1:A,N=M.shouldDetectExceptions,O=N===void 0?!0:N;O&&this._installed.push((0,g.registerExceptions)(this)),this._installed.push((0,h.default)(this,{shouldAugmentNPS:!!I,shouldParseXHRBlob:!!$,isDisabled:(M==null||(b=M.network)===null||b===void 0?void 0:b.isEnabled)===!1})),this._installed.push((0,S.default)(this)),this._isInitialized=!0,this._run(function(D){D.init(C,x(M))})}}},{key:"init",value:function(C){var M,b,E,I,A,$=this,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=((M=window)===null||M===void 0||(b=M.Zone)===null||b===void 0?void 0:b.root)||((E=window)===null||E===void 0||(I=E.Zone)===null||I===void 0||(A=I.current)===null||A===void 0?void 0:A._parent);if(O&&typeof O.run=="function")try{O.run(function(){$._initInternal(C,N)});return}catch(D){console.warn("LogRocket: init failed to escape Angular Zone",D),(0,v.default)(D)}this._initInternal(C,N)}},{key:"start",value:function(){this._run(function(C){C.start()})}},{key:"uninstall",value:function(){this._installed.forEach(function(C){return C()}),this._buffer=[],this._run(function(C){C.uninstall()})}},{key:"identify",value:function(C,M){this._run(function(b){b.identify(C,M)})}},{key:"startNewSession",value:function(){this._run(function(C){C.startNewSession()})}},{key:"track",value:function(C,M){this._run(function(b){b.track(C,M)})}},{key:"getSessionURL",value:function(C){if(typeof C!="function")throw new Error("LogRocket: must pass callback to getSessionURL()");this._run(function(M){M.getSessionURL?M.getSessionURL(C):C(M.recordingURL)})}},{key:"trackScrollEvent",value:function(C){this._logger&&this._logger.trackScrollEvent(C)}},{key:"getVersion",value:function(C){this._run(function(M){C(M.version)})}},{key:"captureMessage",value:function(C){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};g.Capture.captureMessage(this,C,[C],M)}},{key:"captureException",value:function(C){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};g.Capture.captureException(this,C,M)}},{key:"version",get:function(){return this._logger&&this._logger.version}},{key:"sessionURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingID",get:function(){return this._logger&&this._logger.recordingID}},{key:"threadID",get:function(){return this._logger&&this._logger.threadID}},{key:"tabID",get:function(){return this._logger&&this._logger.tabID}},{key:"reduxEnhancer",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,y.createEnhancer)(this,C)}},{key:"reduxMiddleware",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,y.createMiddleware)(this,C)}},{key:"isDisabled",get:function(){return!!(this._isDisabled||this._logger&&this._logger._isDisabled)}}]),R})();a.default=T}),
35"./packages/logrocket/src/makeLogRocket.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=p;var u=l(c("./packages/logrocket/src/LogRocket.js")),d="LogRocket on React Native requires the LogRocket React Native specific SDK. See setup guide here https://docs.logrocket.com/reference/react-native.",f=function(){return{init:function(){},uninstall:function(){},log:function(){},info:function(){},warn:function(){},error:function(){},debug:function(){},addEvent:function(){},identify:function(){},start:function(){},get threadID(){return null},get recordingID(){return null},get recordingURL(){return null},reduxEnhancer:function(){return function(S){return function(){return S.apply(void 0,arguments)}}},reduxMiddleware:function(){return function(){return function(S){return function(y){return S(y)}}}},track:function(){},getSessionURL:function(){},getVersion:function(){},startNewSession:function(){},onLogger:function(){},setClock:function(){},captureMessage:function(){},captureException:function(){}}};function p(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return new u.default};if(typeof navigator<"u"&&navigator.product==="ReactNative")throw new Error(d);if(typeof window<"u"){if(window._disableLogRocket)return g();if(window.MutationObserver&&window.WeakMap){window._lrMutationObserver=window.MutationObserver;var y=S();return h(y),y}}return f()}}),
35"./packages/logrocket/src/setup.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.getDomainsAndEnv=h,a.setupBaseSDKCONFIG=g,a.default=S;var u=l(c("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),d=l(c("./packages/logrocket/src/makeLogRocket.js")),f={"cdn.logrocket.com":"https://r.logrocket.io","cdn.logrocket.io":"https://r.logrocket.io","cdn.lr-ingest.io":"https://r.lr-ingest.io","cdn.lr-in.com":"https://r.lr-in.com","cdn.lr-in-prod.com":"https://r.lr-in-prod.com","cdn.lr-ingest.com":"https://r.lr-ingest.com","cdn.ingest-lr.com":"https://r.ingest-lr.com","cdn.lr-intake.com":"https://r.lr-intake.com","cdn.intake-lr.com":"https://r.intake-lr.com","cdn.logr-ingest.com":"https://r.logr-ingest.com","cdn.lrkt-in.com":"https://r.lrkt-in.com","cdn.lgrckt-in.com":"https://r.lgrckt-in.com","cdn-staging.logrocket.io":"https://staging-i.logrocket.io","cdn-staging.lr-ingest.io":"https://staging-i.lr-ingest.io","cdn-staging.lr-in.com":"https://staging-i.lr-in.com","cdn-staging.lr-in-prod.com":"https://staging-i.lr-in-prod.com","cdn-staging.lr-ingest.com":"https://staging-i.lr-ingest.com","cdn-staging.ingest-lr.com":"https://staging-i.ingest-lr.com","cdn-staging.lr-intake.com":"https://staging-i.lr-intake.com","cdn-staging.intake-lr.com":"https://staging-i.intake-lr.com","cdn-staging.logr-ingest.com":"https://staging-i.logr-ingest.com","cdn-staging.lrkt-in.com":"https://staging-i.lrkt-in.com","cdn-staging.lgrckt-in.com":"https://staging-i.lgrckt-in.com"};function p(y){return y.startsWith("cdn-staging")?"staging":y.startsWith("localhost")?"development":"prod"}function h(y){if(y==="script"||y==="shopify-pixel"){try{var v=document.currentScript,m=v.src.match(/^(https?:\/\/([^\\]+))\/.+$/),_=m&&m[2];if(_&&f[_])return{scriptEnv:p(_),scriptOrigin:m&&m[1],scriptIngest:f[_]}}catch{}return{scriptEnv:"prod",scriptOrigin:"https://cdn.logrocket.io"}}else return{scriptEnv:void 0,scriptOrigin:"https://cdn.lgrckt-in.com",scriptIngest:"https://r.lgrckt-in.com"}}function g(y){typeof window.__SDKCONFIG__>"u"&&(window.__SDKCONFIG__={}),window.__SDKCONFIG__.serverURL="".concat(y,"/i"),window.__SDKCONFIG__.statsURL="".concat(y,"/s")}function S(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=y.enterpriseServer,m=y.sdkVersion,_=m===void 0?"10.1.1":m,w=(0,u.default)(y,["enterpriseServer","sdkVersion"]),x=h(_),T=x.scriptEnv,R=x.scriptOrigin,k=x.scriptIngest,C=w.sdkServer||v,M=w.ingestServer||v||k,b=(0,d.default)(function(){var E=document.createElement("script");M&&(g(M),window.__SDKCONFIG__.scriptEnv=T),C?E.src="".concat(C,"/logger.min.js"):window.__SDKCONFIG__&&window.__SDKCONFIG__.loggerURL?E.src=window.__SDKCONFIG__.loggerURL:window._lrAsyncScript?E.src=window._lrAsyncScript:E.src="".concat(R,"/logger-1.min.js"),E.async=!0,document.head.appendChild(E),E.onload=function(){typeof window._LRLogger=="function"?setTimeout(function(){b.onLogger(new window._LRLogger({sdkVersion:_}))}):(console.warn("LogRocket: script execution has been blocked by a product or service."),b.uninstall())},E.onerror=function(){console.warn("LogRocket: script could not load. Check that you have a valid network connection."),b.uninstall()}});return b}}),
vendor: 245 bytes, line 35
35"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":(function(o){function a(c,l){(l==null||l>c.length)&&(l=c.length);for(var u=0,d=new Array(l);u<l;u++)d[u]=c[u];return d}o.exports=a,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 259 bytes, line 35
35"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function u(d){if(Array.isArray(d))return l(d)}o.exports=u,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 231 bytes, line 35
35"./node_modules/@babel/runtime/helpers/classCallCheck.js":(function(o){function a(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}o.exports=a,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 481 bytes, line 35
35"./node_modules/@babel/runtime/helpers/createClass.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function u(f,p){for(var h=0;h<p.length;h++){var g=p[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,l(g.key),g)}}function d(f,p,h){return p&&u(f.prototype,p),h&&u(f,h),Object.defineProperty(f,"prototype",{writable:!1}),f}o.exports=d,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 334 bytes, line 35
35"./node_modules/@babel/runtime/helpers/defineProperty.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function u(d,f,p){return f=l(f),f in d?Object.defineProperty(d,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[f]=p,d}o.exports=u,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 195 bytes, line 35
35"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":(function(o){function a(c){return c&&c.__esModule?c:{default:c}}o.exports=a,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 243 bytes, line 35
35"./node_modules/@babel/runtime/helpers/iterableToArray.js":(function(o){function a(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}o.exports=a,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 308 bytes, lines 35-36
35"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":(function(o){function a(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 36In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}o.exports=a,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 475 bytes, line 36
36"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");function u(d,f){if(d==null)return{};var p=l(d,f),h,g;if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(d);for(g=0;g<S.length;g++)h=S[g],!(f.indexOf(h)>=0)&&Object.prototype.propertyIsEnumerable.call(d,h)&&(p[h]=d[h])}return p}o.exports=u,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 288 bytes, line 36
36"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":(function(o){function a(c,l){if(c==null)return{};var u={},d=Object.keys(c),f,p;for(p=0;p<d.length;p++)f=d[p],!(l.indexOf(f)>=0)&&(u[f]=c[f]);return u}o.exports=a,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 462 bytes, line 36
36"./node_modules/@babel/runtime/helpers/toConsumableArray.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),u=c("./node_modules/@babel/runtime/helpers/iterableToArray.js"),d=c("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),f=c("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");function p(h){return l(h)||u(h)||d(h)||f()}o.exports=p,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 465 bytes, line 36
36"./node_modules/@babel/runtime/helpers/toPrimitive.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/typeof.js").default;function u(d,f){if(l(d)!=="object"||d===null)return d;var p=d[Symbol.toPrimitive];if(p!==void 0){var h=p.call(d,f||"default");if(l(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(d)}o.exports=u,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 336 bytes, line 36
36"./node_modules/@babel/runtime/helpers/toPropertyKey.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/typeof.js").default,u=c("./node_modules/@babel/runtime/helpers/toPrimitive.js");function d(f){var p=u(f,"string");return l(p)==="symbol"?p:String(p)}o.exports=d,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 447 bytes, line 36
36"./node_modules/@babel/runtime/helpers/typeof.js":(function(o){function a(c){"@babel/helpers - typeof";return o.exports=a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},o.exports.__esModule=!0,o.exports.default=o.exports,a(c)}o.exports=a,o.exports.__esModule=!0,o.exports.default=o.exports}),
vendor: 514 bytes, line 36
36"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":(function(o,a,c){var l=c("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function u(d,f){if(d){if(typeof d=="string")return l(d,f);var p=Object.prototype.toString.call(d).slice(8,-1);if(p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set")return Array.from(d);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return l(d,f)}}o.exports=u,o.exports.__esModule=!0,o.exports.default=o.exports})
36},r={};function s(o){var a=r[o];if(a!==void 0)return a.exports;var c=r[o]={exports:{}};return n[o](c,c.exports,s),c.exports}(function(){s.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})();var i={};return(function(){var o=i;var a=s("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c=a(s("./packages/logrocket/src/setup.js")),l=(0,c.default)(),u=l;o.default=u})(),i=i.default,i})()})})(fd)),fd.exports}var AF=CF();const qh=xF(AF),OF={events:{pattern:/^\/events/,description:"Event pages"}},Wh=e=>Object.values(OF).some(({pattern:t})=>t.test(e));let Vh=!1;const PF=rt(()=>{{const e=Ps();let t=!1;const n=()=>{if(Vl()&&!t&&!Vh){if(typeof qh._isInitialized=="function"&&qh._isInitialized()){Vh=!0,t=!0;return}qh.init("0h0fp9/blavity"),Vh=!0,t=!0}},r=()=>{t&&(t=!1)};Wh(e.path)&&n(),Xy().then(()=>{Wh(e.path)&&n()}),rn(()=>e.path,s=>{Wh(s)?n():r()})}}),zx=()=>{const e=u=>u.trim().toLowerCase(),t=async u=>{const d=new TextEncoder().encode(u);return await crypto.subtle.digest("SHA-256",d)},n=u=>{const d=new Uint8Array(u);let f="";for(let p=0;p<d.byteLength;p++)f+=String.fromCharCode(d[p]);return btoa(f)},r=u=>{const d=new Uint8Array(u);let f="";for(let p=0;p<d.byteLength;p++)f+=d[p].toString(16).padStart(2,"0");return f},s=async u=>{const d=e(u),f=await t(d);return n(f)},i=async u=>{const d=e(u),f=await t(d);return r(f)},o=(u,d,f)=>{if(typeof document>"u")return;const p=new Date(Date.now()+f*864e5);document.cookie=`${u}=${encodeURIComponent(d)}; expires=${p.toUTCString()}; path=/; SameSite=Lax`},a=async u=>{try{const d=e(u),f=await t(d),p=n(f),h=r(f);return o("uid2_hem256",h,30),o("uid2_uid2hash",p,30),o("uid2_sent","true",30),window.htlbid&&window.htlbid.cmd?(window.htlbid.cmd.push(function(){typeof window.htlbid.setUserData=="function"&&window.htlbid.setUserData({hem256:h}),typeof window.htlbid.setTargeting=="function"&&(window.htlbid.setTargeting("hem256",h),window.htlbid.setTargeting("uid2",p)),typeof window.htlbid.setProfileId=="function"&&window.htlbid.setProfileId(p)}),!0):!1}catch{return!1}};return{normalizeEmail:e,generateUID2Hash:s,generateHem256:i,initializeUID2:()=>{if(typeof window>"u")return;const u=p=>new Promise(h=>{let g=0;const S=10,y=500,v=async()=>{if(window.htlbid&&window.htlbid.cmd&&await a(p))return h(!0);g++,g<S?setTimeout(v,y):h(!1)};v()});window.addEventListener("lytics:email:collected",async p=>{p.detail&&p.detail.email&&(localStorage.setItem("lytics_user_email",p.detail.email),await u(p.detail.email))});const d=localStorage.getItem("lytics_user_email");d&&u(d);const f=document.cookie.match(/(?:^|; )uid2_hem256=([^;]+)/)?.[1];if(f&&!d){const p=(h=0)=>{window.htlbid&&window.htlbid.cmd?window.htlbid.cmd.push(function(){typeof window.htlbid.setUserData=="function"&&window.htlbid.setUserData({hem256:decodeURIComponent(f)})}):h<20&&setTimeout(()=>p(h+1),500)};p()}},setProfileIdWithHashedEmail:async u=>{if(u)try{const d=await s(u);window.jstag&&typeof window.jstag.setProfileID=="function"&&window.jstag.setProfileID(d),await a(u)}catch{}},setUID2ToHashtagLabs:a}},MF=rt(()=>{const{setProfileIdWithHashedEmail:e,setUID2ToHashtagLabs:t}=zx();function n(i){if(i==null||typeof i!="object"||i instanceof ArrayBuffer||i instanceof Uint8Array||typeof Buffer<"u"&&(i instanceof Buffer||Buffer.isBuffer&&Buffer.isBuffer(i)))return!1;const o=Object.getPrototypeOf(i);return o===Object.prototype||o===null}function r(){const i=document.cookie;return{hasSent:i.includes("uid2_sent=true"),hasHemCookie:/(?:^|; )uid2_hem256=/.test(i),hasUid2Cookie:/(?:^|; )uid2_uid2hash=/.test(i),hasSeerid:/(?:^|; )seerid=/.test(i)}}const s=()=>
36{if(typeof window>"u"||!window.jstag)return;window.jstag.config=window.jstag.config||{},window.jstag.config.cookie=window.jstag.config.cookie||{},window.jstag.config.setProfileID=async c=>{try{await t(c)}catch{}};const i=async()=>{try{const{hasSent:c,hasHemCookie:l,hasUid2Cookie:u,hasSeerid:d}=r();if(c&&(l||u)||!d)return;const f=await $fetch("/api/lytics-uid2");f.success&&(f.uid2Hash||f.hem256)&&(window.htlbid&&window.htlbid.cmd&&window.htlbid.cmd.push(function(){f.hem256&&typeof window.htlbid.setUserData=="function"&&window.htlbid.setUserData({hem256:f.hem256}),f.uid2Hash&&(typeof window.htlbid.setProfileId=="function"?window.htlbid.setProfileId(f.uid2Hash):window.htlbid.setTargeting("uid2",f.uid2Hash))}),f.uid2Hash&&(sessionStorage.setItem("uid2_hash",f.uid2Hash),sessionStorage.setItem("uid2_hash_timestamp",Date.now().toString())),document.cookie=`uid2_sent=true; path=/; max-age=${30*86400}; SameSite=Lax`,f.hem256&&(document.cookie=`uid2_hem256=${encodeURIComponent(f.hem256)}; path=/; max-age=${30*86400}; SameSite=Lax`),f.uid2Hash&&(document.cookie=`uid2_uid2hash=${encodeURIComponent(f.uid2Hash)}; path=/; max-age=${30*86400}; SameSite=Lax`))}catch{}};try{const{hasSent:c,hasHemCookie:l,hasUid2Cookie:u,hasSeerid:d}=r();d&&!(c&&(l||u))&&i()}catch{}const o=()=>{const c=sessionStorage.getItem("uid2_hash"),l=sessionStorage.getItem("uid2_hash_timestamp"),u=document.cookie.match(/(?:^|; )uid2_hem256=([^;]+)/)?.[1],d=document.cookie.match(/(?:^|; )uid2_uid2hash=([^;]+)/)?.[1];return u||d?(window.htlbid&&window.htlbid.cmd&&window.htlbid.cmd.push(function(){if(u&&typeof window.htlbid.setUserData=="function"&&window.htlbid.setUserData({hem256:decodeURIComponent(u)}),d){const f=decodeURIComponent(d);typeof window.htlbid.setProfileId=="function"?window.htlbid.setProfileId(f):window.htlbid.setTargeting("uid2",f)}}),!0):c&&l&&Date.now()-parseInt(l)<36e5?(window.htlbid&&window.htlbid.cmd&&window.htlbid.cmd.push(function(){typeof window.htlbid.setProfileId=="function"?window.htlbid.setProfileId(c):window.htlbid.setTargeting("uid2",c)}),!0):!1},a=()=>{if(o())return;let c=window.jstag.getid();if(!c&&typeof window.jstag.getCookie=="function"&&(c=window.jstag.getCookie("seerid")),!c){const l=document.cookie.match(/seerid=([^;]+)/);l&&(c=l[1])}if(typeof window.jstag.getEntity=="function"){let l=!1;setTimeout(async()=>{if(!l){await i();const u=localStorage.getItem("lytics_user_email");u&&e(u)}},3e3),window.jstag.getEntity(async u=>{if(l=!0,!!u)try{let d=null;if(u.data&&n(u.data))if(u.data.email)d=u.data.email;else{const f=["email_address","emailAddress","user_email"];for(const p of f)if(u.data[p]){d=u.data[p];break}}!d&&u.email&&typeof u.email=="string"&&(d=u.email),d&&typeof d=="string"&&await e(d)}catch{}})}else{i();const l=localStorage.getItem("lytics_user_email");l&&e(l)}};typeof window.jstag.on=="function"?window.jstag.on("ready",()=>{a()}):setTimeout(()=>{a()},3e3)};{let i=0;const o=50,a=1e3,c=()=>{window.jstag?s():i<o&&(i++,setTimeout(c,a))};c()}});var G=typeof window<"u"?window:void 0,Wt=typeof globalThis<"u"?globalThis:G;typeof self>"u"&&(Wt.self=Wt),typeof File>"u"&&(Wt.File=function(){});var Mn=Wt?.navigator,fe=Wt?.document,Jt=Wt?.location,Fm=Wt?.fetch,Um=Wt!=null&&Wt.XMLHttpRequest&&"withCredentials"in new Wt.XMLHttpRequest?Wt.XMLHttpRequest:void 0,fw=Wt?.AbortController,LF=Wt?.CompressionStream,En=Mn?.userAgent,we=G??{},pw="1.373.4",_n={DEBUG:!1,LIB_VERSION:pw,LIB_NAME:"web",JS_SDK_VERSION:pw};function hw(e,t,n,r,s,i,o){try{var a=e[i](o),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(r,s)}function Cn(e){return function(){var t=this,n=arguments;return new Promise((function(r,s){var i=e.apply(t,n);function o(c){hw(i,r,s,o,a,"next",c)}function a(c){hw(i,r,s,o,a,"throw",c)}o(void 0)}))}}function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(null,arguments)}function Gx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sc,gw=(function(e){return e.GZipJS="gzip-js",e.Base64="base64",e})({}),NF=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],Kx="NativeGzipValidationError",Hm=e=>e.length>=2&&e[0]===31&&e[1]===139,mw=e=>!(!e||typeof e!="object")&&("name"in e?String(e.name):"")==="NotReadableError",$u=e=>
36{var t=new Error("Native gzip produced invalid output: "+e);throw t.name=Kx,t},DF=(function(){var e=Cn((function*(t,n){18>t.size&&$u("too-short");var r=new Uint8Array(yield t.slice(0,10).arrayBuffer());Hm(r)&&r[2]===8||$u("invalid-header");var s=new DataView(yield t.slice(t.size-8).arrayBuffer());s.getUint32(0,!0)!==(o=>{for(var a=(()=>{if(sc)return sc;sc=[];for(var u=0;256>u;u++){for(var d=u,f=0;8>f;f++)d=1&d?3988292384^d>>>1:d>>>1;sc[u]=d>>>0}return sc})(),c=4294967295,l=0;o.length>l;l++)c=a[255&(c^o[l])]^c>>>8;return(4294967295^c)>>>0})(n)&&$u("invalid-crc");var i=n.length>>>0;s.getUint32(4,!0)!==i&&$u("invalid-size")}));return function(t,n){return e.apply(this,arguments)}})();function jm(){return jm=Cn((function*(e,t,n){t===void 0&&(t=!0);try{var r=new TextEncoder().encode(e),s=new CompressionStream("gzip"),i=s.writable.getWriter(),o=i.write(r).then((()=>i.close())).catch((function(){var l=Cn((function*(u){try{yield i.abort(u)}catch{}throw u}));return function(u){return l.apply(this,arguments)}})()),a=new Response(s.readable).blob(),[c]=yield Promise.all([a,o]);return yield DF(c,r),c}catch(l){if(n!=null&&n.rethrow)throw l;return t&&console.error("Failed to gzip compress data",l),null}})),jm.apply(this,arguments)}var $F=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],_w=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return $F.concat(t).some((r=>{var s=r.toLowerCase();return n.indexOf(s)!==-1}))};function je(e,t){return e.indexOf(t)!==-1}var Ap=function(e){return e.trim()},Bm=function(e){return e.replace(/^\$/,"")},Yx=Object.prototype,Xx=Yx.hasOwnProperty,Op=Yx.toString,Ye=Array.isArray||function(e){return Op.call(e)==="[object Array]"},is=e=>typeof e=="function",Pt=e=>e===Object(e)&&!Ye(e),Fo=e=>{if(Pt(e)){for(var t in e)if(Xx.call(e,t))return!1;return!0}return!1},_e=e=>e===void 0,kt=e=>Op.call(e)=="[object String]",pd=e=>kt(e)&&e.trim().length===0,Ms=e=>e===null,Be=e=>_e(e)||Ms(e),Qn=e=>Op.call(e)=="[object Number]"&&e==e,Ao=e=>Qn(e)&&e>0,Pr=e=>Op.call(e)==="[object Boolean]",FF=e=>e instanceof FormData,UF=e=>je(NF,e);function Jx(e){return e===null||typeof e!="object"}function cf(e,t){return{}.toString.call(e)==="[object "+t+"]"}function Jy(e){return typeof Event<"u"&&(function(t,n){try{return t instanceof n}catch{return!1}})(e,Event)}var HF=[!0,"true",1,"1","yes"],zh=e=>je(HF,e),jF=[!1,"false",0,"0","no"];function Mr(e,t,n,r,s){return t>n&&(r.warn("min cannot be greater than max."),t=n),Qn(e)?e>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):t>e?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+s),Mr(s||n,t,n,r))}class BF{constructor(t){this.$t={},this.zt=t.zt,this.Zt=Mr(t.bucketSize,0,100,t.Gt),this.Qt=Mr(t.refillRate,0,this.Zt,t.Gt),this.Jt=Mr(t.refillInterval,0,864e5,t.Gt)}Kt(t,n){var r=Math.floor((n-t.lastAccess)/this.Jt);r>0&&(t.tokens=Math.min(t.tokens+r*this.Qt,this.Zt),t.lastAccess=t.lastAccess+r*this.Jt)}consumeRateLimit(t){var n,r=Date.now(),s=String(t),i=this.$t[s];return i?this.Kt(i,r):this.$t[s]=i={tokens:this.Zt,lastAccess:r},i.tokens===0||(i.tokens--,i.tokens===0&&((n=this.zt)==null||n.call(this,t)),i.tokens===0)}
36stop(){this.$t={}}}var Fu,yw,Gh,Nn="Mobile",lf="iOS",fs="Android",pa="Tablet",Zx=fs+" "+pa,Qx="iPad",eI="Apple",tI=eI+" Watch",Bc="Safari",ha="BlackBerry",nI="Samsung",rI=nI+"Browser",sI=nI+" Internet",qi="Chrome",qF=qi+" OS",iI=qi+" "+lf,Zy="Internet Explorer",oI=Zy+" "+Nn,Qy="Opera",WF=Qy+" Mini",ev="Edge",aI="Microsoft "+ev,na="Firefox",cI=na+" "+lf,gl="Nintendo",ml="PlayStation",ra="Xbox",lI=fs+" "+Nn,uI=Nn+" "+Bc,Ec="Windows",qm=Ec+" Phone",vw="Nokia",Wm="Ouya",dI="Generic",VF=dI+" "+Nn.toLowerCase(),fI=dI+" "+pa.toLowerCase(),Vm="Konqueror",pn="(\\d+(\\.\\d+)?)",Kh=new RegExp("Version/"+pn),zF=new RegExp(ra,"i"),GF=new RegExp(ml+" \\w+","i"),KF=new RegExp(gl+" \\w+","i"),tv=new RegExp(ha+"|PlayBook|BB10","i"),YF={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},pI=function(e,t){return t=t||"",je(e," OPR/")&&je(e,"Mini")?WF:je(e," OPR/")?Qy:tv.test(e)?ha:je(e,"IE"+Nn)||je(e,"WPDesktop")?oI:je(e,rI)?sI:je(e,ev)||je(e,"Edg/")?aI:je(e,"FBIOS")?"Facebook "+Nn:je(e,"UCWEB")||je(e,"UCBrowser")?"UC Browser":je(e,"CriOS")?iI:je(e,"CrMo")||je(e,qi)?qi:je(e,fs)&&je(e,Bc)?lI:je(e,"FxiOS")?cI:je(e.toLowerCase(),Vm.toLowerCase())?Vm:((n,r)=>r&&je(r,eI)||(function(s){return je(s,Bc)&&!je(s,qi)&&!je(s,fs)})(n))(e,t)?je(e,Nn)?uI:Bc:je(e,na)?na:je(e,"MSIE")||je(e,"Trident/")?Zy:je(e,"Gecko")?na:""},XF={[oI]:[new RegExp("rv:"+pn)],[aI]:[new RegExp(ev+"?\\/"+pn)],[qi]:[new RegExp("("+qi+"|CrMo)\\/"+pn)],[iI]:[new RegExp("CriOS\\/"+pn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+pn)],[Bc]:[Kh],[uI]:[Kh],[Qy]:[new RegExp("(Opera|OPR)\\/"+pn)],[na]:[new RegExp(na+"\\/"+pn)],[cI]:[new RegExp("FxiOS\\/"+pn)],[Vm]:[new RegExp("Konqueror[:/]?"+pn,"i")],[ha]:[new RegExp(ha+" "+pn),Kh],[lI]:[new RegExp("android\\s"+pn,"i")],[sI]:[new RegExp(rI+"\\/"+pn)],[Zy]:[new RegExp("(rv:|MSIE )"+pn)],Mozilla:[new RegExp("rv:"+pn)]},JF=function(e,t){var n=pI(e,t),r=XF[n];if(_e(r))return null;for(var s=0;r.length>s;s++){var i=e.match(r[s]);if(i)return parseFloat(i[i.length-2])}return null},bw=[[new RegExp(ra+"; "+ra+" (.*?)[);]","i"),e=>[ra,e&&e[1]||""]],[new RegExp(gl,"i"),[gl,""]],[new RegExp(ml,"i"),[ml,""]],[tv,[ha,""]],[new RegExp(Ec,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[qm,""];if(new RegExp(Nn).test(t)&&!/IEMobile\b/.test(t))return[Ec+" "+Nn,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=YF[n[1]]||"";return/arm/i.test(t)&&(r="RT"),[Ec,r]}return[Ec,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[lf,[e[3],e[4],e[5]||"0"].join(".")]:[lf,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=_e(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+fs+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+fs+")","i"),e=>e&&e[2]?[fs,[e[2],e[3],e[4]||"0"].join(".")]:[fs,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[qF,""]],[/Linux|debian/i,["Linux",""]]],ww=function(e){return KF.test(e)?gl:GF.test(e)?ml:zF.test(e)?ra:new RegExp(Wm,"i").test(e)?Wm:new RegExp("("+qm+"|WPDesktop)","i").test(e)?qm:/iPad/.test(e)?Qx:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?tI:tv.test(e)?ha:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(vw,"i").test(e)?vw:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(Nn).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?fs:Zx:new RegExp("(pda|"+Nn+")","i").test(e)?VF:new RegExp(pa,"i").test(e)&&!new RegExp(pa+" pc","i").test(e)?fI:""},ZF=e=>e instanceof Error,hI={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},QF=hI.info;function gI(e){if(Pr(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Ye(e))return{arrayValue:{values:e.map((t=>gI(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function Sw(e){var t=[];for(var n in e){var r=e[n];Ms(r)||_e(r)||t.push({key:n,value:gI(r)})}return t}function e4(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return Gh&&n.length===yw||(yw=n.length,Gh=n.reduce(((r,s)=>{Fu||(Fu={});var i=Fu[s];if(i)r[i[0]]=i[1];else for(var o=e(s),a=o.length-1;a>=0;a--){var c=o[a],l=c?.filename,u=t[s];if(l&&u){r[l]=u,Fu[s]=[l,u];break}}return r}),{})),Gh}}class t4{constructor(t,n,r){r===void 0&&(r=[]),this.coercers=t,this.stackParser=n,this.modifiers=r}buildFromUnknown(t,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},s=this.buildCoercingContext(r,n,0).apply(t),i=this.buildParsingContext(n),o=this.parseStacktrace(s,i);return{$exception_list:this.convertToExceptionList(o,r),$exception_level:"error"}}modifyFrames(t){var n=this;return Cn((function*(){for(var r of t)r.stacktrace&&r.stacktrace.frames&&Ye(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return t}))()}coerceFallback(t){var n;return{type:"Error",value:"Unknown error",stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(t,n){var r,s;return t.cause!=null&&(r=this.parseStacktrace(t.cause,n)),t.stack!=""&&t.stack!=null&&(s=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?n.skipFirstLines:0),n.chunkIdMap)),ie({},t,{cause:r,stack:s})}applyChunkIds(t,n){return t.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(t,n){for(var r of this.coercers)if(r.match(t))return r.coerce(t,n);return this.coerceFallback(n)}applyModifiers(t){var n=this;return Cn((function*(){var r=t;for(var s of n.modifiers)r=yield s(r);return r}))()}convertToExceptionList(t,n){var r,s,i,o={type:t.type,value:t.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(s=n.handled)===null||s===void 0||s,synthetic:(i=t.synthetic)!==null&&i!==void 0&&i}};t.stack&&(o.stacktrace={type:"raw",frames:t.stack});var a=[o];return t.cause!=null&&a.push(...this.convertToExceptionList(t.cause,ie({},n,{handled:!0}))),a}buildParsingContext(t){var n;return{chunkIdMap:e4(this.stackParser),skipFirstLines:(n=t.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(t,n,r){r===void 0&&(r=0);var s=(i,o)=>
36{if(4>=o){var a=this.buildCoercingContext(t,n,o);return this.applyCoercers(i,a)}};return ie({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:t,apply:i=>s(i,r),next:i=>s(i,r+1)})}}var ga="?";function zm(e,t,n,r,s){var i={platform:e,filename:t,function:n==="<anonymous>"?ga:n,in_app:!0};return _e(r)||(i.lineno=r),_e(s)||(i.colno=s),i}var mI=(e,t)=>{var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ga,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},n4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,r4=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s4=/\((\S*)(?::(\d+))(?::(\d+))\)/,i4=(e,t)=>{var n=n4.exec(e);if(n){var[,r,s,i]=n;return zm(t,r,ga,+s,+i)}var o=r4.exec(e);if(o){if(o[2]&&o[2].indexOf("eval")===0){var a=s4.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[c,l]=mI(o[1]||ga,o[2]);return zm(t,l,c,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},o4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,a4=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c4=(e,t)=>
36{var n=o4.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=a4.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var s=n[3],i=n[1]||ga;return[i,s]=mI(i,s),zm(t,s,i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Ew=/\(error: (.*)\)/;class l4{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,n){var r=kt(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:r?t.stack:void 0,cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var n=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?n+": "+t.message:n}isDOMException(t){return cf(t,"DOMException")}isDOMError(t){return cf(t,"DOMError")}}class u4{match(t){return(n=>n instanceof Error)(t)}coerce(t,n){return{type:this.getType(t),value:this.getMessage(t,n),stack:this.getStack(t),cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,n){var r=t.message;return String(r.error&&typeof r.error.message=="string"?r.error.message:r)}getStack(t){return t.stacktrace||t.stack||void 0}}class d4{constructor(){}match(t){return cf(t,"ErrorEvent")&&t.error!=null}coerce(t,n){var r;return n.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var f4=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class p4{match(t){return typeof t=="string"}coerce(t,n){var r,[s,i]=this.getInfos(t);return{type:s??"Error",value:i??t,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(t){var n="Error",r=t,s=t.match(f4);return s&&(n=s[1],r=s[2]),[n,r]}}var h4=["fatal","error","warning","log","info","debug"];function _I(e,t){t===void 0&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var s=n.slice(0,r).join(", ");if(t>=s.length)return r===n.length?s:s.length>t?s.slice(0,t)+"...":s}return""}class g4{match(t){return typeof t=="object"&&t!==null}coerce(t,n){var r,s=this.getErrorPropertyFromObject(t);return s?n.apply(s):{type:this.getType(t),value:this.getValue(t),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return Jy(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var n="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(n+=" with message: '"+t.message+"'"),n}if("message"in t&&typeof t.message=="string")return t.message;var r=this.getObjectClassName(t);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+_I(t)}isSeverityLevel(t){return kt(t)&&!pd(t)&&h4.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var n in t)if({}.hasOwnProperty.call(t,n)){var r=t[n];if(ZF(r))return r}}getObjectClassName(t){try{var n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{return}}}class m4{match(t){return Jy(t)}coerce(t,n){var r,s=t.constructor.name;return{type:s,value:s+" captured as exception with keys: "+_I(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class _4{match(t){return Jx(t)}coerce(t,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class y4{match(t){return cf(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!Jy(t))return!1;try{var n=t.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(t,n){var r,s=this.getUnhandledRejectionReason(t);return Jx(s)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(s),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(s)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var uf="$message",df="$timestamp",v4=new Set([uf,df]),Yh={enabled:!0,max_bytes:32768};function ff(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:Yh.enabled,max_bytes:w4(e.max_bytes,Yh.max_bytes)}:ie({},Yh)}class b4{constructor(t){this.Yt=[],this.Xt=0,this.qt=ff(t)}setConfig(t){this.qt=ff(t),this.er()}add(t){var n=(function(s){var i=(function(u){var d=new WeakSet;try{return JSON.stringify(u,((f,p)=>
36{if(typeof p=="bigint")return p.toString();if(typeof p!="function"&&typeof p!="symbol"){if(p instanceof Date)return p.toISOString();if(p instanceof Error)return{name:p.name,message:p.message,stack:p.stack};if(p&&typeof p=="object"){if(d.has(p))return"[Circular]";d.add(p)}return p}}))}catch{return}})(s);if(i)try{var o=JSON.parse(i);if(!Pt(o))return;var a=o,c=a[uf],l=a[df];return!kt(c)||c.trim().length===0||!kt(l)&&!Qn(l)?void 0:{step:a,json:i}}catch{return}})(t);if(n){var r=(function(s){if(typeof TextEncoder<"u")return new TextEncoder().encode(s).length;for(var i=encodeURIComponent(s),o=0,a=0;i.length>a;a++)i[a]==="%"?(o+=1,a+=2):o+=1;return o})(n.json);r>this.qt.max_bytes||(this.Yt.push({step:n.step,bytes:r}),this.Xt+=r,this.er())}}getAttachable(){return this.Yt.map((t=>t.step))}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var t=this.Yt.shift();t&&(this.Xt-=t.bytes)}}}function w4(e,t){if(!Qn(e)||e===1/0||e===-1/0)return t;var n=Math.floor(e);return 0>n?t:n}var yI=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,r={k(s){if(G&&(_n.DEBUG||we.POSTHOG_DEBUG||n)&&!_e(G.console)&&G.console){for(var i=("__rrweb_original__"in G.console[s])?G.console[s].__rrweb_original__:G.console[s],o=arguments.length,a=new Array(o>1?o-1:0),c=1;o>c;c++)a[c-1]=arguments[c];i(e,...a)}},debug(){for(var s=arguments.length,i=new Array(s),o=0;s>o;o++)i[o]=arguments[o];r.k("debug",...i)},info(){for(var s=arguments.length,i=new Array(s),o=0;s>o;o++)i[o]=arguments[o];r.k("log",...i)},warn(){for(var s=arguments.length,i=new Array(s),o=0;s>o;o++)i[o]=arguments[o];r.k("warn",...i)},error(){for(var s=arguments.length,i=new Array(s),o=0;s>o;o++)i[o]=arguments[o];r.k("error",...i)},critical(){for(var s=arguments.length,i=new Array(s),o=0;s>o;o++)i[o]=arguments[o];console.error(e,...i)},uninitializedWarning(s){r.error("You must initialize PostHog before calling "+s)},createLogger:(s,i)=>yI(e+" "+s,i)};return r},de=yI("[PostHog.js]"),wt=de.createLogger,S4=wt("[ExternalScriptsLoader]"),Xh=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return S4.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=fe?.querySelectorAll("script");if(r){for(var s,i=function(){if(r[o].src===t){var c=r[o];return c.__posthog_loading_callback_fired?{v:n()}:(c.addEventListener("load",(l=>{c.__posthog_loading_callback_fired=!0,n(void 0,l)})),c.onerror=l=>n(l),{v:void 0})}},o=0;r.length>o;o++)if(s=i())return s.v}var a=()=>{if(!fe)return n("document not found");var c=fe.createElement("script");if(c.type="text/javascript",c.crossOrigin="anonymous",c.src=t,c.onload=d=>{c.__posthog_loading_callback_fired=!0,n(void 0,d)},c.onerror=d=>n(d),e.config.prepare_external_dependency_script&&(c=e.config.prepare_external_dependency_script(c)),!c)return n("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")fe.head.appendChild(c);else{var l,u=fe.querySelectorAll("body > script");u.length>0?(l=u[0].parentNode)==null||l.insertBefore(c,u[0]):fe.body.appendChild(c)}};fe!=null&&fe.body?a():fe?.addEventListener("DOMContentLoaded",a)};we.__PosthogExtensions__=we.__PosthogExtensions__||{},we.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if(t!=="remote-config"){var r;if(e.config.__preview_external_dependency_versioned_paths)r=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var s="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var i=3e5;s=s+"&t="+Math.floor(Date.now()/i)*i}r=e.requestRouter.endpointFor("assets",s)}Xh(e,r,n)}else{var o=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");Xh(e,o,n)}},we.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);Xh(e,r,n)};var vI="$people_distinct_id",pf="$device_id",Tc="__alias",kc="__timers",Gm="$autocapture_disabled_server_side",Km="$heatmaps_enabled_server_side",Ym="$exception_capture_enabled_server_side",Xm="$error_tracking_suppression_rules",Jm="$error_tracking_capture_extension_exceptions",Zm="$web_vitals_enabled_server_side",nv="$dead_clicks_enabled_server_side",Qm="$product_tours_enabled_server_side",e_="$web_vitals_allowed_metrics",xc="$session_recording_remote_config",bI="$replay_override_sampling",wI="$replay_override_linked_flag",SI="$replay_override_url_trigger",EI="$replay_override_event_trigger",hf="$sesid",rv="$session_is_sampled",Uo="$enabled_feature_flags",hd="$active_feature_flags",Ic="$early_access_features",t_="$feature_flag_details",n_="$feature_flag_payloads",r_="$feature_flag_request_id",ts="$override_feature_flags",Oo="$override_feature_flag_payloads",Rc="$stored_person_properties",Ci="$stored_group_properties",s_="$surveys",i_="$surveys_activated",gd="ph_product_tours",qc="$flag_call_reported",o_="$flag_call_reported_session_id",a_="$feature_flag_errors",gf="$feature_flag_evaluated_at",ir="$user_state",c_="$client_session_props",l_="$capture_rate_limit",u_="$initial_campaign_params",d_="$initial_referrer_info",mf="$initial_person_info",_f="$epp",TI="__POSTHOG_TOOLBAR__",Uu="$posthog_cookieless",kI="$sdk_debug_extensions_init_method",xI="$sdk_debug_extensions_init_time_ms",II="$sdk_debug_recording_script_not_loaded",sv="PostHog loadExternalDependency extension not found.",Ai="on_reject",ls="always",_o="anonymous",yo="identified",f_="identified_only",yf="visibilitychange",vf="beforeunload",Po="$pageview",Jh="$pageleave",Zh="$identify",Tw="$groupidentify";function Hu(e,t){Ye(e)&&e.forEach(t)}function _t(e,t){if(!Be(e))if(Ye(e))e.forEach(t);else if(FF(e))e.forEach(((r,s)=>t(r,s)));else for(var n in e)Xx.call(e,n)&&t(e[n],n)}var At=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];for(var s of n)for(var i in s)s[i]!==void 0&&(e[i]=s[i]);return e};function md(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var kw=function(e){try{return e()}catch{return}},E4=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,n)}catch(s){de.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),de.critical(s)}}},iv=function(e){var t={};return _t(e,(function(n,r){(kt(n)&&n.length>0||Qn(n))&&(t[r]=n)})),t},T4=["herokuapp.com","vercel.app","netlify.app"];function k4(e){var t=e?.hostname;if(!kt(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of T4)if(n===r)return!1;return!0}function Dt(e,t,n,r){var{capture:s=!1,passive:i=!0}=r??{};e?.addEventListener(t,n,{capture:s,passive:i})}
36function RI(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Qn(e)&&isFinite(e)&&Math.floor(e)===e});class bf{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,r,s){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(s)||0>t||0>n||0>r||0>s||t>0xffffffffffff||n>4095||r>1073741823||s>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|n>>>8,i[7]=n,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=s>>>24,i[13]=s>>>16,i[14]=s>>>8,i[15]=s,new bf(i)}toString(){for(var t="",n=0;this.bytes.length>n;n++)t=t+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new bf(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var n=0;16>n;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class x4{constructor(){this.S=0,this.C=0,this.I=new I4}generate(){var t=this.generateOrAbort();if(_e(t)){this.S=0;var n=this.generateOrAbort();if(_e(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){var t=Date.now();if(t>this.S)this.S=t,this.T();else{if(this.S>=t+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return bf.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var xw,CI=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};G&&!_e(G.crypto)&&crypto.getRandomValues&&(CI=e=>crypto.getRandomValues(e));class I4{constructor(){this.M=new Uint32Array(8),this.O=1/0}nextUint32(){return this.M.length>this.O||(CI(this.M),this.O=0),this.M[this.O++]}}var Ks=()=>R4().toString(),R4=()=>(xw||(xw=new x4)).generate(),ic="",C4=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Ar={R:()=>!!fe,D(e){de.error("cookieStore error: "+e)},A(e){if(fe){try{for(var t=e+"=",n=fe.cookie.split(";").filter((i=>i.length)),r=0;n.length>r;r++){for(var s=n[r];s.charAt(0)==" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return decodeURIComponent(s.substring(t.length,s.length))}}catch{}return null}},F(e){var t;try{t=JSON.parse(Ar.A(e))||{}}catch{}return t},N(e,t,n,r,s){if(fe)try{var i="",o="",a=(function(u,d){if(d){var f=(function(h,g){if(g===void 0&&(g=fe),ic)return ic;if(!g||["localhost","127.0.0.1"].includes(h))return"";for(var S=h.split("."),y=Math.min(S.length,8),v="dmn_chk_"+Ks();!ic&&y--;){var m=S.slice(y).join("."),_=v+"=1;domain=."+m+";path=/";g.cookie=_+";max-age=3",g.cookie.includes(v)&&(g.cookie=_+";max-age=0",ic=m)}return ic})(u);if(!f){var p=(h=>{var g=h.match(C4);return g?g[0]:""})(u);p!==f&&de.info("Warning: cookie subdomain discovery mismatch",p,f),f=p}return f?"; domain=."+f:""}return""})(fe.location.hostname,r);if(n){var c=new Date;c.setTime(c.getTime()+864e5*n),i="; expires="+c.toUTCString()}s&&(o="; secure");var l=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+a+o;return l.length>3686.4&&de.warn("cookieStore warning: large cookie, len="+l.length),fe.cookie=l,l}catch{return}},q(e,t){if(fe!=null&&fe.cookie)try{Ar.N(e,"",-1,t)}catch{return}}},Qh=null,Tt={R(){if(!Ms(Qh))return Qh;var e=!0;if(_e(G))e=!1;else try{var t="__mplssupport__";Tt.N(t,"xyz"),Tt.A(t)!=='"xyz"'&&(e=!1),Tt.q(t)}catch{e=!1}return e||de.error("localStorage unsupported; falling back to cookie store"),Qh=e,e},D(e){de.error("localStorage error: "+e)},A(e){try{return G?.localStorage.getItem(e)}catch(t){Tt.D(t)}return null},F(e){try{return JSON.parse(Tt.A(e))||{}}catch{}return null},N(e,t){try{G?.localStorage.setItem(e,JSON.stringify(t))}catch(n){Tt.D(n)}},q(e){try{G?.localStorage.removeItem(e)}catch(t){Tt.D(t)}}},A4=[pf,"distinct_id",hf,rv,_f,mf,ir],ju={},O4={R:()=>!0,D(e){de.error("memoryStorage error: "+e)},A:e=>ju[e]||null,F:e=>ju[e]||null,N(e,t){ju[e]=t},q(e){delete ju[e]}},wi=null,Zt={R(){if(!Ms(wi))return wi;if(wi=!0,_e(G))wi=!1;else try{var e="__support__";Zt.N(e,"xyz"),Zt.A(e)!=='"xyz"'&&(wi=!1),Zt.q(e)}catch{wi=!1}return wi},D(e){de.error("sessionStorage error: ",e)},A(e){try{return G?.sessionStorage.getItem(e)}catch(t){Zt.D(t)}return null},F(e){try{return JSON.parse(Zt.A(e))||null}catch{}return null},N(e,t){try{G?.sessionStorage.setItem(e,JSON.stringify(t))}catch(n){Zt.D(n)}},q(e){try{G?.sessionStorage.removeItem(e)}catch(t){Zt.D(t)}}};class P4{constructor(t){this._instance=t}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===ls||this.isRejected()||this.consent===-1&&this.qt.cookieless_mode===Ai}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.qt.opt_out_capturing_by_default}optInOut(t){this.nr.N(this.sr,t?1:0,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;
36return r||(n?n+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.A(this.sr);return zh(t)?1:je(jF,t)?0:-1}get nr(){var t=this.qt.opt_out_capturing_persistence_type,n=t==="localStorage"?Tt:Ar;if(!this.ar||this.ar!==n){this.ar=n;var r=t==="localStorage"?Ar:Tt;r.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(zh(r.A(this.sr))),r.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[Mn?.doNotTrack,Mn?.msDoNotTrack,we.doNotTrack].some((t=>zh(t)))}}var Bu=wt("[Dead Clicks]"),M4=()=>!0,L4=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(nv)),r=e.instance.config.capture_dead_clicks;return Pr(r)?r:!!Pt(r)||n};class Iw{get lazyLoadedDeadClicksAutocapture(){return this.ur}constructor(t,n,r){this.instance=t,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[nv]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.lr((()=>{this.hr()})):this.stop()}lr(t){var n,r;(n=we.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&t(),(r=we.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(s=>{s?Bu.error("failed to load script",s):t()}))}hr(){var t;if(fe){if(!this.ur&&(t=we.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var n=Pt(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.ur=we.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.ur.start(fe),Bu.info("starting...")}}else Bu.error("`document` not found. Cannot start.")}stop(){this.ur&&(this.ur.stop(),this.ur=void 0,Bu.info("stopping..."))}}var eg=wt("[SegmentIntegration]"),AI="posthog-js";function OI(e,t){var{organization:n,projectId:r,prefix:s,severityAllowList:i=["error"],sendExceptionsToPostHog:o=!0}=t===void 0?{}:t;return a=>{var c,l,u,d,f;if(i!=="*"&&!i.includes(a.level)||!e.__loaded)return a;a.tags||(a.tags={});var p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());a.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(a.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var h,g=((c=a.exception)==null?void 0:c.values)||[],S=g.map((v=>ie({},v,{stacktrace:v.stacktrace?ie({},v.stacktrace,{type:"raw",frames:(v.stacktrace.frames||[]).map((m=>ie({},m,{platform:"web:javascript"})))}):void 0}))),y={$exception_message:((l=g[0])==null?void 0:l.value)||a.message,$exception_type:(u=g[0])==null?void 0:u.type,$exception_level:a.level,$exception_list:S,$sentry_event_id:a.event_id,$sentry_exception:a.exception,$sentry_exception_message:((d=g[0])==null?void 0:d.value)||a.message,$sentry_exception_type:(f=g[0])==null?void 0:f.type,$sentry_tags:a.tags};return n&&r&&(y.$sentry_url=(s||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+a.event_id),o&&((h=e.exceptions)==null||h.sendExceptionEvent(y)),a}}class N4{constructor(t,n,r,s,i,o){this.name=AI,this.setupOnce=function(a){a(OI(t,{organization:n,projectId:r,prefix:s,severityAllowList:i,sendExceptionsToPostHog:o==null||o}))}}}class Rw{constructor(t){this.cr=(n,r,s)=>{s&&(s.noSessionId||s.activityTimeout||s.sessionPastMaximumLength)&&(de.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:s}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,n){var r,s=this.gr(t,n);return this.dr={pathname:(r=G?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:t},this._instance.scrollManager.resetContext(),s}doPageLeave(t){var n;return this.gr(t,(n=this.dr)==null?void 0:n.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,n){var r=this.dr;if(!r)return{$pageview_id:n};var s={$pageview_id:n,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:a,maxScrollY:c,maxContentHeight:l,lastContentY:u,maxContentY:d}=i;if(!(_e(o)||_e(a)||_e(c)||_e(l)||_e(u)||_e(d))){o=Math.ceil(o),a=Math.ceil(a),c=Math.ceil(c),l=Math.ceil(l),u=Math.ceil(u),d=Math.ceil(d);var f=o>1?Mr(a/o,0,1,de):1,p=o>1?Mr(c/o,0,1,de):1,h=l>1?Mr(u/l,0,1,de):1,g=l>1?Mr(d/l,0,1,de):1;s=At(s,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:c,$prev_pageview_max_scroll_percentage:p,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:h,$prev_pageview_max_content:d,$prev_pageview_max_content_percentage:g})}}return r.pathname&&(s.$prev_pageview_pathname=r.pathname),r.timestamp&&(s.$prev_pageview_duration=(t.getTime()-r.timestamp.getTime())/1e3),s}}var D4={[vI]:{exposure:"hidden"},[Tc]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[kc]:{exposure:"hidden"},[Gm]:{exposure:"event"},[Km]:{exposure:"hidden"},[Ym]:{exposure:"event"},[Xm]:{exposure:"hidden"},[Jm]:{exposure:"event"},[Zm]:{exposure:"event"},[nv]:{exposure:"event"},[Qm]:{exposure:"hidden"},[e_]:{exposure:"event"},[xc]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[hf]:{exposure:"hidden"},[rv]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[Uo]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Pt(e))return{};for(var t={},n=Object.keys(e),r=0;n.length>r;r++)t["$feature/"+n[r]]=e[n[r]];return t}}
36,[hd]:{exposure:"event"},[Ic]:{exposure:"hidden"},[t_]:{exposure:"hidden"},[n_]:{exposure:"event"},[r_]:{exposure:"event"},[ts]:{exposure:"event"},[Oo]:{exposure:"hidden"},[Rc]:{exposure:"hidden"},[Ci]:{exposure:"hidden"},[s_]:{exposure:"hidden"},[i_]:{exposure:"event"},[gd]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[qc]:{exposure:"hidden"},[o_]:{exposure:"hidden"},[a_]:{exposure:"hidden"},[gf]:{exposure:"hidden"},[ir]:{exposure:"hidden"},[c_]:{exposure:"hidden"},[l_]:{exposure:"hidden"},[u_]:{exposure:"hidden"},[d_]:{exposure:"hidden"},[mf]:{exposure:"hidden"},[_f]:{exposure:"hidden"},[bI]:{exposure:"event"},[wI]:{exposure:"event"},[SI]:{exposure:"event"},[EI]:{exposure:"event"},[kI]:{exposure:"event"},[xI]:{exposure:"event"},[II]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},$4=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],wf=e=>{var t=fe?.createElement("a");return _e(t)?null:(t.href=e,t)},_l=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),s=0;r.length>s;s++){var i=r[s].split("=");if(i[0]===t){n=i;break}}if(!Ye(n)||2>n.length)return"";var o=n[1];try{o=decodeURIComponent(o)}catch{de.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},yl=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),s=r[1],i=(r[0]||"").split("?"),o=i[1],a=i[0],c=(o||"").split("&"),l=[],u=0;c.length>u;u++){var d=c[u].split("=");Ye(d)&&(t.includes(d[0])?l.push(d[0]+"="+n):l.push(c[u]))}var f=a;return o!=null&&(f+="?"+l.join("&")),s!=null&&(f+="#"+s),f},Sf=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},qu="https?://(.*)",ma=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],F4=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...ma],vl="<masked>",U4=["li_fat_id"];function PI(e,t,n){if(!fe)return{};var r,s=t?[...ma,...n||[]]:[],i=MI(yl(fe.URL,s,vl),e),o=(r={},_t(U4,(function(a){var c=Ar.A(a);r[a]=c||null})),r);return At(o,i)}function MI(e,t){var n=F4.concat(t||[]),r={};return _t(n,(function(s){var i=_l(e,s);r[s]=i||null})),r}function LI(e){var t=(function(i){return i?i.search(qu+"google.([^/?]*)")===0?"google":i.search(qu+"bing.com")===0?"bing":i.search(qu+"yahoo.com")===0?"yahoo":i.search(qu+"duckduckgo.com")===0?"duckduckgo":null:null})(e),n=t!="yahoo"?"q":"p",r={};if(!Ms(t)){r.$search_engine=t;var s=fe?_l(fe.referrer,n):"";s.length&&(r.ph_keyword=s)}return r}function Cw(){return navigator.language||navigator.userLanguage}var Ef="$direct";function NI(){return fe?.referrer||Ef}function DI(e,t){var n=e?[...ma,...t||[]]:[],r=Jt?.href.substring(0,1e3);return{r:NI().substring(0,1e3),u:r?yl(r,n,vl):void 0}}function $I(e){var t,{r:n,u:r}=e,s={$referrer:n,$referring_domain:n==null?void 0:n==Ef?Ef:(t=wf(n))==null?void 0:t.host};if(r){s.$current_url=r;var i=wf(r);s.$host=i?.host,s.$pathname=i?.pathname;var o=MI(r);At(s,o)}if(n){var a=LI(n);At(s,a)}return s}function FI(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function H4(){try{return new Date().getTimezoneOffset()}catch{return}}var j4=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class tg{constructor(t,n){this.qt=t,this.props={},this.mr=!1,this.yr=(r=>{var s="";return r.token&&(s=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+s+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&de.info("Persistence loaded",t.persistence,ie({},this.props)),this.update_config(t,t,n),this.save()}isDisabled(){return!!this._r}br(t){j4.indexOf(t.persistence.toLowerCase())===-1&&(de.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n=(function(s){s===void 0&&(s=[]);var i=[...A4,...s];return ie({},Tt,{F(o){try{var a={};try{a=Ar.F(o)||{}}catch{}var c=At(a,JSON.parse(Tt.A(o)||"{}"));return Tt.N(o,c),c}catch{}return null},N(o,a,c,l,u,d){try{Tt.N(o,a,void 0,void 0,d);var f={};
36i.forEach((p=>{a[p]&&(f[p]=a[p])})),Object.keys(f).length&&Ar.N(o,f,c,l,u,d)}catch(p){Tt.D(p)}},q(o,a){try{G?.localStorage.removeItem(o),Ar.q(o,a)}catch(c){Tt.D(c)}}})})(t.cookie_persisted_properties||[]),r=t.persistence.toLowerCase();return r==="localstorage"&&Tt.R()?Tt:r==="localstorage+cookie"&&n.R()?n:r==="sessionstorage"&&Zt.R()?Zt:r==="memory"?O4:r==="cookie"?Ar:n.R()?n:Ar}wr(t){var n=t??this.qt.feature_flag_cache_ttl_ms;if(!n||0>=n)return!1;var r=this.props[gf];return!r||typeof r!="number"||Date.now()-r>n}properties(){var t={};return _t(this.props,((n,r)=>{var s=(i=>{var o=D4[i];if(o)return o;for(var[a,c]of $4)if(i.indexOf(a)===0)return c})(r);if(s?.exposure==="derived"){if(s.shouldSkipFromEventProperties!=null&&s.shouldSkipFromEventProperties(n,r===Uo?()=>this.wr():()=>!1))return;s.transformToEventProperties&&At(t,s.transformToEventProperties(n))}else s&&s.exposure!=="event"||(t[r]=n)})),t}load(){if(!this._r){var t=this.nr.F(this.yr);t&&(this.props=At({},t))}}save(){this._r||this.nr.N(this.yr,this.props,this.Sr,this.kr,this.Cr,this.qt.debug)}remove(){this.nr.q(this.yr,!1),this.nr.q(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,n,r){if(Pt(t)){_e(n)&&(n="None"),this.Sr=_e(r)?this.Ir:r;var s=!1;if(_t(t,((i,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.Tr(o,i),s=!0)})),s)return this.save(),!0}return!1}register(t,n){if(Pt(t)){this.Sr=_e(n)?this.Ir:n;var r=!1;if(_t(t,((s,i)=>{t.hasOwnProperty(i)&&this.props[i]!==s&&(this.Tr(i,s),r=!0)})),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Er(t),this.save())}update_campaign_params(){if(!this.mr){var t=PI(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);Fo(iv(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=fe?.referrer)?LI(t):{})}update_referrer_info(){var t;this.register_once({$referrer:NI(),$referring_domain:fe!=null&&fe.referrer&&((t=wf(fe.referrer))==null?void 0:t.host)||Ef},void 0)}set_initial_person_info(){this.props[u_]||this.props[d_]||this.register_once({[mf]:DI(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};_t([d_,u_],(o=>{var a=this.props[o];a&&_t(a,(function(c,l){t["$initial_"+Bm(l)]=c}))}));var n,r,s=this.props[mf];if(s){var i=(n=$I(s),r={},_t(n,(function(o,a){r["$initial_"+Bm(a)]=o})),r);At(t,i)}return t}safe_merge(t){return _t(this.props,(function(n,r){r in t||(t[r]=n)})),t}update_config(t,n,r){if(this.Ir=this.Sr=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!r),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==n.persistence||!((o,a)=>{if(o.length!==a.length)return!1;var c=[...o].sort(),l=[...a].sort();return c.every(((u,d)=>u===l[d]))})(t.cookie_persisted_properties||[],n.cookie_persisted_properties||[])){var s=this.br(t),i=this.props;this.clear(),this.nr=s,this.props=i,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.kr&&(this.kr=t,this.remove(),this.save())}set_secure(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_event_timer(t,n){var r=this.props[kc]||{};r[t]=n,this.Tr(kc,r),this.save()}remove_event_timer(t){var n=this.props[kc]||{},r=n[t];return _e(r)||(delete n[t],this.Tr(kc,n),this.save()),r}get_property(t){return this.props[t]}set_property(t,n){this.Tr(t,n),this.save()}Tr(t,n){this.props[t]=n}Er(t){delete this.props[t]}}var oc={Activation:"events",Cancellation:"cancelEvents"},ng={Popover:"popover",API:"api",Widget:"widget"},Cc={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},rg={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},p_={Popover:"popover",Inline:"inline"},B4={SHOWN:"product tour shown"},Aw={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},Ow=wt("[RateLimiter]");class q4{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;
36if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((s=>{Ow.info((s||"events")+" is quota limited."),this.serverLimits[s]=new Date().getTime()+6e4}))}catch(s){return void Ow.warn('could not rate limit - continuing. Error: "'+s?.message+'"',{text:r})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var n,r,s;t===void 0&&(t=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:o}=this,a=new Date().getTime(),c=(n=(r=this.instance.persistence)==null?void 0:r.get_property(l_))!==null&&n!==void 0?n:{tokens:i,last:a};c.tokens+=(a-c.last)/1e3*o,c.last=a,c.tokens>i&&(c.tokens=i);var l=1>c.tokens;return l||t||(c.tokens=Math.max(0,c.tokens-1)),!l||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+o+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=l,(s=this.instance.persistence)==null||s.set_property(l_,c),{isRateLimited:l,remainingTokens:c.tokens}}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var ac=wt("[RemoteConfig]");class UI{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=we._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Mr(t){var n,r;(n=we.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=we.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Pr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){t(n.json)}})}load(){try{if(this.remoteConfig)return ac.info("Using preloaded remote config",this.remoteConfig),this.Rr(this.remoteConfig),void this.Or();if(this._instance.Lr())return void ac.warn("Remote config is disabled. Falling back to local config.");this.Mr((t=>{if(!t)return ac.info("No config found after loading remote JS config. Falling back to JSON."),void this.Pr((n=>{this.Rr(n),this.Or()}));this.Rr(t),this.Or()}))}catch(t){ac.error("Error loading remote config",t)}}stop(){this.Fr&&(clearInterval(this.Fr),this.Fr=void 0)}refresh(){!this._instance.Lr()&&fe&&fe.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}Or(){var t;if(!this.Fr){var n=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;n!==0&&(this.Fr=setInterval((()=>{this.refresh()}),n))}}Rr(t){var n;t||ac.error("Failed to fetch remote config from PostHog."),this._instance.Rr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var Rr={GZipJS:"gzip-js",Base64:"base64"},zn=Uint8Array,xn=Uint16Array,_a=Uint32Array,ov=new zn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),av=new zn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Pw=new zn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),HI=function(e,t){for(var n=new xn(31),r=0;31>r;++r)n[r]=t+=1<<e[r-1];var s=new _a(n[30]);for(r=1;30>r;++r)for(var i=n[r];n[r+1]>i;++i)s[i]=i-n[r]<<5|r;return[n,s]},jI=HI(ov,2),h_=jI[1];jI[0][28]=258,h_[258]=28;for(var Mw=HI(av,0)[1],BI=new xn(32768),yt=0;32768>yt;++yt){var vo=(43690&yt)>>>1|(21845&yt)<<1;BI[yt]=((65280&(vo=(61680&(vo=(52428&vo)>>>2|(13107&vo)<<2))>>>4|(3855&vo)<<4))>>>8|(255&vo)<<8)>>>1}var Wc=function(e,t,n){for(var r=e.length,s=0,i=new xn(t);r>s;++s)++i[e[s]-1];var o,a=new xn(t);for(s=0;t>s;++s)a[s]=a[s-1]+i[s-1]<<1;for(o=new xn(r),s=0;r>s;++s)o[s]=BI[a[e[s]-1]++]>>>15-e[s];return o},Ji=new zn(288);for(yt=0;144>yt;++yt)Ji[yt]=8;for(yt=144;256>yt;++yt)Ji[yt]=9;for(yt=256;280>yt;++yt)Ji[yt]=7;for(yt=280;288>yt;++yt)Ji[yt]=8;var Tf=new zn(32);for(yt=0;32>yt;++yt)Tf[yt]=5;var W4=Wc(Ji,9),V4=Wc(Tf,5),qI=function(e){return(e/8>>0)+(7&e&&1)},WI=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof xn?xn:e instanceof _a?_a:zn)(n-t);return r.set(e.subarray(t,n)),r},Jr=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},cc=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},sg=function(e,t){for(var n=[],r=0;e.length>r;++r)e[r]&&n.push({s:r,f:e[r]});var s=n.length,i=n.slice();if(!s)return[new zn(0),0];if(s==1){var o=new zn(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort((function(w,x){return w.f-x.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=s-1;)a=n[n[d].f>n[l].f?l++:d++],c=n[l!=u&&n[d].f>n[l].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var f=i[0].s;for(r=1;s>r;++r)i[r].s>f&&(f=i[r].s);var p=new xn(f+1),h=g_(n[u-1],p,0);if(h>t){r=0;var g=0,S=h-t,y=1<<S;for(i.sort((function(w,x){return p[x.s]-p[w.s]||w.f-x.f}));s>r;
36++r){var v=i[r].s;if(t>=p[v])break;g+=y-(1<<h-p[v]),p[v]=t}for(g>>>=S;g>0;){var m=i[r].s;t>p[m]?g-=1<<t-p[m]++-1:++r}for(;r>=0&&g;--r){var _=i[r].s;p[_]==t&&(--p[_],++g)}h=t}return[new zn(p),h]},g_=function(e,t,n){return e.s==-1?Math.max(g_(e.l,t,n+1),g_(e.r,t,n+1)):t[e.s]=n},Lw=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new xn(++t),r=0,s=e[0],i=1,o=function(c){n[r++]=c},a=1;t>=a;++a)if(e[a]==s&&a!=t)++i;else{if(!s&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(s),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(s);i=1,s=e[a]}return[n.subarray(0,r),t]},lc=function(e,t){for(var n=0,r=0;t.length>r;++r)n+=e[r]*t[r];return n},m_=function(e,t,n){var r=n.length,s=qI(t+2);e[s]=255&r,e[s+1]=r>>>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var i=0;r>i;++i)e[s+i+4]=n[i];return 8*(s+4+r)},Nw=function(e,t,n,r,s,i,o,a,c,l,u){Jr(t,u++,n),++s[256];for(var d=sg(s,15),f=d[0],p=d[1],h=sg(i,15),g=h[0],S=h[1],y=Lw(f),v=y[0],m=y[1],_=Lw(g),w=_[0],x=_[1],T=new xn(19),R=0;v.length>R;++R)T[31&v[R]]++;for(R=0;w.length>R;++R)T[31&w[R]]++;for(var k=sg(T,7),C=k[0],M=k[1],b=19;b>4&&!C[Pw[b-1]];--b);var E,I,A,$,N=l+5<<3,O=lc(s,Ji)+lc(i,Tf)+o,D=lc(s,f)+lc(i,g)+o+14+3*b+lc(T,C)+(2*T[16]+3*T[17]+7*T[18]);if(O>=N&&D>=N)return m_(t,u,e.subarray(c,c+l));if(Jr(t,u,1+(O>D)),u+=2,O>D){E=Wc(f,p),I=f,A=Wc(g,S),$=g;var j=Wc(C,M);for(Jr(t,u,m-257),Jr(t,u+5,x-1),Jr(t,u+10,b-4),u+=14,R=0;b>R;++R)Jr(t,u+3*R,C[Pw[R]]);u+=3*b;for(var q=[v,w],oe=0;2>oe;++oe){var ue=q[oe];for(R=0;ue.length>R;++R)Jr(t,u,j[Se=31&ue[R]]),u+=C[Se],Se>15&&(Jr(t,u,ue[R]>>>5&127),u+=ue[R]>>>12)}}else E=W4,I=Ji,A=V4,$=Tf;for(R=0;a>R;++R)if(r[R]>255){var Se;cc(t,u,E[257+(Se=r[R]>>>18&31)]),u+=I[Se+257],Se>7&&(Jr(t,u,r[R]>>>23&31),u+=ov[Se]);var ke=31&r[R];cc(t,u,A[ke]),u+=$[ke],ke>3&&(cc(t,u,r[R]>>>5&8191),u+=av[ke])}else cc(t,u,E[r[R]]),u+=I[r[R]];return cc(t,u,E[256]),u+I[256]},z4=new _a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G4=(function(){for(var e=new _a(256),t=0;256>t;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e})(),ig=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function K4(e,t){t===void 0&&(t={});var n=(function(){var d=4294967295;return{p(f){for(var p=d,h=0;f.length>h;++h)p=G4[255&p^f[h]]^p>>>8;d=p},d(){return 4294967295^d}}})(),r=e.length;n.p(e);var s,i,o,a,c,l=(a=10+((s=t).filename&&s.filename.length+1||0),c=8,(function(d,f,p,h,g,S){var y=d.length,v=new zn(h+y+5*(1+Math.floor(y/7e3))+g),m=v.subarray(h,v.length-g),_=0;if(!f||8>y)for(var w=0;y>=w;w+=65535){var x=w+65535;y>x?_=m_(m,_,d.subarray(w,x)):(m[w]=!0,_=m_(m,_,d.subarray(w,y)))}else{for(var T=z4[f-1],R=T>>>13,k=8191&T,C=(1<<p)-1,M=new xn(32768),b=new xn(C+1),E=Math.ceil(p/3),I=2*E,A=function(re){return(d[re]^d[re+1]<<E^d[re+2]<<I)&C},$=new _a(25e3),N=new xn(288),O=new xn(32),D=0,j=0,q=(w=0,0),oe=0,ue=0;y>w;++w){var Se=A(w),ke=32767&w,Fe=b[Se];if(M[ke]=Fe,b[Se]=ke,w>=oe){var V=y-w;if((D>7e3||q>24576)&&V>423){_=Nw(d,m,0,$,N,O,j,q,ue,w-ue,_),q=D=j=0,ue=w;for(var Q=0;286>Q;++Q)N[Q]=0;for(Q=0;30>Q;++Q)O[Q]=0}var X=2,F=0,Z=k,J=ke-Fe&32767;if(V>2&&Se==A(w-J))for(var P=Math.min(R,V)-1,L=Math.min(32767,w),H=Math.min(258,V);L>=J&&--Z&&ke!=Fe;){if(d[w+X]==d[w+X-J]){for(var Y=0;H>Y&&d[w+Y]==d[w+Y-J];++Y);if(Y>X){if(X=Y,F=J,Y>P)break;var K=Math.min(J,Y-2),ee=0;for(Q=0;K>Q;++Q){var se=w-J+Q+32768&32767,z=se-M[se]+32768&32767;z>ee&&(ee=z,Fe=se)}}}J+=(ke=Fe)-(Fe=M[ke])+32768&32767}if(F){$[q++]=268435456|h_[X]<<18|Mw[F];var ne=31&h_[X],W=31&Mw[F];j+=ov[ne]+av[W],++N[257+ne],++O[W],oe=w+X,++D}else $[q++]=d[w],++N[d[w]]}}_=Nw(d,m,!0,$,N,O,j,q,ue,w-ue,_)}return WI(v,0,h+qI(_)+g)})(i=e,(o=t).level==null?6:o.level,o.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,a,c)),u=l.length;return(function(d,f){var p=f.filename;if(d[0]=31,d[1]=139,d[2]=8,d[8]=2>f.level?4:f.level==9?2:0,d[9]=3,f.mtime!=0&&ig(d,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),p){d[3]=8;for(var h=0;p.length>=h;++h)d[h+10]=p.charCodeAt(h)}})(l,t),ig(l,u-8,n.d()),ig(l,u-4,r),l}var Y4=!!Um||!!Fm,VI="text/plain",_d=!1,X4=(e,t)=>{var[n,r]=e.split("#"),[s,i]=n.split("?");if(!i)return e;var o=i.split("&").filter((a=>a.split("=")[0]!==t)).join("&");return s+(o?"?"+o:"")+(r?"#"+r:"")},Pp=function(e,t,n){var r;n===void 0&&(n=!0);var[s,i]=e.split("?"),o=ie({},t),a=(r=i?.split("&").map((l=>{var u,[d,f]=l.split("="),p=n&&(u=o[d])!==null&&u!==void 0?u:f;return delete o[d],d+"="+p})))!==null&&r!==void 0?r:[],c=(function(l,u){var d,f;u===void 0&&(u="&");var p=[];return _t(l,(function(h,g){_e(h)||_e(g)||g==="undefined"||(d=encodeURIComponent((S=>S instanceof File)(h)?h.name:h.toString()),f=encodeURIComponent(g),p[p.length]=f+"="+d)})),p.join(u)})(o);return c&&a.push(c),s+"?"+a.join("&")},Ho=(e,t)=>JSON.stringify(e,((n,r)=>typeof r=="bigint"?r.toString():r),t),Dw=e=>{if(e.tr)return e.tr;var{data:t,compression:n}=e;if(t){if(n===Rr.GZipJS){var r=K4((function(a,c){var l=a.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(a);for(var u=new zn(a.length+(a.length>>>1)),d=0,f=function(S){u[d++]=S},p=0;l>p;++p){if(d+5>u.length){var h=new zn(d+8+(l-p<<1));h.set(u),u=h}
36var g=a.charCodeAt(p);128>g?f(g):2048>g?(f(192|g>>>6),f(128|63&g)):g>55295&&57344>g?(f(240|(g=65536+(1047552&g)|1023&a.charCodeAt(++p))>>>18),f(128|g>>>12&63),f(128|g>>>6&63),f(128|63&g)):(f(224|g>>>12),f(128|g>>>6&63),f(128|63&g))}return WI(u,0,d)})(Ho(t)),{mtime:0});return{contentType:VI,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===Rr.Base64){var s=(function(a){return a&&btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,((c,l)=>String.fromCharCode(parseInt(l,16)))))})(Ho(t)),i=(a=>"data="+encodeURIComponent(typeof a=="string"?a:Ho(a)))(s);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var o=Ho(t);return{contentType:"application/json",body:o,estimatedSize:new Blob([o]).size}}},og=e=>{var t,n,r,s=Dw(e);return!s||(n=e.compression,r=_l(e.url,"compression"),n!==gw.GZipJS&&r!==gw.GZipJS&&r!=="gzip")||((t=s.body)instanceof ArrayBuffer?Hm(new Uint8Array(t)):ArrayBuffer.isView(t)&&Hm(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)))?{url:e.url,encodedBody:s}:(_d=!0,{url:X4(e.url,"compression"),encodedBody:Dw(ie({},e,{compression:void 0,tr:void 0}))})},J4=(function(){var e=Cn((function*(t){var n=Ho(t.data),r=yield(function(i,o,a){return jm.apply(this,arguments)})(n,_n.DEBUG,{rethrow:!0});if(!r)return t;var s=yield r.arrayBuffer();return ie({},t,{tr:{contentType:VI,body:s,estimatedSize:s.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),$w=(e,t)=>Pp(e,{_:new Date().getTime().toString(),ver:_n.JS_SDK_VERSION,compression:t}),yd=[];Fm&&yd.push({transport:"fetch",method(e){var t,{url:n,encodedBody:r}=og(e),{contentType:s,body:i,estimatedSize:o}=r??{},a=new Headers;_t(e.headers,(function(u,d){a.append(d,u)})),s&&a.append("Content-Type",s);var c=null;if(fw){var l=new fw;c={signal:l.signal,timeout:setTimeout((()=>l.abort()),e.timeout)}}Fm(n,ie({method:e?.method||"GET",headers:a,keepalive:e.method==="POST"&&52428.8>(o||0),body:i,signal:(t=c)==null?void 0:t.signal},e.fetchOptions)).then((u=>u.text().then((d=>{var f={statusCode:u.status,text:d};if(u.status===200)try{f.json=JSON.parse(d)}catch(p){de.error(p)}e.callback==null||e.callback(f)})))).catch((u=>{de.error(u),e.callback==null||e.callback({statusCode:0,error:u})})).finally((()=>c?clearTimeout(c.timeout):null))}}),Um&&yd.push({transport:"XHR",method(e){var t=new Um,{url:n,encodedBody:r}=og(e);t.open(e.method||"GET",n,!0);var{contentType:s,body:i}=r??{};_t(e.headers,(function(o,a){t.setRequestHeader(a,o)})),s&&t.setRequestHeader("Content-Type",s),e.timeout&&(t.timeout=e.timeout),e.disableXHRCredentials||(t.withCredentials=!0),t.onreadystatechange=()=>{if(t.readyState===4){var o={statusCode:t.status,text:t.responseText};if(t.status===200)try{o.json=JSON.parse(t.responseText)}catch{}e.callback==null||e.callback(o)}},t.send(i)}}),Mn!=null&&Mn.sendBeacon&&yd.push({transport:"sendBeacon",method(e){try{var{url:t,encodedBody:n}=og(e),r=Pp(t,{beacon:"1"}),{contentType:s,body:i}=n??{};if(!i)return;var o=i instanceof Blob?i:new Blob([i],{type:s});Mn.sendBeacon(r,o)}catch{}}});var __=3e3;class Z4{constructor(t,n){this.Ar=!0,this.Nr=[],this.$r=Mr(n?.flush_interval_ms||__,250,5e3,de.createLogger("flush interval"),__),this.Dr=t}enqueue(t){this.Nr.push(t),this.qr||this.jr()}unload(){this.Hr();var t=this.Nr.length>0?this.Ur():{},n=Object.values(t);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.Dr(ie({},r,{transport:"sendBeacon"}))}))}enable(){this.Ar=!1,this.jr()}jr(){var t=this;this.Ar||(this.qr=setTimeout((()=>{if(this.Hr(),this.Nr.length>0){var n=this.Ur(),r=function(){var i=n[s],o=new Date().getTime();i.data&&Ye(i.data)&&_t(i.data,(a=>{a.offset=Math.abs(a.timestamp-o),delete a.timestamp})),t.Dr(i)};for(var s in n)r()}}),this.$r))}Hr(){clearTimeout(this.qr),this.qr=void 0}Ur(){var t={};return _t(this.Nr,(n=>{var r,s=n,i=(s?s.batchKey:null)||s.url;_e(t[i])&&(t[i]=ie({},s,{data:[]})),(r=t[i].data)==null||r.push(s.data)})),this.Nr=[],t}}var Q4=["retriesPerformedSoFar"];class e6{constructor(t){this.Br=!1,this.zr=3e3,this.Nr=[],this._instance=t,this.Nr=[],this.Vr=!0,!_e(G)&&"onLine"in G.navigator&&(this.Vr=G.navigator.onLine,this.Wr=()=>{this.Vr=!0,this.Zr()},this.Gr=()=>{this.Vr=!1},Dt(G,"online",this.Wr),Dt(G,"offline",this.Gr))}get length(){return this.Nr.length}retriableRequest(t){var{retriesPerformedSoFar:n}=t,r=Gx(t,Q4);Ao(n)&&(r.url=Pp(r.url,{retry_count:n})),this._instance._send_request(ie({},r,{callback:s=>{s.statusCode===200||s.statusCode>=400&&500>s.statusCode||(n??0)>=10?r.callback==null||r.callback(s):this.Qr(ie({retriesPerformedSoFar:n},r))}}))}Qr(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var r=(function(o){var a=3e3*Math.pow(2,o),c=a/2,l=Math.min(18e5,a),u=Math.random()-.5;return Math.ceil(l+u*(l-c))})(n),s=Date.now()+r;this.Nr.push({retryAt:s,requestOptions:t});var i="Enqueued failed request for retry in "+r;navigator.onLine||(i+=" (Browser is offline)"),de.warn(i),this.Br||(this.Br=!0,this.Jr())}
36Jr(){if(this.Kr&&clearTimeout(this.Kr),this.Nr.length===0)return this.Br=!1,void(this.Kr=void 0);this.Kr=setTimeout((()=>{this.Vr&&this.Nr.length>0&&this.Zr(),this.Jr()}),this.zr)}Zr(){var t=Date.now(),n=[],r=this.Nr.filter((i=>t>i.retryAt||(n.push(i),!1)));if(this.Nr=n,r.length>0)for(var{requestOptions:s}of r)this.retriableRequest(s)}unload(){for(var{requestOptions:t}of(this.Kr&&(clearTimeout(this.Kr),this.Kr=void 0),this.Br=!1,_e(G)||(this.Wr&&(G.removeEventListener("online",this.Wr),this.Wr=void 0),this.Gr&&(G.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Nr))try{this._instance._send_request(ie({},t,{transport:"sendBeacon"}))}catch(n){de.error(n)}this.Nr=[]}}class t6{constructor(t){this.Yr=()=>{var n,r,s,i;this.Xr||(this.Xr={});var o=this.scrollElement(),a=this.scrollY(),c=o?Math.max(0,o.scrollHeight-o.clientHeight):0,l=a+(o?.clientHeight||0),u=o?.scrollHeight||0;this.Xr.lastScrollY=Math.ceil(a),this.Xr.maxScrollY=Math.max(a,(n=this.Xr.maxScrollY)!==null&&n!==void 0?n:0),this.Xr.maxScrollHeight=Math.max(c,(r=this.Xr.maxScrollHeight)!==null&&r!==void 0?r:0),this.Xr.lastContentY=l,this.Xr.maxContentY=Math.max(l,(s=this.Xr.maxContentY)!==null&&s!==void 0?s:0),this.Xr.maxContentHeight=Math.max(u,(i=this.Xr.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Xr}resetContext(){var t=this.Xr;return setTimeout(this.Yr,0),t}startMeasuringScrollPosition(){Dt(G,"scroll",this.Yr,{capture:!0}),Dt(G,"scrollend",this.Yr,{capture:!0}),Dt(G,"resize",this.Yr)}scrollElement(){if(!this.ei)return G?.document.documentElement;var t=Ye(this.ei)?this.ei:[this.ei];for(var n of t){var r=G?.document.querySelector(n);if(r)return r}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return G&&(G.scrollY||G.pageYOffset||G.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return G&&(G.scrollX||G.pageXOffset||G.document.documentElement.scrollLeft)||0}}var n6=e=>DI(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class Fw{constructor(t,n,r,s){this.ti=i=>{var o=this.ri();if(!o||o.sessionId!==i){var a={sessionId:i,props:this.ii(this._instance)};this.ni.register({[c_]:a})}},this._instance=t,this.si=n,this.ni=r,this.ii=s||n6,this.si.onSessionId(this.ti)}ri(){return this.ni.props[c_]}getSetOnceProps(){var t,n=(t=this.ri())==null?void 0:t.props;return n?"r"in n?$I(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return _t(iv(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),t["$session_entry_"+Bm(r)]=n})),t}}class cv{constructor(){this.oi={}}on(t,n){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(n),()=>{this.oi[t]=this.oi[t].filter((r=>r!==n))}}emit(t,n){for(var r of this.oi[t]||[])r(n);for(var s of this.oi["*"]||[])s(t,n)}}var ag=wt("[SessionId]");class Uw{on(t,n){return this.ai.on(t,n)}constructor(t,n,r){var s;if(this.ui=[],this.li=void 0,this.ai=new cv,this.hi=(l,u)=>!(!Ao(l)||!Ao(u))&&Math.abs(l-u)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===ls)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.qt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=n||Ks,this.fi=r||Ks;var i=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*Mr(this.qt.session_idle_timeout_seconds||1800,60,36e3,ag.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+i+"_window_id",this.mi="ph_"+i+"_primary_window_exists",this.yi()){var o=Zt.F(this.gi),a=Zt.F(this.mi);o&&!a?this.ci=o:Zt.q(this.gi),Zt.N(this.mi,!0)}if((s=this.qt.bootstrap)!=null&&s.sessionID)try{var c=(l=>{var u=this.qt.bootstrap.sessionID.replace(/-/g,"");if(u.length!==32)throw new Error("Not a valid UUID");if(u[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(u.substring(0,12),16)})();this.bi(this.qt.bootstrap.sessionID,new Date().getTime(),c)}catch(l){ag.error("Invalid sessionID in bootstrap",l)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return _e(this.ui)&&(this.ui=[]),this.ui.push(t),this.di&&t(this.di,this.ci),()=>{this.ui=this.ui.filter((n=>n!==t))}}yi(){return this.qt.persistence!=="memory"&&!this.ni._r&&Zt.R()}xi(t){t!==this.ci&&(this.ci=t,this.yi()&&Zt.N(this.gi,t))}Si(){return this.ci?this.ci:this.yi()?Zt.F(this.gi):null}
36bi(t,n,r){t===this.di&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.di=t,this.ni.register({[hf]:[n,t,r]}))}ki(){var t=this.ni.props[hf];return Ye(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.Ci),this.Ci=void 0,this.li&&G&&(G.removeEventListener(vf,this.li,{capture:!1}),this.li=void 0),this.ui=[]}wi(){this.li=()=>{this.yi()&&Zt.q(this.mi)},Dt(G,vf,this.li,{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.qt.cookieless_mode===ls)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[s,i,o]=this.ki(),a=this.Si(),c=Ao(o)&&Math.abs(r-o)>864e5,l=!1,u=!i,d=!u&&!t&&this.hi(r,s);u||d||c?(i=this.vi(),a=this.fi(),ag.info("new session ID generated",{sessionId:i,windowId:a,changeReason:{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:c}}),o=r,l=!0):a||(a=this.fi(),l=!0);var f=Ao(s)&&t&&!c?s:r,p=Ao(o)?o:new Date().getTime();return this.xi(a),this.bi(i,f,p),t||this.pi(),l&&this.ui.forEach((h=>h(i,a,l?{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:c}:void 0))),{sessionId:i,windowId:a,sessionStartTimestamp:p,changeReason:l?{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:c}:void 0,lastActivityTimestamp:s}}pi(){clearTimeout(this.Ci),this.Ci=setTimeout((()=>{var[t]=this.ki();if(this.hi(new Date().getTime(),t)){var n=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var zI=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&_w(n,t))return!0;try{var r=e?.userAgentData;if(r!=null&&r.brands&&r.brands.some((s=>_w(s?.brand,t))))return!0}catch{}return!!e.webdriver},kf=function(e,t){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function Hw(e,t,n){return Ho({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var GI={exact:(e,t)=>t.some((n=>e.some((r=>n===r)))),is_not:(e,t)=>t.every((n=>e.every((r=>n!==r)))),regex:(e,t)=>t.some((n=>e.some((r=>kf(n,r))))),not_regex:(e,t)=>t.every((n=>e.every((r=>!kf(n,r))))),icontains:(e,t)=>t.map(Wu).some((n=>e.map(Wu).some((r=>n.includes(r))))),not_icontains:(e,t)=>t.map(Wu).every((n=>e.map(Wu).every((r=>!n.includes(r))))),gt:(e,t)=>t.some((n=>{var r=parseFloat(n);return!isNaN(r)&&e.some((s=>r>parseFloat(s)))})),lt:(e,t)=>t.some((n=>{var r=parseFloat(n);return!isNaN(r)&&e.some((s=>r<parseFloat(s)))}))},Wu=e=>e.toLowerCase();function KI(e,t){return!e||Object.entries(e).every((n=>{var[r,s]=n,i=t?.[r];if(_e(i)||Ms(i))return!1;var o=[String(i)],a=GI[s.operator];return!!a&&a(s.values,o)}))}var y_="custom",jw="i.posthog.com",r6=/^\/static\//;class s6{constructor(t){this.Ii={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+jw,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.Ii[this.apiHost]||(this.Ii[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":y_),this.Ii[this.apiHost]}Ti(t){var n=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof n=="string"&&r6.test(t))return n.trim().replace(/\/$/,"")||void 0}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(t==="flags")return this.flagsApiHost+n;if(t==="assets"){var r=this.Ti(n);if(r)return""+r+n}if(this.region===y_)return this.apiHost+n;var s=jw+n;switch(t){case"assets":return"https://"+this.region+"-assets."+s;case"api":return"https://"+this.region+"."+s}}}
36var nt=wt("[Surveys]"),v_="seenSurvey_",i6=[ng.Popover,ng.Widget,ng.API],o6={ignoreConditions:!1,ignoreDelay:!1,displayType:p_.Popover},a6=wt("[PostHog ExternalIntegrations]"),c6={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class l6{constructor(t){this._instance=t}lr(t,n){var r;(r=we.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,t,(s=>{if(s)return a6.error("failed to load script",s);n()}))}startIfEnabledOrStop(){var t=this,n=function(o){var a,c,l;!s||(a=we.__PosthogExtensions__)!=null&&(a=a.integrations)!=null&&a[o]||t.lr(c6[o],(()=>{var u;(u=we.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[o])==null||u.start(t._instance)})),!s&&(c=we.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[o]&&((l=we.__PosthogExtensions__)==null||(l=l.integrations)==null||(l=l[o])==null||l.stop())};for(var[r,s]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;n(r)}}}var bo,Vc={},cg=0,b_=()=>{},Bw='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',uc="Surveys module not available",qw="sanitize_properties is deprecated. Use before_send instead",YI="Invalid value for property_denylist config: ",Mo="posthog",XI=!Y4&&En?.indexOf("MSIE")===-1&&En?.indexOf("Mozilla")===-1,Ww=e=>{var t;return ie({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:k4(fe?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:b_,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:Jt&&kt(Jt?.search)&&Jt.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(G==null||(t=G.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){de.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:f_,before_send:void 0,request_queue_config:{flush_interval_ms:__},error_tracking:{},_onCapture:b_,__preview_eager_load_replay:!1},(n=>({rageclick:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},u6=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],Vw=e=>{var t={};for(var[n,r]of u6)_e(e[n])||(t[r]=e[n]);var s=At({},t,e);return Ye(e.property_blacklist)&&(_e(e.property_denylist)?s.property_denylist=e.property_blacklist:Ye(e.property_denylist)?s.property_denylist=[...e.property_blacklist,...e.property_denylist]:de.error(YI+e.property_denylist)),s};class d6{constructor(){this.__forceAllowLocalhost=!1}get Ei(){return this.__forceAllowLocalhost}set Ei(t){de.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}
36class Wn{Mi(t,n){if(t){var r=this.Pi.indexOf(t);r!==-1&&this.Pi.splice(r,1)}return this.Pi.push(n),n.initialize==null||n.initialize(),n}Ri(){return this.config.cookieless_mode===ls||this.config.cookieless_mode===Ai&&this.consent.isRejected()}get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new d6,this.Oi=!1,this.version=_n.LIB_VERSION,this.Li=new cv,this.Pi=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Ww(),this.SentryIntegration=N4,this.sentryIntegration=r=>(function(s,i){var o=OI(s,i);return{name:AI,processEvent:a=>o(a)}})(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Fi=!1,this.Ai=null,this.Ni=null,this.$i=null,this.scrollManager=new t6(this),this.pageViewManager=new Rw(this),this.rateLimiter=new q4(this),this.requestRouter=new s6(this),this.consent=new P4(this),this.externalIntegrations=new l6(this);var n=(t=Wn.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,s,i)=>{var o=kt(r)?{[r]:s}:r;this.setPersonProperties(o),i?.({})},set_once:(r,s,i)=>{var o=kt(r)?{[r]:s}:r;this.setPersonProperties(void 0,o),i?.({})}},this.on("eventCaptured",(r=>de.info('send "'+r?.event+'"',r)))}init(t,n,r){if(r&&r!==Mo){var s,i=(s=Vc[r])!==null&&s!==void 0?s:new Wn;return i._init(t,n,r),Vc[r]=i,Vc[Mo][r]=i,i}return this._init(t,n,r)}_init(t,n,r){var s,i;if(n===void 0&&(n={}),_e(t)||pd(t))return de.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.Di(n.debug),this.qi=n,this.ji=[],n.person_profiles?this.Ni=n.person_profiles:n.process_person&&(this.Ni=n.process_person),this.set_config(At({},Ww(n.defaults),Vw(n),{name:r,token:t})),this.config.on_xhr_error&&de.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:Rr.GZipJS;var o=this.Hi();this.persistence=new tg(this.config,o),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new tg(ie({},this.config,{persistence:"sessionStorage"}),o);var a=ie({},this.persistence.props),c=ie({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Ui=new Z4((S=>this.Bi(S)),this.config.request_queue_config),this.zi=new e6(this),this.__request_queue=[];var l=this.Ri();if(l||(this.sessionManager=new Uw(this),this.sessionPropsManager=new Fw(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(de.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Vi(l)}),0)):(de.info("Initializing extensions synchronously"),this.Vi(l)),_n.DEBUG=_n.DEBUG||this.config.debug,_n.DEBUG&&de.info("Starting in debug mode",{this:this,config:n,thisC:ie({},this.config),p:a,s:c}),!this.config.identity_distinct_id||(s=n.bootstrap)!=null&&s.distinctID||(n.bootstrap=ie({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=n.bootstrap)==null?void 0:i.distinctID)!==void 0){var u=n.bootstrap.distinctID,d=this.get_distinct_id(),f=this.persistence.get_property(ir);if(n.bootstrap.isIdentifiedID&&d!=null&&d!==u&&f===_o)this.identify(u);else if(n.bootstrap.isIdentifiedID&&d!=null&&d!==u&&f===yo)de.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var p=this.config.get_device_id(Ks()),h=n.bootstrap.isIdentifiedID?p:u;this.persistence.set_property(ir,n.bootstrap.isIdentifiedID?yo:_o),this.register({distinct_id:u,$device_id:h})}}if(l)this.register_once({distinct_id:Uu,$device_id:null},"");else if(!this.get_distinct_id()){var g=this.config.get_device_id(Ks());this.register_once({distinct_id:g,$device_id:g},""),this.persistence.set_property(ir,_o)}return Dt(G,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?(function(S,y){var v=S.config.segment;if(!v)return y();(function(m,_){var w=m.config.segment;if(!w)return _();var x=R=>{var k=()=>R.anonymousId()||Ks();m.config.get_device_id=k,R.id()&&(m.register({distinct_id:R.id(),$device_id:k()}),m.persistence.set_property(ir,yo)),_()},T=w.user();"then"in T&&is(T.then)?T.then(x):x(T)})(S,(()=>{v.register((m=>{Promise&&Promise.resolve||eg.warn("This browser does not have Promise support, and can not use the segment integration");var _=(w,x)=>
36{if(!x)return w;w.event.userId||w.event.anonymousId===m.get_distinct_id()||(eg.info("No userId set, resetting PostHog"),m.reset()),w.event.userId&&w.event.userId!==m.get_distinct_id()&&(eg.info("UserId set, identifying with PostHog"),m.identify(w.event.userId));var T=m.calculateEventProperties(x,w.event.properties);return w.event.properties=Object.assign({},T,w.event.properties),w};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:w=>_(w,w.event.event),page:w=>_(w,Po),identify:w=>_(w,Zh),screen:w=>_(w,"$screen")}})(S)).then((()=>{y()}))}))})(this,(()=>this.Wi())):this.Wi(),is(this.config._onCapture)&&this.config._onCapture!==b_&&(de.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(S=>this.config._onCapture(S.event,S)))),this.config.ip&&de.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Vi(t){var n,r,s,i,o,a,c,l=performance.now(),u=ie({},Wn.__defaultExtensionClasses,this.config.__extensionClasses),d=[];u.featureFlags&&this.Pi.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new u.featureFlags(this)),u.exceptions&&this.Pi.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new u.exceptions(this)),u.historyAutocapture&&this.Pi.push(this.historyAutocapture=new u.historyAutocapture(this)),u.tracingHeaders&&this.Pi.push(new u.tracingHeaders(this)),u.siteApps&&this.Pi.push(this.siteApps=new u.siteApps(this)),u.sessionRecording&&!t&&this.Pi.push(this.sessionRecording=new u.sessionRecording(this)),this.config.disable_scroll_properties||d.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),u.autocapture&&this.Pi.push(this.autocapture=new u.autocapture(this)),u.surveys&&this.Pi.push(this.surveys=(s=this.surveys)!==null&&s!==void 0?s:new u.surveys(this)),u.logs&&this.Pi.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new u.logs(this)),u.conversations&&this.Pi.push(this.conversations=(o=this.conversations)!==null&&o!==void 0?o:new u.conversations(this)),u.productTours&&this.Pi.push(this.productTours=new u.productTours(this)),u.heatmaps&&this.Pi.push(this.heatmaps=new u.heatmaps(this)),u.webVitalsAutocapture&&this.Pi.push(this.webVitalsAutocapture=new u.webVitalsAutocapture(this)),u.exceptionObserver&&this.Pi.push(this.exceptionObserver=new u.exceptionObserver(this)),u.deadClicksAutocapture&&this.Pi.push(this.deadClicksAutocapture=new u.deadClicksAutocapture(this,L4)),u.toolbar&&this.Pi.push(this.toolbar=(a=this.toolbar)!==null&&a!==void 0?a:new u.toolbar(this)),u.experiments&&this.Pi.push(this.experiments=(c=this.experiments)!==null&&c!==void 0?c:new u.experiments(this)),this.Pi.forEach((f=>{f.initialize&&d.push((()=>{f.initialize==null||f.initialize()}))})),d.push((()=>{if(this.Zi){var f=this.Zi;this.Zi=void 0,this.Rr(f)}})),this.Gi(d,l)}Gi(t,n){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,n)}),0);var r=t.shift();if(r)try{r()}catch(i){de.error("Error initializing extension:",i)}}var s=Math.round(performance.now()-n);this.register_for_session({[kI]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[xI]:s}),this.config.__preview_deferred_init_extensions&&de.info("PostHog extensions initialized ("+s+"ms)")}Rr(t){var n;if(!fe||!fe.body)return de.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Rr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Zi=t),this.Qi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=je(t.supportedCompression,Rr.GZipJS)?Rr.GZipJS:je(t.supportedCompression,Rr.Base64)?Rr.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Ni?this.Ni:f_}
36),this.Pi.forEach((r=>r.onRemoteConfig==null?void 0:r.onRemoteConfig(t)))}Wi(){try{this.config.loaded(this)}catch(r){de.critical("`loaded` function failed",r)}if(this.Ji(),this.config.internal_or_test_user_hostname&&Jt!=null&&Jt.hostname){var t=Jt.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?t===n:n.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ri())&&this.Ki()}),1),this.Yi=new UI(this),this.Yi.load()}Ji(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Ui)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Hu(this.__request_queue,(t=>this.Bi(t))),this.__request_queue=[],this.Ji()}_handle_unload(){var t,n,r,s;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Xi()&&this.capture(Jh),(n=this.logs)==null||n.flushLogs("sendBeacon"),(r=this.Ui)==null||r.unload(),(s=this.zi)==null||s.unload()):this.Xi()&&this.capture(Jh,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(XI?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=Pp(t.url,{ip:this.config.ip?1:0}),t.headers=ie({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(n=>{var r,s,i,o=ie({},n);o.timeout=o.timeout||6e4,o.url=$w(o.url,o.compression);var a=(r=o.transport)!==null&&r!==void 0?r:"fetch",c=yd.filter((u=>!o.disableTransport||!u.transport||!o.disableTransport.includes(u.transport))),l=(s=(i=(function(u,d){for(var f=0;u.length>f;f++)if(u[f].transport===a)return u[f]})(c))==null?void 0:i.method)!==null&&s!==void 0?s:c[0].method;if(!l)throw new Error("No available transport method");a!=="sendBeacon"&&o.data&&o.compression===Rr.GZipJS&&LF&&!_d?J4(o).then((u=>{l(u)})).catch((u=>{if(mw(u))return _d=!0,void l(ie({},o,{compression:void 0,url:$w(n.url,void 0)}));(d=>{if(!d||typeof d!="object")return!1;var f="name"in d?String(d.name):"";return mw(d)||f===Kx})(u)&&(_d=!0),l(o)})):l(o)})(ie({},t,{callback:n=>{var r,s;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(r=(s=this.config).on_request_error)==null||r.call(s,n),t.callback==null||t.callback(n)}}))))}Bi(t){this.zi?this.zi.retriableRequest(t):this._send_request(t)}_execute_array(t){cg++;try{var n,r=[],s=[],i=[];Hu(t,(a=>{if(a)if(Ye(n=a[0]))i.push(a);else if(is(a))try{a.call(this)}catch(c){de.error("Error executing queued PostHog call",a,c)}else Ye(a)&&n==="alias"?r.push(a):Ye(a)&&n.indexOf("capture")!==-1&&is(this[n])?i.push(a):s.push(a)}));var o=function(a,c){Hu(a,(function(l){try{if(Ye(l[0])){var u=c;_t(l,(function(d){u=u[d[0]].apply(u,d.slice(1))}))}else c[l[0]].apply(c,l.slice(1))}catch(d){de.error("Error executing queued PostHog call",l,d)}}))};o(r,this),o(s,this),o(i,this)}finally{cg--}}push(t){if(cg>0&&Ye(t)&&kt(t[0])){var n=Wn.prototype[t[0]];is(n)&&n.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,n,r){var s,i,o,a,c;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Ui){if(this.is_capturing())if(!_e(t)&&kt(t)){var l=!this.config.opt_out_useragent_filter&&this._is_bot();if(!l||this.config.__preview_capture_bot_pageviews){var u=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(u==null||!u.isRateLimited){n!=null&&n.$current_url&&!kt(n?.$current_url)&&(de.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),t!=="$exception"||r!=null&&r.en||de.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var d=new Date,f=r?.timestamp||d,p=r?.uuid||Ks(),h={uuid:p,event:t,properties:this.calculateEventProperties(t,n||{},f,p)};t===Po&&this.config.__preview_capture_bot_pageviews&&l&&(h.event="$bot_pageview",h.properties.$browser_type="bot"),u&&(h.properties.$lib_rate_limit_remaining_tokens=u.remainingTokens),r?.$set&&(h.$set=r?.$set);var g,S,y,v=this.tn(r?.$set_once,t!==Tw,t===Zh);if(v&&(h.$set_once=v),r!=null&&r._noTruncate||(i=this.config.properties_string_max_length,o=h,a=k=>kt(k)?k.slice(0,i):k,c=new Set,h=(function k(C,M){return C!==Object(C)?a?a(C):C:c.has(C)?void 0:(c.add(C),Ye(C)?(b=[],Hu(C,(E=>{b.push(k(E))}))):(b={},_t(C,((E,I)=>{c.has(E)||(b[I]=k(E))}))),b);var b}
36)(o)),h.timestamp=f,_e(r?.timestamp)||(h.properties.$event_time_override_provided=!0,h.properties.$event_time_override_system_time=d),t===Cc.DISMISSED||t===Cc.SENT){var m=n?.[rg.SURVEY_ID],_=n?.[rg.SURVEY_ITERATION];(k=>{try{var C=(M=>((b,E)=>{var I=""+v_+E.id;return E.current_iteration&&E.current_iteration>0&&(I=""+v_+E.id+"_"+E.current_iteration),I})(0,M))(k);if(localStorage.getItem(C))return;localStorage.setItem(C,"true")}catch(M){nt.error("Failed to persist survey seen state",M)}})({id:m,current_iteration:_}),h.$set=ie({},h.$set,{[(g={id:m,current_iteration:_},S=t===Cc.SENT?"responded":"dismissed",y="$survey_"+S+"/"+g.id,g.current_iteration&&g.current_iteration>0&&(y="$survey_"+S+"/"+g.id+"/"+g.current_iteration),y)]:!0})}else t===Cc.SHOWN&&(h.$set=ie({},h.$set,{[rg.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===B4.SHOWN){var w=n?.[Aw.TOUR_TYPE];w&&(h.$set=ie({},h.$set,{[Aw.TOUR_LAST_SEEN_DATE+"/"+w]:new Date().toISOString()}))}var x=ie({},h.properties.$set,h.$set);if(Fo(x)||this.setPersonPropertiesForFlags(x),!Be(this.config.before_send)){var T=this.rn(h);if(!T)return;h=T}this.Li.emit("eventCaptured",h);var R={method:"POST",url:(s=r?._url)!==null&&s!==void 0?s:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:h,compression:"best-available",batchKey:r?._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.Bi(R):this.Ui.enqueue(R),h}de.critical("This capture call is ignored due to client rate limiting.")}}else de.error("No event name provided to posthog.capture")}else de.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(n=>t(n.event,n)))}calculateEventProperties(t,n,r,s,i){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var o=i?void 0:this.persistence.remove_event_timer(t),a=ie({},n);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,this.Ri()&&(a.$cookieless_mode=!0),t==="$snapshot"){var c=ie({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=c.distinct_id,(!kt(a.distinct_id)&&!Qn(a.distinct_id)||pd(a.distinct_id))&&de.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var l,u=(function(y,v){var m,_,w,x;if(!En)return{};var T,R,k,C,M,b,E,I,A=y?[...ma,...v||[]]:[],[$,N]=(function(O){for(var D=0;bw.length>D;D++){var[j,q]=bw[D],oe=j.exec(O),ue=oe&&(is(q)?q(oe,O):q);if(ue)return ue}return["",""]})(En);return At(iv({$os:$,$os_version:N,$browser:pI(En,navigator.vendor),$device:ww(En),$device_type:(R=En,k={userAgentDataPlatform:(m=navigator)==null||(m=m.userAgentData)==null?void 0:m.platform,maxTouchPoints:(_=navigator)==null?void 0:_.maxTouchPoints,screenWidth:G==null||(w=G.screen)==null?void 0:w.width,screenHeight:G==null||(x=G.screen)==null?void 0:x.height,devicePixelRatio:G?.devicePixelRatio},I=ww(R),I===Qx||I===Zx||I==="Kobo"||I==="Kindle Fire"||I===fI?pa:I===gl||I===ra||I===ml||I===Wm?"Console":I===tI?"Wearable":I?Nn:k?.userAgentDataPlatform==="Android"&&((C=k?.maxTouchPoints)!==null&&C!==void 0?C:0)>0?600>Math.min((M=k?.screenWidth)!==null&&M!==void 0?M:0,(b=k?.screenHeight)!==null&&b!==void 0?b:0)/((E=k?.devicePixelRatio)!==null&&E!==void 0?E:1)?Nn:pa:"Desktop"),$timezone:FI(),$timezone_offset:H4()}),{$current_url:yl(Jt?.href,A,vl),$host:Jt?.host,$pathname:Jt?.pathname,$raw_user_agent:En.length>1e3?En.substring(0,997)+"...":En,$browser_version:JF(En,navigator.vendor),$browser_language:Cw(),$browser_language_prefix:(T=Cw(),typeof T=="string"?T.split("-")[0]:void 0),$screen_height:G?.screen.height,$screen_width:G?.screen.width,$viewport_height:G?.innerHeight,$viewport_width:G?.innerWidth,$lib:_n.LIB_NAME,$lib_version:_n.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:d,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(i,r.getTime());a.$session_id=d,a.$window_id=f}this.sessionPropsManager&&At(a,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&At(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=(p=this.zi)==null?void 0:p.length}catch(y){a.$sdk_debug_error_capturing_properties=String(y)}if(this.requestRouter.region===y_&&(a.$lib_custom_api_host=this.config.api_host),l=t!==Po||i?t!==Jh||i?this.pageViewM
36anager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,s),a=At(a,l),t===Po&&fe&&(a.title=fe.title),!_e(o)){var h=r.getTime()-o;a.$duration=parseFloat((h/1e3).toFixed(3))}En&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=At({},u,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),Ye(this.config.property_denylist)?_t(this.config.property_denylist,(function(y){delete a[y]})):de.error(YI+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var g=this.config.sanitize_properties;g&&(de.error(qw),a=g(a,t));var S=this.nn();return a.$process_person_profile=S,S&&!i&&this.sn("_calculate_event_properties"),a}tn(t,n,r){var s;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.nn()||this.Oi&&!r)return t;var i=this.persistence.get_initial_props(),o=(s=this.sessionPropsManager)==null?void 0:s.getSetOnceProps(),a=At({},i,o||{},t||{}),c=this.config.sanitize_properties;return c&&(de.error(qw),a=c(a,"$set_once")),n&&(this.Oi=!0),Fo(a)?void 0:a}register(t,n){var r;(r=this.persistence)==null||r.register(t,n)}register_once(t,n,r){var s;(s=this.persistence)==null||s.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}an(t,n){this.register({[t]:n})}getFeatureFlag(t,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(t)}getFeatureFlagResult(t,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(t,n)}isFeatureEnabled(t,n){var r;return(r=this.featureFlags)==null?void 0:r.isFeatureEnabled(t,n)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,n,r){var s;(s=this.featureFlags)==null||s.updateFlags(t,n,r)}updateEarlyAccessFeatureEnrollment(t,n,r){var s;(s=this.featureFlags)==null||s.updateEarlyAccessFeatureEnrollment(t,n,r)}getEarlyAccessFeatures(t,n,r){var s;return n===void 0&&(n=!1),(s=this.featureFlags)==null?void 0:s.getEarlyAccessFeatures(t,n,r)}on(t,n){return this.Li.on(t,n)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:uc}),()=>{})}onSessionId(t){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(t,n):t([],{isLoaded:!1,error:uc})}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,n):t([],{isLoaded:!1,error:uc})}renderSurvey(t,n){var r;(r=this.surveys)==null||r.renderSurvey(t,n)}displaySurvey(t,n){var r;n===void 0&&(n=o6),(r=this.surveys)==null||r.displaySurvey(t,n)}cancelPendingSurvey(t){var n;(n=this.surveys)==null||n.cancelPendingSurvey(t)}canRenderSurvey(t){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(t))!==null&&n!==void 0?n:{visible:!1,disabledReason:uc}}canRenderSurveyAsync(t,n){var r,s;return n===void 0&&(n=!1),(r=(s=this.surveys)==null?void 0:s.canRenderSurveyAsync(t,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:uc})}un(t){return!t||pd(t)?(de.critical("Unique user id has not been set in posthog.identify"),!1):t===Uu?(de.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(de.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,n,r){if(!this.__loaded||!this.persistence)return de.uninitializedWarning("posthog.identify");if(Qn(t)&&(t=t.toString(),de.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.un(t)&&this.sn("posthog.identify")){var s=this.get_distinct_id();this.register({$user_id:t}),this.get_property(pf)||this.register_once({$had_persisted_distinct_id:!0,$device_id:s},""),t!==s&&t!==this.get_property(Tc)&&(this.unregister(Tc),this.register({distinct_id:t}));var i,o=(this.persistence.get_property(ir)||_o)===_o;t!==s&&o?(this.persistence.set_property(ir,yo),this.setPersonPropertiesForFlags({$set:n||{},$set_once:r||{}},!1),this.capture(Zh,{distinct_id:t,$anon_distinct_id:s},{$set:n||{},$set_once:r||{}}),this.$i=Hw(t,n,r),(i=this.featureFlags)==null||i.setAnonymousDistinctId(s)):(n||r)&&this.setPersonProperties(n,r),t!==s&&(this.reloadFeatureFlags(),this.unregister(qc))}}setPersonProperties(t,n){if((t||n)&&this.sn("posthog.setPersonProperties")){var r=Hw(this.get_distinct_id(),t,n);this.$i!==r?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!0),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.$i=r):de.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,n,r){if(t&&n){var s=this.getGroups(),i=s[t]!==n;if(i&&this.resetGroupPropertiesForFlags(t),this.register({$groups:ie({},s,{[t]:n})}),i||r){var o={$group_type:t,$group_key:n};r&&(o.$group_set=r),this.capture(Tw,o)}r&&this.setGroupPropertiesForFlags({[t]:r}),i&&!r&&this.reloadFeatureFlags()}else de.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,n){var r;n===void 0&&(n=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(t,n))}resetGroupPropertiesForFlags(t){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(t)}reset(t){var n,r,s,i,o,a,c,l;if(de.info("reset"),!this.__loaded)return de.uninitializedWarning("posthog.reset");var u=this.get_property(pf);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),(s=this.surveys)==null||s.reset(),(i=this.Yi)==null||i.stop(),(o=this.featureFlags)==null||o.reset(),(a=this.conversations)==null||a.reset(),(c=this.persistence)==null||c.set_property(ir,_o),(l=this.sessionManager)==null||l.resetSessionId(),this.$i=null,this.config.cookieless_mode===ls)this.register_once({distinct_id:Uu,$device_id:null},"");else{var d=this.config.get_device_id(Ks());this.register_once({distinct_id:d,$device_id:t?d:u},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}
36setIdentity(t,n){var r;this.config.identity_distinct_id=t,this.config.identity_hash=n,this.alias(t),(r=this.conversations)==null||r.ln()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),s=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(t!=null&&t.withTimestamp&&r){var i,o=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!r)return s;s+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-o,0)}return s}alias(t,n){return t===this.get_property(vI)?(de.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(_e(n)&&(n=this.get_distinct_id()),t!==n?(this.an(Tc,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(de.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n=ie({},this.config);if(Pt(t)){var r,s,i,o,a,c,l,u,d,f;At(this.config,Vw(t));var p=this.Hi();(r=this.persistence)==null||r.update_config(this.config,n,p),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new tg(ie({},this.config,{persistence:"sessionStorage"}),p);var h=this.Di(this.config.debug);Pr(h)&&(this.config.debug=h),Pr(this.config.debug)&&(this.config.debug?(_n.DEBUG=!0,Tt.R()&&Tt.N("ph_debug",!0),de.info("set_config",{config:t,oldConfig:n,newConfig:ie({},this.config)})):(_n.DEBUG=!1,Tt.R()&&Tt.q("ph_debug"))),(s=this.exceptionObserver)==null||s.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),(a=this.autocapture)==null||a.startIfEnabled(),(c=this.heatmaps)==null||c.startIfEnabled(),(l=this.exceptionObserver)==null||l.startIfEnabledOrStop(),(u=this.deadClicksAutocapture)==null||u.startIfEnabledOrStop(),(d=this.surveys)==null||d.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(t,n){_n.LIB_NAME=t,_n.LIB_VERSION=n}startSessionRecording(t){var n,r,s,i,o,a=t===!0,c={sampling:a||!(t==null||!t.sampling),linked_flag:a||!(t==null||!t.linked_flag),url_trigger:a||!(t==null||!t.url_trigger),event_trigger:a||!(t==null||!t.event_trigger)};Object.values(c).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),c.sampling&&((r=this.sessionRecording)==null||r.overrideSampling()),c.linked_flag&&((s=this.sessionRecording)==null||s.overrideLinkedFlag()),c.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),c.event_trigger&&((o=this.sessionRecording)==null||o.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),s=this.exceptions.buildProperties(t,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(ie({},s,n))}}addExceptionStep(t,n){var r;(r=this.exceptions)==null||r.addExceptionStep(t,n)}captureLog(t){var n;(n=this.logs)==null||n.captureLog(t)}get logger(){var t,n;return(t=(n=this.logs)==null?void 0:n.logger)!==null&&t!==void 0?t:Wn.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(t))!==null&&n!==void 0&&n}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:Mo;return n!==Mo&&(n=Mo+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(ir))===yo||((n=this.sessionPersistence)==null?void 0:n.get_property(ir))===yo}nn(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===f_&&!this._isIdentified()&&Fo(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Tc])&&((n=this.persistence)==null||(n=n.props)==null||!n[_f]))}Xi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(de.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(_f,!0),!0)}Hi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Ai)}cn(){var t,n,r,s,i=this.Hi();return((t=this.persistence)==null?void 0:t._r)!==i&&((r=this.persistence)==null||r.set_disabled(i)),((n=this.sessionPersistence)==null?void 0:n._r)!==i&&((s=this.sessionPersistence)==null||s.set_disabled(i)),i}opt_in_capturing(t){var n;if(this.config.cookieless_mode!==ls){if(this.Ri()){var r,s,i,o,a;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(s=this.pageViewM
36anager)==null||s.destroy(),this.sessionManager=new Uw(this),this.pageViewManager=new Rw(this),this.persistence&&(this.sessionPropsManager=new Fw(this,this.sessionManager,this.persistence));var c,l=(i=(o=this.config.__extensionClasses)==null?void 0:o.sessionRecording)!==null&&i!==void 0?i:(a=Wn.__defaultExtensionClasses)==null?void 0:a.sessionRecording;l&&(this.sessionRecording=this.Mi(this.sessionRecording,new l(this)),this.Qi&&((c=this.sessionRecording)==null||c.onRemoteConfig==null||c.onRemoteConfig(this.Qi)))}var u,d;this.consent.optInOut(!0),this.cn(),this.Ji(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==Ai&&((u=this.surveys)==null||u.loadIfEnabled()),(_e(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((d=t?.captureEventName)!==null&&d!==void 0?d:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ki()}else de.warn(Bw)}opt_out_capturing(){var t,n,r;this.config.cookieless_mode!==ls?(this.config.cookieless_mode===Ai&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Ai&&(this.register({distinct_id:Uu,$device_id:null}),(t=this.sessionRecording)==null||t.stopRecording(),this.sessionRecording=void 0,(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.Ki())):de.warn(Bw)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===ls||(this.config.cookieless_mode===Ai?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return Mn?zI(Mn,this.config.custom_blocked_useragents):void 0}Ki(){fe&&(fe.visibilityState==="visible"?this.Fi||(this.Fi=!0,this.capture(Po,{title:fe.title},{send_instantly:!0}),this.Ai&&(fe.removeEventListener(yf,this.Ai),this.Ai=null)):this.Ai||(this.Ai=this.Ki.bind(this),Dt(fe,yf,this.Ai)))}debug(t){t===!1?(G?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(G?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Lr(){var t,n,r,s,i,o,a=this.qi||{};return"advanced_disable_flags"in a?!!a.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(de.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",s=de,i=(n="advanced_disable_flags")in(t=a)&&!Be(t[n]),o=r in t&&!Be(t[r]),i?t[n]:!!o&&(s&&s.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),t[r]))}rn(t){if(Be(this.config.before_send))return t;var n=Ye(this.config.before_send)?this.config.before_send:[this.config.before_send],r=t;for(var s of n){if(r=s(r),Be(r)){var i="Event '"+t.event+"' was rejected in beforeSend function";return UF(t.event)?de.warn(i+". This can cause unexpected behavior."):de.info(i),null}r.properties&&!Fo(r.properties)||de.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,r){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(r)})}Di(t){var n=Pr(t)&&!t,r=Tt.R()&&Tt.A("ph_debug")==="true";return!n&&(!!r||t)}}Wn.__defaultExtensionClasses={},Wn.dn={trace:bo=()=>{},debug:bo,info:bo,warn:bo,error:bo,fatal:bo},(function(e,t){for(var n=0;t.length>n;n++)e.prototype[t[n]]=E4(e.prototype[t[n]])})(Wn,["identify"]);var f6=1,p6=3,h6=11;function zw(e){return e instanceof Element&&(e.id===TI||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Zi(e){return!!e&&e.nodeType===f6}function cr(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function JI(e){return!!e&&e.nodeType===p6}function ZI(e){return!!e&&e.nodeType===h6&&Zi(e.host)}function lv(e){return e?Ap(e).split(/\s+/):[]}function Gw(e){var t=G?.location.href;return!!(t&&e&&e.some((n=>t.match(n))))}function xf(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return lv(t)}function QI(e){return Be(e)?null:Ap(e).split(/(\s+)/).filter((t=>zc(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function bl(e){var t="";return S_(e)&&!tR(e)&&e.childNodes&&e.childNodes.length&&_t(e.childNodes,(function(n){var r;JI(n)&&n.textContent&&(t+=(r=QI(n.textContent))!==null&&r!==void 0?r:"")})),Ap(t)}function Kw(e){return _e(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var uv=["a","button","form","input","select","textarea","label"];function Yw(e,t){if(_e(t))return!0;var n,r=function(i){if(t.some((o=>i.matches(o))))return{v:!0}};for(var s of e)if(n=r(s))return n.v;return!1}function eR(e){var t=e.parentNode;return!(!t||!Zi(t))&&t}var g6=["next","previous","prev",">","<"],Xw=[".ph-no-rageclick",".ph-no-capture"],w_=e=>!e||cr(e,"html")||!Zi(e),Jw=(e,t)=>{if(!G||w_(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],s=e;s.parentNode&&!cr(s,"body");)if(ZI(s.parentNode))r.push(s.parentNode.host),s=s.parentNode.host;else{var i=eR(s);if(!i)break;if(t||uv.indexOf(i.tagName.toLowerCase())>-1)n=!0;else{var o=G.getComputedStyle(i);o&&o.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(i),s=i}return{parentIsUsefulElement:n,targetElementList:r}};function S_(e){for(var t=e;t.parentNode&&!cr(t,"body");t=t.parentNode){var n=xf(t);if(je(n,"ph-sensitive")||je(n,"ph-no-capture"))return!1}if(je(xf(e),"ph-include"))return!0;var r=e.type||"";if(kt(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}
36var s=e.name||e.id||"";return!kt(s)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g,""))}function tR(e){return!!(cr(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||cr(e,"select")||cr(e,"textarea")||e.getAttribute("contenteditable")==="true")}var nR="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",m6=new RegExp("^(?:"+nR+")$"),_6=new RegExp(nR),rR="\\d{3}-?\\d{2}-?\\d{4}",y6=new RegExp("^("+rR+")$"),v6=new RegExp("("+rR+")");function zc(e,t){return t===void 0&&(t=!0),!(Be(e)||kt(e)&&(e=Ap(e),(t?m6:_6).test((e||"").replace(/[- ]/g,""))||(t?y6:v6).test(e)))}function Zw(e){var t=bl(e);return zc(t=(t+" "+sR(e)).trim())?t:""}function sR(e){var t="";return e&&e.childNodes&&e.childNodes.length&&_t(e.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var s=bl(n);t=(t+" "+s).trim(),n.childNodes&&n.childNodes.length&&(t=(t+" "+sR(n)).trim())}catch(i){de.error("[AutoCapture]",i)}})),t}function Qw(e){return e.replace(/"|\\"/g,'\\"')}function b6(e){var t=e.attr__class;return t?Ye(t)?t:lv(t):void 0}class eS{constructor(t){this.disabled=t===!1;var n=Pt(t)?t:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(t,n,r){if(this.disabled)return!1;var s=this.clicks[this.clicks.length-1];if(s&&Math.abs(t-s.x)+Math.abs(n-s.y)<this.thresholdPx&&this.timeoutMs>r-s.timestamp){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}var lg="$copy_autocapture",ug=wt("[AutoCapture]");function dg(e,t){return t.length>e?t.slice(0,e)+"...":t}function w6(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Zi(t));return t}function S6(e,t){var n,r,{e:s,maskAllElementAttributes:i,maskAllText:o,elementAttributeIgnoreList:a,elementsC
36hainAsString:c}=t;if(!Zi(e))return{props:{}};for(var l=[e],u=e;u.parentNode&&!cr(u,"body");)if(ZI(u.parentNode))l.push(u.parentNode.host),u=u.parentNode.host;else{if(!Zi(u.parentNode))break;l.push(u.parentNode),u=u.parentNode}var d,f,p=[],h={},g=!1,S=!1;if(_t(l,(w=>{var x=S_(w);if(cr(w,"a")){var T=w.getAttribute("href");g=x&&!!T&&zc(T)&&T}je(xf(w),"ph-no-capture")&&(S=!0),p.push((function(k,C,M,b){var E=k.tagName.toLowerCase(),I={tag_name:E};uv.indexOf(E)>-1&&!M&&(I.$el_text=E.toLowerCase()==="a"||E.toLowerCase()==="button"?dg(1024,Zw(k)):dg(1024,bl(k)));var A=xf(k);A.length>0&&(I.classes=A.filter((function(D){return D!==""}))),_t(k.attributes,(function(D){var j;if((!tR(k)||["name","id","class","aria-label"].indexOf(D.name)!==-1)&&(b==null||!b.includes(D.name))&&!C&&zc(D.value)&&(!kt(j=D.name)||j.substring(0,10)!=="_ngcontent"&&j.substring(0,7)!=="_nghost")){var q=D.value;D.name==="class"&&(q=lv(q).join(" ")),I["attr__"+D.name]=dg(1024,q)}}));for(var $=1,N=1,O=k;O=w6(O);)$++,O.tagName===k.tagName&&N++;return I.nth_child=$,I.nth_of_type=N,I})(w,i,o,a));var R=(function(k){if(!S_(k))return{};var C={};return _t(k.attributes,(function(M){if(M.name&&M.name.indexOf("data-ph-capture-attribute")===0){var b=M.name.replace("data-ph-capture-attribute-",""),E=M.value;b&&E&&zc(E)&&(C[b]=E)}})),C})(w);At(h,R)})),S)return{props:{},explicitNoCapture:S};if(o||(p[0].$el_text=cr(e,"a")||cr(e,"button")?Zw(e):bl(e)),g){var y,v;p[0].attr__href=g;var m=(y=wf(g))==null?void 0:y.host,_=G==null||(v=G.location)==null?void 0:v.host;m&&_&&m!==_&&(d=g)}return{props:At({$event_type:s.type,$ce_version:1},c?{}:{$elements:p},{$elements_chain:(f=p,(function(w){return w.map((x=>{var T,R,k="";if(x.tag_name&&(k+=x.tag_name),x.attr_class)for(var C of(x.attr_class.sort(),x.attr_class))k+="."+C.replace(/"/g,"");var M=ie({},x.text?{text:x.text}:{},{"nth-child":(T=x.nth_child)!==null&&T!==void 0?T:0,"nth-of-type":(R=x.nth_of_type)!==null&&R!==void 0?R:0},x.href?{href:x.href}:{},x.attr_id?{attr_id:x.attr_id}:{},x.attributes),b={};return md(M).sort(((E,I)=>{var[A]=E,[$]=I;return A.localeCompare($)})).forEach((E=>{var[I,A]=E;return b[Qw(I.toString())]=Qw(A.toString())})),(k+=":")+md(b).map((E=>{var[I,A]=E;return I+'="'+A+'"'})).join("")})).join(";")})((function(w){return w.map((x=>{var T,R,k={text:(T=x.$el_text)==null?void 0:T.slice(0,400),tag_name:x.tag_name,href:(R=x.attr__href)==null?void 0:R.slice(0,2048),attr_class:b6(x),attr_id:x.attr__id,nth_child:x.nth_child,nth_of_type:x.nth_of_type,attributes:{}};return md(x).filter((C=>{var[M]=C;return M.indexOf("attr__")===0})).forEach((C=>{var[M,b]=C;return k.attributes[M]=b})),k}))})(f)))},(n=p[0])!=null&&n.$el_text?{$el_text:(r=p[0])==null?void 0:r.$el_text}:{},d&&s.type==="click"?{$external_click_url:d}:{},h)}}var dc=wt("[ExceptionAutocapture]");function tS(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],s=n(r);return is(s)&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}var E6=wt("[TracingHeaders]"),Fs=wt("[Web Vitals]"),nS=9e5,rS="disabled",sS="lazy_loading",fc="awaiting_config",Vu="missing_config";wt("[SessionRecording]"),wt("[SessionRecording]");var E_="[SessionRecording]",Zr=wt(E_),T6=wt("[Heatmaps]");function iS(e){return Pt(e)&&"clientX"in e&&"clientY"in e&&Qn(e.clientX)&&Qn(e.clientY)}var oS=wt("[Product Tours]"),k6=["$set_once","$set"],Us=wt("[SiteApps]"),aS="Error while initializing PostHog app with config id ";function wo(e,t,n){if(Be(e))return!1;switch(n){case"exact":return e===t;case"contains":var r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class x6{constructor(t){this.vn=new cv,this.fn=(n,r)=>this.pn(n,r)&&this.gn(n,r)&&this.mn(n,r)&&this.yn(n,r),this.pn=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,n;_e((t=this._instance)==null?void 0:t._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook(((r,s)=>{this.on(r,s)}))}register(t){var n,r;if(!_e((n=this._instance)==null?void 0:n._addCaptureHook)&&(t.forEach((o=>{var a,c;
36(a=this._n)==null||a.add(o),(c=o.steps)==null||c.forEach((l=>{var u;(u=this.bn)==null||u.add(l?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var s,i=new Set;t.forEach((o=>{var a;(a=o.steps)==null||a.forEach((c=>{c!=null&&c.selector&&i.add(c?.selector)}))})),(s=this._instance)==null||s.autocapture.setElementSelectors(i)}}on(t,n){var r;n!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(n?.event))&&this._n&&((r=this._n)==null?void 0:r.size)>0&&this._n.forEach((s=>{this.wn(n,s)&&this.vn.emit("actionCaptured",s.name)}))}xn(t){this.onAction("actionCaptured",(n=>t(n)))}wn(t,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.fn(t,r))return!0;return!1}onAction(t,n){return this.vn.on(t,n)}gn(t,n){if(n!=null&&n.url){var r,s=t==null||(r=t.properties)==null?void 0:r.$current_url;if(!s||typeof s!="string"||!wo(s,n.url,n.url_matching||"contains"))return!1}return!0}mn(t,n){return!!this.Sn(t,n)&&!!this.kn(t,n)&&!!this.Cn(t,n)}Sn(t,n){var r;if(n==null||!n.href)return!0;var s=this.In(t);if(s.length>0)return s.some((a=>wo(a.href,n.href,n.href_matching||"exact")));var i,o=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!o&&wo((i=o.match(/(?::|")href="(.*?)"/))?i[1]:"",n.href,n.href_matching||"exact")}kn(t,n){var r;if(n==null||!n.text)return!0;var s=this.In(t);if(s.length>0)return s.some((l=>wo(l.text,n.text,n.text_matching||"exact")||wo(l.$el_text,n.text,n.text_matching||"exact")));var i,o,a,c=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!c&&(i=(function(l){for(var u,d=[],f=/(?::|")text="(.*?)"/g;!Be(u=f.exec(l));)d.includes(u[1])||d.push(u[1]);return d})(c),o=n.text,a=n.text_matching||"exact",i.some((l=>wo(l,o,a))))}Cn(t,n){var r,s;if(n==null||!n.selector)return!0;var i=t==null||(r=t.properties)==null?void 0:r.$element_selectors;if(i!=null&&i.includes(n.selector))return!0;var o=(t==null||(s=t.properties)==null?void 0:s.$elements_chain)||"";if(n.selector_regex&&o)try{return new RegExp(n.selector_regex).test(o)}catch{return!1}return!1}In(t){var n;return(t==null||(n=t.properties)==null?void 0:n.$elements)==null?[]:t?.properties.$elements}yn(t,n){return n==null||!n.properties||n.properties.length===0||KI(n.properties.reduce(((r,s)=>{var i=Ye(s.value)?s.value.map(String):s.value!=null?[String(s.value)]:[];return r[s.key]={values:i,operator:s.operator||"exact"},r}),{}),t?.properties)}}class I6{constructor(t){this._instance=t,this.Tn=new Map,this.En=new Map,this.Mn=new Map}Pn(t,n){return!!t&&KI(t.propertyFilters,n?.properties)}Rn(t,n){var r=new Map;return t.forEach((s=>{var i;(i=s.conditions)==null||(i=i[n])==null||(i=i.values)==null||i.forEach((o=>{if(o!=null&&o.name){var a=r.get(o.name)||[];a.push(s.id),r.set(o.name,a)}}))})),r}On(t,n,r){var s=(r===oc.Activation?this.Tn:this.En).get(t),i=[];return this.Ln((o=>{i=o.filter((a=>s?.includes(a.id)))})),i.filter((o=>{var a,c=(a=o.conditions)==null||(a=a[r])==null||(a=a.values)==null?void 0:a.find((l=>l.name===t));return this.Pn(c,n)}))}register(t){var n;_e((n=this._instance)==null?void 0:n._addCaptureHook)||(this.Fn(t),this.An(t))}An(t){var n=t.filter((r=>{var s,i;return((s=r.conditions)==null?void 0:s.actions)&&((i=r.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));n.length!==0&&(this.Nn==null&&(this.Nn=new x6(this._instance),this.Nn.init(),this.Nn.xn((r=>{this.onAction(r)}))),n.forEach((r=>{var s,i,o,a,c;r.conditions&&(s=r.conditions)!=null&&s.actions&&(i=r.conditions)!=null&&(i=i.actions)!=null&&i.values&&((o=r.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((a=this.Nn)==null||a.register(r.conditions.actions.values),(c=r.conditions)==null||(c=c.actions)==null||(c=c.values)==null||c.forEach((l=>{if(l&&l.name){var u=this.Mn.get(l.name);u&&u.push(r.id),this.Mn.set(l.name,u||[r.id])}})))})))}Fn(t){var n,r=t.filter((i=>{var o,a;return((o=i.conditions)==null?void 0:o.events)&&((a=i.conditions)==null||(a=a.events)==null||(a=a.values)==null?void 0:a.length)>0})),s=t.filter((i=>{var o,a;return((o=i.conditions)==null?void 0:o.cancelEvents)&&((a=i.conditions)==null||(a=a.cancelEvents)==null||(a=a.values)==null?void 0:a.length)>0}));r.length===0&&s.length===0||((n=this._instance)==null||n._addCaptureHook(((i,o)=>{this.onEvent(i,o)})),this.Tn=this.Rn(t,oc.Activation),this.En=this.Rn(t,oc.Cancellation))}onEvent(t,n){var r,s=this.le(),i=this.$n(),o=this.Dn(),a=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[i])||[];if(o===t&&n&&a.length>0){var c,l;s.info("event matched, removing item from activated items",{event:t,eventPayload:n,existingActivatedItems:a});var u=(n==null||(c=n.properties)==null?void 0:c.$survey_id)||(n==null||(l=n.properties)==null?void 0:l.$product_tour_id);if(u){var d=a.indexOf(u);0>
36d||(a.splice(d,1),this.qn(a))}}else{if(this.En.has(t)){var f=this.On(t,n,oc.Cancellation);f.length>0&&(s.info("cancel event matched, cancelling items",{event:t,itemsToCancel:f.map((h=>h.id))}),f.forEach((h=>{var g=a.indexOf(h.id);0>g||a.splice(g,1),this.jn(h.id)})),this.qn(a))}if(this.Tn.has(t)){s.info("event name matched",{event:t,eventPayload:n,items:this.Tn.get(t)});var p=this.On(t,n,oc.Activation);this.qn(a.concat(p.map((h=>h.id))||[]))}}}onAction(t){var n,r=this.$n(),s=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[r])||[];this.Mn.has(t)&&this.qn(s.concat(this.Mn.get(t)||[]))}qn(t){var n=this.le(),r=[...new Set(t)].filter((s=>!this.Hn(s)));n.info("updating activated items",{activatedItems:r}),this.Un(r)}getActivatedIds(){var t,n=this.$n();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[]}getEventToItemsMap(){return this.Tn}Bn(){return this.Nn}}class R6 extends I6{constructor(t){super(t)}$n(){return i_}Dn(){return Cc.SHOWN}Ln(t){var n;(n=this._instance)==null||n.getSurveys(t)}jn(t){var n;(n=this._instance)==null||n.cancelPendingSurvey(t)}le(){return nt}Un(t){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[i_]:t})}Hn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var fg="SDK is not enabled or survey functionality is not yet loaded",cS="Disabled. Not loading surveys.",C6=G!=null&&G.location?Sf(G.location.hash,"__posthog")||Sf(location.hash,"state"):null,lS="_postHogToolbarParams",uS=wt("[Toolbar]"),dn=wt("[FeatureFlags]"),Si=wt("[FeatureFlags]",{debugEnabled:!0}),pg=`" failed. Feature flags didn't load in time.`,dS=e=>{for(var t={},n=0;e.length>n;n++)t[e[n]]=!0;return t},fS=e=>{var t={};for(var[n,r]of md(e||{}))r&&(t[n]=r);return t},Qr=wt("[Error tracking]"),pS="Refusing to render web experiment since the viewer is a likely bot",A6={icontains:(e,t)=>!!G&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!G&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!G&&kf(t.href,e),not_regex:(e,t)=>!!G&&!kf(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class ln{get qt(){return this._instance.config}constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((s=>{ln.zn("retrieved web experiments from the server"),n.Vn=new Map,s.forEac
36h((i=>{if(i.feature_flag_key){var o;n.Vn&&(ln.zn("setting flag key ",i.feature_flag_key," to web experiment ",i),(o=n.Vn)==null||o.set(i.feature_flag_key,i));var a=n._instance.getFeatureFlag(i.feature_flag_key);kt(a)&&i.variants[a]&&n.Wn(i.name,a,i.variants[a].transforms)}else if(i.variants)for(var c in i.variants){var l=i.variants[c];ln.Zn(l)&&n.Wn(i.name,c,l.transforms)}}))}),r)},this._instance=t,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())ln.zn(pS);else if(!this.qt.disable_web_experiments){if(Be(this.Vn))return this.Vn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();ln.zn("applying feature flags",t),t.forEach((n=>{var r;if(this.Vn&&(r=this.Vn)!=null&&r.has(n)){var s,i=this._instance.getFeatureFlag(n),o=(s=this.Vn)==null?void 0:s.get(n);i&&o!=null&&o.variants[i]&&this.Wn(o.name,i,o.variants[i].transforms)}}))}}previewWebExperiment(){var t=ln.getWindowLocation();if(t!=null&&t.search){var n=_l(t?.search,"__experiment_id"),r=_l(t?.search,"__experiment_variant");n&&r&&(ln.zn("previewing web experiments "+n+" && "+r),this.getWebExperiments((s=>{this.Gn(parseInt(n),r,s)}),!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this.qt.disable_web_experiments&&!r)return t([]);var s=this._instance.get_property("$web_experiments");if(s&&!n)return t(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.qt.token),method:"GET",callback:i=>t(i.statusCode===200&&i.json&&i.json.experiments||[])})}Gn(t,n,r){var s=r.filter((i=>i.id===t));s&&s.length>0&&(ln.zn("Previewing web experiment ["+s[0].name+"] with variant ["+n+"]"),this.Wn(s[0].name,n,s[0].variants[n].transforms))}static Zn(t){return!Be(t.conditions)&&ln.Qn(t)&&ln.Jn(t)}static Qn(t){var n;if(Be(t.conditions)||Be((n=t.conditions)==null?void 0:n.url))return!0;var r,s,i,o=ln.getWindowLocation();return!!o&&((r=t.conditions)==null||!r.url||A6[(s=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&s!==void 0?s:"icontains"](t.conditions.url,o))}
36static getWindowLocation(){return G?.location}static Jn(t){var n;if(Be(t.conditions)||Be((n=t.conditions)==null?void 0:n.utm))return!0;var r=PI();if(r.utm_source){var s,i,o,a,c,l,u,d,f=(s=t.conditions)==null||(s=s.utm)==null||!s.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==r.utm_campaign,p=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_source||((a=t.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==r.utm_source,h=(c=t.conditions)==null||(c=c.utm)==null||!c.utm_medium||((l=t.conditions)==null||(l=l.utm)==null?void 0:l.utm_medium)==r.utm_medium,g=(u=t.conditions)==null||(u=u.utm)==null||!u.utm_term||((d=t.conditions)==null||(d=d.utm)==null?void 0:d.utm_term)==r.utm_term;return f&&h&&g&&p}return!1}static zn(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;n>s;s++)r[s-1]=arguments[s];de.info("[WebExperiments] "+t,r)}Wn(t,n,r){this._is_bot()?ln.zn(pS):n!=="control"?r.forEach((s=>{if(s.selector){var i;ln.zn("applying transform of variant "+n+" for experiment "+t+" ",s);var o=(i=document)==null?void 0:i.querySelectorAll(s.selector);o?.forEach((a=>{var c=a;s.html&&(c.innerHTML=s.html),s.css&&c.setAttribute("style",s.css)}))}})):ln.zn("Control variants leave the page unmodified.")}_is_bot(){return Mn&&this._instance?zI(Mn,this.qt.custom_blocked_useragents):void 0}}var jn=wt("[Conversations]"),Ei="Conversations not available yet.",Mp={featureFlags:class{constructor(e){this.Kn=!1,this.Yn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}us(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.qt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}ls(){return!!this.us()&&(this.ss||this.Xn||(this.ss=!0,dn.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.qt.evaluation_contexts)!==null&&e!==void 0?e:this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.ns||(dn.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||dn.error("Invalid evaluation context found:",n,"Expected non-empty string"),r})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:n}=this._instance,r=(e=(t=n.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(r).length){var s,i,o=(s=(i=n.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&s!==void 0?s:{},a=Object.keys(r).filter((l=>!!r[l])).reduce(((l,u)=>(l[u]=r[u]||!1,l)),{}),c=Object.keys(o).filter((l=>a[l])).reduce(((l,u)=>(o[u]&&(l[u]=o[u]),l)),{});this.receivedFeatureFlags({featureFlags:a,featureFlagPayloads:c})}}updateFlags(e,t,n){var r=n!=null&&n.merge?this.getFlagVariants():{},s=n!=null&&n.merge?this.getFlagPayloads():{},i=ie({},r,e),o=ie({},s,t),a={};for(var[c,l]of Object.entries(i)){var u=typeof l=="string";a[c]={key:c,enabled:!!u||!!l,variant:u?l:void 0,reason:void 0,metadata:_e(o?.[c])?void 0:{id:0,version:void 0,description:void 0,payload:o[c]}}}this.receivedFeatureFlags({flags:a})}get hasLoadedFlags(){return this.Yn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(t_),t=this.os(ts),n=this.os(Oo);if(!n&&!t)return e||{};var r=At({},e||{}),s=[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])];for(var i of s){var o,a,c=r[i],l=t?.[i],u=_e(l)?(o=c?.enabled)!==null&&o!==void 0&&o:!!l,d=_e(l)?c.variant:typeof l=="string"?l:void 0,f=n?.[i],p=ie({},c,{enabled:u,variant:u?d??c?.variant:void 0});u!==c?.enabled&&(p.original_enabled=c?.enabled),d!==c?.variant&&(p.original_variant=c?.variant),f&&(p.metadata=ie({},c?.metadata,{payload:f,original_payload:c==null||(a=c.metadata)==null?void 0:a.payload})),r[i]=p}return this.Kn||(dn.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:r}),this.Kn=!0),r}getFlagVariants(){var e=this.os(Uo),t=this.os(ts);if(!t)return e||{};for(var n=At({},e),r=Object.keys(t),s=0;r.length>s;s++)n[r[s]]=t[r[s]];return this.Kn||(dn.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.Kn=!0),n}getFlagPayloads(){var e=this.os(n_),t=this.os(Oo);if(!t)return e||{};for(var n=At({},e||{}),r=Object.keys(t),s=0;r.length>s;s++)n[r[s]]=t[r[s]];return this.Kn||(dn.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.Kn=!0),n}reloadFeatureFlags(){this.es||this.qt.advanced_disable_feature_flags||this.ds||(this._instance.Li.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Yn||this.Xn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Lr())if(this.Xn)this.ts=!0;else{var n=this.qt.token,r=this.os(pf),s={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:ie({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(Rc)||{}),group_properties:this.os(Ci),timezone:FI()};Ms(r)||_e(r)||(s.$device_id=r),(e!=null&&e.disableFlags||this.qt.advanced_disable_feature_flags)&&(s.disable_flags=!0),this.cs()&&(s.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.qt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Xn=!0,this._instance._send_request({method:"POST",url:i,data:s,compression:this.qt.disable_compression?void 0:Rr.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:o=>{var a,c,l,u=!0;if(o.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),u=!1),this.Xn=!1,!s.disable_flags||this.ts){this.rs=!u;var d=[];
36o.error?o.error instanceof Error?d.push(o.error.name==="AbortError"?"timeout":"connection_error"):d.push("unknown_error"):o.statusCode!==200&&d.push("api_error_"+o.statusCode),(a=o.json)!=null&&a.errorsWhileComputingFlags&&d.push("errors_while_computing_flags");var f,p=!((c=o.json)==null||(c=c.quotaLimited)==null||!c.includes("feature_flags"));p&&d.push("quota_limited"),(l=this.ni)==null||l.register({[a_]:d}),p?dn.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(s.disable_flags||this.receivedFeatureFlags((f=o.json)!==null&&f!==void 0?f:{},u,{partialResponse:!!this.qt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var n;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var r=this.getFeatureFlagResult(e,t);return(n=r?.variant)!==null&&n!==void 0?n:r?.enabled}}else dn.warn('getFeatureFlag for key "'+e+pg)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var n=this.getFlagVariants(),r=e in n,s=n[e],i=this.getFlagPayloads()[e],o=String(s),a=this.os(r_)||void 0,c=this.os(gf)||void 0,l=this.os(qc)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var u,d=this._instance.get_session_id(),f=this.os(o_);d&&d!==f&&(l={},(u=this.ni)==null||u.register({[qc]:l,[o_]:d}))}if((t.send_event||!("send_event"in t))&&(!(e in l)||!l[e].includes(o))){var p,h,g,S,y,v,m,_,w,x;Ye(l[e])?l[e].push(o):l[e]=[o],(p=this.ni)==null||p.register({[qc]:l});var T=this.getFeatureFlagDetails(e),R=[...(h=this.os(a_))!==null&&h!==void 0?h:[]];_e(s)&&R.push("flag_missing");var k={$feature_flag:e,$feature_flag_response:s,$feature_flag_payload:i||null,$feature_flag_request_id:a,$feature_flag_evaluated_at:c,$feature_flag_bootstrapped_response:((g=this.qt.bootstrap)==null||(g=g.featureFlags)==null?void 0:g[e])||null,$feature_flag_bootstrapped_payload:((S=this.qt.bootstrap)==null||(S=S.featureFlagPayloads)==null?void 0:S[e])||null,$used_bootstrap_value:!this.rs};_e(T==null||(y=T.metadata)==null?void 0:y.version)||(k.$feature_flag_version=T.metadata.version);var C,M=(v=T==null||(m=T.reason)==null?void 0:m.description)!==null&&v!==void 0?v:T==null||(_=T.reason)==null?void 0:_.code;M&&(k.$feature_flag_reason=M),T!=null&&(w=T.metadata)!=null&&w.id&&(k.$feature_flag_id=T.metadata.id),_e(T?.original_variant)&&_e(T?.original_enabled)||(k.$feature_flag_original_response=_e(T.original_variant)?T.original_enabled:T.original_variant),T!=null&&(x=T.metadata)!=null&&x.original_payload&&(k.$feature_flag_original_payload=T==null||(C=T.metadata)==null?void 0:C.original_payload),R.length&&(k.$feature_flag_error=R.join(",")),this._instance.capture("$feature_flag_called",k)}if(r){var b=i;if(!_e(i))try{b=JSON.parse(i)}catch{}return{key:e,enabled:!!s,variant:typeof s=="string"?s:void 0,payload:b}}}}else dn.warn('getFeatureFlagResult for key "'+e+pg)}getRemoteConfigPayload(e,t){var n=this.qt.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.cs()&&(r.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.qt.disable_compression?void 0:Rr.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(s){var i,o=(i=s.json)==null?void 0:i.featureFlagPayloads;t(o?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Yn||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return _e(n)?void 0:!!n}dn.warn('isFeatureEnabled for key "'+e+pg)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}
36receivedFeatureFlags(e,t,n){if(this.ni){this.Yn=!0;var r=this.getFlagVariants(),s=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(o,a,c,l,u,d){c===void 0&&(c={}),l===void 0&&(l={}),u===void 0&&(u={});var f=(R=>{var k=R.flags;return k?(R.featureFlags=Object.fromEntries(Object.keys(k).map((C=>{var M;return[C,(M=k[C].variant)!==null&&M!==void 0?M:k[C].enabled]}))),R.featureFlagPayloads=Object.fromEntries(Object.keys(k).filter((C=>k[C].enabled)).filter((C=>{var M;return(M=k[C].metadata)==null?void 0:M.payload})).map((C=>{var M;return[C,(M=k[C].metadata)==null?void 0:M.payload]})))):dn.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),R})(o),p=f.flags,h=f.featureFlags,g=f.featureFlagPayloads;if(h){var S=o.requestId,y=o.evaluatedAt;if(Ye(h)){dn.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var v={};if(h)for(var m=0;h.length>m;m++)v[h[m]]=!0;a&&a.register({[hd]:h,[Uo]:v})}else{var _=h,w=g,x=p;if(d!=null&&d.partialResponse)_=ie({},c,_),w=ie({},l,w),x=ie({},u,x);else if(o.errorsWhileComputingFlags)if(p){var T=new Set(Object.keys(p).filter((R=>{var k;return!((k=p[R])!=null&&k.failed)})));_=ie({},c,Object.fromEntries(Object.entries(_).filter((R=>{var[k]=R;return T.has(k)})))),w=ie({},l,Object.fromEntries(Object.entries(w||{}).filter((R=>{var[k]=R;return T.has(k)})))),x=ie({},u,Object.fromEntries(Object.entries(x||{}).filter((R=>{var[k]=R;return T.has(k)}))))}else _=ie({},c,_),w=ie({},l,w),x=ie({},u,x);a&&a.register(ie({[hd]:Object.keys(fS(_)),[Uo]:_||{},[n_]:w||{},[t_]:x||{}},S?{[r_]:S}:{},y?{[gf]:y}:{}))}}})(e,this.ni,r,s,i,n),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),dn.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return dn.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(ts),this.ni.unregister(Oo),this.ps(),Si.info("All overrides cleared");if(Ye(e)){var t=dS(e);return this.ni.register({[ts]:t}),this.ps(),Si.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var n,r=e;if(this.Kn=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this.ni.unregister(ts),Si.info("Flag overrides cleared");else if(r.flags){if(Ye(r.flags)){var s=dS(r.flags);this.ni.register({[ts]:s})}else this.ni.register({[ts]:r.flags});Si.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this.ni.unregister(Oo),Si.info("Payload overrides cleared")):r.payloads&&(this.ni.register({[Oo]:r.payloads}),Si.info("Payload overrides set",{payloads:r.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[ts]:e}),this.ps(),Si.info("Flag overrides set",{flags:e});dn.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Yn){var{flags:t,flagVariants:n}=this.gs();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,s=(this.os(Ic)||[]).find((c=>c.flagKey===e)),i={["$feature_enrollment/"+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:i};s&&(o.$early_access_feature_name=s.name),n&&(o.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(i,!1);var a=ie({},this.getFlagVariants(),{[e]:t});(r=this.ni)==null||r.register({[hd]:Object.keys(fS(a)),[Uo]:a}),this.ps()}getEarlyAccessFeatures(e,t,n){t===void 0&&(t=!1);var r=this.os(Ic),s=n?"&"+n.map((i=>"stage="+i)).join("&"):"";if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.qt.token+s),method:"GET",callback:i=>{var o,a;if(i.json){var c=i.json.earlyAccessFeatures;return(o=this.ni)==null||o.unregister(Ic),(a=this.ni)==null||a.register({[Ic]:c}),e(c)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((n=>t[n])),flagVariants:Object.keys(t).filter((n=>t[n])).reduce(((n,r)=>(n[r]=t[r],n)),{})}}ps(e){var{flags:t,flagVariants:n}=this.gs();
36this.featureFlagEventHandlers.forEach((r=>r(t,n,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.os(Rc)||{},r=e?.$set||(e!=null&&e.$set_once?{}:e),s=e?.$set_once,i={};if(s)for(var o in s)({}).hasOwnProperty.call(s,o)&&(o in n||(i[o]=s[o]));this._instance.register({[Rc]:ie({},n,i,r)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Rc)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.os(Ci)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((r=>{n[r]=ie({},n[r],e[r]),delete e[r]})),this._instance.register({[Ci]:ie({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(Ci)||{};this._instance.register({[Ci]:ie({},t,{[e]:{}})})}else this._instance.unregister(Ci)}reset(){this.Yn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Kn=!1}}},O6={sessionRecording:class{get qt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===fc||this.bs===Vu?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=rS,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Zr.error("started without valid sessionManager"),new Error(E_+" started without valid sessionManager. This is a bug.");if(this.qt.cookieless_mode===ls)throw new Error(E_+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(xc))==null||!e.enabled),n=!this.qt.disable_session_recording,r=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return G&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var n=!_e(Object.assign)&&!_e(Array.from);this.ws&&n?(this.xs(e),Zr.info("starting")):(this.bs=rS,this.stopRecording())}}xs(e){var t,n,r;this.ws&&(this.bs!==fc&&this.bs!==Vu&&(this.bs=sS),we!=null&&(t=we.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(n=we.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Ss(e):(r=we.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.ks,(s=>{if(s)return Zr.error("could not load recorder",s);this.Ss(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}Cs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}Is(){var e;(e=this.ni)==null||e.unregister(rv)}Ts(e,t){if(Be(e))return null;var n,r=Qn(e)?e:parseFloat(e);return typeof(n=r)!="number"||!Number.isFinite(n)||0>n||n>1?(Zr.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):r}Es(e){if(this.ni){var t,n,r=this.ni,s=()=>{var i,o=e.sessionRecording===!1?void 0:e.sessionRecording,a=this.Ts((i=this.qt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),c=this.Ts(o?.sampleRate,"remote config sampleRate"),l=a??c;Be(l)&&this.Is();var u=o?.minimumDurationMilliseconds;r.register({[xc]:ie({cache_timestamp:Date.now(),enabled:!!o},o,{networkPayloadCapture:ie({capturePerformance:e.capturePerformance},o?.networkPayloadCapture),canvasRecording:{enabled:o?.recordCanvas,fps:o?.canvasFps,quality:o?.canvasQuality},sampleRate:l,minimumDurationMilliseconds:_e(u)?null:u,endpoint:o?.endpoint,triggerMatchType:o?.triggerMatchType,masking:o?.masking,urlTriggers:o?.urlTriggers,version:o?.version,triggerGroups:o?.triggerGroups})})};s(),(t=this._s)==null||t.call(this),this._s=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(s)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.Es(e),void this.Cs()):(this.Es(e),void this.startIfEnabledOrStop()):(this.bs===fc&&(this.bs=Vu,Zr.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var n;t===void 0&&(t="log"),(n=this.ys)!=null&&n.log?this.ys.log(e,t):Zr.warn("log called before recorder was ready")}get ks(){var e,t,n=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(xc);return(n==null||(t=n.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Ms(){var e,t,n=this._instance.get_property(xc);if(!n)return!1;try{t=typeof n=="object"?n:JSON.parse(n)}catch(s){return Zr.warn("persisted remote config for session recording is invali
36d and will be ignored",s),!1}var r=(e=t.cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-r}Ss(e){var t,n;if((t=we.__PosthogExtensions__)==null||!t.initSessionRecording)return Zr.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[II]:!0});if(this.ys||(this.ys=(n=we.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Ms())return this.bs===Vu||this.bs===fc?void 0:(this.bs=fc,Zr.info("persisted remote config is stale, requesting fresh config before starting"),void new UI(this._instance).load());this.bs=sS,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[wI]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[bI]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,n;this.ys||(n=this.ni)==null||n.register({[e==="url"?SI:EI]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!((n=this.ys)==null||!n.tryAddCustomEvent(e,t))}}},P6={autocapture:class{constructor(e){this.Ps=!1,this.Rs=null,this.Os=!1,this.instance=e,this.rageclicks=new eS(e.config.rageclick),this.Ls=null}initialize(){this.startIfEnabled()}get qt(){var e,t,n=Pt(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(e=n.url_allowlist)==null?void 0:e.map((r=>new RegExp(r))),n.url_ignorelist=(t=n.url_ignorelist)==null?void 0:t.map((r=>new RegExp(r))),n}Fs(){if(this.isBrowserSupported()){if(G&&fe){var e=n=>{n=n||G?.event;try{this.As(n)}catch(r){ug.error("Failed to capture event",r)}};if(Dt(fe,"submit",e,{capture:!0}),Dt(fe,"change",e,{capture:!0}),Dt(fe,"click",e,{capture:!0}),this.qt.capture_copied_text){var t=n=>{n=n||G?.event;try{this.As(n,lg)}catch(r){ug.error("Failed to capture copy/cut event",r)}};Dt(fe,"copy",t,{capture:!0}),Dt(fe,"cut",t,{capture:!0})}}}else ug.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Ps&&(this.Fs(),this.Ps=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Os=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Gm]:!!e.autocapture_opt_out}),this.Rs=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Ls=e}getElementSelectors(e){var t,n=[];return(t=this.Ls)==null||t.forEach((r=>{var s=fe?.querySelectorAll(r);s?.forEach((i=>{e===i&&n.push(r)}))})),n}get isEnabled(){var e,t,n=(e=this.instance.persistence)==null?void 0:e.props[Gm];if(Ms(this.Rs)&&!Pr(n)&&!this.instance.Lr())return!1;var r=(t=this.Rs)!==null&&t!==void 0?t:!!n;return!!this.instance.config.autocapture&&!r}As(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var n,r=Kw(e);JI(r)&&(r=r.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(d,f){if(!G||w_(d))return!1;var p,h,g;if(Pr(f)?(p=!!f&&Xw,h=void 0):(p=(g=f?.css_selector_ignorelist)!==null&&g!==void 0?g:Xw,h=f?.content_ignorelist),p===!1)return!1;var{targetElementList:S}=Jw(d,!1);return!(function(y,v){if(y===!1||_e(y))return!1;var m;if(y===!0)m=g6;else{if(!Ye(y))return!1;if(y.length>10)return de.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;m=y.map((_=>_.toLowerCase()))}return v.some((_=>{var{safeText:w,ariaLabel:x}=_;return m.some((T=>w.includes(T)||x.includes(T)))}))})(h,S.map((y=>{var v;return{safeText:bl(y).toLowerCase(),ariaLabel:((v=y.getAttribute("aria-label"))==null?void 0:v.toLowerCase().trim())||""}})))&&!Yw(S,p)})(r,this.instance.config.rageclick)&&this.As(e,"$rageclick");var s=t===lg;if(r&&(function(d,f,p,h,g){var S,y,v,m;if(p===void 0&&(p=void 0),!G||w_(d)||(S=p)!=null&&S.url_allowlist&&!Gw(p.url_allowlist)||(y=p)!=null&&y.url_ignorelist&&Gw(p.url_ignorelist))return!1;if((v=p)!=null&&v.dom_event_allowlist){var _=p.dom_event_allowlist;if(_&&!_.some((k=>f.type===k)))return!1}var{parentIsUsefulElement:w,targetElementList:x}=Jw(d,h);if(!(function(k,C){var M=C?.element_allowlist;if(_e(M))return!0;var b,E=function(A){if(M.some(($=>A.tagName.toLowerCase()===$)))return{v:!0}};for(var I of k)if(b=E(I))return b.v;return!1})(x,p)||!Yw(x,(m=p)==null?void 0:m.css_selector_allowlist))return!1;var T=G.getComputedStyle(d);if(T&&T.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var R=d.tagName.toLowerCase();switch(R){case"html":return!1;case"form":return(g||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(g||["change","click"]).indexOf(f.type)>=0;default:return w?(g||["click"]).indexOf(f.type)>=0:(g||["click"]).indexOf(f.type)>=0&&(uv.indexOf(R)>-1||d.getAttribute("contenteditable")==="true")}})(r,e,this.qt,s,s?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:o}=S6(r,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsC
36hainAsString:this.Os});if(o)return!1;var a=this.getElementSelectors(r);if(a&&a.length>0&&(i.$element_selectors=a),t===lg){var c,l=QI(G==null||(c=G.getSelection())==null?void 0:c.toString()),u=e.type||"clipboard";if(!l)return!1;i.$selected_content=l,i.$copy_type=u}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return is(fe?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ns=(G==null||(t=G.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(de.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.$s&&this.$s(),this.$s=void 0,de.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(G&&G.history){var n=this;(e=G.history.pushState)!=null&&e.__posthog_wrapped__||tS(G.history,"pushState",(r=>function(s,i,o){r.call(this,s,i,o),n.Ds("pushState")})),(t=G.history.replaceState)!=null&&t.__posthog_wrapped__||tS(G.history,"replaceState",(r=>function(s,i,o){r.call(this,s,i,o),n.Ds("replaceState")})),this.qs()}}Ds(e){try{var t,n=G==null||(t=G.location)==null?void 0:t.pathname;if(!n)return;n!==this.Ns&&this.isEnabled&&this._instance.capture(Po,{navigation_type:e}),this.Ns=n}catch(r){de.error("Error capturing "+e+" pageview",r)}}qs(){if(!this.$s){var e=()=>{this.Ds("popstate")};Dt(G,"popstate",e),this.$s=()=>{G&&G.removeEventListener("popstate",e)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(e){var t;this.js=!1,this.Ps=!1,this.Hs=null,this.instance=e,this.js=!((t=this.instance.persistence)==null||!t.props[Km]),this.rageclicks=new eS(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Pt(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(e=this.qt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Be(this.qt.capture_heatmaps)?Be(this.qt.enable_heatmaps)?this.js:this.qt.enable_heatmaps:this.qt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Ps)return;T6.info("starting..."),this.Us(),this.At()}else{var e;clearInterval((e=this.Hs)!==null&&e!==void 0?e:void 0),this.Bs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Km]:t}),this.js=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.M;return this.M=void 0,e}zs(e){this.Mt(e.originalEvent,"deadclick")}At(){this.Hs&&clearInterval(this.Hs),this.Hs=fe?.visibilityState==="visible"?setInterval(this.Zr.bind(this),this.flushIntervalMilliseconds):null}Us(){G&&fe&&(this.Vs=this.Zr.bind(this),Dt(G,vf,this.Vs),this.Ws=e=>this.Mt(e||G?.event),Dt(fe,"click",this.Ws,{capture:!0}),this.Zs=e=>this.Gs(e||G?.event),Dt(fe,"mousemove",this.Zs,{capture:!0}),this.Qs=new Iw(this.instance,M4,this.zs.bind(this)),this.Qs.startIfEnabledOrStop(),this.Js=this.At.bind(this),Dt(fe,yf,this.Js),this.Ps=!0)}Bs(){var e;G&&fe&&(this.Vs&&G.removeEventListener(vf,this.Vs),this.Ws&&fe.removeEventListener("click",this.Ws,{capture:!0}),this.Zs&&fe.removeEventListener("mousemove",this.Zs,{capture:!0}),this.Js&&fe.removeEventListener(yf,this.Js),clearTimeout(this.Ks),(e=this.Qs)==null||e.stop(),this.Ps=!1)}Ys(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),i=(function(o,a,c){for(var l=o;l&&Zi(l)&&!cr(l,"body");){if(l===c)return!1;if(je(a,G?.getComputedStyle(l).position))return!0;l=eR(l)}return!1})(Kw(e),["fixed","sticky"],s);return{x:e.clientX+(i?0:r),y:e.clientY+(i?0:n),target_fixed:i,type:t}}Mt(e,t){var n;if(t===void 0&&(t="click"),!zw(e.target)&&iS(e)){var r=this.Ys(e,t);(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Xs(ie({},r,{type:"rageclick"})),this.Xs(r)}}Gs(e){!zw(e.target)&&iS(e)&&(clearTimeout(this.Ks),this.Ks=setTimeout((()=>{this.Xs(this.Ys(e,"mousemove"))}),500))}Xs(e){if(G){var t=G.location.href,n=this.qt.custom_personal_data_properties,r=this.qt.mask_personal_data_properties?[...ma,...n||[]]:[],s=yl(t,r,vl);this.M=this.M||{},this.M[s]||(this.M[s]=[]),this.M[s].push(e)}}Zr(){this.M&&!Fo(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Iw,webVitalsAutocapture:class{constructor(e){var t;this.js=!1,this.Ps=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.M.metrics.length!==0&&(this._instance.capture("$web_vitals",this.M.metrics.reduce(((n,r)=>ie({},n,{["$web_vitals_"+r.name+"_event"]:ie({},r),["$web_vitals_"+r.name+"_value"]:r.value})),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=n=>{var r,s=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0);if(_e(s))Fs.error("Could not read session ID. Dropping metrics!");else{this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();_e(i)||(Be(n?.name)||Be(n?.value)?Fs.error("Invalid metric received",n):!this.no||this.no>n.value?(this.M.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),_e(this.M.url)&&(this.M.url=i),this.M.firstMetricTimestamp=_e(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0),this.M.metrics.push(ie({},n,{$current_url:i,$session_id:s.sessionId,$window_id:s.windowId,timestamp:Date.now()})),this.M.metrics.length===this.allowedMetrics.length&&this.eo()):Fs.error("Ignoring metric with value >= "+this.no,n))}},this.so=()=>
36{if(!this.Ps){var n,r,s,i,o=we.__PosthogExtensions__;_e(o)||_e(o.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:r,onFCP:s,onINP:i}=o.postHogWebVitalsCallbacks),n&&r&&s&&i?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&r(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&s(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.ht.bind(this)),this.Ps=!0):Fs.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.js=!((t=this._instance.persistence)==null||!t.props[Zm]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,n=Pt(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Be(n)?((t=this._instance.persistence)==null?void 0:t.props[e_])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(Pt(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Pt(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Pt(this.oo)&&Qn(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:nS;return e>0&&6e4>=e?nS:e}get isEnabled(){var e=Jt?.protocol;if(e!=="http:"&&e!=="https:")return Fs.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Pt(this.oo)?this.oo.web_vitals:Pr(this.oo)?this.oo:void 0;return Pr(t)?t:this.js}startIfEnabled(){this.isEnabled&&!this.Ps&&(Fs.info("enabled, starting..."),this.lr(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Pt(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=Pt(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Zm]:t}),this._instance.persistence.register({[e_]:n})),this.js=t,this.startIfEnabled()}}lr(e){var t,n;(t=we.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(n=we.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(r=>{r?Fs.error("failed to load script",r):e()}))}io(){var e=G?G.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[...ma,...t||[]]:[];return yl(e,n,vl)}Fs.error("Could not determine current URL")}}},M6={exceptionObserver:class{constructor(e){var t,n,r;this.so=()=>{var s;if(G&&this.isEnabled&&(s=we.__PosthogExtensions__)!=null&&s.errorWrappingFunctions){var i=we.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,o=we.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,a=we.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.qt.capture_unhandled_errors&&(this.ao=i(this.captureException.bind(this))),!this.uo&&this.qt.capture_unhandled_rejections&&(this.uo=o(this.captureException.bind(this))),!this.lo&&this.qt.capture_console_errors&&(this.lo=a(this.captureException.bind(this)))}catch(c){dc.error("failed to start",c),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[Ym]),this.do=new BF({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&r!==void 0?r:10,refillInterval:1e4,Gt:dc}),this.qt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Pt(e)?t=ie({},t,e):(_e(e)?this.co:e)&&(t=ie({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(dc.info("enabled"),this.ho(),this.lr(this.so)):this.ho()}lr(e){var t,n;(t=we.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(n=we.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(r=>{if(r)return dc.error("failed to load script",r);e()}))}ho(){var e,t,n;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.uo)==null||t.call(this),this.uo=void 0,(n=this.lo)==null||n.call(this),this.lo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Ym]:this.co}),this.qt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.vo()}captureException(e){var t,n,r,s=(t=e==null||(n=e.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(s)?dc.info("Skipping exception capture because of client rate limiting.",{exception:s}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,n;this.fo=[],this.po=new t4([new l4,new y4,new d4,new u4,new m4,new g4,new p4,new _4],(function(r){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;s>o;o++)i[o-1]=arguments[o];return function(a,c){c===void 0&&(c=0);for(var l=[],u=a.split(` 37`),d=c;u.length>d;d++){var f=u[d];if(1024>=f.length){var p=Ew.test(f)?f.replace(Ew,"$1"):f;if(!p.match(/\S*Error: /)){for(var h of i){var g=h(p,r);if(g){l.push(g);break}}if(l.length>=50)break}}}return(function(S){if(!S.length)return[];var y=Array.from(S);return y.reverse(),y.slice(0,50).map((v=>{return ie({},v,{filename:v.filename||(m=y,m[m.length-1]||{}).filename,function:v.function||ga});var m}))})(l)}})("web:javascript",i4,c4)),this._instance=e,this.fo=(t=(n=this._instance.persistence)==null?void 0:n.get_property(Xm))!==null&&t!==void 0?t:[],this.mo=ff(this.yo()),this.bo=new b4(this.mo)}onConfigChange(){this.mo=ff(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,n,r;if("errorTracking"in e){var s=(t=(n=e.errorTracking)==null?void 0:n.suppressionRules)!==null&&t!==void 0?t:[],i=(r=e.errorTracking)==null?void 0:r.captureExtensionExceptions;this.fo=s,this._instance.persistence&&this._instance.persistence.register({[Xm]:this.fo,[Jm]:i})}}get _o(){var e,t=!!this._instance.get_property(Jm),n=this._instance.config.error_tracking.captureExtensionExceptions;return(e=n??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!kt(e)||e.trim().length===0)return void Qr.warn("Ignoring exception step because message must be a non-empty string");var n=this.wo(t),{sanitizedProperties:r,droppedKeys:s}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var o=[];return{sanitizedProperties:Object.keys(i).reduce(((a,c)=>v4.has(c)?(o.push(c),a):(a[c]=i[c],a)),{}),droppedKeys:o}})(n);s.length>0&&Qr.warn("Ignoring reserved exception step fields",{droppedKeys:s}),this.bo.add(ie({[uf]:e,[df]:new Date().toISOString()},r))}catch(i){Qr.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.xo(t)){if(this.So(t))return this.ko("Exception dropped: matched a suppression rule"),void Qr.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.Co(t))return this.ko("Exception dropped: thrown by a browser extension"),void Qr.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Io(t))return this.ko("Exception dropped: thrown by the PostHog SDK"),void Qr.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.mo.enabled&&Be(e.$exception_steps)?this.To(e):e;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return r&&this.bo.clear(),r}catch(s){return Qr.error("Failed to capture exception event. Dropping this exception.",s),void this.bo.clear()}}catch(s){return void Qr.error("Failed to process exception event. Ignoring this exception.",s)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:ie({},e,{$exception_steps:t})}catch(n){return Qr.error("Failed to read buffered exception steps. Capturing exception without steps.",n),e}}ko(e){this.mo.enabled&&this.bo.add({[uf]:e,[df]:new Date().toISOString()})}wo(e){return Pt(e)?ie({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}So(e){if(e.length===0)return!1;var t=e.reduce(((n,r)=>{var{type:s,value:i}=r;return kt(s)&&s.length>0&&n.$exception_types.push(s),kt(i)&&i.length>0&&n.$exception_values.push(i),n}),{$exception_types:[],$exception_values:[]});return this.fo.some((n=>{var r=n.values.map((s=>{var i,o=GI[s.operator],a=Ye(s.value)?s.value:[s.value],c=(i=t[s.key])!==null&&i!==void 0?i:[];return a.length>0&&o(a,c)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}Co(e){return e.flatMap((t=>{var n,r;
37return(n=(r=t.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}Io(e){if(e.length>0){var t,n,r,s,i=(t=(n=e[0].stacktrace)==null?void 0:n.frames)!==null&&t!==void 0?t:[],o=i[i.length-1];return(r=o==null||(s=o.filename)==null?void 0:s.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}xo(e){return!Be(e)&&Ye(e)}}},L6=ie({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Eo=null,this.Mo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[Qm]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Eo||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(Qm)||this.lr((()=>this.Po()))}lr(e){var t,n;(t=we.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=we.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?oS.error("Could not load product tours script",r):e()}))}Po(){var e;!this.Eo&&(e=we.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Eo=we.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Ye(this.Mo)||t){var n=this.ni;if(n){var r=n.props[gd];if(Ye(r)&&!t)return this.Mo=r,void e(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:s=>{var i=s.statusCode;if(i!==200||!s.json){var o="Product Tours API could not be loaded, status: "+i;return oS.error(o),void e([],{isLoaded:!1,error:o})}var a=Ye(s.json.product_tours)?s.json.product_tours:[];this.Mo=a,n&&n.register({[gd]:a}),e(a,{isLoaded:!0})}})}else e(this.Mo,{isLoaded:!0})}getActiveProductTours(e){Be(this.Eo)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Eo.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Eo)==null||t.showTourById(e)}previewTour(e){this.Eo?this.Eo.previewTour(e):this.lr((()=>{var t;this.Po(),(t=this.Eo)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Eo)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Eo)==null||e.nextStep()}previousStep(){var e;(e=this.Eo)==null||e.previousStep()}clearCache(){var e;this.Mo=null,(e=this.ni)==null||e.unregister(gd)}resetTour(e){var t;(t=this.Eo)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Eo)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Eo)==null||t.cancelPendingTour(e)}}},Mp),N6={siteApps:class{constructor(e){this._instance=e,this.Ro=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Oo(e,t){if(t){var n=this.globalsForEvent(t);this.Ro.push(n),this.Ro.length>1e3&&(this.Ro=this.Ro.slice(10))}}get siteAppLoaders(){var e;return(e=we._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Oo.bind(this));this.Lo=()=>{e(),this.Ro=[],this.Lo=void 0}}}globalsForEvent(e){var t,n,r,s,i,o,a;if(!e)throw new Error("Event payload is required");var c={},l=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var[d,f]of Object.entries(u))c[d]={id:l[d],type:d,properties:f};var{$set_once:p,$set:h}=e;return{event:ie({},Gx(e,k6),{properties:ie({},e.properties,h?{$set:ie({},(t=(n=e.properties)==null?void 0:n.$set)!==null&&t!==void 0?t:{},h)}:{},p?{$set_once:ie({},(r=(s=e.properties)==null?void 0:s.$set_once)!==null&&r!==void 0?r:{},p)}:{}),elements_chain:(i=(o=e.properties)==null?void 0:o.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(a=e.properties)==null?void 0:a.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:c}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var o;!t.errored&&this.Ro.length&&(Us.info("Processing "+this.Ro.length+" events for site app with id "+e.id),this.Ro.forEach((a=>t.processEvent==null?void 0:t.processEvent(a))),t.processedBuffer=!0),Object.values(this.apps).every((a=>a.processedBuffer||a.errored))&&((o=this.Lo)==null||o.call(this))},r=!1,s=o=>{t.errored=!o,t.loaded=!0,Us.info("Site app with id "+e.id+" "+(o?"loaded":"errored")),r&&n()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(o){s(o)}});i&&(t.processEvent=i),r=!0}catch(o){Us.error(aS+e.id,o),s(!1)}if(r&&t.loaded)try{n()}catch(o){Us.error("Error while processing buffered events PostHog app with config id "+e.id,o),t.errored=!0}}Fo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}Ao(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(t)}catch(r){Us.error("Error while processing event "+e.event+" for site app "+n.id,r)}}}onRemoteConfig(e){var t,n,r,s=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Fo(),void this._instance.on("eventCaptured",(c=>this.Ao(c)))):void Us.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.Lo)==null||n.call(this),(r=e.siteApps)!=null&&r.length)if(this.isEnabled){var i=function(c){var l;we["__$$ph_site_app_"+c]=s._instance,(l=we.__PosthogExtensions__)==null||l.loadSiteApp==null||l.loadSiteApp(s._instance,a,(u=>{if(u)return Us.error(aS+c,u)}))};for(var{id:o,url:a}of e.siteApps)i(o)}else Us.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},D6={tracingHeaders:class{constructor(e){this.No=void 0,this.$o=void 0,this.so=()=>{var t,n,r=this.Do()||[];_e(this.No)&&((t=we.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(r,this._instance.get_distinct_id(),this._instance.sessionManager)),_e(this.$o)&&((n=we.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(r,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}lr(e){var t,n;(t=we.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(n=we.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return E6.error("failed to load script",r);e()}))}Do(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Do()?this.lr(this.so):((e=this.No)==null||e.call(this),(t=this.$o)==null||t.call(this),this.No=void 0,this.$o=void 0)}}},$6=ie({surveys:class{get qt(){return this._instance.config}constructor(e){this.qo=void 0,this._surveyManager=null,this.jo=!1,this.Ho=[],this.Uo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.qt.disable_surveys){var t=e.surveys;if(Be(t))return nt.warn("Flags not loaded yet. Not loading surveys.");var n=Ye(t);this.qo=n?t.length>0:t,nt.info("flags response received, isSurveysEnabled: "+this.qo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(n!=null&&n.startsWith(v_)||n!=null&&n.startsWith("inProgressSurvey_"))&&e.push(n)}e.forEach((r=>localStorage.removeItem(r)))}loadIfEnabled(){if(!this._surveyManager)if(this.jo)nt.info("Already initializing surveys, skipping...");else if(this.qt.disable_surveys)nt.info(cS);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())nt.info("Not loading surveys in cookieless mode without consent.");else{var e=we?.__PosthogExtensions__;if(e){if(!_e(this.qo)||this.qt.advanced_enable_surveys){var t=this.qo||this.qt.advanced_enable_surveys;this.jo=!0;try{var n=e.generateSurveys;if(n)return void this.Bo(n,t);var r=e.loadExternalDependency;if(!r)return void this.zo(sv);r(this._instance,"surveys",(s=>{s||!e.generateSurveys?this.zo("Could not load surveys script",s):this.Bo(e.generateSurveys,t)}))}catch(s){throw this.zo("Error initializing surveys",s),s}finally{this.jo=!1}}}else nt.error("PostHog Extensions not found.")}}Bo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new R6(this._instance),nt.info("Surveys loaded successfully"),this.Vo({isLoaded:!0})}zo(e,t){nt.error(e,t),this.Vo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Ho.push(e),this._surveyManager&&this.Vo({isLoaded:!0}),()=>{this.Ho=this.Ho.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.qt.disable_surveys)return nt.info(cS),e([]);var n,r=this._instance.get_property(s_);if(r&&!t)return e(r,{isLoaded:!0});typeof Promise<"u"&&this.Uo?this.Uo.then((s=>{var{surveys:i,context:o}=s;return e(i,o)})):(typeof Promise<"u"&&(this.Uo=new Promise((s=>{n=s}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.qt.token),method:"GET",timeout:this.qt.surveys_request_timeout_ms,callback:s=>{var i;this.Uo=null;var o=s.statusCode;if(o!==200||!s.json){var a="Surveys API could not be loaded, status: "+o;nt.error(a);var c={isLoaded:!1,error:a};return e([],c),void(n==null||n({surveys:[],context:c}))}var l,u=s.json.surveys||[],d=u.filter((p=>(function(h){return!(!h.start_date||h.end_date)}
37)(p)&&((function(h){var g;return!((g=h.conditions)==null||(g=g.events)==null||(g=g.values)==null||!g.length)})(p)||(function(h){var g;return!((g=h.conditions)==null||(g=g.actions)==null||(g=g.values)==null||!g.length)})(p))));d.length>0&&((l=this._surveyEventReceiver)==null||l.register(d)),(i=this._instance.persistence)==null||i.register({[s_]:u});var f={isLoaded:!0};e(u,f),n?.({surveys:u,context:f})}}))}Vo(e){for(var t of this.Ho)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){nt.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Be(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);nt.warn("init was not called")}Wo(e){var t=null;return this.getSurveys((n=>{var r;t=(r=n.find((s=>s.id===e)))!==null&&r!==void 0?r:null})),t}Zo(e){if(Be(this._surveyManager))return{eligible:!1,reason:fg};var t=typeof e=="string"?this.Wo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Be(this._surveyManager))return nt.warn("init was not called"),{visible:!1,disabledReason:fg};var t=this.Zo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Be(this._surveyManager)?(nt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:fg})):new Promise((n=>{this.getSurveys((r=>{var s,i=(s=r.find((a=>a.id===e)))!==null&&s!==void 0?s:null;if(i){var o=this.Zo(i);n({visible:o.eligible,disabledReason:o.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,n){var r;if(Be(this._surveyManager))nt.warn("init was not called");else{var s=typeof e=="string"?this.Wo(e):e;if(s!=null&&s.id)if(i6.includes(s.type)){var i=fe?.querySelector(t);if(i)return(r=s.appearance)!=null&&r.surveyPopupDelaySeconds?(nt.info("Rendering survey "+s.id+" with delay of "+s.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var o,a;nt.info("Rendering survey "+s.id+" with delay of "+((o=s.appearance)==null?void 0:o.surveyPopupDelaySeconds)+" seconds"),(a=this._surveyManager)==null||a.renderSurvey(s,i,n),nt.info("Survey "+s.id+" rendered")}),1e3*s.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(s,i,n);nt.warn("Survey element not found")}else nt.warn("Surveys of type "+s.type+" cannot be rendered in the app");else nt.warn("Survey not found")}}displaySurvey(e,t){var n;if(Be(this._surveyManager))nt.warn("init was not called");else{var r=this.Wo(e);if(r){var s=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(s=ie({},r,{appearance:ie({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==p_.Popover&&t.initialResponses&&nt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(r);if(!i.visible)return void nt.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==p_.Inline?this._surveyManager.handlePopoverSurvey(s,t):this.renderSurvey(s,t.selector,t.properties)}else nt.warn("Survey not found")}}cancelPendingSurvey(e){Be(this._surveyManager)?nt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Mp),F6={toolbar:class{constructor(e){this.instance=e}Go(e){we.ph_toolbar_state=e}Qo(){var e;return(e=we.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),RI(this.instance.config)||!G||!fe)return!1;e=e??G.location,n=n??G.history;try{if(!t){try{G.localStorage.setItem("test","test"),G.localStorage.removeItem("test")}catch{return!1}t=G?.localStorage}var r,s=C6||Sf(e.hash,"__posthog")||Sf(e.hash,"state"),i=s?kw((()=>JSON.parse(atob(decodeURIComponent(s)))))||kw((()=>JSON.parse(decodeURIComponent(s)))):null;return i&&i.action==="ph_authorize"?((r=i).source="url",r&&Object.keys(r).length>0&&(i.desiredHash?e.hash=i.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem(lS)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Jo(e){var t=we.ph_load_toolbar||we.ph_load_editor;!Be(t)&&is(t)?t(e,this.instance):uS.warn("No toolbar load function found")}loadToolbar(e){var t=!(fe==null||!fe.getElementById(TI));if(!G||t)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=ie({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(G.localStorage.setItem(lS,JSON.stringify(ie({},r,{source:void 0}))),this.Qo()===2)this.Jo(r);else if(this.Qo()===0){var s;this.Go(1),(s=we.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return uS.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Jo(r)})),Dt(G,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(r)}))}return!0}Ko(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},U6=ie({experiments:ln},Mp),H6={conversations:class{constructor(e){this.Yo=void 0,this._conversationsManager=null,this.Xo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Be(t)||(Pr(t)?this.Yo=t:(this.Yo=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Yo=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Xo||this._instance.config.disable_conversations||RI(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=we?.__PosthogExtensions__;if(e&&!_e(this.Yo)&&this.Yo)if(this.ea&&this.ea.token){this.Xo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Xo=!1);var n=e.loadExternalDependency;if(!n)return void this.ra(sv);n(this._instance,"conversations",(r=>{r||!e.initConversations?this.ra("Could not load conversations script",r):this.ta(e.initConversations),this.Xo=!1}))}catch(r){this.ra("Error initializing conversations",r),this.Xo=!1}}else jn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),jn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else jn.error("Cannot complete initialization: remote config is null")}ra(e,t){jn.error(e,t),this._conversationsManager=null,this.Xo=!1}show(){this._conversationsManager?this._conversationsManager.show():jn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Yo===!0&&!Ms(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,n){var r=this;return Cn((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(jn.warn(Ei),null)}))()}getMessages(e,t){var n=this;return Cn((function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(jn.warn(Ei),null)}))()}markAsRead(e){var t=this;return Cn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(jn.warn(Ei),null)}))()}getTickets(e){var t=this;return Cn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(jn.warn(Ei),null)}))()}requestRestoreLink(e){var t=this;return Cn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(jn.warn(Ei),null)}))()}restoreFromToken(e){var t=this;return Cn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(jn.warn(Ei),null)}))()}restoreFromUrlToken(){var e=this;return Cn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(jn.warn(Ei),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}ln(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},j6={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=wt("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.ua=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,n=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Be(n)&&n&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.qr&&(clearTimeout(this.qr),this.qr=void 0),this.oa=0,this.aa=0,this.ua=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=we?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(n=>{var r;n||(r=e.logs)==null||!r.initializeLogs?this.Gt.error("Could not load logs script",n):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(sv)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,n,r,s,i,o;if(this._instance.is_capturing())if(e&&e.body){var a=(t=(n=this._instance.config.logs)==null?void 0:n.flushIntervalMs)!==null&&t!==void 0?t:3e3,c=(r=(s=this._instance.config.logs)==null?void 0:s.maxLogsPerInterval)!==null&&r!==void 0?r:1e3,l=Date.now();if(a>l-this.aa||(this.aa=l,this.oa=0,this.ua=!1),c>this.oa){this.oa++;var u=(function(d,f){var p=d.level||"info",{text:h,number:g}=hI[p]||QF,S=String(Date.now())+"000000",y={};f.distinctId&&(y.posthogDistinctId=f.distinctId),f.sessionId&&(y.sessionId=f.sessionId),f.currentUrl&&(y["url.full"]=f.currentUrl),f.screenName&&(y["screen.name"]=f.screenName),f.appState&&(y["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(y.feature_flags=f.activeFeatureFlags);var v=ie({},y,d.attributes||{}),m={timeUnixNano:S,observedTimeUnixNano:S,severityNumber:g,severityText:h,body:{stringValue:d.body},attributes:Sw(v)};return d.trace_id&&(m.traceId=d.trace_id),d.span_id&&(m.spanId=d.span_id),_e(d.trace_flags)||(m.flags=d.trace_flags),m})(e,this.la());this.sa.push({record:u}),((i=(o=this._instance.config.logs)==null?void 0:o.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.ua||(this.Gt.warn("captureLog dropping logs: exceeded "+c+" logs per "+a+"ms"),this.ua=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>
37this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.qr&&(clearTimeout(this.qr),this.qr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var n=this._instance.config.logs,r=ie({"service.name":n?.serviceName||"unknown_service"},n?.environment&&{"deployment.environment":n.environment},n?.serviceVersion&&{"service.version":n.serviceVersion},n?.resourceAttributes),s=(function(o,a,c,l){return{resourceLogs:[{resource:{attributes:Sw(a)},scopeLogs:[{scope:{name:c,version:l},logRecords:o}]}]}})(t.map((o=>o.record)),r,_n.LIB_NAME,_n.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Bi({method:"POST",url:i,data:s,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.qr||(this.qr=setTimeout((()=>{this.qr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}la(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n}if(we!=null&&(e=we.location)!=null&&e.href&&(t.currentUrl=we.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(t.activeFeatureFlags=r)}return t}}},B6=ie({},Mp,O6,P6,M6,L6,N6,$6,D6,F6,U6,H6,j6);Wn.__defaultExtensionClasses=ie({},B6);var hS,q6=(hS=Vc[Mo]=new Wn,(function(){function e(){e.done||(e.done=!0,XI=!1,_t(Vc,(function(t){t._dom_loaded()})))}fe!=null&&fe.addEventListener?fe.readyState==="complete"?e():Dt(fe,"DOMContentLoaded",e,{capture:!1}):G&&de.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),hS);const W6=rt(e=>{const t=Gt();if(!t.public.posthogEnabled||!t.public.posthogPublicKey)return{provide:{posthog:()=>null}};let n=null;const r=()=>{if(n=q6.init(t.public.posthogPublicKey,{api_host:t.public.posthogHost,person_profiles:"identified_only",autocapture:!0,capture_pageview:!1,capture_pageleave:!0,cross_subdomain_cookie:!0,persistence:"localStorage+cookie",loaded:()=>{},disable_session_recording:!1,mask_all_text:!1,mask_all_element_attributes:!1,capture_performance:!0})??null,typeof window<"u"){const i=new URLSearchParams(window.location.search),o={};i.forEach((l,u)=>{(u.startsWith("utm_")||u==="ref"||u==="source")&&(o[u]=l)}),n?.register({referrer:document.referrer||"direct",initial_referrer:document.referrer||"direct",initial_url:window.location.href,screen_width:window.screen.width,screen_height:window.screen.height,viewport_width:window.innerWidth,viewport_height:window.innerHeight,...o});const a=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),c=/iPad|Android/i.test(navigator.userAgent)&&!/Mobile/i.test(navigator.userAgent);n?.register({device_type:c?"tablet":a?"mobile":"desktop",browser_language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}),n?.capture("$pageview",{url:window.location.href,path:window.location.pathname,search:window.location.search,hash:window.location.hash,title:document.title,referrer:document.referrer})}let s=typeof window<"u"?window.location.href:"";if(e.hook("page:finish",()=>{if(n&&typeof window<"u"){const i=window.location.href;if(i===s)return;s=i,n.capture("$pageview",{url:i,path:window.location.pathname,search:window.location.search,hash:window.location.hash,title:document.title,referrer:document.referrer})}}),typeof window<"u"){let i=Date.now(),o=0,a=!0,c=Date.now();document.addEventListener("visibilitychange",()=>{document.hidden?(o+=Date.now()-c,a=!1):(c=Date.now(),a=!0)});const l=()=>{a&&(c=Date.now())};["mousedown","keydown","scroll","touchstart"].forEach(d=>{document.addEventListener(d,l,{passive:!0})});const u=()=>{a&&(o+=Date.now()-c);const d=(Date.now()-i)/1e3;n?.capture("page_leave",{url:window.location.href,path:window.location.pathname,time_on_page:d,engagement_time:o/1e3,scroll_depth:V6()})};window.addEventListener("beforeunload",u),e.hook("page:start",()=>{u(),i=Date.now(),o=0,c=Date.now(),a=!0})}};return Vl()?r():Xy().then(r),{provide:{posthog:()=>n}}});function V6(){if(typeof window>"u")return 0;const e=window.innerHeight,t=document.documentElement.scrollHeight,n=window.pageYOffset||document.documentElement.scrollTop;if(t<=e)return 100;const r=t-e,s=n/r*100;return Math.round(Math.min(100,Math.max(0,s)))}const z6=rt(()=>{if(typeof window>"u")return;const e=(n,r)=>{const s=document.createElement("link");s.rel="modulepreload",s.href=n,s.as=r,s.crossOrigin="anonymous",document.head.appendChild(s)},t=["/_nuxt/entry.mjs","/_nuxt/app.js"];window.addEventListener("load",()=>{t.forEach(n=>e(n,"script"))})}),le=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Te=globalThis,_s="10.53.1";function Ls(){return zl(Te),Te}function zl(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||_s,t[_s]=t[_s]||{}}function Fa(e,t,n=Te){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[_s]=r[_s]||{};return s[e]||(s[e]=t())}const dv=["debug","info","warn","error","log","assert","trace"],G6="Sentry Logger ",If={};function Wr(e){if(!("console"in Te))return e();const t=Te.console,n={},r=Object.keys(If);r.forEach(s=>{const i=If[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function K6(){pv().enabled=!0}function Y6(){pv().enabled=!1}function iR(){return pv().enabled}function X6(...e){fv("log",...e)}function J6(...e){fv("warn",...e)}function Z6(...e){fv("error",...e)}function fv(e,...t){le&&iR()&&Wr(()=>{Te.console[e](`${G6}[${e}]:`,...t)})}function pv(){return le?Fa("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const U={enable:K6,disable:Y6,isEnabled:iR,log:X6,warn:J6,error:Z6},oR=50,Hr="?",gS=/\(error: (.*)\)/,mS=/captureMessage|captureException/;function aR(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(` 38`);for(let a=r;a<o.length;a++){let c=o[a];c.length>1024&&(c=c.slice(0,1024));const l=gS.test(c)?c.replace(gS,"$1"):c;if(!l.includes("Error: ")){for(const u of t){const d=u(l);if(d){i.push(d);break}}if(i.length>=oR+s)break}}return e8(i.slice(s))}}function Q6(e){return Array.isArray(e)?aR(...e):e}function e8(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(zu(t).function||"")&&t.pop(),t.reverse(),mS.test(zu(t).function||"")&&(t.pop(),mS.test(zu(t).function||"")&&t.pop()),t.slice(0,oR).map(n=>({...n,filename:n.filename||zu(t).filename,function:n.function||Hr}))}function zu(e){return e[e.length-1]||{}}const hg="<anonymous>";function Ts(e){try{return!e||typeof e!="function"?hg:e.name||hg}catch{return hg}}function T_(e){const t=e.exception;if(t){const n=[];
38try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function cR(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function t8(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}const Ac={},_S={};function ui(e,t){return Ac[e]=Ac[e]||[],Ac[e].push(t),()=>{const n=Ac[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function di(e,t){if(!_S[e]){_S[e]=!0;try{t()}catch(n){le&&U.error(`Error while instrumenting ${e}`,n)}}}function Gn(e,t){const n=e&&Ac[e];if(n)for(const r of n)try{r(t)}catch(s){le&&U.error(`Error while triggering instrumentation handler. 39Type: ${e} 40Name: ${Ts(r)} 41Error:`,s)}}let gg=null;function lR(e){const t="error";ui(t,e),di(t,n8)}function n8(){gg=Te.onerror,Te.onerror=function(e,t,n,r,s){return Gn("error",{column:r,error:s,line:n,msg:e,url:t}),gg?gg.apply(this,arguments):!1},Te.onerror.__SENTRY_INSTRUMENTED__=!0}let mg=null;function uR(e){const t="unhandledrejection";ui(t,e),di(t,r8)}function r8(){mg=Te.onunhandledrejection,Te.onunhandledrejection=function(e){return Gn("unhandledrejection",e),mg?mg.apply(this,arguments):!0},Te.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const dR=Object.prototype.toString;function ys(e){switch(dR.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return xs(e,Error)}}function Ua(e,t){return dR.call(e)===`[object ${t}]`}function fR(e){return Ua(e,"ErrorEvent")}function yS(e){return Ua(e,"DOMError")}function s8(e){return Ua(e,"DOMException")}function pr(e){return Ua(e,"String")}function Lp(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ks(e){return e===null||Lp(e)||typeof e!="object"&&typeof e!="function"}function Tn(e){return Ua(e,"Object")}function Np(e){return typeof Event<"u"&&xs(e,Event)}function i8(e){return typeof Element<"u"&&xs(e,Element)}function o8(e){return Ua(e,"RegExp")}function co(e){return!!(e?.then&&typeof e.then=="function")}function a8(e){return Tn(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function xs(e,t){try{return e instanceof t}catch{return!1}}function pR(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function hv(e){return typeof Request<"u"&&xs(e,Request)}const gv=Te,c8=80;function Kt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||c8;for(;n&&i++<r&&(l=l8(n,u),!(l==="html"||i>1&&o+s.length*c+l.length>=d));)s.push(l),o+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function l8(e,t){const n=e,r=[];if(!n?.tagName)return"";if(gv.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t?.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s?.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&pr(i)){const o=i.split(/\s+/);for(const a of o)r.push(`.${a}`)}}for(const i of["aria-label","type","name","title","alt"]){const o=n.getAttribute(i);o&&r.push(`[${i}="${o}"]`)}return r.join("")}function lo(){try{return gv.document.location.href}catch{return""}}function mv(e,t=5){if(!gv.HTMLElement)return null;let n=e;for(let r=0;r<t;r++){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 nn(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&hR(s,r);try{e[t]=s}catch{le&&U.log(`Failed to replace method "${t}" in object`,e)}}function on(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{le&&U.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function hR(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,on(e,"__sentry_original__",t)}catch{}}function _v(e){return e.__sentry_original__}function gR(e){if(ys(e))return{message:e.message,name:e.name,stack:e.stack,...bS(e)};if(Np(e)){const t={type:e.type,target:vS(e.target),currentTarget:vS(e.currentTarget),...bS(e)};return typeof CustomEvent<"u"&&xs(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function vS(e){try{return i8(e)?Kt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}
41function bS(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function u8(e){const t=Object.keys(gR(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let So;function Gl(e){if(So!==void 0)return So?So(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Te;return t in n&&typeof n[t]=="function"?(So=n[t],So(e)):(So=null,e())}function vs(){return Gl(()=>Math.random())}function Kl(){return Gl(()=>Date.now())}function wl(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function _g(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Rf(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{pR(s)?n.push(cR(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Gc(e,t,n=!1){return pr(e)?o8(t)?t.test(e):pr(t)?n?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1}function Kn(e,t=[],n=!1){for(const r of t)if(Gc(e,r,n))return!0;return!1}function d8(){const e=Te;return e.crypto||e.msCrypto}let yg;function f8(){return vs()*16}function Vt(e=d8()){try{if(e?.randomUUID)return Gl(()=>e.randomUUID()).replace(/-/g,"")}catch{}return yg||(yg="10000000100040008000"+1e11),yg.replace(/[018]/g,t=>(t^(f8()&15)>>t/4).toString(16))}function mR(e){return e.exception?.values?.[0]}function Mi(e){const{message:t,event_id:n}=e;if(t)return t;const r=mR(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function k_(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function Is(e,t){const n=mR(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s?.data,...t.data};n.mechanism.data=i}}function p8(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(o=>_g(o,0));const i=Math.min(r-1,s);t.context_line=_g(e[i],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(o=>_g(o,0))}function wS(e){if(h8(e))return!0;try{on(e,"__sentry_captured__",!0)}catch{}return!1}function h8(e){try{return e.__sentry_captured__}catch{}}const _R=1e3;function uo(){return Kl()/_R}function g8(){const{performance:e}=Te;if(!e?.now||!e.timeOrigin)return uo;const t=e.timeOrigin;return()=>(t+Gl(()=>e.now()))/_R}let SS;function lt(){return(SS??(SS=g8()))()}let vg=null;function m8(){const{performance:e}=Te;if(!e?.now)return;const t=3e5,n=Gl(()=>e.now()),r=Kl(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const i=e.timing?.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<t?i:r-n}function Ht(){return vg===null&&(vg=m8()),vg}function _8(e){const t=lt(),n={sid:Vt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>v8(n)};return e&&ya(n,e),n}function ya(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||lt(),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:Vt()),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{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function y8(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),ya(e,n)}function v8(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 Yl(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Yl(r[s],t[s],n-1));return r}function jr(){return Vt()}function bs(){return Vt().substring(16)}const x_="_sentrySpan";function Br(e,t){t?on(e,x_,t):delete e[x_]}function va(e){return e[x_]}const b8=100;class vr{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:jr(),sampleRand:vs()}}clone(){const t=new vr;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,Br(t,va(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ya(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof vr?n.getScopeData():Tn(n)?t:void 0,{tags:s,attributes:i,extra:o,user:a,contexts:c,level:l,fingerprint:u=[],propagationContext:d,conversationId:f}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),f&&(this._conversationId=f),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,Br(this,void 0),this._attachments=[],this.setPropagationContext({traceId:jr(),sampleRand:vs()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:b8;if(r<=0)return this;const s={timestamp:uo(),...t,message:t.message?wl(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),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(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:va(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Yl(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||Vt();if(!this._client)return le&&U.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||Vt();if(!this._client)return le&&U.warn("No client configured on scope - will not capture message!"),s;const i=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||Vt();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(le&&U.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
41h(t=>{t(this)}),this._notifyingListeners=!1)}}function w8(){return Fa("defaultCurrentScope",()=>new vr)}function S8(){return Fa("defaultIsolationScope",()=>new vr)}const ES=e=>e instanceof Promise&&!e[yR],yR=Symbol("chained PromiseLike"),vR=(e,t,n)=>{const r=e.then(s=>(t(s),s),s=>{throw n(s),s});return ES(r)&&ES(e)?r:E8(e,r)},E8=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const s=e[r];typeof s=="function"?Object.defineProperty(t,r,{value:(...i)=>s.apply(e,i),enumerable:!0,configurable:!0,writable:!0}):t[r]=s}return n&&Object.assign(t,{[yR]:!0}),t};class T8{constructor(t,n){let r;t?r=t:r=new vr;let s;n?s=n:s=new vr,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return co(r)?vR(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ba(){const e=Ls(),t=zl(e);return t.stack=t.stack||new T8(w8(),S8())}function k8(e){return ba().withScope(e)}function x8(e,t){const n=ba();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function TS(e){return ba().withScope(()=>e(ba().getIsolationScope()))}function I8(){return{withIsolationScope:TS,withScope:k8,withSetScope:x8,withSetIsolationScope:(e,t)=>TS(t),getCurrentScope:()=>ba().getScope(),getIsolationScope:()=>ba().getIsolationScope()}}function fi(e){const t=zl(e);return t.acs?t.acs:I8()}function R8(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function C8(e,t){const{value:n,unit:r}=R8(e)?e:{value:e,unit:void 0},s=A8(n),i=r&&typeof r=="string"?{unit:r}:{};if(s)return{...s,...i};if(!t||t==="skip-undefined"&&n===void 0)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...i}}function wa(e,t=!1){const n={};for(const[r,s]of Object.entries(e??{})){const i=C8(s,t);i&&(n[r]=i)}return n}function kS(e){if(!e)return 0;let t=0;for(const[n,r]of Object.entries(e)){t+=n.length*2,t+=r.type.length*2,t+=(r.unit?.length??0)*2;const s=r.value;Array.isArray(s)?t+=xS(s[0])*s.length:ks(s)?t+=xS(s):t+=100}return t}function xS(e){return typeof e=="string"?e.length*2:typeof e=="boolean"?4:typeof e=="number"?8:0}function A8(e){const 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}}function Pe(){const e=Ls();return fi(e).getCurrentScope()}function It(){const e=Ls();return fi(e).getIsolationScope()}function Wi(){return Fa("globalScope",()=>new vr)}function nr(...e){const t=Ls(),n=fi(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function O8(...e){const t=Ls(),n=fi(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function pe(){return Pe().getClient()}function bR(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,i={trace_id:n,span_id:s||bs()};return r&&(i.parent_span_id=r),i}const Lt="sentry.source",Dp="sentry.sample_rate",wR="sentry.previous_trace_sample_rate",Qe="sentry.op",qe="sentry.origin",Sl="sentry.idle_span_finish_reason",Xl="sentry.measurement_unit",Jl="sentry.measurement_value",P8="sentry.release",M8="sentry.environment",L8="sentry.segment.name",N8="sentry.segment.id",D8="sentry.sdk.name",$8="sentry.sdk.version",F8="user.id",U8="user.email",H8="user.ip_address",j8="user.name",El="sentry.custom_span_name",yv="sentry.profile_id",pi="sentry.exclusive_time",B8="http.request.method",q8="url.full",W8="sentry.link.type",V8="gen_ai.conversation.id",SR=0,Zl=1,We=2;function ER(e){if(e<400&&e>=100)return{code:Zl};if(e>=400&&e<500)switch(e){case 401:return{code:We,message:"unauthenticated"};case 403:return{code:We,message:"permission_denied"};case 404:return{code:We,message:"not_found"};case 409:return{code:We,message:"already_exists"};case 413:return{code:We,message:"failed_precondition"};case 429:return{code:We,message:"resource_exhausted"};case 499:return{code:We,message:"cancelled"};default:return{code:We,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:We,message:"unimplemented"};case 503:return{code:We,message:"unavailable"};case 504:return{code:We,message:"deadline_exceeded"};default:return{code:We,message:"internal_error"}}return{code:We,message:"internal_error"}}function Tl(e,t){e.setAttribute("http.response.status_code",t);const n=ER(t);n.message!=="unknown_error"&&e.setStatus(n)}function z8(e){try{const t=Te.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function G8(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}const TR="_sentryScope",kR="_sentryIsolationScope";function K8(e,t,n){e&&(on(e,kR,z8(n)),on(e,TR,t))}function kl(e){const t=e;return{scope:t[TR],isolationScope:G8(t[kR])}}const Cf="sentry-",Y8=8192;function vv(e){const t=X8(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,i])=>{if(s.startsWith(Cf)){const o=s.slice(Cf.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function xR(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Cf}${r}`]=s),n),{});return J8(t)}function X8(e){if(!(!e||!pr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=IS(n);return Object.entries(r).forEach(([s,i])=>{t[s]=i}),t},{}):IS(e)}function IS(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function J8(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>Y8?(le&&U.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const Z8=/^o(\d+)\./,Q8=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function eU(e){return e==="http"||e==="https"}function Vr(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function IR(e){const t=Q8.exec(e);if(!t){Wr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i="",o="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const d=l.match(/^\d+/);d&&(l=d[0])}return RR({host:i,pass:s,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function RR(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tU(e){if(!le)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(U.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?eU(r)?t&&isNaN(parseInt(t,10))?(U.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(U.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(U.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function nU(e){return e.match(Z8)?.[1]}function CR(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=nU(n)),r}function AR(e){const t=typeof e=="string"?IR(e):RR(e);if(!(!t||!tU(t)))return t}function Qi(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const OR=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function rU(e){if(!e)return;const t=e.match(OR);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 PR(e,t){const n=rU(e),r=vv(t);if(!n?.traceId)return{traceId:jr(),sampleRand:vs()};const s=sU(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:a}=n;return{traceId:i,parentSpanId:o,sampled:a,dsc:r||{},sampleRand:s}}function MR(e=jr(),t=bs(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}
41function LR(e=jr(),t=bs(),n){return`00-${e}-${t}-${n?"01":"00"}`}function sU(e,t){const n=Qi(t?.sample_rand);if(n!==void 0)return n;const r=Qi(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?vs()*r:r+vs()*(1-r):vs()}function iU(e,t){const n=CR(e);return t&&n&&t!==n?(U.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):(e.getOptions().strictTraceContinuation||!1)&&(t&&!n||!t&&n)?(U.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}const NR=0,$p=1;let RS=!1;function oU(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a,links:c}=De(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:s,status:o,origin:a,links:c}}function DR(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:De(e).parent_span_id,i=kl(e).scope,o=r?i?.getPropagationContext().propagationSpanId||bs():t;return{parent_span_id:s,span_id:o,trace_id:n}}function $R(e){const{traceId:t,spanId:n}=e.spanContext(),r=Ns(e);return MR(t,n,r)}function aU(e){const{traceId:t,spanId:n}=e.spanContext(),r=Ns(e);return LR(t,n,r)}function FR(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:t,trace_id:n,sampled:r===$p,attributes:i,...s}))}function UR(e){if(e?.length)return e.map(({context:{spanId:t,traceId:n,traceFlags:r},attributes:s})=>({span_id:t,trace_id:n,sampled:r===$p,attributes:s}))}function ws(e){return typeof e=="number"?CS(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?CS(e.getTime()):lt()}function CS(e){return e>9999999999?e/1e3:e}function De(e){if(qR(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(BR(e)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=e;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:HR(e),start_timestamp:ws(s),timestamp:ws(o)||void 0,status:WR(a),op:r[Qe],origin:r[qe],links:FR(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Af(e){if(qR(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(BR(e)){const{attributes:r,startTime:s,name:i,endTime:o,status:a,links:c}=e;return{name:i,span_id:t,trace_id:n,parent_span_id:HR(e),start_timestamp:ws(s),end_timestamp:ws(o),is_segment:e===Of(e),status:VR(a),attributes:r,links:UR(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===Of(e)}}function HR(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function jR(e){return{...e,attributes:wa(e.attributes),links:e.links?.map(t=>({...t,attributes:wa(t.attributes)}))}}function BR(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function qR(e){return typeof e.getSpanJSON=="function"}function Ns(e){const{traceFlags:t}=e.spanContext();return t===$p}function WR(e){if(!(!e||e.code===SR))return e.code===Zl?"ok":e.message||"internal_error"}function VR(e){return!e||e.code===Zl||e.code===SR||e.message==="cancelled"?"ok":"error"}const Vi="_sentryChildSpans",I_="_sentryRootSpan";function zR(e,t){const n=e[I_]||e;on(t,I_,n),e[Vi]?e[Vi].add(t):on(e,Vi,new Set([t]))}function cU(e,t){e[Vi]&&e[Vi].delete(t)}function Kc(e){const t=new Set;function n(r){if(!t.has(r)&&Ns(r)){t.add(r);const s=r[Vi]?Array.from(r[Vi]):[];for(const i of s)n(i)}}return n(e),Array.from(t)}const xt=Of;function Of(e){return e[I_]||e}function St(){const e=Ls(),t=fi(e);return t.getActiveSpan?t.getActiveSpan():va(Pe())}function Pf(){RS||(Wr(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),RS=!0)}function lU(e,t){e.updateName(t),e.setAttributes({[Lt]:"custom",[El]:t})}let AS=!1;function GR(){if(AS)return;function e(){const t=St(),n=t&&xt(t);if(n){const r="internal_error";le&&U.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:We,message:r})}}e.tag="sentry_tracingErrorCallback",AS=!0,lR(e),uR(e)}function Yn(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||pe()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function OS(e){U.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function xl(e,t){if(!t?.length)return!1;for(const n of t){if(fU(n)){if(e.description&&Gc(e.description,n))return le&&OS(e),
41!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const s=n.name?e.description&&Gc(e.description,n.name):!0,i=n.op?e.op&&Gc(e.op,n.op):!0,o=n.attributes?Object.entries(n.attributes).every(([a,c])=>uU(e.attributes?.[a],c)):!0;if(s&&i&&o)return le&&OS(e),!0}return!1}function uU(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?Gc(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e===t}function dU(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function fU(e){return typeof e=="string"||e instanceof RegExp}const Ql="production",KR="_frozenDsc";function vd(e,t){on(e,KR,t)}function YR(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||Ql,release:n.release,public_key:r,trace_id:e,org_id:CR(t)};return t.emit("createDsc",s),s}function bv(e,t){const n=t.getPropagationContext();return n.dsc||YR(n.traceId,e)}function Fn(e){const t=pe();if(!t)return{};const n=xt(e),r=De(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s[Dp]??s[wR];function a(h){return(typeof o=="number"||typeof o=="string")&&(h.sample_rate=`${o}`),h}const c=n[KR];if(c)return a(c);const l=i?.get("sentry.dsc"),u=l&&vv(l);if(u)return a(u);const d=YR(e.spanContext().traceId,t),f=s[Lt]??s["sentry.span.source"],p=r.description;return f!=="url"&&p&&(d.transaction=p),Yn()&&(d.sampled=String(Ns(n)),d.sample_rand=i?.get("sentry.sample_rand")??kl(n).scope?.getPropagationContext().sampleRand.toString()),a(d),t.emit("createDsc",d,n),d}function pU(e){const t=Fn(e);return xR(t)}class Dn{constructor(t={}){this._traceId=t.traceId||jr(),this._spanId=t.spanId||bs(),this.dropReason=t.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:NR}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function hU(e){return on(e,"_streamed",!0),e}function Fp(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}const XR=Symbol.for("sentry.skipNormalization"),JR=Symbol.for("sentry.overrideNormalizationDepth");function gU(e){on(e,XR,!0)}function mU(e,t){on(e,JR,t)}function _U(e){return!!e[XR]}function yU(e){const t=e[JR];return typeof t=="number"?t:void 0}function Qt(e,t=100,n=1/0){try{return R_("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}
41function ZR(e,t=3,n=100*1024){const r=Qt(e,t);return SU(r)>n?ZR(e,t-1,n):r}function R_(e,t,n=1/0,r=1/0,s=EU()){const[i,o]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=vU(e,t);if(!a.startsWith("[object "))return a;if(_U(t))return t;const c=yU(t),l=c!==void 0?c:n;if(l===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const h=u.toJSON();return R_("",h,l-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=gR(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(f>=r){d[h]="[MaxProperties ~]";break}const g=p[h];d[h]=R_(h,g,l-1,r,s),f++}return o(t),d}function vU(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(pR(t))return cR(t);if(a8(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Ts(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=bU(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function bU(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function wU(e){return~-encodeURI(e).split(/%..|./).length}function SU(e){return wU(JSON.stringify(e))}function EU(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function rr(e,t=[]){return[e,t]}function PS(e,t){const[n,r]=e;return[n,[...r,t]]}function eo(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function C_(e,t){return eo(e,(n,r)=>t.includes(r))}function Mf(e){const t=zl(Te);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function TU(e){const t=zl(Te);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function Lf(e){const[t,n]=e;let r=JSON.stringify(t);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[Mf(r),i]:r.push(typeof i=="string"?Mf(i):i)}for(const i of n){const[o,a]=i;if(s(` 42${JSON.stringify(o)} 43`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Qt(a))}s(c)}}return typeof r=="string"?r:kU(r)}function kU(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function xU(e){let t=typeof e=="string"?Mf(e):e;function n(o){const a=t.subarray(0,o);return t=t.subarray(o+1),a}function r(){let o=t.indexOf(10);return o<0&&(o=t.length),JSON.parse(TU(n(o)))}const s=r(),i=[];for(;t.length;){const o=r(),a=typeof o.length=="number"?o.length:void 0;i.push([o,a?n(a):r()])}return[s,i]}function IU(e){return[{type:"span"},e]}function RU(e){const t=typeof e.data=="string"?Mf(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const QR={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 CU(e){return e in QR}function MS(e){return CU(e)?QR[e]:e}function eu(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function eC(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Vr(r)},...s&&{trace:s}}}function AU(e,t){if(!t)return e;const 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 OU(e,t,n,r){const s=eu(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Vr(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return rr(i,[o])}function PU(e,t,n,r){const s=eu(n),i=e.type&&e.type!=="replay_event"?e.type:"event";AU(e,n?.sdk);const o=eC(e,s,r,t);return delete e.sdkProcessingMetadata,rr(o,[[{type:i},e]])}function MU(e,t){function n(p){return!!p.trace_id&&!!p.public_key}const r=Fn(e[0]),s=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&s&&{dsn:Vr(s)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(p=>{const h=De(p);return!xl({description:h.description,op:h.op,attributes:h.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);const d=a?p=>{const h=De(p),g=Fp(a)?h:a(h);return g||(Pf(),h)}:De,f=[];for(const p of l){const h=d(p);h&&f.push(IU(h))}return rr(o,f)}function LU(e){if(!le)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=De(e),{spanId:s}=e.spanContext(),i=Ns(e),o=xt(e),a=o===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&l.push(`parent ID: ${r}`),!a){const{op:u,description:d}=De(o);l.push(`root ID: ${o.spanContext().spanId}`),u&&l.push(`root op: ${u}`),d&&l.push(`root description: ${d}`)}U.log(`${c} 44 ${l.join(` 45 `)}`)}function NU(e){if(!le)return;const{description:t="< unknown name >",op:n="< unknown op >"}=De(e),{spanId:r}=e.spanContext(),i=xt(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;U.log(o)}function tC(e,t,n,r=St()){const s=r&&xt(r);
45s&&(le&&U.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[Jl]:t,[Xl]:n}))}function LS(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[Xl],i=r[Jl];typeof s=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:s})}),t}function er(e){return e.getOptions().traceLifecycle==="stream"}const NS=1e3;class Up{constructor(t={}){this._traceId=t.traceId||jr(),this._spanId=t.spanId||bs(),this._startTime=t.startTimestamp||lt(),this._links=t.links,this._attributes={},this.setAttributes({[qe]:"manual",[Qe]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?$p:NR}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ws(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Lt,"custom"),this}end(t){this._endTime||(this._endTime=ws(t),NU(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Qe],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:WR(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[qe],profile_id:this._attributes[yv],exclusive_time:this._attributes[pi],measurements:LS(this._events),is_segment:this._isStandaloneSpan&&xt(this)===this||void 0,segment_id:this._isStandaloneSpan?xt(this).spanContext().spanId:void 0,links:FR(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===xt(this),status:VR(this._status),attributes:this._attributes,links:UR(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){le&&U.log("[Tracing] Adding an event to span:",t);const s=DS(n)?n:r||lt(),i=DS(n)?{}:n||{},o={name:t,time:ws(s),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=pe();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===xt(this)))return;if(this._isStandaloneSpan){this._sampled?$U(MU([this],t)):(le&&U.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}else if(t&&er(t)){t.emit("afterSegmentSpanEnd",this);return}const r=this._convertSpanToTransaction();r&&(kl(this).scope||Pe()).captureEvent(r)}_convertSpanToTransaction(){if(!$S(De(this)))return;this._name||(le&&U.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=kl(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const i=Kc(this).filter(d=>d!==this&&!DU(d)).map(d=>De(d)).filter($S),o=this._attributes[Lt];delete this._attributes[El];let a=!1;i.forEach(d=>{delete d.data[El],d.op?.startsWith("gen_ai.")&&(a=!0)});const c={contexts:{trace:oU(this)},spans:i.length>NS?i.sort((d,f)=>d.start_timestamp-f.start_timestamp).slice(0,NS):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Fn(this),hasGenAiSpans:a},request:r,...o&&{transaction_info:{source:o}}},l=LS(this._events);return l&&Object.keys(l).length&&(le&&U.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function DS(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function $S(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function DU(e){return e instanceof Up&&e.isStandaloneSpan()}function $U(e){const t=pe();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function wv(e,t,n=()=>{},r=()=>{}){let s;try{s=e()}catch(i){throw t(i),n(),i}return FU(s,t,n,r)}function FU(e,t,n,r){return co(e)?vR(e,s=>{n(),r(s)},s=>{t(s),n()}):(n(),r(e),e)}function UU(e,t,n){if(!Yn(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const i=Qi(s);if(i===void 0)return le&&U.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(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!i)return le&&U.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,i,r];const o=n<i;return o||le&&U.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[o,i,r]}const A_="__SENTRY_SUPPRESS_TRACING__";function zr(e,t){const n=Ha();if(n.startSpan)return n.startSpan(e,t);const r=Ev(e),{forceTransaction:s,parentSpan:i,scope:o}=e,a=o?.clone();return nr(a,()=>sC(i)(()=>{const l=Pe(),u=Tv(l,i),d=pe(),f=e.onlyIfParent&&!u,p=f?new Dn:Sv({parentSpan:u,spanArguments:r,forceTransaction:s,scope:l});return f&&d?.recordDroppedEvent("no_parent_span","span"),(!iC(p)||!u)&&Br(l,p),wv(()=>t(p),()=>{const{status:h}=De(p);p.isRecording()&&(!h||h==="ok")&&p.setStatus({code:We,message:"internal_error"})},()=>{p.end()})}))}function ps(e,t){const n=Ha();if(n.startSpanManual)return n.startSpanManual(e,t);const r=Ev(e),{forceTransaction:s,parentSpan:i,scope:o}=e,a=o?.clone();return nr(a,()=>sC(i)(()=>{const l=Pe(),u=Tv(l,i),d=e.onlyIfParent&&!u,f=d?new Dn:Sv({parentSpan:u,spanArguments:r,forceTransaction:s,scope:l});return d&&pe()?.recordDroppedEvent("no_parent_span","span"),(!iC(f)||!u)&&Br(l,f),wv(()=>t(f,()=>f.end()),()=>{const{status:p}=De(f);f.isRecording()&&(!p||p==="ok")&&f.setStatus({code:We,message:"internal_error"})})}))}function qr(e){const t=Ha();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Ev(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?o=>nr(e.scope,o):s!==void 0?o=>tu(s,o):o=>o())(()=>{const o=Pe(),a=Tv(o,s),c=pe();return e.onlyIfParent&&!a?(c?.recordDroppedEvent("no_parent_span","span"),new Dn):Sv({parentSpan:a,spanArguments:n,forceTransaction:r,scope:o})})}const HU=(e,t)=>{const n=Ls(),r=fi(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:s,baggage:i}=e,o=pe(),a=vv(i);return o&&!iU(o,a?.org_id)?rC(t):nr(c=>{const l=PR(s,i);return c.setPropagationContext(l),Br(c,void 0),t()})};function tu(e,t){const n=Ha();return n.withActiveSpan?n.withActiveSpan(e,t):nr(r=>(Br(r,e||void 0),t(r)))}function nC(e){const t=Ha();return t.suppressTracing?t.suppressTracing(e):nr(n=>{n.setSDKProcessingMetadata({[A_]:!0});const r=e();return n.setSDKProcessingMetadata({[A_]:void 0}),r})}function rC(e){const t=Ha();return t.startNewTrace?t.startNewTrace(e):nr(n=>(n.setPropagationContext({traceId:jr(),sampleRand:vs()}
45),le&&U.log(`Starting a new trace with id ${n.getPropagationContext().traceId}`),tu(null,e)))}function Sv({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Yn()){const a=new Dn;if(n||!e){const c={sampled:"false",sample_rate:"0",transaction:t.name,...Fn(a)};vd(a,c)}return a}const s=pe();if(BU(s,t))return kv(r)||s?.recordDroppedEvent("ignored","span"),new Dn({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});const i=It();let o;if(e&&!n)o=jU(e,r,t),zR(e,o);else if(e){const a=Fn(e),{traceId:c,spanId:l}=e.spanContext(),u=Ns(e);o=FS({traceId:c,parentSpanId:l,...t},r,u),vd(o,a)}else{const{traceId:a,dsc:c,parentSpanId:l,sampled:u}={...i.getPropagationContext(),...r.getPropagationContext()};o=FS({traceId:a,parentSpanId:l,...t},r,u),c&&vd(o,c)}return LU(o),K8(o,r,i),o}function Ev(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=ws(e.startTime),delete r.startTime,r}return n}function Ha(){const e=Ls();return fi(e)}function FS(e,t,n){const r=pe(),s=r?.getOptions()||{},{name:i=""}=e,o={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",o,{decision:!1});const a=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),u=kv(t),[d,f,p]=u?[!1]:UU(s,{name:i,parentSampled:a,attributes:c,parentSampleRate:Qi(l.dsc?.sample_rate)},l.sampleRand),h=new Up({...e,attributes:{[Lt]:"custom",[Dp]:f!==void 0&&p?f:void 0,...c},sampled:d});return!d&&r&&!u&&(le&&U.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate",er(r)?"span":"transaction")),r&&r.emit("spanStart",h),h}function jU(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),i=kv(t),o=i?!1:Ns(e),a=o?new Up({...n,parentSpanId:r,traceId:s,sampled:o}):new Dn({traceId:s});zR(e,a);const c=pe();return c&&(er(c)&&a instanceof Dn&&(e instanceof Dn&&e.dropReason?(a.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):i||(a.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",a),n.endTimestamp&&(c.emit("spanEnd",a),c.emit("afterSpanEnd",a))),a}function Tv(e,t){if(t)return t;if(t===null)return;const n=va(e);if(!n)return;const r=pe();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?xt(n):n}function sC(e){return e!==void 0?t=>tu(e,t):t=>t()}function BU(e,t){const n=e?.getOptions().ignoreSpans;return!e||!er(e)||!n?.length?!1:xl({description:t.name||"",op:t.attributes?.[Qe]||t.op,attributes:t.attributes},n)}function iC(e){return e instanceof Dn&&e.dropReason==="ignored"}function kv(e){return e.getScopeData().sdkProcessingMetadata[A_]===!0}const bd={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},qU="heartbeatFailed",WU="idleTimeout",VU="finalTimeout",zU="externalFinish";function oC(e,t={}){const n=new Map;let r=!1,s,i=zU,o=!t.disableAutoFinish;const a=[],{idleTimeout:c=bd.idleTimeout,finalTimeout:l=bd.finalTimeout,childSpanTimeout:u=bd.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,p=pe();if(!p||!Yn()){const T=new Dn,R={sample_rate:"0",sampled:"false",...Fn(T)};return vd(T,R),T}const h=Pe(),g=St(),S=GU(e);S.end=new Proxy(S.end,{apply(T,R,k){if(d&&d(S),R instanceof Dn)return;const[C,...M]=k,b=C||lt(),E=ws(b),I=Kc(S).filter(j=>j!==S),A=De(S);if(!I.length||!f)return x(E),Reflect.apply(T,R,[E,...M]);const $=p.getOptions().ignoreSpans,N=I?.reduce((j,q)=>{const oe=De(q);return!oe.timestamp||$&&xl({description:oe.description,op:oe.op,attributes:oe.data},$)?j:j?Math.max(j,oe.timestamp):oe.timestamp},void 0),O=A.start_timestamp,D=Math.min(O?O+l/1e3:1/0,Math.max(O||-1/0,Math.min(E,N||1/0)));return x(D),Reflect.apply(T,R,[D,...M])}});function y(){s&&(clearTimeout(s),s=void 0)}function v(T){y(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=WU,S.end(T))},c)}function m(T){s=setTimeout(()=>{!r&&o&&(i=qU,S.end(T))},u)}function _(T){y(),n.set(T,!0);const R=lt();m(R+u/1e3)}function w(T){if(n.has(T)&&n.delete(T),n.size===0){const R=lt();v(R+c/1e3)}}function x(T){r=!0,n.clear(),a.forEach(I=>I()),Br(h,g);const R=De(S),{start_timestamp:k}=R;if(!k)return;R.data[Sl]||S.setAttribute(Sl,i);const M=R.status;(!M||M==="unknown")&&S.setStatus({code:Zl}),U.log(`[Tracing] Idle span "${R.op}" finished`);const b=Kc(S).filter(I=>I!==S);let E=0;b.forEach(I=>{I.isRecording()&&(I.setStatus({code:We,message:"cancelled"}),I.end(T),le&&U.log("[Tracing] Cancelling span since span ended early",JSON.stringify(I,void 0,2)));const A=De(I),{timestamp:$=0,start_timestamp:N=0}=A,O=N<=T,D=(l+c)/1e3,j=$-N<=D;if(le){const q=JSON.stringify(I,void 0,2);O?j||U.log("[Tracing] Discarding span since it finished after idle span final timeout",q):U.log("[Tracing] Discarding span since it happened after idle span was finished",q)}(!j||!O)&&(cU(S,I),E++)}),E>0&&S.setAttribute("sentry.idle_span_discarded_spans",E)}return a.push(p.on("spanStart",T=>{if(r||T===S||De(T).timestamp||T instanceof Up&&T.isStandaloneSpan())return;Kc(S).includes(T)&&_(T.spanContext().spanId)})),a.push(p.on("spanEnd",T=>{r||w(T.spanContext().spanId)})),a.push(p.on("idleSpanEnableAutoFinish",T=>{T===S&&(o=!0,v(),n.size&&m())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(S.setStatus({code:We,message:"deadline_exceeded"}),i=VU,S.end())},l),S}function GU(e){const t=qr(e);
45return Br(Pe(),t),le&&U.log("[Tracing] Started span is an idle span"),t}function KU(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;YU(e,t),r&&ZU(e,r),QU(e,n),XU(e,s),JU(e,i)}function US(e,t){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:g}=t;pc(e,"extra",n),pc(e,"tags",r),pc(e,"attributes",s),pc(e,"user",i),pc(e,"contexts",o),e.sdkProcessingMetadata=Yl(e.sdkProcessingMetadata,c,2),a&&(e.level=a),h&&(e.transactionName=h),g&&(e.span=g),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 pc(e,t,n){e[t]=Yl(e[t],n,1)}function nu(e,t){const n=Wi().getScopeData();return e&&US(n,e.getScopeData()),t&&US(n,t.getScopeData()),n}function YU(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function XU(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function JU(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ZU(e,t){e.contexts={trace:DR(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Fn(t),...e.sdkProcessingMetadata};const n=xt(t),r=De(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function QU(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}const eH="thismessage:/";function xv(e){return"isRelative"in e}function Iv(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?eH:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function tH(e){if(xv(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Zs(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Nf(e){return e.split(/[?#]/,1)[0]}function nH(e){const{protocol:t,host:n,path:r}=e,s=n?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}function Qs(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),i=e.indexOf(",");let o="";if(t&&i!==-1){const a=e.slice(i+1);o=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function rH(e,t){const n=Af(e),r=Of(e),s=Af(r),{isolationScope:i,scope:o}=kl(e),a=nu(i,o);sH(n,s,t,a);const c=e.kind;oH(n,c),n.is_segment&&t.emit("processSegmentSpan",n),t.emit("processSpan",n);const{beforeSendSpan:l}=t.getOptions(),u=l&&Fp(l)?iH(n,l):n,d=u.attributes?.[Lt];return d&&Xn(u,{"sentry.span.source":d}),{...jR(u),_segmentSpan:r}}function Xn(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([r,s])=>{s!=null&&!(r in n)&&(n[r]=s)})}function sH(e,t,n,r){const s=n.getSdkMetadata(),{release:i,environment:o}=n.getOptions();Xn(e,{[P8]:i,[M8]:o,[L8]:t.name,[N8]:t.span_id,[D8]:s?.sdk?.name,[$8]:s?.sdk?.version,[F8]:r.user?.id,[U8]:r.user?.email,[H8]:r.user?.ip_address,[j8]:r.user?.username,...r.attributes})}function iH(e,t){const n=t(e);return n||(Pf(),e)}const O_=1,HS=2;function oH(e,t){const n=e.attributes;if(!n)return;const r=n["http.request.method"]||n["http.method"];
45if(r){aH(e,n,t,r);return}const s=n["db.system.name"]||n["db.system"],i=typeof n[Qe]=="string"&&`${n[Qe]}`.startsWith("cache.");if(s&&!i){lH(e,n);return}if(n["rpc.service"]){Xn(e,{[Qe]:"rpc"});return}if(n["messaging.system"]){Xn(e,{[Qe]:"message"});return}const o=n["faas.trigger"];o&&Xn(e,{[Qe]:`${o}`})}function aH(e,t,n,r){const s=["http"];n===HS?s.push("client"):n===O_&&s.push("server"),t["sentry.http.prefetch"]&&s.push("prefetch"),Xn(e,{[Qe]:s.join(".")});const i=t[El];if(typeof i=="string"){e.name=i;return}if(t[Lt]==="custom")return;const o=t["http.route"];if(typeof o=="string")e.name=`${r} ${o}`,Xn(e,{[Lt]:"route"});else{if(n===HS||n===O_){const a=cH(t,n);a&&(e.name=`${r} ${a}`)}Xn(e,{[Lt]:"url"})}}function cH(e,t){const n=e["http.url"]||e["url.full"],r=e["http.target"],s=typeof n=="string"?Zs(n):void 0,i=s?nH(s):void 0;if(t===O_&&typeof r=="string")return Nf(r);if(i)return i;if(typeof r=="string")return Nf(r)}function lH(e,t){Xn(e,{[Qe]:"db"});const n=t[El];if(typeof n=="string"){e.name=n;return}if(t[Lt]==="custom")return;const r=t["db.statement"];r&&(e.name=`${r}`,Xn(e,{[Lt]:"task"}))}const bg=0,jS=1,BS=2;function ru(e){return new Il(t=>{t(e)})}function Rv(e){return new Il((t,n)=>{n(e)})}class Il{constructor(t){this._state=bg,this._handlers=[],this._runExecutor(t)}then(t,n){return new Il((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Il((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===bg)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===jS&&n[1](this._value),this._state===BS&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,o)=>{if(this._state===bg){if(co(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(jS,i)},s=i=>{n(BS,i)};try{t(r,s)}catch(i){s(i)}}}function uH(e,t,n,r=0){try{const s=P_(t,n,e,r);return co(s)?s:ru(s)}catch(s){return Rv(s)}}function P_(e,t,n,r){const s=n[r];if(!e||!s)return e;const i=s({...e},t);return le&&i===null&&U.log(`Event processor "${s.id||"?"}" dropped event`),co(i)?i.then(o=>P_(o,t,n,r+1)):P_(i,t,n,r+1)}let Ti,qS,WS,Hs;function aC(e){const t=Te._sentryDebugIds,n=Te._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(Hs&&r.length===qS&&s.length===WS)return Hs;qS=r.length,WS=s.length,Hs={},Ti||(Ti={});const i=(o,a)=>{for(const c of o){const l=a[c],u=Ti?.[c];if(u&&Hs&&l)Hs[u[0]]=l,Ti&&(Ti[c]=[u[0],l]);else if(l){const d=e(c);for(let f=d.length-1;f>=0;f--){const h=d[f]?.filename;if(h&&Hs&&Ti){Hs[h]=l,Ti[c]=[h,l];break}}}}};return t&&i(r,t),n&&i(s,n),Hs}function dH(e,t){const n=aC(e);if(!n)return[];const r=[];for(const s of t){const i=t8(s);i&&n[i]&&r.push({type:"sourcemap",code_file:s,debug_id:n[i]})}return r}function cC(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Vt(),timestamp:t.timestamp||uo()},l=n.integrations||e.integrations.map(y=>y.name);fH(c,e),gH(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&pH(c,e.stackParser);const u=_H(r,n.captureContext);n.mechanism&&Is(c,n.mechanism);const d=s?s.getEventProcessors():[],f=nu(i,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),KU(c,f);const h=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?ru(c):uH(h,c,n)).then(y=>(y&&hH(y),typeof o=="number"&&o>0?mH(y,o,a):y))}function fH(e,t){const{environment:n,release:r,dist:s,maxValueLength:i}=t;e.environment=e.environment||n||Ql,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const o=e.request;o?.url&&i&&(o.url=wl(o.url,i)),i&&e.exception?.values?.forEach(a=>{a.value&&(a.value=wl(a.value,i))})}function pH(e,t){const n=aC(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function hH(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function gH(e,t){t.length>0&&(e.sdk=e.sdk||{}
45,e.sdk.integrations=[...e.sdk.integrations||[],...t])}function mH(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Qt(s.data,t,n)}}))},...e.user&&{user:Qt(e.user,t,n)},...e.contexts&&{contexts:Qt(e.contexts,t,n)},...e.extra&&{extra:Qt(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Qt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:Qt(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Qt(e.contexts.flags,3,n)),r}function _H(e,t){if(!t)return e;const n=e?e.clone():new vr;return n.update(t),n}function yH(e){if(e)return vH(e)?{captureContext:e}:wH(e)?{captureContext:e}:e}function vH(e){return e instanceof vr||typeof e=="function"}const bH=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function wH(e){return Object.keys(e).some(t=>bH.includes(t))}function et(e,t){return Pe().captureException(e,yH(t))}function lC(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return Pe().captureMessage(e,n,r)}function ja(e,t){return Pe().captureEvent(e,t)}function Df(e,t){It().setContext(e,t)}function SH(e){It().setExtras(e)}function EH(e,t){It().setExtra(e,t)}function TH(e){It().setTags(e)}function kH(e,t){It().setTag(e,t)}function uC(e){It().setUser(e)}function xH(e){It().setConversationId(e)}function dC(){return It().lastEventId()}async function IH(e){const t=pe();return t?t.flush(e):(le&&U.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function RH(e){const t=pe();return t?t.close(e):(le&&U.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function CH(){return!!pe()}function fC(){const e=pe();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function pC(e){It().addEventProcessor(e)}function M_(e){const t=It(),{user:n}=nu(t,Pe()),{userAgent:r}=Te.navigator||{},s=_8({user:n,...r&&{userAgent:r},...e}),i=t.getSession();return i?.status==="ok"&&ya(i,{status:"exited"}),Cv(),t.setSession(s),s}function Cv(){const e=It(),n=Pe().getSession()||e.getSession();n&&y8(n),hC(),e.setSession()}function hC(){const e=It(),t=pe(),n=e.getSession();n&&t&&t.captureSession(n)}function wd(e=!1){if(e){Cv();return}hC()}const AH="7";function gC(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function OH(e){return`${gC(e)}${e.projectId}/envelope/`}function PH(e,t){const n={sentry_version:AH};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function mC(e,t,n){return t||`${OH(e)}?${PH(e,n)}`}function MH(e,t){const n=AR(e);if(!n)return"";const r=`${gC(n)}embed/error-page/`;let s=`dsn=${Vr(n)}`;for(const i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const o=t.user;if(!o)continue;o.name&&(s+=`&name=${encodeURIComponent(o.name)}`),o.email&&(s+=`&email=${encodeURIComponent(o.email)}`)}else s+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${s}`}const VS=[];function LH(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function NH(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return LH(r)}function DH(e,t){const n={};return t.forEach(r=>{r?.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&_C(e,r,n)}),n}function zS(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function _C(e,t,n){if(n[t.name]){le&&U.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!VS.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),VS.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}["processSpan","processSegmentSpan"].forEach(r=>{const s=t[r];typeof s=="function"&&e.on(r,i=>s.call(t,i,e))}),le&&U.log(`Integration installed: ${t.name}`)}function L_(e){const t=pe();if(!t){le&&U.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}const $H="sentry.timestamp.sequence";let wg=0,Sg;function yC(e){const t=Math.floor(e*1e3);Sg!==void 0&&t!==Sg&&(wg=0);const n=wg;return wg++,Sg=t,{key:$H,value:{value:n,type:"integer"}}}function vC(e,t){return t?nr(t,()=>{const n=St(),r=n?DR(n):bR(t);return[n?Fn(n):bv(e,t),r]}):[void 0,void 0]}const FH={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function UH(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function HH(){return"npm"}function jH(){return!UH()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function si(){return typeof window<"u"&&(!jH()||BH())}function BH(){return Te.process?.type==="renderer"}function qH(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...si()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}
45function WH(e,t,n,r,s){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Vr(r)),rr(i,[qH(e,s)])}const VH=100;function Sr(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function zH(e,t){const n=Av(),r=bC(e);r===void 0?n.set(e,[t]):r.length>=VH?(Ff(e,r),n.set(e,[t])):n.set(e,[...r,t])}function $f(e,t=Pe(),n=zH){const r=t?.getClient()??pe();if(!r){le&&U.warn("No client available to capture log.");return}const{release:s,environment:i,enableLogs:o=!1,beforeSendLog:a}=r.getOptions();if(!o){le&&U.warn("logging option not enabled, log will not be captured.");return}const[,c]=vC(r,t),l={...e.attributes},{user:{id:u,email:d,username:f},attributes:p={}}=nu(It(),t);Sr(l,"user.id",u,!1),Sr(l,"user.email",d,!1),Sr(l,"user.name",f,!1),Sr(l,"sentry.release",s),Sr(l,"sentry.environment",i);const{name:h,version:g}=r.getSdkMetadata()?.sdk??{};Sr(l,"sentry.sdk.name",h),Sr(l,"sentry.sdk.version",g);const S=r.getIntegrationByName("Replay"),y=S?.getReplayId(!0);Sr(l,"sentry.replay_id",y),y&&S?.getRecordingMode()==="buffer"&&Sr(l,"sentry._internal.replay_is_buffering",!0);const v=e.message;if(Lp(v)){const{__sentry_template_string__:E,__sentry_template_values__:I=[]}=v;I?.length&&(l["sentry.message.template"]=E),I.forEach((A,$)=>{l[`sentry.message.parameter.${$}`]=A})}const m=va(t);Sr(l,"sentry.trace.parent_span_id",m?.spanContext().spanId);const _={...e,attributes:l};r.emit("beforeCaptureLog",_);const w=a?Wr(()=>a(_)):_;if(!w){r.recordDroppedEvent("before_send","log_item",1),le&&U.warn("beforeSendLog returned null, log will not be captured.");return}const{level:x,message:T,attributes:R={},severityNumber:k}=w,C=lt(),M=yC(C),b={timestamp:C,level:x,body:T,trace_id:c?.trace_id,severity_number:k??FH[x],attributes:{...wa(p),...wa(R,!0),[M.key]:M.value}};n(r,b),r.emit("afterCaptureLog",w)}function Ff(e,t){const n=t??bC(e)??[];if(n.length===0)return;const r=e.getOptions(),s=WH(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Av().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function bC(e){return Av().get(e)}function Av(){return Fa("clientToLogBufferMap",()=>new WeakMap)}function GH(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...si()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function KH(e,t,n,r,s){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Vr(r)),rr(i,[GH(e,s)])}const YH=1e3;function es(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function XH(e,t){const n=Pv(),r=wC(e);r===void 0?n.set(e,[t]):r.length>=YH?(Ov(e,r),n.set(e,[t])):n.set(e,[...r,t])}function JH(e,t,n){const{release:r,environment:s}=t.getOptions(),i={...e.attributes};es(i,"user.id",n.id,!1),es(i,"user.email",n.email,!1),es(i,"user.name",n.username,!1),es(i,"sentry.release",r),es(i,"sentry.environment",s);const{name:o,version:a}=t.getSdkMetadata()?.sdk??{};es(i,"sentry.sdk.name",o),es(i,"sentry.sdk.version",a);const c=t.getIntegrationByName("Replay"),l=c?.getReplayId(!0);return es(i,"sentry.replay_id",l),l&&c?.getRecordingMode()==="buffer"&&es(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}function ZH(e,t,n,r){const[,s]=vC(t,n),i=va(n),o=i?i.spanContext().traceId:s?.trace_id,a=i?i.spanContext().spanId:void 0,c=lt(),l=yC(c);return{timestamp:c,trace_id:o??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...wa(r),...wa(e.attributes,"skip-undefined"),[l.key]:l.value}}}function QH(e,t){const n=t?.scope??Pe(),r=t?.captureSerializedMetric??XH,s=n?.getClient()??pe();if(!s){le&&U.warn("No client available to capture metric.");return}const{_experiments:i,enableMetrics:o,beforeSendMetric:a}=s.getOptions();if(!(o??i?.enableMetrics??!0)){le&&U.warn("metrics option not enabled, metric will not be captured.");return}const{user:l,attributes:u}=nu(It(),n),d=JH(e,s,l);s.emit("processMetric",d);const f=a||i?.beforeSendMetric,p=f?f(d):d;if(!p){le&&U.log("`beforeSendMetric` returned `null`, will not send metric.");return}const h=ZH(p,s,n,u);le&&U.log("[Metric]",h),r(s,h),s.emit("afterCaptureMetric",p)}function Ov(e,t){const n=t??wC(e)??[];if(n.length===0)return;const r=e.getOptions(),s=KH(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Pv().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function wC(e){return Pv().get(e)}function Pv(){return Fa("clientToMetricBufferMap",()=>new WeakMap)}function ej(e){const t={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};return jR(t)}function tj(e,t){if(e.type!=="transaction"||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||er(t))return;const n=[],r=[];for(const i of e.spans)i.op?.startsWith("gen_ai.")?n.push(ej(i)):r.push(i);if(n.length===0)return;e.spans=r;const s=t.getOptions().sendDefaultPii?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...si()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}function Hp(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const Mv=Symbol.for("SentryBufferFullError");function Lv(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return Rv(Mv);const a=o();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(o){if(!t.size)return ru(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(l=>Hp(setTimeout(()=>l(!1),o)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:i}}const nj=60*1e3;function SC(e,t=Kl()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?nj:r-t}function rj(e,t){return e[t]||e.all||0}function EC(e,t,n=Kl()){return rj(e,t)>n}function TC(e,{statusCode:t,headers:n},r=Kl()){const s={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,l,,,u]=a.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!l)s.all=r+f;else for(const p of l.split(";"))p==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else o?s.all=r+SC(o,r):t===429&&(s.all=r+60*1e3);return s}const kC=64;function xC(e,t,n=Lv(e.bufferSize||kC)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(eo(o,(d,f)=>{const p=MS(f);
45EC(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):a.push(d)}),a.length===0)return Promise.resolve({});const c=rr(o[0],a),l=d=>{if(C_(c,["client_report"])){le&&U.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}eo(c,(f,p)=>{e.recordDroppedEvent(d,MS(p))})},u=()=>t({body:Lf(c)}).then(d=>d.statusCode===413?(le&&U.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),l("send_error"),d):(le&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&U.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=TC(r,d),d),d=>{throw l("network_error"),le&&U.error("Encountered error running transport request:",d),d});return n.add(u).then(d=>d,d=>{if(d===Mv)return le&&U.error("Skipped sending event because buffer is full."),l("queue_overflow"),Promise.resolve({});throw d})}return{send:i,flush:s}}function sj(e,t,n){const r=[{type:"client_report"},{timestamp:uo(),discarded_events:e}];return rr(t?{dsn:t}:{},[r])}function IC(e){const t=[];e.message&&t.push(e.message);try{const 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 ij(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[yv],exclusive_time:o?.[pi],measurements:e.measurements,is_segment:!0}}function oj(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&&{[yv]:e.profile_id},...e.exclusive_time&&{[pi]:e.exclusive_time}}}},measurements:e.measurements}}const GS="Not capturing exception because it's already been captured.",KS="Discarded session because of missing or non-string release",RC=Symbol.for("SentryInternalError"),CC=Symbol.for("SentryDoNotSendEventError"),aj=5e3;function Sd(e){return{message:e,[RC]:!0}}function Eg(e){return{message:e,[CC]:!0}}function YS(e){return!!e&&typeof e=="object"&&RC in e}function XS(e){return!!e&&typeof e=="object"&&CC in e}function JS(e,t,n,r,s){let i=0,o,a=!1;e.on(n,()=>{i=0,clearTimeout(o),a=!1}),e.on(t,c=>{i+=r(c),i>=8e5?s(e):a||(a=!0,o=Hp(setTimeout(()=>{s(e)},aj)))}),e.on("flush",()=>{s(e)})}class cj{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Lv(t.transportOptions?.bufferSize??kC),t.dsn?this._dsn=AR(t.dsn):le&&U.warn("No DSN provided, client will not send events."),this._dsn){const r=mC(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&JS(this,"afterCaptureLog","flushLogs",fj,Ff),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&JS(this,"afterCaptureMetric","flushMetrics",dj,Ov)}captureException(t,n,r){const s=Vt();if(wS(t))return le&&U.log(GS),s;const i={event_id:s,...n};return this._process(()=>this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r)).then(o=>o),"error"),i.event_id}captureMessage(t,n,r,s){const i={event_id:Vt(),...r},o=Lp(t)?t:String(t),a=ks(t),c=a?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(()=>c.then(l=>this._captureEvent(l,i,s)),a?"unknown":"error"),i.event_id}captureEvent(t,n,r){const s=Vt();if(n?.originalException&&wS(n.originalException))return le&&U.log(GS),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=ZS(t.type);return this._process(()=>this._captureEvent(t,i,a||r,c),l),i.event_id}captureSession(t){this.sendSession(t),ya(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;
45if(this.emit("flush"),!n)return!0;const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){Ff(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];!n&&t.beforeSetup&&t.beforeSetup(this),_C(this,t,this._integrations),n||zS(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);const r=tj(t,this);let s=PU(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])s=PS(s,RU(i));r&&(s=PS(s,r)),this.sendEnvelope(s).then(i=>this.emit("afterSendEvent",t,i))}sendSession(t){const{release:n,environment:r=Ql}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){le&&U.warn(KS);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){le&&U.warn(KS);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=OU(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;le&&U.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...i)=>n(...i);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return le&&U.error("Error while sending envelope:",n),{}}return le&&U.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=DH(this,t),zS(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const i=n.exception?.values;if(i){s=!0,r=!1;for(const c of i)if(c.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(ya(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o?.length&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),cC(i,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...a.contexts?.trace,...bR(r)},...a.contexts};const c=bv(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=Pe(),s=It()){return le&&N_(t)&&U.log(`Captured error event \`${IC(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{le&&(XS(i)?U.log(i.message):YS(i)?U.warn(i.message):U.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,a=AC(t),c=N_(t),u=`before send for type \`${t.type||"error"}\``,d=typeof o>"u"?void 0:Qi(o);if(c&&typeof d=="number"&&vs()>d)return this.recordDroppedEvent("sample_rate","error"),Rv(Eg(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const f=ZS(t.type);return this._prepareEvent(t,n,r,s).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),Eg("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return p;const g=uj(this,i,p,n);return lj(g,u)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",f),a){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw Eg(`${u} returned \`null\`, will not send event.`)}const h=r.getSession()||s.getSession();if(c&&h&&this._updateSessionFromEvent(h,p),a){const S=p.sdkProcessingMetadata?.spanCountBeforeProcessing||0,y=p.spans?p.spans.length:0,v=S-y;v>0&&this.recordDroppedEvent("before_send","span",v)}const g=p.transaction_info;if(a&&g&&p.transaction!==t.transaction){const S="custom";p.transaction_info={...g,source:S}}return this.sendEvent(p,n),p}).then(null,p=>{throw XS(p)||YS(p)?p:(this.captureException(p,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:p}),Sd(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 46Reason: ${p}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Mv&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){le&&U.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){le&&U.log("No outcomes to send");return}if(!this._dsn){le&&U.log("No dsn provided, will not send outcomes");return}le&&U.log("Sending outcomes:",t);const n=sj(t,this._options.tunnel&&Vr(this._dsn));this.sendEnvelope(n)}}function ZS(e){return e==="replay_event"?"replay":e||"error"}function lj(e,t){const n=`${t} must return \`null\` or a valid event.`;if(co(e))return e.then(r=>{if(!Tn(r)&&r!==null)throw Sd(n);return r},r=>{throw Sd(`${t} rejected with ${r}`)});if(!Tn(e)&&e!==null)throw Sd(n);return e}function uj(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,ignoreSpans:o}=t,a=!Fp(t.beforeSendSpan)&&t.beforeSendSpan;let c=n;if(N_(c)&&s)return s(c,r);if(AC(c)){if(a||o){const l=ij(c);if(o?.length&&xl({description:l.description,op:l.op,attributes:l.data},o))return null;if(a){const u=a(l);u?c=Yl(n,oj(u)):Pf()}if(c.spans){const u=[],d=c.spans;for(const p of d){if(o?.length&&xl({description:p.description,op:p.op,attributes:p.data},o)){dU(d,p);continue}if(a){const h=a(p);h?u.push(h):(Pf(),u.push(p))}else u.push(p)}const f=c.spans.length-u.length;f&&e.recordDroppedEvent("before_send","span",f),c.spans=u}}if(i){if(c.spans){const l=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return i(c,r)}}return c}function N_(e){return e.type===void 0}function AC(e){return e.type==="transaction"}function dj(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+OC(e.attributes)}function fj(e){let t=0;return e.message&&(t+=e.message.length*2),t+OC(e.attributes)}function OC(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*QS(n[0]):ks(n)?t+=QS(n):t+=100}),t}function QS(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function pj(e,t){t.debug===!0&&(le?U.enable():Wr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Pe().update(t.initialScope);const r=new e(t);return PC(r),r.init(),r}function PC(e){Pe().setClient(e)}const Tg=100,kg=5e3,hj=36e5;function gj(e){function t(...n){le&&U.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const s=n.createStore(n);let i=kg,o;function a(d,f,p){return C_(d,["client_report"])?!1:n.shouldStore?n.shouldStore(d,f,p):!0}function c(d){o&&clearTimeout(o),o=Hp(setTimeout(async()=>{o=void 0;const f=await s.shift();f&&(t("Attempting to send previously queued event"),f[0].sent_at=new Date().toISOString(),u(f,!0).catch(p=>{t("Failed to retry sending",p)}))},d))}function l(){o||(c(i),i=Math.min(i*2,hj))}async function u(d,f=!1){if(!f&&C_(d,["replay_event","replay_recording"]))return await s.push(d),c(Tg),{};
46try{if(n.shouldSend&&await n.shouldSend(d)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const p=await r.send(d);let h=Tg;if(p){if(p.headers?.["retry-after"])h=SC(p.headers["retry-after"]);else if(p.headers?.["x-sentry-rate-limits"])h=6e4;else if((p.statusCode||0)>=400)return p}return c(h),i=kg,p}catch(p){if(await a(d,p,i))return f?await s.unshift(d):await s.push(d),l(),t("Error sending. Event queued.",p),{};throw p}}return n.flushAtStartup&&l(),{send:u,flush:d=>(d===void 0&&(i=kg,c(Tg)),r.flush(d))}}}const Ed="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function MC(e,t){let n;return eo(e,(r,s)=>(t.includes(s)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function mj(e,t){return n=>{const r=e(n);return{...r,send:async s=>{const i=MC(s,["event","transaction","profile","replay_event"]);return i&&(i.release=t),r.send(s)}}}}function _j(e,t){return rr(t?{...e[0],dsn:t}:e[0],e[1])}function yj(e,t){return n=>{const r=e(n),s=new Map,i=t||(l=>{const u=l.getEvent();return u?.extra?.[Ed]&&Array.isArray(u.extra[Ed])?u.extra[Ed]:[]});function o(l,u){const d=u?`${l}:${u}`:l;let f=s.get(d);if(!f){const p=IR(l);if(!p)return;const h=mC(p,n.tunnel);f=u?mj(e,u)({...n,url:h}):e({...n,url:h}),s.set(d,f)}return[l,f]}async function a(l){function u(h){const g=h?.length?h:["event"];return MC(l,g)}const d=i({envelope:l,getEvent:u}).map(h=>typeof h=="string"?o(h,void 0):o(h.dsn,h.release)).filter(h=>!!h),f=d.length?d:[["",r]];return(await Promise.all(f.map(([h,g])=>g.send(_j(l,h)))))[0]}async function c(l){const u=[...s.values(),r];return(await Promise.all(u.map(f=>f.flush(l)))).every(f=>f)}return{send:a,flush:c}}}function LC(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return bj(e,n)||vj(e,r)}function vj(e,t){return t?eE(e)===eE(t):!1}function bj(e,t){const n=Iv(e);return!n||xv(n)||!t?!1:wj(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function wj(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function eE(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function NC(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const Sj=NC;function Ej(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 DC(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:_s})),s.version=_s)}function Nv(e={}){const t=e.client||pe();if(!fC()||!t)return{};const n=Ls(),r=fi(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||Pe(),i=e.span||St(),o=i?$R(i):Tj(s),a=i?Fn(i):bv(t,s),c=xR(a);if(!OR.test(o))return U.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const u={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(u.traceparent=i?aU(i):kj(s)),u}function Tj(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return MR(t,r,n)}function kj(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return LR(t,r,n)}function xj(e,t,n){let r,s,i;const o=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function u(){return s!==void 0||i!==void 0?c():r}function d(){return s&&clearTimeout(s),s=a(c,t),o&&i===void 0&&(i=a(c,o)),r}return d.cancel=l,d.flush=u,d}const Ij=100;function br(e,t){const n=pe(),r=It();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=Ij}=n.getOptions();if(i<=0)return;const a={timestamp:uo(),...e},c=s?Wr(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let tE;const Rj="FunctionToString",nE=new WeakMap,Cj=(()=>({name:Rj,setupOnce(){tE=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=_v(this),n=nE.has(pe())&&t!==void 0?t:this;return tE.apply(n,e)}}catch{}},setup(e){nE.set(e,!0)}})),$C=Cj,Aj=[/^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$/],Oj="EventFilters",FC=(e={})=>{let t;return{name:Oj,setup(n){const r=n.getOptions();t=rE(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=rE(e,i)}return Pj(n,t)?null:n}}},UC=((e={})=>({...FC(e),name:"InboundFilters"}));function rE(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Aj],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Pj(e,t){if(e.type){if(e.type==="transaction"&&Lj(e,t.ignoreTransactions))return le&&U.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 47Event: ${Mi(e)}`),!0}else{if(Mj(e,t.ignoreErrors))return le&&U.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 48Event: ${Mi(e)}`),!0;if(Fj(e))return le&&U.warn(`Event dropped due to not having an error message, error type or stacktrace. 49Event: ${Mi(e)}`),!0;if(Nj(e,t.denyUrls))return le&&U.warn(`Event dropped due to being matched by \`denyUrls\` option. 50Event: ${Mi(e)}. 51Url: ${Uf(e)}`),!0;if(!Dj(e,t.allowUrls))return le&&U.warn(`Event dropped due to not being matched by \`allowUrls\` option. 52Event: ${Mi(e)}. 53Url: ${Uf(e)}`),!0}return!1}function Mj(e,t){return t?.length?IC(e).some(n=>Kn(n,t)):!1}function Lj(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Kn(n,t):!1}function Nj(e,t){if(!t?.length)return!1;const n=Uf(e);return n?Kn(n,t):!1}function Dj(e,t){if(!t?.length)return!0;const n=Uf(e);return n?Kn(n,t):!0}function $j(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Uf(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?$j(n):null}catch{return le&&U.error(`Cannot extract url for event ${Mi(e)}`),null}}function Fj(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Uj(e,t,n,r,s,i){if(!s.exception?.values||!i||!xs(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=D_(e,t,r,i.originalException,n,s.exception.values,o,0))}function D_(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(xs(r[s],Error)){sE(o,a,r);const l=e(t,r[s]),u=c.length;iE(l,s,u,a),c=D_(e,t,n,r[s],s,[l,...c],l,u)}
53return HC(r)&&r.errors.forEach((l,u)=>{if(xs(l,Error)){sE(o,a,r);const d=e(t,l),f=c.length;iE(d,`errors[${u}]`,f,a),c=D_(e,t,n,l,s,[d,...c],d,f)}}),c}function HC(e){return Array.isArray(e.errors)}function sE(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...HC(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function iE(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Hj(e){return ys(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function oE(e){return Hj(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}const jC=new Map,aE=new Set;function jj(e){if(Te._sentryModuleMetadata)for(const t of Object.keys(Te._sentryModuleMetadata)){const n=Te._sentryModuleMetadata[t];if(aE.has(t))continue;aE.add(t);const r=e(t);for(const s of r.reverse())if(s.filename){jC.set(s.filename,n);break}}}function Bj(e,t){return jj(e),jC.get(t)}function BC(e,t){t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(r=>{if(!r.filename||r.module_metadata)return;const s=Bj(e,r.filename);s&&(r.module_metadata=s)})})}function qC(e){e.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(n=>{delete n.module_metadata})})}const qj=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{eo(t,(n,r)=>{if(r==="event"){const s=Array.isArray(n)?n[1]:void 0;s&&(qC(s),n[1]=s)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;BC(n,t)})}}),cE=new Set([]);function Dv(e){const t="console",n=ui(t,e);return di(t,Wj),n}function Wj(){"console"in Te&&dv.forEach(function(e){e in Te.console&&nn(Te.console,e,function(t){return If[e]=t,function(...n){const r=n[0],s=If[e],i=cE.size&&typeof r=="string"&&Kn(r,cE);i||Gn("console",{args:n,level:e}),(!i||le&&U.isEnabled())&&s?.apply(Te.console,n)}})})}function Hf(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Vj="CaptureConsole",zj=((e={})=>{const t=e.levels||dv,n=e.handled??!0;return{name:Vj,setup(r){"console"in Te&&Dv(({args:s,level:i})=>{pe()!==r||!t.includes(i)||Kj(s,i,n)})}}}),Gj=zj;function Kj(e,t,n){const r=Hf(t),s=new Error,i={level:Hf(t),extra:{arguments:e}};nr(o=>{if(o.addEventProcessor(l=>(l.logger="console",Is(l,{handled:n,type:"auto.core.capture_console"}),l)),t==="assert"){if(!e[0]){const l=`Assertion failed: ${Rf(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),o.captureMessage(l,r,{captureContext:i,syntheticException:s})}return}const a=e.find(l=>l instanceof Error);if(a){et(a,i);return}const c=Rf(e," ");o.captureMessage(c,r,{captureContext:i,syntheticException:s})})}const Yj="Dedupe",Xj=(()=>{let e;return{name:Yj,processEvent(t){if(t.type)return t;try{if(Jj(t,e))return le&&U.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),WC=Xj;function Jj(e,t){return t?!!(Zj(e,t)||Qj(e,t)):!1}function Zj(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zC(e,t)||!VC(e,t))}function Qj(e,t){const n=lE(t),r=lE(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zC(e,t)||!VC(e,t))}function VC(e,t){let n=T_(e),r=T_(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function zC(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function lE(e){return e.exception?.values?.[0]}const eB="ExtraErrorData",tB=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:eB,processEvent(r,s,i){const{maxValueLength:o}=i.getOptions();return rB(r,s,t,n,o)}}}),nB=tB;function rB(e,t={},n,r,s){if(!t.originalException||!ys(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,o=GC(t.originalException,r,s);if(o){const a={...e.contexts},c=Qt(o,n);return Tn(c)&&(gU(c),a[i]=c),{...e,contexts:a}}return e}
53function GC(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};for(const i of Object.keys(e)){if(r.indexOf(i)!==-1)continue;const o=e[i];s[i]=ys(o)||typeof o=="string"?n?wl(`${o}`,n):`${o}`:o}if(t&&e.cause!==void 0)if(ys(e.cause)){const i=e.cause.name||e.cause.constructor.name;s.cause={[i]:GC(e.cause,!1,n)}}else s.cause=e.cause;if(typeof e.toJSON=="function"){const i=e.toJSON();for(const o of Object.keys(i)){const a=i[o];s[o]=ys(a)?a.toString():a}}return s}catch(r){le&&U.error("Unable to extract extra data from the Error object:",r)}return null}function sB(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const s=e[r];s==="."?e.splice(r,1):s===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const iB=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function oB(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=iB.exec(t);return n?n.slice(1):[]}function uE(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n=s.charAt(0)==="/")}return t=sB(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function dE(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function aB(e,t){e=uE(e).slice(1),t=uE(t).slice(1);const n=dE(e.split("/")),r=dE(t.split("/")),s=Math.min(n.length,r.length);let i=s;for(let a=0;a<s;a++)if(n[a]!==r[a]){i=a;break}let o=[];for(let a=i;a<n.length;a++)o.push("..");return o=o.concat(r.slice(i)),o.join("/")}function cB(e,t){return oB(e)[2]||""}const lB="RewriteFrames",uB=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in Te&&!!Te.window,s=e.iteratee||dB({isBrowser:r,root:t,prefix:n});function i(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:o(c.stacktrace)}}))}}}catch{return a}}function o(a){return{...a,frames:a?.frames?.map(c=>s(c))}}return{name:lB,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=i(c)),c}}};function dB({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const s=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){const o=r.filename;o.indexOf(t)===0&&(r.filename=o.replace(t,n))}}else if(s||i){const o=s?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?aB(t,o):cB(o);r.filename=`${n}${a}`}return r}}const fB=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],pB=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],hB={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},KC=["select","insert","upsert","update","delete"];function jp(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Bp(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function YC(e,t){if(Object.keys(t).length>0)return t;if(Array.isArray(e)&&e.length>0)return e}function gB(e,t){return YC(e,t)!==void 0}function mB(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function _B(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let s;return n?.startsWith("fts")?s="textSearch":n?.startsWith("plfts")?s="textSearch[plain]":n?.startsWith("phfts")?s="textSearch[phrase]":n?.startsWith("wfts")?s="textSearch[websearch]":s=n&&hB[n]||"filter",`${s}(${e}, ${r.join(".")})`}function fE(e,t=!1){return new Proxy(e,{apply(n,r,s){return zr({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[qe]:"auto.db.supabase",[Qe]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},i=>Reflect.apply(n,r,s).then(o=>(o&&typeof o=="object"&&"error"in o&&o.error?(i.setStatus({code:We}),et(o.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):i.setStatus({code:Zl}),i.end(),o)).catch(o=>{throw i.setStatus({code:We}),i.end(),et(o,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),o}).then(...s))}})}function yB(e){const t=e.auth;if(!(!t||Bp(e.auth))){for(const n of fB){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=fE(r))}for(const n of pB){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=fE(r,!0))}jp(e.auth)}}function vB(e){Bp(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){const s=Reflect.apply(t,n,r),i=s.constructor;return wB(i),s}}),jp(e.prototype.from))}function bB(e){Bp(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){const s=KC,i=n,o=mB(i.method,i.headers);if(!s.includes(o)||!i?.url?.pathname||typeof i.url.pathname!="string")return Reflect.apply(t,n,r);const a=i.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",l=[];
53for(const[v,m]of i.url.searchParams.entries())l.push(_B(v,m));const u=Object.create(null);if(Tn(i.body))for(const[v,m]of Object.entries(i.body))u[v]=m;const d=!!pe()?.getOptions().sendDefaultPii,f=YC(i.body,u),p=o==="select"?"":`${o}${gB(i.body,u)?"(...) ":""}`,h=d?l.join(" "):l.length>0?"[redacted]":"",g=[p.trimEnd(),h].filter(Boolean).join(" "),S=g?`${g} from(${c})`:`from(${c})`,y={"db.table":c,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers["X-Client-Info"],"db.system":"postgresql","db.operation":o,[qe]:"auto.db.supabase",[Qe]:"db"};return l.length&&d&&(y["db.query"]=l),f!==void 0&&d&&(y["db.body"]=f),zr({name:S,attributes:y},v=>Reflect.apply(t,n,[]).then(m=>{if(v&&(m&&typeof m=="object"&&"status"in m&&Tl(v,m.status||500),v.end()),m?.error){const x=new Error(m.error.message);m.error.code&&(x.code=m.error.code),m.error.details&&(x.details=m.error.details);const T={};l.length&&d&&(T.query=l),f!==void 0&&d&&(T.body=f),et(x,R=>(R.addEventProcessor(k=>(Is(k,{handled:!1,type:"auto.db.supabase.postgres"}),k)),R.setContext("supabase",T),R))}const _={type:"supabase",category:`db.${o}`,message:S},w={};return l.length&&d&&(w.query=l),f!==void 0&&d&&(w.body=f),Object.keys(w).length&&(_.data=w),br(_),m},m=>{throw v&&(Tl(v,500),v.end()),m}).then(...r))}}),jp(e.prototype.then))}function wB(e){for(const t of KC)Bp(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,s){const i=Reflect.apply(n,r,s),o=i.constructor;return le&&U.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),bB(o),i}}),jp(e.prototype[t]))}const XC=e=>{if(!e){le&&U.warn("Supabase integration was not installed because no Supabase client was provided.");return}const t=e.constructor===Function?e:e.constructor;vB(t),yB(e)},SB="Supabase",EB=(e=>({setupOnce(){XC(e)},name:SB})),TB=e=>EB(e.supabaseClient),kB=10,xB="ZodErrors";function IB(e){return ys(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function RB(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function CB(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function AB(e){const t=new Set;for(const r of e.issues){const s=CB(r.path);s.length>0&&t.add(s)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const s=e.issues[0];s!==void 0&&"expected"in s&&typeof s.expected=="string"&&(r=s.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${wl(n.join(", "),100)}`}function OB(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!IB(r.originalException)||r.originalException.issues.length===0)return n;try{const i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(RB);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:AB(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(s){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:s instanceof Error?`${s.name}: ${s.message} 54${s.stack}`:"unknown"}}}}}const PB=((e={})=>{const t=e.limit??kB;return{name:xB,processEvent(n,r){return OB(t,e.saveZodIssuesAsAttachment,n,r)}}}),MB=PB,LB=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{eo(n,(r,s)=>{if(s==="event"){const i=Array.isArray(r)?r[1]:void 0;i&&(qC(i),r[1]=i)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;BC(r,n)})},processEvent(t){const n=DB(t,e.ignoreSentryInternalFrames);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](i=>!i.some(o=>e.filterKeys.includes(o)))){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 NB(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(FB))return!1;if(e.pre_context){const n=e.pre_context.length;for(let r=0;r<n;r++)if(e.pre_context[r]?.includes($B))return!0}return!1}function DB(e,t){const n=T_(e);
54if(n)return n.filter((r,s)=>!r.filename||r.lineno==null&&r.colno==null&&r.instruction_addr==null?!1:!t||!NB(r,s)).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(s=>s.startsWith(pE)).map(s=>s.slice(pE.length)):[])}const pE="_sentryBundlerPluginAppKey:",$B="Attempt to invoke user-land function",FB="fn.apply(this, wrappedArguments)",UB=100,HB=10,Gu="flag.evaluation.";function Ba(e){if(e.type)return e;const n=Pe().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function to(e,t,n=UB){const r=Pe().getScopeData().contexts;r.flags||(r.flags={values:[]});const s=r.flags.values;jB(s,e,t,n)}function jB(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){le&&U.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const s=e.findIndex(i=>i.flag===t);s!==-1&&e.splice(s,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function no(e,t,n=HB){if(typeof t!="boolean")return;const r=St();if(!r)return;const s=De(r).data;if(`${Gu}${e}`in s){r.setAttribute(`${Gu}${e}`,t);return}Object.keys(s).filter(o=>o.startsWith(Gu)).length<n&&r.setAttribute(`${Gu}${e}`,t)}const BB=()=>({name:"FeatureFlags",processEvent(e,t,n){return Ba(e)},addFeatureFlag(e,t){to(e,t),no(e,t)}}),qB=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;typeof t.isOn=="function"&&nn(t,"isOn",hE),typeof t.getFeatureValue=="function"&&nn(t,"getFeatureValue",hE)},processEvent(t,n,r){return Ba(t)}});function hE(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(to(n,r),no(n,r)),r}}const WB="ConversationId",VB=(()=>({name:WB,setup(e){e.on("spanStart",t=>{const n=Pe().getScopeData(),r=It().getScopeData(),s=n.conversationId||r.conversationId;if(s){const{op:i,data:o,description:a}=De(t);if(!i?.startsWith("gen_ai.")&&!o["ai.operationId"]&&!a?.startsWith("ai."))return;t.setAttribute(V8,s)}})}})),zB=VB;function GB(e,t,n,r,s){if(!e.fetchData)return;const{method:i,url:o}=e.fetchData,a=Yn()&&t(o);if(e.endTimestamp){const h=e.fetchData.__span;if(!h)return;const g=r[h];g&&(a&&(XB(g,e),KB(g,e,s)),delete r[h]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:l=!1}=typeof s=="object"?s:{spanOrigin:s},u=pe(),f=!!St()||!!u&&er(u),p=a&&f?qr(QB(o,i,c)):new Dn;if(a&&!f&&u?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){const h=e.args[0],g={...e.args[1]||{}},S=YB(h,g,Yn()&&f?p:void 0,l);S&&(e.args[1]=g,g.headers=S)}if(u){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit("beforeOutgoingRequestSpan",p,h)}return p}function KB(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function YB(e,t,n,r){const s=Nv({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,a=s.traceparent;if(!i)return;const c=t.headers||(hv(e)?e.headers:void 0);if(c)if(JB(c)){const l=new Headers(c);if(l.get("sentry-trace")||l.set("sentry-trace",i),r&&a&&!l.get("traceparent")&&l.set("traceparent",a),o){const u=l.get("baggage");u?Ku(u)||l.set("baggage",`${u},${o}`):l.set("baggage",o)}return l}else if(ZB(c)){const l=[...c];l.find(d=>d[0]==="sentry-trace")||l.push(["sentry-trace",i]),r&&a&&!l.find(d=>d[0]==="traceparent")&&l.push(["traceparent",a]);const u=c.find(d=>d[0]==="baggage"&&typeof d[1]=="string"&&Ku(d[1]));return o&&!u&&l.push(["baggage",o]),l}else{const l="sentry-trace"in c?c["sentry-trace"]:void 0,u="traceparent"in c?c.traceparent:void 0,d="baggage"in c?c.baggage:void 0,f=d?Array.isArray(d)?[...d]:[d]:[],p=d&&(Array.isArray(d)?d.find(g=>Ku(g)):Ku(d));o&&!p&&f.push(o);const h=Object.assign({},c,{"sentry-trace":l??i,baggage:f.length>0?f.join(","):void 0});return r&&a&&!u&&(h.traceparent=a),h}else return{...s}}function XB(e,t){if(t.response){Tl(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:We,message:"internal_error"});e.end()}function Ku(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(Cf))}function JB(e){return typeof Headers<"u"&&xs(e,Headers)}function ZB(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}
54function QB(e,t,n){if(e.startsWith("data:")){const i=Qs(e);return{name:`${t} ${i}`,attributes:gE(e,void 0,t,n)}}const r=Iv(e),s=r?tH(r):e;return{name:`${t} ${s}`,attributes:gE(e,r,t,n)}}function gE(e,t,n,r){const s={url:Qs(e),type:"fetch","http.method":n,[qe]:r,[Qe]:"http.client"};return t&&(xv(t)||(s["http.url"]=Qs(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function JC(e,t={},n=Pe()){const{message:r,name:s,email:i,url:o,source:a,associatedEventId:c,tags:l}=e,u={contexts:{feedback:{contact_email:i,name:s,message:r,url:o,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:l},d=n?.getClient()||pe();return d&&d.emit("beforeSendFeedback",u,t),n.captureEvent(u,t)}function qa(e,t,n,r,s){$f({level:e,message:t,attributes:n,severityNumber:s},r)}function e7(e,t,{scope:n}={}){qa("trace",e,t,n)}function t7(e,t,{scope:n}={}){qa("debug",e,t,n)}function n7(e,t,{scope:n}={}){qa("info",e,t,n)}function r7(e,t,{scope:n}={}){qa("warn",e,t,n)}function s7(e,t,{scope:n}={}){qa("error",e,t,n)}function i7(e,t,{scope:n}={}){qa("fatal",e,t,n)}const o7=Object.freeze(Object.defineProperty({__proto__:null,debug:t7,error:s7,fatal:i7,fmt:Sj,info:n7,trace:e7,warn:r7},Symbol.toStringTag,{value:"Module"}));function jf(e,t,n){return"util"in Te&&typeof Te.util.format=="function"?Te.util.format(...e):a7(e,t,n)}function a7(e,t,n){return e.map(r=>ks(r)?String(r):JSON.stringify(Qt(r,t,n))).join(" ")}function ZC(e){return/%[sdifocO]/.test(e)}function QC(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((s,i)=>{n[`sentry.message.parameter.${i}`]=s}),n}const c7="ConsoleLogs",mE={[qe]:"auto.log.console"},l7=((e={})=>{const t=e.levels||dv;return{name:c7,setup(n){const{enableLogs:r,normalizeDepth:s=3,normalizeMaxBreadth:i=1e3}=n.getOptions();if(!r){le&&U.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}const o=Dv(({args:a,level:c})=>{if(pe()!==n||!t.includes(c))return;const l=a[0],u=a.slice(1);if(c==="assert"){if(!l){const h=u.length>0?`Assertion failed: ${jf(u,s,i)}`:"Assertion failed";$f({level:"error",message:h,attributes:mE})}return}const d=c==="log",f=a.length>1&&typeof a[0]=="string"&&!ZC(a[0]),p={...mE,...f?QC(l,u):{}};$f({level:d?"info":c,message:jf(a,s,i),severityNumber:d?10:void 0,attributes:p})});n.registerCleanup(o)}}}),u7=l7;function $v(e,t,n,r){QH({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function d7(e,t=1,n){$v("counter",e,t,n)}function f7(e,t,n){$v("gauge",e,t,n)}function $_(e,t,n){$v("distribution",e,t,n)}const p7=Object.freeze(Object.defineProperty({__proto__:null,count:d7,distribution:$_,gauge:f7},Symbol.toStringTag,{value:"Module"})),h7=["trace","debug","info","warn","error","fatal"];function g7(e={}){const t=new Set(e.levels??h7),n=e.client;return{log(r){const{type:s,level:i,message:o,args:a,tag:c,date:l,...u}=r,d=n||pe();if(!d)return;const f=y7(s,i);if(!t.has(f))return;const{normalizeDepth:p=3,normalizeMaxBreadth:h=1e3}=d.getOptions(),g={};for(const[y,v]of Object.entries(u))g[y]=Qt(v,p,h);g["sentry.origin"]="auto.log.consola",c&&(g["consola.tag"]=c),s&&(g["consola.type"]=s),i!=null&&typeof i=="number"&&(g["consola.level"]=i);const S=b7(v7(a,p,h),p,h);S?.attributes&&Object.assign(g,S.attributes),$f({level:f,message:S?.message||o||a&&jf(a,p,h)||"",attributes:g})}}}const m7={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},_7={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function y7(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){const n=m7[e];if(n)return n}if(typeof t=="number"){const n=_7[t];if(n)return n}return"info"}function v7(e,t,n){if(!e?.length)return{message:""};const r=jf(e,t,n),s=e[0];if(Tn(s)){const i=typeof e[1]=="string"?2:1,o=e.slice(i);return{message:r,attributes:s,messageParameters:o}}else{const i=e.slice(1),o=i.length>0&&typeof s=="string"&&!ZC(s);return{message:r,messageTemplate:o?s:void 0,messageParameters:o?i:void 0}}}function b7(e,t,n){const{message:r,attributes:s,messageTemplate:i,messageParameters:o}=e,a={};if(i&&o){const c=QC(i,o);for(const[l,u]of Object.entries(c))a[l]=l.startsWith("sentry.message.parameter.")?Qt(u,t,n):u}else o&&o.length>0&&o.forEach((c,l)=>{a[`sentry.message.parameter.${l}`]=Qt(c,t,n)});return{message:r,attributes:{...Qt(s,t,n),...a}}}const w7="gen_ai.prompt",su="gen_ai.system",sn="gen_ai.request.model",Fv="gen_ai.request.stream",qp="gen_ai.request.temperature",Uv="gen_ai.request.max_tokens",Wp="gen_ai.request.frequency_penalty",Hv="gen_ai.request.presence_penalty",Vp="gen_ai.request.top_p",eA="gen_ai.request.top_k",tA="gen_ai.request.encoding_format",nA="gen_ai.request.dimensions",sa="gen_ai.response.finish_reasons",Wa="gen_ai.response.model",zp="gen_ai.response.id",S7="gen_ai.response.stop_reason",ro="gen_ai.usage.input_tokens",
54so="gen_ai.usage.output_tokens",ii="gen_ai.usage.total_tokens",hr="gen_ai.operation.name",io="sentry.sdk_meta.gen_ai.input.messages.original_length",Va="gen_ai.input.messages",iu="gen_ai.system_instructions",$r="gen_ai.response.text",ou="gen_ai.request.available_tools",E7="gen_ai.response.streaming",ei="gen_ai.response.tool_calls",Gp="gen_ai.agent.name",T7="gen_ai.pipeline.name",jv="gen_ai.conversation.id",k7="gen_ai.usage.cache_creation_input_tokens",x7="gen_ai.usage.cache_read_input_tokens",I7="gen_ai.invoke_agent",Bv="gen_ai.embeddings.input",rA="gen_ai.embeddings",_E="gen_ai.execute_tool",sA="gen_ai.tool.name",R7="gen_ai.tool.call.id",C7="gen_ai.tool.type",iA="gen_ai.tool.input",oA="gen_ai.tool.output",A7="gen_ai.tool.description";function ia(e){return!e||typeof e!="object"?!1:P7(e)||cA(e)||O7(e)||lA(e)||uA(e)||M7(e)||L7(e)||N7(e)||D7(e)||$7(e)||F7(e)||U7(e)}function O7(e){return"image_url"in e?typeof e.image_url=="string"?e.image_url.startsWith("data:"):aA(e):!1}function aA(e){return"image_url"in e&&!!e.image_url&&typeof e.image_url=="object"&&"url"in e.image_url&&typeof e.image_url.url=="string"&&e.image_url.url.startsWith("data:")}function P7(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&ia(e.source)}function cA(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="string"}function lA(e){return"type"in e&&e.type==="input_audio"&&"input_audio"in e&&!!e.input_audio&&typeof e.input_audio=="object"&&"data"in e.input_audio&&typeof e.input_audio.data=="str
54ing"}function uA(e){return"type"in e&&e.type==="file"&&"file"in e&&!!e.file&&typeof e.file=="object"&&"file_data"in e.file&&typeof e.file.file_data=="string"}function M7(e){return"media_type"in e&&typeof e.media_type=="string"&&"data"in e}function L7(e){return"type"in e&&e.type==="file"&&"mediaType"in e&&typeof e.mediaType=="string"&&"data"in e&&typeof e.data=="string"&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}function N7(e){return"type"in e&&e.type==="image"&&"image"in e&&typeof e.image=="string"&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}function D7(e){return"type"in e&&(e.type==="blob"||e.type==="base64")}function $7(e){return"b64_json"in e}function F7(e){return"type"in e&&"result"in e&&e.type==="image_generation"}function U7(e){return"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:")}const hc="[Blob substitute]",H7=["image_url","data","content","b64_json","result","uri","image"];function Yc(e){const t={...e};ia(t.source)&&(t.source=Yc(t.source)),cA(e)&&(t.inlineData={...e.inlineData,data:hc}),aA(e)&&(t.image_url={...e.image_url,url:hc}),lA(e)&&(t.input_audio={...e.input_audio,data:hc}),uA(e)&&(t.file={...e.file,file_data:hc});for(const n of H7)typeof t[n]=="string"&&(t[n]=hc);return t}const dA=2e4,Bf=e=>new TextEncoder().encode(e).length,qv=e=>Bf(JSON.stringify(e));function Kp(e,t){if(Bf(e)<=t)return e;let n=0,r=e.length,s="";for(;n<=r;){const i=Math.floor((n+r)/2),o=e.slice(0,i);Bf(o)<=t?(s=o,n=i+1):r=i-1}return s}function j7(e){return typeof e=="string"?e:"text"in e&&typeof e.text=="string"?e.text:""}function yE(e,t){return typeof e=="string"?t:{...e,text:t}}function B7(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function fA(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function pA(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function q7(e,t){const n={...e,content:""},r=qv(n),s=t-r;if(s<=0)return[];const i=Kp(e.content,s);return[{...e,content:i}]}function W7(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}function V7(e,t){const{key:n,items:r}=W7(e);if(n===null||r.length===0)return[];const s=r.map(c=>yE(c,"")),i=qv({...e,[n]:s});let o=t-i;if(o<=0)return[];const a=[];for(const c of r){const l=j7(c),u=Bf(l);if(u<=o)a.push(c),o-=u;else if(a.length===0){const d=Kp(l,o);d&&a.push(yE(c,d));break}else break}return a.length<=0?[]:[{...e,[n]:a}]}function z7(e,t){if(!e)return[];if(typeof e=="string"){const n=Kp(e,t);return n?[n]:[]}return typeof e!="object"?[]:B7(e)?q7(e,t):fA(e)||pA(e)?V7(e,t):[]}function F_(e){return e.map(n=>{let r;return n&&typeof n=="object"&&(fA(n)?r={...n,content:F_(n.content)}:"content"in n&&ia(n.content)&&(r={...n,content:Yc(n.content)}),pA(n)&&(r={...r??n,parts:F_(n.parts)}),ia(r)?r=Yc(r):ia(n)&&(r=Yc(n))),r??n})}function G7(e,t){if(!Array.isArray(e)||e.length===0)return e;const n=t-2,r=e[e.length-1],s=F_([r]),i=s[0];return qv(i)<=n?s:z7(i,n)}function K7(e){return G7(e,dA)}function Y7(e){return Kp(e,dA)}function fo(e){const t=!!pe()?.getOptions().sendDefaultPii;return{...e,recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t}}function Rs(e){const t=pe();return e??!(t&&er(t))}function Wv(e,t){return e?`${e}.${t}`:t}function X7(e,t,n,r,s){if(t!==void 0&&e.setAttributes({[ro]:t}),n!==void 0&&e.setAttributes({[so]:n}),t!==void 0||n!==void 0||r!==void 0||s!==void 0){const i=(t??0)+(n??0)+(r??0)+(s??0);e.setAttributes({[ii]:i})}}function Yp(e,t,n){if(!e.isRecording())return;const r={[E7]:!0};t.responseId&&(r[zp]=t.responseId),t.responseModel&&(r[Wa]=t.responseModel),t.promptTokens!==void 0&&(r[ro]=t.promptTokens),t.completionTokens!==void 0&&(r[so]=t.completionTokens),t.totalTokens!==void 0?r[ii]=t.totalTokens:(t.promptTokens!==void 0||t.completionTokens!==void 0||t.cacheCreationInputTokens!==void 0||t.cacheReadInputTokens!==void 0)&&(r[ii]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[sa]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[$r]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[ei]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function za(e){return typeof e=="string"?e:JSON.stringify(e)}function Ga(e){if(typeof e=="string")return Y7(e);if(Array.isArray(e)){const t=K7(e);return JSON.stringify(t)}return JSON.stringify(e)}function au(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(o=>o&&typeof o=="object"&&"role"in o&&o.role==="system");if(t===-1)return{systemInstructions:void 0,filteredMessages:e};const n=e[t],r=typeof n.content=="string"?n.content:n.content!==void 0?JSON.stringify(n.content):void 0;if(!r)return{systemInstructions:void 0,filteredMessages:e};const s=JSON.stringify([{type:"text",content:r}]),i=[...e.slice(0,t),...e.slice(t+1)];return{systemInstructions:s,filteredMessages:i}}async function J7(e,t,n){const r=e.catch(o=>{throw et(o,{mechanism:{handled:!1,type:n}}),o}),s=await t,i=await r;return i&&typeof i=="object"&&"data"in i?{...i,data:s}:s}function qf(e,t,n){return co(e)?new Proxy(e,{get(r,s){const o=s in Promise.prototype||s===Symbol.toStringTag?t:r,a=Reflect.get(o,s);return s==="withResponse"&&typeof a=="function"?function(){const l=a.call(r);return J7(l,t,n)}:typeof a=="function"?a.bind(o):a}}):t}const Z7={"responses.create":{operation:"chat"}
54,"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},Q7=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],e9=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...Q7];function t9(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function n9(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function r9(e,t,n){if(!t||typeof t!="object")return;const r=t,s={};if(typeof r.id=="string"&&(s[zp]=r.id),typeof r.model=="string"&&(s[Wa]=r.model),r.object==="conversation"&&typeof r.id=="string"&&(s[jv]=r.id),r.usage&&typeof r.usage=="object"){const i=r.usage,o=i.prompt_tokens??i.input_tokens;typeof o=="number"&&(s[ro]=o);const a=i.completion_tokens??i.output_tokens;typeof a=="number"&&(s[so]=a),typeof i.total_tokens=="number"&&(s[ii]=i.total_tokens)}if(Array.isArray(r.choices)){const i=r.choices,o=i.map(a=>a.finish_reason).filter(a=>typeof a=="string");if(o.length>0&&(s[sa]=JSON.stringify(o)),n){const a=i.map(l=>l.message?.content||"");s[$r]=JSON.stringify(a);const c=i.map(l=>l.message?.tool_calls).filter(l=>Array.isArray(l)&&l.length>0).flat();c.length>0&&(s[ei]=JSON.stringify(c))}}if(typeof r.status=="string"&&(s[sa]||(s[sa]=JSON.stringify([r.status]))),n&&(typeof r.output_text=="string"&&!s[$r]&&(s[$r]=r.output_text),Array.isArray(r.output)&&r.output.length>0&&!s[ei])){const i=r.output.filter(o=>o?.type==="function_call");i.length>0&&(s[ei]=JSON.stringify(i))}e.setAttributes(s)}function s9(e){if("conversation"in e&&typeof e.conversation=="string")return e.conversation;if("previous_response_id"in e&&typeof e.previous_response_id=="string")return e.previous_response_id}function i9(e){const t={[sn]:e.model??"unknown"};"temperature"in e&&(t[qp]=e.temperature),"top_p"in e&&(t[Vp]=e.top_p),"frequency_penalty"in e&&(t[Wp]=e.frequency_penalty),"presence_penalty"in e&&(t[Hv]=e.presence_penalty),"stream"in e&&(t[Fv]=e.stream),"encoding_format"in e&&(t[tA]=e.encoding_format),"dimensions"in e&&(t[nA]=e.dimensions);const n=s9(e);return n&&(t[jv]=n),t}function o9(e,t){for(const n of e){const r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}};else{const s=t.chatCompletionToolCalls[r];n.function.arguments&&s?.function&&(s.function.arguments+=n.function.arguments)}}}function a9(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&o9(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function c9(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:We,message:"internal_error"}),et(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;const s=e;if(!e9.includes(s.type)){t.eventTypes.push(s.type);return}if(n&&(s.type==="response.output_item.done"&&"item"in s&&t.responsesApiToolCalls.push(s.item),s.type==="response.output_text.delta"&&"delta"in s&&s.delta)){t.responseTexts.push(s.delta);return}if("response"in s){const{response:i}=s;t.responseId=i.id??t.responseId,t.responseModel=i.model??t.responseModel,i.usage&&(t.promptTokens=i.usage.input_tokens,t.completionTokens=i.usage.output_tokens,t.totalTokens=i.usage.total_tokens),i.status&&t.finishReasons.push(i.status),n&&i.output_text&&t.responseTexts.push(i.output_text)}}async function*l9(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const s of e)n9(s)?a9(s,r,n):t9(s)&&c9(s,r,n,t),yield s}finally{const s=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];Yp(t,{...r,toolCalls:s},n)}}function u9(e){const t=Array.isArray(e.tools)?e.tools:[],r=e.web_search_options&&typeof e.web_search_options=="object"?[{type:"web_search_options",...e.web_search_options}]:[],s=[...t,...r];if(s.length!==0)try{return JSON.stringify(s)}catch(i){le&&U.error("Failed to serialize OpenAI tools:",i);return}}function d9(e,t){const n={[su]:"openai",[hr]:t,[qe]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0],s=u9(r);
54s&&(n[ou]=s),Object.assign(n,i9(r))}else n[sn]="unknown";return n}function vE(e,t,n,r){if(n==="embeddings"&&"input"in t){const a=t.input;if(a==null||typeof a=="string"&&a.length===0||Array.isArray(a)&&a.length===0)return;e.setAttribute(Bv,typeof a=="string"?a:JSON.stringify(a));return}const s="input"in t?t.input:"messages"in t?t.messages:void 0;if(!s||Array.isArray(s)&&s.length===0)return;const{systemInstructions:i,filteredMessages:o}=au(s);i&&e.setAttribute(iu,i),e.setAttribute(Va,r?Ga(o):za(o)),Array.isArray(o)?e.setAttribute(io,o.length):e.setAttribute(io,1)}function f9(e,t,n,r,s){return function(...o){const a=n.operation||"unknown",c=d9(o,a),l=c[sn]||"unknown",u=o[0],d=u&&typeof u=="object"&&u.stream===!0,f={name:`${a} ${l}`,op:`gen_ai.${a}`,attributes:c};if(d){let g;const S=ps(f,y=>(g=e.apply(r,o),s.recordInputs&&u&&vE(y,u,a,Rs(s.enableTruncation)),(async()=>{try{const v=await g;return l9(v,y,s.recordOutputs??!1)}catch(v){throw y.setStatus({code:We,message:"internal_error"}),et(v,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),y.end(),v}})()));return qf(g,S,"auto.ai.openai")}let p;const h=zr(f,g=>(p=e.apply(r,o),s.recordInputs&&u&&vE(g,u,a,Rs(s.enableTruncation)),p.then(S=>(r9(g,S,s.recordOutputs),S),S=>{throw et(S,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),S})));return qf(p,h,"auto.ai.openai")}}function hA(e,t="",n){return new Proxy(e,{get(r,s){const i=r[s],o=Wv(t,String(s)),a=Z7[o];return typeof i=="function"&&a?f9(i,o,a,r,n):typeof i=="function"?i.bind(r):i&&typeof i=="object"?hA(i,o,n):i}})}function p9(e,t){return hA(e,"",fo(t))}const h9={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}};function g9(e,t,n){if(Array.isArray(t)&&t.length===0)return;const{systemInstructions:r,filteredMessages:s}=au(t);r&&e.setAttributes({[iu]:r});const i=Array.isArray(s)?s.length:1;e.setAttributes({[Va]:n?Ga(s):za(s),[io]:i})}const m9={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function gA(e){return e&&m9[e]||"internal_error"}function _9(e,t){t.error&&(e.setStatus({code:We,message:gA(t.error.type)}),et(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function y9(e){const{system:t,messages:n,input:r}=e,s=typeof t=="string"?[{role:"system",content:e.system}]:[],i=Array.isArray(r)?r:r!=null?[r]:void 0,o=Array.isArray(n)?n:n!=null?[n]:[],a=i??o;return[...s,...a]}function v9(e,t){return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:We,message:gA(e.error?.type)}),et(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0):!1}function b9(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&(typeof n.usage.input_tokens=="number"&&(t.promptTokens=n.usage.input_tokens),typeof n.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),typeof n.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}function w9(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function S9(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function E9(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let s;try{s=r?JSON.parse(r):{}}catch{s={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:s}),delete t.activeToolBlocks[e.index]}function mA(e,t,n,r){!(e&&typeof e=="object")||v9(e,r)||(b9(e,t),w9(e,t),S9(e,t,n),E9(e,t))}async function*T9(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const s of e)mA(s,r,n,t),yield s}finally{Yp(t,r,n)}}function k9(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",s=>{mA(s,r,n,t)}),e.on("message",()=>{Yp(t,r,n)}),e.on("error",s=>{et(s,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:We,message:"internal_error"}),t.end())}),e}function x9(e,t,n){const r={[su]:"anthropic",[hr]:n,[qe]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const s=e[0];s.tools&&Array.isArray(s.tools)&&(r[ou]=JSON.stringify(s.tools)),r[sn]=s.model??"unknown","temperature"in s&&(r[qp]=s.temperature),"top_p"in s&&
54(r[Vp]=s.top_p),"stream"in s&&(r[Fv]=s.stream),"top_k"in s&&(r[eA]=s.top_k),"frequency_penalty"in s&&(r[Wp]=s.frequency_penalty),"max_tokens"in s&&(r[Uv]=s.max_tokens)}else t==="models.retrieve"||t==="models.get"?r[sn]=e[0]:r[sn]="unknown";return r}function U_(e,t,n){const r=y9(t);g9(e,r,n),"prompt"in t&&e.setAttributes({[w7]:JSON.stringify(t.prompt)})}function I9(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[$r]:t.content.map(r=>r.text).filter(r=>!!r).join("")});const n=[];for(const r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[ei]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[$r]:t.completion}),"input_tokens"in t&&e.setAttributes({[$r]:JSON.stringify(t.input_tokens)})}function R9(e,t){"id"in t&&"model"in t&&(e.setAttributes({[zp]:t.id,[Wa]:t.model}),"usage"in t&&t.usage&&X7(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function C9(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){_9(e,t);return}n&&I9(e,t),R9(e,t)}}function bE(e,t,n){throw et(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:We,message:"internal_error"}),t.end()),e}function A9(e,t,n,r,s,i,o,a,c,l,u){const d=s[sn]??"unknown",f={name:`${i} ${d}`,op:`gen_ai.${i}`,attributes:s};if(l&&!u){let p;const h=ps(f,g=>(p=e.apply(n,r),c.recordInputs&&a&&U_(g,a,Rs(c.enableTruncation)),(async()=>{try{const S=await p;return T9(S,g,c.recordOutputs??!1)}catch(S){return bE(S,g,o)}})()));return qf(p,h,"auto.ai.anthropic")}else return ps(f,p=>{try{c.recordInputs&&a&&U_(p,a,Rs(c.enableTruncation));const h=t.apply(n,r);return k9(h,p,c.recordOutputs??!1)}catch(h){return bE(h,p,o)}})}function O9(e,t,n,r,s){return new Proxy(e,{apply(i,o,a){const c=n.operation||"unknown",l=x9(a,t,c),u=l[sn]??"unknown",d=typeof a[0]=="object"?a[0]:void 0,f=!!d?.stream,p=n.streaming===!0;if(f||p)return A9(e,i,r,a,l,c,t,d,s,f,p);let h;const g=zr({name:`${c} ${u}`,op:`gen_ai.${c}`,attributes:l},S=>(h=i.apply(r,a),s.recordInputs&&d&&U_(S,d,Rs(s.enableTruncation)),h.then(y=>(C9(S,y,s.recordOutputs),y),y=>{throw et(y,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),y})));return qf(h,g,"auto.ai.anthropic")}})}function _A(e,t="",n){return new Proxy(e,{get(r,s){const i=r[s],o=Wv(t,String(s)),a=h9[o];return typeof i=="function"&&a?O9(i,o,a,r,n):typeof i=="function"?i.bind(r):i&&typeof i=="object"?_A(i,o,n):i}})}function P9(e,t){return _A(e,"",fo(t))}const M9={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},L9="google_genai";function N9(e,t){const n=e?.promptFeedback;if(n?.blockReason){const r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:We,message:"internal_error"}),et(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function D9(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function $9(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const s of r?.content?.parts??[])n&&s.text&&t.responseTexts.push(s.text),s.functionCall&&t.toolCalls.push({type:"function",id:s.functionCall.id,name:s.functionCall.name,arguments:s.functionCall.args})}}function F9(e,t,n,r){!e||N9(e,r)||(D9(e,t),$9(e,t,n))}async function*U9(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const s of e)F9(s,r,n,t),yield s}finally{Yp(t,r,n)}}function Oc(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(n=>Oc(n,t)):typeof e!="object"||!e?[]:"role"in e&&typeof e.role=="string"?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]}function wE(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){const n=t;if("model"in n&&typeof n.model=="string")return n.model;
54if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function H9(e){const t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[qp]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[Vp]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[eA]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[Uv]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[Wp]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[Hv]=e.presencePenalty),t}function j9(e,t,n){const r={[su]:L9,[hr]:e,[qe]:"auto.ai.google_genai"};if(t){if(r[sn]=wE(t,n),"config"in t&&typeof t.config=="object"&&t.config){const s=t.config;if(Object.assign(r,H9(s)),"tools"in s&&Array.isArray(s.tools)){const i=s.tools.flatMap(o=>o.functionDeclarations);r[ou]=JSON.stringify(i)}}}else r[sn]=wE({},n);return r}function SE(e,t,n,r){if(n){const i=t.contents;i!=null&&e.setAttribute(Bv,typeof i=="string"?i:JSON.stringify(i));return}const s=[];if("config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&s.push(...Oc(t.config.systemInstruction,"system")),"history"in t&&s.push(...Oc(t.history,"user")),"contents"in t&&s.push(...Oc(t.contents,"user")),"message"in t&&s.push(...Oc(t.message,"user")),Array.isArray(s)&&s.length){const{systemInstructions:i,filteredMessages:o}=au(s);i&&e.setAttribute(iu,i);const a=Array.isArray(o)?o.length:0;e.setAttributes({[io]:a,[Va]:r?Ga(o):za(o)})}}function B9(e,t,n){if(!(!t||typeof t!="object")){if(t.modelVersion&&e.setAttribute(Wa,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){const r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[ro]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[so]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[ii]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(s=>s.content?.parts&&Array.isArray(s.content.parts)?s.content.parts.map(i=>typeof i.text=="string"?i.text:"").filter(i=>i.length>0).join(""):"").filter(s=>s.length>0);r.length>0&&e.setAttributes({[$r]:r.join("")})}if(n&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[ei]:JSON.stringify(r)})}}}function q9(e,t,n,r,s){const i=n.operation==="embeddings";return new Proxy(e,{apply(o,a,c){const l=n.operation||"unknown",u=c[0],d=j9(l,u,r),f=d[sn]??"unknown";return n.streaming?ps({name:`${l} ${f}`,op:`gen_ai.${l}`,attributes:d},async p=>{try{s.recordInputs&&u&&SE(p,u,i,Rs(s.enableTruncation));const h=await o.apply(r,c);return U9(h,p,!!s.recordOutputs)}catch(h){throw p.setStatus({code:We,message:"internal_error"}),et(h,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),p.end(),h}}):zr({name:`${l} ${f}`,op:`gen_ai.${l}`,attributes:d},p=>(s.recordInputs&&u&&SE(p,u,i,Rs(s.enableTruncation)),wv(()=>o.apply(r,c),h=>{et(h,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},h=>{i||B9(p,h,s.recordOutputs)})))}})}function H_(e,t="",n){return new Proxy(e,{get:(r,s,i)=>{const o=Reflect.get(r,s,i),a=Wv(t,String(s)),c=M9[a];if(typeof o=="function"&&c){const l=c.operation?q9(o,a,c,r,n):o.bind(r);return c.proxyResultPath?function(...u){const d=l(...u);return d&&typeof d=="object"?H_(d,c.proxyResultPath,n):d}:l}return typeof o=="function"?o.bind(r):o&&typeof o=="object"?H_(o,a,n):o}})}function W9(e,t){return H_(e,"",fo(t))}const jo="auto.ai.langchain",V9={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},Vn=(e,t,n)=>{n!=null&&(e[t]=n)},Rn=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function zi(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Eo(e){if(Array.isArray(e))try{const t=e.map(n=>n&&typeof n=="object"&&ia(n)?Yc(n):n);return JSON.stringify(t)}catch{return String(e)}return zi(e)}function gc(e){const t=e.toLowerCase();return V9[t]??t}function EE(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function TE(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function Vv(e){return e.map(t=>{const n=t._getType;if(typeof n=="function"){const s=n.call(t);return{role:gc(s),content:Eo(t.content)}}if(t.lc===1&&t.kwargs){const s=t.id,i=Array.isArray(s)&&s.length>0?s[s.length-1]:"",o=typeof i=="string"?EE(i):"user";return{role:gc(o),content:Eo(t.kwargs?.content)}}if(t.type){const s=String(t.type).toLowerCase();return{role:gc(s),content:Eo(t.content)}}if(t.role)return{role:gc(String(t.role)),content:Eo(t.content)};const r=t.constructor?.name;return r&&r!=="Object"?{role:gc(EE(r)),content:Eo(t.content)}:{role:"user",content:Eo(t.content)}})}function z9(e,t,n){const r={},s="kwargs"in e?e.kwargs:void 0,i=t?.temperature??n?.ls_temperature??s?.temperature;Rn(r,qp,i);const o=t?.max_tokens??n?.ls_max_tokens??s?.max_tokens;Rn(r,Uv,o);const a=t?.top_p??s?.top_p;Rn(r,Vp,a);const c=t?.frequency_penalty;Rn(r,Wp,c);const l=t?.presence_penalty;return Rn(r,Hv,l),t&&"stream"in t&&Vn(r,Fv,!!t.stream),r}
54function yA(e,t,n,r,s){return{[su]:zi(e??"langchain"),[hr]:"chat",[sn]:zi(t),[qe]:jo,...z9(n,r,s)}}function G9(e,t,n,r,s,i){const o=i?.ls_provider,a=s?.model??i?.ls_model_name??"unknown",c=yA(o,a,e,s,i);if(n&&Array.isArray(t)&&t.length>0){Vn(c,io,t.length);const l=t.map(u=>({role:"user",content:u}));Vn(c,Va,r?Ga(l):za(l))}return c}function K9(e,t,n,r,s,i){const o=i?.ls_provider??e.id?.[2],a=s?.model??i?.ls_model_name??"unknown",c=yA(o,a,e,s,i);if(n&&Array.isArray(t)&&t.length>0){const l=Vv(t.flat()),{systemInstructions:u,filteredMessages:d}=au(l);u&&Vn(c,iu,u);const f=Array.isArray(d)?d.length:0;Vn(c,io,f),Vn(c,Va,r?Ga(d):za(d))}return c}function Y9(e,t){const n=[],r=e.flat();for(const s of r){const o=s.message?.tool_calls;if(Array.isArray(o)&&o.length>0)n.push(...o);else{const a=s.message?.content;if(Array.isArray(a))for(const c of a){const l=c;l.type==="tool_use"&&n.push(l)}}}n.length>0&&Vn(t,ei,zi(n))}function X9(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)Rn(t,ro,n.promptTokens),Rn(t,so,n.completionTokens),Rn(t,ii,n.totalTokens);else if(r){Rn(t,ro,r.input_tokens),Rn(t,so,r.output_tokens);const s=Number(r.input_tokens),i=Number(r.output_tokens),o=(Number.isNaN(s)?0:s)+(Number.isNaN(i)?0:i);o>0&&Rn(t,ii,o),r.cache_creation_input_tokens!==void 0&&Rn(t,k7,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&&Rn(t,x7,r.cache_read_input_tokens)}}function J9(e,t){if(!e)return;const n={};if(Array.isArray(e.generations)){const l=e.generations.flat().map(u=>u.generationInfo?.finish_reason?u.generationInfo.finish_reason:u.generation_info?.finish_reason?u.generation_info.finish_reason:null).filter(u=>typeof u=="string");if(l.length>0&&Vn(n,sa,zi(l)),Y9(e.generations,n),t){const u=e.generations.flat().map(d=>d.text??d.message?.content).filter(d=>typeof d=="string");u.length>0&&Vn(n,$r,zi(u))}}X9(e.llmOutput,n);const r=e.llmOutput,i=e.generations?.[0]?.[0]?.message,o=r?.model_name??r?.model??i?.response_metadata?.model_name;o&&Vn(n,Wa,o);const a=r?.id??i?.id;a&&Vn(n,zp,a);const c=r?.stop_reason??i?.response_metadata?.finish_reason;return c&&Vn(n,S7,zi(c)),n}function xg(e){const t={},n=e?.lc_agent_name;return typeof n=="string"&&(t[Gp]=n),t}function Z9(e){const t=e?.invocation_params?.tools??e?.options?.tools;if(!Array.isArray(t)||t.length===0)return;const n=t.map(r=>{const s=r.function;return{type:"function",name:r.name??s?.name??"",description:r.description??s?.description}});return JSON.stringify(n)}function zv(e={}){const{recordInputs:t,recordOutputs:n}=fo(e),r=Rs(e.enableTruncation),s=new Map,i=a=>{const c=s.get(a);c?.isRecording()&&(c.end(),s.delete(a))},o={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(a,c,l,u,d,f,p,h){const g=TE(f),S=G9
54(a,c,t,r,g,p),y=S[sn],v=S[hr];ps({name:`${v} ${y}`,op:"gen_ai.chat",attributes:{...xg(p),...S,[Qe]:"gen_ai.chat"}},m=>(s.set(l,m),m))},handleChatModelStart(a,c,l,u,d,f,p,h){const g=TE(f),S=K9(a,c,t,r,g,p),y=Z9(d);y&&(S[ou]=y);const v=S[sn],m=S[hr];ps({name:`${m} ${v}`,op:"gen_ai.chat",attributes:{...xg(p),...S,[Qe]:"gen_ai.chat"}},_=>(s.set(l,_),_))},handleLLMEnd(a,c,l,u,d){const f=s.get(c);if(f?.isRecording()){const p=J9(a,n);p&&f.setAttributes(p),i(c)}},handleLLMError(a,c){const l=s.get(c);l?.isRecording()&&(l.setStatus({code:We,message:"internal_error"}),i(c)),et(a,{mechanism:{handled:!1,type:`${jo}.llm_error_handler`}})},handleChainStart(a,c,l,u,d,f,p,h){if(f?.__sentry_langgraph__)return;const g=h||a.name||"unknown_chain",S={[qe]:"auto.ai.langchain","langchain.chain.name":g};t&&(S["langchain.chain.inputs"]=JSON.stringify(c)),ps({name:`chain ${g}`,op:"gen_ai.invoke_agent",attributes:{...S,[Qe]:"gen_ai.invoke_agent"}},y=>(s.set(l,y),y))},handleChainEnd(a,c){const l=s.get(c);l?.isRecording()&&(n&&l.setAttributes({"langchain.chain.outputs":JSON.stringify(a)}),i(c))},handleChainError(a,c){const l=s.get(c);l?.isRecording()&&(l.setStatus({code:We,message:"internal_error"}),i(c)),et(a,{mechanism:{handled:!1,type:`${jo}.chain_error_handler`}})},handleToolStart(a,c,l,u,d,f,p){if(f?.__sentry_langgraph__)return;const h=p||a.name||"unknown_tool",g={...xg(f),[qe]:jo,[hr]:"execute_tool",[sA]:h};t&&(g[iA]=c),ps({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...g,[Qe]:"gen_ai.execute_tool"}},S=>(s.set(l,S),S))},handleToolEnd(a,c){const l=s.get(c);if(l?.isRecording()){if(n){const u=a,d=u&&typeof u=="object"&&"content"in u?u.content:a;l.setAttributes({[oA]:typeof d=="string"?d:JSON.stringify(d)})}i(c)}},handleToolError(a,c){const l=s.get(c);l?.isRecording()&&(l.setStatus({code:We,message:"internal_error"}),i(c)),et(a,{mechanism:{handled:!1,type:`${jo}.tool_error_handler`}})},copy(){return o},toJSON(){return{lc:1,type:"not_implemented",id:o.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:o.lc_id}}};return o}const Gv="auto.ai.langgraph";function Q9(e){const t=e[0];if(typeof t!="object"||!t||!("llm"in t)||!t.llm||typeof t.llm!="object")return null;const n=t.llm;return typeof n.modelName!="string"&&typeof n.model!="string"?null:n}function eq(e){const t=e[0];return typeof t=="object"&&t&&"name"in t&&typeof t.name=="string"?t.name:null}function tq(e,t,n){const r="__sentry_tool_wrapped__";for(const s of e){if(!s||typeof s!="object")continue;const i=s,o=i.invoke;if(typeof o!="function"||Object.prototype.hasOwnProperty.call(i,r))continue;const a=typeof i.name=="string"?i.name:"unknown_tool",c=typeof i.description=="string"?i.description:void 0,l=new Proxy(o,{apply(u,d,f){const p={[qe]:Gv,[Qe]:_E,[hr]:"execute_tool",[sA]:a,[C7]:"function"},g=f[1]?.metadata?.lc_agent_name??n;typeof g=="string"&&(p[Gp]=g),c&&(p[A7]=c);const S=f[0];if(typeof S=="object"&&S&&("id"in S&&typeof S.id=="string"&&(p[R7]=S.id),t.recordInputs)){const y="args"in S&&typeof S.args=="object"?S.args:S;try{p[iA]=JSON.stringify(y)}catch{}}return zr({op:_E,name:`execute_tool ${a}`,attributes:p},async y=>{try{const v=await Reflect.apply(u,d,f);if(t.recordOutputs)try{const m=v,_=m&&typeof m=="object"&&"content"in m?m.content:v;y.setAttribute(oA,typeof _=="string"?_:JSON.stringify(_))}catch{}return v}catch(v){throw y.setStatus({code:We,message:"internal_error"}),et(v,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),v}})}});i.invoke=l,Object.defineProperty(i,r,{value:!0,enumerable:!1})}return e}function nq(e){if(!e||e.length===0)return null;const t=[];for(const n of e)if(n&&typeof n=="object"){const r=n.tool_calls;r&&Array.isArray(r)&&t.push(...r)}return t.length>0?t:null}function rq(e){const t=e;let n=0,r=0,s=0;if(t.usage_metadata&&typeof t.usage_metadata=="object"){const i=t.usage_metadata;return typeof i.input_tokens=="number"&&(n=i.input_tokens),typeof i.output_tokens=="number"&&(r=i.output_tokens),typeof i.total_tokens=="number"&&(s=i.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:s}}if(t.response_metadata&&typeof t.response_metadata=="object"){const i=t.response_metadata;if(i.tokenUsage&&typeof i.tokenUsage=="object"){const o=i.tokenUsage;typeof o.promptTokens=="number"&&(n=o.promptTokens),typeof o.completionTokens=="number"&&(r=o.completionTokens),typeof o.totalTokens=="number"&&(s=o.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:s}}function sq(e,t){const n=t;if(n.response_metadata&&typeof n.response_metadata=="object"){const r=n.response_metadata;r.model_name&&typeof r.model_name=="string"&&e.setAttribute(Wa,r.model_name),r.f
54inish_reason&&typeof r.finish_reason=="string"&&e.setAttribute(sa,[r.finish_reason])}}function iq(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;const t=e.builder?.nodes?.tools?.runnable?.tools;return!t||!Array.isArray(t)||t.length===0?null:t.map(n=>({name:n.lc_kwargs?.name,description:n.lc_kwargs?.description,schema:n.lc_kwargs?.schema}))}function oq(e,t,n){const s=n?.messages;if(!s||!Array.isArray(s))return;const i=t?.length??0,o=s.length>i?s.slice(i):[];if(o.length===0)return;const a=nq(o);a&&e.setAttribute(ei,JSON.stringify(a));const c=Vv(o);e.setAttribute($r,JSON.stringify(c));let l=0,u=0,d=0;for(const f of o){const p=rq(f);l+=p.inputTokens,u+=p.outputTokens,d+=p.totalTokens,sq(e,f)}l>0&&e.setAttribute(ro,l),u>0&&e.setAttribute(so,u),d>0&&e.setAttribute(ii,d)}function aq(e,t){if(!e)return[t];if(Array.isArray(e))return e.includes(t)?e:[...e,t];const n=e;return typeof n.addHandler=="function"&&(Array.isArray(n.handlers)&&n.handlers.includes(t)||n.addHandler(t)),e}let j_=!1;const Wf="__sentry_patched__";function cq(e,t){if(Object.prototype.hasOwnProperty.call(e,Wf))return e;const n=zv(t),r=new Proxy(e,{apply(s,i,o){return j_?Reflect.apply(s,i,o):zr({op:"gen_ai.create_agent",name:"create_agent",attributes:{[qe]:Gv,[Qe]:"gen_ai.create_agent",[hr]:"create_agent"}},a=>{try{const c=Reflect.apply(s,i,o),l=o.length>0?o[0]:{};l?.name&&typeof l.name=="string"&&(a.setAttribute(Gp,l.name),a.updateName(`create_agent ${l.name}`));const u=c.invoke;return u&&typeof u=="function"&&(c.invoke=vA(u.bind(c),c,l,t,void 0,n)),c}catch(c){throw a.setStatus({code:We,message:"internal_error"}),et(c,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),c}})}});return Object.defineProperty(r,Wf,{value:!0,enumerable:!1}),r}function vA(e,t,n,r,s,i){return new Proxy(e,{apply(o,a,c){const l=s?.modelName??s?.model;return zr({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[qe]:Gv,[Qe]:I7,[hr]:"invoke_agent"}},async u=>{try{const d=n?.name;d&&typeof d=="string"&&(u.setAttribute(T7,d),u.setAttribute(Gp,d),u.updateName(`invoke_agent ${d}`)),l&&u.setAttribute(sn,l);const h=(c.length>1?c[1]:void 0)?.configurable?.thread_id;if(h&&typeof h=="string"&&u.setAttribute(jv,h),i){const _=c[1]??{};c[1]=_;const w=_.metadata??{};_.metadata={...w,__sentry_langgraph__:!0,...typeof d=="string"?{lc_agent_name:d}:{}},_.callbacks=aq(_.callbacks,i)}const g=iq(t);g&&u.setAttribute(ou,JSON.stringify(g));const S=r.recordInputs,y=r.recordOutputs,v=c.length>0?c[0]?.messages??[]:[];if(v&&S){const _=Vv(v),{systemInstructions:w,filteredMessages:x}=au(_);w&&u.setAttribute(iu,w);const T=Rs(r.enableTruncation),R=Array.isArray(x)?x.length:0;u.setAttributes({[Va]:T?Ga(x):za(x),[io]:R})}const m=await Reflect.apply(o,a,c);return y&&oq(u,v??null,m),m}catch(d){throw u.setStatus({code:We,message:"internal_error"}),et(d,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),d}})}})}function lq(e,t){if(Object.prototype.hasOwnProperty.call(e,Wf))return e;const n=fo(t),r=zv(n),s=new Proxy(e,{apply(i,o,a){const c=Q9(a),l=eq(a),u=a[0];u&&Array.isArray(u.tools)&&u.tools.length>0&&tq(u.tools,n,l??void 0),j_=!0;let d;try{d=Reflect.apply(i,o,a)}finally{j_=!1}const f=d.invoke;if(f&&typeof f=="function"){const p={};l&&(p.name=l),d.invoke=vA(f.bind(d),d,p,n,c,r)}return d}});return Object.defineProperty(s,Wf,{value:!0,enumerable:!1}),s}function uq(e,t){return e.compile=cq(e.compile,fo(t)),e}function dq(e,t,n){const r=n.getOptions(),s=n.getDsn(),i=r.tunnel,o=eu(r._metadata),a={sent_at:new Date().toISOString(),...fq(t)&&{trace:t},...o&&{sdk:o},...!!i&&s&&{dsn:Vr(s)}},c=r.sendDefaultPii?"auto":"never",l=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...si()&&{ingest_settings:{infer_ip:c,infer_user_agent:c}},items:e}];return rr(a,[l])}function fq(e){return!!e.trace_id&&!!e.public_key}function pq(e){let t=156;if(t+=e.name.length*2,t+=kS(e.attributes),e.links&&e.links.length>0){const r=e.links[0]?.attributes,s=100+(r?kS(r):0);t+=s*e.links.length}return t}const kE=1e3,hq=5e6;class gq{constructor(t,n){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:r,flushInterval:s,maxTraceWeightInBytes:i}=n??{};this._maxSpanLimit=r&&r>0&&r<=kE?r:kE,this._flushInterval=s&&s>0?s:5e3,this._maxTraceWeight=i&&i>0?i:hq,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>
54{this._traceBuckets.forEach(o=>{clearTimeout(o.timeout)}),this._traceBuckets.clear()})}add(t){const n=t.trace_id;let r=this._traceBuckets.get(n);r||(r={spans:new Set,size:0,timeout:Hp(setTimeout(()=>{this.flush(n)},this._flushInterval))},this._traceBuckets.set(n,r)),r.spans.add(t),r.size+=pq(t),(r.spans.size>=this._maxSpanLimit||r.size>=this._maxTraceWeight)&&this.flush(n)}drain(){this._traceBuckets.size&&(le&&U.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((t,n)=>{this.flush(n)}))}flush(t){const n=this._traceBuckets.get(t);if(!n)return;if(!n.spans.size){this._removeTrace(t);return}const r=Array.from(n.spans),s=r[0]?._segmentSpan;if(!s){le&&U.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(t);return}const i=Fn(s),o=r.map(c=>{const{_segmentSpan:l,...u}=c;return u}),a=dq(o,i,this._client);le&&U.log(`Sending span envelope for trace ${t} with ${o.length} spans`),this._client.sendEnvelope(a).then(null,c=>{le&&U.error("Error while sending streamed span envelope:",c)}),this._removeTrace(t)}_removeTrace(t){const n=this._traceBuckets.get(t);n&&clearTimeout(n.timeout),this._traceBuckets.delete(t)}}function bA(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Sa=Te;function mq(){return"history"in Sa&&!!Sa.history}function _q(){if(!("fetch"in Sa))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function B_(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function wA(){if(typeof EdgeRuntime=="string")return!0;if(!_q())return!1;if(B_(Sa.fetch))return!0;let e=!1;const t=Sa.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=B_(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){le&&U.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function yq(){return"ReportingObserver"in Sa}function Kv(e,t){const n="fetch",r=ui(n,e);return di(n,()=>SA(void 0,t)),r}function vq(e){const t="fetch-body-resolved",n=ui(t,e);return di(t,()=>SA(wq)),n}function SA(e,t=!1){t&&!wA()||nn(Te,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=Sq(r),a={args:r,fetchData:{method:i,url:o},startTimestamp:lt()*1e3,virtualError:s,headers:Eq(r)};return e||Gn("fetch",{...a}),n.apply(Te,r).then(async c=>(e?e(c):Gn("fetch",{...a,endTimestamp:lt()*1e3,response:c}),c),c=>{Gn("fetch",{...a,endTimestamp:lt()*1e3,error:c}),ys(c)&&c.stack===void 0&&(c.stack=s.stack,on(c,"framesToPop",1));const u=pe()?.getOptions().enhanceFetchErrorMessages??"always";if(u!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(a.fetchData.url).host;u==="always"?c.message=`${c.message} (${p})`:on(c,"__sentry_fetch_url_host__",p)}catch{}throw c})}})}async function bq(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(o),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function wq(e){let t;try{t=e.clone()}catch{return}bq(t,()=>{Gn("fetch-body-resolved",{endTimestamp:lt()*1e3,response:e})})}function Td(e,t){return!!e&&typeof e=="object"&&!!e[t]}function xE(e){return typeof e=="string"?e:e?Td(e,"url")?e.url:e.toString?e.toString():"":""}function Sq(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:xE(n),method:Td(r,"method")?String(r.method).toUpperCase():hv(n)&&Td(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:xE(t),method:Td(t,"method")?String(t.method).toUpperCase():"GET"}}function Eq(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(hv(t))return new Headers(t.headers)}catch{}}function Tq(e){const t=e.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function kq(e){const t=e??{},n={[qe]:jo,[Qe]:rA,[hr]:"embeddings",[sn]:t.model??"unknown"};return n[su]=Tq(t),"dimensions"in t&&(n[nA]=t.dimensions),"encodingFormat"in t&&(n[tA]=t.encodingFormat),n}function IE(e,t={}){const{recordInputs:n}=fo(t);return new Proxy(e,{apply(r,s,i){const o=kq(s),a=o[sn]||"unknown";if(n){const c=i[0];c!=null&&(o[Bv]=typeof c=="string"?c:JSON.stringify(c))}return zr({name:`embeddings ${a}`,op:rA,attributes:o},()=>Reflect.apply(r,s,i).then(void 0,c=>{throw et(c,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),c}))}})}function xq(e,t){const n=e;return typeof n.embedQuery=="function"&&(n.embedQuery=IE(n.embedQuery,t)),typeof n.embedDocuments=="function"&&(n.embedDocuments=IE(n.embedDocuments,t)),e}const ar=Te,it=ar.document,Pc=ar.navigator,EA="Report a Bug",Iq="Cancel",Rq="Send Bug Report",Cq="Confirm",Aq="Report a Bug",Oq="[email protected]",Pq="Email",Mq="What's the bug? What did you expect?",Lq="Description",Nq="Your Name",Dq="Name",$q="Thank y
54ou for your report!",Fq="(required)",Uq="Add a screenshot",Hq="Remove screenshot",jq="Highlight",Bq="Hide",qq="Remove",TA="Unable to submit feedback with empty message",kA="No client setup, cannot send feedback.",xA="Unable to determine if Feedback was correctly sent.",IA="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",RA="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",Wq="widget",Vq="api",zq=5e3,Gq={ERROR_EMPTY_MESSAGE:TA,ERROR_NO_CLIENT:kA,ERROR_TIMEOUT:xA,ERROR_FORBIDDEN:IA,ERROR_GENERIC:RA};function kd(e,t){return t?.[e]??Gq[e]}function RE(e,t){return new Error(kd(e,t))}const CA=(e,t={includeReplay:!0})=>{const n=t.errorMessages;if(!e.message)throw RE("ERROR_EMPTY_MESSAGE",n);const r=pe();if(!r)throw RE("ERROR_NO_CLIENT",n);e.tags&&Object.keys(e.tags).length&&Pe().setTags(e.tags);const s=JC({source:Vq,url:lo(),...e},t);return new Promise((i,o)=>{const a=setTimeout(()=>{c(),o(kd("ERROR_TIMEOUT",n))},3e4),c=r.on("afterSendEvent",(l,u)=>{if(l.event_id===s)return clearTimeout(a),c(),u?.statusCode&&u.statusCode>=200&&u.statusCode<300?i(s):u?.statusCode===403?o(kd("ERROR_FORBIDDEN",n)):o(kd("ERROR_GENERIC",n))})})},xd=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Kq(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Pc.userAgent)||/Macintosh/i.test(Pc.userAgent)&&Pc.maxTouchPoints&&Pc.maxTouchPoints>1||!isSecureContext)}function Yu(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Yq(e){const t=it.createElement("style");return t.textContent=` 55.widget__actor { 56 position: fixed; 57 z-index: var(--z-index); 58 margin: var(--page-margin); 59 inset: var(--actor-inset); 60 61 display: flex; 62 align-items: center; 63 gap: 8px; 64 padding: 16px; 65 66 font-family: inherit; 67 font-size: var(--font-size); 68 font-weight: 600; 69 line-height: 1.14em; 70 text-decoration: none; 71 72 background: var(--actor-background, var(--background)); 73 border-radius: var(--actor-border-radius, 1.7em/50%); 74 border: var(--actor-border, var(--border));
75 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 76 color: var(--actor-color, var(--foreground)); 77 fill: var(--actor-color, var(--foreground)); 78 cursor: pointer; 79 opacity: 1; 80 transition: transform 0.2s ease-in-out; 81 transform: translate(0, 0) scale(1); 82} 83.widget__actor[aria-hidden="true"] { 84 opacity: 0; 85 pointer-events: none; 86 visibility: hidden; 87 transform: translate(0, 16px) scale(0.98); 88} 89 90.widget__actor:hover { 91 background: var(--actor-hover-background, var(--background)); 92 filter: var(--interactive-filter); 93} 94 95.widget__actor svg { 96 width: 1.14em; 97 height: 1.14em; 98} 99 100@media (max-width: 600px) { 101 .widget__actor span { 102 display: none; 103 } 104} 105`,e&&t.setAttribute("nonce",e),t}function Pn(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const To=20,Xq="http://www.w3.org/2000/svg";function Jq(){const e=a=>ar.document.createElementNS(Xq,a),t=Pn(e("svg"),{width:`${To}`,height:`${To}`,viewBox:`0 0 ${To} ${To}`,fill:"var(--actor-color, var(--foreground))"}),n=Pn(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Pn(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const s=e("defs"),i=Pn(e("clipPath"),{id:"clip0_57_80"}),o=Pn(e("rect"),{width:`${To}`,height:`${To}`,fill:"white"});return i.appendChild(o),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(o),t}function Zq({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=it.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||EA,s.appendChild(Jq()),e){const o=it.createElement("span");o.appendChild(it.createTextNode(e)),s.appendChild(o)}const i=Yq(r);return{el:s,appendToDom(){n.appendChild(i),n.appendChild(s)},removeFromDom(){s.remove(),i.remove()},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const AA="rgba(88, 74, 192, 1)",Qq={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:AA,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},CE={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackgroun
105d:AA,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function AE(e){return` 106 --foreground: ${e.foreground}; 107 --background: ${e.background}; 108 --accent-foreground: ${e.accentForeground}; 109 --accent-background: ${e.accentBackground}; 110 --success-color: ${e.successColor}; 111 --error-color: ${e.errorColor}; 112 --border: ${e.border}; 113 --box-shadow: ${e.boxShadow}; 114 --outline: ${e.outline}; 115 --interactive-filter: ${e.interactiveFilter}; 116 `}function OE({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=it.createElement("style");return s.textContent=` 117:host { 118 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 119 --font-size: 14px; 120 --z-index: 100000; 121 122 --page-margin: 16px; 123 --inset: auto 0 0 auto; 124 --actor-inset: var(--inset); 125 126 font-family: var(--font-family); 127 font-size: var(--font-size); 128 129 ${e!=="system"?`color-scheme: only ${e};`:""} 130 131 ${AE(e==="dark"?{...CE,...t}:{...Qq,...n})} 132} 133 134${e==="system"?` 135@media (prefers-color-scheme: dark) { 136 :host { 137 color-scheme: only dark; 138 139 ${AE({...CE,...t})} 140 } 141}`:""} 142`,r&&s.setAttribute("nonce",r),s}const OA=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:s="sentry-feedback",autoInject:i=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:d=!0,useSentryUser:f={email:"email",name:"username"},tags:p,styleNonce:h,scriptNonce:g,colorScheme:S="system",themeLight:y={},themeDark:v={},addScreenshotButtonLabel:m=Uq,cancelButtonLabel:_=Iq,confirmButtonLabel:w=Cq,emailLabel:x=Pq,emailPlaceholder:T=Oq,formTitle:R=Aq,isRequiredLabel:k=Fq,messageLabel:C=Lq,messagePlaceholder:M=Mq,nameLabel:b=Dq,namePlaceholder:E=Nq,removeScreenshotButtonLabel:I=Hq,submitButtonLabel:A=Rq,successMessageText:$=$q,triggerLabel:N=EA,triggerAriaLabel:O="",highlightToolText:D=jq,hideToolText:j=Bq,removeHighlightText:q=qq,errorEmptyMessageText:oe=TA,errorNoClientText:ue=kA,errorTimeoutText:Se=xA,errorForbiddenText:ke=IA,errorGenericText:Fe=RA,onFormOpen:V,onFormClose:Q,onSubmitSuccess:X,onSubmitError:F,onFormSubmitted:Z}={})=>{const J={id:s,autoInject:i,showBranding:o,isEmailRequired:a,isNameRequired:c,showEmail:l,showName:u,enableScreenshot:d,useSentryUser:f,tags:p,styleNonce:h,scriptNonce:g,colorScheme:S,themeDark:v,themeLight:y,triggerLabel:N,triggerAriaLabel:O,cancelButtonLabel:_,submitButtonLabel:A,confirmButtonLabel:w,formTitle:R,emailLabel:x,emailPlaceholder:T,messageLabel:C,messagePlaceholder:M,nameLabel:b,namePlaceholder:E,successMessageText:$,isRequiredLabel:k,addScreenshotButtonLabel:m,removeScreenshotButtonLabel:I,highlightToolText:D,hideToolText:j,removeHighlightText:q,errorEmptyMessageText:oe,errorNoClientText:ue,errorTimeoutText:Se,errorForbiddenText:ke,errorGenericText:Fe,onFormClose:Q,onFormOpen:V,onSubmitError:F,onSubmitSuccess:X,onFormSubmitted:Z};let P=null,L=null,H=[];const Y=z=>{if(!P){const ne=it.createElement("div");ne.id=String(z.id),it.body.appendChild(ne),P=ne.attachShadow({mode:"open"}),L=OE(z),P.appendChild(L)}return P},K=async z=>{const ne=z.enableScreenshot&&Kq();let W,re;try{W=(t?t():await e("feedbackModalIntegration",g))(),L_(W)}catch{throw xd&&U.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const xe=ne?n?n():await e("feedbackScreenshotIntegration",g):void 0;xe&&(re=xe(),L_(re))}catch{xd&&U.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const te={ERROR_EMPTY_MESSAGE:z.errorEmptyMessageText,ERROR_NO_CLIENT:z.errorNoClientText,ERROR_TIMEOUT:z.errorTimeoutText,ERROR_FORBIDDEN:z.errorForbiddenText,ERROR_GENERIC:z.errorGenericText},he=(xe,Ge)=>CA(xe,{includeReplay:!0,...Ge,errorMessages:te}),be=W.createDialog({options:{...z,onFormClose:()=>{be?.close(),z.onFormClose?.()},onFormSubmitted:()=>{be?.close(),z.onFormSubmitted?.()}},screenshotIntegration:re,sendFeedback:he,shadow:Y(z)});return be},ee=(z,ne={})=>{const W=Yu(J,ne),re=typeof z=="string"?it.querySelector(z):typeof z.addEventListener=="function"?z:null;if(!re)throw xd&&U.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let te=null;const he=async()=>{te||(te=await K({...W,onFormSubmitted:()=>{te?.removeFromDom(),W.onFormSubmitted?.()}})),te.appendToDom(),te.open()};re.addEventListener("click",he);const be=()=>{H=H.filter(xe=>xe!==be),te?.removeFromDom(),te=null,re.removeEventListener("click",he)};return H.push(be),be},se=(z={})=>{const ne=Yu(J,z),W=Y(ne),re=Zq({triggerLabel:ne.triggerLabel,triggerAriaLabel:ne.triggerAriaLabel,shadow:W,styleNonce:h});return ee(re.el,{...ne,onFormOpen(){re.hide()},onFormClose(){re.show()},onFormSubmitted(){re.show()}}),re};return{name:"Feedback",setupOnce(){!si()||!J.autoInject||(it.readyState==="loading"?it.addEventListener("DOMContentLoaded",()=>se().appendToDom()):se().appendToDom())},attachTo:ee,createWidget(z={}){const ne=se(Yu(J,z));return ne.appendToDom(),ne},async createForm(z={}){return K(Yu(J,z))},setTheme(z){if(J.colorScheme=z,P){const ne=OE(J);L?P.replaceChild(ne,L):P.prepend(ne),L=ne}},remove(){P&&(P.parentElement?.remove(),P=null,L=null),H.forEach(z=>z()),H=[]}}});function eW(){return pe()?.getIntegrationByName("Feedback")}var Xp,at,PA,Li,PE,MA,q_,Rl={},Yv=[],tW=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xv=Array.isArray;function Xs(e,t){for(var n in t)e[n]=t[n];return e}function LA(e){var t=e.parentNode;t&&t.removeChild(e)}function He(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Xp.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Id(e,o,r,s,null)}
142function Id(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++PA,__i:-1,__u:0};return s==null&&at.vnode!=null&&at.vnode(i),i}function cu(e){return e.children}function Rd(e,t){this.props=e,this.context=t}function Ea(e,t){if(t==null)return e.__?Ea(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ea(e):null}function nW(e,t,n){var r,s=e.__v,i=s.__e,o=e.__P;if(o)return(r=Xs({},s)).__v=s.__v+1,at.vnode&&at.vnode(r),Jv(o,r,s,e.__n,o.ownerSVGElement!==void 0,32&s.__u?[i]:null,t,i??Ea(s),!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&NA(r),r}function NA(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return NA(e)}}function ME(e){(!e.__d&&(e.__d=!0)&&Li.push(e)&&!Vf.__r++||PE!==at.debounceRendering)&&((PE=at.debounceRendering)||MA)(Vf)}function Vf(){var e,t,n,r=[],s=[];for(Li.sort(q_);e=Li.shift();)e.__d&&(n=Li.length,t=nW(e,r,s)||t,n===0||Li.length>n?(W_(r,t,s),s.length=r.length=0,t=void 0,Li.sort(q_)):t&&at.__c&&at.__c(t,Yv));t&&W_(r,t,s),Vf.__r=0}function DA(e,t,n,r,s,i,o,a,c,l,u){var d,f,p,h,g,S=r&&r.__k||Yv,y=t.length;for(n.__d=c,rW(n,t,S),c=n.__d,d=0;d<y;d++)(p=n.__k[d])!=null&&typeof p!="boolean"&&typeof p!="function"&&(f=p.__i===-1?Rl:S[p.__i]||Rl,p.__i=d,Jv(e,p,f,s,i,o,a,c,l,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Zv(f.ref,null,p),u.push(p.ref,p.__c||h,p)),g==null&&h!=null&&(g=h),65536&p.__u||f.__k===p.__k?c=$A(p,c,e):typeof p.type=="function"&&p.__d!==void 0?c=p.__d:h&&(c=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=g}function rW(e,t,n){var r,s,i,o,a,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],r=0;r<c;r++)(s=e.__k[r]=(s=t[r])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Id(null,s,null,null,s):Xv(s)?Id(cu,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Id(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,a=sW(s,n,o=r+d,u),s.__i=a,i=null,a!==-1&&(u--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&d--,typeof s.type!="function"&&(s.__u|=65536)):a!==o&&(a===o+1?d++:a>o?u>c-o?d+=a-o:d--:d=a<o&&a==o-1?a-o:0,a!==r+d&&(s.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=Ea(i)),V_(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<l;r++)(i=n[r])!=null&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=Ea(i)),V_(i,i))}function $A(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=$A(r[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function sW(e,t,n,r){var s=e.key,i=e.type,o=n-1,a=n+1,c=t[n];if(c===null||c&&s==c.key&&i===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;o>=0||a<t.length;){if(o>
142=0){if((c=t[o])&&(131072&c.__u)==0&&s==c.key&&i===c.type)return o;o--}if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&s==c.key&&i===c.type)return a;a++}}return-1}function LE(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||tW.test(t)?n:n+"px"}function Xu(e,t,n,r,s){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||LE(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||LE(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?DE:NE,i)):e.removeEventListener(t,i?DE:NE,i);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function NE(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(at.event?at.event(e):e)}}function DE(e){if(this.l)return this.l[e.type+!0](at.event?at.event(e):e)}function Jv(e,t,n,r,s,i,o,a,c,l){var u,d,f,p,h,g,S,y,v,m,_,w,x,T,R,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(u=at.__b)&&u(t);e:if(typeof k=="function")try{if(y=t.props,v=(u=k.contextType)&&r[u.__c],m=u?v?v.props.value:u.__:r,n.__c?S=(d=t.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?t.__c=d=new k(y,m):(t.__c=d=new Rd(y,m),d.constructor=k,d.render=oW),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=m,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Xs({},d.__s)),Xs(d.__s,k.getDerivedStateFromProps(y,d.__s))),p=d.props,h=d.state,d.__v=t,f)k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(k.getDerivedStateFromProps==null&&y!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,m),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,m)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(C){C&&(C.__=t)}),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,m),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,h,g)})}if(d.context=m,d.props=y,d.__P=e,d.__e=!1,w=at.__r,x=0,"prototype"in k&&k.prototype.render){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++x<25);d.state=d.__s,d.getChildContext!=null&&(r=Xs(Xs({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(p,h)),DA(e,Xv(R=u!=null&&u.type===cu&&u.key==null?u.props.children:u)?R:[R],t,n,r,s,i,o,a,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),S&&(d.__E=d.__=null)}catch(C){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),at.__e(C,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=iW(n.__e,t,n,r,s,i,o,c,l);(u=at.diffed)&&u(t)}function W_(e,t,n){for(var r=0;r<n.length;r++)Zv(n[r],n[++r],n[++r]);at.__c&&at.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){at.__e(i,s.__v)}})}function iW(e,t,n,r,s,i,o,a,c){var l,u,d,f,p,h,g,S=n.props,y=t.props,v=t.type;if(v==="svg"&&(s=!0),i!=null){for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!v&&(v?p.localName===v:p.nodeType===3)){e=p,i[l]=null;break}}if(e==null){if(v===null)return document.createTextNode(y);e=s?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),i=null,a=!1}if(v===null)S===y||a&&e.data===y||(e.data=y);else{if(i=i&&Xp.call(e.childNodes),S=n.props||Rl,!a&&i!=null)for(S={},l=0;l<e.attributes.length;l++)S[(p=e.attributes[l]).name]=p.value;for(l in S)p=S[l],l=="children"||(l=="dangerouslySetInnerHTML"?d=p:l==="key"||l in y||Xu(e,l,null,p,s));for(l in y)p=y[l],l=="children"?f=p:l=="dangerouslySetInnerHTML"?u=p:l=="value"?h=p:l=="checked"?g=p:l==="key"||a&&typeof p!="function"||S[l]===p||Xu(e,l,p,S[l],s);if(u)a||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),DA(e,Xv(f)?f:[f],t,n,r,s&&v!=="foreignObject",i,o,i?i[0]:n.__k&&Ea(n,0),a,c),i!=null)for(l=i.length;l--;)i[l]!=null&&LA(i[l]);a||(l="value",h!==void 0&&(h!==e[l]||v==="progress"&&!h||v==="option"&&h!==S[l])&&Xu(e,l,h,S[l],!1),l="checked",g!==void 0&&g!==e[l]&&Xu(e,l,g,S[l],!1))}return e}function Zv(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){at.__e(r,n)}}function V_(e,t,n){var r,s;if(at.unmount&&at.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Zv(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){at.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&V_(r[s],t,n||typeof e.type!="function");n||e.__e==null||LA(e.__e),e.__=e.__e=e.__d=void 0}function oW(e,t,n){return this.constructor(e,n)}function aW(e,t,n){var r,s,i,o;at.__&&at.__(e,t),s=(r=!1)?null:t.__k,i=[],o=[],Jv(t,e=t.__k=He(cu,null,[e]),s||Rl,Rl,t.ownerSVGElement!==void 0,s?null:t.firstChild?Xp.call(t.childNodes):null,i,s?s.__e:t.firstChild,r,o),e.__d=void 0,W_(i,e,o)}Xp=Yv.slice,at={__e:function(e,t,n,r){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),o=s.__d),o)return s.__E=s}catch(a){e=a}throw e}},PA=0,Rd.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Xs({},this.state),typeof e=="function"&&(e=e(Xs({},n),this.props)),e&&Xs(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ME(this))},Rd.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ME(this))},Rd.prototype.render=cu,Li=[],MA=typeof Promise=="function"?Promise.prototype.then.bind(Prom
142ise.resolve()):setTimeout,q_=function(e,t){return e.__v.__b-t.__v.__b},Vf.__r=0;var Cs,ot,Ig,$E,Ta=0,FA=[],Cd=[],Et=at,FE=Et.__b,UE=Et.__r,HE=Et.diffed,jE=Et.__c,BE=Et.unmount,qE=Et.__;function po(e,t){Et.__h&&Et.__h(ot,e,Ta||t),Ta=0;var n=ot.__H||(ot.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Cd}),n.__[e]}function Di(e){return Ta=1,UA(jA,e)}function UA(e,t,n){var r=po(Cs++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):jA(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=ot,!ot.u)){var s=function(a,c,l){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(f){return!!f.__c});if(u.every(function(f){return!f.__N}))return!i||i.call(this,a,c,l);var d=!1;return u.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===a)&&(!i||i.call(this,a,c,l))};ot.u=!0;var i=ot.shouldComponentUpdate,o=ot.componentWillUpdate;ot.componentWillUpdate=function(a,c,l){if(this.__e){var u=i;i=void 0,s(a,c,l),i=u}o&&o.call(this,a,c,l)},ot.shouldComponentUpdate=s}return r.__N||r.__}function cW(e,t){var n=po(Cs++,3);!Et.__s&&Qv(n.__H,t)&&(n.__=e,n.i=t,ot.__H.__h.push(n))}function HA(e,t){var n=po(Cs++,4);!Et.__s&&Qv(n.__H,t)&&(n.__=e,n.i=t,ot.__h.push(n))}function lW(e){return Ta=5,lu(function(){return{current:e}},[])}function uW(e,t,n){Ta=6,HA(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function lu(e,t){var n=po(Cs++,7);return Qv(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function oa(e,t){return Ta=8,lu(function(){return e},t)}function dW(e){var t=ot.context[e.__c],n=po(Cs++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ot)),t.props.value):e.__}function fW(e,t){Et.useDebugValue&&Et.useDebugValue(t?t(e):e)}function pW(e){var t=po(Cs++,10),n=Di();return t.__=e,ot.componentDidCatch||(ot.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function hW(){var e=po(Cs++,11);if(!e.__){for(var t=ot.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function gW(){for(var e;e=FA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ad),e.__H.__h.forEach(z_),e.__H.__h=[]}catch(t){e.__H.__h=[],Et.__e(t,e.__v)}}Et.__b=function(e){ot=null,FE&&FE(e)},Et.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),qE&&qE(e,t)},Et.__r=function(e){UE&&UE(e),Cs=0;var t=(ot=e.__c).__H;t&&(Ig===ot?(t.__h=[],ot.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Cd,n.__N=n.i=void 0})):(t.__h.forEach(Ad),t.__h.forEach(z_),t.__h=[],Cs=0)),Ig=ot},Et.diffed=function(e){HE&&HE(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(FA.push(t)!==1&&$E===Et.requestAnimationFrame||(($E=Et.requestAnimationFrame)||mW)(gW)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Cd&&(n.__=n.__V),n.i=void 0,n.__V=Cd})),Ig=ot=null},Et.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ad),n.__h=n.__h.filter(function(r){return!r.__||z_(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],Et.__e(r,n.__v)}}),jE&&jE(e,t)},Et.unmount=function(e){BE&&BE(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ad(r)}catch(s){t=s}}),n.__H=void 0,t&&Et.__e(t,n.__v))};var WE=typeof requestAnimationFrame=="function";function mW(e){var t,n=function(){clearTimeout(r),WE&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);WE&&(t=requestAnimationFrame(n))}function Ad(e){var t=ot,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ot=t}function z_(e){var t=ot;e.__c=e.__(),ot=t}function Qv(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function jA(e,t){return typeof t=="function"?t(e):t}const _W=Object.defineProperty({__proto__:null,useCallback:oa,useContext:dW,useDebugValue:fW,useEffect:cW,useErrorBoundary:pW,useId:hW,useImperativeHandle:uW,useLayoutEffect:HA,useMemo:lu,useReducer:UA,useRef:lW,useState:Di},Symbol.toStringTag,{value:"Module"}),yW="http://www.w3.org/2000/svg";function vW(){const e=r=>it.createElementNS(yW,r),t=Pn(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Pn(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function bW({options:e}){const t=lu(()=>({__html:vW().outerHTML}),[]);return He("h2",{class:"dialog__header"},He("span",{class:"dialog__title"},e.formTitle),e.showBranding?He("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function wW(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function Rg(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function SW({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:i,onSubmitError:o,showEmail
142:a,showName:c,screenshotInput:l}){const{tags:u,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:h,emailPlaceholder:g,isEmailRequired:S,isNameRequired:y,messageLabel:v,messagePlaceholder:m,nameLabel:_,namePlaceholder:w,submitButtonLabel:x,isRequiredLabel:T}=e,[R,k]=Di(!1),[C,M]=Di(null),[b,E]=Di(!1),I=l?.input,[A,$]=Di(null),N=oa(j=>{$(j),E(!1)},[]),O=oa(j=>{const q=wW(j,{emailLabel:h,isEmailRequired:S,isNameRequired:y,messageLabel:v,nameLabel:_});return q.length>0?M(`Please enter in the following required fields: ${q.join(", ")}`):M(null),q.length===0},[h,S,y,v,_]),D=oa(async j=>{k(!0);try{if(j.preventDefault(),!(j.target instanceof HTMLFormElement))return;const q=new FormData(j.target),oe=await(l&&b?l.value():void 0),ue={name:Rg(q,"name"),email:Rg(q,"email"),message:Rg(q,"message"),attachments:oe?[oe]:void 0};if(!O(ue))return;try{const Se=await s({name:ue.name,email:ue.email,message:ue.message,source:Wq,tags:u},{attachments:ue.attachments});i(ue,Se)}catch(Se){xd&&U.error(Se);const ke=Se instanceof Error?Se:new Error(String(Se));M(ke.message),o(ke)}}finally{k(!1)}},[l&&b,i,o]);return He("form",{class:"form",onSubmit:D},I&&b?He(I,{onError:N}):null,He("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:R},He("div",{class:"form__top"},C?He("div",{class:"form__error-container"}
142,C):null,c?He("label",{for:"name",class:"form__label"},He(Cg,{label:_,isRequiredLabel:T,isRequired:y}),He("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:w,required:y,type:"text"})):He("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?He("label",{for:"email",class:"form__label"},He(Cg,{label:h,isRequiredLabel:T,isRequired:S}),He("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:S,type:"email"})):He("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),He("label",{for:"message",class:"form__label"},He(Cg,{label:v,isRequiredLabel:T,isRequired:!0}),He("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:m,required:!0,rows:5})),I?He("label",{for:"screenshot",class:"form__label"},He("button",{class:"btn btn--default",disabled:R,type:"button",onClick:()=>{$(null),E(j=>!j)}},b?f:d),A?He("div",{class:"form__error-container"},A.message):null):null),He("div",{class:"btn-group"},He("button",{class:"btn btn--primary",disabled:R,type:"submit"},x),He("button",{class:"btn btn--default",disabled:R,type:"button",onClick:r},p))))}function Cg({label:e,isRequired:t,isRequiredLabel:n}){return He("span",{class:"form__label__text"},e,t&&He("span",{class:"form__label__text--required"},n))}const Ju=16,VE=17,EW="http://www.w3.org/2000/svg";function TW(){const e=c=>ar.document.createElementNS(EW,c),t=Pn(e("svg"),{width:`${Ju}`,height:`${VE}`,viewBox:`0 0 ${Ju} ${VE}`,fill:"inherit"}),n=Pn(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Pn(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=Pn(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const i=e("defs"),o=Pn(e("clipPath"),{id:"clip0_57_156"}),a=Pn(e("rect"),{width:`${Ju}`,height:`${Ju}`,fill:"white",transform:"translate(0 0.5)"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),t}function kW({open:e,onFormSubmitted:t,...n}){const r=n.options,s=lu(()=>({__html:TW().outerHTML}),[]),[i,o]=Di(null),a=oa(()=>{i&&(clearTimeout(i),o(null)),t()},[i]),c=oa((l,u)=>{n.onSubmitSuccess(l,u),o(setTimeout(()=>{t(),o(null)},zq))},[t]);return He(cu,null,i?He("div",{class:"success__position",onClick:a},He("div",{class:"success__content"},r.successMessageText,He("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):He("dialog",{class:"dialog",onClick:r.onFormClose,open:e},He("div",{class:"dialog__position"},He("div",{class:"dialog__content",onClick:l=>{l.stopPropagation()}},He(bW,{options:r}),He(SW,{...n,onSubmitSuccess:c})))))}const xW=` 143.dialog { 144 position: fixed;
145 z-index: var(--z-index); 146 margin: 0; 147 inset: 0; 148 149 display: flex; 150 align-items: center; 151 justify-content: center; 152 padding: 0; 153 height: 100vh; 154 width: 100vw; 155 156 color: var(--dialog-color, var(--foreground)); 157 fill: var(--dialog-color, var(--foreground)); 158 line-height: 1.75em; 159 160 background-color: rgba(0, 0, 0, 0.05); 161 border: none; 162 inset: 0; 163 opacity: 1; 164 transition: opacity 0.2s ease-in-out; 165} 166 167.dialog__position { 168 position: fixed; 169 z-index: var(--z-index); 170 inset: var(--dialog-inset); 171 padding: var(--page-margin); 172 display: flex; 173 max-height: calc(100vh - (2 * var(--page-margin))); 174} 175@media (max-width: 600px) { 176 .dialog__position { 177 inset: var(--page-margin); 178 padding: 0; 179 } 180} 181 182.dialog__position:has(.editor) { 183 inset: var(--page-margin); 184 padding: 0; 185} 186 187.dialog:not([open]) { 188 opacity: 0; 189 pointer-events: none; 190 visibility: hidden; 191} 192.dialog:not([open]) .dialog__content { 193 transform: translate(0, -16px) scale(0.98); 194} 195 196.dialog__content { 197 display: flex; 198 flex-direction: column; 199 gap: 16px; 200 padding: var(--dialog-padding, 24px); 201 max-width: 100%; 202 width: 100%; 203 max-height: 100%; 204 overflow: auto; 205 206 background: var(--dialog-background, var(--background)); 207 border-radius: var(--dialog-border-radius, 20px); 208 border: var(--dialog-border, var(--border));
209 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 210 transform: translate(0, 0) scale(1); 211 transition: transform 0.2s ease-in-out; 212} 213 214`,IW=` 215.dialog__header { 216 display: flex; 217 gap: 4px; 218 justify-content: space-between; 219 font-weight: var(--dialog-header-weight, 600); 220 margin: 0; 221} 222.dialog__title { 223 align-self: center; 224 width: var(--form-width, 272px); 225} 226 227@media (max-width: 600px) { 228 .dialog__title { 229 width: auto; 230 } 231} 232 233.dialog__position:has(.editor) .dialog__title { 234 width: auto; 235} 236 237 238.brand-link { 239 display: inline-flex; 240} 241.brand-link:focus-visible { 242 outline: var(--outline); 243} 244`,RW=` 245.form { 246 display: flex; 247 overflow: auto; 248 flex-direction: row; 249 gap: 16px; 250 flex: 1 0; 251} 252 253.form fieldset { 254 border: none; 255 margin: 0; 256 padding: 0; 257} 258 259.form__right { 260 flex: 0 0 auto; 261 display: flex; 262 overflow: auto; 263 flex-direction: column; 264 justify-content: space-between; 265 gap: 20px; 266 width: var(--form-width, 100%); 267} 268 269.dialog__position:has(.editor) .form__right { 270 width: var(--form-width, 272px); 271} 272 273.form__top { 274 display: flex; 275 flex-direction: column; 276 gap: 8px; 277} 278 279.form__error-container { 280 color: var(--error-color); 281 fill: var(--error-color); 282} 283 284.form__label { 285 display: flex; 286 flex-direction: column; 287 gap: 4px; 288 margin: 0px; 289} 290 291.form__label__text { 292 display: flex; 293 gap: 4px; 294 align-items: center; 295} 296 297.form__label__text--required { 298 font-size: 0.85em; 299} 300 301.form__input { 302 font-family: inherit; 303 line-height: inherit; 304 background: transparent; 305 box-sizing: border-box; 306 border: var(--input-border, var(--border)); 307 border-radius: var(--input-border-radius, 6px); 308 color: var(--input-color, inherit); 309 fill: var(--input-color, inherit); 310 font-size: var(--input-font-size, inherit); 311 font-weight: var(--input-font-weight, 500); 312 padding: 6px 12px; 313} 314 315.form__input::placeholder { 316 opacity: 0.65; 317 color: var(--input-placeholder-color, inherit); 318 filter: var(--interactive-filter); 319} 320 321.form__input:focus-visible { 322 outline: var(--input-focus-outline, var(--outline)); 323} 324 325.form__input--textarea { 326 font-family: inherit; 327 resize: vertical; 328} 329 330.error { 331 color: var(--error-color); 332 fill: var(--error-color); 333} 334`,CW=` 335.btn-group { 336 display: grid; 337 gap: 8px; 338} 339 340.btn { 341 line-height: inherit; 342 border: var(--button-border, var(--border)); 343 border-radius: var(--button-border-radius, 6px); 344 cursor: pointer; 345 font-family: inherit; 346 font-size: var(--button-font-size, inherit); 347 font-weight: var(--button-font-weight, 600); 348 padding: var(--button-padding, 6px 16px); 349} 350.btn[disabled] { 351 opacity: 0.6; 352 pointer-events: none; 353} 354 355.btn--primary { 356 color: var(--button-primary-color, var(--accent-foreground)); 357 fill: var(--button-primary-color, var(--accent-foreground)); 358 background: var(--button-primary-background, var(--accent-background)); 359 border: var(--button-primary-border, var(--border)); 360 border-radius: var(--button-primary-border-radius, 6px); 361 font-weight: var(--button-primary-font-weight, 500); 362} 363.btn--primary:hover { 364 color: var(--button-primary-hover-color, var(--accent-foreground)); 365 fill: var(--button-primary-hover-color, var(--accent-foreground)); 366 background: var(--button-primary-hover-background, var(--accent-background)); 367 filter: var(--interactive-filter); 368} 369.btn--primary:focus-visible { 370 background: var(--button-primary-hover-background, var(--accent-background)); 371 filter: var(--interactive-filter); 372 outline: var(--button-primary-focus-outline, var(--outline)); 373} 374 375.btn--default { 376 color: var(--button-color, var(--foreground)); 377 fill: var(--button-color, var(--foreground)); 378 background: var(--button-background, var(--background)); 379 border: var(--button-border, var(--border)); 380 border-radius: var(--button-border-radius, 6px); 381 font-weight: var(--button-font-weight, 500); 382} 383.btn--default:hover { 384 color: var(--button-color, var(--foreground)); 385 fill: var(--button-color, var(--foreground)); 386 background: var(--button-hover-background, var(--background)); 387 filter: var(--interactive-filter); 388} 389.btn--default:focus-visible { 390 background: var(--button-hover-background, var(--background)); 391 filter: var(--interactive-filter); 392 outline: var(--button-focus-outline, var(--outline)); 393} 394`,AW=` 395.success__position { 396 position: fixed; 397 inset: var(--dialog-inset); 398 padding: var(--page-margin); 399 z-index: var(--z-index); 400} 401.success__content { 402 background: var(--success-background, var(--background)); 403 border: var(--success-border, var(--border)); 404 border-radius: var(--success-border-radius, 1.7em/50%);
405 box-shadow: var(--success-box-shadow, var(--box-shadow)); 406 font-weight: var(--success-font-weight, 600); 407 color: var(--success-color); 408 fill: var(--success-color); 409 padding: 12px 24px; 410 line-height: 1.75em; 411 412 display: grid; 413 align-items: center; 414 grid-auto-flow: column; 415 gap: 6px; 416 cursor: default; 417} 418 419.success__icon { 420 display: flex; 421} 422`;function OW(e){const t=it.createElement("style");return t.textContent=` 423:host { 424 --dialog-inset: var(--inset); 425} 426 427${xW} 428${IW} 429${RW} 430${CW} 431${AW} 432`,e&&t.setAttribute("nonce",e),t}function PW(){const e=Pe().getUser(),t=It().getUser(),n=Wi().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const MW=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const s=r,i=e.useSentryUser,o=PW(),a=it.createElement("div"),c=OW(e.styleNonce);let l="";const u={get el(){return a},appendToDom(){!s.contains(c)&&!s.contains(a)&&(s.appendChild(c),s.appendChild(a))},removeFromDom(){a.remove(),c.remove(),it.body.style.overflow=l},open(){f(!0),e.onFormOpen?.(),pe()?.emit("openFeedbackWidget"),l=it.body.style.overflow,it.body.style.overflow="hidden"},close(){f(!1),it.body.style.overflow=l}},d=t?.createInput({h:He,hooks:_W,dialog:u,options:e}),f=p=>{aW(He(kW,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(i&&o?.[i.name]||""),defaultEmail:String(i&&o?.[i.email]||""),onFormClose:()=>{f(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(h,g)=>{f(!1),e.onSubmitSuccess?.(h,g)},onSubmitError:h=>{e.onSubmitError?.(h)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:p}),a)};return u}}));function LW({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function NW(e){const t=it.createElement("style"),n="#1A141F",r="#302735";return t.textContent=` 433.editor { 434 display: flex; 435 flex-grow: 1; 436 flex-direction: column; 437} 438 439.editor__image-container { 440 justify-items: center; 441 padding: 15px; 442 position: relative; 443 height: 100%; 444 border-radius: var(--menu-border-radius, 6px); 445 446 background-color: ${n}; 447 background-image: repeating-linear-gradient( 448 -145deg, 449 transparent, 450 transparent 8px, 451 ${n} 8px, 452 ${n} 11px 453 ), 454 repeating-linear-gradient( 455 -45deg, 456 transparent, 457 transparent 15px, 458 ${r} 15px, 459 ${r} 16px 460 ); 461} 462 463.editor__canvas-container { 464 width: 100%; 465 height: 100%; 466 position: relative; 467 display: flex; 468 align-items: center; 469 justify-content: center; 470} 471 472.editor__canvas-container > * { 473 object-fit: contain; 474 position: absolute; 475} 476 477.editor__tool-container { 478 padding-top: 8px; 479 display: flex; 480 justify-content: center; 481} 482 483.editor__tool-bar { 484 display: flex; 485 gap: 8px; 486} 487 488.editor__tool { 489 display: flex; 490 padding: 8px 12px; 491 justify-content: center; 492 align-items: center; 493 border: var(--button-border, var(--border)); 494 border-radius: var(--button-border-radius, 6px); 495 background: var(--button-background, var(--background)); 496 color: var(--button-color, var(--foreground)); 497} 498 499.editor__tool--active { 500 background: var(--button-primary-background, var(--accent-background)); 501 color: var(--button-primary-color, var(--accent-foreground)); 502} 503 504.editor__rect { 505 position: absolute; 506 z-index: 2; 507} 508 509.editor__rect button { 510 opacity: 0; 511 position: absolute; 512 top: -12px; 513 right: -12px; 514 cursor: pointer; 515 padding: 0; 516 z-index: 3; 517 border: none; 518 background: none; 519} 520 521.editor__rect:hover button { 522 opacity: 1; 523} 524`,e&&t.setAttribute("nonce",e),t}function DW({h:e}){return function({action:n,setAction:r,options:s}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},s.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},s.hideToolText)))}}function $W({hooks:e}){function t(){const[n,r]=e.useState(ar.devicePixelRatio??1);return e.useEffect(()=>{const s=()=>{r(ar.devicePixelRatio)},i=matchMedia(`(resolution: ${ar.devicePixelRatio}dppx)`);
524return i.addEventListener("change",s),()=>{i.removeEventListener("change",s)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:s,onAfterScreenshot:i,onError:o}){const a=t();e.useEffect(()=>{(async()=>{r();const l=await Pc.mediaDevices.getDisplayMedia({video:{width:ar.innerWidth*a,height:ar.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),u=it.createElement("video");await new Promise((d,f)=>{u.srcObject=l,u.onloadedmetadata=()=>{s(u,a),l.getTracks().forEach(p=>p.stop()),d()},u.play().catch(f)}),i()})().catch(o)},[])}}function FW(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function Vs(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function Ag(e,t){Vs(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function Og(e,t,n){Vs(e,{alpha:!0},(r,s)=>{n.length&&(s.fillStyle="rgba(0, 0, 0, 0.25)",s.fillRect(0,0,r.width,r.height)),n.forEach(i=>{FW(i,s,t)})})}function UW({h:e,hooks:t,outputBuffer:n,dialog:r,options:s}){const i=$W({hooks:t}),o=DW({h:e}),a=LW({h:e}),c={__html:NW(s.styleNonce).innerText},l=r.el.style,u=({screenshot:d})=>{const[f,p]=t.useState("highlight"),[h,g]=t.useState([]),S=t.useRef(null),y=t.useRef(null),v=t.useRef(null),m=t.useRef(null),[_,w]=t.useState(1),x=t.useMemo(()=>{const b=it.getElementById(s.id);if(!b)return"white";const E=getComputedStyle(b);return E.getPropertyValue("--button-primary-background")||E.getPropertyValue("--accent-background")},[s.id]);t.useLayoutEffect(()=>{const b=()=>{const E=S.current;E&&(Vs(d.canvas,{alpha:!1},I=>{const A=Math.min(E.clientWidth/I.width,E.clientHeight/I.height);w(A)}),(E.clientHeight===0||E.clientWidth===0)&&setTimeout(b,0))};return b(),ar.addEventListener("resize",b),()=>{ar.removeEventListener("resize",b)}},[d]);const T=t.useCallback((b,E)=>{Vs(b,{alpha:!0},(I,A)=>{A.scale(E,E),I.width=d.canvas.width,I.height=d.canvas.height})},[d]);t.useEffect(()=>{T(y.current,d.dpi),Ag(y.current,d.canvas)},[d]),t.useEffect(()=>{T(v.current,d.dpi),Vs(v.current,{alpha:!0},(b,E)=>{E.clearRect(0,0,b.width,b.height)}),Og(v.current,x,h)},[h,x]),t.useEffect(()=>{T(n,d.dpi),Ag(n,d.canvas),Vs(it.createElement("canvas"),{alpha:!0},(b,E)=>{E.scale(d.dpi,d.dpi),b.width=d.canvas.width,b.height=d.canvas.height,Og(b,x,h),Ag(n,b)})},[h,d,x]);const R=b=>{if(!f||!m.current)return;const E=m.current.getBoundingClientRect(),I={type:f,x:b.offsetX/_,y:b.offsetY/_},A=(O,D)=>{const j=(D.clientX-E.x)/_,q=(D.clientY-E.y)/_;return{type:O.type,x:Math.min(O.x,j),y:Math.min(O.y,q),w:Math.abs(j-O.x),h:Math.abs(q-O.y)}},$=O=>{Vs(v.current,{alpha:!0},(D,j)=>{j.clearRect(0,0,D.width,D.height)}),Og(v.current,x,[...h,A(I,O)])},N=O=>{const D=A(I,O);D.w*_>=1&&D.h*_>=1&&g(j=>[...j,D]),it.removeEventListener("mousemove",$),it.removeEventListener("mouseup",N)};it.addEventListener("mousemove",$),it.addEventListener("mouseup",N)},k=t.useCallback(b=>E=>{E.preventDefault(),E.stopPropagation(),g(I=>{const A=[...I];return A.splice(b,1),A})},[]),C={width:`${d.canvas.width*_}px`,height:`${d.canvas.height*_}px`},M=b=>{b.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:S},e("canvas",{ref:y,id:"background",style:C}),e("canvas",{ref:v,id:"foreground",style:C}),e("div",{ref:m,onMouseDown:R,style:C},h.map((b,E)=>e("div",{key:E,class:"editor__rect",style:{top:`${b.y*_}px`,left:`${b.x*_}px`,width:`${b.w*_}px`,height:`${b.h*_}px`}},e("button",{"aria-label":s.removeHighlightText,onClick:k(E),onMouseDown:M,onMouseUp:M,type:"button"},e(a,null))))))),e(o,{options:s,action:f,setAction:p}))};return function({onError:f}){const[p,h]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{l.display="none"},[]),onScreenshot:t.useCallback((g,S)=>{Vs(it.createElement("canvas"),{alpha:!1},(y,v)=>{v.scale(S,S),y.width=g.videoWidth,y.height=g.videoHeight,v.drawImage(g,0,0,y.width,y.height),h({canvas:y,dpi:S})}),n.width=g.videoWidth,n.height=g.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display="block"},[]),onError:t.useCallback(g=>{l.display="block",f(g)}
524,[])}),p?e(u,{screenshot:p}):e("div",null)}}const HW=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=it.createElement("canvas");return{input:UW({h:e,hooks:t,outputBuffer:s,dialog:n,options:r}),value:async()=>{const i=await new Promise(o=>{s.toBlob(o,"image/png")});if(i)return{data:new Uint8Array(await i.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),ve=Te;let G_=0;function BA(){return G_>0}function jW(){G_++,setTimeout(()=>{G_--})}function ka(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(_v(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>ka(o,t));return e.apply(this,i)}catch(i){throw jW(),nr(o=>{o.addEventProcessor(a=>(t.mechanism&&(k_(a,void 0),Is(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),et(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}hR(r,e),on(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function zf(){const e=lo(),{referrer:t}=ve.document||{},{userAgent:n}=ve.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const BW=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],qW={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};function WW(e){return qW[e]||e.replace("Integration","").toLowerCase()}const zE=ve;async function qA(e,t){const n=BW.includes(e)?WW(e):void 0,r=zE.Sentry=zE.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const s=r[e];if(typeof s=="function"&&!("_isShim"in s))return s;const i=VW(n),o=ve.document.createElement("script");o.src=i,o.crossOrigin="anonymous",o.referrerPolicy="strict-origin",t&&o.setAttribute("nonce",t);const a=new Promise((d,f)=>{o.addEventListener("load",()=>d()),o.addEventListener("error",f)}),c=ve.document.currentScript,l=ve.document.body||ve.document.head||c?.parentElement;if(l)l.appendChild(o);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const u=r[e];if(typeof u!="function")throw new Error(`Could not load integration: ${e}`);return u}function VW(e){const n=pe()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${_s}/${e}.min.js`,n).toString()}const zW=OA({lazyLoadIntegration:qA}),GE=OA({getModalIntegration:()=>MW,getScreenshotIntegration:()=>HW});function Jp(e,t){const n=eb(e,t),r={type:JW(t),value:ZW(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function GW(e,t,n,r){const i=pe()?.getOptions().normalizeDepth,o=tV(t),a={__serialized__:ZR(t,i)};if(o)return{exception:{values:[Jp(e,o)]},extra:a};const c={exception:{values:[{type:Np(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:QW(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=eb(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function Pg(e,t){return{exception:{values:[Jp(e,t)]}}}function eb(e,t){const n=t.stacktrace||t.stack||"",r=YW(t),s=XW(t);try{return e(n,r,s)}catch{}return[]}const KW=/Minified React error #\d+;/i;function YW(e){return e&&KW.test(e.message)?1:0}function XW(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function WA(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function JW(e){const t=e?.name;return!t&&WA(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function ZW(e){const t=e?.message;return WA(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?oE(t.error):oE(e):"No error message"}function VA(e,t,n,r){const s=n?.syntheticException||void 0,i=Zp(e,t,s,r);return Is(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),ru(i)}function zA(e,t,n="info",r,s){const i=r?.syntheticException||void 0,o=K_(e,t,i,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),ru(o)}
524function Zp(e,t,n,r,s){let i;if(fR(t)&&t.error)return Pg(e,t.error);if(yS(t)||s8(t)){const o=t;if("stack"in t)i=Pg(e,t);else{const a=o.name||(yS(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=K_(e,c,n,r),k_(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return ys(t)?Pg(e,t):Tn(t)||Np(t)?(i=GW(e,t,n,s),Is(i,{synthetic:!0}),i):(i=K_(e,t,n,r),k_(i,`${t}`),Is(i,{synthetic:!0}),i)}function K_(e,t,n,r){const s={};if(r&&n){const i=eb(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),Is(s,{synthetic:!0})}if(Lp(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function QW(e,{isUnhandledRejection:t}){const n=u8(e),r=t?"promise rejection":"exception";return fR(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Np(e)?`Event \`${eV(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function eV(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function tV(e){return Object.values(e).find(t=>t instanceof Error)}class GA extends cj{constructor(t){const n=nV(t),r=ve.SENTRY_SDK_SOURCE||HH();DC(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o,_experiments:a,enableMetrics:c}=this._options,l=c??a?.enableMetrics??!0;ve.document&&(i||o||l)&&ve.document.addEventListener("visibilitychange",()=>{ve.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&Ff(this),l&&Ov(this))}),s&&this.on("beforeSendSession",Ej)}eventFromException(t,n){return VA(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return zA(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function nV(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:ve.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const wr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$e=Te,rV=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",uu=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s??0),(i||s===void 0)&&(s=t.value,t.delta=i,t.rating=rV(t.value,n),e(t)))}},du=(e=!0)=>{const t=$e.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ka=()=>du()?.activationStart??0;function ti(e,t,n){$e.document&&$e.addEventListener(e,t,n)}function Gf(e,t,n){$e.document&&$e.removeEventListener(e,t,n)}let aa=-1;const KA=new Set,sV=()=>$e.document?.visibilityState==="hidden"&&!$e.document?.prerendering?0:1/0,Od=e=>{if(iV(e)&&aa>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of KA)t();isFinite(aa)||(aa=e.type==="visibilitychange"?e.timeStamp:0,Gf("prerenderingchange",Od,!0))}},fu=()=>{if($e.document&&aa<0){const e=Ka();aa=($e.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??sV(),ti("visibilitychange",Od,!0),ti("pagehide",Od,!0),ti("prerenderingchange",Od,!0)}return{get firstHiddenTime(){return aa},onHidden(e){KA.add(e)}}};function iV(e){return e.type==="pagehide"||$e.document?.visibilityState==="hidden"}const oV=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,pu=(e,t=-1)=>{const n=du();let r="navigate";return n&&($e.document?.prerendering||Ka()>0?r="prerender":$e.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:oV(),navigationType:r}},Mg=new WeakMap;function tb(e,t){try{return Mg.get(e)||Mg.set(e,new t),Mg.get(e)}catch{return new t}}class Kf{constructor(){Kf.prototype.__init.call(this),Kf.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const Ya=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},nb=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Qp=e=>{$e.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},aV=[1800,3e3],cV=(e,t={})=>{Qp(()=>{const n=fu(),r=pu("FCP");let s;const o=Ya("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Ka(),0),r.entries.push(c),s(!0)))});o&&(s=uu(e,r,aV,t.reportAllChanges))})},lV=[.1,.25],uV=(e,t={})=>{cV(nb(()=>{const n=pu("CLS",0);let r;const s=fu(),i=tb(t,Kf),o=c=>{for(const l of c)i._processEntry(l);i._sessionValue>
524n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=Ya("layout-shift",o);a&&(r=uu(e,n,lV,t.reportAllChanges),s.onHidden(()=>{o(a.takeRecords()),r(!0)}),$e?.setTimeout?.(r))}))};let YA=0,Lg=1/0,Zu=0;const dV=e=>{e.forEach(t=>{t.interactionId&&(Lg=Math.min(Lg,t.interactionId),Zu=Math.max(Zu,t.interactionId),YA=Zu?(Zu-Lg)/7+1:0)})};let Y_;const XA=()=>Y_?YA:performance.interactionCount||0,fV=()=>{"interactionCount"in performance||Y_||(Y_=Ya("event",dV,{type:"event",buffered:!0,durationThreshold:0}))},Ng=10;let JA=0;const pV=()=>XA()-JA;class Yf{constructor(){Yf.prototype.__init.call(this),Yf.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){JA=XA(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(pV()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Ng||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,i)=>i._latency-s._latency),this._longestInteractionList.length>Ng){const s=this._longestInteractionList.splice(Ng);for(const i of s)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}}const ZA=e=>{const t=$e.requestIdleCallback||$e.setTimeout;$e.document?.visibilityState==="hidden"?e():(e=nb(e),ti("visibilitychange",e,{once:!0,capture:!0}),ti("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Gf("visibilitychange",e,{capture:!0}),Gf("pagehide",e,{capture:!0})}))},hV=[200,500],gV=40,mV=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=fu();Qp(()=>{fV();const r=pu("INP");let s;const i=tb(t,Yf),o=c=>{ZA(()=>{for(const u of c)i._processEntry(u);const l=i._estimateP98LongestInteraction();l&&l._latency!==r.value&&(r.value=l._latency,r.entries=l.entries,s())})},a=Ya("event",o,{durationThreshold:t.durationThreshold??gV});s=uu(e,r,hV,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(a.takeRecords()),s(!0)}))})};class _V{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const yV=[2500,4e3],vV=(e,t={})=>{Qp(()=>{const n=fu(),r=pu("LCP");let s;const i=tb(t,_V),o=c=>{t.reportAllChanges||(c=c.slice(-1));for(const l of c)i._processEntry(l),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-Ka(),0),r.entries=[l],s())},a=Ya("largest-contentful-paint",o);if(a){s=uu(e,r,yV,t.reportAllChanges);const c=nb(()=>{o(a.takeRecords()),a.disconnect(),s(!0)}),l=u=>{u.isTrusted&&(ZA(c),Gf(u.type,l,{capture:!0}))};for(const u of["keydown","click","visibilitychange"])ti(u,l,{capture:!0})}})},bV=[800,1800],X_=e=>{$e.document?.prerendering?Qp(()=>X_(e)):$e.document?.readyState!=="complete"?addEventListener("load",()=>X_(e),!0):setTimeout(e)},wV=(e,t={})=>{const n=pu("TTFB"),r=uu(e,n,bV,t.reportAllChanges);X_(()=>{const s=du();s&&(n.value=Math.max(s.responseStart-Ka(),0),n.entries=[s],r(!0))})},Xc={},Xf={};let QA,eO,tO,nO;function eh(e,t=!1){return nh("cls",e,EV,QA,t)}function th(e,t=!1){return nh("lcp",e,TV,eO,t)}function SV(e){return nh("ttfb",e,kV,tO)}function rb(e){return nh("inp",e,xV,nO)}function oo(e,t){return rO(e,t),Xf[e]||(IV(e),Xf[e]=!0),sO(e,t)}function hu(e,t){const n=Xc[e];if(n?.length)for(const r of n)try{r(t)}catch(s){wr&&U.error(`Error while triggering instrumentation handler. 525Type: ${e} 526Name: ${Ts(r)} 527Error:`,s)}}function EV(){return uV(e=>{hu("cls",{metric:e}),QA=e},{reportAllChanges:!0})}function TV(){return vV(e=>{hu("lcp",{metric:e}),eO=e},{reportAllChanges:!0})}function kV(){return wV(e=>{hu("ttfb",{metric:e}),tO=e})}
527function xV(){return mV(e=>{hu("inp",{metric:e}),nO=e})}function nh(e,t,n,r,s=!1){rO(e,t);let i;return Xf[e]||(i=n(),Xf[e]=!0),r&&t({metric:r}),sO(e,t,s?i:void 0)}function IV(e){const t={};e==="event"&&(t.durationThreshold=0),Ya(e,n=>{hu(e,{entries:n})},t)}function rO(e,t){Xc[e]=Xc[e]||[],Xc[e].push(t)}function sO(e,t,n){return()=>{n&&n();const r=Xc[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function RV(e){return"duration"in e}const CV=e=>{const t=n=>{(n.type==="pagehide"||$e.document?.visibilityState==="hidden")&&e(n)};ti("visibilitychange",t,{capture:!0,once:!0}),ti("pagehide",t,{capture:!0,once:!0})};function Dg(e){return typeof e=="number"&&isFinite(e)}function oi(e,t,n,{...r}){const s=De(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),tu(e,()=>{const i=qr({startTime:t,...r});return i&&i.end(n),i})}function sb(e){const t=pe();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:i}=e,{release:o,environment:a,sendDefaultPii:c}=t.getOptions(),u=t.getIntegrationByName("Replay")?.getReplayId(),d=Pe(),f=d.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let h;try{h=d.getScopeData().contexts.profile.profile_id}catch{}const g={release:o,environment:a,user:p||void 0,profile_id:h||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":$e.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s};return qr({name:n,attributes:g,startTime:i,experimental:{standalone:!0}})}function Xa(){return $e.addEventListener&&$e.performance}function vt(e){return e/1e3}function AV(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function rh(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function sh(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n.spanContext().spanId,n),r=!0}CV(()=>{s("pagehide")});const i=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(s("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",a=>{n=a,o()})}function OV(e){let t=0,n;if(!rh("layout-shift"))return;const r=eh(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);sh(e,(s,i)=>{PV(t,n,i,s),r()})}function PV(e,t,n,r){wr&&U.log(`Sending CLS span (${e})`);const s=t?vt((Ht()||0)+t.startTime):lt(),i=Pe().getScopeData().transactionName,o=t?Kt(t.sources[0]?.node):"Layout shift",a={[qe]:"auto.http.browser.cls",[Qe]:"ui.webvital.cls",[pi]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((l,u)=>{a[`cls.source.${u+1}`]=Kt(l.node)});const c=sb({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("cls",{[Xl]:"",[Jl]:e}),c.end(s))}const MV=6e4;function gu(e){return e!=null&&e>0&&e<=MV}function LV(e){let t=0,n;if(!rh("largest-contentful-paint"))return;const r=th(({metric:s})=>{const i=s.entries[s.entries.length-1];!i||!gu(s.value)||(t=s.value,n=i)},!0);sh(e,(s,i)=>{NV(t,n,i,s),r()})}function NV(e,t,n,r){if(!gu(e))return;wr&&U.log(`Sending LCP span (${e})`);const s=vt((Ht()||0)+(t?.startTime||0)),i=Pe().getScopeData().transactionName,o=t?Kt(t.element):"Largest contentful paint",a={[qe]:"auto.http.browser.lcp",[Qe]:"ui.webvital.lcp",[pi]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=Kt(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=sb({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[Xl]:"millisecond",[Jl]:e}),c.end(s))}function Bn(e){return e&&((Ht()||performance.timeOrigin)+e)/1e3}function iO(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=AV(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Ht()||Xa()?.timeOrigin?DV({...t,"http.request.redirect_start":Bn(e.redirectStart),"http.request.redirect_end":Bn(e.redirectEnd),"http.request.worker_start":Bn(e.workerStart),"http.request.fetch_start":Bn(e.fetchStart),"http.request.domain_lookup_start":Bn(e.domainLookupStart),"http.request.domain_lookup_end":Bn(e.domainLookupEnd),"http.request.connect_start":Bn(e.connectStart),"http.request.secure_connection_start":Bn(e.secureConnectionStart),"http.request.connection_end":Bn(e.connectEnd),"http.request.request_start":Bn(e.requestStart),"http.request.response_start":Bn(e.responseStart),"http.request.response_end":Bn(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function DV(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const $V=2147483647;let KE=0,gn={},wn,Jf;function FV({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Xa();if(r&&Ht()){r.mark&&$e.performance.mark("sentry-tracing-init");const s=t?LV(n):t===!1?qV():void 0,i=e?OV(n):e===!1?BV():void 0,o=WV();return()=>{o(),s?.(),i?.()}}return()=>{}}function UV(){oo("longtask",({entries:e})=>{const t=St();if(!t)return;const{op:n,start_timestamp:r}=De(t);for(const s of e){const i=vt(Ht()+s.startTime),o=vt(s.duration);n==="navigation"&&r&&i<r||oi(t,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[qe]:"auto.ui.browser.metrics"}})}})}function HV(){new PerformanceObserver(t=>{const n=St();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=vt(Ht()+r.startTime),{start_timestamp:i,op:o}=De(n);if(o==="navigation"&&i&&s<i)continue;const a=vt(r.duration),c={[qe]:"auto.ui.browser.metrics"},l=r.scripts[0],{invoker:u,invokerType:d,sourceURL:f,sourceFunctionName:p,sourceCharPosition:h}=l;c["browser.script.invoker"]=u,c["browser.script.invoker_type"]=d,f&&(c["code.filepath"]=f),p&&(c["code.function"]=p),h!==-1&&(c["browser.script.source_char_position"]=h),oi(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function jV(){oo("event",({entries:e})=>{const t=St();if(t){for(const n of e)if(n.name==="click"){const r=vt(Ht()+n.startTime),s=vt(n.duration),i={name:Kt(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[qe]:"auto.ui.browser.metrics"}},o=mv(n.target);o&&(i.attributes["ui.component_name"]=o),oi(t,r,r+s,i)}}})}function BV(){return eh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(gn.cls={value:e.value,unit:""},Jf=t)},!0)}function qV(){return th(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!gu(e.value)||(gn.lcp={value:e.value,unit:"millisecond"},wn=t)},!0)}function WV(){return SV(({metric:e})=>{e.entries[e.entries.length-1]&&(gn.ttfb={value:e.value,unit:"millisecond"})})}function VV(e,t){const n=Xa(),r=Ht();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:s,ignorePerformanceApiSpans:i,ignoreResourceSpans:o,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:c}=t,l=vt(r),u=n.getEntries(),{op:d,start_timestamp:f}=De(e);
527if(u.slice(KE).forEach(p=>{const h=vt(p.startTime),g=vt(Math.max(0,p.duration));if(!(d==="navigation"&&f&&l+h<f))switch(p.entryType){case"navigation":{YV(e,p,l);break}case"mark":case"paint":case"measure":{GV(e,p,h,g,l,i);const S=fu(),y=p.startTime<S.firstHiddenTime;p.name==="first-paint"&&y&&(gn.fp={value:p.startTime,unit:"millisecond"}),p.name==="first-contentful-paint"&&y&&(gn.fcp={value:p.startTime,unit:"millisecond"});break}case"resource":{ZV(e,p,p.name,h,g,l,o);break}}}),KE=Math.max(u.length-1,0),QV(e,s),d==="pageload"){if(nz(gn),s){const p=(h,g,S)=>{const y=S??`browser.web_vital.${h}.value`;e.setAttribute(y,g),wr&&U.log("Setting web vital attribute",{[y]:g},"on pageload span")};["ttfb","fp","fcp"].forEach(h=>{gn[h]&&p(h,gn[h].value)}),gn["ttfb.requestTime"]&&p("ttfb.requestTime",gn["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete gn.cls,c||delete gn.lcp,Object.entries(gn).forEach(([p,h])=>{tC(p,h.value,h.unit)}),ez(e,t);e.setAttribute(s?"browser.performance.time_origin":"performance.timeOrigin",l),e.setAttribute(s?"browser.performance.navigation.activation_start":"performance.activationStart",Ka())}wn=void 0,Jf=void 0,gn={}}function zV(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components â"}catch{return}}function GV(e,t,n,r,s,i){if(zV(t)||["mark","measure"].includes(t.entryType)&&Kn(t.name,i))return;const o=du(!1),a=vt(o?o.requestStart:0),c=s+Math.max(n,a),l=s+n,u=l+r,d={[qe]:"auto.resource.browser.metrics"};c!==l&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c),KV(d,t),c<=u&&oi(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function KV(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&ks(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(ks(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function YV(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Qu(e,t,r,n)}),Qu(e,t,"secureConnection",n,"TLS/SSL"),Qu(e,t,"fetch",n,"cache"),Qu(e,t,"domainLookup",n,"DNS"),JV(e,t,n)}function Qu(e,t,n,r,s=n){const i=XV(n),o=t[i],a=t[`${n}Start`];!a||!o||oi(e,r+vt(a),r+vt(o),{op:`browser.${s}`,name:t.name,attributes:{[qe]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function XV(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function JV(e,t,n){const r=n+vt(t.requestStart),s=n+vt(t.responseEnd),i=n+vt(t.responseStart);t.responseEnd&&(oi(e,r,s,{op:"browser.request",name:t.name,attributes:{[qe]:"auto.ui.browser.metrics"}}),oi(e,i,s,{op:"browser.response",name:t.name,attributes:{[qe]:"auto.ui.browser.metrics"}}))}function ZV(e,t,n,r,s,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(a))return;const c={[qe]:"auto.resource.browser.metrics"},l=Zs(n);l.protocol&&(c["url.scheme"]=l.protocol.split(":").pop()),l.host&&(c["server.address"]=l.host),c["url.same_origin"]=n.includes($e.location.origin),tz(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"]]);const u={...c,...iO(t)},d=i+r,f=d+s;oi(e,d,f,{name:n.replace($e.location.origin,""),op:a,attributes:u})}function QV(e,t){const n=$e.navigator;if(!n)return;const 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),Dg(r.rtt)&&(gn["connection.rtt"]={value:r.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",r.rtt))),Dg(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),Dg(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function ez(e,t){wn&&t.recordLcpOnPageloadSpan&&(wn.element&&e.setAttribute("lcp.element",Kt(wn.element)),wn.id&&e.setAttribute("lcp.id",wn.id),wn.url&&e.setAttribute("lcp.url",wn.url.trim().slice(0,200)),wn.loadTime!=null&&e.setAttribute("lcp.loadTime",wn.loadTime),wn.renderTime!=null&&e.setAttribute("lcp.renderTime",wn.renderTime),e.setAttribute("lcp.size",wn.size)),Jf?.sources&&t.recordClsOnPageloadSpan&&Jf.sources.forEac
527h((n,r)=>e.setAttribute(`cls.source.${r+1}`,Kt(n.node)))}function tz(e,t,n){n.forEach(([r,s])=>{const i=e[r];i!=null&&(typeof i=="number"&&i<$V||typeof i=="string")&&(t[s]=i)})}function nz(e){const t=du(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const rz="ElementTiming",sz=(()=>({name:rz,setup(){!Xa()||!Ht()||oo("element",({entries:t})=>{for(const n of t){const r=n;if(!r.identifier)continue;const s=r.identifier,i=r.name,o=r.renderTime,a=r.loadTime,c={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":s};i&&(c["ui.element.paint_type"]=i),r.id&&(c["ui.element.id"]=r.id),r.element&&(c["ui.element.type"]=r.element.tagName.toLowerCase()),r.url&&(c["ui.element.url"]=r.url),r.naturalWidth&&(c["ui.element.width"]=r.naturalWidth),r.naturalHeight&&(c["ui.element.height"]=r.naturalHeight),o>0&&$_("ui.element.render_time",o,{unit:"millisecond",attributes:c}),a>0&&$_("ui.element.load_time",a,{unit:"millisecond",attributes:c})}})}})),iz=sz,$g=[],Jc=new Map,ko=new Map,oO=60;function oz(){if(Xa()&&Ht()){const t=az();return()=>{t()}}return()=>{}}const Cl={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 az(){return rb(cz)}const cz=({metric:e})=>{if(e.value==null)return;const t=vt(e.value);if(t>oO)return;const n=e.entries.find(h=>h.duration===e.value&&Cl[h.name]);if(!n)return;const{interactionId:r}=n,s=Cl[n.name],i=vt(Ht()+n.startTime),o=St(),a=o?xt(o):void 0,c=r!=null?Jc.get(r):void 0,l=c?.span||a,u=l?De(l).description:Pe().getScopeData().transactionName,d=c?.elementName||Kt(n.target),f={[qe]:"auto.http.browser.inp",[Qe]:`ui.interaction.${s}`,[pi]:n.duration},p=sb({name:d,transaction:u,attributes:f,startTime:i});p&&(p.addEvent("inp",{[Xl]:"millisecond",[Jl]:e.value}),p.end(i+t))};function lz(e){return e!=null?Jc.get(e):void 0}function uz(){const e=Object.keys(Cl);si()&&e.forEach(s=>{$e.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const i=s.target;if(!i)return;const o=Kt(i),a=Math.round(s.timeStamp);if(ko.set(a,o),ko.size>50){const c=ko.keys().next().value;c!==void 0&&ko.delete(c)}}function n(s){const i=Math.round(s.startTime);let o=ko.get(i);if(!o)for(let a=-5;a<=5;a++){const c=ko.get(i+a);if(c){o=c;break}}return o||"<unknown>"}const r=({entries:s})=>{const i=St(),o=i&&xt(i);s.forEach(a=>{if(!RV(a))return;const c=a.interactionId;if(c==null||Jc.has(c))return;const l=a.target?Kt(a.target):n(a);if($g.length>10){const u=$g.shift();Jc.delete(u)}$g.push(c),Jc.set(c,{span:o,elementName:l})})};oo("event",r),oo("first-input",r)}function ib(e){const{name:t,op:n,origin:r,metricName:s,value:i,attributes:o,parentSpan:a,reportEvent:c,startTime:l,endTime:u}=e,d=Pe().getScopeData().transactionName,f={[qe]:r,[Qe]:n,[pi]:0,[`browser.web_vital.${s}.value`]:i,"sentry.transaction":d,"user_agent.original":$e.navigator?.userAgent,...o};a&&Af(a).attributes?.[Qe]==="pageload"&&(f["sentry.pageload.span_id"]=a.spanContext().spanId),c&&(f[`browser.web_vital.${s}.report_event`]=c);const p=qr({name:t,attributes:f,startTime:l,parentSpan:a});p&&p.end(u??l)}function dz(e){let t=0,n;if(!rh("largest-contentful-paint"))return;const r=th(({metric:s})=>{const i=s.entries[s.entries.length-1];!i||!gu(s.value)||(t=s.value,n=i)},!0);sh(e,(s,i,o)=>{fz(t,n,o,s),r()})}function fz(e,t,n,r){if(!gu(e))return;wr&&U.log(`Sending LCP span (${e})`);const s=Ht()||0,i=vt(s),o=vt(s+(t?.startTime||0)),a=t?Kt(t.element):"Largest contentful paint",c={};t?.element&&(c["browser.web_vital.lcp.element"]=Kt(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),ib({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:i,endTime:o})}function pz(e){let t=0,n;if(!rh("layout-shift"))return;const r=eh(({metric:s})=>{const i=s.entries[s.entries.length-1];
527i&&(t=s.value,n=i)},!0);sh(e,(s,i,o)=>{hz(t,n,o,s),r()})}function hz(e,t,n,r){wr&&U.log(`Sending CLS span (${e})`);const s=t?vt((Ht()||0)+t.startTime):lt(),i=t?Kt(t.sources[0]?.node):"Layout shift",o={};t?.sources&&t.sources.forEach((a,c)=>{o[`browser.web_vital.cls.source.${c+1}`]=Kt(a.node)}),ib({name:i,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:s})}function gz(){if(!Xa()||!Ht())return;rb(({metric:n})=>{if(n.value==null||vt(n.value)>oO)return;const s=n.entries.find(i=>i.duration===n.value&&Cl[i.name]);s&&mz(n.value,s)})}function mz(e,t){wr&&U.log(`Sending INP span (${e})`);const n=vt(Ht()+t.startTime),r=vt(e),s=Cl[t.name],i=lz(t.interactionId),o=St(),a=o?xt(o):void 0,c=i?.span||a,l=c?Af(c).name:Pe().getScopeData().transactionName,u=i?.elementName||Kt(t.target);ib({name:u,op:`ui.interaction.${s}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[pi]:t.duration,"sentry.transaction":l},startTime:n,endTime:n+r,parentSpan:c})}const _z=1e3;let YE,J_,Z_;function aO(e){ui("dom",e),di("dom",yz)}function yz(){if(!$e.document)return;const e=Gn.bind(null,"dom"),t=XE(e,!0);$e.document.addEventListener("click",t,!1),$e.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=$e[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(nn(s,"addEventListener",function(i){return function(o,a,c){if(o==="click"||o=="keypress")try{const l=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=l[o]=l[o]||{refCount:0};if(!u.handler){const d=XE(e);u.handler=d,i.call(this,o,d,c)}u.refCount++}catch{}return i.call(this,o,a,c)}}),nn(s,"removeEventListener",function(i){return function(o,a,c){if(o==="click"||o=="keypress")try{const l=this.__sentry_instrumentation_handlers__||{},u=l[o];u&&(u.refCount--,u.refCount<=0&&(i.call(this,o,u.handler,c),u.handler=void 0,delete l[o]),Object.keys(l).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,c)}}))})}function vz(e){if(e.type!==J_)return!1;try{if(!e.target||e.target._sentryId!==Z_)return!1}catch{}return!0}function bz(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function XE(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=wz(n);if(bz(n.type,r))return;on(n,"_sentryCaptured",!0),r&&!r._sentryId&&on(r,"_sentryId",Vt());
527const s=n.type==="keypress"?"input":n.type;vz(n)||(e({event:n,name:s,global:t}),J_=n.type,Z_=r?r._sentryId:void 0),clearTimeout(YE),YE=$e.setTimeout(()=>{Z_=void 0,J_=void 0},_z)}}function wz(e){try{return e.target}catch{return null}}let ed;function ih(e){const t="history";ui(t,e),di(t,Sz)}function Sz(){if($e.addEventListener("popstate",()=>{const t=$e.location.href,n=ed;if(ed=t,n===t)return;Gn("history",{from:n,to:t})}),!mq())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=ed,i=Ez(String(r));if(ed=i,s===i)return t.apply(this,n);Gn("history",{from:s,to:i})}return t.apply(this,n)}}nn($e.history,"pushState",e),nn($e.history,"replaceState",e)}function Ez(e){try{return new URL(e,$e.location.origin).toString()}catch{return e}}const Pd={};function ob(e){const t=Pd[e];if(t)return t;let n=$e[e];if(B_(n))return Pd[e]=n.bind($e);const r=$e.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){wr&&U.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Pd[e]=n.bind($e))}function Tz(e){Pd[e]=void 0}function mu(...e){return ob("setTimeout")(...e)}const hs="__sentry_xhr_v3__";function ab(e){ui("xhr",e),di("xhr",kz)}function kz(){if(!$e.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=lt()*1e3,o=pr(r[0])?r[0].toUpperCase():void 0,a=xz(r[1]);if(!o||!a)return t.apply(n,r);n[hs]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[hs];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const u={endTimestamp:lt()*1e3,startTimestamp:i,xhr:n,virtualError:s};Gn("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,u,d){return c(),l.apply(u,d)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,u,d){const[f,p]=d,h=u[hs];return h&&pr(f)&&pr(p)&&(h.request_headers[f.toLowerCase()]=p),l.apply(u,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[hs];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:lt()*1e3,xhr:n};return Gn("xhr",i),t.apply(n,r)}})}function xz(e){if(pr(e))return e;try{return e.toString()}catch{}}const Iz=Symbol.for("sentry__originalRequestBody");function cO(e){return new URLSearchParams(e).toString()}function Zf(e,t=U){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[cO(e)];if(!e)return[void 0]}catch(n){return wr&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return wr&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function cb(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][Iz];return n!==void 0?n:void 0}}function lO(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return wr&&U.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 528`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}const Rz=40;function lb(e,t=ob("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw Tz("fetch"),c}finally{n-=o,r--}}return xC(e,s,Lv(e.bufferSize||Rz))}const ce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Cz(){const e=pe();if(!e){ce&&U.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){ce&&U.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function Az(){const e=pe();if(!e){ce&&U.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){ce&&U.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}const Oz={startProfiler:Cz,stopProfiler:Az},Pz=10,Mz=20,Lz=30,Nz=40,Dz=50;function xa(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?Hr:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const $z=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Fz=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Uz=/\((\S*)(?::(\d+))(?::(\d+))\)/,Hz=/at (.+?) ?\(data:(.+?),/,jz=e=>{const t=e.match(Hz);
528if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=$z.exec(e);if(n){const[,s,i,o]=n;return xa(s,Hr,+i,+o)}const r=Fz.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const a=Uz.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[i,o]=hO(r[1]||Hr,r[2]);return xa(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},uO=[Lz,jz],Bz=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,qz=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Wz=e=>{const t=Bz.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=qz.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||Hr;return[s,r]=hO(s,r),xa(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},dO=[Dz,Wz],Vz=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,zz=e=>{const t=Vz.exec(e);return t?xa(t[2],t[1]||Hr,+t[3],t[4]?+t[4]:void 0):void 0},Gz=[Nz,zz],Kz=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Yz=e=>{const t=Kz.exec(e);return t?xa(t[2],t[3]||Hr,+t[1]):void 0},Xz=[Pz,Yz],Jz=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Zz=e=>{const t=Jz.exec(e);return t?xa(t[5],t[3]||t[4]||Hr,+t[1],+t[2]):void 0},Qz=[Mz,Zz],fO=[uO,dO],pO=aR(...fO),hO=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Hr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function eG(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Vr(r)}},i=tG(e);return rr(s,[i])}function tG(e){return[{type:"user_report"},e]}const td=1024,nG="Breadcrumbs",rG=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:nG,setup(n){t.console&&Dv(oG(n)),t.dom&&aO(iG(n,t.dom)),t.xhr&&ab(aG(n)),t.fetch&&Kv(cG(n)),t.history&&ih(lG(n)),t.sentry&&n.on("beforeSendEvent",sG(n))}}}),gO=rG;function sG(e){return function(n){pe()===e&&br({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Mi(n)},{event:n})}}function iG(e,t){return function(r){if(pe()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>td&&(ce&&U.warn(`\`dom.maxStringLength\` cannot exceed ${td}, but a value of ${a} was configured. Sentry will use ${td} instead.`),a=td),typeof o=="string"&&(o=[o]);try{const l=r.event,u=uG(l)?l.target:l;s=Kt(u,{keyAttrs:o,maxStringLength:a}),i=mv(u)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),br(c,{event:r.event,name:r.name,global:r.global})}}function oG(e){return function(n){if(pe()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Hf(n.level),message:Rf(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Rf(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;br(r,{input:n.args,level:n.level})}}function aG(e){return function(n){if(pe()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[hs];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:l}=i,u={method:o,url:a,status_code:c},d={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:u,type:"http",level:bA(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),br(f,d)}}function cG(e){return function(n){if(pe()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},o={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,i),br(o,i)}else{const i=n.response,o={...n.fetchData,status_code:i?.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:s}
528,c={category:"fetch",data:o,type:"http",level:bA(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),br(c,a)}}}function lG(e){return function(n){if(pe()!==e)return;let r=n.from,s=n.to;const i=Zs(ve.location.href);let o=r?Zs(r):void 0;const a=Zs(s);o?.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),br({category:"navigation",data:{from:r,to:s}})}}function uG(e){return!!e&&!!e.target}const dG="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(","),fG="BrowserApiErrors",pG=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:fG,setupOnce(){t.setTimeout&&nn(ve,"setTimeout",JE),t.setInterval&&nn(ve,"setInterval",JE),t.requestAnimationFrame&&nn(ve,"requestAnimationFrame",hG),t.XMLHttpRequest&&"XMLHttpRequest"in ve&&nn(XMLHttpRequest.prototype,"send",gG);const n=t.eventTarget;n&&(Array.isArray(n)?n:dG).forEach(s=>mG(s,t))}}}),mO=pG;function JE(e){return function(...t){const n=t[0];return t[0]=ka(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Ts(e)}`}}),e.apply(this,t)}}function hG(e){return function(t){return e.apply(this,[ka(t,{mechanism:{data:{handler:Ts(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function gG(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&nn(n,s,function(i){const o={mechanism:{data:{handler:Ts(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=_v(i);return a&&(o.mechanism.data.handler=Ts(a)),ka(i,o)})}),e.apply(this,t)}}function mG(e,t){const r=ve[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(nn(r,"addEventListener",function(s){return function(i,o,a){try{_G(o)&&(o.handleEvent=ka(o.handleEvent,{mechanism:{data:{handler:Ts(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&yG(this,i,o),s.apply(this,[i,ka(o,{mechanism:{data:{handler:Ts(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),nn(r,"removeEventListener",function(s){return function(i,o,a){try{const c=o.__sentry_wrapped__;c&&s.call(this,i,c,a)}catch{}return s.call(this,i,o,a)}}))}function _G(e){return typeof e.handleEvent=="function"}function yG(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const _O=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof ve.document>"u"){ce&&U.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}M_({ignoreDuration:!0}),wd();const n=It();let r=n.getUser();n.addScopeListener(s=>{const i=s.getUser();(r?.id!==i?.id||r?.ip_address!==i?.ip_address)&&(wd(),r=i)}),t==="route"&&ih(({from:s,to:i})=>{s!==i&&(M_({ignoreDuration:!0}),wd())})}}},vG="CultureContext",bG=(()=>({name:vG,preprocessEvent(e){const t=ZE();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=ZE();t&&Xn(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})),yO=bG;function ZE(){try{const e=ve.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const wG="GlobalHandlers",SG=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:wG,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(EG(n),QE("onerror")),t.onunhandledrejection&&(TG(n),QE("onunhandledrejection"))}}}),vO=SG;function EG(e){lR(t=>{const{stackParser:n,attachStacktrace:r}=SO();if(pe()!==e||BA())return;const{msg:s,url:i,line:o,column:a,error:c}=t,l=kG(Zp(n,c||s,void 0,r,!1),i,o,a);l.level="error",ja(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function TG(e){uR(t=>{const{stackParser:n,attachStacktrace:r}=SO();if(pe()!==e||BA())return;const s=bO(t),i=ks(s)?wO(s):Zp(n,s,void 0,r,!0);i.level="error",ja(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function bO(e){if(ks(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 wO(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function kG(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[];
528return c.length===0&&c.push({colno:r,lineno:n,filename:xG(t)??lo(),function:Hr,in_app:!0}),e}function QE(e){ce&&U.log(`Global Handler attached: ${e}`)}function SO(){return pe()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function xG(e){if(!(!pr(e)||e.length===0))return e.startsWith("data:")?`<${Qs(e,!1)}>`:e}const EO=()=>({name:"HttpContext",preprocessEvent(e){if(!ve.navigator&&!ve.location&&!ve.document)return;const t=zf(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!ve.navigator&&!ve.location&&!ve.document)return;const t=zf();Xn(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}}),IG="cause",RG=5,CG="LinkedErrors",AG=((e={})=>{const t=e.limit||RG,n=e.key||IG;return{name:CG,preprocessEvent(r,s,i){const o=i.getOptions();Uj(Jp,o.stackParser,n,t,r,s)}}}),TO=AG,OG="SpotlightBrowser",PG=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],MG=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:OG,setup:()=>{ce&&U.log("Using Sidecar URL",t)},beforeSetup(n){const r=n.getOptions();r.ignoreSpans=[...r.ignoreSpans||[],...PG]},afterAllSetup:n=>{LG(n,t)}}});function LG(e,t){const n=ob("fetch");let r=0;e.on("beforeEnvelope",s=>{if(r>3){U.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Lf(s),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(i=>{i.status>=200&&i.status<400&&(r=0)},i=>{r++,U.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",i)})})}const NG=MG;function DG(){return $G()?(ce&&Wr(()=>{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 $G(){if(typeof ve.window>"u")return!1;const e=ve;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=lo();return!(ve===ve.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function ub(e){return[UC(),$C(),zB(),mO(),gO(),vO(),TO(),WC(),EO(),yO(),_O()]}function FG(e={}){const t=!e.skipBrowserExtensionCheck&&DG();let n=e.defaultIntegrations==null?ub():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:Q6(e.stackParser||pO),integrations:NH({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||lb};return pj(GA,r)}function UG(){}function HG(e){e()}function jG(e={}){const t=ve.document,n=t?.head||t?.body;if(!n){ce&&U.error("[showReportDialog] Global document not defined");return}const r=Pe(),i=pe()?.getDsn();if(!i){ce&&U.error("[showReportDialog] DSN not configured");return}const o={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||dC()},a=ve.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=MH(i,o);const{onLoad:c,onClose:l}=o;if(c&&(a.onload=c),l){const u=d=>{if(d.data==="__sentry_reportdialog_closed__")try{l()}finally{ve.removeEventListener("message",u)}};ve.addEventListener("message",u)}n.appendChild(a)}const BG=Te,qG="ReportingObserver",e1=new WeakMap,WG=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(e1.has(pe()))for(const s of r)nr(i=>{i.setExtra("url",s.url);const o=`ReportingObserver [${s.type}]`;let a="No details available";if(s.body){const c={};for(const l in s.body)c[l]=s.body[l];if(i.setExtra("body",c),s.type==="crash"){const l=s.body;a=[l.crashId||"",l.reason||""].join(" ").trim()||a}else a=s.body.message||a}lC(`${o}: ${a}`)})}return{name:qG,setupOnce(){if(!yq())return;new BG.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){e1.set(r,!0)}}}),VG=WG,zG="HttpClient",GG=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:zG,setup(n){nK(n,t),rK(n,t)}}}),KG=GG;function YG(e,t,n,r,s){if(xO(e,n.status,n.url)){const i=sK(t,r);let o,a,c,l;RO()&&([o,c]=t1("Cookie",i),[a,l]=t1("Set-Cookie",n));const u=IO({url:i.url,method:i.method,status:n.status,requestHeaders:o,responseHeaders:a,requestCookies:c,responseCookies:l,error:s,type:"fetch"});ja(u)}}function t1(e,t){const n=ZG(t.headers);let r;try{const s=n[e]||n[e.toLowerCase()]||void 0;s&&(r=kO(s))}catch{}return[n,r]}
528function XG(e,t,n,r,s){if(xO(e,t.status,t.responseURL)){let i,o,a;if(RO()){try{const l=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;l&&(o=kO(l))}catch{}try{a=QG(t)}catch{}i=r}const c=IO({url:t.responseURL,method:n,status:t.status,requestHeaders:i,responseHeaders:a,responseCookies:o,error:s,type:"xhr"});ja(c)}}function JG(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function kO(e){return e.split("; ").reduce((t,n)=>{const[r,s]=n.split("=");return r&&s&&(t[r]=s),t},{})}function ZG(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function QG(e){const t=e.getAllResponseHeaders();return t?t.split(`\r 529`).reduce((n,r)=>{const[s,i]=r.split(": ");return s&&i&&(n[s]=i),n},{}):{}}function eK(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function tK(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function nK(e,t){wA()&&Kv(n=>{if(pe()!==e)return;const{response:r,args:s,error:i,virtualError:o}=n,[a,c]=s;r&&YG(t,a,r,c,i||o)},!1)}function rK(e,t){"XMLHttpRequest"in Te&&ab(n=>{if(pe()!==e)return;const{error:r,virtualError:s}=n,i=n.xhr,o=i[hs];if(!o)return;const{method:a,request_headers:c}=o;try{XG(t,i,a,c,r||s)}catch(l){ce&&U.warn("Error while extracting response event form XHR response",l)}})}function xO(e,t,n){return tK(e.failedRequestStatusCodes,t)&&eK(e.failedRequestTargets,n)&&!LC(n,pe())}function IO(e){const t=pe(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,s=`HTTP Client Error with status code: ${e.status}`,i={message:s,exception:{values:[{type:"Error",value:s,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:JG(e.responseHeaders)}}};return Is(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function sK(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function RO(){const e=pe();return e?!!e.getOptions().sendDefaultPii:!1}const Fg=Te,iK=7,oK="ContextLines",aK=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:iK;return{name:oK,processEvent(n){return lK(n,t)}}}),cK=aK;function lK(e,t){const n=Fg.document,r=Fg.location&&Nf(Fg.location.href);if(!n||!r)return e;const s=e.exception?.values;if(!s?.length)return e;const i=n.documentElement.innerHTML;if(!i)return e;const o=["<!DOCTYPE html>","<html>",...i.split(` 530`),"</html>"];return s.forEach(a=>{const c=a.stacktrace;
530c?.frames&&(c.frames=c.frames.map(l=>uK(l,o,r,t)))}),e}function uK(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||p8(t,e,r),e}const dK="GraphQLClient",fK=(e=>({name:dK,setup(t){pK(t,e),hK(t,e)}}));function pK(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const i=De(n).data||{};if(!(i[Qe]==="http.client"))return;const c=i[q8]||i["http.url"]||i.url,l=i[B8]||i["http.method"];if(!pr(c)||!pr(l))return;const{endpoints:u}=t,d=Kn(c,u),f=AO(r);if(d&&f){const p=OO(f);if(p){const h=CO(p);n.updateName(`${l} ${c} (${h})`),oh(p)&&n.setAttribute("graphql.document",p.query),ah(p)&&(n.setAttribute("graphql.persisted_query.hash.sha256",p.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",p.extensions.persistedQuery.version))}}})}function hK(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:s,type:i,data:o}=n;if(i==="http"&&(s==="fetch"||s==="xhr")){const u=o?.url,{endpoints:d}=t,f=Kn(u,d),p=AO(r);if(f&&o&&p){const h=OO(p);if(!o.graphql&&h){const g=CO(h);o["graphql.operation"]=g,oh(h)&&(o["graphql.document"]=h.query),ah(h)&&(o["graphql.persisted_query.hash.sha256"]=h.extensions.persistedQuery.sha256Hash,o["graphql.persisted_query.version"]=h.extensions.persistedQuery.version)}}}})}function CO(e){if(ah(e))return`persisted ${e.operationName}`;if(oh(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:s}=gK(t);return r?`${s} ${r}`:`${s}`}return"unknown"}function AO(e){const t="xhr"in e;let n;if(t){const r=e.xhr[hs];n=r&&Zf(r.body)[0]}else{const r=cb(e.input);n=Zf(r)[0]}return n}function gK(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const s=e.match(n);return s?{operationType:s[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function Md(e){return typeof e=="object"&&e!==null}function oh(e){return Md(e)&&typeof e.query=="string"}function ah(e){return Md(e)&&typeof e.operationName=="string"&&Md(e.extensions)&&Md(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function OO(e){try{const t=JSON.parse(e);return oh(t)||ah(t)?t:void 0}catch{return}}const mK=fK,_K=(e={})=>{const t=["script"];function n(r,s,i=0){if(!r)return;const o="shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(const a of o){if(!(a instanceof HTMLElement))continue;const c=mv(a,1)||void 0,l=a.tagName.toLowerCase();if(t.includes(l))continue;const u=e.onElement?.({element:a,componentName:c,tagName:l,depth:i})||{};if(u==="skip")continue;if(u==="children"){n(a,s,i+1);continue}const{x:d,y:f,width:p,height:h}=a.getBoundingClientRect(),g={identifier:a.id||void 0,type:c||l,visible:!0,alpha:1,height:h,width:p,x:d,y:f,...u},S=[];g.children=S,n(a,g.children,i+1),s.push(g)}}return{name:"ViewHierarchy",processEvent:(r,s)=>{if(r.type!==void 0||e.shouldAttach?.(r,s)===!1)return r;const i={rendering_system:"DOM",positioning:"absolute",windows:[]};n(e.rootElement?.()||ve.document.body,i.windows);const o={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(i)};return s.attachments=s.attachments||[],s.attachments.push(o),r}}},pt=Te,db="sentryReplaySession",yK="replay_event",fb="Unable to send Replay",vK=3e5,bK=9e5,wK=5e3,SK=5500,EK=6e4,TK=5e3,kK=3,n1=15e4,nd=5e3,xK=3e3,IK=300,pb=2e7,RK=4999,CK=5e4,r1=36e5;var AK=Object.defineProperty,OK=(e,t,n)=>t in e?AK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s1=(e,t,n)=>OK(e,typeof t!="symbol"?t+"":t,n),$t=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))($t||{});function PK(e){return e.nodeType===e.ELEMENT_NODE}function Zc(e){return e?.host?.shadowRoot===e}function Qc(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function MK(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function LK(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Qf(e){try{const t=e.rules||e.cssRules;return t?MK(Array.from(t,PO).join("")):null}catch{return null}}function NK(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],i=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}
530${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function PO(e){let t;if($K(e))try{t=Qf(e.styleSheet)||LK(e)}catch{}else if(FK(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=NK(e)),r&&(n=DK(n)),r||s)return n}return t||e.cssText}function DK(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function $K(e){return"styleSheet"in e}function FK(e){return"selectorText"in e}let MO=class{constructor(){s1(this,"idNodeMap",new Map),s1(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function UK(){return new MO}function ch({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Al({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Ia(e){return e.toLowerCase()}function Q_(e){return e.toUpperCase()}const i1="__rrweb_original__";function HK(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const i=t.getImageData,o=i1 in i?i[i1]:i;if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function hb(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ia(t):null}function ep(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function LO(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const o1={};function NO(e){const t=o1[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return o1[e]=r.bind(window)}function ey(...e){return NO("setTimeout")(...e)}function DO(...e){return NO("clearTimeout")(...e)}function $O(e){try{return e.contentDocument}catch{}}function jK(e){try{return e.contentWindow}catch{}}let BK=1;const qK=new RegExp("[^a-z0-9-_:]"),Ol=-2;function gb(){return BK++}function WK(e){if(e instanceof HTMLFormElement)return"form";const t=Ia(e.tagName);return qK.test(t)?"div":t}function VK(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let xo,a1;const zK=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,GK=/^(?:[a-z+]+:)?\/\//i,KK=/^www\..*/i,YK=/^(data:)([^,]*),(.*)/i;function XK(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const i=s.indexOf(":");if(i===-1){r.push(s);continue}const o=s.slice(0,i).trim();t.has(o)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function tp(e,t){return(e||"").replace(zK,(n,r,s,i,o,a)=>{const c=s||o||a,l=r||i||"";if(!c)return n;if(GK.test(c)||KK.test(c))return`url(${l}${c}${l})`;if(YK.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${VK(t)+c}${l})`;const u=t.split("/"),d=c.split("/");u.pop();for(const f of d)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${l}${u.join("/")}${l})`})}const JK=/^[^ \t\n\r\u000c]+/,ZK=/^[, \t\n\r\u000c]+/;function QK(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const a=i.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const s=[];for(;r(ZK),!(n>=t.length);){let i=r(JK);if(i.slice(-1)===",")i=Bo(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=Bo(e,i);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return s.join(", ")}const c1=new WeakMap;function Bo(e,t){return!t||t.trim()===""?t:lh(e,t)}function eY(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function lh(e,t){let n=c1.get(e);if(n||(n=e.createElement("a"),c1.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function FO(e,t,n,r,s,i,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return Bo(e,r);if(n==="xlink:href"&&r[0]!=="#")return Bo(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return Bo(e,r);if(n==="srcset")return QK(e,r);if(n==="style"){let a=tp(r,lh(e));return o&&o.size>0&&(a=XK(a,o)),a}else if(t==="object"&&n==="data")return Bo(e,r);return typeof i=="function"?i(n,r,s):r}function UO(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function tY(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function nY(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function $i(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:$i(e.parentNode,t,n,r+1)}function qo(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(nY(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Ra(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const l=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let a=-1,c=-1;if(i){if(c=$i(o,qo(r,s)),c<0)return!0;a=$i(o,qo(t,n),c>=0?c:1/0)}else{if(a=$i(o,qo(t,n)),a<0)return!1;c=$i(o,qo(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function rY(e,t,n){const r=jK(e);if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=ey(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{DO(a),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return ey(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function sY(e,t,n){let r=!1,s;try{s=e.sheet}catch{s=null}if(s)return;const i=ey(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{DO(i),r=!0,t()})}function iY(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:g,maskInputFn:S,dataURLOptions:y={}
530,inlineImages:v,recordCanvas:m,keepIframeSrcFn:_,newlyAddedElement:w=!1,ignoreCSSAttributes:x}=t,T=oY(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:$t.Document,childNodes:[],compatMode:e.compatMode}:{type:$t.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:$t.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return cY(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:S,dataURLOptions:y,inlineImages:v,recordCanvas:m,keepIframeSrcFn:_,newlyAddedElement:w,rootId:T,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:x});case e.TEXT_NODE:return aY(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:g,maskInputOptions:h,maskInputFn:S,rootId:T});case e.CDATA_SECTION_NODE:return{type:$t.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:$t.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function oY(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function aY(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,h=d==="SCRIPT"?!0:void 0,g=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=Qf(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=tp(f,lh(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const S=Ra(e,r,i,s,o,n);if(!p&&!h&&!g&&f&&S&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),g&&f&&(c.textarea||S)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const y=ch({type:null,tagName:d,maskInputOptions:c});f=Al({isMasked:Ra(e,r,i,s,o,y),element:e,value:f,maskInputFn:l})}return{type:$t.Text,textContent:f||"",isStyle:p,rootId:u}}function cY(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:g,maskTextClass:S,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:m,ignoreCSSAttributes:_}=t,w=tY(e,r,s,i),x=WK(e);let T={};const R=e.attributes.length;for(let C=0;C<R;C++){const M=e.attributes[C];M.name&&!UO(x,M.name,M.value)&&(T[M.name]=FO(n,x,Ia(M.name),M.value,e,c,_))}if(x==="link"&&o){const C=Array.from(n.styleSheets).find(b=>b.href===e.href);let M=null;C&&(M=Qf(C)),M&&(T.rel=null,T.href=null,T.crossorigin=null,T._cssText=tp(M,C.href))}if(x==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const C=Qf(e.sheet);C&&(T._cssText=tp(C,lh(n)))}if(x==="input"||x==="textarea"||x==="select"||x==="option"){const C=e,M=hb(C),b=ep(C,Q_(x),M),E=C.checked;if(M!=="submit"&&M!=="button"&&b){const I=Ra(C,S,v,y,m,ch({type:M,tagName:Q_(x),maskInputOptions:a}));T.value=Al({isMasked:I,element:C,value:b,maskInputFn:l})}E&&(T.checked=E)}if(x==="option"&&(e.selected&&!a.select?T.selected=!0:delete T.selected),x==="canvas"&&f){if(e.__context==="2d")HK(e)||(T.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const C=e.toDataURL(u.type,u.quality),M=n.createElement("canvas");M.width=e.width,M.height=e.height;const b=M.toDataURL(u.type,u.quality);C!==b&&(T.rr_dataURL=C)}}if(x==="img"&&d){xo||(xo=n.createElement("canvas"),a1=xo.getContext("2d"));const C=e,M=C.currentSrc||C.getAttribute("src")||"<unknown-src>",b=C.crossOrigin,E=()=>{C.removeEventListener("load",E);try{xo.width=C.naturalWidth,xo.height=C.naturalHeight,a1.drawImage(C,0,0),T.rr_dataURL=xo.toDataURL(u.type,u.quality)}catch(I){if(C.crossOrigin!=="anonymous"){C.crossOrigin="anonymous",C.complete&&C.naturalWidth!==0?E():C.addEventListener("load",E);return}else console.warn(`Cannot inline img src=${M}! Error: ${I}`)}C.crossOrigin==="anonymous"&&(b?T.crossOrigin=b:C.removeAttribute("crossorigin"))};
530C.complete&&C.naturalWidth!==0?E():C.addEventListener("load",E)}if((x==="audio"||x==="video")&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),w){const{width:C,height:M}=e.getBoundingClientRect();T={class:T.class,rr_width:`${C}px`,rr_height:`${M}px`}}x==="iframe"&&!p(T.src)&&(!w&&!$O(e)&&(T.rr_src=T.src),delete T.src);let k;try{customElements.get(x)&&(k=!0)}catch{}return{type:$t.Element,tagName:x,attributes:T,childNodes:[],isSVG:eY(e)||void 0,needBlock:w,rootId:g,isCustom:k}}function dt(e){return e==null?"":e.toLowerCase()}function lY(e,t){if(t.comment&&e.type===$t.Comment)return!0;if(e.type===$t.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&LO(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(dt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||dt(e.attributes.name)==="application-name"||dt(e.attributes.rel)==="icon"||dt(e.attributes.rel)==="apple-touch-icon"||dt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&dt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(dt(e.attributes.property).match(/^(og|twitter|fb):/)||dt(e.attributes.name).match(/^(og|twitter):/)||dt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(dt(e.attributes.name)==="robots"||dt(e.attributes.name)==="googlebot"||dt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(dt(e.attributes.name)==="author"||dt(e.attributes.name)==="generator"||dt(e.attributes.name)==="framework"||dt(e.attributes.name)==="publisher"||dt(e.attributes.name)==="progid"||dt(e.attributes.property).match(/^article:/)||dt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(dt(e.attributes.name)==="google-site-verification"||dt(e.attributes.name)==="yandex-verification"||dt(e.attributes.name)==="csrf-token"||dt(e.attributes.name)==="p:domain_verify"||dt(e.attributes.name)==="verify-v1"||dt(e.attributes.name)==="verification"||dt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Wo(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:g,maskTextFn:S,maskInputFn:y,slimDOMOptions:v,dataURLOptions:m={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:R=5e3,onBlockedImageLoad:k,onStylesheetLoad:C,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:b=()=>!1,newlyAddedElement:E=!1,ignoreCSSAttributes:I}=t;let{preserveWhiteSpace:A=!0}=t;const $=iY(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:y,dataURLOptions:m,inlineImages:_,recordCanvas:w,keepIframeSrcFn:b,newlyAddedElement:E,ignoreCSSAttributes:I});if(!$)return console.warn(e,"not serialized"),null;let N;r.hasNode(e)?N=r.getId(e):lY($,v)||!A&&$.type===$t.Text&&!$.isStyle&&!$.textContent.trim().length?N=Ol:N=gb();const O=Object.assign($,{id:N});if(r.add(e,O),N===Ol)return null;x&&x(e);let D=!f;if(O.type===$t.Element){D=D&&!O.needBlock;const j=e.shadowRoot;j&&Qc(j)&&(O.isShadowHost=!0)}if((O.type===$t.Document||O.type===$t.Element)&&D){v.headWhitespace&&O.type===$t.Element&&O.tagName==="head"&&(A=!1);const j={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:y,slimDOMOptions:v,dataURLOptions:m,inlineImages:_,recordCanvas:w,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:R,onBlockedImageLoad:k,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:b,ignoreCSSAttributes:I},q=e.childNodes?Array.from(e.childNodes):[];for(const oe of q){const ue=Wo(oe,j);ue&&O.childNodes.push(ue)}if(PK(e)&&e.shadowRoot)for(const oe of Array.from(e.shadowRoot.childNodes)){const ue=Wo(oe,j);ue&&(Qc(e.shadowRoot)&&(ue.isShadow=!0),O.childNodes.push(ue))}}if(e.parentNode&&Zc(e.parentNode)&&Qc(e.parentNode)&&(O.isShadow=!0),O.type===$t.Element&&O.tagName==="iframe"&&!O.needBlock&&rY(e,()=>{const j=$O(e);if(j&&T){const q=Wo(j,{doc:j,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:y,slimDOMOptions:v,dataURLOptions:m,inlineImages:_,recordCanvas:w,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:R,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:b,ignoreCSSAttributes:I});q&&T(e,q)}},R),O.type===$t.Element&&O.tagName==="img"&&!e.complete&&O.needBlock){const j=e,q=()=>{if(j.isConnected&&!j.complete&&k)try{const oe=j.getBoundingClientRect();oe.width>0&&oe.height>0&&k(j,O,oe)}catch{}j.removeEventListener("load",q)};j.isConnected&&j.addEventListener("load",q)}return O.type===$t.Element&&O.tagName==="link"&&typeof O.attributes.rel=="string"&&(O.attributes.rel==="stylesheet"||O.attributes.rel==="preload"&&typeof O.attributes.href=="string"&&LO(O.attributes.href)==="css")&&sY(e,()=>{if(C){const j=Wo(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:y,slimDOMOptions:v,dataURLOptions:m,inlineImages:_,recordCanvas:w,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:R,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:b,ignoreCSSAttributes:I});j&&C(e,j)}},M),O.type===$t.Element&&delete O.needBlock,O}function uY(e,t){const{mirror:n=new MO,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inl
530ineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:S,maskInputFn:y,slimDOM:v=!1,dataURLOptions:m,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:x,iframeLoadTimeout:T,onBlockedImageLoad:R,onStylesheetLoad:k,stylesheetLoadTimeout:C,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:b=new Set([])}=t||{};return Wo(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:y,slimDOMOptions:v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:m,inlineImages:f,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:x,iframeLoadTimeout:T,onBlockedImageLoad:R,onStylesheetLoad:k,stylesheetLoadTimeout:C,keepIframeSrcFn:M,newlyAddedElement:!1,ignoreCSSAttributes:b})}function mb(e){try{return e.contentDocument}catch{}}function Pl(e){try{return e.contentWindow}catch{}}function vn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Lo=`Please stop import mirror directly. Instead of that,\r 531now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 532or you can use record.mirror to access the mirror instance during recording.`;let l1={map:{},getId(){return console.error(Lo),-1},getNode(){return console.error(Lo),null},removeNodeFromMap(){console.error(Lo)},has(){return console.error(Lo),!1},reset(){console.error(Lo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(l1=new Proxy(l1,{get(e,t,n){return t==="map"&&console.error(Lo),Reflect.get(e,t,n)}}));function Ml(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(_Y(r),r=null),s=o,e.apply(c,i)):!r&&n.trailing!==!1&&(r=uh(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function HO(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){uh(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>HO(e,t,i||{},!0)}function _b(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let np=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(np=()=>new Date().getTime());function jO(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function BO(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function qO(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function WO(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function An(e,t,n,r,s){if(!e)return!1;const i=WO(e);if(!i)return!1;const o=qo(t,n);if(!s){const l=r&&i.matches(r);return o(i)&&!l}const a=$i(i,o);let c=-1;return a<0?!1:(r&&(c=$i(i,qo(null,r))),a>-1&&c<0?!0:a<c)}function dY(e,t){return t.getId(e)!==-1}function Ug(e,t){return t.getId(e)===Ol}function VO(e,t){if(Zc(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?VO(e.parentNode,t):!0:!0}function ty(e){return!!e.changedTouches}function fY(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function zO(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function GO(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}
532function ny(e){return!!e?.shadowRoot}class pY{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function KO(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function hY(e){let t=e,n;for(;n=KO(t);)t=n;return t}function gY(e){const t=e.ownerDocument;if(!t)return!1;const n=hY(e);return t.contains(n)}function YO(e){const t=e.ownerDocument;return t?t.contains(e)||gY(e):!1}const u1={};function yb(e){const t=u1[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return u1[e]=r.bind(window)}function mY(...e){return yb("requestAnimationFrame")(...e)}function uh(...e){return yb("setTimeout")(...e)}function _Y(...e){return yb("clearTimeout")(...e)}var Ue=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ue||{}),Ne=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ne||{}),hn=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(hn||{}),ns=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ns||{}),No=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(No||{});class yY{constructor(t){this.doc=t,this.unattachedDoc=null}parse(t){return this.parseWithConstructableStylesheet(t)||this.parseWithDetachedElement(t)}parseWithConstructableStylesheet(t){if(typeof CSSStyleSheet>"u"||typeof CSSStyleSheet.prototype.replaceSync!="function")return null;try{const n=new CSSStyleSheet;n.replaceSync(`x { ${t} }`);const r=n.cssRules[0];return!r||r.type!==CSSRule.STYLE_RULE?null:r.style}catch{return null}}parseWithDetachedElement(t){const n=this.getUnattachedDoc().createElement("span");return n.setAttribute("style",t),n.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}function d1(e){return"__ln"in e}class vY{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&d1(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&d1(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const f1=(e,t)=>`${e}@${t}`;class bY{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>
532{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new vY,s=c=>{let l=c,u=Ol;for(;u===Ol;)l=l&&l.nextSibling,u=l&&this.mirror.getId(l);return u},i=c=>{if(!c.parentNode||!YO(c))return;const l=Zc(c.parentNode)?this.mirror.getId(KO(c)):this.mirror.getId(c.parentNode),u=s(c);if(l===-1||u===-1)return r.addNode(c);const d=Wo(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{zO(f,this.mirror)&&!An(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),GO(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),ny(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{if(An(f,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(f,p);const h=Pl(f);h&&this.canvasManager.addWindow(h),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)},onBlockedImageLoad:(f,p,{width:h,height:g})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:p.id,attributes:{style:{width:`${h}px`,height:`${g}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:l,nextId:u,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());
532for(const c of this.movedSet)p1(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!h1(this.droppedSet,c)&&!p1(this.removes,c,this.mirror)||h1(this.movedSet,c)?i(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const l=this.mirror.getId(o.value.parentNode),u=s(o.value);l!==-1&&u!==-1&&(c=o)}if(!c){let l=r.tail;for(;l;){const u=l;if(l=l.previous,u){const d=this.mirror.getId(u.value.parentNode);if(s(u.value)===-1)continue;if(d!==-1){c=u;break}else{const p=u.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),i(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const u=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);u.length<l.style.length&&(u+d).split("var(").length===l.style.split("var(").length&&(l.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:l}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!Ug(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!An(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ra(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,WO(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const o=hb(n),a=n.tagName;s=ep(n,a,o);const c=ch({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),l=Ra(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=Al({isMasked:l,element:n,value:s,maskInputFn:this.maskInputFn})}if(An(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!mb(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!UO(n.tagName,r)&&(i.attributes[r]=FO(this.doc,Ia(n.tagName),Ia(r),s,n,this.maskAttributeFn),r==="style")){const o=t.oldValue?this.styleDeclarationParser.parse(t.oldValue):null;for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);c!==(o?.getPropertyValue(a)||"")||l!==(o?.getPropertyPriority(a)||"")?l===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,l]:i._unchangedStyles[a]=[c,l]}if(o)for(const a of Array.from(o))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(An(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=Zc(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);An(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ug(n,this.mirror)||!dY(n,this.mirror)||(this.addedSet.has(n)?(ry(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||VO(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[f1(r,s)]?ry(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:Zc(t.target)&&Qc(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Ug(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[f1(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);An(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEac
532h(r=>this.genAdds(r)),ny(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]}),this.styleDeclarationParser=new yY(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ry(e,t){e.delete(t),t.childNodes?.forEach(n=>ry(e,n))}function p1(e,t,n){return e.length===0?!1:wY(e,t,n)}function wY(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function h1(e,t){return e.size===0?!1:XO(e,t)}function XO(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:XO(e,n):!1}let el;function SY(e){el=e}function EY(){el=void 0}const ze=e=>el?((...n)=>{try{return e(...n)}catch(r){if(el&&el(r)===!0)return()=>{};throw r}}):e,Vo=[];function _u(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function JO(e,t){const n=new bY;Vo.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const i=new r(ze(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function TY({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=Ml(ze(d=>{const f=Date.now()-a;e(o.map(p=>(p.timeOffset-=f,p)),d),o=[],a=null}),i),l=ze(Ml(ze(d=>{const f=_u(d),{clientX:p,clientY:h}=ty(d)?d.changedTouches[0]:d;a||(a=np()),o.push({x:p,y:h,id:r.getId(f),timeOffset:np()-a}),c(typeof DragEvent<"u"&&d instanceof DragEvent?Ne.Drag:d instanceof MouseEvent?Ne.MouseMove:Ne.TouchMove)}),s,{trailing:!1})),u=[vn("mousemove",l,n),vn("touchmove",l,n),vn("drag",l,n)];return ze(()=>{u.forEach(d=>d())})}function kY({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let l=null;const u=d=>f=>{const p=_u(f);if(An(p,r,s,i,!0))return;let h=null,g=d;if("pointerType"in f){switch(f.pointerType){case"mouse":h=ns.Mouse;break;case"touch":h=ns.Touch;break;case"pen":h=ns.Pen;break}h===ns.Touch?hn[d]===hn.MouseDown?g="TouchStart":hn[d]===hn.MouseUp&&(g="TouchEnd"):ns.Pen}else ty(f)&&(h=ns.Touch);h!==null?(l=h,(g.startsWith("Touch")&&h===ns.Touch||g.startsWith("Mouse")&&h===ns.Mouse)&&(h=null)):hn[d]===hn.Click&&(h=l,l=null);const S=ty(f)?f.changedTouches[0]:f;if(!S)return;const y=n.getId(p),{clientX:v,clientY:m}=S;ze(e)({type:hn[g],id:y,x:v,y:m,...h!==null&&{pointerType:h}})};return Object.keys(hn).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEach(d=>{let f=Ia(d);const p=u(d);if(window.PointerEvent)switch(hn[d]){case hn.MouseDown:case hn.MouseUp:f=f.replace("mouse","pointer");break;case hn.TouchStart:case hn.TouchEnd:return}c.push(vn(f,p,t))}),ze(()=>{c.forEach(d=>d())})}function ZO({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const a=ze(Ml(ze(c=>{const l=_u(c);if(!l||An(l,r,s,i,!0))return;const u=n.getId(l);if(l===t&&t.defaultView){const d=jO(t.defaultView);e({id:u,x:d.left,y:d.top})}else e({id:u,x:l.scrollLeft,y:l.scrollTop})}),o.scroll||100));return vn("scroll",a,t)}function xY({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=ze(Ml(ze(()=>{const i=BO(),o=qO();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return vn("resize",s,t)}const IY=["INPUT","TEXTAREA","SELECT"],g1=new WeakMap;function RY({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:g}){function S(T){let R=_u(T);const k=T.isTrusted,C=R&&Q_(R.tagName);
532if(C==="OPTION"&&(R=R.parentElement),!R||!C||IY.indexOf(C)<0||An(R,r,s,i,!0))return;const M=R;if(M.classList.contains(o)||a&&M.matches(a))return;const b=hb(R);let E=ep(M,C,b),I=!1;const A=ch({maskInputOptions:c,tagName:C,type:b}),$=Ra(R,f,h,p,g,A);(b==="radio"||b==="checkbox")&&(I=R.checked),E=Al({isMasked:$,element:R,value:E,maskInputFn:l}),y(R,d?{text:E,isChecked:I,userTriggered:k}:{text:E,isChecked:I});const N=R.name;b==="radio"&&N&&I&&t.querySelectorAll(`input[type="radio"][name="${N}"]`).forEach(O=>{if(O!==R){const D=Al({isMasked:$,element:O,value:ep(O,C,b),maskInputFn:l});y(O,d?{text:D,isChecked:!I,userTriggered:!1}:{text:D,isChecked:!I})}})}function y(T,R){const k=g1.get(T);if(!k||k.text!==R.text||k.isChecked!==R.isChecked){g1.set(T,R);const C=n.getId(T);ze(e)({...R,id:C})}}const m=(u.input==="last"?["change"]:["input","change"]).map(T=>vn(T,ze(S),t)),_=t.defaultView;if(!_)return()=>{m.forEach(T=>T())};const w=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),x=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&m.push(...x.map(T=>HO(T[0],T[1],{set(){ze(S)({target:this,isTrusted:!1})}},!1,_))),ze(()=>{m.forEach(T=>T())})}function rp(e){const t=[];function n(r,s){if(rd("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||rd("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||rd("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||rd("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(e,t)}function zs(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function CY({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ze((u,d,f)=>{const[p,h]=f,{id:g,styleId:S}=zs(d,t,n.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,adds:[{rule:p,index:h}]}),u.apply(d,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:ze((u,d,f)=>{const[p]=f,{id:h,styleId:g}=zs(d,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,removes:[{index:p}]}),u.apply(d,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:ze((u,d,f)=>{const[p]=f,{id:h,styleId:g}=zs(d,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replace:p}),u.apply(d,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ze((u,d,f)=>{const[p]=f,{id:h,styleId:g}=zs(d,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replaceSync:p}),u.apply(d,f)})}));const c={};sd("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(sd("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),sd("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),sd("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([u,d])=>{l[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(l[u].insertRule,{apply:ze((f,p,h)=>{const[g,S]=h,{id:y,styleId:v}=zs(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||v&&v!==-1)&&e({id:y,styleId:v,adds:[{rule:g,index:[...rp(p),S||0]}]}),f.apply(p,h)})}),d.prototype.deleteRule=new Proxy(l[u].deleteRule,{apply:ze((f,p,h)=>{const[g]=h,{id:S,styleId:y}=zs(p.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||y&&y!==-1)&&e({id:S,styleId:y,removes:[{index:[...rp(p),g]}]}),f.apply(p,h)})})}),ze(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEac
532h(([u,d])=>{d.prototype.insertRule=l[u].insertRule,d.prototype.deleteRule=l[u].deleteRule})})}function QO({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(o){const a=i.set?.call(this,o);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return a}}),ze(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function AY({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:ze((a,c,l)=>{const[u,d,f]=l;if(n.has(u))return i.apply(c,[u,d,f]);const{id:p,styleId:h}=zs(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:u,value:d,priority:f},index:rp(c.parentRule)}),a.apply(c,l)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:ze((a,c,l)=>{const[u]=l;if(n.has(u))return o.apply(c,[u]);const{id:d,styleId:f}=zs(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:u},index:rp(c.parentRule)}),a.apply(c,l)})}),ze(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function OY({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=ze(l=>Ml(ze(u=>{const d=_u(u);if(!d||An(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:g}=d;e({type:l,id:s.getId(d),currentTime:f,volume:p,muted:h,playbackRate:g})}),i.media||500)),c=[vn("play",a(No.Play),o),vn("pause",a(No.Pause),o),vn("seeked",a(No.Seeked),o),vn("volumechange",a(No.VolumeChange),o),vn("ratechange",a(No.RateChange),o)];return ze(()=>{c.forEach(l=>l())})}function PY({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(c,l,u){const d=new i(c,l,u);return s.set(d,{family:c,buffer:typeof l!="string",descriptors:u,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),d};const o=_b(t.fonts,"add",function(a){return function(c){return uh(ze(()=>{const l=s.get(c);l&&(e(l),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(o),ze(()=>{r.forEach(a=>a())})}function MY(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=ze(()=>{const l=t.getSelection();if(!l||a&&l?.isCollapsed)return;a=l.isCollapsed||!1;const u=[],d=l.rangeCount||0;for(let f=0;f<d;f++){const p=l.getRangeAt(f),{startContainer:h,startOffset:g,endContainer:S,endOffset:y}=p;An(h,r,s,i,!0)||An(S,r,s,i,!0)||u.push({start:n.getId(h),startOffset:g,end:n.getId(S),endOffset:y})}o({ranges:u})});return c(),vn("selectionchange",c)}function LY({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:_b(n.customElements,"define",function(s){return function(i,o,a){try{t({define:{name:i}})}catch{}return s.apply(this,[i,o,a])}})}function NY(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=JO(e,e.doc));const s=TY(e),i=kY(e),o=ZO(e),a=xY(e,{win:n}),c=RY(e),l=OY(e);let u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=CY(e,{win:n}),d=QO(e,e.doc),f=AY(e,{win:n}),e.collectFonts&&(p=PY(e)));const h=MY(e),g=LY(e),S=[];for(const y of e.plugins)S.push(y.observer(y.callback,n,y.options));return ze(()=>{Vo.forEach(y=>y.reset()),r?.disconnect(),s(),i(),o(),a(),c(),l(),u(),d(),f(),p(),h(),g(),S.forEach(y=>y())})}function rd(e){return typeof window[e]<"u"}function sd(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class sy{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const i=r||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}
532class DY{constructor(){this.crossOriginIframeMirror=new sy(gb),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class $Y{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new sy(gb),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new sy(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0);const n=Pl(t);n&&this.crossOriginIframeMap.set(n,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&Pl(t)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=mb(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Ue.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Ue.IncrementalSnapshot,data:{source:Ne.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ue.Meta:case Ue.Load:case Ue.DomContentLoaded:return!1;case Ue.Plugin:return n;case Ue.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Ue.IncrementalSnapshot:switch(n.data.source){case Ne.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ne.Drag:case Ne.TouchMove:case Ne.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case Ne.ViewportResize:return!1;case Ne.MediaInteraction:case Ne.MouseInteraction:case Ne.Scroll:case Ne.CanvasMutation:case Ne.Input:return this.replaceIds(n.data,t,["id"]),n;case Ne.StyleSheetRule:case Ne.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Ne.Font:return n;case Ne.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case Ne.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==$t.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class FY{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class UY{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Qc(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=JO({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(ZO({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),uh(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(QO({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=mb(t),r=Pl(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(_b(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&YO(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}
532reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var m1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",HY=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var id=0;id<m1.length;id++)HY[m1.charCodeAt(id)]=id;class _1{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class jY{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new pY,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const i of t){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),s.push({styleId:o,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:PO(a),index:c}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class BY{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,mY(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let Rt,sp;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const sr=UK();function gr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:g,maskInputOptions:S,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:m,maskTextFn:_,maxCanvasSize:w=null,packFn:x,sampling:T={},dataURLOptions:R={},mousemoveWait:k,recordDOM:C=!0,recordCanvas:M=!1,recordCrossOriginIframes:b=!1,recordAfter:E=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:A=!1,inlineImages:$=!1,plugins:N,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:j,onMutation:q,getCanvasManager:oe}=e;SY(j);const ue=b?window.parent===window:!0;let Se=!1;if(!ue)try{window.parent.document&&(Se=!1)}catch{Se=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!Se)return()=>{};k!==void 0&&T.mousemove===void 0&&(T.mousemove=k),sr.reset();const ke=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:S!==void 0?S:{},Fe=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};fY();let V,Q=0;const X=z=>{for(const ne of N||[])ne.eventProcessor&&(z=ne.eventProcessor(z));return x&&!Se&&(z=x(z)),z};Rt=(z,ne)=>{const W=z;if(W.timestamp=np(),Vo[0]?.isFrozen()&&W.type!==Ue.FullSnapshot&&!(W.type===Ue.IncrementalSnapshot&&W.data.source===Ne.Mutation)&&Vo.forEach(re=>re.unfreeze()),ue)t?.(X(W),ne);else if(Se){const re={type:"rrweb",event:X(W),origin:window.location.origin,isCheckout:ne};window.parent.postMessage(re,"*")}if(W.type===Ue.FullSnapshot)V=W,Q=0;else if(W.type===Ue.IncrementalSnapshot){if(W.data.source===Ne.Mutation&&W.data.isAttachIframe)return;Q++;const re=r&&Q>=r,te=n&&V&&W.timestamp-V.timestamp>n;(re||te)&&se(!0)}};const F=z=>{Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.Mutation,...z}})},Z=z=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.Scroll,...z}}),J=z=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.CanvasMutation,...z}}),P=z=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.AdoptedStyleSheet,...z}}),L=new jY({mutationCb:F,adoptedStyleSheetCb:P}),H=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new DY:new $Y({mirror:sr,mutationCb:F,stylesheetManager:L,recordCrossOriginIframes:b,wrappedEmit:Rt});for(const z of N||[])z.getMirror&&z.getMirror({nodeMirror:sr,crossOriginIframeMirror:H.crossOriginIframeMirror,crossOriginIframeStyleMirror:H.crossOriginIframeStyleMirror});const Y=new BY,K=WY(oe,{mirror:sr,win:window,mutationCb:z=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.CanvasMutation,...z}}),recordCanvas:M,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:w,sampling:T.canvas,dataURLOptions:R,errorHandler:j}),ee=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new FY:new UY({mutationCb:F,scrollCb:Z,b
532ypassOptions:{onMutation:q,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:ke,dataURLOptions:R,maskAttributeFn:v,maskTextFn:_,maskInputFn:m,recordCanvas:M,inlineImages:$,sampling:T,slimDOMOptions:Fe,iframeManager:H,stylesheetManager:L,canvasManager:K,keepIframeSrcFn:O,processedNodeManager:Y,ignoreCSSAttributes:D},mirror:sr}),se=(z=!1)=>{if(!C)return;Rt({type:Ue.Meta,data:{href:window.location.href,width:qO(),height:BO()}},z),L.reset(),ee.init(),Vo.forEach(W=>W.lock());const ne=uY(document,{mirror:sr,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:ke,maskAttributeFn:v,maskInputFn:m,maskTextFn:_,slimDOM:Fe,dataURLOptions:R,recordCanvas:M,inlineImages:$,onSerialize:W=>{zO(W,sr)&&H.addIframe(W),GO(W,sr)&&L.trackLinkElement(W),ny(W)&&ee.addShadowRoot(W.shadowRoot,document)},onIframeLoad:(W,re)=>{H.attachIframe(W,re);const te=Pl(W);te&&K.addWindow(te),ee.observeAttachShadow(W)},onStylesheetLoad:(W,re)=>{L.attachLinkElement(W,re)},onBlockedImageLoad:(W,re,{width:te,height:he})=>{F({adds:[],removes:[],texts:[],attributes:[{id:re.id,attributes:{style:{width:`${te}px`,height:`${he}px`}}}]})},keepIframeSrcFn:O,ignoreCSSAttributes:D});if(!ne)return console.warn("Failed to snapshot the document");Rt({type:Ue.FullSnapshot,data:{node:ne,initialOffset:jO(window)}}),Vo.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&L.adoptStyleSheets(document.adoptedStyleSheets,sr.getId(document))};sp=se;try{const z=[],ne=re=>ze(NY)({onMutation:q,mutationCb:F,mousemoveCb:(te,he)=>Rt({type:Ue.IncrementalSnapshot,data:{source:he,positions:te}}),mouseInteractionCb:te=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.MouseInteraction,...te}}),scrollCb:Z,viewportResizeCb:te=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.ViewportResize,...te}}),inputCb:te=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.Input,...te}}),mediaInteractionCb:te=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.MediaInteraction,...te}}),styleSheetRuleCb:te=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.StyleSheetRule,...te}}),styleDeclarationCb:te=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.StyleDeclaration,...te}}),canvasMutationCb:J,fontCb:te=>Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.Font,...te}}),selectionCb:te=>{Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.Selection,...te}})},customElementCb:te=>{Rt({type:Ue.IncrementalSnapshot,data:{source:Ne.CustomElement,...te}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:ke,inlineStylesheet:h,sampling:T,recordDOM:C,recordCanvas:M,inlineImages:$,userTriggeredOnInput:I,collectFonts:A,doc:re,maskAttributeFn:v,maskInputFn:m,maskTextFn:_,keepIframeSrcFn:O,blockSelector:i,unblockSelector:o,slimDOMOptions:Fe,dataURLOptions:R,mirror:sr,iframeManager:H,stylesheetManager:L,shadowDomManager:ee,processedNodeManager:Y,canvasManager:K,ignoreCSSAttributes:D,plugins:N?.filter(te=>te.observer)?.map(te=>({observer:te.observer,options:te.options,callback:he=>Rt({type:Ue.Plugin,data:{plugin:te.name,payload:he}})}))||[]},{});H.addLoadListener(re=>{try{z.push(ne(re.contentDocument))}catch(te){console.warn(te)}});const W=()=>{se(),z.push(ne(document))};return document.readyState==="interactive"||document.readyState==="complete"?W():(z.push(vn("DOMContentLoaded",()=>{Rt({type:Ue.DomContentLoaded,data:{}}),E==="DOMContentLoaded"&&W()})),z.push(vn("load",()=>{Rt({type:Ue.Load,data:{}}),E==="load"&&W()},window))),()=>{z.forEach(re=>re()),Y.destroy(),sp=void 0,EY()}}catch(z){console.warn(z)}}function qY(e){if(!sp)throw new Error("please take full snapshot after start recording");sp(e)}gr.mirror=sr;gr.takeFullSnapshot=qY;function WY(e,t){try{return e?e(t):new _1}catch{return console.warn("Unable to initialize CanvasManager"),new _1}}var y1;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(y1||(y1={}));const VY=3,zY=5;function vb(e){return e>9999999999?e:e*1e3}function Hg(e){return e>9999999999?e/1e3:e}function yu(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>
532(e.throttledAddEvent({type:Ue.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Qt(t,10,1e3)}}),t.category==="console")))}const GY="button,a";function eP(e){return e.closest(GY)||e}function tP(e){const t=nP(e);return!t||!(t instanceof Element)?t:eP(t)}function nP(e){return KY(e)?e.target:e}function KY(e){return typeof e=="object"&&!!e&&"target"in e}let Gs;function YY(e){return Gs||(Gs=[],XY()),Gs.push(e),()=>{const t=Gs?Gs.indexOf(e):-1;t>-1&&Gs.splice(t,1)}}function XY(){nn(pt,"open",function(e){return function(...t){if(Gs)try{Gs.forEach(n=>n())}catch{}return e.apply(pt,t)}})}const JY=new Set([Ne.Mutation,Ne.StyleSheetRule,Ne.StyleDeclaration,Ne.AdoptedStyleSheet,Ne.CanvasMutation,Ne.Selection,Ne.MediaInteraction]);function ZY(e,t,n){e.handleClick(t,n)}class QY{constructor(t,n,r=yu){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=YY(()=>{this._lastMutation=v1()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(tX(n,this._ignoreSelector)||!nX(t))return;const r={timestamp:Hg(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Hg(t)}registerScroll(t=Date.now()){this._lastScroll=Hg(t)}registerClick(t){const n=eP(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=v1();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:a}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c<this._timeout*1e3?"mutation":"timeout",u={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:pt.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:l,clickCount:o||1}};this._addBreadcrumbEvent(n,u);return}if(o>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:pt.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=mu(()=>this._checkClicks(),1e3)}}const eX=["A","BUTTON","INPUT"];function tX(e,t){return!!(!eX.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function nX(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function v1(){return Date.now()/1e3}function rX(e,t){try{if(!sX(t))return;const{source:n}=t.data;if(JY.has(n)&&e.registerMutation(t.timestamp),n===Ne.Scroll&&e.registerScroll(t.timestamp),iX(t)){const{type:r,id:s}=t.data,i=gr.mirror.getNode(s);i instanceof HTMLElement&&r===hn.Click&&e.registerClick(i)}}catch{}}function sX(e){return e.type===VY}function iX(e){return e.data.source===Ne.MouseInteraction}function Lr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var dh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(dh||{});const oX=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function aX(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(oX.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const cX=e=>t=>{if(!e.isEnabled())return;const n=lX(t);if(!n)return;
532const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&ZY(e.clickDetector,n,tP(t.event)),yu(e,n)};function rP(e,t){const n=gr.mirror.getId(e),r=n&&gr.mirror.getNode(n),s=r&&gr.mirror.getMeta(r),i=s&&dX(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===dh.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:aX(i.attributes)}}:{}}}function lX(e){const{target:t,message:n}=uX(e);return Lr({category:`ui.${e.name}`,...rP(t,n)})}function uX(e){const t=e.name==="click";let n,r=null;try{r=t?tP(e.event):nP(e.event),n=Kt(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function dX(e){return e.type===dh.Element}function fX(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=pX(t);n&&yu(e,n)}function pX(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||hX(o)||!i)return null;const a=t||r||s,c=i.length===1;if(!a&&c)return null;const l=Kt(o,{maxStringLength:200})||"<unknown>",u=rP(o,l);return Lr({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function hX(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const gX={resource:bX,paint:yX,navigation:vX};function jg(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function mX(e){return e.map(_X).filter(Boolean)}function _X(e){const t=gX[e.entryType];return t?t(e):null}function Ca(e){return((Ht()||pt.performance.timeOrigin)+e)/1e3}function yX(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=Ca(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function vX(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:g}=e;return s===0?null:{type:`${t}.${g}`,start:Ca(p),end:Ca(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:f}}}function bX(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Ca(i),end:Ca(s),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function wX(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return bb(e,"largest-contentful-paint",n)}function SX(e){return e.sources!==void 0}function EX(e){const t=[],n=[];for(const r of e.entries)if(SX(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=gr.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return bb(e,"cumulative-layout-shift",n,t)}function TX(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return bb(e,"interaction-to-next-paint",n)}function bb(e,t,n,r){const s=e.value,i=e.rating,o=Ca(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(a=>gr.mirror.getId(a)):void 0,attributions:r}}}function kX(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(oo(s,n))}),r.push(th(jg(wX,e)),eh(jg(EX,e)),rb(jg(TX,e))),()=>{r.forEach(s=>s())}}const Ie=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,xX='
vendor: 10,329 bytes, line 532
532var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
532';function IX(){const e=new Blob([xX]);return URL.createObjectURL(e)}const b1=["log","warn","error"],Ld="[Replay] ";function Bg(e,t="info"){br({category:"console",data:{logger:"replay"},level:t,message:`${Ld}${e}`},{level:t})}function RX(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return Ie?(b1.forEach(r=>{n[r]=(...s)=>{U[r](Ld,...s),t&&Bg(s.join(""),Hf(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),U.error(Ld,r),e?et(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Bg(r,"error")},n.infoTick=(...r)=>{U.log(Ld,...r),t&&setTimeout(()=>Bg(r[0]),0)}):b1.forEach(r=>{n[r]=()=>{}}),n}const Re=RX();class wb extends Error{constructor(){super(`Event buffer exceeded maximum size of ${pb}.`)}}class sP{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>pb)throw new wb;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(const{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:vb(t)}}class Sb{constructor(t){Sb.prototype.__init.call(this),this._worker=t,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():(Ie&&Re.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{Ie&&Re.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){Ie&&Re.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(t=>t.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{this._pending.set(r,{method:t,resolve:s,reject:i});try{this._worker.postMessage({id:r,method:t,arg:n})}catch(o){this._pending.delete(r),i(o)}})}__init(){this._onMessage=({data:t})=>{const n=t;if(typeof n.id!="number")return;const r=this._pending.get(n.id);if(!(!r||r.method!==n.method)){if(this._pending.delete(n.id),!n.success){Ie&&Re.error("Error in compression worker: ",n.response),r.reject(new Error("Error in compression worker"));return}r.resolve(n.response)}}}_getAndIncrementId(){return this._id++}}class CX{constructor(t){this._worker=new Sb(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=vb(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>pb?Promise.reject(new wb):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Ie&&Re.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class AX{constructor(t){this._fallback=new sP,this._compression=new CX(t),this._used=this._fallback,this._ensureWorkerIsLoadedProm
532ise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){Ie&&Re.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const i of t)s.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){Ie&&Re.exception(i,"Failed to add events when switching buffers.")}}}function OX({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=PX(t);if(n)return n}return Ie&&Re.log("Using simple buffer"),new sP}function PX(e){try{const t=e||MX();if(!t)return;Ie&&Re.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new AX(n)}catch(t){Ie&&Re.exception(t,"Failed to create compression worker")}}function MX(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?IX():""}function Eb(){try{return"sessionStorage"in pt&&!!pt.sessionStorage}catch{return!1}}function LX(e){NX(),e.session=void 0}function NX(){if(Eb())try{pt.sessionStorage.removeItem(db)}catch{}}function iP(e){return e===void 0?!1:Math.random()<e}function fh(e){if(Eb())try{pt.sessionStorage.setItem(db,JSON.stringify(e))}catch{}}function oP(e){const t=Date.now(),n=e.id||Vt(),r=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:a,dirty:c}}function DX(e,t){return iP(e)?"session":t?"buffer":!1}function w1({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=DX(e,t),i=oP({sampled:s,previousSessionId:r});return n&&fh(i),i}function $X(){if(!Eb())return null;try{const e=pt.sessionStorage.getItem(db);if(!e)return null;const t=JSON.parse(e);return Ie&&Re.infoTick("Loading existing session"),oP(t)}catch{return null}}function iy(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function FX(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return iy(e.started,t,r)||iy(e.lastActivity,n,r)}function ip(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!FX(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function qg({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&$X();return s?ip(s,{sessionIdleExpire:e,maxReplayDuration:t})?(Ie&&Re.infoTick("Session in sessionStorage is expired, creating new one..."),w1(r,{previousSessionId:s.id})):s:(Ie&&Re.infoTick("Creating new session"),w1(r,{previousSessionId:n}))}function UX(e){return e.type===Ue.Custom}function Tb(e,t,n){return cP(e,t)?(aP(e,t,n),!0):!1}function HX(e,t,n){return cP(e,t)?aP(e,t,n):Promise.resolve(null)}async function aP(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),o=jX(t,i.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(i){const o=i&&i instanceof wb,a=o?"eventBufferOverflow":"eventBufferError",c=pe();if(c){const l=o?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(l,"replay")}if(o&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:a})}}
532function cP(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=vb(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Ie&&Re.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function jX(e,t){try{if(typeof t=="function"&&UX(e))return t(e)}catch(n){return Ie&&Re.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function kb(e){return!e.type}function oy(e){return e.type==="transaction"}function BX(e){return e.type==="replay_event"}function S1(e){return e.type==="feedback"}function qX(e){return(t,n)=>{if(!e.isEnabled()||!kb(t)&&!oy(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(oy(t)){WX(e,t);return}VX(e,t)}}}function WX(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function VX(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||mu(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function zX(e){return t=>{!e.isEnabled()||!kb(t)||GX(e,t)}}function GX(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Lr({category:"replay.hydrate-error",data:{url:lo()}});yu(e,r)}}function KX(e){const t=pe();t&&t.on("beforeAddBreadcrumb",n=>YX(e,n))}function YX(e,t){if(!e.isEnabled()||!lP(t))return;const n=XX(t);n&&yu(e,n)}function XX(e){return!lP(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?JX(e):Lr(e)}function JX(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Lr(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>nd?(n=!0,`${s.slice(0,nd)}â¦`):s;if(typeof s=="object")try{const i=Qt(s,7);return JSON.stringify(i).length>nd?(n=!0,`${JSON.stringify(i,null,2).slice(0,nd)}â¦`):i}catch{}return s});return Lr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function lP(e){return!!e.category}function ZX(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function op(){const e=Pe().getPropagationContext().dsc;e&&delete e.replay_id;const t=St();if(t){const n=Fn(t);delete n.replay_id}}function QX(e){const t=Pe().getPropagationContext().dsc;t&&(t.replay_id=e);const n=St();if(n){const r=Fn(n);r.replay_id=e}}function eJ(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Ue.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function tJ(e,t){return e.recordingMode!=="buffer"||t.message===fb||!t.exception||t.type?!1:iP(e.getOptions().errorSampleRate)}function nJ(e){return Object.assign((t,n)=>{if(e.session&&ip(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&op(),!e.isEnabled()||e.isPaused())return t;if(BX(t))return delete t.breadcrumbs,t;if(!kb(t)&&!oy(t)&&!S1(t))return t;if(!e.checkAndHandleExpiredSession())return op(),t;if(S1(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),eJ(e,t),t;if(ZX(t,n)&&!e.getOptions()._experiments.captureExceptions)return Ie&&Re.log("Ignoring error from rrweb internals",t),null;const s=tJ(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const o=e.session;o.dirty=!0,e.getOptions().stickySession&&fh(o)}return t},{id:"Replay"})}function ph(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const a=e.throttledAddEvent({type:Ue.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});
532return typeof a=="string"?Promise.resolve(null):a})}function rJ(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function sJ(e){return t=>{if(!e.isEnabled())return;const n=rJ(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ph(e,[n]),!1)))}}function iJ(e,t){return Ie&&e.getOptions()._experiments.traceInternals?!1:LC(t,pe())}function uP(e,t){e.isEnabled()&&t!==null&&(iJ(e,t.name)||e.addUpdate(()=>(ph(e,[t]),!0)))}function hh(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=cO(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function dP(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ap(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function fP(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:a,response:c}}}function Ll(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ni(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=oJ(n);return r.body=s,i?.length&&(r._meta={warnings:i}),r}function ay(e,t){return Object.entries(e).reduce((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n},{})}function oJ(e){if(!e||typeof e!="string")return{body:e};const t=e.length>n1,n=aJ(e);if(t){const r=e.slice(0,n1);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function aJ(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function cp(e,t){const n=cJ(e);return Kn(n,t)}function cJ(e,t=pt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(pt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function lJ(e,t,n){try{const r=await dJ(e,t,n),s=fP("resource.fetch",r);uP(n.replay,s)}catch(r){Ie&&Re.exception(r,"Failed to capture fetch breadcrumb")}}function uJ(e,t){const{input:n,response:r}=t,s=n?cb(n):void 0,i=hh(s),o=r?dP(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}async function dJ(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=cp(o,n.networkDetailAllowUrls)&&!cp(o,n.networkDetailDenyUrls),f=d?fJ(n,t.input,l):Ll(l),p=await pJ(d,n,t.response,u);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:f,response:p}}function fJ({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?mJ(n,t):{};if(!e)return ni(s,r,void 0);const i=cb(n),[o,a]=Zf(i,Re),c=ni(s,r,o);return a?ap(c,a):c}async function pJ(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return Ll(s);const i=r?pP(r.headers,n):{};if(!r||!t&&s!==void 0)return ni(i,s,void 0);const[o,a]=await gJ(r),c=hJ(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return a?ap(c,a):c}function hJ(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e?.length&&n===void 0?hh(e):n;return r?t?ni(s,i,e):ni(s,i,void 0):Ll(i)}catch(i){return Ie&&Re.exception(i,"Failed to serialize response body"),ni(s,n,void 0)}}async function gJ(e){const t=_J(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await yJ(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Ie&&Re.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Ie&&Re.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function pP(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
532function mJ(e,t){return e.length===1&&typeof e[0]!="string"?E1(e[0],t):e.length===2?E1(e[1],t):{}}function E1(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?pP(n,t):Array.isArray(n)?{}:ay(n,t):{}}function _J(e){try{return e.clone()}catch(t){Ie&&Re.exception(t,"Failed to clone response body")}}function yJ(e){return new Promise((t,n)=>{const r=mu(()=>n(new Error("Timeout while trying to read response body")),500);vJ(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function vJ(e){return await e.text()}async function bJ(e,t,n){try{const r=SJ(e,t,n),s=fP("resource.xhr",r);uP(n.replay,s)}catch(r){Ie&&Re.exception(r,"Failed to capture xhr breadcrumb")}}function wJ(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=hh(r),i=n.getResponseHeader("content-length")?dP(n.getResponseHeader("content-length")):kJ(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function SJ(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!a||!cp(c,n.networkDetailAllowUrls)||cp(c,n.networkDetailDenyUrls)){const x=Ll(d),T=Ll(f);return{startTimestamp:s,endTimestamp:i,url:c,method:l,statusCode:u,request:x,response:T}}const p=a[hs],h=p?ay(p.request_headers,n.networkRequestHeaders):{},g=ay(lO(a),n.networkResponseHeaders),[S,y]=n.networkCaptureBodies?Zf(o,Re):[void 0],[v,m]=n.networkCaptureBodies?EJ(a):[void 0],_=ni(h,d,S),w=ni(g,f,v);return{startTimestamp:s,endTimestamp:i,url:c,method:l,statusCode:u,request:y?ap(_,y):_,response:m?ap(w,m):w}}function EJ(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return TJ(e.response,e.responseType)}catch(n){t.push(n)}return Ie&&Re.warn("Failed to get xhr response body",...t),[void 0]}function TJ(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Ie&&Re.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ie&&Re.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function kJ(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return hh(n)}catch{return}}function xJ(e){const t=pe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(c,l)=>IJ(a,c,l))}catch{}}function IJ(e,t,n){if(t.data)try{RJ(t)&&AJ(n)&&(wJ(t,n),bJ(t,n,e)),CJ(t)&&OJ(n)&&(uJ(t,n),lJ(t,n,e))}catch(r){Ie&&Re.exception(r,"Error when enriching network breadcrumb")}}function RJ(e){return e.category==="xhr"}function CJ(e){return e.category==="fetch"}function AJ(e){return e?.xhr}function OJ(e){return e?.input!==void 0}function PJ(e){const t=pe();aO(cX(e)),ih(sJ(e)),KX(e),xJ(e);const n=nJ(e);pC(n),t&&(t.on("beforeSendEvent",zX(e)),t.on("afterSendEvent",qX(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{const i=e.getSessionId();s?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function MJ(e){try{return Promise.all(ph(e,[LJ(pt.performance.memory)]))}catch{return[]}}function LJ(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function NJ(e,t,n){return xj(e,t,{...n,setTimeoutImpl:mu})}const od=Te.navigator;function DJ(){return/iPhone|iPad|iPod/i.test(od?.userAgent??"")||/Macintosh/i.test(od?.userAgent??"")&&od?.maxTouchPoints&&od?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function $J(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Ie&&Re.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,FJ(n),e.clickDetector&&rX(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Tb(e,n,s))return!0;
532if(!s)return!1;const i=e.session;if(HJ(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(Ie&&Re.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&fh(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function FJ(e){const t=e.data;if(!(e.type!==Ue.IncrementalSnapshot||!t||typeof t!="object"||!("source"in t)||t.source!==Ne.Mutation||!("attributes"in t)||!Array.isArray(t.attributes)))for(const n of t.attributes){const r=gr.mirror.getNode(n.id),s=r&&gr.mirror.getMeta(r);if(s?.type===dh.Element)for(const[i,o]of Object.entries(n.attributes))o===null?delete s.attributes[i]:s.attributes[i]=o}}function UJ(e){const t=e.getOptions();return{type:Ue.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function HJ(e,t){!t||e.session?.segmentId!==0||Tb(e,UJ(e),!1)}function jJ(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function BJ(e,t,n,r){return rr(eC(e,eu(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function qJ({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} 533`;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function WJ({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:s};e.emit("preprocessEvent",r,i);const o=await cC(e.getOptions(),r,i,t,e,It());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:l,settings:u}=a?.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},o}async function VJ({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=qJ({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=pe(),f=Pe(),p=d?.getTransport(),h=d?.getDsn();if(!d||!p||!h||!i.sampled)return Promise.resolve({});const g={type:yK,replay_start_timestamp:u/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},S=await WJ({scope:f,client:d,replayId:t,event:g});if(!S)return d.recordDroppedEvent("event_processor","replay"),Ie&&Re.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete S.sdkProcessingMetadata;const y=BJ(S,o,h,d.getOptions().tunnel);let v;try{v=await p.send(y)}catch(_){const w=new Error(fb);try{w.cause=_}catch{}throw w}const m=TC({},v);if(EC(m,"replay"))throw new xb(m);if(typeof v.statusCode=="number"&&(v.statusCode<200||v.statusCode>=300))throw new hP(v.statusCode);return v}class hP extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class xb extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class T1 extends Error{constructor(){super("Session is too long, not sending replay")}}async function gP(e,t={count:0,interval:TK}){const{recordingData:n,onError:r}=e;if(n.length)try{return await VJ(e),!0}catch(s){if(s instanceof hP||s instanceof xb)throw s;if(Df("Replays",{_retryCount:t.count}),r&&r(s),t.count>=kK){const i=new Error(`${fb} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{mu(async()=>{try{await gP(e,t),i(!0)}catch(a){o(a)}},t.interval)})}}const mP="__THROTTLED",zJ="__SKIPPED";function GJ(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((l,u)=>{u<c&&r.delete(u)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),i()>=t){const u=o;return o=!0,u?zJ:mP}o=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...a)}}class KJ{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:vK,sessionIdleExpire:bK},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=NJ(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=GJ((o,a)=>HX(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(xK,r),timeout:r,scrollTimeout:IK,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new QY(this,i)),Ie){const o=t._experiments;Re.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{pt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
533dTasks()},this._handleWindowBlur=()=>{const o=Lr({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=Lr({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{fX(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){Ie&&Re.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){Ie&&Re.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Ie&&Re.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){Ie&&Re.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){Ie&&Re.log("Buffering is in progress, call `flush()` to save the replay");return}Ie&&Re.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=qg({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){Ie&&Re.log("Buffering is in progress, call `flush()` to save the replay");return}Ie&&Re.infoTick("Starting replay in buffer mode");const t=qg({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=gr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:EK}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:$J(this),...DJ(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";const r=n??"manual";pe()?.emit("replayEnd",{sessionId:this.session?.id,reason:r});try{Ie&&Re.log(`Stopping Replay triggered by ${r}`),op(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,LX(this)}catch(s){this.handleException(s)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Ie&&Re.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Ie&&Re.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Ie&&Re.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}
533checkAndHandleExpiredSession(){if(this._lastActivity&&iy(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${pt.location.pathname}${pt.location.hash}${pt.location.search}`,n=`${pt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===mP){const s=Lr({category:"replay.throttled"});this.addUpdate(()=>!Tb(this,{type:zY,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||St(),n=t&&xt(t),s=(n&&De(n).data||{})[Lt];if(!(!n||!s||!["route","custom"].includes(s)))return De(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=OX({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&pe()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode==="session"&&this.session&&QX(this.session.id)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=qg({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return ip(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(t.id))}_addListeners(){try{pt.document.addEventListener("visibilitychange",this._handleVisibilityChange),pt.addEventListener("blur",this._handleWindowBlur),pt.addEventListener("focus",this._handleWindowFocus),pt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(PJ(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=kX(this)}_removeListeners(){try{pt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),pt.removeEventListener("blur",this._handleWindowBlur),pt.removeEventListener("focus",this._handleWindowFocus),pt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;if(ip(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){op();return}t&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Ie&&Re.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Ue.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=mX(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(ph(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;
533const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Ie&&Re.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await MJ(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new T1;const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await gP({replayId:t,recordingData:i,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendError"});const r=pe();if(r){let s;n instanceof xb?s="ratelimit_backoff":n instanceof T1?s="invalid":s="send_error",r.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Ie&&Re.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){Ie&&Re.log(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&Ie&&Re.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(l){this.handleException(l)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&fh(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=jJ(a.target),l=n.join(",");return c?.matches(l)}))return!1;const r=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=s&&r>s;if(r>i||o){const a=Lr({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(a)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function mc(e,t){return[...e,...t].join(",")}function YJ({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=mc(e,[".sentry-mask","[data-sentry-mask]"]),a=mc(t,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:mc(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:mc(r,[]),ignoreSelector:mc(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function XJ({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){if(s.unmaskTextSelector&&e.matches(s.unmaskTextSelector))return i;const o=n.includes(t),a=r&&t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"");return o||a?i.replace(/[\S]/g,"*"):i}const k1='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',JJ=["content-length","content-type","accept"],ZJ=Symbol.for("sentry__originalRequestBody");let x1=!1,I1=!1;function QJ(){if(typeof Request>"u"||I1)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return r?.body!=null&&(s[ZJ]=r.body),s};t.prototype=e.prototype,Te.Request=t,I1=!0}catch{}}const eZ=(e=>new tZ(e));class tZ{constructor({flushMinDelay:t=wK,flushMaxDelay:n=SK,minReplayDuration:r=RK,maxReplayDuration:s=r1,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:S=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:m
533=[],networkResponseHeaders:_=[],mask:w=[],maskAttributes:x=["title","placeholder","aria-label"],unmask:T=[],block:R=[],unblock:k=[],ignore:C=[],maskFn:M,beforeAddRecordingEvent:b,beforeErrorSampling:E,onError:I,attachRawBodyFromRequest:A=!1}={}){this.name="Replay";const $=YJ({mask:w,unmask:T,block:R,unblock:k,ignore:C});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:M,maskInputFn:M,maskAttributeFn:(N,O,D)=>XJ({maskAttributes:x,maskAllText:l,privacyOptions:$,key:N,value:O,el:D}),...$,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:N=>{try{N.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,CK),maxReplayDuration:Math.min(s,r1),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:S,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:R1(m),networkResponseHeaders:R1(_),beforeAddRecordingEvent:b,beforeErrorSampling:E,onError:I,attachRawBodyFromRequest:A,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${k1}`:k1,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&si())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return x1}set _isInitialized(t){x1=t}afterAllSetup(t){!si()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&QJ(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session",reason:"manual"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=nZ(this._initialOptions,t);this._replay=new KJ({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function nZ(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=Qi(n.replaysSessionSampleRate),i=Qi(n.replaysOnErrorSampleRate);return s==null&&i==null&&Wr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function R1(e){return[...JJ,...e.map(t=>t.toLowerCase())]}function rZ(){return pe()?.getIntegrationByName("Replay")}var sZ=Object.defineProperty,iZ=(e,t,n)=>t in e?sZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C1=(e,t,n)=>iZ(e,typeof t!="symbol"?t+"":t,n);class oZ{constructor(){C1(this,"idNodeMap",new Map),C1(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function aZ(){return new oZ}function cZ(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function cy(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:cy(e.parentNode,t,n,r+1)}function A1(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(cZ(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Do=`Please stop import mirror directly. Instead of that,\r
534now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 535or you can use record.mirror to access the mirror instance during recording.`;let O1={map:{},getId(){return console.error(Do),-1},getNode(){return console.error(Do),null},removeNodeFromMap(){console.error(Do)},has(){return console.error(Do),!1},reset(){console.error(Do)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(O1=new Proxy(O1,{get(e,t,n){return t==="map"&&console.error(Do),Reflect.get(e,t,n)}}));function Ib(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){yP(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>Ib(e,t,i||{},!0)}function Rb(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function lZ(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function gh(e,t,n,r,s){if(!e)return!1;const i=lZ(e);if(!i)return!1;const o=A1(t,n),a=cy(i,o);let c=-1;return a<0?!1:(r&&(c=cy(i,A1(null,r))),a>-1&&c<0?!0:a<c)}const P1={};function _P(e){const t=P1[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return P1[e]=r.bind(window)}function ki(...e){return _P("requestAnimationFrame")(...e)}function yP(...e){return _P("setTimeout")(...e)}var Aa=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Aa||{});let Nd;function uZ(e){Nd=e}const Wg=e=>Nd?((...n)=>{try{return e(...n)}catch(r){if(Nd&&Nd(r)===!0)return()=>{};throw r}}):e;var zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dZ=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ad=0;ad<zo.length;ad++)dZ[zo.charCodeAt(ad)]=ad;var fZ=function(e){var t=new Uint8Array(e),n,r=t.length,s="";for(n=0;n<r;n+=3)s+=zo[t[n]>>2],s+=zo[(t[n]&3)<<4|t[n+1]>>4],s+=zo[(t[n+1]&15)<<2|t[n+2]>>6],s+=zo[t[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const M1=new Map;function pZ(e,t){let n=M1.get(e);return n||(n=new Map,M1.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const vP=(e,t,n)=>{if(!e||!(wP(e,t)||typeof e=="object"))return;const r=e.constructor.name,s=pZ(n,r);let i=s.indexOf(e);return i===-1&&(i=s.length,s.push(e)),i};function Dd(e,t,n){if(e instanceof Array)return e.map(r=>Dd(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,s=fZ(e);return{rr_type:r,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Dd(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:s}=e;return{rr_type:r,src:s}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",s=e.toDataURL();return{rr_type:r,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Dd(e.data,t,n),e.width,e.height]};if(wP(e,t)||typeof e=="object"){const r=e.constructor.name,s=vP(e,t,n);return{rr_type:r,index:s}}}}return e}const bP=(e,t,n)=>e.map(r=>Dd(r,t,n)),wP=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function hZ(e,t,n,r,s){const i=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=Rb(t.CanvasRenderingContext2D.prototype,a,function(l){return function(...u){return gh(this.canvas,n,r,s,!0)||yP(()=>{const d=bP(u,t,this);e(this.canvas,{type:Aa["2D"],property:a,args:d})}
535,0),l.apply(this,u)}});i.push(c)}catch{const c=Ib(t.CanvasRenderingContext2D.prototype,a,{set(l){e(this.canvas,{type:Aa["2D"],property:a,args:[l],setter:!0})}});i.push(c)}return()=>{i.forEach(a=>a())}}function gZ(e){return e==="experimental-webgl"?"webgl":e}function L1(e,t,n,r,s){const i=[];try{const o=Rb(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...l){if(!gh(this,t,n,r,!0)){const u=gZ(c);if("__context"in this||(this.__context=u),s&&["webgl","webgl2"].includes(u))if(l[0]&&typeof l[0]=="object"){const d=l[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...l])}});i.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(o=>o())}}function N1(e,t,n,r,s,i,o,a){const c=[],l=Object.getOwnPropertyNames(e);for(const u of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{if(typeof e[u]!="function")continue;const d=Rb(e,u,function(f){return function(...p){const h=f.apply(this,p);if(vP(h,a,this),"tagName"in this.canvas&&!gh(this.canvas,r,s,i,!0)){const g=bP(p,a,this),S={type:t,property:u,args:g};n(this.canvas,S)}return h}});c.push(d)}catch{const d=Ib(e,u,{set(f){n(this.canvas,{type:t,property:u,args:[f],setter:!0})}});c.push(d)}return c}function mZ(e,t,n,r,s,i){const o=[];return o.push(...N1(t.WebGLRenderingContext.prototype,Aa.WebGL,e,n,r,s,i,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...N1(t.WebGL2RenderingContext.prototype,Aa.WebGL2,e,n,r,s,i,t)),()=>{o.forEach(a=>a())}}const _Z='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function yZ(){const e=new Blob([_Z]);return URL.createObjectURL(e)}class vZ{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:s,recordCanvas:i,errorHandler:o}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,o&&uZ(o),(i&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(s),!n&&Wg(()=>{i&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
535h(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:s,unblockSelector:i,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Wg(()=>{if(o&&n==="all"&&this.initCanvasMutationObserver(t,r,s,i),o&&typeof n=="number"){const c=L1(t,r,s,i,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}ki(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(yZ());return t.onmessage=n=>{const r=n.data,{id:s}=r;if(this.snapshotInProgressMap.set(s,!1),!("base64"in r))return;const{base64:i,type:o,width:a,height:c}=r;this.mutationCb({id:s,type:Aa["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:i}],type:o}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=ki(n)};t=ki(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,s){const i=L1(t,n,r,s,!1),o=hZ(this.processMutation.bind(this),t,n,r,s),a=mZ(this.processMutation.bind(this),t,n,r,s,this.mirror);this.restoreHandlers.push(()=>{i(),o(),a()})}getCanvasElements(t,n,r){const s=[],i=o=>{o.querySelectorAll("canvas").forEach(a=>{gh(a,t,n,r)||s.push(a)})};for(const o of this.windows){const a=o.deref();let c;try{c=a&&a.document}catch{}c&&i(c)}for(const o of this.shadowDoms){const a=o.deref();a&&i(a)}return s}takeSnapshot(t,n,r){const{sampling:s,blockClass:i,blockSelector:o,unblockSelector:a,dataURLOptions:c,maxCanvasSize:l}=this.options,d=1e3/(s==="all"?2:s||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<d?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(i,o,a)).forEach(h=>{const g=this.mirror.getId(h);if(!(!this.mirror.hasNode(h)||!h.width||!h.height||this.snapshotInProgressMap.get(g))){if(this.snapshotInProgressMap.set(g,!0),!n&&["webgl","webgl2"].includes(h.__context)){const S=h.getContext(h.__context);S?.getContextAttributes()?.preserveDrawingBuffer===!1&&S.clear(S.COLOR_BUFFER_BIT)}createImageBitmap(h).then(S=>{this.worker?.postMessage({id:g,bitmap:S,width:h.width,height:h.height,dataURLOptions:c,maxCanvasSize:l},[S])}).catch(S=>{Wg(()=>{throw this.snapshotInProgressMap.delete(g),S})()})}}),!0)}startPendingCanvasMutationFlusher(){ki(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,ki(t)};ki(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),ki(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const s=r.map(o=>{const{type:a,...c}=o;return c}),{type:i}=r[0];this.mutationCb({id:n,type:i,commands:s}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}aZ();var D1;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(D1||(D1={}));const $1={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},bZ="ReplayCanvas",cd=1280,wZ=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,cd):cd,n?Math.min(n,cd):cd]};let s,i;const o=new Promise(a=>i=a);return{name:bZ,getOptions(){const{quality:a,enableManualSnapshot:c,maxCanvasSize:l}=r;return{enableManualSnapshot:c,recordCanvas:!0,getCanvasManager:u=>{const d=new vZ({...u,enableManualSnapshot:c,maxCanvasSize:l,errorHandler:f=>{try{typeof f=="object"&&(f.__rrweb__=!0)}catch{}}});return s=d,i(d),d},...$1[a]||$1.medium}},async snapshot(a,c){(s||await o).snapshot(a,c)}}}),SZ=wZ;function EZ(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function SP(e){try{return new URL(e,ve.location.origin).href}catch{return}}function TZ(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.
535initiatorType==="xmlhttprequest")}function EP(e){try{return new Headers(e)}catch{return}}const F1=new WeakMap,Vg=new Map,Cb={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function TP(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:l}={...Cb,...t},u=typeof i=="function"?i:h=>!0,d=h=>xZ(h,a),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(g=>{if(g.op==="http.client"){const S=Vg.get(g.span_id);S&&(g.timestamp=S/1e3,Vg.delete(g.span_id))}}),h)),s&&vq(h=>{if(h.response){const g=F1.get(h.response);g&&h.endTimestamp&&Vg.set(g,h.endTimestamp)}}),Kv(h=>{const g=GB(h,u,d,f,{propagateTraceparent:p,onRequestSpanEnd:l});if(h.response&&h.fetchData.__span&&F1.set(h.response,h.fetchData.__span),g){const S=SP(h.fetchData.url),y=S?Zs(S).host:void 0;g.setAttributes({"http.url":S?Qs(S):void 0,"server.address":y}),o&&U1(g,e),c?.(g,{headers:h.headers})}})),r&&ab(h=>{const g=IZ(h,u,d,f,p,l);g&&(o&&U1(g,e),c?.(g,{headers:EP(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}const kZ=300;function U1(e,t){const{url:n}=De(e).data;if(!n||typeof n!="string")return;let r=()=>{setTimeout(s)};if(er(t)){const i=e.end.bind(e);e.end=o=>{const a=o??lt();let c=!1;const l=()=>{c||(c=!0,setTimeout(s),i(a),clearTimeout(u))};r=l;const u=setTimeout(l,kZ)}}const s=oo("resource",({entries:i})=>{i.forEach(o=>{TZ(o)&&o.name.endsWith(n)&&(e.setAttributes(iO(o)),r())})})}function xZ(e,t){const n=lo();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return t?Kn(r.toString(),t)||i&&Kn(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?Kn(e,t):r}}function IZ(e,t,n,r,s,i){const o=e.xhr,a=o?.[hs];if(!o||o.__sentry_own_request__||!a)return;const{url:c,method:l}=a,u=Yn()&&t(c);if(e.endTimestamp){const v=o.__sentry_xhr_span_id__;if(!v)return;const m=r[v];m&&(u&&a.status_code!==void 0&&(Tl(m,a.status_code),m.end(),i?.(m,{headers:EP(lO(o)),error:e.error})),delete r[v]);return}const d=SP(c),f=Zs(d||c),p=Qs(Nf(c)),h=pe(),S=!!St()||!!h&&er(h),y=u&&S?qr({name:`${l} ${p}`,attributes:{url:Qs(c),type:"xhr","http.method":l,"http.url":d?Qs(d):void 0,"server.address":f?.host,[qe]:"auto.http.browser",[Qe]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Dn;return u&&!S&&h?.recordDroppedEvent("no_parent_span","span"),o.__sentry_xhr_span_id__=y.spanContext().spanId,r[o.__sentry_xhr_span_id__]=y,n(c)&&RZ(o,Yn()&&S?y:void 0,s),h&&h.emit("beforeOutgoingRequestSpan",y,e),y}function RZ(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:i}=Nv({span:t,propagateTraceparent:n});r&&CZ(e,r,s,i)}function CZ(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const i=s?.baggage;(!i||!EZ(i))&&e.setRequestHeader("baggage",n)}}catch{}}function AZ(){ve.document?ve.document.addEventListener("visibilitychange",()=>{const e=St();if(!e)return;const t=xt(e);if(ve.document.hidden&&t){const n="cancelled",{op:r,status:s}=De(t);ce&&U.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:We,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ce&&U.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const OZ=3600,kP="sentry_previous_trace",PZ="sentry.previous_trace";function MZ(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?DZ():void 0;e.on("spanStart",o=>{if(xt(o)!==o)return;const a=Pe().getPropagationContext();s=LZ(s,o,a),r&&NZ(s)});let i=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const a=Pe(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(ly(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=ly(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[wR]:s.sampleRate}})}
535function LZ(e,t,n){const r=De(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Dp])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return i;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=OZ&&(ce&&U.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[W8]:"previous_trace"}}),t.setAttribute(PZ,`${o.traceId}-${o.spanId}-${ly(o)?1:0}`)),i)}function NZ(e){try{ve.sessionStorage.setItem(kP,JSON.stringify(e))}catch(t){ce&&U.warn("Could not store previous trace in sessionStorage",t)}}function DZ(){try{const e=ve.sessionStorage?.getItem(kP);return JSON.parse(e)}catch{return}}function ly(e){return e.traceFlags===1}const $Z="BrowserTracing",FZ=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function xP(){const e=ve.navigator;return e?.userAgent?FZ.test(e.userAgent):!1}const UZ={...bd,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Cb},H1=((e={})=>{"enableElementTiming"in e&&Wr(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=ve.document,{enableInp:r,enableLongTask:s,enableLongAnimationFrame:i,_experiments:{enableInteractions:o,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:c},beforeStartSpan:l,idleTimeout:u,finalTimeout:d,childSpanTimeout:f,markBackgroundSpan:p,traceFetch:h,traceXHR:g,trackFetchStreamPerformance:S,shouldCreateSpanForRequest:y,enableHTTPTimings:v,ignoreResourceSpans:m,ignorePerformanceApiSpans:_,instrumentPageLoad:w,instrumentNavigation:x,detectRedirects:T,linkPreviousTrace:R,consistentTraceSampling:k,enableReportPageLoaded:C,onRequestSpanStart:M,onRequestSpanEnd:b}={...UZ,...e},E=xP();let I,A,$;function N(O,D,j=!0){const q=D.op==="pageload",oe=D.name,ue=l?l(D):D,Se=ue.attributes||{};if(oe!==ue.name&&(Se[Lt]="custom",ue.attributes=Se),!j){const V=uo();qr({...ue,startTime:V}).end(V);return}t.name=ue.name,t.source=Se[Lt];const ke=oC(ue,{idleTimeout:u,finalTimeout:d,childSpanTimeout:f,disableAutoFinish:q,beforeSpanEnd:V=>{I?.();const Q=er(O);VV(V,{recordClsOnPageloadSpan:!Q&&!a,recordLcpOnPageloadSpan:!Q&&!c,ignoreResourceSpans:m,ignorePerformanceApiSpans:_,spanStreamingEnabled:Q}),q1(O,void 0);const X=Pe(),F=X.getPropagationContext();X.setPropagationContext({...F,traceId:ke.spanContext().traceId,sampled:Ns(ke),dsc:Fn(V)}),q&&($=void 0)},trimIdleSpanEndTimestamp:!C});q&&C&&($=ke),q1(O,ke);function Fe(){n&&["interactive","complete"].includes(n.readyState)&&O.emit("idleSpanEnableAutoFinish",ke)}q&&!C&&n&&(n.addEventListener("readystatechange",()=>{Fe()}),Fe())}return{name:$Z,setup(O){if(E){ce&&U.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}GR();const D=er(O);if(I=FV({recordClsStandaloneSpans:D?void 0:a||!1,recordLcpStandaloneSpans:D?void 0:c||!1,client:O}),D?(dz(O),pz(O),r&&gz()):r&&oz(),i&&Te.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?HV():s&&UV(),o&&jV(),T&&n){const q=()=>{A=lt()};addEventListener("click",q,{capture:!0}),addEventListener("keydown",q,{capture:!0,passive:!0})}function j(){const q=Nl(O);q&&!De(q).timestamp&&(ce&&U.log(`[Tracing] Finishing current active span with op: ${De(q).op}`),q.setAttribute(Sl,"cancelled"),q.end())}O.on("startNavigationSpan",(q,oe)=>
535{if(pe()!==O)return;if(oe?.isRedirect){ce&&U.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),N(O,{op:"navigation.redirect",...q},!1);return}A=void 0,j(),It().setPropagationContext({traceId:jr(),sampleRand:Math.random(),propagationSpanId:Yn()?void 0:bs()});const ue=Pe();ue.setPropagationContext({traceId:jr(),sampleRand:Math.random(),propagationSpanId:Yn()?void 0:bs()}),ue.setSDKProcessingMetadata({normalizedRequest:void 0}),N(O,{op:"navigation",...q,parentSpan:null,forceTransaction:!0})}),O.on("startPageLoadSpan",(q,oe={})=>{if(pe()!==O)return;j();const ue=oe.sentryTrace||j1("sentry-trace")||B1("sentry-trace"),Se=oe.baggage||j1("baggage")||B1("baggage"),ke=PR(ue,Se),Fe=Pe();Fe.setPropagationContext(ke),Yn()||(Fe.getPropagationContext().propagationSpanId=bs()),Fe.setSDKProcessingMetadata({normalizedRequest:zf()}),N(O,{op:"pageload",...q})}),O.on("endPageloadSpan",()=>{C&&$&&($.setAttribute(Sl,"reportPageLoaded"),$.end())})},afterAllSetup(O){if(E)return;let D=lo();if(R!=="off"&&MZ(O,{linkPreviousTrace:R,consistentTraceSampling:k}),ve.location){if(w){const j=Ht();IP(O,{name:ve.location.pathname,startTime:j?j/1e3:void 0,attributes:{[Lt]:"url",[qe]:"auto.pageload.browser"}})}x&&ih(({to:j,from:q})=>{if(q===void 0&&D?.indexOf(j)!==-1){D=void 0;return}D=void 0;const oe=Iv(j),ue=Nl(O),Se=ue&&T&&jZ(ue,A);Ab(O,{name:oe?.pathname||ve.location.pathname,attributes:{[Lt]:"url",[qe]:"auto.navigation.browser"}},{url:j,isRedirect:Se})})}p&&AZ(),o&&HZ(O,u,d,f,t),r&&uz(),TP(O,{traceFetch:h,traceXHR:g,trackFetchStreamPerformance:S,tracePropagationTargets:O.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:v,onRequestSpanStart:M,onRequestSpanEnd:b})}}});function IP(e,t,n){e.emit("startPageLoadSpan",t,n),Pe().setTransactionName(t.name);const r=Nl(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Ab(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const i=Pe();return i.setTransactionName(t.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...zf(),url:r}}),Nl(e)}function j1(e){return ve.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function B1(e){return ve.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function HZ(e,t,n,r,s){const i=ve.document;let o;const a=()=>{const c="ui.action.click",l=Nl(e);if(l){const u=De(l).op;if(["navigation","pageload"].includes(u)){ce&&U.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(Sl,"interactionInterrupted"),o.end(),o=void 0),!s.name){ce&&U.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=oC({name:s.name,op:c,attributes:{[Lt]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}const RP="_sentry_idleSpan";function Nl(e){return e[RP]}function q1(e,t){on(e,RP,t)}const W1=1.5;function jZ(e,t){const n=De(e),r=uo(),s=n.start_timestamp;return!(r-s>W1||t&&r-t<=W1)}function BZ(e=pe()){e?.emit("endPageloadSpan")}function qZ(e){const t=St();if(t===e)return;const n=Pe();e.end=new Proxy(e.end,{apply(r,s,i){return Br(n,t),Reflect.apply(r,s,i)}}),Br(n,e)}const WZ=()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(ce&&U.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){const t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!er(e)){r.traceLifecycle="static",ce&&U.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}const s=r.beforeSendSpan;if(s&&!Fp(s)){r.traceLifecycle="static",ce&&U.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}const i=new gq(e);e.on("afterSpanEnd",o=>{Ns(o)&&i.add(rH(o,e))}),e.on("afterSegmentSpanEnd",o=>{const a=o.spanContext().traceId;setTimeout(()=>{i.flush(a)},500)})}});function Oa(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function VZ(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Oa(n);return s=>r.then(i=>s(i.transaction(t,"readwrite").objectStore(t)))}function Ob(e){return Oa(e.getAllKeys())}function zZ(e,t,n){return e(r=>Ob(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.max(...s,0)+1),Oa(r.transaction)}))}function GZ(e,t,n){return e(r=>Ob(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.min(...s,0)-1),Oa(r.transaction)}))}function KZ(e){return e(t=>Ob(t).then(n=>{const r=n[0];if(r!=null)return Oa(t.get(r)).then(s=>(t.delete(r),Oa(t.transaction).then(()=>s)))}))}function YZ(e){let t;function n(){return t==null&&(t=VZ(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const s=Lf(r);await zZ(n(),s,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const s=Lf(r);await GZ(n(),s,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await KZ(n());if(r)return xU(r)}catch{}}}}function XZ(e){return t=>{const n=e({...t,createStore:YZ});return ve.addEventListener("online",async r=>{await n.flush()}),n}}function JZ(e=lb){return XZ(gj(e))}
535const V1=1e6,ZZ="window"in Te&&Te.window===Te&&typeof importScripts>"u",Gi=String(0),Pb=ZZ?"main":"worker",lp=ve.navigator;let CP="",AP="",OP="",uy=lp?.userAgent||"",PP="";const QZ=lp?.language||lp?.languages?.[0]||"";function eQ(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const z1=lp?.userAgentData;eQ(z1)&&z1.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(CP=e.platform||"",OP=e.architecture||"",PP=e.model||"",AP=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];uy=`${t.brand} ${t.version}`}}).catch(e=>{});function tQ(e){return!("thread_metadata"in e)}function nQ(e){return tQ(e)?cQ(e):e}function rQ(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&ce&&U.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function sQ(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const s=rQ(r),i=nQ(n),o=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:lt()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:lt()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Ql,runtime:{name:"javascript",version:ve.navigator.userAgent},os:{name:CP,version:AP,build_number:uy},device:{locale:QZ,model:PP,manufacturer:uy,architecture:OP,is_emulator:!1},debug_meta:{images:LP(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||Vt(),trace_id:s,active_thread_id:Gi,relative_start_ns:"0",relative_end_ns:((a-o)*1e6).toFixed(0)}]}}function iQ(e,t,n){if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=aQ(e),s=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:Vt(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||Vt(),platform:"javascript",version:"2",release:s.release??"",environment:s.environment??"production",debug_meta:{images:LP(e.resources)},profile:r}}function oQ(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};const t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function aQ(e){const t=[];for(let a=0;a<e.frames.length;a++){const c=e.frames[a];c&&(t[a]={function:c.name,abs_path:typeof c.resourceId=="number"?e.resources[c.resourceId]:void 0,lineno:c.line,colno:c.column})}const n=[];for(let a=0;a<e.stacks.length;a++){const c=e.stacks[a];if(!c)continue;const l=[];let u=c;for(;u;)l.push(u.frameId),u=u.parentId===void 0?void 0:e.stacks[u.parentId];n[a]=l}const r=Ht(),s=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,i=s-(r||s),o=[];for(let a=0;a<e.samples.length;a++){const c=e.samples[a];if(!c)continue;const l=(s+(c.timestamp-i))/1e3;o[a]={stack_id:c.stackId??0,thread_id:Gi,timestamp:l}}return{frames:t,stacks:n,samples:o,thread_metadata:{[Gi]:{name:Pb}}}}function MP(e){return De(e).op==="pageload"}function cQ(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Gi]:{name:Pb}}},s=e.samples[0];if(!s)return r;const i=s.timestamp,o=Ht(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:o||0,c=a-(o||a);return e.samples.forEach((l,u)=>{if(l.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[u]={elapsed_since_start_ns:((l.timestamp+c-i)*V1).toFixed(0),stack_id:t,thread_id:Gi};return}let d=e.stacks[l.stackId];const f=[];for(;d;){f.push(d.frameId);const h=e.frames[d.frameId];h&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:h.name,abs_path:typeof h.resourceId=="number"?e.resources[h.resourceId]:void 0,lineno:h.line,colno:h.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const p={elapsed_since_start_ns:((l.timestamp+c-i)*V1).toFixed(0),stack_id:n,thread_id:Gi};r.stacks[n]=f,r.samples[u]=p,n++}),r}function lQ(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function uQ(e){const t=[];return eo(e,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;
535s++)n[s]?.contexts?.profile?.profile_id&&t.push(n[s])}),t}function LP(e){const r=pe()?.getOptions()?.stackParser;return r?dH(r,e):[]}function NP(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(ce&&U.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(ce&&U.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function dQ(e){return e.samples.length<2?(ce&&U.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(ce&&U.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Mb=!1;const DP=3e4;function fQ(e){return typeof e=="function"}function $P(){const e=ve.Profiler;if(!fQ(e)){ce&&U.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(DP/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{ce&&(U.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),U.log("[Profiling] Disabling profiling for current user session.")),Mb=!0}}function G1(e){if(Mb)return ce&&U.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return ce&&U.log("[Profiling] Discarding profile because root span was not sampled."),!1;const n=pe()?.getOptions();if(!n)return ce&&U.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return NP(r)?r?(r===!0?!0:Math.random()<r)?!0:(ce&&U.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(ce&&U.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(ce&&U.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function pQ(e){if(Mb)return ce&&U.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return ce&&U.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return NP(t)?t?Math.random()<=t:(ce&&U.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(ce&&U.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function ld(e){return typeof e.profilesSampleRate<"u"}function hQ(e,t,n,r){return dQ(n)?sQ(e,t,n,r):null}const Fi=new Map;function gQ(){return Fi.size}function mQ(e){const t=Fi.get(e);return t&&Fi.delete(e),t}function _Q(e,t){if(Fi.set(e,t),Fi.size>30){const n=Fi.keys().next().value;n!==void 0&&Fi.delete(n)}}const FP=new WeakSet;function up(e){e.setAttribute("thread.id",Gi),e.setAttribute("thread.name",Pb)}function K1(e){let t;MP(e)&&(t=lt()*1e3);const n=$P();if(!n)return;ce&&U.log(`[Profiling] started profiling span: ${De(e).description}`);const r=Vt();let s=null;Pe().setContext("profile",{profile_id:r,start_timestamp:t}),FP.add(e),up(e);async function i(){if(e&&n){if(s){ce&&U.log("[Profiling] profile for:",De(e).description,"already exists, returning early");return}return n.stop().then(l=>{if(o&&(ve.clearTimeout(o),o=void 0),ce&&U.log(`[Profiling] stopped profiling of span: ${De(e).description}`),!l){ce&&U.log(`[Profiling] profiler returned null profile for: ${De(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}s=l,_Q(r,l)}).catch(l=>{ce&&U.log("[Profiling] error while stopping profiler:",l)})}}let o=ve.setTimeout(()=>{ce&&U.log("[Profiling] max profile duration elapsed, stopping profiling for:",De(e).description),i()},DP);const a=e.end.bind(e);function c(){return e?(i().then(()=>{a()},()=>{a()}),e):a()}e.end=c}const yQ=6e4,vQ=3e5;class bQ{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){const n=t.getOptions().profileLifecycle,r=pQ(t.getOptions());ce&&U.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||ce&&U.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=Vt(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t),t.on("spanStart",s=>{this._isRunning&&up(s)})}
535start(){if(this._lifecycleMode==="trace"){ce&&U.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){ce&&U.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){ce&&U.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){ce&&U.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){ce&&U.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;const n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);const r=this._activeRootSpanIds.size;r===1&&(ce&&U.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling()),this._isRunning&&up(t)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,ce&&U.log("[Profiling] Started profiling with profiler ID:",this._profilerId),Wi().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){ce&&U.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{ce&&U.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&&Wi().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){ce&&U.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(n!==xt(n))return;if(!n.isRecording()){ce&&U.log("[Profiling] Discarding profile because root span was not sampled.");return}const r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);const s=this._activeRootSpanIds.size;s===1&&(ce&&U.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${s}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;const r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);const s=this._activeRootSpanIds.size;ce&&U.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${s}).`),s===0&&(this._collectCurrentChunk().catch(i=>{ce&&U.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",i)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,Wi().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);const n=setTimeout(()=>this._onRootSpanTimeout(t),vQ);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;const t=$P();if(!t){ce&&U.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{ce&&U.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},yQ))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(ce&&U.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){const t=this._profiler;if(this._profiler=void 0,!!t)try{const n=await t.stop(),r=iQ(n,this._client,this._profilerId),s=oQ(r);if("reason"in s){ce&&U.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",s.reason);return}this._sendProfileChunk(r),ce&&U.log("[Profiling] Collected browser profile chunk.")}catch(n){ce&&U.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}}_sendProfileChunk(t){const n=this._client,r=eu(n.getSdkMetadata?.()),s=n.getDsn(),i=n.getOptions().tunnel,o=rr({event_id:Vt(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!i&&s&&{dsn:Vr(s)}},[[{type:"profile_chunk",platform:"javascript"},t]]);n.sendEnvelope(o).then(null,a=>{ce&&U.error("Error while sending profile chunk envelope:",a)})}}const wQ="BrowserProfiling",SQ=(()=>({name:wQ,setup(e){const t=e.getOptions(),n=new bQ;if(!ld(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),ld(t)&&!t.profilesSampleRate){ce&&U.log("[Profiling] Profiling disabled, no profiling options foun
535d.");return}const r=St(),s=r&&xt(r);if(ld(t)&&t.profileSessionSampleRate!==void 0&&ce&&U.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),ld(t))s&&MP(s)&&G1(s)&&K1(s),e.on("spanStart",i=>{const o=xt(i);i===o?G1(i)&&K1(i):FP.has(o)&&up(i)}),e.on("beforeEnvelope",i=>{if(!gQ())return;const o=uQ(i);if(!o.length)return;const a=[];for(const c of o){const l=c?.contexts,u=l?.profile?.profile_id,d=l?.profile?.start_timestamp;if(typeof u!="string"){ce&&U.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!u){ce&&U.log("[Profiling] cannot find profile for a span without a profile context");continue}l?.profile&&delete l.profile;const f=mQ(u);if(!f){ce&&U.log(`[Profiling] Could not retrieve profile for span: ${u}`);continue}const p=hQ(u,d,f,c);p&&a.push(p)}lQ(i,a)});else{const i=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),i==="manual")n.initialize(e);else if(i==="trace"){if(!Yn(t)){ce&&U.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),s&&n.notifyRootSpanActive(s),ve.setTimeout(()=>{const o=St(),a=o&&xt(o);a&&n.notifyRootSpanActive(a)},0)}}}})),EQ=SQ,TQ=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Ba(e)}});function kQ(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{to(e,t.value),no(e,t.value)}}}const xQ=()=>({name:"OpenFeature",processEvent(e,t,n){return Ba(e)}});class IQ{after(t,n){to(n.flagKey,n.value),no(n.flagKey,n.value)}error(t,n,r){to(t.flagKey,t.defaultValue),no(t.flagKey,t.defaultValue)}}const RQ=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;nn(t,"isEnabled",CQ)},processEvent(t,n,r){return Ba(t)}});function CQ(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(to(n,r),no(n,r)):ce&&U.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const AQ=(({growthbookClass:e})=>qB({growthbookClass:e})),OQ=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{to(n.gate.name,n.gate.value),no(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Ba(t)}});async function PQ(){const e=pe();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const r=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await nC(()=>fetch(r,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const MQ="WebWorker",LQ=({worker:e})=>({name:MQ,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>Y1(t))},addWorker:t=>Y1(t)});function Y1(e){e.addEventListener("message",t=>{if($Q(t.data)){if(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(ce&&U.log("Sentry debugId web worker message received",t.data),ve._sentryDebugIds={...t.data._sentryDebugIds,...ve._sentryDebugIds}),t.data._sentryModuleMetadata&&(ce&&U.log("Sentry module metadata web worker message received",t.data),ve._sentryModuleMetadata={...t.data._sentryModuleMetadata,...ve._sentryModuleMetadata}),t.data._sentryWasmImages){ce&&U.log("Sentry WASM images web worker message received",t.data);const n=ve._sentryWasmImages||[],r=t.data._sentryWasmImages.filter(s=>Tn(s)&&typeof s.code_file=="string"&&!n.some(i=>i.code_file===s.code_file));ve._sentryWasmImages=[...n,...r]}t.data._sentryWorkerError&&(ce&&U.log("Sentry worker rejection message received",t.data._sentryWorkerError),NQ(t.data._sentryWorkerError))}})}function NQ(e){const t=pe();if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,s=e.reason,i=ks(s)?wO(s):Zp(n,s,void 0,r,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}}),ja(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),ce&&U.log("Captured worker unhandled rejection",s)}function DQ({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{const r={reason:bO(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),ce&&U.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),ce&&U.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function $Q(e){if(!Tn(e)||e._sentryMessage!==!0)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,s="_sentryWasmImages"in e;return!(!t&&!n&&!r&&!s||t&&!(Tn(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(Tn(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!Tn(e._sentryWorkerError)||s&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(i=>Tn(i)&&typeof i.code_file=="string")))}const FQ=["activate","mount"],UQ=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,HQ=/(?:^|[-_])(\w)/g,jQ=e=>e.replace(HQ,t=>t.toUpperCase()).replace(/[-_]/g,""),BQ="<Root>",zg="<Anonymous>",qQ=(e,t)=>e.repeat(t),tl=(e,t)=>
535{if(!e)return zg;if(e.$root===e)return BQ;if(!e.$options)return zg;const n=e.$options;let r=n.name||n._componentTag||n.__name;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${jQ(r)}>`:zg)+(s&&t!==!1?` at ${s}`:"")},WQ=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const s=t[t.length-1];if(s.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[s,n],n=0)}t.push(e),e=e.$parent}return` 536 537found in 538 539${t.map((s,i)=>`${(i===0?"---> ":qQ(" ",5+i*2))+(Array.isArray(s)?`${tl(s[0])}... (${s[1]} recursive calls)`:tl(s))}`).join(` 540`)}`}return` 541 542(found in ${tl(e)})`},VQ=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,s,i)=>{const o=tl(s,!1),a=s?WQ(s):"",c={componentName:o,lifecycleHook:i,trace:a};if(t?.attachProps!==!1&&s&&(s.$options?.propsData?c.propsData=s.$options.propsData:s.$props&&(c.propsData=s.$props)),setTimeout(()=>{et(r,{captureContext:{contexts:{vue:c}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,s,i);else throw r}},X1="ui.vue",zQ={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Gg(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function GQ(e,t){function n(s){return s.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(s=>n(t)===n(s))}const KQ=(e={})=>{const t=(e.hooks||[]).concat(FQ).filter((s,i,o)=>o.indexOf(s)===i),n={},r=e.timeout||2e3;for(const s of t){const i=zQ[s];if(!i){UQ&&U.warn(`Unknown hook: ${s}`);continue}for(const o of i)n[o]=function(){const a=this.$root===this;a&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||qr({name:"Application Render",op:`${X1}.render`,attributes:{[qe]:"auto.ui.vue"},onlyIfParent:!0}),Gg(this,lt(),r));const c=tl(this,!1);if(!(a||(Array.isArray(e.trackComponents)?GQ(e.trackComponents,c):e.trackComponents))){Gg(this,lt(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const u=o===i[0],d=this.$root?.$_sentryRootComponentSpan||St();if(u){if(d){const f=this.$_sentryComponentSpans[s];f&&f.end(),this.$_sentryComponentSpans[s]=qr({name:`Vue ${c}`,op:`${X1}.${s}`,attributes:{[qe]:"auto.ui.vue"},onlyIfParent:!0})}}else{const f=this.$_sentryComponentSpans[s];if(!f)return;f.end(),Gg(this,lt(),r)}}}return n};function YQ(e,t,n){let r=!1;const s="mode"in e;e.onError(i=>et(i,{mechanism:{handled:!1}})),e.beforeEach((i,o,...a)=>{const c=r?void 0:XQ(),l={};for(const f of Object.keys(i.params))l[`url.path.parameter.${f}`]=i.params[f],l[`params.${f}`]=i.params[f];for(const f of Object.keys(i.query)){const p=i.query[f];p&&(l[`query.${f}`]=p)}let u=i.path,d="url";if(i.name&&t.routeLabel!=="path")u=i.name.toString(),d="custom";else if(i.matched.length>0){const f=i.matched.length-1;u=i.matched[f].path,d="route"}if(Pe().setTransactionName(u),t.instrumentPageLoad&&c&&(De(c).data[Lt]!=="custom"&&(c.updateName(u),c.setAttribute(Lt,d)),c.setAttributes({...l,[qe]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!c&&n({name:u,op:"navigation",attributes:{...l,[qe]:"auto.navigation.vue",[Lt]:d}}),s){const f=a[0];typeof f=="function"&&f()}})}function XQ(){const e=St(),t=e&&xt(e);return t&&De(t).op==="pageload"?t:void 0}function JQ(e={}){if(!e.router)return H1(e);const t=H1({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),YQ(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},c=>{Ab(o,c)})}}}const ZQ={attachPiniaState:!0,addBreadcrumbs:!0,actionTransformer:e=>e,stateTransformer:e=>e},J1=(e,t)=>{const n={};try{return Object.keys(e.state.value).forEach(r=>{n[r]=e.state.value[r]}),t?t(n):n}catch{return n}},UP=e=>{const t={...ZQ,...e};return({store:r,pinia:s})=>{t.attachPiniaState!==!1&&Wi().addEventProcessor((i,o)=>
542{try{const c=`pinia_state_all_stores_${new Date().toTimeString().split(" ")[0]}.json`;o.attachments?.some(u=>u.filename.startsWith("pinia_state_all_stores_"))||(o.attachments=[...o.attachments||[],{filename:c,data:JSON.stringify(J1(s,t.stateTransformer))}])}catch{}return i}),r.$onAction(i=>{i.after(()=>{const o=t.actionTransformer(i.name);typeof o<"u"&&o!==null&&t.addBreadcrumbs!==!1&&br({category:"pinia.action",message:`Store: ${r.$id} | Action: ${o}`,level:"info"});const a=J1(s,t.stateTransformer),c=Pe(),l=c.getScopeData().contexts.state;if(typeof a<"u"&&a!==null){const f=pe()?.getOptions()?.normalizeDepth||3,h={...l||{},state:{type:"pinia",value:a}};mU(h,3+f),c.setContext("state",h)}else c.setContext("state",{...l||{},state:{type:"pinia",value:"undefined"}})})})}};var QQ={};function HP(e){const t=Ql,n={defaultIntegrations:[...ub()],environment:e.environment??QQ.SENTRY_ENVIRONMENT??t,...e};return DC(n,"nuxt",["nuxt","vue"]),FG(n)}const eee="Pinia",tee=((e,t={})=>({name:eee,setup(){!e||typeof e=="object"&&!("use"in e)?Wr(()=>{console.warn('[Sentry] The Pinia integration was added, but the passed parameter `pinia` has the wrong value. Make sure to enable Pinia by adding `"@pinia/nuxt"` to the Nuxt modules array and pass pinia to Sentry with `piniaIntegration(usePinia())`. Current value of `pinia`:',e)}):e.use(UP(t))}})),nee=tee,ree=(e={})=>({name:"NuxtVueIntegration",setup(){Te._sentryNuxtVueIntegrationOptions=e}}),see=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:GA,MULTIPLEXED_TRANSPORT_EXTRA_KEY:Ed,OpenFeatureIntegrationHook:IQ,SDK_VERSION:_s,SEMANTIC_ATTRIBUTE_SENTRY_OP:Qe,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:qe,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:Dp,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Lt,Scope:vr,WINDOW:ve,addBreadcrumb:br,addEventProcessor:pC,addIntegration:L_,attachErrorHandler:VQ,breadcrumbsIntegration:gO,browserApiErrorsIntegration:mO,browserProfilingIntegration:EQ,browserSessionIntegration:_O,browserTracingIntegration:JQ,buildLaunchDarklyFlagUsedHandler:kQ,captureConsoleIntegration:Gj,captureEvent:ja,captureException:et,captureFeedback:JC,captureMessage:lC,captureSession:wd,chromeStackLineParser:uO,close:RH,consoleLoggingIntegration:u7,contextLinesIntegration:cK,continueTrace:HU,createConsolaReporter:g7,createLangChainCallbackHandler:zv,createSentryPiniaPlugin:UP,createTracingMixins:KQ,createTransport:xC,createUserFeedbackEnvelope:eG,cultureContextIntegration:yO,dedupeIntegration:WC,defaultRequestInstrumentationOptions:Cb,defaultStackLineParsers:fO,defaultStackParser:pO,diagnoseSdkConnectivity:PQ,elementTimingIntegration:iz,endSession:Cv,eventFiltersIntegration:FC,eventFromException:VA,eventFromMessage:zA,exceptionFromError:Jp,extraErrorDataIntegration:nB,featureFlagsIntegration:BB,feedbackAsyncIntegration:zW,feedbackIntegration:GE,feedbackSyncIntegration:GE,flush:IH,forceLoad:UG,functionToStringIntegration:$C,geckoStackLineParser:dO,getActiveSpan:St,getClient:pe,getCurrentScope:Pe,getDefaultIntegrations:ub,getFeedback:eW,getGlobalScope:Wi,getIsolationScope:It,getReplay:rZ,getRootSpan:xt,getSpanDescendants:Kc,getSpanStatusFromHttpCode:ER,getTraceData:Nv,globalHandlersIntegration:vO,graphqlClientIntegration:mK,growthbookIntegration:AQ,httpClientIntegration:KG,httpContextIntegration:EO,inboundFiltersIntegration:UC,init:HP,instrumentAnthropicAiClient:P9,instrumentCreateReactAgent:lq,instrumentGoogleGenAIClient:W9,instrumentLangChainEmbeddings:xq,instrumentLangGraph:uq,instrumentOpenAiClient:p9,instrumentOutgoingRequests:TP,instrumentSupabaseClient:XC,isBotUserAgent:xP,isEnabled:fC,isInitialized:CH,lastEventId:dC,launchDarklyIntegration:TQ,lazyLoadIntegration:qA,linkedErrorsIntegration:TO,logger:o7,makeBrowserOfflineTransport:JZ,makeFetchTransport:lb,makeMultiplexedTransport:yj,metrics:p7,moduleMetadataIntegration:qj,onLoad:HG,openFeatureIntegration:xQ,opera10StackLineParser:Xz,opera11StackLineParser:Qz,parameterize:NC,piniaIntegration:nee,registerSpanErrorInstrumentation:GR,registerWebWorker:DQ,replayCanvasIntegration:SZ,replayIntegration:eZ,reportPageLoaded:BZ,reportingObserverIntegration:VG,rewriteFramesIntegration:uB,sendFeedback:CA,setActiveSpanInBrowser:qZ,setContext:Df,setConversationId:xH,setCurrentClient:PC,setExtra:EH,setExtras:SH,setHttpStatus:Tl,setMeasurement:tC,setTag:kH,setTags:TH,setUser:uC,showReportDialog:jG,spanStreamingIntegration:WZ,spanToBaggageHeader:pU,spanToJSON:De,spanToTraceHeader:$R,spotlightBrowserIntegration:NG,startBrowserTracingNavigationSpan:Ab,startBrowserTracingPageLoadSpan:IP,startInactiveSpan:qr,startNewTrace:r
542C,startSession:M_,startSpan:zr,startSpanManual:ps,statsigIntegration:OQ,supabaseIntegration:TB,suppressTracing:nC,thirdPartyErrorFilterIntegration:LB,uiProfiler:Oz,unleashIntegration:RQ,updateSpanName:lU,viewHierarchyIntegration:_K,vueIntegration:ree,webWorkerIntegration:LQ,winjsStackLineParser:Gz,withActiveSpan:tu,withIsolationScope:O8,withScope:nr,withStreamedSpan:hU,zodErrorsIntegration:MB},Symbol.toStringTag,{value:"Module"})),iee="blavity.com",oee="3.4.0",Z1={name:iee,version:oee},aee=()=>{Df("app",{version:Z1.version,name:Z1.name});{const e=Gt();Df("deployment",{environment:jP(e.public.HOST_URL||""),host:window.location.hostname,origin:window.location.origin,app_env:e.public.APP_ENV})}},cee=(e,t)=>{uC({id:t,ip_address:"{{auto}}",session_id:e})},jP=e=>e?e.includes("ondigitalocean.app")?"preview":(e.includes("blavity.com"),"production"):"production",lee=()=>{const e=Pe();return typeof e.getTransaction=="function"?e.getTransaction():typeof e.getSpan=="function"?e.getSpan():null},uee=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandexbot","facebookexternalhit","twitterbot","linkedinbot","whatsapp","lighthouse","pagespeed","webpagetest","headless","phantom","selenium","nightwatch","cypress","puppeteer"],dee=[/bonbon\.tech/i,/s\.ntv\.io/i,/tagan\.adlightning\.com/i,/doubleclick\.net/i,/lightboxcdn\.com/i,/scorecardresearch\.com/i,/pushly.*\.js/i,/taboola\.js/i,/admiral\.js/i,/analytics/i,/ima3\.js/i,/aniview\.com/i,/instream\/html5/i,/htlbid\.com/i,/vpaid\/units/i,/lite-unit/i,/cmTag.*\.js/i],fee=()=>{if(typeof navigator>"u")return!1;const e=navigator.userAgent.toLowerCase();return uee.some(t=>e.includes(t.toLowerCase()))},pee=e=>{const t=e.exception?.[0]?.stacktrace?.frames?.[0]?.filename||"",n=e.exception?.[0]?.value||"";return dee.some(r=>r.test(t)||r.test(n))},hee=rt(e=>{const t=Gt(),n=Ps(),r=Yt(),s=t.public.SENTRY_DSN;if(!s||t.public.SENTRY_ENABLED===!1||t.public.SENTRY_ENABLED==="false")return;const i=t.public.SENTRY_ENVIRONMENT||jP(t.public.HOST_URL||""),o=i==="production"?t.public.appVersion:`preview-${t.public.commitSha||"unknown"}`,a=Number(t.public.SENTRY_SESSION_SAMPLE_RATE),c=Number.isFinite(a)?a:.4,l=Number(t.public.SENTRY_TRACES_SAMPLE_RATE),u=Number.isFinite(l)?l:.1,d=Vl()?c:0,f={environment:i,initialPage:n.path,version:o};HP({app:e.vueApp,dsn:s,environment:i,release:i==="production"?o:void 0,debug:!1,tracesSampleRate:u,sessionSampleRate:d,replaysSessionSampleRate:0,replaysOnErrorSampleRate:0,attachStacktrace:!0,autoSessionTracking:d>0,tracePropagationTargets:["localhost",/^\//,/^https:\/\/api\.blavity\.com/],beforeSend:p=>fee()||pee(p)||p.level&&["info","debug"].includes(p.level)?null:(p.tags={...p.tags,...f,...p.request?.url&&{currentUrl:p.request.url}},p),ignoreErrors:["top.GLOBALS","chrome-extension://","moz-extension://","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Non-Error promise rejection captured",/Failed to read.*property.*'performance'.*from.*'Window'/i,/SecurityError.*performance/i,/break through the security policy/i,/apstag is not defined/i,/Cannot read.*apstag/i,/navigator\.sendBeacon is not a function/i,/XMLHttpRequest is not a constructor/i,/TextEncoder is not defined/i,/TextEncoder is not a constructor/i],shouldCreateSpanForRequest:p=>p.includes("/_nuxt/")||p.includes("/public/")||p.includes(".xml")||p.includes("sw.js")?!1:p.includes("/api/")||!p.includes(".")}),aee();{const p=`session-${Date.now()}-${Math.random().toString(36).substring(7)}`;cee(p)}r.afterEach(p=>{["/","/briefing",/^\/[^/]+$/].some(S=>typeof S=="string"?p.path===S:S.test(p.path))||lee()?.end?.()}),e.provide("sentry",see)}),gee=rt(()=>{}),mee=rt(()=>{const{initializeUID2:e}=zx();document.readyState==="complete"?e():window.addEventListener("load",()=>{e()},{once:!0})}),_ee="standalone",yee=void 0;function vee(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:s,onRegistered:i,onRegisteredSW:o,onRegisterError:a}=e;let c,l;const u=async(f=!0)=>{await l};async function d(){if("serviceWorker"in navigator){if(c=await ae(async()=>{const{Workbox:f}=await import("./B9PAqvXf.js");return{Workbox:f}},[],import.meta.url).then(({Workbox:f})=>new f("/sw.js",{scope:"/",type:"classic"})).catch(f=>{a?.(f)}),!c)return;c.addEventListener("activated",f=>{(f.isUpdate||f.isExternal)&&(n?n():window.location.reload())}),c.addEventListener("installed",f=>{f.isUpdate||s?.()}),c.register({immediate:t}).then(f=>{o?o("/sw.js",f):i?.(f)}).catch(f=>{a?.(f)})}}return l=d(),u}function bee(e={}){const{immediate:t=!0,onNeedReload:n,onNeedRefresh:r,onOfflineReady:s,onRegistered:i,onRegisteredSW:o,onRegisterError:a}=e,c=Ae(!1),l=Ae(!1);return{updateServiceWorker:vee({immediate:t,onNeedReload:n,onNeedRefresh(){c.value=!0,r?.()},onOfflineReady(){l.value=!0,s?.()},onRegistered:i,onRegisteredSW:o,onRegisterError:a}),offlineReady:l,needRefresh:c}}const wee=rt({name:"vite-pwa:nuxt:client:plugin",enforce:"post",parallel:!0,setup(e){const t=Ae(!1),n=Ae
542(!1),r=Ae(!1),s=Ae(!0),i=navigator.userAgent,o=i.match(/iPhone|iPad|iPod/),a=`${_ee}`,c=window.matchMedia(`(display-mode: ${a})`).matches,l=Ae(!!(c||o&&!i.match(/Safari/))),u=Ae(l.value);window.matchMedia(`(display-mode: ${a})`).addEventListener("change",m=>{!u.value&&m.matches&&(u.value=!0)});let d;const f=()=>d,{offlineReady:p,needRefresh:h,updateServiceWorker:g}=bee({immediate:!0,onRegisterError(m){e.hooks.callHook("service-worker:registration-failed",{error:m}),t.value=!0},onRegisteredSW(m,_){d=_,e.hooks.callHook("service-worker:registered",{url:m,registration:_}),_?.active?.state==="activated"?(n.value=!0,e.hooks.callHook("service-worker:activated",{url:m,registration:_})):_?.installing&&_.installing.addEventListener("statechange",w=>{const x=w.target;n.value=x.state==="activated",n.value&&e.hooks.callHook("service-worker:activated",{url:m,registration:_})})}}),S=async()=>{p.value=!1,h.value=!1};let y=()=>Promise.resolve(void 0),v=()=>{};if(!s.value){let m;const _=w=>{w.preventDefault(),m=w,r.value=!0};window.addEventListener("beforeinstallprompt",_),window.addEventListener("appinstalled",()=>{m=void 0,r.value=!1}),v=()=>{m=void 0,r.value=!1,window.removeEventListener("beforeinstallprompt",_),s.value=!0,localStorage.setItem(yee,"true")},y=async()=>{if(!r.value||!m){r.value=!1;return}return r.value=!1,await Jn(),m.prompt(),await m.userChoice}}return{provide:{pwa:tr({isInstalled:l,isPWAInstalled:u,showInstallPrompt:r,cancelInstall:v,install:y,swActivated:n,registrationError:t,offlineReady:p,needRefresh:h,updateServiceWorker:g,cancelPrompt:S,getSWRegistration:f})}}}}),See=[n5,a5,d$,f$,h$,g$,m$,y$,G$,K$,Y$,X$,nF,cF,lF,uF,vF,bF,wF,TF,PF,MF,W6,z6,hee,gee,mee,wee],Q1={webManifest:{href:"/manifest.webmanifest"}},Eee=Un({async setup(){if(Q1){const e=Ae({link:[]});Wy(e);const{webManifest:t}=Q1;if(t){const{href:n}=t;e.value.link.push({rel:"manifest",href:n})}}return()=>null}}),BP=(e="RouteProvider")=>Un({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,s={};for(const i in t.route)Object.defineProperty(s,i,{get:()=>n===t.renderKey?t.route[i]:r[i],enumerable:!0});return gs(Xi,Or(s)),()=>t.vnode?qt(t.vnode,{ref:t.vnodeRef}):t.vnode}}),Tee=BP(),eT=new WeakMap,kee=Un({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const s=bt(),i=Ae(),o=Ut(Xi,null);let a;r({pageRef:i});const c=Ut(Kk,null);let l;const u=s.deferHydration();let d=!1,f=!1,p=0;if(s.isHydrating){const g=s.hooks.hookOnce("app:error",u),S=Yt().beforeEach(()=>{g(),S()})}e.pageKey&&rn(()=>e.pageKey,(g,S)=>{g!==S&&s.callHook("page:loading:start")});let h=!1;{const g=Yt().beforeResolve(()=>{h=!1});Na(()=>{g(),u()})}return()=>qt(Cx,{name:e.name,route:e.route,...t},{default:g=>{const S=xee(o,g.route,g.Component),y=o&&o.matched.length===g.route.matched.length;if(!g.Component){if(l&&!y&&!Kg(l))return l;u();return}if(l&&c&&!Kg(l)&&!c.isCurrent(g.route))return l;if(S&&o&&(!c||c?.isCurrent(o)))return(y||l)&&!Kg(l)?l:null;const v=Om(g,e.pageKey),m=Iee(o,g.route,g.Component);!s.isHydrating&&a===v&&!m&&Jn(()=>{h||(h=!0,s.callHook("page:loading:end"))}),d&&a!==v&&f&&p++,a=v;const _=!!(e.transition??g.route.meta.pageTransition??A0),w=_&&Mx([e.transition,g.route.meta.pageTransition,A0,{onAfterLeave(){s["~transitionFinish"]?.(),delete s["~transitionFinish"],delete s["~transitionPromise"],s.callHook("page:transition:finish",g.Component)}}]),x=e.keepalive??g.route.meta.keepalive??NN;return l=Px(_&&w,_3(x,qt(Ny,{key:p,suspensible:!0,onPending:()=>{d=!0,_&&!s["~transitionPromise"]&&(s["~transitionPromise"]=new Promise(T=>{s["~transitionFinish"]=T})),s.callHook("page:start",g.Component)}
542,onResolve:async()=>{d=!1,f=!0;try{await Jn(),s._route.sync?.(),await s.callHook("page:finish",g.Component),!h&&!m&&(h=!0,await s.callHook("page:loading:end"))}finally{u()}}},{default:()=>{const T={key:v||void 0,vnode:n.default?Ree(n.default,g):g.Component,route:g.route,renderKey:v||void 0,trackRootNodes:_,vnodeRef:i};if(!x)return qt(Tee,T);const R=g.Component.type,k=R;let C=eT.get(k);return C||(C=BP(R.name||R.__name),eT.set(k,C)),qt(C,T)}}))).default(),l}})}});function xee(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>s.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>s.components?.default!==e.matched[i]?.components?.default)||n&&Om({route:t,Component:n})!==Om({route:e,Component:n})}function Iee(e,t,n){return e?t.matched.findIndex(s=>s.components?.default===n?.type)<t.matched.length-1:!1}function Ree(e,t){const n=e(t);return n.length===1?qt(n[0]):qt(ht,void 0,n)}function Kg(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}const qP=px,Cee=Un({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>qt(Ys[e.name],e.layoutProps,t.slots)}}),Aee={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},Oee=Un({name:"NuxtLayout",inheritAttrs:!1,props:Aee,setup(e,t){const n=bt(),r=Ut(Xi),i=!r||r===Ps()?Ax():r,o=Ve(()=>{let u=ye(e.name)??i?.meta.layout??qP(i?.path).appLayout??"default";return u&&!(u in Ys)&&e.fallback&&(u=ye(e.fallback)),u}),a=dr();t.expose({layoutRef:a});const c=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",c),d=Yt().beforeEach(()=>{u(),d()})}let l;return()=>{const d=!!o.value&&o.value in Ys&&!!(i?.meta.layoutTransition??C0),f=d&&Mx([i?.meta.layoutTransition,C0,{onBeforeLeave(){n["~transitionPromise"]=new Promise(h=>{n["~transitionFinish"]=h})},onAfterLeave(){n["~transitionFinish"]?.(),delete n["~transitionFinish"],delete n["~transitionPromise"]}}]),p=l;return l=o.value,Px(f,{default:()=>qt(Ny,{suspensible:!0,onResolve:async()=>{await Jn(c)}},{default:()=>qt(Pee,{layoutProps:Sk(t.attrs,i.meta.layoutProps??{},{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!e.name,isRenderingNewLayout:h=>h!==p&&h===o.value,hasTransition:d},t.slots)})}).default()}}}),Pee=Un({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){const n=e.name;e.shouldProvide&&gs(Kk,{isCurrent:i=>n===!1||n===(i.meta.layout??qP(i.path).appLayout??"default")});const r=Ut(Xi);if(r&&r===Ps()){const i=Ax(),o={};for(const a in i){const c=a;Object.defineProperty(o,c,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?i[c]:r[c]})}gs(Xi,Or(o))}return()=>!n||typeof n=="string"&&!(n in Ys)?t.slots.default?.():qt(Cee,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),Mee={class:"adblocker-modal"},Lee={class:"adblocker-options"},Nee={key:0,class:"adblocker-whitelist-help"},Dee=Un({__name:"AdBlockerModal",props:{modelValue:{type:Boolean}},emits:["update:modelValue","dismiss"],setup(e,{emit:t}){const n=t,r=Ae(!1);function s(){n("dismiss","contributed"),n("update:modelValue",!1)}function i(){n("dismiss","whitelisted"),n("update:modelValue",!1)}function o(){n("dismiss","not-now"),n("update:modelValue",!1)}return(a,c)=>{const l=Wl;return me(),mt(Ry,{to:"body"},[ge(Xd,{name:"modal-fade"},{default:Me(()=>[e.modelValue?(me(),Oe("div",{key:0,role:"dialog","aria-modal":"true","aria-label":"Ad blocker detected",tabindex:"-1",class:"adblocker-overlay",onClick:Rk(o,["self"]),onKeydown:kL(o,["escape"])},[B("div",Mee,[c[8]||(c[8]=B("div",{class:"adblocker-header"},[B("div",{class:"adblocker-icon"},[B("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[B("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})])]),B("h3",{class:"adblocker-title"}," We see you're using an ad blocker "),B("p",{class:"adblocker-subtitle"}," Ads help us keep Blavity free for millions of readers. We'd love your help keeping independent journalism alive. ")],-1)),B("div",Lee,[ge(l,{to:"/support",class:"adblocker-option adblocker-option--primary",onClick:s},{default:Me(()=>[...c[1]||(c[1]=[B("div",{class:"adblocker-option-icon"}
542,[B("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[B("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"})])],-1),B("div",{class:"adblocker-option-content"},[B("span",{class:"adblocker-option-title"},"Support Blavity"),B("span",{class:"adblocker-option-desc"},"Contribute as little as $5/month")],-1),B("svg",{class:"adblocker-option-arrow",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[B("path",{d:"M9 18l6-6-6-6"})],-1)])]),_:1}),B("button",{class:"adblocker-option",onClick:c[0]||(c[0]=u=>r.value=!ye(r))},[c[3]||(c[3]=B("div",{class:"adblocker-option-icon adblocker-option-icon--secondary"},[B("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[B("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),B("path",{d:"M9 12l2 2 4-4"})])],-1)),c[4]||(c[4]=B("div",{class:"adblocker-option-content"},[B("span",{class:"adblocker-option-title"},"Allow ads on Blavity"),B("span",{class:"adblocker-option-desc"},"Whitelist us in your ad blocker")],-1)),(me(),Oe("svg",{class:"adblocker-option-arrow",style:ao({transform:ye(r)?"rotate(90deg)":""}),width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[...c[2]||(c[2]=[B("path",{d:"M9 18l6-6-6-6"},null,-1)])],4))]),ge(Xd,{name:"expand"},{default:Me(()=>[ye(r)?(me(),Oe("div",Nee,[c[5]||(c[5]=B("p",{class:"adblocker-help-intro"}," Here's how to whitelist blavity.com: ",-1)),c[6]||(c[6]=B("ul",{class:"adblocker-help-list"},[B("li",null,[B("strong",null,"uBlock Origin:"),Le(" Click the icon â click the power button to disable for this site")]),B("li",null,[B("strong",null,"AdBlock Plus:"),Le(` Click the icon â "Don't run on pages on this site"`)]),B("li",null,[B("strong",null,"Brave:"),Le(" Click the Shields icon in the address bar â toggle Shields off")]),B("li",null,[B("strong",null,"Safari:"),Le(" Settings â Extensions â uncheck your ad blocker for this site")])],-1)),B("button",{class:"adblocker-help-done",onClick:i}," I've whitelisted Blavity ")])):fr("",!0)]),_:1}),B("button",{class:"adblocker-option adblocker-option--dismiss",onClick:o},[...c[7]||(c[7]=[B("div",{class:"adblocker-option-content"},[B("span",{class:"adblocker-option-title adblocker-option-title--muted"},"Not right now"),B("span",{class:"adblocker-option-desc"},"We'll ask again in a week")],-1)])])])])],32)):fr("",!0)]),_:1})])}}}),Gr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},$ee=Gr(Dee,[["__scopeId","data-v-af5de148"]]);function Pa(e){return Fl()?(vy(e),!0):!1}function As(e){return typeof e=="function"?e():ye(e)}const dy=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fee=e=>e!=null,Uee=Object.prototype.toString,Hee=e=>Uee.call(e)==="[object Object]",$d=()=>{};function jee(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",s=e.slice(r.length),i=Number.parseFloat(r)+t;return Number.isNaN(i)?e:i+s}const Bee=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,qee=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function Wee(e,t,n,r){let s=e<12?"AM":"PM";return r&&(s=s.split("").reduce((i,o)=>i+=`${o}.`,"")),n?s.toLowerCase():s}
542function xi(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Vee(e,t,n={}){var r;const s=e.getFullYear(),i=e.getMonth(),o=e.getDate(),a=e.getHours(),c=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),d=e.getDay(),f=(r=n.customMeridiem)!=null?r:Wee,p={Yo:()=>xi(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>i+1,Mo:()=>xi(i+1),MM:()=>`${i+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(o),Do:()=>xi(o),DD:()=>`${o}`.padStart(2,"0"),H:()=>String(a),Ho:()=>xi(a),HH:()=>`${a}`.padStart(2,"0"),h:()=>`${a%12||12}`.padStart(1,"0"),ho:()=>xi(a%12||12),hh:()=>`${a%12||12}`.padStart(2,"0"),m:()=>String(c),mo:()=>xi(c),mm:()=>`${c}`.padStart(2,"0"),s:()=>String(l),so:()=>xi(l),ss:()=>`${l}`.padStart(2,"0"),SSS:()=>`${u}`.padStart(3,"0"),d:()=>d,dd:()=>e.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>f(a,c),AA:()=>f(a,c,!1,!0),a:()=>f(a,c,!0),aa:()=>f(a,c,!0,!0)};return t.replace(qee,(h,g)=>{var S,y;return(y=g??((S=p[h])==null?void 0:S.call(p)))!=null?y:h})}function zee(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const t=e.match(Bee);if(t){const n=t[2]-1||0,r=(t[7]||"0").substring(0,3);return new Date(t[1],n,t[3]||1,t[4]||0,t[5]||0,t[6]||0,r)}}return new Date(e)}function Qre(e,t="HH:mm:ss",n={}){return Ve(()=>Vee(zee(As(e)),As(t),n))}function Gee(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const o=Ae(!1);function a(){i&&(clearInterval(i),i=null)}function c(){o.value=!1,a()}function l(){const u=As(t);u<=0||(o.value=!0,s&&e(),a(),i=setInterval(e,u))}if(r&&dy&&l(),gt(t)||typeof t=="function"){const u=rn(t,()=>{o.value&&dy&&l()});Pa(u)}return Pa(c),{isActive:o,pause:c,resume:l}}function Fd(e){var t;const n=As(e);return(t=n?.$el)!=null?t:n}const Ja=dy?window:void 0;function Kee(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Ja):[t,n,r,s]=e,!t)return $d;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),c=rn(()=>[Fd(t),As(s)],([u,d])=>{if(o(),!u)return;const f=Hee(d)?{...d}:d;i.push(...n.flatMap(p=>r.map(h=>a(u,p,h,f))))},{immediate:!0,flush:"post"}),l=()=>{c(),o()};return Pa(l),l}function Yee(){const e=Ae(!1),t=Zn();return t&&ci(()=>{e.value=!0},t),e}function WP(e){const t=Yee();return Ve(()=>(t.value,!!e()))}function Xee(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=Ja}=t,i=Ae(!1),o=r?1e3/r:null;let a=0,c=null;function l(f){if(!i.value||!s)return;a||(a=f);const p=f-a;if(o&&p<o){c=s.requestAnimationFrame(l);return}a=f,e({delta:p,timestamp:f}),c=s.requestAnimationFrame(l)}function u(){!i.value&&s&&(i.value=!0,a=0,c=s.requestAnimationFrame(l))}function d(){i.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&u(),Pa(d),{isActive:ri(i),pause:d,resume:u}}function _c(e,t={}){const{window:n=Ja}=t,r=WP(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const i=Ae(!1),o=l=>{i.value=l.matches},a=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",o):s.removeListener(o))},c=$T(()=>{r.value&&(a(),s=n.matchMedia(As(e)),"addEventListener"in s?s.addEventListener("change",o):s.addListener(o),i.value=s.matches)});return Pa(()=>{c(),a(),s=void 0}),i}const ese={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function tse(e,t={}){function n(u,d){let f=As(e[As(u)]);return d!=null&&(f=jee(f,d)),typeof f=="number"&&(f=`${f}px`),f}const{window:r=Ja,strategy:s="min-width"}=t;function i(u){return r?r.matchMedia(u).matches:!1}const o=u=>_c(()=>`(min-width: ${n(u)})`,t),a=u=>_c(()=>`(max-width: ${n(u)})`,t),c=Object.keys(e).reduce((u,d)=>(Object.defineProperty(u,d,{get:()=>s==="min-width"?o(d):a(d),enumerable:!0,configurable:!0}),u),{});function l(){const u=Object.keys(e).map(d=>[d,o(d)]);return Ve(()=>u.filter(([,d])=>d.value).map(([d])=>d))}return Object.assign(c,{greaterOrEqual:o,smallerOrEqual:a,greater(u){return _c(()=>`(min-width: ${n(u,.1)})`,t)},smaller(u){return _c(()=>`(max-width: ${n(u,-.1)})`,t)},between(u,d){return _c(()=>`(min-width: ${n(u)}) and (max-width: ${n(d,-.1)})`,t)},isGreater(u){return i(`(min-width: ${n(u,.1)})`)},isGreaterOrEqual(u){return i(`(min-width: ${n(u)})`)},isSmaller(u){return i(`(max-width: ${n(u,-.1)})`)},isSmallerOrEqual(u){return i(`(max-width: ${n(u)})`)},isInBetween(u,d){return i(`(min-width: ${n(u)}) and (max-width: ${n(d,-.1)})`)},current:l,active(){const u=l();return Ve(()=>u.value.length===0?"":u.value.at(-1))}})}function Jee(e,t,n={}){const{root:r,rootMargin:s="0px",threshold:i=.1,window:o=Ja,immediate:a=!0}=n,c=WP(()=>o&&"IntersectionObserver"in o),l=Ve(()=>{const h=As(e);return(Array.isArray(h)?h:[h]).map(Fd).filter(Fee)});let u=$d;const d=Ae(a),f=c.value?rn(()=>[l.value,Fd(r),d.value],([h,g])=>
542{if(u(),!d.value||!h.length)return;const S=new IntersectionObserver(t,{root:Fd(g),rootMargin:s,threshold:i});h.forEach(y=>y&&S.observe(y)),u=()=>{S.disconnect(),u=$d}},{immediate:a,flush:"post"}):$d,p=()=>{u(),f(),d.value=!1};return Pa(p),{isSupported:c,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}function nse(e,t={}){const{window:n=Ja,scrollTarget:r,threshold:s=0}=t,i=Ae(!1);return Jee(e,o=>{let a=i.value,c=0;for(const l of o)l.time>=c&&(c=l.time,a=l.isIntersecting);i.value=a},{root:r,window:n,threshold:s}),i}function rse(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Ae(new Date),s=()=>r.value=new Date,i=n==="requestAnimationFrame"?Xee(s,{immediate:!0}):Gee(s,n,{immediate:!0});return t?{now:r,...i}:r}function Zee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qee(e){return e.replace(/[.*+?^$|[\](){}\\-]/g,"\\$&")}function ete(e){var t=e.charAt(e.length-1),n=parseInt(e,10),r=new Date;switch(t){case"Y":r.setFullYear(r.getFullYear()+n);break;case"M":r.setMonth(r.getMonth()+n);break;case"D":r.setDate(r.getDate()+n);break;case"h":r.setHours(r.getHours()+n);break;case"m":r.setMinutes(r.getMinutes()+n);break;case"s":r.setSeconds(r.getSeconds()+n);break;default:r=new Date(e)}return r}function tte(e){for(var t="",n=0,r=Object.keys(e);n<r.length;n++){var s=r[n];if(/^expires$/i.test(s)){var i=e[s],o=void 0;typeof i=="object"?o=i:(i+=typeof i=="number"?"D":"",o=ete(String(i))),t+=";".concat(s,"=").concat(o.toUTCString())}else/^secure|partitioned$/.test(s)?e[s]&&(t+=";".concat(s)):t+=";".concat(s,"=").concat(e[s])}return Zee(e,"path")||(t+=";path=/"),t}function nte(e,t){if(t===void 0&&(t=decodeURIComponent),typeof e!="string"||!e)return null;var n=new RegExp("(?:^|; )".concat(Qee(e),"(?:=([^;]*))?(?:;|$)")),r=n.exec(document.cookie);return r===null?null:typeof t=="function"?t(r[1]):r[1]}function Yg(e,t,n,r){n===void 0&&(n=encodeURIComponent),typeof n=="object"&&n!==null&&(r=n,n=encodeURIComponent);var s=tte(r||{}),i=typeof n=="function"?n(t):t,o="".concat(e,"=").concat(i).concat(s);document.cookie=o}var mh={name:"vue-cookie-accept-decline",props:{elementId:{type:String,required:!0},debug:{type:Boolean,default:!1},disableDecline:{type:Boolean,default:!1},position:{type:String,default:"bottom-left"},type:{type:String,default:"floating"},transitionName:{type:String,default:"slideFromBottom"},showPostponeButton:{type:Boolean,default:!1},forceCookies:{type:Boolean,default:!1}},data:function(){return{status:null,supportsLocalStorage:!0,isOpen:!1}},computed:{containerPosition:function(){return"cookie--"+this.position},containerType:function(){return"cookie--"+this.type}},mounted:function(){this.checkLocalStorageFunctionality(),this.init()},methods:{init:function(){var t=this.getCookieStatus();t&&(t==="accept"||t==="decline"||t==="postpone")&&(this.isOpen=!1),t||(this.isOpen=!0),this.status=t,this.$emit("status",t)},checkLocalStorageFunctionality:function(){if(this.forceCookies){this.supportsLocalStorage=!1;return}try{var t="__vue-cookie-accept-decline-check-localStorage";window.localStorage.setItem(t,t),window.localStorage.removeItem(t)}catch{console.error("Local storage is not supported, falling back to cookie use"),this.supportsLocalStorage=!1}},setCookieStatus:function(t){this.supportsLocalStorage?(t==="accept"&&localStorage.setItem("vue-cookie-accept-decline-"+this.elementId,"accept"),t==="decline"&&localStorage.setItem("vue-cookie-accept-decline-"+this.elementId,"decline"),t==="postpone"&&localStorage.setItem("vue-cookie-accept-decline-"+this.elementId,"postpone")):(t==="accept"&&Yg("vue-cookie-accept-decline-"+this.elementId,"accept"),t==="decline"&&Yg("vue-cookie-accept-decline-"+this.elementId,"decline"),t==="postpone"&&Yg("vue-cookie-accept-decline-"+this.elementId,"postpone"))},getCookieStatus:function(){return this.supportsLocalStorage?localStorage.getItem("vue-cookie-accept-decline-"+this.elementId):nte("vue-cookie-accept-decline-"+this.elementId)},accept:function(){this.debug||this.setCookieStatus("accept"),this.status="accept",this.isOpen=!1,this.$emit("clicked-accept")},decline:function(){this.debug||this.setCookieStatus("decline"),this.status="decline",this.isOpen=!1,this.$emit("clicked-decline")},postpone:function(){this.debug||this.setCookieStatus("postpone"),this.status="postpone",this.isOpen=!1,this.$emit("clicked-postpone")},removeCookie:function(){localStorage.removeItem("vue-cookie-accept-decline-"+this.elementId),this.status=null,this.$emit("removed-cookie")}}},rte=["id"],ste=Le("Ã"),ite=Le(" We use cookies to ensure you get the best experience on our website. "),ote=B("a",{href:"https://cookie
542sandyou.com/",target:"_blank"},"Learn More...",-1),ate=Le("Opt Out"),cte=Le("Got It!");function lte(e,t,n,r,s,i){return me(),mt(Xd,{appear:"",name:n.transitionName},{default:Me(function(){return[s.isOpen?(me(),Oe("div",{key:0,class:Mt(["cookie",["cookie__"+n.type,"cookie__"+n.type+"--"+n.position]]),id:n.elementId},[B("div",{class:Mt("cookie__"+n.type+"__wrap")},[n.showPostponeButton===!0?(me(),Oe("div",{key:0,onClick:t[0]||(t[0]=function(){for(var o=[],a=arguments.length;a--;)o[a]=arguments[a];return i.postpone&&i.postpone.apply(i,o)}),class:Mt("cookie__"+n.type+"__postpone-button"),title:"Close"},[Ru(e.$slots,"postponeContent",{},function(){return[ste]})],2)):fr("v-if",!0),B("div",{class:Mt("cookie__"+n.type+"__content")},[Ru(e.$slots,"message",{},function(){return[ite,ote]})],2),B("div",{class:Mt("cookie__"+n.type+"__buttons")},[n.disableDecline===!1?(me(),Oe("button",{key:0,onClick:t[1]||(t[1]=function(){for(var o=[],a=arguments.length;a--;)o[a]=arguments[a];return i.decline&&i.decline.apply(i,o)}),class:Mt(["cookie__"+n.type+"__buttons__button","cookie__"+n.type+"__buttons__button--decline"])},[Ru(e.$slots,"declineContent",{},function(){return[ate]})],2)):fr("v-if",!0),B("button",{onClick:t[2]||(t[2]=function(){for(var o=[],a=arguments.length;a--;)o[a]=arguments[a];return i.accept&&i.accept.apply(i,o)}),class:Mt(["cookie__"+n.type+"__buttons__button","cookie__"+n.type+"__buttons__button--accept"])},[Ru(e.$slots,"acceptContent",{},function(){return[cte]})],2)],2)],2)],10,rte)):fr("v-if",!0)]}),_:3},8,["name"])}mh.render=lte;mh.__file="src/vue-cookie-accept-decline.vue";function fy(e){fy.installed||(fy.installed=!0,e.component("VueCookieAcceptDecline",mh))}var ute={install:fy},nl=null;typeof window<"u"?nl=window.Vue:typeof global<"u"&&(nl=global.Vue);nl&&"use"in nl&&nl.use(ute);const dte="vue-cookie-accept-decline-cookie-popup",py=Ae(!1);function fte(){if(typeof window>"u")return;const e=localStorage.getItem(dte);py.value=e==="accept"}function pte(){function e(){py.value=!0}return fte(),{cookieAccepted:ri(py),onCookieAccepted:e}}const hte=7,Xg="blavity_adblock_dismissed",Jg="blavity_adblock_whitelisted";function gte(){const e=Ae(!1),t=Ae(!1),n=Ae(!1);function r(){if(localStorage.getItem(Jg)==="true")return!0;const u=localStorage.getItem(Xg);if(!u)return!1;try{const{timestamp:d,reason:f}=JSON.parse(u);if(f==="contributed")return!0;const p=Date.now()-d,h=hte*24*60*60*1e3;return p<h}catch{return!1}}async function s(){await new Promise(u=>setTimeout(u,3e3));const l=i()||o();return e.value=l,t.value=!0,l&&!r()&&(n.value=!0),l}function i(){try{const l=document.createElement("div");l.className="ad-banner textad adsbox ad-placement",l.setAttribute("data-ad-slot","test"),l.style.cssText="position:absolute;top:-999px;left:-999px;width:1px;height:1px;",l.innerHTML=" ",document.body.appendChild(l);const u=window.getComputedStyle(l),d=l.offsetHeight===0||u.display==="none"||u.visibility==="hidden"||!l.parentNode;return l.parentNode&&l.parentNode.removeChild(l),d}catch{return!1}}function o(){try{const l=!window.googletag||typeof window.googletag.pubads!="function",u=!window.htlbid||typeof window.htlbid.setTargeting!="function";return l&&u}catch{return!1}}function a(l="not-now"){n.value=!1,l==="whitelisted"&&localStorage.setItem(Jg,"true"),localStorage.setItem(Xg,JSON.stringify({timestamp:Date.now(),reason:l}))}function c(){localStorage.removeItem(Xg),localStorage.removeItem(Jg)}return{isAdBlocked:ri(e),hasChecked:ri(t),showModal:n,detect:s,dismiss:a,resetDismissal:c}}const tT=()=>{const e=Ae(!1),t=Ae(0),n=()=>{e.value=!0,t.value=performance.now()},r=()=>{e.value=!1},s=(o,a)=>{!a.startsWith("/")||a.startsWith("//")||(o.preventDefault(),n(),Bl(a).then(()=>{r()}).catch(()=>{r()}))};return{isNavigating:ri(e),startNavigation:n,endNavigation:r,optimizeLinkClick:s,setupNavigationOptimization:()=>{const o=a=>{const l=a.target.closest("a");if(l&&l.href){const u=new URL(l.href),d=u.pathname+u.search+u.hash;u.origin===window.location.origin&&s(a,d)}};return document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0)}}}};function mte(){const t=Gt().public.HOST_URL||"https://blavity.com",n=`${t}/images/logo-blavity.png`,r=["https://www.facebook.com/blavity","https://www.instagram.com/blavity/","https://x.com/blavity","https://www.youtube.com/blavity","https://www.linkedin.com/company/blavity","https://www.tiktok.com/@blavity"].filter(
vendor: 10,076 bytes, line 542
542Boolean),s={"@context":"https://schema.org","@type":"Organization","@id":`${t}#organization`,name:"Blavity",url:t,logo:{"@type":"ImageObject",url:n},sameAs:r};return{schema:s,toScript(){return{type:"application/ld+json",innerHTML:JSON.stringify(s),key:"blavity-organization-schema"}}}}var Zg={exports:{}};const _te={},yte=Object.freeze(Object.defineProperty({__proto__:null,default:_te},Symbol.toStringTag,{value:"Module"})),nT=IF(yte);var rT;function vte(){return rT||(rT=1,(function(e){(function(){var t="input is invalid type",n="finalize already called",r=typeof window=="object",s=r?window:{};s.JS_MD5_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",o=!s.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?s=kF:i&&(s=self);var a=!s.JS_MD5_NO_COMMON_JS&&!0&&e.exports,c=!s.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),u=[128,32768,8388608,-2147483648],d=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),h=[],g;if(c){var S=new ArrayBuffer(68);g=new Uint8Array(S),h=new Uint32Array(S)}var y=Array.isArray;(s.JS_MD5_NO_NODE_JS||!y)&&(y=function(b){return Object.prototype.toString.call(b)==="[object Array]"});var v=ArrayBuffer.isView;c&&(s.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!v)&&(v=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var m=function(b){var E=typeof b;if(E==="string")return[b,!0];if(E!=="object"||b===null)throw new Error(t);if(c&&b.constructor===ArrayBuffer)return[new Uint8Array(b),!1];if(!y(b)&&!v(b))throw new Error(t);return[b,!1]},_=function(b){return function(E){return new k(!0).update(E)[b]()}},w=function(){var b=_("hex");o&&(b=x(b)),b.create=function(){return new k},b.update=function(A){return b.create().update(A)};for(var E=0;E<f.length;++E){var I=f[E];b[I]=_(I)}return b},x=function(b){var E=nT,I=nT.Buffer,A;I.from&&!s.JS_MD5_NO_BUFFER_FROM?A=I.from:A=function(N){return new I(N)};var $=function(N){if(typeof N=="string")return E.createHash("md5").update(N,"utf8").digest("hex");if(N==null)throw new Error(t);return N.constructor===ArrayBuffer&&(N=new Uint8Array(N)),y(N)||v(N)||N.constructor===I?E.createHash("md5").update(A(N)).digest("hex"):b(N)};return $},T=function(b){return function(E,I){return new C(E,!0).update(I)[b]()}},R=function(){var b=T("hex");b.create=function(A){return new C(A)},b.update=function(A,$){return b.create(A).update($)};for(var E=0;E<f.length;++E){var I=f[E];b[I]=T(I)}return b};function k(b){if(b)h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h,this.buffer8=g;else if(c){var E=new ArrayBuffer(68);this.buffer8=new Uint8Array(E),this.blocks=new Uint32Array(E)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}k.prototype.update=function(b){if(this.finalized)throw new Error(n);var E=m(b);b=E[0];for(var I=E[1],A,$=0,N,O=b.length,D=this.blocks,j=this.buffer8;$<O;){if(this.hashed&&(this.hashed=!1,D[0]=D[16],D[16]=D[1]=D[2]=D[3]=D[4]=D[5]=D[6]=D[7]=D[8]=D[9]=D[10]=D[11]=D[12]=D[13]=D[14]=D[15]=0),I)if(c)for(N=this.start;$<O&&N<64;++$)A=b.charCodeAt($),A<128?j[N++]=A:A<2048?(j[N++]=192|A>>>6,j[N++]=128|A&63):A<55296||A>=57344?(j[N++]=224|A>>>12,j[N++]=128|A>>>6&63,j[N++]=128|A&63):(A=65536+((A&1023)<<10|b.charCodeAt(++$)&1023),j[N++]=240|A>>>18,j[N++]=128|A>>>12&63,j[N++]=128|A>>>6&63,j[N++]=128|A&63);else for(N=this.start;$<O&&N<64;++$)A=b.charCodeAt($),A<128?D[N>>>2]|=A<<d[N++&3]:A<2048?(D[N>>>2]|=(192|A>>>6)<<d[N++&3],D[N>>>2]|=(128|A&63)<<d[N++&3]):A<55296||A>=57344?(D[N>>>2]|=(224|A>>>12)<<d[N++&3],D[N>>>2]|=(128|A>>>6&63)<<d[N++&3],D[N>>>2]|=(128|A&63)<<d[N++&3]):(A=65536+((A&1023)<<10|b.charCodeAt(++$)&1023),D[N>>>2]|=(240|A>>>18)<<d[N++&3],D[N>>>2]|=(128|A>>>12&63)<<d[N++&3],D[N>>>2]|=(128|A>>>6&63)<<d[N++&3],D[N>>>2]|=(128|A&63)<<d[N++&3]);else if(c)for(N=this.start;$<O&&N<64;++$)j[N++]=b[$];else for(N=this.start;$<O&&N<64;++$)D[N>>>2]|=b[$]<<d[N++&3];this.lastByteIndex=N,this.bytes+=N-this.start,N>=64?(this.start=N-64,this.hash(),this.hashed=!0):this.start=N}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},k.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,E=this.lastByteIndex;b[E>>>2]|=u[E&3],E>=56&&(this.hashed||this.hash(),b[0]=b[16],b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.bytes<<3,b[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},k.prototype.hash=function(){var b,E,I,A,$,N,O=this.blocks;this.first?(b=O[0]-680876937,b=(b<<7|b>>>25)-271733879<<0,A=(-1732584194^b&2004318071)+O[1]-117830708,A=(A<<12|A>>>20)+b<<0,I=(-271733879^A&(b^-271733879))+O[2]-1126478375,I=(I<<17|I>>>15)+A<<0,E=(b^I&(A^b))+O[3]-1316259209,E=(E<<22|E>>>10)+I<<0):(b=this.h0,E=this.h1,I=this.h2,A=this.h3,b+=(A^E&(I^A))+O[0]-680876936,b=(b<<7|b>>>25)+E<<0,A+=(I^b&(E^I))+O[1]-389564586,A=(A<<12|A>>>20)+b<<0,I+=(E^A&(b^E))+O[2]+606105819,I=(I<<17|I>>>15)+A<<0,E+=(b^I&(A^b))+O[3]-1044525330,E=(E<<22|E>>>10)+I<<0),b+=(A^E&(I^A))+O[4]-176418897,b=(b<<7|b>>>25)+E<<0,A+=(I^b&(E^I))+O[5]+1200080426,A=(A<<12|A>>>20)+b<<0,I+=(E^A&(b^E))+O[6]-1473231341,I=(I<<17|I>>>15)+A<<0,E+=(b^I&(A^b))+O[7]-45705983,E=(E<<22|E>>>10)+I<<0,b+=(A^E&(I^A))+O[8]+1770035416,b=(b<<7|b>>>25)+E<<0,A+=(I^b&(E^I))+O[9]-1958414417,A=(A<<12|A>>>20)+b<<0,I+=(E^A&(b^E))+O[10]-42063,I=(I<<17|I>>>15)+A<<0,E+=(b^I&(A^b))+O[11]-1990404162,E=(E<<22|E>>>10)+I<<0,b+=(A^E&(I^A))+O[12]+1804603682,b=(b<<7|b>>>25)+E<<0,A+=(I^b&(E^I))+O[13]-40341101,A=(A<<12|A>>>20)+b<<0,I+=(E^A&(b^E))+O[14]-1502002290,I=(I<<17|I>>>15)+A<<0,E+=(b^I&(A^b))+O[15]+1236535329,E=(E<<22|E>>>10)+I<<0,b+=(I^A&(E^I))+O[1]-165796510,b=(b<<5|b>>>27)+E<<0,A+=(E^I&(b^E))+O[6]-1069501632,A=(A<<9|A>>>23)+b<<0,I+=(b^E&(A^b))+O[11]+643717713,I=(I<<14|I>>>18)+A<<0,E+=(A^b&(I^A))+O[0]-373897302,E=(E<<20|E>>>12)+I<<0,b+=(I^A&(E^I))+O[5]-701558691,b=(b<<5|b>>>27)+E<<0,A+=(E^I&(b^E))+O[10]+38016083,A=(A<<9|A>>>23)+b<<0,I+=(b^E&(A^b))+O[15]-660478335,I=(I<<14|I>>>18)+A<<0,E+=(A^b&(I^A))+O[4]-405537848,E=(E<<20|E>>>12)+I<<0,b+=(I^A&(E^I))+O[9]+568446438,b=(b<<5|b>>>27)+E<<0,A+=(E^I&(b^E))+O[14]-1019803690,A=(A<<9|A>>>23)+b<<0,I+=(b^E&(A^b))+O[3]-187363961,I=(I<<14|I>>>18)+A<<0,E+=(A^b&(I^A))+O[8]+1163531501,E=(E<<20|E>>>12)+I<<0,b+=(I^A&(E^I))+O[13]-1444681467,b=(b<<5|b>>>27)+E<<0,A+=(E^I&(b^E))+O[2]-51403784,A=(A<<9|A>>>23)+b<<0,I+=(b^E&(A^b))+O[7]+1735328473,I=(I<<14|I>>>18)+A<<0,E+=(A^b&(I^A))+O[12]-1926607734,E=(E<<20|E>>>12)+I<<0,$=E^I,b+=($^A)+O[5]-378558,b=(b<<4|b>>>28)+E<<0,A+=($^b)+O[8]-2022574463,A=(A<<11|A>>>21)+b<<0,N=A^b,I+=(N^E)+O[11]+1839030562,I=(I<<16|I>>>16)+A<<0,E+=(N^I)+O[14]-35309556,E=(E<<23|E>>>9)+I<<0,$=E^I,b+=($^A)+O[1]-1530992060,b=(b<<4|b>>>28)+E<<0,A+=($^b)+O[4]+1272893353,A=(A<<11|A>>>21)+b<<0,N=A^b,I+=(N^E)+O[7]-155497632,I=(I<<16|I>>>16)+A<<0,E+=(N^I)+O[10]-1094730640,E=(E<<23|E>>>9)+I<<0,$=E^I,b+=($^A)+O[13]+681279174,b=(b<<4|b>>>28)+E<<0,A+=($^b)+O[0]-358537222,A=(A<<11|A>>>21)+b<<0,N=A^b,I+=(N^E)+O[3]-722521979,I=(I<<16|I>>>16)+A<<0,E+=(N^I)+O[6]+76029189,E=(E<<23|E>>>9)+I<<0,$=E^I,b+=($^A)+O[9]-640364487,b=(b<<4|b>>>28)+E<<0,A+=($^b)+O[12]-421815835,A=(A<<11|A>>>21)+b<<0,N=A^b,I+=(N^E)+O[15]+530742520,I=(I<<16|I>>>16)+A<<0,E+=(N^I)+O[2]-995338651,E=(E<<23|E>>>9)+I<<0,b+=(I^(E|~A))+O[0]-198630844,b=(b<<6|b>>>26)+E<<0,A+=(E^(b|~I))+O[7]+1126891415,A=(A<<10|A>>>22)+b<<0,I+=(b^(A|~E))+O[14]-1416354905,I=(I<<15|I>>>17)+A<<0,E+=(A^(I|~b))+O[5]-57434055,E=(E<<21|E>>>11)+I<<0,b+=(I^(E|~A))+O[12]+1700485571,b=(b<<6|b>>>26)+E<<0,A+=(E^(b|~I))+O[3]-1894986606,A=(A<<10|A>>>22)+b<<0,I+=(b^(A|~E))+O[10]-1051523,I=(I<<15|I>>>17)+A<<0,E+=(A^(I|~b))+O[1]-2054922799,E=(E<<21|E>>>11)+I<<0,b+=(I^(E|~A))+O[8]+1873313359,b=(b<<6|b>>>26)+E<<0,A+=(E^(b|~I))+O[15]-30611744,A=(A<<10|A>>>22)+b<<0,I+=(b^(A|~E))+O[6]-1560198380,I=(I<<15|I>>>17)+A<<0,E+=(A^(I|~b))+O[13]+1309151649,E=(E<<21|E>>>11)+I<<0,b+=(I^(E|~A))+O[4]-145523070,b=(b<<6|b>>>26)+E<<0,A+=(E^(b|~I))+O[11]-1120210379,A=(A<<10|A>>>22)+b<<0,I+=(b^(A|~E))+O[2]+718787259,I=(I<<15|I>>>17)+A<<0,E+=(A^(I|~b))+O[9]-343485551,E=(E<<21|E>>>11)+I<<0,this.first?(this.h0=b+1732584193<<0,this.h1=E-271733879<<0,this.h2=I-1732584194<<0,this.h3=A+271733878<<0,this.first=!1):(this.h0=this.h0+b<<0,this.h1=this.h1+E<<0,this.h2=this.h2+I<<0,this.h3=this.h3+A<<0)},k.prototype.hex=function(){this.finalize();var b=this.h0,E=this.h1,I=this.h2,A=this.h3;return l[b>>>4&15]+l[b&15]+l[b>>>12&15]+l[b>>>8&15]+l[b>>>20&15]+l[b>>>16&15]+l[b>>>28&15]+l[b>>>24&15]+l[E>>>4&15]+l[E&15]+l[E>>>12&15]+l[E>>>8&15]+l[E>>>20&15]+l[E>>>16&15]+l[E>>>28&15]+l[E>>>24&15]+l[I>>>4&15]+l[I&15]+l[I>>>12&15]+l[I>>>8&15]+l[I>>>20&15]+l[I>>>16&15]+l[I>>>28&15]+l[I>>>24&15]+l[A>>>4&15]+l[A&15]+l[A>>>12&15]+l[A>>>8&15]+l[A>>>20&15]+l[A>>>16&15]+l[A>>>28&15]+l[A>>>24&15]},k.prototype.toString=k.prototype.hex,k.prototype.digest=function(){this.finalize();var b=this.h0,E=this.h1,I=this.h2,A=this.h3;return[b&255,b>>>8&255,b>>>16&255,b>>>24&255,E&255,E>>>8&255,E>>>16&255,E>>>24&255,I&255,I>>>8&255,I>>>16&255,I>>>24&255,A&255,A>>>8&255,A>>>16&255,A>>>24&255]},k.prototype.array=k.prototype.digest,k.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(16),E=new Uint32Array(b);return E[0]=this.h0,E[1]=this.h1,E[2]=this.h2,E[3]=this.h3,b},k.prototype.buffer=k.prototype.arrayBuffer,k.prototype.base64=function(){for(var b,E,I,A="",$=this.array(),N=0;N<15;)b=$[N++],E=$[N++],I=$[N++],A+=p[b>>>2]+p[(b<<4|E>>>4)&63]+p[(E<<2|I>>>6)&63]+p[I&63];return b=$[N],A+=p[b>>>2]+p[b<<4&63]+"==",A};function C(b,E){var I,A=m(b);if(b=A[0],A[1]){var $=[],N=b.length,O=0,D;for(I=0;I<N;++I)D=b.charCodeAt(I),D<128?$[O++]=D:D<2048?($[O++]=192|D>>>6,$[O++]=128|D&63):D<55296||D>=57344?($[O++]=224|D>>>12,$[O++]=128|D>>>6&63,$[O++]=128|D&63):(D=65536+((D&1023)<<10|b.charCodeAt(++I)&1023),$[O++]=240|D>>>18,$[O++]=128|D>>>12&63,$[O++]=128|D>>>6&63,$[O++]=128|D&63);
542b=$}b.length>64&&(b=new k(!0).update(b).array());var j=[],q=[];for(I=0;I<64;++I){var oe=b[I]||0;j[I]=92^oe,q[I]=54^oe}k.call(this,E),this.update(q),this.oKeyPad=j,this.inner=!0,this.sharedMemory=E}C.prototype=new k,C.prototype.finalize=function(){if(k.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();k.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(b),k.prototype.finalize.call(this)}};var M=w();M.md5=M,M.md5.hmac=R(),a?e.exports=M:s.md5=M})()})(Zg)),Zg.exports}var bte=vte();const wte=e=>{if(!e)return null;let t=e.toLowerCase().trim();return t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t||(t="/"),bte.md5(t)};function Ste(){const e=Ps(),t=r=>{try{const s=wte(r);if(!s)return;window.htlbid=window.htlbid||{},window.htlbid.cmd=window.htlbid.cmd||[],window.htlbid.cmd.push(function(){window.htlbid.setTargeting("hurl",s),window.dispatchEvent(new CustomEvent("htlbid:targeting:set",{detail:{key:"hurl",value:s,path:r}}))})}catch{}};t(e.path);let n=!0;rn(()=>e.path,r=>{if(n){n=!1;return}t(r)},{immediate:!1})}const Ete=()=>{const e=async r=>{try{const s=await $fetch("/api/uid2/set-email",{method:"POST",body:{email:r}});return s.success?(window.__uid2Data={hem256:s.hem256,uid2Hash:s.uid2Hash,timestamp:Date.now(),source:"server-api"},window.htlbid&&window.htlbid.cmd&&window.htlbid.cmd.push(function(){typeof window.htlbid.setUserData=="function"&&window.htlbid.setUserData({hem256:s.hem256}),typeof window.htlbid.setTargeting=="function"&&(window.htlbid.setTargeting("hem256",s.hem256),window.htlbid.setTargeting("uid2",s.uid2Hash))}),localStorage.setItem("lytics_user_email",r),!0):!1}catch{return!1}},t=()=>{const r=window.__uid2Data;if(r&&r.source==="ssr-html-injection")return r;const s=document.cookie.match(/(?:^|; )uid2_hem256=([^;]+)/),i=document.cookie.match(/(?:^|; )uid2_uid2hash=([^;]+)/);return s&&i?{hem256:decodeURIComponent(s[1]),uid2Hash:decodeURIComponent(i[1]),source:"cookies"}:null};return{setEmailOnServer:e,checkServerData:t,initializeServerUID2:()=>{const r=t();if(r)window.htlbid&&window.htlbid.cmd&&window.htlbid.cmd.push(function(){typeof window.htlbid.setUserData=="function"&&window.htlbid.setUserData({hem256:r.hem256})});else{const s=localStorage.getItem("lytics_user_email");s&&e(s)}}}},Tte={key:0,class:"fixed top-0 left-0 right-0 z-50 h-1 bg-gradient-to-r from-blue-500 to-purple-500 animate-pulse"},kte=Un({__name:"app",setup(e){const t=Ae(!1),n=Gt(),{onCookieAccepted:r}=pte(),{showModal:s,detect:i,dismiss:o}=gte();function a(y){o(y)}function c(y){y==="accept"&&r()}const{isNavigating:l}=tT(),u=Ae({utm_campaign:"",utm_source:"",utm_medium:""}),{toScript:d}=mte();Wy({link:[{rel:"dns-prefetch",href:"https://api.r1cdn.com"},{rel:"dns-prefetch",href:"https://api.viglink.com"},{rel:"dns-prefetch",href:"https://cdn.blavity.com"},{rel:"preconnect",href:"https://api.r1cdn.com",crossorigin:"anonymous"},{rel:"preconnect",href:"https://api.viglink.com",crossorigin:"anonymous"}],meta:[{name:"referrer",content:"no-referrer-when-downgrade"},{"http-equiv":"origin-trial",content:"*"}],script:[d(),{src:n.public.APP_ENV==="prod"?"https://htlbid.com/v3/blavity.com/htlbid.js":"https://htlbid.com/stage/v3/blavity.com/htlbid.js",async:!0}],style:[{children:mF}]});let f=!0;const p=bt(),h=Ps();p.hook("page:start",()=>{if(!f)try{window.__BLAVITY_ARTICLE_METADATA__&&(delete window.__BLAVITY_ARTICLE_METADATA__,window.dispatchEvent(new CustomEvent("blavity:article-metadata:cleared"))),pF(),window.htlbid&&(window.htlbid.cmd=window.htlbid.cmd||[],window.htlbid.cmd.push(function(){const y=window.htlbid,v=["categories","tags","post_id","is_21ninety"];!y||typeof y.setTargeting!="function"||(v.forEach(m=>{y.setTargeting(m,"")}),window.dispatchEvent(new CustomEvent("htlbid:targeting:cleared",{detail:{keys:v}})),typeof y.newPage=="function"&&(y.newPage(),window.dispatchEvent(new CustomEvent("htlbid:newpage:called"))))}))}catch{}});let g=null;const S=()=>{try{const y=Date.now(),v=5e3,m=50;g!==null&&(window.clearInterval(g),g=null),g=window.setInterval(()=>{const _=window.__BLAVITY_ARTICLE_METADATA__;if(_){const w=`${n.public.HOST_URL}${h.fullPath}`;_.url=w,window.dispatchEvent(new CustomEvent("blavity:article-metadata:ready",{detail:_})),g!==null&&(window.clearInterval(g),g=null);return}Date.now()-y>v&&g!==null&&(window.clearInterval(g),g=null)},m)}catch{g!==null&&(window.clearInterval(g),g=null)}};p.hook("page:finish",()=>{const y=f;f&&(f=!1),Jn(()=>{S();try{if(y)return;window.htlbid&&(window.htlbid.cmd=window.htlbid.cmd||[],window.htlbid.cmd.push(function(){typeof window.htlbid.reloadAllSlots=="function"&&window.htlbid.reloadAllSlots()}))}catch{}})}),ci(()=>{const{setupNavigationOptimization:y}=tT(),v=y();Ste(),Kee(document,"pointerenter",()=>{t.value=!0});const m=new MutationObserver(()=>{const w=document.querySelector(".pf-widget-btn.pf-widget-ok"),x=document.querySelector('.pf-custom-form input[type="email"]');w&&x&&(w.addEventListener("click",async T=>{T.preventDefault();const R=x.value;if(R)try{const{data:k}=await af("/api/verify-email",{method:"POST",body:{email:R}},"$hVlVZs9nBr");if(!k.value?.isValid)return;const M=Gt().public.ITERABLE_MESSAGE_TYPE_ID,b={signUpLocation:"lytics_popup",signUpDate_Blavity:new Date().toISOString(),signUpReferringURL_Blavity:document.referrer,signUpUserAgent_Blavity:navigator.userAgent,signUpReferringCampaign_Blavity:Dm(),signUpFormLocation_Blavity:"lytics_popup",signUpUtmMedium_Blavity:$m()};await af("/api/subscribe-user",{method:"POST",body:{email:R,messageTypeId:M,dataFields:b,newsletterName:"Blavity"}},"$RE05su4DsR");const{setEmailOnServer:E}=Ete();await E(R),window.dispatchEvent(new CustomEvent("lytics:email:collected",{detail:{email:R}})),w.form.submit()}catch{}}),m.disconnect())});m.observe(document.body,{childList:!0,subtree:!0}),Da(()=>{v(),g!==null&&(window.clearInterval(g),g=null)});const _=new URL(window.location.href);u.value={utm_campaign:_.searchParams.get("utm_campaign")||u.value.utm_campaign,utm_source:_.searchParams.get("utm_source")||u.value.utm_source,utm_medium:_.searchParams.get("utm_medium")||u.value.utm_medium},i()});try{window.htlbid=window.htlbid||{},window.htlbid.cmd=window.htlbid.cmd||[],window.htlbid.cmd.push(function(){window.htlbid.setTargeting("is_testing",n.public.APP_ENV==="prod"?"no":"yes"),u.value.utm_campaign&&window.htlbid.setTargeting("utm_campaign",u.value.utm_campaign),u.value.utm_medium&&window.htlbid.setTargeting("utm_medium",u.value.utm_medium),u.value.utm_source&&window.htlbid.setTargeting("utm_source",u.value.utm_source),window.htlbid.layout()})}catch{}return(y,v)=>{const m=Eee,_=kee,w=Oee,x=$ee;return me(),Oe(ht,null,[ge(m),ye(l)?(me(),Oe("div",Tte)):fr("",!0),ge(w,null,{default:Me(()=>[ge(_)]),_:1}),v[3]||(v[3]=B("div",{id:"dropdown-container-health"},null,-1)),v[4]||(v[4]=B("div",{id:"dropdown-container-21ninety"},null,-1)),v[5]||(v[5]=B("div",{id:"dropdown-container-blavity-brands"}
542,null,-1)),ye(t)?(me(),mt(ye(mh),{key:1,"element-id":"cookie-popup",position:"bottom",type:"bar","disable-decline":"",onStatus:c},{message:Me(()=>[...v[1]||(v[1]=[B("p",null,[Le(' We use cookies to make our site work, to understand how it is used, and to tailor advertisements presented on our site. By clicking "Accept", you agree to us doing so. You can read more by clicking on our '),B("a",{href:"https://blavity.com/privacy",rel:"noopener",target:"_blank",class:"underline"},"privacy policy"),Le(". ")],-1)])]),acceptContent:Me(()=>[...v[2]||(v[2]=[Le(" Accept ",-1)])]),_:1})):fr("",!0),ge(x,{modelValue:ye(s),"onUpdate:modelValue":v[0]||(v[0]=T=>gt(s)?s.value=T:null),onDismiss:a},null,8,["modelValue"])],64)}}}),sT="https://storage.googleapis.com/blavitynews/images/fallback.jpg",xte={women:"/fallback-women.jpg"};function _h(e){if(!e?.length)return sT;for(const t of e){const n=xte[t.slug];if(n)return n}return sT}function Lb(e){try{const{hostname:t}=new URL(e);return t==="res.cloudinary.com"||t.endsWith(".cloudinary.com")}catch{return!1}}async function Ite(e){return!0}async function Rte(e,t,n){if(!e||!Lb(e)||await Ite())return e;const s=e.split("/").pop()??e;return Gt().public.BROKEN_IMAGE_LOGGING_ENABLED&&(console.error(`[BROKEN-IMAGE] Cloudinary asset not found (SSR): ${e}`,{publicId:s,articleSlug:n?.slug??"unknown"}),et(new Error(`[BROKEN-IMAGE] Cloudinary asset missing: ${s}`),o=>(o.setContext("broken_image",{url:e,publicId:s,articleSlug:n?.slug??"unknown",layer:"ssr"}),o.setFingerprint(["broken-cloudinary-image",s]),o.setTag("broken_image","true"),o.setTag("image_layer","ssr"),o))),_h(t)}function Cte(e){const{featuredMedia:t,publishedAt:n,categories:r}=e,s=new Date(n).getTime();let i=t?.type==="image"?t.url:t?.thumbnail;return(!i||i.trim()===""||s<Date.UTC(2019,0,1))&&(i=_h(r)),{...e,featuredImage:i}}const sse=Object.freeze(Object.defineProperty({__proto__:null,getCategoryFallbackImage:_h,isCloudinaryUrl:Lb,resolveCloudinaryFallback:Rte,useArticleFeaturedImage:Cte},Symbol.toStringTag,{value:"Module"})),Ate=["src","height","width","alt","title","loading"],Ote={__name:"CustomImg",props:{src:{type:String,required:!0},alt:{type:String,required:!0},title:{type:String,required:!0},lazyLoad:{type:Boolean,required:!1,default:!1},height:{type:[Number,String],required:!1,default:null},width:{type:[Number,String],required:!1,default:null},ampLayout:{type:String,required:!1,default:""},align:{type:String,required:!1,default:"center top"},fallbackSrc:{type:String,required:!1,default:null}},setup(e){const t=e,n=Gt(),r=t.lazyLoad?"lazy":null,s=`object-position: ${t.align}`,i=Ae(t.src);rn(()=>t.src,a=>{i.value=a});function o(){const a=t.fallbackSrc??_h();if(i.value===a)return;const c=i.value;if(Lb(c)&&n.public.BROKEN_IMAGE_LOGGING_ENABLED){const l=c.split("/").pop()??c;console.error(`[BROKEN-IMAGE] Image failed to load (client): ${c}`),et(new Error(`[BROKEN-IMAGE] Image failed to load: ${l}`),u=>(u.setContext("broken_image",{url:c,publicId:l,page:typeof window<"u"?window.location.pathname:"unknown",layer:"client"}),u.setFingerprint(["broken-cloudinary-image",l]),u.setTag("broken_image","true"),u.setTag("image_layer","client"),u))}i.value=a}return(a,c)=>(me(),Oe("img",{src:i.value,height:e.height,width:e.width,alt:e.alt,title:e.title,loading:ye(r),style:s,onError:o},null,40,Ate))}},VP={__name:"BlavityLogo",props:{color:{type:String,required:!1,default:""}},setup(e){const t=e,n=`/images/logo-blavity${t.color?`-${t.color}`:""}.svg`;return(r,s)=>{const i=Ote;return me(),mt(i,{src:n,alt:"Blavity News logo",title:"Blavity News logo",height:"20",width:"120","lazy-load":""})}}},Pte={class:"flex items-center gap-1"},Mte=["textContent"],Lte={class:"flex items-center gap-1"},Nte=["textContent"],Dte=["id"],$te={class:"bg-white border border-gray-200 rounded-md shadow-lg flex flex-col gap-y-1 px-3 py-3 min-w-[200px]"},Fte=["textContent"],Ute={__name:"DropdownItem",props:{buttonClass:{type:String,required:!1,default:""},items:{type:Array,required:!0},text:{type:String,required:!0},to:{type:Object,required:!1,default:null}},setup(e){const t=Ae(null),n=Ae(null),r=Ae({}
542),s=Ae(!1);let i=null;const o=()=>{if(!t.value)return;const d=t.value.getBoundingClientRect();r.value={left:`${d.left}px`,top:`${d.bottom}px`}},a=()=>{i&&(clearTimeout(i),i=null),o(),s.value=!0},c=()=>{i=setTimeout(()=>{s.value=!1},100)},l=()=>{i&&(clearTimeout(i),i=null)},u=()=>{s.value=!1};return ci(()=>{o(),window.addEventListener("resize",o),window.addEventListener("scroll",o)}),Da(()=>{window.removeEventListener("resize",o),window.removeEventListener("scroll",o),i&&clearTimeout(i)}),(d,f)=>{const p=Wl;return me(),Oe("div",{ref_key:"dropdownContainer",ref:t,role:"menuitem",tabindex:"0",class:"navbar-dropdown-item flex items-center",onMouseenter:a,onMouseleave:c,onFocusin:a,onFocusout:c},[e.to?(me(),mt(p,{key:0,to:e.to,class:Mt(e.buttonClass)},{default:Me(()=>[B("span",Pte,[B("span",{textContent:lr(e.text)},null,8,Mte),f[0]||(f[0]=B("svg",{class:"w-2 h-[7px] fill-white transition-transform duration-200",width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[B("path",{d:"M4 5.5L0.535898 0.25L7.4641 0.25L4 5.5Z",fill:"currentColor"})],-1))])]),_:1},8,["to","class"])):(me(),Oe("button",{key:1,class:Mt(e.buttonClass)},[B("span",Lte,[B("span",{textContent:lr(e.text)},null,8,Nte),f[1]||(f[1]=B("svg",{class:"w-2 h-[7px] fill-white transition-transform duration-200",width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[B("path",{d:"M4 5.5L0.535898 0.25L7.4641 0.25L4 5.5Z",fill:"currentColor"})],-1))])],2)),(me(),mt(Ry,{to:`#dropdown-container-${e.text.toLowerCase().replace(/\s+/g,"-")}`},[B("div",{id:`dropdown-${e.text}`,ref_key:"dropdown",ref:n,role:"menu",tabindex:"-1",class:Mt(["navbar-dropdown-item__collapse",{"is-open":ye(s)}]),style:ao(ye(r)),onMouseenter:l,onMouseleave:u,onFocusin:l,onFocusout:u},[B("ul",$te,[(me(!0),Oe(ht,null,al(e.items,h=>(me(),Oe("li",{key:h.label},[ge(p,{class:"menu-item block px-3 py-2 text-sm text-black hover:bg-gray-100 rounded transition-colors",to:h.to,target:h.external?"_blank":void 0},{default:Me(()=>[B("span",{textContent:lr(h.label)},null,8,Fte)]),_:2},1032,["to","target"])]))),128))])],46,Dte)],8,["to"]))],544)}}},Hte={},jte={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Bte(e,t){return me(),Oe("svg",jte,[...t[0]||(t[0]=[B("path",{d:"M21.3187 20.0273L15.232 13.9406C16.1766 12.7195 16.6875 11.2266 16.6875 9.65625C16.6875 7.77656 15.9539 6.01406 14.6273 4.68516C13.3008 3.35625 11.5336 2.625 9.65625 2.625C7.77891 2.625 6.01172 3.35859 4.68516 4.68516C3.35625 6.01172 2.625 7.77656 2.625 9.65625C2.625 11.5336 3.35859 13.3008 4.68516 14.6273C6.01172 15.9562 7.77656 16.6875 9.65625 16.6875C11.2266 16.6875 12.7172 16.1766 13.9383 15.2344L20.025 21.3187C20.0428 21.3366 20.064 21.3508 20.0874 21.3604C20.1107 21.3701 20.1357 21.3751 20.1609 21.3751C20.1862 21.3751 20.2112 21.3701 20.2345 21.3604C20.2578 21.3508 20.279 21.3366 20.2969 21.3187L21.3187 20.2992C21.3366 20.2814 21.3508 20.2602 21.3604 20.2369C21.3701 20.2135 21.3751 20.1885 21.3751 20.1633C2
5421.3751 20.138 21.3701 20.113 21.3604 20.0897C21.3508 20.0664 21.3366 20.0452 21.3187 20.0273ZM13.3688 13.3688C12.375 14.3602 11.0578 14.9062 9.65625 14.9062C8.25469 14.9062 6.9375 14.3602 5.94375 13.3688C4.95234 12.375 4.40625 11.0578 4.40625 9.65625C4.40625 8.25469 4.95234 6.93516 5.94375 5.94375C6.9375 4.95234 8.25469 4.40625 9.65625 4.40625C11.0578 4.40625 12.3773 4.95 13.3688 5.94375C14.3602 6.9375 14.9062 8.25469 14.9062 9.65625C14.9062 11.0578 14.3602 12.3773 13.3688 13.3688Z",fill:"currentColor"},null,-1)])])}const qte=Gr(Hte,[["render",Bte]]),Wte={},Vte={viewBox:"0 0 16 16",fill:"none"};function zte(e,t){return me(),Oe("svg",Vte,[...t[0]||(t[0]=[B("path",{d:"M1 1L7.99999 7.99999M7.99999 7.99999L15 15M7.99999 7.99999L15 1M7.99999 7.99999L1 15",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const Gte=Gr(Wte,[["render",zte]]),Kte=["fill"],Yte=["fill"],Xte={__name:"Hamburger",props:{color:{type:String,required:!1,default:""}},setup(e){const t=e;return(n,r)=>(me(),Oe("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:t.color?t.color:"inherit",xmlns:"http://www.w3.org/2000/svg"},[B("path",{d:"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z",fill:t.color?t.color:"inherit"},null,8,Yte)],8,Kte))}},zP=()=>({navItems:[{label:"Briefing",to:{name:"briefing"}},{label:"Entertainment",to:{name:"entertainment"}},{label:"Culture",to:{name:"categories-slug",params:{slug:"culture"}}},{label:"Health",to:{name:"health"},children:[{label:"News",to:"/health/category/health-news"},{label:"Conditions & Care",to:"/health/category/conditions-care"},{label:"Cost & Coverage",to:"/health/category/cost-coverage"},{label:"Wellness",to:"/health/category/wellness"},{label:"Nutrition",to:"/health/category/nutrition"}]},{label:"Blavity U",to:{name:"blavity-u"}},{label:"21Ninety",to:{name:"women"},children:[{label:"Beauty",to:{name:"women-category-slug",params:{slug:"beauty"}}},{label:"Hair",to:{name:"women-category-slug",params:{slug:"hair"}}},{label:"Mind & Body",to:{name:"women-category-slug",params:{slug:"mind-body"}}},{label:"Relationships",to:{name:"women-category-slug",params:{slug:"relationships"}}},{label:"Motherhood",to:{name:"women-category-slug",params:{slug:"motherhood"}}},{label:"Career & Money",to:{name:"women-category-slug",params:{slug:"career-money"}}},{label:"Astrology",to:{name:"women-category-slug",params:{slug:"astrology"}}}]},{label:"Blavity Brands",children:[{label:"Blavity Town Hall",to:{name:"town-hall"}},{label:"Books",to:{path:"/blavity-books"}},{label:"Home & Texture",to:"https://homeandtexture.com/",external:!0},{label:"AfroTech",to:"https://afrotech.com",external:!0},{label:"Travel Noire",to:"https://travelnoire.com",external:!0},{label:"Talent Infusion",to:"https://talentinfusion.io",external:!0}]}]}),Jte={key:1,class:"border-b border-[#A0A0A0]"},Zte=["onClick"],Qte={__name:"Menu",props:{opened:{type:Boolean,required:!1,default:!1}},emits:["close"],setup(e,{emit:t}){const{navItems:n}=zP(),r=t,s=Ae({});function i(){s.value={},r("close")}function o(a){s.value[a]=!s.value[a]}return(a,c)=>{const l=Wl;return me(),Oe("div",{class:Mt(["fixed inset-0 bg-black z-40 lg:hidden transition-all duration-300 ease-in-out overflow-y-auto",e.opened?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"]),style:{top:"68px","z-index":"999999"}},[B("div",{class:Mt(["flex flex-col min-h-full transition-transform duration-300 ease-in-out",e.opened?"translate-y-0":"-translate-y-full"])},[(me(!0),Oe(ht,null,al(ye(n),u=>(me(),Oe(ht,{key:u.label},[u.children?(me(),Oe("div",Jte,[B("button",{class:"w-full px-[62px] py-[23px] text-white text-base hover:bg-white/5 transition-colors duration-200 flex items-center justify-between",onClick:d=>o(u.label)},[B("span",null,lr(u.label),1),(me(),Oe("svg",{class:Mt(["w-2 h-[7px] fill-white transition-transform duration-200",ye(s)[u.label]?"rotate-180":""]),width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...c[0]||(c[0]=[B("path",{d:"M4 5.5L0.535898 0.25L7.4641 0.25L4 5.5Z",fill:"white"},null,-1)])],2))],8,Zte),B("div",{class:Mt(["overflow-hidden transition-all duration-300 ease-in-out",ye(s)[u.label]?"max-h-[1000px]":"max-h-0"])},[(me(!0),Oe(ht,null,al(u.children,d=>(me(),mt(l,{key:d.label,to:d.to,target:d.external||typeof d.to=="string"?"_blank":void 0,class:"px-[62px] py-[23px] text-white text-base border-t border-[#A0A0A0] hover:bg-white/5 transition-colors duration-200 block",onClick:i},{default:Me(()=>[Le(lr(d.label),1)]),_:2},1032,["to","target"]))),128))],2)])):(me(),mt(l,{key:0,to:u.to,class:"px-[62px] py-[23px] text-white text-base border-b border-[#A0A0A0] hover:bg-white/5 transition-colors duration-200",onClick:i},{default:Me(()=>[Le(lr(u.label),1)]),_:2},1032,["to"]))],64))),128))],2)],2)}}},ene={portalLoginUrl:"",links:{}},tne={portalLoginUrl:"",links:{}},nne={test:ene,live:tne},ise=[5,10,25],ose=[5,10,25,50,100,250],rne=[5,10,25];function sne(e,t){return`${e}-${t}`}const ine=nne,one=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];function ane(e){return e==="production"?"live":"test"}function GP(e){return ine[ane(e)]}function cne(e){return Object.keys(e.links).length>0}
542function lne(e,t,n,r){const s=sne(t,r?"custom":n);return e.links[s]||null}function une(e,t,n){const r=new URL(e);if(r.searchParams.set("client_reference_id",t),n){const s=new URLSearchParams(n);for(const i of one){const o=s.get(i);o&&r.searchParams.set(i,o)}}return r.toString()}function KP(){const e=Gt();return Ve(()=>e.public.STRIPE_ENABLED?cne(GP(e.public.APP_ENV)):!1)}const dne={class:"navbar bg-black h-[50px] w-full fixed top-0 left-0 z-50 hidden lg:block"},fne={class:"w-full h-full max-w-[1440px] mx-auto relative"},pne={class:"absolute left-[464px] top-0 h-[50px] flex items-center"},hne=["textContent"],gne={key:1,class:"h-[50px] flex items-center"},mne={class:"absolute right-[100px] top-0 h-[50px] flex items-center gap-4"},_ne={class:"navbar bg-black h-[68px] w-full fixed top-0 left-0 z-50 lg:hidden"},yne={class:"h-full flex items-center justify-between px-5"},vne={class:"flex items-center gap-3"},bne={__name:"Nav",setup(e){const{navItems:t}=zP(),n=KP(),r=Ae(!1);function s(){r.value=!r.value}function i(){r.value=!1}function o(){Bl({name:"search"})}return Wy({bodyAttrs:{class:Ve(()=>r.value?"overflow-hidden":"")}}),(a,c)=>{const l=VP,u=Wl,d=Ute,f=qte,p=Gte,h=Xte,g=Qte;return me(),Oe(ht,null,[B("nav",dne,[B("div",fne,[ge(u,{to:{name:"index"},class:"absolute left-[120px] top-[17px] transition-opacity hover:opacity-80"},{default:Me(()=>[ge(l,{class:"text-white",color:"white",style:{width:"106px",height:"17px"}})]),_:1}),B("div",pne,[(me(!0),Oe(ht,null,al(ye(t),({label:S,to:y,children:v})=>(me(),Oe(ht,{key:S},[v?(me(),Oe("div",gne,[(me(),mt(d,{key:`dropdown-${S}`,"button-class":"h-[50px] px-4 flex items-center gap-1 text-white text-xs hover:bg-white/10 transition-colors duration-200",items:v,text:S,to:y},null,8,["items","text","to"]))])):(me(),mt(u,{key:0,to:y,class:"h-[50px] px-4 flex items-center text-white text-xs hover:bg-white/10 transition-colors duration-200"},{default:Me(()=>[B("span",{textContent:lr(S)},null,8,hne)]),_:2},1032,["to"]))],64))),128))]),B("div",mne,[B("button",{class:"p-2 text-white hover:opacity-80 transition-opacity duration-200","aria-label":"Search",onClick:o},[ge(f)]),ye(n)?(me(),mt(u,{key:0,to:"/support",class:"w-[95px] h-[38px] rounded-full bg-[#FFD60A] text-neutral-black font-bold text-xs hover:opacity-90 transition-opacity duration-200 flex items-center justify-center"},{default:Me(()=>[...c[0]||(c[0]=[Le(" Support Us ",-1)])]),_:1})):(me(),mt(u,{key:1,to:"/newsletter",target:"_blank",class:"w-[95px] h-[38px] rounded-full bg-gradient-to-r from-[#FF4500] to-[#EA580C] text-white font-bold text-xs hover:opacity-90 transition-opacity duration-200 flex items-center justify-center"},{default:Me(()=>[...c[1]||(c[1]=[Le(" Subscribe ",-1)])]),_:1}))])])]),B("nav",_ne,[B("div",yne,[B("button",{class:"text-white transition-opacity hover:opacity-80 duration-200","aria-label":"Toggle Menu",onClick:s},[ye(r)?(me(),mt(p,{key:0,class:"w-4 h-4"})):(me(),mt(h,{key:1,color:"#fff",class:"w-6 h-6 text-white"}))]),ge(u,{to:{name:"index"},class:"transition-opacity hover:opacity-80"},{default:Me(()=>[ge(l,{class:"text-white",color:"white",style:{width:"112px",height:"18px"}})]),_:1}),B("div",vne,[B("button",{class:"text-white p-1 hover:opacity-80 transition-opacity duration-200","aria-label":"Search",onClick:o},[ge(f)]),ye(n)?(me(),mt(u,{key:0,to:"/support",class:"px-6 h-[33px] rounded-full bg-[#FFD60A] text-neutral-black font-bold text-sm hover:opacity-90 transition-opacity duration-200 flex items-center justify-center"},{default:Me(()=>[...c[2]||(c[2]=[Le(" Support Us ",-1)])]),_:1})):(me(),mt(u,{key:1,to:"/newsletter",target:"_blank",class:"px-6 h-[33px] rounded-full bg-gradient-to-r from-[#FF4500] to-[#EA580C] text-white font-bold text-sm hover:opacity-90 transition-opacity duration-200 flex items-center justify-center"},{default:Me(()=>[...c[3]||(c[3]=[Le(" Subscribe ",-1)])]),_:1}))])])]),(me(),mt(Ry,{to:"body"},[ge(g,{class:"fixed bottom-0 left-0 top-[68px] lg:top-[50px]",opened:ye(r),onClose:i},null,8,["opened"])]))],64)}}},wne={},Sne={width:"402",height:"241",viewBox:"0 0 402 241",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ene(e,t){return me(),Oe("svg",Sne,[...t[0]||(t[0]=[B("path",{d:"M89.017 212V183.44H12.457V156.44L67.777 39.2H100.777L45.457 156.44H89.017V111.44H118.297V156.44H134.497V183.44H118.297V212H89.017Z",fill:"#6319FF"},null,-1),B("path",{d:"M200.255 215.6C182.975 215.6 168.175 211.84 155.855 204.32C143.535 196.72 134.055 186.16 127.415 172.64C120.855 159.12 117.575 143.44 117.575 125.6C117.575 107.76 120.855 92.08 127.415 78.56C134.055 65.04 143.535 54.52 155.855 47C168.175 39.4 182.975 35.6 200.255 35.6C217.535 35.6 232.335 39.4 244.655 47C257.055 54.52 266.535 65.04 273.095 78.56C279.735 92.08 283.055 107.76 283.055 125.6C283.055 143.44 279.735 159.12 273.095 172.64C266.535 186.16 257.055 196.72 244.655 204.32C232.335 211.84 217.535 215.6 200.255 215.6ZM200.255 188.36C211.855 188.44 221.495 185.88 229.175 180.68C236.935 175.48 242.735 168.16 246.575 158.72C250.495 149.28 252.455 138.24 252.455 125.6C252.455 112.96 250.495 102 246.575 92.72C242.735 83.36 236.935 76.08 229.175 70.88C221.495 65.68 211.855 63 200.255 62.84C188.655 62.76 179.015 65.32 171.335 70.52C163.655 75.72 157.855 83.04 153.935 92.48C150.095 101.92 148.175 112.96 148.175 125.6C148.175 138.24 150.095 149.24 153.935 158.6C157.775 167.88 163.535 175.12 171.215 180.32C178.975 185.52 188.655 188.2 200.255 188.36Z",fill:"#6319FF"},null,-1),B("path",{d:"M343.103 212V183.44H266.543V156.44L321.863 39.2H354.863L299.543 156.44H343.103V111.44H372.383V156.44H388.583V183.44H372.383V212H343.103Z",fill:"#6319FF"},null,-1)])])}const Tne=Gr(wne,[["render",Ene]]),kne={},xne={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ine(e,t){return me(),Oe("svg",xne,[...t[0]||(t[0]=[B("path",{d:"M19 3C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19ZM18.5 18.5V13.2C18.5 12.3354 18.1565 11.5062 17.5452 10.8948C16.9338 10.2835 16.
5421046 9.94 15.24 9.94C14.39 9.94 13.4 10.46 12.92 11.24V10.13H10.13V18.5H12.92V13.57C12.92 12.8 13.54 12.17 14.31 12.17C14.6813 12.17 15.0374 12.3175 15.2999 12.5801C15.5625 12.8426 15.71 13.1987 15.71 13.57V18.5H18.5ZM6.88 8.56C7.32556 8.56 7.75288 8.383 8.06794 8.06794C8.383 7.75288 8.56 7.32556 8.56 6.88C8.56 5.95 7.81 5.19 6.88 5.19C6.43178 5.19 6.00193 5.36805 5.68499 5.68499C5.36805 6.00193 5.19 6.43178 5.19 6.88C5.19 7.81 5.95 8.56 6.88 8.56ZM8.27 18.5V10.13H5.5V18.5H8.27Z",fill:"currentColor"},null,-1)])])}const Rne=Gr(kne,[["render",Ine]]),Cne={},Ane={width:"1200",height:"1227",viewBox:"0 0 1200 1227",fill:"none"};function One(e,t){return me(),Oe("svg",Ane,[...t[0]||(t[0]=[B("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"},null,-1)])])}const Pne=Gr(Cne,[["render",One]]),Mne={},Lne={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nne(e,t){return me(),Oe("svg",Lne,[...t[0]||(t[0]=[B("path",{d:"M14 13.5H16.5L17.5 9.5H14V7.5C14 6.47 14 5.5 16 5.5H17.5V2.14C17.174 2.097 15.943 2 14.643 2C11.928 2 10 3.657 10 6.7V9.5H7V13.5H10V22H14V13.5Z",fill:"currentColor"},null,-1)])])}const Dne=Gr(Mne,[["render",Nne]]),$ne={},Fne={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Une(e,t){return me(),Oe("svg",Fne,[...t[0]||(t[0]=[B("path",{d:"M7.8 2H16.2C19.4 2 22 4.6 22 7.8V16.2C22 17.7383 21.3889 19.2135 20.3012 20.3012C19.2135 21.3889 17.7383 22 16.2 22H7.8C4.6 22 2 19.4 2 16.2V7.8C2 6.26174 2.61107 4.78649 3.69878 3.69878C4.78649 2.61107 6.26174 2 7.8 2ZM7.6 4C6.64522 4 5.72955 4.37928 5.05442 5.05442C4.37928 5.72955 4 6.64522 4 7.6V16.4C4 18.39 5.61 20 7.6 20H16.4C17.3548 20 18.2705 19.6207 18.9456 18.9456C19.6207 18.2705 20 17.3548 20 16.4V7.6C20 5.61 18.39 4 16.4 4H7.6ZM17.25 5.5C17.5815 5.5 17.8995 5.6317 18.1339 5.86612C18.3683 6.10054 18.5 6.41848 18.5 6.75C18.5 7.08152 18.3683 7.39946 18.1339 7.63388C17.8995 7.8683 17.5815 8 17.25 8C16.9185 8 16.6005 7.8683 16.3661 7.63388C16.1317 7.39946 16 7.08152 16 6.75C16 6.41848 16.1317 6.10054 16.3661 5.86612C16.6005 5.6317 16.9185 5.5 17.25 5.5ZM12 7C13.3261 7 14.5979 7.52678 15.5355 8.46447C16.4732 9.40215 17 10.6739 17 12C17 13.3261 16.4732 14.5979 15.5355 15.5355C14.5979 16.4732 13.3261 17 12 17C10.6739 17 9.40215 16.4732 8.46447 15.5355C7.52678 14.5979 7 13.3261 7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7ZM12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9Z",fill:"currentColor"},null,-1)])])}const Hne=Gr($ne,[["render",Une]]),jne={},Bne={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function qne(e,t){return me(),Oe("svg",Bne,[...t[0]||(t[0]=[B("path",{d:"M17.7428 11.123C17.6387 11.0735 17.5337 11.0262 17.4278 10.981C17.2428 7.567 15.3778 5.613 12.2458 5.593H12.2038C10.3298 5.593 8.77278 6.393 7.81378 7.848L9.53578 9.029C10.2518 7.942 11.3758 7.71 12.2048 7.71H12.2328C13.2638 7.717 14.0428 8.017 14.5458 8.602C14.9128 9.027 15.1578 9.616 15.2788 10.358C14.3006 10.1992 13.3077 10.1512 12.3188 10.215C9.34178 10.387 7.42678 12.123 7.55578 14.536C7.62078 15.76 8.23078 16.813 9.27278 17.501C10.1528 18.083 11.2878 18.367 12.4678 18.303C14.0248 18.217 15.2458 17.623 16.0978 16.537C16.7458 15.712 17.1548 14.643 17.3358 13.296C18.0778 13.744 18.6278 14.333 18.9318 15.041C19.4488 16.246 19.4788 18.225 17.8638 19.838C16.4488 21.252 14.7478 21.863 12.1778 21.882C9.32678 21.862 7.16978 20.947 5.76778 19.165C4.45478 17.495 3.77678 15.085 3.75178 12C3.77678 8.915 4.45478 6.504 5.76778 4.835C7.16978 3.053 9.32578 2.139 12.1778 2.118C15.0488 2.138 17.2428 3.058 18.6988 4.848C19.4128 5.727 19.9508 6.831 20.3058 8.118L22.3238 7.58C21.8938 5.995 21.2168 4.63 20.2968 3.497C18.4298 1.2 15.6998 0.024 12.1848 0H12.1708C8.65978 0.024 5.96278 1.205 4.14978 3.51C2.53578 5.56 1.70378 8.415 1.67578 11.992V12.008C1.70378 15.586 2.53578 18.439 4.14878 20.49C5.96178 22.795 8.66078 23.976 12.1708 24H12.1848C15.3048 23.978 17.5038 23.161 19.3148 21.351C21.6858 18.983 21.6148 16.015 20.8328 14.193C20.2728 12.886 19.2038 11.825 17.7428 11.123ZM12.3558 16.188C11.0508 16.262 9.69578 15.676 9.62778 14.422C9.57778 13.492 10.2898 12.453 12.4358 12.33C12.6818 12.315 12.9228 12.309 13.1598 12.309C13.9398 12.309 14.6678 12.384 15.3308 12.529C15.0838 15.617 13.6338 16.118 12.3558 16.188Z",fill:"currentColor"},null,-1)])])}const Wne=Gr(jne,[["render",qne]]),Vne=xp("/images/google-preferred-source-badge-light.png"),zne=xp("/images/[email protected]"),Gne=zne+" 2x",Kne=["href"],Yne={__name:"GooglePreferredSourceLink",setup(e){const t=Gt(),n=Ve(()=>{let r="blavity.com";try{r=new URL(t.public.HOST_URL).hostname.replace(/^www\./,"")}catch{}return(r==="localhost"||r==="127.0.0.1")&&(r="blavity.com"),`https://google.com/preferences/source?q=${r}`});return(r,s)=>(me(),Oe("a",{class:"google-preferred-source-link",href:ye(n),target:"_blank",rel:"noopener noreferrer","aria-label":"Add as Google preferred source"},[...s[0]||(s[0]=[B("img",{class:"google-preferred-source-link__badge",src:Vne,srcset:Gne,alt:"Add as Google preferred source",width:"338",he
542ight:"107",loading:"lazy",decoding:"async"},null,-1)])],8,Kne))}},Xne=Gr(Yne,[["__scopeId","data-v-e0369f07"]]),Jne={__name:"MainSpinner",props:{color:{type:String,default:"var(--color-main-shadowandact)"}},setup(e){const t=e,n=Ve(()=>({"--spinner-color":t.color}));return(r,s)=>(me(),Oe("div",{class:"spinner",style:ao(n.value)},[...s[0]||(s[0]=[B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1),B("div",null,null,-1)])],4))}},Zne={key:0},Qne={key:1},ere=["value","disabled"],tre=["textContent"],nre={__name:"Form",props:{inputClass:{type:String,required:!1,default:""},messageTypeId:{type:String,required:!1,default:"138408"},showDescription:{type:Boolean,required:!1,default:!1},submitClass:{type:String,required:!1,default:""},submitText:{type:String,required:!1,default:"send"},descriptionClass:{type:String,required:!1,default:""},location:{type:String,required:!0,default:""}},setup(e){const t=e,n=Ae(""),r=Ae(""),s=Ae(!1),i=Ae(!1),o=Gt().public.ITERABLE_MESSAGE_TYPE_ID,a=t.messageTypeId?t.messageTypeId:o,c=async()=>{const u={signUpLocation:t.location,signUpDate_Blavity:new Date().toISOString(),signUpReferringURL_Blavity:typeof window<"u"?document.referrer:"",signUpUserAgent_Blavity:typeof window<"u"?navigator.userAgent:"",signUpReferringCampaign_Blavity:Dm(),signUpFormLocation_Blavity:t.location,signUpUtmMedium_Blavity:$m()},{data:d,error:f}=await af("/api/subscribe-user",{method:"POST",body:{email:n.value,messageTypeId:a,dataFields:u}},"$rMDvDtwayT");if(f.value)throw new Error(f.value.message||"Failed to subscribe user");if(!d.value)throw new Error("Failed to subscribe user")},l=async()=>{if(!s.value){s.value=!0,r.value="";try{const{data:u,error:d}=await af("/api/verify-email",{method:"POST",body:{email:n.value}},"$KYrvezdbWr");if(d.value)throw new Error(d.value.message||"Failed to verify email");if(!u.value?.isValid)throw new Error("Invalid email address. Please check and try again.");await c(),typeof window<"u"&&window.dispatchEvent(new CustomEvent("lytics:email:collected",{detail:{email:n.value}})),typeof window<"u"&&window.jstag&&window.jstag.send({email:n.value,_e:"newsletter_signup",signup_location:t.location,signup_date:new Date().toISOString(),message_type_id:a,utm_medium:$m(),campaign_info:Dm()}),i.value=!0}catch(u){r.value=u.message||"An error occurred. Please try again."}finally{s.value=!1}}};return(u,d)=>{const f=Jne;return ye(i)?(me(),Oe("div",Zne,[...d[1]||(d[1]=[B("p",{class:"heading-h3 mb-8 mx-auto text-[white]"}," Thank you for subscribing! ",-1)])])):ye(s)?(me(),Oe("div",Qne,[ge(f,{class:"mx-auto"})])):(me(),Oe("form",{key:2,class:"relative",onSubmit:Rk(l,["prevent"])},[UM(B("input",{"onUpdate:modelValue":d[0]||(d[0]=p=>gt(n)?n.value=p:null),name:"email",type:"email",class:Mt(["focus-within:outline-none",e.inputClass]),placeholder:"Enter e-mail address",autocomplete:"email",required:"","aria-label":"Email Address"},null,2),[[wL,ye(n)]]),B("input",{type:"submit",class:Mt(["button-link cursor-pointer",e.submitClass]),value:e.submitText,disabled:ye(s)},null,10,ere),e.showDescription?(me(),Oe("p",{key:0,class:Mt(["description w-full",e.descriptionClass])},[...d[2]||(d[2]=[Le(" *by clicking Subscribe you agree to our ",-1),B("a",{href:"https://blavityinc.com/terms-conditions/",target:"_blank",class:"underline"},"Terms of Service",-1),Le(" and ",-1),B("a",{href:"https://blavity.com/privacy",target:"_blank",class:"underline"},"Privacy Policy",-1)])],2)):fr("",!0),ye(r)?(me(),Oe("p",{key:1,class:"description absolute bottom-0 text-main-aerospace-orange",style:{transform:"translateY(100%)"},textContent:lr(ye(r))},null,8,tre)):fr("",!0)],32))}}};function rre(){const t=GP(Gt().public.APP_ENV);function n(r,s="monthly"){const i=lne(t,s,r,!1);if(!i){Bl(`/support?amount=${r}&frequency=${s}`);return}window.location.href=une(i,crypto.randomUUID(),window.location.search)}return{goToCheckout:n}}const sre={class:"main-footer bg-neutral-black py-8 text-neutral-white lg:pb-16"},ire={class:"container"},ore={class:"grid grid-cols-2 gap-y-10 mb-12 lg:flex lg:gap-8 lg:relative"},are={class:"col-span-2 lg:order-1 lg:w-[304px]"},cre={class:"lg:mx-8 lg:order-3"},lre={class:"flex flex-col gap-y-5 text-neutral-gray"},ure={class:"lg:order-2"},dre={class:"flex flex-col gap-y-5 text-neutral-gray"},fre={class:"col-span-2 mb-5 lg:absolute lg:bottom-0 lg:left-0 lg:mb-0"},pre={class:"flex flex-col items-start gap-4"},hre={class:"flex flex-wrap gap-x-6"},gre={class:"col-span-2 lg:flex-1 lg:flex lg:flex-col lg:justify-between lg:order-4 lg:ml-12"},mre={key:0,class:"bg-[#FFD60A] text-neutral-black p-5 rounded-lg mb-8 lg:mb-6"},_re={class:"flex gap-2 mb-3"},yre=["onClick"],vre={class:"pt-4 lg:flex lg:items-center",style:{"border-top":"1px solid rgb(255 255 255 / 10%)",color:"#6d7175"}},bre={class:"free-tag mb-4 lg:flex-1 lg:mb-0"},wre={class:"flex gap-x-6 mb-2 lg:mb-0"},Sre={class:"flex gap-x-6"},Ere={__name:"MainFooter",setup(e){const t=KP(),n=new Date().getFullYear(),r=rne,{goToCheckout:s}=rre();return(i,o)=>{const a=VP,c=Wl,l=Rne,u=Pne,d=Dne,f=Hne,p=Wne,h=Xne,g=nre;return me(),Oe("footer",sre,[B("div",ire,[B("div",ore,[B("div",are,[ge(a,{color:"white"})]),B("div",cre,[o[6]||(o[6]=B("h3",{class:"button-link mb-8 text-neutral-white lg:mb-10"}," explore ",-1)),B("ul",lre,[B("li",null,[ge(c,{class:"menu-item",to:{name:"entertainment-category-slug",params:{slug:"culture"}}},{default:Me(()=>[...o[0]||(o[0]=[Le(" Culture ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:{name:"entertainment-category-slug",params:{slug:"lifestyle"}}
542},{default:Me(()=>[...o[1]||(o[1]=[Le(" Life ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:{name:"entertainment-category-slug",params:{slug:"entertainment"}}},{default:Me(()=>[...o[2]||(o[2]=[Le(" Entertainment ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:{name:"off-the-shelves"}},{default:Me(()=>[...o[3]||(o[3]=[Le(" Small Business ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:" https://blavityinc.com/partner-with-us/",target:"_blank"},{default:Me(()=>[...o[4]||(o[4]=[Le(" Partner with Us ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:"https://shop.blavity.com/",target:"_blank"},{default:Me(()=>[...o[5]||(o[5]=[Le(" Shopping ",-1)])]),_:1})])])]),B("div",ure,[o[14]||(o[14]=B("h3",{class:"button-link mb-8 text-neutral-white lg:mb-10"}," blavity brands ",-1)),B("ul",dre,[B("li",null,[ge(c,{class:"menu-item",to:"https://homeandtexture.com/",target:"_blank"},{default:Me(()=>[...o[7]||(o[7]=[Le(" home and texture ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:"https://afrotech.com/",target:"_blank"},{default:Me(()=>[...o[8]||(o[8]=[Le(" afrotech ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:"https://21ninety.com/",target:"_blank"},{default:Me(()=>[...o[9]||(o[9]=[Le(" 21ninety ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:"https://travelnoire.com/",target:"_blank"},{default:Me(()=>[...o[10]||(o[10]=[Le(" travel noire ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:"https://talentinfusion.io/",target:"_blank"},{default:Me(()=>[...o[11]||(o[11]=[Le(" talent infusion ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:{name:"events-blavity-fest"}},{default:Me(()=>[...o[12]||(o[12]=[Le(" blavity fest ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"menu-item",to:{name:"events-houseparty"}},{default:Me(()=>[...o[13]||(o[13]=[Le(" blavity house party ",-1)])]),_:1})])])]),B("div",fre,[o[15]||(o[15]=B("h3",{class:"button-link mb-6 lg:hidden"}," Socials ",-1)),B("div",pre,[B("ul",hre,[B("li",null,[ge(c,{to:"https://www.linkedin.com/company/blavityinc",target:"_blank","aria-label":"Linkedin Icon"},{default:Me(()=>[ge(l)]),_:1})]),B("li",null,[ge(c,{to:"https://twitter.com/blavity",target:"_blank","aria-label":"Twitter Icon"},{default:Me(()=>[ge(u,{style:{height:"20px",width:"auto"}})]),_:1})]),B("li",null,[ge(c,{to:"https://www.facebook.com/Blavity",target:"_blank","aria-label":"Facebook Icon"},{default:Me(()=>[ge(d)]),_:1})]),B("li",null,[ge(c,{to:"https://www.instagram.com/blavity",target:"_blank","aria-label":"Instagram Icon"},{default:Me(()=>[ge(f)]),_:1})]),B("li",null,[ge(c,{to:"https://www.threads.net/@blavity",target:"_blank","aria-label":"Threads Icon"},{default:Me(()=>[ge(p)]),_:1})])]),ge(h)])]),B("div",gre,[ye(t)?(me(),Oe("div",mre,[o[18]||(o[18]=B("h3",{class:"button-link mb-2 text-black font-bold"}," Support Us ",-1)),o[19]||(o[19]=B("p",{class:"text-black text-sm font-normal mb-4"}," Support independent journalism. Your contribution keeps Blavity accessible for everyone. ",-1)),B("div",_re,[(me(!0),Oe(ht,null,al(ye(r),S=>(me(),Oe("button",{key:S,class:"flex-1 py-2 border border-neutral-black/30 rounded text-center text-neutral-black font-bold text-sm hover:bg-neutral-black hover:text-white transition-all cursor-pointer",onClick:y=>ye(s)(S)}," $"+lr(S)+"/mo ",9,yre))),128))]),ge(c,{to:"/support",class:"block w-full py-2.5 bg-neutral-black text-white text-center font-bold text-sm rounded hover:bg-neutral-black/90 transition-all mb-3"},{default:Me(()=>
542[...o[16]||(o[16]=[Le(" Contribute Now ",-1)])]),_:1}),ge(c,{to:"/support?frequency=one-time",class:"text-[12px] text-neutral-black/60 hover:text-neutral-black transition-colors font-inter underline"},{default:Me(()=>[...o[17]||(o[17]=[Le(" Make a one-time contribution ",-1)])]),_:1})])):fr("",!0),o[20]||(o[20]=B("h3",{class:"button-link mb-4 lg:mb-0"}," Subscribe ",-1)),ge(g,{class:"main-footer__subscribe-form flex flex-wrap gap-x-0.5 w-full",location:"lytics_blavity_footer","submit-text":"Subscribe","show-description":"","description-class":"text-[12px] text-neutral-gray mt-2 w-full"})])]),B("div",vre,[B("h4",bre,[Le(" © "+lr(ye(n))+" ",1),ge(c,{to:"https://blavityinc.com/",target:"_blank","aria-label":"Blavity, Inc."},{default:Me(()=>[...o[21]||(o[21]=[Le(" Blavity, Inc. ",-1)])]),_:1}),o[22]||(o[22]=Le(" All rights reserved. ",-1))]),B("ul",wre,[o[26]||(o[26]=B("li",null,[B("div",{id:"blavity-choice-privacy-link",class:"free-tag [&_a]:text-inherit [&_a]:no-underline"})],-1)),B("li",null,[ge(c,{class:"free-tag",to:"https://blavityinc.com/terms-conditions/",target:"_blank"},{default:Me(()=>[...o[23]||(o[23]=[Le(" Terms of Use ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"free-tag",to:"/privacy",target:"_blank"},{default:Me(()=>[...o[24]||(o[24]=[Le(" Privacy Policy ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"free-tag",to:"https://blavityinc.com/cookie-policy/",target:"_blank"},{default:Me(()=>[...o[25]||(o[25]=[Le(" Cookie Policy ",-1)])]),_:1})])]),o[29]||(o[29]=B("div",{class:"hidden lg:block lg:bg-neutral-white lg:opacity-10 lg:mx-8 lg:h-4 lg:w-[1px]"},null,-1)),B("ul",Sre,[B("li",null,[ge(c,{class:"free-tag",to:"https://blavitymedia.com/partner-advertiser/",target:"_blank"},{default:Me(()=>[...o[27]||(o[27]=[Le(" Advertise ",-1)])]),_:1})]),B("li",null,[ge(c,{class:"free-tag",to:"https://forms.gle/j5ucpZB9MgXGHTNA9",target:"_blank"},{default:Me(()=>[...o[28]||(o[28]=[Le(" Media Passes ",-1)])]),_:1})])])])])])}}},Tre={class:"flex flex-col min-h-screen"},kre={class:"bg-secondary-pink flex flex-1 items-center py-16 text-center lg:pt-20"},xre={class:"container"},Ire={key:1,class:"heading-h2"},Rre={__name:"error",props:{error:{type:Object,required:!0}},setup(e){const t=()=>Zk({redirect:"/"});return(n,r)=>{const s=bne,i=Tne,o=Ere;return me(),Oe("div",Tre,[ge(s,{class:"sticky top-0 z-20"}),B("div",kre,[B("div",xre,[e.error.statusCode===404?(me(),Oe(ht,{key:0},[ge(i,{class:"mx-auto"}),r[0]||(r[0]=B("p",{class:"font-roboto mb-16 paragraph-1 lg:mb-20"},[Le(" The page you are looking for "),B("br"),Le("doesn't exist or has been moved ")],-1)),B("button",{class:"bg-main-hornblende-green border-2 border-main-hornblende-green button-link px-6 py-4 text-neutral-white transition-colors w-full lg:max-w-xs hover:bg-secondary-green hover:text-neutral-black",onClick:t}," back To Home ")],64)):(me(),Oe("h2",Ire," Something went wrong. "))])]),ge(o)])}}},Cre={key:0},iT={__name:"nuxt-root",setup(e){const t=()=>null,n=bt(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r),d=Yt().beforeEach(()=>{u(),d()})}const s=!1;gs(Xi,Ps()),n.hooks.callHookWith(u=>u.map(d=>d()),"vue:setup",[]);const i=Ip(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function c(u,d,f){const p=n.vueApp.config.errorHandler;if(p&&!p.__nuxt_default)try{p(u,d,f)}catch(h){console.error("[nuxt] Error in `app.config.errorHandler`",h)}}YT((u,d,f)=>{if(n.hooks.callHook("vue:error",u,d,f).catch(p=>console.error("[nuxt] Error in `vue:error` hook",p)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(Qk(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>Ri(u)),c(u,d,f),!1});const l=!1;return(u,d)=>(me(),mt(Ny,{onResolve:ye(r)},{default:Me(()=>[ye(o)?(me(),Oe("div",Cre)):ye(i)?(me(),mt(ye(Rre),{key:1,error:ye(i)},null,8,["error"])):ye(l)?(me(),mt(ye(t),{key:2,context:ye(l)},null,8,["context"])):ye(s)?(me(),mt(a2(ye(s)),{key:3})):(me(),mt(ye(kte),{key:4}))]),_:1},8,["onResolve"]))}};let oT;{let e;oT=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?CL(iT):RL(iT),s=BN({vueApp:r});async function i(o){await s.callHook("app:error",o),s.payload.error||=Js(o)}i.__nuxt_default=!0,r.config.errorHandler=i,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)});try{await VN(s,See)}
542catch(o){i(o)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(UN),await s.hooks.callHook("app:mounted",r),await Jn()}catch(o){i(o)}return r},e=oT().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{qre as $,Nre as A,rne as B,Le as C,ge as D,Ore as E,ht as F,Un as G,Bre as H,Gte as I,ef as J,wte as K,Kre as L,ise as M,Dm as N,ose as O,Zn as P,Fl as Q,xF as R,Ny as S,Ry as T,GP as U,$m as V,U2 as W,qt as X,Ut as Y,fF as Z,Wl as _,Xd as a,UM as a$,gt as a0,Sk as a1,Bl as a2,Jn as a3,Mt as a4,Are as a5,ao as a6,Xre as a7,Gre as a8,jre as a9,ye as aA,Cte as aB,sse as aC,N$ as aD,tse as aE,KP as aF,Qre as aG,nse as aH,Kee as aI,af as aJ,Wy as aK,Pre as aL,rse as aM,bt as aN,rre as aO,Ps as aP,Ax as aQ,Gt as aR,Hre as aS,zx as aT,$re as aU,wL as aV,Dre as aW,rn as aX,$T as aY,Lre as aZ,Me as a_,Na as aa,ci as ab,vy as ac,Da as ad,KT as ae,me as af,gs as ag,xp as ah,tr as ai,ri as aj,Ae as ak,al,Ru as am,Rte as an,Yb as ao,lne as ap,a2 as aq,Yre as ar,Yy as as,Ure as at,Or as au,dr as av,lr as aw,Ke as ax,OT as ay,AM as az,Vre as b,kL as b0,Rk as b1,Dne as c,Hne as d,Pne as e,ae as f,Gr as g,Ote as h,Jne as i,nre as j,VP as k,bne as l,Ere as m,ese as n,une as o,Jre as p,gF as q,Ur as r,kF as s,Ve as t,B as u,mt as v,fr as w,Oe as x,Js as y,Mre as z};
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.