/*! For license information please see Pulse.js.LICENSE.txt */
(()=>{"use strict";var e,t={};function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r,o,s,a={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},c="GUEST",l="MEMBER",u=0,d=1,h=2,p=(i(e={},c,"li_gc"),i(e,l,"li_mc"),e),f="liap",m=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=i,this.userMode=r,this.optedInConsentMap={},a)t[s]=t[s]||u,t[s]!==u&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===d||t[s]===u&&o===d},g=(r=[a.ADVERTISING,a.ANALYTICS_AND_RESEARCH,a.FUNCTIONAL],o=[u,d,h,u],s=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(s);if(!n)return{error:"Invalid consent body encoding",consent:new m};for(var i=parseInt(n[1],10),a={},c=0;c<r.length;c++)a[r[c]]=o[i>>2*c&3];var l=new Date(1e3*parseInt(n[2],10)),d=parseInt(n[3],10),h=u;return d>=0&&d<=3&&(h=o[d]),{error:null,consent:new m(a,l,t,h)}}}),v=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),y=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},E=function(e,t){var n=y(p[e],t);return n?w(n,e):y(p[c],t)||y(p[l],t)?b(h):b(d)},b=function(e){var t={};for(var n in a)t[n]=e;return{error:null,consent:new m(t,null,null,e)}};var w=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,i=null;try{i=(n=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(n,"base64").toString("binary"):atob(n)).match(v)}catch(e){}if(!i)return{error:"Invalid consent encoding",consent:new m};var r=parseInt(i[1],10),o=i[2];return 1===r?g.parseConsentBody(o,t):{error:"Invalid encoded consent version ".concat(r),consent:new m}},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=y(f,t)?y(p[l],t)?l:c:y(p[c],t)?c:l),E(e,t)};window.encodeURIComponent;function T(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 S(e){"complete"===document.readyState?e():window.addEventListener("load",(()=>{setTimeout(e)}))}class C{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",(e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}}))}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const I=function(){let e;return{getInstance:function(){return e||(e=new C),e}}}();class k{constructor(){this._pagehideCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("pagehide",(e=>{for(let t=0;t<this._pagehideCallbacks.length;t++)this._pagehideCallbacks[t].call(null,e)}))}addPagehideCallback(e){e instanceof Function&&this._pagehideCallbacks.push(e)}}const A=function(){let e;return{getInstance:function(){return e||(e=new k),e}}}();function O(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function L(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function R(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return r?e<=t*i:e>=n-(t+t*i)}function N(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function P(e,t){return x(e,"trk",t)}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 r=N(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),s="&";return i<0?s="?":i===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(r).concat(s).concat(t,"=").concat(n).concat(o||"")}}function M(e,t,n){var i=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let r;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=()=>{r=null,n||e.apply(i,s)},l=n&&!r;clearTimeout(r),r=setTimeout(c,t),l&&e.apply(i,s)}}function D(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function U(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function B(){let e,t;const n=new Promise(((n,i)=>{e=n,t=i}));return n.resolve=e,n.reject=t,n}function F(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function q(e){return"string"!=typeof e?null:e.split("?")[0]}var H=Object.freeze({__proto__:null,closest:T,onload:S,UnloadHandler:I,PagehideHandler:A,makeArray:O,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:L,hasElementScrolledToThreshold:R,getQueryParam:N,addTrackingCode:P,addQueryParam:x,debounce:M,getCookie:D,dispatchCustomEvent:U,getDeferredPromise:B,isDocumentHidden:F,stripQueryParams:q,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=x(n,e,t[e],!0);return n},getQueryParameters:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;const t={};if(e){const n=e.split("?")[1],i=n&&n.split("&");i&&i.forEach((e=>{const n=e.split("=");t[n[0]]=decodeURIComponent(n[1])}))}return t}});function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),i=e.getElementById("config"),r=i&&"true"===i.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(r||t.skipSuffix?"":"_jsbeacon"):""}function G(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function z(){var e,t;const n=null===(e=window.atob(D("li_gp")))||void 0===e||null===(t=e.split(";")[2])||void 0===t?void 0:t[0];return!!n&&!parseInt(n)}function W(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function K(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function V(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var Y=Object.freeze({__proto__:null,getPageKey:j,getPageTag:G,getLiSugrCookie:function(){return D("li_sugr")},getGuestRetargetingOptOut:z,getLocale:W,getDomain:K,trimDoubleQuotes:V});const Q={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},X={Down:Q.ARROW_DOWN,Right:Q.ARROW_RIGHT,Left:Q.ARROW_LEFT,Up:Q.ARROW_UP,Esc:Q.ESCAPE,Spacebar:Q.SPACEBAR,Tab:Q.TAB};function J(e){return X[e]||e}const Z="click",$="keydown",ee="focusEl";class te{constructor(e,t,n){let{mainButton:i,closeButton:r}=n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};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}=o;this.isOpen=s,this.mainButton=i,this.closeButton=r,this.buttons=[i],this._isList&&this.el.addEventListener("keyup",(e=>this._onKeyUp(e))),this.expandableEl.addEventListener($,(e=>this._onKeyDown(e))),this.mainButton.addEventListener(Z,(e=>this.closeButton?this._open(e):this._toggle(e))),this.mainButton.addEventListener($,(e=>this._onButtonKeyDown(e))),this.closeButton&&(this.closeButton.addEventListener(Z,(()=>this.close())),this.closeButton.addEventListener($,(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(J(e.key)){case Q.ENTER:case Q.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case Q.ARROW_UP:this.isOpen||this._open(e);break;case Q.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){J(e.key)===Q.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=J(e.key);if(t===Q.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case Q.SPACEBAR:U(e.target,Z);break;case Q.ARROW_LEFT:case Q.ARROW_UP:n=T(e.target,"li");let t=n.previousElementSibling;t&&U(t,ee);break;case Q.ARROW_RIGHT:case Q.ARROW_DOWN:n=T(e.target,"li");let i=n.nextElementSibling;i&&U(i,ee)}}}_open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach((e=>e.setAttribute("aria-expanded",this.isOpen))),U(this.el,"open",{key:t})}}close(){let{shouldReturnFocusToTrigger:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isOpen&&(this.isOpen=!1,this.buttons.forEach((e=>e.setAttribute("aria-expanded",this.isOpen))),U(this.el,"close"),e&&this.mainButton.focus())}}let ne,ie;const re=['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^="-"])'],oe=[...re,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),se=[...re,"[tabindex]:not([disabled])"].join(",");function ae(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function ce(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,i=arguments.length>2?arguments[2]:void 0;return e===n?!ae(e):i&&i.get(e)?i.get(e):(ae(e)?t=!1:e.parentNode&&(t=ce(e.parentNode,n,i)),i&&i.set(e,t),t)}const le={POLITE:"polite",ASSERTIVE:"assertive"};function ue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le.POLITE;ne&&(ne.removeAttribute("aria-hidden"),ne.setAttribute("aria-live",le.POLITE),ne.textContent="",ne.textContent=e,ne.setAttribute("aria-live",t),clearTimeout(ie),ie=setTimeout((()=>{ne.removeAttribute("aria-live"),ne.setAttribute("aria-hidden","true")}),1e4))}class de{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 he=["class","disabled","style","tabindex","type"];class pe{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 de(this._container)}init(){this._observer.observe(this._container,{attributeFilter:he,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:n}=e,i=J(t),r=i===Q.TAB&&e.shiftKey;!r&&i===Q.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):r&&n===this.firstFocusableEl&&(this.lastFocusableEl.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(oe)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=ce(r,e,n)&&r,o++}if(!r){const i=t[s];r=ce(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const fe=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&fe.test(e)}const ge="collapsible-dropdown",ve=".".concat(ge,"__list"),ye=".".concat(ge,"__button"),Ee=".".concat(ge,"__close-button"),be="no-focus-ring";class we{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(oe)),elementToFocus:n,dropdownTriggerEl:i,dropdownContentEl:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to CollapsibleDropdown");this.el=e,this.dropdownContentEl=r||this.el.querySelector(ve),this._closeButton=this.el.querySelector(Ee),this._isMobile=me();const o=this.dropdownContentEl.closest(".".concat(ge));if(this._isMobile&&o&&(this._focusTrap=new pe(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(oe),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=n||this.dropdownContentEl,this.dropdownTriggerEl=i||this.el.querySelector(ye),this.hideClass="hidden",this.collapsible=new te(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(){var e;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))),null===(e=this._closeButton)||void 0===e||e.addEventListener("click",(e=>this._handleCloseButtonClick(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})}_handleCloseButtonClick(e){var t;null===(t=e.stopPropagation)||void 0===t||t.call(e),this.collapsible.close({shouldReturnFocusToTrigger:!0})}_showDropdownList(e){window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;var n;(t?this.elementToFocus.classList.remove(be):this.elementToFocus.classList.add(be),document.addEventListener("mousedown",this._handleBodyClick),this._isMobile)?null===(n=this._focusTrap)||void 0===n||n.init():this.el.addEventListener("focusout",this._focusOutsideDropdown)}_hideDropdownList(){var e;this._isMobile?null===(e=this._focusTrap)||void 0===e||e.tearDown():this.el.removeEventListener("focusout",this._focusOutsideDropdown);document.removeEventListener("mousedown",this._handleBodyClick),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({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}shouldReturnFocusToTrigger(e){this._shouldReturnFocusToTrigger=e}close(){this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}}function _e(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new Promise(((s,a)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)s({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText};const i=c.getAllResponseHeaders();i&&(n.response.rawHeaders=i),a(n)}})),c.addEventListener("error",(function(e){a(e)})),c.open(t,e,!0),c.withCredentials=i,Object.keys(n).forEach((e=>{c.setRequestHeader(e,n[e])})),!r){const e=D("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",V(e))}c.send(o)}));return s&&(a.length?Te(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function Te(e,t,n,i){try{const r=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?Se(e.response.rawHeaders):new Headers})}));window.tracking.then((e=>{window.pemTracking.then((o=>{o.trackFeatureDegradationsForFetch(t,n,i,r,e.state.currentPageInstance)}))}))}catch(e){}}function Se(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach((e=>{const n=e.trim().split(": "),i=n.shift();if(i){const e=n.join(": ");t.set(i.toLocaleLowerCase(),e)}})),t}class Ce{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(".language-selector__link--selected"),this.collapsibleDropdown=new we(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=V(D("bcookie")||""),n=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}(K(document));return _e("".concat(n,"/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 Ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{},ke=(parseInt,"object"==typeof Ie&&Ie&&Ie.Object===Object&&Ie),Ae="object"==typeof self&&self&&self.Object===Object&&self;ke||Ae||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function Oe(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 Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(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){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const Pe="light",xe="dark";function Me(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?xe:Pe:void 0}var De;function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,t)||ze(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ze(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function He(e,t,n){return t&&qe(e.prototype,t),n&&qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ze(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e,t){if(e){if("string"==typeof e)return We(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ke(e){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ve,Ye=new Uint8Array(16);function Qe(){if(!Ve&&!(Ve="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ve(Ye)}var Xe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Je(e){return"string"==typeof e&&Xe.test(e)}for(var Ze=[],$e=0;$e<256;++$e)Ze.push(($e+256).toString(16).substr(1));function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ze[e[t+0]]+Ze[e[t+1]]+Ze[e[t+2]]+Ze[e[t+3]]+"-"+Ze[e[t+4]]+Ze[e[t+5]]+"-"+Ze[e[t+6]]+Ze[e[t+7]]+"-"+Ze[e[t+8]]+Ze[e[t+9]]+"-"+Ze[e[t+10]]+Ze[e[t+11]]+Ze[e[t+12]]+Ze[e[t+13]]+Ze[e[t+14]]+Ze[e[t+15]]).toLowerCase();if(!Je(n))throw TypeError("Stringified UUID is invalid");return n}function tt(e){if(!Je(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function nt(e,t,n){function i(e,i,r,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=tt(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0;for(var a=0;a<16;++a)r[o+a]=s[a];return r}return et(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function it(e){return 14+(e+64>>>9<<4)+1}function rt(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function ot(e,t,n,i,r,o){return rt((s=rt(rt(t,e),rt(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function st(e,t,n,i,r,o,s){return ot(t&n|~t&i,e,t,r,o,s)}function at(e,t,n,i,r,o,s){return ot(t&i|n&~i,e,t,r,o,s)}function ct(e,t,n,i,r,o,s){return ot(t^n^i,e,t,r,o,s)}function lt(e,t,n,i,r,o,s){return ot(n^(t|~i),e,t,r,o,s)}function ut(e,t,n){var i=(e=e||{}).random||(e.rng||Qe)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return et(i)}function dt(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function ht(e,t){return e<<t|e>>>32-t}nt("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,s=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[it(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=i,l=r,u=o;n=st(n,i,r,o,e[s],7,-680876936),o=st(o,n,i,r,e[s+1],12,-389564586),r=st(r,o,n,i,e[s+2],17,606105819),i=st(i,r,o,n,e[s+3],22,-1044525330),n=st(n,i,r,o,e[s+4],7,-176418897),o=st(o,n,i,r,e[s+5],12,1200080426),r=st(r,o,n,i,e[s+6],17,-1473231341),i=st(i,r,o,n,e[s+7],22,-45705983),n=st(n,i,r,o,e[s+8],7,1770035416),o=st(o,n,i,r,e[s+9],12,-1958414417),r=st(r,o,n,i,e[s+10],17,-42063),i=st(i,r,o,n,e[s+11],22,-1990404162),n=st(n,i,r,o,e[s+12],7,1804603682),o=st(o,n,i,r,e[s+13],12,-40341101),r=st(r,o,n,i,e[s+14],17,-1502002290),n=at(n,i=st(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=at(o,n,i,r,e[s+6],9,-1069501632),r=at(r,o,n,i,e[s+11],14,643717713),i=at(i,r,o,n,e[s],20,-373897302),n=at(n,i,r,o,e[s+5],5,-701558691),o=at(o,n,i,r,e[s+10],9,38016083),r=at(r,o,n,i,e[s+15],14,-660478335),i=at(i,r,o,n,e[s+4],20,-405537848),n=at(n,i,r,o,e[s+9],5,568446438),o=at(o,n,i,r,e[s+14],9,-1019803690),r=at(r,o,n,i,e[s+3],14,-187363961),i=at(i,r,o,n,e[s+8],20,1163531501),n=at(n,i,r,o,e[s+13],5,-1444681467),o=at(o,n,i,r,e[s+2],9,-51403784),r=at(r,o,n,i,e[s+7],14,1735328473),n=ct(n,i=at(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=ct(o,n,i,r,e[s+8],11,-2022574463),r=ct(r,o,n,i,e[s+11],16,1839030562),i=ct(i,r,o,n,e[s+14],23,-35309556),n=ct(n,i,r,o,e[s+1],4,-1530992060),o=ct(o,n,i,r,e[s+4],11,1272893353),r=ct(r,o,n,i,e[s+7],16,-155497632),i=ct(i,r,o,n,e[s+10],23,-1094730640),n=ct(n,i,r,o,e[s+13],4,681279174),o=ct(o,n,i,r,e[s],11,-358537222),r=ct(r,o,n,i,e[s+3],16,-722521979),i=ct(i,r,o,n,e[s+6],23,76029189),n=ct(n,i,r,o,e[s+9],4,-640364487),o=ct(o,n,i,r,e[s+12],11,-421815835),r=ct(r,o,n,i,e[s+15],16,530742520),n=lt(n,i=ct(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=lt(o,n,i,r,e[s+7],10,1126891415),r=lt(r,o,n,i,e[s+14],15,-1416354905),i=lt(i,r,o,n,e[s+5],21,-57434055),n=lt(n,i,r,o,e[s+12],6,1700485571),o=lt(o,n,i,r,e[s+3],10,-1894986606),r=lt(r,o,n,i,e[s+10],15,-1051523),i=lt(i,r,o,n,e[s+1],21,-2054922799),n=lt(n,i,r,o,e[s+8],6,1873313359),o=lt(o,n,i,r,e[s+15],10,-30611744),r=lt(r,o,n,i,e[s+6],15,-1560198380),i=lt(i,r,o,n,e[s+13],21,1309151649),n=lt(n,i,r,o,e[s+4],6,-145523070),o=lt(o,n,i,r,e[s+11],10,-1120210379),r=lt(r,o,n,i,e[s+2],15,718787259),i=lt(i,r,o,n,e[s+9],21,-343485551),n=rt(n,a),i=rt(i,c),r=rt(r,l),o=rt(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(it(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),nt("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=ht(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],E=n[4],b=0;b<80;++b){var w=Math.floor(b/20),_=ht(m,5)+dt(w,g,v,y)+E+t[w]+h[b]>>>0;E=y,y=v,v=ht(g,30)>>>0,g=m,m=_}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var pt=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var ft=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(ft){var mt=new Uint8Array(256),gt=mt.length;pt={rng:function(){return gt>mt.length-16&&(ft.randomFillSync(mt),gt=0),mt.slice(gt,gt+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ke(crypto))&&crypto.randomUUID;function vt(){return ut(pt,new Array(16),0)}function yt(e){return Ge(e).map((function(e){return String.fromCharCode(e)})).join("")}function Et(){return yt(vt())}var bt=/^[a-zA-Z0-9/+]+[=]+$/;function wt(e,t){return{pageUrn:Tt(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,s=o%3,a=o-s;r<a;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3;switch(s){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=");break;case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}(vt())}}function _t(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Tt(e){return"urn:li:page:".concat(e)}function St(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Ct(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function It(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function kt(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",i=window.indexedDB.open(n);return new Promise((function(r,o){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var i,s=null!==(i=n.sequenceNumber)&&void 0!==i?i:0;if("read"===e)return r(s);if(!("update"===e&&void 0!==t&&t>s))return r(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return r(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return r(0)},u.onerror=function(){o(u.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},a.oncomplete=function(){return s.close()}},i.onerror=function(){return r(null)}}))}return Promise.resolve(null)}function At(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function Ot(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Lt,Rt,Nt=(Lt=new Map,Rt=new Map,{on:function(e,t){At(Lt,e,t)},before:function(e,t){At(Rt,e,t)},off:function(e,t){Ot(Lt,e,t)},offBefore:function(e,t){Ot(Rt,e,t)},emit:function(e,t){(Rt.get(e)||[]).concat(Lt.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Rt.clear(),Lt.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Pt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Nt.emit("internal:hide",e)};document.addEventListener("visibilitychange",Pt),window.addEventListener("pagehide",Pt)}var xt=Uint8Array,Mt=Uint16Array,Dt=Uint32Array,Ut=new xt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Bt=new xt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ft=new xt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qt=function(e,t){for(var n=new Mt(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Dt(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},Ht=qt(Ut,2),jt=Ht[0],Gt=Ht[1];jt[28]=258,Gt[258]=28;for(var zt=qt(Bt,0)[1],Wt=new Mt(32768),Kt=0;Kt<32768;++Kt){var Vt=(43690&Kt)>>>1|(21845&Kt)<<1;Vt=(61680&(Vt=(52428&Vt)>>>2|(13107&Vt)<<2))>>>4|(3855&Vt)<<4,Wt[Kt]=((65280&Vt)>>>8|(255&Vt)<<8)>>>1}var Yt=function(e,t,n){for(var i=e.length,r=0,o=new Mt(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new Mt(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new Mt(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[Wt[d]>>>c]=l}else for(s=new Mt(i),r=0;r<i;++r)e[r]&&(s[r]=Wt[a[e[r]-1]++]>>>15-e[r]);return s},Qt=new xt(288);for(Kt=0;Kt<144;++Kt)Qt[Kt]=8;for(Kt=144;Kt<256;++Kt)Qt[Kt]=9;for(Kt=256;Kt<280;++Kt)Qt[Kt]=7;for(Kt=280;Kt<288;++Kt)Qt[Kt]=8;var Xt=new xt(32);for(Kt=0;Kt<32;++Kt)Xt[Kt]=5;var Jt=Yt(Qt,9,0),Zt=Yt(Xt,5,0),$t=function(e){return(e+7)/8|0},en=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},tn=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},nn=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[un,0];if(1==r){var s=new xt(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new Mt(h+1),f=rn(n[u-1],p,0);if(f>t){i=0;var m=0,g=f-t,v=1<<g;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var y=o[i].s;if(!(p[y]>t))break;m+=v-(1<<f-p[y]),p[y]=t}for(m>>>=g;m>0;){var E=o[i].s;p[E]<t?m-=1<<t-p[E]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new xt(p),f]},rn=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},on=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Mt(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},sn=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},an=function(e,t,n){var i=n.length,r=$t(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},cn=function(e,t,n,i,r,o,s,a,c,l,u){en(t,u++,n),++r[256];for(var d=nn(r,15),h=d[0],p=d[1],f=nn(o,15),m=f[0],g=f[1],v=on(h),y=v[0],E=v[1],b=on(m),w=b[0],_=b[1],T=new Mt(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var C=nn(T,7),I=C[0],k=C[1],A=19;A>4&&!I[Ft[A-1]];--A);var O,L,R,N,P=l+5<<3,x=sn(r,Qt)+sn(o,Xt)+s,M=sn(r,h)+sn(o,m)+s+14+3*A+sn(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return an(t,u,e.subarray(c,c+l));if(en(t,u,1+(M<x)),u+=2,M<x){O=Yt(h,p,0),L=h,R=Yt(m,g,0),N=m;var D=Yt(I,k,0);for(en(t,u,E-257),en(t,u+5,_-1),en(t,u+10,A-4),u+=14,S=0;S<A;++S)en(t,u+3*S,I[Ft[S]]);u+=3*A;for(var U=[y,w],B=0;B<2;++B){var F=U[B];for(S=0;S<F.length;++S){var q=31&F[S];en(t,u,D[q]),u+=I[q],q>15&&(en(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else O=Jt,L=Qt,R=Zt,N=Xt;for(S=0;S<a;++S)if(i[S]>255){q=i[S]>>>18&31,tn(t,u,O[q+257]),u+=L[q+257],q>7&&(en(t,u,i[S]>>>23&31),u+=Ut[q]);var H=31&i[S];tn(t,u,R[H]),u+=N[H],H>3&&(tn(t,u,i[S]>>>5&8191),u+=Bt[H])}else tn(t,u,O[i[S]]),u+=L[i[S]];return tn(t,u,O[256]),u+L[256]},ln=new Dt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),un=new xt(0),dn=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),hn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function pn(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=dn[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r,o,s,a=(r=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,i,r,o){var s=e.length,a=new xt(i+s+5*(1+Math.ceil(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=an(c,l+1,e.subarray(u,d))}else{for(var h=ln[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new Mt(32768),v=new Mt(m+1),y=Math.ceil(n/3),E=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<E)&m},w=new Dt(25e3),_=new Mt(288),T=new Mt(32),S=0,C=0,I=(u=0,0),k=0,A=0;u<s;++u){var O=b(u),L=32767&u,R=v[O];if(g[L]=R,v[O]=L,k<=u){var N=s-u;if((S>7e3||I>24576)&&N>423){l=cn(e,c,0,w,_,T,C,I,A,u-A,l),I=S=C=0,A=u;for(var P=0;P<286;++P)_[P]=0;for(P=0;P<30;++P)T[P]=0}var x=2,M=0,D=f,U=L-R&32767;if(N>2&&O==b(u-U))for(var B=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);U<=F&&--D&&L!=R;){if(e[u+x]==e[u+x-U]){for(var H=0;H<q&&e[u+H]==e[u+H-U];++H);if(H>x){if(x=H,M=U,H>B)break;var j=Math.min(U,H-2),G=0;for(P=0;P<j;++P){var z=u-U+P+32768&32767,W=z-g[z]+32768&32767;W>G&&(G=W,R=z)}}}U+=(L=R)-(R=g[L])+32768&32767}if(M){w[I++]=268435456|Gt[x]<<18|zt[M];var K=31&Gt[x],V=31&zt[M];C+=Ut[K]+Bt[V],++_[257+K],++T[V],k=u+x,++S}else w[I++]=e[u],++_[e[u]]}}l=cn(e,c,o,w,_,T,C,I,A,u-A,l),!o&&7&l&&(l=an(c,l+1,un))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(2==e.BYTES_PER_ELEMENT?Mt:4==e.BYTES_PER_ELEMENT?Dt:xt)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+$t(l)+r)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,s,8,!0)),c=a.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&hn(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(a,t),hn(a,c-8,n.d()),hn(a,c-4,i),a}var fn="undefined"!=typeof TextDecoder&&new TextDecoder;try{fn.decode(un,{stream:!0})}catch(rr){}function mn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function gn(){try{return mn()&&"keepalive"in new Request("")}catch(e){return!1}}function vn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest;if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r<o.length;r++){var s=o[r];i.setRequestHeader(s,n.headers[s])}i.send(t)}}function yn(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress;i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8");var o=t;if(r&&"undefined"!=typeof TextEncoder)try{o=pn((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function En(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var bn,wn="undefined"!=typeof navigator&&"sendBeacon"in navigator,_n=gn()?function(e,t,n,i){return new Promise((function(r){fetch(e,yn({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,yn({body:t,keepalive:!1,headers:n,compress:i}))})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:e.status}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:En(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(wn){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,yn({body:t,keepalive:!1,headers:n,compress:i})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:200}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:En(e)})}))}))};function Tn(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function Sn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e);r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}};var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result;t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}));return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function Cn(){return bn||(bn=Sn("idb-queue","default")),bn}function In(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,i=null;return e.openKeyCursor().onsuccess=function(){var r=this.result;r&&n++<t.batchEvictionNumber?(i=r.key,r.continue()):null!=i&&e.delete(IDBKeyRange.upperBound(i))},Tn(e.transaction)}function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cn();return t("readwrite",(function(t){return In(t,e)}))}var An=!1;function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cn();return n("readwrite",(function(n){return n.put(e),Tn(n.count()).then((function(e){if(!(e<=t.maxNumber))return In(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return kn(t,n)}))}function Ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cn();return An?Promise.resolve():On(e,t,n)}function Rn(e,t,n){return t("readwrite",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),t.delete(),(e<0||i.length<e)&&t.continue())},Tn(t.transaction).then((function(){return i}))}))}function Nn(e,t,n){return t("readonly",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),(e<0||i.length<e)&&t.continue())},Tn(t.transaction).then((function(){return i}))}))}function Pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cn();return Nn(e,t,"next")}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cn();return Nn(e,t,"prev")}function Mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function Dn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Un(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{var n=function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function Fn(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(Dn((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var qn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Fe(this,e),je(this,"config",void 0),je(this,"compress",void 0),je(this,"throttleControl",void 0),je(this,"withStore",void 0),je(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=Sn(t.idbName,"beacons","timestamp",{onSuccess:function(){r&&performance.measure(r.createSuccessMeasure,r.createStartMark)},onError:function(){r&&performance.measure(r.createFailMeasure,r.createStartMark),n.disablePersistence=!0}}),this.throttleControl=Fn(this.replayEntries.bind(this),t.throttleWait)}return He(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){Dn((function(){return"Persisting to DB "+e.url})),Ln(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Dn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Un((function(){return"push failed"}))}))};this.config.useIdle?Bn(n):n()}}},{key:"clear",value:function(){var e=this;return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn();return An=!0,e("readwrite",(function(e){return e.clear(),Tn(e.transaction).finally((function(){return An=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Un((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):Pn(t,this.withStore).catch((function(){return e.disablePersistence=!0,Un((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):xn(t,this.withStore).catch((function(){return e.disablePersistence=!0,Un((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Dn((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cn();return Rn(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,s=r.body,a=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return Dn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),_n(o,s,Mn(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i;null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,s),e.replayEntries()}else{var r,a,d,h,p,f;if(u+1>e.config.attemptLimit)return Dn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(a=e.config).onResult)||void 0===r||r.call(a,t,s));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(h=e.config).onResult)||void 0===d||d.call(h,t,s),Dn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),Ln({url:o,body:s,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore);t.drop=!0,null===(p=(f=e.config).onResult)||void 0===p||p.call(f,t,s)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&Un((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Bn(t):t()}}}]),e}(),Hn=function(){function e(){Fe(this,e)}return He(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),jn=function(){function e(t,n){Fe(this,e),je(this,"queue",void 0),je(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new qn(t,n.compress):new Hn}return He(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}();je(jn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Gn=[502,504],zn=[429,503],Wn=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Fe(this,e),je(this,"url",void 0),je(this,"body",void 0),je(this,"config",void 0),je(this,"persistenceConfig",void 0),je(this,"compress",void 0),je(this,"timestamp",void 0),je(this,"isClearQueuePending",!1),je(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return He(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.persistenceConfig.db.onClear(this.onClearCallback);var n=this.retryLimit;return this.retry((function(t){return _n(e.url,e.body,t,e.compress)}),n,t).finally((function(){Dn((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,i){var r=this,o=this.getAttemptCount(t)-1;return e(Mn(n,this.config.headerName,o,i)).then((function(i){var o,s,a,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),a=i;else if(Dn((function(){return"retry rejected "+JSON.stringify(i)})),r.shouldPersist(t,i))r.persistenceConfig.db.pushToQueue({url:r.url,body:r.body,headers:n,statusCode:i.statusCode,timestamp:r.timestamp,attemptCount:r.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:i.statusCode};else{if(t>0&&r.isRetryableError(i)){var l,u;null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body);var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t);return Dn((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(a=i).drop=!0}return null===(o=(s=r.config).onIntermediateResult)||void 0===o||o.call(s,a,r.body),a}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}();function Kn(e,t,n,i,r){"control"!==i&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&gn()&&t&&n}()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}("beacons");var s,a,c=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},l=null!==(a=e.retryConfig.persist)&&void 0!==a?a:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),i=Object.assign({attemptLimit:0,statusCodes:Gn,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var r=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:zn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new jn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return mn()?new Wn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||zn},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,p=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body);if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Nt.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Nt.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var Vn=function(){function e(t){Fe(this,e),je(this,"host",void 0),this.host=t}return He(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment();this.host.retryConfig&&Kn(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon;if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){Nt.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();gn()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){Nt.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason:e})}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;r||!mn()||"undefined"==typeof Promise?vn(e,JSON.stringify(t),{headers:n}):_n(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var i=this.host.retryConfig.lixKey;return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),Yn="undefined"!=typeof window&&"undefined"!=typeof document,Qn=/JSESSIONID="?([^";]+)"?/,Xn="",Jn=0;function Zn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?Qn:i;if(!Xn||Date.now()-Jn>n){var o=Yn&&document.cookie.match(r);Xn=o&&o[1]||"",Jn=Date.now()}return Xn}var $n=function(){function e(t){Fe(this,e),je(this,"networkTransporter",void 0),je(this,"inactive",void 0),je(this,"mpName",void 0),je(this,"endpoint",void 0),je(this,"debug",void 0),this.networkTransporter=new Vn(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;switch(e){case"https://www.linkedin.com/li/track":t=ti;break;case"https://www.linkedin-ei.com/li/track/validate":default:n=!0,t=ei;break;case"https://www.linkedin-ei.com/li/track":t=ei}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return He(e,[{key:"fireFragment",value:function(e){if(!this.inactive){var t={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":Zn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),ei="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",ti="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function ni(e){return"string"==typeof e}function ii(e){return ni(e)?e:e.topicName||e.eventName}function ri(e){return ni(e)?e:e.eventName}var oi,si,ai=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Fe(this,e),je(this,"host",void 0),je(this,"cmoTransporter",void 0),je(this,"clientMonitoringInstanceId",Et()),je(this,"currentContext",ui()),je(this,"appState",{}),je(this,"estimatedFragmentSize",0),je(this,"fragmentSizeLimit",void 0),je(this,"activeFragmentEvent",void 0),je(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new $n(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=li(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return He(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this;void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring();var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated;return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId();t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats;t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,i=Be(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.instanceId===e)return void t(r)}}catch(e){i.e(e)}finally{i.f()}var o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:ri(t),eventTopic:ii(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,i=t.requestHeader,r=this.activeFragmentEvent;r.header=n,r.requestHeader=i,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=li(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.stats.eventsGenerated,!1,t)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=di(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=di(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:"0000000000000000"}}}}]),e}();function ci(e){return oi||(oi=new ai(e)),{getCurrentInstanceId:function(){return oi.getCurrentInstanceId()},logEventGenerated:function(e){return oi.logEventGenerated(e)},logEventReadyToSend:function(e){oi.logEventReadyToSend(e)},logEventSent:function(e){oi.logEventSent(e)},logPersistedEventSent:function(e,t){oi.logEventSent(t,e)},logNetworkResponseCode:function(e){oi.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=oi)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){oi.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){oi.logFailedEvent(t,n,i,r,e)},flush:function(){oi.flush()},destroy:function(){oi=void 0},isDestroyed:function(){return void 0===oi},setCurrentContext:function(e){oi.setCurrentContext(e)},updateAppState:function(e){oi.updateAppState(e)}}}function li(e,t,n,i,r){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:i,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:r.requestHeader,header:r.header}}function ui(){return{pageKey:"unknown",pageInstance:wt("unknown")}}function di(e){return Array.isArray(e)?yt(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(bt)}(e)?atob(e):yt(function(e){return tt(e)}(e))}!function(e){e.NONE="NONE",e.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",e.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",e.RETRIES_EXCEEDED="RETRIES_EXCEEDED",e.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",e.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",e.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"}(si||(si={}));var hi="PageViewEvent",pi=function(){function e(t){var n=this;Fe(this,e),je(this,"host",void 0),je(this,"queue",void 0),je(this,"preContextQueue",void 0),je(this,"debounceTimer",void 0),je(this,"unloadHandlers",void 0),je(this,"maxQueueSize",void 0),je(this,"flushDebounceTime",void 0),je(this,"trackingEventListeners",[]),je(this,"onHideHandler",(function(){n.forceFlush()})),je(this,"networkTransporter",void 0),je(this,"clientMonitoringConn",void 0),je(this,"clientSequenceNumberCounter",void 0),je(this,"isTimerRunning",void 0),je(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var i=t.batching;this.maxQueueSize=i&&i.maxSize||1,this.flushDebounceTime=i&&i.debounceTime||0,Nt.on("internal:hide",this.onHideHandler),this.networkTransporter=new Vn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=ci(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return He(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var i;if(t&&!t.isDestroyed())try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&i.forEach((function(n){var i,r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logFailedEvent(si.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},a,null!==(i=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==i?i:-1)}))}catch(e){}},onBeforeRetry:function(e){var n;if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return;var i=n[0].eventBody.header.clientMonitoringInstanceId,r=n.length;t.logPersistedEventSent(i,r)}catch(e){}},onResult:function(e,n){var i;if(t)try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length||!i[0].eventBody.header.clientMonitoringInstanceId)return;var r=i[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(r,e.statusCode),!0===e.drop&&i.forEach((function(n){var i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logPersistedFailedEvent(r,si.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(ii(e.id)));var n,i=this.host,r=i.api.Promise,o=i.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),r.resolve(!0)):(this.flush(!0),r.resolve(!0))):(this.preContextQueue.push(t),r.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,Nt.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:wt("unknown"),pageKey:"unknown"}).forEach((function(t){return e.queue.push(t)})),this.flush(!0)}},{key:"isLixEnabled",value:function(e){var t,n;return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this;kt("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){Nt.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){kt("update",this.clientSequenceNumberCounter).catch((function(e){Nt.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-update"],reason:e})}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this;"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=St(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:o.assign({appId:r},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===hi:e.eventName===hi}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof r&&null!==this.host.locale||(p=r);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:i};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var g={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return v&&c(g.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:y}),c(e.body,g)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,i,r=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),i=e.getBreadcrumbs(t),s=e.envelop(t.id,n,i);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?r.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(r.length+o.length),i=this.clientMonitoringConn,n={onResult:function(e,t){i&&!i.isDestroyed()&&(e.statusCode&&i.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,r=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==i||i.logFailedEvent(si.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,r,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var fi,mi=function(){function e(t,n){Fe(this,e),this.clientBreadcrumbType=t,this.id=n}return He(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,i){return"build"===i?function(){return e}:function(n){return e[i.toString()]=n,t}}});return t}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}();function gi(e){if(!e)return{};var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu);e.external_control&&(i="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var r=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=r&&{pageInstance:r,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var s=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(s),trackingId:e.external_page_instance},pageKey:s},n=!0}var a=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0;return a&&((o=o||{}).applicationInstance=a),{fromExternalApp:n||!!a,previousApplicationInstance:a,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function vi(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(fi||(fi={}));var yi,Ei,bi,wi=function(){function e(t,n){var i,r;if(Fe(this,e),je(this,"transporter",void 0),je(this,"delegate",void 0),je(this,"currentContext",void 0),je(this,"appState",void 0),je(this,"previousAppContext",void 0),je(this,"customTransporters",void 0),je(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new pi(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(i=(r=t.host).__getLixTreatment)||void 0===i?void 0:i.call(r,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=ci(t.host))}return He(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){vi(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=vi(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return St(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.navMetaFromSeed(e,gi(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=St(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(St(e,this.host.api))}},{key:"updateAppState",value:function(e){var t;this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=_t(n.pageKey,e),s={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,i){if(!t){var r=ii(e),o=void 0===t?"undefined":null===t?"null":Ke(t),s='Firing tracking event "'.concat(r,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(r);this.clientMonitoringConn.logFailedEvent(si.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return mi.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=this.generateEnvelope(e,t,n),o=i.length>0?this.addBreadcrumbsToEnvelope(r,i):r;return o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e;return delete t.clientBreadcrumbType,t}));return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n;if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(ni(e.id)){var i=e.id;e.id={eventName:i,topicName:i,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var r=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(r){var o=r.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=ii(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(si.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return s.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return wt(e,t)}},{key:"firePVE",value:function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=this.host.api.assign(i,t),o=this.generateEnvelope("PageViewEvent",r,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),Nt.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return _t((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from;return{previousPageInstance:i&&i.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent";this.previousAppContext=t.previousContext;var i=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:i,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t);o.meta.requestHeader.pageKey=n.pageKey;var s=i&&i.applicationInstance;return s&&(o.meta.header.clientApplicationInstance=s),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&St(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:i}}}]),e}();function _i(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(){function e(t,n){var i,r=this;Fe(this,e),je(this,"core",void 0),je(this,"protocol",void 0),je(this,"throttleKeySet",new Set),je(this,"config",void 0),je(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),r.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100},Nt.on("internal:error",this.reportTransporterError)}He(e,[{key:"reportError",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callTreeId,s=void 0===o?"":o,a=r.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,g=void 0===m?0:m,v=e.columnNumber,y=void 0===v?0:v,E=this.core.host,b=E.appId,w=E.appVersion,_=E.service,T=E.serviceInstance,S=E.treeID,C=void 0===S?"":S,I=E.api,k=I.Promise,A=I.location,O=A.host,L=A.pathname,R=A.search,N=A.hash,P=void 0===N?"":N;if(c){t={};var x=new Map;Object.keys(c).forEach((function(e){x.set(e.toLowerCase(),c[e])})),t.callTreeId=x.get("x-li-uuid"),t.microsoftEdgeReference=x.get("x-msedge-ref"),t.pointOfPresenceId=x.get("x-li-pop"),t.fabric=x.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:b,e:{c:y,l:g,m:l,s:h,t:u,u:f},h:P,l:n.protocol,o:O,p:L,pageKey:e.pageKey,q:R,service:_,serviceInstance:T,serviceVersion:w,t:i,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=_i(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?k.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),M())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Nt.off("internal:error",this.reportTransporterError)}}])}();var Ti=function(){function e(){Fe(this,e),je(this,"userTimingEntries",[]),je(this,"longTasks",[]),je(this,"resourceTimingEntries",[]),je(this,"cdnData",void 0)}return He(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name);n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(Ci),cdnData:this.cdnData}}}]),e}(),Si=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Ci(e){return Si.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Ii(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};Ei=Object.assign(Object.assign({},n),t),bi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Ei.root,n);var i=ki(e,yi.All,(function(){return ki(e,yi.Two,(function(){return ki(e,yi.One)}))}));if(i){var r=Ui(Bi(i,e));return r.length>0&&(i=r[0]),Oi(i)}throw new Error("Selector was not found.")}function ki(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=xi(function(e){var t=e.getAttribute("id");return t&&Ei.idName(t)?{name:"#"+Wi(t,{isIdentifier:!0}),penalty:0}:null}(o))||xi.apply(void 0,Ge(function(e){return Array.from(e.attributes).filter((function(e){return Ei.attr(e.name,e.value)})).map((function(e){return{name:"["+Wi(e.name,{isIdentifier:!0})+'="'+Wi(e.value)+'"]',penalty:.5}}))}(o)))||xi.apply(void 0,Ge(function(e){return Array.from(e.classList).filter(Ei.className).map((function(e){return{name:"."+Wi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||xi(function(e){var t=e.tagName.toLowerCase();return Ei.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling;return i}(o);if(t===yi.All)a&&(e=e.concat(e.filter(Pi).map((function(e){return Ni(e,a)}))));else if(t===yi.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(Pi).map((function(e){return Ni(e,a)}))));else if(t===yi.One){var c=Ue(e=e.slice(0,1),1)[0];a&&Pi(c)&&(e=[Ni(c,a)])}var l,u=Be(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=Ei.seedMinLength&&(i=Ai(r,n)))return"break";o=o.parentElement,s++};o&&o!==Ei.root.parentElement&&"break"!==a(););return i||(i=Ai(r,n)),i}function Ai(e,t){var n=Ui(Di(e));if(n.length>Ei.threshold)return t?t():null;var i,r=Be(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Ri(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Oi(e){for(var t=e[0],n=t.name,i=1;i<e.length;i++){var r=e[i].level||0;n=t.level===r-1?"".concat(e[i].name," > ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function Li(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Ri(e){switch(bi.querySelectorAll(Oi(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Oi(e)));case 1:return!0;default:return!1}}function Ni(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Pi(e){return"html"!==e.name&&!e.name.startsWith("#")}function xi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(Mi);return i.length>0?i:null}function Mi(e){return null!=e}function Di(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length>0){var n,i=[],r=Be(e[0]);try{for(r.s();!(n=r.n()).done;){var o=n.value;i=i.concat(Di(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function Ui(e){return Array.from(e).sort((function(e,t){return Li(e)-Li(t)}))}function Bi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(e.length>2&&e.length>Ei.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>Ei.maxNumberOfTries)return i;n.counter+=1;var o=Ge(e);o.splice(r,1);var s=Oi(o);if(n.visited.has(s))return i;Ri(o)&&Fi(o,t)&&(i.push(o),n.visited.set(s,!0),i=i.concat(Bi(o,t,n)))}return i}function Fi(e,t){return bi.querySelector(Oi(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(yi||(yi={}));var qi,Hi=/[ -,\.\/:-@\[-\^`\{-~]/,ji=/[ -,\.\/:-@\[\]\^`\{-~]/,Gi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,zi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Wi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},zi),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),s="",a=0,c=e.length;a<c;){var l=e.charAt(a++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<c){var h=e.charCodeAt(a++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Hi.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!r&&('"'==l&&i==l||"'"==l&&i==l)||r&&ji.test(l)?"\\"+l:l;s+=d}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Gi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function Ki(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,i=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(i+n)}return Date.now()}function Vi(e){var t=e||performance;return Math.round(t.now())}function Yi(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Ii(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Yi(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Qi(e,t,n){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){i.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){i.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),i}function Xi(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Ji,Zi=function(){function e(t){Fe(this,e),je(this,"hostApis",void 0),je(this,"hostnameProperties",void 0),je(this,"usedHostnames",void 0),je(this,"abortController",void 0),je(this,"pendingPromises",void 0),this.hostApis=t;var n=t.AbortController;this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return He(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return It(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,i=n.AbortController,r=n.Promise,o=Ct(It(this.pendingPromises),r),s=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(s),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,i,r=this.hostApis.assign,o=(n=e.name,i=this.hostApis.document,(qi=qi||i.createElement("a")).href=n,qi.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(s),n}));this.pendingPromises.add(s)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),$i=function(){function e(t,n,i,r){Fe(this,e),je(this,"hostApis",void 0),je(this,"statics",void 0),je(this,"options",void 0),je(this,"allowTimingOrigin",void 0),je(this,"collectResourceTimings",void 0),je(this,"collectCdnData",void 0),je(this,"perfObserver",void 0),je(this,"renderTimings",new Map),je(this,"urlToTreeId",new Map),je(this,"cdnDataProvider",void 0),je(this,"observables",new Ti),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Zi(t))}return He(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(qi=qi||t.createElement("a")).href=e,qi.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:Ki(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||Ki(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,i=e.immediate,r=this.collectSynchronousData(n);if(i)return r;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(r,e),r})):r}},{key:"reset",value:function(){var e;this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,i=t.PerformanceObserver,r=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",i||(this.observables.userTimingEntries=Qi(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var i=e.timing,r=e.navigation;return i&&r?(t.navigationTimingApi=!0,er.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData();n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[];return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?Ct(r,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,i=e.name,r=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:i,startTime:r,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:i,startTime:r,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:i,startTime:r})}))})),this.observables.userTimingEntries=Qi(this.hostApis.performance,this.options,!1);var n=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance;"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){return e.processSingleResourceTiming(t)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e){this.collectResourceTimings&&this.observables.resourceTimingEntries.push(e),this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:Xi(this.renderTimings),networkInformationMetrics:tr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),er=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function tr(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix"}(Ji||(Ji={}));var nr=(je(De={},"web-ui-framework","EMBER"),je(De,"app-id","linkedin.rum.tracking"),je(De,"app-version","unknown"),je(De,"is-single-page-app",!0),je(De,"user-timing-mark-enabled",!1),je(De,"user-timing-measure-enabled",!0),je(De,"beacon-source","apps"),je(De,"enable-rs-timing",!0),je(De,"enable-cdn-tracking",!1),je(De,"async-plugins-timeout",5e3),je(De,"beacon-timeout",3e4),je(De,"enable-memory-measurement",!1),je(De,"pageKeyPrefix",""),De),ir=function(){function e(t,n,i){Fe(this,e),je(this,"featureName",void 0),je(this,"trackingCore",void 0),je(this,"rumConfig",void 0),je(this,"observing",!1),je(this,"basePageTreeId",void 0),je(this,"startPageInstance",void 0),je(this,"startMemory",void 0),je(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return He(e,[{key:"startObserving",value:function(){var t,n=this,i=this.getMemory();i&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||wt("unknown"),this.startMemory=i,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:Vi(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();je(ir,"checkpoints",[1,3,10,30,90,180,300]);var rr,or,sr,ar,cr,lr=He((function e(t,n,i){Fe(this,e),je(this,"webUIFramework",void 0),je(this,"timeSource",void 0),je(this,"isSinglePageApp",void 0),je(this,"appRenderMode",void 0),je(this,"isAppRenderFailed",void 0),je(this,"pageLoadMode","INITIAL"),je(this,"isSSL",void 0),je(this,"treeId",void 0),je(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),ur=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},dr=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},hr=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},pr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},fr=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},mr=-1,gr=function(){return"hidden"===document.visibilityState?0:1/0},vr=function(){hr((function(e){var t=e.timeStamp;mr=t}),!0)},yr=function(){return mr<0&&(mr=gr(),vr(),pr((function(){setTimeout((function(){mr=gr(),vr()}),0)}))),{get firstHiddenTime(){return mr}}},Er=!1,br=-1,wr=function(e,t){Er||(function(e,t){var n,i=yr(),r=ur("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:dr("paint",o);(s||a)&&(n=fr(e,r,t),s&&o(s),pr((function(i){r=ur("FCP"),n=fr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){br=e.value})),Er=!0);var n,i=function(t){br>-1&&e(t)},r=ur("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],i=s[s.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>r.value&&(r.value=o,r.entries=s,n())}},c=dr("layout-shift",a);c&&(n=fr(i,r,t),hr((function(){c.takeRecords().map(a),n(!0)})),pr((function(){o=0,br=-1,r=ur("CLS",0),n=fr(i,r,t)})))},_r={passive:!0,capture:!0},Tr=new Date,Sr=function(e,t){rr||(rr=t,or=e,sr=new Date,kr(removeEventListener),Cr())},Cr=function(){if(or>=0&&or<sr-Tr){var e={entryType:"first-input",name:rr.type,target:rr.target,cancelable:rr.cancelable,startTime:rr.timeStamp,processingStart:rr.timeStamp+or};ar.forEach((function(t){t(e)})),ar=[]}},Ir=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Sr(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,_r),removeEventListener("pointercancel",i,_r)};addEventListener("pointerup",n,_r),addEventListener("pointercancel",i,_r)}(t,e):Sr(t,e)}},kr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Ir,_r)}))},Ar=function(e,t){var n,i=yr(),r=ur("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=dr("first-input",o);n=fr(e,r,t),s&&hr((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&pr((function(){var i;r=ur("FID"),n=fr(e,r,t),ar=[],or=-1,rr=null,kr(addEventListener),i=o,ar.push(i),Cr()}))},Or={},Lr=function(e,t){var n,i=yr(),r=ur("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=dr("largest-contentful-paint",o);if(s){n=fr(e,r,t);var a=function(){Or[r.id]||(s.takeRecords().map(o),s.disconnect(),Or[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),hr(a,!0),pr((function(i){r=ur("LCP"),n=fr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,Or[r.id]=!0,n(!0)}))}))}))}},Rr=["LCP","FID","CLS"],Nr={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Pr={},xr=function(){var e;if(!Yn)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),Mr=!1,Dr=[],Ur={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function Br(){var e=!0===window.__test__resetWebVitalsState;if(!Mr||e){e&&(Dr=[]),Rr.forEach(Fr);var t=Symbol();cr=t,[Lr,Ar,wr].forEach((function(e){return e(qr.bind(null,t),!0)})),[Lr,Ar,wr].forEach((function(e){return e(Hr.bind(null,t))})),Mr=!0}}function Fr(e){Pr[e]={name:e,value:-1,updateHistory:[]};var t=Ur[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Pr[e].value=-2)}function qr(e,t){if(e===cr){var n=Pr[t.name],i=Vi();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Dr.forEach((function(e){return e(t,i,!1)}))}}function Hr(e,t){e===cr&&Dr.forEach((function(e){return e(t,Vi(),!0)}))}var jr=function(){function e(t,n){Fe(this,e),je(this,"basePageTreeId",void 0),je(this,"basePageKey",void 0),je(this,"observing",!1),je(this,"appContextMap",new Map),je(this,"rumConfig",void 0),je(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return He(e,[{key:"startObserving",value:function(){var e,t,n=this;Br(),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageKey)||"_unknown",Rr.forEach((function(e){var t;-2===(null===(t=Pr[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),Dr.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var i;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(i=this.trackingCore.getCurrentContext())||void 0===i?void 0:i.pageKey}))}},{key:"reportMetric",value:function(e){var t=Pr[e],n={name:Nr[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=Pr[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:xr},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1],s={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Yi(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(s.url=o.url),s}(n,i);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1];return{pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Yi(o.target)}}(n,i);break;case"CLS":s=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var i=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),r=e.updateHistory.find((function(e){return e.data.entries.includes(i)})),o=null;i&&i.sources&&i.sources.length&&(o=i.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(r.time);return o&&a?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":Yi(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(s){var a={};return r(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,i,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];t[n]="string"==typeof i?i:JSON.stringify(i)})),t}(r)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,i){var r,o;Fe(this,e),je(this,"core",void 0),je(this,"config",void 0),je(this,"collector",void 0),je(this,"boomerangStart",-1),je(this,"webVitalsObserver",void 0),je(this,"appMemoryObserver",void 0),je(this,"pageMemoryObserver",void 0),je(this,"liveTokens",new Set),je(this,"stateWM",new WeakMap),je(this,"activeToken",void 0),je(this,"isInitial",void 0),je(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=i,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(i.host.api.assign({},nr),n);var s="enabled"===(null===(r=(o=this.core.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new $i(i.host.api,new lr(t,this.config,i.host),this.config,s),this.collector.startObserving(),Nt.before("internal:hide",this.beforeHideHandlerBound)}He(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,i;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var r,o=Object.create(null),s="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=o,this.liveTokens.add(o),this.stateWM.set(o,{isInitial:this.isInitial,startTime:Ki(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(i=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pemberly.tracking.rum-memory-measurement")))&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new ir("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new ir("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new jr(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var s=this.stateWM.get(e),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=Ki(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=i.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else Nt.emit("internal:error",{tags:["core-web-tracking:rum:end"],reason:new Error("RUM end: rum token passed is invalid")})}},{key:"destroy",value:function(){var e,t,n;Nt.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){var i=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(i,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=s-u,h=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:s},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var Gr="undefined"!=typeof window&&"undefined"!=typeof performance,zr="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function Wr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",Kr(n,t))}function Kr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=G(document),i=W(document),r=Me();let o={};return r&&(o.theme=r.toUpperCase()),i&&(o.interfaceLocale=i),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}function Vr(e,t){const n=W(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function Yr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!Qr(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}function Qr(e){return"string"==typeof e&&"=="===e.slice(-2)}function Xr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Le({},e),n=N(window.location.href,"originalReferer")||N(window.location.href,"original_referer");return n&&(t.requestHeader=Le(Le({},t.requestHeader),{},{referer:n})),Jr(t)}function Jr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Le({},e),n=Me();return n&&(t.requestHeader=Le(Le({},t.requestHeader),{},{theme:n.toUpperCase()})),t}!function(){function e(t,n){Fe(this,e),je(this,"featureKey",void 0),je(this,"productName",void 0),je(this,"endPageInstance",void 0),je(this,"startPageInstance",void 0),je(this,"isCanceled",!1),je(this,"featureIdentifier",void 0),je(this,"name",void 0),je(this,"startTime",void 0),je(this,"duration",void 0),je(this,"marks",[]),je(this,"spanStarts",new Map),je(this,"spans",[]),je(this,"isSpanContainer",!1),je(this,"basePageTreeId",void 0),je(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}He(e,[{key:"start",value:function(e){this.startPageInstance=e,Gr&&(this.startTime=Vi(),zr&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){Gr&&(this.marks.push({name:e,startTime:Vi()}),zr&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))))}},{key:"spanStart",value:function(e){Gr&&(this.spanStarts.set(e,Vi()),zr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Gr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:Vi()-n}),zr&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")))}}},{key:"deleteSpan",value:function(e){if(this.isClosed)throw new Error("[rum measurement] spans can only be deleted before the feature performance measurement ends.");for(var t=this.spans.length-1;t>=0;t--)if(this.spans[t].name===e)return void this.spans.splice(t,1)}},{key:"end",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isClosed){if(this.isSpanContainer=t,this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));this.endPageInstance=e,Gr&&(this.duration=Vi()-this.startTime,zr&&!this.isSpanContainer&&(performance.mark("LI:".concat(this.featureIdentifier,"-end")),performance.measure("LI:".concat(this.featureIdentifier),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-end"))),this.cleanUp())}}},{key:"cancel",value:function(){this.isCanceled||(this.isCanceled=!0)}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"toEventBody",value:function(){if(Gr){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||wt("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(Gr){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'));if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'));if(this.isSpanContainer&&0===this.spans.length)throw new Error("The span container should have at least one span");for(var e=0,t=["startTime","duration","basePageTreeId"];e<t.length;e++){var n=t[e];if(void 0===this[n])throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is missing "').concat(n,'"'))}}}},{key:"cleanUp",value:function(){this.spanStarts.clear()}}])}();const{ENTER:Zr,ESCAPE:$r}=Q,eo="modal",to="modal__overlay--visible",no="no-scroll",io="top-level-modal-container";class ro{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,r&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),o&&(this._events=o),i&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._pageKey=a,this._shouldHideModal=n,this._shouldMoveToTopContainer=r;this._el.querySelector("[id='".concat("modalNoDismiss","']"))&&(this._isModalNonDismissible=!0),this._focusElement=s,i&&this._outletEls.forEach((e=>{e.addEventListener("click",(()=>this.open()))})),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",(()=>this.close())),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new pe(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(io));if(!e){const e=document.createElement("div");return e.className=io,document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=J(e.key),n=t===Zr&&document.activeElement===this._exitButtonEl;(t===$r||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add(to),this._shouldMoveToTopContainer&&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=>{Wr(e,"ajax",this._pageKey||"".concat(this._el.id))})):(U(this._wrapperEl,"afterOpen"),Promise.resolve());U(this._el,"didNotOpen")}async close(){var e,t;this._events.onBeforeClose&&await(null===(e=this._events)||void 0===e||null===(t=e.onBeforeClose)||void 0===t?void 0:t.call(e,this._wrapperEl));this._overlayEl.classList.remove(to),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),U(this._el,"close"),setTimeout((()=>{var e;(null===(e=this._focusElement)||void 0===e?void 0:e.focus())||this._previouslyFocusedEl.focus()}),50),this._focusTrap.tearDown()}noScroll(){document.body.classList.add(no)}removeNoScroll(){document.body.classList.remove(no)}}class oo{constructor(e){if(!e)throw Error("An element must be provided to SidePanel");this.el=e,this.modalEl=this.el.querySelector(".modal"),this.modal=new ro(this.modalEl,{events:this._events()}),this._onAfterOpen()}_onAfterOpen(){this.modalEl.addEventListener("afterOpen",(e=>{e.target.classList.remove("translate-x-full")}))}_events(){return{onBeforeClose:e=>new Promise((t=>{e.classList.add("translate-x-full"),setTimeout((()=>{t()}),330)}))}}}const so="member-nav-header__search--focused";class ao{constructor(){const e=document.querySelector(".member-nav-menu");if(!e)throw Error("The member header should have a dropdown element");const t=document.querySelector('[data-id="member-nav-header__link-item-me"]');this.collapsibleDropdown=new we(e,{dropdownTriggerEl:t}),this.searchEl=document.querySelector('[data-id="member-nav-header__search"]'),this.searchEl&&(this.searchEl.addEventListener("focusin",(()=>this.searchEl.classList.add(so))),this.searchEl.addEventListener("focusout",(()=>this.searchEl.classList.remove(so)))),this.sidePanelEl=document.querySelector(".sidepanel-menu"),this.sidePanelEl&&(this.sidePanel=new oo(this.sidePanelEl))}}function co(e,t){t=t||"log";if("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)}const lo=/ /g,uo=/[\s\u0000<>"]|%00/,ho=/\\/,po=/([.]|%2e){2}/i;let fo=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function mo(e){let t,n="invalid://";if("string"!=typeof e)return co("jSecure Warning: url must be a string","error"),n;if(t=e.trim(),t.indexOf(" ")>-1&&(co("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(lo,"+")),!fo.test(t))return co("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(uo.test(t))return co("jSecure Error: not valid url character found in url: "+e,"error"),n;let i,r=t.split("?")[0],o=!1;try{i=decodeURI(r)}catch(e){o=!0}return o?(co("jSecure Error: malformed url path detected: "+r),n):ho.test(r)||po.test(r)||po.test(i)?(co("jSecure Error: malicious data found in url path: "+r,"error"),n):e}const go={redirect(e){window&&(window.location.href=e)}};function vo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function yo(e){return e.scrollHeight>e.offsetHeight}const Eo="hidden",bo="aria-hidden";function wo(e,t){const n=O(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function _o(e){So([e])}function To(e){Co([e])}function So(e){wo(e,(e=>{e.classList.add(Eo),e.setAttribute(bo,"true")}))}function Co(e){wo(e,(e=>{e.classList.remove(Eo),e.setAttribute(bo,"false")}))}function Io(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function ko(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Ao(){return document.documentElement.classList.contains("safari")}function Oo(){return document.documentElement.classList.contains("ios")}function Lo(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}function Ro(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=null==n?void 0:n.querySelector(".".concat(e));if(i&&yo(i)){const r=n.querySelector(t);null==r||r.classList.remove("invisible"),null==r||r.addEventListener("click",(()=>{i.classList.remove(e),r.classList.add("invisible")}))}}const No="prev",Po="next",xo="slide-list__list--dragging",Mo="slide-list__indicator-button-container",Do="slide-list__indicator--selected";class Uo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)throw new Error("No element passed in");this._el=e,this._previousButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="prev"]')),this._nextButton=e.querySelector(".".concat('slide-list__nav-button[data-direction="next"]')),this._listEl=e.querySelector(".slide-list__list"),this._dragLimit=this._listEl.offsetWidth,this._items=[...this._listEl.children],this._lock={},this._currentPage=t,this._isRtl="rtl"===document.body.dir,this._isMinimalNav=e.querySelector(".".concat("slide-list__header-nav--minimal")),this._prevTabIndexMap=new Map,this._boundFireScrollEvent=this._fireScrollEvent.bind(this),this._indicatorElement=e.querySelector(".".concat(Mo)),this._indicatorClickHandler=this._handleIndicatorClick.bind(this),this._noMorePreviousContentAlert=this._el.querySelector(".previous-slide-list__a11y-notification"),this._noMoreNextContentAlert=this._el.querySelector(".next-slide-list__a11y-notification"),this._initCalc(),window.addEventListener("resize",this._handleWindowResize.bind(this)),"ontouchstart"in window&&(this._el.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._el.addEventListener("touchmove",this._handleTouchMove.bind(this)),this._el.addEventListener("touchend",this._handleTouchEnd.bind(this))),e.querySelector(".slide-list__nav")&&this._el.addEventListener("click",this._handleScrollAction.bind(this))}next(e){return e=e||1,this._currentPage+e<=this._pageTranslates.length-1&&(this._currentPage+=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}prev(e){return e=e||1,this._currentPage-e>=0&&(this._currentPage-=e,this._updateSlideButtons(),this._updateListPosition(),this._updateFocusableElements(),this._dispatchPageChangeEvent()),this._currentPage}goToItem(e){const t=Number(e)-this._currentPage;if(0===t)return this._currentPage;t<0?this.prev(Math.abs(t)):this.next(t)}_handleIndicatorClick(e){const t=e.target.closest("[data-position]");t&&this.goToItem(t.dataset.position)}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_updateIndicator(){this._indicatorElement&&(this._pageItems.length===this._items.length?(To(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(_o(this._indicatorElement),this._indicatorElement.isActive=!1,this._indicatorElement.removeEventListener("click",this._indicatorClickHandler)))}_initCalc(){this._pageTranslates=this._getPageTranslates(),this._pageTranslates[this._currentPage]||(this._currentPage=0),this._updateIndicator(),this._updateSlideButtons(!0),this._updateListPosition(),this._isResizing=!1,this._updateFocusableElements()}_getPageTranslates(){const e=this._listEl.offsetWidth,t=this._listEl.scrollWidth,n=this._isRtl?e-this._items[0].offsetLeft-this._items[0].offsetWidth:this._items[0].offsetLeft,i=t-e;let r=[0];const o=[new Set],s=[];let a=0;for(let t=0;t<this._items.length;t+=1){const c=r[r.length-1],l=o[r.length-1],u=this._items[t].offsetLeft,d=this._items[t].offsetWidth;let h=Math.abs(this._isRtl?u+d:u),p=Math.abs(this._isRtl?u:u+d);if(s.push(h),this._isRtl&&u>=0)l.add(this._items[t]);else if(0===h&&0===n||0===a)a=p,l.add(this._items[t]);else{if(p>c+e){if(h>=i){o.push(new Set(this._items.slice(t)));break}r.push((this._isRtl?a:h)-n),o.push(new Set([this._items[t]]))}else l.add(this._items[t]);a=p}}return r.push(i),s.forEach(((e,t)=>{e>=i&&o[o.length-1].add(this._items[t])})),this._pageItems=o,r}_updateFocusableElements(){const e=this._pageItems[this._currentPage],t=this._items.filter((t=>!e.has(t)));for(const e of this._items)e.removeAttribute("aria-hidden");for(const[e,t]of this._prevTabIndexMap)null===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t);for(const e of t){e.setAttribute("aria-hidden","true");e.querySelectorAll(oe).forEach((e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")}))}}_handleScrollAction(e){const t=T(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===No?this.prev():n===Po&&this.next())}_fireScrollEvent(){U(window,"scroll"),this._listEl.removeEventListener("transitionend",this._boundFireScrollEvent)}_updateListPosition(){this._updateTranslateXY(this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage],0)}_updateIndicatorButtons(){if(this._indicatorElement&&this._indicatorElement.isActive){const e=this._el.querySelector(".slide-list__indicator-button-container > .slide-list__indicator--selected");e&&(e.classList.remove(Do),e.setAttribute("aria-current",!1));const t=this._el.querySelector(".".concat(Mo," > :nth-child(").concat(this._currentPage+1,")"));t.classList.add(Do),t.setAttribute("aria-current",!0)}}_updateSlideButtons(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._previousButton&&this._nextButton){if(this._previousButton.disabled=!1,this._nextButton.disabled=!1,!this._pageTranslates[1]||this._pageTranslates[1]<0)return this._previousButton.disabled=!0,void(this._nextButton.disabled=!0);0===this._currentPage&&(this._previousButton.disabled=!0,this._setNoMoreContentAlert(this._noMorePreviousContentAlert,e)),this._currentPage!==this._pageTranslates.length-1&&0!==this._pageTranslates.length||(this._nextButton.disabled=!0,this._setNoMoreContentAlert(this._noMoreNextContentAlert,e))}this._updateIndicatorButtons()}_setNoMoreContentAlert(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&e&&(e.classList.remove("hidden"),setTimeout((()=>{e.classList.add("hidden")}),1e3))}_resetTouchEvents(){this._dragging=!1,this._dragCanceled=!1,this._listEl.classList.remove(xo),this._lock.left=this._isRtl?this._currentPage===this._pageTranslates.length-1:0===this._currentPage,this._lock.right=this._isRtl?0===this._currentPage:this._currentPage===this._pageTranslates.length-1,this._dragThresholdMet=!1,this._t={current:{x:0,y:0}}}_handleTouchStart(e){this._resetTouchEvents(),this._t.start=this._getEventPosition(e),this._dragging=!0,this._listEl.classList.add(xo)}_handleTouchMove(e){if(!this._dragging||this._dragCanceled)return;let t=this._getEventPosition(e);this._t.current={x:this._t.start.x-t.x,y:this._t.start.y-t.y},this._canDrag()?(this._dragThresholdMet=!0,e.preventDefault(),this._lock.left&&this._t.current.x<0?this._t.current.x=this._t.current.x*-this._dragLimit/(this._t.current.x-this._dragLimit):this._lock.right&&this._t.current.x>0&&(this._t.current.x=this._t.current.x*this._dragLimit/(this._t.current.x+this._dragLimit)),this._updateTranslateXY((this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage])-this._t.current.x)):this._isVerticalScrolling()&&(this._dragCanceled=!0)}_handleTouchEnd(){this._dragging&&(!this._dragCanceled&&Math.abs(this._t.current.x)>20&&(this._t.current.x>0&&!this._lock.right?this._isRtl?this._currentPage--:this._currentPage++:this._t.current.x<0&&!this._lock.left&&(this._isRtl?this._currentPage++:this._currentPage--),this._dispatchPageChangeEvent()),this._resetTouchEvents(),this._updateSlideButtons(),this._updateListPosition())}_getEventPosition(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}_isVerticalScrolling(){return Math.abs(this._t.current.x)<Math.abs(this._t.current.y)&&Math.abs(this._t.current.y)>10}_canDrag(){return this._dragThresholdMet||Math.abs(this._t.current.x)>Math.abs(this._t.current.y)&&Math.abs(this._t.current.x)>10}_updateTranslateXY(e,t){this._listEl.style.transform="translate3d(".concat(e||0,"px, ").concat(t||0,"px, 0px)")}_dispatchPageChangeEvent(){U(this._el,"pagechange",{pageNumber:this._currentPage})}}var Bo=Object.hasOwnProperty,Fo=Object.setPrototypeOf,qo=Object.isFrozen,Ho=Object.getPrototypeOf,jo=Object.getOwnPropertyDescriptor,Go=Object.freeze,zo=Object.seal,Wo=Object.create,Ko="undefined"!=typeof Reflect&&Reflect,Vo=Ko.apply,Yo=Ko.construct;Vo||(Vo=function(e,t,n){return e.apply(t,n)}),Go||(Go=function(e){return e}),zo||(zo=function(e){return e}),Yo||(Yo=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var Qo,Xo=ss(Array.prototype.forEach),Jo=ss(Array.prototype.pop),Zo=ss(Array.prototype.push),$o=ss(String.prototype.toLowerCase),es=ss(String.prototype.match),ts=ss(String.prototype.replace),ns=ss(String.prototype.indexOf),is=ss(String.prototype.trim),rs=ss(RegExp.prototype.test),os=(Qo=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yo(Qo,t)});function ss(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Vo(e,t,i)}}function as(e,t){Fo&&Fo(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=$o(i);r!==i&&(qo(t)||(t[n]=r),i=r)}e[i]=!0}return e}function cs(e){var t=Wo(null),n=void 0;for(n in e)Vo(Bo,e,[n])&&(t[n]=e[n]);return t}function ls(e,t){for(;null!==e;){var n=jo(e,t);if(n){if(n.get)return ss(n.get);if("function"==typeof n.value)return ss(n.value)}e=Ho(e)}return function(e){return console.warn("fallback value for",e),null}}var us=Go(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ds=Go(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),hs=Go(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ps=Go(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fs=Go(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),ms=Go(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gs=Go(["#text"]),vs=Go(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),ys=Go(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Es=Go(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),bs=Go(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ws=zo(/\{\{[\s\S]*|[\s\S]*\}\}/gm),_s=zo(/<%[\s\S]*|[\s\S]*%>/gm),Ts=zo(/^data-[\-\w.\u00B7-\uFFFF]/),Ss=zo(/^aria-[\-\w]+$/),Cs=zo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Is=zo(/^(?:\w+script|data):/i),ks=zo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),As="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Os(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Ls=function(){return"undefined"==typeof window?null:window},Rs=function(e,t){if("object"!==(void 0===e?"undefined":As(e))||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var Ns=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ls(),n=function(t){return e(t)};if(n.version="2.3.5",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,g=ls(m,"cloneNode"),v=ls(m,"nextSibling"),y=ls(m,"childNodes"),E=ls(m,"parentNode");if("function"==typeof s){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var w=Rs(f,i),_=w?w.createHTML(""):"",T=r,S=T.implementation,C=T.createNodeIterator,I=T.createDocumentFragment,k=T.getElementsByTagName,A=i.importNode,O={};try{O=cs(r).documentMode?r.documentMode:{}}catch(e){}var L={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==O;var R=ws,N=_s,P=Ts,x=Ss,M=Is,D=ks,U=Cs,B=null,F=as({},[].concat(Os(us),Os(ds),Os(hs),Os(fs),Os(gs))),q=null,H=as({},[].concat(Os(vs),Os(ys),Os(Es),Os(bs))),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,z=null,W=!0,K=!0,V=!1,Y=!1,Q=!1,X=!1,J=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=as({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ce=as({},["audio","video","img","source","image","track"]),le=null,ue=as({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ge=void 0,ve=["application/xhtml+xml","text/html"],ye="text/html",Ee=void 0,be=null,we=r.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":As(e))||(e={}),e=cs(e),B="ALLOWED_TAGS"in e?as({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?as({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?as(cs(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?as(cs(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?as({},e.FORBID_CONTENTS):se,G="FORBID_TAGS"in e?as({},e.FORBID_TAGS):{},z="FORBID_ATTR"in e?as({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,Q=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge=ge=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ge?function(e){return e}:$o,Y&&(K=!1),$&&(Z=!0),re&&(B=as({},[].concat(Os(gs))),q=[],!0===re.html&&(as(B,us),as(q,vs)),!0===re.svg&&(as(B,ds),as(q,ys),as(q,bs)),!0===re.svgFilters&&(as(B,hs),as(q,ys),as(q,bs)),!0===re.mathMl&&(as(B,fs),as(q,Es),as(q,bs))),e.ADD_TAGS&&(B===F&&(B=cs(B)),as(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=cs(q)),as(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&as(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=cs(oe)),as(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),Q&&as(B,["html","head","body"]),B.table&&(as(B,["tbody"]),delete G.tbody),Go&&Go(e),be=e)},Se=as({},["mi","mo","mn","ms","mtext"]),Ce=as({},["foreignobject","desc","title","annotation-xml"]),Ie=as({},ds);as(Ie,hs),as(Ie,ps);var ke=as({},fs);as(ke,ms);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=$o(e.tagName),i=$o(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[i]:Boolean(ke[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Ce[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=as({},["title","style","font","a","script"]);return!ke[n]&&(r[n]||!Ie[n])}return!1},Oe=function(e){Zo(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Le=function(e,t){try{Zo(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Zo(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var i=es(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),fe===pe?k.call(t,Q?"html":"body")[0]:Q?t.documentElement:s},Ne=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},xe=function(e){return"object"===(void 0===a?"undefined":As(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":As(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){L[e]&&Xo(L[e],(function(e){e.call(n,t,i,be)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Oe(e),!0;if(es(e.nodeName,/[\u0080-\uFFFF]/))return Oe(e),!0;var i=Ee(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:B}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&rs(/<[/\w]/g,e.innerHTML)&&rs(/<[/\w]/g,e.textContent))return Oe(e),!0;if("select"===i&&rs(/<template/i,e.innerHTML))return Oe(e),!0;if(!B[i]||G[i]){if(ne&&!oe[i]){var r=E(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(g(o[s],!0),v(e))}if(!G[i]&&Be(i)){if(j.tagNameCheck instanceof RegExp&&rs(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return Oe(e),!0}return e instanceof c&&!Ae(e)?(Oe(e),!0):"noscript"!==i&&"noembed"!==i||!rs(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=ts(t,R," "),t=ts(t,N," "),e.textContent!==t&&(Zo(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in we))return!1;if(K&&!z[t]&&rs(P,t));else if(W&&rs(x,t));else if(!q[t]||z[t]){if(!(Be(e)&&(j.tagNameCheck instanceof RegExp&&rs(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&rs(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&rs(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(rs(U,ts(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ns(n,"data:")||!ae[e]){if(V&&!rs(M,ts(n,D,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},Fe=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;Me("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(i=is(t.value),r=Ee(l),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Le(l,e),a.keepAttr))if(rs(/\/>/i,i))Le(l,e);else{Y&&(i=ts(i,R," "),i=ts(i,N," "));var d=Ee(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),Jo(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,i=Ne(t);for(Me("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Me("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof o&&e(n.content),Fe(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var s=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw os("toString is not a function");if("string"!=typeof(e=e.toString()))throw os("dirty is not a string, aborting")}if(!n.isSupported){if("object"===As(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(xe(e))return t.toStaticHTML(e.outerHTML)}return e}if(X||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=Ee(e.nodeName);if(!B[h]||G[h])throw os("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Re("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Y&&!Q&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(s=Re(e)))return Z?null:ee?_:""}s&&J&&Oe(s.firstChild);for(var p=Ne(ie?e:s);l=p.nextNode();)3===l.nodeType&&l===u||De(l)||(l.content instanceof o&&qe(l.content),Fe(l),u=l);if(u=null,ie)return e;if(Z){if($)for(d=I.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=Q?s.outerHTML:s.innerHTML;return Y&&(f=ts(f,R," "),f=ts(f,N," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),X=!0},n.clearConfig=function(){be=null,X=!1},n.isValidAttribute=function(e,t,n){be||Te({});var i=Ee(e),r=Ee(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(L[e]=L[e]||[],Zo(L[e],t))},n.removeHook=function(e){L[e]&&Jo(L[e])},n.removeHooks=function(e){L[e]&&(L[e]=[])},n.removeAllHooks=function(){L={}},n}(),Ps=Ns;const xs={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Ms(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Ds(null,e,t);return n.innerHTML}function Ds(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Le({},xs);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Ps.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Us=Object.freeze({__proto__:null,sanitizedMarkupOptions:xs,getSanitizedMarkup:Ms,setSanitizedMarkup:Ds}),Bs="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Fs=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",qs=["b","del","em","i","s","strong","sub","sup"],Hs=qs.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"]),js=[Bs,"alt|checked|selected|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 Gs(){}var zs,Ws,Ks=(Ws=/[&<>"'\u0000\\=]/g,zs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Ws,(function(e){return zs[e]}))}),Vs=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(r){return null==r?null:(r+"").replace(n,(function(n,r,o,s){return r?(a=r,i.hasOwnProperty(a)?i[a]:(e.innerHTML="&"+a+";",c=e[Fs],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var Ys=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Qs(e){return/[<&]/.test(e)}var Xs,Js=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)},Zs="[ \t\r\n]*";function $s(e){e=Ys(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",Js(e,(function(e,s){t=e.tags||Hs,n=e.attrs||js,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=Zs,o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",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));)[^'\"<>]*\\"+ ++r),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function ea(e){return $s({tags:e=e||Hs,checkUrlAttrs:!0})}function ta(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!ea(n).test(e):i?!ta.R_UNSAFE_CUSTOM_ELEMENT.test(e):!ta.R_UNSAFE_HTML.test(e)}function na(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function ia(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof Gs||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Ks(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return Qs(i)&&!ta(i,n)&&(i=na(i),co("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ra(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}ta.R_UNSAFE_HTML=ea(),ta.R_UNSAFE_CUSTOM_ELEMENT=$s([{tags:Hs,checkUrlAttrs:!0},{tags:[(Xs={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Bs,Xs.attrs].join("|"),checkUrlAttrs:!1}]);var oa={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,"",""]};oa.optgroup=oa.option,oa.tbody=oa.tfoot=oa.colgroup=oa.caption=oa.thead,oa.th=oa.td;var sa=/<([\w:]+)/;function aa(e,t){var n,i,r,o,s,a,c,l=t.createDocumentFragment(),u=[];for(s=0,c=e.length;s<c;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(sa.exec(o)||["",""])[1].toLowerCase(),ua(r,(i=oa[n]||oa._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ra(u,r.childNodes),(r=l.firstChild).textContent=""}else ra(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var ca=ia,la=ia;function ua(e,t,n){var i=ia(t,n);return Qs(i)?e.innerHTML=i:e[Fs]=i,i}function da(e,t){if(!(this instanceof da))return new da(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}da.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Gs,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(ta(e,this._options)||(n=e,e=na(e),co("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var ha={ALLOWED_TAGS:Hs,FORMATTING_TAGS:qs,htmlEncode:Ks,htmlUnencode:Vs,log:co,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof da?r:Ks(r))})),la(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=aa([e],t);else{if(!Ys(e))return e;n=aa(e,t)}return ra([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:ca,reEncode:function(e){return Ks(Vs(e))},_redirector:go,redirect:function(e){const t=mo(e);t===e&&go.redirect(t)},sanitizeHTML:la,sanitizeUrl:mo,setElementContent:ua,text:function(e){return co("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Ks(e)},unsafe:function(e){return e},UnsafeString:da};function pa(e){if(e instanceof HTMLElement)if(document.documentElement.classList.contains("ios")){const t=10,n=10;e.blur();let i=0;const r=window.setInterval((function(){e.focus(),i>=n&&window.clearInterval(r),i++}),t)}else e.focus()}const fa="toast--hidden",ma=".toast",ga=".toast__message",va=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class ya{constructor(){let{removeToastCallback:e=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.getElementById("toasts");if(!t)throw new Error("No toasts element");this._el=t,this._position=t.getAttribute("type"),this.removeToastCallback=e,this.bindEvents()}trigger(e,t,n,i){if(!e||!Object.values(va).includes(e))throw new Error("Valid type not specified: type must be caution, error, gdpr, notify or success");if(!t)throw new Error("No message specified");const r=n?"".concat(n,"_toast-").concat(e):"toast-".concat(e),o=this._createToastEl(e,t,r,i);return this._addToast(o)}clearAllToasts(){let e=this._el.querySelectorAll(ma);Array.from(e).forEach((e=>{this._removeToast(e)}))}bindEvents(){this._el.addEventListener("click",(e=>{const t=T(e.target,".toast__dismiss-btn");if(t){const e=T(t,ma);e&&this._removeToast(e)}}))}_isValidCtaMetadata(e){return["url","trk","text"].every((t=>e.hasOwnProperty(t)))}_createToastEl(e,t,n,i){const r=document.querySelector("#toast-template").content.firstElementChild.cloneNode(!0),o=document.querySelector("#toast-icon-".concat(e)).content.firstElementChild.cloneNode(!0);if(!r||!o)throw new Error("Toast templates are missing");r.classList.add("toast--".concat(e)),r.setAttribute("type",e);const s=r.querySelector(ga);s.insertBefore(o,s.firstElementChild);r.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name","".concat(n,"_dismiss"));const a=r.querySelector(".toast__message-content");let c="text-color-text-neutral";if(e===va.CAUTION?c="text-color-text-caution":e===va.ERROR?c="text-color-text-negative":e===va.SUCCESS&&(c="text-color-text-positive"),a.classList.add(c),Ds(a,t),i&&this._isValidCtaMetadata(i)){const e=r.querySelector(".toast__message-content-container"),t=document.querySelector("#toast-cta").content.firstElementChild.cloneNode(!0),n=i.target||"_blank";t.setAttribute("href",ha.sanitizeUrl(P(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(c),e.append(t)}return r}_addToast(e){this._el.appendChild(e);const t=this._el.querySelector(ga);return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove(fa),pa(t)}),500),e}_removeToast(e){let t=this._el;e.classList.add(fa),setTimeout((()=>{e.remove(),this._hasToast()||t.classList.add("invisible"),this.removeToastCallback()}),500)}_hasToast(){return[...this._el.children].some((e=>"template"!==e.tagName.toLowerCase()))}_refreshLazyLoader(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,(e=>{e.refreshLoader()}))}}Re(ya,"TOAST_TYPES",va);const Ea={};function ba(e){const t=document.getElementById(e);if(!t&&void 0!==Ea[e])return Ea[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),Ea[e]=null,Ea[e];let n;for(const e of t.childNodes)try{if(e.nodeType===Node.COMMENT_NODE){n=JSON.parse(e.nodeValue);break}}catch(e){}return void 0===n?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(Ea[e]=n,t.parentNode.removeChild(t),Ea[e])}function wa(e,t){const n=document.getElementById(e),i=document.createComment(JSON.stringify(t));if(n)n.textContent="",n.appendChild(i);else{const t=document.createElement("code");t.setAttribute("id",e),t.style.display="none",t.appendChild(i),document.body.appendChild(t)}}const _a="session_redirect",Ta={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},Sa=Object.keys(Ta).map((e=>Ta[e]));class Ca{constructor(e){let{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document,shareTriggerElement:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");this.navigator=t,this.window=n,this.document=i,this.shareTriggerElement=r,this.el=e,this._encodedShareMessage=this.window.encodeURIComponent(this.el.getAttribute("data-share-message"))||"",this._nonEncodedShareUrl=this.el.getAttribute("data-share-url")||this.window.location.href,this._encodedShareUrl=this._nonEncodedShareUrl&&this.window.encodeURIComponent(this._nonEncodedShareUrl)}init(e,t){e.addEventListener("click",(e=>{let{target:n}=e;const i=n.classList.contains(t)?n:T(n,".".concat(t));i&&this.share(i.dataset.shareService)}))}_getServiceUrl(e){this.checkAndUpdateUtm(e);const t={linkedin:"https://www.".concat(K(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)};return ba("disableLinkedinShareRedirectLink")&&"linkedin"===e?ba("isGuest")?(this.window.location.href=this._updateSignInUrlWithParams(ba("signInUrl")),""):"":t[e]||""}_updateSignInUrlWithParams(e){const t=new URL(e),n=t.searchParams,i=x(n.get(_a),"openShareModal",!0);return n.set(_a,i),t.toString()}share(e){if(Sa.includes(e)){const r=this._nonEncodedShareUrl||this.window.location.href;if("copy"===e)try{this.navigator.clipboard?(this.checkAndUpdateUtm(e),this.navigator.clipboard.writeText(this._nonEncodedShareUrl),this.displayToast({url:r})):this.displayToast({showError:!0})}catch(e){this.displayToast({showError:!0})}finally{var t,n,i;null===(t=this.collapsibleDropdown)||void 0===t||null===(n=t.dropdownContentEl)||void 0===n||null===(i=n.classList)||void 0===i||i.add("hidden")}else{const t=this._getServiceUrl(e,r);if(!t)return;this.window.open(t,e,"height=600,width=1000")}}}displayToast(e){let{showError:t,url:n}=e;if(this.document.getElementById("toasts")){this.collapsibleDropdown.shouldReturnFocusToTrigger(!1),this.collapsibleDropdown.close();const e="social-share",i=new ya({removeToastCallback:this.removeToastCallback.bind(this)});i.clearAllToasts();const r=t?"error":"success";i.trigger(r,ba("i18n_copy_cta_message_".concat(r)),e,{text:"View",url:n||this.window.location.href,trk:e})}}checkAndUpdateUtm(e){if(this._nonEncodedShareUrl.includes("utm_campaign")||"linkedin"===e)return;["utm_source","utm_content","utm_medium"].some((e=>this._nonEncodedShareUrl.includes(e)))&&(this._nonEncodedShareUrl="".concat(this._nonEncodedShareUrl,"&utm_campaign=").concat(e),this._encodedShareUrl=this.window.encodeURIComponent(this._nonEncodedShareUrl))}removeToastCallback(){var e;this.collapsibleDropdown.shouldReturnFocusToTrigger(),null===(e=this.shareTriggerElement)||void 0===e||e.focus()}}class Ia extends Ca{constructor(e){let{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");const r=e.querySelector(".social-share__button");super(e,{globalNavigator:t,globalWindow:n,globalDocument:i,shareTriggerElement:r}),this.socialShareButton=r,this.dropdown=this.el.querySelector(".collapsible-dropdown__list"),this.itemClassName="".concat("social-share","__item"),this.collapsibleDropdown=new we(e,{dropdownTriggerEl:this.socialShareButton}),super.init(this.dropdown,this.itemClassName)}}const ka=["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(ka,"i");class Aa{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:i=!1,isBottom:r=!0,exposeStickyState:o=!1,marginApplied:s=!1,debounceDelay:a=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&i)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=n,this.hideOnScrollDown=i,this.isBottom=r,this.exposeStickyState=o,this._scrollListener=M(this._onScroll.bind(this),a),this.marginApplied=s,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),S((()=>{this.originalMarginTop=parseInt(window.getComputedStyle(document.body).marginTop)||0,this.originalMarginBottom=parseInt(window.getComputedStyle(document.body).marginBottom)||0,this._setSpacing(!0),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show()}))}reactivate(){this._setupResizeListener(),this._setSpacing()}deactivate(){this._removeResizeListener(),this._resetSpacing()}_setupResizeListener(){me()||window.addEventListener("resize",this._setSpacingBound)}_removeResizeListener(){window.removeEventListener("resize",this._setSpacingBound)}_doesPageHaveEnoughScroll(){return document.body.scrollHeight>window.innerHeight+this.scrollThreshold}_setSpacing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isBottom?this._setBottomSpacing():this.hideOnScrollBack||this.hideOnScrollDown||(this._setTopSpacing(),e&&this.show())}_resetSpacing(){this.marginApplied?(document.body.style.marginTop="0px",document.body.style.marginBottom="0px"):(document.body.style.marginTop="".concat(this.originalMarginTop,"px"),document.body.style.marginBottom="".concat(this.originalMarginBottom,"px"))}_setBottomSpacing(){let e=this.el.clientHeight;document.body.style.marginBottom&&!this.marginApplied&&(e+=this.originalMarginBottom),document.body.style.marginBottom="".concat(e,"px")}_setTopSpacing(){let e=this.el.clientHeight;document.body.style.marginTop&&!this.marginApplied&&(e+=this.originalMarginTop),document.body.style.marginTop="".concat(e,"px")}show(){this.el.classList.add("show"),U(this.el,"show")}hide(){this.el.classList.remove("show"),U(this.el,"hide")}_onScroll(){const e=window.pageYOffset;e>this.scrollThreshold?(this.hideOnScrollBack||this.hideOnScrollDown||this.exposeStickyState||window.removeEventListener("scroll",this._scrollListener),this.hideOnScrollDown?this.hide():this.show(),this.exposeStickyState&&this.el.classList.add("stuck")):(this.hideOnScrollBack&&this.hide(),this.exposeStickyState&&this.el.classList.remove("stuck")),this.previousScrollPosition>e&&this.hideOnScrollDown&&this.show(),this.previousScrollPosition=e}}new Uint8Array(16);const Oa=[];for(let e=0;e<256;++e)Oa.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const La="tooltip__popup";"".concat(La,"--show");const Ra="loader--absolute",Na="loader--show",Pa="loader--full-screen",xa="no-scroll",Ma="loader-wrapper";class Da{constructor(e){let{wrapperEl:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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(Ra),window.addEventListener("pagehide",(e=>{let{persisted:t}=e;t&&this.hide()}))}show(){this.el.classList.add(Na),this.el.classList.contains(Pa)&&document.body.classList.add(xa),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Ma)}hide(){this.el.classList.remove(Na),document.body.classList.remove(xa),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Ma)}}const Ua="dismissable-input",Ba="dismissable-input--focus",Fa="dismissable-input__button",qa="dismissable-input__button--show",Ha="dismissable-input__input";class ja{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Ha)),this._dismissButtonEl=this.el.querySelector(".".concat(Fa)),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(Ba),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(qa)}_showDismissButton(){this._dismissButtonEl.classList.add(qa)}_onInputBlur(){this.el.classList.remove(Ba)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),U(this.el,"clear")}}const Ga={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"},za="i18n_aria_live_text_no-suggestions",Wa="i18n_aria_live_text_one-suggestion",Ka="i18n_aria_live_text_multiple-suggestions",Va=500;class Ya{constructor(e,t){let{createDismissableInput:n,elementClasses:i=Ga,generateApiUrl:r,liveTextEl:o,liveTextClearTime:s=Va,onSelect:a,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:u,dropdownListEl:d,isFullPageTypeahead:h,closeOnEscape:p=!1}=t;this.el=e,this._liveTextClearTime=s,this._elementClasses=i,this._closeOnEscape=p,this._input=l||this.el.querySelector(".".concat(Ha)),this._dropdownContainerEl=u||this.el.querySelector(".".concat(this._elementClasses.dropdown)),this._dropdownListEl=d||this.el.querySelector(".".concat(this._elementClasses.dropdownList)),this._listId=this._dropdownListEl.id,this._generateApiUrl=r,this._onSelect=a,this._onInput=c,this._typeaheadItemTemplate=this.el.querySelector(".".concat(this._elementClasses.template)),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=o||this.el.querySelector(".".concat(this._elementClasses.liveText)),n&&(this.dismissableInput=new ja(this.el)),this.isFullPageTypeahead=h,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=M(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.isFullPageTypeahead&&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.isFullPageTypeahead&&this._input.removeEventListener("blur",this.hideListHandler),this._dropdownListEl.addEventListener("mousedown",this.checkForListItemSelectHandler)}_isListActive(){return this._input.getAttribute("aria-owns")===this._listId&&Boolean(this._input.getAttribute("aria-expanded"))}_clickOutsideToCloseHandler(e){e.target!==this._input&&this._hideList()}_onKeyDown(e){if(!this._isListActive())return;switch(J(e.key)){case Q.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case Q.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case Q.ESCAPE:this._closeOnEscape&&this._hideList();break;case Q.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 _e(this._generateApiUrl(e),{sendCookies:!1}).then((e=>e&&JSON.parse(e.responseText)||[]))}_getItemEl(){return document.importNode(this._typeaheadItemTemplate.content,!0)}_appendResults(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._hideList(),e.forEach(((e,t)=>{const n=this._getItemEl(),i=n.querySelector(".".concat(this._elementClasses.listItem)),r=i.querySelector(".".concat(this._elementClasses.dropdownText));i.id="".concat(this._input.name,"-").concat(t+1),r.textContent=e.displayName,r.dataset.id=e.id,this._dropdownListEl.appendChild(n)})),this._dropdownListItemEls=O(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))||t.closest(".".concat(this._elementClasses.dropdownText));n&&this.el.contains(n)&&this._updateInputTo(n,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=ba(za),this._liveTextOneSuggestion=ba(Wa),this._liveTextMultipleSuggestions=ba(Ka)}_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._input.setAttribute("aria-expanded",e),e&&(this._input.setAttribute("aria-owns",this._listId),this._input.setAttribute("aria-controls",this._listId))}}const Qa="no-scroll",Xa="fixed",Ja="show-on-mobile",Za="hide-on-mobile",$a="isExpanded";class ec{constructor(e,t,n){let{onCloseExpandedSearch:i=(e=>e),isMobileDevice:r=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(this.el=e,this.expandedEl=t,this.placeholderEl=n,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=i,r&&(this.focusTrap=new pe(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove(Ja),this.placeholderEl.classList.add(Za),this.expandedEl.classList.add($a),document.body.classList.add(Qa),this.isIOSDevice&&(document.body.classList.add(Xa),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($a),this.placeholderEl.classList.remove(Za),this.placeholderEl.classList.add(Ja),document.body.classList.remove(Qa),this.isIOSDevice&&(document.body.classList.remove(Xa),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,r="INPUT"===n.tagName;i&&!r?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;T(t,".".concat(Ga.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains($a)&&vo()){return!this.expandedEl.contains(document.activeElement)}return!1}}class tc extends Ya{constructor(e,t){let{generateApiUrl:n,liveTextEl:i,onSelect:r,onInput:o,isFullPageTypeahead:s}=t;super(e,{createDismissableInput:!0,generateApiUrl:n,liveTextEl:i,onSelect:r,onInput:o,isFullPageTypeahead:s})}}const nc={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"},ic="i18n_aria_live_text_recent-searches-one-suggestion",rc="i18n_aria_live_text_recent-searches-multiple-suggestions",oc="i18n_aria_live_text_recent-searches-cleared";class sc extends Ya{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:i}=t;if(super(e,{liveTextEl:n,elementClasses:nc,liveTextClearTime:1e3,closeOnEscape:!0}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(nc.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=O(this.dropdownContainerEl.querySelectorAll(".".concat(nc.listItem))),this._clearBtnItem=e.querySelector(".".concat(nc.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(Fa))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(nc.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(nc.listItemLink));n?this._redirect(n):t.classList.contains(nc.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(nc.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=ba(ic),this._liveTextMultipleSuggestions=ba(rc),this._liveTextClearedSuggestions=ba(oc)}_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(){_e(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then((()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()})).catch((e=>{throw e}))}}const ac="tab-selected",cc="hidden",lc="switcher-tabs__button",uc="switcher-tabs__tab";class dc{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 we(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(cc),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.add(cc)}_handleSwitcherClick(e){if(!e.target.classList.contains(lc)&&!e.target.classList.contains(uc))return;const t=T(e.target,".".concat(uc)),n=t.querySelector(".".concat(lc)).getAttribute("data-switcher-type");n&&t&&this.currentType!==n?(this.collapsibleSwitcher.collapsible.currentListItem=t,this._switchTo(n,t)):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(ac));if(T(t,".".concat(uc))&&(t.setAttribute("aria-selected","false"),t.classList.remove(ac)),e.classList.contains(uc)){const t=e.querySelector(".".concat(lc));t.classList.add(ac),t.setAttribute("aria-selected","true")}}_updatePlaceholderText(){let e=this.el.querySelector(".".concat(ac));e&&(this.dropdownPlaceholderText.textContent=e.textContent)}}class hc{constructor(e){let{typeaheadApiBaseUrl:t,clearRecentSearchApiBaseUrl:n,shouldSearchOnSelect:i=!0,onCloseExpandedSearch:r,includeSwitcher:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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=i,this.placeholderEl=this.el.querySelector(".".concat("search-bar__placeholder"));const a=!!this.el.querySelector(".".concat("search-bar__mobile-wrapper"));if(this.baseSearchBarsMap=O(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce(((e,t)=>{const n=new ec(t,this.el,this.placeholderEl,{onCloseExpandedSearch:r,isMobileDevice:a});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 tc(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(nc.dropdown))&&new sc(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s}),new tc(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(Ua,".search-input"))).forEach((e=>{new ja(e);e.querySelector(".".concat(nc.dropdown))&&new sc(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s})})),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat(Ua))).forEach((e=>new ja(e)));o&&(this.switcher=new dc(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(){const e=this.el.querySelector(".keywords-typeahead-input input");null!=e&&e.validity.valueMissing?e.reportValidity():this.baseSearchBarFormEl&&this.baseSearchBarFormEl.submit()}_addCustomErrorStateHandler(){const e=this.el.querySelector(".keywords-typeahead-input input"),t=this.el.querySelector(".keywords-typeahead-input-helper");null==e||e.addEventListener("invalid",(n=>{n.preventDefault(),this.baseSearchBarFormEl.classList.add("input-error"),null==t||t.classList.remove("hidden"),e.focus()}))}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(j(document),"-").concat(t)})}))}))}}const pc="/mwlite/badge-counts";const fc="overlay_";class mc extends ro{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,pushState:r=!0,shouldMoveToTopContainer:o=!0,focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into mobile web modal");super(e,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:o,focusElement:s,pageKey:a}),this.pushState=r,this.hashChangeHandlerRef=this._hashChangeHandler.bind(this)}historyBackClickHandler(){this.close({enableHistoryBack:!1})}_hashChangeHandler(e){const t=e.oldURL&&e.oldURL.split("#")[1];t&&t==="".concat(fc).concat(this._el.id)&&this.historyBackClickHandler()}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.open(e),this._shouldHideModal()||(this.pushState&&history.pushState(this._el.id,"show modal","#".concat(fc).concat(this._el.id)),window.addEventListener("hashchange",this.hashChangeHandlerRef))}close(){let{enableHistoryBack:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.removeEventListener("hashchange",this.hashChangeHandlerRef),this.pushState&&e&&(window.history.replaceState({},document.title,window.location.href.split("#")[0]),history.back()),super.close()}}document.querySelector.bind(document);String.fromCharCode(32);j(document);String.fromCharCode(32);function gc(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e||0===e.trim().length};return e.errorMessageSuffix="error_empty",e}function vc(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function yc(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}gc(),vc(3),yc(128),gc(),vc(6),yc(400);var Ec=window||t.g;const bc=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/,wc="utag_data",_c="tealium";function Tc(){const e=Ec.location?Ec.location.hostname:"";return bc.test(e)}function Sc(){return Tc()?Cc()?"platform.linkedin.cn":"platform.linkedin.com":Cc()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function Cc(){const e=Ec.location?Ec.location.hostname:"";return/\.cn$/.test(e)}function Ic(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.");const r=new Ec.XMLHttpRequest;r.withCredentials=i,r.open("GET",e,!0),r.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},r.send()}function kc(e){return function(){let e=_();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function Ac(e){return function(){let e=_();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function Oc(e){return function(){let e=_();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function Lc(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 r=t[i];e[r]=n[r]}}}return e}function Rc(e){const t=new Ec.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function Nc(){return/utagdb=[^;]+/.test(Ec.document.cookie)}let Pc;const xc={},Mc={};function Dc(){return"https://".concat(Tc()?Cc()?"www.linkedin.cn":"www.linkedin.com":Cc()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function Uc(){return function(e){let t=Lc({},e);return t["compliance.isAdvertisingOptIn"]=kc(t),t["compliance.isAnalyticsAndResearchOptIn"]=Ac(),t["compliance.isFunctionalOptIn"]=Oc(),t}(xc)}function Bc(e){if(!Mc[e]){const t=function(e){return"https://".concat(Sc(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise(((e,n)=>{Ic(t,(t=>{e(JSON.parse(t))}),(e=>{n(e)}),!1)}));Mc[e]=n}return Mc[e]}Ec[wc]||(Ec[wc]={});const Fc="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let qc;function Hc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat(Sc(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(Rc(t))),n}function jc(){return function(){if(void 0===qc&&Fc){const e=Ec.document.cookie.match(/litms_utag_override=([^;]+)/);qc=e?e[1]:""}return qc}().length>0}function Gc(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Lc({},t,Uc());e.view(r),Nc()&&Ec.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function zc(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Lc({},t,Uc());e.link(r),Nc()&&Ec.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function Wc(e,t,n){if(function(e){Ec.utag=e}(e),t instanceof Array&&t.length>0){const i=t.length;for(let r=0;r<i;r++){const i=t.shift();i.isControlInteraction?zc(e,i.data,i.callback,n):Gc(e,i.data,i.callback,n)}}}function Kc(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 Vc(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat(_c,",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}function Yc(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:Vc(e,t)}}(e,t)));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Ec.utag_cfg_ovrd=Ec.utag_cfg_ovrd||{},Ec.trackingEventDebugData=Ec.trackingEventDebugData||[],Ec.utag_cfg_ovrd.noview=!0,Ec.utag_cfg_ovrd.nocookie=!0;const Qc=Fc&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Ec.navigator.userAgent),Xc={};let Jc,Zc,$c,el={};class tl{constructor(){let{profileName:e,tracking2Instance:t,enableAllowlisting:n=!1,cacheBusterInterval:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isInitialized=!1,this.isAllowlistingEnabled=!1,this._allowlistReadyPromise=Promise.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.allowlist={pageKey:{},controlUrn:{}},this.tracking2Instance=t,this.profileName=e,this.enableAllowlisting=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.enableAllowlisting?(this.isAllowlistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._allowlistReadyPromise=Bc(this.profileName).then((e=>this._processAllowlistResult(e))).catch((e=>console.error("Unable to retrieve allowlists for profile : ".concat(this.profileName),e)))):this._loadContainerTag(e,t)})),this.profileName&&(Xc[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach((t=>this.addValuesToAllowlist(t,e[t])))}_loadContainerTag(e,t){void 0!==Ec.utag&&(Ec.utag=void 0),void 0!==Ec[wc]&&(Ec[wc]=void 0);const n=function(){if(!Pc){const e=Dc();Pc=new Promise(((t,n)=>{Ic(e,(e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}}),(e=>{n(e)}))}))}return Pc}().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=>{xc[n+t]=e[t]}))}(e[t],t)}))})).catch((e=>{console.error("Unable to get user settings while calling loading container tag",e)})),i=(r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments.length>1?arguments[1]:void 0;return jc()?qc:Hc(e,t)}(this.profileName,this.cacheBusterInterval),new Promise((e=>{const t=Ec.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,Ec.document.getElementsByTagName("head")[0].appendChild(t)})));var r;Promise.all([n,i]).then((()=>{this.isContainerTagLoaded=!0,this._uTag=Ec.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&&Kc(this.tracking2Instance,t),e(t)})).catch((e=>{console.error("Unable to complete loading container tag",e),t()}))}_shouldInitialize(){return!Qc}_shouldProcessEvent(e){return Qc?Promise.resolve(!1):this.isAllowlistingEnabled?new Promise((t=>{this._allowlistReadyPromise.then((()=>{t(this._isEventAllowlisted(e))}))})):Promise.resolve(!0)}_isEventAllowlisted(e){return void 0!==e.controlUrn?this._isEventAllowlistedByControlUrn(e):this._isEventAllowlistedByPageKey(e)}_isEventAllowlistedByPageKey(e){return void 0!==this.allowlist.pageKey[e.pageKey]}_isEventAllowlistedByControlUrn(e){return void 0!==this.allowlist.controlUrn[e.controlUrn]}addValuesToAllowlist(e,t){"string"==typeof e&&Array.isArray(t)&&void 0!==this.allowlist[e]&&t.forEach((t=>{this.allowlist[e][t]=!0}))}_processQueuedEvents(){this.isContainerTagLoaded?Wc(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=Yc(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&Kc(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){_().consent.consentAvailable&&!Zc?this._refireTracking():Jc=setTimeout((()=>{this._checkForCookieConsent()}),2e3)}_refireTracking(){el.payloads&&el.payloads.forEach((e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)}))}_savePayloadForRefire(e,t){if(Fc){Zc=!1;const{payloads:n=[],url:i}=el,r=location.href,o={data:e,callback:t},s=r!==i?[]:n;s.push(o),el={url:r,payloads:s},Jc||(Jc=setTimeout((()=>{this._checkForCookieConsent()}),2e3))}}trackPageView(e,t){return _().consent.consentAvailable||this._savePayloadForRefire(e,t),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 nl(e){let{event:t,litmsInstance:n,pageKey:i}=e;const r=t.target.getAttribute("data-tracking-control-name"),o=t.target.hasAttribute("data-tracking-litms");r&&o&&n.trackControlInteraction({controlUrn:"urn:li:control:".concat(i,"-").concat(r)})}class il{constructor(e){if(this.trackingInstance=e,this.pageKey=j(document),this.litmsProfileName=function(e){const t=e.querySelector('meta[name="litmsProfileName"]');return t?t.content:""}(document),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new tl({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>nl({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||nl({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey})},document.body.addEventListener("click",this.clickEventListener,!0),document.body.addEventListener("keydown",this.keydownEventListener,!0)}trackPageView(){let{pageKey:e="",customParameters:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("string"==typeof e||e instanceof String))throw new Error("The pageKey is not a string!");if(!("object"==typeof t||t instanceof Object))throw new Error("CustomParamteres is expected to be an object.");const n=e||this.pageKey;this.litmsInstance&&this.litmsInstance.trackPageView(Le({pageKey:n},t))}}function rl(e){if(!$c){if(!e)throw new Error("No trackingInstance passed in!");$c=new il(e)}return $c}!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,r=n.length;i<r;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 ol="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",sl={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},al={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:cl,GOOGLE_USER_FETCHED:ll,INITIALIZED:ul}=sl,{INITIALIZATION:dl,AUTHENTICATION:hl}=al;class pl extends EventTarget{constructor(e){let{libSrcPath:t,el:n,clientId:i=ol}=e;if(super(),!n)throw TypeError("DOM element for Sign In button is required");if(this.libSrcPath=t,this.el=n,this.clientId=i,window.gapi)this._initializeGoogleAuth();else{if(!t)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");!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._initializeGoogleAuth.bind(this))}))}}_initializeGoogleAuth(){return gapi.auth2.init({client_id:this.clientId}).then((e=>{this.auth2=e,this._attachSignIn();const t=new CustomEvent(ul);this.dispatchEvent(t)})).catch((e=>{const t={type:dl,message:e.error},n=new CustomEvent(cl,{detail:t});this.dispatchEvent(n)}))}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},(e=>{const t=new CustomEvent(ll,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)}),(e=>{const t={type:hl,message:e.error},n=new CustomEvent(cl,{detail:t});this.dispatchEvent(n)}))}_getGoogleUserInformation(e){const t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}var fl={exports:{}};function ml(e){this.message=e}ml.prototype=new Error,ml.prototype.name="InvalidCharacterError";var gl="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new ml("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};var vl=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(gl(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return gl(t)}};function yl(e){this.message=e}yl.prototype=new Error,yl.prototype.name="InvalidTokenError",fl.exports=function(e,t){if("string"!=typeof e)throw new yl("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(vl(e.split(".")[n]))}catch(e){throw new yl("Invalid token specified: "+e.message)}},fl.exports.InvalidTokenError=yl;const El=sl,bl=al;function wl(){try{const e={};return void 0!==window.globalThis.apfcDf&&(e.df=window.globalThis.apfcDf),JSON.stringify(e)}catch(e){return JSON.stringify({error:e.message})}}const _l="apfc",{GOOGLE_USER_FETCHED:Tl,GOOGLE_ERROR:Sl,INITIALIZED:Cl}=El,{INITIALIZATION:Il}=bl;class kl{constructor(e){let{initSuccess:t,initFailure:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("Google sign in cta container/wrapper element must be provided");this.el=e,this.btnEl=this.el.querySelector(".google-sign-in-cta-widget__btn"),this.initSuccess=t,this.initFailure=n,this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new Da(this.loaderEl),window.tracking&&window.tracking.then((e=>{const t=j(document,{skipSuffix:!0}),n="".concat(t,"-").concat(this.btnEl.dataset.trackingControlName),i=Yr(e),r=this._createHiddenInputElement("pageInstance",i),o=this._createHiddenInputElement("controlId",n);this.el.appendChild(o),this.el.appendChild(r)})),this.googleSignInPromise=this._createGoogleSignIn()}_createGoogleSignIn(){return window.lazyloader.then((e=>e.getLazyLoadedJavascriptModule("google-sign-in-lib"))).then((()=>(this.googleSignInInstance=new pl({el:this.btnEl}),this.initSuccess&&"function"==typeof this.initSuccess&&this.googleSignInInstance.addEventListener(Cl,this.initSuccess),this.googleSignInInstance.addEventListener(Tl,(e=>{this._submitWithGoogle(e.detail)})),this.googleSignInInstance.addEventListener(Sl,(e=>{const{type:t,message:n}=e.detail,i="google-sign-in-error--".concat(t,"-").concat(n);this._fireControlInteractionEvent(i),this.initFailure&&"function"==typeof this.initFailure&&t===Il&&this.initFailure()})),this.googleSignInInstance)))}_fireControlInteractionEvent(e){window.tracking.then((t=>{t.fireControlInteractionEvent(e)}))}_submitWithGoogle(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{email:t,idToken:n,imageUrl:i,familyName:r,givenName:o}=e;this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=this._createHiddenInputElement("googleIdToken",n),ba("prefill-bugfix-enabled")&&(this._createHiddenInputElement("googleGivenName",o),this._createHiddenInputElement("googleFamilyName",r),this._createHiddenInputElement("googleImageUrl",i),this._createHiddenInputElement("googleEmail",t)),this._createHiddenInputElement(_l,wl()),this.loader&&this.loader.show(),this.el.submit()}_createHiddenInputElement(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),this.el.appendChild(n),n}}function Al(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function Ol(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0};throw e}}function Ll(e,t){return Math.round(e-t)}var Rl,Nl=(Rl=function(e,t){return Rl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Rl(e,t)},function(e,t){function n(){this.constructor=e}Rl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Pl=function(){function e(){this.items=[]}return e.prototype.remove=function(e){for(var t=this.items.length,n=0;n<t;n++)this.removePredicate(e,this.items[n])&&(this.items.splice(n,1),n--,t--)},e.prototype.clear=function(){this.items=[]},e.prototype.push=function(e){this.items.push(e)},e.prototype.isEmpty=function(){return 0===this.items.length},e}(),xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nl(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(Pl),Ml=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nl(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(Pl),Dl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nl(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:"function"==typeof e?t.callback===e:t.el===e},t}(Pl),Ul=function(){return 0},Bl=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Fl=Bl&&!!window.requestAnimationFrame,ql={hasDOM:Bl,hasRAF:Fl,getScrollTop:Ul,getScrollLeft:Ul,getHeight:Ul,getWidth:Ul,rAF:Fl?window.requestAnimationFrame.bind(window):function(e){e()},meta:{width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0},version:0,lastVersion:0,updateMeta:Ul,get isDirty(){return ql.version!==ql.lastVersion},document:window.document,IntersectionObserver:Bl&&window.IntersectionObserver,performance:Bl&&window.performance};function Hl(){++ql.version}function jl(){var e=null!=document.scrollingElement;ql.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},ql.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}Bl&&(ql.getHeight=function(){return window.innerHeight},ql.getWidth=function(){return window.innerWidth},ql.updateMeta=function(){ql.meta.height=ql.getHeight(),ql.meta.width=ql.getWidth(),ql.meta.scrollLeft=ql.getScrollLeft(),ql.meta.scrollTop=ql.getScrollTop(),ql.lastVersion=ql.version},ql.updateMeta(),"loading"!==document.readyState?jl():document.addEventListener("DOMContentLoaded",jl),window.addEventListener("resize",Hl,!1),window.addEventListener("scroll",Hl,!1));var Gl=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this;this.running||(this.running=!0,ql.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var i=e.work.length;t<i;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),zl=null;var Wl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Kl="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Vl=0,Yl=function(){function e(e,t,n,i,r,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=i,this.width=r,this.height=o,this.x=s,this.y=a,this.top=c,this.left=l}return e.generate=function(t){void 0===t&&(t=window);var n=this.revalidateRootMeta(t);return new e(Date.now(),performance.now(),n.scrollTop,n.scrollLeft,n.width,n.height,n.x,n.y,n.top,n.left)},e.revalidateRootMeta=function(e){void 0===e&&(e=document);var t,n={width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0};return ql.isDirty&&ql.updateMeta(),e===window||e===document?(n.height=ql.meta.height,n.width=ql.meta.width,n.scrollLeft=ql.meta.scrollLeft,n.scrollTop=ql.meta.scrollTop,n):(t=Ol(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}();function Ql(){return Vl+++Kl}var Xl=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(zl||(zl=new Gl)),this.root=t||window}return e.prototype.tick=function(){if(this.queue.isEmpty())this.isTicking=!1;else{if(this.toRemove.length>0){for(var e=0;e<this.toRemove.length;e++)this.queue.remove(this.toRemove[e]);this.toRemove=[]}this.applyQueue(Yl.generate(this.root)),this.engine.scheduleRead(this.tick.bind(this))}},e.prototype.scheduleWork=function(e){this.engine.scheduleWork(e)},e.prototype.scheduleRead=function(e){this.engine.scheduleRead(e)},e.prototype.queryElement=function(e,t){var n,i,r=this;this.engine.scheduleRead((function(){n=Ol(e),i=Yl.generate(r.root)})),this.engine.scheduleWork((function(){t(n,i)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),Jl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new xl,t}return Wl(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.id;(0,n.callback)(e,i)}},t.prototype.watch=function(e){this.startTicking();var t=Ql();return this.queue.push({callback:e,id:t}),t},t}(Xl),Zl=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return Wl(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Jl),$l=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=ql.version,r.queue=new Dl,r.ALLOW_CACHED_SCHEDULER=i,r}return Wl(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return ql.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.callback,r=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=Ol(r)),i(e,o,s)}this.lastVersion=ql.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Ql();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(Xl),eu=null;var tu=function(){function e(){this.queue=new Ml}return e.prototype.listen=function(e){this.queue.push(e)},e.prototype.unlisten=function(e){this.queue.remove(e)},e.prototype.trigger=function(e){for(var t=0;t<this.queue.items.length;t++)this.queue.items[t](e)},e}(),nu=function(){function e(e){this.scheduler=new Zl(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=Yl.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),iu=null;function ru(e,t){var n=(iu||(iu={scroll:new nu((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new nu((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new tu,beforeunload:new tu,hide:new tu,show:new tu}))[e];n&&n.listen(t)}function ou(e,t){if(iu){var n=iu[e];n&&n.unlisten(t)}}function su(e,t){if(iu){var n=iu[e];n&&n.trigger(t)}}function au(e){(eu||(eu=new Jl)).scheduleWork(e)}function cu(e){var t=e.left,n=e.right,i=e.top,r=e.bottom;return{left:t,x:t,top:i,y:i,bottom:r,right:n,width:n-t,height:r-i}}ql.hasDOM&&(window.addEventListener("beforeunload",(function(){su("beforeunload"),su("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?su("show"):su("hide")})));var lu=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new $l(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||Ql();return this.scheduler.watch(e,(function(e,i,r){t.onTick(e,i,r,n)}),n.__spanielId),i},e.prototype.onTick=function(e,t,n,i){var r=this,o=this.generateEntryEvent(e,n,i),s=o.numSatisfiedThresholds,a=o.entry,c=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===c.numSatisfiedThresholds&&a.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=s,c.entry=a,this.scheduler.scheduleWork((function(){r.callback([a])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var i=0,r=function(e,t,n,i){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:uu(),intersectionRatio:0,intersectionRect:uu(),isIntersecting:!1,rootBounds:uu(),target:n};var r=t.bottom,o=t.right,s=e.left+i.left,a=e.top+i.top,c={left:s,top:a,bottom:i.bottom,right:i.right,width:e.width-(i.right+i.left),height:e.height-(i.bottom+i.top),y:a,x:s},l=Math.max(c.left,t.left),u=Math.max(c.top,t.top),d=Math.min(c.left+c.width,t.right)-l,h=Math.min(c.top+c.height,t.bottom)-u,p=d>=0?l:0,f=u>=0?u:0,m={left:p,top:f,x:p,y:f,width:d,height:h,right:o,bottom:r};return function(e){var t=e.unixTime,n=e.highResTime,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=r.height*r.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:Al({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:cu(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];r.intersectionRatio>=s&&i++}return{numSatisfiedThresholds:i,entry:r}},e}();function uu(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var du={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!function(){function e(e,t){var n=this;this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e;var i=t||{threshold:[]},r=i.root,o=i.rootMargin,s=i.threshold,a=i.ALLOW_CACHED_SCHEDULER,c=i.BACKGROUND_TAB_FIX,l=i.USE_NATIVE_IO,u="string"!=typeof(o=o||"0px")?function(e){return e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px"}(o):o;this.thresholds=s.sort((function(e){return e.ratio}));var d={root:r,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!ql.IntersectionObserver;var h=this.usingNativeIo?ql.IntersectionObserver:lu;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),ql.hasDOM&&(ru("beforeunload",this.onWindowClosed),ru("hide",this.onTabHidden),ru("show",this.onTabShown),c&&(this.paused="visible"!==ql.document.visibilityState))}e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]]);this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1;for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),i=0;i<e.length;i++){var r=this.recordStore[e[i]].lastSeenEntry;if(r){var o=r.intersectionRatio,s=r.boundingClientRect,a=r.rootBounds,c=r.intersectionRect,l=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:l,rootBounds:a,intersectionRect:c,target:u})}}},e.prototype.internalCallback=function(e){e.forEach(this.handleObserverEntry.bind(this))},e.prototype.flushQueuedEntries=function(){this.queuedEntries.length>0&&(this.callback(this.queuedEntries),this.queuedEntries=[])},e.prototype.generateSpanielEntry=function(e,t){var n=e.intersectionRatio,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((ql.performance.timeOrigin||ql.performance.timing.navigationStart)+a):a,d=this.usingNativeIo?a:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:u,time:u,highResTime:d,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:c,duration:0,visibleTime:s?u:-1,entering:!1,payload:l.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),i=performance.now();e.thresholdStates.forEach((function(r){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:i,payload:e.payload,label:r.threshold.label,threshold:r.threshold,entering:!1,rootBounds:du,boundingClientRect:o||du,intersectionRect:du,visibleTime:r.lastVisible.unixTime,duration:Ll(i,r.lastVisible.highResTime),target:e.target},r),r.lastSatisfied=!1,r.visible=!1,r.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,i=!!t.threshold.time;t.lastSatisfied&&(!i||i&&t.visible)&&(e.duration=Ll(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,i=this.recordStore[n.__spanielId];i&&(i.lastSeenEntry=e,this.paused||(i.thresholdStates.forEach((function(n){var i=!!n.threshold.time,r=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof r.isIntersecting?r.isIntersecting:Al(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var c=Number(setTimeout((function(){n.visible=!0,r.duration=Ll(performance.now(),n.lastVisible.highResTime),r.visibleTime=n.lastVisible.unixTime,t.callback([r])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,r.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(r);else t.handleThresholdExiting(r,n);n.lastEntry=e,n.lastSatisfied=a}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),ql.hasDOM&&(ou("beforeunload",this.onWindowClosed),ou("hide",this.onTabHidden),ou("show",this.onTabShown))},e.prototype.unobserve=function(e){var t=this,n=this.recordStore[e.__spanielId];n&&(delete this.recordStore[e.__spanielId],this.observer.unobserve(e),au((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||Ql();return this.recordStore[i]={target:n,payload:t,lastSeenEntry:null,thresholdStates:this.thresholds.map((function(e){return{lastSatisfied:!1,lastEntry:null,threshold:e,visible:!1,lastVisible:{unixTime:0,highResTime:-1}}}))},this.observer.observe(n),i}}();ql.IntersectionObserver&&ql.IntersectionObserver;const hu="show-more-less",pu=".".concat(hu,"__list"),fu=".".concat(hu,"__more-button"),mu=".".concat(hu,"__less-button"),gu="".concat(hu,"__list--hide-after"),vu="".concat(hu,"__button--hide");class yu{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(se);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(pu),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(gu,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(fu),this.showLessButton=this.el.querySelector(mu),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new te(e,this.listEl,{mainButton:this.showMoreButton,closeButton:this.showLessButton},{isOpen:this.isExpanded})}_attachEventListeners(){this.el.addEventListener("open",(()=>this._showElements())),this.el.addEventListener("close",(()=>this._hideElements())),this.listEl.addEventListener("focus",(e=>this._focusItem(e)))}_focusItem(e){let{target:t}=e;if(t){let e=this._getFocusItemFromListItem(t);e&&e.focus()}}_showElements(){this.listEl.classList.remove(this.hideClass),this._toggleButtons(!1),this._focusItem({target:this.firstHiddenListItem})}_hideElements(){this.listEl.classList.add(this.hideClass),this._toggleButtons(!0)}_toggleButtons(e){e?(this.showLessButton.classList.add(vu),this.showMoreButton.classList.remove(vu)):(this.showLessButton.classList.remove(vu),this.showMoreButton.classList.add(vu))}}const Eu="accordion-item__trigger";".".concat(Eu);const bu=350,wu="sticky-header--disabled",_u="body--sticky-header-disabled";class Tu{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector(".".concat("sticky-header")),{marginApplied:t=!0,disableUnderMinimumViewportHeight:n=!1,minimumViewportHeight:i=bu}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("A header element is required to instantiate a StickyHeader");if(!e.querySelector("nav"))throw Error("The header must contain a 'nav' element in order to instantiate a StickyHeader");let r=8;if(vo()){const t=e.querySelector(".search-bar");t&&(r=t.getBoundingClientRect().height)}return this.stickyHeader=e,this.stickyElementOptions={exposeStickyState:!0,isBottom:!1,marginApplied:t,scrollThreshold:r},n&&i>0?this.setupDisableUnderMinimumViewportHeight(i):this.instantiateStickyElement(),this.stickyElement}instantiateStickyElement(){!0===ba("isClsFixActive")||document.body.classList.add("body--sticky-header"),this.stickyElement=new Aa(this.stickyHeader,this.stickyElementOptions)}setupDisableUnderMinimumViewportHeight(e){const t="(min-height: ".concat(e,"px)"),n=window.matchMedia(t);n.addEventListener("change",this.handleMediaQueryChange.bind(this)),this.handleMediaQueryChange(n)}handleMediaQueryChange(e){var t;e.matches?(this.stickyHeader.classList.remove(wu),document.body.classList.remove(_u),this.stickyElement?this.stickyElement.reactivate():this.instantiateStickyElement()):(this.stickyHeader.classList.add(wu),document.body.classList.add(_u),null===(t=this.stickyElement)||void 0===t||t.deactivate())}}const Su=["options","optionsV2"];function Cu(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const Iu="BLOCK_PROFILE",ku=Cu("action"),Au=Cu("openpage"),Ou=Cu("openlink"),Lu=e=>ku(e)&&e.action.actionType===Iu;function Ru(e){const t=function(e){const t=(e.type?e.type:e).toLowerCase().split("_"),n=[];n.push(t.splice(0,1));for(const e of t)n.push(e[0].toUpperCase()+e.slice(1));return n.join("")}(e),n=t.toLowerCase();return{[n]:Le({},e[t]),type:n}}class Nu{constructor(e){this.optionStack=[],this.semaphoreJson=e.constructor==={}.constructor?e:JSON.parse(e)}getNextStep(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.semaphoreJson,{options:n,optionsV2:i}=t,r=Ne(t,Su);if(n&&!(this.optionStack.length>=r.numberOfSteps)){if(e===Iu){let e=n.find((e=>ku(e)&&e.action.type===Iu));if(!e)return;e=JSON.parse(JSON.stringify(e)),e.action.actionType=Iu;const t=[e];return this.optionStack.push(Le({options:t.map((e=>Ru(e))),heading:r.blockConfirmationScreen.heading},r)),this.optionStack[this.optionStack.length-1]}if(e){const t=this.optionStack.length;if(0===t)return;const n=this.optionStack[t-1].options.find((t=>t[t.type].title===e));if(!n)return;if(Au(n))return Le(Le({},n),r);const i=Le({options:n[n.type].options.map((e=>Ru(e)))},r);n[n.type].heading&&(i.heading=n[n.type].heading),this.optionStack.push(i)}else n=[...n,...i],this.optionStack.push(Le({options:n.map((e=>Ru(e)))},r));return this.optionStack[this.optionStack.length-1]}}getPreviousStep(){if(this.optionStack.length>1)return this.optionStack.pop(),this.optionStack[this.optionStack.length-1]}hasPreviousStep(){return this.optionStack.length>1}getCurrentStep(){return this.optionStack[this.optionStack.length-1]}findAction(e){const t=this.optionStack[this.optionStack.length-1].options;if(!t)return;const n=t.find((t=>ku(t)&&t[t.type].title===e));return n&&n.action}}const Pu="hidden";class xu extends ro{constructor(e){super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.titleEl=this._el.querySelector(".semaphore-modal__title"),this.contentEl=this._el.querySelector(".semaphore-modal__content"),this.footer=this._el.querySelector(".modal__footer"),this.submitBtn=this.footer.querySelector('[data-semaphore-action="submit"]')}setTitle(e){this.titleEl.textContent=e}setContent(e){this.contentEl.appendChild(e)}hideFooter(){this.footer.classList.add(Pu)}showFooter(){this.footer.classList.remove(Pu)}enableSubmit(){this.submitBtn.disabled=!1}disableSubmit(){this.submitBtn.disabled=!0}hideSubmit(){this.disableSubmit(),this.submitBtn.classList.add(Pu)}showSubmit(){this.enableSubmit(),this.submitBtn.classList.remove(Pu)}querySelector(e){return this._el.querySelector(e)}clearContent(){for(this.disableSubmit();this.contentEl.firstChild;)this.contentEl.removeChild(this.contentEl.firstChild)}close(){this.clearContent(),super.close()}}class Mu{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'[data-item-type="semaphore"]',t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3?arguments[3]:void 0;this.semaphoreSelector=e,this.parentContainer=t||document;const r=this.parentContainer.querySelector(e);if(r){this.semaphoreTrackingPrefix=r.dataset.semaphoreTrackingPrefix;const e=this.parentContainer.querySelector("#semaphore-modal");e&&(this.semaphoreModal=new xu(e,{focusElement:i}),this.submitActionCallBack=n,this.parentContainer?(this.parentContainer.addEventListener("click",this.semaphoreClickHandler.bind(this)),e.addEventListener("click",this.clickHandler.bind(this))):(document.body.removeEventListener("click",this.clickHandler),document.body.addEventListener("click",this.clickHandler.bind(this))))}}clickHandler(e){const t=T(e.target,"[data-semaphore-input]");if(t){if(t.href)return e.preventDefault(),void window.open(t.href,"_blank");"semaphore-action"===t.name&&(this.semaphoreModal.showFooter(),this.semaphoreModal.showSubmit())}if("back"===e.target.dataset.semaphoreAction){const e=this.semaphoreConfigParser.getPreviousStep();return void(e?(this.renderSemaphoreOptions(e),this.refreshLazyLoader(),this.semaphoreModal.open()):this.semaphoreModal.close())}if("submit"===e.target.dataset.semaphoreAction){let t=this.semaphoreModal.querySelector("[data-semaphore-input]:checked");if(t){const n=this.semaphoreConfigParser.findAction(t.value);n&&this.sendAction(n).finally((()=>{this.renderThanks(this.semaphoreConfigParser.getCurrentStep().resultScreen),this.submitActionCallBack(e)}))}}let n=T(e.target,"[data-semaphore-item]");if(n&&"action"!==n.dataset.semaphoreItem){const t=n.querySelector('[data-attr="title"]');if(t){const n=this.semaphoreConfigParser.getNextStep(t.textContent);n&&(Au(n)?(this.renderThanks(n.resultScreen),this.submitActionCallBack(e)):this.renderSemaphoreOptions(n),this.refreshLazyLoader(),this.semaphoreModal.open())}}else{if(n&&n.dataset.semaphoreType===Iu){const e=this.semaphoreConfigParser.getNextStep(Iu);e&&this.renderSemaphoreOptions(e)}this.parentContainer||this.semaphoreClickHandler(e)}}semaphoreClickHandler(e){let t=T(e.target,this.semaphoreSelector);t&&t.dataset.semaphoreContentType&&t.dataset.semaphoreContentUrn&&"true"===t.dataset.isLoggedIn&&(e.preventDefault(),this.makeSemaphoreRequest(t.dataset.semaphoreContentUrn,t.dataset.semaphoreContentType,t.dataset.semaphoreAuthorProfileId,t.dataset.semaphoreAuthorUrn).then((e=>{this.semaphoreConfigParser=new Nu(e);const t=this.semaphoreConfigParser.getNextStep();if(t){this.renderSemaphoreOptions(t),this.refreshLazyLoader(),this.semaphoreModal.open();const e=document.querySelector(".top-level-modal-container .modal__dismiss");null==e||e.focus()}})))}renderSemaphoreOptions(e){this.semaphoreModal.clearContent();const t=this.parentContainer.querySelector("#semaphore-container-template").content.firstElementChild.cloneNode(!0);let n=!1,i=!1,r=!1;e.options.forEach((o=>{let s=o.type;Ou(o)&&!i&&(i=!0),ku(o)&&(n||(n=!1===o[s].nonRadioOptionEnabled),s=Lu(o)?"block":o[s].nonRadioOptionEnabled?s:"".concat(s,"-radio"));const a=this.parentContainer.querySelector("#semaphore-".concat(s,"-template")).content.firstElementChild.cloneNode(!0),c=o[o.type],l=a.querySelector('[data-attr="title"]');if(l&&(l.textContent=c.title),c.type&&(a.dataset.semaphoreType=c.type),ku(o)){if(Lu(o)){r=!0;const t="".concat(e.blockConfirmationScreen.firstLine," \n ").concat(e.blockConfirmationScreen.secondLine);a.querySelector('[data-attr="block-content"]').textContent=t}a.querySelector("[data-semaphore-input]").value=c.title}const u=a.querySelector('[data-attr="body"]');u&&(c.body?u.textContent=c.body:u.remove()),c.url&&(a.querySelector("[data-semaphore-input]").href=c.url),a.querySelector("[data-semaphore-input]").dataset.trackingControlName=c.trackingId,t.appendChild(a)})),this.semaphoreModal.setContent(t),this.semaphoreModal.setTitle(e.heading||e.headings.whyReportingThis),this.semaphoreConfigParser.hasPreviousStep()?(this.semaphoreModal.showFooter(),r&&this.semaphoreModal.showSubmit()):this.semaphoreModal.hideFooter(),i&&this.semaphoreModal.hideSubmit()}renderThanks(e){this.semaphoreModal.hideFooter(),this.semaphoreModal.clearContent(),this.semaphoreModal.setTitle(e.title);const t=this.parentContainer.querySelector("#semaphore-result-template").content.firstElementChild.cloneNode(!0);t.querySelector('[data-attr="thanks-text-body"]').textContent=e.messageBody.body;let n=t.querySelector('[data-attr="thanks-help-center-link"]');n.textContent=e.messageBody.helpCenterText,n.href=this.addTrackingCode(e.messageBody.helpCenterLink);const i=document.createElement("div");i.appendChild(t),this.semaphoreModal.setContent(i)}addTrackingCode(e){return P(e,this.semaphoreTrackingPrefix)}sendAction(e){return _e(e.actionUrl,{method:e.actionUrlRequestType,postData:e.actionPostData})}makeSemaphoreRequest(e,t,n,i){let r=x("/psettings/flagging-menu","entityUrn",e);return r=x(r,"contentSource",t),n?r=x(r,"authorProfileId",n):i&&(r=x(r,"authorUrn",i)),_e(r).then((e=>200===e.status?e.responseText:"{}")).catch((()=>"{}"))}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then((e=>{e.refreshLoader()}))}}class Du{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e,this.currentMenuItem=this._el.querySelector(".ellipsis-menu__item-button");const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.collapsibleDropdown=new we(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new Mu('[data-item-type="semaphore"]',t))}}var Uu;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(Uu||(Uu={}));new Set(Object.values(Uu));class Bu extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Bu.prototype)}}var Fu;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Fu||(Fu={})),new Set(Object.values(Fu));var qu={exports:{}};(function(e){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e,t,n){return d=u()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&l(r,n.prototype),r},d.apply(null,arguments)}function h(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||!h(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},p(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function g(e){return function(){var t,n=c(e);if(u()){var i=c(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return m(this,t)}}function v(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function y(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function E(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;function e(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}window.CustomEvent=e})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}var 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,r=n.length;i<r;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}();var b="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",w={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},_="https://accounts.google.com",T={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},S={INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},C={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},I={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},k={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"}},A="com.linkedin.LinkedIn.service",O="https://www.linkedin.com/redirect",L="https://www.linkedin-ei.com/redirect",R={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},N={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},P=w.GOOGLE_ERROR,x=w.GOOGLE_USER_FETCHED,M=w.INITIALIZED,D=T.INITIALIZATION,U=T.AUTHENTICATION,B=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?b:a;if(t(this,r),i=n.call(this),!s)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=s,i.clientId=c,window.gapi)i._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");v((function(){y(o,i._initializeGoogleAuth.bind(f(i)))}))}return i}return i(r,[{key:"_initializeGoogleAuth",value:function(){var e=this;return gapi.auth2.init({client_id:this.clientId}).then((function(t){e.auth2=t,e._attachSignIn();var n=new CustomEvent(M);e.dispatchEvent(n)})).catch((function(t){var n={type:D,message:t.error},i=new CustomEvent(P,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(x,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:U,message:t.error},i=new CustomEvent(P,{detail:n});e.dispatchEvent(i)}))}},{key:"_getGoogleUserInformation",value:function(e){var t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}]),r}(p(EventTarget)),F=w.GOOGLE_USER_FETCHED,q=w.PROMPT_MOMENT,H=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?b:u,h=e.cancelOnTapOutside,p=void 0===h||h;if(t(this,r),i=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(i.autoSelect=s,i.libSrcPath=a,i.containerId=c,i.cancelOnTapOutside=p,i.clientId=d,i.context=l,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(a,i._onGoogleApiLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return google.accounts.id.initialize({auto_select:this.autoSelect,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((function(){return e.promptOneTap()}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===C.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(F,{detail:n});this.dispatchEvent(i)}}},{key:"_getBasicProfile",value:function(e){try{var 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}}},{key:"_dispatchSkippedEvent",value:function(e){var t={message:e,reason:k.SKIPPED.ISSUING_FAILED,type:I.SKIPPED},n=new CustomEvent(q,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(q,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}},{key:"hideOneTap",value:function(){google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(p(EventTarget)),j={exports:{}},G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function z(e){this.message=e}function W(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new z("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i=G.indexOf(i);return s}z.prototype=new Error,z.prototype.name="InvalidCharacterError";var K="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||W;function V(e){return decodeURIComponent(K(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}var Y=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return V(t)}catch(e){return K(t)}};function Q(e){this.message=e}Q.prototype=new Error,Q.prototype.name="InvalidTokenError",j.exports=function(e,t){if("string"!=typeof e)throw new Q("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Y(e.split(".")[n]))}catch(e){throw new Q("Invalid token specified: "+e.message)}},j.exports.InvalidTokenError=Q;var X=j.exports,J=w.GOOGLE_USER_FETCHED,Z=w.PROMPT_MOMENT,$=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.clientId,l=void 0===c?b:c,u=e.showOneTap,d=void 0===u||u,h=e.promptParentId,p=e.buttonParentEl,m=e.gsiButtonConfig,g=void 0===m?{}:m,w=e.context,_=void 0===w?"signin":w,T=e.cancelOnTapOutside,S=void 0===T||T;if(t(this,r),(i=n.call(this)).autoSelect=s,i.libSrcPath=a,i.clientId=l,i.showOneTap=d,i.promptParentId=h,i.buttonParentEl=p,i.gsiButtonConfig=g,i.cancelOnTapOutside=S,i.context=_,i.isLibraryLoaded=E(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(a,i._onGoogleApiLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),window.google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.promptParentId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:N[this.context].GOT}),Promise.resolve().then((function(){return e.showGsiUI()}))}},{key:"showGsiUI",value:function(){this.buttonParentEl&&this.renderGSIButton(this.buttonParentEl,this.gsiButtonConfig),this.showOneTap&&this.promptOneTap()}},{key:"renderGSIButton",value:function(e,t){var n=this,i=t.logo_alignment,r=void 0===i?"center":i,o=t.shape,s=void 0===o?"pill":o,a=t.size,c=void 0===a?"large":a,l=t.text,u=t.theme,d=t.type,h=t.width,p=void 0===h?"400px":h;return this.isLibraryLoaded.then((function(){var t=l||N[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{logo_alignment:r,shape:s,size:c,text:t,theme:u,type:d,width:p})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(Z,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=X(t),r=s({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(r){var o=new CustomEvent(J,{detail:r});this.dispatchEvent(o)}}},{key:"_getBasicProfile",value:function(e){return{email:e.email,familyName:e.family_name,givenName:e.given_name,id:e.sub,imageUrl:e.picture}}},{key:"hideOneTap",value:function(){window.google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(p(EventTarget)),ee=R.DISMISSED,te=R.INITIALIZED,ne=R.SNAPPLE_USER_FETCHED,ie=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?A:a,l=e.redirectURI;if(t(this,r),i=n.call(this),!s)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(i.libSrcPath=o,i.clientId=c,i.redirectURI=i._getRedirectURL(l),i.snappleCTA=s,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)i._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(o,i._onSnappleLibLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onSnappleLibLoad",value:function(){window.AppleID.auth.init({clientId:this.clientId,scope:"name email",redirectURI:this.redirectURI,usePopup:!0});var e=new CustomEvent(te);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent(ne,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(ee,{detail:{type:ee,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?O:L}}]),r}(p(EventTarget)),re={CLIENT_ID:b,EVENTS:w,GOOGLE_ACCOUNT_URL:_,GSI_ERROR_TYPES:T,GSI_ERROR_MESSAGES:S,GOT_CONTEXTS:C,GOT_PROMPT_MOMENT_REASONS:k,GOT_PROMPT_MOMENT_TYPES:I};e.GoogleGsi=$,e.GoogleOneTap=H,e.GoogleSignIn=B,e.GoogleSignInConstants=re,e.SnappleAuth=ie,e.SnappleEvents=R,Object.defineProperty(e,"__esModule",{value:!0})})(qu.exports);const{EVENTS:Hu,GOT_CONTEXTS:ju,GOT_PROMPT_MOMENT_REASONS:Gu,GOT_PROMPT_MOMENT_TYPES:zu}=qu.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:Wu,PROMPT_MOMENT:Ku}=Hu,{SIGN_IN:Vu}=ju,Yu=[Gu.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,Gu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,Gu.NOT_DISPLAYED.SUPPRESSED_BY_USER],Qu=[Gu.SKIPPED.AUTO_CANCEL,Gu.SKIPPED.TAP_OUTSIDE,Gu.SKIPPED.USER_CANCEL],Xu=Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});class Ju{constructor(e){var t;let{clientId:n,globalWindow:i=window,onNotDisplayed:r,onSkipped:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buttons=Array.from(document.querySelectorAll(".google-auth-button__placeholder")),this.clientId=n,this.isLinkedInAppWebView=!0===ba("isLinkedInAppWebView"),this.el=e,this.showOneTap=!(null===(t=this.el)||void 0===t||!t.querySelector("#google-one-tap__container")||this.isLinkedInAppWebView),(this.buttons.length||this.showOneTap&&this.el)&&(this.useAutoSelect=!0===ba("enableGoogleAutoSelect")&&this._shouldAutologin(),this.window=i,this.onNotDisplayed=r,this.onSkipped=o,this.loader=new Da(this.el.querySelector(".loader"),this.el),this._initGoogleAuth())}_initGoogleAuth(){return this.window.lazyloader.then((e=>e.getLazyLoadedJavascriptModule("google-gsi-lib"))).then((()=>{const e=ba("googleAuthLibraryPath");if(e)return this.googleGsiInstance=new qu.exports.GoogleGsi({autoSelect:this.useAutoSelect,cancelOnTapOutside:!1,clientId:this.clientId,context:Vu,libSrcPath:ha.sanitizeUrl(e),promptParentid:this.showOneTap?"google-one-tap__container":void 0,showOneTap:this.showOneTap}),this._initButtons(),this.googleGsiInstance.addEventListener(Wu,(e=>{let{detail:t}=e;const{email:n,familyName:i,givenName:r,idToken:o,imageUrl:s,selectedBy:a}=t;this.loader.show();const c=this._getRequestType(a);this._addGoogleFieldToForm("googleGivenName",r),this._addGoogleFieldToForm("googleIdToken",o),this._addGoogleFieldToForm("googleFamilyName",i),this._addGoogleFieldToForm("googleImageUrl",s),this._addGoogleFieldToForm("googleEmail",n),this._addGoogleFieldToForm("soogleLoginRequestType",c),this._addGoogleFieldToForm(_l,wl());const l=c===Xu.BUTTON?"google-sign-in--account-selected":"google-one-tap--account-selected";this._fireControlInteractionEvent(l),this.el.submit()})),this.googleGsiInstance.addEventListener(Ku,(e=>{let{detail:t}=e;const{reason:n,type:i}=t;let r="google-one-tap-moment--".concat(i);if(r=n?"".concat(r,"-").concat(n):r,this._fireControlInteractionEvent(r),n){if(this._fireCounterIngraphMetric(i,n),i===zu.SKIPPED){if(n===Gu.SKIPPED.USER_CANCEL&&this._fireControlInteractionEvent("google-one-tap--user-dismissed"),this.onSkipped)this.onSkipped(t);else if(-1===Qu.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else if(i===zu.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===Yu.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else i===zu.DISPLAY&&this._fireViewModuleImpressionEvent("google-one-tap")})),this.googleGsiInstance}))}_fireCounterIngraphMetric(e,t){let n="";e===zu.DISPLAY&&t===Gu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?n="GoogleAuthDisabledOrNoSessionError":(Qu.indexOf(t)>=0||Yu.indexOf(t)>=0)&&(n="GoogleAuthMiscError"),n&&this.window.ingraphTracking.then((e=>{e.fireCounterIngraphMetric({metricsType:n})}))}_fireViewModuleImpressionEvent(e){this.window.tracking&&this.window.tracking.then((t=>{Vr(t,[e])}))}_fireControlInteractionEvent(e){this.window.tracking&&this.window.tracking.then((t=>{t.fireControlInteractionEvent(e)}))}_initButtons(){var e,t;null!==(e=this.buttons)&&void 0!==e&&e.length&&(this._fireViewModuleImpressionEvent("google-button-view"),null===(t=this.buttons)||void 0===t||t.forEach((e=>{this.googleGsiInstance.renderGSIButton(e,this._getButtonConfig(e))})))}_getButtonConfig(e){if(e){const t=e.parentElement.offsetWidth-2;return{text:e.dataset.text||"continue_with",width:t}}return{}}_getRequestType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(!0){case"auto"===e:return Xu.ONE_TAP_AUTO_LOGIN;case e.indexOf("user")>-1:return Xu.ONE_TAP;default:return Xu.BUTTON}}_addGoogleFieldToForm(e,t){const n=document.createElement("input");n.type="hidden",n.name=e,n.id=e,n.value=t,this.el.appendChild(n)}_shouldAutologin(){return!(null!==D("li_g_recent_logout"))}}class Zu{constructor(){let{typeaheadApiBaseUrl:e,stickyHeaderOptions:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=document.querySelector(".search-bar");n&&(this.searchBar=new hc(n,{typeaheadApiBaseUrl:e}));const i=document.querySelector(".language-selector");i&&(this.languageSelector=new Ce(i));document.querySelector(".sticky-header")&&new Tu(void 0,t),document.querySelector(".member-nav-menu")&&new ao}}const $u="filter-values-container__filter-value";".".concat($u," input"),".".concat($u," input[type=radio]:checked");class ed{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!0,focusElement:s,pageKey:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)throw new Error("No element passed into to dialog modal");this.el=e,this.modalEl=this.el.querySelector(".".concat(eo)),this.modal=new mc(this.modalEl,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,focusElement:s,pageKey:a}),this._onPrimaryActionClick=t,this.primaryActionBtn=this.el.querySelector(".primary-action"),this.secondaryActionBtn=this.el.querySelector(".secondary-action"),n&&(this._onSecondaryActionClick=n),this.el.querySelector(".dialog-actions").addEventListener("click",this._actionHandler.bind(this))}_actionHandler(e){const t=e.target;if(this.primaryActionBtn&&this.primaryActionBtn.contains(t)){if(this.primaryActionBtn.disabled)return;this._onPrimaryActionClick&&this._onPrimaryActionClick(e)}else this.secondaryActionBtn&&this.secondaryActionBtn.contains(t)&&this._onSecondaryActionClick&&this._onSecondaryActionClick(e);this.modal.close()}}class td{constructor(e){let{enablePageViewTracking:t=!0,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!1,shouldMoveToTopContainer:r=!0,focusElement:o,pageKey:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into to image viewer modal");this.el=e,this.modal=new mc(this.el,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:r,focusElement:o,pageKey:s||"p_mwlite_image_viewer"});const a=this.el.querySelector(".slide-list");this.slideList=new Uo(a),null==a||a.addEventListener("click",this._handleImageClick.bind(this))}open(e,t){e&&this.slideList.goToItem(e),this.modal.open(t)}_handleImageClick(e){e.target.closest(".main-image")&&this.el.classList.toggle("hide-components")}}function nd(e){const t=e.getBoundingClientRect();let{top:n,left:i}=t;const{right:r,bottom:o,width:s,height:a,x:c,y:l}=t;return n+=document.documentElement.scrollTop||document.body.scrollTop,i+=document.documentElement.scrollLeft||document.body.scrollLeft,{top:n,right:r,bottom:o,left:i,width:s,height:a,x:c,y:l}}function id(e,t,n){const i=nd(e),r=nd(t),o=nd(n),s=i.top-o.top-n.clientTop-r.height+i.height,a=i.left-o.left-n.clientLeft-r.width+i.width;return{boundingCoordinates:i,elementCoordinates:r,elemOffsetParentCoordinates:o,topMinLimit:s,leftMinLimit:a,elemTop:r.top-o.top,elemLeft:r.left-o.left,topMaxLimit:s-i.height+r.height,leftMaxLimit:a-i.width+r.width}}const rd="data-draggable-initialized",od="touchstart",sd="touchmove",ad="touchend";class cd{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid draggable element");if(this.draggableElementEl=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParentEl=e.boundingParent}else this.boundingParentEl=document.body;cd.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(od,t),this.draggableElementEl.setAttribute(rd,!0)}dragElement(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r={top:n>0?Math.min(e.topMaxLimit,e.elemTop+n):Math.max(e.topMinLimit,e.elemTop+n),left:t>0?Math.min(e.leftMaxLimit,e.elemLeft+t):Math.max(e.leftMinLimit,e.elemLeft+t)};this.draggableElementEl.style.left="".concat(r.left,"px"),this.draggableElementEl.style.top="".concat(r.top,"px"),this.options.onDrag instanceof Function&&this.options.onDrag(e.boundingCoordinates.left-r.left-e.elemOffsetParentCoordinates.left,e.boundingCoordinates.top-r.top-e.elemOffsetParentCoordinates.top,i)}onTouchMove(e){const t=!!e.touches;if(e.preventDefault(),this.isMoving||(this.isMoving=!0),t&&1===e.touches.length){const t=e.touches[0].clientX-this._startClientX,n=e.touches[0].clientY-this._startClientY;this.dragElement.call(this,this.limits,t,n)}}onTouchStart(e){this.limits=id(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),this.isMoving=!1;const t=this.onTouchMove.bind(this),n=!!e.touches;this._startClientX=n?e.touches[0].clientX:e.clientX,this._startClientY=n?e.touches[0].clientY:e.clientY,e.preventDefault(),document.addEventListener(sd,t),document.addEventListener(ad,(function e(){document.removeEventListener(sd,t),document.removeEventListener(ad,e)}))}moveTo(e,t){const n=id(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),i=e+n.boundingCoordinates.left-n.elementCoordinates.left,r=t+n.boundingCoordinates.top-n.elementCoordinates.top;this.dragElement.call(this,n,i,r,!1)}}cd.isDraggable=function(e){return!!e.getAttribute(rd)};const ld="data-zoomable-initialized",ud="touchstart",dd="touchmove",hd="touchend";class pd{constructor(e){const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid zoomable element");if(!(e.scaleElement&&e.scaleElement instanceof Function))throw new Error("pass valid function to scale element");if(!(e.getMinDimensions&&e.getMinDimensions instanceof Function))throw new Error("pass valid function to get minimum dimensions");if(this.zoomableElement=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParent=e.boundingParent}else this.boundingParent=document.body;pd.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(ud,t),this.zoomableElement.setAttribute(ld,!0))}scaleElement(e,t){if(1===e)return;this.limits=id(this.boundingParent,this.zoomableElement,this.zoomableElement.offsetParent);let n=this.limits.elementCoordinates.width*e,i=this.limits.elementCoordinates.height*e;if(n<this.limits.boundingCoordinates.width||i<this.limits.boundingCoordinates.height){const t=this.options.getMinDimensions();i=t.height,n=t.width,e=i/this.limits.elementCoordinates.height}let r=this.limits.elemLeft-(t.clientX-this.limits.elementCoordinates.left)*(e-1),o=this.limits.elemTop-(t.clientY-this.limits.elementCoordinates.top)*(e-1);const s=this.limits.leftMinLimit-this.zoomableElement.offsetWidth*(e-1),a=this.limits.leftMaxLimit,c=this.limits.topMinLimit-this.zoomableElement.offsetHeight*(e-1),l=this.limits.topMaxLimit;r<s?r=s:r>a&&(r=a),o<c?o=c:o>l&&(o=l),this.options.scaleElement(n,i,this.limits.boundingCoordinates.left-r-this.limits.elemOffsetParentCoordinates.left,this.limits.boundingCoordinates.top-o-this.limits.elemOffsetParentCoordinates.top),this.zoomableElement.style.left="".concat(r,"px"),this.zoomableElement.style.top="".concat(o,"px")}onTouchMove(e){if(e.preventDefault(),2===e.touches.length){const t=Math.sqrt((e.touches[0].clientX-e.touches[1].clientX)*(e.touches[0].clientX-e.touches[1].clientX)+(e.touches[0].clientY-e.touches[1].clientY)*(e.touches[0].clientY-e.touches[1].clientY));if(this._startDistance>0){const n=t/this._startDistance,i=e.touches[0];this.scaleElement.call(this,n,i)}this._startDistance=t}}onTouchStart(e){e.preventDefault();const t=this.onTouchMove.bind(this);2===e.touches.length?this._startDistance=Math.sqrt((e.touches[0].x-e.touches[1].x)*(e.touches[0].x-e.touches[1].x)+(e.touches[0].y-e.touches[1].y)*(e.touches[0].y-e.touches[1].y)):this._startDistance=0,document.addEventListener(dd,t),document.addEventListener(hd,(function e(){document.removeEventListener(dd,t),document.removeEventListener(hd,e)}))}}pd.isZoomable=function(e){return!!e.getAttribute(ld)};var fd=function(){this.__data__=[],this.size=0};var md=function(e,t){return e===t||e!=e&&t!=t},gd=md;var vd=function(e,t){for(var n=e.length;n--;)if(gd(e[n][0],t))return n;return-1},yd=vd,Ed=Array.prototype.splice;var bd=function(e){var t=this.__data__,n=yd(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ed.call(t,n,1),--this.size,!0)},wd=vd;var _d=function(e){var t=this.__data__,n=wd(t,e);return n<0?void 0:t[n][1]},Td=vd;var Sd=function(e){return Td(this.__data__,e)>-1},Cd=vd;var Id=function(e,t){var n=this.__data__,i=Cd(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},kd=fd,Ad=bd,Od=_d,Ld=Sd,Rd=Id;function Nd(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Nd.prototype.clear=kd,Nd.prototype.delete=Ad,Nd.prototype.get=Od,Nd.prototype.has=Ld,Nd.prototype.set=Rd;var Pd=Nd,xd=Pd;var Md=function(){this.__data__=new xd,this.size=0};var Dd=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Ud=function(e){return this.__data__.get(e)};var Bd=function(e){return this.__data__.has(e)},Fd="object"==typeof Ie&&Ie&&Ie.Object===Object&&Ie,qd=Fd,Hd="object"==typeof self&&self&&self.Object===Object&&self,jd=qd||Hd||Function("return this")(),Gd=jd.Symbol,zd=Gd,Wd=Object.prototype,Kd=Wd.hasOwnProperty,Vd=Wd.toString,Yd=zd?zd.toStringTag:void 0;var Qd=function(e){var t=Kd.call(e,Yd),n=e[Yd];try{e[Yd]=void 0;var i=!0}catch(e){}var r=Vd.call(e);return i&&(t?e[Yd]=n:delete e[Yd]),r},Xd=Object.prototype.toString;var Jd=function(e){return Xd.call(e)},Zd=Qd,$d=Jd,eh=Gd?Gd.toStringTag:void 0;var th=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":eh&&eh in Object(e)?Zd(e):$d(e)};var nh=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ih=th,rh=nh;var oh,sh=function(e){if(!rh(e))return!1;var t=ih(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ah=jd["__core-js_shared__"],ch=(oh=/[^.]+$/.exec(ah&&ah.keys&&ah.keys.IE_PROTO||""))?"Symbol(src)_1."+oh:"";var lh=function(e){return!!ch&&ch in e},uh=Function.prototype.toString;var dh=function(e){if(null!=e){try{return uh.call(e)}catch(e){}try{return e+""}catch(e){}}return""},hh=sh,ph=lh,fh=nh,mh=dh,gh=/^\[object .+?Constructor\]$/,vh=Function.prototype,yh=Object.prototype,Eh=vh.toString,bh=yh.hasOwnProperty,wh=RegExp("^"+Eh.call(bh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var _h=function(e){return!(!fh(e)||ph(e))&&(hh(e)?wh:gh).test(mh(e))};var Th=function(e,t){return null==e?void 0:e[t]},Sh=_h,Ch=Th;var Ih=function(e,t){var n=Ch(e,t);return Sh(n)?n:void 0},kh=Ih(jd,"Map"),Ah=Ih(Object,"create"),Oh=Ah;var Lh=function(){this.__data__=Oh?Oh(null):{},this.size=0};var Rh=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nh=Ah,Ph=Object.prototype.hasOwnProperty;var xh=function(e){var t=this.__data__;if(Nh){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ph.call(t,e)?t[e]:void 0},Mh=Ah,Dh=Object.prototype.hasOwnProperty;var Uh=function(e){var t=this.__data__;return Mh?void 0!==t[e]:Dh.call(t,e)},Bh=Ah;var Fh=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Bh&&void 0===t?"__lodash_hash_undefined__":t,this},qh=Lh,Hh=Rh,jh=xh,Gh=Uh,zh=Fh;function Wh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Wh.prototype.clear=qh,Wh.prototype.delete=Hh,Wh.prototype.get=jh,Wh.prototype.has=Gh,Wh.prototype.set=zh;var Kh=Wh,Vh=Pd,Yh=kh;var Qh=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Xh=Qh;var Jh=function(e,t){var n=e.__data__;return Xh(t)?n["string"==typeof t?"string":"hash"]:n.map},Zh=Jh;var $h=function(e){var t=Zh(this,e).delete(e);return this.size-=t?1:0,t},ep=Jh;var tp=function(e){return ep(this,e).get(e)},np=Jh;var ip=function(e){return np(this,e).has(e)},rp=Jh;var op=function(e,t){var n=rp(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},sp=function(){this.size=0,this.__data__={hash:new Kh,map:new(Yh||Vh),string:new Kh}},ap=$h,cp=tp,lp=ip,up=op;function dp(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}dp.prototype.clear=sp,dp.prototype.delete=ap,dp.prototype.get=cp,dp.prototype.has=lp,dp.prototype.set=up;var hp=Pd,pp=kh,fp=dp;var mp=function(e,t){var n=this.__data__;if(n instanceof hp){var i=n.__data__;if(!pp||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new fp(i)}return n.set(e,t),this.size=n.size,this},gp=Pd,vp=Md,yp=Dd,Ep=Ud,bp=Bd,wp=mp;function _p(e){var t=this.__data__=new gp(e);this.size=t.size}_p.prototype.clear=vp,_p.prototype.delete=yp,_p.prototype.get=Ep,_p.prototype.has=bp,_p.prototype.set=wp;var Tp=_p,Sp=Ih,Cp=function(){try{var e=Sp(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ip=Cp,kp=Ip;var Ap=function(e,t,n){"__proto__"==t&&kp?kp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Op=Ap,Lp=md;var Rp=function(e,t,n){(void 0!==n&&!Lp(e[t],n)||void 0===n&&!(t in e))&&Op(e,t,n)};var Np=function(e){return function(t,n,i){for(var r=-1,o=Object(t),s=i(t),a=s.length;a--;){var c=s[e?a:++r];if(!1===n(o[c],c,o))break}return t}},Pp=Np(),xp={exports:{}};!function(e,t){var n=jd,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}(xp,xp.exports);var Mp=jd.Uint8Array;var Dp=function(e){var t=new e.constructor(e.byteLength);return new Mp(t).set(new Mp(e)),t};var Up=function(e,t){var n=t?Dp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Bp=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Fp=nh,qp=Object.create,Hp=function(){function e(){}return function(t){if(!Fp(t))return{};if(qp)return qp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var jp=function(e,t){return function(n){return e(t(n))}},Gp=jp(Object.getPrototypeOf,Object),zp=Object.prototype;var Wp=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||zp)},Kp=Hp,Vp=Gp,Yp=Wp;var Qp=function(e){return"function"!=typeof e.constructor||Yp(e)?{}:Kp(Vp(e))};var Xp=function(e){return null!=e&&"object"==typeof e},Jp=th,Zp=Xp;var $p=function(e){return Zp(e)&&"[object Arguments]"==Jp(e)},ef=$p,tf=Xp,nf=Object.prototype,rf=nf.hasOwnProperty,of=nf.propertyIsEnumerable,sf=ef(function(){return arguments}())?ef:function(e){return tf(e)&&rf.call(e,"callee")&&!of.call(e,"callee")},af=sf,cf=Array.isArray;var lf=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},uf=sh,df=lf;var hf=function(e){return null!=e&&df(e.length)&&!uf(e)},pf=hf,ff=Xp;var mf=function(e){return ff(e)&&pf(e)},gf={exports:{}};var vf=function(){return!1};!function(e,t){var n=jd,i=vf,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||i;e.exports=a}(gf,gf.exports);var yf=th,Ef=Gp,bf=Xp,wf=Function.prototype,_f=Object.prototype,Tf=wf.toString,Sf=_f.hasOwnProperty,Cf=Tf.call(Object);var If=function(e){if(!bf(e)||"[object Object]"!=yf(e))return!1;var t=Ef(e);if(null===t)return!0;var n=Sf.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Tf.call(n)==Cf},kf=th,Af=lf,Of=Xp,Lf={};Lf["[object Float32Array]"]=Lf["[object Float64Array]"]=Lf["[object Int8Array]"]=Lf["[object Int16Array]"]=Lf["[object Int32Array]"]=Lf["[object Uint8Array]"]=Lf["[object Uint8ClampedArray]"]=Lf["[object Uint16Array]"]=Lf["[object Uint32Array]"]=!0,Lf["[object Arguments]"]=Lf["[object Array]"]=Lf["[object ArrayBuffer]"]=Lf["[object Boolean]"]=Lf["[object DataView]"]=Lf["[object Date]"]=Lf["[object Error]"]=Lf["[object Function]"]=Lf["[object Map]"]=Lf["[object Number]"]=Lf["[object Object]"]=Lf["[object RegExp]"]=Lf["[object Set]"]=Lf["[object String]"]=Lf["[object WeakMap]"]=!1;var Rf=function(e){return Of(e)&&Af(e.length)&&!!Lf[kf(e)]};var Nf=function(e){return function(t){return e(t)}},Pf={exports:{}};!function(e,t){var n=Fd,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(Pf,Pf.exports);var xf=Rf,Mf=Nf,Df=Pf.exports,Uf=Df&&Df.isTypedArray,Bf=Uf?Mf(Uf):xf;var Ff=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},qf=Ap,Hf=md,jf=Object.prototype.hasOwnProperty;var Gf=function(e,t,n){var i=e[t];jf.call(e,t)&&Hf(i,n)&&(void 0!==n||t in e)||qf(e,t,n)},zf=Gf,Wf=Ap;var Kf=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?Wf(n,a,c):zf(n,a,c)}return n};var Vf=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Yf=/^(?:0|[1-9]\d*)$/;var Qf=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Yf.test(e))&&e>-1&&e%1==0&&e<t},Xf=Vf,Jf=af,Zf=cf,$f=gf.exports,em=Qf,tm=Bf,nm=Object.prototype.hasOwnProperty;var im=function(e,t){var n=Zf(e),i=!n&&Jf(e),r=!n&&!i&&$f(e),o=!n&&!i&&!r&&tm(e),s=n||i||r||o,a=s?Xf(e.length,String):[],c=a.length;for(var l in e)!t&&!nm.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||em(l,c))||a.push(l);return a};var rm=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},om=nh,sm=Wp,am=rm,cm=Object.prototype.hasOwnProperty;var lm=function(e){if(!om(e))return am(e);var t=sm(e),n=[];for(var i in e)("constructor"!=i||!t&&cm.call(e,i))&&n.push(i);return n},um=im,dm=lm,hm=hf;var pm=function(e){return hm(e)?um(e,!0):dm(e)},fm=Kf,mm=pm;var gm=function(e){return fm(e,mm(e))},vm=Rp,ym=xp.exports,Em=Up,bm=Bp,wm=Qp,_m=af,Tm=cf,Sm=mf,Cm=gf.exports,Im=sh,km=nh,Am=If,Om=Bf,Lm=Ff,Rm=gm;var Nm=function(e,t,n,i,r,o,s){var a=Lm(e,n),c=Lm(t,n),l=s.get(c);if(l)vm(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=Tm(c),p=!h&&Cm(c),f=!h&&!p&&Om(c);u=c,h||p||f?Tm(a)?u=a:Sm(a)?u=bm(a):p?(d=!1,u=ym(c,!0)):f?(d=!1,u=Em(c,!0)):u=[]:Am(c)||_m(c)?(u=a,_m(a)?u=Rm(a):km(a)&&!Im(a)||(u=wm(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),vm(e,n,u)}},Pm=Tp,xm=Rp,Mm=Pp,Dm=Nm,Um=nh,Bm=pm,Fm=Ff;var qm=function e(t,n,i,r,o){t!==n&&Mm(n,(function(s,a){if(o||(o=new Pm),Um(s))Dm(t,n,a,i,e,r,o);else{var c=r?r(Fm(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),xm(t,a,c)}}),Bm)};var Hm=function(e){return e};var jm=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Gm=jm,zm=Math.max;var Wm=function(e,t,n){return t=zm(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=zm(i.length-t,0),s=Array(o);++r<o;)s[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(s),Gm(e,this,a)}};var Km=function(e){return function(){return e}},Vm=Km,Ym=Ip,Qm=Ym?function(e,t){return Ym(e,"toString",{configurable:!0,enumerable:!1,value:Vm(t),writable:!0})}:Hm,Xm=Qm,Jm=Date.now;var Zm=function(e){var t=0,n=0;return function(){var i=Jm(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},$m=Zm(Xm),eg=Hm,tg=Wm,ng=$m;var ig=function(e,t){return ng(tg(e,t,eg),e+"")},rg=md,og=hf,sg=Qf,ag=nh;var cg=function(e,t,n){if(!ag(n))return!1;var i=typeof t;return!!("number"==i?og(n)&&sg(t,n.length):"string"==i&&t in n)&&rg(n[t],e)},lg=ig,ug=cg;var dg=function(e){return lg((function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&ug(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);++i<r;){var a=n[i];a&&e(t,a,i,o)}return t}))},hg=qm;dg((function(e,t,n){hg(e,t,n)}));document.querySelector(".upload-progress"),document.querySelector("#progressVal");const pg="badgesreceived";class fg{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=ba("feedLastUpdatedTime")}resetBadges(){So(this.badgeCountEls),So(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return _e(e?x(pc,"feedQueryAfterTime",e):pc).then((t=>{const n=JSON.parse(t.responseText);U(window,pg,{feedsCount:n.feedsCount}),this._counts=n;const i=Lo();return"messaging"===i&&(this._counts.messagingCount=0),"feed"===i||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this})).catch((()=>{U(window,pg,{feedsCount:0})}))}_renderBadges(){this.badgeCountEls.forEach((e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])})),this.badgeWithoutCountEls.forEach((e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])}))}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,To(e)):t!==n&&(t>0?(e.textContent=t,To(e),e.classList.toggle("singular",t<=1)):_o(e))}_setBadge(e,t){e&&(t>0?(To(e),e.classList.add("badge-with-no-count")):_o(e))}_updateCacheBustUrl(e){ba("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach((t=>{t.href=Ms(e?x(t.href,"pwa","noCache"):q(t.href))}))}}!function(){let e}();const mg="_lastUpdatedAt";class gg{constructor(e){this.storage=void 0===e?localStorage:e}read(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){console.error(e)}return null}write(e,t){try{this.storage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}remove(e){try{this.storage.removeItem(e)}catch(e){console.error(e)}}readWithExpiry(e,t){const n=this.read(e+mg);return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+mg,(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+mg)}}gg.instance||(gg.instance=new gg(localStorage)),gg.instance,gg.sessionInstance||(gg.sessionInstance=new gg(sessionStorage)),gg.sessionInstance;let vg;const yg="_self";function Eg(){return vg||(vg=new ya),vg}let bg;I.getInstance().addUnloadCallback((()=>{bg&&bg.close(),_o(document.querySelector("#discard-post-modal")),_o(document.querySelector("#visibility-settings-modal")),_o(document.querySelector("#max-images-prompt-modal")),_o(document.querySelector("#retry-upload-modal"))}));function wg(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,(e=>{e.refreshLoader()}))}const _g="selected";function Tg(e){const t=e.target.value;e.target.classList.toggle(_g,t),e.target.focus()}function Sg(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("select");i&&(i.addEventListener("change",Tg),i.value&&i.classList.add(_g))}else{document.querySelectorAll(".dropdown-container").forEach(Sg)}wg()}const Cg="input",Ig="change",kg="focus",Ag="input:cleared",Og="selected";function Lg(e){const t=e.currentTarget.parentElement.querySelector(Cg);t.value="",t.classList.remove(Og),t.focus(),U(t,Ag),U(t,Ig)}function Rg(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector(Cg);n&&i.setAttribute("placeholder",n),i.removeEventListener(kg,Rg)}function Ng(e){const t=e.target.value;e.target.classList.toggle(Og,t)}function Pg(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector(Cg),r=e.querySelector(".right");i.addEventListener(Ig,Ng),i.addEventListener(kg,Rg),r&&r.addEventListener("click",Lg)}else{document.querySelectorAll(".input-container").forEach(Pg)}wg()}const xg="MinLength",Mg="MaxLength",Dg="Regex",Ug="Required",Bg="RegexAllow",Fg={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{pattern:new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'),errorCode:"Email"},PHONE_NUMBER:{pattern:/(?:^((\+(?=[0-9]{1,4}))?))[0-9]{5,14}$/,errorCode:"PhoneNumber"}},qg="EMAIL_ADDRESS",Hg="PHONE_NUMBER",jg="OTHER",Gg="consentUnchecked",zg={INPUT:"INPUT",SELECT:"SELECT"},Wg="text",Kg="checkbox";function Vg(e){return Object.keys(zg).includes(e.tagName)}function Yg(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case jg:n&&t.push({type:xg,MinLength:n}),i&&t.push({type:Mg,MaxLength:i});break;case qg:t.push({type:Bg,RegexAllow:[Fg.EMAIL]});break;case Hg:o=e.value.replace(/ /g,""),t.push({type:Bg,RegexAllow:[Fg.PHONE_NUMBER]})}return{value:o||e.value,ruleSet:t}}(e),n=t.value;return t.ruleSet.map((e=>((e,t)=>{const n=t.trim();if(e)switch(e.type){case Ug:if(0===n.length)return Ug;break;case xg:if(n.length<e[xg])return xg;break;case Mg:if(n.length>e[Mg])return Mg;break;case Dg:for(let t=0;t<e[Dg].length;t++)if(e[Dg][t].pattern.test(n))return Dg+e[Dg][t].errorCode;break;case Bg:for(let t=0;t<e[Bg].length;t++)if(!e[Bg][t].pattern.test(n))return Bg+e[Bg][t].errorCode}})(e,n))).filter((e=>!!e))}function Qg(e,t){return t&&!e?Gg:null}const Xg=(e,t)=>parseInt(t.split(e)[1]);function Jg(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const Zg=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),$g=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function ev(e){const t=e.id+"_",n=t+"q",i=t+"c";return new Promise(((t,r)=>{const o=[];let s,a;const{urn:c}=e.dataset;a=e.dataset.leadTrackingParams,a||(s=e.closest("[data-lead-tracking-params]"),a=s.dataset.leadTrackingParams);const l={formResponse:{adFormUrn:c,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:a,trackingAction:"LEAD_FORM_CLICK"};return Array.from(e).filter(Vg).forEach((e=>{let t;if(e.tagName===zg.SELECT)t=((e,t)=>{const n=Xg(e,t.id),i=t.selectedIndex;return{response:$g(n,i)}})(n,e),l.formResponse.answers.push(t.response);else if(e.type===Wg)if(t=((e,t)=>{const n=Xg(e,t.id),i=Yg(t);return 0!==i.length?{errors:i}:{response:Zg(n,t.value)}})(n,e),t.response)l.formResponse.answers.push(t.response);else{const n=t.errors[0];o.push({element:e,errorType:n})}else e.type===Kg&&(t=((e,t,n,i)=>{const r=Xg(e,t),o=Qg(n,i);return o?{errors:o}:{response:{consentId:r,accepted:n}}})(i,e.id,e.checked,e.required),t.response?l.formResponse.consentResponses.push(t.response):o.push({element:e,errorType:t.errors}))})),0===o.length?t(l):r(o)}))}const tv=".lead-gen-input-container",nv=".error-text",iv="input-error",rv="aria-invalid",ov="role",sv="click";class av{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Pg(),Sg(),Ro("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const i=e.querySelector(".lead-gen-modal");this.modal=new mc(i,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(Vg).map((e=>this._hideError(e)))}_submitForm(){this._clearFormErrors(),ev(this.formEl).then((e=>{U(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.hideForm()})).catch((e=>{e.forEach((e=>this._setAndShowError(e.element,e.errorType)));const t=e[0];if(t){t.element.focus();ue(Jg(t.element,t.errorType),le.ASSERTIVE)}}))}_hideError(e){if(e){const t=e.closest(tv),n=t.querySelector(nv);_o(n),t.classList.remove(iv),e.removeAttribute(rv),n.removeAttribute(ov)}}_setAndShowError(e,t){if(e){const n=Jg(e,t),i=e.closest(tv),r=i.querySelector(nv);r.innerText=n,To(r),i.classList.add(iv),r.setAttribute(ov,"alert"),e.setAttribute(rv,"true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Kg)t=Qg(e.checked,e.required);else if(e.type===Wg){const n=Yg(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){this.formEl.addEventListener(sv,(e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)})),this.formEl.addEventListener(Ag,(e=>{this._handleInputError(e.target)})),this.formEl.addEventListener("keyup",(e=>{e.target.classList.contains("inputbox-input")&&this._handleInputError(e.target)})),this.formEl.querySelector(".submit-btn").addEventListener(sv,(e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()}))}}Re(av,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class cv{constructor(){this._eventTypes=new Map}addEventListener(e,t){this._eventTypes.has(e)||this._eventTypes.set(e,new Set),this._eventTypes.get(e).add(t)}removeEventListener(e,t){this._eventTypes.has(e)&&this._eventTypes.get(e).delete(t)}dispatchEvent(e){if(!this._eventTypes.has(e.type))return;this._eventTypes.get(e.type).forEach((t=>{t(e)}))}}new class{constructor(e,t){this.serviceWorker=e||"/service-worker.js",this.scope=t&&t.scope||"/",this._isPushSupported="serviceWorker"in navigator&&"Notification"in window&&"PushManager"in window&&"showNotification"in ServiceWorkerRegistration.prototype,this.eventEmitter=new cv}registerServiceWorker(){const e=this;if(this.isPushSupported())return navigator.serviceWorker.register(e.serviceWorker,{scope:e.scope}).then((()=>navigator.serviceWorker.ready)).then((e=>{if(e.active)return Promise.resolve(e);let t=e.installing||e.waiting;return new Promise((function(n,i){"activated"!==t.state?t&&t.addEventListener("statechange",(function r(){if("activated"===t.state)n(e);else{if("redundant"!==t.state)return;i(new Error("Service Worker Redundant"))}t.removeEventListener("statechange",r)})):n(e)}))}))}unRegisterServiceWorker(){if(this.isPushSupported())return navigator.serviceWorker.ready.then((e=>e.unregister())).then((()=>this._dispatchEvent("serviceWorkerUnRegistred",null)))}subscribe(){this.isPushSupported()&&"denied"!==Notification.permission&&navigator.serviceWorker.ready.then((e=>e.pushManager.subscribe({userVisibleOnly:!0}))).then((e=>this._dispatchEvent("pushSubscribed",e))).catch((e=>{"denied"!==this.getCurrentNotificationPermission()?this._dispatchEvent("pushSubscriptionDismiss",e):this._dispatchEvent("pushSubscriptionDenied",e)}))}unsubscribe(){let e=null;this.isPushSupported()&&navigator.serviceWorker.ready.then((e=>e.pushManager.getSubscription())).then((t=>t?(e=t,t.unsubscribe()):Promise.reject(new Error("User not subscribed to Push Notifications")))).then((()=>{this._dispatchEvent("pushUnSubscribed",e)})).catch((e=>{this._dispatchEvent("pushUnSubscribeFailure",e)}))}isPushSupported(){return this._isPushSupported}getCurrentSubscriptionId(){return navigator.serviceWorker.ready.then((e=>e.pushManager.getSubscription()))}getCurrentNotificationPermission(){return Notification.permission}_dispatchEvent(e,t){this.eventEmitter.dispatchEvent({type:e,data:t})}}("/mwlite/service-worker.js",{scope:"/"});const lv="#push-notification-prompt";document.querySelector(lv);function uv(e,t){return e&&t?"urn:li:control:".concat(t,"-").concat(e):null}const dv="[data-feed-control]",hv='[data-id="main-feed-card"]';function pv(e,t){const n=e.target.closest(dv),i=e.target.closest(hv),r=t||(null==i?void 0:i.dataset);if(!n||!r)return;const{feedControl:o,feedActionCategory:s,feedActionType:a}=n.dataset,{activityUrn:c,feedItemTrackingId:l}=r;window.tracking&&window.tracking.then((e=>{let t;const n=ba("trackingModuleKey"),i=j(document),r=Kr(i);t=Le({actionCategory:(null==s?void 0:s.toUpperCase())||"",actionType:a,controlUrn:uv(o,i),updateUrn:c,trackingId:l||e.generateBase64UUID(),moduleKey:n||"lite-feed:phone",requestId:""},r);try{var u,d;(null===(u=t)||void 0===u?void 0:u.actionCategory)&&(null===(d=t)||void 0===d?void 0:d.actionType)&&e.fireTrackingEvent("FeedActionEvent",t)}catch(e){}}))}class fv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,{onSelect:t=(()=>{}),onClipboardCopy:n=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.onSelect=t,this.onClipboardCopy=n;const i=ba("share-via-text"),r=ba("share-via-url");if(this.shareData={url:r},i&&(this.shareData.text=i),this.shareViaActionEl=e.querySelector("[data-share-via-action]"),!this.shareViaActionEl)throw new Error('Element with "data-share-via-action" attribute cannot be found');this.shareViaModalEl=e.querySelector(".share-via-modal"),this.shareViaModalEl&&(this.shareViaModal=new ro(this.shareViaModalEl)),this.bindEvents()}modalClickHandler(e){const t=T(e.target,"[data-action-copy-to-clipboard]");t?(this.onSelect(e,t),this.copyToClipboard.call(this,e)):this.onSelect(e,T(e.target,".share-via-action")),this.shareViaModal.close()}share(){navigator.canShare&&navigator.canShare(this.shareData)?navigator.share(this.shareData):this.shareViaModal&&this.shareViaModal.open()}copyToClipboard(){navigator.clipboard.writeText(this.shareData.url).then((()=>{this.onClipboardCopy(!0)})).catch((e=>{this.onClipboardCopy(!1,e)}))}bindEvents(){this.shareViaActionEl.addEventListener("click",this.share.bind(this)),this.shareViaModalEl&&this.shareViaModalEl.addEventListener("click",this.modalClickHandler.bind(this))}}const mv=["endpoint","headers","queryId","variables","pageKey"];function gv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{endpoint:t,headers:n={"Content-Type":"application/json"},queryId:i,variables:r={},pageKey:o}=e,s=Ne(e,mv);return _e(t,Le({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:o})},s))}const vv="FOLLOW_ACTIVE",yv="UNFOLLOW";class Ev{constructor(e,t,n){if(!e)throw Error("Missing FollowMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e,n&&(this.pageKey=n)}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};return gv({endpoint:this.endpoint,queryId:Ev.query,variables:{followState:e,to:t},pageKey:this.pageKey,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then((e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)})).catch(i)}}Re(Ev,"query","cbed571fffd8cea15209aed8d44e6759");const bv=Object.freeze({APPRECIATION:"APPRECIATION",ASSENT:"ASSENT",CELEBRATION:"CELEBRATION",EMPATHY:"EMPATHY",ENTERTAINMENT:"ENTERTAINMENT",INSPIRATION:"INSPIRATION",INTEREST:"INTEREST",LIKE:"LIKE",MAYBE:"MAYBE",PRAISE:"PRAISE",UNKNOWN:"UNKNOWN",USEFULNESS:"USEFULNESS"});Object.values(bv);const wv="CREATE",_v="DELETE",Tv="UPDATE";class Sv{constructor(e){if(!e)throw Error("Missing ReactionMutation endpoint");this.endpoint=e}execute(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const o={endpoint:this.endpoint,queryId:Sv.query,variables:{entityUrn:t,action:n}};return n!==wv&&n!==Tv||(o.variables.reactionType=e),gv(o).then((e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)})).catch(r)}}Re(Sv,"query","070ee23fd6fb77f92ac08f964ae1df29");const Cv="REACT",Iv="UNREACT",kv=".reactions-menu",Av='[data-id="reactions-menu"]',Ov="[data-reaction-type]",Lv=".selected-reaction",Rv=".like-button-default",Nv="aria-pressed",Pv="aria-expanded",xv="hidden",Mv="w-0",Dv="overflow-hidden",Uv=["relative","w-full","h-screen","no-scroll"],Bv="pointer-events-none",Fv="click",qv="touchstart",Hv="touchend";class jv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(kv,"__trigger"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,{endpoint:n,beforeReaction:i,onReaction:r,onReactionSuccess:o=(()=>{}),onReactionError:s=(()=>{}),shouldStopPropagation:a=!0,reactionsMenuPageViewEvent:c,fireLoggedInReactionTracking:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.triggerSelector=e,this.a11yTriggerSelector="".concat(e,"--a11y"),this.reactionsMenu=t.querySelector("#reactions-menu"),this.parentContainerElement=t,this._mutationInstance=new Sv(n),this.selectedReactionTemplate=t.querySelector("#selected-reaction"),!this.reactionsMenu)throw new Error("Cannot find ReactionsMenu template");this.beforeReaction=i,this.onReaction=r,this.onReactionSuccess=o,this.onReactionError=s,this.shouldStopPropagation=a,this.reactionsMenuPageViewEvent=c,this.triggers=t.querySelectorAll(this.triggerSelector),this.reactionsMenuClickHandler=this.handleReactionsClick.bind(this),this.isTouchActive=!1,this.isA11yTriggerActive=!1,this.fireLoggedInReactionTracking=l,this.bindEvents()}bindEvents(){me()?(this.parentContainerElement.addEventListener(qv,(e=>{e.target.closest(this.triggerSelector)&&(this.longPressTimer=setTimeout((()=>{e.preventDefault(),this.showReactions(e),this.handleFocusForReactionEl(this.getTouchEventTarget(e)),this.isA11yTriggerActive=!1}),334))})),this.parentContainerElement.addEventListener("touchmove",(e=>{e.target.closest(this.triggerSelector)&&clearTimeout(this.longPressTimer),this.isTouchActive=!0,this.handleFocusForReactionEl(this.getTouchEventTarget(e))})),this.parentContainerElement.addEventListener(Hv,(e=>{e.target.closest(this.triggerSelector)&&clearTimeout(this.longPressTimer),setTimeout((()=>{this.isReactionMenuVisible()&&!this.isA11yTriggerActive&&this.reactionsMenuClickHandler(e)}),100)}))):this.triggers.forEach((e=>{e.addEventListener("mouseenter",M(this.showReactions.bind(this),300)),e.addEventListener("mouseleave",M((()=>{!e.parentElement.matches(":hover")&&this.hideReactions.call(this)}),500))})),this.parentContainerElement.addEventListener(Fv,(e=>{if(e.target.closest(this.triggerSelector)){var t,n;const i=this.getContainerElement(e.target);null===(t=this.beforeReaction)||void 0===t||t.call(this,e),this.fireLoggedInReactionTracking&&this.fireReactionTracking(e),this.toggleReaction(i);const r=this.getCurrentReactionType(i);null===(n=this.onReaction)||void 0===n||n.call(this,e,r,this.getParentUrn(i)),this._mutationInstance.execute(r,this.getParentUrn(i),r?wv:_v,(e=>{this.onReactionSuccess(e)}),(e=>{this.onReactionError(e)}))}else e.target.closest(this.a11yTriggerSelector)&&(e.stopPropagation(),this.isA11yTriggerActive=!0,this.isReactionMenuVisible()?this.hideReactions(!1):this.showReactions(e))})),this.parentContainerElement.querySelectorAll(this.a11yTriggerSelector).forEach((e=>{e.addEventListener("focus",(e=>{e.target.classList.remove(Mv)})),e.addEventListener("blur",(e=>{!this.getContainerElement(e.target).querySelector(Av)&&e.target.classList.add(Mv)}))})),this.parentContainerEl!==document.body&&document.addEventListener(Fv,(e=>{this.isReactionMenuVisible()&&!e.target.closest(this.a11yTriggerSelector)&&this.hideReactions()}))}handleFocusForReactionEl(e){e?(e.focus(),e.classList.add("outline-none")):document.activeElement.blur()}getTouchEventTarget(e){const t=e.changedTouches[0];return T(document.elementFromPoint(t.clientX,t.clientY),Ov)}showReactions(e){if(!this.reactionsMenuEl){var t,n;let i=e.target;if(!e.target.classList.contains("reaction-menu")&&(i=this.getContainerElement(e.target),!i))return;this.renderReactionsMenu(i.querySelector(this.triggerSelector)),this.reactionsMenuPageViewEvent&&(null===(t=window.tracking)||void 0===t||t.then((e=>{Wr(e,"half",this.reactionsMenuPageViewEvent)}))),me()&&(this.isTouchActive=!0,!this.isA11yTriggerActive&&document.body.classList.add(Dv,Bv),document.documentElement.classList.contains("ios")&&document.body.classList.add(...Uv)),null===(n=this.a11yTriggerElement())||void 0===n||n.setAttribute(Pv,"true")}}hideReactions(){var e;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.reactionsMenuEl){var n,i;if(this.reactionsMenuEl.removeEventListener(Fv,this.reactionsMenuClickHandler),t)null===(n=this.getContainerElement(this.reactionsMenuEl))||void 0===n||null===(i=n.querySelector(this.a11yTriggerSelector))||void 0===i||i.classList.add(Mv);this.reactionsMenuEl.parentElement.removeChild(this.reactionsMenuEl),this.reactionsMenuEl=null}me()&&(this.isA11yTriggerActive=!1,document.body.classList.remove(Dv,Bv,...Uv),document.removeEventListener(qv,this.documentTouchStartHandler.bind(this)),document.removeEventListener(Hv,this.documentTouchEndHandler.bind(this))),null===(e=this.a11yTriggerElement())||void 0===e||e.setAttribute(Pv,"false")}isReactionMenuVisible(){return Boolean(this.reactionsMenuEl)}getActionType(e,t){return e&&t?t!==e?Tv:null:t?wv:_v}fireReactionTracking(e){let t=e.target;if("touchend"===e.type){const n={},i=e.changedTouches[0],r=document.elementFromPoint(i.clientX,i.clientY);t=null==r?void 0:r.closest("[data-reaction-type]"),n.target=t,pv(n)}else pv(e);e.stopPropagation()}handleReactionsClick(e){var t,n;let i;var r;e.type===Hv?i=this.getTouchEventTarget(e):i=null===(r=e.target)||void 0===r?void 0:r.closest(Ov);if(null===(t=i)||void 0===t||null===(n=t.dataset)||void 0===n||!n.reactionType)return;const o=this.getContainerElement(e.target),s=this.getCurrentReactionType(o),a=this.getParentUrn(o);let c,l;if(i){var u,d,h,p;if(null===(u=this.beforeReaction)||void 0===u||u.call(this,e),this.fireLoggedInReactionTracking&&this.fireReactionTracking(e),this.setReaction(i.dataset.reactionType,o),null===(d=this.getContainerElement(o))||void 0===d||null===(h=d.querySelector(this.triggerSelector))||void 0===h||h.focus(),c=this.getCurrentReactionType(o),l=this.getActionType(s,c),l)null===(p=this.onReaction)||void 0===p||p.call(this,e,c,a),this._mutationInstance.execute(c,this.getParentUrn(o),l,(e=>{this.onReactionSuccess(e)}),(e=>{this.onReactionError(e)}));this.shouldStopPropagation&&e.stopPropagation()}}documentTouchStartHandler(e){e.target.closest(Av)&&e.target.closest(this.triggerSelector)?this.isTouchActive=!0:this.isTouchActive=!1}documentTouchEndHandler(){!this.isTouchActive&&setTimeout((()=>this.isReactionMenuVisible()&&!this.isA11yTriggerActive&&this.hideReactions()),100)}renderReactionsMenu(e){const t=this.reactionsMenu.content.firstElementChild.cloneNode(!0);t&&e&&(this.reactionsMenuEl=this.getContainerElement(e).appendChild(t),this.reactionsMenuEl.addEventListener(Fv,this.reactionsMenuClickHandler),me()&&(document.addEventListener(qv,this.documentTouchStartHandler.bind(this)),document.addEventListener(Hv,this.documentTouchEndHandler.bind(this))))}maybeHideReactions(e){T(e.target,Ov)||this.hideReactions()}setReaction(e,t){const n="".concat(Lv,"--").concat(e),i=this.selectedReactionTemplate.content.querySelector(n).cloneNode(!0),r=t.querySelector(Lv),o=t.querySelector(Rv);r?r.remove():o.classList.add(xv),t.querySelector(this.triggerSelector).setAttribute(Nv,"true"),i.classList.add("selected-reaction"),o.parentElement.insertBefore(i,o),this.postReactionChangeCallback(e,t)}toggleReaction(e){const t=e.querySelector(Lv),n=e.querySelector(Rv);if(t)return t.remove(),e.querySelector(this.triggerSelector).setAttribute(Nv,"false"),n.classList.remove(xv),void this.postReactionChangeCallback("",e);this.setReaction(bv.LIKE,e)}postReactionChangeCallback(e,t){const n=(e?"un".concat(e):"".concat(bv.LIKE)).toLowerCase()+"Update";this.hideReactions(),t.querySelector(this.triggerSelector).setAttribute("data-social-reaction",e),t.querySelector(this.triggerSelector).setAttribute("data-feed-action-type",n),t.querySelector(this.triggerSelector).setAttribute("data-feed-action-category",e?Iv:Cv)}getCurrentReactionType(e){return e.querySelector(this.triggerSelector).dataset.socialReaction}getParentUrn(e){return e.querySelector(this.triggerSelector).dataset.parentUrn}getContainerElement(e){return e.closest(kv)}getContainerElementFromParentUrn(e){const t=this.parentContainerElement.querySelector("".concat(this.triggerSelector,'[data-parent-urn="').concat(e,'"]'));return null==t?void 0:t.closest(kv)}a11yTriggerElement(){return this.parentContainerElement.querySelector(this.a11yTriggerSelector)}}class Gv{constructor(e){let{endpoint:t,errorCallback:n=(()=>{}),globalWindow:i=window,onFollowSuccess:r=(()=>{}),onUnfollowSuccess:o=(()=>{}),pemDegradationTrackingMetadata:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");this._el=e,this._errorCallback=n,this._successCallbackForFollow=r,this._successCallbackForUnfollow=o,this._window=i,this._followButtonEl=e.querySelector(".follow-button__follow"),this._followingButtonEl=e.querySelector(".follow-button__following"),this._mutationInstance=new Ev(t,s,a),this._entityUrn=e.getAttribute("data-entity-urn"),this._initEventListeners()}_initEventListeners(){this._followButtonEl.addEventListener("click",(e=>{e.preventDefault(),this._showFollowingButton(),this._mutationInstance.execute(vv,this._entityUrn,(e=>{this._successCallbackForFollow(e)}),(e=>{this._hideFollowingButton(),this._errorCallback(e)}))})),this._followingButtonEl.addEventListener("click",(e=>{e.preventDefault(),this._hideFollowingButton(),this._mutationInstance.execute(yv,this._entityUrn,(e=>{this._successCallbackForUnfollow(e)}),(e=>{this._showFollowingButton(),this._errorCallback(e)}))}))}_showFollowingButton(){var e,t,n,i;null===(e=this._followButtonEl)||void 0===e||null===(t=e.classList)||void 0===t||t.add("hidden"),null===(n=this._followingButtonEl)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),this._followingButtonEl.focus()}_hideFollowingButton(){var e,t,n,i;null===(e=this._followingButtonEl)||void 0===e||null===(t=e.classList)||void 0===t||t.add("hidden"),null===(n=this._followButtonEl)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),this._followButtonEl.focus()}}const zv='[data-item-type="semaphore"]',Wv=".comment",Kv="data-feed-action";class Vv{constructor(e){let{deleteComment:t=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Control menu element is required");this.ellipsisMenu=new Du(e),this.commentEl=e.closest(Wv);const n=e.querySelector(".collapsible-dropdown__list");if(n.querySelector(zv)&&(this.semaphore=new Mu(zv,n,this._handleSemaphoreSubmitAction.bind(this))),n.querySelector('[data-feed-action="delete-comment"]')){const e=this.commentEl.querySelector("#modal-delete-confirmation-wrapper");this.deleteConfirmationModal=new ed(e,(e=>t(e,this.commentEl)),(()=>{}),{triggerByOutletEl:!1})}n.addEventListener("click",this.handleControlMenuActions.bind(this))}_handleSemaphoreSubmitAction(){_o(this.commentEl);const e=this.commentEl.parentNode,t=this.commentEl.querySelector("#comment-reported-card-template"),n=document.importNode(t.content,!0);e.appendChild(n)}handleControlMenuActions(e){const t=e.target.closest("[data-feed-action]"),n=e.target.closest(Wv);t&&t.getAttribute(Kv)&&n&&"delete-comment"===t.getAttribute(Kv)&&this.deleteConfirmationModal.modal.open()}}class Yv{constructor(e){let{isLoggedIn:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)throw new Error("Invalid element argument passed to GraphQLComment");this._el=e,this._isLoggedIn=t,this._initCommentImageViewer()}_initCommentImageViewer(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".comment__images-content"),t=this._el.querySelector(".image-viewer-modal-wrapper");e&&t&&(this.imageViewerModal=new td(t,{shouldMoveToTopContainer:!1}),e.addEventListener("click",(e=>{const t=e.target.closest("[data-position]");t&&this.imageViewerModal.open(t.dataset.position,{focusElement:t.querySelector("button")})})))}}const Qv=".comment__reaction",Xv="hidden";class Jv extends Yv{constructor(e){let{isLoggedIn:t=!1,onReaction:n,deleteComment:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)throw new Error("Invalid element argument passed to GraphQLCommentWithAction");super(e,{isLoggedIn:t}),this._el=e,this._isLoggedIn=t,this.onReaction=n,this.deleteComment=i,this._ellipsisMenu=this._initEllipsisMenu(),this._isLoggedIn&&this._initCommentReactionClickHandlers()}_initEllipsisMenu(){const e=this._el.querySelector(".ellipsis-menu");return this._isLoggedIn?new Vv(e,{deleteComment:this.deleteComment}):e&&new Du(e)}_reactionClickHandler(e){var t;const n=e.target.closest(".comment__actions"),i=n.querySelector("".concat(Qv,".").concat(Xv)),r=n.querySelectorAll(Qv),o=n.querySelectorAll(".comment__reactions-count");r.forEach((e=>e.classList.toggle(Xv))),o.forEach((e=>e.classList.toggle(Xv))),null===(t=this.onReaction)||void 0===t||t.call(this,e,i.dataset.reactionType)}_initCommentReactionClickHandlers(){this._el.addEventListener("click",(e=>{(e.target.classList.contains("comment__reaction")||e.target.closest(Qv))&&this._reactionClickHandler(e)}))}}const Zv=Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});class $v{constructor(){let{commentContainerClass:e="comments__container",commentBoxClass:t="comments__comment-text",postCommentBtnClass:n="comments__post-btn",templateSelector:i="#comment-template",templateSelectors:r={message:".comment__message",commentText:".comments__comment-text",postButton:".comments__post-btn"}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.commentContainerClass=e,this.commentContainers=document.querySelectorAll(".".concat(e)),this.commentBoxClass=t,this.commentTextBoxen=document.querySelectorAll(".".concat(e," .").concat(t)),this.postCommentBtnClass=n,this.templateSelector=i,this.templateSelectors=r,this.containerMap={},this.bindEvents()}bindEvents(){this.commentContainers.forEach((e=>{e.addEventListener("click",this.postComment.bind(this))})),this.commentTextBoxen&&this.commentTextBoxen.forEach((e=>{e.addEventListener("input",this.enableDisablePostButton.bind(this))})),document.body.addEventListener(Zv.NEW_COMMENT_SUCCESS_EVENT,this.renderNewComment.bind(this))}postComment(e){if(e.target.classList.contains(this.postCommentBtnClass)){const t=e.target.closest(".".concat(this.commentContainerClass));if(t){const n=t.querySelector(".".concat(this.commentBoxClass));if(n){const t=n.dataset.threadUrn;t in this.containerMap||(this.containerMap[t]=e.currentTarget),U(document.body,Zv.NEW_COMMENT_CREATE_EVENT,{comment:n.value,threadUrn:t})}}}}enableDisablePostButton(e){const t=e.target,n=t.value.trim().length>0;for(let e=t.nextElementSibling;e;e=e.nextElementSibling)e.classList.contains(this.postCommentBtnClass)&&e.classList.toggle("hidden",!n)}renderNewComment(e){const{entityUrn:t,graphqlResponse:n}=e.detail;if(this.containerMap[t]){const e=this.containerMap[t],i=document.querySelector(this.templateSelector).content.firstElementChild.cloneNode(!0);Ds(i.querySelector(this.templateSelectors.message),n.comment.message[0].text),e.parentElement.insertBefore(i,e.nextSibling),e.querySelector(this.templateSelectors.commentText).value="",e.querySelector(this.templateSelectors.postButton).classList.add("hidden"),this.refreshLazyLoader()}}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then((e=>{e.refreshLoader()}))}}class ey{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".social-action-counts__social-comments-counts";this.selector=e,this.bindEvents()}bindEvents(){document.body.addEventListener("Comment:newComment:success",(e=>{const t=e.detail.entityUrn;if(t){const e=document.querySelector("".concat(this.selector,'[data-entity-urn="').concat(t,'"]'));if(e){this._maybeInitPluralRules(e);const t=(parseInt(e.dataset.numComments)||0)+1;this._formatDisplayText(e,t)}}})),document.body.addEventListener("Comment:removeComment:success",(e=>{const t=e.detail.entityUrn;if(t){const e=document.querySelector("".concat(this.selector,'[data-entity-urn="').concat(t,'"]'));if(e){this._maybeInitPluralRules(e);let t=parseInt(e.dataset.numComments)||0;t>=1&&(t-=1),this._formatDisplayText(e,t)}}}))}_formatDisplayText(e,t){const n=this.plRules.select(t),i=this.plMap[n]||this.plMap.other;e.dataset.numComments=t,e.textContent=i.replace("%numComments%",(new Intl.NumberFormat).format(t))}_maybeInitPluralRules(e){this.plRules&&this.plMap||(this.plRules=new Intl.PluralRules,this.plMap={one:e.dataset.numCommentsSingular,other:e.dataset.numCommentsPlural})}}const ty="Comment:newComment:success",ny="Comment:deleteComment:success",iy="Reaction:newReaction:success",ry="Reaction:deleteReaction:success";class oy{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'[data-id="social-actions__reactions"]',t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'[data-id="social-actions__comments"]';this.reactionsSelector=e,this.commentsSelector=t,this.bindEvents()}bindEvents(){this.commentCountEventHandler(ty),this.commentCountEventHandler(ny),this.reactionCountEventHandler(iy),this.reactionCountEventHandler(ry)}commentCountEventHandler(e){document.body.addEventListener(e,(t=>{const{entityUrn:n}=t.detail;if(n){const t=document.querySelectorAll("".concat(this.commentsSelector,'[data-entity-urn="').concat(n,'"]'));null!=t&&t.length&&t.forEach((t=>{this.maybeInitPluralRules(t);let n=parseInt(t.dataset.numComments,10);e===ty?n+=1:e===ny&&n&&(n-=1);const i=this.plRules.select(n),r=this.plMap[i];t.dataset.numComments=n,t.textContent=n?r.replace("%numComments%",(new Intl.NumberFormat).format(n)):""}))}}))}reactionCountEventHandler(e){document.body.addEventListener(e,(t=>{const{entityUrn:n}=t.detail,{reactionType:i}=t.detail;if(n){const t=document.querySelectorAll("".concat(this.reactionsSelector,'[data-entity-urn="').concat(n,'"]'));null!=t&&t.length&&t.forEach((t=>{this.maybeInitPluralRules(t);let r=parseInt(t.dataset.numReactions,10);e!==iy||t.dataset.isSelfReaction?e===ry&&r&&(r-=1,delete t.dataset.isSelfReaction):(r+=1,t.dataset.isSelfReaction="true");const o=this.plRules.select(r),s=this.plMap[o];t.dataset.numReactions=r,t.querySelector("span").textContent=r?s.replace("%numReactions%",(new Intl.NumberFormat).format(r)):"";const a=t.querySelectorAll("img");if(e===iy&&a.length<3&&!t.querySelector('img[data-reaction-type="'.concat(i,'"]'))){const e=t.querySelector("span"),o=document.createElement("img");if(o.dataset.delayedUrl=ba("social-actions__reaction-image-".concat(i)),o.dataset.reactionType=i,o.dataset.singleSelfReaction="true",e.parentElement.insertBefore(o,e),1===r){const e=t.parentElement.querySelector("".concat(this.commentsSelector,'[data-entity-urn="').concat(n,'"]'));null==e||e.classList.add("before:middot")}window.lazyloader.then((e=>e.refreshLoader()))}else if(e===ry){const e=t.querySelector("[data-single-self-reaction]");if(null==e||e.remove(),0===r){const e=t.parentElement.querySelector("".concat(this.commentsSelector,'[data-entity-urn="').concat(n,'"]'));null==e||e.classList.remove("before:middot")}}}))}}))}maybeInitPluralRules(e){this.plRules=new Intl.PluralRules,this.plMap={one:e.dataset.singular,other:e.dataset.plural}}}class sy{constructor(e){if(!e)throw new Error("No element passed into to full lockout component");this.el=e,this.moreArticlesEl=e.querySelector(".more-articles__slide-list"),this.moreArticlesEl&&new Uo(this.moreArticlesEl)}}class ay extends HTMLElement{connectedCallback(){this.update(),this.syncA11yCaption(),this.setAttribute("aria-hidden","true"),handleLargeIcon(this)}disconnectedCallback(){this.removeA11yCaption()}static get observedAttributes(){return["a11y-text","type","class"]}attributeChangedCallback(e){ATTRS_TRIGGERING_UPDATE.indexOf(e)>-1&&this.update(),"a11y-text"===e&&this.syncA11yCaption(),"type"!==e&&"class"!==e||handleLargeIcon(this)}update(){const e=this.getAttribute("type"),t=this.getAttribute("category")||"ui",n="true"===this.dataset.inlineSvg;(e||t)&&(n||setIcon(this,t,e))}installA11yCaption(){const{parentNode:e,a11yCaption:t}=this;e&&t&&!t.parentNode&&e.insertBefore(t,this)}removeA11yCaption(){const{a11yCaption:e}=this;e&&e.parentNode&&e.parentNode.removeChild(e),this.a11yCaption=null}syncA11yCaption(){const{a11yCaption:e}=this,t=this.getAttribute("a11y-text");t?e?e.textContent=t:(this.a11yCaption=(e=>{const t=document.createElement("span");return t.setAttribute("class","a11y-text"),t.textContent=e,t})(t),this.installA11yCaption()):this.removeA11yCaption()}}const cy="light";cy.toUpperCase();const ly={PRIMARY_ACTION:"PRIMARY_ACTION",SECONDARY_ACTION:"SECONDARY_ACTION",SKIP:"SKIP",DISMISS:"DISMISS"},uy={LEGO_PAGE_IMPRESSION_EVENT:"/mwlite/lego/sendPageImpressionEvent/",LEGO_WIDGET_IMPRESSION_EVENT:"/mwlite/lego/sendWidgetImpressionEvent/",LEGO_WIDGET_ACTION_EVENT:"/mwlite/lego/sendWidgetActionEvent/"};function dy(e,t){_e(e,{method:"POST",postData:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).catch((()=>{}))}var hy=Object.freeze({__proto__:null,ACTION_CATEGORY:ly,LEGO_TRACKING_URLS:uy,fireLegoEvent:dy});class py{constructor(e){if(!e)throw new Error("No element passed into the XandrAdFallback component.");this.el=e,this.googleSignInCtaEl=this.el.querySelector(".google-sign-in-cta-widget"),this.googleSignInCtaEl&&new kl(this.googleSignInCtaEl,{initFailure:this._onGoogleSignInInitFailure.bind(this)})}_onGoogleSignInInitFailure(){this.googleSignInCtaEl&&this.googleSignInCtaEl.parentNode.removeChild(this.googleSignInCtaEl)}}const fy=Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});class my{constructor(e){let{member:t=14911,debugModeEnabled:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)throw Error("An array of ad targets must be provided to Xandr");this.xandrAdElements=e,this.member=t,this.debugModeEnabled=n,this.shouldLoadXandrAds?this._initXandrAds():this.xandrAdElements.forEach((e=>{this._showFallbackUI(e.getAttribute("target-id"))}))}_initXandrAds(){return window.apntag={},window.apntag.anq=[],window.lazyloader.then((e=>e.getLazyLoadedJavascriptModule("xandr-lib"))).then((()=>{window.apntag.anq.push(function(){window.apntag.setPageOpts({member:this.member})}.bind(this)),this.debugModeEnabled&&(window.apntag.debug=!0,window.apntag.debug_member=this.member,window.apntag.dongle="test"),this.xandrAdElements.forEach((e=>{this._defineTag(e)})),window.apntag.anq.push((function(){window.apntag.loadTags()}));["adBadRequest","adNoBid","adError","adRequestFailure"].forEach((e=>{window.apntag.anq.push((()=>{window.apntag.onEvent(e,(e=>{this._showFallbackUI(e.targetId)}))}))})),this.xandrAdElements.forEach((e=>{this._showTag(e)}))}))}_defineTag(e){const t=parseInt(e.getAttribute("tag-id")),n=[[300,250]],i=e.getAttribute("target-id");window.apntag.anq.push((function(){window.apntag.defineTag({tagId:t,sizes:n,targetId:i,disablePsa:!0,enableSafeFrame:!0})}))}_showTag(e){const t=e.getAttribute("target-id");window.apntag.anq.push((function(){window.apntag.showTag(t)}))}_showFallbackUI(e){const t=document.querySelector('[target-id="'.concat(e,'"]')),n=t.querySelector(".xandr-ad_fallback-container");if(n){n.classList.remove("invisible");const e=n.querySelector(".xandr-ad-fallback");e?new py(e):U(t,fy.EVENT_FALLBACK_UI_SHOWN)}}_getEmbeddedContentAtIndexOf(e,t){let n=ba(e);return n=n.substring(n.indexOf(t)),n}_getEmbeddedContentAfterIndexOf(e,t){let n=ba(e);return n=n.substring(n.indexOf(t)+t.length),n}get shouldLoadXandrAds(){const e=_().consent.optedInConsentMap[a.ADVERTISING],t=z();return e&&!t}}const gy="#share-modal .modal-content .reshare-section",vy="data-post-visibility",yy='input[name="share-with"]:checked',Ey="share-modal",by="#share-modal",wy="close",_y="click",Ty="data-control-action",Sy="keydown",Cy=document.querySelector("#share-modal .textarea"),Iy=document.querySelector(".image-preview-wrapper"),ky=document.querySelector(gy),Ay=document.querySelector(".post-button"),Oy=document.querySelector("#comments-enabled"),Ly=document.querySelector("#share-with-public"),Ry=document.querySelector(".post-settings-wrapper"),Ny=document.querySelector(yy),Py=document.querySelector("#share-modal .close-button"),xy=document.querySelector("#visibility-settings-modal"),My=document.querySelector("#visibility-header-back .close-button"),Dy=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),Uy=document.querySelector("#discard-post-modal-wrapper"),By=document.querySelector(by),Fy=document.querySelector(".modal-spinner"),qy=document.querySelector("#share-modal .textarea"),Hy=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const jy=document.querySelector("#share-with-network");class Gy extends mc{updatePostButtonStatus(){var e;const t=null===(e=Cy.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===Iy.getAttribute("data-image-load-state"),i=ky.children.length;t||n||i?ko(Ay):Io(Ay)}clearModalContentBase(){ky&&(ky.textContent=""),Cy&&(Cy.textContent=""),Oy&&(Oy.checked=!0),Ly&&(Ly.checked=!0,Ry.setAttribute(vy,Ny.value))}historyBackClickHandler(){window.history.state!==Ey&&"typeahead"!==window.history.state&&(window.history.pushState(Ey,"show-share-modal",by),Py.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[".concat(Ty,"]"))||t.querySelector("[".concat(Ty,"]"));n&&window.tracking.then((e=>{e.fireControlInteractionEvent(n.getAttribute(Ty))}))}xy.addEventListener(wy,(()=>{Ry.setAttribute(vy,document.querySelector(yy).value)})),My.addEventListener(_y,(()=>window.history.back())),Dy.addEventListener(_y,(t=>e(t))),Dy.addEventListener(Sy,(t=>{if(13===t.keyCode){const n=t.target.querySelector("input[type=radio]");n&&(n.checked=!0,e(t))}}))}discardPostConfirmationModalPrimaryActionCallback(e){let{enableHistoryBack:t}=e;this.close({enableHistoryBack:t}),Ao()&&"discard-post-modal"===window.history.state&&setTimeout((()=>{window.history.back()}),100)}postSettingsClickHandler(){window.tracking.then((e=>{e.fireControlInteractionEvent("post-settings")})),this.visibilitySettingsModal.open()}}class zy extends Gy{constructor(e,t){let{endpoint:n="",enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!1,pushState:s=!1,historyUpdateUrl:a}=t;super(e,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,pushState:s}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=a,this.postUrn=ba("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new mc(xy,{triggerByOutletEl:!1}),this.handleOpenByUrl()}bindPublishingShareEvents(){this.shareTextEvents(),this.bindShareModalEvents(),this.bindVisibilityModalEvents()}_checkIfOpenShareModalByLink(){const e=new URL(location.href);return!0===Boolean(e.searchParams.get("openShareModal"))}handleOpenByUrl(){this.openShareModalByLink&&this.open()}shareTextEvents(){const e=M(this.updatePostButtonStatus,300);qy.addEventListener("input",e)}bindShareModalEvents(){const e=new ed(Uy,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),(()=>{}),{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});By.addEventListener("open",(()=>{Cy.focus()})),By.addEventListener(wy,(()=>{this.clearModalContentBase(),_o(Fy)})),Ay.addEventListener(_y,(()=>{this.processPostData()})),Py.addEventListener(_y,(()=>{Ay.disabled?this.close():e.modal.open()})),Ry.addEventListener(_y,this.postSettingsClickHandler.bind(this)),Ry.addEventListener(Sy,(e=>{13===e.keyCode&&this.postSettingsClickHandler.apply(this)}))}open(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultText:n}=t;this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),super.open(),this._checkIfOpenShareModalByLink()&&this._removeShareParams(),this.renderShareArticleShareSection(),Oo()&&window.scrollTo(0,0),n&&(qy.textContent=n),this.shareData={},this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),this.isNewPost=!1,this.postUrn&&(this.shareData.reshareUrn=this.postUrn,this.shareData.attributedShareUrn=this.postUrn),null===(e=window.lazyloader)||void 0===e||e.then((e=>{e.refreshLoader()})),this.updatePostButtonStatus()}renderShareArticleShareSection(){const e=this.el.querySelector(gy);e.children.length?this.shareArticleNodeChild=e.children[0].cloneNode(!0):e.appendChild(this.shareArticleNodeChild)}composePostData(){this.shareData.text=qy.textContent,this.shareData.visibility="PUBLIC",Hy&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=Hy.value),jy.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){To(Fy),this.composePostData(),gv({endpoint:this.endpoint,queryId:zy.query,variables:this.shareData}).then((e=>{var t,n;200!==e.status&&Promise.reject();const i=(null===(t=JSON.parse(null==e?void 0:e.responseText).graphQL)||void 0===t||null===(n=t.createPost)||void 0===n?void 0:n.activityUrn)||Promise.reject();window.tracking.then((e=>{Wr(e,"ajax","post_success_page_key")})),Eg().trigger("success",ba("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:ba("postSuccessViewPost"),target:yg}),this.close()})).catch((()=>{window.tracking.then((e=>{Wr(e,"ajax","post_failure_page_key")})),Eg().trigger("error",ba("postFailureMessage"),"post-error-toast-dismiss"),this.close()}))}close(){super.close({enableHistoryBack:!this.openShareModalByLink})}_removeShareParams(){var e;const t=new URL(window.location.href);null===(e=t.searchParams)||void 0===e||e.delete("openShareModal"),window.history.pushState({},document.title,t.toString())}}Re(zy,"query","971e319c05beaf333e94125db8c4f942");const Wy={legoTrackingUtils:hy,getPageInstance:Yr,getEventBody:Kr,firePageViewEvent:Wr,fireViewModuleImpressionEvent:Vr,getTrackingInstance:function(){let{appId:e="seo",appVersion:t="0.0.0",locale:n,multiproduct:i="undefined-frontend-mpName",service:r="undefined-frontend-serviceName",callTreeId:o=null,endpoint:s="li/track",maxSize:a=10,debounceTime:c=50,disableCompression:l=!1,customDelegate:u={},retryConfig:d=null,isLoggedIn:h=!1,customTransporterHosts:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const f={appId:e,appVersion:t,locale:n,multiproduct:i,service:r,endpoint:s,disableCompression:l,retryConfig:d,api:{AbortController,location:window.location,document,performance,PerformanceObserver,Promise,assign:Object.assign,fetch,sendBeacon:navigator.sendBeacon.bind(navigator)},batching:{maxSize:a,debounceTime:c}};o&&(f.treeID=o);const m=new pi(f),g=new wi(m,Le({customTransporterHosts:p,preTransporter:e=>Le(Le({},e),{},{meta:Xr(e.meta)}),shouldAnonymizeMemberId:()=>!!d&&!h},u));return g}},Ky="one_tap",Vy="one-tap-auto-login";function Yy(e){"complete"===document.readyState?e():window.addEventListener("load",(()=>{e()}))}function Qy(e,t){const n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}!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,r=n.length;i<r;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 Xy="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",Jy={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Zy={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},$y={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},eE={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},tE={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"}},{GOOGLE_ERROR:nE,GOOGLE_USER_FETCHED:iE,INITIALIZED:rE}=Jy,{INITIALIZATION:oE,AUTHENTICATION:sE}=Zy;class aE extends EventTarget{constructor({libSrcPath:e,el:t,clientId:n=Xy}){if(super(),!t)throw TypeError("DOM element for Sign In button is required");if(this.libSrcPath=e,this.el=t,this.clientId=n,window.gapi)this._initializeGoogleAuth();else{if(!e)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");Yy((()=>{Qy(e,this._initializeGoogleAuth.bind(this))}))}}_initializeGoogleAuth(){return gapi.auth2.init({client_id:this.clientId}).then((e=>{this.auth2=e,this._attachSignIn();const t=new CustomEvent(rE);this.dispatchEvent(t)})).catch((e=>{const t={type:oE,message:e.error},n=new CustomEvent(nE,{detail:t});this.dispatchEvent(n)}))}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},(e=>{const t=new CustomEvent(iE,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)}),(e=>{const t={type:sE,message:e.error},n=new CustomEvent(nE,{detail:t});this.dispatchEvent(n)}))}_getGoogleUserInformation(e){const t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}const{GOOGLE_USER_FETCHED:cE,PROMPT_MOMENT:lE}=Jy;class uE extends EventTarget{constructor({autoSelect:e=!1,libSrcPath:t,containerId:n,context:i,clientId:r=Xy,cancelOnTapOutside:o=!0}){if(super(),!i)throw TypeError("context param is required to determine the message to show in Google One Tap");if(this.autoSelect=e,this.libSrcPath=t,this.containerId=n,this.cancelOnTapOutside=o,this.clientId=r,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");Yy((()=>{Qy(t,this._onGoogleApiLoad.bind(this))}))}}_onGoogleApiLoad(){return google.accounts.id.initialize({auto_select:this.autoSelect,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===$y.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;const t=new CustomEvent(cE,{detail:n});this.dispatchEvent(t)}}_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:tE.SKIPPED.ISSUING_FAILED,type:eE.SKIPPED},n=new CustomEvent(lE,{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(lE,{detail:t});this.dispatchEvent(n),this.checkIfDesktopAndApplyClass()}))}hideOneTap(){google.accounts.id.cancel()}checkIfDesktopAndApplyClass(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){const e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}var dE={exports:{}};function hE(e){this.message=e}hE.prototype=new Error,hE.prototype.name="InvalidCharacterError";var pE="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new hE("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};var fE=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(pE(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return pE(t)}};function mE(e){this.message=e}mE.prototype=new Error,mE.prototype.name="InvalidTokenError",dE.exports=function(e,t){if("string"!=typeof e)throw new mE("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(fE(e.split(".")[n]))}catch(e){throw new mE("Invalid token specified: "+e.message)}},dE.exports.InvalidTokenError=mE;dE.exports;const{GOOGLE_USER_FETCHED:gE,PROMPT_MOMENT:vE}=Jy;class yE extends EventTarget{constructor({autoSelect:e=!1,libSrcPath:t,clientId:n=Xy,showOneTap:i=!0,promptParentId:r,buttonParentEl:o,gsiButtonConfig:s={},context:a="signin",cancelOnTapOutside:c=!0}){if(super(),this.autoSelect=e,this.libSrcPath=t,this.clientId=n,this.showOneTap=i,this.promptParentId=r,this.buttonParentEl=o,this.gsiButtonConfig=s,this.cancelOnTapOutside=c,this.context=a,this.isLibraryLoaded=function(){let e,t;const n=new Promise(((e,t)=>{e,t}));return n.resolve=e,n.reject=t,n}(),window.google&&window.google.accounts&&window.google.accounts.id)this._onGoogleApiLoad();else{if(!t)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");Yy((()=>{Qy(t,this._onGoogleApiLoad.bind(this))}))}}_onGoogleApiLoad(){return this.isLibraryLoaded.resolve(),window.google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.promptParentId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:GSI_CONTEXT[this.context].GOT}),Promise.resolve().then((()=>this.showGsiUI()))}showGsiUI(){this.buttonParentEl&&this.renderGSIButton(this.buttonParentEl,this.gsiButtonConfig),this.showOneTap&&this.promptOneTap()}renderGSIButton(e,{logo_alignment:t="center",shape:n="pill",size:i="large",text:r,theme:o,type:s,width:a="400px"}){return this.isLibraryLoaded.then((()=>{const c=r||GSI_CONTEXT[this.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{logo_alignment:t,shape:n,size:i,text:c,theme:o,type:s,width:a})}))}promptOneTap(){return this.isLibraryLoaded.then((()=>{window.google.accounts.id.prompt((e=>{const t={type:e.getMomentType(),reason:e.getNotDisplayedReason()||e.getSkippedReason()||e.getDismissedReason()},n=new CustomEvent(vE,{detail:t});this.dispatchEvent(n),this.checkIfDesktopAndApplyClass()}))}))}_handleCredentialResponse({credential:e,select_by:t}){const n=jwtDecode(e),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vanilla_ownKeys(Object(n),!0).forEach((function(t){vanilla_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vanilla_ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this._getBasicProfile(n),{idToken:e,selectedBy:t});if(i){const e=new CustomEvent(gE,{detail:i});this.dispatchEvent(e)}}_getBasicProfile(e){const{email:t,family_name:n,given_name:i,sub:r,picture:o}=e;return{email:t,familyName:n,givenName:i,id:r,imageUrl:o}}hideOneTap(){window.google.accounts.id.cancel()}checkIfDesktopAndApplyClass(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){const e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}const EE={CLIENT_ID:Xy,EVENTS:Jy,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:Zy,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GOT_CONTEXTS:$y,GOT_PROMPT_MOMENT_REASONS:tE,GOT_PROMPT_MOMENT_TYPES:eE};function bE(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}const wE=Y.getPageKey(document).replace("_jsbeacon","");function _E(e,t,n){window.tracking&&window.tracking.then((i=>{if(t&&e.appendChild(function(e){return bE("controlId","".concat(wE,"-").concat(e.dataset.trackingControlName))}(t)),e.appendChild(function(e){const t=e.state&&e.state.currentPageInstance||{};return bE("pageInstance","".concat(t.pageUrn,";").concat(t.trackingId))}(i)),n){const e="".concat(wE,"_").concat(n);Wy.firePageViewEvent(i,"ajax",e),rl(i).trackPageView({pageKey:e})}}))}function TE(e){window.tracking&&window.tracking.then((t=>{t.fireControlInteractionEvent(e)}))}const{EVENTS:SE,GOT_CONTEXTS:CE,GOT_PROMPT_MOMENT_REASONS:IE,GOT_PROMPT_MOMENT_TYPES:kE}=EE,{GOOGLE_USER_FETCHED:AE,PROMPT_MOMENT:OE}=SE,{SIGN_IN:LE}=CE,RE=[IE.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,IE.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,IE.NOT_DISPLAYED.SUPPRESSED_BY_USER],NE=[IE.SKIPPED.AUTO_CANCEL,IE.SKIPPED.TAP_OUTSIDE,IE.SKIPPED.USER_CANCEL];class PE{constructor(e,{onNotDisplayed:t,onSkipped:n,isAutoSelectEnabled:i=!1}={}){if(!e)throw Error("Google one tap form element must be provided");this.el=e,this.onNotDisplayed="function"==typeof t&&t,this.onSkipped="function"==typeof n&&n,this.containerEl=this.el.querySelector(".google-one-tap__container"),this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new Da(this.loaderEl),this.isAutoSelectEnabled=i,_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 uE({autoSelect:this.isAutoSelectEnabled,cancelOnTapOutside:!1,context:LE}),this.googleOneTapInstance.addEventListener(AE,(({detail:e})=>{TE("google-one-tap--account-selected");const{idToken:t,selectedBy:n}=e,i=this.googleOneTapInstance._getBasicProfile(t);this._submitWithGoogle(n,i)})),this.googleOneTapInstance.addEventListener(OE,(({detail:e})=>{const{reason:t,type:n}=e;let i="google-one-tap-moment--".concat(n);if(i=t?"".concat(i,"-").concat(t):i,TE(i),t)if(n===kE.SKIPPED){if(this.onSkipped)this.onSkipped(e);else if(-1===NE.indexOf(t))throw Error("GoogleOneTapError ".concat(n,": ").concat(t))}else if(n===kE.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(e);else if(-1===RE.indexOf(t))throw Error("GoogleOneTapError ".concat(n,": ").concat(t))})),this.googleOneTapInstance)))}_submitWithGoogle(e,t={}){const{email:n,idToken:i,imageUrl:r,familyName:o,givenName:s}=t;this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=bE("googleIdToken",i),this.el.appendChild(bE("googleGivenName",s)),this.el.appendChild(bE("googleFamilyName",o)),this.el.appendChild(bE("googleImageUrl",r)),this.el.appendChild(bE("googleEmail",n));const a="auto"===e?Vy:Ky;this.el.appendChild(bE("soogleLoginRequestType",a)),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}const{GOOGLE_USER_FETCHED:xE,GOOGLE_ERROR:ME,INITIALIZED:DE}=EE.EVENTS,{INITIALIZATION:UE}=EE.GSI_ERROR_TYPES;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self&&self;function BE(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}BE((function(e,t){e.exports=function(){var e="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",t="alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width",n="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",i=d()?"textContent":"innerText",r=["b","del","em","i","s","strong","sub","sup"],o=r.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"]),s=[e,t,n].join("|"),a="href|src",c="data:image/(?:gif|jpg|jpeg|png);base64,",l="https?|ftp|mailto|invalid";function u(){}function d(){return"undefined"==typeof document||"textContent"in document.createElement("div")}function h(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)}var p=function(){var e,t=/[&<>"'\u0000\\=]/g;return e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(n){return null==n?null:n.toString().replace(t,(function(t){return e[t]}))}}(),f=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};function o(t){var n;return r.hasOwnProperty(t)?r[t]:(e.innerHTML="&"+t+";",n=e[i],r[t]=n,n)}return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(e){return null==e?null:(e+"").replace(n,(function(e,n,i,r){return n?o(n):i||r?t(parseInt(i||r,i?16:10)||65533):"�"}))}}();function m(e){return p(f(e))}function g(e){return h("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),p(e)}var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e){return/[<&]/.test(e)}function E(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function b(e){return e.reduce((function(e,t){return e.concat(t)}),[])}var w=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)},_="[ \t\r\n]*",T="[ \t\r\n]+";function S(e){e=v(e)?e:[e];var t,n,i,r=0,u="<(?!/?";return u+="(?:",w(e,(function(e,d){t=e.tags||o,n=e.attrs||s,i=e.checkUrlAttrs||!1,0!==d&&(u+="|"),u+="(?:"+t.join("|")+")",u+="(?:",u+=_,u+="|"+T,u+="(?:(?:",u+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",i&&(u+="|(?:"+a+")=([\"'])(?:(?:"+l+")(?::|&#(?:58|x3a);)|(?:"+c+")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++r),u+=")"+_+")+",u+=")"})),u+=")",u+="/?>)",new RegExp(u,"i")}function C(e){return S({tags:e=e||o,checkUrlAttrs:!0})}function I(){var t={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return S([{tags:o,checkUrlAttrs:!0},{tags:[t.tag],attrs:[e,t.attrs].join("|"),checkUrlAttrs:!1}])}function k(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!C(n).test(e):i?!k.R_UNSAFE_CUSTOM_ELEMENT.test(e):!k.R_UNSAFE_HTML.test(e)}function A(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function O(e,t,n){if(null==e)return null;e=e.toString();var i=t?L(e,t):e,r=e;return y(i)&&!k(i,n)&&(i=A(i),h("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function L(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof u||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?p(o):o.toString()}return n[i]=o,o}))}function R(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}k.R_UNSAFE_HTML=C(),k.R_UNSAFE_CUSTOM_ELEMENT=I();var N={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,"",""]};N.optgroup=N.option,N.tbody=N.tfoot=N.colgroup=N.caption=N.thead,N.th=N.td;var P=/<([\w:]+)/;function x(e,t){var n,i,r,o,s,a,c,l=t.createDocumentFragment(),u=[];for(s=0,c=e.length;s<c;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(P.exec(o)||["",""])[1].toLowerCase(),B(r,(i=N[n]||N._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);R(u,r.childNodes),(r=l.firstChild).textContent=""}else R(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}function M(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=x([e],t);else{if(!v(e))return e;n=x(e,t)}return R([],n.childNodes)}var D=O,U=O;function B(e,t,n){var r=O(t,n);return y(r)?e.innerHTML=r:e[i]=r,r}function F(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e}function q(e){return e}function H(e,t){if(!(this instanceof H))return new H(e,t);(t=t||{}).allowTags=t.allowTags?b(t.allowTags):null,this._string=e,this._options=t}function j(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="",o=void 0,s=n.length;return e&&e.forEach((function(e,t){r+=e,t<s&&(o=n[t],r+=o instanceof H?o:p(o))})),U(r)}H.prototype=E(new u,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(k(e,this._options)||(n=e,e=A(e),h("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var G=/ /g,z=/[\s\u0000<>"]|%00/,W=/\\/,K=/([.]|%2e){2}/i,V=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)))[;,]|[/.#?])");function Y(e){var t=void 0,n="invalid://";if("string"!=typeof e)return h("jSecure Warning: url must be a string","error"),n;if((t=e.trim()).indexOf(" ")>-1&&(h("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(G,"+")),!V.test(t))return h("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(z.test(t))return h("jSecure Error: not valid url character found in url: "+e,"error"),n;var i=t.split("?")[0];return W.test(i)||K.test(i)||K.test(decodeURI(i))?(h("jSecure Error: malicious data found in url path: "+i,"error"),n):e}var Q={redirect:function(e){window&&(window.location.href=e)}};function X(e){var t=Y(e);t===e&&Q.redirect(t)}return{ALLOWED_TAGS:o,FORMATTING_TAGS:r,htmlEncode:p,htmlUnencode:f,log:h,mk:j,parseHTML:M,parseSelector:F,processTemplate:D,reEncode:m,_redirector:Q,redirect:X,sanitizeHTML:U,sanitizeUrl:Y,setElementContent:B,text:g,unsafe:q,UnsafeString:H}}()}));const FE=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,qE=/(.)\1{3}/,HE=/linkedin/i,jE=/\d\d/,GE=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]+)?(/.*)?"),zE=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,WE=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,KE=/^[ぁ-ゔゞ゛゜ー]*$/,VE=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,YE="i18n_invalidFormat_",QE=e=>{const t=(t="")=>t.length<=e;return t.errorMessagePrefix="i18n_tooLong_",t},XE=e=>{const t=(t="")=>t.length>=e;return t.errorMessagePrefix="i18n_tooShort_",t},JE=(e="")=>!jE.test(e);JE.errorMessagePrefix="i18n_noConsecutiveDigits_";const ZE=(e="")=>!FE.test(e);ZE.errorMessagePrefix="i18n_noForbiddenCharacters_";const $E=(e="")=>!qE.test(e);$E.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const eb=(e="")=>!HE.test(e);eb.errorMessagePrefix="i18n_noLinkedIn_";const tb=(e="")=>!GE.test(e);tb.errorMessagePrefix="i18n_noUrl_";const nb=(e="")=>WE.test(e);nb.errorMessagePrefix="i18n_onlyChinese_";const ib=(e="")=>KE.test(e);ib.errorMessagePrefix="i18n_onlyPhonetic_";const rb=(e="")=>""!==e.trim();rb.errorMessagePrefix="i18n_required_";const ob=(e="")=>zE.test(e);ob.errorMessagePrefix=YE;const sb=(e="")=>VE.test(e);sb.errorMessagePrefix=YE;const ab=(e="")=>zE.test(e)||VE.test(e);ab.errorMessagePrefix=YE;const cb=[QE(50),ZE,JE,$E,eb,tb],lb=[rb].concat(cb),ub=[ib,QE(50),$E];QE(4),XE(2),QE(128),QE(128),QE(128),(e=>{const t=(t="")=>""===t||e(t);t.errorMessagePrefix=e.errorMessagePrefix})(ob),XE(6),QE(200);const{GOT_PROMPT_MOMENT_REASONS:db,GOT_PROMPT_MOMENT_TYPES:hb}=EE;const{GOOGLE_ERROR:pb,GOOGLE_USER_FETCHED:fb,INITIALIZED:mb}=EE.EVENTS;BE((function(e,t){!function(e){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e,t,n){return d=u()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&l(r,n.prototype),r},d.apply(null,arguments)}function h(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||!h(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},p(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function g(e){return function(){var t,n=c(e);if(u()){var i=c(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return m(this,t)}}function v(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function y(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function E(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;function e(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}window.CustomEvent=e})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}var 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,r=n.length;i<r;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}();var b="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",w={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},_="https://accounts.google.com",T={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},S={INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},C={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},I={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},k={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"}},A="com.linkedin.LinkedIn.service",O="https://www.linkedin.com/redirect",L="https://www.linkedin-ei.com/redirect",R={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},N={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},P=w.GOOGLE_ERROR,x=w.GOOGLE_USER_FETCHED,M=w.INITIALIZED,D=T.INITIALIZATION,U=T.AUTHENTICATION,B=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?b:a;if(t(this,r),i=n.call(this),!s)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=s,i.clientId=c,window.gapi)i._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");v((function(){y(o,i._initializeGoogleAuth.bind(f(i)))}))}return i}return i(r,[{key:"_initializeGoogleAuth",value:function(){var e=this;return gapi.auth2.init({client_id:this.clientId}).then((function(t){e.auth2=t,e._attachSignIn();var n=new CustomEvent(M);e.dispatchEvent(n)})).catch((function(t){var n={type:D,message:t.error},i=new CustomEvent(P,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(x,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:U,message:t.error},i=new CustomEvent(P,{detail:n});e.dispatchEvent(i)}))}},{key:"_getGoogleUserInformation",value:function(e){var t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}]),r}(p(EventTarget)),F=w.GOOGLE_USER_FETCHED,q=w.PROMPT_MOMENT,H=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?b:u,h=e.cancelOnTapOutside,p=void 0===h||h;if(t(this,r),i=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(i.autoSelect=s,i.libSrcPath=a,i.containerId=c,i.cancelOnTapOutside=p,i.clientId=d,i.context=l,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(a,i._onGoogleApiLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return google.accounts.id.initialize({auto_select:this.autoSelect,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((function(){return e.promptOneTap()}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===C.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(F,{detail:n});this.dispatchEvent(i)}}},{key:"_getBasicProfile",value:function(e){try{var 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}}},{key:"_dispatchSkippedEvent",value:function(e){var t={message:e,reason:k.SKIPPED.ISSUING_FAILED,type:I.SKIPPED},n=new CustomEvent(q,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(q,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}},{key:"hideOneTap",value:function(){google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(p(EventTarget)),j={exports:{}},G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function z(e){this.message=e}function W(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new z("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i=G.indexOf(i);return s}z.prototype=new Error,z.prototype.name="InvalidCharacterError";var K="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||W;function V(e){return decodeURIComponent(K(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}var Y=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return V(t)}catch(e){return K(t)}};function Q(e){this.message=e}Q.prototype=new Error,Q.prototype.name="InvalidTokenError",j.exports=function(e,t){if("string"!=typeof e)throw new Q("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Y(e.split(".")[n]))}catch(e){throw new Q("Invalid token specified: "+e.message)}},j.exports.InvalidTokenError=Q;var X=j.exports,J=w.GOOGLE_USER_FETCHED,Z=w.PROMPT_MOMENT,$=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.clientId,l=void 0===c?b:c,u=e.showOneTap,d=void 0===u||u,h=e.promptParentId,p=e.buttonParentEl,m=e.gsiButtonConfig,g=void 0===m?{}:m,w=e.context,_=void 0===w?"signin":w,T=e.cancelOnTapOutside,S=void 0===T||T;if(t(this,r),(i=n.call(this)).autoSelect=s,i.libSrcPath=a,i.clientId=l,i.showOneTap=d,i.promptParentId=h,i.buttonParentEl=p,i.gsiButtonConfig=g,i.cancelOnTapOutside=S,i.context=_,i.isLibraryLoaded=E(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(a,i._onGoogleApiLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),window.google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.promptParentId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:N[this.context].GOT}),Promise.resolve().then((function(){return e.showGsiUI()}))}},{key:"showGsiUI",value:function(){this.buttonParentEl&&this.renderGSIButton(this.buttonParentEl,this.gsiButtonConfig),this.showOneTap&&this.promptOneTap()}},{key:"renderGSIButton",value:function(e,t){var n=this,i=t.logo_alignment,r=void 0===i?"center":i,o=t.shape,s=void 0===o?"pill":o,a=t.size,c=void 0===a?"large":a,l=t.text,u=t.theme,d=t.type,h=t.width,p=void 0===h?"400px":h;return this.isLibraryLoaded.then((function(){var t=l||N[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{logo_alignment:r,shape:s,size:c,text:t,theme:u,type:d,width:p})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(Z,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=X(t),r=s({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(r){var o=new CustomEvent(J,{detail:r});this.dispatchEvent(o)}}},{key:"_getBasicProfile",value:function(e){return{email:e.email,familyName:e.family_name,givenName:e.given_name,id:e.sub,imageUrl:e.picture}}},{key:"hideOneTap",value:function(){window.google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(p(EventTarget)),ee=R.DISMISSED,te=R.INITIALIZED,ne=R.SNAPPLE_USER_FETCHED,ie=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?A:a,l=e.redirectURI;if(t(this,r),i=n.call(this),!s)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(i.libSrcPath=o,i.clientId=c,i.redirectURI=i._getRedirectURL(l),i.snappleCTA=s,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)i._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(o,i._onSnappleLibLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onSnappleLibLoad",value:function(){window.AppleID.auth.init({clientId:this.clientId,scope:"name email",redirectURI:this.redirectURI,usePopup:!0});var e=new CustomEvent(te);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent(ne,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(ee,{detail:{type:ee,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?O:L}}]),r}(p(EventTarget)),re={CLIENT_ID:b,EVENTS:w,GOOGLE_ACCOUNT_URL:_,GSI_ERROR_TYPES:T,GSI_ERROR_MESSAGES:S,GOT_CONTEXTS:C,GOT_PROMPT_MOMENT_REASONS:k,GOT_PROMPT_MOMENT_TYPES:I};e.GoogleGsi=$,e.GoogleOneTap=H,e.GoogleSignIn=B,e.GoogleSignInConstants=re,e.SnappleAuth=ie,e.SnappleEvents=R,Object.defineProperty(e,"__esModule",{value:!0})}(t)}));new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);var gb;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(gb||(gb={}));new Set(Object.values(gb));class vb extends Error{constructor(e){super(e),Object.setPrototypeOf(this,vb.prototype)}}const{EVENTS:yb,GOT_CONTEXTS:Eb,GOT_PROMPT_MOMENT_TYPES:bb}=EE,{GOOGLE_USER_FETCHED:wb,PROMPT_MOMENT:_b}=yb;var Tb;class Sb extends Ia{setLinkedInServiceUrl(e){this.linkedinServiceUrl=e}_getServiceUrl(e){return"linkedin"===e&&this.linkedinServiceUrl?this.linkedinServiceUrl:super._getServiceUrl(e)}}function Cb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ib(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kb={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Ab="GUEST",Ob="MEMBER",Lb=0,Rb=1,Nb=2,Pb=(Ib(Tb={},Ab,"li_gc"),Ib(Tb,Ob,"li_mc"),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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in Cb(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},kb)t[o]=t[o]||Lb,t[o]!==Lb&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Rb||t[o]===Lb&&r===Rb});(function(){var e=[kb.ADVERTISING,kb.ANALYTICS_AND_RESEARCH,kb.FUNCTIONAL],t=[Lb,Rb,Nb,Lb],n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";"))})(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";"));window.encodeURIComponent;function xb(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 Mb(e){"complete"===document.readyState?e():window.addEventListener("load",(()=>{setTimeout(e)}))}class Db{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",(e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}}))}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const Ub=function(){let e;return{getInstance:function(){return e||(e=new Db),e}}}();class Bb{constructor(){this._pagehideCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("pagehide",(e=>{for(let t=0;t<this._pagehideCallbacks.length;t++)this._pagehideCallbacks[t].call(null,e)}))}addPagehideCallback(e){e instanceof Function&&this._pagehideCallbacks.push(e)}}const Fb=function(){let e;return{getInstance:function(){return e||(e=new Bb),e}}}();function qb(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function Hb(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function jb(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return r?e<=t*i:e>=n-(t+t*i)}function Gb(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function zb(e,t){return Wb(e,"trk",t)}function Wb(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 r=Gb(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),s="&";return i<0?s="?":i===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(r).concat(s).concat(t,"=").concat(n).concat(o||"")}}function Kb(e,t,n){var i=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let r;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const c=()=>{r=null,n||e.apply(i,s)},l=n&&!r;clearTimeout(r),r=setTimeout(c,t),l&&e.apply(i,s)}}function Vb(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function Yb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function Qb(){let e,t;const n=new Promise(((n,i)=>{e=n,t=i}));return n.resolve=e,n.reject=t,n}function Xb(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function Jb(e){return"string"!=typeof e?null:e.split("?")[0]}var Zb=Object.freeze({__proto__:null,closest:xb,onload:Mb,UnloadHandler:Ub,PagehideHandler:Fb,makeArray:qb,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:Hb,hasElementScrolledToThreshold:jb,getQueryParam:Gb,addTrackingCode:zb,addQueryParam:Wb,debounce:Kb,getCookie:Vb,dispatchCustomEvent:Yb,getDeferredPromise:Qb,isDocumentHidden:Xb,stripQueryParams:Jb,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=Wb(n,e,t[e],!0);return n},getQueryParameters:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;const t={};if(e){const n=e.split("?")[1],i=n&&n.split("&");i&&i.forEach((e=>{const n=e.split("=");t[n[0]]=decodeURIComponent(n[1])}))}return t}});function $b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),i=e.getElementById("config"),r=i&&"true"===i.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?"".concat(n.content).concat(r||t.skipSuffix?"":"_jsbeacon"):""}function ew(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function tw(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function nw(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const iw={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},rw={Down:iw.ARROW_DOWN,Right:iw.ARROW_RIGHT,Left:iw.ARROW_LEFT,Up:iw.ARROW_UP,Esc:iw.ESCAPE,Spacebar:iw.SPACEBAR,Tab:iw.TAB};function ow(e){return rw[e]||e}let sw,aw;const cw=['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^="-"])'],lw=[...cw,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");[...cw,"[tabindex]:not([disabled])"].join(",");function uw(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function dw(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,i=arguments.length>2?arguments[2]:void 0;return e===n?!uw(e):i&&i.get(e)?i.get(e):(uw(e)?t=!1:e.parentNode&&(t=dw(e.parentNode,n,i)),i&&i.set(e,t),t)}const hw={POLITE:"polite",ASSERTIVE:"assertive"};function pw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hw.POLITE;sw&&(sw.removeAttribute("aria-hidden"),sw.setAttribute("aria-live",hw.POLITE),sw.textContent="",sw.textContent=e,sw.setAttribute("aria-live",t),clearTimeout(aw),aw=setTimeout((()=>{sw.removeAttribute("aria-live"),sw.setAttribute("aria-hidden","true")}),1e4))}class fw{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 mw=["class","disabled","style","tabindex","type"];class gw{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 fw(this._container)}init(){this._observer.observe(this._container,{attributeFilter:mw,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:n}=e,i=ow(t),r=i===iw.TAB&&e.shiftKey;!r&&i===iw.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):r&&n===this.firstFocusableEl&&(this.lastFocusableEl.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(lw)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=dw(r,e,n)&&r,o++}if(!r){const i=t[s];r=dw(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const vw="collapsible-dropdown";".".concat(vw,"__list"),".".concat(vw,"__button"),".".concat(vw,"__close-button");function yw(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new Promise(((s,a)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)s({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText};const i=c.getAllResponseHeaders();i&&(n.response.rawHeaders=i),a(n)}})),c.addEventListener("error",(function(e){a(e)})),c.open(t,e,!0),c.withCredentials=i,Object.keys(n).forEach((e=>{c.setRequestHeader(e,n[e])})),!r){const e=Vb("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",nw(e))}c.send(o)}));return s&&(a.length?Ew(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function Ew(e,t,n,i){try{const r=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?bw(e.response.rawHeaders):new Headers})}));window.tracking.then((e=>{window.pemTracking.then((o=>{o.trackFeatureDegradationsForFetch(t,n,i,r,e.state.currentPageInstance)}))}))}catch(e){}}function bw(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach((e=>{const n=e.trim().split(": "),i=n.shift();if(i){const e=n.join(": ");t.set(i.toLocaleLowerCase(),e)}})),t}var ww="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{},_w=(parseInt,"object"==typeof ww&&ww&&ww.Object===Object&&ww),Tw="object"==typeof self&&self&&self.Object===Object&&self;_w||Tw||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function Sw(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 Cw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sw(Object(n),!0).forEach((function(t){Iw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Iw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kw(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const Aw="light",Ow="dark";function Lw(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?Ow:Aw:void 0}var Rw;function Nw(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Bw(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Pw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xw(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Mw(e,t,n){return t&&xw(e.prototype,t),n&&xw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uw(e){return function(e){if(Array.isArray(e))return Fw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Bw(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bw(e,t){if(e){if("string"==typeof e)return Fw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fw(e,t):void 0}}function Fw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function qw(e){return(qw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Hw,jw=new Uint8Array(16);function Gw(){if(!Hw&&!(Hw="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hw(jw)}var zw=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ww(e){return"string"==typeof e&&zw.test(e)}for(var Kw=[],Vw=0;Vw<256;++Vw)Kw.push((Vw+256).toString(16).substr(1));function Yw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Kw[e[t+0]]+Kw[e[t+1]]+Kw[e[t+2]]+Kw[e[t+3]]+"-"+Kw[e[t+4]]+Kw[e[t+5]]+"-"+Kw[e[t+6]]+Kw[e[t+7]]+"-"+Kw[e[t+8]]+Kw[e[t+9]]+"-"+Kw[e[t+10]]+Kw[e[t+11]]+Kw[e[t+12]]+Kw[e[t+13]]+Kw[e[t+14]]+Kw[e[t+15]]).toLowerCase();if(!Ww(n))throw TypeError("Stringified UUID is invalid");return n}function Qw(e){if(!Ww(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Xw(e,t,n){function i(e,i,r,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=Qw(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(i),s.set(e,i.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,r){o=o||0;for(var a=0;a<16;++a)r[o+a]=s[a];return r}return Yw(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Jw(e){return 14+(e+64>>>9<<4)+1}function Zw(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function $w(e,t,n,i,r,o){return Zw((s=Zw(Zw(t,e),Zw(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function e_(e,t,n,i,r,o,s){return $w(t&n|~t&i,e,t,r,o,s)}function t_(e,t,n,i,r,o,s){return $w(t&i|n&~i,e,t,r,o,s)}function n_(e,t,n,i,r,o,s){return $w(t^n^i,e,t,r,o,s)}function i_(e,t,n,i,r,o,s){return $w(n^(t|~i),e,t,r,o,s)}function r_(e,t,n){var i=(e=e||{}).random||(e.rng||Gw)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return Yw(i)}function o_(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function s_(e,t){return e<<t|e>>>32-t}Xw("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,s=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Jw(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=i,l=r,u=o;n=e_(n,i,r,o,e[s],7,-680876936),o=e_(o,n,i,r,e[s+1],12,-389564586),r=e_(r,o,n,i,e[s+2],17,606105819),i=e_(i,r,o,n,e[s+3],22,-1044525330),n=e_(n,i,r,o,e[s+4],7,-176418897),o=e_(o,n,i,r,e[s+5],12,1200080426),r=e_(r,o,n,i,e[s+6],17,-1473231341),i=e_(i,r,o,n,e[s+7],22,-45705983),n=e_(n,i,r,o,e[s+8],7,1770035416),o=e_(o,n,i,r,e[s+9],12,-1958414417),r=e_(r,o,n,i,e[s+10],17,-42063),i=e_(i,r,o,n,e[s+11],22,-1990404162),n=e_(n,i,r,o,e[s+12],7,1804603682),o=e_(o,n,i,r,e[s+13],12,-40341101),r=e_(r,o,n,i,e[s+14],17,-1502002290),n=t_(n,i=e_(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=t_(o,n,i,r,e[s+6],9,-1069501632),r=t_(r,o,n,i,e[s+11],14,643717713),i=t_(i,r,o,n,e[s],20,-373897302),n=t_(n,i,r,o,e[s+5],5,-701558691),o=t_(o,n,i,r,e[s+10],9,38016083),r=t_(r,o,n,i,e[s+15],14,-660478335),i=t_(i,r,o,n,e[s+4],20,-405537848),n=t_(n,i,r,o,e[s+9],5,568446438),o=t_(o,n,i,r,e[s+14],9,-1019803690),r=t_(r,o,n,i,e[s+3],14,-187363961),i=t_(i,r,o,n,e[s+8],20,1163531501),n=t_(n,i,r,o,e[s+13],5,-1444681467),o=t_(o,n,i,r,e[s+2],9,-51403784),r=t_(r,o,n,i,e[s+7],14,1735328473),n=n_(n,i=t_(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=n_(o,n,i,r,e[s+8],11,-2022574463),r=n_(r,o,n,i,e[s+11],16,1839030562),i=n_(i,r,o,n,e[s+14],23,-35309556),n=n_(n,i,r,o,e[s+1],4,-1530992060),o=n_(o,n,i,r,e[s+4],11,1272893353),r=n_(r,o,n,i,e[s+7],16,-155497632),i=n_(i,r,o,n,e[s+10],23,-1094730640),n=n_(n,i,r,o,e[s+13],4,681279174),o=n_(o,n,i,r,e[s],11,-358537222),r=n_(r,o,n,i,e[s+3],16,-722521979),i=n_(i,r,o,n,e[s+6],23,76029189),n=n_(n,i,r,o,e[s+9],4,-640364487),o=n_(o,n,i,r,e[s+12],11,-421815835),r=n_(r,o,n,i,e[s+15],16,530742520),n=i_(n,i=n_(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=i_(o,n,i,r,e[s+7],10,1126891415),r=i_(r,o,n,i,e[s+14],15,-1416354905),i=i_(i,r,o,n,e[s+5],21,-57434055),n=i_(n,i,r,o,e[s+12],6,1700485571),o=i_(o,n,i,r,e[s+3],10,-1894986606),r=i_(r,o,n,i,e[s+10],15,-1051523),i=i_(i,r,o,n,e[s+1],21,-2054922799),n=i_(n,i,r,o,e[s+8],6,1873313359),o=i_(o,n,i,r,e[s+15],10,-30611744),r=i_(r,o,n,i,e[s+6],15,-1560198380),i=i_(i,r,o,n,e[s+13],21,1309151649),n=i_(n,i,r,o,e[s+4],6,-145523070),o=i_(o,n,i,r,e[s+11],10,-1120210379),r=i_(r,o,n,i,e[s+2],15,718787259),i=i_(i,r,o,n,e[s+9],21,-343485551),n=Zw(n,a),i=Zw(i,c),r=Zw(r,l),o=Zw(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Jw(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),Xw("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];a[c]=l}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<s;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=a[d][p];for(var f=16;f<80;++f)h[f]=s_(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var m=n[0],g=n[1],v=n[2],y=n[3],E=n[4],b=0;b<80;++b){var w=Math.floor(b/20),_=s_(m,5)+o_(w,g,v,y)+E+t[w]+h[b]>>>0;E=y,y=v,v=s_(g,30)>>>0,g=m,m=_}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var a_=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var c_=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(c_){var l_=new Uint8Array(256),u_=l_.length;a_={rng:function(){return u_>l_.length-16&&(c_.randomFillSync(l_),u_=0),l_.slice(u_,u_+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":qw(crypto))&&crypto.randomUUID;function d_(){return r_(a_,new Array(16),0)}function h_(e){return Uw(e).map((function(e){return String.fromCharCode(e)})).join("")}function p_(){return h_(d_())}var f_=/^[a-zA-Z0-9/+]+[=]+$/;function m_(e,t){return{pageUrn:v_(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,s=o%3,a=o-s;r<a;)t=e[r]<<16,t|=e[r+1]<<8,t|=e[r+2],i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push(n.charAt(63&t)),r+=3;switch(s){case 2:t=e[r]<<16,t|=e[r+1]<<8,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push(n.charAt(t>>>6&63)),i.push("=");break;case 1:t=e[r]<<16,i.push(n.charAt(t>>>18&63)),i.push(n.charAt(t>>>12&63)),i.push("="),i.push("=")}return i.join("")}(d_())}}function g_(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function v_(e){return"urn:li:page:".concat(e)}function y_(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function E_(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function b_(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function w_(e,t){if("undefined"!=typeof window&&window.indexedDB){var n="sequenceNumber",i=window.indexedDB.open(n);return new Promise((function(r,o){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,a=s.transaction(n,"readwrite"),c=a.objectStore(n),l=c.get(1);l.onsuccess=function(){var n=l.result;if(n){var i,s=null!==(i=n.sequenceNumber)&&void 0!==i?i:0;if("read"===e)return r(s);if(!("update"===e&&void 0!==t&&t>s))return r(null);var a=c.put({sequenceNumber:t},1);a.onsuccess=function(){return r(null)},a.onerror=function(){o(a.error)}}else{var u=c.add({sequenceNumber:0});u.onsuccess=function(){return r(0)},u.onerror=function(){o(u.error)}}},l.onerror=function(){return s.close(),o(new Error("Error: get sequence number from indexedDB ".concat(String(l.error))))},a.oncomplete=function(){return s.close()}},i.onerror=function(){return r(null)}}))}return Promise.resolve(null)}function __(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function T_(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var S_,C_,I_=(S_=new Map,C_=new Map,{on:function(e,t){__(S_,e,t)},before:function(e,t){__(C_,e,t)},off:function(e,t){T_(S_,e,t)},offBefore:function(e,t){T_(C_,e,t)},emit:function(e,t){(C_.get(e)||[]).concat(S_.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){C_.clear(),S_.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var k_=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||I_.emit("internal:hide",e)};document.addEventListener("visibilitychange",k_),window.addEventListener("pagehide",k_)}var A_=Uint8Array,O_=Uint16Array,L_=Uint32Array,R_=new A_([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),N_=new A_([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),P_=new A_([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),x_=function(e,t){for(var n=new O_(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new L_(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},M_=x_(R_,2),D_=M_[0],U_=M_[1];D_[28]=258,U_[258]=28;for(var B_=x_(N_,0)[1],F_=new O_(32768),q_=0;q_<32768;++q_){var H_=(43690&q_)>>>1|(21845&q_)<<1;H_=(61680&(H_=(52428&H_)>>>2|(13107&H_)<<2))>>>4|(3855&H_)<<4,F_[q_]=((65280&H_)>>>8|(255&H_)<<8)>>>1}var j_=function(e,t,n){for(var i=e.length,r=0,o=new O_(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new O_(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new O_(1<<t);var c=15-t;for(r=0;r<i;++r)if(e[r])for(var l=r<<4|e[r],u=t-e[r],d=a[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[F_[d]>>>c]=l}else for(s=new O_(i),r=0;r<i;++r)e[r]&&(s[r]=F_[a[e[r]-1]++]>>>15-e[r]);return s},G_=new A_(288);for(q_=0;q_<144;++q_)G_[q_]=8;for(q_=144;q_<256;++q_)G_[q_]=9;for(q_=256;q_<280;++q_)G_[q_]=7;for(q_=280;q_<288;++q_)G_[q_]=8;var z_=new A_(32);for(q_=0;q_<32;++q_)z_[q_]=5;var W_=j_(G_,9,0),K_=j_(z_,5,0),V_=function(e){return(e+7)/8|0},Y_=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Q_=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},X_=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[iT,0];if(1==r){var s=new A_(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=r-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new O_(h+1),f=J_(n[u-1],p,0);if(f>t){i=0;var m=0,g=f-t,v=1<<g;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i<r;++i){var y=o[i].s;if(!(p[y]>t))break;m+=v-(1<<f-p[y]),p[y]=t}for(m>>>=g;m>0;){var E=o[i].s;p[E]<t?m-=1<<t-p[E]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new A_(p),f]},J_=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},Z_=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new O_(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},$_=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},eT=function(e,t,n){var i=n.length,r=V_(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},tT=function(e,t,n,i,r,o,s,a,c,l,u){Y_(t,u++,n),++r[256];for(var d=X_(r,15),h=d[0],p=d[1],f=X_(o,15),m=f[0],g=f[1],v=Z_(h),y=v[0],E=v[1],b=Z_(m),w=b[0],_=b[1],T=new O_(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var C=X_(T,7),I=C[0],k=C[1],A=19;A>4&&!I[P_[A-1]];--A);var O,L,R,N,P=l+5<<3,x=$_(r,G_)+$_(o,z_)+s,M=$_(r,h)+$_(o,m)+s+14+3*A+$_(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return eT(t,u,e.subarray(c,c+l));if(Y_(t,u,1+(M<x)),u+=2,M<x){O=j_(h,p,0),L=h,R=j_(m,g,0),N=m;var D=j_(I,k,0);for(Y_(t,u,E-257),Y_(t,u+5,_-1),Y_(t,u+10,A-4),u+=14,S=0;S<A;++S)Y_(t,u+3*S,I[P_[S]]);u+=3*A;for(var U=[y,w],B=0;B<2;++B){var F=U[B];for(S=0;S<F.length;++S){var q=31&F[S];Y_(t,u,D[q]),u+=I[q],q>15&&(Y_(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else O=W_,L=G_,R=K_,N=z_;for(S=0;S<a;++S)if(i[S]>255){q=i[S]>>>18&31,Q_(t,u,O[q+257]),u+=L[q+257],q>7&&(Y_(t,u,i[S]>>>23&31),u+=R_[q]);var H=31&i[S];Q_(t,u,R[H]),u+=N[H],H>3&&(Q_(t,u,i[S]>>>5&8191),u+=N_[H])}else Q_(t,u,O[i[S]]),u+=L[i[S]];return Q_(t,u,O[256]),u+L[256]},nT=new L_([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),iT=new A_(0),rT=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),oT=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function sT(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=rT[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r,o,s,a=(r=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,i,r,o){var s=e.length,a=new A_(i+s+5*(1+Math.ceil(s/7e3))+r),c=a.subarray(i,a.length-r),l=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var d=u+65535;d>=s&&(c[l>>3]=o),l=eT(c,l+1,e.subarray(u,d))}else{for(var h=nT[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new O_(32768),v=new O_(m+1),y=Math.ceil(n/3),E=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<E)&m},w=new L_(25e3),_=new O_(288),T=new O_(32),S=0,C=0,I=(u=0,0),k=0,A=0;u<s;++u){var O=b(u),L=32767&u,R=v[O];if(g[L]=R,v[O]=L,k<=u){var N=s-u;if((S>7e3||I>24576)&&N>423){l=tT(e,c,0,w,_,T,C,I,A,u-A,l),I=S=C=0,A=u;for(var P=0;P<286;++P)_[P]=0;for(P=0;P<30;++P)T[P]=0}var x=2,M=0,D=f,U=L-R&32767;if(N>2&&O==b(u-U))for(var B=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);U<=F&&--D&&L!=R;){if(e[u+x]==e[u+x-U]){for(var H=0;H<q&&e[u+H]==e[u+H-U];++H);if(H>x){if(x=H,M=U,H>B)break;var j=Math.min(U,H-2),G=0;for(P=0;P<j;++P){var z=u-U+P+32768&32767,W=z-g[z]+32768&32767;W>G&&(G=W,R=z)}}}U+=(L=R)-(R=g[L])+32768&32767}if(M){w[I++]=268435456|U_[x]<<18|B_[M];var K=31&U_[x],V=31&B_[M];C+=R_[K]+N_[V],++_[257+K],++T[V],k=u+x,++S}else w[I++]=e[u],++_[e[u]]}}l=tT(e,c,o,w,_,T,C,I,A,u-A,l),!o&&7&l&&(l=eT(c,l+1,iT))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(2==e.BYTES_PER_ELEMENT?O_:4==e.BYTES_PER_ELEMENT?L_:A_)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+V_(l)+r)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,s,8,!0)),c=a.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&oT(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(a,t),oT(a,c-8,n.d()),oT(a,c-4,i),a}var aT="undefined"!=typeof TextDecoder&&new TextDecoder;try{aT.decode(iT,{stream:!0})}catch(rr){}function cT(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function lT(){try{return cT()&&"keepalive"in new Request("")}catch(e){return!1}}function uT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var i=new XMLHttpRequest;if(i.open("POST",e,!0),i.withCredentials=!0,n.headers)for(var r=0,o=Object.keys(n.headers);r<o.length;r++){var s=o[r];i.setRequestHeader(s,n.headers[s])}i.send(t)}}function dT(e){var t=e.body,n=e.keepalive,i=e.headers,r=e.compress;i["content-type"]||(i["content-type"]="text/plain;charset=UTF-8");var o=t;if(r&&"undefined"!=typeof TextEncoder)try{o=sT((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function hT(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var pT,fT="undefined"!=typeof navigator&&"sendBeacon"in navigator,mT=lT()?function(e,t,n,i){return new Promise((function(r){fetch(e,dT({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,dT({body:t,keepalive:!1,headers:n,compress:i}))})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:e.status}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:hT(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(fT){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,dT({body:t,keepalive:!1,headers:n,compress:i})).then((function(e){e.ok?r({type:"success",drop:!1,statusCode:200}):r({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return r({type:"network",drop:!0,rawError:hT(e)})}))}))};function gT(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function vT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e);r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}};var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result;t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}));return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function yT(){return pT||(pT=vT("idb-queue","default")),pT}function ET(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,i=null;return e.openKeyCursor().onsuccess=function(){var r=this.result;r&&n++<t.batchEvictionNumber?(i=r.key,r.continue()):null!=i&&e.delete(IDBKeyRange.upperBound(i))},gT(e.transaction)}function bT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yT();return t("readwrite",(function(t){return ET(t,e)}))}var wT=!1;function _T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yT();return n("readwrite",(function(n){return n.put(e),gT(n.count()).then((function(e){if(!(e<=t.maxNumber))return ET(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return bT(t,n)}))}function TT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yT();return wT?Promise.resolve():_T(e,t,n)}function ST(e,t,n){return t("readwrite",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),t.delete(),(e<0||i.length<e)&&t.continue())},gT(t.transaction).then((function(){return i}))}))}function CT(e,t,n){return t("readonly",(function(t){var i=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(i.push(t.value),(e<0||i.length<e)&&t.continue())},gT(t.transaction).then((function(){return i}))}))}function IT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yT();return CT(e,t,"next")}function kT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yT();return CT(e,t,"prev")}function AT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function OT(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function LT(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function RT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{var n=function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function NT(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(OT((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var PT=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Pw(this,e),Dw(this,"config",void 0),Dw(this,"compress",void 0),Dw(this,"throttleControl",void 0),Dw(this,"withStore",void 0),Dw(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=vT(t.idbName,"beacons","timestamp",{onSuccess:function(){r&&performance.measure(r.createSuccessMeasure,r.createStartMark)},onError:function(){r&&performance.measure(r.createFailMeasure,r.createStartMark),n.disablePersistence=!0}}),this.throttleControl=NT(this.replayEntries.bind(this),t.throttleWait)}return Mw(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){OT((function(){return"Persisting to DB "+e.url})),TT(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),OT((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,LT((function(){return"push failed"}))}))};this.config.useIdle?RT(n):n()}}},{key:"clear",value:function(){var e=this;return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yT();return wT=!0,e("readwrite",(function(e){return e.clear(),gT(e.transaction).finally((function(){return wT=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,LT((function(){return"clear failed"}))}))}},{key:"peek",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):IT(t,this.withStore).catch((function(){return e.disablePersistence=!0,LT((function(){return"peek failed"})),[]}))}},{key:"peekBack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.disablePersistence?Promise.resolve([]):kT(t,this.withStore).catch((function(){return e.disablePersistence=!0,LT((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){OT((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yT();return ST(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,s=r.body,a=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return OT((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),mT(o,s,AT(a,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,i;null===(n=(i=e.config).onResult)||void 0===n||n.call(i,t,s),e.replayEntries()}else{var r,a,d,h,p,f;if(u+1>e.config.attemptLimit)return OT((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(a=e.config).onResult)||void 0===r||r.call(a,t,s));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(h=e.config).onResult)||void 0===d||d.call(h,t,s),OT((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),TT({url:o,body:s,timestamp:c,statusCode:l,attemptCount:u+1},e.config,e.withStore);t.drop=!0,null===(p=(f=e.config).onResult)||void 0===p||p.call(f,t,s)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&LT((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?RT(t):t()}}}]),e}(),xT=function(){function e(){Pw(this,e)}return Mw(e,[{key:"onNotify",value:function(){}},{key:"push",value:function(){}},{key:"clear",value:function(){return Promise.resolve()}},{key:"peek",value:function(){return Promise.resolve([])}},{key:"peekBack",value:function(){return Promise.resolve([])}}]),e}(),MT=function(){function e(t,n){Pw(this,e),Dw(this,"queue",void 0),Dw(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new PT(t,n.compress):new xT}return Mw(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}();Dw(MT,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var DT=[502,504],UT=[429,503],BT=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Pw(this,e),Dw(this,"url",void 0),Dw(this,"body",void 0),Dw(this,"config",void 0),Dw(this,"persistenceConfig",void 0),Dw(this,"compress",void 0),Dw(this,"timestamp",void 0),Dw(this,"isClearQueuePending",!1),Dw(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Mw(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.persistenceConfig.db.onClear(this.onClearCallback);var n=this.retryLimit;return this.retry((function(t){return mT(e.url,e.body,t,e.compress)}),n,t).finally((function(){OT((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,i){var r=this,o=this.getAttemptCount(t)-1;return e(AT(n,this.config.headerName,o,i)).then((function(i){var o,s,a,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),a=i;else if(OT((function(){return"retry rejected "+JSON.stringify(i)})),r.shouldPersist(t,i))r.persistenceConfig.db.pushToQueue({url:r.url,body:r.body,headers:n,statusCode:i.statusCode,timestamp:r.timestamp,attemptCount:r.getAttemptCount(t)}),a={type:"persisted",drop:!1,statusCode:i.statusCode};else{if(t>0&&r.isRetryableError(i)){var l,u;null===(l=(u=r.config).onIntermediateResult)||void 0===l||l.call(u,i,r.body);var d=r.config.calculateRetryDelay(r.getAttemptCount(t),t);return OT((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return r.retry(e,t-1,n,i.statusCode)}))}(a=i).drop=!0}return null===(o=(s=r.config).onIntermediateResult)||void 0===o||o.call(s,a,r.body),a}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}();function FT(e,t,n,i,r){"control"!==i&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&lT()&&t&&n}()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}("beacons");var s,a,c=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},l=null!==(a=e.retryConfig.persist)&&void 0!==a?a:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},u={compress:n,inMemoryRetry:{onIntermediateResult:null==r?void 0:r.onIntermediateResult,attemptLimit:c.attemptLimit,statusCodes:c.statusCodes,headerName:"x-li-retry-context",calculateRetryDelay:function(e){return function(e){return 1e3*Math.pow(2,e)}(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:"beacons",attemptLimit:l.attemptLimit,statusCodes:l.statusCodes,maxNumber:l.maxNumber,batchEvictionNumber:l.batchEvictionNumber,throttleWait:l.throttleWait,useIdle:!0,measureIDB:{createStartMark:"idb_open_start",createSuccessMeasure:"idb_open_success_phase",createFailMeasure:"idb_open_fail_phase"}}},d=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),i=Object.assign({attemptLimit:0,statusCodes:DT,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var r=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:UT,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new MT(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return cT()?new BT(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||UT},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,p=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body);if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){I_.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){I_.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var qT=function(){function e(t){Pw(this,e),Dw(this,"host",void 0),this.host=t}return Mw(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment();this.host.retryConfig&&FT(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon;if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){I_.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();lT()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){I_.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason:e})}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;r||!cT()||"undefined"==typeof Promise?uT(e,JSON.stringify(t),{headers:n}):mT(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){}))}}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var i=this.host.retryConfig.lixKey;return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}}]),e}(),HT="undefined"!=typeof window&&"undefined"!=typeof document,jT=/JSESSIONID="?([^";]+)"?/,GT="",zT=0;function WT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?jT:i;if(!GT||Date.now()-zT>n){var o=HT&&document.cookie.match(r);GT=o&&o[1]||"",zT=Date.now()}return GT}var KT=function(){function e(t){Pw(this,e),Dw(this,"networkTransporter",void 0),Dw(this,"inactive",void 0),Dw(this,"mpName",void 0),Dw(this,"endpoint",void 0),Dw(this,"debug",void 0),this.networkTransporter=new qT(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;switch(e){case"https://www.linkedin.com/li/track":t=YT;break;case"https://www.linkedin-ei.com/li/track/validate":default:n=!0,t=VT;break;case"https://www.linkedin-ei.com/li/track":t=VT}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Mw(e,[{key:"fireFragment",value:function(e){if(!this.inactive){var t={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":WT(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),VT="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",YT="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function QT(e){return"string"==typeof e}function XT(e){return QT(e)?e:e.topicName||e.eventName}function JT(e){return QT(e)?e:e.eventName}var ZT,$T,eS=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pw(this,e),Dw(this,"host",void 0),Dw(this,"cmoTransporter",void 0),Dw(this,"clientMonitoringInstanceId",p_()),Dw(this,"currentContext",iS()),Dw(this,"appState",{}),Dw(this,"estimatedFragmentSize",0),Dw(this,"fragmentSizeLimit",void 0),Dw(this,"activeFragmentEvent",void 0),Dw(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new KT(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=nS(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Mw(e,[{key:"getCurrentInstanceId",value:function(){return this.clientMonitoringInstanceId}},{key:"scheduleDebouncedFiring",value:function(){var e,t,n=this;void 0!==this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0),this.fragmentIsFull()&&this.fireFragmentEventIfFull(!0),this.debounceTimer=setTimeout((function(){n.fireFragmentEventIfFull()}),null!==(e=null===(t=this.host.batching)||void 0===t?void 0:t.debounceTime)&&void 0!==e?e:1)}},{key:"logEventGenerated",value:function(e){this.scheduleDebouncedFiring();var t=this.activeFragmentEvent.stats,n=this.activeFragmentEvent.firstEventNumber+t.eventsGenerated;return t.eventTopics.push(e),t.eventsGenerated++,this.estimatedFragmentSize+=e.length,n}},{key:"logEventReadyToSend",value:function(e){this.activeFragmentEvent.stats.eventsReadyToSend+=e}},{key:"logEventSent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId();t===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.eventsSent+=e:this.findPreviousInstanceStat(t,(function(t){t.eventsSent+=e}))}},{key:"logNetworkResponseCode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCurrentInstanceId(),n=this.activeFragmentEvent.stats.networkResponseStats;t!==this.getCurrentInstanceId()&&this.findPreviousInstanceStat(t,(function(e){n=e.networkResponseStats})),e>=200&&e<300?n.eventsWith2XXResponse++:400===e?n.eventsWith400Response++:408===e?n.eventsWith408Response++:429===e?n.eventsWith429Response++:e>400&&e<500?n.eventsWith4XXResponse++:500===e?n.eventsWith500Response++:502===e?n.eventsWith502Response++:503===e?n.eventsWith503Response++:504===e?n.eventsWith504Response++:e>500&&e<600&&n.eventsWith5XXResponse++}},{key:"findPreviousInstanceStat",value:function(e,t){var n,i=Nw(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.instanceId===e)return void t(r)}}catch(e){i.e(e)}finally{i.f()}var o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:JT(t),eventTopic:XT(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,r===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(r,(function(e){e.failures.push(c)})),this.fireFragmentEventIfFull()}},{key:"flush",value:function(){this.activeFragmentEvent.isLastFragment=!0,this.fireFragmentEventIfFull(!0)}},{key:"fragmentIsFull",value:function(){return this.activeFragmentEvent.stats.eventsGenerated>=100||this.estimatedFragmentSize>=this.fragmentSizeLimit}},{key:"fireFragmentEventIfFull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,i=t.requestHeader,r=this.activeFragmentEvent;r.header=n,r.requestHeader=i,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=nS(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.stats.eventsGenerated,!1,t)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=rS(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=rS(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:"0000000000000000"}}}}]),e}();function tS(e){return ZT||(ZT=new eS(e)),{getCurrentInstanceId:function(){return ZT.getCurrentInstanceId()},logEventGenerated:function(e){return ZT.logEventGenerated(e)},logEventReadyToSend:function(e){ZT.logEventReadyToSend(e)},logEventSent:function(e){ZT.logEventSent(e)},logPersistedEventSent:function(e,t){ZT.logEventSent(t,e)},logNetworkResponseCode:function(e){ZT.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=ZT)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){ZT.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){ZT.logFailedEvent(t,n,i,r,e)},flush:function(){ZT.flush()},destroy:function(){ZT=void 0},isDestroyed:function(){return void 0===ZT},setCurrentContext:function(e){ZT.setCurrentContext(e)},updateAppState:function(e){ZT.updateAppState(e)}}}function nS(e,t,n,i,r){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:i,stats:{instanceId:e,eventsGenerated:0,eventsReadyToSend:0,eventsSent:0,networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},eventTopics:[],failures:[],previousInstanceEventStats:[]},requestHeader:r.requestHeader,header:r.header}}function iS(){return{pageKey:"unknown",pageInstance:m_("unknown")}}function rS(e){return Array.isArray(e)?h_(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(f_)}(e)?atob(e):h_(function(e){return Qw(e)}(e))}!function(e){e.NONE="NONE",e.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",e.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",e.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",e.RETRIES_EXCEEDED="RETRIES_EXCEEDED",e.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",e.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",e.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"}($T||($T={}));var oS="PageViewEvent",sS=function(){function e(t){var n=this;Pw(this,e),Dw(this,"host",void 0),Dw(this,"queue",void 0),Dw(this,"preContextQueue",void 0),Dw(this,"debounceTimer",void 0),Dw(this,"unloadHandlers",void 0),Dw(this,"maxQueueSize",void 0),Dw(this,"flushDebounceTime",void 0),Dw(this,"trackingEventListeners",[]),Dw(this,"onHideHandler",(function(){n.forceFlush()})),Dw(this,"networkTransporter",void 0),Dw(this,"clientMonitoringConn",void 0),Dw(this,"clientSequenceNumberCounter",void 0),Dw(this,"isTimerRunning",void 0),Dw(this,"enableSequenceNumberLix",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var i=t.batching;this.maxQueueSize=i&&i.maxSize||1,this.flushDebounceTime=i&&i.debounceTime||0,I_.on("internal:hide",this.onHideHandler),this.networkTransporter=new qT(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=tS(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Mw(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var i;if(t&&!t.isDestroyed())try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&i.forEach((function(n){var i,r=n.eventInfo.eventName,o=n.eventInfo.topicName||r,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logFailedEvent($T.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},a,null!==(i=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==i?i:-1)}))}catch(e){}},onBeforeRetry:function(e){var n;if(t&&!t.isDestroyed())try{if(n=JSON.parse(e),!Array.isArray(n)||0===n.length||!n[0].eventBody.header.clientMonitoringInstanceId)return;var i=n[0].eventBody.header.clientMonitoringInstanceId,r=n.length;t.logPersistedEventSent(i,r)}catch(e){}},onResult:function(e,n){var i;if(t)try{if(i=JSON.parse(n),!Array.isArray(i)||0===i.length||!i[0].eventBody.header.clientMonitoringInstanceId)return;var r=i[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(r,e.statusCode),!0===e.drop&&i.forEach((function(n){var i=n.eventInfo.eventName,o=n.eventInfo.topicName||i,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logPersistedFailedEvent(r,$T.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(XT(e.id)));var n,i=this.host,r=i.api.Promise,o=i.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),r.resolve(!0)):(this.flush(!0),r.resolve(!0))):(this.preContextQueue.push(t),r.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,I_.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:m_("unknown"),pageKey:"unknown"}).forEach((function(t){return e.queue.push(t)})),this.flush(!0)}},{key:"isLixEnabled",value:function(e){var t,n;return"enabled"===(null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,e))}},{key:"getSequenceNumberFromIDB",value:function(){var e=this;w_("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){I_.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){w_("update",this.clientSequenceNumberCounter).catch((function(e){I_.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-update"],reason:e})}))}},{key:"updateSequenceNumberOnExit",value:function(){var e=this;"undefined"!=typeof window&&"undefined"!=typeof document&&window.addEventListener("beforeunload",(function t(){e.updateSequenceNumberToIDB(),window.removeEventListener("beforeunload",t)}))}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=y_(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,s={eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:o.assign({appId:r},e)};return n.length>0&&this.host.api.assign(s,{clientBreadcrumbs:n}),s}},{key:"getBreadcrumbs",value:function(e){return e.clientBreadcrumbs||[]}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,i=n.appVersion,r=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===oS:e.eventName===oS}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=null;"string"!=typeof r&&null!==this.host.locale||(p=r);var f={interfaceLocale:p,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={pageInstance:d,time:e.meta.time,version:i};"number"==typeof this.clientSequenceNumberCounter&&c(m,{clientGlobalSequenceNumber:this.clientSequenceNumberCounter});var g={header:c(m,e.meta.header||{}),requestHeader:c(f,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,y=e.meta.clientMonitoringInstanceEventNumber;return v&&c(g.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:y}),c(e.body,g)}},{key:"populatePreContextQueue",value:function(e){var t,n=this.preContextQueue;return this.preContextQueue=[],null===(t=this.clientMonitoringConn)||void 0===t||t.logEventReadyToSend(n.length),n.map((function(t){return t.meta.context=e,"function"==typeof t.body&&(t.body=t.body(e)),t}))}},{key:"trigger",value:function(e,t){this.trackingEventListeners.forEach((function(n){return n(e,t)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(){t.forceFlush()}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.enableSequenceNumberLix&&"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){e.updateSequenceNumberToIDB()}),5e3)),this.queue=[];var n,i,r=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),i=e.getBreadcrumbs(t),s=e.envelop(t.id,n,i);e.trigger(s,t.meta);var a=s.eventInfo.eventName;"LixTreatmentsEvent"===a||"JavaScriptErrorEvent"===a?r.push(s):o.push(s),e.enableSequenceNumberLix&&"number"==typeof e.clientSequenceNumberCounter&&e.clientSequenceNumberCounter++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(r.length+o.length),i=this.clientMonitoringConn,n={onResult:function(e,t){i&&!i.isDestroyed()&&(e.statusCode&&i.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,r=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==i||i.logFailedEvent($T.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,r,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();var aS,cS=function(){function e(t,n){Pw(this,e),this.clientBreadcrumbType=t,this.id=n}return Mw(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,i){return"build"===i?function(){return e}:function(n){return e[i.toString()]=n,t}}});return t}().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}();function lS(e){if(!e)return{};var t=e.trk,n=!1,i=e.licu&&decodeURIComponent(e.licu);e.external_control&&(i="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var r=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=r&&{pageInstance:r,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var s=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(s),trackingId:e.external_page_instance},pageKey:s},n=!0}var a=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0;return a&&((o=o||{}).applicationInstance=a),{fromExternalApp:n||!!a,previousApplicationInstance:a,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function uS(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(aS||(aS={}));var dS,hS,pS;!function(){function e(t,n){var i,r;if(Pw(this,e),Dw(this,"transporter",void 0),Dw(this,"delegate",void 0),Dw(this,"currentContext",void 0),Dw(this,"appState",void 0),Dw(this,"previousAppContext",void 0),Dw(this,"customTransporters",void 0),Dw(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new sS(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(i=(r=t.host).__getLixTreatment)||void 0===i?void 0:i.call(r,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=tS(t.host))}Mw(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){uS(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=uS(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return y_(this.currentContext,this.host.api)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.navMetaFromSeed(e,lS(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=y_(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(y_(e,this.host.api))}},{key:"updateAppState",value:function(e){var t;this.host.api.assign(this.appState,e),null===(t=this.clientMonitoringConn)||void 0===t||t.updateAppState(e)}},{key:"fireCIE",value:function(e,t,n,i,r){return this.fireEvent("ControlInteractionEvent",(function(n){var o=g_(n.pageKey,e),s={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n,i){if(!t){var r=XT(e),o=void 0===t?"undefined":null===t?"null":qw(t),s='Firing tracking event "'.concat(r,'" with invalid body, you fired "').concat(o,'"');if(this.clientMonitoringConn){var a=this.clientMonitoringConn.logEventGenerated(r);this.clientMonitoringConn.logFailedEvent($T.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return cS.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:l})}var u=c.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,c):this.generateEnvelope(e,t,n);return this.fireEnvelope(u)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=this.generateEnvelope(e,t,n),o=i.length>0?this.addBreadcrumbsToEnvelope(r,i):r;return o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){var n=t.map((function(e){var t=e;return delete t.clientBreadcrumbType,t}));return this.host.api.assign(e,{clientBreadcrumbs:n}),e}},{key:"fireEnvelope",value:function(e){var t,n;if(null!==(t=this.delegate)&&void 0!==t&&null!==(n=t.shouldAnonymizeMemberId)&&void 0!==n&&n.call(t))if(QT(e.id)){var i=e.id;e.id={eventName:i,topicName:i,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var r=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(r){var o=r.meta.transporterKey,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=XT(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent($T.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return s.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return m_(e,t)}},{key:"firePVE",value:function(e,t,n){var i={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},r=this.host.api.assign(i,t),o=this.generateEnvelope("PageViewEvent",r,{context:n});return o.meta.requestHeader.pageKey=e,this.fireEnvelope(o)}},{key:"destroy",value:function(){for(var e in this.transporter.destroy(),this.customTransporters)this.customTransporters[e].destroy();this.clientMonitoringConn&&(this.clientMonitoringConn.flush(),this.clientMonitoringConn.destroy(),this.clientMonitoringConn=void 0),I_.clear()}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return g_((t||this.currentContext||{pageKey:"unknown"}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,i){var r={controlTrackingId:i,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",r,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,i=e.from;return{previousPageInstance:i&&i.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t){var n="NavigationEvent";this.previousAppContext=t.previousContext;var i=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:i,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,i=e.from,r=e.navEventId,o=this.generateEnvelope(r,t);o.meta.requestHeader.pageKey=n.pageKey;var s=i&&i.applicationInstance;return s&&(o.meta.header.clientApplicationInstance=s),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&y_(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:i}}}])}();function fS(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(){function e(t,n){var i,r=this;Pw(this,e),Dw(this,"core",void 0),Dw(this,"protocol",void 0),Dw(this,"throttleKeySet",new Set),Dw(this,"config",void 0),Dw(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),r.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100},I_.on("internal:error",this.reportTransporterError)}Mw(e,[{key:"reportError",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.callTreeId,s=void 0===o?"":o,a=r.responseHeaders,c=void 0===a?{}:a,l=e.message,u=e.name,d=e.stack,h=void 0===d?"":d,p=e.fileName,f=void 0===p?"":p,m=e.lineNumber,g=void 0===m?0:m,v=e.columnNumber,y=void 0===v?0:v,E=this.core.host,b=E.appId,w=E.appVersion,_=E.service,T=E.serviceInstance,S=E.treeID,C=void 0===S?"":S,I=E.api,k=I.Promise,A=I.location,O=A.host,L=A.pathname,R=A.search,N=A.hash,P=void 0===N?"":N;if(c){t={};var x=new Map;Object.keys(c).forEach((function(e){x.set(e.toLowerCase(),c[e])})),t.callTreeId=x.get("x-li-uuid"),t.microsoftEdgeReference=x.get("x-msedge-ref"),t.pointOfPresenceId=x.get("x-li-pop"),t.fabric=x.get("x-li-fabric")}var M=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:b,e:{c:y,l:g,m:l,s:h,t:u,u:f},h:P,l:n.protocol,o:O,p:L,pageKey:e.pageKey,q:R,service:_,serviceInstance:T,serviceVersion:w,t:i,trackingID:e.pageInstance.trackingId,treeID:C,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=fS(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?k.resolve(!1):(this.throttleKeySet.add(D),setTimeout((function(){return n.throttleKeySet.delete(D)}),this.config.throttleTime),M())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),I_.off("internal:error",this.reportTransporterError)}}])}();var mS=function(){function e(){Pw(this,e),Dw(this,"userTimingEntries",[]),Dw(this,"longTasks",[]),Dw(this,"resourceTimingEntries",[]),Dw(this,"cdnData",void 0)}return Mw(e,[{key:"reset",value:function(){this.userTimingEntries=[],this.longTasks=[],this.resourceTimingEntries=[]}},{key:"attachTreeIds",value:function(e){this.resourceTimingEntries.forEach((function(t){var n=e.get(t.name);n&&(t.resourceTreeId=n)}))}},{key:"getData",value:function(){return{userTimingEntries:this.userTimingEntries,longTasks:this.longTasks,resourceTimingEntries:this.resourceTimingEntries.map(vS),cdnData:this.cdnData}}}]),e}(),gS=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function vS(e){return gS.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function yS(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};hS=Object.assign(Object.assign({},n),t),pS=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(hS.root,n);var i=ES(e,dS.All,(function(){return ES(e,dS.Two,(function(){return ES(e,dS.One)}))}));if(i){var r=OS(LS(i,e));return r.length>0&&(i=r[0]),wS(i)}throw new Error("Selector was not found.")}function ES(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=IS(function(e){var t=e.getAttribute("id");return t&&hS.idName(t)?{name:"#"+US(t,{isIdentifier:!0}),penalty:0}:null}(o))||IS.apply(void 0,Uw(function(e){return Array.from(e.attributes).filter((function(e){return hS.attr(e.name,e.value)})).map((function(e){return{name:"["+US(e.name,{isIdentifier:!0})+'="'+US(e.value)+'"]',penalty:.5}}))}(o)))||IS.apply(void 0,Uw(function(e){return Array.from(e.classList).filter(hS.className).map((function(e){return{name:"."+US(e,{isIdentifier:!0}),penalty:1}}))}(o)))||IS(function(e){var t=e.tagName.toLowerCase();return hS.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling;return i}(o);if(t===dS.All)a&&(e=e.concat(e.filter(CS).map((function(e){return SS(e,a)}))));else if(t===dS.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(CS).map((function(e){return SS(e,a)}))));else if(t===dS.One){var c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,t)||Bw(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e=e.slice(0,1),1)[0];a&&CS(c)&&(e=[SS(c,a)])}var l,u=Nw(e);try{for(u.s();!(l=u.n()).done;)l.value.level=s}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=hS.seedMinLength&&(i=bS(r,n)))return"break";o=o.parentElement,s++};o&&o!==hS.root.parentElement&&"break"!==a(););return i||(i=bS(r,n)),i}function bS(e,t){var n=OS(AS(e));if(n.length>hS.threshold)return t?t():null;var i,r=Nw(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(TS(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function wS(e){for(var t=e[0],n=t.name,i=1;i<e.length;i++){var r=e[i].level||0;n=t.level===r-1?"".concat(e[i].name," > ").concat(n):"".concat(e[i].name," ").concat(n),t=e[i]}return n}function _S(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function TS(e){switch(pS.querySelectorAll(wS(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(wS(e)));case 1:return!0;default:return!1}}function SS(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function CS(e){return"html"!==e.name&&!e.name.startsWith("#")}function IS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(kS);return i.length>0?i:null}function kS(e){return null!=e}function AS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length>0){var n,i=[],r=Nw(e[0]);try{for(r.s();!(n=r.n()).done;){var o=n.value;i=i.concat(AS(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function OS(e){return Array.from(e).sort((function(e,t){return _S(e)-_S(t)}))}function LS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(e.length>2&&e.length>hS.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>hS.maxNumberOfTries)return i;n.counter+=1;var o=Uw(e);o.splice(r,1);var s=wS(o);if(n.visited.has(s))return i;TS(o)&&RS(o,t)&&(i.push(o),n.visited.set(s,!0),i=i.concat(LS(o,t,n)))}return i}function RS(e,t){return pS.querySelector(wS(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(dS||(dS={}));var NS,PS=/[ -,\.\/:-@\[-\^`\{-~]/,xS=/[ -,\.\/:-@\[\]\^`\{-~]/,MS=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,DS={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function US(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},DS),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),s="",a=0,c=e.length;a<c;){var l=e.charAt(a++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<c){var h=e.charCodeAt(a++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?PS.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!r&&('"'==l&&i==l||"'"==l&&i==l)||r&&xS.test(l)?"\\"+l:l;s+=d}return r&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(MS,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function BS(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,i=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(i+n)}return Date.now()}function FS(e){var t=e||performance;return Math.round(t.now())}function qS(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return yS(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=qS(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function HS(e,t,n){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){i.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){i.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),i}function jS(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var GS,zS=function(){function e(t){Pw(this,e),Dw(this,"hostApis",void 0),Dw(this,"hostnameProperties",void 0),Dw(this,"usedHostnames",void 0),Dw(this,"abortController",void 0),Dw(this,"pendingPromises",void 0),this.hostApis=t;var n=t.AbortController;this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return Mw(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return b_(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,i=n.AbortController,r=n.Promise,o=E_(b_(this.pendingPromises),r),s=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(s),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,i,r=this.hostApis.assign,o=(n=e.name,i=this.hostApis.document,(NS=NS||i.createElement("a")).href=n,NS.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(s),n}));this.pendingPromises.add(s)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),WS=function(){function e(t,n,i,r){Pw(this,e),Dw(this,"hostApis",void 0),Dw(this,"statics",void 0),Dw(this,"options",void 0),Dw(this,"allowTimingOrigin",void 0),Dw(this,"collectResourceTimings",void 0),Dw(this,"collectCdnData",void 0),Dw(this,"perfObserver",void 0),Dw(this,"renderTimings",new Map),Dw(this,"urlToTreeId",new Map),Dw(this,"cdnDataProvider",void 0),Dw(this,"observables",new mS),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new zS(t))}return Mw(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(NS=NS||t.createElement("a")).href=e,NS.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:BS(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||BS(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collect",value:function(e){var t=this,n=e.isInitial,i=e.immediate,r=this.collectSynchronousData(n);if(i)return r;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(r,e),r})):r}},{key:"reset",value:function(){var e;this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"collectSynchronousData",value:function(e){var t=this.hostApis,n=t.assign,i=t.PerformanceObserver,r=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",i||(this.observables.userTimingEntries=HS(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var i=e.timing,r=e.navigation;return i&&r?(t.navigationTimingApi=!0,KS.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData();n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[];return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?E_(r,Promise).then((function(){return n})):n}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,i=e.name,r=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:i,startTime:r,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:i,startTime:r,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:i,startTime:r})}))})),this.observables.userTimingEntries=HS(this.hostApis.performance,this.options,!1);var n=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance;"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){return e.processSingleResourceTiming(t)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e){this.collectResourceTimings&&this.observables.resourceTimingEntries.push(e),this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:jS(this.renderTimings),networkInformationMetrics:VS(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),KS=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function VS(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix"}(GS||(GS={}));var YS=(Dw(Rw={},"web-ui-framework","EMBER"),Dw(Rw,"app-id","linkedin.rum.tracking"),Dw(Rw,"app-version","unknown"),Dw(Rw,"is-single-page-app",!0),Dw(Rw,"user-timing-mark-enabled",!1),Dw(Rw,"user-timing-measure-enabled",!0),Dw(Rw,"beacon-source","apps"),Dw(Rw,"enable-rs-timing",!0),Dw(Rw,"enable-cdn-tracking",!1),Dw(Rw,"async-plugins-timeout",5e3),Dw(Rw,"beacon-timeout",3e4),Dw(Rw,"enable-memory-measurement",!1),Dw(Rw,"pageKeyPrefix",""),Rw),QS=function(){function e(t,n,i){Pw(this,e),Dw(this,"featureName",void 0),Dw(this,"trackingCore",void 0),Dw(this,"rumConfig",void 0),Dw(this,"observing",!1),Dw(this,"basePageTreeId",void 0),Dw(this,"startPageInstance",void 0),Dw(this,"startMemory",void 0),Dw(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return Mw(e,[{key:"startObserving",value:function(){var t,n=this,i=this.getMemory();i&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||m_("unknown"),this.startMemory=i,this.reportTimeouts=e.checkpoints.map((function(e){return setTimeout((function(){return n.reportMemory(e)}),60*e*1e3)})))}},{key:"stopObserving",value:function(){this.reportTimeouts.forEach((function(e){return clearTimeout(e)})),this.observing=!1}},{key:"reportMemory",value:function(e){var t={name:this.featureName,basePageTreeId:this.basePageTreeId,startTime:FS(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();Dw(QS,"checkpoints",[1,3,10,30,90,180,300]);var XS,JS,ZS,$S,eC,tC=Mw((function e(t,n,i){Pw(this,e),Dw(this,"webUIFramework",void 0),Dw(this,"timeSource",void 0),Dw(this,"isSinglePageApp",void 0),Dw(this,"appRenderMode",void 0),Dw(this,"isAppRenderFailed",void 0),Dw(this,"pageLoadMode","INITIAL"),Dw(this,"isSSL",void 0),Dw(this,"treeId",void 0),Dw(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),nC=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},iC=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},rC=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},oC=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},sC=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},aC=-1,cC=function(){return"hidden"===document.visibilityState?0:1/0},lC=function(){rC((function(e){var t=e.timeStamp;aC=t}),!0)},uC=function(){return aC<0&&(aC=cC(),lC(),oC((function(){setTimeout((function(){aC=cC(),lC()}),0)}))),{get firstHiddenTime(){return aC}}},dC=!1,hC=-1,pC=function(e,t){dC||(function(e,t){var n,i=uC(),r=nC("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:iC("paint",o);(s||a)&&(n=sC(e,r,t),s&&o(s),oC((function(i){r=nC("FCP"),n=sC(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){hC=e.value})),dC=!0);var n,i=function(t){hC>-1&&e(t)},r=nC("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],i=s[s.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>r.value&&(r.value=o,r.entries=s,n())}},c=iC("layout-shift",a);c&&(n=sC(i,r,t),rC((function(){c.takeRecords().map(a),n(!0)})),oC((function(){o=0,hC=-1,r=nC("CLS",0),n=sC(i,r,t)})))},fC={passive:!0,capture:!0},mC=new Date,gC=function(e,t){XS||(XS=t,JS=e,ZS=new Date,EC(removeEventListener),vC())},vC=function(){if(JS>=0&&JS<ZS-mC){var e={entryType:"first-input",name:XS.type,target:XS.target,cancelable:XS.cancelable,startTime:XS.timeStamp,processingStart:XS.timeStamp+JS};$S.forEach((function(t){t(e)})),$S=[]}},yC=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){gC(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,fC),removeEventListener("pointercancel",i,fC)};addEventListener("pointerup",n,fC),addEventListener("pointercancel",i,fC)}(t,e):gC(t,e)}},EC=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,yC,fC)}))},bC=function(e,t){var n,i=uC(),r=nC("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=iC("first-input",o);n=sC(e,r,t),s&&rC((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&oC((function(){var i;r=nC("FID"),n=sC(e,r,t),$S=[],JS=-1,XS=null,EC(addEventListener),i=o,$S.push(i),vC()}))},wC={},_C=function(e,t){var n,i=uC(),r=nC("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=iC("largest-contentful-paint",o);if(s){n=sC(e,r,t);var a=function(){wC[r.id]||(s.takeRecords().map(o),s.disconnect(),wC[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),rC(a,!0),oC((function(i){r=nC("LCP"),n=sC(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,wC[r.id]=!0,n(!0)}))}))}))}},TC=["LCP","FID","CLS"],SC={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},CC={},IC=function(){var e;if(!HT)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),kC=!1,AC=[],OC={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function LC(){var e=!0===window.__test__resetWebVitalsState;if(!kC||e){e&&(AC=[]),TC.forEach(RC);var t=Symbol();eC=t,[_C,bC,pC].forEach((function(e){return e(NC.bind(null,t),!0)})),[_C,bC,pC].forEach((function(e){return e(PC.bind(null,t))})),kC=!0}}function RC(e){CC[e]={name:e,value:-1,updateHistory:[]};var t=OC[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(CC[e].value=-2)}function NC(e,t){if(e===eC){var n=CC[t.name],i=FS();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),AC.forEach((function(e){return e(t,i,!1)}))}}function PC(e,t){e===eC&&AC.forEach((function(e){return e(t,FS(),!0)}))}var xC=function(){function e(t,n){Pw(this,e),Dw(this,"basePageTreeId",void 0),Dw(this,"basePageKey",void 0),Dw(this,"observing",!1),Dw(this,"appContextMap",new Map),Dw(this,"rumConfig",void 0),Dw(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return Mw(e,[{key:"startObserving",value:function(){var e,t,n=this;LC(),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(e=this.trackingCore.getCurrentContext())||void 0===e?void 0:e.pageKey)||"_unknown",TC.forEach((function(e){var t;-2===(null===(t=CC[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),AC.push(t))}},{key:"stopObserving",value:function(){this.observing=!1}},{key:"onMetricUpdate",value:function(e,t,n){var i;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(i=this.trackingCore.getCurrentContext())||void 0===i?void 0:i.pageKey}))}},{key:"reportMetric",value:function(e){var t=CC[e],n={name:SC[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=CC[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:IC},s=null;switch(n.name){case"LCP":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1],s={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:qS(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(s.url=o.url),s}(n,i);break;case"FID":s=function(e,t){var n;if(0===e.updateHistory.length)return null;var i=e.updateHistory[e.updateHistory.length-1],r=i.data.entries,o=r[r.length-1];return{pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:qS(o.target)}}(n,i);break;case"CLS":s=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var i=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),r=e.updateHistory.find((function(e){return e.data.entries.includes(i)})),o=null;i&&i.sources&&i.sources.length&&(o=i.sources.reduce((function(e,t){return e.node&&e.previousRect.width*e.previousRect.height>t.previousRect.width*t.previousRect.height?e:t})));var s,a=t.get(r.time);return o&&a?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":qS(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(s){var a={};return r(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,i,this.appContextMap,this.trackingCore.host.api.assign);n.metadata=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];t[n]="string"==typeof i?i:JSON.stringify(i)})),t}(r)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}}]),e}();!function(){function e(t,n,i){var r,o;Pw(this,e),Dw(this,"core",void 0),Dw(this,"config",void 0),Dw(this,"collector",void 0),Dw(this,"boomerangStart",-1),Dw(this,"webVitalsObserver",void 0),Dw(this,"appMemoryObserver",void 0),Dw(this,"pageMemoryObserver",void 0),Dw(this,"liveTokens",new Set),Dw(this,"stateWM",new WeakMap),Dw(this,"activeToken",void 0),Dw(this,"isInitial",void 0),Dw(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),this.core=i,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(i.host.api.assign({},YS),n);var s="enabled"===(null===(r=(o=this.core.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new WS(i.host.api,new tC(t,this.config,i.host),this.config,s),this.collector.startObserving(),I_.before("internal:hide",this.beforeHideHandlerBound)}Mw(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,i;this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var r,o=Object.create(null),s="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=o,this.liveTokens.add(o),this.stateWM.set(o,{isInitial:this.isInitial,startTime:BS(this.core.host.api.performance,s)}),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(i=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pemberly.tracking.rum-memory-measurement")))&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new QS("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new QS("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new xC(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var s=this.stateWM.get(e),a="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=BS(this.core.host.api.performance,a);s.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o};var l=this.activeToken;s.fireRumEventTimeout=setTimeout((function(){var e=i.collector.collect({isInitial:s.isInitial});"then"in e?e.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(e,l)}),this.config["beacon-timeout"]),this.activeToken=void 0}else I_.emit("internal:error",{tags:["core-web-tracking:rum:end"],reason:new Error("RUM end: rum token passed is invalid")})}},{key:"destroy",value:function(){var e,t,n;I_.offBefore("internal:hide",this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){var i=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(i,t)}}))}},{key:"fireRumEvent",value:function(e,t){if(this.stateWM.get(t)){var n=this.core.host.api.assign,i=this.stateWM.get(t),r=i.startTime,o=i.endProps;if(o){var s=o.renderCompleteTime,a=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=s-u,h=this.config["app-version"];this.core.fireEvent({appId:this.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(t){return n({pageKey:c||t.pageKey,isImpactedByHiddenWindow:a,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:s},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}}])}();var MC="undefined"!=typeof window&&"undefined"!=typeof performance,DC="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function UC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",BC(n,t))}function BC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=ew(document),i=tw(document),r=Lw();let o={};return r&&(o.theme=r.toUpperCase()),i&&(o.interfaceLocale=i),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}!function(){function e(t,n){Pw(this,e),Dw(this,"featureKey",void 0),Dw(this,"productName",void 0),Dw(this,"endPageInstance",void 0),Dw(this,"startPageInstance",void 0),Dw(this,"isCanceled",!1),Dw(this,"featureIdentifier",void 0),Dw(this,"name",void 0),Dw(this,"startTime",void 0),Dw(this,"duration",void 0),Dw(this,"marks",[]),Dw(this,"spanStarts",new Map),Dw(this,"spans",[]),Dw(this,"isSpanContainer",!1),Dw(this,"basePageTreeId",void 0),Dw(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}Mw(e,[{key:"start",value:function(e){this.startPageInstance=e,MC&&(this.startTime=FS(),DC&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){MC&&(this.marks.push({name:e,startTime:FS()}),DC&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))))}},{key:"spanStart",value:function(e){MC&&(this.spanStarts.set(e,FS()),DC&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(MC&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:FS()-n}),DC&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")))}}},{key:"deleteSpan",value:function(e){if(this.isClosed)throw new Error("[rum measurement] spans can only be deleted before the feature performance measurement ends.");for(var t=this.spans.length-1;t>=0;t--)if(this.spans[t].name===e)return void this.spans.splice(t,1)}},{key:"end",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isClosed){if(this.isSpanContainer=t,this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));this.endPageInstance=e,MC&&(this.duration=FS()-this.startTime,DC&&!this.isSpanContainer&&(performance.mark("LI:".concat(this.featureIdentifier,"-end")),performance.measure("LI:".concat(this.featureIdentifier),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-end"))),this.cleanUp())}}},{key:"cancel",value:function(){this.isCanceled||(this.isCanceled=!0)}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"toEventBody",value:function(){if(MC){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||m_("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(MC){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'));if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'));if(this.isSpanContainer&&0===this.spans.length)throw new Error("The span container should have at least one span");for(var e=0,t=["startTime","duration","basePageTreeId"];e<t.length;e++){var n=t[e];if(void 0===this[n])throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is missing "').concat(n,'"'))}}}},{key:"cleanUp",value:function(){this.spanStarts.clear()}}])}();const{ENTER:FC,ESCAPE:qC}=iw,HC="modal",jC="modal__overlay--visible",GC="no-scroll",zC="top-level-modal-container";class WC{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No modal element passed in");this._el=e,this._parentNode=this._el.parentNode,r&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".".concat("modal__wrapper")),this._overlayEl=this._el.querySelector(".".concat("modal__overlay")),o&&(this._events=o),i&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".".concat("modal__dismiss")),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._pageKey=a,this._shouldHideModal=n,this._shouldMoveToTopContainer=r;this._el.querySelector("[id='".concat("modalNoDismiss","']"))&&(this._isModalNonDismissible=!0),this._focusElement=s,i&&this._outletEls.forEach((e=>{e.addEventListener("click",(()=>this.open()))})),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",(()=>this.close())),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new gw(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(zC));if(!e){const e=document.createElement("div");return e.className=zC,document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=ow(e.key),n=t===FC&&document.activeElement===this._exitButtonEl;(t===qC||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add(jC),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),Yb(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then((e=>{UC(e,"ajax",this._pageKey||"".concat(this._el.id))})):(Yb(this._wrapperEl,"afterOpen"),Promise.resolve());Yb(this._el,"didNotOpen")}async close(){var e,t;this._events.onBeforeClose&&await(null===(e=this._events)||void 0===e||null===(t=e.onBeforeClose)||void 0===t?void 0:t.call(e,this._wrapperEl));this._overlayEl.classList.remove(jC),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),Yb(this._el,"close"),setTimeout((()=>{var e;(null===(e=this._focusElement)||void 0===e?void 0:e.focus())||this._previouslyFocusedEl.focus()}),50),this._focusTrap.tearDown()}noScroll(){document.body.classList.add(GC)}removeNoScroll(){document.body.classList.remove(GC)}}function KC(e,t){t=t||"log";if("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)}const VC=/ /g,YC=/[\s\u0000<>"]|%00/,QC=/\\/,XC=/([.]|%2e){2}/i;let JC=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function ZC(e){let t,n="invalid://";if("string"!=typeof e)return KC("jSecure Warning: url must be a string","error"),n;if(t=e.trim(),t.indexOf(" ")>-1&&(KC("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(VC,"+")),!JC.test(t))return KC("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(YC.test(t))return KC("jSecure Error: not valid url character found in url: "+e,"error"),n;let i,r=t.split("?")[0],o=!1;try{i=decodeURI(r)}catch(e){o=!0}return o?(KC("jSecure Error: malformed url path detected: "+r),n):QC.test(r)||XC.test(r)||XC.test(i)?(KC("jSecure Error: malicious data found in url path: "+r,"error"),n):e}const $C={redirect(e){window&&(window.location.href=e)}};function eI(e){return e.scrollHeight>e.offsetHeight}const tI="hidden",nI="aria-hidden";function iI(e,t){const n=qb(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function rI(e){sI([e])}function oI(e){aI([e])}function sI(e){iI(e,(e=>{e.classList.add(tI),e.setAttribute(nI,"true")}))}function aI(e){iI(e,(e=>{e.classList.remove(tI),e.setAttribute(nI,"false")}))}function cI(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function lI(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function uI(){return document.documentElement.classList.contains("safari")}function dI(){return document.documentElement.classList.contains("ios")}function hI(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}function pI(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=null==n?void 0:n.querySelector(".".concat(e));if(i&&eI(i)){const r=n.querySelector(t);null==r||r.classList.remove("invisible"),null==r||r.addEventListener("click",(()=>{i.classList.remove(e),r.classList.add("invisible")}))}}var fI=Object.hasOwnProperty,mI=Object.setPrototypeOf,gI=Object.isFrozen,vI=Object.getPrototypeOf,yI=Object.getOwnPropertyDescriptor,EI=Object.freeze,bI=Object.seal,wI=Object.create,_I="undefined"!=typeof Reflect&&Reflect,TI=_I.apply,SI=_I.construct;TI||(TI=function(e,t,n){return e.apply(t,n)}),EI||(EI=function(e){return e}),bI||(bI=function(e){return e}),SI||(SI=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var CI=MI(Array.prototype.forEach),II=MI(Array.prototype.pop),kI=MI(Array.prototype.push),AI=MI(String.prototype.toLowerCase),OI=MI(String.prototype.match),LI=MI(String.prototype.replace),RI=MI(String.prototype.indexOf),NI=MI(String.prototype.trim),PI=MI(RegExp.prototype.test),xI=function(e){return function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return SI(e,n)}}(TypeError);function MI(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return TI(e,t,i)}}function DI(e,t){mI&&mI(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=AI(i);r!==i&&(gI(t)||(t[n]=r),i=r)}e[i]=!0}return e}function UI(e){var t=wI(null),n=void 0;for(n in e)TI(fI,e,[n])&&(t[n]=e[n]);return t}function BI(e,t){for(;null!==e;){var n=yI(e,t);if(n){if(n.get)return MI(n.get);if("function"==typeof n.value)return MI(n.value)}e=vI(e)}return function(e){return console.warn("fallback value for",e),null}}var FI=EI(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qI=EI(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),HI=EI(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),jI=EI(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),GI=EI(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),zI=EI(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),WI=EI(["#text"]),KI=EI(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),VI=EI(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),YI=EI(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),QI=EI(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),XI=bI(/\{\{[\s\S]*|[\s\S]*\}\}/gm),JI=bI(/<%[\s\S]*|[\s\S]*%>/gm),ZI=bI(/^data-[\-\w.\u00B7-\uFFFF]/),$I=bI(/^aria-[\-\w]+$/),ek=bI(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tk=bI(/^(?:\w+script|data):/i),nk=bI(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ik="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function rk(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var ok=function(){return"undefined"==typeof window?null:window},sk=function(e,t){if("object"!==(void 0===e?"undefined":ik(e))||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var ak=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ok(),n=function(t){return e(t)};if(n.version="2.3.5",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,p=t.DOMParser,f=t.trustedTypes,m=c.prototype,g=BI(m,"cloneNode"),v=BI(m,"nextSibling"),y=BI(m,"childNodes"),E=BI(m,"parentNode");if("function"==typeof s){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var w=sk(f,i),_=w?w.createHTML(""):"",T=r,S=T.implementation,C=T.createNodeIterator,I=T.createDocumentFragment,k=T.getElementsByTagName,A=i.importNode,O={};try{O=UI(r).documentMode?r.documentMode:{}}catch(e){}var L={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==O;var R=XI,N=JI,P=ZI,x=$I,M=tk,D=nk,U=ek,B=null,F=DI({},[].concat(rk(FI),rk(qI),rk(HI),rk(GI),rk(WI))),q=null,H=DI({},[].concat(rk(KI),rk(VI),rk(YI),rk(QI))),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,z=null,W=!0,K=!0,V=!1,Y=!1,Q=!1,X=!1,J=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=DI({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ce=DI({},["audio","video","img","source","image","track"]),le=null,ue=DI({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",fe=pe,me=!1,ge=void 0,ve=["application/xhtml+xml","text/html"],ye="text/html",Ee=void 0,be=null,we=r.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":ik(e))||(e={}),e=UI(e),B="ALLOWED_TAGS"in e?DI({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?DI({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?DI(UI(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?DI(UI(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?DI({},e.FORBID_CONTENTS):se,G="FORBID_TAGS"in e?DI({},e.FORBID_TAGS):{},z="FORBID_ATTR"in e?DI({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,Q=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge=ge=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ge?function(e){return e}:AI,Y&&(K=!1),$&&(Z=!0),re&&(B=DI({},[].concat(rk(WI))),q=[],!0===re.html&&(DI(B,FI),DI(q,KI)),!0===re.svg&&(DI(B,qI),DI(q,VI),DI(q,QI)),!0===re.svgFilters&&(DI(B,HI),DI(q,VI),DI(q,QI)),!0===re.mathMl&&(DI(B,GI),DI(q,YI),DI(q,QI))),e.ADD_TAGS&&(B===F&&(B=UI(B)),DI(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=UI(q)),DI(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&DI(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=UI(oe)),DI(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),Q&&DI(B,["html","head","body"]),B.table&&(DI(B,["tbody"]),delete G.tbody),EI&&EI(e),be=e)},Se=DI({},["mi","mo","mn","ms","mtext"]),Ce=DI({},["foreignobject","desc","title","annotation-xml"]),Ie=DI({},qI);DI(Ie,HI),DI(Ie,jI);var ke=DI({},GI);DI(ke,zI);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=AI(e.tagName),i=AI(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[i]:Boolean(ke[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Ce[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=DI({},["title","style","font","a","script"]);return!ke[n]&&(r[n]||!Ie[n])}return!1},Oe=function(e){kI(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Le=function(e,t){try{kI(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){kI(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var i=OI(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),fe===pe?k.call(t,Q?"html":"body")[0]:Q?t.documentElement:s},Ne=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Pe=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},xe=function(e){return"object"===(void 0===a?"undefined":ik(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":ik(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){L[e]&&CI(L[e],(function(e){e.call(n,t,i,be)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Oe(e),!0;if(OI(e.nodeName,/[\u0080-\uFFFF]/))return Oe(e),!0;var i=Ee(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:B}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&PI(/<[/\w]/g,e.innerHTML)&&PI(/<[/\w]/g,e.textContent))return Oe(e),!0;if("select"===i&&PI(/<template/i,e.innerHTML))return Oe(e),!0;if(!B[i]||G[i]){if(ne&&!oe[i]){var r=E(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(g(o[s],!0),v(e))}if(!G[i]&&Be(i)){if(j.tagNameCheck instanceof RegExp&&PI(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return Oe(e),!0}return e instanceof c&&!Ae(e)?(Oe(e),!0):"noscript"!==i&&"noembed"!==i||!PI(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=LI(t,R," "),t=LI(t,N," "),e.textContent!==t&&(kI(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in we))return!1;if(K&&!z[t]&&PI(P,t));else if(W&&PI(x,t));else if(!q[t]||z[t]){if(!(Be(e)&&(j.tagNameCheck instanceof RegExp&&PI(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&PI(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&PI(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(PI(U,LI(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==RI(n,"data:")||!ae[e]){if(V&&!PI(M,LI(n,D,"")));else if(n)return!1}else;return!0},Be=function(e){return e.indexOf("-")>0},Fe=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;Me("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(o=s.length;o--;){var c=t=s[o],l=c.name,u=c.namespaceURI;if(i=NI(t.value),r=Ee(l),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Le(l,e),a.keepAttr))if(PI(/\/>/i,i))Le(l,e);else{Y&&(i=LI(i,R," "),i=LI(i,N," "));var d=Ee(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),II(n.removed)}catch(e){}}}Me("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,i=Ne(t);for(Me("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Me("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof o&&e(n.content),Fe(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var s=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw xI("toString is not a function");if("string"!=typeof(e=e.toString()))throw xI("dirty is not a string, aborting")}if(!n.isSupported){if("object"===ik(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(xe(e))return t.toStaticHTML(e.outerHTML)}return e}if(X||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=Ee(e.nodeName);if(!B[h]||G[h])throw xI("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Re("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Y&&!Q&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(s=Re(e)))return Z?null:ee?_:""}s&&J&&Oe(s.firstChild);for(var p=Ne(ie?e:s);l=p.nextNode();)3===l.nodeType&&l===u||De(l)||(l.content instanceof o&&qe(l.content),Fe(l),u=l);if(u=null,ie)return e;if(Z){if($)for(d=I.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=Q?s.outerHTML:s.innerHTML;return Y&&(f=LI(f,R," "),f=LI(f,N," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),X=!0},n.clearConfig=function(){be=null,X=!1},n.isValidAttribute=function(e,t,n){be||Te({});var i=Ee(e),r=Ee(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(L[e]=L[e]||[],kI(L[e],t))},n.removeHook=function(e){L[e]&&II(L[e])},n.removeHooks=function(e){L[e]&&(L[e]=[])},n.removeAllHooks=function(){L={}},n}(),ck=ak;const lk={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function uk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=dk(null,e,t);return n.innerHTML}function dk(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Cw({},lk);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=ck.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var hk="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",pk=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",fk=["b","del","em","i","s","strong","sub","sup"],mk=fk.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"]),gk=[hk,"alt|checked|selected|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 vk(){}var yk=function(){var e,t=/[&<>"'\u0000\\=]/g;return e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(n){return null==n?null:n.toString().replace(t,(function(t){return e[t]}))}}(),Ek=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(r){return null==r?null:(r+"").replace(n,(function(n,r,o,s){return r?(a=r,i.hasOwnProperty(a)?i[a]:(e.innerHTML="&"+a+";",c=e[pk],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var bk=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function wk(e){return/[<&]/.test(e)}var _k=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)},Tk="[ \t\r\n]*";function Sk(e){e=bk(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",_k(e,(function(e,s){t=e.tags||mk,n=e.attrs||gk,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=Tk,o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++r+")?",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));)[^'\"<>]*\\"+ ++r),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function Ck(e){return Sk({tags:e=e||mk,checkUrlAttrs:!0})}function Ik(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!Ck(n).test(e):i?!Ik.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Ik.R_UNSAFE_HTML.test(e)}function kk(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function Ak(e,t,n){if(null==e)return null;e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){var r,o=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(o=t[i]))||o instanceof vk||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?yk(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return wk(i)&&!Ik(i,n)&&(i=kk(i),KC("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function Ok(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}Ik.R_UNSAFE_HTML=Ck(),Ik.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return Sk([{tags:mk,checkUrlAttrs:!0},{tags:[e.tag],attrs:[hk,e.attrs].join("|"),checkUrlAttrs:!1}])}();var Lk={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,"",""]};Lk.optgroup=Lk.option,Lk.tbody=Lk.tfoot=Lk.colgroup=Lk.caption=Lk.thead,Lk.th=Lk.td;var Rk=/<([\w:]+)/;function Nk(e,t){var n,i,r,o,s,a,c,l=t.createDocumentFragment(),u=[];for(s=0,c=e.length;s<c;s++)if((o=e[s])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(Rk.exec(o)||["",""])[1].toLowerCase(),Mk(r,(i=Lk[n]||Lk._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);Ok(u,r.childNodes),(r=l.firstChild).textContent=""}else Ok(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var Pk=Ak,xk=Ak;function Mk(e,t,n){var i=Ak(t,n);return wk(i)?e.innerHTML=i:e[pk]=i,i}function Dk(e,t){if(!(this instanceof Dk))return new Dk(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}Dk.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new vk,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(Ik(e,this._options)||(n=e,e=kk(e),KC("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var Uk={ALLOWED_TAGS:mk,FORMATTING_TAGS:fk,htmlEncode:yk,htmlUnencode:Ek,log:KC,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof Dk?r:yk(r))})),xk(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=Nk([e],t);else{if(!bk(e))return e;n=Nk(e,t)}return Ok([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:Pk,reEncode:function(e){return yk(Ek(e))},_redirector:$C,redirect:function(e){const t=ZC(e);t===e&&$C.redirect(t)},sanitizeHTML:xk,sanitizeUrl:ZC,setElementContent:Mk,text:function(e){return KC("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),yk(e)},unsafe:function(e){return e},UnsafeString:Dk};function Bk(e){if(e instanceof HTMLElement)if(document.documentElement.classList.contains("ios")){const t=10,n=10;e.blur();let i=0;const r=window.setInterval((function(){e.focus(),i>=n&&window.clearInterval(r),i++}),t)}else e.focus()}const Fk="toast--hidden",qk=".toast",Hk=".toast__message",jk=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class Gk{constructor(){let{removeToastCallback:e=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.getElementById("toasts");if(!t)throw new Error("No toasts element");this._el=t,this._position=t.getAttribute("type"),this.removeToastCallback=e,this.bindEvents()}trigger(e,t,n,i){if(!e||!Object.values(jk).includes(e))throw new Error("Valid type not specified: type must be caution, error, gdpr, notify or success");if(!t)throw new Error("No message specified");const r=n?"".concat(n,"_toast-").concat(e):"toast-".concat(e),o=this._createToastEl(e,t,r,i);return this._addToast(o)}clearAllToasts(){let e=this._el.querySelectorAll(qk);Array.from(e).forEach((e=>{this._removeToast(e)}))}bindEvents(){this._el.addEventListener("click",(e=>{const t=xb(e.target,".toast__dismiss-btn");if(t){const e=xb(t,qk);e&&this._removeToast(e)}}))}_isValidCtaMetadata(e){return["url","trk","text"].every((t=>e.hasOwnProperty(t)))}_createToastEl(e,t,n,i){const r=document.querySelector("#toast-template").content.firstElementChild.cloneNode(!0),o=document.querySelector("#toast-icon-".concat(e)).content.firstElementChild.cloneNode(!0);if(!r||!o)throw new Error("Toast templates are missing");r.classList.add("toast--".concat(e)),r.setAttribute("type",e);const s=r.querySelector(Hk);s.insertBefore(o,s.firstElementChild);r.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name","".concat(n,"_dismiss"));const a=r.querySelector(".toast__message-content");let c="text-color-text-neutral";if(e===jk.CAUTION?c="text-color-text-caution":e===jk.ERROR?c="text-color-text-negative":e===jk.SUCCESS&&(c="text-color-text-positive"),a.classList.add(c),dk(a,t),i&&this._isValidCtaMetadata(i)){const e=r.querySelector(".toast__message-content-container"),t=document.querySelector("#toast-cta").content.firstElementChild.cloneNode(!0),n=i.target||"_blank";t.setAttribute("href",Uk.sanitizeUrl(zb(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(c),e.append(t)}return r}_addToast(e){this._el.appendChild(e);const t=this._el.querySelector(Hk);return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove(Fk),Bk(t)}),500),e}_removeToast(e){let t=this._el;e.classList.add(Fk),setTimeout((()=>{e.remove(),this._hasToast()||t.classList.add("invisible"),this.removeToastCallback()}),500)}_hasToast(){return[...this._el.children].some((e=>"template"!==e.tagName.toLowerCase()))}_refreshLazyLoader(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,(e=>{e.refreshLoader()}))}}Iw(Gk,"TOAST_TYPES",jk);const zk={};function Wk(e){const t=document.getElementById(e);if(!t&&void 0!==zk[e])return zk[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),zk[e]=null,zk[e];let n;for(const e of t.childNodes)try{if(e.nodeType===Node.COMMENT_NODE){n=JSON.parse(e.nodeValue);break}}catch(e){}return void 0===n?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(zk[e]=n,t.parentNode.removeChild(t),zk[e])}const Kk={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(Kk).map((e=>Kk[e]));const Vk=["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(Vk,"i");new Uint8Array(16);const Yk=[];for(let e=0;e<256;++e)Yk.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Qk="tooltip__popup";"".concat(Qk,"--show");const Xk="/mwlite/badge-counts";const Jk="overlay_";class Zk extends WC{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,pushState:r=!0,shouldMoveToTopContainer:o=!0,focusElement:s,pageKey:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into mobile web modal");super(e,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:o,focusElement:s,pageKey:a}),this.pushState=r,this.hashChangeHandlerRef=this._hashChangeHandler.bind(this)}historyBackClickHandler(){this.close({enableHistoryBack:!1})}_hashChangeHandler(e){const t=e.oldURL&&e.oldURL.split("#")[1];t&&t==="".concat(Jk).concat(this._el.id)&&this.historyBackClickHandler()}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.open(e),this._shouldHideModal()||(this.pushState&&history.pushState(this._el.id,"show modal","#".concat(Jk).concat(this._el.id)),window.addEventListener("hashchange",this.hashChangeHandlerRef))}close(){let{enableHistoryBack:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.removeEventListener("hashchange",this.hashChangeHandlerRef),this.pushState&&e&&(window.history.replaceState({},document.title,window.location.href.split("#")[0]),history.back()),super.close()}}document.querySelector.bind(document);String.fromCharCode(32);$b(document);String.fromCharCode(32);function $k(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e||0===e.trim().length};return e.errorMessageSuffix="error_empty",e}function eA(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<e};return t.errorMessageSuffix="error_too_short",t}function tA(e){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>e};return t.errorMessageSuffix="error_too_long",t}$k(),eA(3),tA(128),$k(),eA(6),tA(400);var nA=window||t.g;nA.utag_data||(nA.utag_data={});const iA="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;nA.utag_cfg_ovrd=nA.utag_cfg_ovrd||{},nA.trackingEventDebugData=nA.trackingEventDebugData||[],nA.utag_cfg_ovrd.noview=!0,nA.utag_cfg_ovrd.nocookie=!0;iA&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(nA.navigator.userAgent);!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,r=n.length;i<r;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 rA={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},oA={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:sA,GOOGLE_USER_FETCHED:aA,INITIALIZED:cA}=rA,{INITIALIZATION:lA,AUTHENTICATION:uA}=oA;class dA extends EventTarget{constructor(e){let{libSrcPath:t,el:n,clientId:i=ssr_ui_lib_es_CLIENT_ID}=e;if(super(),!n)throw TypeError("DOM element for Sign In button is required");if(this.libSrcPath=t,this.el=n,this.clientId=i,window.gapi)this._initializeGoogleAuth();else{if(!t)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");!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._initializeGoogleAuth.bind(this))}))}}_initializeGoogleAuth(){return gapi.auth2.init({client_id:this.clientId}).then((e=>{this.auth2=e,this._attachSignIn();const t=new CustomEvent(cA);this.dispatchEvent(t)})).catch((e=>{const t={type:lA,message:e.error},n=new CustomEvent(sA,{detail:t});this.dispatchEvent(n)}))}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},(e=>{const t=new CustomEvent(aA,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)}),(e=>{const t={type:uA,message:e.error},n=new CustomEvent(sA,{detail:t});this.dispatchEvent(n)}))}_getGoogleUserInformation(e){const t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}var hA={exports:{}};function pA(e){this.message=e}pA.prototype=new Error,pA.prototype.name="InvalidCharacterError";var fA="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new pA("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};var mA=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(fA(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return fA(t)}};function gA(e){this.message=e}gA.prototype=new Error,gA.prototype.name="InvalidTokenError",hA.exports=function(e,t){if("string"!=typeof e)throw new gA("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(mA(e.split(".")[n]))}catch(e){throw new gA("Invalid token specified: "+e.message)}},hA.exports.InvalidTokenError=gA;const vA=rA,yA=oA;const{GOOGLE_USER_FETCHED:EA,GOOGLE_ERROR:bA,INITIALIZED:wA}=vA,{INITIALIZATION:_A}=yA;function TA(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function SA(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0};throw e}}function CA(e,t){return Math.round(e-t)}var IA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kA=function(){function e(){this.items=[]}return e.prototype.remove=function(e){for(var t=this.items.length,n=0;n<t;n++)this.removePredicate(e,this.items[n])&&(this.items.splice(n,1),n--,t--)},e.prototype.clear=function(){this.items=[]},e.prototype.push=function(e){this.items.push(e)},e.prototype.isEmpty=function(){return 0===this.items.length},e}(),AA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return IA(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(kA),OA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return IA(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(kA),LA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return IA(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:"function"==typeof e?t.callback===e:t.el===e},t}(kA),RA=function(){return 0},NA=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),PA=NA&&!!window.requestAnimationFrame,xA={hasDOM:NA,hasRAF:PA,getScrollTop:RA,getScrollLeft:RA,getHeight:RA,getWidth:RA,rAF:PA?window.requestAnimationFrame.bind(window):function(e){e()},meta:{width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0},version:0,lastVersion:0,updateMeta:RA,get isDirty(){return xA.version!==xA.lastVersion},document:window.document,IntersectionObserver:NA&&window.IntersectionObserver,performance:NA&&window.performance};function MA(){++xA.version}function DA(){var e=null!=document.scrollingElement;xA.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},xA.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}NA&&(xA.getHeight=function(){return window.innerHeight},xA.getWidth=function(){return window.innerWidth},xA.updateMeta=function(){xA.meta.height=xA.getHeight(),xA.meta.width=xA.getWidth(),xA.meta.scrollLeft=xA.getScrollLeft(),xA.meta.scrollTop=xA.getScrollTop(),xA.lastVersion=xA.version},xA.updateMeta(),"loading"!==document.readyState?DA():document.addEventListener("DOMContentLoaded",DA),window.addEventListener("resize",MA,!1),window.addEventListener("scroll",MA,!1));var UA=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this;this.running||(this.running=!0,xA.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var i=e.work.length;t<i;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),BA=null;var FA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),qA="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),HA=0,jA=function(){function e(e,t,n,i,r,o,s,a,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=i,this.width=r,this.height=o,this.x=s,this.y=a,this.top=c,this.left=l}return e.generate=function(t){void 0===t&&(t=window);var n=this.revalidateRootMeta(t);return new e(Date.now(),performance.now(),n.scrollTop,n.scrollLeft,n.width,n.height,n.x,n.y,n.top,n.left)},e.revalidateRootMeta=function(e){void 0===e&&(e=document);var t,n={width:0,height:0,scrollTop:0,scrollLeft:0,x:0,y:0,top:0,left:0};return xA.isDirty&&xA.updateMeta(),e===window||e===document?(n.height=xA.meta.height,n.width=xA.meta.width,n.scrollLeft=xA.meta.scrollLeft,n.scrollTop=xA.meta.scrollTop,n):(t=SA(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}();function GA(){return HA+++qA}var zA=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(BA||(BA=new UA)),this.root=t||window}return e.prototype.tick=function(){if(this.queue.isEmpty())this.isTicking=!1;else{if(this.toRemove.length>0){for(var e=0;e<this.toRemove.length;e++)this.queue.remove(this.toRemove[e]);this.toRemove=[]}this.applyQueue(jA.generate(this.root)),this.engine.scheduleRead(this.tick.bind(this))}},e.prototype.scheduleWork=function(e){this.engine.scheduleWork(e)},e.prototype.scheduleRead=function(e){this.engine.scheduleRead(e)},e.prototype.queryElement=function(e,t){var n,i,r=this;this.engine.scheduleRead((function(){n=SA(e),i=jA.generate(r.root)})),this.engine.scheduleWork((function(){t(n,i)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),WA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new AA,t}return FA(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.id;(0,n.callback)(e,i)}},t.prototype.watch=function(e){this.startTicking();var t=GA();return this.queue.push({callback:e,id:t}),t},t}(zA),KA=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return FA(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(WA),VA=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=xA.version,r.queue=new LA,r.ALLOW_CACHED_SCHEDULER=i,r}return FA(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return xA.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],i=n.callback,r=n.el,o=n.id,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=SA(r)),i(e,o,s)}this.lastVersion=xA.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||GA();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(zA),YA=null;var QA=function(){function e(){this.queue=new OA}return e.prototype.listen=function(e){this.queue.push(e)},e.prototype.unlisten=function(e){this.queue.remove(e)},e.prototype.trigger=function(e){for(var t=0;t<this.queue.items.length;t++)this.queue.items[t](e)},e}(),XA=function(){function e(e){this.scheduler=new KA(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=jA.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),JA=null;function ZA(e,t){var n=(JA||(JA={scroll:new XA((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new XA((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new QA,beforeunload:new QA,hide:new QA,show:new QA}))[e];n&&n.listen(t)}function $A(e,t){if(JA){var n=JA[e];n&&n.unlisten(t)}}function eO(e,t){if(JA){var n=JA[e];n&&n.trigger(t)}}function tO(e){(YA||(YA=new WA)).scheduleWork(e)}function nO(e){var t=e.left,n=e.right,i=e.top,r=e.bottom;return{left:t,x:t,top:i,y:i,bottom:r,right:n,width:n-t,height:r-i}}xA.hasDOM&&(window.addEventListener("beforeunload",(function(){eO("beforeunload"),eO("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?eO("show"):eO("hide")})));var iO=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new VA(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||GA();return this.scheduler.watch(e,(function(e,i,r){t.onTick(e,i,r,n)}),n.__spanielId),i},e.prototype.onTick=function(e,t,n,i){var r=this,o=this.generateEntryEvent(e,n,i),s=o.numSatisfiedThresholds,a=o.entry,c=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===c.numSatisfiedThresholds&&a.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=s,c.entry=a,this.scheduler.scheduleWork((function(){r.callback([a])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var i=0,r=function(e,t,n,i){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:rO(),intersectionRatio:0,intersectionRect:rO(),isIntersecting:!1,rootBounds:rO(),target:n};var r=t.bottom,o=t.right,s=e.left+i.left,a=e.top+i.top,c={left:s,top:a,bottom:i.bottom,right:i.right,width:e.width-(i.right+i.left),height:e.height-(i.bottom+i.top),y:a,x:s},l=Math.max(c.left,t.left),u=Math.max(c.top,t.top),d=Math.min(c.left+c.width,t.right)-l,h=Math.min(c.top+c.height,t.bottom)-u,p=d>=0?l:0,f=u>=0?u:0,m={left:p,top:f,x:p,y:f,width:d,height:h,right:o,bottom:r};return function(e){var t=e.unixTime,n=e.highResTime,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.target,a=r.height*r.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:TA({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:nO(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];r.intersectionRatio>=s&&i++}return{numSatisfiedThresholds:i,entry:r}},e}();function rO(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var oO={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!function(){function e(e,t){var n=this;this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e;var i=t||{threshold:[]},r=i.root,o=i.rootMargin,s=i.threshold,a=i.ALLOW_CACHED_SCHEDULER,c=i.BACKGROUND_TAB_FIX,l=i.USE_NATIVE_IO,u="string"!=typeof(o=o||"0px")?function(e){return e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px"}(o):o;this.thresholds=s.sort((function(e){return e.ratio}));var d={root:r,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!l&&!!xA.IntersectionObserver;var h=this.usingNativeIo?xA.IntersectionObserver:iO;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),xA.hasDOM&&(ZA("beforeunload",this.onWindowClosed),ZA("hide",this.onTabHidden),ZA("show",this.onTabShown),c&&(this.paused="visible"!==xA.document.visibilityState))}e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]]);this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1;for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),i=0;i<e.length;i++){var r=this.recordStore[e[i]].lastSeenEntry;if(r){var o=r.intersectionRatio,s=r.boundingClientRect,a=r.rootBounds,c=r.intersectionRect,l=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:l,rootBounds:a,intersectionRect:c,target:u})}}},e.prototype.internalCallback=function(e){e.forEach(this.handleObserverEntry.bind(this))},e.prototype.flushQueuedEntries=function(){this.queuedEntries.length>0&&(this.callback(this.queuedEntries),this.queuedEntries=[])},e.prototype.generateSpanielEntry=function(e,t){var n=e.intersectionRatio,i=e.rootBounds,r=e.boundingClientRect,o=e.intersectionRect,s=e.isIntersecting,a=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((xA.performance.timeOrigin||xA.performance.timing.navigationStart)+a):a,d=this.usingNativeIo?a:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:u,time:u,highResTime:d,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:c,duration:0,visibleTime:s?u:-1,entering:!1,payload:l.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),i=performance.now();e.thresholdStates.forEach((function(r){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:i,payload:e.payload,label:r.threshold.label,threshold:r.threshold,entering:!1,rootBounds:oO,boundingClientRect:o||oO,intersectionRect:oO,visibleTime:r.lastVisible.unixTime,duration:CA(i,r.lastVisible.highResTime),target:e.target},r),r.lastSatisfied=!1,r.visible=!1,r.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,i=!!t.threshold.time;t.lastSatisfied&&(!i||i&&t.visible)&&(e.duration=CA(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,i=this.recordStore[n.__spanielId];i&&(i.lastSeenEntry=e,this.paused||(i.thresholdStates.forEach((function(n){var i=!!n.threshold.time,r=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,s="boolean"==typeof r.isIntersecting?r.isIntersecting:TA(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var c=Number(setTimeout((function(){n.visible=!0,r.duration=CA(performance.now(),n.lastVisible.highResTime),r.visibleTime=n.lastVisible.unixTime,t.callback([r])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,r.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(r);else t.handleThresholdExiting(r,n);n.lastEntry=e,n.lastSatisfied=a}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),xA.hasDOM&&($A("beforeunload",this.onWindowClosed),$A("hide",this.onTabHidden),$A("show",this.onTabShown))},e.prototype.unobserve=function(e){var t=this,n=this.recordStore[e.__spanielId];n&&(delete this.recordStore[e.__spanielId],this.observer.unobserve(e),tO((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||GA();return this.recordStore[i]={target:n,payload:t,lastSeenEntry:null,thresholdStates:this.thresholds.map((function(e){return{lastSatisfied:!1,lastEntry:null,threshold:e,visible:!1,lastVisible:{unixTime:0,highResTime:-1}}}))},this.observer.observe(n),i}}();xA.IntersectionObserver&&xA.IntersectionObserver;const sO="show-more-less";".".concat(sO,"__list"),".".concat(sO,"__more-button"),".".concat(sO,"__less-button"),"".concat(sO,"__list--hide-after"),"".concat(sO,"__button--hide");const aO="accordion-item__trigger";".".concat(aO);function cO(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}cO("action"),cO("openpage"),cO("openlink");var lO;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(lO||(lO={}));new Set(Object.values(lO));class uO extends Error{constructor(e){super(e),Object.setPrototypeOf(this,uO.prototype)}}var dO;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(dO||(dO={})),new Set(Object.values(dO));var hO={exports:{}};!function(e,t){!function(e){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e,t,n){return d=u()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&l(r,n.prototype),r},d.apply(null,arguments)}function h(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||!h(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},p(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function g(e){return function(){var t,n=c(e);if(u()){var i=c(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return m(this,t)}}function v(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function y(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function E(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;function e(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}window.CustomEvent=e})(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}var 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,r=n.length;i<r;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}();var b="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",w={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},_="https://accounts.google.com",T={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},S={INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},C={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},I={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},k={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"}},A="com.linkedin.LinkedIn.service",O="https://www.linkedin.com/redirect",L="https://www.linkedin-ei.com/redirect",R={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},N={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},P=w.GOOGLE_ERROR,x=w.GOOGLE_USER_FETCHED,M=w.INITIALIZED,D=T.INITIALIZATION,U=T.AUTHENTICATION,B=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?b:a;if(t(this,r),i=n.call(this),!s)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=s,i.clientId=c,window.gapi)i._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");v((function(){y(o,i._initializeGoogleAuth.bind(f(i)))}))}return i}return i(r,[{key:"_initializeGoogleAuth",value:function(){var e=this;return gapi.auth2.init({client_id:this.clientId}).then((function(t){e.auth2=t,e._attachSignIn();var n=new CustomEvent(M);e.dispatchEvent(n)})).catch((function(t){var n={type:D,message:t.error},i=new CustomEvent(P,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(x,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:U,message:t.error},i=new CustomEvent(P,{detail:n});e.dispatchEvent(i)}))}},{key:"_getGoogleUserInformation",value:function(e){var t=e.getBasicProfile(),n=e.getAuthResponse().id_token;return{email:t.getEmail(),familyName:t.getFamilyName(),givenName:t.getGivenName(),id:t.getId(),idToken:n,imageUrl:t.getImageUrl()}}}]),r}(p(EventTarget)),F=w.GOOGLE_USER_FETCHED,q=w.PROMPT_MOMENT,H=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?b:u,h=e.cancelOnTapOutside,p=void 0===h||h;if(t(this,r),i=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(i.autoSelect=s,i.libSrcPath=a,i.containerId=c,i.cancelOnTapOutside=p,i.clientId=d,i.context=l,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(a,i._onGoogleApiLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return google.accounts.id.initialize({auto_select:this.autoSelect,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((function(){return e.promptOneTap()}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===C.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(F,{detail:n});this.dispatchEvent(i)}}},{key:"_getBasicProfile",value:function(e){try{var 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}}},{key:"_dispatchSkippedEvent",value:function(e){var t={message:e,reason:k.SKIPPED.ISSUING_FAILED,type:I.SKIPPED},n=new CustomEvent(q,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(q,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}},{key:"hideOneTap",value:function(){google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(p(EventTarget)),j={exports:{}},G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function z(e){this.message=e}function W(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new z("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i=G.indexOf(i);return s}z.prototype=new Error,z.prototype.name="InvalidCharacterError";var K="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||W;function V(e){return decodeURIComponent(K(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}var Y=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return V(t)}catch(e){return K(t)}};function Q(e){this.message=e}Q.prototype=new Error,Q.prototype.name="InvalidTokenError",j.exports=function(e,t){if("string"!=typeof e)throw new Q("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Y(e.split(".")[n]))}catch(e){throw new Q("Invalid token specified: "+e.message)}},j.exports.InvalidTokenError=Q;var X=j.exports,J=w.GOOGLE_USER_FETCHED,Z=w.PROMPT_MOMENT,$=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.autoSelect,s=void 0!==o&&o,a=e.libSrcPath,c=e.clientId,l=void 0===c?b:c,u=e.showOneTap,d=void 0===u||u,h=e.promptParentId,p=e.buttonParentEl,m=e.gsiButtonConfig,g=void 0===m?{}:m,w=e.context,_=void 0===w?"signin":w,T=e.cancelOnTapOutside,S=void 0===T||T;if(t(this,r),(i=n.call(this)).autoSelect=s,i.libSrcPath=a,i.clientId=l,i.showOneTap=d,i.promptParentId=h,i.buttonParentEl=p,i.gsiButtonConfig=g,i.cancelOnTapOutside=S,i.context=_,i.isLibraryLoaded=E(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!a)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(a,i._onGoogleApiLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),window.google.accounts.id.initialize({auto_select:this.autoSelect,client_id:this.clientId,prompt_parent_id:this.promptParentId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:N[this.context].GOT}),Promise.resolve().then((function(){return e.showGsiUI()}))}},{key:"showGsiUI",value:function(){this.buttonParentEl&&this.renderGSIButton(this.buttonParentEl,this.gsiButtonConfig),this.showOneTap&&this.promptOneTap()}},{key:"renderGSIButton",value:function(e,t){var n=this,i=t.logo_alignment,r=void 0===i?"center":i,o=t.shape,s=void 0===o?"pill":o,a=t.size,c=void 0===a?"large":a,l=t.text,u=t.theme,d=t.type,h=t.width,p=void 0===h?"400px":h;return this.isLibraryLoaded.then((function(){var t=l||N[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{logo_alignment:r,shape:s,size:c,text:t,theme:u,type:d,width:p})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()},i=new CustomEvent(Z,{detail:n});e.dispatchEvent(i),e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=X(t),r=s({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(r){var o=new CustomEvent(J,{detail:r});this.dispatchEvent(o)}}},{key:"_getBasicProfile",value:function(e){return{email:e.email,familyName:e.family_name,givenName:e.given_name,id:e.sub,imageUrl:e.picture}}},{key:"hideOneTap",value:function(){window.google.accounts.id.cancel()}},{key:"checkIfDesktopAndApplyClass",value:function(){if(!/.*(iPad|iPod|iPhone|Android|BlackBerry).*/.test(navigator.userAgent)){var e=document.getElementById("credential_picker_container");e&&e.classList.add("credential_picker_container--desktop")}}}]),r}(p(EventTarget)),ee=R.DISMISSED,te=R.INITIALIZED,ne=R.SNAPPLE_USER_FETCHED,ie=function(e){a(r,e);var n=g(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?A:a,l=e.redirectURI;if(t(this,r),i=n.call(this),!s)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(i.libSrcPath=o,i.clientId=c,i.redirectURI=i._getRedirectURL(l),i.snappleCTA=s,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)i._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){y(o,i._onSnappleLibLoad.bind(f(i)))}))}return i}return i(r,[{key:"_onSnappleLibLoad",value:function(){window.AppleID.auth.init({clientId:this.clientId,scope:"name email",redirectURI:this.redirectURI,usePopup:!0});var e=new CustomEvent(te);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent(ne,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(ee,{detail:{type:ee,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?O:L}}]),r}(p(EventTarget)),re={CLIENT_ID:b,EVENTS:w,GOOGLE_ACCOUNT_URL:_,GSI_ERROR_TYPES:T,GSI_ERROR_MESSAGES:S,GOT_CONTEXTS:C,GOT_PROMPT_MOMENT_REASONS:k,GOT_PROMPT_MOMENT_TYPES:I};e.GoogleGsi=$,e.GoogleOneTap=H,e.GoogleSignIn=B,e.GoogleSignInConstants=re,e.SnappleAuth=ie,e.SnappleEvents=R,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,hO.exports);const{EVENTS:pO,GOT_CONTEXTS:fO,GOT_PROMPT_MOMENT_REASONS:mO,GOT_PROMPT_MOMENT_TYPES:gO}=hO.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:vO,PROMPT_MOMENT:yO}=pO,{SIGN_IN:EO}=fO;mO.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,mO.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,mO.NOT_DISPLAYED.SUPPRESSED_BY_USER,mO.SKIPPED.AUTO_CANCEL,mO.SKIPPED.TAP_OUTSIDE,mO.SKIPPED.USER_CANCEL;const bO="filter-values-container__filter-value";".".concat(bO," input"),".".concat(bO," input[type=radio]:checked");class wO{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!0,focusElement:s,pageKey:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)throw new Error("No element passed into to dialog modal");this.el=e,this.modalEl=this.el.querySelector(".".concat(HC)),this.modal=new Zk(this.modalEl,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,focusElement:s,pageKey:a}),this._onPrimaryActionClick=t,this.primaryActionBtn=this.el.querySelector(".primary-action"),this.secondaryActionBtn=this.el.querySelector(".secondary-action"),n&&(this._onSecondaryActionClick=n),this.el.querySelector(".dialog-actions").addEventListener("click",this._actionHandler.bind(this))}_actionHandler(e){const t=e.target;if(this.primaryActionBtn&&this.primaryActionBtn.contains(t)){if(this.primaryActionBtn.disabled)return;this._onPrimaryActionClick&&this._onPrimaryActionClick(e)}else this.secondaryActionBtn&&this.secondaryActionBtn.contains(t)&&this._onSecondaryActionClick&&this._onSecondaryActionClick(e);this.modal.close()}}function _O(e){const t=e.getBoundingClientRect();let{top:n,left:i}=t;const{right:r,bottom:o,width:s,height:a,x:c,y:l}=t;return n+=document.documentElement.scrollTop||document.body.scrollTop,i+=document.documentElement.scrollLeft||document.body.scrollLeft,{top:n,right:r,bottom:o,left:i,width:s,height:a,x:c,y:l}}function TO(e,t,n){const i=_O(e),r=_O(t),o=_O(n),s=i.top-o.top-n.clientTop-r.height+i.height,a=i.left-o.left-n.clientLeft-r.width+i.width;return{boundingCoordinates:i,elementCoordinates:r,elemOffsetParentCoordinates:o,topMinLimit:s,leftMinLimit:a,elemTop:r.top-o.top,elemLeft:r.left-o.left,topMaxLimit:s-i.height+r.height,leftMaxLimit:a-i.width+r.width}}const SO="data-draggable-initialized",CO="touchstart",IO="touchmove",kO="touchend";class AO{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid draggable element");if(this.draggableElementEl=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParentEl=e.boundingParent}else this.boundingParentEl=document.body;AO.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(CO,t),this.draggableElementEl.setAttribute(SO,!0)}dragElement(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r={top:n>0?Math.min(e.topMaxLimit,e.elemTop+n):Math.max(e.topMinLimit,e.elemTop+n),left:t>0?Math.min(e.leftMaxLimit,e.elemLeft+t):Math.max(e.leftMinLimit,e.elemLeft+t)};this.draggableElementEl.style.left="".concat(r.left,"px"),this.draggableElementEl.style.top="".concat(r.top,"px"),this.options.onDrag instanceof Function&&this.options.onDrag(e.boundingCoordinates.left-r.left-e.elemOffsetParentCoordinates.left,e.boundingCoordinates.top-r.top-e.elemOffsetParentCoordinates.top,i)}onTouchMove(e){const t=!!e.touches;if(e.preventDefault(),this.isMoving||(this.isMoving=!0),t&&1===e.touches.length){const t=e.touches[0].clientX-this._startClientX,n=e.touches[0].clientY-this._startClientY;this.dragElement.call(this,this.limits,t,n)}}onTouchStart(e){this.limits=TO(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),this.isMoving=!1;const t=this.onTouchMove.bind(this),n=!!e.touches;this._startClientX=n?e.touches[0].clientX:e.clientX,this._startClientY=n?e.touches[0].clientY:e.clientY,e.preventDefault(),document.addEventListener(IO,t),document.addEventListener(kO,(function e(){document.removeEventListener(IO,t),document.removeEventListener(kO,e)}))}moveTo(e,t){const n=TO(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),i=e+n.boundingCoordinates.left-n.elementCoordinates.left,r=t+n.boundingCoordinates.top-n.elementCoordinates.top;this.dragElement.call(this,n,i,r,!1)}}AO.isDraggable=function(e){return!!e.getAttribute(SO)};const OO="data-zoomable-initialized",LO="touchstart",RO="touchmove",NO="touchend";class PO{constructor(e){const t=this.onTouchStart.bind(this);if(this.options=e,!e.element||1!==e.element.nodeType)throw new Error("pass valid zoomable element");if(!(e.scaleElement&&e.scaleElement instanceof Function))throw new Error("pass valid function to scale element");if(!(e.getMinDimensions&&e.getMinDimensions instanceof Function))throw new Error("pass valid function to get minimum dimensions");if(this.zoomableElement=e.element,e.boundingParent&&1===e.boundingParent.nodeType){if(!e.boundingParent.contains(e.element))throw new Error("pass a proper ancestor element");this.boundingParent=e.boundingParent}else this.boundingParent=document.body;PO.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(LO,t),this.zoomableElement.setAttribute(OO,!0))}scaleElement(e,t){if(1===e)return;this.limits=TO(this.boundingParent,this.zoomableElement,this.zoomableElement.offsetParent);let n=this.limits.elementCoordinates.width*e,i=this.limits.elementCoordinates.height*e;if(n<this.limits.boundingCoordinates.width||i<this.limits.boundingCoordinates.height){const t=this.options.getMinDimensions();i=t.height,n=t.width,e=i/this.limits.elementCoordinates.height}let r=this.limits.elemLeft-(t.clientX-this.limits.elementCoordinates.left)*(e-1),o=this.limits.elemTop-(t.clientY-this.limits.elementCoordinates.top)*(e-1);const s=this.limits.leftMinLimit-this.zoomableElement.offsetWidth*(e-1),a=this.limits.leftMaxLimit,c=this.limits.topMinLimit-this.zoomableElement.offsetHeight*(e-1),l=this.limits.topMaxLimit;r<s?r=s:r>a&&(r=a),o<c?o=c:o>l&&(o=l),this.options.scaleElement(n,i,this.limits.boundingCoordinates.left-r-this.limits.elemOffsetParentCoordinates.left,this.limits.boundingCoordinates.top-o-this.limits.elemOffsetParentCoordinates.top),this.zoomableElement.style.left="".concat(r,"px"),this.zoomableElement.style.top="".concat(o,"px")}onTouchMove(e){if(e.preventDefault(),2===e.touches.length){const t=Math.sqrt((e.touches[0].clientX-e.touches[1].clientX)*(e.touches[0].clientX-e.touches[1].clientX)+(e.touches[0].clientY-e.touches[1].clientY)*(e.touches[0].clientY-e.touches[1].clientY));if(this._startDistance>0){const n=t/this._startDistance,i=e.touches[0];this.scaleElement.call(this,n,i)}this._startDistance=t}}onTouchStart(e){e.preventDefault();const t=this.onTouchMove.bind(this);2===e.touches.length?this._startDistance=Math.sqrt((e.touches[0].x-e.touches[1].x)*(e.touches[0].x-e.touches[1].x)+(e.touches[0].y-e.touches[1].y)*(e.touches[0].y-e.touches[1].y)):this._startDistance=0,document.addEventListener(RO,t),document.addEventListener(NO,(function e(){document.removeEventListener(RO,t),document.removeEventListener(NO,e)}))}}PO.isZoomable=function(e){return!!e.getAttribute(OO)};var xO=function(){this.__data__=[],this.size=0};var MO=function(e,t){return e===t||e!=e&&t!=t},DO=MO;var UO=function(e,t){for(var n=e.length;n--;)if(DO(e[n][0],t))return n;return-1},BO=UO,FO=Array.prototype.splice;var qO=function(e){var t=this.__data__,n=BO(t,e);return!(n<0)&&(n==t.length-1?t.pop():FO.call(t,n,1),--this.size,!0)},HO=UO;var jO=function(e){var t=this.__data__,n=HO(t,e);return n<0?void 0:t[n][1]},GO=UO;var zO=function(e){return GO(this.__data__,e)>-1},WO=UO;var KO=function(e,t){var n=this.__data__,i=WO(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},VO=xO,YO=qO,QO=jO,XO=zO,JO=KO;function ZO(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ZO.prototype.clear=VO,ZO.prototype.delete=YO,ZO.prototype.get=QO,ZO.prototype.has=XO,ZO.prototype.set=JO;var $O=ZO,eL=$O;var tL=function(){this.__data__=new eL,this.size=0};var nL=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var iL=function(e){return this.__data__.get(e)};var rL=function(e){return this.__data__.has(e)},oL="object"==typeof ww&&ww&&ww.Object===Object&&ww,sL=oL,aL="object"==typeof self&&self&&self.Object===Object&&self,cL=sL||aL||Function("return this")(),lL=cL.Symbol,uL=lL,dL=Object.prototype,hL=dL.hasOwnProperty,pL=dL.toString,fL=uL?uL.toStringTag:void 0;var mL=function(e){var t=hL.call(e,fL),n=e[fL];try{e[fL]=void 0;var i=!0}catch(e){}var r=pL.call(e);return i&&(t?e[fL]=n:delete e[fL]),r},gL=Object.prototype.toString;var vL=function(e){return gL.call(e)},yL=mL,EL=vL,bL=lL?lL.toStringTag:void 0;var wL=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bL&&bL in Object(e)?yL(e):EL(e)};var _L=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},TL=wL,SL=_L;var CL=function(e){if(!SL(e))return!1;var t=TL(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},IL=cL["__core-js_shared__"],kL=function(){var e=/[^.]+$/.exec(IL&&IL.keys&&IL.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var AL=function(e){return!!kL&&kL in e},OL=Function.prototype.toString;var LL=function(e){if(null!=e){try{return OL.call(e)}catch(e){}try{return e+""}catch(e){}}return""},RL=CL,NL=AL,PL=_L,xL=LL,ML=/^\[object .+?Constructor\]$/,DL=Function.prototype,UL=Object.prototype,BL=DL.toString,FL=UL.hasOwnProperty,qL=RegExp("^"+BL.call(FL).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var HL=function(e){return!(!PL(e)||NL(e))&&(RL(e)?qL:ML).test(xL(e))};var jL=function(e,t){return null==e?void 0:e[t]},GL=HL,zL=jL;var WL=function(e,t){var n=zL(e,t);return GL(n)?n:void 0},KL=WL(cL,"Map"),VL=WL(Object,"create"),YL=VL;var QL=function(){this.__data__=YL?YL(null):{},this.size=0};var XL=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},JL=VL,ZL=Object.prototype.hasOwnProperty;var $L=function(e){var t=this.__data__;if(JL){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ZL.call(t,e)?t[e]:void 0},eR=VL,tR=Object.prototype.hasOwnProperty;var nR=function(e){var t=this.__data__;return eR?void 0!==t[e]:tR.call(t,e)},iR=VL;var rR=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=iR&&void 0===t?"__lodash_hash_undefined__":t,this},oR=QL,sR=XL,aR=$L,cR=nR,lR=rR;function uR(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}uR.prototype.clear=oR,uR.prototype.delete=sR,uR.prototype.get=aR,uR.prototype.has=cR,uR.prototype.set=lR;var dR=uR,hR=$O,pR=KL;var fR=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},mR=fR;var gR=function(e,t){var n=e.__data__;return mR(t)?n["string"==typeof t?"string":"hash"]:n.map},vR=gR;var yR=function(e){var t=vR(this,e).delete(e);return this.size-=t?1:0,t},ER=gR;var bR=function(e){return ER(this,e).get(e)},wR=gR;var _R=function(e){return wR(this,e).has(e)},TR=gR;var SR=function(e,t){var n=TR(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},CR=function(){this.size=0,this.__data__={hash:new dR,map:new(pR||hR),string:new dR}},IR=yR,kR=bR,AR=_R,OR=SR;function LR(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}LR.prototype.clear=CR,LR.prototype.delete=IR,LR.prototype.get=kR,LR.prototype.has=AR,LR.prototype.set=OR;var RR=$O,NR=KL,PR=LR;var xR=function(e,t){var n=this.__data__;if(n instanceof RR){var i=n.__data__;if(!NR||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new PR(i)}return n.set(e,t),this.size=n.size,this},MR=$O,DR=tL,UR=nL,BR=iL,FR=rL,qR=xR;function HR(e){var t=this.__data__=new MR(e);this.size=t.size}HR.prototype.clear=DR,HR.prototype.delete=UR,HR.prototype.get=BR,HR.prototype.has=FR,HR.prototype.set=qR;var jR=HR,GR=WL,zR=function(){try{var e=GR(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),WR=zR,KR=WR;var VR=function(e,t,n){"__proto__"==t&&KR?KR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},YR=VR,QR=MO;var XR=function(e,t,n){(void 0!==n&&!QR(e[t],n)||void 0===n&&!(t in e))&&YR(e,t,n)};var JR=function(e){return function(t,n,i){for(var r=-1,o=Object(t),s=i(t),a=s.length;a--;){var c=s[e?a:++r];if(!1===n(o[c],c,o))break}return t}},ZR=JR(),$R={exports:{}};!function(e,t){var n=cL,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}($R,$R.exports);var eN=cL.Uint8Array;var tN=function(e){var t=new e.constructor(e.byteLength);return new eN(t).set(new eN(e)),t};var nN=function(e,t){var n=t?tN(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var iN=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},rN=_L,oN=Object.create,sN=function(){function e(){}return function(t){if(!rN(t))return{};if(oN)return oN(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var aN=function(e,t){return function(n){return e(t(n))}},cN=aN(Object.getPrototypeOf,Object),lN=Object.prototype;var uN=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lN)},dN=sN,hN=cN,pN=uN;var fN=function(e){return"function"!=typeof e.constructor||pN(e)?{}:dN(hN(e))};var mN=function(e){return null!=e&&"object"==typeof e},gN=wL,vN=mN;var yN=function(e){return vN(e)&&"[object Arguments]"==gN(e)},EN=yN,bN=mN,wN=Object.prototype,_N=wN.hasOwnProperty,TN=wN.propertyIsEnumerable,SN=EN(function(){return arguments}())?EN:function(e){return bN(e)&&_N.call(e,"callee")&&!TN.call(e,"callee")},CN=SN,IN=Array.isArray;var kN=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},AN=CL,ON=kN;var LN=function(e){return null!=e&&ON(e.length)&&!AN(e)},RN=LN,NN=mN;var PN=function(e){return NN(e)&&RN(e)},xN={exports:{}};var MN=function(){return!1};!function(e,t){var n=cL,i=MN,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||i;e.exports=a}(xN,xN.exports);var DN=wL,UN=cN,BN=mN,FN=Function.prototype,qN=Object.prototype,HN=FN.toString,jN=qN.hasOwnProperty,GN=HN.call(Object);var zN=function(e){if(!BN(e)||"[object Object]"!=DN(e))return!1;var t=UN(e);if(null===t)return!0;var n=jN.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&HN.call(n)==GN},WN=wL,KN=kN,VN=mN,YN={};YN["[object Float32Array]"]=YN["[object Float64Array]"]=YN["[object Int8Array]"]=YN["[object Int16Array]"]=YN["[object Int32Array]"]=YN["[object Uint8Array]"]=YN["[object Uint8ClampedArray]"]=YN["[object Uint16Array]"]=YN["[object Uint32Array]"]=!0,YN["[object Arguments]"]=YN["[object Array]"]=YN["[object ArrayBuffer]"]=YN["[object Boolean]"]=YN["[object DataView]"]=YN["[object Date]"]=YN["[object Error]"]=YN["[object Function]"]=YN["[object Map]"]=YN["[object Number]"]=YN["[object Object]"]=YN["[object RegExp]"]=YN["[object Set]"]=YN["[object String]"]=YN["[object WeakMap]"]=!1;var QN=function(e){return VN(e)&&KN(e.length)&&!!YN[WN(e)]};var XN=function(e){return function(t){return e(t)}},JN={exports:{}};!function(e,t){var n=oL,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,s=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}(JN,JN.exports);var ZN=QN,$N=XN,eP=JN.exports,tP=eP&&eP.isTypedArray,nP=tP?$N(tP):ZN;var iP=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},rP=VR,oP=MO,sP=Object.prototype.hasOwnProperty;var aP=function(e,t,n){var i=e[t];sP.call(e,t)&&oP(i,n)&&(void 0!==n||t in e)||rP(e,t,n)},cP=aP,lP=VR;var uP=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?lP(n,a,c):cP(n,a,c)}return n};var dP=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},hP=/^(?:0|[1-9]\d*)$/;var pP=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&hP.test(e))&&e>-1&&e%1==0&&e<t},fP=dP,mP=CN,gP=IN,vP=xN.exports,yP=pP,EP=nP,bP=Object.prototype.hasOwnProperty;var wP=function(e,t){var n=gP(e),i=!n&&mP(e),r=!n&&!i&&vP(e),o=!n&&!i&&!r&&EP(e),s=n||i||r||o,a=s?fP(e.length,String):[],c=a.length;for(var l in e)!t&&!bP.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||yP(l,c))||a.push(l);return a};var _P=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},TP=_L,SP=uN,CP=_P,IP=Object.prototype.hasOwnProperty;var kP=function(e){if(!TP(e))return CP(e);var t=SP(e),n=[];for(var i in e)("constructor"!=i||!t&&IP.call(e,i))&&n.push(i);return n},AP=wP,OP=kP,LP=LN;var RP=function(e){return LP(e)?AP(e,!0):OP(e)},NP=uP,PP=RP;var xP=function(e){return NP(e,PP(e))},MP=XR,DP=$R.exports,UP=nN,BP=iN,FP=fN,qP=CN,HP=IN,jP=PN,GP=xN.exports,zP=CL,WP=_L,KP=zN,VP=nP,YP=iP,QP=xP;var XP=function(e,t,n,i,r,o,s){var a=YP(e,n),c=YP(t,n),l=s.get(c);if(l)MP(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=HP(c),p=!h&&GP(c),f=!h&&!p&&VP(c);u=c,h||p||f?HP(a)?u=a:jP(a)?u=BP(a):p?(d=!1,u=DP(c,!0)):f?(d=!1,u=UP(c,!0)):u=[]:KP(c)||qP(c)?(u=a,qP(a)?u=QP(a):WP(a)&&!zP(a)||(u=FP(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),MP(e,n,u)}},JP=jR,ZP=XR,$P=ZR,ex=XP,tx=_L,nx=RP,ix=iP;var rx=function e(t,n,i,r,o){t!==n&&$P(n,(function(s,a){if(o||(o=new JP),tx(s))ex(t,n,a,i,e,r,o);else{var c=r?r(ix(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),ZP(t,a,c)}}),nx)};var ox=function(e){return e};var sx=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},ax=sx,cx=Math.max;var lx=function(e,t,n){return t=cx(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=cx(i.length-t,0),s=Array(o);++r<o;)s[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(s),ax(e,this,a)}};var ux=function(e){return function(){return e}},dx=ux,hx=WR,px=hx?function(e,t){return hx(e,"toString",{configurable:!0,enumerable:!1,value:dx(t),writable:!0})}:ox,fx=px,mx=Date.now;var gx=function(e){var t=0,n=0;return function(){var i=mx(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},vx=gx(fx),yx=ox,Ex=lx,bx=vx;var wx=function(e,t){return bx(Ex(e,t,yx),e+"")},_x=MO,Tx=LN,Sx=pP,Cx=_L;var Ix=function(e,t,n){if(!Cx(n))return!1;var i=typeof t;return!!("number"==i?Tx(n)&&Sx(t,n.length):"string"==i&&t in n)&&_x(n[t],e)},kx=wx,Ax=Ix;var Ox=function(e){return kx((function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&Ax(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);++i<r;){var a=n[i];a&&e(t,a,i,o)}return t}))},Lx=rx;Ox((function(e,t,n){Lx(e,t,n)}));document.querySelector(".upload-progress"),document.querySelector("#progressVal");const Rx="badgesreceived";class Nx{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=Wk("feedLastUpdatedTime")}resetBadges(){sI(this.badgeCountEls),sI(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return yw(e?Wb(Xk,"feedQueryAfterTime",e):Xk).then((t=>{const n=JSON.parse(t.responseText);Yb(window,Rx,{feedsCount:n.feedsCount}),this._counts=n;const i=hI();return"messaging"===i&&(this._counts.messagingCount=0),"feed"===i||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this})).catch((()=>{Yb(window,Rx,{feedsCount:0})}))}_renderBadges(){this.badgeCountEls.forEach((e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])})),this.badgeWithoutCountEls.forEach((e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])}))}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,oI(e)):t!==n&&(t>0?(e.textContent=t,oI(e),e.classList.toggle("singular",t<=1)):rI(e))}_setBadge(e,t){e&&(t>0?(oI(e),e.classList.add("badge-with-no-count")):rI(e))}_updateCacheBustUrl(e){Wk("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach((t=>{t.href=uk(e?Wb(t.href,"pwa","noCache"):Jb(t.href))}))}}!function(){let e}();const Px="_lastUpdatedAt";class xx{constructor(e){this.storage=void 0===e?localStorage:e}read(e){const t=this.storage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){console.error(e)}return null}write(e,t){try{this.storage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}}remove(e){try{this.storage.removeItem(e)}catch(e){console.error(e)}}readWithExpiry(e,t){const n=this.read(e+Px);return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+Px,(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+Px)}}xx.instance||(xx.instance=new xx(localStorage)),xx.instance,xx.sessionInstance||(xx.sessionInstance=new xx(sessionStorage)),xx.sessionInstance;let Mx;const Dx="_self";function Ux(){return Mx||(Mx=new Gk),Mx}let Bx;Ub.getInstance().addUnloadCallback((()=>{Bx&&Bx.close(),rI(document.querySelector("#discard-post-modal")),rI(document.querySelector("#visibility-settings-modal")),rI(document.querySelector("#max-images-prompt-modal")),rI(document.querySelector("#retry-upload-modal"))}));function Fx(){var e,t;null===(e=window.lazyloader)||void 0===e||null===(t=e.then)||void 0===t||t.call(e,(e=>{e.refreshLoader()}))}const qx="selected";function Hx(e){const t=e.target.value;e.target.classList.toggle(qx,t),e.target.focus()}function jx(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("select");i&&(i.addEventListener("change",Hx),i.value&&i.classList.add(qx))}else{document.querySelectorAll(".dropdown-container").forEach(jx)}Fx()}const Gx="input",zx="change",Wx="focus",Kx="input:cleared",Vx="selected";function Yx(e){const t=e.currentTarget.parentElement.querySelector(Gx);t.value="",t.classList.remove(Vx),t.focus(),Yb(t,Kx),Yb(t,zx)}function Qx(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector(Gx);n&&i.setAttribute("placeholder",n),i.removeEventListener(Wx,Qx)}function Xx(e){const t=e.target.value;e.target.classList.toggle(Vx,t)}function Jx(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector(Gx),r=e.querySelector(".right");i.addEventListener(zx,Xx),i.addEventListener(Wx,Qx),r&&r.addEventListener("click",Yx)}else{document.querySelectorAll(".input-container").forEach(Jx)}Fx()}const Zx="MinLength",$x="MaxLength",eM="Regex",tM="Required",nM="RegexAllow",iM={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{pattern:new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$'),errorCode:"Email"},PHONE_NUMBER:{pattern:/(?:^((\+(?=[0-9]{1,4}))?))[0-9]{5,14}$/,errorCode:"PhoneNumber"}},rM="EMAIL_ADDRESS",oM="PHONE_NUMBER",sM="OTHER",aM="consentUnchecked",cM={INPUT:"INPUT",SELECT:"SELECT"},lM="text",uM="checkbox";function dM(e){return Object.keys(cM).includes(e.tagName)}function hM(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case sM:n&&t.push({type:Zx,MinLength:n}),i&&t.push({type:$x,MaxLength:i});break;case rM:t.push({type:nM,RegexAllow:[iM.EMAIL]});break;case oM:o=e.value.replace(/ /g,""),t.push({type:nM,RegexAllow:[iM.PHONE_NUMBER]})}return{value:o||e.value,ruleSet:t}}(e),n=t.value;return t.ruleSet.map((e=>((e,t)=>{const n=t.trim();if(e)switch(e.type){case tM:if(0===n.length)return tM;break;case Zx:if(n.length<e[Zx])return Zx;break;case $x:if(n.length>e[$x])return $x;break;case eM:for(let t=0;t<e[eM].length;t++)if(e[eM][t].pattern.test(n))return eM+e[eM][t].errorCode;break;case nM:for(let t=0;t<e[nM].length;t++)if(!e[nM][t].pattern.test(n))return nM+e[nM][t].errorCode}})(e,n))).filter((e=>!!e))}function pM(e,t){return t&&!e?aM:null}const fM=(e,t)=>parseInt(t.split(e)[1]);function mM(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const gM=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),vM=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function yM(e){const t=e.id+"_",n=t+"q",i=t+"c";return new Promise(((t,r)=>{const o=[];let s,a;const{urn:c}=e.dataset;a=e.dataset.leadTrackingParams,a||(s=e.closest("[data-lead-tracking-params]"),a=s.dataset.leadTrackingParams);const l={formResponse:{adFormUrn:c,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:a,trackingAction:"LEAD_FORM_CLICK"};return Array.from(e).filter(dM).forEach((e=>{let t;if(e.tagName===cM.SELECT)t=((e,t)=>{const n=fM(e,t.id),i=t.selectedIndex;return{response:vM(n,i)}})(n,e),l.formResponse.answers.push(t.response);else if(e.type===lM)if(t=((e,t)=>{const n=fM(e,t.id),i=hM(t);return 0!==i.length?{errors:i}:{response:gM(n,t.value)}})(n,e),t.response)l.formResponse.answers.push(t.response);else{const n=t.errors[0];o.push({element:e,errorType:n})}else e.type===uM&&(t=((e,t,n,i)=>{const r=fM(e,t),o=pM(n,i);return o?{errors:o}:{response:{consentId:r,accepted:n}}})(i,e.id,e.checked,e.required),t.response?l.formResponse.consentResponses.push(t.response):o.push({element:e,errorType:t.errors}))})),0===o.length?t(l):r(o)}))}const EM=".lead-gen-input-container",bM=".error-text",wM="input-error",_M="aria-invalid",TM="role",SM="click";class CM{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Jx(),jx(),pI("form-modal-description__content-truncated",".form-modal-description__btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form");const i=e.querySelector(".lead-gen-modal");this.modal=new Zk(i,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(dM).map((e=>this._hideError(e)))}_submitForm(){this._clearFormErrors(),yM(this.formEl).then((e=>{Yb(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e),this.hideForm()})).catch((e=>{e.forEach((e=>this._setAndShowError(e.element,e.errorType)));const t=e[0];if(t){t.element.focus();pw(mM(t.element,t.errorType),hw.ASSERTIVE)}}))}_hideError(e){if(e){const t=e.closest(EM),n=t.querySelector(bM);rI(n),t.classList.remove(wM),e.removeAttribute(_M),n.removeAttribute(TM)}}_setAndShowError(e,t){if(e){const n=mM(e,t),i=e.closest(EM),r=i.querySelector(bM);r.innerText=n,oI(r),i.classList.add(wM),r.setAttribute(TM,"alert"),e.setAttribute(_M,"true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===uM)t=pM(e.checked,e.required);else if(e.type===lM){const n=hM(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){this.formEl.addEventListener(SM,(e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)})),this.formEl.addEventListener(Kx,(e=>{this._handleInputError(e.target)})),this.formEl.addEventListener("keyup",(e=>{e.target.classList.contains("inputbox-input")&&this._handleInputError(e.target)})),this.formEl.querySelector(".submit-btn").addEventListener(SM,(e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()}))}}Iw(CM,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class IM{constructor(){this._eventTypes=new Map}addEventListener(e,t){this._eventTypes.has(e)||this._eventTypes.set(e,new Set),this._eventTypes.get(e).add(t)}removeEventListener(e,t){this._eventTypes.has(e)&&this._eventTypes.get(e).delete(t)}dispatchEvent(e){if(!this._eventTypes.has(e.type))return;this._eventTypes.get(e.type).forEach((t=>{t(e)}))}}new class{constructor(e,t){this.serviceWorker=e||"/service-worker.js",this.scope=t&&t.scope||"/",this._isPushSupported="serviceWorker"in navigator&&"Notification"in window&&"PushManager"in window&&"showNotification"in ServiceWorkerRegistration.prototype,this.eventEmitter=new IM}registerServiceWorker(){const e=this;if(this.isPushSupported())return navigator.serviceWorker.register(e.serviceWorker,{scope:e.scope}).then((()=>navigator.serviceWorker.ready)).then((e=>{if(e.active)return Promise.resolve(e);let t=e.installing||e.waiting;return new Promise((function(n,i){"activated"!==t.state?t&&t.addEventListener("statechange",(function r(){if("activated"===t.state)n(e);else{if("redundant"!==t.state)return;i(new Error("Service Worker Redundant"))}t.removeEventListener("statechange",r)})):n(e)}))}))}unRegisterServiceWorker(){if(this.isPushSupported())return navigator.serviceWorker.ready.then((e=>e.unregister())).then((()=>this._dispatchEvent("serviceWorkerUnRegistred",null)))}subscribe(){this.isPushSupported()&&"denied"!==Notification.permission&&navigator.serviceWorker.ready.then((e=>e.pushManager.subscribe({userVisibleOnly:!0}))).then((e=>this._dispatchEvent("pushSubscribed",e))).catch((e=>{"denied"!==this.getCurrentNotificationPermission()?this._dispatchEvent("pushSubscriptionDismiss",e):this._dispatchEvent("pushSubscriptionDenied",e)}))}unsubscribe(){let e=null;this.isPushSupported()&&navigator.serviceWorker.ready.then((e=>e.pushManager.getSubscription())).then((t=>t?(e=t,t.unsubscribe()):Promise.reject(new Error("User not subscribed to Push Notifications")))).then((()=>{this._dispatchEvent("pushUnSubscribed",e)})).catch((e=>{this._dispatchEvent("pushUnSubscribeFailure",e)}))}isPushSupported(){return this._isPushSupported}getCurrentSubscriptionId(){return navigator.serviceWorker.ready.then((e=>e.pushManager.getSubscription()))}getCurrentNotificationPermission(){return Notification.permission}_dispatchEvent(e,t){this.eventEmitter.dispatchEvent({type:e,data:t})}}("/mwlite/service-worker.js",{scope:"/"});const kM="#push-notification-prompt";document.querySelector(kM);const AM=["endpoint","headers","queryId","variables","pageKey"];function OM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{endpoint:t,headers:n={"Content-Type":"application/json"},queryId:i,variables:r={},pageKey:o}=e,s=kw(e,AM);return yw(t,Cw({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:o})},s))}class LM{constructor(e,t,n){if(!e)throw Error("Missing FollowMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e,n&&(this.pageKey=n)}execute(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};return OM({endpoint:this.endpoint,queryId:LM.query,variables:{followState:e,to:t},pageKey:this.pageKey,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then((e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)})).catch(i)}}Iw(LM,"query","cbed571fffd8cea15209aed8d44e6759");const RM=Object.freeze({APPRECIATION:"APPRECIATION",ASSENT:"ASSENT",CELEBRATION:"CELEBRATION",EMPATHY:"EMPATHY",ENTERTAINMENT:"ENTERTAINMENT",INSPIRATION:"INSPIRATION",INTEREST:"INTEREST",LIKE:"LIKE",MAYBE:"MAYBE",PRAISE:"PRAISE",UNKNOWN:"UNKNOWN",USEFULNESS:"USEFULNESS"});Object.values(RM);const NM="CREATE",PM="UPDATE";class xM{constructor(e){if(!e)throw Error("Missing ReactionMutation endpoint");this.endpoint=e}execute(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const o={endpoint:this.endpoint,queryId:xM.query,variables:{entityUrn:t,action:n}};return n!==NM&&n!==PM||(o.variables.reactionType=e),OM(o).then((e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)})).catch(r)}}Iw(xM,"query","070ee23fd6fb77f92ac08f964ae1df29");class MM extends HTMLElement{connectedCallback(){this.update(),this.syncA11yCaption(),this.setAttribute("aria-hidden","true"),ssr_ui_lib_es_handleLargeIcon(this)}disconnectedCallback(){this.removeA11yCaption()}static get observedAttributes(){return["a11y-text","type","class"]}attributeChangedCallback(e){ssr_ui_lib_es_ATTRS_TRIGGERING_UPDATE.indexOf(e)>-1&&this.update(),"a11y-text"===e&&this.syncA11yCaption(),"type"!==e&&"class"!==e||ssr_ui_lib_es_handleLargeIcon(this)}update(){const e=this.getAttribute("type"),t=this.getAttribute("category")||"ui",n="true"===this.dataset.inlineSvg;(e||t)&&(n||ssr_ui_lib_es_setIcon(this,t,e))}installA11yCaption(){const{parentNode:e,a11yCaption:t}=this;e&&t&&!t.parentNode&&e.insertBefore(t,this)}removeA11yCaption(){const{a11yCaption:e}=this;e&&e.parentNode&&e.parentNode.removeChild(e),this.a11yCaption=null}syncA11yCaption(){const{a11yCaption:e}=this,t=this.getAttribute("a11y-text");t?e?e.textContent=t:(this.a11yCaption=(e=>{const t=document.createElement("span");return t.setAttribute("class","a11y-text"),t.textContent=e,t})(t),this.installA11yCaption()):this.removeA11yCaption()}}const DM="light";DM.toUpperCase();const UM="#share-modal .modal-content .reshare-section",BM="data-post-visibility",FM='input[name="share-with"]:checked',qM="share-modal",HM="#share-modal",jM="close",GM="click",zM="data-control-action",WM="keydown",KM=document.querySelector("#share-modal .textarea"),VM=document.querySelector(".image-preview-wrapper"),YM=document.querySelector(UM),QM=document.querySelector(".post-button"),XM=document.querySelector("#comments-enabled"),JM=document.querySelector("#share-with-public"),ZM=document.querySelector(".post-settings-wrapper"),$M=document.querySelector(FM),eD=document.querySelector("#share-modal .close-button"),tD=document.querySelector("#visibility-settings-modal"),nD=document.querySelector("#visibility-header-back .close-button"),iD=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),rD=document.querySelector("#discard-post-modal-wrapper"),oD=document.querySelector(HM),sD=document.querySelector(".modal-spinner"),aD=document.querySelector("#share-modal .textarea"),cD=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const lD=document.querySelector("#share-with-network");class uD extends Zk{updatePostButtonStatus(){var e;const t=null===(e=KM.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===VM.getAttribute("data-image-load-state"),i=YM.children.length;t||n||i?lI(QM):cI(QM)}clearModalContentBase(){YM&&(YM.textContent=""),KM&&(KM.textContent=""),XM&&(XM.checked=!0),JM&&(JM.checked=!0,ZM.setAttribute(BM,$M.value))}historyBackClickHandler(){window.history.state!==qM&&"typeahead"!==window.history.state&&(window.history.pushState(qM,"show-share-modal",HM),eD.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[".concat(zM,"]"))||t.querySelector("[".concat(zM,"]"));n&&window.tracking.then((e=>{e.fireControlInteractionEvent(n.getAttribute(zM))}))}tD.addEventListener(jM,(()=>{ZM.setAttribute(BM,document.querySelector(FM).value)})),nD.addEventListener(GM,(()=>window.history.back())),iD.addEventListener(GM,(t=>e(t))),iD.addEventListener(WM,(t=>{if(13===t.keyCode){const n=t.target.querySelector("input[type=radio]");n&&(n.checked=!0,e(t))}}))}discardPostConfirmationModalPrimaryActionCallback(e){let{enableHistoryBack:t}=e;this.close({enableHistoryBack:t}),uI()&&"discard-post-modal"===window.history.state&&setTimeout((()=>{window.history.back()}),100)}postSettingsClickHandler(){window.tracking.then((e=>{e.fireControlInteractionEvent("post-settings")})),this.visibilitySettingsModal.open()}}class dD extends uD{constructor(e,t){let{endpoint:n="",enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!1,pushState:s=!1,historyUpdateUrl:a}=t;super(e,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,pushState:s}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=a,this.postUrn=Wk("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new Zk(tD,{triggerByOutletEl:!1}),this.handleOpenByUrl()}bindPublishingShareEvents(){this.shareTextEvents(),this.bindShareModalEvents(),this.bindVisibilityModalEvents()}_checkIfOpenShareModalByLink(){const e=new URL(location.href);return!0===Boolean(e.searchParams.get("openShareModal"))}handleOpenByUrl(){this.openShareModalByLink&&this.open()}shareTextEvents(){const e=Kb(this.updatePostButtonStatus,300);aD.addEventListener("input",e)}bindShareModalEvents(){const e=new wO(rD,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),(()=>{}),{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});oD.addEventListener("open",(()=>{KM.focus()})),oD.addEventListener(jM,(()=>{this.clearModalContentBase(),rI(sD)})),QM.addEventListener(GM,(()=>{this.processPostData()})),eD.addEventListener(GM,(()=>{QM.disabled?this.close():e.modal.open()})),ZM.addEventListener(GM,this.postSettingsClickHandler.bind(this)),ZM.addEventListener(WM,(e=>{13===e.keyCode&&this.postSettingsClickHandler.apply(this)}))}open(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultText:n}=t;this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),super.open(),this._checkIfOpenShareModalByLink()&&this._removeShareParams(),this.renderShareArticleShareSection(),dI()&&window.scrollTo(0,0),n&&(aD.textContent=n),this.shareData={},this.historyUpdateUrl&&window.history.replaceState({},document.title,this.historyUpdateUrl),this.isNewPost=!1,this.postUrn&&(this.shareData.reshareUrn=this.postUrn,this.shareData.attributedShareUrn=this.postUrn),null===(e=window.lazyloader)||void 0===e||e.then((e=>{e.refreshLoader()})),this.updatePostButtonStatus()}renderShareArticleShareSection(){const e=this.el.querySelector(UM);e.children.length?this.shareArticleNodeChild=e.children[0].cloneNode(!0):e.appendChild(this.shareArticleNodeChild)}composePostData(){this.shareData.text=aD.textContent,this.shareData.visibility="PUBLIC",cD&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=cD.value),lD.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){oI(sD),this.composePostData(),OM({endpoint:this.endpoint,queryId:dD.query,variables:this.shareData}).then((e=>{var t,n;200!==e.status&&Promise.reject();const i=(null===(t=JSON.parse(null==e?void 0:e.responseText).graphQL)||void 0===t||null===(n=t.createPost)||void 0===n?void 0:n.activityUrn)||Promise.reject();window.tracking.then((e=>{UC(e,"ajax","post_success_page_key")})),Ux().trigger("success",Wk("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:Wk("postSuccessViewPost"),target:Dx}),this.close()})).catch((()=>{window.tracking.then((e=>{UC(e,"ajax","post_failure_page_key")})),Ux().trigger("error",Wk("postFailureMessage"),"post-error-toast-dismiss"),this.close()}))}close(){super.close({enableHistoryBack:!this.openShareModalByLink})}_removeShareParams(){var e;const t=new URL(window.location.href);null===(e=t.searchParams)||void 0===e||e.delete("openShareModal"),window.history.pushState({},document.title,t.toString())}}Iw(dD,"query","971e319c05beaf333e94125db8c4f942");function hD(e,t,n,i){var r="";if(n){var o=new Date;o.setTime(o.getTime()+n),r="expires=".concat(o.toUTCString())}Zb.getCookie(e)&&function(e){e&&(document.cookie="".concat(e,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT;"))}(e);var s="".concat(e,"=").concat(t,";").concat(r,";path=/;").concat(i?"domain=.".concat(i):""),a="".concat(s,";").concat("secure;samesite=none");document.cookie=a,Zb.getCookie(e)||(document.cookie=s)}var pD,fD="dark",mD="light",gD="system",vD="li_theme",yD=[mD,fD,gD],ED=mD.toUpperCase();function bD(e){document.documentElement.classList.toggle("dark",e),ED=(e?fD:mD).toUpperCase()}function wD(){if(window.matchMedia){bD(window.matchMedia("(prefers-color-scheme:dark)").matches);try{window.matchMedia("(prefers-color-scheme:dark)").addEventListener("change",(e=>bD(e.matches)))}catch(e){window.matchMedia("(prefers-color-scheme:dark)").addListener((e=>bD(e.matches)))}}}function _D(e){localStorage.setItem("mobileWebTheme",e)}function TD(){return ED}function SD(){var e=ba("darkModeLixValue");if(e&&"control"!==e){var t=H.getQueryParam(window.location.href,vD);if(t)return bD(fD===t),void _D(fD===t?fD:mD);var n="on"===e?gD:mD,i=(ED=H.getCookie(vD))&&yD.includes(ED)?ED:n;i===gD?wD():bD(i===fD),_D(i),function(e,t){var n="li_theme_set",i="user",r=["app",i],o="app",s=H.getCookie(n);s&&r.includes(s)?o=s:("on"===e&&t!==gD||"enabled-light"===e&&t!==mD)&&(o=i),hD(n,o,15552e6)}(e,i)}}const CD=(ID=document.getElementById("toasts"),!pD&&ID&&(pD=new ya),pD);var ID;function kD(){var e=new URLSearchParams(window.location.search);return{trackingCode:e.get("trk"),trackingId:e.get("trackingId"),updateUrn:e.get("updateUrn")}}var AD="Reaction:newReaction:success",OD="Reaction:deleteReaction:success";function LD(){var e,t=ba("articleViewEventData");t&&(e=JSON.parse(t),window.tracking.then((t=>{var n,i;if(e&&e.linkedInArticleUrn&&e.articleUrn){var r=(null==t||null===(n=t.getCurrentContext())||void 0===n?void 0:n.pageInstance)||(null==t||null===(i=t.config)||void 0===i?void 0:i.initialPageInstance);if(r){var o=kD().trackingId,s={articleId:e.articleId,authorId:e.authorId,linkedInArticleUrn:e.linkedInArticleUrn,articleUrn:e.articleUrn,trackablePulseObject:{trackingId:o||r.trackingId,objectUrn:e.articleUrn},header:{pageInstance:r,time:Date.now()}};t.fireTrackingEvent("ArticleViewEvent",s)}else console.warn("Missing pageInstance - not firing ArticleViewEvent for ".concat(e.articleUrn))}else console.warn("Missing article view data, not firing ArticleViewEvent")})).catch((()=>{})))}function RD(){ba("isMemberDesktop")&&function(){var e=H.getCookie(vD);e===gD?wD():bD(e===fD)}()}function ND(){var e;window.addEventListener("beforeunload",(e=Date.now(),function(){var t,n;t=Date.now()-e,n=ba("articleUrn"),window.tracking.then((e=>{var i=e.getCurrentContext().pageInstance.trackingId,r=kD().trackingId;e.fireTrackingEvent("ArticleReadEvent",{dwellTime:t,articleUrn:n,articleTrackingId:r||i,trackablePulseObject:{trackingId:r||i,objectUrn:n}})}))}))}function PD(){var e,t,n;ND(),function(){var e=document.querySelector(".social-share");if(e){var t=new Sb(e);document.addEventListener("open-share-to-linkedin",(e=>{var n=ba("disableLinkedinShareRedirectLink");wa("disableLinkedinShareRedirectLink",!1),wa("signin",!1),t.setLinkedInServiceUrl(e.detail),t.share("linkedin"),t.setLinkedInServiceUrl(null),wa("disableLinkedinShareRedirectLink",n)}))}}(),new Mu,new oy,document.querySelectorAll(".ellipsis-menu").forEach((e=>{new Du(e)})),function(){var e=document.querySelector(".google-auth");if(e)return new Ju(e);var t=document.querySelector(".google-one-tap");t&&new PE(t,{isAutoSelectEnabled:null===H.getCookie("li_g_recent_logout")})}(),LD(),document.body.querySelectorAll("img[data-li-src], iframe[data-li-src]").forEach((e=>{var t=e.getAttribute("data-li-src").replace(/^http:\/\//i,"//");e.classList.add("lazy-load"),e.setAttribute("data-delayed-url",t),e.removeAttribute("data-li-src")})),null===(e=window.lazyloader)||void 0===e||e.then((e=>e.refreshLoader())),RD(),t=document.querySelector(".more-articles"),n=document.querySelector(".slide-list"),t?new sy(t):n&&new Uo(n),function(){if(ba("disableLinkedinShareRedirectLink")){var e=document.querySelector("#share-modal"),t=document.querySelector('button[data-share-service="linkedin"]');if(e&&t){var n=new zy(e,{endpoint:ba("apiRoute")});t.addEventListener("click",(()=>{n.open()}))}}}()}var xD,MD,DD;function UD(){!function(){new Zu;var e=document.querySelector("[data-ellipsis-menu-trigger]");e&&new we(e,{elementToFocus:document.querySelector(".ellipsis-menu__item-button")})}(),new BD}class BD{constructor(){this.bindEvents(),new $v}bindEvents(){document.body.addEventListener(Zv.NEW_COMMENT_CREATE_EVENT,(e=>{var t=Date.now();(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _e(e,{method:"POST",headers:{"content-type":"application/json"},postData:JSON.stringify({queryId:t,variables:n})}).then((e=>{var t=e.status,n=e.responseText;return 200===t?JSON.parse(n).graphQL:Promise.reject(t)}))})("/pulse/api/runQuery",BD.query,{threadUrn:e.detail.threadUrn,text:e.detail.comment,createdAt:t}).then((e=>{var t,n;H.dispatchCustomEvent(document.body,Zv.NEW_COMMENT_SUCCESS_EVENT,{entityUrn:null==e||null===(t=e.postComment)||void 0===t||null===(n=t.comment)||void 0===n?void 0:n.threadUrn,graphqlResponse:null==e?void 0:e.postComment})})).catch((e=>{H.dispatchCustomEvent(document.body,Zv.NEW_COMMENT_FAIL_EVENT,e),CD.trigger("error",ba("commentPostError"))}))}))}}function FD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function HD(e,t,n){return t&&qD(e.prototype,t),n&&qD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jD(e){return jD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jD(e)}function GD(e,t){return GD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GD(e,t)}function zD(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function WD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=jD(e);if(t){var r=jD(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return zD(this,n)}}function KD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}(e,t)||YD(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VD(e){return function(e){if(Array.isArray(e))return QD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||YD(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YD(e,t){if(e){if("string"==typeof e)return QD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QD(e,t):void 0}}function QD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}DD="88c1c5972e6aa9081d6c0885a442138b",(MD="query")in(xD=BD)?Object.defineProperty(xD,MD,{value:DD,enumerable:!0,configurable:!0,writable:!0}):xD[MD]=DD;var XD="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",JD=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",ZD=["b","del","em","i","s","strong","sub","sup"],$D=ZD.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"]),eU=[XD,"alt|checked|selected|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("|"),tU=HD((function e(){FD(this,e)}));function nU(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var iU=function(){var e=/[&<>"'\u0000\\=]/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"};return function(n){return null==n?null:n.toString().replace(e,(function(e){return function(e){return e in t}(e)?t[e]:e}))}}(),rU=function(){var e,t="undefined"!=typeof document?document.createElement("div"):null,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};function r(e){if(function(e){return nU(i,e)}(e))return i[e];if(!t)return e;t.innerHTML="&".concat(e,";");var n=t[JD];return i[e]=n,n}return e="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(t){return null==t?null:(t+"").replace(n,(function(t,n,i,o){return n?r(n):i||o?e(parseInt(i||o,i?16:10)||65533):"�"}))}}();function oU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log",n="undefined"!=typeof window;if(n&&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)}function sU(e){return/[<&]/.test(e)}var aU="[ \t\r\n]*";function cU(e){e=Array.isArray(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",e.forEach((function(e,s){t=e.tags||$D,n=e.attrs||eU,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=aU,o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++r,")?"),i&&(o+="|(?:".concat("href|src",")=([\"'])(?:(?:").concat("https?|ftp|mailto|invalid",")(?::|&#(?:58|x3a);)|(?:").concat("data:image/(?:gif|jpg|jpeg|png);base64,",")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++r)),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function lU(e){return cU({tags:e=e||$D,checkUrlAttrs:!0})}function uU(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n&&n.length>0?!lU(n).test(e):i?!uU.R_UNSAFE_CUSTOM_ELEMENT.test(e):!uU.R_UNSAFE_HTML.test(e)}function dU(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}uU.R_UNSAFE_HTML=lU(),uU.R_UNSAFE_CUSTOM_ELEMENT=function(){var e={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"};return cU([{tags:$D,checkUrlAttrs:!0},{tags:[e.tag],attrs:[XD,e.attrs].join("|"),checkUrlAttrs:!1}])}();var hU={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,"",""]},pU=/<([\w:]+)/;function fU(e){return e in hU}function mU(e,t){var n,i,r,o,s,a=t.createDocumentFragment(),c=[];for(r=0,s=e.length;r<s;r++)if(i=e[r])if("string"==typeof i){n=n||a.appendChild(t.createElement("div"));var l=KD(pU.exec(i)||["",""],2)[1];if(void 0!==l){var u=l.toLowerCase(),d=fU(u)&&hU[u]||hU._default;for(EU(n,d[1]+i+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild);c.push.apply(c,VD(Array.from(n.childNodes))),(n=a.firstChild)&&(n.textContent="")}}else i instanceof Node&&c.push(i);for(a.textContent="",i=c[r=0];i;)a.appendChild(i),i=c[++r];return a}function gU(e,t,n){e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){if(nU(n,i))return n[i];if(nU(t,i)){var r=t[i],o="string"==typeof r;if(!o&&!(r instanceof tU)&&!("number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");return r?(r=o?"".concat(iU(r)):r.toString(),n[i]=r,r):e}return e}))}(e,t):e,r=e;return sU(i)&&!uU(i,n)&&(i=dU(i),oU("Content contains tags or attributes that are not allowed:\nContent: "+r,"error")),i}var vU=gU,yU=gU;function EU(e,t,n){var i=gU(t,n);return i&&sU(i)?e.innerHTML=i:i&&(e[JD]=i),i}var bU=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GD(e,t)}(n,e);var t=WD(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return FD(this,n),(i=t.call(this)).options=r,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return HD(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e;return void 0!==t?t:(uU(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=dU(e),oU("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(tU);var wU=/ /g,_U=/[\s\u0000<>"]|%00/,TU=/\\/,SU=/([.]|%2e){2}/i,CU=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function IU(e){var t,n="invalid://";if("string"!=typeof e)return oU("jSecure Warning: url must be a string","error"),n;if((t=e.trim()).indexOf(" ")>-1&&(oU("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(wU,"+")),!CU.test(t))return oU("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n;if(_U.test(t))return oU("jSecure Error: not valid url character found in url: "+e,"error"),n;var i,r=t.split("?")[0],o=!1;if(r){try{if(i=decodeURI(r),SU.test(i))return oU("jSecure Error: malicious data found in url path: "+r,"error"),n}catch(e){o=!0}if(o)return oU("jSecure Error: malformed url path detected: "+r),n;if(TU.test(r)||SU.test(r))return oU("jSecure Error: malicious data found in url path: "+r,"error"),n}return e}var kU={redirect:function(e){window&&(window.location.href=e)}};var AU={ALLOWED_TAGS:$D,FORMATTING_TAGS:ZD,htmlEncode:iU,htmlUnencode:rU,log:oU,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r,o="",s=n.length;return e&&e.forEach((function(e,t){o+=e,t<s&&(r=n[t],o+=r instanceof bU?r:iU(r))})),"".concat(yU(o))},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=mU([e],t);else{if(!Array.isArray(e))return e;n=mU(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:vU,reEncode:function(e){return iU(rU(e))},_redirector:kU,redirect:function(e){var t=IU(e);t===e&&kU.redirect(t)},sanitizeHTML:yU,sanitizeUrl:IU,setElementContent:EU,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new bU(t,n)}};function OU(){var e=document.querySelector('[data-id="sticky-header__nav-backbtn"]');e&&e.addEventListener("click",(()=>{var e=sessionStorage.getItem("previousPage");e===location.href&&AU.redirect(location.origin);var t,n,i=function(e){try{return new URL(e).hostname}catch(e){return""}}(e);t=i,n=location.hostname,t&&t.indexOf(n.substring(n.indexOf(".")))>=0?history.back():AU.redirect(location.origin)}))}function LU(){LU=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,s=Object.create(o.prototype),a=new C(r||[]);return i(s,"_invoke",{value:w(e,n,a)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function h(){}function p(){}function f(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(I([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=f.prototype=h.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,o,s,a){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,a)}))}a(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function w(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return k()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=u(e,t,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=f,i(y,"constructor",{value:f,configurable:!0}),i(f,"constructor",{value:p,configurable:!0}),p.displayName=c(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},E(b.prototype),c(b.prototype,s,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var s=new b(l(t,n,i,r),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},E(y),c(y,a,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function RU(e,t,n,i,r,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(i,r)}function NU(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function s(e){RU(o,i,r,s,a,"next",e)}function a(e){RU(o,i,r,s,a,"throw",e)}s(void 0)}))}}var PU,xU,MU,DU="click",UU="/mwlite/pulse/api/runQuery";function BU(){var e,t;null===(e=PU)||void 0===e||e.addEventListener(DU,HU),null===(t=xU)||void 0===t||t.addEventListener(DU,FU),MU&&new Gv(MU,{endpoint:UU})}function FU(e){return qU.apply(this,arguments)}function qU(){return qU=NU(LU().mark((function e(t){var n,i,r,o,s,a;return LU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.target.dataset,i=n.id,r=n.title,o=n.successMessage,s=n.errorMessage,a={text:r,url:jU(i)},e.prev=2,e.next=5,navigator.share(a);case 5:CD.trigger("success",o),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),CD.trigger("error",s);case 11:case"end":return e.stop()}}),e,null,[[2,8]])}))),qU.apply(this,arguments)}function HU(e){var t=e.target.dataset.id;AU.redirect(jU(t))}function jU(e){return e.indexOf("contentSeries")&&(e=e.split(":")[3]),new URL("".concat("/mwlite/newsletters/").concat(e),window.location.origin).href}function GU(){!function(){var e=document.querySelector.bind(document);PU=e("#newsletter-see-all-editions"),xU=e("#share-newsletter"),MU=e(".newsletter-details__action")}(),BU()}function zU(e){CD.clearAllToasts(),e&&CD.trigger("notify",ba("offlineText"))}const WU=class{constructor(e){if(!e||"[object Function]"!=={}.toString.call(e))throw new Error("Please provide a valid tracking call back function");this.trackingCallback=e}getInstalledApps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return"getInstalledRelatedApps"in e?e.getInstalledRelatedApps().then((t=>(this._fireAppDetectionEvent(t,e),t))):Promise.resolve([])}_fireAppDetectionEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator;const n=e.map((e=>({appId:e.id.toUpperCase().replace(/\./g,"_"),appVersion:e.version,platform:e.platform}))),i={requestHeader:{browserId:this._getBrowserId(),userAgent:t.userAgent||""},installedAppList:n},r=this._getQueryParam(window.location.href,"originalReferer");r&&(i.requestHeader.referer=r),this.trackingCallback("AppDetectionEvent",i)}_getBrowserId(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).cookie.match(/bcookie=([^;]*)/),t=e?e[1].replace(/^"(.*)"$/,"$1"):"";return t&&t.includes("&")&&t.split("&")[1]||""}_getQueryParam(e,t,n){const i=new RegExp(`([\\?&])${n?t:encodeURIComponent(t)}=([^&#]*)`).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}};function KU(e){return{isVoyagerAndroidAppInstalled:e.indexOf("com.linkedin.android")>-1,appTypesInstalled:e}}function VU(e,t){!function(e,t){var n=[],i=navigator.getInstalledRelatedApps&&"function"==typeof navigator.getInstalledRelatedApps;if(i)new WU(t).getInstalledApps().then((t=>{t.forEach((e=>{n.push(e.id)}));var r=KU(n);e(i,r)}));else{var r=KU(n);e(i,r)}}(e,t)}var YU="ControlInteractionEvent",QU="SHORT_PRESS";function XU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=Y.getPageTag(document),i=Y.getLocale(document),r=TD(),o={};return i&&(o.interfaceLocale=i),e&&(o.pageKey=e),r&&(o.theme=r),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}var JU="#app-upsell-container";function ZU(e){var t=e.target.closest("[data-tracking-id]");t&&(!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:QU,n=Y.getPageKey(document);window.tracking.then((i=>{var r=XU(n);r.controlUrn="urn:li:control:".concat(n,"-").concat(e),r.interactionType=t,i.fireTrackingEvent(YU,r,i.state?i.state.currentPageInstance:i.getCurrentContext().pageInstance)}))}(t.dataset.trackingId),document.querySelector(JU).remove())}function $U(e,t){e&&t&&t.isVoyagerAndroidAppInstalled||_e("/mwlite/get-deep-link/").then((e=>{if(e.responseText&&204!==e.status){var t=document.body;Us.setSanitizedMarkup(t,t.innerHTML+e.responseText,{ADD_ATTR:["category"]}),(n=document.querySelector(JU))&&n.addEventListener("click",ZU)}var n}))}new class{constructor(){this._commentEl=document.querySelector(".comments__container"),this.bindEvent()}bindEvent(){window.addEventListener("load",(()=>{var e,t,n,i;wa("apiRoute","/pulse/api/runQuery"),PD(),ba("isGuest")||(new ey,e="created",t="deleted",document.querySelector(".reactions-menu")&&new jv(".reactions-menu__trigger",document.body,{endpoint:ba("apiRoute"),onReactionSuccess:function(){var n="";this.reactionEvent===e&&(n=AD),this.reactionEvent===t&&(n=OD),H.dispatchCustomEvent(document.body,n,{entityUrn:ba("ugcPost"),reactionType:this.previousReaction})},onReaction:function(n,i){""===i&&(this.reactionEvent=t),this.previousReaction||""===i||(this.reactionEvent=e),this.previousReaction=i},shouldStopPropagation:!1})),this.setUpsell(),this.initMobileAndDesktopHandlers(),(i=null===(n=document.querySelector(".publisher-author-card"))||void 0===n?void 0:n.querySelector(".follow-button"))&&new Gv(i,{endpoint:ba("apiRoute")}),this._initComments(),this.initiateShowMoreLess()}))}setUpsell(){ba("noGlobalAlerts")&&VU($U,(()=>{}))}initMobileAndDesktopHandlers(){if(ba("isLite"))new Tu,OU(),new fv(document,{onClipboardCopy(e){var t=e?"success":"error";CD.trigger(t,ba("i18n_copy_to_clipboard_".concat(t)))}}),window.addEventListener("offline",(()=>{zU(!0)})),window.addEventListener("online",(()=>{zU(!1)})),navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",(e=>{var t=e.data;"offline"in t&&zU(t.offline)})),ba("newsletterLixEnabled")&&GU(),SD();else{UD();var e=document.querySelectorAll(".xandr-ad");(null==e?void 0:e.length)>0&&new my(e)}!function(){var e,t="newsletter-subscriber-button",n=null===(e=document.querySelector(".article-newsletter-card"))||void 0===e?void 0:e.querySelector(".follow-button"),i=document.getElementById("toasts");n&&i&&new Gv(n,{endpoint:ba("apiRoute"),onFollowSuccess:()=>{CD.trigger(ya.TOAST_TYPES.SUCCESS,ba("follow_success_toast"),t)},onUnfollowSuccess:()=>{CD.trigger(ya.TOAST_TYPES.SUCCESS,ba("unfollow_success_toast"),t)},errorCallback:()=>{CD.trigger(ya.TOAST_TYPES.ERROR,ba("follow_failure_toast"),t)}})}()}initiateShowMoreLess(){var e=document.querySelector(".show-more-less");e&&new yu(e)}_initComments(){var e=ba("isGuest");return[...this._commentEl.querySelectorAll(".comment-with-action")].map((t=>new Jv(t,{isLoggedIn:!e})))}}})();