!function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";(function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o;n.d(t,"a",(function(){return yt})),n.d(t,"b",(function(){return he})),n.d(t,"c",(function(){return J})),n.d(t,"d",(function(){return we})),n.d(t,"e",(function(){return le})),n.d(t,"f",(function(){return _e})),n.d(t,"g",(function(){return De})),n.d(t,"h",(function(){return pe})),n.d(t,"i",(function(){return lt})),n.d(t,"j",(function(){return me})),n.d(t,"k",(function(){return q})),n.d(t,"l",(function(){return k})),n.d(t,"m",(function(){return z})),n.d(t,"n",(function(){return It}));var r,a,l,c={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},d="GUEST",h="MEMBER",u=(s(o={},d,"li_gc"),s(o,h,"li_mc"),o),p=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var r in i(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=s,this.optedInConsentMap={},c)t[r]=t[r]||0,0!==t[r]&&(this.consentAvailable=!0),this.optedInConsentMap[r]=1===t[r]||0===t[r]&&1===o},g=(r=[c.ADVERTISING,c.ANALYTICS_AND_RESEARCH,c.FUNCTIONAL],a=[0,1,2,0],l=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(l);if(!n)return{error:"Invalid consent body encoding",consent:new p};for(var i=parseInt(n[1],10),s={},o=0;o<r.length;o++)s[r[o]]=a[i>>2*o&3];var c=new Date(1e3*parseInt(n[2],10)),d=parseInt(n[3],10),h=0;return d>=0&&d<=3&&(h=a[d]),{error:null,consent:new p(s,c,t,h)}}}),m=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),_=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));if(n&&n.length>1)return n[1]},f=function(e,t){var n=_(u[e],t);return n?E(n,e):_(u[d],t)||_(u[h],t)?v(2):v(1)},v=function(e){var t={};for(var n in c)t[n]=e;return{error:null,consent:new p(t,null,null,e)}},E=function(e,t){var n=atob(e).match(m);if(!n)return{error:"Invalid consent encoding",consent:new p};var i=parseInt(n[1],10),s=n[2];switch(i){case 1:return g.parseConsentBody(s,t);default:return{error:"Invalid encoded consent version ".concat(i),consent:new p}}},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e="true"===_("liap",t)?_(u[h],t)?h:d:_(u[d],t)?d:h),f(e,t)};function b(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function y(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function T(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function I(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function S(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}window.encodeURIComponent;var k=Object.freeze({__proto__:null,getPageKey:b,getPageTag:y,getLocale:T,getDomain:I,trimDoubleQuotes:S});const L={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},O={Down:L.ARROW_DOWN,Right:L.ARROW_RIGHT,Left:L.ARROW_LEFT,Up:L.ARROW_UP,Esc:L.ESCAPE,Spacebar:L.SPACEBAR,Tab:L.TAB};function C(e){return O[e]||e}function A(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function P(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function R(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function x(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 s=R(e,t,!0);if(s)return i?e.replace(s,n):e;{const i=e.indexOf("?");let[s,o]=e.split("#"),r="&";return i<0?r="?":i===e.length-1&&(r=""),o&&(o="#".concat(o)),"".concat(s).concat(r).concat(t,"=").concat(n).concat(o||"")}}function N(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function.");let i;return(...s)=>{const o=n&&!i;clearTimeout(i),i=setTimeout(()=>{i=null,n||e.apply(this,s)},t),o&&e.apply(this,s)}}function D(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function U(e,t,n={}){const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}var q=Object.freeze({__proto__:null,closest:A,onload:function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})},makeArray:P,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:function(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,s=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return s&&o},hasElementScrolledToThreshold:function({scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}={},i=0){return e>=n-(t+t*i)},getQueryParam:R,addTrackingCode:function(e,t){return x(e,"trk",t)},addQueryParam:x,debounce:N,getCookie:D,dispatchCustomEvent:U,getDeferredPromise:function(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}});class B{constructor(e,t,{mainButton:n,closeButton:i},s={}){if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An list element must be provided to Collapsible");if(!n)throw Error("A main button element must be provided to Collapsible");this.el=e,this.listEl=t;let{currentListItem:o=t.children[0],isOpen:r=!1}=s;this.currentListItem=o,this.isOpen=r,this.mainButton=n,this.closeButton=i,this.buttons=[n],this.el.addEventListener("keyup",e=>this._onKeyUp(e)),this.mainButton.addEventListener("click",()=>this.closeButton?this._open():this._toggle()),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)),this.currentListItem&&this.currentListItem.setAttribute("aria-selected",!0),this.listEl.addEventListener("keydown",e=>this._onListKeyDown(e))}_toggle(){this.isOpen?this.close():this._open()}_onButtonKeyDown(e){const t=C(e.key);switch(t){case L.ENTER:case L.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(t);break;case L.ARROW_UP:this.isOpen||this._open();break;case L.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){C(e.key)===L.SPACEBAR&&e.preventDefault()}_onListKeyDown(e){let t;switch(C(e.key)){case L.SPACEBAR:U(e.target,"click");break;case L.ESCAPE:this.isOpen&&this.close();break;case L.ARROW_LEFT:case L.ARROW_UP:t=A(e.target,"li");let n=t.previousElementSibling;n&&U(n,"focus");break;case L.ARROW_RIGHT:case L.ARROW_DOWN:t=A(e.target,"li");let i=t.nextElementSibling;i&&U(i,"focus")}}_open(){this.isOpen||(this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),U(this.el,"open"),U(this.currentListItem,"focus"))}close({shouldReturnFocusToTrigger:e=!0}={}){this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),U(this.el,"close"),e&&this.mainButton.focus())}}const H=['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 F(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function M(e,t=document.documentElement,n){if(e===t)return!F(e);if(n&&n.get(e))return n.get(e);let i;return F(e)?i=!1:e.parentNode&&(i=M(e.parentNode,t,n)),n&&n.set(e,i),i}const j=".".concat("collapsible-dropdown","__list"),K=".".concat("collapsible-dropdown","__button");class W{constructor(e,t=(e=>e.querySelector(H)),{currentListItem:n,dropdownTriggerEl:i,listEl:s}={}){if(!e)throw Error("An element must be provided to CollapsibleDropdown");this.el=e,this.listEl=s||this.el.querySelector(j),this.dropdownTriggerEl=i||this.el.querySelector(K),this._getFocusItemFromListItem=t,this.hideClass="hidden",this.collapsible=new B(e,this.listEl,{mainButton:this.dropdownTriggerEl},{currentListItem:n}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners()}_attachEventListeners(){this.el.addEventListener("open",()=>this._showDropdownList()),this.el.addEventListener("close",()=>this._hideDropdownList()),this.listEl.addEventListener("focus",e=>this._focusItem(e))}_focusItem(e){const t=e.target;if(t){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_showDropdownList(){document.addEventListener("mousedown",this._handleBodyClick),this.el.addEventListener("focusout",this._focusOutsideDropdown),window.addEventListener("blur",this._leaveWindow),this.listEl.classList.remove(this.hideClass)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),window.removeEventListener("blur",this._leaveWindow),this.listEl.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 z(e,{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:s=!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 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},a(n)}})),l.addEventListener("error",(function(e){a(e)})),l.open(t,e,!0),l.withCredentials=i,Object.keys(n).forEach(e=>{l.setRequestHeader(e,n[e])}),!s){const e=D("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",S(e))}l.send(o)})}const G=".".concat("language-selector__link"),V="".concat(G,"--selected");class J{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(V),this.getFocusItemFromListItem=e=>e.classList.contains("language-selector__link")?e:e.querySelector(G),this.collapsibleDropdown=new W(e,this.getFocusItemFromListItem,{dropdownTriggerEl:this.dropdownTriggerEl,currentListItem:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){const t=e.target.getAttribute("data-locale");return this._makeLangCookieRequest(t).then(()=>{location.reload()})}_makeLangCookieRequest(e){const t=S(D("bcookie")||""),n=I(document),i=this._getRequestDomain(n);return z("".concat(i,"/psettings/update-language/cors?csrfToken=").concat(encodeURIComponent(t)),{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({locale:e}),skipCsrfToken:!0})}_getRequestDomain(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}}var Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};parseInt;var $="object"==typeof Y&&Y&&Y.Object===Object&&Y,Q="object"==typeof self&&self&&self.Object===Object&&self;$||Q||Function("return this")(),Object.prototype.toString,Math.max,Math.min,"".concat(".member-nav-menu","__item-link"),"".concat(".member-nav-menu","__button");var X=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){!function(e){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Y||"undefined"!=typeof self&&self;var t,n,i,s,o=function(e,t){return function(e,t){!function(e,t){var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment,i=n&&!!window.requestIdleCallback,s={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,s){this._beacon(e,t,i,s||this.globalTrackingUrl,this.disableSendBeacon?null:n&&navigator.sendBeacon&&navigator.sendBeacon.bind(navigator))},_beacon:function(e,t,n,i,s){if(s){var o=void 0;try{o=s(i,e)}catch(t){throw"object"==typeof t&&(t.message="Error sending ["+e+"] to "+i+" using sendBeacon:"+t.message,t.tags=["tracking"]),t}if(o)return void(t&&t(o))}this.ajax(e,t,n,i)},ajax:function(e,t,n,i){var s;i?(s=this.createXmlHttpObject())&&(s.open(this.AJAX_METHOD,i,!0),s.withCredentials=!0,s.setRequestHeader("Content-type","application/json"),this.csrfToken?s.setRequestHeader("Csrf-Token",this.csrfToken):s.setRequestHeader("Csrf-Token",this.getCsrfToken()),this.testId&&s.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_ID",this.testId),this.testSegId&&s.setRequestHeader("X-LinkedIn-traceDataContext-ENG_TEST_SEGMENT_ID",this.testSegId),s.onreadystatechange=function(){4===s.readyState&&(200===s.status||304===s.status?"function"==typeof t&&t(s):n&&n('Response is not "OK" or "Not Modified" for tracking request'))},4!==s.readyState&&s.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=s}(0,e)}(t={exports:{}}),t.exports}();function r(){if("undefined"!=typeof window&&void 0!==window.sessionStorage)try{return JSON.parse(window.sessionStorage.getItem("li_trk_navigation"))}catch(e){}}function a(e){if("undefined"!=typeof window&&void 0!==window.sessionStorage)try{window.sessionStorage.setItem("li_trk_navigation",JSON.stringify(e))}catch(e){}}(s=e.ControlInteractionType||(e.ControlInteractionType={}))[s.FOCUS=0]="FOCUS",s[s.UNFOCUS=1]="UNFOCUS",s[s.KEYBOARD_SUBMIT=2]="KEYBOARD_SUBMIT",s[s.DRAG=3]="DRAG",s[s.PINCH_OPEN=4]="PINCH_OPEN",s[s.PINCH_CLOSE=5]="PINCH_CLOSE",s[s.DOUBLE_PRESS=6]="DOUBLE_PRESS",s[s.LONG_PRESS=7]="LONG_PRESS",s[s.SHORT_PRESS=8]="SHORT_PRESS",s[s.SWIPE_UP=9]="SWIPE_UP",s[s.SWIPE_DOWN=10]="SWIPE_DOWN",s[s.SWIPE_LEFT=11]="SWIPE_LEFT",s[s.SWIPE_RIGHT=12]="SWIPE_RIGHT",s[s.FLICK_UP=13]="FLICK_UP",s[s.FLICK_DOWN=14]="FLICK_DOWN",s[s.FLICK_LEFT=15]="FLICK_LEFT",s[s.FLICK_RIGHT=16]="FLICK_RIGHT",s[s.SHAKE=17]="SHAKE",s[s.KEYBOARD_NEXT=18]="KEYBOARD_NEXT",s[s.HOVER=19]="HOVER",(i=e.PageViewPageType||(e.PageViewPageType={}))[i.FULL=1]="FULL",i[i.AJAX=2]="AJAX",i[i.IFRAME=3]="IFRAME",i[i.REDIRECT=4]="REDIRECT",i[i.API=5]="API",i[i.FORM=6]="FORM",i[i.ROUTER=7]="ROUTER",i[i.ERROR=8]="ERROR",(n=e.EventTypes||(e.EventTypes={}))[n.PageViewEvent=0]="PageViewEvent",n[n.NavigationEvent=1]="NavigationEvent",n[n.ExternalNavigationEvent=2]="ExternalNavigationEvent",n[n.ControlInteractionEvent=3]="ControlInteractionEvent",n[n.PageVisibilityChangeEvent=4]="PageVisibilityChangeEvent";var l="undefined"!=typeof window?window:null;l?function(){var e=l.crypto||l.msCrypto;if(!t&&e&&e.getRandomValues){var n=new Uint8Array(16);(t=function(){return e.getRandomValues(n),n})()}if(!t){var i=new Uint8Array(16);t=function(){for(var e=0,t=void 0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=(t||0)>>>((3&e)<<3)&255;return i}}}():t=function(){return new Uint8Array(16).fill(Math.floor(256*Math.random()))};for(var c=[],d=0;d<256;d++)c[d]=(d+256).toString(16).substr(1);function h(){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 u(){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(""))}(h())}function p(e){return e?"urn:li:page:"+e:null}function g(e,t){return e&&t?"urn:li:control:"+t+"-"+e:null}function m(e){return e?e.split(":").pop():null}function _(e,t){return e?{trackingId:t||u(),pageUrn:p(e)}:null}function f(e){if("string"!=typeof e)return null;var t=e.split(";");return 2===t.length?{pageUrn:t[0],trackingId:t[1]}:null}function v(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 w=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),s=0;s<t.length;s++){var o=t[s];if(null!==o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r])}return i},b=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=f(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=r();if(!i)return null;for(var s=0;s<i.length;s++){var o=i[s].href;if(o===e||o===t||o===n){var l=i.splice(s,1)[0];return a(i),l}}return null}();i&&(e.previousPageInstance=i.prevInstance),Object.freeze(this.config.eventHeaderProperties),Object.freeze(this.config.userRequestHeaderProperties),Object.freeze(this.config),o.init(),o.setProperty("disableSendBeacon",!1),o.setTrackingUrl(this.config.trackingUrl),o.setProperty("maxQueueSize",this.config.requestBatchingMaxQueueSize||10),o.setProperty("queueTimeout",1e3*(this.config.requestBatchingMaxWaitSeconds||10)),this.state={currentPageInstance:e.initialPageInstance,previousPageInstance:e.previousPageInstance||null};var s=this.config.prevControlName||(i?i.controlName:null);this.fireNavigationEvent(this.state.previousPageInstance,s),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 l="visibilitychange";document&&(void 0!==document.msHidden&&(l="msvisibilitychange"),document.addEventListener(l,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"),s=t.getAttribute("data-tracking-href")||t.getAttribute("href");i&&!e.defaultPrevented&&this.saveStateForPageDeparture({controlName:n,href:s})}},t.prototype._handleWindowBeforeUnload=function(e){var t=e.target.activeElement,n=t,i=null,s=!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&&(s=n.hasAttribute("data-tracking-will-navigate")))}s||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){var t,n;e&&(t={controlName:e.controlName,href:e.href,prevInstance:this.state.currentPageInstance},(n=r()||[]).push(t),a(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 s=m(this.state.currentPageInstance.pageUrn),o=i.uiControlPageKey||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.ControlInteractionEvent],{requestHeader:{},header:{},controlUrn:g(t,o),interactionType:e.ControlInteractionType[n]},i)},t.prototype.fireNavigationEvent=function(t,n,i){void 0===i&&(i={});var s=t?m(t.pageUrn):null,o=i.uiControlPageKey||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.NavigationEvent],{requestHeader:{},header:{},previousPageInstance:t,triggerControlUrn:g(n,o)},i)},t.prototype.fireExternalNavigationEvent=function(t,n){void 0===n&&(n={});var i=n.uiControlPageKey||m(this.state.currentPageInstance.pageUrn);this.fireTrackingEvent(e.EventTypes[e.EventTypes.ExternalNavigationEvent],{requestHeader:{},header:{},triggerControlUrn:g(t,i)},n,!0)},t.prototype.firePageViewEvent=function(t,n){void 0===n&&(n={});var i=(n=w({},n)).pageViewPageType||e.PageViewPageType.AJAX,s=m(this.state.currentPageInstance.pageUrn),o=t||s;this.fireTrackingEvent(e.EventTypes[e.EventTypes.PageViewEvent],{requestHeader:{pageKey:o},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=w({},this.state.currentPageInstance),s=_(e);this.state.previousPageInstance=i,this.state.currentPageInstance=s,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=w({},t),(n=w({},n)).topicName||(n.topicName=e),n.pageInstance||(n.pageInstance=this.state.currentPageInstance);var s=w({pageKey:m(n.pageInstance.pageUrn),path:window.location.href,referer:v(document),trackingCode:E(document)},this.config.userRequestHeaderProperties,t.requestHeader);delete t.requestHeader,delete t.header.pageInstance;var r=w({pageInstance:n.pageInstance,time:Date.now()},this.config.eventHeaderProperties,t.header);delete t.header;var a={requestHeader:s,header:r};this.config.mapHeaders&&(a=this.config.mapHeaders(a));var l=w(a,t),c={eventName:e,topicName:n.topicName,appId:this.config.appId};this.config.validationMode?o.validateEvent(c,l,(function(t){t&&console.error("Event "+e+" failed validation!")})):(o.sendEvent(c,l),i&&o.flush())},t.prototype.destroy=function(){o.destroy(),document.removeEventListener("click",this._boundDocumentClickHandler,!0)},t.createFromPageKey=function(e,n){return e.initialPageInstance=_(n),new t(e)},t}();e.AppTrackingInstance=b,e.clearNavStorage=function(){window.sessionStorage.removeItem("li_trk_navigation")},e.derivePageInstanceFromString=f,e.derivePageKeyFromUrn=m,e.generateControlUrn=g,e.generatePageInstance=_,e.generatePageUrn=p,e.generateTrackingId=u,e.getReferrer=v,e.getTrackingCode=E,e.stringifyPageInstance=function(e){return e?e.pageUrn+";"+e.trackingId:null},e.uuid=h,e.webTrackingTransport=o}(t)}));let Z=null;function ee(e,t="ajax",n){e.fireTrackingEvent("PageViewEvent",function(e,t="ajax"){const n=y(document),i=T(document);let s={};return i&&(s.interfaceLocale=i),e&&(s.pageKey=e),{header:{},requestHeader:s,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}(n,t))}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(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 ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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");const se=["class","disabled","style","tabindex","type"];class oe{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)}init(){this._observer.observe(this._container,{attributeFilter:se,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown)}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown)}_focusTrap(e){const{key:t,target:n}=e,i=C(t),s=i===L.TAB&&e.shiftKey;s||i!==L.TAB||n!==this.lastFocusableEl?s&&n===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault()):(this.firstFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,n]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=n,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(H)],n=new Map;let i,s,o=0,r=t.length-1;for(;(!i||!s)&&o<=r;){if(!i){const s=t[o];i=M(s,e,n)&&s,o++}if(!s){const i=t[r];s=M(i,e,n)&&i,r--}}return s=s||i,[i,s]}}const{ENTER:re,ESCAPE:ae}=L;class le{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 oe(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=C(e.key),n=t===re&&document.activeElement===this._exitButtonEl;(t===ae||n)&&(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),U(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=b(document).replace("_jsbeacon","");ee(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),U(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 ce={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},de=Object.keys(ce).map(e=>ce[e]);class he extends class{constructor(e,{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document}={}){if(!e)throw new Error("No element passed in");this.navigator=t,this.window=n,this.document=i,this.el=e,this._encodedShareMessage=this.window.encodeURIComponent(this.el.getAttribute("data-share-message"))||"";const s=this.el.getAttribute("data-share-url")||this.window.location.href;this._encodedShareUrl=s&&this.window.encodeURIComponent(s)}init(e,t){e.addEventListener("click",({target:e})=>{const n=e.classList.contains(t)?e:A(e,".".concat(t));n&&this.share(n.dataset.shareService)})}_getServiceUrl(e){return{linkedin:"https://www.".concat(I(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(de.includes(e)){const t=this.window.location.href,n=this._getServiceUrl(e,t);this.window.open(n,e,"height=600,width=1000")}}}{constructor(e,{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document}={}){super(e,{globalNavigator:t,globalWindow:n,globalDocument:i}),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 le(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)}}const ue={};function pe(e){const t=document.getElementById(e);if(!t&&void 0!==ue[e])return ue[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),ue[e]=null,ue[e];try{const n=t.firstChild;n.nodeType===Node.COMMENT_NODE?ue[e]=JSON.parse(n.nodeValue):(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),ue[e]=null)}catch(t){console.warn("Error fetching embedded content with id: ".concat(e)),ue[e]=null}return t.parentNode.removeChild(t),ue[e]}const ge=["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(ge,"i");var me=Object.freeze({__proto__:null,init:function(e){e.forEach(e=>{e.addEventListener("load",()=>{const t=JSON.parse(e.getAttribute("data-player-document-config")),n=JSON.parse(e.getAttribute("data-a11y")),i=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 s={context:"native-document",action:"init",doc:t,a11y:n,i18n:i};e.contentWindow.postMessage(JSON.stringify(s),"*")})})}});class _e{constructor(e,t={},n=window.tracking,i=window.lazyloader){const{sources:s,posterUrl:o,mediaUrn:r,trackingId:a,captionsUrl:l}=e.dataset,c=JSON.parse(s);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,i).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,n),e))}_createPlayer(e,t,n,i,s){return s.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(s=>{const{createPlayer:o}=s,r=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",a=ie({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{}},i);return a.plugins.tracking={mediaUrn:n,trackingId:t},a.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:r}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n)})}_getMediaPlayerTrackingEventHandler(e){return function(t,{eventName:n,eventData:i}){let s=ie({header:{},requestHeader:{}},i);delete s.name,delete s.plugin,delete s.instance,s.requestHeader.pageKey||(s.requestHeader.pageKey=b(document)),e.fireTrackingEvent(n,s)}}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 fe="loader--show",ve="no-scroll",Ee="loader-wrapper";class we{constructor(e,{wrapperEl:t}={}){if(!e)throw new Error("Loader el required");if(t&&!t.contains(e))throw new Error("Wrapper element is not a parent of the Loader el");this.el=e,this.wrapperEl=t,this.isAbsoluteVariant=this.wrapperEl&&this.el.classList.contains("loader--absolute"),window.addEventListener("pagehide",({persisted:e})=>{e&&this.hide()})}show(){this.el.classList.add(fe),this.el.classList.contains("loader--full-screen")&&document.body.classList.add(ve),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Ee)}hide(){this.el.classList.remove(fe),document.body.classList.remove(ve),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Ee)}}const be="dismissable-input",ye="dismissable-input--focus",Te="dismissable-input__button",Ie="dismissable-input__button--show",Se="dismissable-input__input";class ke{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Se)),this._dismissButtonEl=this.el.querySelector(".".concat(Te)),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(ye),this._updateDismissButton(),U(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(Ie)}_showDismissButton(){this._dismissButtonEl.classList.add(Ie)}_onInputBlur(){this.el.classList.remove(ye)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),U(this.el,"clear")}}const Le={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 Oe{constructor(e,{createDismissableInput:t,elementClasses:n=Le,generateApiUrl:i,liveTextEl:s,liveTextClearTime:o=500,onSelect:r,onInput:a=(()=>{})}){this.el=e,this._liveTextClearTime=o,this._elementClasses=n,this._input=this.el.querySelector(".".concat(Se)),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=i,this._onSelect=r,this._onInput=a,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=s||this.el.querySelector(".".concat(this._elementClasses.liveText)),t&&(this.dismissableInput=new ke(this.el)),this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=N(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(C(e.key)){case L.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case L.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case L.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let n=null===this._highlighted.index?t:this._highlighted.index+e;n<0&&(n=this._dropdownListItemEls.length-1),n>=this._dropdownListItemEls.length&&(n=0),this._setHighlightedEl(n)}_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 z(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_appendResults(e=[]){this._hideList(),e.forEach((e,t)=>{const n=document.importNode(this._typeaheadItemTemplate.content,!0),i=n.querySelector(".".concat(this._elementClasses.listItem)),s=i.querySelector(".".concat(this._elementClasses.dropdownText));i.id="".concat(this._input.name,"-").concat(t+1),s.textContent=e.displayName,s.dataset.id=e.id,this._dropdownListEl.appendChild(n)}),this._dropdownListItemEls=P(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 n=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector(".".concat(this._elementClasses.dropdownText));n&&this.el.contains(n)&&this._updateInputTo(n)}_updateInputTo(e){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=pe("i18n_aria_live_text_no-suggestions"),this._liveTextOneSuggestion=pe("i18n_aria_live_text_one-suggestion"),this._liveTextMultipleSuggestions=pe("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 Ce{constructor(e,t,n,{onCloseExpandedSearch:i=(e=>e)}={}){if(this.el=e,this.expandedEl=t,this.placeholderEl=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=i}showExpandedSearch(){this.isExpanded=!0,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.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:n}=e,i="Escape"===t,s="BODY"===n.tagName;i&&s?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;A(t,".".concat(Le.block))||document.activeElement.blur()}_userIsTabbedOut(){return!(!this.expandedEl.classList.contains("isExpanded")||!function(e=window){return e.innerWidth<769}())&&!this.expandedEl.contains(document.activeElement)}}class Ae extends Oe{constructor(e,{generateApiUrl:t,liveTextEl:n,onSelect:i,onInput:s}){super(e,{createDismissableInput:!0,generateApiUrl:t,liveTextEl:n,onSelect:i,onInput:s})}}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 Re extends Oe{constructor(e,{liveTextEl:t,clearRecentSearchApiBaseUrl:n}){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=n,this._dropdownListItemEls=P(this.dropdownContainerEl.querySelectorAll(".".concat(Pe.listItem))),this._clearBtnItem=e.querySelector(".".concat(Pe.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(Te))}_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 n=t.querySelector(".".concat(Pe.listItemLink));n?this._redirect(n):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=pe("i18n_aria_live_text_recent-searches-one-suggestion"),this._liveTextMultipleSuggestions=pe("i18n_aria_live_text_recent-searches-multiple-suggestions"),this._liveTextClearedSuggestions=pe("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(){z(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}const xe="switcher-tabs__tab--active";class Ne{constructor(e,t,n){this.el=e,this.mobileTriggerEl=n,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 W(this.switcherTriggerAndTabs,e=>e.querySelector("button"),{listEl: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")}_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"),n=e.target.parentNode;t&&n&&this.currentType!==t?(this.collapsibleSwitcher.collapsible.currentListItem=A(e.target,"li"),this._switchTo(t,n)):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(xe));t&&t.classList.remove(xe),e.classList.contains("switcher-tabs__tab")&&e.classList.add(xe)}_updatePlaceholderText(){let e=this.el.querySelector(".".concat(xe));if(e){let t=e.querySelector(".".concat("switcher-tabs__button"));this.dropdownPlaceholderText.textContent=t.textContent}}}class De{constructor(e,{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:n,shouldSearchOnSelect:i=!0,onCloseExpandedSearch:s}={}){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"));if(this.shouldSearchOnSelect=i,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder")),this.baseSearchBarsMap=P(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const n=new Ce(t,this.el,this.placeholderEl,{onCloseExpandedSearch:s});return e[n.type]=n,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 Ae(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:o,onSelect:this._onKeywordsTypeaheadSelect.bind(this)}),e.querySelector(".".concat(Pe.dropdown))&&new Re(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:o}),new Ae(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(be,".search-input"))).forEach(e=>{new ke(e),e.querySelector(".".concat(Pe.dropdown))&&new Re(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:o})})}else Array.from(this.el.querySelectorAll(".".concat(be))).forEach(e=>new ke(e));this.switcher=new Ne(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(b(document),"-").concat(t)})})})}}function Ue(){const e=(e="")=>!e||0===e.trim().length;return e.errorMessageSuffix="error_empty",e}function qe(e){const t=(t="")=>t.length<e;return t.errorMessageSuffix="error_too_short",t}function Be(e){const t=(t="")=>t.length>e;return t.errorMessageSuffix="error_too_long",t}Ue(),qe(3),Be(128),Ue(),qe(6),Be(400);var He=window||e;const Fe=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function Me(){const e=He.location?He.location.hostname:"";return Fe.test(e)}function je(){return Me()?"platform.linkedin.com":"platform.linkedin-ei.com"}function Ke(){const e=He.location?He.location.hostname:"";return/\.cn$/.test(e)}function We(e,t,n,i=!0){if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.");const s=new He.XMLHttpRequest;s.withCredentials=i,s.open("GET",e,!0),s.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},s.send()}function ze(e){for(let t=1;t<arguments.length;t++){const n=arguments[t];if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=t[i];e[s]=n[s]}}}return e}let Ge;const Ve={},Je={};function Ye(){return function(e){let t=ze({},e);return t["compliance.isAdvertisingOptIn"]=function(e){return function(){let e=w();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}(t),t["compliance.isAnalyticsAndResearchOptIn"]=function(){let e=w();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}(),t["compliance.isFunctionalOptIn"]=function(){let e=w();return!e||e.consent.optedInConsentMap.FUNCTIONAL}(),t}(Ve)}He.utag_data||(He.utag_data={});const $e="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let Qe;function Xe(e,t,n){e.onLoadRulesRunOnce(n),e.view(ze({},t,Ye()))}function Ze(e,t,n){e.onLoadRulesRunOnce(n),e.link(ze({},t,Ye()))}function et(e,t){!function(e){return"object"==typeof e&&"function"==typeof e.fireTrackingEvent}(e)?console.error("Unable to fire tracking event"):e.fireTrackingEvent(t.info.name,t.body)}function tt(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}He.utag_cfg_ovrd=He.utag_cfg_ovrd||{},He.utag_cfg_ovrd.noview=!0,He.utag_cfg_ovrd.nocookie=!0;const nt=$e&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(He.navigator.userAgent),it={};class st{constructor({profileName:e,tracking2Instance:t,enableWhitelisting:n=!1,cacheBusterInterval:i}={}){this.isInitialized=!1,this.isWhitelistingEnabled=!1,this._whitelistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.whitelist={pageKey:{},controlUrn:{}},this.tracking2Instance=t,this.profileName=e,this.enableWhitelisting=n,this.cacheBusterInterval=i}initialize(){return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(this.isInitialized=!0,this.initializePromise=new Promise((e,t)=>{this.enableWhitelisting?(this.isWhitelistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._whitelistReadyPromise=function(e){if(!Je[e]){const t=function(e){return"https://".concat(je(),"/litms/whitelist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{We(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});Je[e]=n}return Je[e]}(this.profileName).then(e=>this._processWhitelistResult(e)).catch(e=>console.error("Unable to retrieve whitelists for profile : ".concat(this.profileName),e))):this._loadContainerTag(e,t)}),this.profileName&&(it[this.profileName]=this),this.initializePromise):Promise.resolve()}_processWhitelistResult(e){Object.keys(e).forEach(t=>this.addValuesToWhitelist(t,e[t]))}_loadContainerTag(e,t){void 0!==He.utag&&(He.utag=void 0),void 0!==He.utag_data&&(He.utag_data=void 0);const n=function(){if(!Ge){const e="https://".concat(Me()?Ke()?"www.linkedin.cn":"www.linkedin.com":Ke()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user");Ge=new Promise((t,n)=>{We(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return Ge}().then(e=>{Object.keys(e).forEach(t=>{!function(e,t){const n="string"!=typeof t?"":"".concat(t,".");"object"==typeof e&&Object.keys(e).forEach(t=>{Ve[n+t]=e[t]})}(e[t],t)})}).catch(e=>{console.error("Unable to get user settings while calling loading container tag",e)}),i=(s=function(e="main",t){return function(){if(void 0===Qe&&$e){const e=He.document.cookie.match(/litms_utag_override=([^;]+)/);Qe=e?e[1]:""}return Qe}().length>0?Qe:function(e,t=5){let n=null;return"string"==typeof e&&(n="https://".concat(je(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(function(e){const t=new He.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}(t))),n}(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=He.document.createElement("script");t.type="text/javascript",t.src=s,t.async=!0,t.onload=e,He.document.getElementsByTagName("head")[0].appendChild(t)}));var s;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=He.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){n.call(this,arguments),t.length>0&&t.shift()()}}(this._uTag),this._processQueuedEvents();const t={info:{name:"TagManagementSystemLoadEvent"},body:{header:{},requestHeader:{}}};"object"==typeof this.tracking2Instance&&et(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!nt}_shouldProcessEvent(e){return nt?Promise.resolve(!1):this.isWhitelistingEnabled?new Promise(t=>{this._whitelistReadyPromise.then(()=>{t(this._isEventWhitelisted(e))})}):Promise.resolve(!0)}_isEventWhitelisted(e){return void 0!==e.controlUrn?this._isEventWhitelistedByControlUrn(e):this._isEventWhitelistedByPageKey(e)}_isEventWhitelistedByPageKey(e){return void 0!==this.whitelist.pageKey[e.pageKey]}_isEventWhitelistedByControlUrn(e){return void 0!==this.whitelist.controlUrn[e.controlUrn]}addValuesToWhitelist(e,t){"string"==typeof e&&Array.isArray(t)&&void 0!==this.whitelist[e]&&t.forEach(t=>{this.whitelist[e][t]=!0})}_processQueuedEvents(){this.isContainerTagLoaded?function(e,t){if(function(e){He.utag=e}(e),t instanceof Array&&t.length>0){const n=t.length;for(let i=0;i<n;i++){const n=t.shift();n.isControlInteraction?Ze(e,n.data,n.callback):Xe(e,n.data,n.callback)}}}(this._uTag,this._queue):this.isInitialized&&this.isWhitelistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=function(e){const t=function(e){return Object.keys(e.loader.cfg).filter(t=>1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load)}(e).map(t=>function(e,t){return{tagUrn:tt(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&et(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}trackPageView(e,t){return this._shouldProcessEvent(e).then(n=>{n&&(this._queue.push({isControlInteraction:!1,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}trackControlInteraction(e,t){return this._shouldProcessEvent(e).then(n=>{n&&(this._queue.push({isControlInteraction:!0,data:e,callback:this._createCallbackForAuditEvent(t)}),this._processQueuedEvents())})}}function ot({event:e,litmsInstance:t,pageKey:n}){const i=e.target.getAttribute("data-tracking-control-name"),s=e.target.hasAttribute("data-tracking-litms");i&&s&&t.trackControlInteraction({controlUrn:"urn:li:control:".concat(n,"-").concat(i)})}class rt{constructor(e){if(this.trackingInstance=e,this.pageKey=b(document),this.litmsProfileName=function(e){const t=document.querySelector('meta[name="litmsProfileName"]');return t?t.content:""}(),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new st({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>ot({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||ot({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView({pageKey:e=""}={}){if(!("string"==typeof e||e instanceof String))throw new Error("The pageKey is not a string!");this.litmsInstance&&this.litmsInstance.trackPageView({pageKey:e||this.pageKey})}}let at;function lt(e){if(!at){if(!e)throw new Error("No trackingInstance passed in!");at=new rt(e)}return at}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),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 n=this.listeners[e],i=0,s=n.length;i<s;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const ct={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},dt={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:ht,GOOGLE_USER_FETCHED:ut,INITIALIZED:pt}=ct,{INITIALIZATION:gt,AUTHENTICATION:mt}=dt;EventTarget;const _t=ct,ft=dt,{GOOGLE_USER_FETCHED:vt,GOOGLE_ERROR:Et,INITIALIZED:wt}=_t,{INITIALIZATION:bt}=ft;".".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 yt{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.getFocusItemFromListItem=e=>e.querySelector("[href], button"),this.collapsibleDropdown=new W(t,this.getFocusItemFromListItem)}}var Tt;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(Tt||(Tt={})),new Set(Object.values(Tt)),Error,"".concat("filter-dropdown","--open");const It={getTrackingInstance:function({appId:e="seo",trackingCode:t}={}){const n=b(document),i=R(window.location.href,"originalReferer"),s={appId:e,disableInitialAnchorPageViewEvent:!0,requestBatchingMaxWaitSeconds:.05,userRequestHeaderProperties:{}};return t&&(s.userRequestHeaderProperties.trackingCode=t),i&&(s.userRequestHeaderProperties.referer=i),Z||(Z=X.AppTrackingInstance.createFromPageKey(s,n)),Z.generateTrackingId=X.generateTrackingId,Z},firePageViewEvent:ee,fireViewModuleImpressionEvent:function(e,t){const n=T(document),i={};n&&(i.interfaceLocale=n);const s={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",s)}}}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var i=n(0);const s="data-url",o="click",r="report-option",a={REPORT_BODY:".semaphore-modal__body",REPORT_BUTTON:".semaphore-modal__submit",REPORT_OPTIONS:".".concat(r)};class l extends i.e{constructor(e){if(!e)throw new Error("Semaphore modal container cannot be null");super(e),this._el.addEventListener("open",this._bindEvents.bind(this)),this.reportOptionsEl=i.k.makeArray(this._el.querySelectorAll(a.REPORT_OPTIONS)),this.submitButton=this._el.querySelector(a.REPORT_BUTTON)}_bindEvents(){this._el.querySelector(a.REPORT_BODY).addEventListener(o,this._handleOptionClick.bind(this)),this.submitButton.addEventListener(o,this._handleReportClick.bind(this)),this._el.addEventListener("close",this._tearDown.bind(this))}_handleOptionClick(e){e.target&&e.target.classList.contains(r)&&this.submitButton&&this.submitButton.disabled&&(this.submitButton.disabled=!1,this._lastTabableEl=this.submitButton)}_handleReportClick(e){let t;if(this._mapOnOptions(e=>{e&&e.checked&&(t=e)}),t){let e;if(t.hasAttribute(s)&&(e=t.getAttribute(s)),e)return window.location=e,void this._tearDown()}}_tearDown(){this._mapOnOptions(e=>{e&&e.checked&&(e.checked=!1)}),this.submitButton&&(this.submitButton.disabled=!0,this._lastTabableEl=this._tabableElements[this._tabableElements.length-1])}_mapOnOptions(e){this.reportOptionsEl.forEach(t=>e(t))}}var c={index:1};function d(e,t){var n,s,o=Date.now()-t;if(o>=300){var r=document.querySelector(e).getBoundingClientRect(),a=r.width,l=r.height;!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.activityUrn,n=e.duration,i=e.locale,s=e.size;window.tracking.then(e=>{var o={entities:[{duration:n,listPosition:c,size:s,trackingId:e.generateTrackingId(),urn:t,visibleTime:Date.now()}],header:{},requestHeader:{interfaceLocale:i||null}};e.fireTrackingEvent("FeedImpressionEvent",o)})}({activityUrn:(s=Object(i.h)("activityUrn"),s||""),locale:(n=document.querySelector('meta[name="locale"]'),n&&n.content||""),size:{height:l,width:a},duration:o})}}!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),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 n=this.listeners[e],i=0,s=n.length;i<s;i++)if(n[i]===t)return void n.splice(i,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,i=t.length;n<i;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const h={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},u={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},p={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},g={NOT_DISPLAYED:{BROWSER_NOT_SUPPORTED:"browser_not_supported",INVALID_CLIENT:"invalid_client",MISSING_CLIENT_ID:"missing_client_id",OPT_OUT_OR_NO_SESSION:"opt_out_or_no_session",SECURE_HTTP_REQUIRED:"secure_http_required",SUPPRESSED_BY_USER:"suppressed_by_user",UNREGISTERED_ORIGIN:"unregistered_origin",UNKNOWN_REASON:"unknown_reason"},SKIPPED:{AUTO_CANCEL:"auto_cancel",USER_CANCEL:"user_cancel",TAP_OUTSIDE:"tap_outside",ISSUING_FAILED:"issuing_failed"},DISMISSED:{CREDENTIAL_RETURNED:"credential_returned",CANCEL_CALLED:"cancel_called",FLOW_RESTARTED:"flow_restarted"}};EventTarget;const m=h.GOOGLE_USER_FETCHED,_=h.PROMPT_MOMENT;class f extends EventTarget{constructor(e){let t=e.libSrcPath,n=e.containerId,i=e.context;var s=e.clientId;let o=void 0===s?"990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com":s;var r=e.cancelOnTapOutside;let a=void 0===r||r;if(super(),!i)throw TypeError("context param is required to determine the message to show in Google One Tap");if(this.libSrcPath=t,this.containerId=n,this.cancelOnTapOutside=a,this.clientId=o,this.context=i,window.google&&window.google.accounts&&window.google.accounts.id)this._onGoogleApiLoad();else{if(!t)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");!function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}(()=>{!function(e,t){const n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}(t,this._onGoogleApiLoad.bind(this))})}}_onGoogleApiLoad(){return google.accounts.id.initialize({client_id:this.clientId,prompt_parent_id:this.containerId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context}),Promise.resolve().then(()=>this.promptOneTap())}_handleCredentialResponse(e){const t=e.credential;let n=this.context===u.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){const e=new CustomEvent(m,{detail:n});this.dispatchEvent(e)}}_getBasicProfile(e){try{const t=new gapi.auth2.BasicProfile({id_token:e});return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:e,imageUrl:t.getImageUrl()}}catch(e){return this._dispatchSkippedEvent(e.message),null}}_dispatchSkippedEvent(e){const t={message:e,reason:g.SKIPPED.ISSUING_FAILED,type:p.SKIPPED},n=new CustomEvent(_,{detail:t});this.dispatchEvent(n)}promptOneTap(){google.accounts.id.prompt(e=>{const t={type:e.getMomentType(),reason:e.getNotDisplayedReason()||e.getSkippedReason()||e.getDismissedReason()},n=new CustomEvent(_,{detail:t});this.dispatchEvent(n)})}hideOneTap(){google.accounts.id.cancel()}}const v=h,E=u,w=g,b=p;function y(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}const T=i.l.getPageKey(document).replace("_jsbeacon","");const I=w,S=b,k=v.GOOGLE_USER_FETCHED,L=v.PROMPT_MOMENT,O=E.SIGN_IN,C=[I.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,I.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,I.NOT_DISPLAYED.SUPPRESSED_BY_USER],A=[I.SKIPPED.AUTO_CANCEL,I.SKIPPED.TAP_OUTSIDE,I.SKIPPED.USER_CANCEL];var P="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",R=("undefined"==typeof document||document.createElement("div"),["b","del","em","i","s","strong","sub","sup"].concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"])),x=[P,"alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");(function(){if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};document.createElement("div");String.fromCodePoint})();var N,D=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},U=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)};function q(e){e=D(e)?e:[e];var t,n,i,s=0,o="<(?!/?";return o+="(?:",U(e,(function(e,r){t=e.tags||R,n=e.attrs||x,i=e.checkUrlAttrs||!1,0!==r&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++s+")?",i&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++s),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function B(e){return q({tags:e=e||R,checkUrlAttrs:!0})}function H(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!B(n).test(e):i?!H.R_UNSAFE_CUSTOM_ELEMENT.test(e):!H.R_UNSAFE_HTML.test(e)}H.R_UNSAFE_HTML=B(),H.R_UNSAFE_CUSTOM_ELEMENT=q([{tags:R,checkUrlAttrs:!0},{tags:[(N={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[P,N.attrs].join("|"),checkUrlAttrs:!1}]);var F={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};F.optgroup=F.option,F.tbody=F.tfoot=F.colgroup=F.caption=F.thead,F.th=F.td,function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(new function(){},{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(H(e,this._options)||(n=e,e=function(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}(e),function(e,t){if(t=t||"log",window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}}),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)))[;,]|[/.#?])");const M=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,j=/(.)\1{3}/,K=/linkedin/i,W=/\d\d/,z=new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?"),G=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,V=/^[ぁ-ゔゞ゛゜ー]*$/,J=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},Y=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!W.test(e)};$.errorMessagePrefix="i18n_noConsecutiveDigits_";const Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!M.test(e)};Q.errorMessagePrefix="i18n_noForbiddenCharacters_";const X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!j.test(e)};X.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!K.test(e)};Z.errorMessagePrefix="i18n_noLinkedIn_";const ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!z.test(e)};ee.errorMessagePrefix="i18n_noUrl_";const te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return V.test(e)};te.errorMessagePrefix="i18n_onlyPhonetic_";const ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};ne.errorMessagePrefix="i18n_required_";const ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return G.test(e)};ie.errorMessagePrefix="i18n_invalidFormat_";const se=[J(50),Q,$,X,Z,ee];[ne].concat(se),J(50);J(4),Y(2),J(128),J(128),J(128),(e=>{e.errorMessagePrefix})(ie),Y(6),J(200);new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]),Object.assign;var oe;oe=".public-post",i.k.onload(()=>{var e=Date.now(),t="visibilitychange";void 0!==document.msHidden&&(t="msvisibilitychange"),document.addEventListener(t,()=>{document.hidden||document.msHidden?d(oe,e):e=Date.now()}),window.addEventListener("beforeunload",()=>{d(oe,e)})}),new i.c(document.querySelector(".language-selector")),new i.g(document.querySelector(".search-bar"),{typeaheadApiBaseUrl:"/feedcontent-guest/api/typeaheadHits"}),Array.from(document.querySelectorAll(".semaphore-modal")).forEach(e=>new l(e));var re=document.querySelector(".share-native-video__node");re&&new i.f(re),i.j.init(i.k.makeArray(document.querySelectorAll(".share-native-document__iframe"))),i.k.makeArray(document.querySelectorAll(".ellipsis-menu")).forEach(e=>new i.a(e));var ae=document.querySelector(".google-one-tap");ae&&new class{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};let n=t.onNotDisplayed,s=t.onSkipped;if(!e)throw Error("Google one tap form element must be provided");this.el=e,this.onNotDisplayed="function"==typeof n&&n,this.onSkipped="function"==typeof s&&s,this.containerEl=this.el.querySelector(".google-one-tap__container"),this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new i.d(this.loaderEl),function(e,t,n){window.tracking&&window.tracking.then(s=>{if(t&&e.appendChild(function(e){return y("controlId",`${T}-${e.dataset.trackingControlName}`)}(t)),e.appendChild(function(e){const t=e.state&&e.state.currentPageInstance||{};return y("pageInstance",`${t.pageUrn};${t.trackingId}`)}(s)),n){const e=`${T}_${n}`;i.n.firePageViewEvent(s,"ajax",e),Object(i.i)(s).trackPageView({pageKey:e})}})}(this.el,this.containerEl),this.googleOneTapPromise=this._createGoogleOneTap()}_createGoogleOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new f({cancelOnTapOutside:!1,context:O}),this.googleOneTapInstance.addEventListener(k,e=>{let t=e.detail;this._submitWithGoogle(t.idToken)}),this.googleOneTapInstance.addEventListener(L,e=>{let t=e.detail;const n=t.reason,i=t.type;let s="google-one-tap-moment--"+i;if(s=n?`${s}-${n}`:s,function(e){window.tracking&&window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}(s),n)if(i===S.SKIPPED){if(this.onSkipped)this.onSkipped(t);else if(-1===A.indexOf(n))throw Error(`GoogleOneTapError ${i}: ${n}`)}else if(i===S.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===C.indexOf(n))throw Error(`GoogleOneTapError ${i}: ${n}`)}),this.googleOneTapInstance))}_submitWithGoogle(e){this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=y("googleIdToken",e),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}(ae)}]);