!function(e){var t={};function i(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(s,n,function(t){return e[t]}.bind(null,n));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=5)}([,function(e,t,i){"use strict";(function(e){function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var o;i.d(t,"a",(function(){return Ne})),i.d(t,"b",(function(){return J})),i.d(t,"c",(function(){return O})),i.d(t,"d",(function(){return Z})),i.d(t,"e",(function(){return W})),i.d(t,"f",(function(){return ee})),i.d(t,"g",(function(){return be})),i.d(t,"h",(function(){return ie})),i.d(t,"i",(function(){return Q})),i.d(t,"j",(function(){return $})),i.d(t,"k",(function(){return E}));var r={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"};n(o={},"GUEST","li_gc"),n(o,"MEMBER","li_mc");function a(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function l(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function c(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),window.encodeURIComponent;const d={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},h={Down:d.ARROW_DOWN,Right:d.ARROW_RIGHT,Left:d.ARROW_LEFT,Up:d.ARROW_UP,Esc:d.ESCAPE,Spacebar:d.SPACEBAR,Tab:d.TAB};function u(e){return h[e]||e}function p(e,t){if(!e)return null;let i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!i.call(e,t);)e=e.parentElement;return e}function _(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function m(e,t,i){const s=new RegExp("([\\?&])".concat(i?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return s&&(i?s[2]:decodeURIComponent(s[2]))}function g(e,t,i,s){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),i=encodeURIComponent(i);const n=m(e,t,!0);if(n)return s?e.replace(n,i):e;{const s=e.indexOf("?");let[n,o]=e.split("#"),r="&";return s<0?r="?":s===e.length-1&&(r=""),o&&(o="#".concat(o)),"".concat(n).concat(r).concat(t,"=").concat(i).concat(o||"")}}function b(e,t,i){if("function"!=typeof e)throw new TypeError("Expected a function.");let s;return(...n)=>{const o=i&&!s;clearTimeout(s),s=setTimeout(()=>{s=null,i||e.apply(this,n)},t),o&&e.apply(this,n)}}function w(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function v(e,t,i={}){const s=document.createEvent("CustomEvent");s.initCustomEvent(t,!0,!0,i),e.dispatchEvent(s)}var E=Object.freeze({__proto__:null,closest:p,onload:function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})},makeArray:_,outerWidth:function(e){let t=e.offsetWidth,i=getComputedStyle(e);return t+=(parseInt(i.marginLeft,10)||0)+(parseInt(i.marginRight,10)||0),t},elementInViewport:function(e){const t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth,n=t.top<=i&&t.top+t.height>=0,o=t.left<=s&&t.left+t.width>=0;return n&&o},hasElementScrolledToThreshold:function({scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:i=document.body.scrollHeight}={},s=0){return e>=i-(t+t*s)},getQueryParam:m,addTrackingCode:function(e,t){return g(e,"trk",t)},addQueryParam:g,debounce:b,getCookie:w,dispatchCustomEvent:v,getDeferredPromise:function(){let e,t;const i=new Promise((i,s)=>{e=i,t=s});return i.resolve=e,i.reject=t,i},isDocumentHidden:function(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}});class f{constructor(e,t,{mainButton:i,closeButton:s},n={}){if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An expandable element must be provided to Collapsible");if(!i)throw Error("A main button element must be provided to Collapsible");this.el=e,this.expandableEl=t,this._isList=["UL","OL","DL"].includes(this.expandableEl.tagName);const{isOpen:o=!1}=n;this.isOpen=o,this.mainButton=i,this.closeButton=s,this.buttons=[i],this._isList&&this.el.addEventListener("keyup",e=>this._onKeyUp(e)),this.expandableEl.addEventListener("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(u(e.key)){case d.ENTER:case d.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case d.ARROW_UP:this.isOpen||this._open(e);break;case d.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){u(e.key)===d.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=u(e.key);if(t===d.ESCAPE&&this.isOpen)this.close();else if(this._isList){let i;switch(t){case d.SPACEBAR:v(e.target,"click");break;case d.ARROW_LEFT:case d.ARROW_UP:i=p(e.target,"li");let t=i.previousElementSibling;t&&v(t,"focusEl");break;case d.ARROW_RIGHT:case d.ARROW_DOWN:i=p(e.target,"li");let s=i.nextElementSibling;s&&v(s,"focusEl")}}}_open(e={}){if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),v(this.el,"open",{key:t})}}close({shouldReturnFocusToTrigger:e=!0}={}){this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),v(this.el,"close"),e&&this.mainButton.focus())}}const y=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");function L(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function S(e,t=document.documentElement,i){if(e===t)return!L(e);if(i&&i.get(e))return i.get(e);let s;return L(e)?s=!1:e.parentNode&&(s=S(e.parentNode,t,i)),i&&i.set(e,s),s}const T=".".concat("collapsible-dropdown","__list"),k=".".concat("collapsible-dropdown","__button");class x{constructor(e,{getFocusItemFromListItem:t=(e=>e.querySelector(y)),elementToFocus:i,dropdownTriggerEl:s,dropdownContentEl:n}={}){if(!e)throw Error("An element must be provided to CollapsibleDropdown");if(this.el=e,this.dropdownContentEl=n||this.el.querySelector(T),!i){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(y),t="-1"===this.dropdownContentEl.getAttribute("tabIndex");e||t||console.warn('elementToFocus not provided and the dropdown container is not focusable. Consider adding tabindex="-1" to:',this.dropdownContentEl)}this.elementToFocus=i||this.dropdownContentEl,this.dropdownTriggerEl=s||this.el.querySelector(k),this.hideClass="hidden",this.collapsible=new f(e,this.dropdownContentEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners(),this.collapsible.isList&&(this._getFocusItemFromListItem=t)}_attachEventListeners(){this.el.addEventListener("open",e=>this._showDropdownList(e)),this.el.addEventListener("close",()=>this._hideDropdownList()),this.collapsible.isList&&this.dropdownContentEl.addEventListener("focusEl",e=>this._manageFocus(e))}_manageFocus(e){const{target:t}=e;if(t&&this._getFocusItemFromListItem){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_showDropdownList(e){this.el.addEventListener("focusout",this._focusOutsideDropdown),window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;t?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),window.removeEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close()}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close()}}function C(e,{method:t="GET",headers:i={},sendCookies:s=!0,skipCsrfToken:n=!1,postData:o}={}){return new Promise((r,a)=>{const l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)r({status:l.status,responseText:l.responseText});else{const i=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(l.status));i.response={status:l.status,responseText:l.responseText},a(i)}})),l.addEventListener("error",(function(e){a(e)})),l.open(t,e,!0),l.withCredentials=s,Object.keys(i).forEach(e=>{l.setRequestHeader(e,i[e])}),!n){const e=w("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",c(e))}l.send(o)})}const A=".".concat("language-selector__link"),I="".concat(A,"--selected");class O{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(".collapsible-dropdown__list"),this.dropdownTriggerEl=this._el.querySelector(".language-selector__button"),this.currentListItem=this.listEl.querySelector(I),this.collapsibleDropdown=new x(e,{dropdownTriggerEl:this.dropdownTriggerEl,elementToFocus:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){return function(e){const t=c(w("bcookie")||""),i=function(e){let t="";return e.indexOf("linkedin.cn")>-1?t="https://www.linkedin.cn":e.indexOf("linkedin-ei.cn")>-1?t="https://www.linkedin-ei.cn":e.indexOf("linkedin-ei.com")>-1?t="https://www.linkedin-ei.com":e.indexOf("linkedin.com")>-1&&(t="https://www.linkedin.com"),t}(l(document));return C("".concat(i,"/psettings/update-language/cors?csrfToken=").concat(encodeURIComponent(t)),{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({locale:e}),skipCsrfToken:!0})}(e.target.getAttribute("data-locale")).then(()=>{location.reload()})}}var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};parseInt;var B="object"==typeof R&&R&&R.Object===Object&&R,D="object"==typeof self&&self&&self.Object===Object&&self;function q(e,t="ajax",i){e.fireTrackingEvent("PageViewEvent",function(e,t="ajax"){const i=function(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}(document),s=function(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}(document);let n={};return s&&(n.interfaceLocale=s),e&&(n.pageKey=e),{header:{},requestHeader:n,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:i}}}(i,t))}function N(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function U(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function F(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?U(Object(i),!0).forEach((function(t){N(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):U(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}B||D||Function("return this")(),Object.prototype.toString,Math.max,Math.min,"".concat(".member-nav-menu","__button"),new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])"),"".concat("tab-toggle","--active");class P{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter(t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const j=["class","disabled","style","tabindex","type"];class H{constructor(e){if(!e)throw new Error("FocusTrap: No focus trap container passed in");this._container=e,this._observer=new MutationObserver(()=>this._setFirstAndLastFocusableEls(this._container)),this._handleKeyDown=this._focusTrap.bind(this),this._backgroundNavigationDisabler=new P(this._container)}init(){this._observer.observe(this._container,{attributeFilter:j,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:i}=e,s=u(t),n=s===d.TAB&&e.shiftKey;n||s!==d.TAB||i!==this.lastFocusableEl?n&&i===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault()):(this.firstFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,i]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=i,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(y)],i=new Map;let s,n,o=0,r=t.length-1;for(;(!s||!n)&&o<=r;){if(!s){const n=t[o];s=S(n,e,i)&&n,o++}if(!n){const s=t[r];n=S(s,e,i)&&s,r--}}return n=n||s,[s,n]}}const{ENTER:M,ESCAPE:K}=d;class W{constructor(e,{enablePageViewTracking:t=!1}={}){if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,this._topLevelContainer=this._getTopLevelContainer(),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),this._outletEls=this._getOutletEls(),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this)),this._focusTrap=new H(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=u(e.key),i=t===M&&document.activeElement===this._exitButtonEl;(t===K||i)&&(this.close(),e.preventDefault())}open(){return this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),v(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=a(document).replace("_jsbeacon","");q(e,"ajax","".concat(t,"_").concat(this._el.id))}):Promise.resolve()}close(){this._overlayEl.classList.remove("modal__overlay--visible"),this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),v(this._el,"close"),this._previouslyFocusedEl&&this._previouslyFocusedEl.focus(),this._focusTrap.tearDown()}noScroll(){document.body.classList.add("no-scroll")}removeNoScroll(){document.body.classList.remove("no-scroll")}}const z={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},G=Object.keys(z).map(e=>z[e]);class V{constructor(e,{globalNavigator:t=navigator,globalWindow:i=window,globalDocument:s=document}={}){if(!e)throw new Error("No element passed in");this.navigator=t,this.window=i,this.document=s,this.el=e,this._encodedShareMessage=this.window.encodeURIComponent(this.el.getAttribute("data-share-message"))||"";const n=this.el.getAttribute("data-share-url")||this.window.location.href;this._encodedShareUrl=n&&this.window.encodeURIComponent(n)}init(e,t){e.addEventListener("click",({target:e})=>{const i=e.classList.contains(t)?e:p(e,".".concat(t));i&&this.share(i.dataset.shareService)})}_getServiceUrl(e){return{linkedin:"https://www.".concat(l(this.document),"/shareArticle?mini=true&url=").concat(this._encodedShareUrl,"&title=").concat(this._encodedShareMessage),twitter:"https://twitter.com/intent/tweet?url=".concat(this._encodedShareUrl,"&text=").concat(this._encodedShareMessage),facebook:"https://www.facebook.com/sharer/sharer.php&u=".concat(this._encodedShareUrl)}[e]||""}share(e){if(G.includes(e)){const t=this.window.location.href,i=this._getServiceUrl(e,t);this.window.open(i,e,"height=600,width=1000")}}}class J extends V{constructor(e,{globalNavigator:t=navigator,globalWindow:i=window,globalDocument:s=document}={}){super(e,{globalNavigator:t,globalWindow:i,globalDocument:s}),this.modalEl=this.el.querySelector(".".concat("embedded-social-share","__modal")),this.socialShareOptionsEl=this.el.querySelector(".".concat("embedded-social-share","__modal-options")),this.itemClassName="".concat("embedded-social-share","__modal-main-item"),this.copyButtonEl=this.el.querySelector(".".concat("embedded-social-share","__modal-copy-btn")),this.init()}init(){super.init(this.socialShareOptionsEl,this.itemClassName),this.modal=new W(this.modalEl),this.copyButtonEl&&(this.navigator.clipboard?this.copyButtonEl.addEventListener("click",()=>{this._copyText()}):this.copyButtonEl.parentNode.removeChild(this.copyButtonEl))}_copyText(){let e=this.modalEl.querySelector(".".concat("embedded-social-share__modal-copy-text-input")).value;e&&this.navigator.clipboard.writeText(e)}}class Z extends V{constructor(e,{globalNavigator:t=navigator,globalWindow:i=window,globalDocument:s=document}={}){if(!e)throw new Error("No element passed in");super(e,{globalNavigator:t,globalWindow:i,globalDocument:s}),this.stateCheckboxEl=this.el.querySelector(".social-share__state"),this.dropdown=this.el.querySelector("#".concat("social-share__dropdown")),this.socialShareOptionsEl=this.el.querySelector(".".concat("social-share","__options")),this.itemClassName="".concat("social-share","__item"),this.showString=this.stateCheckboxEl.getAttribute("data-show-dialog-string"),this.hideString=this.stateCheckboxEl.getAttribute("data-hide-dialog-string"),this.init()}init(){super.init(this.socialShareOptionsEl,this.itemClassName),this.onBodyClick=this._handleBodyClick.bind(this),this.onFocusOut=this._handleFocusOutDropdown.bind(this),this.stateCheckboxEl.addEventListener("click",this.handleStateChange.bind(this))}_handleBodyClick(e){e.target===this.el||this.el.contains(e.target)||(this.stateCheckboxEl.checked=!1,this.onClose())}handleStateChange({target:e}){e.checked?this.onOpen():this.onClose()}onOpen(){this.document.addEventListener("click",this.onBodyClick),this.document.addEventListener("focusin",this.onFocusOut),this.stateCheckboxEl.setAttribute("aria-label",this.hideString),this.stateCheckboxEl.setAttribute("aria-expanded","true")}onClose(){this.document.removeEventListener("click",this.onBodyClick),this.document.removeEventListener("focusin",this.onFocusOut),this.stateCheckboxEl.setAttribute("aria-label",this.showString),this.stateCheckboxEl.setAttribute("aria-expanded","false"),this.stateCheckboxEl.focus()}_handleFocusOutDropdown(e){this.dropdown.contains(e.target)||(this.stateCheckboxEl.checked=!1,this.onClose(),this.el.focus())}}const Y={};function Q(e){const t=document.getElementById(e);if(!t&&void 0!==Y[e])return Y[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),Y[e]=null,Y[e];let i;for(const s of t.childNodes)try{if(s.nodeType===Node.COMMENT_NODE){i=JSON.parse(s.nodeValue);break}}catch(e){}return void 0===i?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(Y[e]=i,t.parentNode.removeChild(t),Y[e])}const X=["binlar","ask\\ jeeves","mozilla\\/4\\.0\\ \\(compatible\\;\\ msie\\ 6\\.0\\;\\ windows\\ nt\\ 5\\.1\\;1813\\)","companydatatree","genieo","microsoft\\+scheduled\\+cache\\+content\\+download\\+service","liferea","superfeedr","ez\\ publish\\ link\\ validator","htmlparser","argclrint","linkwalker","webtool","ask\\+jeeves","stackrambler","paros","^fdm\\+3\\.x","ms\\ search","indy\\+library","seznam","sitevigil","intergator","freedom(?!from)","google\\+page\\+speed\\+insights","znajdzfoto\\/image","riddler\\.io","^java\\/","twiceler","httpunit","ktxn","webcopier","mna\\+digital\\+circonus\\+check","stuff(?!nz)","updatepatrol","feedburner","hp\\+sitescope","crawler","gigablastopensource\\/","rpt\\-http","^fdm\\ 3\\.x","libwww\\-perl","((?=pital)|ca(?=pital))pita","bingpreview","oia\\.owa","^ahc\\/","thunderstone","microsoft\\ bits","alertsite","^python\\-requests\\/","dts\\ agent","tangjiutao","^inmon","linkscan","alexa\\ site\\ audit","webtrends(?!clientlibrary)","chkd","joedog","daumoa","typhoeus","loadimpactpageanalyzer","google\\ news","coldfusion","mna\\ digital\\ circonus\\ check","alexa\\+site\\+audit","getright","appengine","(?=crawler)crawl","ibot(?!ta)","jobo","python\\-httplib","powermarks","site24x7","proximic","yahoo\\+pipes","((?=aporter)|oper(?=aportable))aport","web\\+downloader","check\\_http","grabber","topsy\\.com\\/butterfly\\/","harvest","^inagist\\+url\\+resolver","fast","crescent(?!\\ build|\\+build)","sohu(?!ennews|video|news)","favorg","bloglines","fetch(?!tv)","wapt","microsoft\\+url\\+control","urchin","ning\\/1\\.0","pluck","google\\+news","spider","\\(compatible\\;\\+optimizer\\)","moreover\\/5\\.1","js\\-kit","server\\ density\\ external\\ llama","facebookexternalhit","ultraseek","catchpoint","yandex(?!\\ browser|\\+browser|mail)","echo(?!arena|fon|star)","^worldwatch\\/","combine(?!d)","winhttprequest","ez\\+publish\\+link\\+validator","jakarta","^webnotifier\\/","webmetrics","teoma","nerdbynature","ms\\+frontpage","nielsen","sucker","engagebdr","yahoofeedseeker","dts\\+agent","googleapps","holmes","plumtree","www\\-mechanize","google\\-hoteladsverifier","pingdom","drupal","sina\\_weibo","google\\ page\\ speed\\ insights","lisa","w3c\\_validator","^scan","yeti","snoopy","khte","trovit","atomz","httpcomponents","ms\\+search","google\\-http\\-java\\-client","spi\\_der","bubing","websitepulse","microsoft\\+bits","http\\_request2","ieautodiscovery","siteimprove","curl(?!ings)","go\\+1\\.1\\+package\\+http","^crowsnest\\/","email\\ exractor","utorrent","yahoocachesystem","shopwiki","justview","googlesecurityscanner","msnptc","rkg\\+url\\+verifier","monitor","bitvouseragent","((?=wormgame))worm","talktalk","help\\.coccoc\\.com","yahoo\\ pipes","heritrix","nutch","argus","kulturarw3","checkurl","universalsearch","amazon\\ route\\ 53\\ health\\ check\\ service","slurp","mozilla\\/5\\.0\\ \\(compatible\\;\\ msie\\ 5\\.0\\)","ezooms","kimengi\\/nineconnections\\.com","applesyndication","python\\-urllib","internal\\+zero\\-knowledge\\+agent","system\\+center\\+operations\\+manager","riverglassscanner","imgsizer","changedetection","nutscrape","feedzilla","contype","^lwp","\\(compatible\\;\\ optimizer\\)","infolink","outbrain","^prerender","admantx","^inagist\\ url\\ resolver","amazon\\+route\\+53\\+health\\+check\\+service","neustar","a6\\-indexer","comodo\\+ssl\\+checker","linkchecker","viglink","patric","newsnow","wasalive","scrapy","(?=gruber)grub","ruxitsynthetic","rkg\\ url\\ verifier","ocelli","webcapture","^kraken\\/","t\\-h\\-u\\-n\\-d\\-e\\-r\\-s\\-t\\-o\\-n\\-e","spider(?!solitaire)","isearch","hp\\ sitescope","maxamine","\\(simulated\\_by\\_webserver\\_stress\\_tool\\)","((?=obotics)|ther(?=obotfree))obot","yacy","twibble\\.io","google\\+wireless\\+transcoder","wget","internal\\ zero\\-knowledge\\ agent","google\\ wireless\\ transcoder","xenu","yahooseeker","advanced\\ email\\ extractor","feed43","ptst","reconnoiter","go\\ 1\\.1\\ package\\ http","advanced\\+email\\+extractor","linkdex","panscient\\.com","webcheck","linktiger","scooter","flipboard\\.com\\/browserproxy","evidon","twisted\\ pagegetter","cosmos","adbeat","sherlock","web\\ downloader","cookiereports","siteexplorer","miva","twisted\\+pagegetter","mfc\\_tear\\_sample","indy\\ library","b2w(?!tenisnew)","orangebot(?!swana)","lockss\\+cache","mozilla\\/4\\.0\\+\\(compatible\\;\\+msie\\+6\\.0\\;\\+windows\\+nt\\+5\\.1\\;1813\\)","yahooexternalcache","apache\\-httpclient\\/4\\.","archive\\.org","wesee\\:search","hiscan","ms\\ frontpage","tagscanner","google\\ web\\ preview","special\\_archiver","d24y\\-aegis","scoutjet","larbin","adsense\\-snapshot\\-google","keynote","skypeuripreview","clickajob","download\\+ninja","internet\\ ninja","^ltx71","ukonline","eventmachine\\ httpclient","nomad","mediapartners","twikle","microsoft\\ scheduled\\ cache\\ content\\ download\\ service","internet\\+ninja","scanalert","metauri","agentname","adr\\)","squider","isilo","teleport","automationtest","bordermanager","linklint","bot","templeton","rssreader","ichiro","(?=dialer\\-mobileapp)dialer","atomic\\_email\\_hunter","google\\+web\\+preview","longurl\\+api","longurl\\ api","internetseer","server\\+density\\+external\\+llama","topix","iopus","download\\ ninja","mozilla\\/5\\.0\\+\\(compatible\\;\\+msie\\+5\\.0\\)","europarchive","avantgo","flamingo\\_searchengine","lockss\\ cache","jobrapido","wesee\\:ads\\/","frontier","newspaper\\/0\\.0\\.","apachebench","flamingosearch","lydia","microsoft\\ url\\ control","phantomjs","system\\ center\\ operations\\ manager","^econtext\\/","akamai","cfschedule","searchme\\.com\\/support\\/","fortimail","comodo\\ ssl\\ checker","gomezagent","sitecon","webauto","golem","swcd","spundge\\/0\\.1","findlinks","^sjn","yandex","ia\\_archive","vagabondo","watchmouse","simplepie","1job","goldfire"].join("|");new RegExp(X,"i");var $=Object.freeze({__proto__:null,init:function(e){e.forEach(e=>{e.addEventListener("load",()=>{const t=JSON.parse(e.getAttribute("data-player-document-config")),i=JSON.parse(e.getAttribute("data-a11y")),s=JSON.parse(e.getAttribute("data-i18n"));t.title=e.getAttribute("data-player-title"),t.subtitle=e.getAttribute("data-player-subtitle"),t.isScanAvailable="playerScanAvailable"in e.dataset,t.scanUnavailableOnDownloadTitle=e.getAttribute("data-player-scan-unavailable-on-download-title"),t.scanUnavailableOnAccessibilityModeTitle=e.getAttribute("data-player-scan-unavailable-on-accessibility-mode-title"),t.scanUnavailableRedirectUrl=e.getAttribute("data-player-scan-unavailable-redirect-url"),"playerCompactLayout"in e.dataset&&(t.isNativeDocumentEmbedsAuthorInfosTopbarLixEnabled?t.enableTopbarAuthor=!0:t.enableBottombar=!0),t.authorTitle=e.getAttribute("data-player-author-title"),t.authorSubtitle=e.getAttribute("data-player-author-subtitle"),t.authorTitleUrl=e.getAttribute("data-player-author-title-url"),t.inbugUrl=e.getAttribute("data-player-inbug-url");const n={context:"native-document",action:"init",doc:t,a11y:i,i18n:s};e.contentWindow.postMessage(JSON.stringify(n),"*")})})}});class ee{constructor(e,t={},i=window.tracking,s=window.lazyloader){const{sources:n,posterUrl:o,mediaUrn:r,trackingId:a,captionsUrl:l}=e.dataset,c=JSON.parse(n);if(!c.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,r,t,s).then(e=>(o&&e.poster(o),e.src(c),l&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:l}),this._bindTracking(e,i),e))}_createPlayer(e,t,i,s,n){return n.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(n=>{const{createPlayer:o}=n,r=s.plugins&&s.plugins.rum&&s.plugins.rum.mediaHeader&&s.plugins.rum.mediaHeader.mediaSource||"ugc",a=F({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{}},s);return a.plugins.tracking={mediaUrn:i,trackingId:t},a.plugins.rum={mediaUrn:i,trackingId:t,mediaHeader:{mediaSource:r}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const i=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",i),e.rum().on("track",i)})}_getMediaPlayerTrackingEventHandler(e){return function(t,{eventName:i,eventData:s}){let n=F({header:{},requestHeader:{}},s);delete n.name,delete n.plugin,delete n.instance,n.requestHeader.pageKey||(n.requestHeader.pageKey=a(document)),e.fireTrackingEvent(i,n)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}!function(e){new RegExp("<(?!/?(?:"+e.allowedTags+")(?:[ \t\r\n]*/?>|[ \t\r\n]+(?:(?:(?:"+e.allowedAttributes+")(?:=([\"'])[^'\"<>]*\\1)?|(?:"+e.allowedURLAttributes+")=([\"'])(?:(?:"+e.allowedURLSchemes+")(?::|&#(?:58|x3a);)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\2)[ \t\r\n]*)+/?>))","i")}({allowedTags:"a|abbr|address|area|article|aside|audio|b|bdi|bdo|big|blockquote|br|button|center|cite|code|datalist|dd|del|details|dfn|div|dl|dt|em|fieldset|figcaption|figure|font|footer|h[1-6]|header|hgroup|hr|i|img|ins|kbd|label|legend|li|map|mark|marquee|nav|nobr|ol|p|pre|q|rp|rt|ruby|s|samp|section|small|source|span|strike|strong|sub|sup|table|tbody|td|tfoot|th|thead|time|tr|u|ul|var|video|wbr",allowedAttributes:"alt|aria-[a-z0-9_\\-]+|border|caption|checked|class|colgroup|color|cols|colspan|controls|coords|data-[a-z0-9_\\-]+|dir|disabled|height|hidden|hreflang|id|label|loop|marginheight|marginwidth|maxlength|method|multiple|name|preload|readonly|rel|required|reversed|role|rows|rowspan|spellcheck|tabindex|target|title|type|usemap|width|clear|headers|ismap|lang|start|datetime|accept|max|min|placeholder|size|step",allowedURLAttributes:"href|src",allowedURLSchemes:"https?|ftp|mailto"});const te="".concat("tooltip__popup","--show");class ie{constructor(e){if(this.el=e,!e)throw Error("An element must be provided to Tooltip.");if(this.tooltipTriggerEl=this.el.querySelector(".".concat("tooltip__trigger")),!this.tooltipTriggerEl)throw Error("The tooltip trigger element must be present.");const t=this.el.querySelector(y);if(!t||!t.classList.contains("tooltip__trigger"))throw Error("The tooltip trigger element must be a focusable element.");if(!this.tooltipTriggerEl.hasAttribute("aria-label")&&!this.tooltipTriggerEl.hasAttribute("aria-describedby"))throw Error("The tooltip trigger element must have aria-label or aria-descriedby defined.");this.tooltipPopupEl=this.el.querySelector(".".concat("tooltip__popup")),this._attachEventListeners(),this._attachKeyEventListers()}_attachEventListeners(){this.tooltipTriggerEl.addEventListener("focus",()=>this._showTooltipPopup()),this.tooltipTriggerEl.addEventListener("blur",()=>this._hideTooltipPopup())}_attachKeyEventListers(){this.tooltipTriggerEl.addEventListener("keydown",({key:e})=>{u(e)===d.ESCAPE&&this._hideTooltipPopup()})}_showTooltipPopup(){this.tooltipPopupEl.classList.add(te)}_hideTooltipPopup(){this.tooltipPopupEl.classList.remove(te)}}const se="dismissable-input",ne="dismissable-input--focus",oe="dismissable-input__button",re="dismissable-input__button--show",ae="dismissable-input__input";class le{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(ae)),this._dismissButtonEl=this.el.querySelector(".".concat(oe)),this._isDismissable=!!this._dismissButtonEl,this._attachEventListeners()}_attachEventListeners(){this._input.addEventListener("focus",this._onInputFocus.bind(this)),this._input.addEventListener("input",this._updateDismissButton.bind(this)),this._input.addEventListener("blur",this._onInputBlur.bind(this)),this._isDismissable&&(this._dismissButtonEl.addEventListener("click",this.clear.bind(this)),this._updateDismissButton())}_onInputFocus(){this.el.classList.add(ne),this._updateDismissButton(),v(this._input,"dismissableInputFocused")}_updateDismissButton(){this._isDismissable&&(this._input.value.length?(this._showDismissButton(),this._dismissButtonEl.disabled=!1):(this._hideDismissButton(),this._dismissButtonEl.disabled=!0))}_hideDismissButton(){this._dismissButtonEl.classList.remove(re)}_showDismissButton(){this._dismissButtonEl.classList.add(re)}_onInputBlur(){this.el.classList.remove(ne)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),v(this.el,"clear")}}const ce={block:"typeahead-input",showList:"typeahead-input__dropdown--show",dropdown:"typeahead-input__dropdown",dropdownList:"typeahead-input__dropdown-list",dropdownText:"typeahead-input__dropdown-text",listItemFocus:"typeahead-input__dropdown-item--highlighted",listItem:"typeahead-input__dropdown-item",liveText:"typeahead-live-text",template:"typeahead-item-template"};class de{constructor(e,{createDismissableInput:t,elementClasses:i=ce,generateApiUrl:s,liveTextEl:n,liveTextClearTime:o=500,onSelect:r,onInput:a=(()=>{})}){this.el=e,this._liveTextClearTime=o,this._elementClasses=i,this._input=this.el.querySelector(".".concat(ae)),this._dropdownContainerEl=this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=s,this._onSelect=r,this._onInput=a,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=n||this.el.querySelector(".".concat(this._elementClasses.liveText)),t&&(this.dismissableInput=new le(this.el)),this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=b(this._getAndApplyResults.bind(this),500)}_resetState(){this._dropdownListItemEls=[],this._setHighlightedEl(null),this._setExpandedState(!1)}_attachEventListeners(){this.checkForListItemSelectHandler=this._checkForListItemSelect.bind(this),this.hideListHandler=this._hideList.bind(this),this.onKeyDownHandler=this._onKeyDown.bind(this),this.onUserInputHandler=this._onUserInput.bind(this),this.onClearHandler=this._onClear.bind(this),this._input.addEventListener("keydown",this.onKeyDownHandler),this._input.addEventListener("input",this.onUserInputHandler),this._input.addEventListener("focus",this.onUserInputHandler),this._input.addEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler),this._isDismissable&&this.el.addEventListener("clear",this.onClearHandler)}_removeEventListeners(){this._input.removeEventListener("keydown",this.onKeyDownHandler),this._input.removeEventListener("input",this.onUserInputHandler),this._input.removeEventListener("focus",this.onUserInputHandler),this._input.removeEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler)}_isListActive(){return this.el.getAttribute("aria-owns")===this._listId&&"true"===this.el.getAttribute("aria-expanded")}_clickOutsideToCloseHandler(e){e.target!==this._input&&this._hideList()}_onKeyDown(e){if(this._isListActive())switch(u(e.key)){case d.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case d.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case d.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let i=null===this._highlighted.index?t:this._highlighted.index+e;i<0&&(i=this._dropdownListItemEls.length-1),i>=this._dropdownListItemEls.length&&(i=0),this._setHighlightedEl(i)}_setHighlightedEl(e){this._highlighted&&this._highlighted.el&&(this._highlighted.el.classList.remove(this._elementClasses.listItemFocus),this._highlighted.el.setAttribute("aria-selected",!1)),null===e?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el=this._dropdownListItemEls[e],this._highlighted.index=e,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(this._elementClasses.listItemFocus),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_isInputValid(){return this._input.value.length>0}_onUserInput(e){this._onInput(e),this._isInputValid()?this._requestHandler():this._hideList()}_getAndApplyResults(){if(this._isInputValid()){const e=this._input.value;this._makeTypeaheadRequest(e).then(e=>this._appendResults(e)).then(()=>this._showList())}}_makeTypeaheadRequest(e){return C(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_appendResults(e=[]){this._hideList(),e.forEach((e,t)=>{const i=document.importNode(this._typeaheadItemTemplate.content,!0),s=i.querySelector(".".concat(this._elementClasses.listItem)),n=s.querySelector(".".concat(this._elementClasses.dropdownText));s.id="".concat(this._input.name,"-").concat(t+1),n.textContent=e.displayName,n.dataset.id=e.id,this._dropdownListEl.appendChild(i)}),this._dropdownListItemEls=_(this._dropdownListEl.children)}_shouldShowList(){return this._dropdownListItemEls.length>0&&this._isInputValid()}_showList(){this._shouldShowList()?(this._dropdownContainerEl.classList.add(this._elementClasses.showList),document.body.addEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!0)):(this._hideList(),this._setExpandedState(!1)),this._setLiveText()}_hideList(){if(this._isListActive()){for(;this._dropdownListEl.firstChild;)this._dropdownListEl.removeChild(this._dropdownListEl.firstChild);this._resetState(),this._dropdownContainerEl.classList.remove(this._elementClasses.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler)}}_onClear(){this.hideListHandler()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const i=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector(".".concat(this._elementClasses.dropdownText));i&&this.el.contains(i)&&this._updateInputTo(i)}_updateInputTo(e){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=Q("i18n_aria_live_text_no-suggestions"),this._liveTextOneSuggestion=Q("i18n_aria_live_text_one-suggestion"),this._liveTextMultipleSuggestions=Q("i18n_aria_live_text_multiple-suggestions")}_getLiveText(){let e;switch((this._dropdownListItemEls||[]).length){case 0:e=this._liveTextNoSuggestions;break;case 1:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_setLiveText(){const e=this._getLiveText(),t=document.createElement("p");t.textContent=e,this._liveTextEl.children.length&&(this._liveTextEl.removeChild(this._liveTextEl.firstChild),clearTimeout(this._liveTextTimeout)),this._liveTextEl.appendChild(t),this._liveTextTimeout=setTimeout(()=>{this._liveTextEl.firstChild&&this._liveTextEl.removeChild(this._liveTextEl.firstChild)},this._liveTextClearTime)}_setExpandedState(e){this.el.setAttribute("aria-expanded",e),e&&(this.el.setAttribute("aria-owns",this._listId),this._input.setAttribute("aria-controls",this._listId))}}class he{constructor(e,t,i,{onCloseExpandedSearch:s=(e=>e),isMobileDevice:n=!1}={}){if(this.el=e,this.expandedEl=t,this.placeholderEl=i,this.isMobileDevice=n,!this.el)throw new Error("No element passed in to BaseSearchBar");this.isExpanded=!1,this.type=this.el.getAttribute("data-searchbar-type"),this.firstInput=this.el.querySelector("input:first-of-type"),this.isIOSDevice="iPhone"===navigator.platform||"iPad"===navigator.platform||"iPod"===navigator.platform,this.onCloseExpandedSearch=s,n&&(this.focusTrap=new H(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target:i}=e,s="Escape"===t,n="INPUT"===i.tagName;s&&!n?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;p(t,".".concat(ce.block))||document.activeElement.blur()}_userIsTabbedOut(){return!(!this.expandedEl.classList.contains("isExpanded")||!function(e=window){return e.innerWidth<769}())&&!this.expandedEl.contains(document.activeElement)}}class ue extends de{constructor(e,{generateApiUrl:t,liveTextEl:i,onSelect:s,onInput:n}){super(e,{createDismissableInput:!0,generateApiUrl:t,liveTextEl:i,onSelect:s,onInput:n})}}const pe={clearButton:"recent-searches__clear-btn",dropdown:"recent-searches",dropdownList:"recent-searches__list",listItem:"recent-searches__item",listItemClearButton:"recent-searches__item--clear",listItemLink:"recent-searches__item-link",listItemFocus:"recent-searches__item--highlighted",showList:"recent-searches--show"};class _e extends de{constructor(e,{liveTextEl:t,clearRecentSearchApiBaseUrl:i}){if(super(e,{liveTextEl:t,elementClasses:pe,liveTextClearTime:1e3}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(pe.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=_(this.dropdownContainerEl.querySelectorAll(".".concat(pe.listItem))),this._clearBtnItem=e.querySelector(".".concat(pe.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(oe))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(pe.clearButton)),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this._clearBtn.addEventListener("mousedown",this._clearRecentSearchesHandler),super._attachEventListeners()}_removeEventListeners(){this._clearBtn.removeEventListener("mousedown",this._clearRecentSearchesHandler),super._removeEventListeners()}_onUserInput(){this._shouldShowList()?this._showList():this._hideList()}_redirect(e){e.click()}_clickOutsideToCloseHandler(e){e.target===this._input||this._dismissButtonEl.contains(e.target)||this._hideList()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const i=t.querySelector(".".concat(pe.listItemLink));i?this._redirect(i):t.classList.contains(pe.listItemLink)?this._redirect(t):t===this._clearBtnItem&&this._clearRecentSearches()}_shouldShowList(){return this._dropdownListItemEls.length>1&&0===this._input.value.length}_onClear(){this.onUserInputHandler()}_hideList(){this._isListActive()&&(this.dropdownContainerEl.classList.remove(pe.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=Q("i18n_aria_live_text_recent-searches-one-suggestion"),this._liveTextMultipleSuggestions=Q("i18n_aria_live_text_recent-searches-multiple-suggestions"),this._liveTextClearedSuggestions=Q("i18n_aria_live_text_recent-searches-cleared")}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){C(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}const me="switcher-tabs__tab--active";class ge{constructor(e,t,i){this.el=e,this.mobileTriggerEl=i,this.baseSearchBarsMap=t,this.currentType=this.el.getAttribute("data-current-search-type"),this.switcherTriggerAndTabs=this.el.querySelector(".".concat("switcher-tabs__trigger-and-tabs")),this.switcherTabs=this.el.querySelector(".".concat("switcher-tabs")),this.dropdownList=this.el.querySelector(".".concat("switcher-tabs__list")),this.dropdownTrigger=this.el.querySelector(".".concat("switcher-tabs__placeholder")),this.dropdownPlaceholderText=this.el.querySelector(".".concat("switcher-tabs__placeholder-text")),this._handleSwitcherClick=this._handleSwitcherClick.bind(this),this._initMobileExpandedSwitcher(),this._initCollapsibleSwitcher()}_initMobileExpandedSwitcher(){this.el.addEventListener("click",this._handleSwitcherClick),this.mobileTriggerEl.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].showExpandedSearch()}),this.cancelBtn=this.el.querySelector(".".concat("switcher-tabs__cancel-btn")),this.cancelBtn.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].hideExpandedSearch()})}_initCollapsibleSwitcher(){this.collapsibleSwitcher=new x(this.switcherTriggerAndTabs,{dropdownContentEl:this.dropdownList,dropdownTriggerEl:this.dropdownTrigger}),this.switcherTriggerAndTabs.addEventListener("open",()=>this._openSwitcher()),this.switcherTriggerAndTabs.addEventListener("close",()=>this._closeSwitcher()),this._updatePlaceholderText()}_openSwitcher(){this.dropdownList.addEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("hide-on-desktop"),this.switcherTabs.classList.add("show-on-desktop"),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("show-on-desktop"),this.switcherTabs.classList.add("hide-on-desktop")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button"))return;const t=e.target.getAttribute("data-switcher-type"),i=e.target.parentNode;t&&i&&this.currentType!==t?(this.collapsibleSwitcher.collapsible.currentListItem=p(e.target,"li"),this._switchTo(t,i)):this.collapsibleSwitcher.collapsible.close()}_switchTo(e,t){this._updateActiveTab(t),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",e),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[e].showExpandedSearch():this.baseSearchBarsMap[e].hideExpandedSearch(),this.currentType=e}_updateActiveTab(e){const t=this.el.querySelector(".".concat(me));t&&(t.querySelector(".".concat("switcher-tabs__button")).setAttribute("aria-selected","false"),t.classList.remove(me)),e.classList.contains("switcher-tabs__tab")&&(e.classList.add(me),e.querySelector(".".concat("switcher-tabs__button")).setAttribute("aria-selected","true"))}_updatePlaceholderText(){let e=this.el.querySelector(".".concat(me));if(e){let t=e.querySelector(".".concat("switcher-tabs__button"));this.dropdownPlaceholderText.textContent=t.textContent}}}class be{constructor(e,{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:i,shouldSearchOnSelect:s=!0,onCloseExpandedSearch:n}={}){if(this.el=e,!this.el)throw new Error("No element passed into SearchBar");this.typeaheadApiBaseUrl=t;const o=this.el.querySelector(".".concat("search-bar__live-text"));this.shouldSearchOnSelect=s,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const r=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=_(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const i=new he(t,this.el,this.placeholderEl,{onCloseExpandedSearch:n,isMobileDevice:r});return e[i.type]=i,e},{}),t){this.baseSearchBarFormEl=this.baseSearchBarsMap.JOBS.el.querySelector(".base-search-bar__form"),this.geoIdInputEl=this.el.querySelector('input[name="geoId"]');const e=this.el.querySelector(".keywords-typeahead-input");new ue(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:o,onSelect:this._onKeywordsTypeaheadSelect.bind(this)}),e.querySelector(".".concat(pe.dropdown))&&new _e(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:o}),new ue(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:o,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(".".concat(se,".search-input"))).forEach(e=>{new le(e),e.querySelector(".".concat(pe.dropdown))&&new _e(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:o})})}else Array.from(this.el.querySelectorAll(".".concat(se))).forEach(e=>new le(e));this.switcher=new ge(e,this.baseSearchBarsMap,this.placeholderEl),this.setupSearchInputFocusTracking()}_generateKeywordsTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e))}_generateLocationTypeaheadApiUrl(e){return"".concat(this.typeaheadApiBaseUrl,"?query=").concat(window.encodeURIComponent(e),"&typeaheadType=GEO&geoTypes=POPULATED_PLACE,ADMIN_DIVISION_2,MARKET_AREA,COUNTRY_REGION")}_onKeywordsTypeaheadSelect(){this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadSelect(e){this.geoIdInputEl&&(this.geoIdInputEl.value=e.dataset.id),this.shouldSearchOnSelect&&this._submitForm()}_onLocationTypeaheadInput(){this.geoIdInputEl&&(this.geoIdInputEl.value="")}_submitForm(){this.baseSearchBarFormEl&&this.baseSearchBarFormEl.submit()}setupSearchInputFocusTracking(){this.el.addEventListener("dismissableInputFocused",e=>{const t=e.target.getAttribute("data-tracking-control-name");t&&window.tracking&&window.tracking.then(e=>{e.fireTrackingEvent("SearchInputFocusEvent",{header:{},controlUrn:"urn:li:control:".concat(a(document),"-").concat(t)})})})}}function we(){const e=(e="")=>!e||0===e.trim().length;return e.errorMessageSuffix="error_empty",e}function ve(e){const t=(t="")=>t.length<e;return t.errorMessageSuffix="error_too_short",t}function Ee(e){const t=(t="")=>t.length>e;return t.errorMessageSuffix="error_too_long",t}we(),ve(3),Ee(128),we(),ve(6),Ee(400);var fe=window||e;fe.utag_data||(fe.utag_data={});const ye="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;fe.utag_cfg_ovrd=fe.utag_cfg_ovrd||{},fe.utag_cfg_ovrd.noview=!0,fe.utag_cfg_ovrd.nocookie=!0,ye&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(fe.navigator.userAgent),function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var i=this.listeners[e],s=0,n=i.length;s<n;s++)if(i[s]===t)return void i.splice(s,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),i=0,s=t.length;i<s;i++)t[i].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const Le={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Se={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Te,GOOGLE_USER_FETCHED:ke,INITIALIZED:xe}=Le,{INITIALIZATION:Ce,AUTHENTICATION:Ae}=Se;EventTarget;const Ie=Le,Oe=Se,{GOOGLE_USER_FETCHED:Re,GOOGLE_ERROR:Be,INITIALIZED:De}=Ie,{INITIALIZATION:qe}=Oe;".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");class Ne{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e;const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.collapsibleDropdown=new x(t)}}var Ue;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(Ue||(Ue={})),new Set(Object.values(Ue)),Error}).call(this,i(2))},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},,,function(e,t,i){"use strict";i.r(t);var s=i(1),n="".concat("video-entity","--loaded"),o="".concat("video-entity","--play"),r="".concat("video-entity","--pause"),a="".concat("video-entity","--ended");class l{constructor(){var e=document.querySelector(".share-native-video__node"),t=document.querySelector(".share-update-content--compact");this.videoInitialisedPromise=s.k.getDeferredPromise(),new s.f(e).getPlayerPromise().then(e=>(t&&this._handleCompactVideoPlayer(e,t),this.videoInitialisedPromise.resolve()))}_handleCompactVideoPlayer(e,t){var i=document.querySelector(".modal__outlet--outlet-button-square"),s=document.querySelector(".share-native-video-overlay__topbar-item--like"),l=document.querySelector(".share-native-video-overlay__topbar-title"),c=document.querySelector(".share-native-video"),d=[i,s,l],h=document.querySelector(".share-native-video-overlay__preview");h&&(this._hideElementsCoveredByOverlay(e,c,d),h.addEventListener("click",()=>{t.classList.add(n),this._restoreElementsCoveredByOverlay(e,c,d),e.focus(),e.play()})),e.on("play",(function(){t.classList.remove(a),t.classList.remove(r),t.classList.add(o)})),e.on("pause",(function(){t.classList.remove(o),t.classList.add(r)})),e.on("ended",(function(){t.classList.add(a),t.classList.remove(o)}))}_hideElementsCoveredByOverlay(e,t,i){e.controlBar.hide(),t&&t.setAttribute("aria-hidden","true"),i.forEach(e=>{e&&e.classList.add("visibility-hidden")})}_restoreElementsCoveredByOverlay(e,t,i){e.controlBar.show(),t&&t.removeAttribute("aria-hidden"),i.forEach(e=>{e&&e.classList.remove("visibility-hidden")})}}var c=document.referrer.split("/").slice(0,3).join("/"),d=document.querySelector(".embedded-social-share");d&&new s.b(d);var h=document.querySelector(".main--embed");h&&-1!==["https://www.linkedin.com","https://www.linkedin.cn","https://pemberly.www.linkedin.com:4443","https://www.linkedin-ei.com","https://www.linkedin-ei.cn","https://pemberly.www.linkedin-ei.com:4443"].indexOf(c)&&window.parent.postMessage({context:"public-post",height:Math.ceil(h.offsetHeight)},c),document.querySelector(".share-native-video__node")&&s.k.onload(()=>{new l}),s.j.init(s.k.makeArray(document.querySelectorAll(".share-native-document__iframe")))}]);