!function(){"use strict";function e(e){return 0===e.length||!e.trim()}class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}const n="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",r="untrackedResponseCodes",i="trackedResponseCodes";function o(r){if("string"!=typeof r)throw new t("The product name must be a string. ".concat(n,"."));if(e(r))throw new t("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(n,"."));return r}var a;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(a||(a={}));const s=new Set(Object.values(a));class c{constructor(e,r,i){if(this._featureKey=u(e),this._degradationKey=u(r),!i)return this._untrackedResponseCodes=[],void(this._trackedResponseCodes=[]);if("object"!=typeof i)throw new t("DegradationTrackingMetadata options should be an object. ".concat(n,"."));const c=i.productName;c&&(this._productName=o(c));const l=i.untrackedResponseCodes,d=i.trackedResponseCodes;if(l&&d)throw new t("You may only specify one of the options: ".concat(a.UntrackedResponseCodes," or ")+"".concat(a.TrackedResponseCodes," to exclude or include response codes from counting ")+"as the degraded state. ".concat(n,"."));!function(e,r){const i=(e,r)=>{if("number"!=typeof(i=e)||!isFinite(i)||Math.floor(i)!==i||e<=0||e>999)throw new t("Please only specify positive integer response codes between 1 and 999 for the ".concat(r," option. ")+"".concat(e," was specified. ").concat(n,"."));var i;if(429===e||999===e)throw new t("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(r," options."));if(r===a.UntrackedResponseCodes&&(e<500||e>=600))throw new t("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(e," is not considered a degradation unless you explicitly add it to the ")+"".concat(a.TrackedResponseCodes," option. Please remove ").concat(e," from the ")+"".concat(a.UntrackedResponseCodes," option. ").concat(n,"."))};if(void 0!==e&&!Array.isArray(e))throw new t("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(a.UntrackedResponseCodes," option. ")+"".concat(n,"."));if(void 0!==r&&!Array.isArray(r))throw new t("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat(a.TrackedResponseCodes," option. ").concat(n,"."));e&&e.forEach(e=>i(e,a.UntrackedResponseCodes));r&&r.forEach(e=>i(e,a.TrackedResponseCodes))}(l,d),this._untrackedResponseCodes=l||[],this._trackedResponseCodes=d||[],function(e){Object.keys(e).forEach(e=>{if(!s.has(e))throw new t("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(n))})}(i)}get featureKey(){return this._featureKey}get degradationKey(){return this._degradationKey}get productName(){return this._productName}get untrackedResponseCodes(){return this._untrackedResponseCodes}get trackedResponseCodes(){return this._trackedResponseCodes}}function u(r){if("string"!=typeof r)throw new t("Keys must be strings. ".concat(n,"."));if(e(r))throw new t("Keys should not be blank. ".concat(n,"."));if(r.match(/[^a-z0-9-]/))throw new t("'".concat(r,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(n,"."));return r}function l(e,t){if(!e.includes("/"))return e;const n=function(e){const t=document.createElement("a");return t.href=e,t.pathname}(e).split("/").filter(e=>e.length);if(!t.length)return n.join("/");const r=[];for(let e=n.length-1;e>=0;e--){const i=n[e],o=t.indexOf(i);o>=0?t.splice(o,1):r.push(i)}return r.reverse().join("/")}class d{constructor(e,n){if(!(e instanceof c))throw new t("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.");if(!n)throw new t("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.");this._featureKey=e.featureKey,this._productName=n,this._untrackedResponseCodes=[],this._degradationKeyByResponseCode=new Map,this.mergeTrackingMetadata(e)}mergeTrackingMetadata(e){const{untrackedResponseCodes:o,trackedResponseCodes:a,degradationKey:s,featureKey:c}=e;if(o.length){if(this._untrackedResponseCodes.length)throw new t("The ".concat(c," has multiple DegradationTrackingMetadata with the ")+"".concat(r," option. Please combine the degradation keys and ")+"the response codes into one tracking metadata instead. ".concat(n,"."));this._untrackedResponseCodes=o}if(a.forEach(e=>{if(this._untrackedResponseCodes.indexOf(e)>=0)throw new t("You attempted to specify ".concat(e," as a tracked response code for the '").concat(c,"' feature, ")+"however it is also specified in the untracked response codes for that feature. Please decide whether "+"you want to consider ".concat(e," responses a degraded state or not. ").concat(n,"."));if(this._degradationKeyByResponseCode.has(e))throw new t("".concat(e," was specified multiple times in ").concat(c,"'s ")+"".concat(i,". Each tracked status code should only be ")+"specified once per degradation key. ".concat(n,"."));this._degradationKeyByResponseCode.set(e,s)}),!a.length){if(this._defaultDegradationKey)throw new t("'".concat(this._defaultDegradationKey,"' has already been set as the degradation key for the '").concat(c,"' ")+"feature, so we can't use '".concat(s,"' as well. Please combine the two degradation tracking ")+"metadata objects together. ".concat(n,"."));this._defaultDegradationKey=s}}getDegradationKey(e){if(!(this._untrackedResponseCodes.indexOf(e)>=0))return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):!e||e>=500&&e<600?this._defaultDegradationKey:void 0}get featureKey(){return this._featureKey}get productName(){return this._productName}}class p{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}trackSuccessfulFeatureApiCall(e){if(this._featureCallCounts.has(e))this._featureCallCounts.get(e).successfulApiCallCount++;else{const t=new h;t.successfulApiCallCount++,this._featureCallCounts.set(e,t)}}trackFailedFeatureApiCall(e){if(this._featureCallCounts.has(e))this._featureCallCounts.get(e).failedApiCallCount++;else{const t=new h;t.failedApiCallCount++,this._featureCallCounts.set(e,t)}}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class h{constructor(){this.successfulApiCallCount=0,this.failedApiCallCount=0}}class f{constructor(){this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){var n;if(this.metrics.has(t))null===(n=this.metrics.get(t))||void 0===n||n.trackSuccessfulFeatureApiCall(e);else{const n=new p(t);n.trackSuccessfulFeatureApiCall(e),this.metrics.set(t,n)}}incrementFailedFeatureApiCall(e,t){var n;if(this.metrics.has(t))null===(n=this.metrics.get(t))||void 0===n||n.trackFailedFeatureApiCall(e);else{const n=new p(t);n.trackFailedFeatureApiCall(e),this.metrics.set(t,n)}}flushMetrics(){const e=[];return this.metrics.forEach(t=>e.push(t)),this.metrics=new Map,e}}class g{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t,window.setInterval(()=>this.produceMetricEvent(),6e4)}produceMetricEvent(){this._collectedFeatureMetrics.flushMetrics().forEach(e=>{const t=[];e.featureCallCounts.forEach((e,n)=>{t.push({featureProductName:n.productName,featureKey:n.featureKey,degradedDownstreamCallCount:e.failedApiCallCount,totalDownstreamCallCount:e.successfulApiCallCount+e.failedApiCallCount,pointOfPresenceId:n.pointOfPresenceId,responseErrorType:n.responseErrorType})});const n={header:{},requestHeader:{},time:Date.now(),metrics:t};this._fireEventCallback("FeatureDegradationMetricEvent",n,e.pageInstance)})}}class m{constructor(e,t,n){this._featureMetricStore=new f,this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new g(this._featureMetricStore,t),window.addEventListener("beforeunload",()=>this._metricSender.produceMetricEvent())}trackFeatureDegradationsForFetch(e,t,n,r,i){let o,a,s,c;const u=this._createDegradationProcessingMetadata(n);return t=this._getAndValidateUrlEntityIDs(t),r.then(e=>{!1===e.ok&&(s=e.status,o=e.headers.get("x-li-uuid")||e.headers.get("x-li-uuid".toUpperCase()),a=e.headers.get("x-li-pop")||e.headers.get("x-li-pop".toUpperCase()),c=e)}).catch(e=>{c=e}).finally(()=>{429!==s&&999!==s&&(c?this._trackDegradedResponse(u,i,c,e,s,o,t,a):this._trackSuccessfulResponse(u,i,a))})}trackFeatureDegradationsForJQueryAjax(e,t,n,r,i,o){const a=t.status;if(429===a||999===a)return;const s=this._createDegradationProcessingMetadata(r);n=this._getAndValidateUrlEntityIDs(n);const c=t.getResponseHeader("x-li-pop")||t.getResponseHeader("x-li-pop".toUpperCase());if(o)this._trackSuccessfulResponse(s,i,c);else{const r=t.getResponseHeader("x-li-uuid")||t.getResponseHeader("x-li-uuid".toUpperCase());this._trackDegradedResponse(s,i,t,e,a,r,n,c)}}_trackSuccessfulResponse(e,t,n){e.forEach(e=>{this._featureMetricStore.incrementSuccessfulFeatureApiCall({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:n},t)})}_trackDegradedResponse(e,t,n,r,i,o,a,s){const c=new Set,u=new Set,d=function(e){if(e instanceof Error){if("AbortError"===e.name)return"CLIENT_ABORTED";if(e instanceof TypeError&&(e.message.indexOf("Network request failed")>=0||e.message.indexOf("NetworkError when attempting to fetch resource")>=0||e.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===e.statusText)return"CLIENT_TIMEOUT";if(0===e.status&&"abort"===e.statusText)return"CLIENT_ABORTED";if((t=e.status)>=500&&t<600)return"SERVER_ERROR";if("readyState"in e&&0===e.readyState)return"NETWORK_ERROR"}var t;return"UNCLASSIFIED"}(n);e.forEach(e=>{c.add(e.productName),u.add(e.featureKey),this._featureMetricStore.incrementFailedFeatureApiCall({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:s,responseErrorType:d},t)}),this._reportUnclassifiedError(n,d,i,c,u);(function(e,t,n,r,i,o){if(!(e&&e.trim()&&t&&Array.isArray(t)))return[];const a=l(e,o?o.map(e=>encodeURIComponent(e)):[]),s=[],c=new Set,u=new Set;return t.forEach(e=>{c.add(e.productName),u.add(e.featureKey);const t=e.getDegradationKey(r);let o=!1;t&&"CLIENT_ABORTED"!==n&&(o=!0);const l={endpointPath:a,degradationKey:t,responseErrorType:n,isCountedAgainstAvailability:o};l.responseCode=r,i&&(l.responseCallTreeId=i),s.push({header:{},requestHeader:{},productName:e.productName,featureKey:e.featureKey,failedDownstreamRequests:[l]})}),s})(r,e,d,i,o,a).forEach(e=>{this._fireEventCallback("FeatureDegradeEvent",e,t)})}_reportUnclassifiedError(e,t,n,r,i){var o;if((0===n||null==n)&&"UNCLASSIFIED"===t){const t=["noise","pem-unclassified-error"];let n;r.forEach(e=>t.push("pem-product-".concat(e))),i.forEach(e=>t.push("pem-feature-".concat(e))),n=e instanceof Error?e:new Error("Could not classify jQuery response: ".concat(e)),null===(o=this._jetErrorCallback)||void 0===o||o.call(this,n,t,!1)}}_createDegradationProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new t("Please specify a non-empty array of degradation tracking metadata. ".concat(n,"."));const r={};return e.forEach(e=>{if(!(e instanceof c))throw new t("Please use DegradationTrackingMetadata to specify the degradations. ".concat(n,"."));const i=o(e.productName||this._defaultProductName),a="".concat(i,"::").concat(e.featureKey),s=r[a];s?s.mergeTrackingMetadata(e):r[a]=new d(e,i)}),Object.keys(r).map(e=>r[e])}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new t("Please specify the queried IDs to remove from the request URL, or use an empty array if there "+"are none. ".concat(n,"."));return e}}const v=window.encodeURIComponent;function y(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function E(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function b(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I(e,t){return e(t={exports:{}},t.exports),t.exports}var C=I((function(e,t){!function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==w||"undefined"!=typeof self&&self;var n=t((function(e,t){!function(n,r){r(t,e)}(0,(function(e,t){var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,r=n&&!!window.requestIdleCallback,i=8,o={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",queue:[],paused:!1,maxQueueSize:1,queueTimeout:1e3,timeoutId:null,disableSendBeacon:!0,csrfToken:"",testId:"",testSegId:"",setProperty:function(e,t){void 0!==t&&(this[e]=t)},setTrackingUrl:function(e){this.setProperty("globalTrackingUrl",e)},setAppId:function(e){this.setProperty("globalTrackingAppId",e)},setCsrfToken:function(e){this.setProperty("csrfToken",e)},setTestId:function(e){this.setProperty("testId",e)},setTestSegId:function(e){this.setProperty("testSegId",e)},getCookieString:function(){return document.cookie},getCsrfToken:function(){for(var e="JSESSIONID=",t=this.getCookieString().split(";"),n=0;n<t.length;n++){for(var r=t[n];" "===r.charAt(0);)r=r.substring(1);if(-1!==r.indexOf(e)){var i=r.substring(e.length,r.length);return'"'===i[0]&&'"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),i}}return""},createXmlHttpObject:function(){return n&&window.XMLHttpRequest?new XMLHttpRequest:null},beacon:function(e,t,r,i){this._beacon(e,t,r,i||this.globalTrackingUrl,this.disableSendBeacon?null:n&&navigator.sendBeacon&&navigator.sendBeacon.bind(navigator))},_beacon:function(e,t,n,r,i){if(i){var o=void 0;try{o=i(r,e)}catch(t){throw"object"==typeof t&&(t.message="Error sending ["+e+"] to "+r+" using sendBeacon:"+t.message,t.tags=["tracking"]),t}if(o)return void(t&&t(o))}this.ajax(e,t,n,r)},ajax:function(e,t,n,r){var i;r?(i=this.createXmlHttpObject())&&(i.open(this.AJAX_METHOD,r,!0),i.withCredentials=!0,i.setRequestHeader("Content-type","application/json"),this.csrfToken?i.setRequestHeader("Csrf-Token",this.csrfToken):i.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&i.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&i.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),i.onreadystatechange=function(){4===i.readyState&&(200===i.status||304===i.status?"function"==typeof t&&t(i):n&&n('Response is not "OK" or "Not Modified" for tracking request'))},4!==i.readyState&&i.send(e)):n&&n("Tracking url is not defined")},pause:function(){this.paused=!0},unpause:function(){this.paused=!1,this.queue.length>=this.maxQueueSize&&this.flush()},flush:function(){if(this.queue.length>0){var e=this;this.beacon(JSON.stringify(this.queue),null,e.logError),this.queue=[]}r?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(e){var t=this,n=Date.now();return requestIdleCallback((function(r){r.timeRemaining()>i||r.didTimeout?t.flush():t.timeoutId=t.idleFlush(e-(Date.now()-n))}),{timeout:e})},addToQueue:function(e){if(this.queue.push(e),this.queue.length>=this.maxQueueSize&&!this.paused)return this.flush();if(!this.timeoutId){var t=this;r&&!this.paused?this.timeoutId=this.idleFlush(this.queueTimeout):this.timeoutId=setTimeout((function(){t.flush()}),this.queueTimeout)}},validateEvent:function(e,t,n){this.beacon(JSON.stringify([{eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)}]),(function(e){return n(null,e)}),(function(e){return n(e)}),this.globalTrackingUrl+"/validate")},sendEvent:function(e,t){this.addToQueue({eventInfo:this.populateEventInfo(e),eventBody:this.populateEventHeaders(t)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},populateEventInfo:function(e){return"string"==typeof e&&(e={eventName:e}),e&&"object"==typeof e?(e.appId||(e.appId=this.globalTrackingAppId),e):(this.logError("Event info must be object"),{})},populateEventHeaders:function(e){return e&&"object"==typeof e?e:(this.logError("Event body must be object"),{})},logError:function(e){var t=window.console;t&&t.error&&t.error(e)},init:function(){this.setTrackingUrl(),this.setAppId(),this.onBeforeUnload=this.onBeforeUnload.bind(this),n&&window.addEventListener("beforeunload",this.onBeforeUnload)},destroy:function(){this.flush(),n&&window.removeEventListener("beforeunload",this.onBeforeUnload)},onBeforeUnload:function(){this.flush()}};t.exports=o}))}));function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),i=0;i<t.length;i++){var o=t[i];if(null!==o)for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r}var i,o,a,s,c="li_trk_navigation",u="undefined";function l(){window.sessionStorage.removeItem(c)}function d(){if(typeof window!==u&&typeof window.sessionStorage!==u)try{return JSON.parse(window.sessionStorage.getItem(c))}catch(e){}}function p(e){if(typeof window!==u&&typeof window.sessionStorage!==u)try{window.sessionStorage.setItem(c,JSON.stringify(e))}catch(e){}}function h(){var e=window.location.pathname,t=e+window.location.search,n=window.location.href,r=d();if(!r)return null;for(var i=0;i<r.length;i++){var o=r[i].href;if(o===e||o===t||o===n){var a=r.splice(i,1)[0];return p(r),a}}return null}function f(e){var t=d()||[];t.push(e),p(t)}(s=e.ControlInteractionType||(e.ControlInteractionType={}))[s.FOCUS=0]="FOCUS",s[s.UNFOCUS=1]="UNFOCUS",s[s.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",s[s.DRAG=3]="DRAG",s[s.PINCH_OPEN=4]="PINCH_OPEN",s[s.PINCH_CLOSE=5]="PINCH_CLOSE",s[s.DOUBLE_PRESS=6]="DOUBLE_PRESS",s[s.LONG_PRESS=7]="LONG_PRESS",s[s.SHORT_PRESS=8]="SHORT_PRESS",s[s.SWIPE_UP=9]="SWIPE_UP",s[s.SWIPE_DOWN=10]="SWIPE_DOWN",s[s.SWIPE_LEFT=11]="SWIPE_LEFT",s[s.SWIPE_RIGHT=12]="SWIPE_RIGHT",s[s.FLICK_UP=13]="FLICK_UP",s[s.FLICK_DOWN=14]="FLICK_DOWN",s[s.FLICK_LEFT=15]="FLICK_LEFT",s[s.FLICK_RIGHT=16]="FLICK_RIGHT",s[s.SHAKE=17]="SHAKE",s[s.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",s[s.HOVER=19]="HOVER",(a=e.PageViewPageType||(e.PageViewPageType={}))[a.FULL=1]="FULL",a[a.AJAX=2]="AJAX",a[a.IFRAME=3]="IFRAME",a[a.REDIRECT=4]="REDIRECT",a[a.API=5]="API",a[a.FORM=6]="FORM",a[a.ROUTER=7]="ROUTER",a[a.ERROR=8]="ERROR",(o=e.EventTypes||(e.EventTypes={}))[o.PageViewEvent=0]="PageViewEvent",o[o.NavigationEvent=1]="NavigationEvent",o[o.ExternalNavigationEvent=2]="ExternalNavigationEvent",o[o.ControlInteractionEvent=3]="ControlInteractionEvent",o[o.PageVisibilityChangeEvent=4]="PageVisibilityChangeEvent";var g="undefined"!=typeof window?window:null;function m(){var e=g.crypto||g.msCrypto;if(!i&&e&&e.getRandomValues){var t=new Uint8Array(16);(i=function(){return e.getRandomValues(t),t})()}if(!i){var n=new Uint8Array(16);i=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=(t||0)>>>((3&e)<<3)&255;return n}}}g?m():i=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var v=[],y=0;y<256;y++)v[y]=(y+256).toString(16).substr(1);function E(){var e=new Uint8Array(16),t=0,n=i();n[6]=15&n[6]|64,n[8]=63&n[8]|128;for(var r=0;r<16;r++)e[t+r]=n[r];return e}function b(){return I(E())}function I(e){for(var t=32768,n=[],r=0;r<e.length;r+=t)n.push(String.fromCharCode.apply(null,e.subarray(r,r+t)));return btoa(n.join(""))}function C(e){return e?"urn:li:page:"+e:null}function T(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function k(e){return e?e.split(":").pop():null}function A(e,t){return e?{trackingId:t||b(),pageUrn:C(e)}:null}function _(e){return e?e.pageUrn+";"+e.trackingId:null}function S(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function P(e){return e&&e.referrer}function N(e){if(e&&e.URL){var t=e.URL.match(/trk=([^&]+)/);if(t&&2===t.length)return t[1]}return null}var R=10,O=10,L=Object.assign||r,D=function(){function t(e){void 0===e&&(e={appId:null,initialPageInstance:null}),this.config=e;var t=this.config.disableInitialAnchorPageViewEvent||!1;if(!this.config.appId)throw new Error("TrackingTwo requires an appId.");if(!this.config.initialPageInstance){var r=document.querySelector('meta[name="trk-pageinstance"]');if(r&&(this.config.initialPageInstance=S(r.getAttribute("content"))),!this.config.initialPageInstance)throw new Error("TrackingTwo requires an initialPageInstance");t=!0}this.config.eventHeaderProperties?this.config.eventHeaderProperties.pageInstance&&delete this.config.eventHeaderProperties.pageInstance:this.config.eventHeaderProperties={},this.config.userRequestHeaderProperties?this.config.userRequestHeaderProperties.pageKey&&delete this.config.userRequestHeaderProperties.pageKey:this.config.userRequestHeaderProperties={},this.config.validationMode=!!this.config.validationMode||!1,this.config.trackingUrl=this.config.trackingUrl||"/li/track";var i=h();i&&(e.previousPageInstance=i.prevInstance),Object.freeze(this.config.eventHeaderProperties),Object.freeze(this.config.userRequestHeaderProperties),Object.freeze(this.config),n.init(),n.setProperty("disableSendBeacon",!1),n.setTrackingUrl(this.config.trackingUrl),n.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||R),n.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||O)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var o=this.config.prevControlName||(i?i.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,o),t||this.firePageViewEvent(),this._boundDocumentClickHandler=this._handleDocumentClicks.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickHandler,!0),this._boundDocumentClickBubbleHandler=this._handleDocumentClicksBubble.bind(this),document&&document.body.addEventListener("click",this._boundDocumentClickBubbleHandler,!1),this._boundWindowBeforeUnloadHandler=this._handleWindowBeforeUnload.bind(this),window&&window.addEventListener("beforeunload",this._boundWindowBeforeUnloadHandler,!0),this._boundDocumentVisibilityChangeHandler=this._handleDocumentVisibilityChange.bind(this);var a="visibilitychange";document&&(void 0!==document.msHidden&&(a="msvisibilitychange"),document.addEventListener(a,this._boundDocumentVisibilityChangeHandler,!0))}return t.prototype._handleDocumentClicks=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var n=t.getAttribute("data-tracking-control-name");!t.hasAttribute("data-tracking-no-cie")&&this.fireControlInteractionEvent(n)}},t.prototype._handleDocumentClicksBubble=function(e){for(var t=e.target;t!==e.currentTarget&&!t.hasAttribute("data-tracking-control-name");)t=t.parentElement;if(t!==e.currentTarget){var n=t.getAttribute("data-tracking-control-name"),r=t.hasAttribute("data-tracking-will-navigate"),i=t.getAttribute("data-tracking-href")||t.getAttribute("href");r&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:n,href:i})}},t.prototype._handleWindowBeforeUnload=function(e){var t=e.target.activeElement,n=t,r=null,i=!1;if(t){for(;n!==e.currentTarget&&("function"!=typeof n.hasAttribute||!n.hasAttribute("data-tracking-control-name"))&&n.parentElement;)n=n.parentElement;n!==e.currentTarget&&("getAttribute"in n&&(r=n.getAttribute("data-tracking-control-name")),"hasAttribute"in n&&(i=n.hasAttribute("data-tracking-will-navigate")))}i||this.fireExternalNavigationEvent(r)},t.prototype._handleDocumentVisibilityChange=function(){var e=!1;if(void 0!==document.msHidden)e=document.msHidden;else{if(void 0===document.hidden)return;e=document.hidden}this.firePageVisibilityChangeEvent(e)},t.prototype.saveStateForPageDeparture=function(e){e&&f({controlName:e.controlName,href:e.href,prevInstance:this.state.currentPageInstance})},t.prototype.fireControlInteractionEvent=function(t,n,r){if(void 0===n&&(n=e.ControlInteractionType.SHORT_PRESS),void 0===r&&(r={}),!t)throw new Error("controlName is required.");var i=k(this.state.currentPageInstance.pageUrn),o=r.uiControlPageKey||i;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:T(t,o),interactionType:e.ControlInteractionType[n]},r)},t.prototype.fireNavigationEvent=function(t,n,r){void 0===r&&(r={});var i=t?k(t.pageUrn):null,o=r.uiControlPageKey||i;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:T(n,o)},r)},t.prototype.fireExternalNavigationEvent=function(t,n){void 0===n&&(n={});var r=n.uiControlPageKey||k(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:T(t,r)},n,!0)},t.prototype.firePageViewEvent=function(t,n){void 0===n&&(n={});var r=(n=L({},n)).pageViewPageType||e.PageViewPageType.AJAX,i=k(this.state.currentPageInstance.pageUrn),o=t||i;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:o},header:{},pageType:e.PageViewPageType[r].toLowerCase(),trackingInfo:{clientTimestamp:Date.now().toString()}},n)},t.prototype.fireAnchorPageViewEvent=function(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("newPageKey is required.");var r=L({},this.state.currentPageInstance),i=A(e);this.state.previousPageInstance=r,this.state.currentPageInstance=i,this.fireNavigationEvent(r,t,n),this.firePageViewEvent(e,n)},t.prototype.firePageVisibilityChangeEvent=function(t,n){void 0===n&&(n={}),this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageVisibilityChangeEvent],{requestHeader:{},header:{},isVisible:!t},n)},t.prototype.fireTrackingEvent=function(e,t,r,i){if(void 0===r&&(r={}),void 0===i&&(i=!1),!e||!t)throw new Error("eventName and body are required.");t=L({},t),(r=L({},r)).topicName||(r.topicName=e),r.pageInstance||(r.pageInstance=this.state.currentPageInstance);var o=L({pageKey:k(r.pageInstance.pageUrn),path:window.location.href,referer:P(document),trackingCode:N(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var a=L({pageInstance:r.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var s={requestHeader:o,header:a};this.config.mapHeaders&&(s=this.config.mapHeaders(s));var c=L(s,t),u={eventName:e,topicName:r.topicName,appId:this.config.appId};this.config.validationMode?n.validateEvent(u,c,(function(t){t&&console.error("Event "+e+" failed validation!")})):(n.sendEvent(u,c),i&&n.flush())},t.prototype.destroy=function(){n.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,n){return e.initialPageInstance=A(n),new t(e)},t}();e.AppTrackingInstance=D,e.clearNavStorage=l,e.derivePageInstanceFromString=S,e.derivePageKeyFromUrn=k,e.generateControlUrn=T,e.generatePageInstance=A,e.generatePageUrn=C,e.generateTrackingId=b,e.getReferrer=P,e.getTrackingCode=N,e.stringifyPageInstance=_,e.uuid=E,e.webTrackingTransport=n}(t)}));function T(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}function k(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function A(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=t.top<=n&&t.top+t.height>=0,o=t.left<=r&&t.left+t.width>=0;return i&&o}function _(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function S(e,t,n,r){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=_(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),a="&";return r<0?a="?":r===e.length-1&&(a=""),o&&(o="#".concat(o)),"".concat(i).concat(a).concat(t,"=").concat(n).concat(o||"")}}function P(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}let N=null;function R({appId:e="seo",trackingCode:t}={}){const n=y(document),r=_(window.location.href,"originalReferer"),i={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{}};return t&&(i.userRequestHeaderProperties.trackingCode=t),r&&(i.userRequestHeaderProperties.referer=r),N||(N=C.AppTrackingInstance.createFromPageKey(i,n)),N.generateTrackingId=C.generateTrackingId,N}function O(e,t="ajax",n){e.fireTrackingEvent("PageViewEvent",function(e,t="ajax"){const n=function(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}(document),r=E(document);let i={};r&&(i.interfaceLocale=r);e&&(i.pageKey=e);return{header:{},requestHeader:i,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}(n,t))}function L(e,t){t=t||"log";if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}const D=/ /g,M=/[\s\u0000<>"]|%00/,U=/\\/,x=/([.]|%2e){2}/i;let j=new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function q(e){let t;if("string"!=typeof e)return L("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(L("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(D,"+")),!j.test(t))return L("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(M.test(t))return L("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n=t.split("?")[0];return U.test(n)||x.test(n)||x.test(decodeURI(n))?(L("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e,{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:o}={}){return new Promise((a,s)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)a({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText},s(n)}})),c.addEventListener("error",(function(e){s(e)})),c.open(t,e,!0),c.withCredentials=r,Object.keys(n).forEach(e=>{c.setRequestHeader(e,n[e])}),!i){const e=P("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",b(e))}c.send(o)})}const K={className:"class"};function V(e,t={}){if(!e)return Promise.reject(new Error("A path to the asset must be provided"));const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusable:"false"},t);return B(e,{sendCookies:!1,skipCsrfToken:!0}).then(e=>{return t=e.responseText,(new DOMParser).parseFromString(t,"image/svg+xml").firstChild;var t}).then(e=>function(e,t={}){return Object.keys(t).map(n=>{const r=K[n]||n;e.setAttribute(r,t[n])}),e}(e,n))}function z(e,t){if(!e)return Promise.reject(new Error("An icon tag must be provided to inlineIcon"));const n=e.getAttribute("data-svg-class-name");return V(t,n?{className:n}:{}).then(t=>(e.appendChild(t),e.setAttribute("aria-hidden","true"),t))}const G=["IMG","IFRAME","VIDEO","SCRIPT"];class W{constructor({delayedUrlAttributeName:e="data-delayed-url",delayedPosterAttributeName:t="data-delayed-poster",delayedBackground:n="data-delayed-background",embeddedSrcAttributeName:r="data-li-src",ghostClassesAttributeName:i="data-ghost-classes",ghostUrlAttributeName:o="data-ghost-url",lazyloadClassName:a="lazy-load",lazyloadedClassName:s="lazy-loaded",onLoadClassName:c="onload",onErrorClassName:u="onerror"}={}){this.elementCache=[],this.onLoadClassName=c,this.onErrorClassName=u,this.delayedUrlAttributeName=e,this.delayedPosterAttributeName=t,this.delayedBackground=n,this.embeddedSrcAttributeName=r,this.lazyloadClassName=a,this.lazyloadedClassName=s,this.lazyloadElSelector="[".concat(this.delayedUrlAttributeName,"], [").concat(this.embeddedSrcAttributeName,"], .").concat(this.lazyloadClassName),this.boundLoadVisibleImages=this.loadVisibleImages.bind(this),this.boundEvents=!1,this.scriptLoadPromises={},this.ghostUrlAttributeName=o,this.ghostClassesAttributeName=i,T(()=>this.refreshLoader())}getLazyLoadedJavascriptModule(e){return this.scriptLoadPromises[e]=this.scriptLoadPromises[e]||function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.scriptLoadPromises[e]}refreshLoader(){this.elementCache=k(document.querySelectorAll(this.lazyloadElSelector)),this.loadVisibleImages(),this.elementCache.length&&!this.boundEvents&&this._attachEvents()}_attachEvents(){window.addEventListener("scroll",this.boundLoadVisibleImages,!0),window.addEventListener("touchmove",this.boundLoadVisibleImages,!0),window.addEventListener("resize",this.boundLoadVisibleImages,!0),this.boundEvents=!0}_detachEvents(){window.removeEventListener("scroll",this.boundLoadVisibleImages,!0),window.removeEventListener("touchmove",this.boundLoadVisibleImages,!0),window.removeEventListener("resize",this.boundLoadVisibleImages,!0),this.boundEvents=!1}_dropHttp(e){return e&&e.replace(/^http:\/\//i,"//")}lazyloadElOnload(e){if(e.classList.remove(this.lazyloadClassName),e.classList.add(this.lazyloadedClassName),"SCRIPT"===e.tagName){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).resolve(window[t])}}lazyloadOnerror(e){const t=e.classList.contains(this.onErrorClassName),n=e.getAttribute(this.ghostUrlAttributeName);if(e.classList.remove(this.lazyloadClassName),e.classList.add(this.lazyloadedClassName),e.classList.add(this.onErrorClassName),n&&!t){e.setAttribute("src",q(n));const t=e.getAttribute(this.ghostClassesAttributeName);t&&t.length&&t.split(" ").forEach(t=>{e.classList.add(t)})}if("SCRIPT"===e.tagName){const{moduleId:t}=e.dataset;this.getLazyLoadedJavascriptModule(t).reject(new Error("Could not lazy load JS with src ".concat(e.src)))}}loadVisibleImages(){let e=0;for(;e<this.elementCache.length;){let t=this.elementCache[e];if("SCRIPT"===t.tagName||t.classList.contains(this.onLoadClassName)||A(t)){const n=t.hasAttribute(this.embeddedSrcAttributeName)&&this._dropHttp(t.getAttribute(this.embeddedSrcAttributeName))||t.getAttribute(this.delayedUrlAttributeName);n&&"ICON"===t.tagName?z(t,n).then(e=>{this.lazyloadElOnload(e),this.lazyloadElOnload(t)}).catch(()=>this.lazyloadOnerror(t)):n&&-1!==G.indexOf(t.tagName)?(t.onerror=this.lazyloadOnerror.bind(this,t),t.onload=t.oncanplay=this.lazyloadElOnload.bind(this,t),t.src=q(n)):(n&&t.hasAttribute(this.delayedBackground)&&(t.style.backgroundImage='url("'.concat(q(n),'")')),this.lazyloadElOnload(t)),"VIDEO"===t.tagName&&(t.poster=q(t.getAttribute(this.delayedPosterAttributeName))),t.removeAttribute(this.delayedUrlAttributeName),t.removeAttribute(this.embeddedSrcAttributeName),this.elementCache.splice(e,1)}else e++}this.elementCache.length||this._detachEvents()}}let J=null;const Q=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|"),X=new RegExp(Q,"i");function Y(e){return X.test(e.trim())}var $,Z,ee=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],id:ee(),isFinal:!1}},ne=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},re=!1,ie=!1,oe=function(e){re=!e.persisted},ae=function(){addEventListener("pagehide",oe),addEventListener("beforeunload",(function(){}))},se=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie||(ae(),ie=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:re})}),{capture:!0,once:t})},ce=function(e,t,n,r){var i;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||t.isFinal||void 0===i)&&(e(t),i=t.value))}},ue=function(){return void 0===$&&($="hidden"===document.visibilityState?0:1/0,se((function(e){var t=e.timeStamp;return $=t}),!0)),{get timeStamp(){return $}}},le=function(){return Z||(Z=new Promise((function(e){return["scroll","keydown","pointerdown"].map((function(t){addEventListener(t,e,{once:!0,passive:!0,capture:!0})}))}))),Z};class de{constructor({gaugeMetricEndpoint:e,counterMetricEndpoint:t,pageKey:n}={}){if(this.gaugeMetricEndpoint=e,this.counterMetricEndpoint=t,this.perfData=window.performance.timing,this.pageKey=n,!this.pageKey||!this.gaugeMetricEndpoint||!this.counterMetricEndpoint)throw new Error("Please pass a valid pageKey, counterMetricEndpoint & gaugeMetricEndpoint")}_getPageLoadTime(){return this.perfData.loadEventEnd-this.perfData.navigationStart}firePageLoadTimeMetric(){if(Y(navigator.userAgent)||this._pageLoadTimeMetricFired||!this.perfData)return;const e=this._getPageLoadTime();this.fireGaugeIngraphMetric({metricsType:"pageLoadTime",metricsValue:e}),this._pageLoadTimeMetricFired=!0}attachWebVitalsMetrics(){Y(navigator.userAgent)||this._webVitalsListenersAttached||(!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=te("CLS",0),i=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),t())},o=ne("layout-shift",i);o&&(t=ce(e,r,o,n),se((function(e){var n=e.isUnloading;o.takeRecords().map(i),n&&(r.isFinal=!0),t()})))}(this._webVitalReportHandler.bind(this)),function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=te("LCP"),i=ue(),o=function(e){var n=e.startTime;n<i.timeStamp?(r.value=n,r.entries.push(e)):r.isFinal=!0,t()},a=ne("largest-contentful-paint",o);if(a){t=ce(e,r,a,n);var s=function(){r.isFinal||(a.takeRecords().map(o),r.isFinal=!0,t())};le().then(s),se(s,!0)}}(this._webVitalReportHandler.bind(this)),function(e){var t=te("FID"),n=ue(),r=function(e){e.startTime<n.timeStamp&&(t.value=e.processingStart-e.startTime,t.entries.push(e),t.isFinal=!0,o())},i=ne("first-input",r),o=ce(e,t,i);i?se((function(){i.takeRecords().map(r),i.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(e,r){r.timeStamp<n.timeStamp&&(t.value=e,t.isFinal=!0,t.entries=[{entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+e}],o())}))}(this._webVitalReportHandler.bind(this)),this._webVitalsListenersAttached=!0)}_webVitalReportHandler(e){this.fireGaugeIngraphMetric({metricsType:"".concat(e.name.toLowerCase(),"Time"),metricsValue:e.value,sendBeacon:!0})}_beacon(e,t){e=S(e,"csrfToken",b(P("JSESSIONID")));const n=new Blob([t],{type:"application/json"});return navigator.sendBeacon(e,n)}fireGaugeIngraphMetric({metricsType:e,metricsValue:t,sendBeacon:n=!1}={}){const r="number"==typeof t&&!isNaN(t);if(!e||!r)throw new Error("valid metricsType & metricsValue are required");const i=JSON.stringify({pageKey:this.pageKey,metricsType:e,metricsValue:t});n?this._beacon(this.gaugeMetricEndpoint,i):B(this.gaugeMetricEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},postData:i})}fireSeoPageViewMetric(e=document){!this._seoPageViewMetricFired&&this._isSEOPageView(e)&&(this.fireCounterIngraphMetric({metricsType:"seoPageView"}),this._seoPageViewMetricFired=!0)}fireCounterIngraphMetric({metricsType:e,sendBeacon:t=!1}={}){if(!e)throw new Error("metricsType is required");const n=JSON.stringify({pageKey:this.pageKey,metricsType:e});t?this._beacon(this.counterMetricEndpoint,n):B(this.counterMetricEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},postData:n})}_isSEOPageView(e=document){const t=e.referrer||"",n=t.indexOf("mail.google.com")>-1,r=t.indexOf(".google.com")>-1,i=!n&&r;return!Y(navigator.userAgent)&&i}}const pe={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class he{constructor(e,t,{threshold:n=.9,root:r=null,rootMargin:i="0px",componentList:o=[],onImpression:a=(()=>{}),onObservation:s=(()=>{}),onUnobservation:c=(()=>{})}={}){if(!("IntersectionObserver"in window))return pe;this.root=r,this.threshold=n,this.rootMargin=i,this.trackingInstance=t,this._onImpression=a,this._onObservation=s,this._onUnobservation=c;const u={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),u),this.observeComponents(o)}observeComponents(e=[]){this.intersectionObserverInstance&&e.forEach(e=>{this.intersectionObserverInstance.observe(e),this._onObservation(e)})}unobserveComponents(e=[]){e.forEach(e=>{this.intersectionObserverInstance.unobserve(e),this._onUnobservation(e)})}_isNodeVisible(e){return e.intersectionRatio>=this.threshold}_handleObservedNodes(e){if(this.intersectionObserverInstance){const t=e.filter(e=>this._isNodeVisible(e)).map(({target:e})=>e);t.length>0&&(this._onImpression({trackingInstance:this.trackingInstance,visibleElements:t}),this.unobserveComponents(t))}}handleDynamicElements(e=[]){this.intersectionObserverInstance&&e.length>0&&this.observeComponents(e)}}function fe({trackingInstance:e,visibleElements:t}){const n=t.map(e=>e.getAttribute("data-impression-id")).filter(e=>e);n.length>0&&function(e,t){const n=E(document),r={};n&&(r.interfaceLocale=n);const i={header:{},requestHeader:r,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",i)}(e,n)}function ge(e){e.removeAttribute("data-impression-id")}const me=/iPad|iPhone|iPod/;function ve(){var e;e=navigator.userAgent,me.test(e)&&k(document.querySelectorAll(".app-store-link")).forEach(e=>{e.href&&e.addEventListener("click",e=>function(e){if(!e)throw Error("The given context is not valid");const t={timezoneOffset:(new Date).getTimezoneOffset(),screenWidth:window.screen.width,screenHeight:window.screen.height,devicePixelRatio:window.devicePixelRatio,currentContext:e};try{navigator.sendBeacon(S("/transactional-routing/createguestdeferreddeeplink","csrfToken",b(P("JSESSIONID"))),JSON.stringify(t))}catch(e){}}(e.currentTarget.pathname))})}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be,we,Ie,Ce,Te={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},ke="GUEST",Ae="MEMBER",_e=0,Se=1,Pe=2,Ne=(Ee(be={},ke,"li_gc"),Ee(be,Ae,"li_mc"),be),Re=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in ye(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},Te)t[o]=t[o]||_e,t[o]!==_e&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Se||t[o]===_e&&i===Se},Oe=(we=[Te.ADVERTISING,Te.ANALYTICS_AND_RESEARCH,Te.FUNCTIONAL],Ie=[_e,Se,Pe,_e],Ce=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(Ce);if(!n)return{error:"Invalid consent body encoding",consent:new Re};for(var r=parseInt(n[1],10),i={},o=0;o<we.length;o++)i[we[o]]=Ie[r>>2*o&3];var a=new Date(1e3*parseInt(n[2],10)),s=parseInt(n[3],10),c=_e;return s>=0&&s<=3&&(c=Ie[s]),{error:null,consent:new Re(i,a,t,c)}}}),Le=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),De=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));if(n&&n.length>1)return n[1]},Me=function(e,t){var n=De(Ne[e],t);return n?xe(n,e):De(Ne[ke],t)||De(Ne[Ae],t)?Ue(Pe):Ue(Se)},Ue=function(e){var t={};for(var n in Te)t[n]=e;return{error:null,consent:new Re(t,null,null,e)}},xe=function(e,t){var n=atob(e).match(Le);if(!n)return{error:"Invalid consent encoding",consent:new Re};var r=parseInt(n[1],10),i=n[2];switch(r){case 1:return Oe.parseConsentBody(i,t);default:return{error:"Invalid encoded consent version ".concat(r),consent:new Re}}};const je={"linkedin.com":"linkedin.com","linkedin-ei.com":"linkedin-ei.com"};let qe="";["csrftoken","midtoken","session_key","username"].forEach(e=>{qe+="(".concat(e,"=[^&]*&?)|(").concat(e,"%3d(?!%26|&)[\\w-]+(%26|&)?)|")}),qe=qe.substring(0,qe.length-1);const Fe=new RegExp(qe,"gi");class He{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.trackPageview,n=e.dimension5,r=e.trackerId,i=void 0===r?"UA-62256447-1":r,o=e.cookieDomain,a=e.useLocationForDP,s=e.usePageTitle;if(!t)throw new Error("Please provide a valid page key for GA tracking");this._processConsent()&&this._init(t,n,i,o,a,s)}_init(e,t,n,r,i,o){this.trackPageview=e,this.dimension5=t,this.trackerId=n,this.useLocationForDP=i,this.usePageTitle=o,this.currentTopDomain=window.location.hostname.split(".").slice(1).join("."),je[this.currentTopDomain]&&(this.cookieDomain=r||this.currentTopDomain,He.onload(this._loadAndFireGA.bind(this)))}_processConsent(){const e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e="true"===De("liap",t)?De(Ne[Ae],t)?Ae:ke:De(Ne[ke],t)?ke:Ae),Me(e,t)}().consent.optedInConsentMap,t=e[Te.ANALYTICS_AND_RESEARCH],n=e[Te.ADVERTISING];return t&&n}static onload(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}_loadGA(){const e="//platform.".concat(this.currentTopDomain,"/js/analytics.js");this.scriptLoaded||(!function(e,t,n,r,i,o,a){e.GoogleAnalyticsObject=i,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,o=t.createElement(n),a=t.getElementsByTagName(n)[0],o.async=1,o.src=r,a.parentNode.insertBefore(o,a)}(window,document,"script",e,"ga"),this.scriptLoaded=e)}_fireGA(){let e=[location.protocol,"//",location.host,location.pathname].join("");const t=this.cookieDomain,n=this.usePageTitle?document.title:"LinkedIn";e+=this._getQueryString(),window.ga("create",this.trackerId,{cookieDomain:t}),window.ga("set","referrer",document.referrer),window.ga("set","location",e),window.ga("set","title",n),window.ga("set","forceSSL",!0),window.ga("set","anonymizeIp",!0),this.dimension5&&window.ga("set","dimension5",this.dimension5);const r="true"===this.getCookie("liap")?"1":"0";window.ga("set","dimension25",r),window.ga("set","dimension24",e);const i=this.useLocationForDP?e:this.trackPageview;window.ga("send","pageview",{page:i})}_getQueryString(){return location.search.replace(Fe,"")}getCookie(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}_loadAndFireGA(){this._loadGA(),this._fireGA()}}var Be=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(I((function(e,t){!function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n,r={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},i={GUEST:"GUEST",MEMBER:"MEMBER"},o={UNAVAILABLE:0,ACCEPTED:1,DENIED:2},a=(t(n={},i.GUEST,"li_gc"),t(n,i.MEMBER,"li_mc"),n),s=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},r)t[s]=t[s]||o.UNAVAILABLE,t[s]!==o.UNAVAILABLE&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===o.ACCEPTED||t[s]===o.UNAVAILABLE&&a===o.ACCEPTED},c=function(){var e=[r.ADVERTISING,r.ANALYTICS_AND_RESEARCH,r.FUNCTIONAL],t=[o.UNAVAILABLE,o.ACCEPTED,o.DENIED,o.UNAVAILABLE],n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";"));return{parseConsentBody:function(r,i){var a=r.match(n);if(!a)return{error:"Invalid consent body encoding",consent:new s};for(var c=parseInt(a[1],10),u={},l=0;l<e.length;l++)u[e[l]]=t[c>>2*l&3];var d=new Date(1e3*parseInt(a[2],10)),p=parseInt(a[3],10),h=o.UNAVAILABLE;return p>=0&&p<=3&&(h=t[p]),{error:null,consent:new s(u,d,i,h)}}}}(),u=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),l=function(e){var t=document.cookie.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));if(t&&t.length>1)return t[1]},d=function(e){var t={};for(var n in r)t[n]=e;return{error:null,consent:new s(t,null,null,e)}},p=function(){return document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)[1]},h=function(e,t){var n=atob(e).match(u);if(!n)return{error:"Invalid consent encoding",consent:new s};var r=parseInt(n[1],10),i=n[2];switch(r){case 1:return c.parseConsentBody(i,t);default:return{error:"Invalid encoded consent version ".concat(r),consent:new s}}},f=function(e){return e||(e="true"===l("liap")?l(a[i.MEMBER])?i.MEMBER:i.GUEST:l(a[i.GUEST])?i.GUEST:i.MEMBER),function(e){var t=l(a[e]);return t?h(t,e):l(a[i.GUEST])||l(a[i.MEMBER])?d(o.DENIED):d(o.ACCEPTED)}(e)};e.NON_ESSENTIAL_CATEGORIES=r,e.USER_MODE=i,e.getBannerData=function(e){var t=f(e),n=t.consent,r=e||n.userMode||i.GUEST;return{showBanner:!t.error&&!n.consentAvailable,userMode:r,managePreferenceUrl:function(e){var t=e===i.MEMBER?"settings/member-cookies":"mypreferences/g/guest-cookies";return"https://www.".concat(p(),"/").concat(t)}(r)}},e.getCookieConsent=f,e.parseEncodedConsent=h,e.updateCookieConsent=function(e,t){var n=e.optedInConsentMap,i=e.updateSettings,a=e.userMode;t=t||function(e,t){},e.optedInConsentMap||t("optedInConsentMap is a required option",null);var s=new XMLHttpRequest;s.open("POST","https://www.".concat(p(),"/cookie-consent/")),s.setRequestHeader("Content-Type","application/json"),s.withCredentials=!0,s.onload=function(){200!==s.status?t("Request failed with status ".concat(s.status),null):t(null,s)},s.onerror=function(){t("Request failed with an error",s)};var c={UPDATE_SETTINGS:i,USER_MODE:a,CATEGORIES:{}};for(var u in r){var l=void 0;!0===n[u]?l=o.ACCEPTED:!1===n[u]&&(l=o.DENIED),c.CATEGORIES[u]=l}s.send(JSON.stringify(c))},Object.defineProperty(e,"__esModule",{value:!0})}(t)})));function Ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ze(e,t,n){return t&&Ve(e.prototype,t),n&&Ve(e,n),e}function Ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}function We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=We(e);if(t){var i=We(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Qe(this,n)}}function Ye(e,t,n){return(Ye="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=We(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var $e=null;function Ze(e){if(!$e){var t={appId:e.getAppId(),disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05};e.getTrackingCode()&&(t.userRequestHeaderProperties={trackingCode:e.getTrackingCode()}),$e=C.AppTrackingInstance.createFromPageKey(t,e.getPageKey())}return $e.generateTrackingId=C.generateTrackingId,$e}function et(e){var t=Ze(),n={header:{},requestHeader:{},alertUrn:e.getAlertId(),actionType:"DISMISS"};t.fireTrackingEvent("AlertActionEvent",n)}var tt=Object.freeze({TERMS_AND_CONDITIONS:0,COOKIE_POLICY:1,COOKIE_USAGE:2,MAINTENANCE:3,EMAIL_STATUS:4,SUBSCRIPTION:5,IE_DEPRECATION_BANNER:6,UNKNOWN:7,COOKIE_CONSENT:8}),nt=(Object.freeze({TERMS_AND_CONDITIONS:501,COOKIE_POLICY:500,COOKIE_USAGE:500,MAINTENANCE:100,EMAIL_STATUS:300,SUBSCRIPTION:400,IE_DEPRECATION_BANNER:99,UNKNOWN:200}),Object.freeze({alertType:"type",severity:"severity",alertId:"alert-id",actionType:"action-type",actionUrl:"action-url"}));function rt(e,t){for(var n=e;null!=n;){if(n.classList&&n.classList.contains(t))return!0;n=n.parentNode}return!1}function it(e){var t=document.cookie.match("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)"));return t?t[1]:void 0}function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"customEvent",t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var at=1,st=2,ct=0,ut="artdeco-global-alert__dismiss",lt="artdeco-global-alert-action",dt="artdeco-global-alert__content";function pt(e){var t=e.target,n=t instanceof Element&&t.parentNode,r="artdeco-global-alert__responsive-container--scrollable-effect";if(n instanceof Element&&t instanceof Element){var i=t.offsetHeight,o=t.scrollHeight,a=t.scrollTop;if(o>i){var s=a+i;n.classList.add("".concat(r)),n.classList.remove("".concat(r,"-only-top")),n.classList.remove("".concat(r,"-only-bottom")),s===i&&n.classList.add("".concat(r,"-only-bottom")),s===o&&n.classList.add("".concat(r,"-only-top"))}}}var ht=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ke(this,e),this._el=t,this._state=ct,this._initialHeight=this._el.offsetHeight,this._alertType=this._el.getAttribute(nt.alertType),this._id=this._el.getAttribute(nt.alertId),this._elDismissBtn=this._el.querySelector(".".concat(ut)),this._trackingOptions=n,this.init()}return ze(e,[{key:"_makeAlertAccessible",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._el.setAttribute("aria-hidden",!e),this._el.style.setProperty("visibility",e?"visible":"hidden")}},{key:"init",value:function(){var e=this;this._el.style.setProperty("height","0px"),this._makeAlertAccessible(!1),this._el.addEventListener("click",(function(t){var n=t.target;rt(n,ut)?(e.dismissAction(),et(e)):rt(n,lt)&&e.handleAlertAction(t)}))}},{key:"getTrackingOptions",value:function(){return this._trackingOptions}},{key:"getAlertNode",value:function(){return this._el}},{key:"setHeight",value:function(e){this._el.style.setProperty("height",e),this._el.style.setProperty("visibility","visible")}},{key:"getInitialHeight",value:function(){return this._initialHeight}},{key:"getAlertType",value:function(){return this._alertType}},{key:"getAlertId",value:function(){return this._id}},{key:"isInactive",value:function(){return!(this._state===at||this._state===st)}},{key:"visited",value:function(){this._state=at,this._makeAlertAccessible(!1)}},{key:"activate",value:function(){var e,t,n,r=this._trackingOptions,i=r.enableControlInteractionEvents,o=r.controlInteractionEventsPrefix;this._state=st,e=this,t=Ze(),n={header:{},requestHeader:{},alertUrn:e.getAlertId()},t.fireTrackingEvent("AlertImpressionEvent",n),this._makeAlertAccessible(!0),this._el.focus();var a,s,c,u=this._el.querySelector(".".concat(dt));if(u instanceof Element){var l=(a=pt,s=200,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(){clearTimeout(c),a.apply(void 0,t)};clearTimeout(c),c=setTimeout(r,s)});u.addEventListener("scroll",l)}u.dispatchEvent(ot("scroll")),i&&this._el.querySelectorAll("button, a").forEach((function(e){var t=e.tagName,n=e.getAttribute("data-tracking-control-name");if(n)n=n.replace("urn:li:control:",""),e.setAttribute("data-tracking-control-name",n),e.setAttribute("data-control-name",n);else{var r="a"===t.toLowerCase()?"alert-link-cta":"alert-dismiss-btn-cta";e.setAttribute("data-tracking-control-name","".concat(o,"-").concat(r))}}))}},{key:"dismissAction",value:function(){}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(nt.actionType),r=t.getAttribute(nt.actionUrl);r=r&&q(r);var i=ot("AlertActionClick");switch(n){case"LINK":r?window.location.assign(r):t.dispatchEvent(i);break;case"ACCEPT":r&&function(e){if(e){var t=document&&document.cookie.match(/(?:^|; *)JSESSIONID=([^;]*)(?:;|$)/),n=t?t[1]:null;if(n){var r=new XMLHttpRequest;r.open("POST",e),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("Csrf-Token",n),r.withCredentials=!0,r.onload=function(){},r.send(JSON.stringify({action:"ACCEPT"}))}}}(r),t.dispatchEvent(i);break;case"DENY":this.dismissAction(),et(this),t.dispatchEvent(i)}}}]),e}();function ft(){try{var e=Be.getBannerData();return e.isActive=!(!it("li_gc")&&!it("li_mc")),e}catch(e){return console.error("invalid domain",document.domain),{}}}function gt(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={},n=Be.NON_ESSENTIAL_CATEGORIES;return Object.keys(n).forEach((function(n){t[n]=e})),{optedInConsentMap:t}}var mt=function(e){Ge(n,e);var t=Xe(n);function n(){return Ke(this,n),t.apply(this,arguments)}return ze(n,[{key:"init",value:function(){Ye(We(n.prototype),"init",this).call(this),ft().showBanner||this.visited()}},{key:"handleAlertAction",value:function(e){var t=e.target,n=t.getAttribute(nt.actionType),r=ft().managePreferenceUrl,i=t.getAttribute(nt.actionUrl);i=i&&q(i)||r;var o=ot("AlertActionClick");switch(n){case"LINK":i?Be.updateCookieConsent(gt(),(function(){window.location.assign(i)})):t.dispatchEvent(o);break;case"ACCEPT":Be.updateCookieConsent(gt(!0),(function(){})),t.dispatchEvent(o);break;case"DENY":this.dismissAction(),et(this),t.dispatchEvent(o)}}}]),n}(ht),vt="LIcookiePolicyDisplays";function yt(e){try{window.localStorage.setItem(vt,e)}catch(t){document.cookie="".concat(vt,"=").concat(e,";path=/")}}function Et(){var e,t,n;try{e=window.localStorage.getItem(vt)}catch(r){t=vt,e=((n=document.cookie.match("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")))?n[1]:void 0)||0}return parseInt(e,10)||0}var bt=function(e){Ge(n,e);var t=Xe(n);function n(){return Ke(this,n),t.apply(this,arguments)}return ze(n,[{key:"init",value:function(){var e=ft();Ye(We(n.prototype),"init",this).call(this),(e.isActive||Et()>=3)&&Ye(We(n.prototype),"visited",this).call(this)}},{key:"activate",value:function(){Ye(We(n.prototype),"activate",this).call(this),yt(Et()+1)}},{key:"dismissAction",value:function(){Ye(We(n.prototype),"dismissAction",this).call(this),yt(3)}}]),n}(ht);var wt=function(){function e(t){Ke(this,e),this._trackingOptions=t}return ze(e,[{key:"getAlertInstance",value:function(e){switch(function(e){return tt[e.getAttribute(nt.alertType)]}(e)){case tt.COOKIE_USAGE:return new bt(e,this._trackingOptions);case tt.COOKIE_CONSENT:return new mt(e,this._trackingOptions);default:return new ht(e,this._trackingOptions)}}}]),e}(),It=function(){function e(t){Ke(this,e);var n=t.appId,r=t.pageKey,i=t.trackingCode;this._appId=n,this._pageKey=r,this._trackingCode=i}return ze(e,[{key:"getAppId",value:function(){return this._appId}},{key:"getPageKey",value:function(){return this._pageKey}},{key:"getTrackingCode",value:function(){return this._trackingCode}}]),e}();"undefined"!=typeof window&&"undefined"!=typeof document&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var Ct="artdeco-global-alert-container",Tt="global-alert-offset",kt="artdeco-global-alert",At="artdeco-global-alert__dismiss",_t="artdeco-global-alert-action",St="transition-in",Pt="transition-out",Nt=function(){function e(t){var n=t.appId,r=t.pageKey,i=t.trackingCode,o=t.enableControlInteractionEvents,a=void 0!==o&&o,s=t.controlInteractionEventsPrefix,c=void 0===s?"global-alerts":s;if(Ke(this,e),!n)throw new Error("Missing config - appId");if(!r)throw new Error("Missing config - pageKey");if(this._el=document&&document.querySelector("#".concat(Ct)),this._elOffsetList=document.querySelectorAll(".".concat(Tt)),this._elAlertList=document.querySelectorAll(".".concat(kt)),this._alertInstance=[],this._currentActiveAlert=void 0,this._alertFactoryInstance=new wt({enableControlInteractionEvents:a,controlInteractionEventsPrefix:c}),this._initalBodyOffset=parseInt(document.body.style.getPropertyValue("padding-top"),10)||0,this._getTrackingInstance=Ze(new It({appId:n,pageKey:r,trackingCode:i})),!this._el&&!this._elAlertList.length)return!1;this.init()}return ze(e,[{key:"init",value:function(){var e=this;this._elAlertList.forEach((function(t){e._alertInstance.push(e._alertFactoryInstance.getAlertInstance(t))})),this._el.classList.add(St),document.body.classList.add(St),this._el.addEventListener("click",(function(t){var n=t.target;rt(n,At)&&(e.dismissAlert(n),e.activateNextAlert())})),this._el.addEventListener("AlertActionClick",(function(t){var n=t.target;rt(n,_t)&&(e.dismissAlert(n),e.activateNextAlert())})),this.activateNextAlert()}},{key:"activateNextAlert",value:function(){var e;this._alertInstance.some((function(t){return!!t.isInactive()&&(e=t,!0)})),this._currentActiveAlert&&this._currentActiveAlert.visited(),e&&e.activate(),this._currentActiveAlert=e,this._currentActiveAlert?this.updateBodyOffset():this.destroy()}},{key:"updateBodyOffset",value:function(){var e=this._currentActiveAlert.getInitialHeight();document.body.style.setProperty("padding-top","".concat(e+this._initalBodyOffset,"px")),this._elOffsetList.forEach((function(t){t.style.setProperty("top","".concat(e,"px"))})),this._el.style.setProperty("height","".concat(e,"px")),this._currentActiveAlert.setHeight("".concat(e,"px"))}},{key:"dismissAlert",value:function(e){var t=e.closest(".".concat(kt));t.classList.add(Pt),t.style.setProperty("height","0px")}},{key:"destroy",value:function(){var e=this._el;this._el.classList.add(Pt),document.body.classList.add(Pt),document.body.style.setProperty("padding-top","".concat(this._initalBodyOffset,"px")),this._elOffsetList.forEach((function(e){e.style.setProperty("top","0px")})),this._el.style.setProperty("height","0px"),this._alertInstance=[],this._el=void 0,setTimeout((function(){e.remove(),document.body.classList.remove(St),document.body.classList.remove(Pt)}),500)}}]),e}();class Rt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||"[object Function]"!=={}.toString.call(e))throw new Error("Please provide a valid tracking call back function");this.memberId=t,this.trackingCallback=e}getInstalledApps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return"getInstalledRelatedApps"in e?e.getInstalledRelatedApps().then(t=>(this._fireAppDetectionEvent(t,e),t)):Promise.resolve([])}_fireAppDetectionEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator;const n=e.map(e=>({appId:e.id.toUpperCase().replace(/\./g,"_"),appVersion:e.version,platform:e.platform})),r={header:{memberId:this.memberId},requestHeader:{browserId:this._getBrowserId(),userAgent:t.userAgent||""},installedAppList:n},i=this._getQueryParam(window.location.href,"originalReferer");i&&(r.requestHeader.referer=i),this.trackingCallback("AppDetectionEvent",r)}_getBrowserId(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).cookie.match(/bcookie=([^;]*)/),t=e?e[1].replace(/^"(.*)"$/,"$1"):"";return t&&t.includes("&")&&t.split("&")[1]||""}_getQueryParam(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}}for(var Ot,Lt=(function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}}(Ot={exports:{}}),Ot.exports),Dt=[],Mt=0;Mt<256;++Mt)Dt[Mt]=(Mt+256).toString(16).substr(1);var Ut=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||Lt)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||function(e,t){var n=t||0,r=Dt;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}(i)};function xt(){return function(e){return"undefined"!=typeof btoa?btoa(String.fromCharCode.apply(null,e)):"undefined"!=typeof Buffer?Buffer.from(String.fromCharCode.apply(null,e),"binary").toString("base64"):function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,a=o%3,s=o-a;i<s;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(a){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}(e)}(Ut(null,new Uint8Array(16),0))}function jt(e,t){return{pageUrn:Ft(e),trackingId:t||xt()}}function qt(e,t){return"urn:li:control:"+e+"-"+t}function Ft(e){return"urn:li:page:"+e}function Ht(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}var Bt="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Trident")>-1,Kt="PageViewEvent",Vt=function(){function e(e){this.host=e,this.trackingEventListeners=[],this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var t=e.batching;this.maxQueueSize=t&&t.maxSize||1,this.flushDebounceTime=t&&t.debounceTime||0}return e.prototype.on=function(e){this.trackingEventListeners.push(e)},e.prototype.fireEvent=function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);if(function(e){return!!e.meta.context}(t)){var n=t.meta.context=Ht(t.meta.context,this.host.api);if(this.preContextQueue.length>0&&(this.queue=this.queue.concat(this.populatePreContextQueue(n)),this.preContextQueue=[]),this.host.batching)return"function"==typeof t.body&&(t.body=t.body(n)),this.enqueue(t);var r=this.queue.concat([t]);return this.queue=[],this.sendPayload(r)}return this.preContextQueue.push(t),this.host.api.Promise.resolve(!0)},e.prototype.callOnDestroy=function(e){this.unloadHandlers.push(e)},e.prototype.destroy=function(){this.trackingEventListeners=[],this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush()},e.prototype.forceFlush=function(){this.queue=this.queue.concat(this.populatePreContextQueue({pageInstance:jt("unknown"),pageKey:"unknown"})),this.preContextQueue=[],this.flush(!0)},e.prototype.envelop=function(e,t){return{eventBody:t,eventInfo:"string"==typeof e?{appId:this.host.appId,eventName:e,topicName:e}:this.host.api.assign({appId:this.host.appId},e)}},e.prototype.getGenericEventBody=function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,a=o.location,s=o.document,c=o.assign,u=e.meta.context,l=u.pageKey,d=u.pageInstance,p="function"==typeof e.body?e.body(e.meta.context):e.body,h=("string"==typeof(t=e.id)?t===Kt:t.eventName===Kt)&&p.requestHeader&&p.requestHeader.pageKey||l,f=null;"string"!=typeof i&&null!==this.host.locale||(f=i);var g={interfaceLocale:f,pageKey:h,path:a.pathname+a.search,referer:s.referrer},m={header:c({pageInstance:d,time:e.meta.time,version:r},e.meta.header||{}),requestHeader:c(g,e.meta.requestHeader||{})};return this.host.api.assign(p,m)},e.prototype.populatePreContextQueue=function(e){return this.preContextQueue.map((function(t){return t.meta.context=e,t}))},e.prototype.trigger=function(e){this.trackingEventListeners.forEach((function(t){return t(e)}))},e.prototype.requestFlush=function(e){var t=this;e((function(n){n.timeRemaining()>5||n.didTimeout?t.forceFlush():t.requestFlush(e)}),{timeout:1e4})},e.prototype.flush=function(e){void 0===e&&(e=!1);var t=this.host.api.requestIdleCallback;if(e||!t){var n=this.queue;this.queue=[],n.length>0&&this.sendPayload(n)}else this.requestFlush(t)},e.prototype.enqueue=function(e){return this.queue.push(e),this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(this.flush.bind(this),this.flushDebounceTime)),this.host.api.Promise.resolve(!0)},e.prototype.sendPayload=function(e){var t=this,n=e.map((function(e){var n=t.getGenericEventBody(e),r=t.envelop(e.id,n);return t.trigger(r),r})),r=this.host,i=r.inactive,o=r.endpoint,a=r.api,s=a.sendBeacon,c=a.fetch,u=a.Promise;if(i)return u.resolve(!0);var l=JSON.stringify(n);if(s){var d=!1;try{d=s(o,l)}catch(e){if("object"!=typeof e||"Failed to execute 'sendBeacon()' on 'Window': Invalid argument."!==e.message)throw e&&(e.tags=["tracking:sendbeacon"]),e}if(d)return u.resolve(d)}return c(o,{body:l,credentials:"same-origin",headers:[["content-type","application/json"]],method:"POST",mode:"cors"}).catch((function(e){if("object"==typeof e){if(Bt)return!1;e.tags=["tracking:fetch"]}throw e}))},e}();function zt(e){if(!e)return{};var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu);e.external_control&&(r="urn:li:externalControl:"+decodeURIComponent(e.external_control),n=!0);var i=function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=i&&{pageInstance:i,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:"+a,trackingId:e.external_page_instance},pageKey:a},n=!0}var s=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:"+decodeURIComponent(e.external_app),trackingId:e.external_app_instance,version:""}:void 0;return s&&((o=o||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}var Gt=function(){function e(e,t){if(this.transporter=e,this.delegate=t,this.appState={},this.customTransporters={},t&&t.customTransporterHosts)for(var n in t.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(t.customTransporterHosts,n)){var r=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[n]=new Vt(this.transporter.host.api.assign(r,t.customTransporterHosts[n]))}}return Object.defineProperty(e.prototype,"host",{get:function(){return this.transporter.host},enumerable:!0,configurable:!0}),e.prototype.getCurrentContext=function(){if(this.currentContext)return Ht(this.currentContext,this.host.api)},e.prototype.setInitialPageInstanceId=function(e){this.initialPageInstanceId=e},e.prototype.navigate=function(e,t){void 0===t&&(t={});var n=this.navMetaFromSeed(e,zt(t));return this.setCurrentContext(n.to),this.fireNavEvents(n)},e.prototype.setCurrentContext=function(e){this.currentContext=Ht(e,this.host.api)},e.prototype.updateAppState=function(e){this.host.api.assign(this.appState,e)},e.prototype.fireCIE=function(e,t,n,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var o=qt(n.pageKey,e),a={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),a}),{context:n})},e.prototype.fireEvent=function(e,t,n){return this.fireEnvelope(this.generateEnvelope(e,t,n))},e.prototype.fireEnvelope=function(e){var t=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(t){var n=t.meta.transporterKey,r=n?this.customTransporters[n]:this.transporter;if(!r)throw new Error("Could not find custom transporter: "+n);return r.fireEvent(t)}return this.host.api.Promise.resolve(!0)},e.prototype.generatePageInstance=function(e,t){return{pageUrn:"urn:li:page:"+e,trackingId:t||xt()}},e.prototype.firePVE=function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=t?this.host.api.assign(t,r):r,o=this.generateEnvelope("PageViewEvent",i,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)},e.prototype.destroy=function(){this.transporter.destroy()},e.prototype.forceFlush=function(){this.transporter.forceFlush()},e.prototype.generateControlUrn=function(e,t){return qt((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)},e.prototype.fireRawCIE=function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}},e.prototype.generateNavigationEvent=function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}},e.prototype.getTrackingCode=function(){return this.previousAppContext&&this.previousAppContext.pageKey},e.prototype.navMetaFromSeed=function(e,t){var n="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}},e.prototype.fireNavEvents=function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var a=r&&r.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])},e.prototype.generateEnvelope=function(e,t,n){void 0===n&&(n={});var r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&Ht(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}},e}(),Wt=function(){function e(e){this.core=e;var t=this.core.host.api.location.protocol;this.protocol=t.substring(0,t.length-1)}return e.prototype.reportError=function(e,t,n){var r=this;void 0===t&&(t=[]);var i=(void 0===n?{}:n).callTreeId,o=void 0===i?"":i,a=e.message,s=e.name,c=e.stack,u=void 0===c?"":c,l=e.fileName,d=void 0===l?"":l,p=e.lineNumber,h=void 0===p?0:p,f=e.columnNumber,g=void 0===f?0:f,m=this.core.host,v=m.appId,y=m.appVersion,E=m.service,b=m.serviceInstance,w=m.treeID,I=void 0===w?"":w,C=m.api.location,T=C.host,k=C.pathname,A=C.search,_=C.hash,S=void 0===_?"":_;return this.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:v,e:{c:g,l:h,m:a,s:u,t:s,u:d},h:S,l:r.protocol,o:T,p:k,pageKey:e.pageKey,q:A,service:E,serviceInstance:b,serviceVersion:y,t:t,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:o}}))},e.prototype.flush=function(){this.core.forceFlush()},e.prototype.destroy=function(){this.core.destroy()},e}();function Jt(e){if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var t=e.now(),n=e.timing.navigationStart;return Math.round(t+n)}return Date.now()}function Qt(e){var t=e||performance;return Math.round(t.now())}function Xt(e,t){return{node:e,labels:t}}function Yt(e,t){return{edges:e,value:t}}var $t=/,+$/;function Zt(e){return 0===(e=Math.round("number"==typeof e?e:0))?"":e.toString(36)}function en(e,t){return e.reduce((function(e,n){var r=t(n),i=n.name;return i in e?e[i]+="|"+r:e[i]=r,e}),{})}var tn=/(?=_|\/)/;function nn(e){for(var t=Yt([]),n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];rn(t,i.split(tn),e[i])}return function e(t){return t.edges.reduce((function(t,n){var r=n.node;return t[n.labels.join("")]=void 0===r.value?e(r):r.value,t}),{})}(t)}function rn(e,t,n){for(var r=0,i=e.edges;r<i.length;r++){for(var o=i[r],a=0;a<t.length&&a<o.labels.length&&o.labels[a]===t[a];)a++;if(0!==a){if(a===o.labels.length){if(void 0!==o.node.value){var s=Xt(o.node,[""]),c=Xt(Yt([],n),t.slice(a));o.node=Yt([s,c])}else rn(o.node,t.slice(a),n);return}var u=t.slice(0,a),l=a===t.length?[""]:t.slice(a),d=o.labels.slice(a),p=Xt(o.node,d);return c=Xt(Yt([],n),l),o.node=Yt([p,c]),void(o.labels=u)}}e.edges.push(Xt(Yt([],n),t))}function on(e){return nn(en(e,sn))}var an={css:"a",navigation:"b",xmlhttprequest:"c",fetch:"d",beacon:"e",other:"f",img:"g",link:"h",script:"i",html:"j",image:"k",iframe:"l",subdocument:"m"};function sn(e){var t=e.initiatorType||"other",n=[an[t]||t,e.nextHopProtocol||"",Zt(e.startTime),Zt(e.duration),Zt(e.fetchStart),Zt(e.domainLookupStart),Zt(e.domainLookupEnd),Zt(e.connectStart),Zt(e.connectEnd),Zt(e.secureConnectionStart),Zt(e.requestStart),Zt(e.responseStart),Zt(e.responseEnd),Zt(e.transferSize),Zt(e.encodedBodySize),Zt(e.decodedBodySize),Zt(e.workerStart),Zt(e.redirectStart),Zt(e.redirectEnd)];return(n=e.resourceTreeId?["*0"+e.resourceTreeId].concat(n):n).join(",").replace($t,"")}function cn(e,t,n){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){r.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){r.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),r}var un={MEASURE:0,MARK:1};function ln(e){return[un[e.entryType],Zt(e.startTime),Zt(e.duration)].join(",").replace($t,"")}function dn(e){return[Zt(e.startTime),Zt(e.duration)].join(",")}function pn(e){return nn(en(e,dn))}var hn=function(){function e(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}return e.prototype.reset=function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]},e.prototype.attachTreeIds=function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name);n&&(t.resourceTreeId=n)}))},e.prototype.getData=function(e){var t,n=this.userTimingEntries,r=this.longTasks,i=this.resourceTimingEntries;return{userTimingEntries:e?(t=n,nn(en(t,ln))):n,longTasks:e?pn(r):r,resourceTimingEntries:e?on(i):i.map(gn)}},e}(),fn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function gn(e){return fn.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function mn(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function vn(e){return[Zt(e.renderStart),Zt(e.renderEnd),e.viewId].join(",").replace($t,"")}var yn,En,bn=function(){function e(e,t,n){this.hostApis=e,this.statics=t,this.options=n,this.renderTimings=new Map,this.urlToTreeId=new Map,this.shouldPingCDN=!1,this.observables=new hn,this.isInitial=!0;var r=this.hostApis,i=r.document,o=r.AbortController,a=i.createElement("a");this.normalizeUrl=function(e,t){return e.href=t,e.href}.bind(this,a),this.getHostname=function(e,t){return e.href=t,e.hostname}.bind(this,a),this.abortController=new o,this.cdnUrls={}}return e.prototype.pingCDN=function(){this.shouldPingCDN=!0},e.prototype.recordTreeId=function(e,t){this.options["enable-rs-timing"]&&this.urlToTreeId.set(this.normalizeUrl(t),e)},e.prototype.recordRenderStart=function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:Jt(this.hostApis.performance)})},e.prototype.recordRenderEnd=function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||Jt(this.hostApis.performance))},e.prototype.startObserving=function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.options["enable-rs-timing"]&&this.emulateResourceTimingObserver(n),this.options["enable-rs-timing"]&&this.processResourceTimings()},e.prototype.stopObserving=function(){this.collectWhilePing&&this.collectWhilePing(),this.clearCollectTimer(!0),this.perfObserver&&this.perfObserver.disconnect(),this.observables.reset()},e.prototype.clearCollectTimer=function(e){this.currentCollect&&(this.currentCollect(e),clearTimeout(this.currentTimer),this.currentCollect=null,this.currentTimer=null)},e.prototype.collect=function(e){var t=this,n=this.isInitial;this.isInitial=!1;var r=this.hostApis,i=r.assign,o=r.PerformanceObserver;this.currentCollect=function(r){var a=Object.create(null);o||(t.observables.userTimingEntries=cn(t.hostApis.performance,t.options,!0),t.options["enable-rs-timing"]&&t.processResourceTimings()),t.observables.attachTreeIds(t.urlToTreeId),t.urlToTreeId.clear(),i(a,t.observables.getData(t.options["compress-timings"]),t.snapshot,t.statics),t.observables.reset(),n?t.chainCollectForInitialLoad(a,e,r):e(a)},this.currentTimer=setTimeout((function(){t.currentCollect(!1),t.currentCollect=null,t.currentTimer=null}),this.options["beacon-timeout"])},e.prototype.chainCollectForInitialLoad=function(e,t,n){var r=this,i=this.hostApis,o=i.assign,a=i.Promise,s=i.performance;if(o(e,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var r=e.timing,i=e.navigation;return r&&i?(t.navigationTimingApi=!0,wn.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),this.statics.pageLoadMode="PARTIAL",this.shouldPingCDN&&!n){this.collectWhilePing=function(){return t(e)};var c=new a((function(e){return setTimeout(e,r.options["async-plugins-timeout"],"timeout")})),u=[];this.shouldPingCDN&&(u.push(this.fetchCDN().then((function(t){return r.statics.usedCDN=t.usedCDN,o(e,t)}))),Object.keys(this.cdnUrls).forEach((function(t){var n=s.now();u.push(r.fetchCdnFromUrl(r.cdnUrls[t]).then((function(r){var i=r.usedCDN,o=i.static_domain,a=i.ip_version,c=i.http_version,u=s.now()-n;e.userTimingEntries.push({entryType:"MEASURE",name:"mark_cdn_"+t+"_"+o+"_"+c+"_"+a,startTime:n,duration:u})})))}))),a.race([a.all(u),c]).then((function(n){"timeout"===n&&r.abortController.abort(),t(e),r.collectWhilePing=null})),this.shouldPingCDN=!1}else t(e)},e.prototype.fetchCDN=function(){for(var e=this.hostApis,t=e.document,n=e.Promise,r=t.querySelectorAll("script"),i=0;i<r.length;i++){var o=r[i].src;if("string"==typeof o&&o.indexOf("licdn")>-1)return this.fetchCdnFromUrl(o)}return n.resolve({usedCDN:{static_domain:"",ip_version:"",http_version:""}})},e.prototype.fetchCdnFromUrl=function(e){var t=this.hostApis,n=t.assign,r=t.fetch,i=this.abortController.signal,o={usedCDN:{static_domain:"",ip_version:"",http_version:""}};return r(e,{method:"HEAD",signal:i}).then((function(e){return n(o.usedCDN,{static_domain:e.headers.get("X-CDN")||"",ip_version:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",http_version:e.headers.get("X-CDN-Proto")||""}),o}),(function(){return o}))},e.prototype.inspectEntryForCdnData=function(e){if(!(e.name.indexOf(".licdn.")<0||(t=e,void 0!==t.transferSize&&0===t.transferSize||t.domainLookupStart===t.domainLookupEnd&&t.connectEnd===t.connectStart&&0===t.secureConnectionStart))){var t,n=this.getHostname(e.name);void 0===this.cdnUrls[n]&&(this.cdnUrls[n]=e.name)}},e.prototype.processResourceTimings=function(){var e=this.hostApis.performance;!function(e,t){"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){e.push(t)})),t.clearResourceTimings())}(this.observables.resourceTimingEntries,e),this.observables.resourceTimingEntries.forEach(this.inspectEntryForCdnData.bind(this))},e.prototype.setupPerformanceObserver=function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,r=e.name,i=e.startTime,o=e.duration;"resource"===n?(t.observables.resourceTimingEntries.push(e),t.inspectEntryForCdnData(e)):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:i,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:i,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:r,startTime:i})}))})),this.observables.userTimingEntries=cn(this.hostApis.performance,this.options,!1);var n=["longtask"];this.options["enable-rs-timing"]&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})},e.prototype.emulateResourceTimingObserver=function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processResourceTimings()})},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e,t={detailedRenderTimingEntries:this.options["compress-timings"]?(e=mn(this.renderTimings),nn(e.reduce((function(e,t){return t.renderName in e?e[t.renderName]+="|"+vn(t):e[t.renderName]=vn(t),e}),{}))):mn(this.renderTimings),networkInformationMetrics:In(this.hostApis.connection)};return this.renderTimings.clear(),t},enumerable:!0,configurable:!0}),e}(),wn=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function In(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.COMPRESS_TIMINGS="compress-timings"}(En||(En={}));var Cn,Tn,kn,An,_n=((yn={})["web-ui-framework"]="EMBER",yn["app-id"]="linkedin.rum.tracking",yn["app-version"]="unknown",yn["is-single-page-app"]=!0,yn["user-timing-mark-enabled"]=!1,yn["user-timing-measure-enabled"]=!0,yn["beacon-source"]="apps",yn["enable-rs-timing"]=!0,yn["async-plugins-timeout"]=5e3,yn["beacon-timeout"]=3e4,yn["compress-timings"]=!1,yn),Sn=function(e,t,n){this.pageLoadMode="INITIAL",this.webUIFramework=t["web-ui-framework"],this.timeSource=t["beacon-source"],this.isSinglePageApp=t["is-single-page-app"],this.appRenderMode=e["app-render-mode"],this.isAppRenderFailed=e["is-app-render-failed"],this.isSSL="https:"===n.api.location.protocol?1:0,this.treeId=n.treeID,this.isFromServiceWorker=n.isFromServiceWorker},Pn=function(e,t){return{name:e,value:void 0===t?-1:0,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Nn=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Rn=!1,On=function(e,t){Rn||"undefined"!=typeof InstallTrigger||(addEventListener("beforeunload",(function(){})),Rn=!0),addEventListener("visibilitychange",(function n(r){"hidden"===document.visibilityState&&(e(r),t&&removeEventListener("visibilitychange",n,!0))}),!0)},Ln=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Dn=new WeakSet,Mn=function(e,t,n){var r;return function(){t.value>=0&&(n||Dn.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Un=function(e,t){var n,r=Pn("CLS",0),i=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),n())},o=Nn("layout-shift",i);o&&(n=Mn(e,r,t),On((function(){o.takeRecords().map(i),n()})),Ln((function(){r=Pn("CLS",0),n=Mn(e,r,t)})))},xn=-1,jn=function(){return"hidden"===document.visibilityState?0:1/0},qn=function(){On((function(e){var t=e.timeStamp;xn=t}),!0)},Fn=function(){return xn<0&&(xn=jn(),qn(),Ln((function(){setTimeout((function(){xn=jn(),qn()}),0)}))),{get timeStamp(){return xn}}},Hn={passive:!0,capture:!0},Bn=new Date,Kn=function(e,t){Cn||(Cn=t,Tn=e,kn=new Date,Gn(removeEventListener),Vn())},Vn=function(){if(Tn>=0&&Tn<kn-Bn){var e={entryType:"first-input",name:Cn.type,target:Cn.target,cancelable:Cn.cancelable,startTime:Cn.timeStamp,processingStart:Cn.timeStamp+Tn};An.map((function(t){t(e)})),An=[]}},zn=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Kn(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,Hn),removeEventListener("pointercancel",r,Hn)};addEventListener("pointerup",n,Hn),addEventListener("pointercancel",r,Hn)}(t,e):Kn(t,e)}},Gn=function(e){["mousedown","keydown","touchstart","pointerdown"].map((function(t){return e(t,zn,Hn)}))},Wn=function(e,t){var n,r=Fn(),i=Pn("FID"),o=function(e){e.startTime<r.timeStamp&&(i.value=e.processingStart-e.startTime,i.entries.push(e),Dn.add(i),n())},a=Nn("first-input",o);n=Mn(e,i,t),a&&On((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&Ln((function(){var r;i=Pn("FID"),n=Mn(e,i,t),An=[],Tn=-1,Cn=null,Gn(addEventListener),r=o,An.push(r),Vn()}))},Jn=function(e,t){var n,r=Fn(),i=Pn("LCP"),o=function(e){var t=e.startTime;t<r.timeStamp&&(i.value=t,i.entries.push(e)),n()},a=Nn("largest-contentful-paint",o);if(a){n=Mn(e,i,t);var s=function(){Dn.has(i)||(a.takeRecords().map(o),a.disconnect(),Dn.add(i),n())};["keydown","click"].map((function(e){addEventListener(e,s,{once:!0,capture:!0})})),On(s,!0),Ln((function(r){i=Pn("LCP"),n=Mn(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,Dn.add(i),n()}))}))}))}},Qn=function(){function e(e,t){this.webVitalsState={},this.targetMetrics=["LCP","FID","CLS"],this.entrySupportRequiredForMetrics={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"},this.observing=!1,this.trackingCore=e,this.rumConfig=t}return e.prototype.startObserving=function(){var e;if(!this.observing){this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageInstance)||jt("unknown"),this.targetMetrics.map(this.initMetric.bind(this)),this.observing=!0,this.targetMetrics.map(this.reportIfNotSupported.bind(this));var t=this.handleMetricUpdate.bind(this);[Jn,Wn,Un].map((function(e){return e(t)})),function(e,t){void 0===t&&(t=!0);addEventListener("visibilitychange",(function n(r){"hidden"===document.visibilityState&&(e(r),t&&removeEventListener("visibilitychange",n,!0))}),!0)}(this.reportAllRemaining.bind(this))}},e.prototype.stopObserving=function(){this.observing=!1},e.prototype.initMetric=function(e){this.webVitalsState[e]={name:e,value:-1,time:-1,reported:!1}},e.prototype.reportIfNotSupported=function(e){var t="undefined"!=typeof PerformanceObserver,n=void 0!==this.entrySupportRequiredForMetrics[e];t&&n||(this.webVitalsState[e].value=-2,this.reportMetric(e))},e.prototype.handleMetricUpdate=function(e){var t=this.webVitalsState[e.name];this.observing&&t&&!t.reported&&(t.value=e.value,this.reportMetric(e.name))},e.prototype.reportMetric=function(e){var t;if(!1===(null===(t=this.webVitalsState[e])||void 0===t?void 0:t.reported)){var n=this.webVitalsState[e],r={basePageTreeId:this.basePageTreeId,name:e,startTime:Qt(this.trackingCore.host.api.performance),duration:this.formatValue(n.value,e),startPageInstance:this.startPageInstance,marks:[],spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},r),n.reported=!0}},e.prototype.reportAllRemaining=function(){var e=this;this.targetMetrics.map((function(t){t in e.webVitalsState&&!e.webVitalsState[t].reported&&e.reportMetric(t)})),this.trackingCore.forceFlush()},e.prototype.formatValue=function(e,t){var n=e;return-1===e||-2===e?n:("CLS"===t&&(n*=1e5),Math.round(n))},e}(),Xn=function(){function e(e,t,n){this.core=n,this.perfTimeWM=new WeakMap,this.boomerangStart=-1,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(n.host.api.assign({},_n),t),this.collector=new bn(n.host.api,new Sn(e,this.config,n.host),this.config),this.collector.startObserving()}return e.prototype.pingCDN=function(){this.collector.pingCDN()},e.prototype.recordTreeId=function(e,t){e&&this.collector.recordTreeId(e,t)},e.prototype.recordRenderStart=function(e,t){this.collector.recordRenderStart(e,t||e)},e.prototype.recordRenderEnd=function(e){this.collector.recordRenderEnd(e)},e.prototype.start=function(){this.collector.clearCollectTimer(!1);var e=Object.create(null);return this.perfTimeWM.set(e,Jt(this.core.host.api.performance)),e},e.prototype.observeWebVitals=function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Qn(this.core,this.config),this.webVitalsObserver.startObserving())},e.prototype.end=function(e,t,n){var r=this;void 0===t&&(t=!1);var i=this.core.host.api,o=i.performance,a=i.assign,s=this.perfTimeWM.get(e);if(void 0===s)throw new Error("The rum token passed in is invalid");this.perfTimeWM.delete(e);var c=Jt(o),u=this.config["app-version"];this.collector.collect((function(e){var i=r.boomerangStart=e.navigationStart||r.boomerangStart,o=e.navigationStart||s,l=c-o;r.core.fireEvent({appId:r.config["app-id"],eventName:"RealUserMonitoringEvent",compressionFormat:r.config["compress-timings"]?"rum":void 0},(function(r){return a({pageKey:n||r.pageKey,isImpactedByHiddenWindow:t,appVersion:u,timeDone:l,navigationStart:o,boomerangStart:i,renderCompleteTime:c},e)}))}))},e.prototype.destroy=function(){var e;this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),this.core.destroy()},e}();"undefined"!=typeof location&&location.search.indexOf("_LI_MEASURE_DEBUG");class Yn{constructor(e){if(!e)throw new Error("JetCore missing required only parameter (`trackingCore`)");this.cwtJetCoreInstance=new Wt(e)}bind(e,t){e||(e=[]),e.push("guest-seo"),window.addEventListener("error",n=>{const r={message:n.error.message,stack:n.error.stack,fileName:n.filename,lineNumber:n.lineno,columnNumber:n.colno};this.cwtJetCoreInstance.reportError(r,e,{callTreeId:t})}),window.addEventListener("unhandledrejection",n=>{const r={message:n.reason};this.cwtJetCoreInstance.reportError(r,e,{callTreeId:t})})}}class $n{constructor({ingraphs:e}={}){if(this.ingraphs=e,!e)throw new Error("ControlInteractionTracking requires an Ingraphs instance");document.body.addEventListener("click",this._handleBodyClicks.bind(this),!0)}_handleBodyClicks(e){const{target:t}=e,n=function(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}(t,"[".concat("data-tracking-control-name","]"));if(null===n)return;const r=n.getAttribute("data-tracking-control-name");n.hasAttribute("data-tracking-client-ingraph")&&this._fireClientIngraphMetric(r)}_fireClientIngraphMetric(e){this.ingraphs.fireCounterIngraphMetric({metricsType:"controlInteractionEvent-".concat(e),sendBeacon:!0})}}const Zn=document.querySelector('meta[name="pageKey"]').content,er=document.getElementById("google-analytics-config"),{useLocationForDp:tr,usePageTitle:nr}=er.dataset;new He({trackPageview:Zn,useLocationForDP:tr,usePageTitle:nr});const rr=document.getElementById("config");let ir,or,ar,sr,cr,ur,lr,dr;function pr(e,t){window[e]&&window[e].resolve?window[e].resolve(t):window[e]=Promise.resolve(t)}rr&&rr.dataset&&(ir=rr.dataset.appId||"seo",or=rr.dataset.appVersion,ar=rr.dataset.callTreeId,sr=rr.dataset.customTrackingCode||void 0,cr=rr.dataset.trackingPageType||void 0,ur="string"==typeof rr.dataset.jetTags&&rr.dataset.jetTags.split(",")||[],lr=rr.dataset.serviceName,dr=void 0!==rr.dataset.enableWebVitals),pr("lazyloader",function(e={}){return J=J||new W(e),J}()),T(()=>{const e=y(document),t=R({appId:ir,trackingCode:sr}),n=new he(window.IntersectionObserver,t,{componentList:[...document.querySelectorAll("[data-impression-id]")],onImpression:fe,onUnobservation:ge});pr("tracking",t),pr("impressionTracking",n),pr("pemTracking",new m("Default - PEM Tracking Instance",(e,n,r)=>t.fireTrackingEvent(e,n,{pageInstance:r})));const r=document.querySelector('meta[name="locale"]').content,i=new Vt({appId:ir,appVersion:or,locale:r,service:lr,treeID:ar,endpoint:"/li/track",api:{AbortController:AbortController,location:window.location,document:document,performance:performance,PerformanceObserver:PerformanceObserver,Promise:Promise,assign:Object.assign,fetch:fetch,sendBeacon:window.sendBeacon}}),o=new Gt(i);o.setCurrentContext({pageKey:e,pageInstance:jt(e,t.generateTrackingId())});const a=[];for(let e=0;e<16;e++){let t=lr.charCodeAt(e);isNaN(t)&&(t=0),a.push(t)}o.updateAppState({applicationViewerUrn:"urn:li:guest",clientApplicationInstance:{applicationUrn:"urn:li:application:(".concat(lr,")"),version:or,trackingId:a}});const s=new Xn({"app-render-mode":"SSRSEO","is-app-render-failed":!1},{"is-single-page-app":!1,"navigation-timing-only":!0,"enable-rs-timing":!0,"enable-cdn-tracking":!0,"enable-pop-tracking":!0,"request-sampling-rate":1,"beacon-timeout":500,"web-ui-framework":"DUST"},o);s.end(s.start()),dr&&s.observeWebVitals();new Yn(o).bind(ur,ar),function(){let e=["c1=2","c2=6402952","c3=","c4=","c5=","c6=","c15="];e.push("".concat("ns_","_t=").concat(Date.now())),e.push("".concat("ns_","c=").concat(document.characterSet||document.defaultCharset||"")),e.push("c8=".concat(v(document.title))),e.push("c7=".concat(v(document.URL)));const t=document.referrer&&document.referrer.split("?")[0]||"";e.push("c9=".concat(v(t)));const n="https://sb.scorecardresearch.com/b?"+e.join("&");let r=new Image;r.src=n}(),O(t,cr);const c=document.querySelector('meta[name="clientSideIngraphs"]');if(c){const{gaugeMetricEndpoint:t,counterMetricEndpoint:n}=c.dataset,r=new de({counterMetricEndpoint:n,gaugeMetricEndpoint:t,pageKey:e});new $n({ingraphs:r}),pr("ingraphTracking",r),r.firePageLoadTimeMetric(),r.fireSeoPageViewMetric(),r.attachWebVitalsMetrics()}if(ve(),document.querySelector(".global-alert-banner")){new Nt({appId:ir,pageKey:e,trackingCode:sr||"",enableControlInteractionEvents:!0})}if(!!document.head.querySelector('link[rel="manifest"]')){pr("appDetection",new Rt((e,n)=>{t.fireTrackingEvent(e,n)}).getInstalledApps())}})}();
