!function(){"use strict";const e=window.encodeURIComponent,t="https://sb.scorecardresearch.com/b?",n="ns_";function i(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function a(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function r(e){return'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function s(){return window.performance&&window.performance.timing&&"function"==typeof window.performance.now?Math.round(window.performance.now())+window.performance.timing.navigationStart:(new Date).getTime()}class c{constructor(e){this._parent=e,this._config=e.getConfig(),this._complete=!1,this.data={}}isComplete(){return this._complete}markComplete(){this._complete=!0}done(){this._complete=!0,this.isAsync()&&this._parent.pluginDone()}resetState(){this._complete=!1,this.data={}}getData(){return this.data}collectData(){}isAsync(){return!1}}class d extends c{constructor(e){super(e)}collectData(){this._readLinkedinData()}_readLinkedinData(){this.data.timeSource=this._config["beacon-source"],this.data.treeId=this._getTreeId(),this._config["commit-id"]&&(this.data.sessionID=this._config["commit-id"]),this.data.isFromServiceWorker=this._getFromServiceWorker(),this.done()}_getTreeId(){let e=document.querySelector('meta[name="treeID"]');return e&&e.getAttribute("content")}_getFromServiceWorker(){let e=document.querySelector('meta[name="fromServiceWorker"]');return e&&"true"===e.getAttribute("content")}}class l extends c{constructor(e){super(e),this._navigationTimingRead=!1,this._navigationTimingFields=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"]}collectData(){this._readNavigationTiming(),this.done()}_readNavigationTiming(){var e,t,n,i;if(!this._navigationTimingRead){if(window.performance&&window.performance.timing&&window.performance.navigation){for(this.data.navigationTimingApi=!0,e=window.performance.timing,t=0;t<this._navigationTimingFields.length;t++)e[n=this._navigationTimingFields[t]]&&(this.data[n]=e[n]);this.data.redirectCount=window.performance.navigation.redirectCount,this.data.navigationType=window.performance.navigation.type}else this.data.navigationTimingApi=!1;if(window.performance&&window.performance.getEntriesByType&&void 0!==(i=window.performance.getEntriesByType("navigation")[0])&&(this.data.workerStart=i.workerStart,"number"==typeof i.fetchStart&&"number"==typeof i.responseEnd&&"number"==typeof i.decodedBodySize&&"number"==typeof i.encodedBodySize&&"number"==typeof i.transferSize)){let e={};e.htmlFetchStart=i.fetchStart,e.htmlResponseEnd=i.responseEnd,e.htmlDecodedBodySize=i.decodedBodySize,e.htmlEncodedBodySize=i.encodedBodySize,e.htmlTransferSize=i.transferSize,this.data.htmlMetrics=e}this._navigationTimingRead=!0}}}class h extends c{constructor(e){super(e),this._imgEntries=[],this._resourceTimingFields={name:!0,entryType:!1,duration:!0,initiatorType:!0,fetchStart:!0,responseEnd:!0,startTime:!0,connectEnd:!0,connectStart:!0,domainLookupEnd:!0,domainLookupStart:!0,redirectEnd:!0,redirectStart:!0,requestStart:!0,responseStart:!0,secureConnectionStart:!0,nextHopProtocol:!0,transferSize:!0,decodedBodySize:!0,encodedBodySize:!0,workerStart:!0},this._requestSamplingRandVal=Math.random(),this._setupResourceTiming()}resetState(){super.resetState(),this._requestSamplingRandVal=Math.random()}collectData(){this._readResourceTiming(),this.done()}addTreeId(e,t){var n;if(this._treeIdUrlParser&&this._rsTimingUrlParser&&(this._treeIdUrlParser.href=t,this._readResourceTiming(),this.data.resourceTimingEntries))for(n=this.data.resourceTimingEntries.length-1;n>=0;n--)if(this._rsTimingUrlParser.href=this.data.resourceTimingEntries[n].name,this._treeIdUrlParser.protocol===this._rsTimingUrlParser.protocol&&this._treeIdUrlParser.host===this._rsTimingUrlParser.host&&this._treeIdUrlParser.pathname===this._rsTimingUrlParser.pathname&&(this._treeIdUrlParser.search===this._rsTimingUrlParser.search||""===this._treeIdUrlParser.search)){this.data.resourceTimingEntries[n].resourceTreeId=e;break}}_isResourceTimingSupported(){return window.performance&&"function"==typeof window.performance.getEntriesByType}_setupResourceTiming(){var e={default:.001,xmlhttprequest:1};if(null!==this._config["rs-sample-rate"]&&"object"==typeof this._config["rs-sample-rate"])for(var t in this._config["rs-sample-rate"])this._config["rs-sample-rate"].hasOwnProperty(t)&&(e[t]=this._config["rs-sample-rate"][t]);this._config["rs-sample-rate"]=e,this._isResourceTimingSupported()&&(this._readResourceTiming(),this._setBufferSize(100),null===window.performance.onresourcetimingbufferfull?window.performance.onresourcetimingbufferfull=this._readResourceTiming.bind(this):null===window.performance.onwebkitresourcetimingbufferfull&&(window.performance.onwebkitresourcetimingbufferfull=this._readResourceTiming.bind(this))),this._treeIdUrlParser=document.createElement("a"),this._rsTimingUrlParser=document.createElement("a")}_clearBuffer(){this._isResourceTimingSupported()&&this._config["enable-rs-timing"]&&(window.performance.clearResourceTimings&&"function"==typeof window.performance.clearResourceTimings?window.performance.clearResourceTimings():window.performance.webkitClearResourceTimings&&"function"==typeof window.performance.webkitClearResourceTimings&&window.performance.webkitClearResourceTimings())}_setBufferSize(e){this._isResourceTimingSupported()&&this._config["enable-rs-timing"]&&(window.performance.setResourceTimingBufferSize&&"function"==typeof window.performance.setResourceTimingBufferSize?window.performance.setResourceTimingBufferSize(e):window.performance.webkitSetResourceTimingBufferSize&&"function"==typeof window.performance.webkitSetResourceTimingBufferSize&&window.performance.webkitSetResourceTimingBufferSize(e))}_readResourceTiming(){var e,t,n,i,a,r,o=!1,s=this.data&&this.data.resourceTimingEntries||[];if(this._isResourceTimingSupported()&&this._config["enable-rs-timing"]){for(e=window.performance.getEntriesByType("resource"),t=0;t<e.length;t++){for(n in i={},e[t])!0===this._resourceTimingFields[n]&&(i[n]=e[t][n]);"img"===i.initiatorType&&this._imgEntries.push(i),null===this._parent._config.xcndUrl&&"script"===i.initiatorType&&(this._parent._config.xcndUrl=i.name),a=Math.random(),r=this._config["rs-sample-rate"][e[t].initiatorType]||this._config["rs-sample-rate"].default,((o=this._requestSamplingRandVal<=this._config["request-sampling-rate"])||a<=r)&&(s.push(i),i.sampleMode="",o&&(i.sampleMode="requestSampled,"),a<=r&&(i.sampleMode+="rand"+r.toString()))}this._clearBuffer(),s.length>0&&(this.data.resourceTimingEntries=s)}}}class u extends c{constructor(e){super(e)}collectData(){this._readUserTimingEntries(),this.done()}_clearUserTimings(){window.performance&&(window.performance.clearMarks&&window.performance.clearMarks(),window.performance.clearMeasures&&window.performance.clearMeasures())}_getUserTimingEntries(e,t){var n,i,a,r=[];for(i=0;i<e.length;i++)(n=e[i])&&((a={}).entryType=t,a.name=n.name,a.startTime=n.startTime,a.duration=n.duration,r.push(a));return r}_readUserTimingEntries(){var e,t=[];window.performance&&"function"==typeof window.performance.getEntriesByType&&(this._config["user-timing-measure-enabled"]&&(e=window.performance.getEntriesByType("measure"),t=t.concat(this._getUserTimingEntries(e,"MEASURE"))),this._config["user-timing-mark-enabled"]&&(e=window.performance.getEntriesByType("mark"),t=t.concat(this._getUserTimingEntries(e,"MARK")))),this.data.userTimingEntries=t,this._clearUserTimings()}}class g extends c{constructor(e){super(e),this._started=!1}resetState(){}isAsync(){return!0}collectData(){this._started||(this._started=!0,this._getCDNData())}_getCDNData(){let e=window.location.protocol,t=this._parent._config.xcndUrl,n=new XMLHttpRequest,i=this,a="",r="",o="";this.data.usedCDN={static_domain:a,ip_version:o,http_version:o},0===e.lastIndexOf("http",0)&&null!==t?(n.onreadystatechange=function(){var e=this.readyState?this:n;if(4===e.readyState){if(200===e.status){try{a=e.getResponseHeader("X-CDN"),r=e.getResponseHeader("X-CDN-CLIENT-IP-VERSION"),o=e.getResponseHeader("X-CDN-Proto")}catch(e){console.warn("Can't read the X-CDN header, possibly because of CORS restrictions")}i.data.usedCDN.static_domain=null===a?"":a,i.data.usedCDN.ip_version=null===r?"":r.toLowerCase(),i.data.usedCDN.http_version=null===o?"":o.toLowerCase()}else console.error("CDN request did not return a HTTP 200. Status: "+e.status);i.done()}},n.open("HEAD",t,!0),n.send()):this.done()}}class p extends c{constructor(e){super(e),this._started=!1}resetState(){}isAsync(){return!0}collectData(){this._started||(this._started=!0,this._getPoPData())}_getPoPData(){var e=window.location,t=e.protocol,n=t+"//"+e.host+"/fizzy/admin?"+(new Date).getTime(),i=new XMLHttpRequest,a=this;0===t.lastIndexOf("http",0)?(i.onreadystatechange=function(){var e=this.readyState?this:i;4===e.readyState&&(e.status>=200&&e.status<400?(a.data.pointOfPresenceId=e.getResponseHeader("X-Li-Pop"),a.data.rawXLiFabricHeader=e.getResponseHeader("X-Li-Fabric"),a.data.httpVersion=e.getResponseHeader("X-Li-proto")):console.error("PoP request was not successful. Status: "+e.status),a.done())},i.open("get",n,!0),i.send()):this.done()}}class m extends c{constructor(e){super(e),this.data.longTasks=[],this._longTaskFields=["duration","name","startTime"],this._observer=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{let t={};for(let n=0;n<this._longTaskFields.length;n++){let i=this._longTaskFields[n];void 0!==e[i]&&(t[i]=e[i])}this.data.longTasks.push(t)})});try{this._observer.observe({entryTypes:["longtask"]})}catch(e){console.warn("Longtask api is not supported")}}resetState(){this._complete=!1,this.data={},this.data.longTasks=[]}collectData(){this.done()}}class f extends c{constructor(e){super(e)}collectData(){this._readNetworkInformation(),this.done()}_readNetworkInformation(){if(navigator&&navigator.connection){let e={},t=navigator.connection.downlinkMax;e.connectionType=void 0===navigator.connection.type?"UNKNOWN":navigator.connection.type.toUpperCase(),e.effectiveType=this._formatEffectiveType(navigator.connection.effectiveType),e.roundTripTime=void 0===navigator.connection.rtt?-1:navigator.connection.rtt,e.downlinkBandwidth=void 0===navigator.connection.downlink?-1:navigator.connection.downlink,e.downlinkMaxBandwidth=void 0===t?-1:t===1/0?0:navigator.connection.downlinkMax,this.data.networkInformationMetrics=e}}_formatEffectiveType(e){return"2g"===e?"TWO_G":"3g"===e?"THREE_G":"4g"===e?"FOUR_G":"SLOW_2G"}}var _="https://tracking.corp.linkedin.com/li/track/",v=["https://www.linkedin-ei.com/lite/rum-track","/li/track","https://lca1-mobile-tracking-frontend-vip-1.corp.linkedin.com/li/track"];class y{constructor(e){this._resetState(!1),this._defaults={enabled:!0,"beacon-url":"/li/track","beacon-service":"tracking","event-name":"RealUserMonitoringEvent","topic-name":"RealUserMonitoringEvent","app-id":"linkedin.rum.tracking","is-single-page-app":!0,"cross-origin":!1,"beacon-timeout":3e4,"request-sampling-rate":.01,"user-timing-mark-enabled":!1,"user-timing-measure-enabled":!0,"beacon-source":"apps","page-key-prefix":"","navigation-timing-only":!1,"pathname-depth":-1,"lazy-image-class-names":["lazy-image"],"enable-cdn-tracking":!1,"enable-pop-tracking":!1,"async-plugins-timeout":5e3,"non-spa-manual-send":!1},this._config=o(this._defaults,e),this._config.enabled&&(this._config.readyState||(this._config.readyState=document.readyState),this._config.xcndUrl=null,this._config["navigation-timing-only"]?this._config["enable-rs-timing"]=this._config["enable-rs-timing"]||!1:this._config["enable-rs-timing"]=!1!==this._config["enable-rs-timing"],this._config.plugins=[new d(this),new l(this),new h(this),new u(this),new f(this)],this._config["enable-cdn-tracking"]&&this._config.plugins.push(new g(this)),this._config["enable-pop-tracking"]&&this._config.plugins.push(new p(this)),"function"==typeof PerformanceObserver&&"function"==typeof PerformanceLongTaskTiming&&this._config.plugins.push(new m(this)),this._isInitialLoad=!0,this._initialStartTime=void 0,this._renderCompleteCount=0,this._isLazyRender=!1,this._allBeaconData=[],this._csrfToken="",this._isInternalApp=!1,this._config["beacon-source"]&&"internal-apps"===this._config["beacon-source"]&&(this._isInternalApp=!0,("lite"===this._config["beacon-service"]||v.indexOf(this._config["beacon-url"])>-1)&&(this._config["beacon-service"]="tracking",this._config["beacon-url"]=_)),this._onLoad=()=>{setTimeout(()=>{this._collectPluginData()},500)},this._onUnload=()=>{this._collectPluginData()},this._config["navigation-timing-only"]&&!this._config["non-spa-manual-send"]?"complete"===this._config.readyState?this._onLoad():window.addEventListener("load",this._onLoad):this._config["navigation-timing-only"]||(this._config["non-spa-manual-send"]?console.error("Manual send mode not supported for SPA apps"):window.addEventListener("unload",this._onUnload)))}destroy(){this._config["navigation-timing-only"]&&!this._config["non-spa-manual-send"]?window.removeEventListener("load",this._onLoad):this._config["navigation-timing-only"]||(this._config["non-spa-manual-send"]?console.error("Manual send mode not supported for SPA apps"):(this._collectPluginData(),window.removeEventListener("unload",this._onUnload)))}setLixData(e={}){this._lixData=e,this._applyLixData()}_applyLixData(){isNaN(this._getTreatment("voyager-web.rum.beaconTimeout"))||(this._config["beacon-timeout"]=parseInt(this._getTreatment("voyager-web.rum.beaconTimeout")))}_getTreatment(e){return this._lixData[e]||"control"}setPageKey(e){this._beaconData.pageKey=e}setCurrentUser(e){this._isInternalApp&&"string"==typeof e&&(this._beaconData.sessionID=e)}appTransitionStart(e){(e||this._renderCompleteCount>0)&&(this._collectPluginData(),this._beaconData.navigationStart=s(),this._isInitialLoad=!1)}appRenderComplete(){this._renderCompleteCount++,this._beaconData.renderCompleteTime=s(),this._timeOutVal||(this._timeOutVal=setTimeout(()=>{this._collectPluginData()},this._config["beacon-timeout"]))}addTreeId(e,t){if(this._config.plugins&&this._config.plugins.length>2){var n=this._config.plugins[2];n&&n.addTreeId(e,t)}}appViewRenderStart(e,t){this._viewTimings[e]||(this._viewTimings[e]={renderName:t||e,viewName:t,viewId:e,renderStart:s()})}appViewRenderComplete(e,t){this._viewTimings[e]&&!this._viewTimings[e].renderEnd&&(this._viewTimings[e].renderEnd=s())}setDeepLinkTrackingId(e){this._shouldSendBeacon=!1}setWindowHiddenState(e){this._beaconData.isImpactedByHiddenWindow=e}setPageInstance(e){this._beaconData.pageInstance=e}setIsLazyRender(e){this._isLazyRender=e}getConfig(){return this._config}pluginDone(){for(var e,t=0;t<this._config.plugins.length;t++)if((e=this._config.plugins[t]).isAsync()&&!e.isComplete())return!1;setTimeout(()=>{this._sendAllData()},500)}manuallySetNonSpaPLTSendBeacon(){const e=s(),t=this._collectPlugin(),n=this._allBeaconData.length;n>0&&void 0!==this._allBeaconData[n-1].loadEventEnd&&(this._allBeaconData[n-1].loadEventEnd=e),this._checkAsyncPlugAndSend(t)}_resetState(e){this._beaconData={},this._viewTimings={},this._scrollTime=void 0,this._shouldSendBeacon=!0,this._timeOutVal&&(clearTimeout(this._timeOutVal),this._timeOutVal=void 0),e&&this._config.plugins.map(e=>{e.resetState()})}_readRenderTimingEntries(){if(Object.keys(this._viewTimings).length>0)for(var e in this._beaconData.detailedRenderTimingEntries=[],this._viewTimings)this._viewTimings.hasOwnProperty(e)&&this._beaconData.detailedRenderTimingEntries.push(this._viewTimings[e])}_collectPluginData(){let e=this._collectPlugin();this._checkAsyncPlugAndSend(e)}_collectPlugin(){var e=!0;if(this._config.enabled)return this._config.plugins.map((function(t){t.collectData(),t.isComplete()||(e=!1)})),this._pushCurrentBeaconData(),e}_checkAsyncPlugAndSend(e){e?this._sendAllData():setTimeout(()=>{this._markAllAsyncPluginComplete()},this._config["async-plugins-timeout"]),this._resetState(!0)}_markAllAsyncPluginComplete(){this._config.plugins.map((function(e){e.isAsync()&&e.markComplete()})),this._sendAllData()}_doesNotHaveLazyImageClass(e){var t,n=!0,i=this._config["lazy-image-class-names"];if(e&&e.className&&i)for(t=i.length-1;t>=0;t--)e.className.indexOf(i[t])>-1&&(n=!1);return n}_doesElementOverlapWithViewport(e){var t,n=e.getBoundingClientRect();return!((t={top:Math.max(n.top,0),left:Math.max(n.left,0),bottom:Math.min(n.bottom,window.innerHeight||document.documentElement.clientHeight),right:Math.min(n.right,window.innerWidth||document.documentElement.clientWidth)}).bottom<=t.top||t.right<=t.left)}_getImgResourceEntries(){var e,t,n=[],i=this._beaconData.resourceTimingEntries;if(i)for(e=i.length-1;e>=0;e--)"img"===(t=i[e]).initiatorType&&n.push(t);return n}_cleanUpResourceTimingEntries(){var e;if(this._beaconData.resourceTimingEntries)for(e=this._beaconData.resourceTimingEntries.length-1;e>=0;e--)this._beaconData.resourceTimingEntries[e].name&&(this._beaconData.resourceTimingEntries[e].name=this._beaconData.resourceTimingEntries[e].name.split(/[?#]/)[0])}_readPageKey(){this._beaconData&&!this._beaconData.pageKey&&this._isInitialLoad&&(this._beaconData.pageKey=this._getPageKey()),this._isInternalApp&&("EMBER"===this._config["web-ui-framework"]&&void 0!==this._beaconData.pageKey?this._beaconData.pageKey=this._config["page-key-prefix"]+":"+this._beaconData.pageKey:document.querySelector('meta[name="pageKey"]')||(this._beaconData.pageKey=this._config["page-key-prefix"]+":",this._config["pathname-depth"]>-1?this._beaconData.pageKey+=window.location.pathname.split(/[/#]/).slice(0,this._config["pathname-depth"]+1).join("/"):this._beaconData.pageKey+=window.location.pathname))}_getPageKey(){var e=document.querySelector('meta[name="pageKey"]');return e?e.getAttribute("content"):document.body.id?document.body.id.substring("pagekey-".length):""}_getRenderingMode(){var e,t=document.querySelector('meta[name="renderingMode"]');return t&&"BIGPIPE"===(e=t.getAttribute("data-mode"))&&(e="BIG_PIPE"),e}_doesRenderErrorCodeBlockExists(){return null!=document.querySelector("code#renderError")}_readSinglePageAppData(){this._beaconData.isSinglePageApp=this._config["is-single-page-app"],this._beaconData.isSinglePageApp&&(this._beaconData.webUIFramework=this._config["web-ui-framework"],this._beaconData.appRenderMode=this._getRenderingMode(),this._isInitialLoad?(this._beaconData.pageLoadMode="INITIAL",this._doesRenderErrorCodeBlockExists()&&(this._beaconData.isAppRenderFailed=!0)):this._beaconData.pageLoadMode="PARTIAL")}_sendAllData(){var e,t,n,i={};for(e=0;e<this._config.plugins.length;e++)(t=this._config.plugins[e]).isAsync()&&(i=o(i,t.getData()));for(e=0;e<this._allBeaconData.length;e++)n=o(this._allBeaconData[e],i),this._sendBeacon(n);this._allBeaconData=[]}_pushCurrentBeaconData(){var e;(e=this._getBeaconAndPluginData())&&this._allBeaconData.push(o({},e))}_readIsSSL(){window&&window.location&&(this._beaconData.isSSL="https:"===window.location.protocol?1:0)}_getBeaconAndPluginData(){if(this._readPageKey(),this._readSinglePageAppData(),this._readRenderTimingEntries(),this._readIsSSL(),this._config["app-version"]&&(this._beaconData.appVersion=this._config["app-version"]),this._config.plugins.map(e=>{this._beaconData=o(this._beaconData,e.getData())}),"navigationStart"in this._beaconData&&this._shouldSendBeacon){if(this._initialStartTime||(this._initialStartTime=this._beaconData.navigationStart),this._beaconData.boomerangStart=this._initialStartTime,this._cleanUpResourceTimingEntries(),this._beaconData.isSinglePageApp)if("renderCompleteTime"in this._beaconData)this._beaconData.timeDone=this._beaconData.renderCompleteTime-this._beaconData.navigationStart;else if(!this._config["navigation-timing-only"])return;return this._beaconData}}_sendBeacon(e){if(this._config.enabled)try{if(this._fireTrackingBeacon(e),"undefined"!=typeof CustomEvent){var t=new CustomEvent("RUMEvent",{detail:e});document.dispatchEvent(t)}}catch(e){}}_fireTrackingBeacon(e){var t,n={eventInfo:{eventName:this._config["event-name"],topicName:this._config["topic-name"],appId:this._config["app-id"]},eventBody:e};e.header={pageInstance:e.pageInstance},e.requestHeader={pageKey:e.pageKey},n.eventBody.trackingTime=-1,(t=new XMLHttpRequest).open("POST",this._config["beacon-url"],!0),t.setRequestHeader("content-type","application/json"),this._csrfToken||(this._csrfToken=this._getCsrfToken()),t.setRequestHeader("Csrf-Token",this._csrfToken),t.send(JSON.stringify([n]))}_getCookieString(){return document.cookie}_getCsrfToken(){for(var e=this._getCookieString().split(";"),t=0;t<e.length;t++){for(var n=e[t];" "===n.charAt(0);)n=n.substring(1);if(-1!==n.indexOf("JSESSIONID=")){var i=n.substring("JSESSIONID=".length,n.length);return'"'===i[0]&&'"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),i}}return""}}let w=null;var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var E,I=(function(e,t){!function(e){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==b||"undefined"!=typeof self&&self;var t,n,i,a,r=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){!function(e,t){var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,i=n&&!!window.requestIdleCallback,a={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=this.getCookieString().split(";"),t=0;t<e.length;t++){for(var n=e[t];" "===n.charAt(0);)n=n.substring(1);if(-1!==n.indexOf("JSESSIONID=")){var i=n.substring("JSESSIONID=".length,n.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,i,a){this._beacon(e,t,i,a||this.globalTrackingUrl,this.disableSendBeacon?null:n&&navigator.sendBeacon&&navigator.sendBeacon.bind(navigator))},_beacon:function(e,t,n,i,a){if(a){var r=void 0;try{r=a(i,e)}catch(t){throw"object"==typeof t&&(t.message="Error sending ["+e+"] to "+i+" using sendBeacon:"+t.message,t.tags=["tracking"]),t}if(r)return void(t&&t(r))}this.ajax(e,t,n,i)},ajax:function(e,t,n,i){var a;i?(a=this.createXmlHttpObject())&&(a.open(this.AJAX_METHOD,i,!0),a.withCredentials=!0,a.setRequestHeader("Content-type","application/json"),this.csrfToken?a.setRequestHeader("Csrf-Token",this.csrfToken):a.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&a.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&a.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),a.onreadystatechange=function(){4===a.readyState&&(200===a.status||304===a.status?"function"==typeof t&&t(a):n&&n('Response is not "OK" or "Not Modified" for tracking request'))},4!==a.readyState&&a.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(){this.queue.length>0&&(this.beacon(JSON.stringify(this.queue),null,this.logError),this.queue=[]),i?cancelIdleCallback(this.timeoutId):clearTimeout(this.timeoutId),this.timeoutId=null,this.paused=!1},idleFlush:function(e){var t=this,n=Date.now();return requestIdleCallback((function(i){i.timeRemaining()>8||i.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;i&&!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=a}(0,e)})),o="li_trk_navigation",s="undefined";function c(){if(typeof window!==s&&typeof window.sessionStorage!==s)try{return JSON.parse(window.sessionStorage.getItem(o))}catch(e){}}function d(e){if(typeof window!==s&&typeof window.sessionStorage!==s)try{window.sessionStorage.setItem(o,JSON.stringify(e))}catch(e){}}(a=e.ControlInteractionType||(e.ControlInteractionType={}))[a.FOCUS=0]="FOCUS",a[a.UNFOCUS=1]="UNFOCUS",a[a.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",a[a.DRAG=3]="DRAG",a[a.PINCH_OPEN=4]="PINCH_OPEN",a[a.PINCH_CLOSE=5]="PINCH_CLOSE",a[a.DOUBLE_PRESS=6]="DOUBLE_PRESS",a[a.LONG_PRESS=7]="LONG_PRESS",a[a.SHORT_PRESS=8]="SHORT_PRESS",a[a.SWIPE_UP=9]="SWIPE_UP",a[a.SWIPE_DOWN=10]="SWIPE_DOWN",a[a.SWIPE_LEFT=11]="SWIPE_LEFT",a[a.SWIPE_RIGHT=12]="SWIPE_RIGHT",a[a.FLICK_UP=13]="FLICK_UP",a[a.FLICK_DOWN=14]="FLICK_DOWN",a[a.FLICK_LEFT=15]="FLICK_LEFT",a[a.FLICK_RIGHT=16]="FLICK_RIGHT",a[a.SHAKE=17]="SHAKE",a[a.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",a[a.HOVER=19]="HOVER",(i=e.PageViewPageType||(e.PageViewPageType={}))[i.FULL=1]="FULL",i[i.AJAX=2]="AJAX",i[i.IFRAME=3]="IFRAME",i[i.REDIRECT=4]="REDIRECT",i[i.API=5]="API",i[i.FORM=6]="FORM",i[i.ROUTER=7]="ROUTER",i[i.ERROR=8]="ERROR",(n=e.EventTypes||(e.EventTypes={}))[n.PageViewEvent=0]="PageViewEvent",n[n.NavigationEvent=1]="NavigationEvent",n[n.ExternalNavigationEvent=2]="ExternalNavigationEvent",n[n.ControlInteractionEvent=3]="ControlInteractionEvent",n[n.PageVisibilityChangeEvent=4]="PageVisibilityChangeEvent";var l="undefined"!=typeof window?window:null;l?function(){var e=l.crypto||l.msCrypto;if(!t&&e&&e.getRandomValues){var n=new Uint8Array(16);(t=function(){return e.getRandomValues(n),n})()}if(!t){var i=new Uint8Array(16);t=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=(t||0)>>>((3&e)<<3)&255;return i}}}():t=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var h=[],u=0;u<256;u++)h[u]=(u+256).toString(16).substr(1);function g(){var e=new Uint8Array(16),n=t();n[6]=15&n[6]|64,n[8]=63&n[8]|128;for(var i=0;i<16;i++)e[0+i]=n[i];return e}function p(){return function(e){for(var t=[],n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(t.join(""))}(g())}function m(e){return e?"urn:li:page:"+e:null}function f(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function _(e){return e?e.split(":").pop():null}function v(e,t){return e?{trackingId:t||p(),pageUrn:m(e)}:null}function y(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function w(e){return e&&e.referrer}function E(e){if(e&&e.URL){var t=e.URL.match(/trk=([^&]+)/);if(t&&2===t.length)return t[1]}return null}var I=10,T=10,S=Object.assign||function(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 i=Object(e),a=0;a<t.length;a++){var r=t[a];if(null!==r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])}return i},k=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 n=document.querySelector('meta[name="trk-pageinstance"]');if(n&&(this.config.initialPageInstance=y(n.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=function(){var e=window.location.pathname,t=e+window.location.search,n=window.location.href,i=c();if(!i)return null;for(var a=0;a<i.length;a++){var r=i[a].href;if(r===e||r===t||r===n){var o=i.splice(a,1)[0];return d(i),o}}return null}();i&&(e.previousPageInstance=i.prevInstance),Object.freeze(this.config.eventHeaderProperties),Object.freeze(this.config.userRequestHeaderProperties),Object.freeze(this.config),r.init(),r.setProperty("disableSendBeacon",!1),r.setTrackingUrl(this.config.trackingUrl),r.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||I),r.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||T)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var a=this.config.prevControlName||(i?i.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,a),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 o="visibilitychange";document&&(void 0!==document.msHidden&&(o="msvisibilitychange"),document.addEventListener(o,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"),i=t.hasAttribute("data-tracking-will-navigate"),a=t.getAttribute("data-tracking-href")||t.getAttribute("href");i&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:n,href:a})}},t.prototype._handleWindowBeforeUnload=function(e){var t=e.target.activeElement,n=t,i=null,a=!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&&(i=n.getAttribute("data-tracking-control-name")),"hasAttribute"in n&&(a=n.hasAttribute("data-tracking-will-navigate")))}a||this.fireExternalNavigationEvent(i)},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){if(e){var t,n,i=e.controlName,a=e.href;t={controlName:i,href:a,prevInstance:this.state.currentPageInstance},(n=c()||[]).push(t),d(n)}},t.prototype.fireControlInteractionEvent=function(t,n,i){if(void 0===n&&(n=e.ControlInteractionType.SHORT_PRESS),void 0===i&&(i={}),!t)throw new Error("controlName is required.");var a=_(this.state.currentPageInstance.pageUrn),r=i.uiControlPageKey||a;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:f(t,r),interactionType:e.ControlInteractionType[n]},i)},t.prototype.fireNavigationEvent=function(t,n,i){void 0===i&&(i={});var a=t?_(t.pageUrn):null,r=i.uiControlPageKey||a;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:f(n,r)},i)},t.prototype.fireExternalNavigationEvent=function(t,n){void 0===n&&(n={});var i=n.uiControlPageKey||_(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:f(t,i)},n,!0)},t.prototype.firePageViewEvent=function(t,n){void 0===n&&(n={});var i=(n=S({},n)).pageViewPageType||e.PageViewPageType.AJAX,a=_(this.state.currentPageInstance.pageUrn),r=t||a;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:r},header:{},pageType:e.PageViewPageType[i].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 i=S({},this.state.currentPageInstance),a=v(e);this.state.previousPageInstance=i,this.state.currentPageInstance=a,this.fireNavigationEvent(i,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,n,i){if(void 0===n&&(n={}),void 0===i&&(i=!1),!e||!t)throw new Error("eventName and body are required.");t=S({},t),(n=S({},n)).topicName||(n.topicName=e),n.pageInstance||(n.pageInstance=this.state.currentPageInstance);var a=S({pageKey:_(n.pageInstance.pageUrn),path:window.location.href,referer:w(document),trackingCode:E(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var o=S({pageInstance:n.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var s={requestHeader:a,header:o};this.config.mapHeaders&&(s=this.config.mapHeaders(s));var c=S(s,t),d={eventName:e,topicName:n.topicName,appId:this.config.appId};this.config.validationMode?r.validateEvent(d,c,(function(t){t&&console.error("Event "+e+" failed validation!")})):(r.sendEvent(d,c),i&&r.flush())},t.prototype.destroy=function(){r.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,n){return e.initialPageInstance=v(n),new t(e)},t}();e.AppTrackingInstance=k,e.clearNavStorage=function(){window.sessionStorage.removeItem(o)},e.derivePageInstanceFromString=y,e.derivePageKeyFromUrn=_,e.generateControlUrn=f,e.generatePageInstance=v,e.generatePageUrn=m,e.generateTrackingId=p,e.getReferrer=w,e.getTrackingCode=E,e.stringifyPageInstance=function(e){return e?e.pageUrn+";"+e.trackingId:null},e.uuid=g,e.webTrackingTransport=r}(t)}(E={exports:{}},E.exports),E.exports);let T=null;function S({appId:e="seo",trackingCode:t}={}){const n=i(document),a={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05};return t&&(a.userRequestHeaderProperties={trackingCode:t}),T||(T=I.AppTrackingInstance.createFromPageKey(a,n)),T.generateTrackingId=I.generateTrackingId,T}function k(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}function P(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function C(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,a=t.top<=n&&t.top+t.height>=0,r=t.left<=i&&t.left+t.width>=0;return a&&r}function A(e,t,n,i){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const a=function(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}(e,t,!0);if(a)return i?e.replace(a,n):e;{const i=e.indexOf("?");let[a,r]=e.split("#"),o="&";return i<0?o="?":i===e.length-1&&(o=""),r&&(r="#".concat(r)),"".concat(a).concat(o).concat(t,"=").concat(n).concat(r||"")}}function D(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function R(e,{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:a=!1,postData:o}={}){return new Promise((s,c)=>{const d=new XMLHttpRequest;if(d.addEventListener("load",(function(){if(d.status>=200&&d.status<300||304===d.status)s({status:d.status,responseText:d.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(d.status));n.response={status:d.status,responseText:d.responseText},c(n)}})),d.addEventListener("error",(function(e){c(e)})),d.open(t,e,!0),d.withCredentials=i,Object.keys(n).forEach(e=>{d.setRequestHeader(e,n[e])}),!a){const e=D("JSESSIONID");e&&d.setRequestHeader("Csrf-Token",r(e))}d.send(o)})}const L={className:"class"},U="A path to the asset must be provided";function B(e,t={}){if(!e)return Promise.reject(new Error(U));const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusable:"false"},t);return R(e,{sendCookies:!1,skipCsrfToken:!0}).then(e=>(function(e){return(new DOMParser).parseFromString(e,"image/svg+xml").firstChild})(e.responseText)).then(e=>(function(e,t={}){return Object.keys(t).map(n=>{const i=L[n]||n;e.setAttribute(i,t[n])}),e})(e,n))}const q="An li-icon tag must be provided to inlineIcon";function H(e,t){if(!e)return Promise.reject(new Error(q));const n=e.getAttribute("class");return B(t,n?{className:n}:{}).then(t=>(e.appendChild(t),e.setAttribute("aria-hidden","true"),t))}const x=["IMG","IFRAME","VIDEO","SCRIPT"],M="SCRIPT",K="LI-ICON";class z{constructor({delayedUrlAttributeName:e="data-delayed-url",delayedPosterAttributeName:t="data-delayed-poster",delayedBackground:n="data-delayed-background",ghostClassesAttributeName:i="data-ghost-classes",ghostUrlAttributeName:a="data-ghost-url",lazyloadClassName:r="lazy-load",lazyloadedClassName:o="lazy-loaded",onLoadClassName:s="onload",onErrorClassName:c="onerror"}={}){this.elementCache=[],this.onLoadClassName=s,this.onErrorClassName=c,this.delayedUrlAttributeName=e,this.delayedPosterAttributeName=t,this.delayedBackground=n,this.lazyloadClassName=r,this.lazyloadedClassName=o,this.lazyloadElSelector="[".concat(this.delayedUrlAttributeName,"], .").concat(this.lazyloadClassName),this.boundLoadVisibleImages=this.loadVisibleImages.bind(this),this.boundEvents=!1,this.scriptLoadPromises={},this.ghostUrlAttributeName=a,this.ghostClassesAttributeName=i,k(()=>this.refreshLoader())}getLazyLoadedJavascriptModule(e){return this.scriptLoadPromises[e]=this.scriptLoadPromises[e]||function(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}(),this.scriptLoadPromises[e]}refreshLoader(){this.elementCache=P(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}lazyloadElOnload(e){if(e.classList.remove(this.lazyloadClassName),e.classList.add(this.lazyloadedClassName),e.tagName===M){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",n);const t=e.getAttribute(this.ghostClassesAttributeName);t&&t.length&&t.split(" ").forEach(t=>{e.classList.add(t)})}if(e.tagName===M){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(t.tagName===M||t.classList.contains(this.onLoadClassName)||C(t)){const n=t.getAttribute(this.delayedUrlAttributeName);n&&t.tagName===K?H(t,n).then(e=>{this.lazyloadElOnload(e),this.lazyloadElOnload(t)}).catch(()=>this.lazyloadOnerror(t)):n&&-1!==x.indexOf(t.tagName)?(t.onerror=this.lazyloadOnerror.bind(this,t),t.onload=t.oncanplay=this.lazyloadElOnload.bind(this,t),t.src=n):(n&&t.hasAttribute(this.delayedBackground)&&(t.style.backgroundImage='url("'.concat(n,'")')),this.lazyloadElOnload(t)),"VIDEO"===t.tagName&&(t.poster=t.getAttribute(this.delayedPosterAttributeName)),t.removeAttribute(this.delayedUrlAttributeName),this.elementCache.splice(e,1)}else e++}this.elementCache.length||this._detachEvents()}}let V=null;class F{constructor(){this.perfData=window.performance.timing,this.pageKey=i(document)}_getPageLoadTime(){if(!this.perfData)throw new Error("Cannot get page load time because performance.timing unavailable!");return this.perfData.loadEventEnd-this.perfData.navigationStart}fireIngraphsRequest(e){if(!e&&"string"!=typeof e)throw new Error("No API path provided!");if(!this.pageKey)throw new Error("No page-key found!");const t=this._getPageLoadTime();R(e,{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({pageKey:this.pageKey,metricsType:"pageLoadTime",metricsValue:t})})}}const j="[data-impression-id]",W="data-impression-id",G={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class X{constructor(e,t,{threshold:n=.9,root:i=null,rootMargin:a="0px",impressionEventCallback:r}={}){if(!("IntersectionObserver"in window))return G;this.root=i,this.threshold=n,this.rootMargin=a,this.trackingInstance=t,this.queuedImpressions=[],this.impressionEventCallback=r;const o={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),o),this.observeComponents()}observeComponents(e=[...document.querySelectorAll(j)]){this.intersectionObserverInstance&&e.forEach(e=>{this.intersectionObserverInstance.observe(e)})}unobserveComponents(e=[]){e.forEach(e=>{this.intersectionObserverInstance.unobserve(e),e.removeAttribute(W)})}_returnImpressionMetaData(e){return e.getAttribute(W)}_isNodeVisible(e){return e.intersectionRatio>=this.threshold}_handleObservedNodes(e){if(this.intersectionObserverInstance){const t=e.filter(e=>this._isNodeVisible(e)).map(({target:e})=>e),n=t.map(this._returnImpressionMetaData);this.queuedImpressions=this.queuedImpressions.concat(n),this.unobserveComponents(t),this._dispatchEvent()}}_dispatchEvent(){if(function(e,t){const n=a(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}(this.trackingInstance,this.queuedImpressions),this.impressionEventCallback){const e=[...this.queuedImpressions];this.impressionEventCallback({trackingInstance:this.trackingInstance,queuedImpressions:e})}this.queuedImpressions=[]}handleDynamicElements(e=document){if(this.intersectionObserverInstance){const t=[...e.querySelectorAll(j)];t.length>0&&this.observeComponents(t)}}}const J="timezoneOffset",Q="screenWidth",Y="screenHeight",Z="devicePixelRatio",$="currentContext",ee="/transactional-routing/createguestdeferreddeeplink",te="csrfToken",ne=/iPad|iPhone|iPod/;function ie(){var e;e=navigator.userAgent,ne.test(e)&&P(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={[J]:(new Date).getTimezoneOffset(),[Q]:window.screen.width,[Y]:window.screen.height,[Z]:window.devicePixelRatio,[$]:e};try{navigator.sendBeacon(A(ee,te,r(D("JSESSIONID"))),JSON.stringify(t))}catch(e){}})(e.currentTarget.pathname))})}const ae="UA-62256447-1";class re{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.trackPageview,n=e.useRealPath,i=e.disableWhitelistedQueryParams,a=e.dimension5,r=e.trackerId,o=void 0===r?ae:r,s=e.cookieDomain;if(!t)throw new Error("Please provide a valid page key for GA tracking");this.trackPageview=t,this.useRealPath=n,this.disableWhitelistedQueryParams=i,this.dimension5=a,this.cookieDomain=s,this.trackerId=o,re.onload(this.loadAndFireGA.bind(this))}static onload(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}loadGA(){var e,t,n,i,a,r;this.scriptLoaded||(e=window,t=document,n="script",i="ga",e.GoogleAnalyticsObject=i,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,a=t.createElement(n),r=t.getElementsByTagName(n)[0],a.async=1,a.src="//platform.linkedin.com/js/analytics.js",r.parentNode.insertBefore(a,r),this.scriptLoaded=!0)}fireGA(){let e=this.trackPageview,t="https://www.linkedin.com/".concat(e);if(this.useRealPath&&(t=[location.protocol,"//",location.host,location.pathname].join("")),!this.disableWhitelistedQueryParams){const e={gclid:!0,trk:!0};t+="?".concat(location.search.substring(1).split("&").filter(t=>Object.prototype.hasOwnProperty.call(e,t.split("=")[0].toLowerCase())).join("&"))}this.useRealPath&&(e=t),window.ga("create",this.trackerId,{cookieDomain:this.cookieDomain||"linkedin.com"}),window.ga("set","referrer",document.referrer),window.ga("set","location",t),window.ga("set","title","LinkedIn"),window.ga("set","forceSSL",!0),window.ga("set","anonymizeIp",!0),this.dimension5&&window.ga("set","dimension5",this.dimension5),window.ga("send","pageview",{page:e})}loadAndFireGA(){this.loadGA(),this.fireGA()}}let oe=null;function se(e){if(!oe){const t={appId:e.getAppId(),disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05};e.getTrackingCode()&&(t.userRequestHeaderProperties={trackingCode:e.getTrackingCode()}),oe=I.AppTrackingInstance.createFromPageKey(t,e.getPageKey())}return oe.generateTrackingId=I.generateTrackingId,oe}const ce=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}),de=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}),le=Object.freeze({alertType:"type",severity:"severity",alertId:"alert-id"});function he(e,t){let n=e;for(;null!=n;){if(n.classList&&n.classList.contains(t))return!0;n=n.parentNode}return!1}const ue={VISITED:1,ACTIVE:2,DEFAULT:0},ge={dismissButton:"artdeco-global-alert__dismiss",dismissIcon:"artdeco-global-alert__icon--dismissed"};class pe{constructor(e,t={}){this._el=e,this._state=ue.DEFAULT,this._initialHeight=this._el.offsetHeight,this._alertType=this._el.getAttribute(le.alertType),this._id=this._el.getAttribute(le.alertId),this._elDismissBtn=this._el.querySelector(".".concat(ge.dismissButton)),this._trackingOptions=t,this.init()}_makeAlertAccessible(e=!0){this._el.setAttribute("aria-hidden",!e),this._el.style.setProperty("visibility",e?"visible":"hidden")}init(){this._el.style.setProperty("height","0px"),this._makeAlertAccessible(!1),this._el.addEventListener("click",e=>{const{target:t}=e;he(t,ge.dismissButton)&&(this.dismissAction(),function(e){const t=se(),n={header:{},requestHeader:{},alertUrn:e.getAlertId(),actionType:"DISMISS"};t.fireTrackingEvent("AlertActionEvent",n)}(this))})}getTrackingOptions(){return this._trackingOptions}getAlertNode(){return this._el}setHeight(e){this._el.style.setProperty("height",e),this._el.style.setProperty("visibility","visible")}getInitialHeight(){return this._initialHeight}getAlertType(){return this._alertType}getAlertId(){return this._id}isInactive(){return!(this._state===ue.VISITED||this._state===ue.ACTIVE)}visited(){this._state=ue.VISITED,this._makeAlertAccessible(!1)}activate(){const{enableControlInteractionEvents:e,controlInteractionEventsPrefix:t}=this._trackingOptions;this._state=ue.ACTIVE,function(e){const t=se(),n={header:{},requestHeader:{},alertUrn:e.getAlertId()};t.fireTrackingEvent("AlertImpressionEvent",n)}(this),this._makeAlertAccessible(!0),this._el.focus(),e&&this._el.querySelectorAll("button, a").forEach(e=>{const{tagName:n}=e,i="a"===n.toLowerCase()?"alert-link-cta":"alert-dismiss-btn-cta";e.setAttribute("data-tracking-control-name","".concat(t,"-").concat(i))})}dismissAction(){}}const me=3,fe="LIcookiePolicyDisplays";function _e(e){try{window.localStorage.setItem(fe,e)}catch(t){document.cookie="".concat(fe,"=").concat(e,";path=/")}}function ve(){let e;try{e=window.localStorage.getItem(fe)}catch(t){e=function(e){const t=document.cookie.match("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)"));return t?t[1]:void 0}(fe)||0}return parseInt(e,10)||0}class ye extends pe{init(){super.init(),ve()>=me&&super.visited()}activate(){super.activate(),_e(ve()+1)}dismissAction(){super.dismissAction(),_e(me)}}class we{constructor(e){this._trackingOptions=e}getAlertInstance(e){switch(function(e){return ce[e.getAttribute(le.alertType)]}(e)){case ce.COOKIE_USAGE:return new ye(e,this._trackingOptions);default:return new pe(e,this._trackingOptions)}}}class be{constructor(e){const{appId:t,pageKey:n,trackingCode:i}=e;this._appId=t,this._pageKey=n,this._trackingCode=i}getAppId(){return this._appId}getPageKey(){return this._pageKey}getTrackingCode(){return this._trackingCode}}const Ee={container:"artdeco-global-alert-container",containerOffset:"global-alert-offset",alert:"artdeco-global-alert",dismissButton:"artdeco-global-alert__dismiss",dismissIcon:"artdeco-global-alert__icon--dismissed"},Ie={transitionIn:"transition-in",transitionOut:"transition-out"};function Te(e,t){const n=de[e.getAlertType()]||de.UNKNOWN;return(de[t.getAlertType()]||de.UNKNOWN)-n}class Se{constructor({appId:e,pageKey:t,trackingCode:n,enableControlInteractionEvents:i=!1,controlInteractionEventsPrefix:a="global-alerts"}){if(!e)throw new Error("Missing config - appId");if(!t)throw new Error("Missing config - pageKey");if(this._el=document&&document.querySelector("#".concat(Ee.container)),this._elOffset=document.querySelector(".".concat(Ee.containerOffset)),this._elAlertList=document.querySelectorAll(".".concat(Ee.alert)),this._alertInstance=[],this._currentActiveAlert=void 0,this._alertFactoryInstance=new we({enableControlInteractionEvents:i,controlInteractionEventsPrefix:a}),this._initalBodyOffset=parseInt(document.body.style.getPropertyValue("padding-top"),10)||0,this._getTrackingInstance=se(new be({appId:e,pageKey:t,trackingCode:n})),!this._el&&!this._elAlertList.length)return!1;this.init()}init(){this._elAlertList.forEach(e=>{this._alertInstance.push(this._alertFactoryInstance.getAlertInstance(e))}),this._alertInstance=this._alertInstance.sort(Te),this._el.classList.add(Ie.transitionIn),document.body.classList.add(Ie.transitionIn),this._el.addEventListener("click",e=>{const{target:t}=e;he(t,Ee.dismissButton)&&(this.dismissAlert(t),this.activateNextAlert())}),this.activateNextAlert()}activateNextAlert(){let e;this._alertInstance.some(t=>!!t.isInactive()&&(e=t,!0)),this._currentActiveAlert&&this._currentActiveAlert.visited(),e&&e.activate(),this._currentActiveAlert=e,this._currentActiveAlert?this.updateBodyOffset():this.destroy()}updateBodyOffset(){const e=this._currentActiveAlert.getInitialHeight();document.body.style.setProperty("padding-top","".concat(e+this._initalBodyOffset,"px")),this._elOffset&&this._elOffset.style.setProperty("top","".concat(e,"px")),this._el.style.setProperty("height","".concat(e,"px")),this._currentActiveAlert.setHeight("".concat(e,"px"))}dismissAlert(e){const t=e.closest(".".concat(Ee.alert));t.classList.add(Ie.transitionOut),t.style.setProperty("height","0px")}destroy(){const e=this._el;this._el.classList.add(Ie.transitionOut),document.body.classList.add(Ie.transitionOut),document.body.style.setProperty("padding-top","".concat(this._initalBodyOffset,"px")),this._elOffset&&this._elOffset.style.setProperty("top","0px"),this._el.style.setProperty("height","0px"),this._alertInstance=[],this._el=void 0,setTimeout(()=>{e.remove(),document.body.classList.remove(Ie.transitionIn),document.body.classList.remove(Ie.transitionOut)},500)}}const ke=document.querySelector('meta[name="pageKey"]').content,Pe=!!document.head.querySelector('meta[name="gaTrackingUseRealPath"]');new re({trackPageview:ke,useRealPath:Pe});const Ce=document.getElementById("config");let Ae,De,Oe;function Ne(e,t){window[e]&&window[e].resolve?window[e].resolve(t):window[e]=Promise.resolve(t)}Ce&&Ce.dataset&&(Ae=Ce.dataset.appId||void 0,De=Ce.dataset.customTrackingCode||void 0,Oe=Ce.dataset.trackingPageType||void 0),Ne("lazyloader",function(e={}){return V=V||new z(e)}()),k(()=>{const r=S({appId:Ae,trackingCode:De});if(Ne("tracking",r),Ne("impressionTracking",new X(window.IntersectionObserver,r)),function(){let i=["c1=2","c2=6402952","c3=","c4=","c5=","c6=","c15="];i.push("".concat(n,"_t=").concat(Date.now())),i.push("".concat(n,"c=").concat(document.characterSet||document.defaultCharset||"")),i.push("c8=".concat(e(document.title))),i.push("c7=".concat(e(document.URL)));const a=document.referrer&&document.referrer.split("?")[0]||"";i.push("c9=".concat(e(a)));const r=t+i.join("&");let o=new Image;o.src=r}(),w||(w=new y({"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})),function(e,t="ajax",n){const i=function(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}(document),r=a(document);let o={clientTimestamp:Date.now(),pageTag:i},s={};r&&(s.interfaceLocale=r),n&&(s.pageKey=n);const c={header:{},requestHeader:s,pageType:t,trackingInfo:o};e.fireTrackingEvent("PageViewEvent",c)}(r,Oe),null!==document.querySelector('meta[name="clientSideIngraphs"]')){(new F).fireIngraphsRequest(function(){const e=document.querySelector('meta[name="apiPath"]');if(!e)throw new Error("No API path found!");return e.content}())}if(ie(),document.querySelector(".alert-banner")){const e={appId:Ae||"guest",pageKey:i(document),trackingCode:De||"",enableControlInteractionEvents:!0};new Se(e)}})}();
