1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7979],{1613:(e,t,i)=>{"use strict";i.d(t,{c:()=>n});class n{constructor(){this.subscribers=[]}subscribe(e){return this.subscribers.push(e),{unsubscribe:()=>this.unsubscribe(e)}}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t!==e)}notify(e){this.subscribers.forEach(t=>t(e))}first(){let e=new n,t=t=>{e.notify(t),i.unsubscribe()},i=this.subscribe(t),r=e.unsubscribe.bind(e);return this.withUnsubscribeOverride(e,r,t)}takeWhile(e){let t=new n,i=n=>{e(n)?t.notify(n):t.unsubscribe(i)};this.subscribe(i);let r=t.unsubscribe.bind(t);return this.withUnsubscribeOverride(t,r,i)}filter(e){let t=new n,i=i=>{e(i)&&t.notify(i)};this.subscribe(i);let r=t.unsubscribe.bind(t);return this.withUnsubscribeOverride(t,r,i)}merge(...e){let t=new n,i=[];e.forEach(e=>{let n=e.subscribe(e=>{t.notify(e)});i.push(n)});let r=t.unsubscribeAll.bind(t);return t.unsubscribe=()=>{i.forEach(e=>e.unsubscribe()),r()},t}withUnsubscribeOverride(e,t,i){return e.unsubscribe=e=>{t(e),this.unsubscribe(i)},e}unsubscribeAll(){this.subscribers=[]}}},2037:(e,t,i)=>{"use strict";i.d(t,{vI:()=>a,vc:()=>s,wK:()=>n});var n,r=i(84050);!function(e){e[e.OFF=0]="OFF",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.VERBOSE=4]="VERBOSE"}(n||(n={}));let s={debug:r.l,error:r.l,info:r.l,prefix:"Faro",warn:r.l},a=n.ERROR},2674:(e,t,i)=>{"use strict";i.d(t,{S:()=>r});var n=i(45316);function r(e,t,i,r){let s={filename:e||document.location.href,function:t||n.iC};return void 0!==i&&(s.lineno=i),void 0!==r&&(s.colno=r),s}},3002:(e,t,i)=>{"use strict";i.d(t,{D:()=>o});var n=i(19682),r=i(2674),s=i(45316);function a(e,t){let i=null==e?void 0:e.includes(s.ld),n=!i&&(null==e?void 0:e.includes(s.HS));return i||n?[(null==e?void 0:e.includes(s.xQ))?e.split(s.xQ)[0]:e,i?`${s.ld}:${t}`:`${s.HS}:${t}`]:[e,t]}function o(e){let t=[];e.stacktrace?t=e.stacktrace.split(s.k4).filter((e,t)=>t%2==0):e.stack&&(t=e.stack.split(s.k4));let i=t.reduce((t,i,o)=>{let l,u,d,c,h;if(l=s.cB.exec(i)){if(u=l[1],d=l[2],c=l[3],h=l[4],null==d?void 0:d.startsWith(s.Wo)){let e=s.Sy.exec(d);e&&(d=e[1],c=e[2],h=e[3])}d=(null==d?void 0:d.startsWith(s.tE))?d.substring(s.bz):d,[u,d]=a(u,d)}else if(l=s.N9.exec(i)){if(u=l[1],d=l[3],c=l[4],h=l[5],d&&d.includes(s.rD)){let e=s.Lo.exec(d);e&&(u=u||s.Wf,d=e[1],c=e[2])}else 0===o&&!h&&(0,n.Et)(e.columnNumber)&&(h=String(e.columnNumber+1));[u,d]=a(u,d)}return(d||u)&&t.push((0,r.S)(d,u,c?Number(c):void 0,h?Number(h):void 0)),t},[]);return s.mZ.test(e.message)?i.slice(1):i}},3538:(e,t,i)=>{"use strict";var n;i.d(t,{J:()=>r,f:()=>n}),function(e){e.EXCEPTION="exception",e.LOG="log",e.MEASUREMENT="measurement",e.TRACE="trace",e.EVENT="event"}(n||(n={}));let r={[n.EXCEPTION]:"exceptions",[n.LOG]:"logs",[n.MEASUREMENT]:"measurements",[n.TRACE]:"traces",[n.EVENT]:"events"}},6256:(e,t,i)=>{"use strict";i.d(t,{Td:()=>a,Vl:()=>r,ki:()=>s,nT:()=>o,wM:()=>n});let n="view_changed",r="session_start",s="session_resume",a="session_extend",o="service_name_override"},11996:(e,t,i)=>{"use strict";i.d(t,{x:()=>n});let n="2.2.4"},14760:function(e,t,i){var n;!function(r,s){"use strict";var a="function",o="undefined",l="object",u="string",d="major",c="model",h="name",p="type",f="vendor",g="version",m="architecture",b="console",v="mobile",w="tablet",y="smarttv",S="wearable",T="embedded",x="Amazon",E="Apple",k="ASUS",O="BlackBerry",I="Browser",_="Chrome",A="Firefox",j="Google",P="Honor",L="Huawei",M="Microsoft",C="Motorola",N="Nvidia",R="OnePlus",U="Opera",D="OPPO",z="Samsung",q="Sharp",B="Sony",$="Xiaomi",F="Zebra",H="Facebook",V="Chromium OS",G="Mac OS",W=" Browser",J=function(e,t){var i={};for(var n in e)t[n]&&t[n].length%2==0?i[n]=t[n].concat(e[n]):i[n]=e[n];return i},Z=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},K=function(e,t){return typeof e===u&&-1!==X(t).indexOf(X(e))},X=function(e){return e.toLowerCase()},Q=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},Y=function(e,t){for(var i,n,r,o,u,d,c=0;c<t.length&&!u;){var h=t[c],p=t[c+1];for(i=n=0;i<h.length&&!u&&h[i];)if(u=h[i++].exec(e))for(r=0;r<p.length;r++)d=u[++n],typeof(o=p[r])===l&&o.length>0?2===o.length?typeof o[1]==a?this[o[0]]=o[1].call(this,d):this[o[0]]=o[1]:3===o.length?typeof o[1]!==a||o[1].exec&&o[1].test?this[o[0]]=d?d.replace(o[
11],o[2]):void 0:this[o[0]]=d?o[1].call(this,d,o[2]):void 0:4===o.length&&(this[o[0]]=d?o[3].call(this,d.replace(o[1],o[2])):s):this[o]=d||s;c+=2}},ee=function(e,t){for(var i in t)if(typeof t[i]===l&&t[i].length>0){for(var n=0;n<t[i].length;n++)if(K(t[i][n],e))return"?"===i?s:i}else if(K(t[i],e))return"?"===i?s:i;return t.hasOwnProperty("*")?t["*"]:e},et={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ei={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[h,U+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[h,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[h,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[h,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[h,"Quark"]],[/\bddg\/([\w\.]+)/i],[g,[h,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"
1Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[h,"Smart Lenovo "+I]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+I],g],[/\bfocus\/([\w\.]+)/i],[g,[h,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI"+W]],[/fxios\/([\w\.-]+)/i],[g,[h,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[h,"360"]],[/\b(qq)\/([\w\.]+)/i],[[h,/(.+)/,"$1Browser"],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1"+W],g],[/samsungbrowser\/([\w\.]+)/i],[g,[h,z+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[g,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[h,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[h],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,H],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,_+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,ee,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/(wolvic|librewolf)\/([\w\.]+)/i],[h,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[h,[g,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[m,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[m,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[m,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[m,/ower/,"",X]],[/ sun4\w[;\)]/i],[[m,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[m,X]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,z],[p,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,z],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,E],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,E],[p,w]],[/(macintosh);/i],[c,[f,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,q],[p,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[f,P],[p,w]],[/honor([-\w ]+)[;\)]/i],[c,[f,P],[p,v]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[c,[f,L],[p,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,L],[p,v]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[f,$],[p,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[c,/_/g," "],[f,$],[p,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,D],[p,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[f,ee,{OnePlus:["304","403","203"],"*":D}],[p,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[p,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[p,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,C],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,C],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,"LG"],[p,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,"LG"],[p,v]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[c,[f,"Lenovo"],[p,w]],[/(nokia) (t[12][01])/i],[f,c,[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[p,v],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,j],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,j],[p,v]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,B],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,B],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,R],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,x],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,x],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,O],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,k],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,k],[p,v]],[/(nexus 9)/i],[c,[f,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[p,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[f,"TCL"],[p,w]],[/(itel) ((\w+))/i],[[f,X],c,[p,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[p,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[p,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[p,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[p,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[p,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[p,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[f,"Archos"],[p,w]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[f,"Archos"],[p,v]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,c,[p,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[p,v]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,c,[p,w]],[/(surface duo)/i],[c,[f,M],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[p,v]],[/(u304aa)/i],[c,[f,"AT&T"],[p,v]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[p,v]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[p,w]],[/\b(k88) b/i],[c,[f,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[p,v]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[p,v]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[p,w]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[p,v]],[/\b(ph-1) /i],[c,[f,"Essential"],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[p,w]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[f,N],[p,w]],[/(sprint) (\w+)/i],[f,c,[p,v]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,M],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,F],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,F],[p,v]],[/smart-tv.+(samsung)/i],[f,[p,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,z],[p,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[p,y]],[/(apple) ?tv/i],[f,[c,E+" TV"],[p,y]],[/crkey/i],[[c,_+"cast"],[f,j],[p,y]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,x],[p,y]],[/(shield \w+ tv)/i],[c,[f,N],[p,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,q],[p,y]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,B],[p,y]],[/(mi(tv|box)-?\w+) bui/i],[c,[f,$],[p,y]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[p,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,Q],[c,Q],[p,y]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[p,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[p,b]],[/droid.+; (shield)( bui|\))/i],[c,[f,N],[p,b]],[/(playstation \w+)/i],[c,[f,B],[p,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,M],[p,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[f,z],[p,S]],[/((pebble))app/i,/(asu
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,c,[p,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[f,D],[p,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,E],[p,S]],[/(opwwe\d{3})/i],[c,[f,R],[p,S]],[/(moto 360)/i],[c,[f,C],[p,S]],[/(smartwatch 3)/i],[c,[f,B],[p,S]],[/(g watch r)/i],[c,[f,"LG"],[p,S]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,F],[p,S]],[/droid.+; (glass) \d/i],[c,[f,j],[p,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,c,[p,S]],[/; (quest( \d| pro)?)/i],[c,[f,H],[p,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[p,T]],[/(aeobc)\b/i],[c,[f,x],[p,T]],[/(homepod).+mac os/i],[c,[f,E],[p,T]],[/windows iot/i],[[p,T]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[h,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,g],[/ladybird\//i],[[h,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[h,[g,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,ee,et],[h,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,G],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(ubuntu) ([\w\.]+) like android/i],[[h,/(.+)/,"$1 Touch"],g],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[h,g],[/\(bb(10);/i],[g,[h,O]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,_+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,V],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},en=function(e,t){if(typeof e===l&&(t=e,e=s),!(this instanceof en))return new en(e,t).getResult();var i=typeof r!==o&&r.navigator?r.navigator:s,n=e||(i&&i.userAgent?i.userAgent:""),b=i&&i.userAgentData?i.userAgentData:s,y=t?J(ei,t):ei,S=i&&i.userAgent==n;return this.getBrowser=function(){var e,t={};return t[h]=s,t[g]=s,Y.call(t,n,y.browser),t[d]=typeof(e=t[g])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:s,S&&i&&i.brave&&typeof i.brave.isBrave==a&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[m]=s,Y.call(e,n,y.cpu),e},this.getDevice=function(){var e={};return e[f]=s,e[c]=s,e[p]=s,Y.call(e,n,y.device),S&&!e[p]&&b&&b.mobile&&(e[p]=v),S&&"Macintosh"==e[c]&&i&&typeof i.standalone!==o&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[c]="iPad",e[p]=w),e},this.getEngine=function(){var e={};return e[h]=s,e[g]=s,Y.call(e,n,y.engine),e},this.getOS=function(){var e={};return e[h]=s,e[g]=s,Y.call(e,n,y.os),S&&!e[h]&&b&&b.platform&&"Unknown"!=b.platform&&(e[h]=b.platform.replace(/chrome os/i,V).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>500?Q(e,500):e,this},this.setUA(n),this};en.VERSION="1.0.41",en.BROWSER=Z([h,g,d]),en.CPU=Z([m]),en.DEVICE=Z([c,f,p,b,v,y,w,S,T]),en.ENGINE=en.OS=Z([h,g]),typeof t!==o?(e.exports&&(t=e.exports=en),t.UAParser=en):i.amdO?s===(n=(function(){return en}).call(t,i,t,e))||(e.exports=n):typeof r!==o&&(r.UAParser=en);var er=typeof r!==o&&(r.jQuery||r.Zepto);if(er&&!er.ua){var es=new en;er.ua=es.getResult(),er.ua.get=function(){return es.getUA()},er.ua.set=function(e){es.setUA(e);var t=es.getResult();for(var i in t)er.ua[i]=t[i]}}}("object"==typeof window?window:this)},19682:(e,t,i)=>{"use strict";function n(e,t){return typeof e===t}function r(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function s(e,t){try{return e instanceof t}catch(e){return!1}}i.d(t,{Ed:()=>n,Et:()=>l,Gv:()=>d,Im:()=>S,Kg:()=>o,Lm:()=>u,T2:()=>v,Tn:()=>c,bJ:()=>b,cy:()=>h,kZ:()=>a,pp:()=>w,sO:()=>p,wX:()=>y,xH:()=>g});let a=e=>n(e,"null"),o=e=>n(e,"string"),l=e=>n(e,"number")&&!isNaN(e)||n(e,"bigint"),u=e=>n(e,"boolean"),d=e=>!a(e)&&n(e,"object"),c=e=>n(e,"function"),h=e=>r(e,"Array"),p=e=>!d(e)&&!c(e),f="undefined"!=typeof Event,g=e=>f&&s(e,Event),m="undefined"!=typeof Error,b=e=>m&&s(e,Error),v=e=>r(e,"ErrorEvent"),w=e=>r(e,"DOMError"),y=e=>r(e,"DOMException");function S(e){return null==e||(h(e)||o(e)?0===e.length:!!d(e)&&0===Object.keys(e).length)}},22670:(e,t,i)=>{"use strict";function n(){return Date.now()}function r(){return new Date().toISOString()}function s(e){return new Date(e).toISOString()}i.d(t,{mI:()=>r,q5:()=>s,x3:()=>n})},28824:(e,t,i)=>{"use strict";i.d(t,{b:()=>function e(t,i){if(t===i)return!0;
1if((0,n.Ed)(t,"number")&&isNaN(t))return(0,n.Ed)(i,"number")&&isNaN(i);let r=(0,n.cy)(t),s=(0,n.cy)(i);if(r!==s)return!1;if(r&&s){let n=t.length;if(n!==i.length)return!1;for(let r=n;0!=r--;)if(!e(t[r],i[r]))return!1;return!0}let a=(0,n.Gv)(t),o=(0,n.Gv)(i);if(a!==o)return!1;if(t&&i&&a&&o){let n=Object.keys(t),r=Object.keys(i);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;for(let r of n)if(!e(t[r],i[r]))return!1;return!0}return!1}});var n=i(19682)},37024:(e,t,i)=>{"use strict";i.d(t,{AQ:()=>n,Fm:()=>o,MM:()=>a,Zl:()=>r,gG:()=>s});let n="com.grafana.faro.session",r=144e5,s=9e5,a=1e3,o={enabled:!0,persistent:!1,maxSessionPersistenceTime:9e5}},37369:(e,t,i)=>{"use strict";i.d(t,{S:()=>r});let n="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function r(e=10){return Array.from(Array(e)).map(()=>n[Math.floor(Math.random()*n.length)]).join("")}},41447:(e,t,i)=>{"use strict";i.d(t,{Ai:()=>l,Gq:()=>a,OE:()=>u,SO:()=>o,Uy:()=>r,Vv:()=>d});var n=i(60669);let r={session:"sessionStorage",local:"localStorage"};function s(e){var t;try{let t;t=window[e];let i="__faro_storage_test__";return t.setItem(i,i),t.removeItem(i),!0}catch(i){return null==(t=n.P.internalLogger)||t.info(`Web storage of type ${e} is not available. Reason: ${i}`),!1}}function a(e,t){return c(t)?window[t].getItem(e):null}function o(e,t,i){if(c(i))try{window[i].setItem(e,t)}catch(e){}}function l(e,t){c(t)&&window[t].removeItem(e)}let u=s(r.local),d=s(r.session);function c(e){return e===r.local?u:e===r.session&&d}},44094:(e,t,i)=>{"use strict";let n,r,s,a,o,l,u,d,c,h,p,f,g,m,b,v,w;i.d(t,{w:()=>ta});var y=i(99611);class S extends y.H{constructor(){super(...arguments),this.api={},this.transports={}}}var T=i(11996),x=i(60669),E=i(51111),k=i(90352),O=i(1613),I=i(93947);let _="http-request-start",A="http-request-end";function j(){return n||(n=new O.c),r||(r=new MutationObserver((e,t)=>{n.notify({type:"dom-mutation"})})).observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),n}var P=i(37369),L=i(19682);function M(e=""){return x.P.transports.transports.flatMap(e=>e.getIgnoreUrls()).some(t=>e&&null!=e.match(t))}let C="fetch",N=!1;function R(){if(s)return s;function e(e){s.notify({type:_,request:e})}function t(e){s.notify({type:A,request:e})}return s=new O.c,N||(function({onRequestEnd:e,onRequestStart:t}){o||(o=window.fetch),window.fetch=function(){var i,n,r;let s=null!==(r=arguments[0],i=(0,L.Kg)(r)?r:r instanceof URL?r.href:!(0,L.Im)(r)&&(0,L.Tn)(null==r?void 0:r.toString)?r.toString():void 0)&&void 0!==i?i:"",a=M(s),l=(null!=(n=arguments[1])?n:{}).method,u=(0,P.S)();return a||t({url:s,method:l,requestId:u,apiType:C}),o.apply(this,arguments).then(t=>(a||e({url:s,method:l,requestId:u,apiType:C}),t)).catch(t=>{throw a||e({url:s,method:l,requestId:u,apiType:C}),t})}}({onRequestStart:e,onRequestEnd:t}),function({onRequestStart:e,onRequestEnd:t}){a||(a=XMLHttpRequest.prototype.open),XMLHttpRequest.prototype.open=function(){let i=arguments[1],n=M(i),r=arguments[0],s=(0,P.S)();this.addEventListener("loadstart",function(){n||e({url:i,method:r,requestId:s,apiType:"xhr"})}),this.addEventListener("load",function(){n||t({url:i,method:r,requestId:s,apiType:"xhr"})}),this.addEventListener("error",function(){n||t({url:i,method:r,requestId:s,apiType:"xhr"})}),this.addEventListener("abort",function(){n||t({url:i,method:r,requestId:s,apiType:"xhr"})}),a.apply(this,arguments)}}({onRequestStart:e,onRequestEnd:t}),N=!0),s}var U=i(88236),D=i(41447);let z="com.grafana.faro.lastNavigationId",q="resource",B=/^00-[a-f0-9]{32}-[a-f0-9]{16}-[0-9]{1,2}$/;function $(e=[]){for(let t of e)if("traceparent"===t.name){if(!B.test(t.description))continue;let[,e,i]=t.description.split("-");if(null!=e&&null!=i)return{traceId:e,spanId:i};break}}function F(e){let t,{connectEnd:i,connectStart:n,decodedBodySize:r,domainLookupEnd:s,domainLookupStart:a,duration:o,encodedBodySize:l,fetchStart:u,initiatorType:d,name:c,nextHopProtocol:h,redirectEnd:p,redirectStart:f,renderBlockingStatus:g,requestStart:m,responseEnd:b,responseStart:v,responseStatus:w,secureConnectionStart:y,transferSize:S,workerStart:T}=e;return{name:c,duration:H(o),tcpHandshakeTime:H(i-n),dnsLookupTime:H(s-a),tlsNegotiationTime:H(i-y),responseStatus:H(w),redirectTime:H(p-f),requestTime:H(v-m),responseTime:H(b-v),fetchTime:H(b-u),serviceWorkerTime:H(u-T),decodedBodySize:H(r),encodedBodySize:H(l),cacheHitStatus:(t="fullLoad",0===S?r>
10&&(t="cache"):null!=w?304===w&&(t="conditionalFetch"):l>0&&S<l&&(t="conditionalFetch"),t),renderBlockingStatus:H(g),protocol:h,initiatorType:d,visibilityState:document.visibilityState,ttfb:H(v-m),transferSize:H(S)}}function H(e){return null==e?U.y:"number"==typeof e?Math.round(e>0?e:0).toString():e.toString()}let V={initiatorType:["xmlhttprequest","fetch"]},G=new O.c;class W extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-performance",this.version=T.x}initialize(){if(!("PerformanceObserver"in window))return void this.logDebug("performance observer not supported. Disable performance instrumentation.");var e=()=>{var e,t,i,n;return e=this,t=void 0,i=void 0,n=function*(){let e=this.api.pushEvent,{faroNavigationId:t}=yield function(e){let t,i=new Promise(e=>{t=e});return new PerformanceObserver(i=>{var n;let[r]=i.getEntries();if(null==r||M(r.name))return;let s=r.toJSON(),a=$(null==s?void 0:s.serverTiming),o=null!=(n=(0,D.Gq)(z,D.Uy.session))?n:U.y,l=Object.assign(Object.assign({},function(e){var t;let{activationStart:i,domComplete:n,domContentLoadedEventEnd:r,domContentLoadedEventStart:s,domInteractive:a,fetchStart:o,loadEventEnd:l,loadEventStart:u,responseStart:d,type:c}=e,h=(null==(t=performance.timing)?void 0:t.domLoading)!=null?performance.timing.domLoading-performance.timeOrigin:null;return Object.assign(Object.assign({},F(e)),{pageLoadTime:H(n-o),documentParsingTime:H(h?a-h:null),domProcessingTime:H(n-a),domContentLoadHandlerTime:H(r-s),onLoadTime:H(l-u),ttfb:H(Math.max(d-(null!=i?i:0),0)),type:c})}(s)),{faroNavigationId:(0,P.S)(),faroPreviousNavigationId:o});(0,D.SO)(z,l.faroNavigationId,D.Uy.session),e("faro.performance.navigation",l,void 0,{spanContext:a,timestampOverwriteMs:performance.timeOrigin+s.startTime}),t(l)}).observe({type:"navigation",buffered:!0}),i}(e);null!=t&&function(e,t,i){let n=x.P.config.trackResources;new PerformanceObserver(r=>{for(let s of r.getEntries()){if(M(s.name))continue;null==i||i.notify({type:q});let r=s.toJSON(),a=$(null==r?void 0:r.serverTiming);(null==n&&function(e,t={}){for(let[i,n]of Object.entries(t)){let t=e[i];if(null==t)return!1;if((0,L.cy)(n))return n.includes(t);return t===n}return!0}(r,V)||n)&&t("faro.performance.resource",Object.assign(Object.assign({},F(r)),{faroNavigationId:e,faroResourceId:(0,P.S)()}),void 0,{spanContext:a,timestampOverwriteMs:performance.timeOrigin+r.startTime})}}).observe({type:q,buffered:!0})}(t,e,G)},new(i||(i=Promise))(function(r,s){function a(e){try{l(n.next(e))}catch(e){s(e)}}function o(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((n=n.apply(e,t||[])).next())})};if("complete"===document.readyState)e();else{let t=()=>{"complete"===document.readyState&&(e(),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)}}}let J=!1;function Z(e){return e.type===A}class K{constructor(e){this.userAction=e,this.http=R(),this.dom=j(),this.perf=(l||(l=new O.c),J||(G.subscribe(e=>{e.type===q&&l.notify({type:"resource-entry"})}),J=!0),l),this.isValid=!1,this.runningRequests=new Map}attach(){this.allMonitorsSub=new O.c().merge(this.http,this.dom,this.perf).takeWhile(()=>[I.j.Started,I.j.Halted].includes(this.userAction.getState())).filter(e=>this.userAction.getState()!==I.j.Halted||!!(Z(e)&&this.runningRequests.has(e.request.requestId))).subscribe(e=>{e.type===_&&this.runningRequests.set(e.request.requestId,e.request),Z(e)&&this.runningRequests.delete(e.request.requestId),Z(e)?this.userAction.getState()===I.j.Halted&&0===this.runningRequests.size&&this.endAction():(this.isValid||(this.isValid=!0),this.scheduleFollowUp())}),this.stateSub=this.userAction.filter(e=>[I.j.Ended,I.j.Cancelled].includes(e)).first().subscribe(()=>this.cleanup()),this.scheduleFollowUp()}scheduleFollowUp(){this.clearTimer(this.followUpTid),this.followUpTid=setTimeout(()=>this.userAction.getState()===I.j.Started&&this.runningRequests.size>0?void this.haltAction():this.isValid?void this.endAction():void this.cancelAction(),100)}haltAction(){this.userAction.getState()===I.j.Started&&(this.userAction.halt(),this.startHaltTimeout())}startHaltTimeout(){var e,t;this.clearTimer(this.haltTid),this.haltTid=(e=this.haltTid,t=()=>{this.userAction.getState()===I.j.Halted&&this.endAction()},e&&clearTimeout(e),e=setTimeout(()=>{t()},1e4))}endAction(){this.userAction.end(),this.cleanup()}cancelAction(){this.userAction.cancel(),this.cleanup()}cleanup(){var e,t;this.clearTimer(this.followUpTid),this.clearTimer(this.haltTid),null==(e=this.allMonitorsSub)||e.unsubscribe(),null==(t=this.stateSub)||t.unsubscribe(),this.allMonitorsSub=void 0,this.stateSub=void 0,this.runningRequests.clear()}clearTimer(e){e&&clearTimeout(e)}}class X extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-user-action",this.version=T.x}initialize(){let{processUserEvent:e,processUserActionStarted:t}=function(e){let{api:t,config:i}=e;function n(e){new K(e).attach()}return{processUserEvent:function(e){var r,s;let a=function(e,t){let i=function(e){let t=e.split("data-")[1],i=null==t?void 0:t.replace(/-(.)/g,(e,t)=>t.toUpperCase());return null==i?void 0:i.replace(/-/g,"")}(t),n=e.dataset;for(let e in n)if(e===i)return n[e]}(e.target,null!=(s=null==(r=i.userActionsInstrumentation)?void 0:r.dataAttributeName)?s:k.jJ);
1if(!a)return;let o=t.startUserAction(a,{},{triggerName:e.type});o&&n(o)},processUserActionStarted:n}}(x.P);window.addEventListener("pointerdown",e),window.addEventListener("keydown",t=>{[" ","Enter"].includes(t.key)&&e(t)}),this._userActionSub=E.Gx.subscribe(({type:e,userAction:i})=>{"user_action_start"===e&&t(i)})}destroy(){var e;null==(e=this._userActionSub)||e.unsubscribe()}}let Q=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;var Y=i(58627),ee=i(3002),et=i(2674);function ei(e){let t,i,n,r,s=[];if((0,L.T2)(e)&&e.error)t=e.error.message,i=e.error.name,s=(0,ee.D)(e.error);else if((n=(0,L.pp)(e))||(0,L.wX)(e)){let{name:r,message:s}=e;i=null!=r?r:n?"DOMError":"DOMException",t=s?`${i}: ${s}`:i}else(0,L.bJ)(e)?(t=e.message,s=(0,ee.D)(e)):((0,L.Gv)(e)||(r=(0,L.xH)(e)))&&(i=r?e.constructor.name:void 0,t=`Non-Error exception captured with keys: ${Object.keys(e)}`);return[t,i,s]}function en(e){let t,i,[n,r,s,a,o]=e,l=[],u=(0,L.Kg)(n),d=(0,et.S)(r,"?",s,a);return o||!u?([t,i,l]=ei(null!=o?o:n),0===l.length&&(l=[d])):u&&([t,i]=function(e){var t,i;let n=e.match(Q),r=null!=(t=null==n?void 0:n[1])?t:Y.x;return[null!=(i=null==n?void 0:n[2])?i:e,r]}(n),l=[d]),{value:t,type:i,stackFrames:l}}function er(e,t){return(0,L.bJ)(e[0])?en(e):{value:t(e)}}let es=[];class ea extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=T.x}initialize(){this.logDebug("Initializing");var e=this.api;let t=window.onerror;window.onerror=(...i)=>{try{let{value:t,type:n,stackFrames:r}=en(i),s=i[4];if(t){let i={type:n,stackFrames:r};null!=s&&(i.originalError=s),e.pushError(Error(t),i)}}finally{null==t||t.apply(window,i)}};var i=this.api;let n=e=>{var t,n;let r,s,a=e;a.reason?a=e.reason:(null==(t=e.detail)?void 0:t.reason)&&(a=null==(n=e.detail)?void 0:n.reason);let o=[];(0,L.sO)(a)?(r=`Non-Error promise rejection captured with value: ${String(a)}`,s="UnhandledRejection"):[r,s,o]=ei(a),r&&i.pushError(Error(r),{type:s,stackFrames:o})};window.addEventListener("unhandledrejection",n),es.push(n)}}class eo{t;o=0;i=[];u(e){if(e.hadRecentInput)return;let t=this.i[0],i=this.i.at(-1);this.o&&t&&i&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),this.t?.(e)}}let el=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},eu=e=>{if("loading"===document.readyState)return"loading";{let t=el();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}}return"complete"},ed=e=>{let t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},ec=e=>{let t="";try{for(;9!==e?.nodeType;){let i=e,n=i.id?"#"+i.id:[ed(i),...Array.from(i.classList).sort()].join(".");if(t.length+n.length>99)return t||n;if(t=t?n+">"+t:n,i.id)break;e=i.parentNode}}catch{}return t},eh=new WeakMap;function ep(e,t){return eh.get(e)||eh.set(e,new t),eh.get(e)}let ef=-1,eg=e=>{addEventListener("pageshow",t=>{t.persisted&&(ef=t.timeStamp,e(t))},!0)},em=(e,t,i,n)=>{let r,s;return a=>{t.value>=0&&(a||n)&&((s=t.value-(r??0))||void 0===r)&&(r=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,i),e(t))}},eb=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},ev=()=>{let e=el();return e?.activationStart??0},ew=(e,t=-1)=>{let i=el(),n="navigate";return ef>=0?n="back-forward-cache":i&&(document.prerendering||ev()>0?n="prerender":document.wasDiscarded?n="restore":i.type&&(n=i.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(0x82f79cd8fff*Math.random())+1e12}`,navigationType:n}},ey=(e,t,i={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...i}),n}}catch{}},eS=e=>{let t=!1;return()=>{t||(e(),t=!0)}},eT=-1,ex=new Set,eE=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,ek=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(let e of ex)e();isFinite(eT)||(eT="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",ek,!0))}},eO=()=>{if(eT<0){let e=ev();eT=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??eE(),addEventListener("visibilitychange",ek,!0),addEventListener("prerenderingchange",ek,!0),eg(()=>{setTimeout(()=>{eT=eE()})})}return{get firstHiddenTime(){return eT},onHidden(e){ex.add(e)}}},eI=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},e_=[1800,3e3],eA=(e,t={})=>{eI(()=>{let i=eO(),n,r=ew("FCP"),s=ey("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<i.firstHiddenTime&&(r.value=Math.max(t.startTime-ev(),0),r.entries.push(t),n(!0)))});s&&(n=em(e,r,e_,t.reportAllChanges),eg(i=>{n=em(e,r=ew("FCP"),e_,t.reportAllChanges),eb(()=>{r.value=performance.now()-i.timeStamp,n(!0)})}))})},ej=[.1,.25],eP=e=>e.find(e=>
11===e.node?.nodeType)||e[0],eL=0,eM=1/0,eC=0,eN=e=>{for(let t of e)t.interactionId&&(eM=Math.min(eM,t.interactionId),eL=(eC=Math.max(eC,t.interactionId))?(eC-eM)/7+1:0)},eR=()=>u?eL:performance.interactionCount??0,eU=0;class eD{l=[];h=new Map;m;p;v(){eU=eR(),this.l.length=0,this.h.clear()}M(){let e=Math.min(this.l.length-1,Math.floor((eR()-eU)/50));return this.l[e]}u(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;let t=this.l.at(-1),i=this.h.get(e.interactionId);if(i||this.l.length<10||e.duration>t.T){if(i?e.duration>i.T?(i.entries=[e],i.T=e.duration):e.duration===i.T&&e.startTime===i.entries[0].startTime&&i.entries.push(e):(i={id:e.interactionId,entries:[e],T:e.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((e,t)=>t.T-e.T),this.l.length>10)for(let e of this.l.splice(10))this.h.delete(e.id);this.p?.(i)}}}let ez=e=>{let t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(addEventListener("visibilitychange",e=eS(e),{once:!0,capture:!0}),t(()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})}))},eq=[200,500];class eB{m;u(e){this.m?.(e)}}let e$=[2500,4e3],eF=[800,1800],eH=e=>{document.prerendering?eI(()=>eH(e)):"complete"!==document.readyState?addEventListener("load",()=>eH(e),!0):setTimeout(e)},eV="load_state",eG="time_to_first_byte";class eW{constructor(e,t){this.corePushMeasurement=e,this.webVitalConfig=t}initialize(){this.measureCLS(),this.measureFCP(),this.measureINP(),this.measureLCP(),this.measureTTFB()}measureCLS(){var e;((e,t={})=>{let i=ep(t=Object.assign({},t),eo),n=new WeakMap;i.t=e=>{if(e?.sources?.length){let i=eP(e.sources),r=i?.node;if(r){let e=t.generateTarget?.(r)??ec(r);n.set(i,e)}}},((e,t={})=>{let i=eO();eA(eS(()=>{let n,r=ew("CLS",0),s=ep(t,eo),a=e=>{for(let t of e)s.u(t);s.o>r.value&&(r.value=s.o,r.entries=s.i,n())},o=ey("layout-shift",a);o&&(n=em(e,r,ej,t.reportAllChanges),i.onHidden(()=>{a(o.takeRecords()),n(!0)}),eg(()=>{s.o=0,n=em(e,r=ew("CLS",0),ej,t.reportAllChanges),eb(()=>n())}),setTimeout(n))}))})(t=>{e((e=>{let t={};if(e.entries.length){let i=e.entries.reduce((e,t)=>e.value>t.value?e:t);if(i?.sources?.length){let e=eP(i.sources);e&&(t={largestShiftTarget:n.get(e),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:e,largestShiftEntry:i,loadState:eu(i.startTime)})}}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{let{loadState:t,largestShiftValue:i,largestShiftTime:n,largestShiftTarget:r}=e.attribution,s=this.buildInitialValues(e);this.addIfPresent(s,"largest_shift_value",i),this.addIfPresent(s,"largest_shift_time",n);let a=this.buildInitialContext(e);this.addIfPresent(a,eV,t),this.addIfPresent(a,"largest_shift_target",r),this.pushMeasurement(s,a)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureFCP(){var e;((e,t={})=>{eA(t=>{e((e=>{let t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:eu(ef)};if(e.entries.length){let i=el(),n=e.entries.at(-1);if(i){let r=i.activationStart||0,s=Math.max(0,i.responseStart-r);t={timeToFirstByte:s,firstByteToFCP:e.value-s,loadState:eu(e.entries[0].startTime),navigationEntry:i,fcpEntry:n}}}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{let{firstByteToFCP:t,timeToFirstByte:i,loadState:n}=e.attribution,r=this.buildInitialValues(e);this.addIfPresent(r,"first_byte_to_fcp",t),this.addIfPresent(r,eG,i);let s=this.buildInitialContext(e);this.addIfPresent(s,eV,n),this.pushMeasurement(r,s)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureINP(){var e;((e,t={})=>{let i=ep(t=Object.assign({},t),eD),n=[],r=[],s=0,a=new WeakMap,o=new WeakMap,l=!1,d=()=>{l||(ez(c),l=!0)},c=()=>{let e=i.l.map(e=>a.get(e.entries[0])),t=r.length-50;r=r.filter((i,n)=>n>=t||e.includes(i));let o=new Set;for(let e of r)for(let t of h(e.startTime,e.processingEnd))o.add(t);let u=n.length-1-50;n=n.filter((e,t)=>e.startTime>s&&t>u||o.has(e)),l=!1};i.m=e=>{let t,i=e.startTime+e.duration;s=Math.max(s,e.processingEnd);for(let n=r.length-1;n>=0;n--){let s=r[n];if(8>=Math.abs(i-s.renderTime)){(t=s).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:i,entries:[e]},r.push(t)),(e.interactionId||"first-input"===e.entryType)&&a.set(e,t),d()},i.p=e=>{if(!o.get(e)){let i=e.entries[0].target;if(i){let n=t.generateTarget?.(i)??ec(i);o.set(e,n)}}};let h=(e,t)=>{let i=[];
1for(let r of n)if(!(r.startTime+r.duration<e)){if(r.startTime>t)break;i.push(r)}return i};ey("long-animation-frame",e=>{n=n.concat(e),d()}),((e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let i=eO();eI(()=>{"interactionCount"in performance||u||(u=ey("event",eN,{type:"event",buffered:!0,durationThreshold:0}));let n,r=ew("INP"),s=ep(t,eD),a=e=>{ez(()=>{for(let t of e)s.u(t);let t=s.M();t&&t.T!==r.value&&(r.value=t.T,r.entries=t.entries,n())})},o=ey("event",a,{durationThreshold:t.durationThreshold??40});n=em(e,r,eq,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),i.onHidden(()=>{a(o.takeRecords()),n(!0)}),eg(()=>{s.v(),n=em(e,r=ew("INP"),eq,t.reportAllChanges)}))})})(t=>{e((e=>{let t=e.entries[0],n=a.get(t),r=t.processingStart,s=Math.max(t.startTime+t.duration,r),l=Math.min(n.processingEnd,s),u=n.entries.sort((e,t)=>e.processingStart-t.processingStart),d=h(t.startTime,l),c=i.h.get(t.interactionId),p={interactionTarget:o.get(c),interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:s,processedEventEntries:u,longAnimationFrameEntries:d,inputDelay:r-t.startTime,processingDuration:l-r,presentationDelay:s-l,loadState:eu(t.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(e=>{if(!e.longAnimationFrameEntries?.length)return;let t=e.interactionTime,i=e.inputDelay,n=e.processingDuration,r,s,a=0,o=0,l=0,u=0;for(let l of e.longAnimationFrameEntries)for(let e of(o=o+l.startTime+l.duration-l.styleAndLayoutStart,l.scripts)){let l=e.startTime+e.duration;if(l<t)continue;let d=l-Math.max(t,e.startTime),c=e.duration?d/e.duration*e.forcedStyleAndLayoutDuration:0;a+=d-c,o+=c,d>u&&(s=e.startTime<t+i?"input-delay":e.startTime>=t+i+n?"presentation-delay":"processing-duration",r=e,u=d)}let d=e.longAnimationFrameEntries.at(-1),c=d?d.startTime+d.duration:0;c>=t+i+n&&(l=e.nextPaintTime-c),r&&s&&(e.longestScript={entry:r,subpart:s,intersectingDuration:u}),e.totalScriptDuration=a,e.totalStyleAndLayoutDuration=o,e.totalPaintDuration=l,e.totalUnattributedDuration=e.nextPaintTime-t-a-o-l})(p),Object.assign(e,{attribution:p})})(t))},t)})(e=>{let{interactionTime:t,presentationDelay:i,inputDelay:n,processingDuration:r,nextPaintTime:s,loadState:a,interactionTarget:o,interactionType:l}=e.attribution,u=this.buildInitialValues(e);this.addIfPresent(u,"interaction_time",t),this.addIfPresent(u,"presentation_delay",i),this.addIfPresent(u,"input_delay",n),this.addIfPresent(u,"processing_duration",r),this.addIfPresent(u,"next_paint_time",s);let d=this.buildInitialContext(e);this.addIfPresent(d,eV,a),this.addIfPresent(d,"interaction_target",o),this.addIfPresent(d,"interaction_type",l),this.pushMeasurement(u,d)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureLCP(){var e;((e,t={})=>{let i=ep(t=Object.assign({},t),eB),n=new WeakMap;i.m=e=>{let i=e.element;if(i){let r=t.generateTarget?.(i)??ec(i);n.set(e,r)}},((e,t={})=>{eI(()=>{let i=eO(),n,r=ew("LCP"),s=ep(t,eB),a=e=>{for(let a of(t.reportAllChanges||(e=e.slice(-1)),e))s.u(a),a.startTime<i.firstHiddenTime&&(r.value=Math.max(a.startTime-ev(),0),r.entries=[a],n())},o=ey("largest-contentful-paint",a);if(o){n=em(e,r,e$,t.reportAllChanges);let i=eS(()=>{a(o.takeRecords()),o.disconnect(),n(!0)}),s=e=>{e.isTrusted&&(ez(i),removeEventListener(e.type,s,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])addEventListener(e,s,{capture:!0});eg(i=>{n=em(e,r=ew("LCP"),e$,t.reportAllChanges),eb(()=>{r.value=performance.now()-i.timeStamp,n(!0)})})}})})(t=>{e((e=>{let t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){let i=el();if(i){let r=i.activationStart||0,s=e.entries.at(-1),a=s.url&&performance.getEntriesByType("resource").filter(e=>e.name===s.url)[0],o=Math.max(0,i.responseStart-r),l=Math.max(o,a?(a.requestStart||a.startTime)-r:0),u=Math.min(e.value,Math.max(l,a?a.responseEnd-r:0));t={target:n.get(s),timeToFirstByte:o,resourceLoadDelay:l-o,resourceLoadDuration:u-l,elementRenderDelay:e.value-u,navigationEntry:i,lcpEntry:s},s.url&&(t.url=s.url),a&&(t.lcpResourceEntry=a)}}return Object.assign(e,{attribution:t})})(t))},t)}
1)(e=>{let{elementRenderDelay:t,resourceLoadDelay:i,resourceLoadDuration:n,timeToFirstByte:r,target:s}=e.attribution,a=this.buildInitialValues(e);this.addIfPresent(a,"element_render_delay",t),this.addIfPresent(a,"resource_load_delay",i),this.addIfPresent(a,"resource_load_duration",n),this.addIfPresent(a,eG,r);let o=this.buildInitialContext(e);this.addIfPresent(o,"element",s),this.pushMeasurement(a,o)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureTTFB(){var e;((e,t={})=>{((e,t={})=>{let i=ew("TTFB"),n=em(e,i,eF,t.reportAllChanges);eH(()=>{let r=el();r&&(i.value=Math.max(r.responseStart-ev(),0),i.entries=[r],n(!0),eg(()=>{(n=em(e,i=ew("TTFB",0),eF,t.reportAllChanges))(!0)}))})})(t=>{e((e=>{let t={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(e.entries.length){let i=e.entries[0],n=i.activationStart||0,r=Math.max((i.workerStart||i.fetchStart)-n,0),s=Math.max(i.domainLookupStart-n,0),a=Math.max(i.connectStart-n,0),o=Math.max(i.connectEnd-n,0);t={waitingDuration:r,cacheDuration:s-r,dnsDuration:a-s,connectionDuration:o-a,requestDuration:e.value-o,navigationEntry:i}}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{let{dnsDuration:t,connectionDuration:i,requestDuration:n,waitingDuration:r,cacheDuration:s}=e.attribution,a=this.buildInitialValues(e);this.addIfPresent(a,"dns_duration",t),this.addIfPresent(a,"connection_duration",i),this.addIfPresent(a,"request_duration",n),this.addIfPresent(a,"waiting_duration",r),this.addIfPresent(a,"cache_duration",s);let o=this.buildInitialContext(e);this.pushMeasurement(a,o)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}buildInitialValues(e){return{[e.name.toLowerCase()]:e.value,delta:e.delta}}buildInitialContext(e){var t;let i=null!=(t=(0,D.Gq)(z,D.Uy.session))?t:U.y;return{id:e.id,rating:e.rating,navigation_type:e.navigationType,navigation_entry_id:i}}pushMeasurement(e,t){this.corePushMeasurement({type:"web-vitals",values:e},{context:t})}addIfPresent(e,t,i){i&&(e[t]=i)}}class eJ extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=T.x}initialize(){this.logDebug("Initializing"),new eW(this.api.pushMeasurement,this.config.webVitalsInstrumentation).initialize()}}var eZ=i(6256),eK=i(22670),eX=i(97664),eQ=i(98795),eY=i(70096),e0=i(82823);class e1 extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=T.x}sendSessionStartEvent(e){var t,i;let n=e.session;if(n&&n.id!==(null==(t=this.notifiedSession)?void 0:t.id)){if(this.notifiedSession&&this.notifiedSession.id===(null==(i=n.attributes)?void 0:i.previousSession)){this.api.pushEvent(eZ.Td,{},void 0,{skipDedupe:!0}),this.notifiedSession=n;return}this.notifiedSession=n,this.api.pushEvent(eZ.Vl,{},void 0,{skipDedupe:!0})}}createInitialSession(e,t){var i,n,r,s,a,o,l,u,d,c;let h,p,f=e.fetchUserSession();if(t.persistent&&t.maxSessionPersistenceTime&&f){let e=(0,eK.x3)();f.lastActivity<e-t.maxSessionPersistenceTime&&(eY.G.removeUserSession(),f=null)}if((0,e0.OW)(f)){let e=null==f?void 0:f.sessionId;p=(0,e0.Bc)({sessionId:e,isSampled:f.isSampled||!1,started:null==f?void 0:f.started});let r=null==f?void 0:f.sessionMeta,s=Object.assign(Object.assign({},null==(i=t.session)?void 0:i.overrides),null==r?void 0:r.overrides);p.sessionMeta=Object.assign(Object.assign({},t.session),{id:e,attributes:Object.assign(Object.assign(Object.assign({},null==(n=t.session)?void 0:n.attributes),null==r?void 0:r.attributes),{isSampled:p.isSampled.toString()}),overrides:s}),h=eZ.ki}else{let e=null!=(s=null==(r=t.session)?void 0:r.id)?s:({id:null!=(c=null==(d=null==(u=null==(l=x.P.config)?void 0:l.sessionTracking)?void 0:u.generateSessionId)?void 0:d.call(u))?c:(0,P.S)(),attributes:void 0}).id;p=(0,e0.Bc)({sessionId:e,isSampled:(0,eX.$)()});let i=null==(a=t.session)?void 0:a.overrides;p.sessionMeta=Object.assign({id:e,attributes:Object.assign({isSampled:p.isSampled.toString()},null==(o=t.session)?void 0:o.attributes)},i?{overrides:i}:{}),h=eZ.Vl}return{initialSession:p,lifecycleType:h}}registerBeforeSendHook(e){var t;let{updateSession:i}=new e;null==(t=this.transports)||t.addBeforeSendHooks(e=>{var t,n,r;i();let s=null==(t=e.meta.session)?void 0:t.attributes;if(s&&(null==s?void 0:s.isSampled)==="true"){let t=JSON.parse(JSON.stringify(e)),i=null==(n=t.meta.session)?void 0:n.attributes;return null==i||delete i.isSampled,0===Object.keys(null!=i?i:{}).length&&(null==(r=t.meta.session)||delete r.attributes),t}return null})}initialize(){this.logDebug("init session instrumentation");let e=this.config.sessionTracking;if(null==e?void 0:e.enabled){let t=(0,eQ.R)(e);this.registerBeforeSendHook(t);let{initialSession:i,lifecycleType:n}=this.createInitialSession(t,e);t.storeUserSession(i);let r=i.sessionMeta;
1this.notifiedSession=r,this.api.setSession(r),n===eZ.Vl&&this.api.pushEvent(eZ.Vl,{},void 0,{skipDedupe:!0}),n===eZ.ki&&this.api.pushEvent(eZ.ki,{},void 0,{skipDedupe:!0})}this.metas.addListener(this.sendSessionStartEvent.bind(this))}}class e2 extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=T.x}sendViewChangedEvent(e){var t,i,n,r;let s=e.view;s&&s.name!==(null==(t=this.notifiedView)?void 0:t.name)&&(this.api.pushEvent(eZ.wM,{fromView:null!=(n=null==(i=this.notifiedView)?void 0:i.name)?n:U.y,toView:null!=(r=s.name)?r:U.y},void 0,{skipDedupe:!0}),this.notifiedView=s)}initialize(){this.metas.addListener(this.sendViewChangedEvent.bind(this))}}class e6 extends O.c{constructor(e,t){var i,n,r,s;super(),this._tracking=!1,this.eventsObservable=e,this._options={inactivityMs:null!=(i=null==t?void 0:t.inactivityMs)?i:100,drainTimeoutMs:null!=(n=null==t?void 0:t.drainTimeoutMs)?n:1e4,isOperationStart:null!=(r=null==t?void 0:t.isOperationStart)?r:()=>void 0,isOperationEnd:null!=(s=null==t?void 0:t.isOperationEnd)?s:()=>void 0},this._initialize()}_initialize(){this.eventsObservable.filter(()=>this._tracking).subscribe(e=>{var t,i,n;this._lastEventTime=Date.now(),null==(t=this._currentEvents)||t.push(e);let r=this._options.isOperationStart(e);r&&(null==(i=this._activeOperations)||i.set(r,!0));let s=this._options.isOperationEnd(e);s&&(null==(n=this._activeOperations)||n.delete(s)),this._scheduleInactivityCheck()})}startTracking(){this._tracking||(this._tracking=!0,this._startTime=Date.now(),this._lastEventTime=Date.now(),this.notify({message:"tracking-started"}),this._currentEvents=[],this._activeOperations=new Map,this._scheduleInactivityCheck())}stopTracking(){let e;this._tracking=!1,this._clearTimer(this._inactivityTid),this._clearTimer(this._drainTid),e=this.hasActiveOperations()?Date.now()-this._startTime:this._lastEventTime?this._lastEventTime-this._startTime:0,this.notify({message:"tracking-ended",events:this._currentEvents,duration:e})}
1_scheduleInactivityCheck(){this._inactivityTid=e3(this._inactivityTid,()=>{this.hasActiveOperations()?this._startDrainTimeout():this.stopTracking()},this._options.inactivityMs)}_startDrainTimeout(){this._drainTid=e3(this._drainTid,()=>{this.stopTracking()},this._options.drainTimeoutMs)}hasActiveOperations(){return!!this._activeOperations&&this._activeOperations.size>0}_clearTimer(e){e&&clearTimeout(e)}}function e3(e,t,i){return e&&clearTimeout(e),e=setTimeout(()=>{t()},i)}let e4=new Set,e9=new Map,e5=!1;class e8 extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-navigation",this.version=T.x}initialize(){var e;let t=R(),i=j(),n=function(){function e(e,t){let i=null!=t?t:location.href;i!==h&&(c.notify({type:"url-change",from:h,to:i,trigger:e}),h=i)}if(c||(c=new O.c,h=location.href),!e5)if("navigation"in window&&"NavigateEvent"in window){b=t=>{try{let i=null==t?void 0:t.destination;(null==i?void 0:i.sameDocument)&&"string"==typeof i.url&&e("navigate",i.url)}catch(e){}},window.navigation.addEventListener("navigate",b);let t=window.NavigateEvent;t&&t.prototype&&"function"==typeof t.prototype.intercept&&(v||(v=t.prototype.intercept),t.prototype.intercept=function(t){try{let t=!!(this===null||void 0===this?void 0:this.canIntercept),i=this===null||void 0===this?void 0:this.destination;t&&i&&!1===i.sameDocument&&"string"==typeof i.url&&e("navigate-intercept",i.url)}catch(e){}return v.call(this,t)}),e5=!0}else p||(p=window.history.pushState),window.history.pushState=function(...t){let i=p.apply(window.history,t);return e("pushState"),i},f||(f=window.history.replaceState),window.history.replaceState=function(...t){let i=f.apply(window.history,t);return e("replaceState"),i},g=()=>e("popstate"),m=()=>e("hashchange"),window.addEventListener("popstate",g),window.addEventListener("hashchange",m),e5=!0;return c}(),r=(e=["pointerdown","keydown"],d||(d=new O.c),e.forEach(e=>{if(!e4.has(e)){let t=()=>{d.notify({type:"interaction",name:e})};window.addEventListener(e,t),e4.add(e),e9.set(e,t)}}),d),s=new e6(new O.c().merge(t,i,n),{inactivityMs:100,drainTimeoutMs:1e4,isOperationStart:e=>e.type===_?e.request.requestId:void 0,isOperationEnd:e=>e.type===A?e.request.requestId:void 0});s.filter(e=>"tracking-ended"===e.message).subscribe(e=>{var t,i,n;if((null==(t=e.events)?void 0:t.some(e=>"url-change"===e.type))&&(null==(i=e.events)?void 0:i.some(e=>"dom-mutation"===e.type))){let t=null==(n=e.events)?void 0:n.find(e=>"url-change"===e.type);x.P.api.pushEvent("faro.navigation",{fromUrl:null==t?void 0:t.from,toUrl:null==t?void 0:t.to,sameDocument:String(!0),duration:e.duration})}}),r.subscribe(()=>{s.startTracking()})}}var e7=i(48e3);class te extends S{constructor(){super(),this.name="@grafana/faro-web-sdk:instrumentation-csp",this.version=T.x}initialize(){document.addEventListener("securitypolicyviolation",this.securitypolicyviolationHandler.bind(this))}destroy(){document.removeEventListener("securitypolicyviolation",this.securitypolicyviolationHandler)}securitypolicyviolationHandler(e){let t={blockedURI:e.blockedURI,columnNumber:e.columnNumber,disposition:e.disposition,documentURI:e.documentURI,effectiveDirective:e.effectiveDirective,lineNumber:e.lineNumber,originalPolicy:e.originalPolicy,referrer:e.referrer,sample:e.sample,sourceFile:e.sourceFile,statusCode:e.statusCode,violatedDirective:e.violatedDirective};this.api.pushEvent("securitypolicyviolation",(0,e7.Ti)(t))}}var tt=i(52902),ti=i(76151),tn=i(60723);let tr=!1;class ts extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=T.x,this.errorSerializer=tt.Z}initialize(){var e,t;let i=this.config.consoleInstrumentation,n=(null==i?void 0:i.serializeErrors)||!!(null==i?void 0:i.errorSerializer);this.errorSerializer=n?null!=(e=null==i?void 0:i.errorSerializer)?e:Y.n:tt.Z;let r=null!=(t=null==i?void 0:i.disabledLevels)?t:ts.defaultDisabledLevels,s=function(e){if(w||(w=new O.c),!tr){let t=null!=e?e:tn.Z;ti.HT.forEach(e=>{console[e]=(...i)=>{var n;w.notify({type:"console",level:e,args:i}),null==(n=t[e])||n.apply(console,i)}}),tr=!0}return w}(this.unpatchedConsole);this.subscription=s.subscribe(({level:e,args:t})=>{if(!r.includes(e))try{if(e!==ti.$b.ERROR||(null==i?void 0:i.consoleErrorAsLog))if(e===ti.$b.ERROR&&(null==i?void 0:i.consoleErrorAsLog)){let{value:i,type:n,stackFrames:r}=er(t,this.errorSerializer);this.api.pushLog(i?[ts.consoleErrorPrefix+i]:t,{level:e,context:{value:null!=i?i:"",type:null!=n?n:"",stackFrames:(null==r?void 0:r.length)?(0,Y.n)(r):""}})}else this.api.pushLog(t,{level:e});else{let{value:e,type:i,stackFrames:n}=er(t,this.errorSerializer);if(e&&!i&&!n)return void this.api.pushError(Error(ts.consoleErrorPrefix+e));this.api.pushError(Error(ts.consoleErrorPrefix+e),{type:i,stackFrames:n})}}catch(e){this.logError(e)}})}destroy(){var e;null==(e=this.subscription)||e.unsubscribe(),this.subscription=void 0}}function ta(e={}){let t=[new X,new ea,new eJ,new e1,new e2,new e8];return!1!==e.enablePerformanceInstrumentation&&t.unshift(new W),!1!==e.enableContentSecurityPolicyInstrumentation&&t.push(new te),!1!==e.captureConsole&&t.push(new ts),t}ts.defaultDisabledLevels=[ti.$b.DEBUG,ti.$b.TRACE,ti.$b.LOG],ts.consoleErrorPrefix="console.error: "},45316:(e,t,i)=>{"use strict";i.d(t,{HS:()=>m,Lo:()=>p,N9:()=>h,Sy:()=>l,Wf:()=>r,Wo:()=>u,bz:()=>c,cB:()=>o,iC:()=>s,k4:()=>n,ld:()=>g,mZ:()=>b,rD:()=>f,tE:()=>d,xQ:()=>a});let n="\n",r="eval",s="?",a="@",o=/^\s*at (?:(?![a-z]+:\/\/)([^(]+?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,u="eval",d="address at ",c=d.length,h=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,f=" > eval",g="safari-extension",m="safari-web-extension",b=/Minified React error #\d+;/i},45328:(e,t,i)=>{"use strict";i.d(t,{rI:()=>a,N2:()=>s});var n=i(67421);let r="_faroInternal";function s(e){e.config.isolate?e.internalLogger.debug("Skipping registering internal Faro instance on global object"):(e.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(n.J,r,{configurable:!1,enumerable:!1,writable:!1,value:e}))}function a(){return r in n.J}},48e3:(e,t,i)=>{"use strict";i.d(t,{Ti:()=>s,xD:()=>r});var n=i(19682);function r(e={}){return JSON.stringify(null!=e?e:{},function(){let e=new WeakSet;return function(t,i){if((0,n.Gv)(i)&&null!==i){if(e.has(i))return null;e.add(i)}return i}}())}function s(e={}){let t={};for(let[i,s]of Object.entries(e))t[i]=(0,n.Gv)(s)&&null!==s?r(s):String(s);return t}},51111:(e,t,i)=>{"use strict";i.d(t,{NI:()=>g,Ht:()=>f,Gx:()=>p});var n=i(1613);let r={Normal:"normal"};var s=i(93947),a=i(3538),o=i(37369),l=i(22670),u=i(48e3),d=i(19682);class c{constructor(){this.buffer=[]}addItem(e){this.buffer.push(e)}flushBuffer(e){if((0,d.Tn)(e))for(let t of this.buffer)e(t);this.buffer.length=0}size(){return this.buffer.length}}class h extends n.c{constructor({name:e,parentId:t,trigger:i,transports:n,attributes:a,trackUserActionsExcludeItem:l,importance:u=r.Normal,pushEvent:d}){super(),this.name=e,this.attributes=a,this.id=(0,o.S)(),this.trigger=i,this.parentId=null!=t?t:this.id,this.trackUserActionsExcludeItem=l,this.importance=u,this._pushEvent=d,this._itemBuffer=new c,this._transports=n,this._state=s.j.Started,this._start()}addItem(e){return this._state===s.j.Started&&(this._itemBuffer.addItem(e),!0)}_start(){this._state=s.j.Started,this._state===s.j.Started&&(this.startTime=(0,l.x3)())}halt(){this._state===s.j.Started&&(this._state=s.j.Halted,this.notify(this._state))}cancel(){this._state===s.j.Started&&this._itemBuffer.flushBuffer(e=>{this._transports.execute(e)}),this._state=s.j.Cancelled,this.notify(this._state)}end(){if(this._state===s.j.Cancelled)return;
1let e=(0,l.x3)(),t=e-this.startTime;this._state=s.j.Ended,this._itemBuffer.flushBuffer(e=>{var t,i;if(t=e,(null==(i=this.trackUserActionsExcludeItem)?void 0:i(t))||t.type===a.f.MEASUREMENT&&"web-vitals"===t.payload.type)return void this._transports.execute(e);let n=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{action:{parentId:this.id,name:this.name}})});this._transports.execute(n)}),this._state=s.j.Ended,this.notify(this._state),this._pushEvent("faro.user.action",Object.assign({userActionName:this.name,userActionStartTime:this.startTime.toString(),userActionEndTime:e.toString(),userActionDuration:t.toString(),userActionTrigger:this.trigger,userActionImportance:this.importance},(0,u.Ti)(this.attributes)),void 0,{timestampOverwriteMs:this.startTime,customPayloadTransformer:e=>(e.action={id:this.id,name:this.name},e)})}getState(){return this._state}}let p=new n.c;function f({transports:e,internalLogger:t,config:i,pushEvent:n}){var a;let o,l=null==(a=i.userActionsInstrumentation)?void 0:a.excludeItem,u=()=>o;return{startUserAction:(i,a,d)=>{if(void 0!==u())return void t.error("Attempted to create a new user action while one is already running. This is not possible.");{let t=new h({name:i,transports:e,attributes:a,trigger:(null==d?void 0:d.triggerName)||"faroApiCall",importance:(null==d?void 0:d.importance)||r.Normal,trackUserActionsExcludeItem:l,pushEvent:n});return t.filter(e=>[s.j.Ended,s.j.Cancelled].includes(e)).first().subscribe(()=>{o=void 0}),p.notify({type:"user_action_start",userAction:t}),o=t}},getActiveUserAction:u}}function g(e,t){return!!e&&(null==e?void 0:e.getState())===s.j.Started&&(e.addItem(t),!0)}},52902:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>e.map(e=>{try{return String(e)}catch(e){return""}}).join(" ")},58627:(e,t,i)=>{"use strict";i.d(t,{n:()=>a,x:()=>s});var n=i(19682),r=i(48e3);let s="Error",a=e=>e.map(e=>(0,n.Gv)(e)?(0,r.xD)(e):String(e)).join(" ")},60669:(e,t,i)=>{"use strict";i.d(t,{P:()=>s,A:()=>a});var n=i(67421),r=i(45328);let s={};function a(e,t,i,a,o,l,u){return t.debug("Initializing Faro"),s={api:l,config:i,instrumentations:u,internalLogger:t,metas:a,pause:o.pause,transports:o,unpatchedConsole:e,unpause:o.unpause},(0,r.N2)(s),!function(e){if(e.config.preventGlobalExposure)e.internalLogger.debug("Skipping registering public Faro instance in the global scope");else{if(e.internalLogger.debug(`Registering public faro reference in the global scope using "${e.config.globalObjectKey}" key`),e.config.globalObjectKey in n.J)return e.internalLogger.warn(`Skipping global registration due to key "${e.config.globalObjectKey}" being used already. Please set "globalObjectKey" to something else or set "preventGlobalExposure" to "true"`);Object.defineProperty(n.J,e.config.globalObjectKey,{configurable:!1,writable:!1,value:e})}}(s),s}},60723:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=Object.assign({},console)},67421:(e,t,i)=>{"use strict";i.d(t,{J:()=>n});let n="undefined"!=typeof globalThis?globalThis:void 0!==i.g?i.g:"undefined"!=typeof self?self:void 0},67720:(e,t,i)=>{"use strict";function n(e,t){let i,n=!1,r=()=>{if(null==i){n=!1;return}e(...i),i=null,setTimeout(r,t)};return(...s)=>{if(n){i=s;return}e(...s),n=!0,setTimeout(r,t)}}i.d(t,{n:()=>n})},70096:(e,t,i)=>{"use strict";i.d(t,{G:()=>u});var n=i(48e3),r=i(60669),s=i(67720),a=i(41447),o=i(37024),l=i(82823);class u{constructor(){this.updateSession=(0,s.n)(()=>this.updateUserSession(),o.MM),this.updateUserSession=(0,l.vP)({fetchUserSession:u.fetchUserSession,storeUserSession:u.storeUserSession}),this.init()}static removeUserSession(){(0,a.Ai)(o.AQ,u.storageTypeLocal)}static storeUserSession(e){(0,a.SO)(o.AQ,(0,n.xD)(e),u.storageTypeLocal)}static fetchUserSession(){let e=(0,a.Gq)(o.AQ,u.storageTypeLocal);return e?JSON.parse(e):null}init(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.updateSession()}),r.P.metas.addListener((0,l.h$)({fetchUserSession:u.fetchUserSession,storeUserSession:u.storeUserSession}))}}u.storageTypeLocal=a.Uy.local},76151:(e,t,i)=>{"use strict";var n;i.d(t,{$b:()=>n,HT:()=>s,Ic:()=>r}),function(e){e.TRACE="trace",e.DEBUG="debug",e.INFO="info",e.LOG="log",e.WARN="warn",e.ERROR="error"}(n||(n={}));
1let r=n.LOG,s=[n.TRACE,n.DEBUG,n.INFO,n.LOG,n.WARN,n.ERROR]},82823:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>h,OW:()=>p,h$:()=>m,vP:()=>f});var n=i(22670),r=i(60669),s=i(37369),a=i(19682),o=i(28824),l=i(6256),u=i(41447),d=i(97664),c=i(37024);function h({sessionId:e,started:t,lastActivity:i,isSampled:a=!0}={}){var o,l;let u=(0,n.x3)(),d=null==(l=null==(o=r.P.config)?void 0:o.sessionTracking)?void 0:l.generateSessionId;return null==e&&(e="function"==typeof d?d():(0,s.S)()),{sessionId:e,lastActivity:null!=i?i:u,started:null!=t?t:u,isSampled:a}}function p(e){if(null==e)return!1;let t=(0,n.x3)();return t-e.started<c.Zl&&t-e.lastActivity<c.gG}function f({fetchUserSession:e,storeUserSession:t}){return function({forceSessionExtend:i}={forceSessionExtend:!1}){var s,a,o;if(!e||!t)return;let l=r.P.config.sessionTracking,c=null==l?void 0:l.persistent;if(c&&!u.OE||!c&&!u.Vv)return;let f=e();if(!1===i&&p(f))t(Object.assign(Object.assign({},f),{lastActivity:(0,n.x3)()}));else{let e=g(h({isSampled:(0,d.$)()}),f);t(e),null==(s=r.P.api)||s.setSession(e.sessionMeta),null==(a=null==l?void 0:l.onSessionChange)||a.call(l,null!=(o=null==f?void 0:f.sessionMeta)?o:null,e.sessionMeta)}}}function g(e,t){var i,n,s,o,l,u,d;let c=Object.assign(Object.assign({},e),{sessionMeta:{id:e.sessionId,attributes:Object.assign(Object.assign(Object.assign({},null==(n=null==(i=r.P.config.sessionTracking)?void 0:i.session)?void 0:n.attributes),null!=(o=null==(s=r.P.metas.value.session)?void 0:s.attributes)?o:{}),{isSampled:e.isSampled.toString()})}}),h=null!=(u=null==(l=r.P.metas.value.session)?void 0:l.overrides)?u:null==(d=null==t?void 0:t.sessionMeta)?void 0:d.overrides;(0,a.Im)(h)||(c.sessionMeta.overrides=h);let p=null==t?void 0:t.sessionId;return null!=p&&(c.sessionMeta.attributes.previousSession=p),c}function m({fetchUserSession:e,storeUserSession:t}){return function(i){let n=i.session,s=e(),a=null==n?void 0:n.id,u=null==n?void 0:n.attributes,c=null==n?void 0:n.overrides,p=null==s?void 0:s.sessionMeta,f=null==p?void 0:p.overrides,m=!!c&&!(0,o.b)(c,f),b=!!u&&!(0,o.b)(u,null==p?void 0:p.attributes);if(n&&a!==(null==s?void 0:s.sessionId)||b||m){let e=g(h({sessionId:a,isSampled:(0,d.$)()}),s);t(e),function(e,t={},i={}){var n,s,a;if(!e)return;let o=t.serviceName,u=null!=(a=null!=(n=i.serviceName)?n:null==(s=r.P.metas.value.app)?void 0:s.name)?a:"";o&&o!==u&&r.P.api.pushEvent(l.nT,{serviceName:o,previousServiceName:u})}(m,c,f),r.P.api.setSession(e.sessionMeta)}}}},84050:(e,t,i)=>{"use strict";function n(){}i.d(t,{l:()=>n})},87979:(e,t,i)=>{"use strict";let n,r,s;i.d(t,{p:()=>H});var a=i(3538),o=i(48e3),l=i(19682),u=i(22670),d=i(28824),c=i(51111),h=i(58627),p=i(76151),f=i(52902),g=i(2037),m=i(60723),b=i(84050);function v(e=m.Z,t=g.vI){let i=g.vc;return t>g.wK.OFF&&(i.error=t>=g.wK.ERROR?function(...t){e.error(`${i.prefix} 2`,...t)}:b.l,i.warn=t>=g.wK.WARN?function(...t){e.warn(`${i.prefix} 3`,...t)}:b.l,i.info=t>=g.wK.INFO?function(...t){e.info(`${i.prefix} 4`,...t)}:b.l,i.debug=t>=g.wK.VERBOSE?function(...t){e.debug(`${i.prefix} 5`,...t)}:b.l),i}g.vc;var w=i(67421),y=i(11996),S=i(45328),T=i(60669);class x{constructor(e,t){var i,n;this.signalBuffer=[],this.itemLimit=null!=(i=null==t?void 0:t.itemLimit)?i:50,this.sendTimeout=null!=(n=null==t?void 0:t.sendTimeout)?n:250,this.paused=(null==t?void 0:t.paused)||!1,this.sendFn=e,this.flushInterval=-1,this.paused||this.start(),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.flush()})}addItem(e){!this.paused&&(this.signalBuffer.push(e),this.signalBuffer.length>=this.itemLimit&&this.flush())}start(){this.paused=!1,this.sendTimeout>0&&(this.flushInterval=window.setInterval(()=>this.flush(),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(e){let t=new Map;return e.forEach(e=>{let i=JSON.stringify(e.meta),n=t.get(i);n=void 0===n?[e]:[...n,e],t.set(i,n)}),Array.from(t.values())}flush(){this.paused||0===this.signalBuffer.length||(this.groupItems(this.signalBuffer).forEach(this.sendFn),this.signalBuffer=[])}}let E=m.Z,k={enabled:!0,sendTimeout:250,itemLimit:50};var O=i(3002);function I(e){return{frames:(0,O.D)(e)}}var _=i(37024),A=i(90352),j=i(14760),P=i(88236);let L=()=>
5{let e=new j.UAParser,{name:t,version:i}=e.getBrowser(),{name:n,version:r}=e.getOS(),s=e.getUA(),a=navigator.language,o=navigator.userAgent.includes("Mobi"),l=function(){if(t&&i&&"userAgentData"in navigator&&navigator.userAgentData)return navigator.userAgentData.brands}();return{browser:{name:null!=t?t:P.y,version:null!=i?i:P.y,os:`${null!=n?n:P.y} ${null!=r?r:P.y}`,userAgent:null!=s?s:P.y,language:null!=a?a:P.y,mobile:o,brands:null!=l?l:P.y,viewportWidth:`${window.innerWidth}`,viewportHeight:`${window.innerHeight}`}}},M=()=>({sdk:{name:"faro-web",version:y.x}}),C=()=>{let e=window.k6;return{k6:Object.assign({isK6Browser:!0},(null==e?void 0:e.testRunId)&&{testRunId:null==e?void 0:e.testRunId})}};var N=i(99611);class R extends N.H{isBatched(){return!1}getIgnoreUrls(){return[]}}var U=i(98795),D=i(82823),z=function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function a(e){try{l(n.next(e))}catch(e){s(e)}}function o(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((n=n.apply(e,t||[])).next())})},q=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};class B extends R{constructor(e){var t,i,n,r;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=y.x,this.disabledUntil=new Date,this.rateLimitBackoffMs=null!=(t=e.defaultRateLimitBackoffMs)?t:5e3,this.getNow=null!=(i=e.getNow)?i:()=>Date.now(),this.promiseBuffer=function(e){let{size:t,concurrency:i}=e,n=[],r=0,s=()=>{if(r<i&&n.length){let{producer:e,resolve:t,reject:i}=n.shift();r++,e().then(e=>{r--,s(),t(e)},e=>{r--,s(),i(e)})}};return{add:e=>{if(n.length+r>=t)throw Error("Task buffer full");return new Promise((t,i)=>{n.push({producer:e,resolve:t,reject:i}),s()})}}}({size:null!=(n=e.bufferSize)?n:30,concurrency:null!=(r=e.concurrency)?r:5})}send(e){return z(this,void 0,void 0,function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add(()=>{let t,i,n=JSON.stringify((i={meta:{}},void 0!==e[0]&&(i.meta=e[0].meta),e.forEach(e=>{switch(e.type){case a.f.LOG:case a.f.EVENT:case a.f.EXCEPTION:case a.f.MEASUREMENT:{let t=a.J[e.type],n=i[t];i=Object.assign(Object.assign({},i),{[t]:void 0===n?[e.payload]:[...n,e.payload]});break}case a.f.TRACE:i=Object.assign(Object.assign({},i),{traces:function(e,t){var i,n;if(void 0===t)return e;if(void 0===e)return{resourceSpans:t};let r=null==(i=e.resourceSpans)?void 0:i[0];if(void 0===r)return e;let s=(null==r?void 0:r.scopeSpans)||[],a=(null==(n=null==t?void 0:t[0])?void 0:n.scopeSpans)||[];return Object.assign(Object.assign({},e),{resourceSpans:[Object.assign(Object.assign({},r),{scopeSpans:[...s,...a]})]})}(i.traces,e.payload.resourceSpans)})}}),i)),{url:r,requestOptions:s,apiKey:o}=this.options,l=null!=s?s:{},{headers:u={}}=l,d=q(l,["headers"]),c=this.metas.value.session;null!=c&&(t=c.id);let h={};for(let[e,t]of Object.entries(u))h[e]="function"==typeof t?t():t;return fetch(r,Object.assign({method:"POST",headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},h),o?{"x-api-key":o}:{}),t?{"x-faro-session-id":t}:{}),body:n,keepalive:n.length<=6e4},null!=d?d:{})).then(e=>z(this,void 0,void 0,function*(){return 202===e.status&&"invalid"===e.headers.get("X-Faro-Session-Status")&&this.extendFaroSession(this.config,this.logDebug),429===e.status&&(this.disabledUntil=this.getRetryAfterDate(e),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),e.text().catch(b.l),e})).catch(e=>{this.logError("Failed sending payload to the receiver\n",JSON.parse(n),e)})})}catch(e){this.logError(e)}})}getIgnoreUrls(){var e;return[this.options.url].concat(null!=(e=this.config.ignoreUrls)?e:[])}isBatched(){return!0}getRetryAfterDate(e){let t=this.getNow(),i=e.headers.get("Retry-After");if(i){let e=Number(i);if(!isNaN(e))return new Date(1e3*e+t);let n=Date.parse(i);if(!isNaN(n))return new Date(n)}return new Date(t+this.rateLimitBackoffMs)}extendFaroSession(e,t){let i="Session expired",n=e.sessionTracking;if(null==n?void 0:n.enabled){let{fetchUserSession:e,storeUserSession:r}=(0,U.R)(n);(0,D.vP)({fetchUserSession:e,storeUserSession:r})({forceSessionExtend:!0}),t(`${i} created new session.`)}else t(`${i}.`)}}var $=i(44094),F=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};function H(e){let t=function(e){var t,i,n,a,o;let u=[],d=v(e.unpatchedConsole,e.internalLoggerLevel);e.transports?((e.url||e.apiKey)&&d.error('if "transports" is defined, "url" and "apiKey" should not be defined'),u.push(...e.transports)):e.url?u.push(new B({url:e.url,apiKey:e.apiKey})):d.error('either "url" or "transports" must be defined');let{dedupe:c=!0,eventDomain:h="browser",globalObjectKey:p="faro",instrumentations:b=(0,$.w)(),internalLoggerLevel:w=g.vI,isolate:y=!1,logArgsSerializer:S=f.Z,metas:T=function(e){var t,i;let{page:n,generatePageId:a}=null!=(t=null==e?void 0:e.pageTracking)?t:{},o=[L,function({generatePageId:e,initialPageMeta:t}={}){return()=>{let i=location.href;return(0,l.Tn)(e)&&r!==i&&(r=i,s=e(location)),{page:Object.assign(Object.assign({url:i},s?{id:s}:{}),t)}}}({generatePageId:a,initialPageMeta:n}),...null!=(i=e.metas)?i:[],M];return(0,l.Gv)(null==window?void 0:window.k6)?[...o,C]:o}(e),paused:x=!1,preventGlobalExposure:E=!1,unpatchedConsole:O=m.Z,url:j,experimental:P}=e,N=F(e,["dedupe","eventDomain","globalObjectKey","instrumentations","internalLoggerLevel","isolate","logArg
5sSerializer","metas","paused","preventGlobalExposure","unpatchedConsole","url","experimental"]),R=null!=(t=null==P?void 0:P.trackNavigation)&&t,U={dataAttributeName:null!=(n=null==(i=e.userActionsInstrumentation)?void 0:i.dataAttributeName)?n:A.Ij,excludeItem:null==(a=e.userActionsInstrumentation)?void 0:a.excludeItem};return Object.assign(Object.assign({},N),{batching:Object.assign(Object.assign({},k),e.batching),dedupe:c,globalObjectKey:p,instrumentations:function(e,{experimental:t}){var i;let n=null!=(i=null==t?void 0:t.trackNavigation)&&i;return e.filter(e=>"@grafana/faro-web-sdk:instrumentation-navigation"!==e.name||!!n)}(b,e),internalLoggerLevel:w,isolate:y,logArgsSerializer:S,metas:T,parseStacktrace:I,paused:x,preventGlobalExposure:E,transports:u,unpatchedConsole:O,eventDomain:h,ignoreUrls:[...null!=(o=e.ignoreUrls)?o:[],...j?[j]:[],/\/collect(?:\/[\w]*)?$/],sessionTracking:Object.assign(Object.assign(Object.assign({},_.Fm),e.sessionTracking),function({trackGeolocation:e,sessionTracking:t}){var i;let n={};return((0,l.Lm)(e)&&(n.geoLocationTrackingEnabled=e),(0,l.Im)(n))?{}:{session:Object.assign(Object.assign({},null!=(i=null==t?void 0:t.session)?i:{}),{overrides:n})}}({trackGeolocation:e.trackGeolocation,sessionTracking:e.sessionTracking})),userActionsInstrumentation:U,experimental:{trackNavigation:R}})}(e);if(t)return function(e){var t;let i=E=null!=(t=e.unpatchedConsole)?t:E,r=v(i,e.internalLoggerLevel);if((0,S.rI)()&&!e.isolate)return void r.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');r.debug("Initializing");let s=function(e,t,i){let n=[],r=[],s=()=>n.reduce((e,t)=>Object.assign(e,(0,l.Tn)(t)?t():t),{}),a=()=>{if(r.length){let e=s();r.forEach(t=>t(e))}};return{add:(...e)=>{t.debug("Adding metas\n",e),n.push(...e),a()},remove:(...e)=>{t.debug("Removing metas\n",e),n=n.filter(t=>!e.includes(t)),a()},addListener:e=>{t.debug("Adding metas listener\n",e),r.push(e)},removeListener:e=>{t.debug("Removing metas listener\n",e),r=r.filter(t=>t!==e)},get value(){return s()}}}(0,r,0),g=function(e,t,i,n){var r;let s;t.debug("Initializing transports");let o=[],l=i.paused,u=[],d=e=>{let t=e;for(let e of u){let n=t.map(e).filter(Boolean);if(0===n.length)return[];t=function(e,t){if(t.preserveOriginalError)for(let t of e)t.type===a.f.EXCEPTION&&delete t.payload.originalError;return e}(n,i)}return t};return(null==(r=i.batching)?void 0:r.enabled)&&(s=new x(e=>{let i=d(e);if(0!==i.length)for(let e of o)t.debug(`Transporting item using ${e.name} 6`,i),e.isBatched()&&e.send(i)},{sendTimeout:i.batching.sendTimeout,itemLimit:i.batching.itemLimit,paused:l})),{add:(...r)=>{t.debug("Adding transports"),r.forEach(r=>{if(t.debug(`Adding "${r.name}" transport`),o.some(e=>e===r))return void t.warn(`Transport ${r.name} is already added`);r.unpatchedConsole=e,r.internalLogger=t,r.config=i,r.metas=n,o.push(r)})},addBeforeSendHooks:(...e)=>{t.debug("Adding beforeSendHooks\n",u),e.forEach(e=>{e&&u.push(e)})},getBeforeSendHooks:()=>[...u],execute:e=>{var n;l||((null==(n=i.batching)?void 0:n.enabled)&&(null==s||s.addItem(e)),(e=>{var n,r;if((null==(n=i.batching)?void 0:n.enabled)&&o.every(e=>e.isBatched()))return;let[s]=d([e]);if(void 0!==s)for(let e of o)t.debug(`Transporting item using ${e.name} 7`,s),e.isBatched()?(null==(r=i.batching)?void 0:r.enabled)||e.send([s]):e.send(s)})(e))},isPaused:()=>l,pause:()=>{t.debug("Pausing transports"),null==s||s.pause(),l=!0},remove:(...e)=>{t.debug("Removing transports"),e.forEach(e=>{t.debug(`Removing "${e.name}" transport`);let i=o.indexOf(e);if(-1===i)return void t.warn(`Transport "${e.name}" is not added`);o.splice(i,1)})},removeBeforeSendHooks:(...e)=>{u.filter(t=>!e.includes(t))},get transports(){return[...o]},unpause:()=>{t.debug("Unpausing transports"),null==s||s.start(),l=!1}}}(i,r,e,s),m=function(e,t,i,r,s){let g;t.debug("Initializing API");let m=null,b=(0,c.Ht)({transports:s,config:i,internalLogger:t,pushEvent:(e,i,n,r)=>{m?m(e,i,n,r):t.warn("pushEventImpl is not initialized. Event dropped:",{name:e,attributes:i,domain:n,options:r})}}),v=(t.debug("Initializing traces API"),{getOTEL:()=>g,getTraceContext:()=>{let e=null==g?void 0:g.trace.getSpanContext(g.context.active());return e?{trace_id:e.traceId,span_id:e.spanId}:void 0},initOTEL:(e,i)=>{t.debug("Initializing OpenTelemetry"),g={trace:e,context:i}},isOTELInitialized:()=>!!g,pushTraces:e=>{try{let i={type:a.f.TRACE,payload:e,meta:r.value};t.debug("Pushing trace\n",i),s.execute(i)}catch(e){t.error("Error pushing trace\n",e)}}}),w={unpatchedConsole:e,internalLogger:t,userActionsApi:b,config:i,metas:r,transports:s,tracesApi:v},y=function({internalLogger:e,config:t,metas:i,transports:n,tracesApi:r,userActionsApi:s}){let h=null;return{pushEvent:(p,f,g,{skipDedupe:m,spanContext:b,timestampOverwriteMs:v,customPayloadTransformer:w=e=>e}={})=>{try{let y=(0,o.Ti)(f),S={meta:i.value,payload:w({name:p,domain:null!=g?g:t.eventDomain,attributes:(0,l.Im)(y)?void 0:y,timestamp:v?(0,u.q5)(v):(0,u.mI)(),trace:b?{trace_id:b.traceId,span_id:b.spanId}:r.getTraceContext()}),type:a.f.EVENT},T={name:S.payload.name,attributes:S.payload.attributes,domain:S.payload.domain};if(!m&&t.dedupe&&!(0,l.kZ)(h)&&(0,d.b)(T,h))return void e.debug("Skipping event push because it is the same as the last one\n",S.payload);h=T,e.debug("Pushing event\n",S),(0,c.NI)(s.getActiveUserAction(),S)||n.execute(S)}catch(t){e.error("Error pushing event",t)}}}}(w);return m=y.pushEvent,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v),function({internalLogger:e,config:t,metas:i,transports:r,tracesApi:s,userActionsApi:p}){var f;e.debug("Initializing exceptions API");let g=null;n=null!=(f=t.parseStacktrace)?f:n;let m=t=>{e.debug("Changing stacktrace parser"),n=null!=t?t:n},{ignoreErrors:b=[],preserveOriginalError:v}=t;return m(t.parseStacktrace),{changeStacktraceParser:m,getStacktraceParser:()=>n,pushError:(f,{skipDedupe:m,stackFrames:w,type:y,context:S,spanContext:T,timestampOverwriteMs:x,originalError:E}={})=>
7{if(!function(e,t){var i;let{message:n,name:r,stack:s}=t;return i=n+" "+r+" "+s,e.some(e=>(0,l.Kg)(e)?i.includes(e):!!i.match(e))}(b,null!=E?E:f))try{var k;let b,O=(0,o.Ti)(Object.assign(Object.assign({},(b=(k=null!=E?E:f).cause,(0,l.bJ)(b)?b=k.cause.toString():null!==b&&((0,l.Gv)(k.cause)||(0,l.cy)(k.cause))?b=(0,o.xD)(k.cause):null!=b&&(b=k.cause.toString()),null==b?{}:{cause:b})),null!=S?S:{})),I={meta:i.value,payload:Object.assign(Object.assign({type:y||f.name||h.x,value:f.message,timestamp:x?(0,u.q5)(x):(0,u.mI)(),trace:T?{trace_id:T.traceId,span_id:T.spanId}:s.getTraceContext()},(0,l.Im)(O)?{}:{context:O}),v?{originalError:E}:{}),type:a.f.EXCEPTION};(null==(w=null!=w?w:f.stack?null==n?void 0:n(f).frames:void 0)?void 0:w.length)&&(I.payload.stacktrace={frames:w});let _={type:I.payload.type,value:I.payload.value,stackTrace:I.payload.stacktrace,context:I.payload.context};if(!m&&t.dedupe&&!(0,l.kZ)(g)&&(0,d.b)(_,g))return void e.debug("Skipping error push because it is the same as the last one\n",I.payload);g=_,e.debug("Pushing exception\n",I),(0,c.NI)(p.getActiveUserAction(),I)||r.execute(I)}catch(t){e.error("Error pushing event",t)}}}}(w)),function({internalLogger:e,metas:t}){let i,n,r,s;e.debug("Initializing meta API");let a=e=>{n&&t.remove(n),n={user:e},t.add(n)},o=(e,n)=>{var r;let s=null==n?void 0:n.overrides,a=s?{overrides:Object.assign(Object.assign({},null==(r=null==i?void 0:i.session)?void 0:r.overrides),s)}:{};i&&t.remove(i),i={session:Object.assign(Object.assign({},(0,l.Im)(e)?void 0:e),a)},t.add(i)},u=()=>t.value.session,d=()=>t.value.page;return{setUser:a,resetUser:a,setSession:o,resetSession:o,getSession:u,setView:(e,i)=>{var n;if((null==i?void 0:i.overrides)&&o(u(),{overrides:i.overrides}),(null==(n=null==r?void 0:r.view)?void 0:n.name)===(null==e?void 0:e.name))return;let s=r;r={view:e},t.add(r),s&&t.remove(s)},getView:()=>t.value.view,setPage:e=>{var i;let n=(0,l.Kg)(e)?Object.assign(Object.assign({},null!=(i=null==s?void 0:s.page)?i:d()),{id:e}):e;s&&t.remove(s),s={page:n},t.add(s)},getPage:d}}(w)),function({internalLogger:e,config:t,metas:i,transports:n,tracesApi:r,userActionsApi:s}){var h;e.debug("Initializing logs API");let g=null,m=null!=(h=t.logArgsSerializer)?h:f.Z;return{pushLog:(h,{context:f,level:b,skipDedupe:v,spanContext:w,timestampOverwriteMs:y}={})=>{try{let S=(0,o.Ti)(f),T={type:a.f.LOG,payload:{message:m(h),level:null!=b?b:p.Ic,context:(0,l.Im)(S)?void 0:S,timestamp:y?(0,u.q5)(y):(0,u.mI)(),trace:w?{trace_id:w.traceId,span_id:w.spanId}:r.getTraceContext()},meta:i.value},x={message:T.payload.message,level:T.payload.level,context:T.payload.context};if(!v&&t.dedupe&&!(0,l.kZ)(g)&&(0,d.b)(x,g))return void e.debug("Skipping log push because it is the same as the last one\n",T.payload);g=x,e.debug("Pushing log\n",T),(0,c.NI)(s.getActiveUserAction(),T)||n.execute(T)}catch(t){e.error("Error pushing log\n",t)}}}}(w)),function({internalLogger:e,config:t,metas:i,transports:n,tracesApi:r,userActionsApi:s}){e.debug("Initializing measurements API");let h=null;return{pushMeasurement:(p,{skipDedupe:f,context:g,spanContext:m,timestampOverwriteMs:b}={})=>{try{let v=(0,o.Ti)(g),w={type:a.f.MEASUREMENT,payload:Object.assign(Object.assign({},p),{trace:m?{trace_id:m.traceId,span_id:m.spanId}:r.getTraceContext(),timestamp:b?(0,u.q5)(b):(0,u.mI)(),context:(0,l.Im)(v)?void 0:v}),meta:i.value},y={type:w.payload.type,values:w.payload.values,context:w.payload.context};if(!f&&t.dedupe&&!(0,l.kZ)(h)&&(0,d.b)(y,h))return void e.debug("Skipping measurement push because it is the same as the last one\n",w.payload);h=y,e.debug("Pushing measurement\n",w),(0,c.NI)(s.getActiveUserAction(),w)||n.execute(w)}catch(t){e.error("Error pushing measurement\n",t)}}}}(w)),y),b)}(i,r,e,s,g),b=function(e,t,i,n,r,s){t.debug("Initializing instrumentations");let a=[];return{add:(...o)=>{t.debug("Adding instrumentations"),o.forEach(o=>{if(t.debug(`Adding "${o.name}" instrumentation`),a.some(e=>e.name===o.name))return void t.warn(`Instrumentation ${o.name} is already added`);o.unpatchedConsole=e,o.internalLogger=t,o.config=i,o.metas=n,o.transports=r,o.api=s,a.push(o),o.initialize()})},get instrumentations(){return[...a]},remove:(...e)=>
7{t.debug("Removing instrumentations"),e.forEach(e=>{var i,n;t.debug(`Removing "${e.name}" instrumentation`);let r=a.reduce((t,i,n)=>null===t&&i.name===e.name?n:null,null);if(null===r)return void t.warn(`Instrumentation "${e.name}" is not added`);null==(n=(i=a[r]).destroy)||n.call(i),a.splice(r,1)})}}}(i,r,e,s,g,m),k=(0,T.A)(i,r,e,s,g,m,b);return!function(e){var t,i,n;let r={sdk:{version:y.x,name:"faro"},app:{bundleId:e.config.app.name&&(n=e.config.app.name,null===w.J||void 0===w.J?void 0:w.J[`__faroBundleId_${n}`])}},s=null==(t=e.config.sessionTracking)?void 0:t.session;s&&e.api.setSession(s),e.config.app&&(r.app=Object.assign(Object.assign({},e.config.app),r.app)),e.config.user&&(r.user=e.config.user),e.config.view&&(r.view=e.config.view),e.metas.add(r,...null!=(i=e.config.metas)?i:[])}(k),k.transports.add(...k.config.transports),k.transports.addBeforeSendHooks(k.config.beforeSend),k.instrumentations.add(...k.config.instrumentations),k}(t)}},88236:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});let n="unknown"},90352:(e,t,i)=>{"use strict";i.d(t,{Ij:()=>r,jJ:()=>n});let n="faroUserActionName",r="data-faro-user-action-name"},93947:(e,t,i)=>{"use strict";var n;i.d(t,{j:()=>n}),function(e){e[e.Started=0]="Started",e[e.Halted=1]="Halted",e[e.Cancelled=2]="Cancelled",e[e.Ended=3]="Ended"}(n||(n={}))},97664:(e,t,i)=>{"use strict";i.d(t,{$:()=>r});var n=i(60669);function r(){var e,t,i;let r=n.P.config.sessionTracking,s=null!=(i=null!=(t=null==(e=null==r?void 0:r.sampler)?void 0:e.call(r,{metas:n.P.metas.value}))?t:null==r?void 0:r.samplingRate)?i:1;return"number"!=typeof s&&(s=0),Math.random()<s}},98795:(e,t,i)=>{"use strict";i.d(t,{R:()=>c});var n=i(70096),r=i(48e3),s=i(60669),a=i(67720),o=i(41447),l=i(37024),u=i(82823);class d{constructor(){this.updateSession=(0,a.n)(()=>this.updateUserSession(),l.MM),this.updateUserSession=(0,u.vP)({fetchUserSession:d.fetchUserSession,storeUserSession:d.storeUserSession}),this.init()}static removeUserSession(){(0,o.Ai)(l.AQ,d.storageTypeSession)}static storeUserSession(e){(0,o.SO)(l.AQ,(0,r.xD)(e),d.storageTypeSession)}static fetchUserSession(){let e=(0,o.Gq)(l.AQ,d.storageTypeSession);return e?JSON.parse(e):null}init(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.updateSession()}),s.P.metas.addListener((0,u.h$)({fetchUserSession:d.fetchUserSession,storeUserSession:d.storeUserSession}))}}function c(e){return(null==e?void 0:e.persistent)?n.G:d}d.storageTypeSession=o.Uy.session},99611:(e,t,i)=>{"use strict";i.d(t,{H:()=>s});var n=i(2037),r=i(60723);class s{constructor(){this.unpatchedConsole=r.Z,this.internalLogger=n.vc,this.config={},this.metas={}}logDebug(...e){this.internalLogger.debug(`${this.name} 8`,...e)}logInfo(...e){this.internalLogger.info(`${this.name} 9`,...e)}logWarn(...e){this.internalLogger.warn(`${this.name} 10`,...e)}logError(...e){this.internalLogger.error(`${this.name} 11`,...e)}}}}]);
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.