/*! For license information please see ghPostsEmbed.js.LICENSE.txt */
!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=11)}([,function(e,t,i){"use strict";(function(e,n){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var o;i.d(t,"a",(function(){return Ne})),i.d(t,"b",(function(){return J})),i.d(t,"c",(function(){return O})),i.d(t,"d",(function(){return Z})),i.d(t,"e",(function(){return te})),i.d(t,"f",(function(){return we})),i.d(t,"g",(function(){return ne})),i.d(t,"h",(function(){return X})),i.d(t,"i",(function(){return ee})),i.d(t,"j",(function(){return v}));var a={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"};s(o={},"GUEST","li_gc"),s(o,"MEMBER","li_mc");function l(e){let t=e.querySelector('meta[name="pageKey"]');return t?t.content+"_jsbeacon":""}function c(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function h(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),window.encodeURIComponent;const d={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},u={Down:d.ARROW_DOWN,Right:d.ARROW_RIGHT,Left:d.ARROW_LEFT,Up:d.ARROW_UP,Esc:d.ESCAPE,Spacebar:d.SPACEBAR,Tab:d.TAB};function p(e){return u[e]||e}function f(e,t){if(!e)return null;let i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!i.call(e,t);)e=e.parentElement;return e}function g(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function _(e,t,i){const n=new RegExp("([\\?&])".concat(i?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return n&&(i?n[2]:decodeURIComponent(n[2]))}function m(e,t,i,n){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),i=encodeURIComponent(i);const r=_(e,t,!0);if(r)return n?e.replace(r,i):e;{const n=e.indexOf("?");let[r,s]=e.split("#"),o="&";return n<0?o="?":n===e.length-1&&(o=""),s&&(s="#".concat(s)),"".concat(r).concat(o).concat(t,"=").concat(i).concat(s||"")}}function w(e,t,i){if("function"!=typeof e)throw new TypeError("Expected a function.");let n;return(...r)=>{const s=i&&!n;clearTimeout(n),n=setTimeout(()=>{n=null,i||e.apply(this,r)},t),s&&e.apply(this,r)}}function b(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function y(e,t,i={}){const n=document.createEvent("CustomEvent");n.initCustomEvent(t,!0,!0,i),e.dispatchEvent(n)}var v=Object.freeze({__proto__:null,closest:f,onload:function(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})},makeArray:g,outerWidth:function(e){let t=e.offsetWidth,i=getComputedStyle(e);return t+=(parseInt(i.marginLeft,10)||0)+(parseInt(i.marginRight,10)||0),t},elementInViewport:function(e){const t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,r=t.top<=i&&t.top+t.height>=0,s=t.left<=n&&t.left+t.width>=0;return r&&s},hasElementScrolledToThreshold:function({scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:i=document.body.scrollHeight}={},n=0){return e>=i-(t+t*n)},getQueryParam:_,addTrackingCode:function(e,t){return m(e,"trk",t)},addQueryParam:m,debounce:w,getCookie:b,dispatchCustomEvent:y,getDeferredPromise:function(){let e,t;const i=new Promise((i,n)=>{e=i,t=n});return i.resolve=e,i.reject=t,i},isDocumentHidden:function(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}});class E{constructor(e,t,{mainButton:i,closeButton:n},r={}){if(!e)throw Error("An element must be provided to Collapsible");if(!t)throw Error("An expandable element must be provided to Collapsible");if(!i)throw Error("A main button element must be provided to Collapsible");this.el=e,this.expandableEl=t,this._isList=["UL","OL","DL"].includes(this.expandableEl.tagName);const{isOpen:s=!1}=r;this.isOpen=s,this.mainButton=i,this.closeButton=n,this.buttons=[i],this._isList&&this.el.addEventListener("keyup",e=>this._onKeyUp(e)),this.expandableEl.addEventListener("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(p(e.key)){case d.ENTER:case d.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case d.ARROW_UP:this.isOpen||this._open(e);break;case d.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){p(e.key)===d.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=p(e.key);if(t===d.ESCAPE&&this.isOpen)this.close();else if(this._isList){let i;switch(t){case d.SPACEBAR:y(e.target,"click");break;case d.ARROW_LEFT:case d.ARROW_UP:i=f(e.target,"li");let t=i.previousElementSibling;t&&y(t,"focusEl");break;case d.ARROW_RIGHT:case d.ARROW_DOWN:i=f(e.target,"li");let n=i.nextElementSibling;n&&y(n,"focusEl")}}}_open(e={}){if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),y(this.el,"open",{key:t})}}close({shouldReturnFocusToTrigger:e=!0}={}){this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),y(this.el,"close"),e&&this.mainButton.focus())}}const T=['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 S(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function L(e,t=document.documentElement,i){if(e===t)return!S(e);if(i&&i.get(e))return i.get(e);let n;return S(e)?n=!1:e.parentNode&&(n=L(e.parentNode,t,i)),i&&i.set(e,n),n}const A=".".concat("collapsible-dropdown","__list"),k=".".concat("collapsible-dropdown","__button");class x{constructor(e,{getFocusItemFromListItem:t=(e=>e.querySelector(T)),elementToFocus:i,dropdownTriggerEl:n,dropdownContentEl:r}={}){if(!e)throw Error("An element must be provided to CollapsibleDropdown");if(this.el=e,this.dropdownContentEl=r||this.el.querySelector(A),!i){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(T),t="-1"===this.dropdownContentEl.getAttribute("tabIndex");e||t||console.warn('elementToFocus not provided and the dropdown container is not focusable. Consider adding tabindex="-1" to:',this.dropdownContentEl)}this.elementToFocus=i||this.dropdownContentEl,this.dropdownTriggerEl=n||this.el.querySelector(k),this.hideClass="hidden",this.collapsible=new E(e,this.dropdownContentEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners(),this.collapsible.isList&&(this._getFocusItemFromListItem=t)}_attachEventListeners(){this.el.addEventListener("open",e=>this._showDropdownList(e)),this.el.addEventListener("close",()=>this._hideDropdownList()),this.collapsible.isList&&this.dropdownContentEl.addEventListener("focusEl",e=>this._manageFocus(e))}_manageFocus(e){const{target:t}=e;if(t&&this._getFocusItemFromListItem){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_showDropdownList(e){this.el.addEventListener("focusout",this._focusOutsideDropdown),window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;t?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),window.removeEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close()}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close()}}function C(e,{method:t="GET",headers:i={},sendCookies:n=!0,skipCsrfToken:r=!1,postData:s}={}){return new Promise((o,a)=>{const l=new XMLHttpRequest;if(l.addEventListener("load",(function(){if(l.status>=200&&l.status<300||304===l.status)o({status:l.status,responseText:l.responseText});else{const i=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(l.status));i.response={status:l.status,responseText:l.responseText},a(i)}})),l.addEventListener("error",(function(e){a(e)})),l.open(t,e,!0),l.withCredentials=n,Object.keys(i).forEach(e=>{l.setRequestHeader(e,i[e])}),!r){const e=b("JSESSIONID");e&&l.setRequestHeader("Csrf-Token",h(e))}l.send(s)})}const I=".".concat("language-selector__link"),R="".concat(I,"--selected");class O{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(".collapsible-dropdown__list"),this.dropdownTriggerEl=this._el.querySelector(".language-selector__button"),this.currentListItem=this.listEl.querySelector(R),this.collapsibleDropdown=new x(e,{dropdownTriggerEl:this.dropdownTriggerEl,elementToFocus:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){return function(e){const t=h(b("bcookie")||""),i=function(e){let t="";return e.indexOf("linkedin.cn")>-1?t="https://www.linkedin.cn":e.indexOf("linkedin-ei.cn")>-1?t="https://www.linkedin-ei.cn":e.indexOf("linkedin-ei.com")>-1?t="https://www.linkedin-ei.com":e.indexOf("linkedin.com")>-1&&(t="https://www.linkedin.com"),t}(c(document));return C("".concat(i,"/psettings/update-language/cors?csrfToken=").concat(encodeURIComponent(t)),{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({locale:e}),skipCsrfToken:!0})}(e.target.getAttribute("data-locale")).then(()=>{location.reload()})}}var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{};parseInt;var U="object"==typeof B&&B&&B.Object===Object&&B,P="object"==typeof self&&self&&self.Object===Object&&self;function D(e,t="ajax",i){e.fireTrackingEvent("PageViewEvent",function(e,t="ajax"){const i=function(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}(document),n=function(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}(document);let r={};return n&&(r.interfaceLocale=n),e&&(r.pageKey=e),{header:{},requestHeader:r,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:i}}}(i,t))}function N(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function q(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function F(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?q(Object(i),!0).forEach((function(t){N(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):q(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}U||P||Function("return this")(),Object.prototype.toString,Math.max,Math.min,"".concat(".member-nav-menu","__button"),new RegExp("^(?:https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");class M{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter(t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const j=["class","disabled","style","tabindex","type"];class H{constructor(e){if(!e)throw new Error("FocusTrap: No focus trap container passed in");this._container=e,this._observer=new MutationObserver(()=>this._setFirstAndLastFocusableEls(this._container)),this._handleKeyDown=this._focusTrap.bind(this),this._backgroundNavigationDisabler=new M(this._container)}init(){this._observer.observe(this._container,{attributeFilter:j,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:i}=e,n=p(t),r=n===d.TAB&&e.shiftKey;r||n!==d.TAB||i!==this.lastFocusableEl?r&&i===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault()):(this.firstFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,i]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=i,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(T)],i=new Map;let n,r,s=0,o=t.length-1;for(;(!n||!r)&&s<=o;){if(!n){const r=t[s];n=L(r,e,i)&&r,s++}if(!r){const n=t[o];r=L(n,e,i)&&n,o--}}return r=r||n,[n,r]}}const{ENTER:Y,ESCAPE:z}=d;class K{constructor(e,{enablePageViewTracking:t=!1}={}){if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,this._topLevelContainer=this._getTopLevelContainer(),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),this._outletEls=this._getOutletEls(),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._outletEls.forEach(e=>{e.addEventListener("click",()=>this.open())}),this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this)),this._focusTrap=new H(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=p(e.key),i=t===Y&&document.activeElement===this._exitButtonEl;(t===z||i)&&(this.close(),e.preventDefault())}open(){return this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),y(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{const t=l(document).replace("_jsbeacon","");D(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),y(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 W={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},G=Object.keys(W).map(e=>W[e]);class V{constructor(e,{globalNavigator:t=navigator,globalWindow:i=window,globalDocument:n=document}={}){if(!e)throw new Error("No element passed in");this.navigator=t,this.window=i,this.document=n,this.el=e,this._encodedShareMessage=this.window.encodeURIComponent(this.el.getAttribute("data-share-message"))||"";const r=this.el.getAttribute("data-share-url")||this.window.location.href;this._encodedShareUrl=r&&this.window.encodeURIComponent(r)}init(e,t){e.addEventListener("click",({target:e})=>{const i=e.classList.contains(t)?e:f(e,".".concat(t));i&&this.share(i.dataset.shareService)})}_getServiceUrl(e){return{linkedin:"https://www.".concat(c(this.document),"/shareArticle?mini=true&url=").concat(this._encodedShareUrl,"&title=").concat(this._encodedShareMessage),twitter:"https://twitter.com/intent/tweet?url=".concat(this._encodedShareUrl,"&text=").concat(this._encodedShareMessage),facebook:"https://www.facebook.com/sharer/sharer.php&u=".concat(this._encodedShareUrl)}[e]||""}share(e){if(G.includes(e)){const t=this.window.location.href,i=this._getServiceUrl(e,t);this.window.open(i,e,"height=600,width=1000")}}}class J extends V{constructor(e,{globalNavigator:t=navigator,globalWindow:i=window,globalDocument:n=document}={}){super(e,{globalNavigator:t,globalWindow:i,globalDocument:n}),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 K(this.modalEl),this.copyButtonEl&&(this.navigator.clipboard?this.copyButtonEl.addEventListener("click",()=>{this._copyText()}):this.copyButtonEl.parentNode.removeChild(this.copyButtonEl))}_copyText(){let e=this.modalEl.querySelector(".".concat("embedded-social-share__modal-copy-text-input")).value;e&&this.navigator.clipboard.writeText(e)}}class Z extends V{constructor(e,{globalNavigator:t=navigator,globalWindow:i=window,globalDocument:n=document}={}){if(!e)throw new Error("No element passed in");super(e,{globalNavigator:t,globalWindow:i,globalDocument:n}),this.stateCheckboxEl=this.el.querySelector(".social-share__state"),this.dropdown=this.el.querySelector("#".concat("social-share__dropdown")),this.socialShareOptionsEl=this.el.querySelector(".".concat("social-share","__options")),this.itemClassName="".concat("social-share","__item"),this.showString=this.stateCheckboxEl.getAttribute("data-show-dialog-string"),this.hideString=this.stateCheckboxEl.getAttribute("data-hide-dialog-string"),this.init()}init(){super.init(this.socialShareOptionsEl,this.itemClassName),this.onBodyClick=this._handleBodyClick.bind(this),this.onFocusOut=this._handleFocusOutDropdown.bind(this),this.stateCheckboxEl.addEventListener("click",this.handleStateChange.bind(this))}_handleBodyClick(e){e.target===this.el||this.el.contains(e.target)||(this.stateCheckboxEl.checked=!1,this.onClose())}handleStateChange({target:e}){e.checked?this.onOpen():this.onClose()}onOpen(){this.document.addEventListener("click",this.onBodyClick),this.document.addEventListener("focusin",this.onFocusOut),this.stateCheckboxEl.setAttribute("aria-label",this.hideString),this.stateCheckboxEl.setAttribute("aria-expanded","true")}onClose(){this.document.removeEventListener("click",this.onBodyClick),this.document.removeEventListener("focusin",this.onFocusOut),this.stateCheckboxEl.setAttribute("aria-label",this.showString),this.stateCheckboxEl.setAttribute("aria-expanded","false"),this.stateCheckboxEl.focus()}_handleFocusOutDropdown(e){this.dropdown.contains(e.target)||(this.stateCheckboxEl.checked=!1,this.onClose(),this.el.focus())}}const Q={};function X(e){const t=document.getElementById(e);if(!t&&void 0!==Q[e])return Q[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),Q[e]=null,Q[e];let i;for(const n of t.childNodes)try{if(n.nodeType===Node.COMMENT_NODE){i=JSON.parse(n.nodeValue);break}}catch(e){}return void 0===i?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(Q[e]=i,t.parentNode.removeChild(t),Q[e])}const $=["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($,"i");var ee=Object.freeze({__proto__:null,init:function(e){e.forEach(e=>{e.addEventListener("load",()=>{const t=JSON.parse(e.getAttribute("data-player-document-config")),i=JSON.parse(e.getAttribute("data-a11y")),n=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 r={context:"native-document",action:"init",doc:t,a11y:i,i18n:n};e.contentWindow.postMessage(JSON.stringify(r),"*")})})}});class te{constructor(e,t={},i=window.tracking,n=window.lazyloader){const{sources:r,posterUrl:s,mediaUrn:o,trackingId:a,captionsUrl:l}=e.dataset,c=JSON.parse(r);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,o,t,n).then(e=>(s&&e.poster(s),e.src(c),l&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:l}),this._bindTracking(e,i),e))}_createPlayer(e,t,i,n,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:s}=r,o=n.plugins&&n.plugins.rum&&n.plugins.rum.mediaHeader&&n.plugins.rum.mediaHeader.mediaSource||"ugc",a=F({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{}},n);return a.plugins.tracking={mediaUrn:i,trackingId:t},a.plugins.rum={mediaUrn:i,trackingId:t,mediaHeader:{mediaSource:o}},s(e,a)})}_bindTracking(e,t){t.then(t=>{const i=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",i),e.rum().on("track",i)})}_getMediaPlayerTrackingEventHandler(e){return function(t,{eventName:i,eventData:n}){let r=F({header:{},requestHeader:{}},n);delete r.name,delete r.plugin,delete r.instance,r.requestHeader.pageKey||(r.requestHeader.pageKey=l(document)),e.fireTrackingEvent(i,r)}}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 ie="".concat("tooltip__popup","--show");class ne{constructor(e){if(this.el=e,!e)throw Error("An element must be provided to Tooltip.");if(this.tooltipTriggerEl=this.el.querySelector(".".concat("tooltip__trigger")),!this.tooltipTriggerEl)throw Error("The tooltip trigger element must be present.");const t=this.el.querySelector(T);if(!t||!t.classList.contains("tooltip__trigger"))throw Error("The tooltip trigger element must be a focusable element.");if(!this.tooltipTriggerEl.hasAttribute("aria-label")&&!this.tooltipTriggerEl.hasAttribute("aria-describedby"))throw Error("The tooltip trigger element must have aria-label or aria-descriedby defined.");this.tooltipPopupEl=this.el.querySelector(".".concat("tooltip__popup")),this._attachEventListeners(),this._attachKeyEventListers()}_attachEventListeners(){this.tooltipTriggerEl.addEventListener("focus",()=>this._showTooltipPopup()),this.tooltipTriggerEl.addEventListener("blur",()=>this._hideTooltipPopup())}_attachKeyEventListers(){this.tooltipTriggerEl.addEventListener("keydown",({key:e})=>{p(e)===d.ESCAPE&&this._hideTooltipPopup()})}_showTooltipPopup(){this.tooltipPopupEl.classList.add(ie)}_hideTooltipPopup(){this.tooltipPopupEl.classList.remove(ie)}}const re="dismissable-input",se="dismissable-input--focus",oe="dismissable-input__button",ae="dismissable-input__button--show",le="dismissable-input__input";class ce{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(le)),this._dismissButtonEl=this.el.querySelector(".".concat(oe)),this._isDismissable=!!this._dismissButtonEl,this._attachEventListeners()}_attachEventListeners(){this._input.addEventListener("focus",this._onInputFocus.bind(this)),this._input.addEventListener("input",this._updateDismissButton.bind(this)),this._input.addEventListener("blur",this._onInputBlur.bind(this)),this._isDismissable&&(this._dismissButtonEl.addEventListener("click",this.clear.bind(this)),this._updateDismissButton())}_onInputFocus(){this.el.classList.add(se),this._updateDismissButton(),y(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(ae)}_showDismissButton(){this._dismissButtonEl.classList.add(ae)}_onInputBlur(){this.el.classList.remove(se)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),y(this.el,"clear")}}const he={block:"typeahead-input",showList:"typeahead-input__dropdown--show",dropdown:"typeahead-input__dropdown",dropdownList:"typeahead-input__dropdown-list",dropdownText:"typeahead-input__dropdown-text",listItemFocus:"typeahead-input__dropdown-item--highlighted",listItem:"typeahead-input__dropdown-item",liveText:"typeahead-live-text",template:"typeahead-item-template"};class de{constructor(e,{createDismissableInput:t,elementClasses:i=he,generateApiUrl:n,liveTextEl:r,liveTextClearTime:s=500,onSelect:o,onInput:a=(()=>{})}){this.el=e,this._liveTextClearTime=s,this._elementClasses=i,this._input=this.el.querySelector(".".concat(le)),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=n,this._onSelect=o,this._onInput=a,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=r||this.el.querySelector(".".concat(this._elementClasses.liveText)),t&&(this.dismissableInput=new ce(this.el)),this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=w(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(p(e.key)){case d.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case d.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case d.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let i=null===this._highlighted.index?t:this._highlighted.index+e;i<0&&(i=this._dropdownListItemEls.length-1),i>=this._dropdownListItemEls.length&&(i=0),this._setHighlightedEl(i)}_setHighlightedEl(e){this._highlighted&&this._highlighted.el&&(this._highlighted.el.classList.remove(this._elementClasses.listItemFocus),this._highlighted.el.setAttribute("aria-selected",!1)),null===e?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el=this._dropdownListItemEls[e],this._highlighted.index=e,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(this._elementClasses.listItemFocus),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_isInputValid(){return this._input.value.length>0}_onUserInput(e){this._onInput(e),this._isInputValid()?this._requestHandler():this._hideList()}_getAndApplyResults(){if(this._isInputValid()){const e=this._input.value;this._makeTypeaheadRequest(e).then(e=>this._appendResults(e)).then(()=>this._showList())}}_makeTypeaheadRequest(e){return C(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_appendResults(e=[]){this._hideList(),e.forEach((e,t)=>{const i=document.importNode(this._typeaheadItemTemplate.content,!0),n=i.querySelector(".".concat(this._elementClasses.listItem)),r=n.querySelector(".".concat(this._elementClasses.dropdownText));n.id="".concat(this._input.name,"-").concat(t+1),r.textContent=e.displayName,r.dataset.id=e.id,this._dropdownListEl.appendChild(i)}),this._dropdownListItemEls=g(this._dropdownListEl.children)}_shouldShowList(){return this._dropdownListItemEls.length>0&&this._isInputValid()}_showList(){this._shouldShowList()?(this._dropdownContainerEl.classList.add(this._elementClasses.showList),document.body.addEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!0)):(this._hideList(),this._setExpandedState(!1)),this._setLiveText()}_hideList(){if(this._isListActive()){for(;this._dropdownListEl.firstChild;)this._dropdownListEl.removeChild(this._dropdownListEl.firstChild);this._resetState(),this._dropdownContainerEl.classList.remove(this._elementClasses.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler)}}_onClear(){this.hideListHandler()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const i=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector(".".concat(this._elementClasses.dropdownText));i&&this.el.contains(i)&&this._updateInputTo(i,e)}_updateInputTo(e,t){this._input.value=e.textContent.trim(),this._input.focus(),"function"==typeof this._onSelect&&this._onSelect(e,t),this._hideList()}_getLiveTextOptions(){this._liveTextNoSuggestions=X("i18n_aria_live_text_no-suggestions"),this._liveTextOneSuggestion=X("i18n_aria_live_text_one-suggestion"),this._liveTextMultipleSuggestions=X("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 ue{constructor(e,t,i,{onCloseExpandedSearch:n=(e=>e),isMobileDevice:r=!1}={}){if(this.el=e,this.expandedEl=t,this.placeholderEl=i,this.isMobileDevice=r,!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=n,r&&(this.focusTrap=new H(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target:i}=e,n="Escape"===t,r="INPUT"===i.tagName;n&&!r?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;f(t,".".concat(he.block))||document.activeElement.blur()}_userIsTabbedOut(){return!(!this.expandedEl.classList.contains("isExpanded")||!function(e=window){return e.innerWidth<=769}())&&!this.expandedEl.contains(document.activeElement)}}class pe extends de{constructor(e,{generateApiUrl:t,liveTextEl:i,onSelect:n,onInput:r}){super(e,{createDismissableInput:!0,generateApiUrl:t,liveTextEl:i,onSelect:n,onInput:r})}}const fe={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 ge extends de{constructor(e,{liveTextEl:t,clearRecentSearchApiBaseUrl:i}){if(super(e,{liveTextEl:t,elementClasses:fe,liveTextClearTime:1e3}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(fe.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=g(this.dropdownContainerEl.querySelectorAll(".".concat(fe.listItem))),this._clearBtnItem=e.querySelector(".".concat(fe.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(oe))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(fe.clearButton)),this._clearRecentSearchesHandler=this._clearRecentSearches.bind(this),this._clearBtn.addEventListener("mousedown",this._clearRecentSearchesHandler),super._attachEventListeners()}_removeEventListeners(){this._clearBtn.removeEventListener("mousedown",this._clearRecentSearchesHandler),super._removeEventListeners()}_onUserInput(){this._shouldShowList()?this._showList():this._hideList()}_redirect(e){e.click()}_clickOutsideToCloseHandler(e){e.target===this._input||this._dismissButtonEl.contains(e.target)||this._hideList()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const i=t.querySelector(".".concat(fe.listItemLink));i?this._redirect(i):t.classList.contains(fe.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(fe.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=X("i18n_aria_live_text_recent-searches-one-suggestion"),this._liveTextMultipleSuggestions=X("i18n_aria_live_text_recent-searches-multiple-suggestions"),this._liveTextClearedSuggestions=X("i18n_aria_live_text_recent-searches-cleared")}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){C(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}const _e="switcher-tabs__tab--active";class me{constructor(e,t,i){this.el=e,this.mobileTriggerEl=i,this.baseSearchBarsMap=t,this.currentType=this.el.getAttribute("data-current-search-type"),this.switcherTriggerAndTabs=this.el.querySelector(".".concat("switcher-tabs__trigger-and-tabs")),this.switcherTabs=this.el.querySelector(".".concat("switcher-tabs")),this.dropdownList=this.el.querySelector(".".concat("switcher-tabs__list")),this.dropdownTrigger=this.el.querySelector(".".concat("switcher-tabs__placeholder")),this.dropdownPlaceholderText=this.el.querySelector(".".concat("switcher-tabs__placeholder-text")),this._handleSwitcherClick=this._handleSwitcherClick.bind(this),this._initMobileExpandedSwitcher(),this._initCollapsibleSwitcher()}_initMobileExpandedSwitcher(){this.el.addEventListener("click",this._handleSwitcherClick),this.mobileTriggerEl.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].showExpandedSearch()}),this.cancelBtn=this.el.querySelector(".".concat("switcher-tabs__cancel-btn")),this.cancelBtn.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].hideExpandedSearch()})}_initCollapsibleSwitcher(){this.collapsibleSwitcher=new x(this.switcherTriggerAndTabs,{dropdownContentEl:this.dropdownList,dropdownTriggerEl:this.dropdownTrigger}),this.switcherTriggerAndTabs.addEventListener("open",()=>this._openSwitcher()),this.switcherTriggerAndTabs.addEventListener("close",()=>this._closeSwitcher()),this._updatePlaceholderText()}_openSwitcher(){this.dropdownList.addEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("hide-on-desktop"),this.switcherTabs.classList.add("show-on-desktop"),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("show-on-desktop"),this.switcherTabs.classList.add("hide-on-desktop")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button"))return;const t=e.target.getAttribute("data-switcher-type"),i=e.target.parentNode;t&&i&&this.currentType!==t?(this.collapsibleSwitcher.collapsible.currentListItem=f(e.target,"li"),this._switchTo(t,i)):this.collapsibleSwitcher.collapsible.close()}_switchTo(e,t){this._updateActiveTab(t),this._updatePlaceholderText(),this.el.setAttribute("data-current-search-type",e),this.collapsibleSwitcher.collapsible.close(),this.baseSearchBarsMap[this.currentType].isExpanded?this.baseSearchBarsMap[e].showExpandedSearch():this.baseSearchBarsMap[e].hideExpandedSearch(),this.currentType=e}_updateActiveTab(e){const t=this.el.querySelector(".".concat(_e));t&&(t.querySelector(".".concat("switcher-tabs__button")).setAttribute("aria-selected","false"),t.classList.remove(_e)),e.classList.contains("switcher-tabs__tab")&&(e.classList.add(_e),e.querySelector(".".concat("switcher-tabs__button")).setAttribute("aria-selected","true"))}_updatePlaceholderText(){let e=this.el.querySelector(".".concat(_e));if(e){let t=e.querySelector(".".concat("switcher-tabs__button"));this.dropdownPlaceholderText.textContent=t.textContent}}}class we{constructor(e,{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:i,shouldSearchOnSelect:n=!0,onCloseExpandedSearch:r}={}){if(this.el=e,!this.el)throw new Error("No element passed into SearchBar");this.typeaheadApiBaseUrl=t;const s=this.el.querySelector(".".concat("search-bar__live-text"));this.shouldSearchOnSelect=n,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const o=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=g(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const i=new ue(t,this.el,this.placeholderEl,{onCloseExpandedSearch:r,isMobileDevice:o});return e[i.type]=i,e},{}),t){this.baseSearchBarFormEl=this.baseSearchBarsMap.JOBS.el.querySelector(".base-search-bar__form"),this.geoIdInputEl=this.el.querySelector('input[name="geoId"]');const e=this.el.querySelector(".keywords-typeahead-input");new pe(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)}),e.querySelector(".".concat(fe.dropdown))&&new ge(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:s}),new pe(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(".".concat(re,".search-input"))).forEach(e=>{new ce(e),e.querySelector(".".concat(fe.dropdown))&&new ge(e,{clearRecentSearchApiBaseUrl:i,liveTextEl:s})})}else Array.from(this.el.querySelectorAll(".".concat(re))).forEach(e=>new ce(e));this.switcher=new me(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(l(document),"-").concat(t)})})})}}function be(){const e=(e="")=>!e||0===e.trim().length;return e.errorMessageSuffix="error_empty",e}function ye(e){const t=(t="")=>t.length<e;return t.errorMessageSuffix="error_too_short",t}function ve(e){const t=(t="")=>t.length>e;return t.errorMessageSuffix="error_too_long",t}be(),ye(3),ve(128),be(),ye(6),ve(400);var Ee=window||n;Ee.utag_data||(Ee.utag_data={});const Te="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;Ee.utag_cfg_ovrd=Ee.utag_cfg_ovrd||{},Ee.trackingEventDebugData=Ee.trackingEventDebugData||[],Ee.utag_cfg_ovrd.noview=!0,Ee.utag_cfg_ovrd.nocookie=!0,Te&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Ee.navigator.userAgent),function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var i=this.listeners[e],n=0,r=i.length;n<r;n++)if(i[n]===t)return void i.splice(n,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),i=0,n=t.length;i<n;i++)t[i].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const Se={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Le={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Ae,GOOGLE_USER_FETCHED:ke,INITIALIZED:xe}=Se,{INITIALIZATION:Ce,AUTHENTICATION:Ie}=Le;EventTarget;const Re=Se,Oe=Le,{GOOGLE_USER_FETCHED:Be,GOOGLE_ERROR:Ue,INITIALIZED:Pe}=Re,{INITIALIZATION:De}=Oe;".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");class Ne{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e;const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.collapsibleDropdown=new x(t)}}var qe;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(qe||(qe={})),new Set(Object.values(qe)),Error;var Fe="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Me=("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"])),je=[Fe,"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 He,Ye=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ze=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var i=0,n=e.length;i<n;i++)t(e[i],i)};function Ke(e){e=Ye(e)?e:[e];var t,i,n,r=0,s="<(?!/?";return s+="(?:",ze(e,(function(e,o){t=e.tags||Me,i=e.attrs||je,n=e.checkUrlAttrs||!1,0!==o&&(s+="|"),s+="(?:"+t.join("|")+")",s+="(?:",s+="[ \t\r\n]*",s+="|[ \t\r\n]+",s+="(?:(?:",s+="(?:"+i+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",n&&(s+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),s+=")[ \t\r\n]*)+",s+=")"})),s+=")",s+="/?>)",new RegExp(s,"i")}function We(e){return Ke({tags:e=e||Me,checkUrlAttrs:!0})}function Ge(e,t){var i=(t=t||{}).allowTags,n=!1!==t.hasCustomElementMarkup;return i?!We(i).test(e):n?!Ge.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Ge.R_UNSAFE_HTML.test(e)}Ge.R_UNSAFE_HTML=We(),Ge.R_UNSAFE_CUSTOM_ELEMENT=Ke([{tags:Me,checkUrlAttrs:!0},{tags:[(He={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Fe,He.attrs].join("|"),checkUrlAttrs:!1}]);var Ve={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,"",""]};Ve.optgroup=Ve.option,Ve.tbody=Ve.tfoot=Ve.colgroup=Ve.caption=Ve.thead,Ve.th=Ve.td,function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(new function(){},{toString:function(){var e=this._string,t=this._stringVal,i=e;return void 0!==t?t:(Ge(e,this._options)||(i=e,e=function(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}(e),function(e,t){if(t=t||"log","undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}("UnsafeString contains non-whitelisted tags or attributes.\nString: "+i,"error")),this._stringVal=e,e)}}),".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked")}).call(this,i(3).Buffer,i(2))},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){"use strict";(function(e){var n=i(4),r=i(5),s=i(6);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,i){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,i)}function c(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,n){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===i&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,i):new Uint8Array(t,i,n),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=u(e,t),e}(e,t,i,n):"string"==typeof t?function(e,t,i){if("string"==typeof i&&""!==i||(i="utf8"),!l.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|f(t,i),r=(e=a(e,n)).write(t,i);return r!==n&&(e=e.slice(0,r)),e}(e,t,i):function(e,t){if(l.isBuffer(t)){var i=0|p(t.length);return 0===(e=a(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):u(e,t);if("Buffer"===t.type&&s(t.data))return u(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(h(t),e=a(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function u(e,t){var i=t.length<0?0:0|p(t.length);e=a(e,i);for(var n=0;n<i;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return j(e).length;default:if(n)return M(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,i);case"utf8":case"utf-8":return A(this,t,i);case"ascii":return k(this,t,i);case"latin1":case"binary":return x(this,t,i);case"base64":return L(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function m(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:w(e,t,i,n,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):w(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function w(e,t,i,n,r){var s,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var h=-1;for(s=i;s<a;s++)if(c(e,s)===c(t,-1===h?0:s-h)){if(-1===h&&(h=s),s-h+1===l)return h*o}else-1!==h&&(s-=s-h),h=-1}else for(i+l>a&&(i=a-l),s=i;s>=0;s--){for(var d=!0,u=0;u<l;u++)if(c(e,s+u)!==c(t,u)){d=!1;break}if(d)return s}return-1}function b(e,t,i,n){i=Number(i)||0;var r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;o<n;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[i+o]=a}return o}function y(e,t,i,n){return H(M(t,e.length-i),e,i,n)}function v(e,t,i,n){return H(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function E(e,t,i,n){return v(e,t,i,n)}function T(e,t,i,n){return H(j(t),e,i,n)}function S(e,t,i,n){return H(function(e,t){for(var i,n,r,s=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(i=e.charCodeAt(o))>>8,r=i%256,s.push(r),s.push(n);return s}(t,e.length-i),e,i,n)}function L(e,t,i){return 0===t&&i===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,i))}function A(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r<i;){var s,o,a,l,c=e[r],h=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=i)switch(d){case 1:c<128&&(h=c);break;case 2:128==(192&(s=e[r+1]))&&(l=(31&c)<<6|63&s)>127&&(h=l);break;case 3:s=e[r+1],o=e[r+2],128==(192&s)&&128==(192&o)&&(l=(15&c)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:s=e[r+1],o=e[r+2],a=e[r+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(l=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(h=l)}null===h?(h=65533,d=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var i="",n=0;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return i}(n)}function k(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function x(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function C(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var r="",s=t;s<i;++s)r+=F(e[s]);return r}function I(e,t,i){for(var n=e.slice(t,i),r="",s=0;s<n.length;s+=2)r+=String.fromCharCode(n[s]+256*n[s+1]);return r}function R(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,i,n,r,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function B(e,t,i,n){t<0&&(t=65535+t+1);for(var r=0,s=Math.min(e.length-i,2);r<s;++r)e[i+r]=(t&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function U(e,t,i,n){t<0&&(t=4294967295+t+1);for(var r=0,s=Math.min(e.length-i,4);r<s;++r)e[i+r]=t>>>8*(n?r:3-r)&255}function P(e,t,i,n,r,s){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function D(e,t,i,n,s){return s||P(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function N(e,t,i,n,s){return s||P(e,0,i,8),r.write(e,t,i,n,52,8),i+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,i){return c(null,e,t,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,i){return function(e,t,i,n){return h(t),t<=0?a(e,t):void 0!==i?"string"==typeof n?a(e,t).fill(i,n):a(e,t).fill(i):a(e,t)}(null,e,t,i)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,r=0,s=Math.min(i,n);r<s;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=l.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var o=e[i];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,i,n,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(this===e)return 0;for(var s=(r>>>=0)-(n>>>=0),o=(i>>>=0)-(t>>>=0),a=Math.min(s,o),c=this.slice(n,r),h=e.slice(t,i),d=0;d<a;++d)if(c[d]!==h[d]){s=c[d],o=h[d];break}return s<o?-1:o<s?1:0},l.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return m(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return m(this,e,t,i,!1)},l.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return b(this,e,t,i);case"utf8":case"utf-8":return y(this,e,t,i);case"ascii":return v(this,e,t,i);case"latin1":case"binary":return E(this,e,t,i);case"base64":return T(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var i,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;i=new l(r,void 0);for(var s=0;s<r;++s)i[s]=this[s+e]}return i},l.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var n=this[e],r=1,s=0;++s<t&&(r*=256);)n+=this[e+s]*r;return n},l.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n},l.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var n=this[e],r=1,s=0;++s<t&&(r*=256);)n+=this[e+s]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var n=t,r=1,s=this[e+--n];n>0&&(r*=256);)s+=this[e+--n]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,i,n){e=+e,t|=0,i|=0,n||O(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,s=0;for(this[t]=255&e;++s<i&&(r*=256);)this[t+s]=e/r&255;return t+i},l.prototype.writeUIntBE=function(e,t,i,n){e=+e,t|=0,i|=0,n||O(this,e,t,i,Math.pow(2,8*i)-1,0);var r=i-1,s=1;for(this[t+r]=255&e;--r>=0&&(s*=256);)this[t+r]=e/s&255;return t+i},l.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);O(this,e,t,i,r-1,-r)}var s=0,o=1,a=0;for(this[t]=255&e;++s<i&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+i},l.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);O(this,e,t,i,r-1,-r)}var s=i-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,i){return D(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return D(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return N(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return N(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var r,s=n-i;if(this===e&&i<t&&t<n)for(r=s-1;r>=0;--r)e[r+t]=this[r+i];else if(s<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),t);return s},l.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var s;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(s=t;s<i;++s)this[s]=e;else{var o=l.isBuffer(e)?e:M(new l(e,n).toString()),a=o.length;for(s=0;s<i-t;++s)this[s+t]=o[s%a]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function M(e,t){var i;t=t||1/0;for(var n=e.length,r=null,s=[],o=0;o<n;++o){if((i=e.charCodeAt(o))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&s.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&s.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;s.push(i)}else if(i<2048){if((t-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function j(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}}).call(this,i(2))},function(e,t,i){"use strict";t.byteLength=function(e){var t=c(e),i=t[0],n=t[1];return 3*(i+n)/4-n},t.toByteArray=function(e){var t,i,n=c(e),o=n[0],a=n[1],l=new s(function(e,t,i){return 3*(t+i)/4-i}(0,o,a)),h=0,d=a>0?o-4:o;for(i=0;i<d;i+=4)t=r[e.charCodeAt(i)]<<18|r[e.charCodeAt(i+1)]<<12|r[e.charCodeAt(i+2)]<<6|r[e.charCodeAt(i+3)],l[h++]=t>>16&255,l[h++]=t>>8&255,l[h++]=255&t;return 2===a&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,l[h++]=255&t),1===a&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,l[h++]=t>>8&255,l[h++]=255&t),l},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,s=[],o=0,a=i-r;o<a;o+=16383)s.push(h(e,o,o+16383>a?a:o+16383));return 1===r?(t=e[i-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")};for(var n=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=o.length;a<l;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function h(e,t,i){for(var r,s,o=[],a=t;a<i;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[(s=r)>>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,i,n,r){var s,o,a=8*r-n-1,l=(1<<a)-1,c=l>>1,h=-7,d=i?r-1:0,u=i?-1:1,p=e[t+d];for(d+=u,s=p&(1<<-h)-1,p>>=-h,h+=a;h>0;s=256*s+e[t+d],d+=u,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=n;h>0;o=256*o+e[t+d],d+=u,h-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=c}return(p?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,i,n,r,s){var o,a,l,c=8*s-r-1,h=(1<<c)-1,d=h>>1,u=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?u/l:u*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=h?(a=0,o=h):o+d>=1?(a=(t*l-1)*Math.pow(2,r),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[i+p]=255&a,p+=f,a/=256,r-=8);for(o=o<<r|a,c+=r;c>0;e[i+p]=255&o,p+=f,o/=256,c-=8);e[i+p-f]|=128*g}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},,,,,function(e,t,i){"use strict";i.r(t);var n=i(1),r="".concat("video-entity","--loaded"),s="".concat("video-entity","--play"),o="".concat("video-entity","--pause"),a="".concat("video-entity","--ended");class l{constructor(){var e=document.querySelector(".share-native-video__node"),t=document.querySelector(".compact-embed-content--compact");this.videoInitialisedPromise=n.j.getDeferredPromise(),new n.e(e).getPlayerPromise().then(e=>(t&&this._handleCompactVideoPlayer(e,t),this.videoInitialisedPromise.resolve()))}_handleCompactVideoPlayer(e,t){var i=document.querySelector(".modal__outlet--outlet-button-square"),n=document.querySelector(".share-native-video-overlay__topbar-item--like"),l=document.querySelector(".share-native-video-overlay__topbar-title"),c=document.querySelector(".share-native-video"),h=[i,n,l],d=document.querySelector(".share-native-video-overlay__preview");d&&(this._hideElementsCoveredByOverlay(e,c,h),d.addEventListener("click",()=>{t.classList.add(r),this._restoreElementsCoveredByOverlay(e,c,h),e.focus(),e.play()})),e.on("play",(function(){t.classList.remove(a),t.classList.remove(o),t.classList.add(s)})),e.on("pause",(function(){t.classList.remove(s),t.classList.add(o)})),e.on("ended",(function(){t.classList.add(a),t.classList.remove(s)}))}_hideElementsCoveredByOverlay(e,t,i){e.controlBar.hide(),t&&t.setAttribute("aria-hidden","true"),i.forEach(e=>{e&&e.classList.add("visibility-hidden")})}_restoreElementsCoveredByOverlay(e,t,i){e.controlBar.show(),t&&t.removeAttribute("aria-hidden"),i.forEach(e=>{e&&e.classList.remove("visibility-hidden")})}}var c=document.referrer.split("/").slice(0,3).join("/"),h=document.querySelector(".embedded-social-share");h&&new n.b(h);var d=document.querySelector(".main--embed");d&&-1!==["https://www.linkedin.com","https://www.linkedin.cn","https://pemberly.www.linkedin.com:4443","https://www.linkedin-ei.com","https://www.linkedin-ei.cn","https://pemberly.www.linkedin-ei.com:4443"].indexOf(c)&&window.parent.postMessage({context:"public-post",height:Math.ceil(d.offsetHeight)},c),document.querySelector(".share-native-video__node")&&n.j.onload(()=>{new l}),n.i.init(n.j.makeArray(document.querySelectorAll(".share-native-document__iframe")))}]);