PageSourceSearch

https://nevatrip.ru/_next/static/chunks/798-49c66f71b8a83d64.js

js nevatrip.ru collected 2026-09-24 12:07:20 UTC 95,931 bytes, 11 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[798],{3609:(e,t,i)=>{"use strict";i.d(t,{S:()=>r});var n=i(14923);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}},4325:(e,t,i)=>{"use strict";function n(){}i.d(t,{l:()=>n})},8871:(e,t,i)=>{"use strict";let n,r,s,a,o;i.d(t,{p:()=>J});var l=i(68733),u=i(71971),d=i(43277),c=i(23805),h=i(92013),p=i(13332),m=i(95984),f=i(46534),g=i(44853),b=i(61558),v=i(76488),w=i(4325);function y(e=v.Z,t=b.vI){let i=b.vc;return t>b.wK.OFF&&(i.error=t>=b.wK.ERROR?function(...t){e.error(`${i.prefix}
2`,...t)}:w.l,i.warn=t>=b.wK.WARN?function(...t){e.warn(`${i.prefix}
3`,...t)}:w.l,i.info=t>=b.wK.INFO?function(...t){e.info(`${i.prefix}
4`,...t)}:w.l,i.debug=t>=b.wK.VERBOSE?function(...t){e.debug(`${i.prefix}
5`,...t)}:w.l),i}b.vc;var S=i(19568),T=i(9373),x=i(13722),E=i(25083);class k{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 O=v.Z,_={enabled:!0,sendTimeout:250,itemLimit:50};var I=i(14155);function A(e){return{frames:(0,I.D)(e)}}var j=i(81809),P=i(31833),L=i(51439),M=i(15514);function C(){let e="undefined"!=typeof navigator?navigator.userAgent:"";return r===e&&s||(s=new M.UAParser(e).getResult(),r=e),s}let U=()=>{let{browser:e,os:t,ua:i}=C(),{name:n,version:r}=e,{name:s,version:a}=t,o=navigator.language,l=i.includes("Mobi"),u=function(){if(n&&r&&"userAgentData"in navigator&&navigator.userAgentData)return navigator.userAgentData.brands}();return{browser:{name:null!=n?n:L.y,version:null!=r?r:L.y,os:`${null!=s?s:L.y} ${null!=a?a:L.y}`,userAgent:null!=i?i:L.y,language:null!=o?o:L.y,mobile:l,brands:null!=u?u:L.y,viewportWidth:`${window.innerWidth}`,viewportHeight:`${window.innerHeight}`}}},N=()=>{let{name:e,version:t}=C().os;if(!e&&!t)return{};let i={};return e&&(i.name=e),t&&(i.version=t),{os:i}},R=()=>({sdk:{name:"faro-web",version:T.x}}),D=()=>{let e=window.k6;return{k6:Object.assign({isK6Browser:!0},(null==e?void 0:e.testRunId)&&{testRunId:null==e?void 0:e.testRunId})}};var z=i(12232);class B extends z.H{isBatched(){return!1}getIgnoreUrls(){return[]}}var q=i(96260),$=i(23180),F=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())})},V=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 H extends B{constructor(e){var t,i,n,r;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=T.x,this.disabledUntil=new Date(0),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 F(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(()=>F(this,void 0,void 0,function*(){let t,i,n=JSON.stringify((i={meta:{}}
5,void 0!==e[0]&&(i.meta=e[0].meta),e.forEach(e=>{switch(e.type){case l.f.LOG:case l.f.EVENT:case l.f.EXCEPTION:case l.f.MEASUREMENT:{let t=l.J[e.type],n=i[t];i=Object.assign(Object.assign({},i),{[t]:void 0===n?[e.payload]:[...n,e.payload]});break}case l.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:a}=this.options,o=null!=s?s:{},{headers:u={}}=o,d=V(o,["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?yield Promise.resolve(t()):t;return fetch(r,Object.assign({method:"POST",headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},h),a?{"x-api-key":a}:{}),t?{"x-faro-session-id":t}:{}),body:n,keepalive:n.length<=6e4},null!=d?d:{})).then(e=>F(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(w.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,q.R)(n);(0,$.vP)({fetchUserSession:e,storeUserSession:r})({forceSessionExtend:!0}),t(`${i} created new session.`)}else t(`${i}.`)}}var G=i(81630),W=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 J(e){let t=function(e){var t,i,n,r,s;let l=[],u=y(e.unpatchedConsole,e.internalLoggerLevel);e.transports?((e.url||e.apiKey)&&u.error('if "transports" is defined, "url" and "apiKey" should not be defined'),l.push(...e.transports)):e.url?l.push(new H({url:e.url,apiKey:e.apiKey})):u.error('either "url" or "transports" must be defined');let{dedupe:c=!0,eventDomain:h="browser",globalObjectKey:p="faro",instrumentations:m=(0,G.w)(),internalLoggerLevel:f=b.vI,isolate:w=!1,logArgsSerializer:S=g.Z,metas:T=function(e){var t,i;let{page:n,generatePageId:r}=null!=(t=null==e?void 0:e.pageTracking)?t:{},s=[U,N,function({generatePageId:e,initialPageMeta:t}={}){return()=>{let i=location.href;return(0,d.Tn)(e)&&a!==i&&(a=i,o=e(location)),{page:Object.assign(Object.assign({url:i},o?{id:o}:{}),t)}}}({generatePageId:r,initialPageMeta:n}),...null!=(i=e.metas)?i:[],R];return(0,d.Gv)(null==window?void 0:window.k6)?[...s,D]:s}(e),paused:x=!1,preventGlobalExposure:E=!1,unpatchedConsole:k=v.Z,url:O,experimental:I}=e,L=W(e,["dedupe","eventDomain","globalObjectKey","instrumentations","internalLoggerLevel","isolate","logArg
5sSerializer","metas","paused","preventGlobalExposure","unpatchedConsole","url","experimental"]),M=null!=(t=null==I?void 0:I.trackNavigation)&&t,C={dataAttributeName:null!=(n=null==(i=e.userActionsInstrumentation)?void 0:i.dataAttributeName)?n:P.Ij,excludeItem:null==(r=e.userActionsInstrumentation)?void 0:r.excludeItem};return Object.assign(Object.assign({},L),{batching:Object.assign(Object.assign({},_),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)}(m,e),internalLoggerLevel:f,isolate:w,logArgsSerializer:S,metas:T,parseStacktrace:A,paused:x,preventGlobalExposure:E,transports:l,unpatchedConsole:k,eventDomain:h,ignoreUrls:[...null!=(s=e.ignoreUrls)?s:[],...O?[O]:[],/\/collect(?:\/[\w]*)?$/],sessionTracking:Object.assign(Object.assign(Object.assign({},j.Fm),e.sessionTracking),function({trackGeolocation:e,sessionTracking:t}){var i;let n={};return((0,d.Lm)(e)&&(n.geoLocationTrackingEnabled=e),(0,d.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:C,experimental:{trackNavigation:M}})}(e);if(t)return function(e){var t;let i=O=null!=(t=e.unpatchedConsole)?t:O,r=y(i,e.internalLoggerLevel);if((0,x.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,d.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),a=function(e,t,i,n){var r;let s;t.debug("Initializing transports");let a=[],o=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===l.f.EXCEPTION&&delete t.payload.originalError;return e}(n,i)}return t};return(null==(r=i.batching)?void 0:r.enabled)&&(s=new k(e=>{let i=d(e);if(0!==i.length)for(let e of a)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`),a.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,a.push(r)})},addBeforeSendHooks:(...e)=>{t.debug("Adding beforeSendHooks\n",u),e.forEach(e=>{e&&u.push(e)})},getBeforeSendHooks:()=>[...u],execute:e=>{var n;o||((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)&&a.every(e=>e.isBatched()))return;let[s]=d([e]);if(void 0!==s)for(let e of a)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:()=>o,pause:()=>{t.debug("Pausing transports"),null==s||s.pause(),o=!0},remove:(...e)=>{t.debug("Removing transports"),e.forEach(e=>{t.debug(`Removing "${e.name}" transport`);let i=a.indexOf(e);if(-1===i)return void t.warn(`Transport "${e.name}" is not added`);a.splice(i,1)})},removeBeforeSendHooks:(...e)=>{u.filter(t=>!e.includes(t))},get transports(){return[...a]},unpause:()=>{t.debug("Unpausing transports"),null==s||s.start(),o=!1}}}(i,r,e,s),o=function(e,t,i,r,s){let a;t.debug("Initializing API");let o=null,b=(0,p.Ht)({transports:s,config:i,internalLogger:t,pushEvent:(e,i,n,r)=>{o?o(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:()=>a,getTraceContext:()=>{let e=null==a?void 0:a.trace.getSpanContext(a.context.active());return e?{trace_id:e.traceId,span_id:e.spanId}:void 0},initOTEL:(e,i)=>{t.debug("Initializing OpenTelemetry"),a={trace:e,context:i}},isOTELInitialized:()=>!!a,pushTraces:e=>{try{let i={type:l.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 a=null;return{pushEvent:(o,m,f,{skipDedupe:g,spanContext:b,timestampOverwriteMs:v,customPayloadTransformer:w=e=>e}={})=>{try{let y=(0,u.Ti)(m),S={meta:i.value,payload:w({name:o,domain:null!=f?f:t.eventDomain,attributes:(0,d.Im)(y)?void 0:y,timestamp:v?(0,c.q5)(v):(0,c.mI)(),trace:b?{trace_id:b.traceId,span_id:b.spanId}:r.getTraceContext()}),type:l.f.EVENT},T={name:S.payload.name,attributes:S.payload.attributes,domain:S.payload.domain};if(!g&&t.dedupe&&!(0,d.kZ)(a)&&(0,h.b)(T,a))return void e.debug("Skipping event push because it is the same as the last one\n",S.payload);a=T,e.debug("Pushing event\n",S),(0,p.NI)(s.getActiveUserAction(),S)||n.execute(S)}catch(t){e.error("Error pushing event",t)}}}}(w);return o=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:a}){var o;e.debug("Initializing exceptions API");let f=null;n=null!=(o=t.parseStacktrace)?o:n;let g=t=>{e.debug("Changing stacktrace parser"),n=null!=t?t:n},{ignoreErrors:b=[],preserveOriginalError:v}=t;return g(t.parseStacktrace),{changeStacktraceParser:g,getStacktraceParser:()=>n,pushError:(o,{skipDedupe:g,stackFrames:w,type:y,context:S,spanContext:T,timestampOverwriteMs:x,originalError:E,fingerprint:k,fatal:O}={})=>{var _,I;if(!function(e,t){var i;let{message:n,name:r,stack:s}=t;return i=n+" "+r+" "+s,e.some(e=>(0,d.Kg)(e)?i.includes(e):!!i.match(e))}(b,null!=E?E:o))try{let b,A=(0,u.Ti)(Object.assign(Object.assign({},(b=(I=null!=E?E:o).cause,(0,d.bJ)(b)?b=I.cause.toString():null!==b&&((0,d.Gv)(I.cause)||(0,d.cy)(I.cause))?b=(0,u.xD)(I.cause):null!=b&&(b=I.cause.toString()),null==b?{}:{cause:b})),null!=S?S:{})),j={meta:i.value,payload:Object.assign(Object.assign(Object.assign(Object.assign({type:y||o.name||m.x,value:o.message,timestamp:x?(0,c.q5)(x):(0,c.mI)(),trace:T?{trace_id:T.traceId,span_id:T.spanId}:s.getTraceContext()},(0,d.Im)(A)?{}:{context:A}),v?{originalError:E}:{}),k?{fingerprint:k}:{}),void 0!==O?{fatal:O}:{}),type:l.f.EXCEPTION};(null==(w=null!=w?w:o.stack?null==n?void 0:n(o).frames:void 0)?void 0:w.length)&&(j.payload.stacktrace={frames:w});let P={type:j.payload.type,value:j.payload.value,stacktrace:j.payload.stacktrace,context:j.payload.context,fingerprint:j.payload.fingerprint,fatal:null!=(_=j.payload.fatal)&&_};if(!g&&t.dedupe&&!(0,d.kZ)(f)&&(0,h.b)(P,f))return void e.debug("Skipping error push because it is the same as the last one\n",j.payload);f=P,e.debug("Pushing exception\n",j),(0,p.NI)(a.getActiveUserAction(),j)||r.execute(j)}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,d.Im)(e)?void 0:e),a)},t.add(i)},l=()=>t.value.session,u=()=>t.value.page;return{setUser:a,resetUser:a,setSession:o,resetSession:o,getSession:l,setView:(e,i)=>{var n;if((null==i?void 0:i.overrides)&&o(l(),{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,d.Kg)(e)?Object.assign(Object.assign({}
7,null!=(i=null==s?void 0:s.page)?i:u()),{id:e}):e;s&&t.remove(s),s={page:n},t.add(s)},getPage:u}}(w)),function({internalLogger:e,config:t,metas:i,transports:n,tracesApi:r,userActionsApi:s}){var a;e.debug("Initializing logs API");let o=null,m=null!=(a=t.logArgsSerializer)?a:g.Z;return{pushLog:(a,{context:g,level:b,skipDedupe:v,spanContext:w,timestampOverwriteMs:y}={})=>{try{let S=(0,u.Ti)(g),T={type:l.f.LOG,payload:{message:m(a),level:null!=b?b:f.Ic,context:(0,d.Im)(S)?void 0:S,timestamp:y?(0,c.q5)(y):(0,c.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,d.kZ)(o)&&(0,h.b)(x,o))return void e.debug("Skipping log push because it is the same as the last one\n",T.payload);o=x,e.debug("Pushing log\n",T),(0,p.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 a=null;return{pushMeasurement:(o,{skipDedupe:m,context:f,spanContext:g,timestampOverwriteMs:b}={})=>{try{let v=(0,u.Ti)(f),w={type:l.f.MEASUREMENT,payload:Object.assign(Object.assign({},o),{trace:g?{trace_id:g.traceId,span_id:g.spanId}:r.getTraceContext(),timestamp:b?(0,c.q5)(b):(0,c.mI)(),context:(0,d.Im)(v)?void 0:v}),meta:i.value},y={type:w.payload.type,values:w.payload.values,context:w.payload.context};if(!m&&t.dedupe&&!(0,d.kZ)(a)&&(0,h.b)(y,a))return void e.debug("Skipping measurement push because it is the same as the last one\n",w.payload);a=y,e.debug("Pushing measurement\n",w),(0,p.NI)(s.getActiveUserAction(),w)||n.execute(w)}catch(t){e.error("Error pushing measurement\n",t)}}}}(w)),y),b)}(i,r,e,s,a),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)=>{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,a,o),v=(0,E.A)(i,r,e,s,a,o,b);return!function(e){var t,i;let n=e.config.app.name,r=n?null===S.J||void 0===S.J?void 0:S.J[`__faroGitHash_${n}`]:void 0,s={sdk:{version:T.x,name:"faro"},app:Object.assign({bundleId:n&&function(e){let t=`__faroBundleId_${e}`,i=null===S.J||void 0===S.J?void 0:S.J[t];if("string"==typeof i&&""!==i)return i;let n="undefined"!=typeof window?window[t]:void 0;if("string"==typeof n&&""!==n)return n}(n)},void 0!==r?{gitHash:r}:{})},a=null==(t=e.config.sessionTracking)?void 0:t.session;a&&e.api.setSession(a),e.config.app&&(s.app=Object.assign(Object.assign({},e.config.app),s.app)),e.config.user&&(s.user=e.config.user),e.config.view&&(s.view=e.config.view),e.metas.add(s,...null!=(i=e.config.metas)?i:[])}(v),v.transports.add(...v.config.transports),v.transports.addBeforeSendHooks(v.config.beforeSend),v.instrumentations.add(...v.config.instrumentations),v}(t)}},9373:(e,t,i)=>{"use strict";i.d(t,{x:()=>n});let n="2.7.1"},10364:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CHANNELS:()=>s,DEFAULT_CHANNELS:()=>a,UtmFixedButton:()=>u,buildUtmUrl:()=>o,extractSlugFromUrl:()=>l});var n=i(12115),r=i(95155),s={avito:{key:"avito",label:"Avito",params:{utm_source:"avito",utm_medium:"cpm",utm_campaign:"tikets",utm_term:"call-center"}},instagram:{key:"instagram",label:"Instagram",params:{utm_source:"instagram",utm_medium:"direct",utm_campaign:""},needsSlug:!0},telegram:{key:"telegram",label:"Telegram",params:{utm_source:"tg",utm_medium:"bot",utm_campaign:""},needsSlug:!0},max:{key:"max",label:"MAX",params:{utm_source:"call-center",utm_medium:"max",utm_campaign:""},needsSlug:!0},whatsapp:{key:"whatsapp",label:"WhatsApp",params:{utm_source:"call-center",utm_medium:"whatsapp",utm_campaign:""},needsSlug:!0},sms:{key:"sms",label:"SMS",params:{utm_source:"call-center",utm_medium:"sms",utm_campaign:""},needsSlug:!0},email:{key:"email",label:"Почта",params:{utm_source:"call-center",utm_medium:"email",utm_campaign:""},needsSlug:!0},vk:{key:"vk",label:"VK",params:{utm_source:"vk",utm_medium:"direct",utm_campaign:""},needsSlug:!0},jivo:{key:"jivo",label:"Jivo",params:{utm_source:"call-center",utm_medium:"jivo",utm_campaign:""},needsSlug:!0}},a=Object.values(s);function o(e,t,i){try{let n=new URL(e);
7return Object.entries(t.params).forEach(e=>{let[r,s]=e;"utm_campaign"===r&&t.needsSlug?n.searchParams.set(r,i||s||""):s&&n.searchParams.set(r,s)}),n.toString()}catch(t){return e}}function l(e){try{let t=new URL(e,"undefined"!=typeof window?window.location.origin:"http://localhost").pathname;t.endsWith("/")&&(t=t.slice(0,-1));let i=t.split("/").filter(Boolean);return i[i.length-1]||""}catch(i){let t=e.split(/[?#]/)[0].replace(/\/$/,"").split("/").filter(Boolean);return t[t.length-1]||""}}var u=e=>{let{channels:t=a,defaultSlug:i="",copyFn:s,baseUrl:u="undefined"!=typeof window?window.location.href:"",icon:d="UTM",mainLabel:c="UTM",className:h="",ariaLabel:p="Сгенерировать UTM"}=e,[m,f]=(0,n.useState)(!1),g=(0,n.useRef)(null),b=(0,n.useMemo)(()=>i||l(u),[i,u]),v="utm-fixed",w=(0,n.useCallback)(async e=>{let t=o(u,e,b);try{s?await s(t):navigator.clipboard?await navigator.clipboard.writeText(t):"undefined"!=typeof window&&window.prompt("Скопируйте URL",t);let e=g.current;e&&(e.classList.remove("".concat(v,"-copied")),e.offsetWidth,e.classList.add("".concat(v,"-copied")))}catch(e){console.warn("Copy failed",e)}},[u,b,s]),y=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(m)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){y.current&&(y.current.contains(e.target)||f(!1))}},[m]),(0,r.jsxs)("div",{ref:y,className:"".concat(v," ").concat(h).trim(),children:[(0,r.jsx)("div",{className:["".concat(v,"-panel"),m?"".concat(v,"-panel-open"):""].filter(Boolean).join(" "),children:(0,r.jsx)("ul",{className:"".concat(v,"-list"),children:t.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("button",{type:"button",onClick:()=>w(e),title:e.label,children:e.label})},e.key))})}),(0,r.jsx)("button",{ref:g,type:"button","aria-label":p,className:"".concat(v,"-main"),onClick:()=>f(e=>!e),children:d||c})]})};u.displayName="UtmFixedButton"},12232:(e,t,i)=>{"use strict";i.d(t,{H:()=>s});var n=i(61558),r=i(76488);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)}}},13332:(e,t,i)=>{"use strict";i.d(t,{NI:()=>f,Ht:()=>m,Gx:()=>p});var n=i(82914);let r={Normal:"normal"};var s=i(19822),a=i(68733),o=i(15984),l=i(23805),u=i(71971),d=i(43277);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)(),this._startTimeMono=(0,l.AU)())}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;let e=(0,l.x3)(),t=(0,l.AU)()-this._startTimeMono;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 m({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)=>
11{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 f(e,t){return!!e&&(null==e?void 0:e.getState())===s.j.Started&&(e.addItem(t),!0)}},13722:(e,t,i)=>{"use strict";i.d(t,{rI:()=>a,N2:()=>s});var n=i(19568);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}},14155:(e,t,i)=>{"use strict";i.d(t,{D:()=>o});var n=i(43277),r=i(3609),s=i(14923);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(i.length>1024)return t;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}},14923:(e,t,i)=>{"use strict";i.d(t,{HS:()=>g,Lo:()=>p,N9:()=>h,Sy:()=>l,Wf:()=>r,Wo:()=>u,bz:()=>c,cB:()=>o,iC:()=>s,k4:()=>n,ld:()=>f,mZ:()=>b,rD:()=>m,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,m=" > eval",f="safari-extension",g="safari-web-extension",b=/Minified React error #\d+;/i},15514: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",m="vendor",f="version",g="architecture",b="console",v="mobile",w="tablet",y="smarttv",S="wearable",T="embedded",x="Amazon",E="Apple",k="ASUS",O="BlackBerry",_="Browser",I="Chrome",A="Firefox",j="Google",P="Honor",L="Huawei",M="Microsoft",C="Motorola",U="Nvidia",N="OnePlus",R="Opera",D="OPPO",z="Samsung",B="Sharp",q="Sony",$="Xiaomi",F="Zebra",V="Facebook",H="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},K=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},Z=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[
111],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(Z(t[i][n],e))return"?"===i?s:i}else if(Z(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],[f,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,f],[/opios[\/ ]+([\w\.]+)/i],[f,[h,R+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[f,[h,R+" GX"]],[/\bopr\/([\w\.]+)/i],[f,[h,R]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[h,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[f,[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,f],[/quark(?:pc)?\/([-\w\.]+)/i],[f,[h,"Quark"]],[/\bddg\/([\w\.]+)/i],[f,[h,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[h,"UC"+_]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[h,"Smart Lenovo "+_]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+_],f],[/\bfocus\/([\w\.]+)/i],[f,[h,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[h,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[h,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[h,"MIUI"+W]],[/fxios\/([\w\.-]+)/i],[f,[h,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[f,[h,"360"]],[/\b(qq)\/([\w\.]+)/i],[[h,/(.+)/,"$1Browser"],f],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1"+W],f],[/samsungbrowser\/([\w\.]+)/i],[f,[h,z+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[f,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[h,f],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[h],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[f,h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,V],f],[/(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,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[h,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,I+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[h,"Android "+_]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[f,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,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],f],[/(wolvic|librewolf)\/([\w\.]+)/i],[h,f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[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,[f,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[h,[f,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[g,/ower/,"",X]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;
vendor: 8,022 bytes, line 11
11|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[g,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,[m,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,[m,z],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[m,E],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[m,E],[p,w]],[/(macintosh);/i],[c,[m,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[m,B],[p,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[m,P],[p,w]],[/honor([-\w ]+)[;\)]/i],[c,[m,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,[m,L],[p,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[m,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," "],[m,$],[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," "],[m,$],[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,[m,D],[p,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[m,ee,{OnePlus:["304","403","203"],"*":D}],[p,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[m,"Vivo"],[p,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[m,"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,[m,C],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[m,C],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[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],[c,[m,"LG"],[p,v]],[/(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],[c,[m,"Lenovo"],[p,w]],[/(nokia) (t[12][01])/i],[m,c,[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[p,v],[m,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[m,j],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[m,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,[m,q],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[m,q],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[m,N],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[m,x],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[m,x],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[c,m,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[m,O],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[m,k],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[m,k],[p,v]],[/(nexus 9)/i],[c,[m,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[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,[m,"TCL"],[p,w]],[/(itel) ((\w+))/i],[[m,X],c,[p,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[m,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[m,"Meizu"],[p,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[m,"Ulefone"],[p,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[m,"Energizer"],[p,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[m,"Cat"],[p,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[m,"Smartfren"],[p,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[m,"Nothing"],[p,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[m,"Archos"],[p,w]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[m,"Archos"],[p,v]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[m,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],[m,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],[m,c,[p,w]],[/(surface duo)/i],[c,[m,M],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[m,"Fairphone"],[p,v]],[/(u304aa)/i],[c,[m,"AT&T"],[p,v]],[/\bsie-(\w*)/i],[c,[m,"Siemens"],[p,v]],[/\b(rct\w+) b/i],[c,[m,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[m,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[m,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[m,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[c,[m,"NuVision"],[p,w]],[/\b(k88) b/i],[c,[m,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[c,[m,"ZTE"],[p,v]],[/\b(gen\d{3}) b.+49h/i],[c,[m,"Swiss"],[p,v]],[/\b(zur\d{3}) b/i],[c,[m,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[c,[m,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],c,[p,w]],[/\b(ns-?\w{0,9}) b/i],[c,[m,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[m,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],c,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],c,[p,v]],[/\b(ph-1) /i],[c,[m,"Essential"],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[m,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[c,[m,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[c,[m,"Rotor"],[p,w]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[m,U],[p,w]],[/(sprint) (\w+)/i],[m,c,[p,v]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[m,M],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[m,F],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[m,F],[p,v]],[/smart-tv.+(samsung)/i],[m,[p,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[m,z],[p,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,"LG"],[p,y]],[/(apple) ?tv/i],[m,[c,E+" TV"],[p,y]],[/crkey/i],[[c,I+"cast"],[m,j],[p,y]],[/droid.+aft(\w+)( bui|\))/i],[c,[m,x],[p,y]],[/(shield \w+ tv)/i],[c,[m,U],[p,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[m,B],[p,y]],[/(bravia[\w ]+)( bui|\))/i],[c,[m,q],[p,y]],[/(mi(tv|box)-?\w+) bui/i],[c,[m,$],[p,y]],[/Hbbtv.*(technisat) (.*);/i],[m,c,[p,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,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],[m,c,[p,b]],[/droid.+; (shield)( bui|\))/i],[c,[m,U],[p,b]],[/(playstation \w+)/i],[c,[m,q],[p,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[m,M],[p,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[m,z],[p,S]],[/((pebble))app/i,/(asu
11s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[m,c,[p,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[m,D],[p,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[m,E],[p,S]],[/(opwwe\d{3})/i],[c,[m,N],[p,S]],[/(moto 360)/i],[c,[m,C],[p,S]],[/(smartwatch 3)/i],[c,[m,q],[p,S]],[/(g watch r)/i],[c,[m,"LG"],[p,S]],[/droid.+; (wt63?0{2,3})\)/i],[c,[m,F],[p,S]],[/droid.+; (glass) \d/i],[c,[m,j],[p,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[m,c,[p,S]],[/; (quest( \d| pro)?)/i],[c,[m,V],[p,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[p,T]],[/(aeobc)\b/i],[c,[m,x],[p,T]],[/(homepod).+mac os/i],[c,[m,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,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[h,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[h,f],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[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,f],[/ladybird\//i],[[h,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,f],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[h,[f,ee,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,ee,et],[h,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,G],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,h],[/(ubuntu) ([\w\.]+) like android/i],[[h,/(.+)/,"$1 Touch"],f],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[h,f],[/\(bb(10);/i],[f,[h,O]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[f,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[h,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[h,I+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,H],f],[/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,f],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,f]]},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[f]=s,Y.call(t,n,y.browser),t[d]=typeof(e=t[f])===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[g]=s,Y.call(e,n,y.cpu),e},this.getDevice=function(){var e={};return e[m]=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[f]=s,Y.call(e,n,y.engine),e},this.getOS=function(){var e={};return e[h]=s,e[f]=s,Y.call(e,n,y.os),S&&!e[h]&&b&&b.platform&&"Unknown"!=b.platform&&(e[h]=b.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};en.VERSION="1.0.41",en.BROWSER=K([h,f,d]),en.CPU=K([g]),en.DEVICE=K([c,m,p,b,v,y,w,S,T]),en.ENGINE=en.OS=K([h,f]),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)},15984:(e,t,i)=>{"use strict";i.d(t,{S:()=>r});let n="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function r(e=10){let t=new Uint32Array(e),i="undefined"!=typeof globalThis?globalThis.crypto:void 0;if(null==i?void 0:i.getRandomValues)i.getRandomValues(t);else for(let i=0;i<e;i++)t[i]=Math.floor(0x100000000*Math.random());let s="";for(let i=0;i<e;i++)s+=n[t[i]%n.length];return s}},19568:(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},19822:(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={}))},19883:(e,t,i)=>{"use strict";i.d(t,{G:()=>u});var n=i(71971),r=i(25083),s=i(26745),a=i(68798),o=i(81809),l=i(23180);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},23180:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>h,OW:()=>p,h$:()=>g,vP:()=>m});var n=i(23805),r=i(25083),s=i(15984),a=i(43277),o=i(92013),l=i(95923),u=i(68798),d=i(25168),c=i(81809);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 m({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 m=e();if(!1===i&&p(m))t(Object.assign(Object.assign({},m),{lastActivity:(0,n.x3)()}));else{let e=f(h({isSampled:(0,d.$)()}),m);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==m?void 0:m.sessionMeta)?o:null,e.sessionMeta)}}}function f(e,t){var i,n,s,o,l,u,d;let c=Object.assign(Object.assign({},e),{sessionMeta:{id:e.sessionId,attributes:function(e){let t={};for(let i of Object.keys(e)){let n=e[i];void 0!==n&&(t[i]=n)}return t}(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 g({fetchUserSession:e,storeUserSession:t}){let i=!1;return function(n){if(i)return;let s=n.session,a=e(),u=null==s?void 0:s.id,c=null==s?void 0:s.attributes,p=null==s?void 0:s.overrides,m=null==a?void 0:a.sessionMeta,g=null==m?void 0:m.overrides,b=!!p&&!(0,o.b)(p,g),v=!!c&&!(0,o.b)(c,null==m?void 0:m.attributes);if(s&&u!==(null==a?void 0:a.sessionId)||v||b){let e=f(h({sessionId:u,isSampled:(0,d.$)()}),a);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})}(b,p,g),i=!0;try{r.P.api.setSession(e.sessionMeta)}finally{i=!1}}}}},23805:(e,t,i)=>{"use strict";function n(){return Date.now()}function r(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}function s(){return new Date().toISOString()}function a(e){return new Date(e).toISOString()}i.d(t,{AU:()=>r,mI:()=>s,q5:()=>a,x3:()=>n})},25083:(e,t,i)=>{"use strict";i.d(t,{P:()=>s,A:()=>a});var n=i(19568),r=i(13722);let s={api:{pushLog:()=>{},pushError:()=>{},changeStacktraceParser:()=>{},getStacktraceParser:()=>void 0,pushMeasurement:()=>{},pushTraces:()=>{},getOTEL:()=>void 0,getTraceContext:()=>void 0,initOTEL:()=>{},isOTELInitialized:()=>!1,setUser:()=>{},resetUser:()=>{},setSession:()=>{},resetSession:()=>{},getSession:()=>
11void 0,setView:()=>{},getView:()=>void 0,setPage:()=>{},getPage:()=>void 0,pushEvent:()=>{},startUserAction:()=>void 0,getActiveUserAction:()=>void 0}};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}},25168:(e,t,i)=>{"use strict";i.d(t,{$:()=>r});var n=i(25083);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 Math.random()<("number"==typeof s?Math.min(1,Math.max(0,s)):0)}},26745:(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})},31833:(e,t,i)=>{"use strict";i.d(t,{Ij:()=>r,jJ:()=>n});let n="faroUserActionName",r="data-faro-user-action-name"},43277:(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:()=>f});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),m="undefined"!=typeof Event,f=e=>m&&s(e,Event),g="undefined"!=typeof Error,b=e=>g&&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)}},44853:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=e=>e.map(e=>{try{return String(e)}catch(e){return""}}).join(" ")},46534:(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={}));let r=n.LOG,s=[n.TRACE,n.DEBUG,n.INFO,n.LOG,n.WARN,n.ERROR]},51439:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});let n="unknown"},61558:(e,t,i)=>{"use strict";i.d(t,{vI:()=>a,vc:()=>s,wK:()=>n});var n,r=i(4325);!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},68733:(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"}},68798:(e,t,i)=>{"use strict";i.d(t,{Ai:()=>l,Gq:()=>a,OE:()=>u,SO:()=>o,Uy:()=>r,Vv:()=>d});var n=i(25083);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}},71971:(e,t,i)=>{"use strict";i.d(t,{Ti:()=>s,xD:()=>r});var n=i(43277);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}},76488:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});let n=Object.assign({},console)},81630:(e,t,i)=>{"use strict";let n,r,s,a,o,l,u,d,c,h,p,m,f,g,b,v,w;i.d(t,{w:()=>ta});var y=i(12232);class S extends y.H{constructor(){super(...arguments),this.api={},this.transports={}}}var T=i(9373),x=i(25083),E=i(13332),k=i(31833),O=i(82914),_=i(19822);let I="http-request-start",A="http-request-end";function j(){return n||(n=new O.c),r||(r=new MutationObserver((e,t)=>
11{n.notify({type:"dom-mutation"})})).observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),n}var P=i(15984),L=i(43277);function M(e=""){return x.P.transports.transports.flatMap(e=>e.getIgnoreUrls()).some(t=>e&&null!=e.match(t))}let C="fetch",U=!1;function N(){if(s)return s;function e(e){s.notify({type:I,request:e})}function t(e){s.notify({type:A,request:e})}return s=new O.c,U||(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}),U=!0),s}var R=i(51439),D=i(68798);let z="com.grafana.faro.lastNavigationId",B="resource",q=/^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(!q.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:m,renderBlockingStatus:f,requestStart:g,responseEnd:b,responseStart:v,responseStatus:w,secureConnectionStart:y,transferSize:S,workerStart:T}=e;return{name:c,httpHost:function(e){try{return new URL(e).host||R.y}catch(e){return R.y}}(c),duration:V(o),tcpHandshakeTime:V(i-n),dnsLookupTime:V(s-a),tlsNegotiationTime:V(i-y),responseStatus:V(w),redirectTime:V(p-m),requestTime:V(v-g),responseTime:V(b-v),fetchTime:V(b-u),serviceWorkerTime:V(u-T),decodedBodySize:V(r),encodedBodySize:V(l),cacheHitStatus:(t="fullLoad",0===S?r>0&&(t="cache"):null!=w?304===w&&(t="conditionalFetch"):l>0&&S<l&&(t="conditionalFetch"),t),renderBlockingStatus:V(f),protocol:h,initiatorType:d,visibilityState:document.visibilityState,ttfb:V(v-g),transferSize:V(S)}}function V(e){return null==e?R.y:"number"==typeof e?Math.round(e>0?e:0).toString():e.toString()}let H={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:R.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:V(n-o),documentParsingTime:V(h?a-h:null),domProcessingTime:V(n-a),domContentLoadHandlerTime:V(r-s),onLoadTime:V(l-u),ttfb:V(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:B});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,H)||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:B,buffered:!0})}(t,e,G)}
11,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 K(e){return e.type===A}class Z{constructor(e){this.userAction=e,this.http=N(),this.dom=j(),this.perf=(l||(l=new O.c),J||(G.subscribe(e=>{e.type===B&&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(()=>[_.j.Started,_.j.Halted].includes(this.userAction.getState())).filter(e=>this.userAction.getState()!==_.j.Halted||!!(K(e)&&this.runningRequests.has(e.request.requestId))).subscribe(e=>{e.type===I&&this.runningRequests.set(e.request.requestId,e.request),K(e)&&this.runningRequests.delete(e.request.requestId),K(e)?this.userAction.getState()===_.j.Halted&&0===this.runningRequests.size&&this.endAction():(this.isValid||(this.isValid=!0),this.scheduleFollowUp())}),this.stateSub=this.userAction.filter(e=>[_.j.Ended,_.j.Cancelled].includes(e)).first().subscribe(()=>this.cleanup()),this.scheduleFollowUp()}scheduleFollowUp(){this.clearTimer(this.followUpTid),this.followUpTid=setTimeout(()=>this.userAction.getState()===_.j.Started&&this.runningRequests.size>0?void this.haltAction():this.isValid?void this.endAction():void this.cancelAction(),100)}haltAction(){this.userAction.getState()===_.j.Started&&(this.userAction.halt(),this.startHaltTimeout())}startHaltTimeout(){var e,t;this.clearTimer(this.haltTid),this.haltTid=(e=this.haltTid,t=()=>{this.userAction.getState()===_.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 Z(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);if(!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(95984),ee=i(14155),et=i(3609);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)?(i=e.name,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){let i=eh.get(t);
11return i||(i=new WeakMap,eh.set(t,i)),i.get(e)||i.set(e,new t),i.get(e)}let em=-1,ef=e=>{addEventListener("pageshow",t=>{t.persisted&&(em=t.timeStamp,e(t))},!0)},eg=(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=()=>el()?.activationStart??0,ew=(e,t=-1)=>{let i=el(),n="navigate";return em>=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=>{queueMicrotask(()=>{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").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime)??eE(),addEventListener("visibilitychange",ek,!0),addEventListener("prerenderingchange",ek,!0),ef(()=>{setTimeout(()=>{eT=eE()})})}return{get firstHiddenTime(){return eT},onHidden(e){ex.add(e)}}},e_=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},eI=[1800,3e3],eA=(e,t={})=>{e_(()=>{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=eg(e,r,eI,t.reportAllChanges),ef(i=>{n=eg(e,r=ew("FCP"),eI,t.reportAllChanges),eb(()=>{r.value=performance.now()-i.timeStamp,n(!0)})}))})},ej=[.1,.25],eP=e=>e.find(e=>1===e.node?.nodeType)||e[0],eL=0,eM=1/0,eC=0,eU=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)},eN=()=>u?eL:performance.interactionCount??0,eR=0;class eD{l=[];h=new Map;m;p;v(){eR=eN(),this.l.length=0,this.h.clear()}M(){let e=Math.min(this.l.length-1,Math.floor((eN()-eR)/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,i=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{let n=eS(e),r=-1,s=()=>{i(r),n()};addEventListener("visibilitychange",s,{once:!0,capture:!0}),r=t(()=>{removeEventListener("visibilitychange",s,{capture:!0}),n()})}},eB=[200,500];class eq{m;u(e){this.m?.(e)}}let e$=[2500,4e3],eF=[800,1800],eV=e=>{document.prerendering?e_(()=>eV(e)):"complete"!==document.readyState?addEventListener("load",()=>eV(e),!0):setTimeout(e)},eH="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=eg(e,r,ej,t.reportAllChanges),i.onHidden(()=>{a(o.takeRecords()),n(!0)}),ef(()=>{s.o=0,eb(n=eg(e,r=ew("CLS",0),ej,t.reportAllChanges))}),setTimeout(n))}))})(t=>{e((e=>{let t={};if(e.entries.length){let i=e.entries.reduce((e,t)=>
11e.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,eH,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(em)};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,eH,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=new Set(i.l.map(e=>a.get(e.entries[0]))),t=r.length-10;r=r.filter((i,n)=>n>=t||e.has(i));let o=new Set;for(let e of r)for(let t of h(e.startTime,e.processingEnd))o.add(t);n=n.filter(e=>e.startTime>s||o.has(e)),l=!1};i.m=e=>{let i,n=e.startTime+e.duration;s=Math.max(s,e.processingEnd);for(let s=r.length-1;s>=0;s--){let a=r[s];if(8>=Math.abs(n-a.renderTime)){(i=a).startTime=Math.min(e.startTime,i.startTime),i.processingStart=Math.min(e.processingStart,i.processingStart),i.processingEnd=Math.max(e.processingEnd,i.processingEnd),!1!==t.includeProcessedEventEntries&&i.entries.push(e);break}}i||(i={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:!1!==t.includeProcessedEventEntries?[e]:[]},r.push(i)),(e.interactionId||"first-input"===e.entryType)&&a.set(e,i),d()},i.p=e=>{if(!o.get(e)){let i=e.entries.find(e=>e.target)?.target;if(i){let n=t.generateTarget?.(i)??ec(i);o.set(e,n)}else{let t=e.entries.find(e=>e.targetSelector)?.targetSelector;t&&o.set(e,t)}}};let h=(e,t)=>{let i=[];for(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=>
11{n=n.concat(e),d()}),((e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let i=eO();e_(()=>{"interactionCount"in performance||u||(u=ey("event",eU,{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=eg(e,r,eB,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),i.onHidden(()=>{a(o.takeRecords()),n(!0)}),ef(()=>{s.v(),n=eg(e,r=ew("INP"),eB,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,eH,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),eq),n=new WeakMap;i.m=e=>{let i=e.element;if(i){let r=t.generateTarget?.(i)??ec(i);n.set(e,r)}else e.id&&n.set(e,`#${e.id}`)},((e,t={})=>{e_(()=>{let i=eO(),n,r=ew("LCP"),s=ep(t,eq),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=eg(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});ef(i=>{n=eg(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=e.entries.at(-1),r=i.url&&performance.getEntriesByType("resource").find(e=>e.name===i.url);t.target=n.get(i),t.lcpEntry=i,i.url&&(t.url=i.url),r&&(t.lcpResourceEntry=r);let s=el();if(s){let i=s.activationStart||0,n=Math.max(0,s.responseStart-i),a=Math.max(n,r?(r.requestStart||r.startTime)-i:0),o=Math.min(e.value,Math.max(a,r?r.responseEnd-i:0));t={...t,timeToFirstByte:n,resourceLoadDelay:a-n,resourceLoadDuration:o-a,elementRenderDelay:e.value-o,navigationEntry:s}}}return Object.assign(e,{attribution:t})})(t))},t)}
11)(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=eg(e,i,eF,t.reportAllChanges);eV(()=>{let r=el();r&&(i.value=Math.max(r.responseStart-ev(),0),i.entries=[r],n(!0),ef(()=>{(n=eg(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:R.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 eK=i(95923),eZ=i(23805),eX=i(25168),eQ=i(96260),eY=i(19883),e0=i(23180);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(eK.Td,{},void 0,{skipDedupe:!0}),this.notifiedSession=n;return}this.notifiedSession=n,this.api.pushEvent(eK.Vl,{},void 0,{skipDedupe:!0})}}createInitialSession(e,t){var i,n,r,s,a,o,l,u,d,c;let h,p,m=e.fetchUserSession();if(t.persistent&&t.maxSessionPersistenceTime&&m){let e=(0,eZ.x3)();m.lastActivity<e-t.maxSessionPersistenceTime&&(eY.G.removeUserSession(),m=null)}if((0,e0.OW)(m)){let e=null==m?void 0:m.sessionId;p=(0,e0.Bc)({sessionId:e,isSampled:m.isSampled||!1,started:null==m?void 0:m.started});let r=null==m?void 0:m.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=eK.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=eK.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;this.notifiedSession=r,this.api.setSession(r),n===eK.Vl&&this.api.pushEvent(eK.Vl,{},void 0,{skipDedupe:!0}),n===eK.ki&&this.api.pushEvent(eK.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(eK.wM,{fromView:null!=(n=null==(i=this.notifiedView)?void 0:i.name)?n:R.y,toView:null!=(r=s.name)?r:R.y},void 0,{skipDedupe:!0}),this.notifiedView=s)}initialize(){this.metas.addListener(this.sendViewChangedEvent.bind(this))}}class e3 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=(0,eZ.AU)(),null==(t=this._currentEvents)||t.pu
11sh(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=(0,eZ.AU)(),this._lastEventTime=this._startTime,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()?(0,eZ.AU)()-this._startTime:this._lastEventTime?this._lastEventTime-this._startTime:0,this.notify({message:"tracking-ended",events:this._currentEvents,duration:e})}_scheduleInactivityCheck(){this._inactivityTid=e5(this._inactivityTid,()=>{this.hasActiveOperations()?this._startDrainTimeout():this.stopTracking()},this._options.inactivityMs)}_startDrainTimeout(){this._drainTid=e5(this._drainTid,()=>{this.stopTracking()},this._options.drainTimeoutMs)}hasActiveOperations(){return!!this._activeOperations&&this._activeOperations.size>0}_clearTimer(e){e&&clearTimeout(e)}}function e5(e,t,i){return e&&clearTimeout(e),e=setTimeout(()=>{t()},i)}let e4=new Set,e8=new Map,e6=!1;class e9 extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-navigation",this.version=T.x}initialize(){var e;let t=N(),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),!e6)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)}),e6=!0}else p||(p=window.history.pushState),window.history.pushState=function(...t){let i=p.apply(window.history,t);return e("pushState"),i},m||(m=window.history.replaceState),window.history.replaceState=function(...t){let i=m.apply(window.history,t);return e("replaceState"),i},f=()=>e("popstate"),g=()=>e("hashchange"),window.addEventListener("popstate",f),window.addEventListener("hashchange",g),e6=!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),e8.set(e,t)}}),d),s=new e3(new O.c().merge(t,i,n),{inactivityMs:100,drainTimeoutMs:1e4,isOperationStart:e=>e.type===I?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(71971);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(44853),ti=i(46534),tn=i(76488);let tr=!1;class ts extends S{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=T.x,this.errorSerializer
11=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 e9];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: "},81809:(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}},82914:(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=>
11{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=[]}}},92013:(e,t,i)=>{"use strict";i.d(t,{b:()=>function e(t,i){if(t===i)return!0;if((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(43277)},95923:(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"},95984:(e,t,i)=>{"use strict";i.d(t,{n:()=>a,x:()=>s});var n=i(43277),r=i(71971);let s="Error",a=e=>e.map(e=>(0,n.Gv)(e)?(0,r.xD)(e):String(e)).join(" ")},96260:(e,t,i)=>{"use strict";i.d(t,{R:()=>c});var n=i(19883),r=i(71971),s=i(25083),a=i(26745),o=i(68798),l=i(81809),u=i(23180);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}}]);

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.