1try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})["__faroBundleId_Smicolon Frontend"]="1791333374264b885e1698f"}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1811],{21811:(e,t,i)=>{"use strict";let n,r,a;i.r(t),i.d(t,{BaseExtension:()=>i3.H,BaseInstrumentation:()=>s.i,BaseTransport:()=>i5,CSPInstrumentation:()=>iq,ConsoleInstrumentation:()=>i$,ConsoleTransport:()=>nu,Conventions:()=>ip,EVENT_CLICK:()=>im,EVENT_NAVIGATION:()=>ih,EVENT_ROUTE_CHANGE:()=>iy,EVENT_SESSION_EXTEND:()=>iw,EVENT_SESSION_RESUME:()=>ib,EVENT_SESSION_START:()=>ig,EVENT_VIEW_CHANGED:()=>iv,ErrorsInstrumentation:()=>eu,FetchTransport:()=>ne,InternalLoggerLevel:()=>iW.wK,LogLevel:()=>iV.$b,MAX_SESSION_PERSISTENCE_TIME:()=>iC,MAX_SESSION_PERSISTENCE_TIME_BUFFER:()=>iO,Observable:()=>b.c,PerformanceInstrumentation:()=>z,PersistentSessionsManager:()=>iD,SESSION_EXPIRATION_TIME:()=>ik,SESSION_INACTIVITY_TIME:()=>iI,STORAGE_KEY:()=>ix,SessionInstrumentation:()=>iB,TransportItemType:()=>i4.f,USER_ACTION_CANCEL:()=>g._G,USER_ACTION_END:()=>g.$g,USER_ACTION_HALT:()=>g.vX,USER_ACTION_START:()=>g.OV,UserActionInstrumentation:()=>$,VERSION:()=>o.x,ViewInstrumentation:()=>iz,VolatileSessionsManager:()=>iR,WebVitalsInstrumentation:()=>id,allLogLevels:()=>iV.HT,apiMessageBus:()=>v.Q,browserMeta:()=>i1,buildStackFrame:()=>en,createInternalLogger:()=>iX,createPromiseBuffer:()=>i6,createSession:()=>iS,deepEqual:()=>iA.b,defaultEventDomain:()=>iQ,defaultExceptionType:()=>K.x,defaultGlobalObjectKey:()=>iJ,defaultInternalLoggerLevel:()=>iW.vI,defaultLogLevel:()=>iV.Ic,faro:()=>l.P,genShortID:()=>h,getCurrentTimestamp:()=>p.mI,getDataFromSafariExtensions:()=>er,getIgnoreUrls:()=>y.fC,getInternalFaroFromGlobalObject:()=>nr.qn,getStackFramesFromError:()=>ea,getTransportBody:()=>i9,getUrlFromResource:()=>y.iM,getWebInstrumentations:()=>iH,globalObject:()=>nn.J,initializeFaro:()=>no,internalGlobalObjectKey:()=>nc.F,isArray:()=>M.cy,isBoolean:()=>M.Lm,isDomError:()=>M.pp,isDomException:()=>M.wX,isElement:()=>M.vq,isElementDefined:()=>M.c9,isEmpty:()=>M.Im,isError:()=>M.bJ,isErrorDefined:()=>M.Op,isErrorEvent:()=>M.T2,isEvent:()=>M.xH,isEventDefined:()=>M.Gm,isFunction:()=>M.Tn,isInstanceOf:()=>M.tH,isInt:()=>M.E6,isInternalFaroOnGlobalObject:()=>nr.rI,isMap:()=>M.jh,isMapDefined:()=>M.MY,isNull:()=>M.kZ,isNumber:()=>M.Et,isObject:()=>M.Gv,isPrimitive:()=>M.sO,isRegExp:()=>M.gd,isString:()=>M.Kg,isSymbol:()=>M.Bm,isSyntheticEvent:()=>M.mE,isThenable:()=>M.Qg,isToString:()=>M.Xv,isTypeof:()=>M.Ed,isUndefined:()=>M.b0,makeCoreConfig:()=>ni,noop:()=>iK.l,parseStacktrace:()=>iY,sdkMeta:()=>nl,setInternalFaroOnGlobalObject:()=>nr.N2,startUserAction:()=>H,transportItemTypeToBodyKey:()=>i4.J,unknownString:()=>T.y,userActionDataAttribute:()=>d});var s=i(23838),o=i(24539),l=i(21902);let u="http-request-start",c="http-request-end",d="data-faro-user-action-name",f="faroApiCall";var p=i(7523);let m="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function h(e=10){return Array.from(Array(e)).map(()=>m[Math.floor(Math.random()*m.length)]).join("")}var v=i(97659),g=i(51815),b=i(74668),w=i(52841),y=i(80024);let S="fetch";var T=i(47713);let E={session:"sessionStorage",local:"localStorage"};function x(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=l.P.internalLogger)||t.info(`Web storage of type ${e} is not available. Reason: ${i}`),!1}}function k(e,t){return A(t)?window[t].getItem(e):null}function I(e,t,i){if(A(i))try{window[i].setItem(e,t)}catch(e){}}function O(e,t){A(t)&&window[t].removeItem(e)}let C=x(E.local),L=x(E.session);function A(e){return e===E.local?C:e===E.session&&L}let P="com.grafana.faro.lastNavigationId",_="resource";var M=i(70951);let N=/^00-[a-f0-9]{32}-[a-f0-9]{16}-[0-9]{1,2}$/;function j(e=[]){for(let t of e)if("traceparent"===t.name){if(!N.test(t.description))continue;let[,e,i]=t.description.split("-");if(null!=e&&null!=i)return{traceId:e,spanId:i};break}}function D(e){let t,{connectEnd:i,connectStart:n,decodedBodySize:r,domainLookupEnd:a,domainLookupStart:s,duration:o,encodedBodySize:l,fetchStart:u,initiatorType:c,name:d,nextHopProtocol:f,redirectEnd:p,redirectStart:m,renderBlockingStatus:h,requestStart:v,responseEnd:g,responseStart:b,responseStatus:w,secureConnectionStart:y,transferSize:S,workerStart:T}=e;return{name:d,duration:R(o),tcpHandshakeTime:R(i-n),dnsLookupTime:R(a-s),tlsNegotiationTime:R(i-y),responseStatus:R(w),redirectTime:R(p-m),requestTime:R(b-v),responseTime:R(g-b),fetchTime:R(g-u),serviceWorkerTime:R(u-T),decodedBodySize:R(r),encodedBodySize:R(l),cacheHitStatus:(t="fullLoad",0===S?r>
10&&(t="cache"):null!=w?304===w&&(t="conditionalFetch"):l>0&&S<l&&(t="conditionalFetch"),t),renderBlockingStatus:R(h),protocol:f,initiatorType:c,visibilityState:document.visibilityState,ttfb:R(b-v),transferSize:R(S)}}function R(e){return null==e?T.y:"number"==typeof e?Math.round(e>0?e:0).toString():e.toString()}let U={initiatorType:["xmlhttprequest","fetch"]},B=new b.c;class z extends s.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-performance",this.version=o.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||(0,y.Ki)(r.name))return;let a=r.toJSON(),s=j(null==a?void 0:a.serverTiming),o=null!=(n=k(P,E.session))?n:T.y,l=Object.assign(Object.assign({},function(e){var t;let{activationStart:i,domComplete:n,domContentLoadedEventEnd:r,domContentLoadedEventStart:a,domInteractive:s,fetchStart:o,loadEventEnd:l,loadEventStart:u,responseStart:c,type:d}=e,f=(null==(t=performance.timing)?void 0:t.domLoading)!=null?performance.timing.domLoading-performance.timeOrigin:null;return Object.assign(Object.assign({},D(e)),{pageLoadTime:R(n-o),documentParsingTime:R(f?s-f:null),domProcessingTime:R(n-s),domContentLoadHandlerTime:R(r-a),onLoadTime:R(l-u),ttfb:R(Math.max(c-(null!=i?i:0),0)),type:d})}(a)),{faroNavigationId:h(),faroPreviousNavigationId:o});I(P,l.faroNavigationId,E.session),e("faro.performance.navigation",l,void 0,{spanContext:s,timestampOverwriteMs:performance.timeOrigin+a.startTime}),t(l)}).observe({type:"navigation",buffered:!0}),i}(e);null!=t&&function(e,t,i){let n=l.P.config.trackResources;new PerformanceObserver(r=>{for(let a of r.getEntries()){if((0,y.Ki)(a.name))return;let r=a.toJSON(),s=j(null==r?void 0:r.serverTiming);if(null==n&&function(e,t={}){for(let[i,n]of Object.entries(t)){let t=e[i];if(null==t)return!1;if((0,M.cy)(n))return n.includes(t);return t===n}return!0}(r,U)||n){let n=Object.assign(Object.assign({},D(r)),{faroNavigationId:e,faroResourceId:h()});l.P.config.trackUserActionsPreview&&(null==i||i.notify({type:_})),t("faro.performance.resource",n,void 0,{spanContext:s,timestampOverwriteMs:performance.timeOrigin+r.startTime})}}}).observe({type:_,buffered:!0})}(t,e,B)},new(i||(i=Promise))(function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,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)}}}function q(e){let{api:t,userActionName:i,startTime:n,endTime:r,actionId:a,event:s,attributes:o}=e,l=r-n,u=s.type;v.Q.notify({type:g.$g,name:i,id:a,startTime:n,endTime:r,duration:l,eventType:u}),t.pushEvent(i,Object.assign({userActionStartTime:n.toString(),userActionEndTime:r.toString(),userActionDuration:l.toString(),userActionTrigger:u},(0,w.Ti)(o)),void 0,{timestampOverwriteMs:n,customPayloadTransformer:e=>(e.action={id:a,name:i},e)})}function F(e,t,i){return e&&clearTimeout(e),e=setTimeout(()=>{t()},i)}function V(e){null==e||e.unsubscribe(),e=void 0}class $ extends s.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-user-action",this.version=o.x}initialize(){n=function(e){let t,{api:i,config:n}=e,r=function(){let e=new b.c;function t(t){e.notify({type:u,request:t})}function i(t){e.notify({type:c,request:t})}return function({onRequestEnd:e,onRequestStart:t}){let i=window.fetch;window.fetch=function(){var n,r;let a=null!=(n=(0,y.iM)(arguments[0]))?n:"",s=(0,y.Ki)(a),o=(null!=(r=arguments[1])?r:{}).method,l=h();return s||t({url:a,method:o,requestId:l,apiType:S}),i.apply(this,arguments).then(t=>(s||e({url:a,method:o,requestId:l,apiType:S}),t)).catch(t=>{throw s||e({url:a,method:o,requestId:l,apiType:S}),t})}}({onRequestStart:t,onRequestEnd:i}),function({onRequestStart:e,onRequestEnd:t}){let i=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){let n=arguments[1],r=(0,y.Ki)(n),a=arguments[0],s=h();this.addEventListener("loadstart",function(){r||e({url:n,method:a,requestId:s,apiType:"xhr"})}),this.addEventListener("load",function(){r||t({url:n,method:a,requestId:s,apiType:"xhr"})}),this.addEventListener("error",function(){r||t({url:n,method:a,requestId:s,apiType:"xhr"})}),this.addEventListener("abort",function(){r||t({url:n,method:a,requestId:s,apiType:"xhr"})}),i.apply(this,arguments)}}({onRequestStart:t,onRequestEnd:i}),e}(),a=function(){let e=new b.c;return new MutationObserver((t,i)=>{e.notify({type:"dom-mutation"})}).observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}
1),e}(),s=function(){let e=new b.c;return B.subscribe(t=>{t.type===_&&e.notify({type:"resource-entry"})}),e}(),o=!1;return function(e){var l,d;let m,w,y,S=(d=e).type===f&&"string"==typeof d.name;if(m=S?e.name: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!=(l=n.trackUserActionsDataAttributeName)?l:"faroUserActionName"),o||null==m)return;o=!0;let T=(0,p.x3)(),E=h();v.Q.notify({type:g.OV,name:m,startTime:T,parentId:E}),t=F(t,()=>{var e,t;w=(0,p.x3)(),o=!1,e=m,t=E,v.Q.notify({type:g._G,name:e,parentId:t})},100);let x=new Map,k=!1,I=new b.c().merge(r,a,s).takeWhile(()=>o).filter(e=>!k||!!(e.type===c&&x.has(e.request.requestId))).subscribe(n=>{n.type===u&&x.set(n.request.requestId,n.request),n.type===c&&x.delete(n.request.requestId),t=F(t,()=>{let t=Object.assign({api:i,userActionName:m,startTime:T,endTime:w=(0,p.x3)(),actionId:E,event:e},S?{attributes:e.attributes}:{}),n=x.size>0;k&&!n&&(clearTimeout(y),k=!1),n?(k=!0,v.Q.notify({type:g.vX,name:m,parentId:E,reason:"pending-requests",haltTime:(0,p.x3)()}),y=F(void 0,()=>{V(I),q(t),o=!1,k=!1},1e4)):(V(I),q(t),o=!1,k=!1)},100)})}}(l.P),window.addEventListener("pointerdown",n),window.addEventListener("keydown",n)}}function H(e,t){var i;null==n||n((i=e,{name:i,attributes:t,type:f}))}let G=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;var K=i(91190);let W=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,X=/\((\S*)(?::(\d+))(?::(\d+))\)/,J="address at ",Z=J.length,Q=/^\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,Y=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ee="safari-extension",et="safari-web-extension",ei=/Minified React error #\d+;/i;function en(e,t,i,n){let r={filename:e||document.location.href,function:t||"?"};return void 0!==i&&(r.lineno=i),void 0!==n&&(r.colno=n),r}function er(e,t){let i=null==e?void 0:e.includes(ee),n=!i&&(null==e?void 0:e.includes(et));return i||n?[(null==e?void 0:e.includes("@"))?e.split("@")[0]:e,i?`${ee}:${t}`:`${et}:${t}`]:[e,t]}function ea(e){let t=[];e.stacktrace?t=e.stacktrace.split("\n").filter((e,t)=>t%2==0):e.stack&&(t=e.stack.split("\n"));let i=t.reduce((t,i,n)=>{let r,a,s,o,l;if(r=W.exec(i)){if(a=r[1],s=r[2],o=r[3],l=r[4],null==s?void 0:s.startsWith("eval")){let e=X.exec(s);e&&(s=e[1],o=e[2],l=e[3])}s=(null==s?void 0:s.startsWith(J))?s.substring(Z):s,[a,s]=er(a,s)}else if(r=Q.exec(i)){if(a=r[1],s=r[3],o=r[4],l=r[5],s&&s.includes(" > eval")){let e=Y.exec(s);e&&(a=a||"eval",s=e[1],o=e[2])}else 0===n&&!l&&(0,M.Et)(e.columnNumber)&&(l=String(e.columnNumber+1));[a,s]=er(a,s)}return(s||a)&&t.push(en(s,a,o?Number(o):void 0,l?Number(l):void 0)),t},[]);return ei.test(e.message)?i.slice(1):i}function es(e){let t,i,n,r,a=[];if((0,M.T2)(e)&&e.error)t=e.error.message,i=e.error.name,a=ea(e.error);else if((n=(0,M.pp)(e))||(0,M.wX)(e)){let{name:r,message:a}=e;i=null!=r?r:n?"DOMError":"DOMException",t=a?`${i}: ${a}`:i}else(0,M.bJ)(e)?(t=e.message,a=ea(e)):((0,M.Gv)(e)||(r=(0,M.xH)(e)))&&(i=r?e.constructor.name:void 0,t=`Non-Error exception captured with keys: ${Object.keys(e)}`);return[t,i,a]}function eo(e){let t,i,[n,r,a,s,o]=e,l=[],u=(0,M.Kg)(n),c=en(r,"?",a,s);return o||!u?([t,i,l]=es(null!=o?o:n),0===l.length&&(l=[c])):u&&([t,i]=function(e){var t,i;let n=e.match(G),r=null!=(t=null==n?void 0:n[1])?t:K.x;return[null!=(i=null==n?void 0:n[2])?i:e,r]}(n),l=[c]),{value:t,type:i,stackFrames:l}}function el(e,t){return(0,M.bJ)(e[0])?eo(e):{value:t(e)}}class eu extends s.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=o.x}initialize(){this.logDebug("Initializing");var e,t=this.api;let i=window.onerror;window.onerror=(...e)=>{try{let{value:i,type:n,stackFrames:r}=eo(e),a=e[4];if(i){let e={type:n,stackFrames:r};null!=a&&(e.originalError=a),t.pushError(Error(i),e)}}finally{null==i||i.apply(window,e)}},e=this.api,window.addEventListener("unhandledrejection",t=>{var i,n;let r,a,s=t;s.reason?s=t.reason:(null==(i=t.detail)?void 0:i.reason)&&(s=null==(n=t.detail)?void 0:n.reason);let o=[];(0,M.sO)(s)?(r=`Non-Error promise rejection captured with value: ${String(s)}`,a="UnhandledRejection"):[r,a,o]=es(s),r&&e.pushError(Error(r),{type:a,stackFrames:o})})}}var ec,ed,ef,ep,em,eh=-1,ev=function(e){addEventListener("pageshow",function(t){t.persisted&&(eh=t.timeStamp,e(t))},!0)},eg=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},eb=function(){var e=eg();return e&&e.activationStart||0},ew=function(e,t){var i=eg(),n="navigate";return eh>=0?n="back-forward-cache":i&&(document.prerendering||eb()>0?n="prerender":document.wasDiscarded?n="restore":i.type&&(n=i.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},ey=function(e,t,i){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},i||{})),n}}catch(e){}},eS=function(e,t,i,n){var r,a;return function(s){var o;t.value>=0&&(s||n)&&((a=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=a,o=t.value,t.rating=o>i[1]?"poor":o>i[0]?"needs-improvement":"good",e(t))}},eT=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},eE=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},ex=function(e){var t=!1;return function(){t||(e(),t=!0)}},ek=-1,eI=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},eO=function(e){"hidden"===document.visibilityState&&ek>-1&&(ek="visibilitychange"===e.type?e.timeStamp:0,eL())},eC=function(){addEventListener("visibilitychange",eO,!0),addEventListener("prerenderingchange",eO,!0)},eL=function(){removeEventListener("visibilitychange",eO,!0),removeEventListener("prerenderingchange",eO,!0)},eA=function(){return ek<0&&(ek=eI(),eC(),ev(function(){setTimeout(function(){ek=eI(),eC()},0)})),{get firstHiddenTime(){return ek}}},eP=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},e_=[1800,3e3],eM=function(e,t){t=t||{},eP(function(){var i,n=eA(),r=ew("FCP"),a=ey("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-eb(),0),r.entries.push(e),i(!0)))})});a&&(i=eS(e,r,e_,t.reportAllChanges),ev(function(n){i=eS(e,r=ew("FCP"),e_,t.reportAllChanges),eT(function(){r.value=performance.now()-n.timeStamp,i(!0)})}))})},eN=[.1,.25],ej=0,eD=1/0,eR=0,eU=function(e){e.forEach(function(e){e.interactionId&&(eD=Math.min(eD,e.interactionId),ej=(eR=Math.max(eR,e.interactionId))?(eR-eD)/7+1:0)})},eB=function(){return ec?ej:performance.interactionCount||0},ez=function(){"interactionCount"in performance||ec||(ec=ey("event",eU,{type:"event",buffered:!0,durationThreshold:0}))},eq=[],eF=new Map,eV=0,e$=function(){var e=Math.min(eq.length-1,Math.floor((eB()-eV)/50));return eq[e]},eH=[],eG=function(e){if(eH.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=eq[eq.length-1],i=eF.get(e.interactionId);if(i||eq.length<10||e.duration>t.latency){if(i)e.duration>i.latency?(i.entries=[e],i.latency=e.duration):e.duration===i.latency&&e.startTime===i.entries[0].startTime&&i.entries.push(e);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};eF.set(n.id,n),eq.push(n)}eq.sort(function(e,t){return t.latency-e.latency}),eq.length>
110&&eq.splice(10).forEach(function(e){return eF.delete(e.id)})}}},eK=function(e){var t=self.requestIdleCallback||self.setTimeout,i=-1;return e=ex(e),"hidden"===document.visibilityState?e():(i=t(e),eE(e)),i},eW=[200,500],eX=[2500,4e3],eJ={},eZ=[800,1800],eQ=function e(t){document.prerendering?eP(function(){return e(t)}):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},eY={passive:!0,capture:!0},e0=new Date,e1=function(e,t){ed||(ed=t,ef=e,ep=new Date,e5(removeEventListener),e2())},e2=function(){if(ef>=0&&ef<ep-e0){var e={entryType:"first-input",name:ed.type,target:ed.target,cancelable:ed.cancelable,startTime:ed.timeStamp,processingStart:ed.timeStamp+ef};em.forEach(function(t){t(e)}),em=[]}},e3=function(e){if(e.cancelable){var t,i,n,r=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){e1(r,e),n()},i=function(){n()},n=function(){removeEventListener("pointerup",t,eY),removeEventListener("pointercancel",i,eY)},addEventListener("pointerup",t,eY),addEventListener("pointercancel",i,eY)):e1(r,e)}},e5=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,e3,eY)})},e6=[100,300];class e4{constructor(e,t){this.pushMeasurement=e,this.webVitalConfig=t}initialize(){Object.entries(e4.mapping).forEach(([e,t])=>{var i;t(t=>{this.pushMeasurement({type:"web-vitals",values:{[e]:t.value}})},{reportAllChanges:null==(i=this.webVitalConfig)?void 0:i.reportAllChanges})})}}e4.mapping={cls:function(e,t){t=t||{},eM(ex(function(){var i,n=ew("CLS",0),r=0,a=[],s=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1];r&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,a.push(e)):(r=e.value,a=[e])}}),r>n.value&&(n.value=r,n.entries=a,i())},o=ey("layout-shift",s);o&&(i=eS(e,n,eN,t.reportAllChanges),eE(function(){s(o.takeRecords()),i(!0)}),ev(function(){r=0,i=eS(e,n=ew("CLS",0),eN,t.reportAllChanges),eT(function(){return i()})}),setTimeout(i,0))}
1))},fcp:eM,fid:function(e,t){t=t||{},eP(function(){var i,n=eA(),r=ew("FID"),a=function(e){e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),i(!0))},s=function(e){e.forEach(a)},o=ey("first-input",s);i=eS(e,r,e6,t.reportAllChanges),o&&(eE(ex(function(){s(o.takeRecords()),o.disconnect()})),ev(function(){i=eS(e,r=ew("FID"),e6,t.reportAllChanges),em=[],ef=-1,ed=null,e5(addEventListener),em.push(a),e2()}))})},inp:function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},eP(function(){ez();var i,n,r=ew("INP"),a=function(e){eK(function(){e.forEach(eG);var t=e$();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())})},s=ey("event",a,{durationThreshold:null!=(i=t.durationThreshold)?i:40});n=eS(e,r,eW,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),eE(function(){a(s.takeRecords()),n(!0)}),ev(function(){eV=eB(),eq.length=0,eF.clear(),n=eS(e,r=ew("INP"),eW,t.reportAllChanges)}))}))},lcp:function(e,t){t=t||{},eP(function(){var i,n=eA(),r=ew("LCP"),a=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach(function(e){e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-eb(),0),r.entries=[e],i())})},s=ey("largest-contentful-paint",a);if(s){i=eS(e,r,eX,t.reportAllChanges);var o=ex(function(){eJ[r.id]||(a(s.takeRecords()),s.disconnect(),eJ[r.id]=!0,i(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return eK(o)},{once:!0,capture:!0})}),eE(o),ev(function(n){i=eS(e,r=ew("LCP"),eX,t.reportAllChanges),eT(function(){r.value=performance.now()-n.timeStamp,eJ[r.id]=!0,i(!0)})})}})},ttfb:function(e,t){t=t||{};var i=ew("TTFB"),n=eS(e,i,eZ,t.reportAllChanges);eQ(function(){var r=eg();r&&(i.value=Math.max(r.responseStart-eb(),0),i.entries=[r],n(!0),ev(function(){(n=eS(e,i=ew("TTFB",0),eZ,t.reportAllChanges))(!0)}))})}};var e9,e8,e7=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},te=function(e){if("loading"===document.readyState)return"loading";var t=e7();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"},tt=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},ti=function(e,t){var i="";try{for(;e&&9!==e.nodeType;){var n=e,r=n.id?"#"+n.id:tt(n)+(n.classList&&n.classList.value&&n.classList.value.trim()&&n.classList.value.trim().length?"."+n.classList.value.trim().replace(/\s+/g,"."):"");if(i.length+r.length>(t||100)-1)return i||r;if(i=i?r+">"+i:r,n.id)break;e=n.parentNode}}catch(e){}return i},tn=-1,tr=function(){return tn},ta=function(e){addEventListener("pageshow",function(t){t.persisted&&(tn=t.timeStamp,e(t))},!0)},ts=function(){var e=e7();return e&&e.activationStart||0},to=function(e,t){var i=e7(),n="navigate";return tr()>=0?n="back-forward-cache":i&&(document.prerendering||ts()>0?n="prerender":document.wasDiscarded?n="restore":i.type&&(n=i.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},tl=function(e,t,i){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},i||{})),n}}catch(e){}},tu=function(e,t,i,n){var r,a;return function(s){var o;t.value>=0&&(s||n)&&((a=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=a,o=t.value,t.rating=o>i[1]?"poor":o>i[0]?"needs-improvement":"good",e(t))}},tc=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},td=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},tf=function(e){var t=!1;return function(){t||(e(),t=!0)}},tp=-1,tm=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},th=function(e){"hidden"===document.visibilityState&&tp>-1&&(tp="visibilitychange"===e.type?e.timeStamp:0,tg())},tv=function(){addEventListener("visibilitychange",th,!0),addEventListener("prerenderingchange",th,!0)},tg=function(){removeEventListener("visibilitychange",th,!0),removeEventListener("prerenderingchange",th,!0)},tb=function(){return tp<0&&(tp=tm(),tv(),ta(function(){setTimeout(function(){tp=tm(),tv()},0)})),{get firstHiddenTime(){return tp}
1}},tw=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},ty=[1800,3e3],tS=function(e,t){t=t||{},tw(function(){var i,n=tb(),r=to("FCP"),a=tl("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-ts(),0),r.entries.push(e),i(!0)))})});a&&(i=tu(e,r,ty,t.reportAllChanges),ta(function(n){i=tu(e,r=to("FCP"),ty,t.reportAllChanges),tc(function(){r.value=performance.now()-n.timeStamp,i(!0)})}))})},tT=[.1,.25],tE=function(e,t){var i,n;i=function(t){e(function(e){var t,i={};if(e.entries.length){var n=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(n&&n.sources&&n.sources.length){var r=(t=n.sources).find(function(e){return e.node&&1===e.node.nodeType})||t[0];r&&(i={largestShiftTarget:ti(r.node),largestShiftTime:n.startTime,largestShiftValue:n.value,largestShiftSource:r,largestShiftEntry:n,loadState:te(n.startTime)})}}return Object.assign(e,{attribution:i})}(t))},n=(n=t)||{},tS(tf(function(){var e,t=to("CLS",0),r=0,a=[],s=function(i){i.forEach(function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1];r&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,a.push(e)):(r=e.value,a=[e])}}),r>t.value&&(t.value=r,t.entries=a,e())},o=tl("layout-shift",s);o&&(e=tu(i,t,tT,n.reportAllChanges),td(function(){s(o.takeRecords()),e(!0)}),ta(function(){r=0,e=tu(i,t=to("CLS",0),tT,n.reportAllChanges),tc(function(){return e()})}),setTimeout(e,0))}))},tx=function(e,t){tS(function(t){e(function(e){var t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:te(tr())};if(e.entries.length){var i=e7(),n=e.entries[e.entries.length-1];if(i){var r=i.activationStart||0,a=Math.max(0,i.responseStart-r);t={timeToFirstByte:a,firstByteToFCP:e.value-a,loadState:te(e.entries[0].startTime),navigationEntry:i,fcpEntry:n}}}return Object.assign(e,{attribution:t})}(t))},t)},tk=0,tI=1/0,tO=0,tC=function(e){e.forEach(function(e){e.interactionId&&(tI=Math.min(tI,e.interactionId),tk=(tO=Math.max(tO,e.interactionId))?(tO-tI)/7+1:0)})},tL=function(){return e9?tk:performance.interactionCount||0},tA=function(){"interactionCount"in performance||e9||(e9=tl("event",tC,{type:"event",buffered:!0,durationThreshold:0}))},tP=[],t_=new Map,tM=0,tN=function(){var e=Math.min(tP.length-1,Math.floor((tL()-tM)/50));return tP[e]},tj=[],tD=function(e){if(tj.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=tP[tP.length-1],i=t_.get(e.interactionId);if(i||tP.length<10||e.duration>t.latency){if(i)e.duration>i.latency?(i.entries=[e],i.latency=e.duration):e.duration===i.latency&&e.startTime===i.entries[0].startTime&&i.entries.push(e);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};t_.set(n.id,n),tP.push(n)}tP.sort(function(e,t){return t.latency-e.latency}),tP.length>10&&tP.splice(10).forEach(function(e){return t_.delete(e.id)})}}},tR=function(e){var t=self.requestIdleCallback||self.setTimeout,i=-1;return e=tf(e),"hidden"===document.visibilityState?e():(i=t(e),td(e)),i},tU=[200,500],tB=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},tw(function(){tA();var i,n,r=to("INP"),a=function(e){tR(function(){e.forEach(tD);var t=tN();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())})},s=tl("event",a,{durationThreshold:null!=(i=t.durationThreshold)?i:40});n=tu(e,r,tU,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),td(function(){a(s.takeRecords()),n(!0)}),ta(function(){tM=tL(),tP.length=0,t_.clear(),n=tu(e,r=to("INP"),tU,t.reportAllChanges)}))}))},tz=[],tq=[],tF=0,tV=new WeakMap,t$=new Map,tH=-1,tG=function(e){tz=tz.concat(e),tK()},tK=function(){tH<0&&(tH=tR(tW))},tW=function(){t$.size>10&&t$.forEach(function(e,t){t_.has(t)||t$.delete(t)});var e=tP.map(function(e){return tV.get(e.entries[0])}),t=tq.length-50;tq=tq.filter(function(i,n){return n>=t||e.includes(i)});for(var i=new Set,n=0;n<tq.length;n++){var r=tq[n];tY(r.startTime,r.processingEnd).forEach(function(e){i.add(e)})}var a=tz.length-1-50;tz=tz.filter(function(e,t){return e.startTime>tF&&t>a||i.has(e)}),tH=-1};tj.push(function(e){e.interactionId&&e.target&&!t$.has(e.interactionId)&&t$.set(e.interactionId,e.target)},function(e){var t,i=e.startTime+e.duration;tF=Math.max(tF,e.processingEnd);for(var n=tq.length-1;n>=0;n--){var r=tq[n];if(8>=Math.abs(i-r.renderTime)){(t=r).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]},tq.push(t)),(e.interactionId||"first-input"===e.entryType)&&tV.set(e,t),tK()});var tX,tJ,tZ,tQ,tY=function(e,t){for(var i,n=[],r=0;i=tz[r];
1r++)if(!(i.startTime+i.duration<e)){if(i.startTime>t)break;n.push(i)}return n},t0=function(e,t){e8||(e8=tl("long-animation-frame",tG)),tB(function(t){var i,n,r,a,s,o,l,u,c,d;e((i=t.entries[0],n=tV.get(i),r=i.processingStart,a=n.processingEnd,s=n.entries.sort(function(e,t){return e.processingStart-t.processingStart}),o=tY(i.startTime,a),u=(l=t.entries.find(function(e){return e.target}))&&l.target||t$.get(i.interactionId),c=[i.startTime+i.duration,a].concat(o.map(function(e){return e.startTime+e.duration})),d=Math.max.apply(Math,c),Object.assign(t,{attribution:{interactionTarget:ti(u),interactionTargetElement:u,interactionType:i.name.startsWith("key")?"keyboard":"pointer",interactionTime:i.startTime,nextPaintTime:d,processedEventEntries:s,longAnimationFrameEntries:o,inputDelay:r-i.startTime,processingDuration:a-r,presentationDelay:Math.max(d-a,0),loadState:te(i.startTime)}})))},t)},t1=[2500,4e3],t2={},t3=function(e,t){var i,n;i=function(t){e(function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var i=e7();if(i){var n=i.activationStart||0,r=e.entries[e.entries.length-1],a=r.url&&performance.getEntriesByType("resource").filter(function(e){return e.name===r.url})[0],s=Math.max(0,i.responseStart-n),o=Math.max(s,a?(a.requestStart||a.startTime)-n:0),l=Math.max(o,a?a.responseEnd-n:0),u=Math.max(l,r.startTime-n);t={element:ti(r.element),timeToFirstByte:s,resourceLoadDelay:o-s,resourceLoadDuration:l-o,elementRenderDelay:u-l,navigationEntry:i,lcpEntry:r},r.url&&(t.url=r.url),a&&(t.lcpResourceEntry=a)}}return Object.assign(e,{attribution:t})}(t))},n=(n=t)||{},tw(function(){var e,t=tb(),r=to("LCP"),a=function(i){n.reportAllChanges||(i=i.slice(-1)),i.forEac
1h(function(i){i.startTime<t.firstHiddenTime&&(r.value=Math.max(i.startTime-ts(),0),r.entries=[i],e())})},s=tl("largest-contentful-paint",a);if(s){e=tu(i,r,t1,n.reportAllChanges);var o=tf(function(){t2[r.id]||(a(s.takeRecords()),s.disconnect(),t2[r.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return tR(o)},{once:!0,capture:!0})}),td(o),ta(function(t){e=tu(i,r=to("LCP"),t1,n.reportAllChanges),tc(function(){r.value=performance.now()-t.timeStamp,t2[r.id]=!0,e(!0)})})}})},t5=[800,1800],t6=function e(t){document.prerendering?tw(function(){return e(t)}):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},t4=function(e,t){t=t||{};var i=to("TTFB"),n=tu(e,i,t5,t.reportAllChanges);t6(function(){var r=e7();r&&(i.value=Math.max(r.responseStart-ts(),0),i.entries=[r],n(!0),ta(function(){(n=tu(e,i=to("TTFB",0),t5,t.reportAllChanges))(!0)}))})},t9=function(e,t){t4(function(t){e(function(e){var t={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(e.entries.length){var i=e.entries[0],n=i.activationStart||0,r=Math.max((i.workerStart||i.fetchStart)-n,0),a=Math.max(i.domainLookupStart-n,0),s=Math.max(i.connectStart-n,0),o=Math.max(i.connectEnd-n,0);t={waitingDuration:r,cacheDuration:a-r,dnsDuration:s-a,connectionDuration:o-s,requestDuration:e.value-o,navigationEntry:i}}return Object.assign(e,{attribution:t})}(t))},t)},t8={passive:!0,capture:!0},t7=new Date,ie=function(e,t){tX||(tX=t,tJ=e,tZ=new Date,ir(removeEventListener),it())},it=function(){if(tJ>=0&&tJ<tZ-t7){var e={entryType:"first-input",name:tX.type,target:tX.target,cancelable:tX.cancelable,startTime:tX.timeStamp,processingStart:tX.timeStamp+tJ};tQ.forEach(function(t){t(e)}),tQ=[]}},ii=function(e){if(e.cancelable){var t,i,n,r=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){ie(r,e),n()},i=function(){n()},n=function(){removeEventListener("pointerup",t,t8),removeEventListener("pointercancel",i,t8)},addEventListener("pointerup",t,t8),addEventListener("pointercancel",i,t8)):ie(r,e)}},ir=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,ii,t8)})},ia=[100,300],is=function(e,t){t=t||{},tw(function(){var i,n=tb(),r=to("FID"),a=function(e){e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),i(!0))},s=function(e){e.forEach(a)},o=tl("first-input",s);i=tu(e,r,ia,t.reportAllChanges),o&&(td(tf(function(){s(o.takeRecords()),o.disconnect()})),ta(function(){i=tu(e,r=to("FID"),ia,t.reportAllChanges),tQ=[],tJ=-1,tX=null,ir(addEventListener),tQ.push(a),it()}))})},io=function(e,t){is(function(t){var i;e((i=t.entries[0],Object.assign(t,{attribution:{eventTarget:ti(i.target),eventType:i.name,eventTime:i.startTime,eventEntry:i,loadState:te(i.startTime)}})))},t)};let il="load_state",iu="time_to_first_byte";class ic{constructor(e,t){this.corePushMeasurement=e,this.webVitalConfig=t}initialize(){this.measureCLS(),this.measureFCP(),this.measureFID(),this.measureINP(),this.measureLCP(),this.measureTTFB()}measureCLS(){var e;tE(e=>{let{loadState:t,largestShiftValue:i,largestShiftTime:n,largestShiftTarget:r}=e.attribution,a=this.buildInitialValues(e);this.addIfPresent(a,"largest_shift_value",i),this.addIfPresent(a,"largest_shift_time",n);let s=this.buildInitialContext(e);this.addIfPresent(s,il,t),this.addIfPresent(s,"largest_shift_target",r),this.pushMeasurement(a,s)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureFCP(){var e;tx(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,iu,i);let a=this.buildInitialContext(e);this.addIfPresent(a,il,n),this.pushMeasurement(r,a)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureFID(){var e;io(e=>{let{eventTime:t,eventTarget:i,eventType:n,loadState:r}=e.attribution,a=this.buildInitialValues(e);this.addIfPresent(a,"event_time",t);let s=this.buildInitialContext(e);this.addIfPresent(s,"event_target",i),this.addIfPresent(s,"event_type",n),this.addIfPresent(s,il,r),this.pushMeasurement(a,s)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureINP(){var e;t0(e=>{let{interactionTime:t,presentationDelay:i,inputDelay:n,processingDuration:r,nextPaintTime:a,loadState:s,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",a);let c=this.buildInitialContext(e);this.addIfPresent(c,il,s),this.addIfPresent(c,"interaction_target",o),this.addIfPresent(c,"interaction_type",l),this.pushMeasurement(u,c)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureLCP(){var e;t3(e=>{let{elementRenderDelay:t,resourceLoadDelay:i,resourceLoadDuration:n,timeToFirstByte:r,element:a}=e.attribution,s=this.buildInitialValues(e);this.addIfPresent(s,"element_render_delay",t),this.addIfPresent(s,"resource_load_delay",i),this.addIfPresent(s,"resource_load_duration",n),this.addIfPresent(s,iu,r);let o=this.buildInitialContext(e);this.addIfPresent(o,"element",a),this.pushMeasurement(s,o)},{reportAllChanges:null==(e=this.webVitalConfig)?void 0:e.reportAllChanges})}measureTTFB(){var e;t9(e=>{let{dnsDuration:t,connectionDuration:i,requestDuration:n,waitingDuration:r,cacheDuration:a}=e.attribution,s=this.buildInitialValues(e);this.addIfPresent(s,"dns_duration",t),this.addIfPresent(s,"connection_duration",i),this.addIfPresent(s,"request_duration",n),this.addIfPresent(s,"waiting_duration",r),this.addIfPresent(s,"cache_duration",a);let o=this.buildInitialContext(e);this.pushMeasurement(s,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=k(P,E.session))?t:T.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)}}
1class id extends s.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=o.x}initialize(){this.logDebug("Initializing"),this.intializeWebVitalsInstrumentation().initialize()}intializeWebVitalsInstrumentation(){var e,t,i;return(null==(e=this.config)?void 0:e.trackWebVitalsAttribution)===!1||(null==(i=null==(t=this.config)?void 0:t.webVitalsInstrumentation)?void 0:i.trackAttribution)===!1?new e4(this.api.pushMeasurement,this.config.webVitalsInstrumentation):new ic(this.api.pushMeasurement,this.config.webVitalsInstrumentation)}}let ip={EventNames:{CLICK:"click",NAVIGATION:"navigation",SESSION_START:"session_start",VIEW_CHANGED:"view_changed"}},im="click",ih="navigation",iv="view_changed",ig="session_start",ib="session_resume",iw="session_extend",iy="route_change";function iS(e){var t,i,n,r;return{id:null!=(r=null==(n=null==(i=null==(t=l.P.config)?void 0:t.sessionTracking)?void 0:i.generateSessionId)?void 0:n.call(i))?r:h(),attributes:e}}function iT(){var e,t,i;let n=l.P.config.sessionTracking,r=null!=(i=null!=(t=null==(e=null==n?void 0:n.sampler)?void 0:e.call(n,{metas:l.P.metas.value}))?t:null==n?void 0:n.samplingRate)?i:1;return"number"!=typeof r&&(r=0),Math.random()<r}function iE(e,t){let i,n=!1,r=()=>{if(null==i){n=!1;return}e(...i),i=null,setTimeout(r,t)};return(...a)=>{if(n){i=a;return}e(...a),n=!0,setTimeout(r,t)}}let ix="com.grafana.faro.session",ik=144e5,iI=9e5,iO=6e4,iC=9e5,iL={enabled:!0,persistent:!1,maxSessionPersistenceTime:9e5};var iA=i(72391);function iP({sessionId:e,started:t,lastActivity:i,isSampled:n=!0}={}){var r,a;let s=(0,p.x3)(),o=null==(a=null==(r=l.P.config)?void 0:r.sessionTracking)?void 0:a.generateSessionId;return null==e&&(e="function"==typeof o?o():h()),{sessionId:e,lastActivity:null!=i?i:s,started:null!=t?t:s,isSampled:n}}function i_(e){if(null==e)return!1;let t=(0,p.x3)();return t-e.started<ik&&t-e.lastActivity<iI}function iM({fetchUserSession:e,storeUserSession:t}){return function({forceSessionExtend:i}={forceSessionExtend:!1}){var n,r,a;if(!e||!t)return;let s=l.P.config.sessionTracking,o=null==s?void 0:s.persistent;if(o&&!C||!o&&!L)return;let u=e();if(!1===i&&i_(u))t(Object.assign(Object.assign({},u),{lastActivity:(0,p.x3)()}));else{let e=iN(iP({isSampled:iT()}),u);t(e),null==(n=l.P.api)||n.setSession(e.sessionMeta),null==(r=null==s?void 0:s.onSessionChange)||r.call(s,null!=(a=null==u?void 0:u.sessionMeta)?a:null,e.sessionMeta)}}}function iN(e,t){var i,n,r,a,s,o,u;let c=Object.assign(Object.assign({},e),{sessionMeta:{id:e.sessionId,attributes:Object.assign(Object.assign(Object.assign({},null==(n=null==(i=l.P.config.sessionTracking)?void 0:i.session)?void 0:n.attributes),null!=(a=null==(r=l.P.metas.value.session)?void 0:r.attributes)?a:{}),{isSampled:e.isSampled.toString()})}}),d=null!=(o=null==(s=l.P.metas.value.session)?void 0:s.overrides)?o:null==(u=null==t?void 0:t.sessionMeta)?void 0:u.overrides;(0,M.Im)(d)||(c.sessionMeta.overrides=d);let f=null==t?void 0:t.sessionId;return null!=f&&(c.sessionMeta.attributes.previousSession=f),c}function ij({fetchUserSession:e,storeUserSession:t}){return function(i){let n=i.session,r=e(),a=null==n?void 0:n.id,s=null==n?void 0:n.attributes,o=null==n?void 0:n.overrides,u=null==r?void 0:r.sessionMeta,c=null==u?void 0:u.overrides,d=!!o&&!(0,iA.b)(o,c),f=!!s&&!(0,iA.b)(s,null==u?void 0:u.attributes);if(n&&a!==(null==r?void 0:r.sessionId)||f||d){let e=iN(iP({sessionId:a,isSampled:iT()}),r);t(e),function(e,t={},i={}){var n,r,a;if(!e)return;let s=t.serviceName,o=null!=(a=null!=(n=i.serviceName)?n:null==(r=l.P.metas.value.app)?void 0:r.name)?a:"";s&&s!==o&&l.P.api.pushEvent("service_name_override",{serviceName:s,previousServiceName:o})}(d,o,c),l.P.api.setSession(e.sessionMeta)}}}class iD{constructor(){this.updateSession=iE(()=>this.updateUserSession(),1e3),this.updateUserSession=iM({fetchUserSession:iD.fetchUserSession,storeUserSession:iD.storeUserSession}),this.init()}static removeUserSession(){O(ix,iD.storageTypeLocal)}static storeUserSession(e){I(ix,(0,w.xD)(e),iD.storageTypeLocal)}static fetchUserSession(){let e=k(ix,iD.storageTypeLocal);return e?JSON.parse(e):null}init(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.updateSession()}),l.P.metas.addListener(ij({fetchUserSession:iD.fetchUserSession,storeUserSession:iD.storeUserSession}))}}iD.storageTypeLocal=E.local;class iR{constructor(){this.updateSession=iE(()=>this.updateUserSession(),1e3),this.updateUserSession=iM({fetchUserSession:iR.fetchUserSession,storeUserSession:iR.storeUserSession}),this.init()}static removeUserSession(){O(ix,iR.storageTypeSession)}static storeUserSession(e){I(ix,(0,w.xD)(e),iR.storageTypeSession)}static fetchUserSession(){let e=k(ix,iR.storageTypeSession);return e?JSON.parse(e):null}init(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.updateSession()}),l.P.metas.addListener(ij({fetchUserSession:iR.fetchUserSession,storeUserSession:iR.storeUserSession}))}}function iU(e){return(null==e?void 0:e.persistent)?iD:iR}iR.storageTypeSession=E.session;class iB extends s.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-se
1ssion",this.version=o.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(iw,{},void 0,{skipDedupe:!0}),this.notifiedSession=n;return}this.notifiedSession=n,this.api.pushEvent(ig,{},void 0,{skipDedupe:!0})}}createInitialSession(e,t){var i,n,r,a,s,o;let l,u,c=e.fetchUserSession();if(t.persistent&&t.maxSessionPersistenceTime&&c){let e=(0,p.x3)();c.lastActivity<e-t.maxSessionPersistenceTime&&(iD.removeUserSession(),c=null)}if(i_(c)){let e=null==c?void 0:c.sessionId;u=iP({sessionId:e,isSampled:c.isSampled||!1,started:null==c?void 0:c.started});let r=null==c?void 0:c.sessionMeta,a=Object.assign(Object.assign({},null==(i=t.session)?void 0:i.overrides),null==r?void 0:r.overrides);u.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:u.isSampled.toString()}),overrides:a}),l=ib}else{let e=null!=(a=null==(r=t.session)?void 0:r.id)?a:iS().id;u=iP({sessionId:e,isSampled:iT()});let i=null==(s=t.session)?void 0:s.overrides;u.sessionMeta=Object.assign({id:e,attributes:Object.assign({isSampled:u.isSampled.toString()},null==(o=t.session)?void 0:o.attributes)},i?{overrides:i}:{}),l=ig}return{initialSession:u,lifecycleType:l}}registerBeforeSendHook(e){var t;let{updateSession:i}=new e;null==(t=this.transports)||t.addBeforeSendHooks(e=>{var t,n,r;i();let a=null==(t=e.meta.session)?void 0:t.attributes;if(a&&(null==a?void 0:a.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=iU(e);this.registerBeforeSendHook(t);let{initialSession:i,lifecycleType:n}=this.createInitialSession(t,e);t.storeUserSession(i);let r=i.sessionMeta;this.notifiedSession=r,this.api.setSession(r),n===ig&&this.api.pushEvent(ig,{},void 0,{skipDedupe:!0}),n===ib&&this.api.pushEvent(ib,{},void 0,{skipDedupe:!0})}this.metas.addListener(this.sendSessionStartEvent.bind(this))}}class iz extends s.i{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=o.x}sendViewChangedEvent(e){var t,i,n,r;let a=e.view;a&&a.name!==(null==(t=this.notifiedView)?void 0:t.name)&&(this.api.pushEvent(iv,{fromView:null!=(n=null==(i=this.notifiedView)?void 0:i.name)?n:T.y,toView:null!=(r=a.name)?r:T.y},void 0,{skipDedupe:!0}),this.notifiedView=a)}initialize(){this.metas.addListener(this.sendViewChangedEvent.bind(this))}}class iq extends s.i{constructor(){super(),this.name="@grafana/faro-web-sdk:instrumentation-csp",this.version=o.x}initialize(){document.addEventListener("securitypolicyviolation",this.securitypolicyviolationHandler.bind(this))}destroy(){document.removeEventListener("securitypolicyviolation",this.securitypolicyviolationHandler)}securitypolicyviolationHandler(e){this.api.pushEvent("securitypolicyviolation",(0,w.Ti)(e))}}var iF=i(31143),iV=i(47192);class i$ extends s.i{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=o.x,this.errorSerializer=iF.Z}initialize(){var e,t,i,n;this.options=Object.assign(Object.assign({},this.options),this.config.consoleInstrumentation);let r=(null==(e=this.options)?void 0:e.serializeErrors)||!!(null==(t=this.options)?void 0:t.errorSerializer);this.errorSerializer=r?null!=(n=null==(i=this.options)?void 0:i.errorSerializer)?n:K.n:iF.Z,iV.HT.filter(e=>{var t,i;return!(null!=(i=null==(t=this.options)?void 0:t.disabledLevels)?i:i$.defaultDisabledLevels).includes(e)}).forEach(e=>{console[e]=(...t)=>{var i,n;try{if(e!==iV.$b.ERROR||(null==(i=this.options)?void 0:i.consoleErrorAsLog))if(e===iV.$b.ERROR&&(null==(n=this.options)?void 0:n.consoleErrorAsLog)){let{value:i,type:n,stackFrames:r}=el(t,this.errorSerializer);this.api.pushLog(i?[i$.consoleErrorPrefix+i]:t,{level:e,context:{value:null!=i?i:"",type:null!=n?n:"",stackFrames:(null==r?void 0:r.length)?(0,K.n)(r):""}})}else this.api.pushLog(t,{level:e});else{let{value:e,type:i,stackFrames:n}=el(t,this.errorSerializer);if(e&&!i&&!n)return void this.api.pushError(Error(i$.consoleErrorPrefix+e));this.api.pushError(Error(i$.consoleErrorPrefix+e),{type:i,stackFrames:n})}}catch(e){this.logError(e)}finally{this.unpatchedConsole[e](...t)}}})}}function iH(e={}){let t=[new $,new eu,new id,new iB,new iz];return!1!==e.enablePerformanceInstrumentation&&t.unshift(new z),!1!==e.enableContentSecurityPolicyInstrumentation&&t.push(new iq),!1!==e.captureConsole&&t.push(new i$({disabledLevels:e.captureConsoleDisabledLevels})),t}i$.defaultDisabledLevels=[iV.$b.DEBUG,iV.$b.TRACE,iV.$b.LOG],i$.consoleErrorPrefix="console.error: ";var iG=i(65534),iK=i(19871),iW=i(91852);function iX(e=iG.Z,t=iW.vI){let i=iW.vc;return t>iW.wK.OFF&&(i.error=t>=iW.wK.ERROR?function(...t){e.error(`${i.prefix} 2`,...t)}:iK.l,i.warn=t>
2=iW.wK.WARN?function(...t){e.warn(`${i.prefix} 3`,...t)}:iK.l,i.info=t>=iW.wK.INFO?function(...t){e.info(`${i.prefix} 4`,...t)}:iK.l,i.debug=t>=iW.wK.VERBOSE?function(...t){e.debug(`${i.prefix} 5`,...t)}:iK.l),i}let iJ="faro",iZ={enabled:!0,sendTimeout:250,itemLimit:50},iQ="browser";function iY(e){return{frames:ea(e)}}var i0=i(91020);let i1=()=>{let e=new i0.UAParser,{name:t,version:i}=e.getBrowser(),{name:n,version:r}=e.getOS(),a=e.getUA(),s=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:T.y,version:null!=i?i:T.y,os:`${null!=n?n:T.y} ${null!=r?r:T.y}`,userAgent:null!=a?a:T.y,language:null!=s?s:T.y,mobile:o,brands:null!=l?l:T.y,viewportWidth:`${window.innerWidth}`,viewportHeight:`${window.innerHeight}`}}},i2=()=>{let e=window.k6;return{k6:Object.assign({isK6Browser:!0},(null==e?void 0:e.testRunId)&&{testRunId:null==e?void 0:e.testRunId})}};var i3=i(89150);class i5 extends i3.H{isBatched(){return!1}getIgnoreUrls(){return[]}}function i6(e){let{size:t,concurrency:i}=e,n=[],r=0,a=()=>{if(r<i&&n.length){let{producer:e,resolve:t,reject:i}=n.shift();r++,e().then(e=>{r--,a(),t(e)},e=>{r--,a(),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}),a()})}}}var i4=i(55855);function i9(e){let t={meta:{}};return void 0!==e[0]&&(t.meta=e[0].meta),e.forEach(e=>{switch(e.type){case i4.f.LOG:case i4.f.EVENT:case i4.f.EXCEPTION:case i4.f.MEASUREMENT:let i=i4.J[e.type],n=t[i];t=Object.assign(Object.assign({},t),{[i]:void 0===n?[e.payload]:[...n,e.payload]});break;case i4.f.TRACE:t=Object.assign(Object.assign({},t),{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 a=(null==r?void 0:r.scopeSpans)||[],s=(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:[...a,...s]})]})}(t.traces,e.payload.resourceSpans)})}}),t}var i8=function(e,t,i,n){return new(i||(i=Promise))(function(r,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,o)}l((n=n.apply(e,t||[])).next())})},i7=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 ne extends i5{constructor(e){var t,i,n,r;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=o.x,this.disabledUntil=new Date,this.rateLimitBackoffMs=null!=(t=e.defaultRateLimitBackoffMs)?t:5e3,this.getNow=null!=(i=e.getNow)?i:()=>Date.now(),this.promiseBuffer=i6({size:null!=(n=e.bufferSize)?n:30,concurrency:null!=(r=e.concurrency)?r:5})}send(e){return i8(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=JSON.stringify(i9(e)),{url:n,requestOptions:r,apiKey:a}=this.options,s=null!=r?r:{},{headers:o}=s,l=i7(s,["headers"]),u=this.metas.value.session;return null!=u&&(t=u.id),fetch(n,Object.assign({method:"POST",headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},null!=o?o:{}),a?{"x-api-key":a}:{}),t?{"x-faro-session-id":t}:{}),body:i,keepalive:i.length<=6e4},null!=l?l:{})).then(e=>i8(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(iK.l),e})).catch(e=>{this.logError("Failed sending payload to the receiver\n",JSON.parse(i),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}=iU(n);iM({fetchUserSession:e,storeUserSession:r})({forceSessionExtend:!0}),t(`${i} created new session.`)}else t(`${i}.`)}}var nt=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 ni(e){var t;let i=[],n=iX(e.unpatchedConsole,e.internalLoggerLevel);e.transports?((e.url||e.apiKey)&&n.error('if "transports" is defined, "url" and "apiKey" should not be defined'),i.push(...e.transports)):e.url?i.push(new ne({url:e.url,apiKey:e.apiKey})):n.error('either "url" or "transports" must be defined');let{dedupe:s=!0,eventDomain:o=iQ,globalObjectKey:l=iJ,instrumentations:u=iH(),internalLoggerLevel:c=iW.vI,isolate:f=!1,logArgsSerializer:p=iF.Z,metas:m=function(e){var t,i;let{page:n,generatePageId:s}=null!=(t=null==e?void 0:e.pageTracking)?t:{},o=[i1,function({generatePageId:e,initialPageMeta:t}={}){return()=>{let i=location.href;return(0,M.Tn)(e)&&r!==i&&(r=i,a=e(location)),{page:Object.assign(Object.assign({url:i},a?{id:a}:{}),t)}}}({generatePageId:s,initialPageMeta:n}),...null!=(i=e.metas)?i:[]];return(0,M.Gv)(window.k6)?[...o,i2]:o}(e),paused:h=!1,preventGlobalExposure:v=!1,unpatchedConsole:g=iG.Z,trackUserActionsPreview:b=!1,trackUserActionsDataAttributeName:w=d,url:y}=e;return Object.assign(Object.assign({},nt(e,["dedupe","eventDomain","globalObjectKey","instrumentations","internalLoggerLevel","isolate","logArg
5sSerializer","metas","paused","preventGlobalExposure","unpatchedConsole","trackUserActionsPreview","trackUserActionsDataAttributeName","url"])),{batching:Object.assign(Object.assign({},iZ),e.batching),dedupe:s,globalObjectKey:l,instrumentations:function(e,{trackUserActionsPreview:t}){return e.filter(e=>"@grafana/faro-web-sdk:instrumentation-user-action"!==e.name||!!t)}(u,e),internalLoggerLevel:c,isolate:f,logArgsSerializer:p,metas:m,parseStacktrace:iY,paused:h,preventGlobalExposure:v,transports:i,unpatchedConsole:g,eventDomain:o,ignoreUrls:[...null!=(t=e.ignoreUrls)?t:[],...y?[y]:[],/\/collect(?:\/[\w]*)?$/],sessionTracking:Object.assign(Object.assign(Object.assign({},iL),e.sessionTracking),function({trackGeolocation:e,sessionTracking:t}){var i;let n={};return((0,M.Lm)(e)&&(n.geoLocationTrackingEnabled=e),(0,M.Im)(n))?{}:{session:Object.assign(Object.assign({},null!=(i=null==t?void 0:t.session)?i:{}),{overrides:n})}}({trackGeolocation:e.trackGeolocation,sessionTracking:e.sessionTracking})),trackUserActionsPreview:b,trackUserActionsDataAttributeName:w})}iW.vc;var nn=i(1182),nr=i(1571);class na{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 ns=iG.Z;function no(e){let t=ni(e);if(t)return function(e){var t;let i=ns=null!=(t=e.unpatchedConsole)?t:ns,n=iX(i,e.internalLoggerLevel);if((0,nr.rI)()&&!e.isolate)return void n.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');n.debug("Initializing");let r=function(e,t,i){let n=[],r=[],a=()=>n.reduce((e,t)=>Object.assign(e,(0,M.Tn)(t)?t():t),{}),s=()=>
5{if(r.length){let e=a();r.forEach(t=>t(e))}};return{add:(...e)=>{t.debug("Adding metas\n",e),n.push(...e),s()},remove:(...e)=>{t.debug("Removing metas\n",e),n=n.filter(t=>!e.includes(t)),s()},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 a()}}}(0,n,0),a=function(e,t,i,n){var r;let a;t.debug("Initializing transports");let s=[],o=i.paused,l=[],u=e=>{let t=e;for(let e of l){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===i4.f.EXCEPTION&&delete t.payload.originalError;return e}(n,i)}return t};return(null==(r=i.batching)?void 0:r.enabled)&&(a=new na(e=>{let i=u(e);if(0!==i.length)for(let e of s)t.debug(`Transporting item using ${e.name} 6`,i),e.isBatched()&&e.send(i)},{sendTimeout:i.batching.sendTimeout,itemLimit:i.batching.itemLimit,paused:o})),{add:(...r)=>{t.debug("Adding transports"),r.forEach(r=>{if(t.debug(`Adding "${r.name}" transport`),s.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,s.push(r)})},addBeforeSendHooks:(...e)=>{t.debug("Adding beforeSendHooks\n",l),e.forEach(e=>{e&&l.push(e)})},getBeforeSendHooks:()=>[...l],execute:e=>{var n;o||((null==(n=i.batching)?void 0:n.enabled)&&(null==a||a.addItem(e)),(e=>{var n,r;if((null==(n=i.batching)?void 0:n.enabled)&&s.every(e=>e.isBatched()))return;let[a]=u([e]);if(void 0!==a)for(let e of s)t.debug(`Transporting item using ${e.name} 7`,a),e.isBatched()?(null==(r=i.batching)?void 0:r.enabled)||e.send([a]):e.send(a)})(e))},isPaused:()=>o,pause:()=>{t.debug("Pausing transports"),null==a||a.pause(),o=!0},remove:(...e)=>{t.debug("Removing transports"),e.forEach(e=>{t.debug(`Removing "${e.name}" transport`);let i=s.indexOf(e);if(-1===i)return void t.warn(`Transport "${e.name}" is not added`);s.splice(i,1)})},removeBeforeSendHooks:(...e)=>{l.filter(t=>!e.includes(t))},get transports(){return[...s]},unpause:()=>{t.debug("Unpausing transports"),null==a||a.start(),o=!1}}}(i,n,e,r),s=(0,v.X)(i,n,e,r,a),u=function(e,t,i,n,r,a){t.debug("Initializing instrumentations");let s=[];return{add:(...o)=>{t.debug("Adding instrumentations"),o.forEach(o=>{if(t.debug(`Adding "${o.name}" instrumentation`),s.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=a,s.push(o),o.initialize()})},get instrumentations(){return[...s]},remove:(...e)=>{t.debug("Removing instrumentations"),e.forEach(e=>{var i,n;t.debug(`Removing "${e.name}" instrumentation`);let r=s.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=s[r]).destroy)||n.call(i),s.splice(r,1)})}}}(i,n,e,r,a,s),c=(0,l.A)(i,n,e,r,a,s,u);return!function(e){var t,i,n;let r={sdk:{version:o.x},app:{bundleId:e.config.app.name&&(n=e.config.app.name,null===nn.J||void 0===nn.J?void 0:nn.J[`__faroBundleId_${n}`])}},a=null==(t=e.config.sessionTracking)?void 0:t.session;a&&e.api.setSession(a),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:[])}(c),c.transports.add(...c.config.transports),c.transports.addBeforeSendHooks(c.config.beforeSend),c.instrumentations.add(...c.config.instrumentations),c}(t)}let nl=()=>({sdk:{name:"@grafana/faro-core",version:o.x,integrations:l.P.config.instrumentations.map(({name:e,version:t})=>({name:e,version:t}))}});class nu extends i5{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-console",this.version=o.x}send(e){var t;return this.unpatchedConsole[null!=(t=this.options.level)?t:iV.$b.DEBUG]("New event",i9([e]))}}var nc=i(98539)},91020:function(e,t,i){var n;!function(r,a){"use strict";var s="function",o="undefined",l="object",u="string",c="major",d="model",f="name",p="type",m="vendor",h="version",v="architecture",g="console",b="mobile",w="tablet",y="smarttv",S="wearable",T="embedded",E="Amazon",x="Apple",k="ASUS",I="BlackBerry",O="Browser",C="Chrome",L="Firefox",A="Google",P="Honor",_="Huawei",M="Microsoft",N="Motorola",j="Nvidia",D="OnePlus",R="Opera",U="OPPO",B="Samsung",z="Sharp",q="Sony",F="Xiaomi",V="Zebra",$="Facebook",H="Chromium OS",G="Mac OS",K=" Browser",W=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},X=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},J=function(e,t){return typeof e===u&&-1!==Z(t).indexOf(Z(e))},Z=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,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(i=n=0;i<f.length&&!u&&f[i];)if(u=f[i++].exec(e))for(r=0;r<p.length;r++)c=u[++n],typeof(o=p[r])===l&&o.length>0?2===o.length?typeof o[1]==s?this[o[0]]=o[1].call(this,c):this[o[0]]=o[1]:3===o.length?typeof o[1]!==s||o[1].exec&&o[1].test?this[o[0]]=c?c.replace(o[
71],o[2]):void 0:this[o[0]]=c?o[1].call(this,c,o[2]):void 0:4===o.length&&(this[o[0]]=c?o[3].call(this,c.replace(o[1],o[2])):a):this[o]=c||a;d+=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(J(t[i][n],e))return"?"===i?a:i}else if(J(t[i],e))return"?"===i?a: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],[h,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,h],[/opios[\/ ]+([\w\.]+)/i],[h,[f,R+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[f,R+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[f,R]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[f,"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],[f,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[f,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[f,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+O],h],[/\bfocus\/([\w\.]+)/i],[h,[f,L+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[f,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[f,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[f,"MIUI"+K]],[/fxios\/([\w\.-]+)/i],[h,[f,L]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+K],h],[/samsungbrowser\/([\w\.]+)/i],[h,[f,B+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,$],h],[/(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],[f,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[f,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,C+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[f,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[h,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],[f,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[f,L+" 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],[f,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[v,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[v,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[v,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[v,/ower/,"",Z]],[/ sun4\w[;\)]/i],[[v,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;
vendor: 8,022 bytes, line 7
7|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[v,Z]]],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],[d,[m,B],[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],[d,[m,B],[p,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[m,x],[p,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[m,x],[p,w]],[/(macintosh);/i],[d,[m,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[m,z],[p,b]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[m,P],[p,w]],[/honor([-\w ]+)[;\)]/i],[d,[m,P],[p,b]],[/\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],[d,[m,_],[p,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[m,_],[p,b]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[m,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],[[d,/_/g," "],[m,F],[p,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[m,U],[p,b]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[m,ee,{OnePlus:["304","403","203"],"*":U}],[p,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[m,"Vivo"],[p,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[m,"Realme"],[p,b]],[/\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],[d,[m,N],[p,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[m,N],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[m,"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],[d,[m,"LG"],[p,b]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?: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],[d,[m,"Lenovo"],[p,w]],[/(nokia) (t[12][01])/i],[m,d,[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[p,b],[m,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[m,A],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[m,A],[p,b]],[/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],[d,[m,q],[p,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[m,q],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[m,D],[p,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[m,E],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[m,E],[p,b]],[/(playbook);[-\w\),; ]+(rim)/i],[d,m,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[m,I],[p,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[m,k],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[m,k],[p,b]],[/(nexus 9)/i],[d,[m,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[d,/_/g," "],[p,b]],[/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],[d,[m,"TCL"],[p,w]],[/(itel) ((\w+))/i],[[m,Z],d,[p,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[m,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[m,"Meizu"],[p,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[m,"Ulefone"],[p,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[m,"Energizer"],[p,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[m,"Cat"],[p,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[m,"Smartfren"],[p,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[m,"Nothing"],[p,b]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[m,"Archos"],[p,w]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[m,"Archos"],[p,b]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[m,d,[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],[m,d,[p,b]],[/(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],[m,d,[p,w]],[/(surface duo)/i],[d,[m,M],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[m,"Fairphone"],[p,b]],[/(u304aa)/i],[d,[m,"AT&T"],[p,b]],[/\bsie-(\w*)/i],[d,[m,"Siemens"],[p,b]],[/\b(rct\w+) b/i],[d,[m,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[d,[m,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[d,[m,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[m,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[d,[m,"NuVision"],[p,w]],[/\b(k88) b/i],[d,[m,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[d,[m,"ZTE"],[p,b]],[/\b(gen\d{3}) b.+49h/i],[d,[m,"Swiss"],[p,b]],[/\b(zur\d{3}) b/i],[d,[m,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[d,[m,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],d,[p,w]],[/\b(ns-?\w{0,9}) b/i],[d,[m,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[m,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],d,[p,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],d,[p,b]],[/\b(ph-1) /i],[d,[m,"Essential"],[p,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[m,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[d,[m,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[d,[m,"Rotor"],[p,w]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[m,j],[p,w]],[/(sprint) (\w+)/i],[m,d,[p,b]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[m,M],[p,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[m,V],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[m,V],[p,b]],[/smart-tv.+(samsung)/i],[m,[p,y]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[m,B],[p,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,"LG"],[p,y]],[/(apple) ?tv/i],[m,[d,x+" TV"],[p,y]],[/crkey/i],[[d,C+"cast"],[m,A],[p,y]],[/droid.+aft(\w+)( bui|\))/i],[d,[m,E],[p,y]],[/(shield \w+ tv)/i],[d,[m,j],[p,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[m,z],[p,y]],[/(bravia[\w ]+)( bui|\))/i],[d,[m,q],[p,y]],[/(mi(tv|box)-?\w+) bui/i],[d,[m,F],[p,y]],[/Hbbtv.*(technisat) (.*);/i],[m,d,[p,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,Q],[d,Q],[p,y]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[p,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,d,[p,g]],[/droid.+; (shield)( bui|\))/i],[d,[m,j],[p,g]],[/(playstation \w+)/i],[d,[m,q],[p,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[m,M],[p,g]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[m,B],[p,S]],[/((pebble))app/i,/(asu
vendor: 4,832 bytes, line 7
7s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[m,d,[p,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[m,U],[p,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[m,x],[p,S]],[/(opwwe\d{3})/i],[d,[m,D],[p,S]],[/(moto 360)/i],[d,[m,N],[p,S]],[/(smartwatch 3)/i],[d,[m,q],[p,S]],[/(g watch r)/i],[d,[m,"LG"],[p,S]],[/droid.+; (wt63?0{2,3})\)/i],[d,[m,V],[p,S]],[/droid.+; (glass) \d/i],[d,[m,A],[p,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[m,d,[p,S]],[/; (quest( \d| pro)?)/i],[d,[m,$],[p,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[p,T]],[/(aeobc)\b/i],[d,[m,E],[p,T]],[/(homepod).+mac os/i],[d,[m,x],[p,T]],[/windows iot/i],[[p,T]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,b]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[f,"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],[f,h],[/ladybird\//i],[[f,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[f,[h,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,ee,et],[f,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,G],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,f],[/(ubuntu) ([\w\.]+) like android/i],[[f,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[f,h],[/\(bb(10);/i],[h,[f,I]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[f,L+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[f,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,H],h],[/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],[f,h],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,h]]},en=function(e,t){if(typeof e===l&&(t=e,e=a),!(this instanceof en))return new en(e,t).getResult();var i=typeof r!==o&&r.navigator?r.navigator:a,n=e||(i&&i.userAgent?i.userAgent:""),g=i&&i.userAgentData?i.userAgentData:a,y=t?W(ei,t):ei,S=i&&i.userAgent==n;return this.getBrowser=function(){var e,t={};return t[f]=a,t[h]=a,Y.call(t,n,y.browser),t[c]=typeof(e=t[h])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:a,S&&i&&i.brave&&typeof i.brave.isBrave==s&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[v]=a,Y.call(e,n,y.cpu),e},this.getDevice=function(){var e={};return e[m]=a,e[d]=a,e[p]=a,Y.call(e,n,y.device),S&&!e[p]&&g&&g.mobile&&(e[p]=b),S&&"Macintosh"==e[d]&&i&&typeof i.standalone!==o&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[d]="iPad",e[p]=w),e},this.getEngine=function(){var e={};return e[f]=a,e[h]=a,Y.call(e,n,y.engine),e},this.getOS=function(){var e={};return e[f]=a,e[h]=a,Y.call(e,n,y.os),S&&!e[f]&&g&&g.platform&&"Unknown"!=g.platform&&(e[f]=g.platform.replace(/chrome os/i,H).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};
7en.VERSION="1.0.41",en.BROWSER=X([f,h,c]),en.CPU=X([v]),en.DEVICE=X([d,m,p,g,b,y,w,S,T]),en.ENGINE=en.OS=X([f,h]),typeof t!==o?(e.exports&&(t=e.exports=en),t.UAParser=en):i.amdO?a===(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 ea=new en;er.ua=ea.getResult(),er.ua.get=function(){return ea.getUA()},er.ua.set=function(e){ea.setUA(e);var t=ea.getResult();for(var i in t)er.ua[i]=t[i]}}}("object"==typeof window?window:this)}}]);
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.