!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 l 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 d 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 u 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 h 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 f 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 m 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 v="https://tracking.corp.linkedin.com/li/track/",_=["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 l(this),new d(this),new u(this),new h(this),new m(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 f(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"]||_.indexOf(this._config["beacon-url"])>-1)&&(this._config["beacon-service"]="tracking",this._config["beacon-url"]=v)),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,T=(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 l(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 d="undefined"!=typeof window?window:null;d?function(){var e=d.crypto||d.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 u=[],h=0;h<256;h++)u[h]=(h+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 f(e){return e?"urn:li:page:"+e:null}function m(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function v(e){return e?e.split(":").pop():null}function _(e,t){return e?{trackingId:t||p(),pageUrn:f(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 T=10,I=10,k=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},S=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 l(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||T),r.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||I)),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),l(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=v(this.state.currentPageInstance.pageUrn),r=i.uiControlPageKey||a;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:m(t,r),interactionType:e.ControlInteractionType[n]},i)},t.prototype.fireNavigationEvent=function(t,n,i){void 0===i&&(i={});var a=t?v(t.pageUrn):null,r=i.uiControlPageKey||a;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:m(n,r)},i)},t.prototype.fireExternalNavigationEvent=function(t,n){void 0===n&&(n={});var i=n.uiControlPageKey||v(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:m(t,i)},n,!0)},t.prototype.firePageViewEvent=function(t,n){void 0===n&&(n={});var i=(n=k({},n)).pageViewPageType||e.PageViewPageType.AJAX,a=v(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=k({},this.state.currentPageInstance),a=_(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=k({},t),(n=k({},n)).topicName||(n.topicName=e),n.pageInstance||(n.pageInstance=this.state.currentPageInstance);var a=k({pageKey:v(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=k({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=k(s,t),l={eventName:e,topicName:n.topicName,appId:this.config.appId};this.config.validationMode?r.validateEvent(l,c,(function(t){t&&console.error("Event "+e+" failed validation!")})):(r.sendEvent(l,c),i&&r.flush())},t.prototype.destroy=function(){r.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,n){return e.initialPageInstance=_(n),new t(e)},t}();e.AppTrackingInstance=S,e.clearNavStorage=function(){window.sessionStorage.removeItem(o)},e.derivePageInstanceFromString=y,e.derivePageKeyFromUrn=v,e.generateControlUrn=m,e.generatePageInstance=_,e.generatePageUrn=f,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);function I(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 S(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 P(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function C(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}let A=null;function D({appId:e="seo",trackingCode:t}={}){const n=i(document),a=P(window.location.href,"originalReferer"),r={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{}};return t&&(r.userRequestHeaderProperties.trackingCode=t),a&&(r.userRequestHeaderProperties.referer=a),A||(A=T.AppTrackingInstance.createFromPageKey(r,n)),A.generateTrackingId=T.generateTrackingId,A}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 l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)s({status:l.status,responseText:l.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(l.status));n.response={status:l.status,responseText:l.responseText},c(n)}})),l.addEventListener("error",(function(e){c(e)})),l.open(t,e,!0),l.withCredentials=i,Object.keys(n).forEach(e=>{l.setRequestHeader(e,n[e])}),!a){const e=C("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",r(e))}l.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 icon tag must be provided to inlineIcon";function H(e,t){if(!e)return Promise.reject(new Error(q));const n=e.getAttribute("data-svg-class-name");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="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,I(()=>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=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}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)||S(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 j{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 F="[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(F)]){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(F)];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)&&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={[J]:(new Date).getTimezoneOffset(),[Q]:window.screen.width,[Y]:window.screen.height,[Z]:window.devicePixelRatio,[$]:e};try{navigator.sendBeacon(function(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=P(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||"")}}(ee,te,r(C("JSESSIONID"))),JSON.stringify(t))}catch(e){}})(e.currentTarget.pathname))})}const ae="UA-62256447-1",re=["csrftoken"];class oe{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.trackPageview,n=e.dimension5,i=e.trackerId,a=void 0===i?ae:i,r=e.cookieDomain;if(!t)throw new Error("Please provide a valid page key for GA tracking");this.trackPageview=t,this.dimension5=n,this.cookieDomain=r,this.trackerId=a,oe.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(){const e=this.trackPageview;let t=[location.protocol,"//",location.host,location.pathname].join("");t+=this._getQueryString(),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})}_getQueryString(){return"?".concat(location.search.substring(1).split("&").filter(e=>{const t=e.split("=")[0].toLowerCase();return re.indexOf(t)<0}).join("&"))}_loadAndFireGA(){this._loadGA(),this._fireGA()}}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function le(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ue(e,t){return(ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function he(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 ge(e,t,n){return(ge="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=de(e)););return e}(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}var pe=null;function fe(e){if(!pe){var t={appId:e.getAppId(),disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05};e.getTrackingCode()&&(t.userRequestHeaderProperties={trackingCode:e.getTrackingCode()}),pe=T.AppTrackingInstance.createFromPageKey(t,e.getPageKey())}return pe.generateTrackingId=T.generateTrackingId,pe}var me=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}),ve=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}),_e=Object.freeze({alertType:"type",severity:"severity",alertId:"alert-id"});function ye(e,t){for(var n=e;null!=n;){if(n.classList&&n.classList.contains(t))return!0;n=n.parentNode}return!1}var we={VISITED:1,ACTIVE:2,DEFAULT:0},be={dismissButton:"artdeco-global-alert__dismiss",dismissIcon:"artdeco-global-alert__icon--dismissed"},Ee=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};se(this,e),this._el=t,this._state=we.DEFAULT,this._initialHeight=this._el.offsetHeight,this._alertType=this._el.getAttribute(_e.alertType),this._id=this._el.getAttribute(_e.alertId),this._elDismissBtn=this._el.querySelector(".".concat(be.dismissButton)),this._trackingOptions=n,this.init()}return le(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,i,a;ye(t.target,be.dismissButton)&&(e.dismissAction(),n=e,i=fe(),a={header:{},requestHeader:{},alertUrn:n.getAlertId(),actionType:"DISMISS"},i.fireTrackingEvent("AlertActionEvent",a))}))}},{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===we.VISITED||this._state===we.ACTIVE)}},{key:"visited",value:function(){this._state=we.VISITED,this._makeAlertAccessible(!1)}},{key:"activate",value:function(){var e,t,n,i=this._trackingOptions,a=i.enableControlInteractionEvents,r=i.controlInteractionEventsPrefix;this._state=we.ACTIVE,e=this,t=fe(),n={header:{},requestHeader:{},alertUrn:e.getAlertId()},t.fireTrackingEvent("AlertImpressionEvent",n),this._makeAlertAccessible(!0),this._el.focus(),a&&this._el.querySelectorAll("button, a").forEach((function(e){var t="a"===e.tagName.toLowerCase()?"alert-link-cta":"alert-dismiss-btn-cta";e.setAttribute("data-tracking-control-name","".concat(r,"-").concat(t))}))}},{key:"dismissAction",value:function(){}}]),e}(),Te="LIcookiePolicyDisplays";function Ie(e){try{window.localStorage.setItem(Te,e)}catch(t){document.cookie="".concat(Te,"=").concat(e,";path=/")}}function ke(){var e,t,n;try{e=window.localStorage.getItem(Te)}catch(i){t=Te,e=((n=document.cookie.match("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")))?n[1]:void 0)||0}return parseInt(e,10)||0}var Se=function(e){function t(){return se(this,t),he(this,de(t).apply(this,arguments))}return function(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&&ue(e,t)}(t,e),le(t,[{key:"init",value:function(){ge(de(t.prototype),"init",this).call(this),ke()>=3&&ge(de(t.prototype),"visited",this).call(this)}},{key:"activate",value:function(){ge(de(t.prototype),"activate",this).call(this),Ie(ke()+1)}},{key:"dismissAction",value:function(){ge(de(t.prototype),"dismissAction",this).call(this),Ie(3)}}]),t}(Ee);var Pe=function(){function e(t){se(this,e),this._trackingOptions=t}return le(e,[{key:"getAlertInstance",value:function(e){switch(function(e){return me[e.getAttribute(_e.alertType)]}(e)){case me.COOKIE_USAGE:return new Se(e,this._trackingOptions);default:return new Ee(e,this._trackingOptions)}}}]),e}(),Ce=function(){function e(t){se(this,e);var n=t.appId,i=t.pageKey,a=t.trackingCode;this._appId=n,this._pageKey=i,this._trackingCode=a}return le(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 Ae={container:"artdeco-global-alert-container",containerOffset:"global-alert-offset",alert:"artdeco-global-alert",dismissButton:"artdeco-global-alert__dismiss",dismissIcon:"artdeco-global-alert__icon--dismissed"},De="transition-in",Oe="transition-out";function Ne(e,t){var n=ve[e.getAlertType()]||ve.UNKNOWN;return(ve[t.getAlertType()]||ve.UNKNOWN)-n}var Re=function(){function e(t){var n=t.appId,i=t.pageKey,a=t.trackingCode,r=t.enableControlInteractionEvents,o=void 0!==r&&r,s=t.controlInteractionEventsPrefix,c=void 0===s?"global-alerts":s;if(se(this,e),!n)throw new Error("Missing config - appId");if(!i)throw new Error("Missing config - pageKey");if(this._el=document&&document.querySelector("#".concat(Ae.container)),this._elOffsetList=document.querySelectorAll(".".concat(Ae.containerOffset)),this._elAlertList=document.querySelectorAll(".".concat(Ae.alert)),this._alertInstance=[],this._currentActiveAlert=void 0,this._alertFactoryInstance=new Pe({enableControlInteractionEvents:o,controlInteractionEventsPrefix:c}),this._initalBodyOffset=parseInt(document.body.style.getPropertyValue("padding-top"),10)||0,this._getTrackingInstance=fe(new Ce({appId:n,pageKey:i,trackingCode:a})),!this._el&&!this._elAlertList.length)return!1;this.init()}return le(e,[{key:"init",value:function(){var e=this;this._elAlertList.forEach((function(t){e._alertInstance.push(e._alertFactoryInstance.getAlertInstance(t))})),this._alertInstance=this._alertInstance.sort(Ne),this._el.classList.add(De),document.body.classList.add(De),this._el.addEventListener("click",(function(t){var n=t.target;ye(n,Ae.dismissButton)&&(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(Ae.alert));t.classList.add(Oe),t.style.setProperty("height","0px")}},{key:"destroy",value:function(){var e=this._el;this._el.classList.add(Oe),document.body.classList.add(Oe),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(De),document.body.classList.remove(Oe)}),500)}}]),e}();const Le=document.querySelector('meta[name="pageKey"]').content;new oe({trackPageview:Le});const Ue=document.getElementById("config");let Be,qe,He;function xe(e,t){window[e]&&window[e].resolve?window[e].resolve(t):window[e]=Promise.resolve(t)}Ue&&Ue.dataset&&(Be=Ue.dataset.appId||void 0,qe=Ue.dataset.customTrackingCode||void 0,He=Ue.dataset.trackingPageType||void 0),xe("lazyloader",function(e={}){return V=V||new z(e)}()),I(()=>{const r=D({appId:Be,trackingCode:qe});if(xe("tracking",r),xe("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,He),null!==document.querySelector('meta[name="clientSideIngraphs"]')){(new j).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(".global-alert-banner")){const e={appId:Be||"seo",pageKey:i(document),trackingCode:qe||"",enableControlInteractionEvents:!0};new Re(e)}})}();
