baqend-website-sk.app.baqend.com
Open in
urlscan Pro
2a04:4e42:400::520
Public Scan
URL:
https://baqend-website-sk.app.baqend.com/v1/speedkit/install.js?d=production
Submission: On March 28 via api from LU — Scanned from DE
Submission: On March 28 via api from LU — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(function(){var Y=function(){function n(){}return n.prototype.track=function(e){var t=this;e.onSpeedKitLoaded(function(){t.sendData(e),t.sendOriginData(e)}),e.onDfDataReady(function(){return t.sendOriginData(e)}),window.addEventListener("pagehide",function(){return t.sendData(e)})},n.prototype.sendData=function(e){if(SpeedKit.dynamicBlocks&&!(new Date(SpeedKit.dynamicBlocks.start).getFullYear()<=1970)){var t={start:e.calculateRelative(SpeedKit.dynamicBlocks.start),status:SpeedKit.dynamicBlocks.status,received:e.calculateRelative(SpeedKit.dynamicBlocks.received),complete:e.calculateRelative(SpeedKit.dynamicBlocks.complete),localBlocks:SpeedKit.dynamicBlocks.localBlocks,remoteBlocks:SpeedKit.dynamicBlocks.remoteBlocks,mergedBlocks:SpeedKit.dynamicBlocks.mergedBlocks,changeDetection:SpeedKit.dynamicBlocks.changeDetection};e.set("dynamicFetcher",t)}},n.prototype.sendOriginData=function(e){SpeedKit.dynamicBlocks&&(new Date(SpeedKit.dynamicBlocks.start).getFullYear()<=1970||(e.set("originTTFB",SpeedKit.dynamicBlocks.originTTFB,!1),e.setTiming("originResponseStart",SpeedKit.dynamicBlocks.originResponseStart,!1)))},n}();var A,T;(function(n){n.SNIPPET="snippet",n.CONFIG="skConfig",n.RUMPLUGIN="rum",n.JSTRACKINGPLUGIN="js",n.DFCONFIG="dfConfig",n.MERGE="merge",n.CHANGEDETECTION="cd",n.DYNAMICFETCHER="df",n.BLOCKINGNOTRELEASED="blockingScriptNotReleased",n.MAINNOTMERGED="mainNotMerged",n.SERVICEWORKER="sw",n.SLOWCHUNK="slowChunk"})(A||(A={})),function(n){n.NOT_AVAILABLE="Not available"}(T||(T={}));var X=function(){function n(e){this.key="jsErrors",this.counter=0,this.errors={},this.options=e}return n.prototype.on=function(e,t){var i=this.options&&this.options.afterDCL?t.onDOMInteractive:function(r){return r()};i(function(){window.addEventListener("error",function(r){var o=n.errorEventToError(r);o&&e(o)}),window.addEventListener("unhandledrejection",function(r){var o=n.rejectionEventToError(r);o&&e(o)})})},n.prototype.append=function(e){var t=e.stackTrace&&e.stackTrace.split("\n")[0],i=this.options&&this.options.maxPerPi&&this.counter>=this.options.maxPerPi;return(e==null?void 0:e.stackTrace)===T.NOT_AVAILABLE||!i&&!this.errors[t]?(this.errors[t]=!0,this.counter+=1,e):null},n.errorEventToError=function(e){return{message:e.error?e.error.message:T.NOT_AVAILABLE,stackTrace:e.error?e.error.stack:T.NOT_AVAILABLE,filename:e.filename||void 0,lineno:e.lineno,colno:e.colno,timestamp:Date.now(),type:A.JSTRACKINGPLUGIN}},n.rejectionEventToError=function(e){var t=e.reason instanceof Error;return{message:t?e.reason.message:T.NOT_AVAILABLE,stackTrace:t&&e.reason.stack?e.reason.stack:T.NOT_AVAILABLE,timestamp:Date.now(),type:A.JSTRACKINGPLUGIN}},n}();var g,L,oe,D,V,y,I=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},C=function(n){if(document.readyState==="loading")return"loading";var e=I();if(e){if(n<e.domInteractive)return"loading";if(e.domContentLoadedEventStart===0||n<e.domContentLoadedEventStart)return"dom-interactive";if(e.domComplete===0||n<e.domComplete)return"dom-content-loaded"}return"complete"},ge=function(n){var e=n.nodeName;return n.nodeType===1?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},M=function(n,e){var t="";try{for(;n&&n.nodeType!==9;){var i=n,r=i.id?"#"+i.id:ge(i)+(i.classList&&i.classList.value&&i.classList.value.trim()&&i.classList.value.trim().length?"."+i.classList.value.trim().replace(/\s+/g,"."):"");if(t.length+r.length>(e||100)-1)return t||r;if(t=t?r+">"+t:r,i.id)break;n=i.parentNode}}catch(o){}return t},se=-1,ce=function(){return se},k=function(n){addEventListener("pageshow",function(e){e.persisted&&(se=e.timeStamp,n(e))},!0)},j=function(){var n=I();return n&&n.activationStart||0},v=function(n,e){var t=I(),i="navigate";return ce()>=0?i="back-forward-cache":t&&(document.prerendering||j()>0?i="prerender":document.wasDiscarded?i="restore":t.type&&(i=t.type.replace(/_/g,"-"))),{name:n,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},E=function(n,e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(n)){var i=new PerformanceObserver(function(r){Promise.resolve().then(function(){e(r.getEntries())})});return i.observe(Object.assign({type:n,buffered:!0},t||{})),i}}catch(r){}},h=function(n,e,t,i){var r,o;return function(a){e.value>=0&&(a||i)&&((o=e.value-(r||0))||r===void 0)&&(r=e.value,e.delta=o,e.rating=function(s,c){return s>c[1]?"poor":s>c[0]?"needs-improvement":"good"}(e.value,t),n(e))}},H=function(n){requestAnimationFrame(function(){return requestAnimationFrame(function(){return n()})})},P=function(n){var e=function(t){t.type!=="pagehide"&&document.visibilityState!=="hidden"||n(t)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},J=function(n){var e=!1;return function(t){e||(n(t),e=!0)}},S=-1,W=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},F=function(n){document.visibilityState==="hidden"&&S>-1&&(S=n.type==="visibilitychange"?n.timeStamp:0,Te())},Q=function(){addEventListener("visibilitychange",F,!0),addEventListener("prerenderingchange",F,!0)},Te=function(){removeEventListener("visibilitychange",F,!0),removeEventListener("prerenderingchange",F,!0)},U=function(){return S<0&&(S=W(),Q(),k(function(){setTimeout(function(){S=W(),Q()},0)})),{get firstHiddenTime(){return S}}},O=function(n){document.prerendering?addEventListener("prerenderingchange",function(){return n()},!0):n()},z=[1800,3e3],ue=function(n,e){e=e||{},O(function(){var t,i=U(),r=v("FCP"),o=E("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<i.firstHiddenTime&&(r.value=Math.max(s.startTime-j(),0),r.entries.push(s),t(!0)))})});o&&(t=h(n,r,z,e.reportAllChanges),k(function(a){r=v("FCP"),t=h(n,r,z,e.reportAllChanges),H(function(){r.value=performance.now()-a.timeStamp,t(!0)})}))})},Z=[.1,.25],ye=function(n,e){(function(t,i){i=i||{},ue(J(function(){var r,o=v("CLS",0),a=0,s=[],c=function(l){l.forEach(function(d){if(!d.hadRecentInput){var f=s[0],p=s[s.length-1];a&&d.startTime-p.startTime<1e3&&d.startTime-f.startTime<5e3?(a+=d.value,s.push(d)):(a=d.value,s=[d])}}),a>o.value&&(o.value=a,o.entries=s,r())},u=E("layout-shift",c);u&&(r=h(t,o,Z,i.reportAllChanges),P(function(){c(u.takeRecords()),r(!0)}),k(function(){a=0,o=v("CLS",0),r=h(t,o,Z,i.reportAllChanges),H(function(){return r()})}),setTimeout(r,0))}))})(function(t){(function(i){if(i.entries.length){var r=i.entries.reduce(function(s,c){return s&&s.value>c.value?s:c});if(r&&r.sources&&r.sources.length){var o=(a=r.sources).find(function(s){return s.node&&s.node.nodeType===1})||a[0];if(o)return void(i.attribution={largestShiftTarget:M(o.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:o,largestShiftEntry:r,loadState:C(r.startTime)})}}var a;i.attribution={}})(t),n(t)},e)},Se=function(n,e){ue(function(t){(function(i){if(i.entries.length){var r=I(),o=i.entries[i.entries.length-1];if(r){var a=r.activationStart||0,s=Math.max(0,r.responseStart-a);return void(i.attribution={timeToFirstByte:s,firstByteToFCP:i.value-s,loadState:C(i.entries[0].startTime),navigationEntry:r,fcpEntry:o})}}i.attribution={timeToFirstByte:0,firstByteToFCP:i.value,loadState:C(ce())}})(t),n(t)},e)},b={passive:!0,capture:!0},ke=new Date,$=function(n,e){g||(g=e,L=n,oe=new Date,de(removeEventListener),le())},le=function(){if(L>=0&&L<oe-ke){var n={entryType:"first-input",name:g.type,target:g.target,cancelable:g.cancelable,startTime:g.timeStamp,processingStart:g.timeStamp+L};D.forEach(function(e){e(n)}),D=[]}},Ee=function(n){if(n.cancelable){var e=(n.timeStamp>1e12?new Date:performance.now())-n.timeStamp;n.type=="pointerdown"?function(t,i){var r=function(){$(t,i),a()},o=function(){a()},a=function(){removeEventListener("pointerup",r,b),removeEventListener("pointercancel",o,b)};addEventListener("pointerup",r,b),addEventListener("pointercancel",o,b)}(e,n):$(e,n)}},de=function(n){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return n(e,Ee,b)})},ee=[100,300],be=function(n,e){e=e||{},O(function(){var t,i=U(),r=v("FID"),o=function(c){c.startTime<i.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),t(!0))},a=function(c){c.forEach(o)},s=E("first-input",a);t=h(n,r,ee,e.reportAllChanges),s&&P(J(function(){a(s.takeRecords()),s.disconnect()})),s&&k(function(){var c;r=v("FID"),t=h(n,r,ee,e.reportAllChanges),D=[],L=-1,g=null,de(addEventListener),c=o,D.push(c),le()})})},Le=function(n,e){be(function(t){(function(i){var r=i.entries[0];i.attribution={eventTarget:M(r.target),eventType:r.name,eventTime:r.startTime,eventEntry:r,loadState:C(r.startTime)}})(t),n(t)},e)},fe=0,R=1/0,w=0,Ce=function(n){n.forEach(function(e){e.interactionId&&(R=Math.min(R,e.interactionId),w=Math.max(w,e.interactionId),fe=w?(w-R)/7+1:0)})},pe=function(){return V?fe:performance.interactionCount||0},Ie=function(){"interactionCount"in performance||V||(V=E("event",Ce,{type:"event",buffered:!0,durationThreshold:0}))},ne=[200,500],me=0,te=function(){return pe()-me},m=[],K={},ie=function(n){var e=m[m.length-1],t=K[n.interactionId];if(t||m.length<10||n.duration>e.latency){if(t)t.entries.push(n),t.latency=Math.max(t.latency,n.duration);else{var i={id:n.interactionId,latency:n.duration,entries:[n]};K[i.id]=i,m.push(i)}m.sort(function(r,o){return o.latency-r.latency}),m.splice(10).forEach(function(r){delete K[r.id]})}},Ae=function(n,e){e=e||{},O(function(){var t;Ie();var i,r=v("INP"),o=function(s){s.forEach(function(l){l.interactionId&&ie(l),l.entryType==="first-input"&&!m.some(function(d){return d.entries.some(function(f){return l.duration===f.duration&&l.startTime===f.startTime})})&&ie(l)});var c,u=(c=Math.min(m.length-1,Math.floor(te()/50)),m[c]);u&&u.latency!==r.value&&(r.value=u.latency,r.entries=u.entries,i())},a=E("event",o,{durationThreshold:(t=e.durationThreshold)!==null&&t!==void 0?t:40});i=h(n,r,ne,e.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),P(function(){o(a.takeRecords()),r.value<0&&te()>0&&(r.value=0,r.entries=[]),i(!0)}),k(function(){m=[],me=pe(),r=v("INP"),i=h(n,r,ne,e.reportAllChanges)}))})},we=function(n,e){Ae(function(t){(function(i){if(i.entries.length){var r=i.entries.sort(function(a,s){return s.duration-a.duration||s.processingEnd-s.processingStart-(a.processingEnd-a.processingStart)})[0],o=i.entries.find(function(a){return a.target});i.attribution={eventTarget:M(o&&o.target),eventType:r.name,eventTime:r.startTime,eventEntry:r,loadState:C(r.startTime)}}else i.attribution={}})(t),n(t)},e)},re=[2500,4e3],G={},De=function(n,e){(function(t,i){i=i||{},O(function(){var r,o=U(),a=v("LCP"),s=function(l){var d=l[l.length-1];d&&d.startTime<o.firstHiddenTime&&(a.value=Math.max(d.startTime-j(),0),a.entries=[d],r())},c=E("largest-contentful-paint",s);if(c){r=h(t,a,re,i.reportAllChanges);var u=J(function(){G[a.id]||(s(c.takeRecords()),c.disconnect(),G[a.id]=!0,r(!0))});["keydown","click"].forEach(function(l){addEventListener(l,function(){return setTimeout(u,0)},!0)}),P(u),k(function(l){a=v("LCP"),r=h(t,a,re,i.reportAllChanges),H(function(){a.value=performance.now()-l.timeStamp,G[a.id]=!0,r(!0)})})}})})(function(t){(function(i){if(i.entries.length){var r=I();if(r){var o=r.activationStart||0,a=i.entries[i.entries.length-1],s=a.url&&performance.getEntriesByType("resource").filter(function(p){return p.name===a.url})[0],c=Math.max(0,r.responseStart-o),u=Math.max(c,s?(s.requestStart||s.startTime)-o:0),l=Math.max(u,s?s.responseEnd-o:0),d=Math.max(l,a?a.startTime-o:0),f={element:M(a.element),timeToFirstByte:c,resourceLoadDelay:u-c,resourceLoadTime:l-u,elementRenderDelay:d-l,navigationEntry:r,lcpEntry:a};return a.url&&(f.url=a.url),s&&(f.lcpResourceEntry=s),void(i.attribution=f)}}i.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:i.value}})(t),n(t)},e)};function Fe(){return typeof PerformanceObserver!="undefined"&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.indexOf("first-input")>=0}function ve(n,e){if(e===void 0&&(e=""),n.tagName==="BODY"||n.id)return((n.id?[n.tagName,n.id].join("#"):n.tagName)+" "+e).trim();var t=Array.from(n.classList).map(function(i){return"."+i}).join("");return t=("> "+n.tagName+t+" "+e).trim(),n.parentElement?ve(n.parentElement,t):t}function Me(){return!!document.querySelector(".speed-kit-dynamic-loading,.speed-kit-dynamic-loaded")}function Pe(n,e){var t=n&&n.attributes;return e&&t&&t[e]?t[e].value:void 0}function x(n,e){var t=n[e];return t&&typeof t.animVal=="string"?t.animVal:t}function ae(n){var e,t=n,i=x(n,"className"),r=t.for||Pe(n,"id"),o=t.formTarget||x(n,"target"),a=(n.attributes&&n.attributes.formaction?t.formAction:"")||t.action||x(n,"href")||t.src||t.srcset||t.currentSrc||t.code||t.codebase;return{selector:ve(n),trusted:!!Me()&&[0,void 0,!1].includes((e=SpeedKit==null?void 0:SpeedKit.dynamicBlocks)===null||e===void 0?void 0:e.complete),classes:i,id:r,target:o,url:a}}function Oe(){return typeof PerformanceObserver!="undefined"&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.indexOf("layout-shift")>=0}(function(n){n[n.TEXT=0]="TEXT",n[n.IMG=1]="IMG",n[n.BACKGROUND=2]="BACKGROUND",n[n.OTHER=255]="OTHER"})(y||(y={}));var he=function(){function n(){var e=this;this.cls={name:"CLS",value:0,delta:0,id:"init",entries:[]},this.lcpCandidates=[];try{ye(function(t){return e.cls=t},{reportAllChanges:!0}),De(function(t){return e.lcp=t},{reportAllChanges:!0}),we(function(t){return e.inp=t},{reportAllChanges:!0})}catch(t){}}return n.prototype.on=function(e,t){var i=this;this.listenForLCPCandidates(),this.listenForFirstInputDelay(t),this.listenForFirstInteraction(t),Se(function(o){return i.trackFCP(t,o)},{reportAllChanges:!0}),t.onLeavePage(function(){i.lcpCandidates.length&&(t.set("lcpCandidates",i.lcpCandidates),i.lcpCandidates=[]),e([i.lcp,i.cls,i.inp])});var r=!1;["keydown","click"].forEach(function(o){addEventListener(o,function(a){a.isTrusted&&!r&&(e([i.lcp]),r=!0)},{capture:!0,once:!0})})},n.prototype.track=function(e,t){for(var i=0,r=t;i<r.length;i++){var o=r[i];if(o)switch(o.name){case"LCP":this.trackLCP(e);break;case"CLS":this.trackCLS(e);break;case"INP":this.trackINP(e)}}},n.prototype.trackLCP=function(e){if(this.lcp&&(e.set("lcp",this.lcp.value),this.lcp.attribution&&Object.keys(this.lcp.attribution).length!==0)){var t=this.lcp.attribution,i=t.lcpEntry,r=t.lcpResourceEntry,o=t.elementRenderDelay,a=t.element,s=r?this.getLCPResourceTimings(r):void 0,c=this.getLCPElement(i==null?void 0:i.element,a);c&&(c.target=c.target||void 0,c.classes=c.classes||void 0,c.url=(i==null?void 0:i.url)||c.url);var u={renderDelay:o?Math.round(o):void 0},l=this.getLCPType(i,r);e.set("lcpType",l),e.set("lcpElement",c),e.set("lcpResourceTimings",s),e.set("lcpAttribution",u)}},n.prototype.getLCPType=function(e,t){var i;return!((i=e==null?void 0:e.element)===null||i===void 0)&&i.textContent?y.TEXT:(t==null?void 0:t.initiatorType)==="img"?y.IMG:(t==null?void 0:t.initiatorType)==="css"?y.BACKGROUND:y.OTHER},n.prototype.getLCPElement=function(e,t){var i=e;if(!i)try{i=t&&document.querySelector(t)||void 0}catch(r){}return i?ae(i):void 0},n.prototype.getLCPResourceTimings=function(e){var t=e.name,i=e.startTime,r=e.requestStart,o=e.responseEnd;return{url:t,start:Math.round(i),requestStart:Math.round(r),responseEnd:Math.round(o)}},n.prototype.listenForLCPCandidates=function(){var e=this;try{new PerformanceObserver(function(t){for(var i=0,r=t.getEntries();i<r.length;i++){var o=r[i];e.lcpCandidates.push({id:o.id||void 0,url:o.url||void 0,startTime:Math.round(o.startTime),loadTime:Math.round(o.loadTime),renderTime:Math.round(o.renderTime)})}}).observe({type:"largest-contentful-paint",buffered:!0})}catch(t){}},n.prototype.trackCLS=function(e){var t,i;if(Oe()&&(e.set("cls",((t=this.cls)===null||t===void 0?void 0:t.value)||0),((i=this.cls)===null||i===void 0?void 0:i.attribution)&&Object.keys(this.cls.attribution).length!==0)){var r=this.cls.attribution,o=r.loadState,a=r.largestShiftTime,s=r.largestShiftSource,c=r.largestShiftValue,u={shiftTime:a?Math.round(a):void 0,shiftValue:c,loadState:o};e.set("clsAttribution",u),s&&this.trackLargestCLS(e,s)}},n.prototype.trackLargestCLS=function(e,t){try{var i=ae(t.node);i.target=i.target||void 0,i.classes=i.classes||void 0,e.set("lClsElement",i),e.set("lClsShiftPrev",this.getShiftInfo(t.previousRect)),e.set("lClsShiftCur",this.getShiftInfo(t.currentRect))}catch(r){}},n.prototype.getShiftInfo=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}},n.prototype.listenForFirstInteraction=function(e){var t=this;addEventListener("scroll",function(i){return t.trackFIA(e,i.timeStamp)},{once:!0})},n.prototype.listenForFirstInputDelay=function(e){var t=this;if(!Fe())return this.trackLegacyFID(e);Le(function(i){return t.trackFID(e,i)},{reportAllChanges:!0})},n.prototype.trackFID=function(e,t){var i=t.entries.filter(function(s){return s.entryType==="first-input"})[0],r=Math.round(this.calculateFirstInteractionTime(i.startTime));if(e.set("fi",r),e.set("fid",Math.round(t.value)),!this.fia&&e.set("fia",r),t.attribution&&Object.keys(t.attribution).length!==0){var o=t.attribution.eventType,a=t.attribution.eventTarget||void 0;e.set("fidAttribution",{eventTarget:a,eventType:o})}},n.prototype.trackINP=function(e){if(this.inp&&(e.set("inp",Math.round(this.inp.value)),this.inp.attribution&&Object.keys(this.inp.attribution).length!==0)){var t=this.inp.attribution,i=t.eventTarget,r=t.eventTime,o=t.eventType,a=t.eventEntry,s=a?Math.max(a.processingEnd+4,a.startTime+a.duration):void 0,c={eventType:o,eventTarget:i,presentationDelay:s?Math.round(s-a.processingEnd):void 0,eventTime:r?Math.round(r):void 0,inputDelay:a?Math.round(a.processingStart-a.startTime):void 0,processingTime:a?Math.round(a.processingEnd-a.processingStart):void 0};e.set("inpAttribution",c)}},n.prototype.trackFCP=function(e,t){e.set("fcp",Math.round(t.value))},n.prototype.trackFIA=function(e,t){this.fia=this.calculateFirstInteractionTime(t),e.set("fia",Math.round(this.fia))},n.prototype.trackLegacyFID=function(e){var t=this,i=["click","mousedown","keydown","touchstart","pointerup"],r=function(o){var a=t.calculateFirstInputDelay(o);if(a)try{t.trackFID(e,a),i.forEach(function(s){return removeEventListener(s,r)})}catch(s){}};i.forEach(function(o){return addEventListener(o,r,{passive:!0,capture:!0})})},n.prototype.calculateFirstInputDelay=function(e){return e.cancelable&&e.isTrusted?{name:"FID",value:(e.timeStamp>1e12?Date.now():performance.now())-e.timeStamp,entries:[{duration:0,entryType:"first-input",startTime:e.timeStamp}]}:null},n.prototype.calculateFirstInteractionTime=function(e){return e>1e12?e-performance.timing.navigationStart:e},n}();(function(){window===window.top&&(performance.mark("sk_loadHandlerStart"),window.SpeedKit=window.SpeedKit||{},SpeedKit.rumPlugins=[new Y,new X,new he,{on:function(n){setTimeout(n)},track:function(){var n=document.createElement("meta");n.httpEquiv="origin-trial",n.content="AwMRn8NmVpRqt5s2blBj1SwQXGQeNCrjI1qzXMMxFwlzAZgY3M+XnBkGij2AHxinFvAJLPTJK9mcvEubMBUG7QQAAACHeyJvcmlnaW4iOiJodHRwczovL2FwcC5iYXFlbmQuY29tOjQ0MyIsImZlYXR1cmUiOiJTb2Z0TmF2aWdhdGlvbkhldXJpc3RpY3MiLCJleHBpcnkiOjE3MTY5NDA3OTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9",document.head.append(n)}},{on:"domInteractive",track:function(n){var e=[];function t(){new PerformanceObserver(function(o){for(var a=o.getEntries(),s=0;s<a.length;s++)n.trackCustomEvent("soft-navigation-api",a[s].name,a[s].startTime)}).observe({type:"soft-navigation",buffered:!0,includeSoftNavigationObservations:!0})}function i(){new PerformanceObserver(function(o){var q,_;for(var a=o.getEntries(),s=0;s<a.length;s++){var c=[],u=a[s],l=performance.getEntriesByType("soft-navigation").filter(function(B){return B.navigationId===u.navigationId})[0],d=performance.getEntriesByType("navigation").filter(function(B){return B.navigationId===u.navigationId})[0],f=l||d,p=(q=f==null?void 0:f.startTime)!=null?q:-1;f||c.push("No nav entry"),(p<0||l&&l.startTime===0)&&c.push("Nav startTime is less 0"),(u.startTime<0||l&&u.startTime===0)&&c.push("LCP startTime is less 0"),u.startTime<p&&c.push("LCP startTime less then navigation start");var N;d&&p>=0?N=u.startTime>=0?u.startTime-p:performance.now()-p:l&&p>0&&(N=u.startTime>0&&u.startTime>=p?u.startTime-p:performance.now()-p),e.push({lcpStart:u.startTime,navStart:p,lcpTime:N,errors:c,attributedToSoftNavigation:!!l,lcpLocation:f==null?void 0:f.name,lcpNodeName:(_=u.element)==null?void 0:_.nodeName,lcpElementUrl:u.url})}}).observe({type:"largest-contentful-paint",buffered:!0,includeSoftNavigationObservations:!0})}function r(){if(e.length!==0){var o=e.slice(-1)[0];n.trackCustomEvent("soft-navigation-lcp",JSON.stringify(o),o.lcpTime),e.length=0}}document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&r()}),document.addEventListener("click",function(){setTimeout(function(){r()},0)});try{t(),i()}catch(o){}}},{on:"domInteractive",track:function(){performance.mark("sk_domInteractive"),addEventListener("click",function(){performance.measure("sk_timeToFirstClick","sk_domInteractive")},{once:!0})}},{on:function(n){setTimeout(n)},track:function(n){var e=["sk_"];try{var t=new PerformanceObserver(function(i){for(var r=i.getEntries(),o=0;o<r.length;o++){var a=r[o];e.some(function(s){return a.name.indexOf(s)!==-1})&&(n.reportCustomTimer(a.name+"-start",a.startTime),n.reportCustomTimer(a.name+"-duration",a.duration))}});t.observe({type:"measure",buffered:!0})}catch(i){}}},{on:"domInteractive",track:function(){document.querySelector('button[type="submit"]').setAttribute("data-sk-event","magical unicorns flying through the sky")}},{on:"click",track:function(n,e){var r;var t="data-sk-event",i=(r=e.element.closest("[".concat(t,"]")))==null?void 0:r.getAttribute(t);i&&n.trackCustomEvent("click",i)}}],performance.measure("sk_loadHandlerTime","sk_loadHandlerStart"))})();})(); (function(){(function(){window.speedKit={appName:"baqend-website-sk",sw:"/wrapper-sw.js?r=e867207d-107c-4a81-ae85-9214a729bd22&v=2.15.0",preloadDynamicBlocks:!1,rumTracking:{performanceOnly:!0},cookieLifetime:14,splitTestId:"90vs10",split:.9,whitelist:[{host:["www.speedkit.com"],contentType:["navigate","script","style","font"]},{url:["leadbooster-chat.pipedrive.com/assets/main.js","leadbooster-chat.pipedrive.com/assets/loader.js"]}],blacklist:[{pathname:[/[?&](_=1\d{12})/,"/warenkorb","/wunschliste","/password","/cf-bc-handler.html",/\.pdf/]}],stripQueryParams:[{params:["gclid","msclkid","utm_source","utm_campaign","utm_medium","utm_content","utm_term","utm-source","utm-campaign","utm-medium","utm-content","utm-term","gclsrc","fbclid","ds_rl","dclid","cjid","campaign"]}]}})();})(); (function(){(function(h,v,E,a,ye,qt,Mt){"use strict";var F="baqend-speedkit",K=F+"-user-id",Q=F+"-session-id",ae=F+"-session-index",se=F+"-session-timestamp";function Se(e,t,n,i){return Promise.resolve(e).then(function(r){return new Promise(function(o,s){var c=r.transaction(t,n),f=Promise.resolve(i(c.objectStore(t)));c.oncomplete=function(){return f.then(o)},c.onabort=c.onerror=function(){return s(c.error)}})})}function be(e,t,n){return Se(e,t,"readwrite",n)}function ce(e,t){return t&&t!=="/"?""+(t.lastIndexOf("/")===t.length-1?t.substr(0,t.length-1):t)+((e.indexOf("/")===0?"":"/")+e):e}var ue=function(){function e(t){this.dbp=null,this.cacheName=ce(F,t),this.dbp=this.openDb()}return e.prototype.get=function(t){return(n=this.db(),i="baqend-speedkit-store",r=function(o){return o.get(t)},Se(n,i,"readonly",r)).then(function(o){return o.result||null});var n,i,r},e.prototype.set=function(t,n){return be(this.db(),"baqend-speedkit-store",function(i){return i.put(n,t)&&void 0})},e.prototype.clear=function(){return Promise.all([(t=this.db(),n="baqend-speedkit-store",be(t,n,function(i){return i.clear()}).then(function(){}))]).then(function(){});var t,n},e.prototype.disconnect=function(){var t=this;return this.dbp?this.dbp.then(function(n){t.dbp=null,n.close()}):Promise.resolve()},e.prototype.db=function(){return this.dbp||(this.dbp=this.openDb()),this.dbp},e.prototype.openDb=function(){var t=this,n=indexedDB.open(this.cacheName,1);return n.onupgradeneeded=function(i){var r=i.oldVersion,o=n.result;if(r<1){if(!o)return;try{o.createObjectStore("baqend-speedkit-store")}catch(s){}}},this.openRequest(n).then(function(i){return i.onclose=function(){t.dbp=null},i.onerror=function(){t.dbp=null},i.onversionchange=function(r){r.newVersion||(t.dbp=null,i.close())},i})},e.prototype.openRequest=function(t){return new Promise(function(n,i){t.onsuccess=function(){return n(t.result)},t.onerror=function(){return i(t.error)},t.onblocked=function(){return i(t.error)}})},e}();(function(){function e(){this.map=new Map}e.prototype.get=function(t){return Promise.resolve(this.map.get(t)||null)},e.prototype.set=function(t,n){return this.map.set(t,n),Promise.resolve()},e.prototype.clear=function(){return this.map.clear(),Promise.resolve()}})();function Z(e){h.readyState!=="complete"?window.addEventListener("load",function(){return e()}):e()}var et=1e5;function we(e,t){var n=function(c,f){f===void 0&&(f=et);var l=JSON.stringify(c),u=l.length;if(u<=f)return[c,l];var p=[],d=[];Object.keys(c).forEach(function(m){var g=JSON.stringify(c[m]);p.push({name:m,size:g.length})}),p.sort(function(m,g){return g.size-m.size});for(var S=0;u>f&&p[S];)delete c[p[S].name],u-=p[S].size,d.push(p[S].name),S+=1;return c.truncatedKeys=d,[c,JSON.stringify(c)]}(t),i=n[0],r=n[1];try{if(v.sendBeacon&&v.sendBeacon(e,r))return}catch(c){}i.xhrFallback=!0;var o=JSON.stringify(i),s=new XMLHttpRequest;s.open("POST",e,!0),s.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),s.send(o)}function Te(e,t){return!(Array.isArray(e)&&!Array.isArray(t)||!Array.isArray(e)&&Array.isArray(t))&&typeof e==typeof t&&(Array.isArray(e)?e.length===t.length:typeof e=="object"?function(n,i){var r=0,o=0;for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&(r+=1,!Te(n[s],i[s])))return!1;for(var s in i)o+=1;return r===o}(e,t):e===t)}function $(e){h.readyState==="loading"?h.addEventListener("DOMContentLoaded",function(){return e()}):setTimeout(e,0)}function tt(e){h.querySelector("html.speed-kit-dynamic-loaded")?setTimeout(e,0):h.addEventListener("speed-kit-loaded",function(){return e()})}var nt=function(){function e(){this.dataLayerObservers=[]}return e.prototype.onDataLayer=function(t){if(!this.dataLayerObservers.length){var n=this.dataLayerObservers;this.observeDataLayer(function(){for(var i=function(f){var l=r;setTimeout(function(){f.apply({},l)},0)},r=arguments,o=0,s=n;o<s.length;o++){var c=s[o];i(c)}})}this.dataLayerObservers.push(t)},e.prototype.onDataLayerReady=function(t){this.waitForDataLayer(t)},e.prototype.observeDataLayer=function(t){$(this.initDataLayer.bind(this,t))},e.prototype.initDataLayer=function(){var t=arguments[0];this.waitForDataLayer(function(){var n=window.dataLayer,i=n.push;n.push=function(){var s=Array.prototype.slice.call(arguments),c=i.apply(n,s);return t.apply(n,s),c};for(var r=0;r<n.length;r+=1)t.call(n,n[r])})},e.prototype.waitForDataLayer=function(t){var n=this;window.dataLayer?t():setTimeout(function(){n.waitForDataLayer(t)},500)},e}();function V(e){return e===void 0&&(e=25),function(t){var n=[];n.length=t;for(var i=0;i<t;)n[i]=0,i+=1;return n}(e).map(function(){return Math.floor(62*Math.random())}).map(function(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"[t]}).join("")}function W(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={};return e.forEach(function(i){Object.keys(i).forEach(function(r){return n[r]=i[r]})}),n}var it={performanceOnly:!1,stripAllParameter:!1,noCookies:!1,noTracking:!1,pageDisabled:!1};function D(){var e=W({},it);return a.rumTracking?typeof a.rumTracking=="boolean"?e:W(e,a.rumTracking):W(e,{noTracking:!0})}function U(e){var t=null;if(typeof Storage!="undefined")try{t=localStorage.getItem(e)}catch(n){}return t}function de(e){e===void 0&&(e=!0);var t,n=e?V():"",i=0;if((t=U(se))&&(Date.now()-parseInt(t,10))/1e3<=1800){n=U(Q);var r=""+(U(ae)||-1);i=parseInt(r,10)+1}return[n,i]}function ee(e,t){if((a.cookieLifetime===void 0||!D().performanceOnly)&&typeof Storage!="undefined")try{localStorage.setItem(e,t)}catch(n){}}var k,rt=[K,"baqend-speedkit-config"];function le(){return!(U("baqend-speedkit-sk-opt-out")!=="1"&&!window.deactivateSpeedKit)}function G(e,t){if(!(le()||(ee(e,t),D().noCookies||rt.indexOf(e)<0))){var n=a.cookieLifetime||180,i=new Date(Date.now()+24*n*60*60*1e3).toUTCString();try{h.cookie=e+"="+t+"; expires="+i+"; path=/; SameSite=Lax; Secure"}catch(r){}}}function x(e,t){t===void 0&&(t=!0);var n=U(e),i=function(o){try{var s=new RegExp(o+"=([^,;]*)"),c=h.cookie.match(s);return c&&c[1]?c[1]:null}catch(f){}return null}(e),r=n||i;return r&&n!==i&&t&&G(e,r),r}function ke(e){return e===void 0&&(e=!0),x(K,e)||V()}function pe(e){return"reason"in e}function C(e,t){(function(){if(!(window.SpeedKit&&window.SpeedKit.track)){var o=D(),s=!(o.noTracking||o.performanceOnly);if(window.SpeedKit=window.SpeedKit||{},window.SpeedKit.navigateId=window.SpeedKit.navigateId||""+V(32),window.SpeedKit.group=window.SpeedKit.group||"sk",window.SpeedKit.track=ot,!window.SpeedKit.sessionId&&s){var c=de(),f=c[0],l=c[1];window.SpeedKit.sessionId=f,window.SpeedKit.sessionIndex=l}s&&(window.SpeedKit.userId=window.SpeedKit.userId||ke())}})();var n={timestamp:Date.now(),type:t,message:"Install.js",stackTrace:"null"};if(function(o){return!!o&&("reason"in o||"message"in o)}(e)){var i=pe(e)?e.reason.message||JSON.stringify(e.reason):e.message,r=pe(e)?e.reason.stack:e.stack;n.message="Install.js: "+i,n.stackTrace=r||"null"}(function(o){Ie("jsErrors",[o])})(n)}function ot(e,t,n){Ie("events",[{action:""+e,label:""+t,value:isNaN(Number(n))?0:Number(n)}])}function Ie(e,t){var n=D();if(!n.noTracking){var i={sessionId:SpeedKit.sessionId,userId:SpeedKit.userId},r={piId:SpeedKit.navigateId,testGroup:SpeedKit.group};r[e]=t;var o=n.performanceOnly?r:W(r,i);we("https://"+(a.appDomain||"{}.app.baqend.com".replace("{}",a.appName))+"/v1/rum/pi",o)}}(function(e){e.SNIPPET="snippet",e.CONFIG="skConfig",e.RUMPLUGIN="rum",e.JSTRACKINGPLUGIN="js",e.DFCONFIG="dfConfig",e.MERGE="merge",e.CHANGEDETECTION="cd",e.DYNAMICFETCHER="df",e.MAINNOTMERGED="mainNotMerged"})(k||(k={}));var at=function(){function e(t){this.rumController=t,this.triggerFunctions={domInteractive:this.rumController.onDOMInteractive,load:this.rumController.onLoad,speedKitLoaded:this.rumController.onSpeedKitLoaded,dataLayer:this.rumController.onDataLayer.bind(this.rumController),dataLayerReady:this.rumController.onDataLayerReady.bind(this.rumController),visibilityHidden:this.rumController.onVisibilityHidden,dfDataReady:this.rumController.onDfDataReady,leavePage:this.rumController.onLeavePage.bind(this.rumController),gaReady:this.rumController.onGaReady.bind(this.rumController),gaTracking:this.rumController.onGaTracking.bind(this.rumController),click:this.rumController.onClick,nextTick:this.rumController.onNextTick}}return e.prototype.initPlugin=function(t){if(t.shouldExecute)try{if(!t.shouldExecute())return}catch(i){C(i,k.RUMPLUGIN)}t.type||(t.type="Data"),typeof t.on=="string"?t.on=this.triggerFunctions[t.on]||this.getUnknownTriggerFunction(t.on):t.on=t.on||function(i){return i()};var n=this.generateCallbackFunction(t);try{t.on(n,this.rumController)}catch(i){C(i,k.RUMPLUGIN)}},e.prototype.generateCallbackFunction=function(t){var n=this;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(t.track){var o=[n.rumController].concat(i);try{t.track.apply(t,o)}catch(l){C(l,k.RUMPLUGIN)}}else if(t.key&&(t.set||t.append||t.setTiming)){var s,c=n.getControllerFunction(t),f=n.getTrackingFunction(t);try{s=f.apply(t,i)}catch(l){C(l,k.RUMPLUGIN)}s!=null&&c.call(n.rumController,t.key,s)}}},e.prototype.getControllerFunction=function(t){return t.setTiming?this.rumController.setTiming:t.set?this.rumController.set:this.rumController.append},e.prototype.getTrackingFunction=function(t){return t.setTiming||t.set||t.append},e.prototype.getUnknownTriggerFunction=function(t){var n=this,i=function(r){n.resolvePluginVariable(t)!==null?r():setTimeout(function(){return i(r)},200)};return i},e.prototype.resolvePluginVariable=function(t){for(var n=t.replace(/\[(\w+)\]/g,".$1"),i=(n=n.replace(/^\./,"")).split("."),r=window,o=0,s=i;o<s.length;o++){var c=s[o];if(typeof r!="object"||r==null)break;r=r[c]}return r||null},e}();function st(e){h.addEventListener("visibilitychange",function(){h.visibilityState==="hidden"&&e()},!0)}function ct(e){SpeedKit&&SpeedKit.dynamicBlocks&&SpeedKit.dynamicBlocks.complete&&SpeedKit.dynamicBlocks.dataComplete||!h.querySelector("html.speed-kit-dynamic-loading")?setTimeout(e,0):h.addEventListener("dynamic-fetcher-data-ready",function(){return e()})}var O,ut=function(){function e(){this.callbacks=[],this.unloaded=!1}return e.prototype.init=function(){var t=this;h.addEventListener("visibilitychange",function(){h.visibilityState==="hidden"?t.prepareBeforeLeaving("visibilityChange"):h.visibilityState==="visible"&&(t.unloaded=!1)}),"onpagehide"in window?window.addEventListener("pagehide",function(){return t.prepareBeforeLeaving("pagehide")}):(window.addEventListener("beforeunload",function(){return t.prepareBeforeLeaving("beforeunload")}),window.addEventListener("unload",function(){return t.prepareBeforeLeaving("unload")}))},e.prototype.onLeavePage=function(t){this.callbacks.push(t)},e.prototype.executeRemainingCallbacks=function(){if(!this.unloaded)for(var t=0,n=this.callbacks;t<n.length;t++)(0,n[t])()},e.prototype.prepareBeforeLeaving=function(t){var n=SpeedKit;this.executeRemainingCallbacks(),j(n,t),this.unloaded=!0},e.prototype.isUnloaded=function(){return this.unloaded},e}(),dt=function(){function e(){this.gaObserver=[]}return e.prototype.onGaTracking=function(t){if(!this.gaObserver.length){var n=this.gaObserver;this.observeGa(function(){for(var i=0,r=n;i<r.length;i++){var o=r[i];o.apply({},arguments)}})}this.gaObserver.push(t)},e.prototype.onGaReady=function(t){$(this.waitForGa.bind(this,t))},e.prototype.observeGa=function(t){$(this.initGa.bind(this,t))},e.prototype.initGa=function(){var t=this,n=arguments[0];this.waitForGa(function(){window.ga.getAll().forEach(function(i){var r=i.get("sendHitTask");i.set("sendHitTask",function(o){r.call(t,o),n.call(t,o)})})})},e.prototype.waitForGa=function(t){var n=this,i=window.ga;i?i(function(){return t()}):setTimeout(function(){return n.waitForGa(t)},500)},e}();function lt(e){return e.className.includes("animVal")?e.className.animVal:e.className}function pt(e){return e.getAttribute("formAction")||e.getAttribute("action")||e.getAttribute("href")||e.getAttribute("src")||e.getAttribute("code")||e.getAttribute("codebase")||""}function ft(e){window.addEventListener("click",function(t){if(t.isTrusted){var n,i=t.target;i&&e({element:n=i,elementClasses:lt(n),elementId:n.getAttribute("for")||n.id||"",elementTarget:n.getAttribute("formTarget")||n.getAttribute("target")||"",elementUrl:pt(n)})}},{passive:!0,capture:!0})}function gt(e){setTimeout(e,0)}(function(e){e.Override="override",e.Append="append",e.Force="force",e.Once="once"})(O||(O={}));var T,Ce,Ne,J,z,P,te,R,vt=function(){function e(t,n,i){this.beaconIndex=0,this.sendingScheduled=!1,this.init=this.getInit(t,n),this.sentTracking=Object.create(this.init),this.unsentTracking={},this.customTimers={},this.shouldTrackPI=i,this.dataLayerHandler=new nt,this.leavePageHandler=new ut,this.gATrackingHandler=new dt,this.customDimensions=[{name:"customPiDimensions",type:"PiDimension",dimensionData:{}},{name:"customSessionDimensions",type:"SessionDimension",dimensionData:{}}],this.onDOMInteractive=$,this.onLoad=Z,this.onSpeedKitLoaded=tt,this.onGaReady=this.gATrackingHandler.onGaReady.bind(this.gATrackingHandler),this.onGaTracking=this.gATrackingHandler.onGaTracking.bind(this.gATrackingHandler),this.onDataLayer=this.dataLayerHandler.onDataLayer.bind(this.dataLayerHandler),this.onDataLayerReady=this.dataLayerHandler.onDataLayerReady.bind(this.dataLayerHandler),this.onDfDataReady=ct,this.onVisibilityHidden=st,this.onLeavePage=this.leavePageHandler.onLeavePage.bind(this.leavePageHandler),this.onClick=ft,this.onNextTick=gt,this.pluginHandler=new at(this)}return e.prototype.initializePlugins=function(){var t=this.getPlugins();this.initCustomTimerData(t),this.initCustomDimensionData(t),t.forEach(this.pluginHandler.initPlugin,this.pluginHandler),this.leavePageHandler.init()},e.prototype.reinitialize=function(t,n){this.init=this.getInit(t,n),this.sentTracking=Object.create(this.init),this.unsentTracking={},this.beaconIndex=0;var i=!D().pageDisabled&&a.group!=="B";this.shouldTrackPI=i},e.prototype.reportEvent=function(t,n,i,r){if(!(n===void 0||n<0)&&(this.reportTracking(t,n),r!==void 0&&i)){var o=r-n;if(o<0)return;this.reportTracking(i,o)}},e.prototype.sendCurrentTracking=function(t){if((t||!(this.beaconIndex>=100))&&!D().noTracking){var n=this.getUnsentTracking();if(n){t&&(n.unloadType=t);var i="";n.beaconIndex===0&&(i="?pi=1"+(this.shouldTrackPI?"&bqpi=1":"")),this.shouldTrackPI=!1,we(a.appURL+"/rum/pi"+i,n)}}},e.prototype.updateBaseDimension=function(t,n){this.init[t]=n},e.prototype.trackCustomEvent=function(t,n,i,r){r===void 0&&(r=!0);var o={action:""+t,label:""+n,value:isNaN(Number(i))?0:Number(i)};this.reportTracking("events",o,O.Append),r&&this.sendCollapsed()},e.prototype.set=function(t,n,i,r){var o;i===void 0&&(i=!0),r===void 0&&(r=!1),o=typeof r=="boolean"?r?O.Force:O.Override:r;var s=this.reportTracking(t,n,o);return i&&this.sendCollapsed(),s},e.prototype.setTiming=function(t,n,i,r){return i===void 0&&(i=!0),r===void 0&&(r=!1),typeof n=="number"?this.set(t,n-this.init.navigationStart,i,r):this.set(t,n,i,r)},e.prototype.append=function(t,n,i){i===void 0&&(i=!0),this.reportTracking(t,n,O.Append),i&&this.sendCollapsed()},e.prototype.getBeaconIndex=function(){return this.beaconIndex},e.prototype.calculateRelative=function(t){if(t!==void 0)return t-this.init.navigationStart},e.prototype.reportTracking=function(t,n,i){if(i===void 0&&(i=O.Override),n==null||n==="")return!1;var r=this.customDimensions.filter(function(f){return f.dimensionData.hasOwnProperty(t)})[0];if(r)return this.reportCustomDimension(t,n,r.type);if(this.customTimers.hasOwnProperty(t))return this.reportCustomTimer(t,n);if(i===O.Append){var o=Array.isArray(n)?n:[n],s=this.unsentTracking[t]!==void 0?this.unsentTracking[t]:[],c=Array.isArray(s)?s:[s];return this.unsentTracking[t]=c.concat(o),!0}return!(!Array.isArray(n)&&Te(n,this.sentTracking[t])&&i!==O.Force)&&(!this.sentTracking.hasOwnProperty(t)||i!==O.Once)&&(this.unsentTracking[t]=n,!0)},e.prototype.reportCustomDimension=function(t,n,i){var r=typeof n=="string"?n:JSON.stringify(n),o=this.customDimensions.filter(function(c){return c.type===i})[0];if(!o||o.dimensionData[t]&&o.dimensionData[t]!=="null")return!1;o.dimensionData[t]=r;var s=this.unsentTracking[o.name]||{};return s[t]=r,this.unsentTracking[o.name]=s,!0},e.prototype.reportCustomTimer=function(t,n){if(typeof n!="number"||this.customTimers[t]&&this.customTimers[t]!==-1)return!1;this.customTimers[t]=n;var i=this.unsentTracking.customTimers||{};return i[t]=n,this.unsentTracking.customTimers=i,!0},e.prototype.getPlugins=function(){return window.SpeedKit&&window.SpeedKit.rumPlugins?window.SpeedKit.rumPlugins:[]},e.prototype.initCustomDimensionData=function(t){var n=this;t.forEach(function(i){i.key&&(n.customDimensions.every(function(r){return r.type!==i.type})||n.reportCustomDimension(i.key,"null",i.type))})},e.prototype.initCustomTimerData=function(t){var n=this;t.forEach(function(i){i.key&&i.type==="CustomTimer"&&(n.customTimers[i.key]=-1)})},e.prototype.getUnsentTracking=function(){if(Object.keys(this.unsentTracking).length===0)return null;var t=Object.create(null);for(var n in this.init)Object.prototype.hasOwnProperty.call(this.init,n)&&(t[n]=this.init[n]);for(var n in t.beaconIndex=this.beaconIndex,this.unsentTracking)Object.prototype.hasOwnProperty.call(this.unsentTracking,n)&&(t[n]=this.unsentTracking[n],this.sentTracking[n]=this.unsentTracking[n]);return this.unsentTracking=Object.create(null),this.beaconIndex+=1,t},e.prototype.sendCollapsed=function(){var t=this;this.leavePageHandler.isUnloaded()?this.sendCurrentTracking():this.sendingScheduled||(this.sendingScheduled=!0,setTimeout(function(){t.sendingScheduled=!1,t.sendCurrentTracking()},100))},e.prototype.getInit=function(t,n){return D().performanceOnly?t:W(t,n)},e}();function Pe(e){return parseFloat((1-e).toFixed(2))}function fe(){var e=v.userAgent;return e.indexOf("Safari")>-1&&e.indexOf("Edge")===-1&&e.indexOf("Chrome")===-1}function Ee(){return!fe()&&typeof PerformanceNavigationTiming!="undefined"&&!!performance.getEntriesByType}function De(){var e=performance.navigation;if(!Ee())return Oe(e.type);var t=performance.getEntriesByType("navigation");return t[0]&&"toJSON"in t[0]?z[t[0].type]:Oe(e.type)}function Oe(e){return typeof e!="number"?z[e]:e}function ne(){return window.performance?performance.timing.navigationStart||Math.trunc(performance.timeOrigin):0}function Le(e){var t=function(){var f=window.performance.timing;if(!Ee())return f;var l=performance.getEntriesByType("navigation");return l[0]&&"toJSON"in l[0]?l[0].toJSON():f}(),n=window.performance.timing,i="entryType"in t,r={};for(var o in t)if(typeof t[o]=="number"){var s=t[o]!==0,c=n&&(typeof n[o]!="number"||n[o]!==0);s||c?i?r[o]=Math.trunc(t[o]):t[o]>=e&&(r[o]=t[o]-e):r[o]=-1}else r[o]=t[o];return r.navigationStart=e,r.domLoading=n.domLoading-e,r.ttfb=i?r.responseStart:n.domLoading-e,r}function ht(e,t){var n,i,r;e.controllingServiceWorker&&t.set("controllingSw",e.controllingServiceWorker,!1),e.lastNavigate.applicationState&&t.set("applicationState",e.lastNavigate.applicationState,!1),e.lastNavigate.responseCause!==T.Unknown&&t.set("responseCause",e.lastNavigate.responseCause,!1)&&t.set("responseSource",e.lastNavigate.responseSource,!1,!0),e.lastNavigate.disconnectCause!==J.None&&e.lastNavigate.disconnectCause!==J.DashboardDisabled&&t.set("disconnectCause",e.lastNavigate.disconnectCause,!1),typeof e.split=="number"&&t.set("split",(n=e.group,i=e.split,r=n==="A"&&typeof a.secondarySplit=="number"?a.secondaryGroup==="B"?Pe(a.secondarySplit):a.secondarySplit:1,i*r),!1),e.readyState==="complete"&&e.lastNavigate.splitTestId!==e.splitTestId&&t.set("actualTestId",""+e.lastNavigate.splitTestId,!1),e.readyState==="complete"&&e.lastNavigate.group!==e.group&&t.set("actualTestGroup",""+e.lastNavigate.group,!1)}function j(e,t){var n,i=e.rumController,r=!!a.secondaryGroup,o=e.lastNavigate.responseCause===T.BfCache,s=r?e.splitTestId+"-"+a.secondaryTestId:e.splitTestId,c=function(){if(D().stripAllParameter)return location.href.replace(/\?.*/,"?redacted");if(D().stripParameters){var u=new URL(location.href);return D().stripParameters.forEach(function(p,d){var S=new URL(location.href).searchParams.get(p)||"",m=S.length?p+"="+S:p;u.search=u.search.replace(new RegExp("(\\?|&)"+m),"$1redacted-"+d)}),u.href}return location.href}();r&&i.updateBaseDimension("testGroup",a.group+"-"+a.secondaryGroup);var f=D().performanceOnly?0:e.sessionIndex;i.set("sessionIndex",f,!1);var l=ne();i.reportEvent("snippetExecution",e.executionTime-l),i.set("url",c,!1,O.Once),i.set("userAgent",v.userAgent,!1),i.set("referrer",h.referrer,!1),i.set("testId",s||"None",!1),i.set("responseSource",e.lastNavigate.responseSource,!1),i.set("assetTTFB",e.lastNavigate.assetTTFB,!1),i.set("originTTFB",e.lastNavigate.originTTFB,!1),i.set("assetSource",e.lastNavigate.assetSource,!1),i.set("assetCause",e.lastNavigate.assetCause,!1),i.set("firstLoad",e.lastNavigate.firstLoad,!1),i.set("disabled",e.disabled,!1),i.set("swSupported",e.swSupported,!1),i.set("skSupported",e.skSupported,!1),i.set("redirectList",(n=e.lastNavigate.redirectList)===null||n===void 0?void 0:n.map(function(u){return u.url}),!1,O.Once),i.set("screenResolution",e.screenResolution,!1,O.Once),i.set("documentVisible",h.visibilityState==="visible",!1,O.Once),i.set("variation",e.lastNavigate.variation,!1),i.set("pageTypeEnabled",e.pageTypeEnabled,!1,O.Once),ht(e,i),typeof window.performance===void 0||o||(function(u){var p=ne(),d=Le(p);u.set("navigationStart",p,!1),u.set("secureConnectDuration",d.secureConnectionStart>=0&&d.connectEnd>=0?d.connectEnd-d.secureConnectionStart:-1,!1),u.reportEvent("unload",d.unloadEventStart,"unloadDuration",d.unloadEventEnd),u.reportEvent("domainLookup",d.domainLookupStart,"domainLookupDuration",d.domainLookupEnd),u.reportEvent("connect",d.connectStart,"connectDuration",d.connectEnd),u.reportEvent("redirect",d.redirectStart,"redirectDuration",d.redirectEnd),u.reportEvent("response",d.responseStart,"responseDuration",d.responseEnd),u.reportEvent("load",d.loadEventStart,"loadDuration",d.loadEventEnd),u.reportEvent("domContentLoaded",d.domContentLoadedEventStart,"domContentLoadedDuration",d.domContentLoadedEventEnd),u.reportEvent("request",d.requestStart),u.reportEvent("fetch",d.fetchStart),u.reportEvent("ttfb",d.ttfb),u.reportEvent("domComplete",d.domComplete),u.reportEvent("domInteractive",d.domInteractive),u.reportEvent("workerStart",d.workerStart)}(i),function(u){var p=De();p!==void 0&&u.set("navigationType",p,!1)}(i),function(u){if(typeof PerformancePaintTiming!="undefined"&&window.performance.getEntriesByType){var p=performance.getEntriesByType("paint");if(p&&p.length){var d=p.find(function(g){return g.name==="first-paint"}),S=p.find(function(g){return g.name==="first-contentful-paint"});u.set("firstPaint",d?Math.round(d.startTime):-1,!1),u.set("firstContentfulPaint",S?Math.round(S.startTime):-1,!1)}}else if(window.performance!==void 0){var m=performance.timing.msFirstPaint;m&&(u.setTiming("firstPaint",m,!1),u.setTiming("firstContentfulPaint",m,!1))}}(i)),o||(function(u,p){u.lastNavigate.cdnBackendTime&&p.set("cdnBackendTime",u.lastNavigate.cdnBackendTime,!1),u.lastNavigate.cdnPoP&&p.set("cdnPop",""+u.lastNavigate.cdnPoP,!1)}(e,i),function(u,p){var d=u.lastNavigate?u.lastNavigate.timings:null;d&&(p.setTiming("speedKitFetchEvent",d.eventStart,!1),p.setTiming("speedKitHandle",d.handleStart,!1),p.setTiming("speedKitBlacklistHandler",d.blacklistHandler,!1),p.setTiming("speedKitDisabledPageHandler",d.disabledPageHandler,!1),d.handleStart!==void 0&&d.handleEnd!==void 0&&p.set("speedKitHandleDuration",d.handleEnd-d.handleStart,!1),d.cacheStart!==void 0&&d.cacheEnd!==void 0&&p.reportEvent("speedKitCacheLookup",d.cacheStart-d.handleStart,"speedKitCacheLookupDuration",d.cacheEnd-d.handleStart),d.fetchStart!==void 0&&d.fetchEnd!==void 0&&p.reportEvent("speedKitFetchCall",d.fetchStart-d.handleStart,"speedKitFetchCallDuration",d.fetchEnd-d.handleStart))}(e,i)),t?i.sendCurrentTracking(t):i.sendCollapsed()}function M(){return!!h.querySelector(".speed-kit-dynamic-loading,.speed-kit-dynamic-loaded")}function mt(e){var t,n=!1,i=!1,r=function(){n&&i&&j(e)};Z(function(){setTimeout(function(){n=!0,r()})}),function(o,s){o.readyState!=="complete"?window.addEventListener("speed-kit-completed",s,{once:!0}):s()}(e,function(){i=!0,r()}),t=function(){r()},typeof PerformancePaintTiming!="undefined"&&window.performance.getEntriesByType&&performance.getEntriesByType("paint").length>0||typeof PerformanceObserver=="undefined"||typeof PerformancePaintTiming=="undefined"?t():new PerformanceObserver(t).observe({entryTypes:["paint"]}),window.addEventListener("pageshow",function(o){if(o.persisted){var s=de(),c=s[0],f=s[1];SpeedKit.navigateId=""+V(32),SpeedKit.lastNavigate.responseCause=T.BfCache,SpeedKit.lastNavigate.responseSource=M()?P.AssetAPI:P.Origin,SpeedKit.sessionIndex=f,SpeedKit.executionTime=Date.now();var l=performance.timing.navigationStart||performance.timeOrigin,u={sessionId:c,userId:SpeedKit.userId},p={navigationStart:l,testGroup:SpeedKit.group,piId:SpeedKit.navigateId};SpeedKit.rumController.reinitialize(p,u),j(SpeedKit)}})}function _(e){e.readyState!=="complete"&&setTimeout(function(){var t,n,i,r;e.readyState="complete",t="speed-kit-completed",n=window,i===void 0&&(i={}),typeof CustomEvent=="function"?r=new CustomEvent(t,{detail:i}):(r=h.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,i),n.dispatchEvent(r)})}function Ae(e,t,n,i){i===void 0&&(i=1e3);var r=!1;return n&&setTimeout(function(){return r?null:n()},i),new Promise(function(o,s){var c=new MessageChannel,f=c.port1,l=c.port2;f.onmessage=function(u){r=!0,o(u.data)},f.onmessageerror=function(u){return s(u.data)},e.postMessage(t,[l])})}function yt(e,t){Ae(e,{type:"get-navigate-info",clientURL:location.href},function(){t.lastNavigate.responseSource=M()?P.AssetAPI:P.Origin,t.lastNavigate.responseCause=T.NoSwResponse,_(t)}).catch(function(n){return C(n,k.SNIPPET),null}).then(function(n){(function(i,r){if(!(!r||"wasCacheHit"in r)){if("reason"in r)return i.lastNavigate.applicationState=r.applicationState,i.lastNavigate.errorMessage=r.reason,void(r.applicationState===te.FAILED&&(i.lastNavigate.responseCause=T.SwFailed));r.firstLoad=i.lastNavigate.firstLoad;var o=r.responseSource===P.Origin,s=[T.NoMatchingNavigate,T.SwBooting,T.NoNavigate,T.Unknown].includes(r.responseCause);r.assetSource||r.assetCause||r.assetTTFB||(r.assetSource=i.lastNavigate.assetSource,r.assetCause=i.lastNavigate.assetCause,r.assetTTFB=i.lastNavigate.assetTTFB),r.originTTFB||(r.originTTFB=i.lastNavigate.originTTFB),i.lastNavigate=r,i.lastNavigate.applicationState=r.applicationState,i.lastNavigate.responseCause=r.responseCause,o&&M()&&(i.lastNavigate.responseSource=s?P.AssetAPI:P.SDN),i.lastNavigate.originStatus=r.originStatus,i.lastNavigate.disconnectCause=r.disconnectCause,i.lastNavigate.assetTTFB=r.assetTTFB}})(t,n),_(t)})}function St(e){return fetch(a.appURL+"/config/VAPIDPublicKey").then(function(t){return t.arrayBuffer()}).then(function(t){return{applicationServerKey:t,userVisibleOnly:!0}}).then(function(t){return e.subscribe(t)}).then(function(t){var n={subscription:t,devicetype:"WebPush"};return fetch(a.appURL+"/db/Device/register",{method:"POST",credentials:"include",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}})}).then(function(t){return t.status===200},function(){return!1})}function bt(){return"Notification"in window?Notification.requestPermission().then(function(e){return e==="denied"?"denied":e!=="granted"?"undecided":v[E].ready.then(function(t){var n=t.pushManager;return function(i){return i.getSubscription().then(function(r){return!!r})}(n).then(function(i){return!!i||St(n)})}).then(function(t){return t?"registered":"unregistered"})}):Promise.resolve("unsupported")}function Re(e){var t=v[E];if(t)return t.ready.then(function(n){var i;if(n.active&&n.active.state==="activated")return n.active.postMessage(e);(i=n.active)===null||i===void 0||i.addEventListener("statechange",function(){var r;((r=n.active)===null||r===void 0?void 0:r.state)==="activated"&&n.active.postMessage(e)})})}function Fe(e){return e&&new URL(e,location.origin).pathname}function ge(e){var t;(t=Re({type:"update-device",data:e}))===null||t===void 0||t.catch(function(n){return C(n,k.SNIPPET)});try{(function(n){if(a.group!=="B"){var i=Fe(a.scope),r=v.userAgent,o=new ue(i);o.set("/com.baqend.speedkit.device",{device:n,userAgent:r}).catch(function(s){return C(s,k.SNIPPET)}).then(function(){return o.disconnect().catch(function(s){return C(s,k.SNIPPET)})})}})(e)}catch(n){C(n,k.SNIPPET)}}function wt(e){var t=v[E].controller;t&&t.postMessage({type:"bypass-deactivation",data:e})}function Tt(){var e=v[E];e&&e.controller&&e.controller.postMessage({type:"connect"})}function kt(){var e=v[E];e&&e.controller&&e.controller.postMessage({type:"disconnect"})}function It(){var e=U("baqend-speedkit-hashing-salt");if(e)return e;var t=function(){for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i="",r=0;r<32;r+=1)i+=n.charAt(Math.floor(Math.random()*n.length));return i}();return ee("baqend-speedkit-hashing-salt",t),t}function Ct(e){return function(t,n){for(var i="",r=0;r<t.length;r+=1){var o=r%n.length;i+=(t.charCodeAt(r)^n.charCodeAt(o)).toString(32)}return i}(e,It())}function Nt(e){var t=v[E].controller;t&&t.postMessage({type:"offline",data:e})}function Be(){var e=v[E].controller;e&&e.postMessage({type:"fetch-bloom-filter",data:!0})}function X(){return a.disabled||a.enabled===!1}function xe(e){return e===T.SkUnsupported}function Y(e){var t;(t=Re({event:e,type:"send-cookies",data:h.cookie}))===null||t===void 0||t.catch(function(n){return C(n,k.SNIPPET)})}function Ke(e,t,n){return!!v[E]&&!!v[E].getRegistrations&&function(i,r,o){return i==="Safari"?r!==15||o>=2:i==="Chrome"?r>=61:i!=="Firefox"||r!==59}(e,t,n)}function Ue(){return v.userAgent.toLowerCase().indexOf("wv)")>-1}function Ge(e){var t=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)\.?(\d+)?/i)||[],n=null;if(/trident/i.test(t[1]))return n=/\brv[ :]+(\d+)\.?(\d+)?/g.exec(e)||[],["IE",parseInt(n[1],10)||0,parseInt(n[2],10)||0];var i=function(o){if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*?Version)/.test(o)){var s=o.match(/(OS |os |OS)(\d+)_?(\d+)?/i)||[];return[/\b(crios)\/(\d+)/i.test(o)?"Safari":"SafariWebView",parseInt(s[2],10)||0,parseInt(s[3],10)||0]}return null}(e)||function(o,s){if(s[1]==="Chrome"){var c=null;if((c=o.match(/\bEdg\/(\d+)\.?(\d+)?/)||o.match(/\bEdge\/(\d+)\.?(\d+)?/))!=null)return["Edge",parseInt(c[1],10),parseInt(c[2],10)||0];if((c=o.match(/\bOPR\/(\d+)\.?(\d+)?/))!=null)return["Opera",parseInt(c[1],10),parseInt(c[2],10)||0]}return null}(e,t);if(i!==null)return i;var r=t[2]?[t[1],parseInt(t[2],10),parseInt(t[3],10)||0]:[v.appName,parseInt(v.appVersion,10),0];return e.indexOf("Android")===-1&&(n=e.match(/version\/(\d+)\.?(\d+)?/i))!=null&&(r.splice(1,1,parseInt(n[1],10)),r.splice(2,1,parseInt(n[2],10)||0)),r}function qe(){var e=Ge(v.userAgent);return e[0]==="SafariWebView"&&e[1]>=14}function Me(){return v.userAgent.indexOf("Edge")>=0}function He(e,t,n,i){i===void 0&&(i=!1);var r=!a.enableForWebViews&&(Ue()||qe());return Ke(e,t,n)&&!i&&!r&&!Me()}function Pt(e){return"regexp:/"+e.source+"/"+(e.flags||"")}function ie(e){return!!e.pathname&&function t(n,i){return i instanceof Array?i.some(function(r){return t(n,r)}):i instanceof RegExp?i.test(n):n.toLowerCase().startsWith(i.toLowerCase())}(location.pathname,e.pathname)}function Et(e,t){var n,i,r,o,s,c,f,l=a.group,u=window.SpeedKit||{},p=u.navigateId||""+V(32),d=ne(),S=t.userId,m=t.sessionId,g=t.sessionIndex,w=e.browser,b=e.browserVersion,I=e.minorVersion,L={navigationStart:d,testGroup:l,piId:p},N={userId:S,sessionId:m},y=(n=e.responseCause,i=!D().pageDisabled,(X()||xe(n))&&i&&a.group!=="B"),A=new vt(L,N,y),H=A.trackCustomEvent.bind(A),q={navigateId:p,userId:S,sessionId:m,sessionIndex:g,group:l,rumController:A,track:H,subscribe:bt,bypassDeactivation:wt,activate:Tt,deactivate:kt,split:typeof a.split=="number"?a.group==="B"?Pe(a.split):a.split:1,updateDevice:ge,getHash:Ct,simulateOfflineMode:Nt,fetchBloomFilter:Be,updateCookies:Y,disabled:!1,lastNavigate:e,readyState:"loading",splitTestId:a.splitTestId,controllingServiceWorker:Dt(),executionTime:Date.now(),swSupported:Ke(w,b,I),skSupported:He(w,b,I),screenResolution:{width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio},pageTypeEnabled:(r=!a.enabledSites||a.enabledSites.some(function(B){return ie(B)}),o=!!a.disabledSites&&a.disabledSites.some(function(B){return ie(B)}),s=r&&!o,c=!!a.blacklist&&a.blacklist.some(function(B){return ie(B)||!1}),f=!!a.whitelist&&a.whitelist.some(function(B){return ie(B)||!1}),s&&(!c||f))};return Object.keys(u).forEach(function(B){q[B]=u[B]}),window.SpeedKit=q,A.initializePlugins(),window.SpeedKit}function Dt(){return v.serviceWorker&&v.serviceWorker.controller?v.serviceWorker.controller.scriptURL:null}function re(e){if(typeof Storage!="undefined")try{localStorage.removeItem(e)}catch(t){}try{h.cookie=e+"=; expires="+new Date().toUTCString()+"; path=/; SameSite=lax; Secure"}catch(t){}}function je(e,t){if(t)return!0;var n=e.group,i=e.testId;return!(!i||i.indexOf("-debug")===-1)||n!=="A"}function Ve(){return U("baqend-speedkit-debug")==="true"}function We(e,t){var n=function(r,o){var s=o==="baqend-speedkit-secondary-config",c=function(l,u){var p=l.testId!=="undefined",d=l.group!=="undefined",S=u?a.secondaryTestId:a.splitTestId,m=p&&(g=l.testId,w=S,(g==null?void 0:g.replace("-debug",""))!==(w==null?void 0:w.replace("-debug",""))),g,w;if(d&&!m)return l.group;var b=u?a.secondaryGroup:a.group,I=u?a.secondarySplit:a.split;return function(L,N){return L===void 0?Math.random()<N?"A":"B":L}(b,I)}(r,s),f=s?a.secondaryTestId:a.splitTestId;return f&&(f=function(l){return Ve()?l.indexOf("-debug")>-1?l:l+"-debug":l.replace("-debug","")}(f)),{group:c,testId:f}}(e,t),i=t==="baqend-speedkit-secondary-config";return i?(a.secondaryGroup=n.group,a.secondaryTestId=n.testId):(a.group=n.group,a.splitTestId=n.testId),je(n,i?a.secondarySplit<1:a.split<1)?(function(r,o,s){c=s,f=encodeURIComponent(JSON.stringify(r)),l=encodeURIComponent(JSON.stringify(o)),l!==f&&l&&G(c,l);var c,f,l}(e,n,t),!0):(re(t),!1)}function Ot(e,t,n,i){var r=window.location.href,o=Ge(v.userAgent),s=o[0],c=o[1],f=o[2],l=function(p,d,S,m,g,w){var b=He(p,d,S,m),I=a.group==="B"||a.secondaryGroup==="B";return b?!I&&X()?[P.Origin,T.Disabled]:!g||!a.sdnSetup&&M()?!I&&w?[P.Origin,T.GroupChange]:v[E].controller?[M()?P.AssetAPI:P.Origin,T.Unknown]:[P.Origin,I?T.NonSKGroup:T.NoSwInstalled]:[P.Origin,T.FirstLoad]:[P.Origin,T.SkUnsupported]}(s,c,f,e,t,n.group==="B"||i.group==="B"),u=l[0];return{url:r,browser:s,firstLoad:t,browserVersion:c,minorVersion:f,responseCause:l[1],responseSource:u,cdnBackendTime:null,cdnPoP:null,splitTestId:n.testId,group:a.split!==void 0?n.group:a.group,disconnectCause:J.None}}function ve(e,t,n){return e.put(""+t,new Response(null,{status:200,statusText:(i=n,JSON.stringify(i,function(r,o){return o instanceof RegExp?Pt(o):o}))}));var i}function oe(){var e=new URL(a.sw||"/sw.js",location.origin);return e.origin+e.pathname}function Lt(e){var t=function(n){var i=n;if(a.includeServiceWorker){var r=n.indexOf("?")>=0?"&":"?";i+=r+"othersw="+a.includeServiceWorker}return i}(a.sw);return v[E].register(t,{scope:a.scope||"/"}).then(function(n){var i;i=!1,h.addEventListener("visibilitychange",function(){h.visibilityState==="hidden"?i||(i=!0,Y("visibilitychange")):i=!1}),window.addEventListener("pagehide",function(){i||(i=!0,Y("pagehide"))});var r=oe(),o=e.controllingServiceWorker;(!o||(r==null?void 0:r.split("?")[0])!==o.split("?")[0])&&function(s){Z(function(){window.setTimeout(function(){if(s.active&&typeof PerformanceResourceTiming!="undefined"){var c,f=(c=Le(ne()).domContentLoadedEventEnd,window.performance.getEntriesByType?performance.getEntriesByType("resource").filter(function(l){if(c>0&&l.startTime+l.duration>c)return!1;var u;try{u=new URL(l.name)}catch(p){return!1}return(u==null?void 0:u.origin)!==window.location.origin}):[]).map(function(l){var u,p=l.name,d=l.initiatorType;return d==="link"&&(u=function(S){var m=h.querySelector('link[href="'+S+'"]');switch((m==null?void 0:m.getAttribute("rel"))||(m==null?void 0:m.getAttribute("as"))){case"audio":return R.Audio;case"document":return R.Document;case"fetch":return R.Fetch;case"image":return R.Image;case"script":return R.Script;case"stylesheet":case"style":return R.Style;case"track":return R.Track;case"video":return R.Video;default:return}}(p)),{initiatorType:d,contentType:u,url:p}});Ae(s.active,{type:"prewarm-fetch",data:f}).then(function(l){if(l.applicationState===te.FAILED)return function(u){return window.caches?caches.open(ce(F,a.scope)).then(function(p){var d=window.devicePixelRatio,S=window.screen.width,m=[[location.origin,h.cookie]];return Promise.all([ve(p,"/com.baqend.speedkit.screen",{dpr:d,width:S}),ve(p,"/com.baqend.speedkit.config",a),ve(p,"/com.baqend.speedkit.cookie",{origins:m})])}).then(function(){return u.postMessage({type:"init-cache"})}):Promise.resolve()}(s.active)})}},1e3)})}(n),function(s){s.navigationPreload&&function(c){if(c.active)return Promise.resolve(c.active);var f=c.waiting||c.installing;return new Promise(function(l){return f.onstatechange=function(){f.state==="activated"&&l(f)}})}(s).then(function(){a.navigationPreload?s.navigationPreload.enable():s.navigationPreload.disable()}).catch(function(c){return C(c,k.SNIPPET)})}(n)})}function Je(e){h.readyState==="loading"?h.addEventListener("DOMContentLoaded",e):setTimeout(e,0)}function ze(e){var t=x(e),n=e==="baqend-speedkit-secondary-config",i=n?a.secondarySplit:a.split,r=n?F+"-secondary-ab-test-info":F+"-ab-test-info";if(t)return _e(t);var o={group:"undefined",testId:"undefined"},s=x(r);return s&&(o=_e(s),re(r),je(o,i!=null&&i<1)&&G(e,encodeURIComponent(JSON.stringify(o)))),o}function _e(e){try{return JSON.parse(decodeURIComponent(e))}catch(t){return{group:"undefined",testId:"undefined"}}}function At(){var e,t,n=JSON.parse(U("baqend-speedkit-rum-split-enabled")||"{}"),i=!n.sessionId,r=n.sessionId===x(Q);return{rumSplitEnabled:n&&n.sessionId?n.split!==!1:(t=Math.random()<((e=a.sampleRate)!==null&&e!==void 0?e:1),a.sampleRate&&ee("baqend-speedkit-rum-split-enabled",JSON.stringify({split:t,sessionId:x("baqend-speedkit-session-id")})),t),isActiveSession:i||r}}function Rt(){if(!(!le()&&U("baqend-speedkit-rum-opt-out")!=="1"&&!window.deactivateSpeedKitRUM))return!1;var e=a.rumTracking;if(!e)return!1;if(a.sampleRate===void 0)return function(r){if(h.cookie=r+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax; Secure",typeof Storage!="undefined")try{localStorage.removeItem(r)}catch(o){}}("baqend-speedkit-rum-split-enabled"),e;var t=At(),n=t.rumSplitEnabled,i=t.isActiveSession;return!(!n||!i)&&e}function Ft(){var e,t=window.SpeedKit||{},n=t.userId,i=t.sessionId,r=t.sessionIndex,o=D(),s=!o.noTracking&&!o.performanceOnly;return t.sessionId||(i=(e=s?de():["",0])[0],r=e[1]),t.userId||(n=s?ke():""),{userInfo:{userId:n,sessionId:i,sessionIndex:r},persisted:function(c,f,l){var u=D();return u.noTracking||u.performanceOnly?!1:(G(K,c),G(Q,f),G(ae,""+l),G(se,Date.now().toString()),!0)}(n,i,r)}}function Xe(e){for(var t=0,n=h.cookie.replace(/\s/g,"").split(";").filter(function(s){return s.lastIndexOf(e,0)===0});t<n.length;t++){var i=n[t],r=i.indexOf("="),o=r>-1?i.substr(0,r):i;h.cookie=o+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax; Secure"}}function Bt(e,t){if(e)return function(n,i){if(typeof Storage!="undefined")try{for(var r in localStorage)r.includes(n)&&!(i!=null&&i.includes(r))&&localStorage.removeItem(r)}catch(o){}}(F,["baqend-speedkit-sk-opt-out"]),void Xe(F);t.noCookies&&Xe(F),!t.noTracking&&!t.performanceOnly||a.sampleRate||[K,Q,ae,se].forEach(function(n){return re(n)})}(function(e){e.Blacklist="Blacklist",e.Blocked="Blocked",e.ClientError="ClientError",e.Redirect="Redirect",e.CORSRedirect="CORSRedirect",e.CriticalResource="CriticalResource",e.Delayed="Delayed",e.Disabled="Disabled",e.Disconnected="Disconnected",e.DynamicBlock="DynamicBlock",e.DynamicBlockPreload="DynamicBlockPreload",e.DynamicBlockCached="DynamicBlockCached",e.Error="Error",e.Fallback="Fallback",e.Fetchlist="Fetchlist",e.FirstLoad="FirstLoad",e.GroupChange="GroupChange",e.IgnoredAfterPOSTNavigate="IgnoredAfterPOSTNavigate",e.InternalServerError="InternalServerError",e.LoopDetected="LoopDetected",e.NavigationPreload="NavigationPreload",e.NonSKGroup="NonSKGroup",e.SkUnsupported="SkUnsupported",e.NoSwInstalled="NoSwInstalled",e.NoSwResponse="NoSwResponse",e.Offline="Offline",e.Onboarding="Onboarding",e.SafeScript="SafeScript",e.SwFailed="SwFailed",e.TrackingRequest="TrackingRequest",e.Unknown="Unknown",e.Immutable="Immutable",e.BfCache="BfCache",e.NotEnabled="NotEnabled",e.NotWhitelisted="NotWhitelisted",e.UserAgentChanged="UserAgentChanged",e.TooLargeRequest="TooLargeRequest",e.FormatNotSupported="FormatNotSupported",e.OtherSwInstalled="OtherSwInstalled",e.SwBooting="SwBooting",e.NoNavigate="NoNavigate",e.NoMatchingNavigate="NoMatchingNavigate",e.Timeout="Timeout",e.DisabledSites="DisabledSites",e.PartialResponse="PartialResponse"})(T||(T={})),function(e){e.CacheMiss="CacheMiss",e.ExpiredResponse="ExpiredResponse",e.InstantRefresh="InstantRefresh",e.InvalidCacheSketch="InvalidCacheSketch",e.ReloadCacheMode="ReloadCacheMode",e.UrlInCacheSketch="UrlInCacheSketch"}(Ce||(Ce={})),function(e){e.CacheHit="CacheHit",e.RevalidationWhitelist="RevalidationWhitelist"}(Ne||(Ne={})),function(e){e.SWException="SWException",e.BloomfilterException="BloomfilterException",e.DashboardDisabled="DashboardDisabled",e.ServerError="ServerError",e.None="None",e.AssetTimeout="AssetTimeout"}(J||(J={})),function(e){e[e.navigate=0]="navigate",e[e.reload=1]="reload",e[e.back_forward=2]="back_forward",e[e.prerender=3]="prerender",e[e.reserved=255]="reserved"}(z||(z={})),function(e){e.AssetAPI="AssetAPI",e.Shield="Shield",e.Storage="Storage",e.Edge="Edge",e.Collapsed="Collapsed",e.PendingAsset="PendingAsset",e.Stream="Stream",e.MissingCachingHeader="MissingCachingHeader",e.Generated="Generated",e.Origin="Origin",e.SwCache="SwCache",e.SDN="SDN"}(P||(P={})),function(e){e.INSTALLING="installing",e.BOOTING="booting",e.RUNNING="running",e.FAILED="failed"}(te||(te={})),function(e){e.Document="document",e.Navigate="navigate",e.Fetch="fetch",e.Audio="audio",e.Video="video",e.Track="track",e.PDF="pdf",e.Image="image",e.Style="style",e.Script="script",e.Font="font",e.Undefined="undefined"}(R||(R={}));try{(function(){if(!window[ye]){window[ye]=!0;var e=window.location.href.match(/speed-kit-rum-opt-out=([01])/);e&&ee("baqend-speedkit-rum-opt-out",e[1]);var t=le();t&&(a.rumTracking=!1);var n=function(){if(x("baqend-speedkit-config")!==null||x(K)!==null)return!1;if(v.serviceWorker&&(a.split==null||a.split===1)){var g=oe(),w=v.serviceWorker.controller;return!w||!Ze(g,w)}return!0}(),i=function(){var g={group:"",testId:a.splitTestId};if(window.location.href.indexOf("disableSpeedKit=1")>=0?g.group="B":window.location.href.indexOf("enableSpeedKit=1")>=0&&(g.group="A"),g.group)return G("baqend-speedkit-config",encodeURIComponent(JSON.stringify(g))),g}()||ze("baqend-speedkit-config"),r=ze("baqend-speedkit-secondary-config"),o=function(g,w,b){var I=!1;if(b)return a.group="optOut",I;if(a.split==null){var L=g.testId==="undefined"&&g.group!=="undefined";a.group=L?g.group:"A"}else I=We(g,"baqend-speedkit-config");if(Ve()&&(a.secondarySplit=null),a.secondarySplit!=null&&a.group==="A"){var N=We(w,"baqend-speedkit-secondary-config");I=I||N}return I}(i,r,t),s=Ft(),c=s.userInfo,f=s.persisted,l=function(g,w){var b=x(K)===null&&x("baqend-speedkit-config")===null&&x("baqend-speedkit-secondary-config")===null;return b?b&&g?!0:w?!1:(G(K,"testDenied"),b=x(K)===null,re(K),b):!1}(o&&f,t);(function(g){a.sw=a.sw||"/sw.js",a.split!=null&&a.group&&(a.sw=(w=a.sw,b="gr",I=a.group,L=w.indexOf("?")>-1?"&":"?",""+w+L+b+"="+I));var w,b,I,L;a.rumTracking=Rt();var N=!a.enableForWebViews&&(Ue()||qe());a.disabled=a.enabled===!1||a.disabled||a.group==="B"||a.secondaryGroup==="B"||N||Me()||g,a.appURL="https://"+(a.appDomain||"{}.app.baqend.com".replace("{}",a.appName))+"/v1",a.customVariation&&a.customVariation.forEach(function(y){var A;y.variationFunction=typeof y.variationFunction=="function"?y.variationFunction.toString():y.variationFunction,y.rules=(A=y.rules)===null||A===void 0?void 0:A.map(function(H){return H.contentType?H:Object.assign(H,{contentType:[R.Document]})}),y.rules||(y.rules=[{contentType:[R.Document]}])}),a.urlTransform&&a.urlTransform.forEach(function(y){y.transformFunction=typeof y.transformFunction=="function"?y.transformFunction.toString():y.transformFunction}),a.image&&Array.isArray(a.image)&&a.image.forEach(function(y){var A;y.imageFunction=typeof y.imageFunction=="function"?(A=y.imageFunction)===null||A===void 0?void 0:A.toString():y.imageFunction}),$e("customDevice"),M()||$e("detectDevice"),Array.isArray(a.shouldDetectDevice)&&a.shouldDetectDevice.length>0?a.shouldDetectDevice=a.shouldDetectDevice.map(function(y){return y.contentType?y:Object.assign(y,{contentType:[R.Document]})}):a.shouldDetectDevice=[{contentType:[R.Document]}],(v.userAgent.indexOf("Firefox/")>=0||fe())&&(a.navigationPreload=!1)})(t);var u=function(g,w){var b=Et(g,w);return b.disabled=a.group!=="B"&&a.secondaryGroup!=="B"&&!!X(),v[E]&&v[E].controller||!M()||(b.lastNavigate.responseSource=P.SDN),b}(Ot(l,n,i,r),c),p=D();if(Bt(t,p),p.noTracking||l||function(g){j(g),mt(g)}(u),xe(u.lastNavigate.responseCause)||(d=window.top!==window,location.protocol!=="https:"||!a.executeInIframe&&d))return void _(u);var d,S=v[E].controller;if(S?function(g,w,b){var I=oe();if(b.scriptURL&&!Ze(I,b))return function(N,y){return a.group==="B"||a.secondaryGroup==="B"||N.lastNavigate.group==="B"||!!X()||y}(g,w)||(g.lastNavigate.responseCause=T.OtherSwInstalled),void _(g);yt(b,g),Y("load"),L=Object.getOwnPropertyDescriptor(Document.prototype,"cookie"),L&&L.configurable&&Object.defineProperty(Document.prototype,"cookie",{configurable:!0,get:function(){return L.get.call(h)},set:function(N){L.set.call(h,N),Y()}}),function(N){v[E].addEventListener("message",function(y){var A=y.data,H=A.type,q=A.payload;if(H==="asset-response-timings"){var B=q.assetSource,xt=q.assetTTFB,Kt=q.cdnPoP,Ut=q.originTTFB,Gt=q.assetCause;N.lastNavigate.assetSource=B,N.lastNavigate.assetTTFB=xt,N.lastNavigate.originTTFB=Ut,N.lastNavigate.cdnPoP=Kt,N.lastNavigate.assetCause=Gt,j(N)}})}(g),fe()&&function(){return De()===z.reload}()&&Be();var L}(u,n,S):_(u),X())return void me().catch(function(g){return C(g,k.SNIPPET)});if(!S)return he();m=!1,Z(function(){m||(m=!0,he())}),Je(function(){setTimeout(function(){m||(m=!0,he())},1e3)});var m}})()}catch(e){C(e,k.SNIPPET)}function he(){var e=!1;Ye().catch(function(t){return!e&&C(t,k.SNIPPET),e=!0,Qe().then(function(){return Ye()})}).then(function(){return Lt(SpeedKit)}).catch(function(t){return function(n){return["The operation is insecure","A mutation operation was attempted on a database that did not allow mutations"].some(function(i){return n.indexOf(i)>-1})||n==="Rejected"}(pe(t)?t.reason.message||JSON.stringify(t.reason):t.message)?(SpeedKit.lastNavigate.responseCause=T.SkUnsupported,j(SpeedKit),me()):(!e&&C(t,k.SNIPPET),e=!0,me())}).catch(function(t){!e&&C(t,k.SNIPPET),e=!0})}function Ye(){var e=Fe(a.scope),t=new ue(e),n=window.devicePixelRatio,i=window.screen.width,r=v.userAgent,o=a.customDevice,s=o?t.set("/com.baqend.speedkit.device",{device:o,userAgent:r}):Promise.resolve();return Promise.all([t.set("/com.baqend.speedkit.config",a),t.set("/com.baqend.speedkit.screen",{dpr:n,width:i}),t.set("/com.baqend.speedkit.cookie",{origins:[[location.origin,h.cookie]]}),void 0,s]).then(function(){return t.disconnect()})}function Ht(e){}function me(){var e=new URL(a.scope||"/",location.origin).toString(),t=oe();return v[E].getRegistrations().then(function(n){return n.forEach(function(i){var r=function(o){var s=o.active||o.installing||o.waiting;if(!s)return"";var c=new URL(s.scriptURL);return c.origin+c.pathname}(i);i.scope===e&&r===t&&i.unregister()})}).catch(function(){return null}).then(function(){return Qe()})}function Qe(){return Promise.all([window.caches?caches.keys().then(function(t){var n=t.filter(function(i){return new RegExp("^"+ce(F,a.scope)+".*").test(i)});return Promise.all(n.map(function(i){return caches.delete(i)}))}):Promise.resolve(),(e=new ue(a.scope),e.clear().then(function(){return e.disconnect()}))]);var e}function Ze(e,t){var n=t.scriptURL;if(!n)return!1;if(e===n.split("?")[0])return!0;var i=new URL(n).searchParams.get("othersw");return!!i&&e===i.split("?")[0]}function $e(e){if(a[e]){if(typeof a[e]!="function")return ge(a[e]);var t=a[e];a[e]=null,Je(function(){try{var n=e==="detectDevice"?h:void 0,i=t.call(null,n);Promise.resolve(i).then(function(r){r&&typeof r=="string"&&ge(r)}).catch(function(r){C(r,k.CONFIG)})}catch(r){C(r,k.CONFIG)}})}}})(document,navigator,"serviceWorker",typeof speedKit!="undefined"?speedKit:config,"SNIPPET_LOADED");})();